@or-sdk/idw 4.1.0-beta.1744.0 → 4.1.0-beta.1745.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.
Files changed (39) hide show
  1. package/dist/cjs/api/index.js +1 -3
  2. package/dist/cjs/api/index.js.map +1 -1
  3. package/dist/cjs/idwApi.js +0 -1
  4. package/dist/cjs/idwApi.js.map +1 -1
  5. package/dist/cjs/types/index.js +0 -1
  6. package/dist/cjs/types/index.js.map +1 -1
  7. package/dist/esm/api/index.js +0 -1
  8. package/dist/esm/api/index.js.map +1 -1
  9. package/dist/esm/idwApi.js +1 -2
  10. package/dist/esm/idwApi.js.map +1 -1
  11. package/dist/esm/types/index.js +0 -1
  12. package/dist/esm/types/index.js.map +1 -1
  13. package/dist/types/api/index.d.ts +0 -1
  14. package/dist/types/api/index.d.ts.map +1 -1
  15. package/dist/types/idwApi.d.ts +1 -2
  16. package/dist/types/idwApi.d.ts.map +1 -1
  17. package/dist/types/types/idwInfo.d.ts +1 -0
  18. package/dist/types/types/idwInfo.d.ts.map +1 -1
  19. package/dist/types/types/index.d.ts +0 -1
  20. package/dist/types/types/index.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/src/api/index.ts +0 -1
  23. package/src/idwApi.ts +1 -12
  24. package/src/types/idwInfo.ts +1 -0
  25. package/src/types/index.ts +0 -1
  26. package/dist/cjs/api/domainApi.js +0 -144
  27. package/dist/cjs/api/domainApi.js.map +0 -1
  28. package/dist/cjs/types/domain.js +0 -3
  29. package/dist/cjs/types/domain.js.map +0 -1
  30. package/dist/esm/api/domainApi.js +0 -139
  31. package/dist/esm/api/domainApi.js.map +0 -1
  32. package/dist/esm/types/domain.js +0 -2
  33. package/dist/esm/types/domain.js.map +0 -1
  34. package/dist/types/api/domainApi.d.ts +0 -22
  35. package/dist/types/api/domainApi.d.ts.map +0 -1
  36. package/dist/types/types/domain.d.ts +0 -27
  37. package/dist/types/types/domain.d.ts.map +0 -1
  38. package/src/api/domainApi.ts +0 -235
  39. package/src/types/domain.ts +0 -15
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FlowApi = exports.IdwRwcApi = exports.IdwDbApi = exports.IdwInfoApi = exports.MigrationApi = exports.DomainApi = exports.ChannelApi = exports.MemoryApi = exports.SkillApi = void 0;
3
+ exports.FlowApi = exports.IdwRwcApi = exports.IdwDbApi = exports.IdwInfoApi = exports.MigrationApi = exports.ChannelApi = exports.MemoryApi = exports.SkillApi = void 0;
4
4
  var skillApi_1 = require("./skillApi");
5
5
  Object.defineProperty(exports, "SkillApi", { enumerable: true, get: function () { return skillApi_1.SkillApi; } });
6
6
  var memoryApi_1 = require("./memoryApi");
7
7
  Object.defineProperty(exports, "MemoryApi", { enumerable: true, get: function () { return memoryApi_1.MemoryApi; } });
8
8
  var channelApi_1 = require("./channelApi");
9
9
  Object.defineProperty(exports, "ChannelApi", { enumerable: true, get: function () { return channelApi_1.ChannelApi; } });
10
- var domainApi_1 = require("./domainApi");
11
- Object.defineProperty(exports, "DomainApi", { enumerable: true, get: function () { return domainApi_1.DomainApi; } });
12
10
  var migrationApi_1 = require("./migrationApi");
13
11
  Object.defineProperty(exports, "MigrationApi", { enumerable: true, get: function () { return migrationApi_1.MigrationApi; } });
14
12
  var idwInfoApi_1 = require("./idwInfoApi");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
