@or-sdk/idw 4.0.1-beta.1716.0 → 4.0.1-beta.1717.0
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/dist/cjs/dto/flowUpsert.dto.js +4 -2
- package/dist/cjs/dto/flowUpsert.dto.js.map +1 -1
- package/dist/esm/dto/flowUpsert.dto.js +4 -2
- package/dist/esm/dto/flowUpsert.dto.js.map +1 -1
- package/dist/types/dto/flowUpsert.dto.d.ts +5 -0
- package/dist/types/dto/flowUpsert.dto.d.ts.map +1 -1
- package/dist/types/types/flow.d.ts +3 -1
- package/dist/types/types/flow.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/dto/flowUpsert.dto.ts +4 -2
- package/src/types/flow.ts +1 -1
|
@@ -13,16 +13,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.flowActivateDataDto = exports.flowUpsertDataDto = void 0;
|
|
15
15
|
function flowUpsertDataDto(flow) {
|
|
16
|
-
var _a = flow.data, description = _a.description, label = _a.label, trees = _a.trees;
|
|
17
|
-
var id = flow.id, botId = flow.botId, dateCreated = flow.dateCreated, dateModified = flow.dateModified;
|
|
16
|
+
var _a = flow.data, description = _a.description, label = _a.label, trees = _a.trees, meta = _a.meta;
|
|
17
|
+
var id = flow.id, botId = flow.botId, dateCreated = flow.dateCreated, dateModified = flow.dateModified, isDeleted = flow.isDeleted;
|
|
18
18
|
return {
|
|
19
19
|
id: id,
|
|
20
20
|
botId: botId,
|
|
21
21
|
dateCreated: dateCreated,
|
|
22
22
|
dateModified: dateModified,
|
|
23
|
+
isDeleted: isDeleted,
|
|
23
24
|
description: description,
|
|
24
25
|
label: label,
|
|
25
26
|
trees: trees,
|
|
27
|
+
meta: meta,
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
exports.flowUpsertDataDto = flowUpsertDataDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowUpsert.dto.js","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,SAAgB,iBAAiB,CAAC,IAAc;IACxC,IAAA,
|
|
1
|
+
{"version":3,"file":"flowUpsert.dto.js","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,SAAgB,iBAAiB,CAAC,IAAc;IACxC,IAAA,KAAsC,IAAI,CAAC,IAAI,EAA7C,WAAW,iBAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAc,CAAC;IAC9C,IAAA,EAAE,GAAkD,IAAI,GAAtD,EAAE,KAAK,GAA2C,IAAI,MAA/C,EAAE,WAAW,GAA8B,IAAI,YAAlC,EAAE,YAAY,GAAgB,IAAI,aAApB,EAAE,SAAS,GAAK,IAAI,UAAT,CAAU;IACjE,OAAO;QACL,EAAE,IAAA;QACF,KAAK,OAAA;QACL,WAAW,aAAA;QACX,YAAY,cAAA;QACZ,SAAS,WAAA;QACT,WAAW,aAAA;QACX,KAAK,OAAA;QACL,KAAK,OAAA;QACL,IAAI,MAAA;KACL,CAAC;AACJ,CAAC;AAdD,8CAcC;AAED,SAAgB,mBAAmB,CAAC,IAAc;IAChC,IAAA,KAAe,IAAI,CAAC,IAAI,SAAhB,EAAR,GAAG,mBAAG,EAAE,KAAA,CAAiB;IACzC,oBACK,GAAG,EACN;AACJ,CAAC;AALD,kDAKC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
export function flowUpsertDataDto(flow) {
|
|
2
|
-
const { description, label, trees } = flow.data;
|
|
3
|
-
const { id, botId, dateCreated, dateModified } = flow;
|
|
2
|
+
const { description, label, trees, meta } = flow.data;
|
|
3
|
+
const { id, botId, dateCreated, dateModified, isDeleted } = flow;
|
|
4
4
|
return {
|
|
5
5
|
id,
|
|
6
6
|
botId,
|
|
7
7
|
dateCreated,
|
|
8
8
|
dateModified,
|
|
9
|
+
isDeleted,
|
|
9
10
|
description,
|
|
10
11
|
label,
|
|
11
12
|
trees,
|
|
13
|
+
meta,
|
|
12
14
|
};
|
|
13
15
|
}
|
|
14
16
|
export function flowActivateDataDto(flow) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowUpsert.dto.js","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAC,IAAc;IAC9C,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"flowUpsert.dto.js","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAC,IAAc;IAC9C,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;IACtD,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IACjE,OAAO;QACL,EAAE;QACF,KAAK;QACL,WAAW;QACX,YAAY;QACZ,SAAS;QACT,WAAW;QACX,KAAK;QACL,KAAK;QACL,IAAI;KACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAc;IAChD,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;IACzC,yBACK,GAAG,EACN;AACJ,CAAC"}
|
|
@@ -4,11 +4,16 @@ export declare function flowUpsertDataDto(flow: FlowType): {
|
|
|
4
4
|
botId: string;
|
|
5
5
|
dateCreated: number;
|
|
6
6
|
dateModified: number;
|
|
7
|
+
isDeleted: boolean;
|
|
7
8
|
description: string;
|
|
8
9
|
label: string;
|
|
9
10
|
trees: {
|
|
10
11
|
[key: string]: import("@or-sdk/deployer").Tree;
|
|
11
12
|
};
|
|
13
|
+
meta: {
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
idw?: import("@or-sdk/deployer").IDWFlowMeta | undefined;
|
|
16
|
+
};
|
|
12
17
|
};
|
|
13
18
|
export declare function flowActivateDataDto(flow: FlowType): {
|
|
14
19
|
channel?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowUpsert.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"flowUpsert.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ;;;;;;;;;;;;;;;EAc/C;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ;;;EAKjD"}
|
|
@@ -15,6 +15,8 @@ export interface Flow {
|
|
|
15
15
|
export interface FlowWithRelationshipStatus extends Flow {
|
|
16
16
|
isRelationshipActive: boolean;
|
|
17
17
|
}
|
|
18
|
-
export type FlowUpsertData = ReturnType<typeof flowUpsertDataDto
|
|
18
|
+
export type FlowUpsertData = ReturnType<typeof flowUpsertDataDto> & {
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
19
21
|
export type FlowActivateData = ReturnType<typeof flowActivateDataDto>;
|
|
20
22
|
//# sourceMappingURL=flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/types/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mB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AC,EAAE,EAAE,MAAM,CAAC;CAAC,CAAC;AAClF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { Flow as FlowType } from '@or-sdk/deployer';
|
|
2
2
|
|
|
3
3
|
export function flowUpsertDataDto(flow: FlowType) {
|
|
4
|
-
const { description, label, trees } = flow.data;
|
|
5
|
-
const { id, botId, dateCreated, dateModified } = flow;
|
|
4
|
+
const { description, label, trees, meta } = flow.data;
|
|
5
|
+
const { id, botId, dateCreated, dateModified, isDeleted } = flow;
|
|
6
6
|
return {
|
|
7
7
|
id,
|
|
8
8
|
botId,
|
|
9
9
|
dateCreated,
|
|
10
10
|
dateModified,
|
|
11
|
+
isDeleted,
|
|
11
12
|
description,
|
|
12
13
|
label,
|
|
13
14
|
trees,
|
|
15
|
+
meta,
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
|
package/src/types/flow.ts
CHANGED
|
@@ -18,5 +18,5 @@ export interface FlowWithRelationshipStatus extends Flow {
|
|
|
18
18
|
isRelationshipActive: boolean;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export type FlowUpsertData = ReturnType<typeof flowUpsertDataDto
|
|
21
|
+
export type FlowUpsertData = ReturnType<typeof flowUpsertDataDto> & {id: string;};
|
|
22
22
|
export type FlowActivateData = ReturnType<typeof flowActivateDataDto>;
|