@activepieces/shared 0.10.2 → 0.10.4
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 +2 -2
- package/src/lib/file/file.d.ts +0 -7
- package/src/lib/file/file.js +0 -7
- package/src/lib/file/file.js.map +1 -1
- package/src/lib/flows/step-file/step-file.d.ts +1 -5
- package/src/lib/flows/step-file/step-file.js +1 -2
- package/src/lib/flows/step-file/step-file.js.map +1 -1
- package/src/lib/pieces/piece.d.ts +3 -0
- package/src/lib/pieces/piece.js +5 -1
- package/src/lib/pieces/piece.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/shared",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.26.8",
|
|
7
7
|
"nanoid": "3.3.6",
|
|
8
8
|
"semver": "7.5.4",
|
|
9
|
-
"tslib": "2.6.
|
|
9
|
+
"tslib": "2.6.1"
|
|
10
10
|
},
|
|
11
11
|
"main": "./src/index.js"
|
|
12
12
|
}
|
package/src/lib/file/file.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Static } from "@sinclair/typebox";
|
|
3
2
|
import { BaseModel } from "../common/base-model";
|
|
4
3
|
import { ApId } from "../common/id-generator";
|
|
5
4
|
import { ProjectId } from "../project/project";
|
|
@@ -12,9 +11,3 @@ export interface File extends BaseModel<FileId> {
|
|
|
12
11
|
type: FileType;
|
|
13
12
|
compression: FileCompression;
|
|
14
13
|
}
|
|
15
|
-
export declare const FileData: import("@sinclair/typebox").TObject<{
|
|
16
|
-
data: import("@sinclair/typebox").TAny;
|
|
17
|
-
mimetype: import("@sinclair/typebox").TString<string>;
|
|
18
|
-
filename: import("@sinclair/typebox").TString<string>;
|
|
19
|
-
}>;
|
|
20
|
-
export type FileData = Static<typeof FileData>;
|
package/src/lib/file/file.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileData = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
exports.FileData = typebox_1.Type.Object({
|
|
6
|
-
data: typebox_1.Type.Any(),
|
|
7
|
-
mimetype: typebox_1.Type.String(),
|
|
8
|
-
filename: typebox_1.Type.String(),
|
|
9
|
-
});
|
|
10
3
|
//# sourceMappingURL=file.js.map
|
package/src/lib/file/file.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/file/file.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/file/file.ts"],"names":[],"mappings":""}
|
|
@@ -15,11 +15,7 @@ export declare const StepFileUpsert: import("@sinclair/typebox").TObject<{
|
|
|
15
15
|
name: import("@sinclair/typebox").TString<string>;
|
|
16
16
|
flowId: import("@sinclair/typebox").TString<string>;
|
|
17
17
|
stepName: import("@sinclair/typebox").TString<string>;
|
|
18
|
-
file: import("@sinclair/typebox").
|
|
19
|
-
data: import("@sinclair/typebox").TAny;
|
|
20
|
-
mimetype: import("@sinclair/typebox").TString<string>;
|
|
21
|
-
filename: import("@sinclair/typebox").TString<string>;
|
|
22
|
-
}>>;
|
|
18
|
+
file: import("@sinclair/typebox").TUnknown;
|
|
23
19
|
}>;
|
|
24
20
|
export type StepFileUpsert = Static<typeof StepFileUpsert>;
|
|
25
21
|
export declare const StepFileGet: import("@sinclair/typebox").TObject<{
|
|
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StepFileGet = exports.StepFileUpsert = exports.StepFile = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const common_1 = require("../../common");
|
|
6
|
-
const file_1 = require("../../file/file");
|
|
7
6
|
exports.StepFile = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), flowId: typebox_1.Type.String(), projectId: typebox_1.Type.String(), stepName: typebox_1.Type.String(), size: typebox_1.Type.Number(), data: typebox_1.Type.Unknown() }));
|
|
8
7
|
exports.StepFileUpsert = typebox_1.Type.Object({
|
|
9
8
|
name: typebox_1.Type.String(),
|
|
10
9
|
flowId: typebox_1.Type.String(),
|
|
11
10
|
stepName: typebox_1.Type.String(),
|
|
12
|
-
file: typebox_1.Type.
|
|
11
|
+
file: typebox_1.Type.Unknown(),
|
|
13
12
|
});
|
|
14
13
|
exports.StepFileGet = typebox_1.Type.Object({
|
|
15
14
|
id: typebox_1.Type.String(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-file.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/step-file/step-file.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,yCAA+C;
|
|
1
|
+
{"version":3,"file":"step-file.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/flows/step-file/step-file.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,yCAA+C;AAElC,QAAA,QAAQ,GAAG,cAAI,CAAC,MAAM,iCAC5B,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE,EACrB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE,EACvB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,IAAI,EAAE,cAAI,CAAC,OAAO,EAAE,IACtB,CAAA;AAIW,QAAA,cAAc,GAAG,cAAI,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,cAAI,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,cAAI,CAAC,OAAO,EAAE;CACvB,CAAC,CAAA;AAIW,QAAA,WAAW,GAAG,cAAI,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAA"}
|
package/src/lib/pieces/piece.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PieceType = exports.PackageType = void 0;
|
|
3
|
+
exports.PieceCategory = exports.PieceType = exports.PackageType = void 0;
|
|
4
4
|
var PackageType;
|
|
5
5
|
(function (PackageType) {
|
|
6
6
|
PackageType["ARCHIVE"] = "ARCHIVE";
|
|
@@ -11,4 +11,8 @@ var PieceType;
|
|
|
11
11
|
PieceType["CUSTOM"] = "CUSTOM";
|
|
12
12
|
PieceType["OFFICIAL"] = "OFFICIAL";
|
|
13
13
|
})(PieceType || (exports.PieceType = PieceType = {}));
|
|
14
|
+
var PieceCategory;
|
|
15
|
+
(function (PieceCategory) {
|
|
16
|
+
PieceCategory["CORE"] = "CORE";
|
|
17
|
+
})(PieceCategory || (exports.PieceCategory = PieceCategory = {}));
|
|
14
18
|
//# sourceMappingURL=piece.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"piece.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/pieces/piece.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;AACzB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACzB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
|
|
1
|
+
{"version":3,"file":"piece.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/pieces/piece.ts"],"names":[],"mappings":";;;AAGA,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;AACzB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACzB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAWD,IAAY,aAGX;AAHD,WAAY,aAAa;IAErB,8BAAY,CAAA;AAChB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
|