@or-sdk/idw 4.0.1-beta.1716.0 → 4.0.1-beta.1718.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.
@@ -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,KAAgC,IAAI,CAAC,IAAI,EAAvC,WAAW,iBAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAc,CAAC;IACxC,IAAA,EAAE,GAAuC,IAAI,GAA3C,EAAE,KAAK,GAAgC,IAAI,MAApC,EAAE,WAAW,GAAmB,IAAI,YAAvB,EAAE,YAAY,GAAK,IAAI,aAAT,CAAU;IACtD,OAAO;QACL,EAAE,IAAA;QACF,KAAK,OAAA;QACL,WAAW,aAAA;QACX,YAAY,cAAA;QACZ,WAAW,aAAA;QACX,KAAK,OAAA;QACL,KAAK,OAAA;KACN,CAAC;AACJ,CAAC;AAZD,8CAYC;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
+ {"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"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./flowUpsert.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
package/dist/cjs/index.js CHANGED
@@ -18,4 +18,5 @@ exports.IdwApi = void 0;
18
18
  __exportStar(require("./types"), exports);
19
19
  var idwApi_1 = require("./idwApi");
20
20
  Object.defineProperty(exports, "IdwApi", { enumerable: true, get: function () { return idwApi_1.IdwApi; } });
21
+ __exportStar(require("./dto"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,wCAAsB"}
@@ -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;IAChD,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACtD,OAAO;QACL,EAAE;QACF,KAAK;QACL,WAAW;QACX,YAAY;QACZ,WAAW;QACX,KAAK;QACL,KAAK;KACN,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"}
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"}
@@ -0,0 +1,2 @@
1
+ export * from './flowUpsert.dto';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './types';
2
2
  export { IdwApi } from './idwApi';
3
+ export * from './dto';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,OAAO,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;;;;;;;;;;EAY/C;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ;;;EAKjD"}
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"}
@@ -0,0 +1,2 @@
1
+ export * from './flowUpsert.dto';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './types';
2
2
  export { IdwApi } from './idwApi';
3
+ export * from './dto';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,OAAO,CAAC"}
@@ -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,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI;IACtD,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/types/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI;IACtD,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,GAAG;IAAC,EAAE,EAAE,MAAM,CAAC;CAAC,CAAC;AAClF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.1-beta.1716.0",
2
+ "version": "4.0.1-beta.1718.0",
3
3
  "name": "@or-sdk/idw",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
@@ -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
 
@@ -0,0 +1 @@
1
+ export * from './flowUpsert.dto';
package/src/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './types';
2
2
  export { IdwApi } from './idwApi';
3
+ export * from './dto';
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>;