@@ -15,7 +15,6 @@ var IdwApi = (function () {
15
15
  this.skillApi = new api_1.SkillApi(provider);
16
16
  this.memoryApi = new api_1.MemoryApi(provider);
17
17
  this.channelApi = new api_1.ChannelApi(provider);
18
- this.domainApi = new api_1.DomainApi(provider);
19
18
  this.migrationApi = new api_1.MigrationApi(provider);
20
19
  this.idwInfoApi = new api_1.IdwInfoApi(provider);
21
20
  this.idwDbApi = new api_1.IdwDbApi(provider);
@@ -1 +1 @@
1
- {"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":";;;AAEA,6BASe;AACf,+CAA8C;AAC9C,yCAAwC;AAExC;IAUE,gBAAY,EAAkD;YAAhD,iBAAiB,uBAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA;QAC3C,IAAM,QAAQ,GAAG,IAAI,qBAAS,CAAC;YAC7B,KAAK,OAAA;YACL,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,iBAAiB;SACtC,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAQ,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,eAAS,CAAC,QAAQ,CAAC,C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C;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAQ,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,eAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;IACH,aAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,wBAAM"}
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./skill"), exports);
18
18
  __exportStar(require("./channel"), exports);
19
- __exportStar(require("./domain"), exports);
20
19
  __exportStar(require("./config"), exports);
21
20
  __exportStar(require("./common"), exports);
22
21
  __exportStar(require("./flow"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB"}
@@ -1,7 +1,6 @@
1
1
  export { SkillApi } from './skillApi';
2
2
  export { MemoryApi } from './memoryApi';
3
3
  export { ChannelApi } from './channelApi';
4
- export { DomainApi } from './domainApi';
5
4
  export { MigrationApi } from './migrationApi';
6
5
  export { IdwInfoApi } from './idwInfoApi';
7
6
  export { IdwDbApi } from './idwDbApi';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi, DomainApi, } from './api';
1
+ import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi } from './api';
2
2
  import { Providers } from '@or-sdk/providers';
3
3
  import { FlowApi } from './api/flowApi';
4
4
  export class IdwApi {
@@ -11,7 +11,6 @@ export class IdwApi {
11
11
  this.skillApi = new SkillApi(provider);
12
12
  this.memoryApi = new MemoryApi(provider);
13
13
  this.channelApi = new ChannelApi(provider);
14
- this.domainApi = new DomainApi(provider);
15
14
  this.migrationApi = new MigrationApi(provider);
16
15
  this.idwInfoApi = new IdwInfoApi(provider);
17
16
  this.idwDbApi = new IdwDbApi(provider);
@@ -1 +1 @@
1
- {"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,OAAO,MAAM;IAUjB,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,EAAiB;QAC5D,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC;YAC7B,KAAK;YACL,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,iBAAiB;SACtC,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;CACF"}
1
+ {"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,OAAO,MAAM;IASjB,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,EAAiB;QAC5D,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC;YAC7B,KAAK;YACL,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,iBAAiB;SACtC,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;CACF"}
@@ -1,6 +1,5 @@
1
1
  export * from './skill';
2
2
  export * from './channel';
3
- export * from './domain';
4
3
  export * from './config';
5
4
  export * from './common';
6
5
  export * from './flow';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export { SkillApi } from './skillApi';
2
2
  export { MemoryApi } from './memoryApi';
3
3
  export { ChannelApi } from './channelApi';
4
- export { DomainApi } from './domainApi';
5
4
  export { MigrationApi } from './migrationApi';
6
5
  export { IdwInfoApi } from './idwInfoApi';
7
6
  export { IdwDbApi } from './idwDbApi';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import { IDWBaseConfig } from './types';
2
- import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi, DomainApi } from './api';
2
+ import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi } from './api';
3
3
  import { FlowApi } from './api/flowApi';
4
4
  export declare class IdwApi {
5
5
  readonly skillApi: SkillApi;
6
6
  readonly memoryApi: MemoryApi;
7
7
  readonly channelApi: ChannelApi;
8
- readonly domainApi: DomainApi;
9
8
  readonly migrationApi: MigrationApi;
10
9
  readonly idwInfoApi: IdwInfoApi;
11
10
  readonly idwDbApi: IdwDbApi;
@@ -1 +1 @@
1
- {"version":3,"file":"idwApi.d.ts","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,SA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C,OAAO,EAAE,OAAO,CAAC;gBACd,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,aAAa;CAgB/D"}
@@ -11,6 +11,7 @@ export interface IdwInfoWithStatistic extends IdwBaseInfo, ActiveFlowTotalCounte
11
11
  totalChannelSteps: number;
12
12
  }
13
13
  export interface IdwBaseInfo {
14
+ slug?: string;
14
15
  name?: string;
15
16
  role?: string;
16
17
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"idwInfo.d.ts","sourceRoot":"","sources":["../../../src/types/idwInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAErE,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,sBAAsB,EAAE,iBAAiB;IAClG,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"idwInfo.d.ts","sourceRoot":"","sources":["../../../src/types/idwInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAErE,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,sBAAsB,EAAE,iBAAiB;IAClG,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,6 +1,5 @@
1
1
  export * from './skill';
2
2
  export * from './channel';
3
- export * from './domain';
4
3
  export * from './config';
5
4
  export * from './common';
6
5
  export * from './flow';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.1.0-beta.1744.0",
2
+ "version": "4.1.0-beta.1745.0",
3
3
  "name": "@or-sdk/idw",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
package/src/api/index.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export { SkillApi } from './skillApi';
2
2
  export { MemoryApi } from './memoryApi';
3
3
  export { ChannelApi } from './channelApi';
4
- export { DomainApi } from './domainApi';
5
4
  export { MigrationApi } from './migrationApi';
6
5
  export { IdwInfoApi } from './idwInfoApi';
7
6
  export { IdwDbApi } from './idwDbApi';
package/src/idwApi.ts CHANGED
@@ -1,15 +1,6 @@
1
1
  import { IDWBaseConfig } from './types';
2
2
 
3
- import {
4
- IdwDbApi,
5
- IdwInfoApi,
6
- IdwRwcApi,
7
- MigrationApi,
8
- SkillApi,
9
- MemoryApi,
10
- ChannelApi,
11
- DomainApi,
12
- } from './api';
3
+ import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi } from './api';
13
4
  import { Providers } from '@or-sdk/providers';
14
5
  import { FlowApi } from './api/flowApi';
15
6
 
@@ -17,7 +8,6 @@ export class IdwApi {
17
8
  readonly skillApi: SkillApi;
18
9
  readonly memoryApi: MemoryApi;
19
10
  readonly channelApi: ChannelApi;
20
- readonly domainApi: DomainApi;
21
11
  readonly migrationApi: MigrationApi;
22
12
  readonly idwInfoApi: IdwInfoApi;
23
13
  readonly idwDbApi: IdwDbApi;
@@ -33,7 +23,6 @@ export class IdwApi {
33
23
  this.skillApi = new SkillApi(provider);
34
24
  this.memoryApi = new MemoryApi(provider);
35
25
  this.channelApi = new ChannelApi(provider);
36
- this.domainApi = new DomainApi(provider);
37
26
  this.migrationApi = new MigrationApi(provider);
38
27
  this.idwInfoApi = new IdwInfoApi(provider);
39
28
  this.idwDbApi = new IdwDbApi(provider);
@@ -13,6 +13,7 @@ export interface IdwInfoWithStatistic extends IdwBaseInfo, ActiveFlowTotalCounte
13
13
  }
14
14
 
15
15
  export interface IdwBaseInfo {
16
+ slug?: string;
16
17
  name?: string;
17
18
  role?: string;
18
19
  description?: string;
@@ -1,6 +1,5 @@
1
1
  export * from './skill';
2
2
  export * from './channel';
3
- export * from './domain';
4
3
  export * from './config';
5
4
  export * from './common';
6
5
  export * from './flow';
@@ -1,144 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DomainApi = void 0;
4
- var helpers_1 = require("../helpers");
5
- var DomainApi = (function () {
6
- function DomainApi(providers) {
7
- this.providers = providers;
8
- }
9
- DomainApi.prototype.getDomain = function (id) {
10
- return this.providers.makeRequest({
11
- route: (0, helpers_1.buildRoute)('domain'),
12
- params: {
13
- id: id,
14
- },
15
- });
16
- };
17
- DomainApi.prototype.getAllDomains = function () {
18
- return this.providers.makeRequest({
19
- route: (0, helpers_1.buildRoute)('domains'),
20
- });
21
- };
22
- DomainApi.prototype.deleteDomain = function (id) {
23
- return this.providers.makeRequest({
24
- route: (0, helpers_1.buildRoute)('domain'),
25
- method: 'DELETE',
26
- params: {
27
- id: id,
28
- },
29
- });
30
- };
31
- DomainApi.prototype.deleteAllDomains = function () {
32
- return this.providers.makeRequest({
33
- route: (0, helpers_1.buildRoute)('domains'),
34
- method: 'DELETE',
35
- });
36
- };
37
- DomainApi.prototype.updateDomain = function (id, data) {
38
- return this.providers.makeRequest({
39
- route: (0, helpers_1.buildRoute)('domain'),
40
- method: 'PATCH',
41
- data: data,
42
- params: {
43
- id: id,
44
- },
45
- });
46
- };
47
- DomainApi.prototype.createDomain = function (data) {
48
- return this.providers.makeRequest({
49
- route: (0, helpers_1.buildRoute)('domain'),
50
- method: 'POST',
51
- data: data,
52
- });
53
- };
54
- DomainApi.prototype.getDomainChannelList = function (id) {
55
- return this.providers.makeRequest({
56
- route: (0, helpers_1.buildRoute)('domain/channels'),
57
- method: 'GET',
58
- params: {
59
- id: id,
60
- },
61
- });
62
- };
63
- DomainApi.prototype.getDomainSkillList = function (id) {
64
- return this.providers.makeRequest({
65
- route: (0, helpers_1.buildRoute)('domain/skills'),
66
- method: 'GET',
67
- params: {
68
- id: id,
69
- },
70
- });
71
- };
72
- DomainApi.prototype.getDomainMemoryList = function (id) {
73
- return this.providers.makeRequest({
74
- route: (0, helpers_1.buildRoute)('domain/memories'),
75
- method: 'GET',
76
- params: {
77
- id: id,
78
- },
79
- });
80
- };
81
- DomainApi.prototype.attachChannels = function (id, data) {
82
- return this.providers.makeRequest({
83
- route: (0, helpers_1.buildRoute)('domain/channels'),
84
- method: 'POST',
85
- data: data,
86
- params: {
87
- domainId: id,
88
- },
89
- });
90
- };
91
- DomainApi.prototype.attachSkills = function (id, data) {
92
- return this.providers.makeRequest({
93
- route: (0, helpers_1.buildRoute)('domain/skills'),
94
- method: 'POST',
95
- data: data,
96
- params: {
97
- domainId: id,
98
- },
99
- });
100
- };
101
- DomainApi.prototype.attachMemories = function (id, data) {
102
- return this.providers.makeRequest({
103
- route: (0, helpers_1.buildRoute)('domain/memories'),
104
- method: 'POST',
105
- data: data,
106
- params: {
107
- domainId: id,
108
- },
109
- });
110
- };
111
- DomainApi.prototype.detachChannels = function (id, data) {
112
- return this.providers.makeRequest({
113
- route: (0, helpers_1.buildRoute)('domain/channels'),
114
- method: 'DELETE',
115
- data: data,
116
- params: {
117
- domainId: id,
118
- },
119
- });
120
- };
121
- DomainApi.prototype.detachSkills = function (id, data) {
122
- return this.providers.makeRequest({
123
- route: (0, helpers_1.buildRoute)('domain/skills'),
124
- method: 'DELETE',
125
- data: data,
126
- params: {
127
- domainId: id,
128
- },
129
- });
130
- };
131
- DomainApi.prototype.detachMemories = function (id, data) {
132
- return this.providers.makeRequest({
133
- route: (0, helpers_1.buildRoute)('domain/memories'),
134
- method: 'DELETE',
135
- data: data,
136
- params: {
137
- domainId: id,
138
- },
139
- });
140
- };
141
- return DomainApi;
142
- }());
143
- exports.DomainApi = DomainApi;
144
- //# sourceMappingURL=domainApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domainApi.js","sourceRoot":"","sources":["../../../src/api/domainApi.ts"],"names":[],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@@
1
- {"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../src/types/domain.ts"],"names":[],"mappings":""}
@@ -1,139 +0,0 @@
1
- import { buildRoute } from '../helpers';
2
- export class DomainApi {
3
- constructor(providers) {
4
- this.providers = providers;
5
- }
6
- getDomain(id) {
7
- return this.providers.makeRequest({
8
- route: buildRoute('domain'),
9
- params: {
10
- id,
11
- },
12
- });
13
- }
14
- getAllDomains() {
15
- return this.providers.makeRequest({
16
- route: buildRoute('domains'),
17
- });
18
- }
19
- deleteDomain(id) {
20
- return this.providers.makeRequest({
21
- route: buildRoute('domain'),
22
- method: 'DELETE',
23
- params: {
24
- id,
25
- },
26
- });
27
- }
28
- deleteAllDomains() {
29
- return this.providers.makeRequest({
30
- route: buildRoute('domains'),
31
- method: 'DELETE',
32
- });
33
- }
34
- updateDomain(id, data) {
35
- return this.providers.makeRequest({
36
- route: buildRoute('domain'),
37
- method: 'PATCH',
38
- data,
39
- params: {
40
- id,
41
- },
42
- });
43
- }
44
- createDomain(data) {
45
- return this.providers.makeRequest({
46
- route: buildRoute('domain'),
47
- method: 'POST',
48
- data,
49
- });
50
- }
51
- getDomainChannelList(id) {
52
- return this.providers.makeRequest({
53
- route: buildRoute('domain/channels'),
54
- method: 'GET',
55
- params: {
56
- id,
57
- },
58
- });
59
- }
60
- getDomainSkillList(id) {
61
- return this.providers.makeRequest({
62
- route: buildRoute('domain/skills'),
63
- method: 'GET',
64
- params: {
65
- id,
66
- },
67
- });
68
- }
69
- getDomainMemoryList(id) {
70
- return this.providers.makeRequest({
71
- route: buildRoute('domain/memories'),
72
- method: 'GET',
73
- params: {
74
- id,
75
- },
76
- });
77
- }
78
- attachChannels(id, data) {
79
- return this.providers.makeRequest({
80
- route: buildRoute('domain/channels'),
81
- method: 'POST',
82
- data,
83
- params: {
84
- domainId: id,
85
- },
86
- });
87
- }
88
- attachSkills(id, data) {
89
- return this.providers.makeRequest({
90
- route: buildRoute('domain/skills'),
91
- method: 'POST',
92
- data,
93
- params: {
94
- domainId: id,
95
- },
96
- });
97
- }
98
- attachMemories(id, data) {
99
- return this.providers.makeRequest({
100
- route: buildRoute('domain/memories'),
101
- method: 'POST',
102
- data,
103
- params: {
104
- domainId: id,
105
- },
106
- });
107
- }
108
- detachChannels(id, data) {
109
- return this.providers.makeRequest({
110
- route: buildRoute('domain/channels'),
111
- method: 'DELETE',
112
- data,
113
- params: {
114
- domainId: id,
115
- },
116
- });
117
- }
118
- detachSkills(id, data) {
119
- return this.providers.makeRequest({
120
- route: buildRoute('domain/skills'),
121
- method: 'DELETE',
122
- data,
123
- params: {
124
- domainId: id,
125
- },
126
- });
127
- }
128
- detachMemories(id, data) {
129
- return this.providers.makeRequest({
130
- route: buildRoute('domain/memories'),
131
- method: 'DELETE',
132
- data,
133
- params: {
134
- domainId: id,
135
- },
136
- });
137
- }
138
- }
139
- //# sourceMappingURL=domainApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domainApi.js","sourceRoot":"","sources":["../../../src/api/domainApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiBxC,MAAM,OAAO,SAAS;IACpB,YACmB,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAMJ,SAAS,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;YAC3B,MAAM,EAAE;gBACN,EAAE;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,aAAa;QACX,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC;SAC7B,CAAC,CAAC;IACL,CAAC;IAMD,YAAY,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;YAC3B,MAAM,EAAE,QAAQ;Y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,EAAE,IAAc;QACvC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;YACpC,MAAM,EAAE,QAAQ;YAChB,IAAI;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,EAAE;aACb;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=domain.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../src/types/domain.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { Domain, ListDomains, DomainWithFlows, DomainUpdateData, DomainCreateData, ListChannels, ListSkills, ListMemories, DomainWithEntities, Channel, Skill, Memory } from '../types';
2
- import { Providers } from '@or-sdk/providers';
3
- export declare class DomainApi {
4
- private readonly providers;
5
- constructor(providers: Providers);
6
- getDomain(id: string): Promise<DomainWithFlows>;
7
- getAllDomains(): Promise<ListDomains>;
8
- deleteDomain(id: string): Promise<void>;
9
- deleteAllDomains(): Promise<void>;
10
- updateDomain(id: string, data: DomainUpdateData): Promise<Domain>;
11
- createDomain(data: DomainCreateData): Promise<Domain>;
12
- getDomainChannelList(id: string): Promise<ListChannels>;
13
- getDomainSkillList(id: string): Promise<ListSkills>;
14
- getDomainMemoryList(id: string): Promise<ListMemories>;
15
- attachChannels(id: string, data: string[]): Promise<DomainWithEntities<Channel>>;
16
- attachSkills(id: string, data: string[]): Promise<DomainWithEntities<Skill>>;
17
- attachMemories(id: string, data: string[]): Promise<DomainWithEntities<Memory>>;
18
- detachChannels(id: string, data: string[]): Promise<DomainWithEntities<Channel>>;
19
- detachSkills(id: string, data: string[]): Promise<DomainWithEntities<Skill>>;
20
- detachMemories(id: string, data: string[]): Promise<DomainWithEntities<Memory>>;
21
- }
22
- //# sourceMappingURL=domainApi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domainApi.d.ts","sourceRoot":"","sources":["../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M,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAgB/E,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAgBhF,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAgB5E,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;CAUhF"}
@@ -1,27 +0,0 @@
1
- import { EntityWithStatistic, SimpleNode } from './common';
2
- import { Flow } from './flow';
3
- export type ListDomains = EntityWithStatistic<{
4
- domains: (Domain & {
5
- stepCount: number;
6
- })[];
7
- }>;
8
- export type DomainCreateData = Pick<SimpleNode, 'id' | 'name'>;
9
- export type DomainUpdateData = Partial<DomainCreateData>;
10
- export type Domain = Omit<SimpleNode, 'description' | '__createdAt' | 'icon'>;
11
- export type DomainWithFlows = {
12
- domain: Domain;
13
- flows: Flow[];
14
- };
15
- export type DomainWithEntities<Entity> = {
16
- domain: Domain;
17
- entities: Entity;
18
- };
19
- export type DomainAndDetachedObjects<T> = {
20
- domain: Domain;
21
- objects: T[];
22
- };
23
- export type DomainWithObjects<T> = {
24
- domain: Domain;
25
- objects: T[];
26
- };
27
- //# sourceMappingURL=domain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../src/types/domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAC;IAAE,OAAO,EAAE,CAAC,MAAM,GAAG;QAAE,SAAS,EAAE,MAAM,CAAC;KAAE,CAAC,EAAE,CAAC;CAAC,CAAC,CAAC;AAChG,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;AAC/D,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACzD,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,GAAG,aAAa,GAAG,MAAM,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAC;CAAC,CAAC;AAC/D,MAAM,MAAM,kBAAkB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;CAAE,CAAC;AAC9E,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,CAAC,EAAE,CAAC;CAAE,CAAC;AAE5E,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,EAAE,CAAC;CACd,CAAC"}
@@ -1,235 +0,0 @@
1
- import { buildRoute } from '../helpers';
2
- import {
3
- Domain,
4
- ListDomains,
5
- DomainWithFlows,
6
- DomainUpdateData,
7
- DomainCreateData,
8
- ListChannels,
9
- ListSkills,
10
- ListMemories,
11
- DomainWithEntities,
12
- Channel,
13
- Skill,
14
- Memory,
15
- } from '../types';
16
- import { Providers } from '@or-sdk/providers';
17
-
18
- export class DomainApi {
19
- constructor(
20
- private readonly providers: Providers
21
- ) {}
22
-
23
- /**
24
- * @description Get specific domain
25
- * @param id
26
- */
27
- getDomain(id: string): Promise<DomainWithFlows> {
28
- return this.providers.makeRequest({
29
- route: buildRoute('domain'),
30
- params: {
31
- id,
32
- },
33
- });
34
- }
35
-
36
-
37
- /**
38
- * @description Get all domains
39
- */
40
- getAllDomains(): Promise<ListDomains> {
41
- return this.providers.makeRequest({
42
- route: buildRoute('domains'),
43
- });
44
- }
45
-
46
- /**
47
- * @description Delete specific domain
48
- * @param id
49
- */
50
- deleteDomain(id: string): Promise<void> {
51
- return this.providers.makeRequest({
52
- route: buildRoute('domain'),
53
- method: 'DELETE',
54
- params: {
55
- id,
56
- },
57
- });
58
- }
59
-
60
- /**
61
- * @description Delete all domains
62
- */
63
- deleteAllDomains(): Promise<void> {
64
- return this.providers.makeRequest({
65
- route: buildRoute('domains'),
66
- method: 'DELETE',
67
- });
68
- }
69
-
70
- /**
71
- * @description update specific domain
72
- * @param id
73
- * @param data
74
- */
75
- updateDomain(id: string, data: DomainUpdateData): Promise<Domain> {
76
- return this.providers.makeRequest({
77
- route: buildRoute('domain'),
78
- method: 'PATCH',
79
- data,
80
- params: {
81
- id,
82
- },
83
- });
84
- }
85
-
86
- /**
87
- * @description create domain
88
- * @param data
89
- */
90
- createDomain(data: DomainCreateData): Promise<Domain> {
91
- return this.providers.makeRequest({
92
- route: buildRoute('domain'),
93
- method: 'POST',
94
- data,
95
- });
96
- }
97
-
98
- /**
99
- * @description Get domain's channel list
100
- * @param id Domain's id
101
- */
102
- getDomainChannelList(id: string): Promise<ListChannels> {
103
- return this.providers.makeRequest({
104
- route: buildRoute('domain/channels'),
105
- method: 'GET',
106
- params: {
107
- id,
108
- },
109
- });
110
- }
111
-
112
- /**
113
- * @description Get domain's skill list
114
- * @param id Domain's id
115
- */
116
- getDomainSkillList(id: string): Promise<ListSkills> {
117
- return this.providers.makeRequest({
118
- route: buildRoute('domain/skills'),
119
- method: 'GET',
120
- params: {
121
- id,
122
- },
123
- });
124
- }
125
-
126
- /**
127
- * @description Get domain's memory list
128
- * @param id Domain's id
129
- */
130
- getDomainMemoryList(id: string): Promise<ListMemories> {
131
- return this.providers.makeRequest({
132
- route: buildRoute('domain/memories'),
133
- method: 'GET',
134
- params: {
135
- id,
136
- },
137
- });
138
- }
139
-
140
- /**
141
- * @description Create relationship from domain to the entity
142
- * @param id The domain's id
143
- * @param data The list of id props of channels
144
- */
145
- attachChannels(id: string, data: string[]): Promise<DomainWithEntities<Channel>> {
146
- return this.providers.makeRequest({
147
- route: buildRoute('domain/channels'),
148
- method: 'POST',
149
- data,
150
- params: {
151
- domainId: id,
152
- },
153
- });
154
- }
155
-
156
- /**
157
- * @description Create relationship from domain to the entity
158
- * @param id The domain's id
159
- * @param data The list of id props of skills
160
- */
161
- attachSkills(id: string, data: string[]): Promise<DomainWithEntities<Skill>> {
162
- return this.providers.makeRequest({
163
- route: buildRoute('domain/skills'),
164
- method: 'POST',
165
- data,
166
- params: {
167
- domainId: id,
168
- },
169
- });
170
- }
171
-
172
- /**
173
- * @description Create relationship from domain to the entity
174
- * @param id The domain's id
175
- * @param data The list of id props of memories
176
- */
177
- attachMemories(id: string, data: string[]): Promise<DomainWithEntities<Memory>> {
178
- return this.providers.makeRequest({
179
- route: buildRoute('domain/memories'),
180
- method: 'POST',
181
- data,
182
- params: {
183
- domainId: id,
184
- },
185
- });
186
- }
187
-
188
- /**
189
- * @description Remove relationship from domain to the entity
190
- * @param id The domain's id
191
- * @param data The list of id props of channels
192
- */
193
- detachChannels(id: string, data: string[]): Promise<DomainWithEntities<Channel>> {
194
- return this.providers.makeRequest({
195
- route: buildRoute('domain/channels'),
196
- method: 'DELETE',
197
- data,
198
- params: {
199
- domainId: id,
200
- },
201
- });
202
- }
203
-
204
- /**
205
- * @description Remove relationship from domain to the entity
206
- * @param id The domain's id
207
- * @param data The list of id props of skills
208
- */
209
- detachSkills(id: string, data: string[]): Promise<DomainWithEntities<Skill>> {
210
- return this.providers.makeRequest({
211
- route: buildRoute('domain/skills'),
212
- method: 'DELETE',
213
- data,
214
- params: {
215
- domainId: id,
216
- },
217
- });
218
- }
219
-
220
- /**
221
- * @description Remove relationship from domain to the entity
222
- * @param id The domain's id
223
- * @param data The list of id props of memories
224
- */
225
- detachMemories(id: string, data: string[]): Promise<DomainWithEntities<Memory>> {
226
- return this.providers.makeRequest({
227
- route: buildRoute('domain/memories'),
228
- method: 'DELETE',
229
- data,
230
- params: {
231
- domainId: id,
232
- },
233
- });
234
- }
235
- }
@@ -1,15 +0,0 @@
1
- import { EntityWithStatistic, SimpleNode } from './common';
2
- import { Flow } from './flow';
3
-
4
- export type ListDomains = EntityWithStatistic<{ domains: (Domain & { stepCount: number; })[];}>;
5
- export type DomainCreateData = Pick<SimpleNode, 'id' | 'name'>;
6
- export type DomainUpdateData = Partial<DomainCreateData>;
7
- export type Domain = Omit<SimpleNode, 'description' | '__createdAt' | 'icon'>;
8
- export type DomainWithFlows = {domain: Domain; flows: Flow[];};
9
- export type DomainWithEntities<Entity> = {domain: Domain; entities: Entity; };
10
- export type DomainAndDetachedObjects<T> = { domain: Domain; objects: T[]; };
11
-
12
- export type DomainWithObjects<T> = {
13
- domain: Domain;
14
- objects: T[];
15
- };