@activepieces/shared 0.3.41 → 0.3.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@activepieces/shared",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "0.26.8",
7
7
  "lodash": "4.17.21",
8
8
  "nanoid": "3.3.4",
9
- "tslib": "2.4.1"
9
+ "tslib": "2.5.3"
10
10
  },
11
11
  "main": "./src/index.js",
12
12
  "types": "./src/index.d.ts"
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetPieceRequestParams = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
5
  exports.GetPieceRequestParams = typebox_1.Type.Object({
6
- name: typebox_1.Type.RegEx(/^[A-Za-z0-9_\\-]+$/),
6
+ name: typebox_1.Type.String()
7
7
  });
8
8
  //# sourceMappingURL=get-piece-request-params.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-piece-request-params.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/pieces/dto/get-piece-request-params.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEpC,QAAA,qBAAqB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC;CACzC,CAAC,CAAC"}
1
+ {"version":3,"file":"get-piece-request-params.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/pieces/dto/get-piece-request-params.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AAEpC,QAAA,qBAAqB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { Static } from "@sinclair/typebox";
2
2
  export declare const PieceOptionRequest: import("@sinclair/typebox").TObject<{
3
3
  pieceVersion: import("@sinclair/typebox").TString<string>;
4
+ pieceName: import("@sinclair/typebox").TString<string>;
4
5
  stepName: import("@sinclair/typebox").TString<string>;
5
6
  propertyName: import("@sinclair/typebox").TString<string>;
6
7
  input: import("@sinclair/typebox").TAny;
@@ -5,6 +5,7 @@ const typebox_1 = require("@sinclair/typebox");
5
5
  const get_piece_request_query_1 = require("./get-piece-request-query");
6
6
  exports.PieceOptionRequest = typebox_1.Type.Object({
7
7
  pieceVersion: get_piece_request_query_1.SemVerType,
8
+ pieceName: typebox_1.Type.String({}),
8
9
  stepName: typebox_1.Type.String({}),
9
10
  propertyName: typebox_1.Type.String({}),
10
11
  input: typebox_1.Type.Any({})
@@ -1 +1 @@
1
- {"version":3,"file":"piece-option-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/pieces/dto/piece-option-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,uEAAuD;AAE1C,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,oCAAU;IACxB,QAAQ,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,YAAY,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IAC7B,KAAK,EAAE,cAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CACtB,CAAC,CAAC"}
1
+ {"version":3,"file":"piece-option-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/pieces/dto/piece-option-request.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,uEAAuD;AAE1C,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,YAAY,EAAE,oCAAU;IACxB,SAAS,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IAC1B,QAAQ,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACzB,YAAY,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IAC7B,KAAK,EAAE,cAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CACtB,CAAC,CAAC"}
@@ -2,7 +2,6 @@ declare type PackageInfoParams = {
2
2
  pieceName: string;
3
3
  pieceVersion: string;
4
4
  };
5
- export declare const getPackageNameForPiece: (params: PackageInfoParams) => string;
6
5
  export declare const getPackageAliasForPiece: (params: PackageInfoParams) => string;
7
6
  export declare const getPackageVersionForPiece: (params: PackageInfoParams) => string;
8
7
  export {};
@@ -1,19 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPackageVersionForPiece = exports.getPackageAliasForPiece = exports.getPackageNameForPiece = void 0;
4
- const getPackageNameForPiece = (params) => {
5
- const { pieceName } = params;
6
- return `@activepieces/piece-${pieceName}`;
7
- };
8
- exports.getPackageNameForPiece = getPackageNameForPiece;
3
+ exports.getPackageVersionForPiece = exports.getPackageAliasForPiece = void 0;
9
4
  const getPackageAliasForPiece = (params) => {
10
5
  const { pieceName, pieceVersion } = params;
11
- return `@activepieces/piece-${pieceName}-${pieceVersion}`;
6
+ return `${pieceName}-${pieceVersion}`;
12
7
  };
13
8
  exports.getPackageAliasForPiece = getPackageAliasForPiece;
14
9
  const getPackageVersionForPiece = (params) => {
15
10
  const { pieceName, pieceVersion } = params;
16
- return `npm:@activepieces/piece-${pieceName}@${pieceVersion}`;
11
+ return `npm:${pieceName}@${pieceVersion}`;
17
12
  };
18
13
  exports.getPackageVersionForPiece = getPackageVersionForPiece;
19
14
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/pieces/utils.ts"],"names":[],"mappings":";;;AAKO,MAAM,sBAAsB,GAAG,CAAC,MAAyB,EAAU,EAAE;IAC1E,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAE7B,OAAO,uBAAuB,SAAS,EAAE,CAAA;AAC3C,CAAC,CAAA;AAJY,QAAA,sBAAsB,0BAIlC;AAEM,MAAM,uBAAuB,GAAG,CAAC,MAAyB,EAAU,EAAE;IAC3E,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;IAE3C,OAAO,uBAAuB,SAAS,IAAI,YAAY,EAAE,CAAA;AAC3D,CAAC,CAAA;AAJY,QAAA,uBAAuB,2BAInC;AAEM,MAAM,yBAAyB,GAAG,CAAC,MAAyB,EAAU,EAAE;IAC7E,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;IAE3C,OAAO,2BAA2B,SAAS,IAAI,YAAY,EAAE,CAAA;AAC/D,CAAC,CAAA;AAJY,QAAA,yBAAyB,6BAIrC"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/pieces/utils.ts"],"names":[],"mappings":";;;AAKO,MAAM,uBAAuB,GAAG,CAAC,MAAyB,EAAU,EAAE;IAC3E,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;IAC3C,OAAO,GAAG,SAAS,IAAI,YAAY,EAAE,CAAA;AACvC,CAAC,CAAA;AAHY,QAAA,uBAAuB,2BAGnC;AAEM,MAAM,yBAAyB,GAAG,CAAC,MAAyB,EAAU,EAAE;IAC7E,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;IAE3C,OAAO,OAAO,SAAS,IAAI,YAAY,EAAE,CAAA;AAC3C,CAAC,CAAA;AAJY,QAAA,yBAAyB,6BAIrC"}