@activepieces/shared
Advanced tools
Comparing version 0.3.51 to 0.3.52
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.3.51", | ||
"version": "0.3.52", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -63,3 +63,3 @@ import { AppConnectionId } from "../app-connection/app-connection"; | ||
pieceName: string; | ||
pieceVersion: string; | ||
pieceVersion: string | undefined; | ||
}>; | ||
@@ -66,0 +66,0 @@ export declare type PieceTriggerNotFoundErrorParams = BaseErrorParams<ErrorCode.PIECE_TRIGGER_NOT_FOUND, { |
export * from './object-utils'; | ||
export * from './semVer'; | ||
export * from './utils'; |
@@ -5,4 +5,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./object-utils"), exports); | ||
tslib_1.__exportStar(require("./semVer"), exports); | ||
tslib_1.__exportStar(require("./utils"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -33,3 +33,3 @@ "use strict"; | ||
pieceName: typebox_1.Type.String({}), | ||
pieceVersion: pieces_1.SemVerType, | ||
pieceVersion: pieces_1.QueryVerType, | ||
actionName: typebox_1.Type.Optional(typebox_1.Type.String({})), | ||
@@ -36,0 +36,0 @@ input: typebox_1.Type.Record(typebox_1.Type.String({}), typebox_1.Type.Any()), |
@@ -25,3 +25,3 @@ "use strict"; | ||
pieceName: typebox_1.Type.String({}), | ||
pieceVersion: pieces_1.SemVerType, | ||
pieceVersion: pieces_1.QueryVerType, | ||
triggerName: typebox_1.Type.String({}), | ||
@@ -28,0 +28,0 @@ input: typebox_1.Type.Record(typebox_1.Type.String({}), typebox_1.Type.Any()), |
import { Static } from "@sinclair/typebox"; | ||
export declare const SemVerType: import("@sinclair/typebox").TString<string>; | ||
export declare const QueryVerType: import("@sinclair/typebox").TString<string>; | ||
export declare const GetPieceRequestWithScopeParams: import("@sinclair/typebox").TObject<{ | ||
@@ -13,7 +14,7 @@ name: import("@sinclair/typebox").TString<string>; | ||
export declare const ListPiecesRequestQuery: import("@sinclair/typebox").TObject<{ | ||
release: import("@sinclair/typebox").TString<string>; | ||
release: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>; | ||
}>; | ||
export declare type ListPiecesRequestQuery = Static<typeof ListPiecesRequestQuery>; | ||
export declare const GetPieceRequestQuery: import("@sinclair/typebox").TObject<{ | ||
version: import("@sinclair/typebox").TString<string>; | ||
version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>; | ||
}>; | ||
@@ -20,0 +21,0 @@ export declare type GetPieceRequestQuery = Static<typeof GetPieceRequestQuery>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InstallPieceRequest = exports.PieceOptionRequest = exports.GetPieceRequestQuery = exports.ListPiecesRequestQuery = exports.GetPieceRequestParams = exports.GetPieceRequestWithScopeParams = exports.SemVerType = void 0; | ||
exports.InstallPieceRequest = exports.PieceOptionRequest = exports.GetPieceRequestQuery = exports.ListPiecesRequestQuery = exports.GetPieceRequestParams = exports.GetPieceRequestWithScopeParams = exports.QueryVerType = exports.SemVerType = void 0; | ||
const typebox_1 = require("@sinclair/typebox"); | ||
const common_1 = require("../../common"); | ||
exports.SemVerType = typebox_1.Type.RegEx(common_1.semVerRegex); | ||
const semVerRegex = /^[0-9]+\.[0-9]+\.[0-9]+$/; | ||
const queryVersionRegex = /^(\^)?[0-9]+\.[0-9]+\.[0-9]+$/; | ||
exports.SemVerType = typebox_1.Type.RegEx(semVerRegex); | ||
exports.QueryVerType = typebox_1.Type.RegEx(queryVersionRegex); | ||
exports.GetPieceRequestWithScopeParams = typebox_1.Type.Object({ | ||
@@ -15,9 +17,9 @@ name: typebox_1.Type.String(), | ||
exports.ListPiecesRequestQuery = typebox_1.Type.Object({ | ||
release: exports.SemVerType, | ||
release: typebox_1.Type.Optional(exports.SemVerType), | ||
}); | ||
exports.GetPieceRequestQuery = typebox_1.Type.Object({ | ||
version: exports.SemVerType, | ||
version: typebox_1.Type.Optional(exports.QueryVerType), | ||
}); | ||
exports.PieceOptionRequest = typebox_1.Type.Object({ | ||
pieceVersion: exports.SemVerType, | ||
pieceVersion: exports.QueryVerType, | ||
pieceName: typebox_1.Type.String({}), | ||
@@ -24,0 +26,0 @@ stepName: typebox_1.Type.String({}), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
301153
200
4224
7
3
101