@activepieces/shared 0.18.4 → 0.18.6
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 +1 -1
- package/src/lib/ai/ai-sdk.d.ts +1 -0
- package/src/lib/flows/flow-version.d.ts +1 -1
- package/src/lib/flows/flow-version.js +1 -1
- package/src/lib/flows/operations/migrations/index.js +2 -0
- package/src/lib/flows/operations/migrations/index.js.map +1 -1
- package/src/lib/flows/operations/migrations/migrate-v5-http-to-webhook.d.ts +2 -0
- package/src/lib/flows/operations/migrations/migrate-v5-http-to-webhook.js +42 -0
- package/src/lib/flows/operations/migrations/migrate-v5-http-to-webhook.js.map +1 -0
- package/src/lib/tables/dto/tables.dto.d.ts +0 -4
- package/src/lib/tables/dto/tables.dto.js +1 -4
- package/src/lib/tables/dto/tables.dto.js.map +1 -1
- package/src/lib/tables/table.d.ts +1 -25
- package/src/lib/tables/table.js +1 -3
- package/src/lib/tables/table.js.map +1 -1
package/package.json
CHANGED
package/src/lib/ai/ai-sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Static } from '@sinclair/typebox';
|
|
2
2
|
import { ApId } from '../common/id-generator';
|
|
3
3
|
export type FlowVersionId = ApId;
|
|
4
|
-
export declare const LATEST_SCHEMA_VERSION = "
|
|
4
|
+
export declare const LATEST_SCHEMA_VERSION = "6";
|
|
5
5
|
export declare enum FlowVersionState {
|
|
6
6
|
LOCKED = "LOCKED",
|
|
7
7
|
DRAFT = "DRAFT"
|
|
@@ -5,7 +5,7 @@ const typebox_1 = require("@sinclair/typebox");
|
|
|
5
5
|
const base_model_1 = require("../common/base-model");
|
|
6
6
|
const user_1 = require("../user");
|
|
7
7
|
const trigger_1 = require("./triggers/trigger");
|
|
8
|
-
exports.LATEST_SCHEMA_VERSION = '
|
|
8
|
+
exports.LATEST_SCHEMA_VERSION = '6';
|
|
9
9
|
var FlowVersionState;
|
|
10
10
|
(function (FlowVersionState) {
|
|
11
11
|
FlowVersionState["LOCKED"] = "LOCKED";
|
|
@@ -6,12 +6,14 @@ const migrate_v1_connection_ids_1 = require("./migrate-v1-connection-ids");
|
|
|
6
6
|
const migrate_v2_agent_piece_1 = require("./migrate-v2-agent-piece");
|
|
7
7
|
const migrate_v3_agent_piece_1 = require("./migrate-v3-agent-piece");
|
|
8
8
|
const migrate_v4_agent_piece_1 = require("./migrate-v4-agent-piece");
|
|
9
|
+
const migrate_v5_http_to_webhook_1 = require("./migrate-v5-http-to-webhook");
|
|
9
10
|
const migrations = [
|
|
10
11
|
migrate_v0_branch_to_router_1.migrateBranchToRouter,
|
|
11
12
|
migrate_v1_connection_ids_1.migrateConnectionIds,
|
|
12
13
|
migrate_v2_agent_piece_1.migrateAgentPieceV2,
|
|
13
14
|
migrate_v3_agent_piece_1.migrateAgentPieceV3,
|
|
14
15
|
migrate_v4_agent_piece_1.migrateAgentPieceV4,
|
|
16
|
+
migrate_v5_http_to_webhook_1.migrateHttpToWebhookV5,
|
|
15
17
|
];
|
|
16
18
|
const apply = (flowVersion) => {
|
|
17
19
|
return migrations.reduce((acc, migration) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/shared/src/lib/flows/operations/migrations/index.ts"],"names":[],"mappings":";;;AACA,+EAAqE;AACrE,2EAAkE;AAClE,qEAA8D;AAC9D,qEAA8D;AAC9D,qEAA8D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/shared/src/lib/flows/operations/migrations/index.ts"],"names":[],"mappings":";;;AACA,+EAAqE;AACrE,2EAAkE;AAClE,qEAA8D;AAC9D,qEAA8D;AAC9D,qEAA8D;AAC9D,6EAAqE;AAOrE,MAAM,UAAU,GAAgB;IAC5B,mDAAqB;IACrB,gDAAoB;IACpB,4CAAmB;IACnB,4CAAmB;IACnB,4CAAmB;IACnB,mDAAsB;CACzB,CAAA;AAED,MAAM,KAAK,GAAG,CAAC,WAAwB,EAAE,EAAE;IACvC,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;QACxC,IAAI,GAAG,CAAC,aAAa,KAAK,SAAS,CAAC,mBAAmB,EAAE,CAAC;YACtD,OAAO,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QACjC,CAAC;QACD,OAAO,GAAG,CAAA;IACd,CAAC,EAAE,WAAW,CAAC,CAAA;AACnB,CAAC,CAAA;AAEY,QAAA,cAAc,GAAG;IAC1B,KAAK;CACR,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.migrateHttpToWebhookV5 = void 0;
|
|
4
|
+
const action_1 = require("../../actions/action");
|
|
5
|
+
const flow_structure_util_1 = require("../../util/flow-structure-util");
|
|
6
|
+
const HTTP_PIECE_NAME = '@activepieces/piece-http';
|
|
7
|
+
const WEBHOOK_PIECE_NAME = '@activepieces/piece-webhook';
|
|
8
|
+
const HTTP_RETURN_RESPONSE_ACTION = 'return_response';
|
|
9
|
+
const WEBHOOK_RETURN_RESPONSE_ACTION = 'return_response';
|
|
10
|
+
exports.migrateHttpToWebhookV5 = {
|
|
11
|
+
targetSchemaVersion: '5',
|
|
12
|
+
migrate: (flowVersion) => {
|
|
13
|
+
const newVersion = flow_structure_util_1.flowStructureUtil.transferFlow(flowVersion, (step) => {
|
|
14
|
+
if (step.type === action_1.FlowActionType.PIECE &&
|
|
15
|
+
step.settings.pieceName === HTTP_PIECE_NAME &&
|
|
16
|
+
step.settings.actionName === HTTP_RETURN_RESPONSE_ACTION) {
|
|
17
|
+
const httpInput = step.settings.input || {};
|
|
18
|
+
const fields = {};
|
|
19
|
+
if (httpInput['body'] && typeof httpInput['body'] === 'object' && 'data' in httpInput['body']) {
|
|
20
|
+
fields['body'] = httpInput['body']['data'];
|
|
21
|
+
}
|
|
22
|
+
if (httpInput['status'] !== undefined) {
|
|
23
|
+
fields['status'] = httpInput['status'];
|
|
24
|
+
}
|
|
25
|
+
if (httpInput['headers']) {
|
|
26
|
+
fields['headers'] = httpInput['headers'];
|
|
27
|
+
}
|
|
28
|
+
const webhookInput = {
|
|
29
|
+
respond: 'stop',
|
|
30
|
+
responseType: httpInput['body_type'] || 'json',
|
|
31
|
+
fields,
|
|
32
|
+
};
|
|
33
|
+
return Object.assign(Object.assign({}, step), { settings: Object.assign(Object.assign({}, step.settings), { pieceName: WEBHOOK_PIECE_NAME, pieceVersion: '0.1.20', actionName: WEBHOOK_RETURN_RESPONSE_ACTION, input: webhookInput, inputUiInfo: {
|
|
34
|
+
customizedInputs: {},
|
|
35
|
+
} }) });
|
|
36
|
+
}
|
|
37
|
+
return step;
|
|
38
|
+
});
|
|
39
|
+
return Object.assign(Object.assign({}, newVersion), { schemaVersion: '6' });
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=migrate-v5-http-to-webhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-v5-http-to-webhook.js","sourceRoot":"","sources":["../../../../../../../../packages/shared/src/lib/flows/operations/migrations/migrate-v5-http-to-webhook.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAErD,wEAAkE;AAGlE,MAAM,eAAe,GAAG,0BAA0B,CAAA;AAClD,MAAM,kBAAkB,GAAG,6BAA6B,CAAA;AACxD,MAAM,2BAA2B,GAAG,iBAAiB,CAAA;AACrD,MAAM,8BAA8B,GAAG,iBAAiB,CAAA;AAE3C,QAAA,sBAAsB,GAAc;IAC7C,mBAAmB,EAAE,GAAG;IACxB,OAAO,EAAE,CAAC,WAAwB,EAAe,EAAE;QAC/C,MAAM,UAAU,GAAG,uCAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YACpE,IACI,IAAI,CAAC,IAAI,KAAK,uBAAc,CAAC,KAAK;gBACl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,10 +15,6 @@ export declare const ExportTableResponse: import("@sinclair/typebox").TObject<{
|
|
|
15
15
|
name: import("@sinclair/typebox").TString;
|
|
16
16
|
}>;
|
|
17
17
|
export type ExportTableResponse = Static<typeof ExportTableResponse>;
|
|
18
|
-
export declare const AutomateTableRequest: import("@sinclair/typebox").TObject<{
|
|
19
|
-
recordIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
20
|
-
}>;
|
|
21
|
-
export type AutomateTableRequest = Static<typeof AutomateTableRequest>;
|
|
22
18
|
export declare const CreateTableWebhookRequest: import("@sinclair/typebox").TObject<{
|
|
23
19
|
events: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<typeof TableWebhookEventType>>;
|
|
24
20
|
webhookUrl: import("@sinclair/typebox").TString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListTablesRequest = exports.UpdateTableRequest = exports.CreateTableWebhookRequest = exports.
|
|
3
|
+
exports.ListTablesRequest = exports.UpdateTableRequest = exports.CreateTableWebhookRequest = exports.ExportTableResponse = exports.CreateTableRequest = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const table_1 = require("../table");
|
|
6
6
|
const table_webhook_1 = require("../table-webhook");
|
|
@@ -13,9 +13,6 @@ exports.ExportTableResponse = typebox_1.Type.Object({
|
|
|
13
13
|
rows: typebox_1.Type.Array(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.String())),
|
|
14
14
|
name: typebox_1.Type.String(),
|
|
15
15
|
});
|
|
16
|
-
exports.AutomateTableRequest = typebox_1.Type.Object({
|
|
17
|
-
recordIds: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
18
|
-
});
|
|
19
16
|
exports.CreateTableWebhookRequest = typebox_1.Type.Object({
|
|
20
17
|
events: typebox_1.Type.Array(typebox_1.Type.Enum(table_webhook_1.TableWebhookEventType)),
|
|
21
18
|
webhookUrl: typebox_1.Type.String(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/tables/dto/tables.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,oCAAwE;AACxE,oDAAwD;AAE3C,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,CAAA;AAIW,QAAA,mBAAmB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC3E,IAAI,EAAE,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3D,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"tables.dto.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/tables/dto/tables.dto.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,oCAAwE;AACxE,oDAAwD;AAE3C,QAAA,kBAAkB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,CAAA;AAIW,QAAA,mBAAmB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,cAAI,CAAC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AAQ,CAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;CACxD,CAAC,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Static } from '@sinclair/typebox';
|
|
2
2
|
export declare enum TableAutomationTrigger {
|
|
3
3
|
ON_NEW_RECORD = "ON_NEW_RECORD",
|
|
4
|
-
ON_UPDATE_RECORD = "ON_UPDATE_RECORD"
|
|
5
|
-
ON_DEMAND = "ON_DEMAND"
|
|
4
|
+
ON_UPDATE_RECORD = "ON_UPDATE_RECORD"
|
|
6
5
|
}
|
|
7
6
|
export declare enum TableAutomationStatus {
|
|
8
7
|
ENABLED = "ENABLED",
|
|
@@ -12,31 +11,8 @@ export declare const Table: import("@sinclair/typebox").TObject<{
|
|
|
12
11
|
name: import("@sinclair/typebox").TString;
|
|
13
12
|
projectId: import("@sinclair/typebox").TString;
|
|
14
13
|
externalId: import("@sinclair/typebox").TString;
|
|
15
|
-
agent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
16
|
-
displayName: import("@sinclair/typebox").TString;
|
|
17
|
-
description: import("@sinclair/typebox").TString;
|
|
18
|
-
systemPrompt: import("@sinclair/typebox").TString;
|
|
19
|
-
profilePictureUrl: import("@sinclair/typebox").TString;
|
|
20
|
-
projectId: import("@sinclair/typebox").TString;
|
|
21
|
-
maxSteps: import("@sinclair/typebox").TNumber;
|
|
22
|
-
mcpId: import("@sinclair/typebox").TString;
|
|
23
|
-
tableAutomationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
-
platformId: import("@sinclair/typebox").TString;
|
|
25
|
-
outputType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof import("../agents").AgentOutputType>>;
|
|
26
|
-
outputFields: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
27
|
-
displayName: import("@sinclair/typebox").TString;
|
|
28
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
29
|
-
type: import("@sinclair/typebox").TEnum<typeof import("../agents").AgentOutputFieldType>;
|
|
30
|
-
}>>>;
|
|
31
|
-
runCompleted: import("@sinclair/typebox").TNumber;
|
|
32
|
-
externalId: import("@sinclair/typebox").TString;
|
|
33
|
-
id: import("@sinclair/typebox").TString;
|
|
34
|
-
created: import("@sinclair/typebox").TString;
|
|
35
|
-
updated: import("@sinclair/typebox").TString;
|
|
36
|
-
}>>;
|
|
37
14
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationStatus | null>>;
|
|
38
15
|
trigger: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<TableAutomationTrigger | null>>;
|
|
39
|
-
agentId: import("@sinclair/typebox").TString;
|
|
40
16
|
id: import("@sinclair/typebox").TString;
|
|
41
17
|
created: import("@sinclair/typebox").TString;
|
|
42
18
|
updated: import("@sinclair/typebox").TString;
|
package/src/lib/tables/table.js
CHANGED
|
@@ -2,18 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Table = exports.TableAutomationStatus = exports.TableAutomationTrigger = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
|
-
const agents_1 = require("../agents");
|
|
6
5
|
const common_1 = require("../common");
|
|
7
6
|
var TableAutomationTrigger;
|
|
8
7
|
(function (TableAutomationTrigger) {
|
|
9
8
|
TableAutomationTrigger["ON_NEW_RECORD"] = "ON_NEW_RECORD";
|
|
10
9
|
TableAutomationTrigger["ON_UPDATE_RECORD"] = "ON_UPDATE_RECORD";
|
|
11
|
-
TableAutomationTrigger["ON_DEMAND"] = "ON_DEMAND";
|
|
12
10
|
})(TableAutomationTrigger || (exports.TableAutomationTrigger = TableAutomationTrigger = {}));
|
|
13
11
|
var TableAutomationStatus;
|
|
14
12
|
(function (TableAutomationStatus) {
|
|
15
13
|
TableAutomationStatus["ENABLED"] = "ENABLED";
|
|
16
14
|
TableAutomationStatus["DISABLED"] = "DISABLED";
|
|
17
15
|
})(TableAutomationStatus || (exports.TableAutomationStatus = TableAutomationStatus = {}));
|
|
18
|
-
exports.Table = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), projectId: typebox_1.Type.String(), externalId: typebox_1.Type.String(),
|
|
16
|
+
exports.Table = typebox_1.Type.Object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { name: typebox_1.Type.String(), projectId: typebox_1.Type.String(), externalId: typebox_1.Type.String(), status: (0, common_1.NullableEnum)(typebox_1.Type.Enum(TableAutomationStatus)), trigger: (0, common_1.NullableEnum)(typebox_1.Type.Enum(TableAutomationTrigger)) }));
|
|
19
17
|
//# sourceMappingURL=table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/tables/table.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/tables/table.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sCAAyD;AAEzD,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,yDAA+B,CAAA;IAC/B,+DAAqC,CAAA;AACzC,CAAC,EAHW,sBAAsB,sCAAtB,sBAAsB,QAGjC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;AACzB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAEY,QAAA,KAAK,GAAG,cAAI,CAAC,MAAM,iCACzB,wBAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,UAAU,EAAE,cAAI,CAAC,MAAM,EAAE,EACzB,MAAM,EAAE,IAAA,qBAAY,EAAC,cAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,EACtD,OAAO,EAAE,IAAA,qBAAY,EAAC,cAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,IAC1D,CAAA"}
|