@or-sdk/idw 4.1.1-beta.1776.0 → 4.2.0-beta.1784.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 (44) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/api/domainApi.js +57 -0
  3. package/dist/cjs/api/domainApi.js.map +1 -0
  4. package/dist/cjs/api/domainRelationshipApi.js +99 -0
  5. package/dist/cjs/api/domainRelationshipApi.js.map +1 -0
  6. package/dist/cjs/api/index.js +5 -1
  7. package/dist/cjs/api/index.js.map +1 -1
  8. package/dist/cjs/idwApi.js +2 -0
  9. package/dist/cjs/idwApi.js.map +1 -1
  10. package/dist/cjs/types/domain.js +3 -0
  11. package/dist/cjs/types/domain.js.map +1 -0
  12. package/dist/cjs/types/index.js +1 -0
  13. package/dist/cjs/types/index.js.map +1 -1
  14. package/dist/esm/api/domainApi.js +52 -0
  15. package/dist/esm/api/domainApi.js.map +1 -0
  16. package/dist/esm/api/domainRelationshipApi.js +94 -0
  17. package/dist/esm/api/domainRelationshipApi.js.map +1 -0
  18. package/dist/esm/api/index.js +2 -0
  19. package/dist/esm/api/index.js.map +1 -1
  20. package/dist/esm/idwApi.js +3 -1
  21. package/dist/esm/idwApi.js.map +1 -1
  22. package/dist/esm/types/domain.js +2 -0
  23. package/dist/esm/types/domain.js.map +1 -0
  24. package/dist/esm/types/index.js +1 -0
  25. package/dist/esm/types/index.js.map +1 -1
  26. package/dist/types/api/domainApi.d.ts +13 -0
  27. package/dist/types/api/domainApi.d.ts.map +1 -0
  28. package/dist/types/api/domainRelationshipApi.d.ts +28 -0
  29. package/dist/types/api/domainRelationshipApi.d.ts.map +1 -0
  30. package/dist/types/api/index.d.ts +2 -0
  31. package/dist/types/api/index.d.ts.map +1 -1
  32. package/dist/types/idwApi.d.ts +3 -1
  33. package/dist/types/idwApi.d.ts.map +1 -1
  34. package/dist/types/types/domain.d.ts +27 -0
  35. package/dist/types/types/domain.d.ts.map +1 -0
  36. package/dist/types/types/index.d.ts +1 -0
  37. package/dist/types/types/index.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/src/api/domainApi.ts +90 -0
  40. package/src/api/domainRelationshipApi.ts +152 -0
  41. package/src/api/index.ts +2 -0
  42. package/src/idwApi.ts +15 -1
  43. package/src/types/domain.ts +15 -0
  44. package/src/types/index.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.1.1](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.1.0...@or-sdk/idw@4.1.1) (2023-08-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **idw:** initialization status enum type ([5a4d269](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/5a4d2690afd3ba83c536be19f7e8d4c279b07b40))
12
+
13
+
14
+
6
15
  ## [4.1.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.0.3...@or-sdk/idw@4.1.0) (2023-08-30)
7
16
 
8
17
 
@@ -0,0 +1,57 @@
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
+ return DomainApi;
55
+ }());
56
+ exports.DomainApi = DomainApi;
57
+ //# sourceMappingURL=domainApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainApi.js","sourceRoot":"","sources":["../../../src/api/domainApi.ts"],"names":[],"mappings":";;;AAAA,sCAAwC;AAUxC;IACE,mBACmB,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAMJ,6BAAS,GAAT,UAAU,EAAU;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,QAAQ,CAAC;YAC3B,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,iCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,SAAS,CAAC;SAC7B,CAAC,CAAC;IACL,CAAC;IAMD,gCAAY,GAAZ,UAAa,EAAU;QACrB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,QAAQ,CAAC;YAC3B,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,oCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,SAAS,CAAC;YAC5B,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAOD,gCAAY,GAAZ,UAAa,EAAU,EAAE,IAAsB;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,QAAQ,CAAC;YAC3B,MAAM,EAAE,OAAO;YACf,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,gCAAY,GAAZ,UAAa,IAAsB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,QAAQ,CAAC;YAC3B,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IACH,gBAAC;AAAD,CAAC,AA/ED,IA+EC;AA/EY,8BAAS"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DomainRelationshipApi = void 0;
4
+ var helpers_1 = require("../helpers");
5
+ var DomainRelationshipApi = (function () {
6
+ function DomainRelationshipApi(providers) {
7
+ this.providers = providers;
8
+ }
9
+ DomainRelationshipApi.prototype.getDomainChannelList = function (id) {
10
+ return this.providers.makeRequest({
11
+ route: (0, helpers_1.buildRoute)('domain/channels'),
12
+ method: 'GET',
13
+ params: {
14
+ id: id,
15
+ },
16
+ });
17
+ };
18
+ DomainRelationshipApi.prototype.getDomainSkillList = function (id) {
19
+ return this.providers.makeRequest({
20
+ route: (0, helpers_1.buildRoute)('domain/skills'),
21
+ method: 'GET',
22
+ params: {
23
+ id: id,
24
+ },
25
+ });
26
+ };
27
+ DomainRelationshipApi.prototype.getDomainMemoryList = function (id) {
28
+ return this.providers.makeRequest({
29
+ route: (0, helpers_1.buildRoute)('domain/memories'),
30
+ method: 'GET',
31
+ params: {
32
+ id: id,
33
+ },
34
+ });
35
+ };
36
+ DomainRelationshipApi.prototype.attachChannels = function (id, data) {
37
+ return this.providers.makeRequest({
38
+ route: (0, helpers_1.buildRoute)('domain/channels'),
39
+ method: 'POST',
40
+ data: data,
41
+ params: {
42
+ domainId: id,
43
+ },
44
+ });
45
+ };
46
+ DomainRelationshipApi.prototype.attachSkills = function (id, data) {
47
+ return this.providers.makeRequest({
48
+ route: (0, helpers_1.buildRoute)('domain/skills'),
49
+ method: 'POST',
50
+ data: data,
51
+ params: {
52
+ domainId: id,
53
+ },
54
+ });
55
+ };
56
+ DomainRelationshipApi.prototype.attachMemories = function (id, data) {
57
+ return this.providers.makeRequest({
58
+ route: (0, helpers_1.buildRoute)('domain/memories'),
59
+ method: 'POST',
60
+ data: data,
61
+ params: {
62
+ domainId: id,
63
+ },
64
+ });
65
+ };
66
+ DomainRelationshipApi.prototype.detachChannels = function (id, data) {
67
+ return this.providers.makeRequest({
68
+ route: (0, helpers_1.buildRoute)('domain/channels'),
69
+ method: 'DELETE',
70
+ data: data,
71
+ params: {
72
+ domainId: id,
73
+ },
74
+ });
75
+ };
76
+ DomainRelationshipApi.prototype.detachSkills = function (id, data) {
77
+ return this.providers.makeRequest({
78
+ route: (0, helpers_1.buildRoute)('domain/skills'),
79
+ method: 'DELETE',
80
+ data: data,
81
+ params: {
82
+ domainId: id,
83
+ },
84
+ });
85
+ };
86
+ DomainRelationshipApi.prototype.detachMemories = function (id, data) {
87
+ return this.providers.makeRequest({
88
+ route: (0, helpers_1.buildRoute)('domain/memories'),
89
+ method: 'DELETE',
90
+ data: data,
91
+ params: {
92
+ domainId: id,
93
+ },
94
+ });
95
+ };
96
+ return DomainRelationshipApi;
97
+ }());
98
+ exports.DomainRelationshipApi = DomainRelationshipApi;
99
+ //# sourceMappingURL=domainRelationshipApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainRelationshipApi.js","sourceRoot":"","sources":["../../../src/api/domainRelationshipApi.ts"],"names":[],"mappings":";;;AAAA,sCAAwC;AASxC;IACE,+BACmB,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAMJ,oDAAoB,GAApB,UAAqB,EAAU;QAC7B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,iBAAiB,CAAC;YACpC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,kDAAkB,GAAlB,UAAmB,EAAU;QAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,eAAe,CAAC;YAClC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,mDAAmB,GAAnB,UAAoB,EAAU;QAC5B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,iBAAiB,CAAC;YACpC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAOD,8CAAc,GAAd,UAAe,EAAU,EAAE,IAAsB;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAA,oBAAU,EAAC,iBAAiB,CAAC;YACpC,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,EAAE;aACb;SACF,CAAC,CAAC;IACL,CAAC;IAOD,4CAAY,GAAZ,UAAa,EAAU,EAAE,IAAsB;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAA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AC;AAAD,CAAC,AA9ID,IA8IC;AA9IY,sDAAqB"}
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FlowApi = exports.IdwRwcApi = exports.IdwDbApi = exports.IdwInfoApi = exports.MigrationApi = exports.ChannelApi = exports.MemoryApi = exports.SkillApi = void 0;
3
+ exports.FlowApi = exports.IdwRwcApi = exports.IdwDbApi = exports.IdwInfoApi = exports.MigrationApi = exports.DomainRelationshipApi = exports.DomainApi = 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
+ var domainRelationshipApi_1 = require("./domainRelationshipApi");
13
+ Object.defineProperty(exports, "DomainRelationshipApi", { enumerable: true, get: function () { return domainRelationshipApi_1.DomainRelationshipApi; } });
10
14
  var migrationApi_1 = require("./migrationApi");
11
15
  Object.defineProperty(exports, "MigrationApi", { enumerable: true, get: function () { return migrationApi_1.MigrationApi; } });
12
16
  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,+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,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,+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,6 +15,8 @@ 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
+ this.domainRelationshipApi = new api_1.DomainRelationshipApi(provider);
18
20
  this.migrationApi = new api_1.MigrationApi(provider);
19
21
  this.idwInfoApi = new api_1.IdwInfoApi(provider);
20
22
  this.idwDbApi = new api_1.IdwDbApi(provider);
@@ -1 +1 @@
1
- {"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":";;;AAEA,6BAAuG;AACvG,+CAA8C;AAC9C,yCAAwC;AAExC;IASE,gBAAY,EAAkD;YAAhD,iBAAiB,uBAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA;QAC3C,IAAM,QAAQ,GAAG,IAAI,qBAA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AAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,eAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,qBAAqB,GAAG,IAAI,2BAAqB,CAAC,QAAQ,CAAC,CAAC;QACjE,IAAI,CAAC,YAAY,GAAG,IAAI,kBAAY,CAAC,QAAQ,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,IAAI,gBAAU,CAAC,QAAQ,CAAC,CAAC;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,AA7BD,IA6BC;AA7BY,wBAAM"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=domain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../src/types/domain.ts"],"names":[],"mappings":""}
@@ -16,6 +16,7 @@ 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);
19
20
  __exportStar(require("./config"), exports);
20
21
  __exportStar(require("./common"), exports);
21
22
  __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,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,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB"}
@@ -0,0 +1,52 @@
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
+ }
52
+ //# sourceMappingURL=domainApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainApi.js","sourceRoot":"","sources":["../../../src/api/domainApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAUxC,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;YAChB,MAAM,EAAE;gBACN,EAAE;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,gBAAgB;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC;YAC5B,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAOD,YAAY,CAAC,EAAU,EAAE,IAAsB;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;YAC3B,MAAM,EAAE,OAAO;YACf,IAAI;YACJ,MAAM,EAAE;gBACN,EAAE;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,YAAY,CAAC,IAAsB;QACjC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;YAC3B,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,94 @@
1
+ import { buildRoute } from '../helpers';
2
+ export class DomainRelationshipApi {
3
+ constructor(providers) {
4
+ this.providers = providers;
5
+ }
6
+ getDomainChannelList(id) {
7
+ return this.providers.makeRequest({
8
+ route: buildRoute('domain/channels'),
9
+ method: 'GET',
10
+ params: {
11
+ id,
12
+ },
13
+ });
14
+ }
15
+ getDomainSkillList(id) {
16
+ return this.providers.makeRequest({
17
+ route: buildRoute('domain/skills'),
18
+ method: 'GET',
19
+ params: {
20
+ id,
21
+ },
22
+ });
23
+ }
24
+ getDomainMemoryList(id) {
25
+ return this.providers.makeRequest({
26
+ route: buildRoute('domain/memories'),
27
+ method: 'GET',
28
+ params: {
29
+ id,
30
+ },
31
+ });
32
+ }
33
+ attachChannels(id, data) {
34
+ return this.providers.makeRequest({
35
+ route: buildRoute('domain/channels'),
36
+ method: 'POST',
37
+ data,
38
+ params: {
39
+ domainId: id,
40
+ },
41
+ });
42
+ }
43
+ attachSkills(id, data) {
44
+ return this.providers.makeRequest({
45
+ route: buildRoute('domain/skills'),
46
+ method: 'POST',
47
+ data,
48
+ params: {
49
+ domainId: id,
50
+ },
51
+ });
52
+ }
53
+ attachMemories(id, data) {
54
+ return this.providers.makeRequest({
55
+ route: buildRoute('domain/memories'),
56
+ method: 'POST',
57
+ data,
58
+ params: {
59
+ domainId: id,
60
+ },
61
+ });
62
+ }
63
+ detachChannels(id, data) {
64
+ return this.providers.makeRequest({
65
+ route: buildRoute('domain/channels'),
66
+ method: 'DELETE',
67
+ data,
68
+ params: {
69
+ domainId: id,
70
+ },
71
+ });
72
+ }
73
+ detachSkills(id, data) {
74
+ return this.providers.makeRequest({
75
+ route: buildRoute('domain/skills'),
76
+ method: 'DELETE',
77
+ data,
78
+ params: {
79
+ domainId: id,
80
+ },
81
+ });
82
+ }
83
+ detachMemories(id, data) {
84
+ return this.providers.makeRequest({
85
+ route: buildRoute('domain/memories'),
86
+ method: 'DELETE',
87
+ data,
88
+ params: {
89
+ domainId: id,
90
+ },
91
+ });
92
+ }
93
+ }
94
+ //# sourceMappingURL=domainRelationshipApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainRelationshipApi.js","sourceRoot":"","sources":["../../../src/api/domainRelationshipApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAS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,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;YACpC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,EAAE;aACb;SACF,CAAC,CAAC;IACL,CAAC;IAOD,cAAc,CAAC,EAAU,EAAE,IAAsB;QAC/C,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;IAOD,YAAY,CAAC,EAAU,EAAE,IAAsB;QAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,UAAU,CAAC,eAAe,CAAC;YAClC,MAAM,EAAE,QAAQ;YAChB,IAAI;YACJ,MAAM,EAAE;gBACN,QAAQ,EAAE,EAAE;aACb;SACF,CAAC,CAAC;IACL,CAAC;IAOD,cAAc,CAAC,EAAU,EAAE,IAAsB;QAC/C,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,6 +1,8 @@
1
1
  export { SkillApi } from './skillApi';
2
2
  export { MemoryApi } from './memoryApi';
3
3
  export { ChannelApi } from './channelApi';
4
+ export { DomainApi } from './domainApi';
5
+ export { DomainRelationshipApi } from './domainRelationshipApi';
4
6
  export { MigrationApi } from './migrationApi';
5
7
  export { IdwInfoApi } from './idwInfoApi';
6
8
  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,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,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,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 } from './api';
1
+ import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi, DomainApi, DomainRelationshipApi, } from './api';
2
2
  import { Providers } from '@or-sdk/providers';
3
3
  import { FlowApi } from './api/flowApi';
4
4
  export class IdwApi {
@@ -11,6 +11,8 @@ 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
+ this.domainRelationshipApi = new DomainRelationshipApi(provider);
14
16
  this.migrationApi = new MigrationApi(provider);
15
17
  this.idwInfoApi = new IdwInfoApi(provider);
16
18
  this.idwDbApi = new IdwDbApi(provider);
@@ -1 +1 @@
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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CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=domain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../src/types/domain.ts"],"names":[],"mappings":""}
@@ -1,5 +1,6 @@
1
1
  export * from './skill';
2
2
  export * from './channel';
3
+ export * from './domain';
3
4
  export * from './config';
4
5
  export * from './common';
5
6
  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,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,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Domain, ListDomains, DomainWithFlows, DomainUpdateData, DomainCreateData } 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
+ }
13
+ //# sourceMappingURL=domainApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainApi.d.ts","sourceRoot":"","sources":["../../../src/api/domainApi.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,qBAAa,SAAS;IAElB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAOvC,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAa/C,aAAa,IAAI,OAAO,CAAC,WAAW,CAAC;IAUrC,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAavC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYjC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAejE,YAAY,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;CAOtD"}
@@ -0,0 +1,28 @@
1
+ import { Channel, Skill, Memory, DomainWithObjects } from '../types';
2
+ import { Providers } from '@or-sdk/providers';
3
+ export declare class DomainRelationshipApi {
4
+ private readonly providers;
5
+ constructor(providers: Providers);
6
+ getDomainChannelList(id: string): Promise<Channel[]>;
7
+ getDomainSkillList(id: string): Promise<Skill[]>;
8
+ getDomainMemoryList(id: string): Promise<Memory[]>;
9
+ attachChannels(id: string, data: {
10
+ ids: string;
11
+ }): Promise<DomainWithObjects<Channel>>;
12
+ attachSkills(id: string, data: {
13
+ ids: string;
14
+ }): Promise<DomainWithObjects<Skill>>;
15
+ attachMemories(id: string, data: {
16
+ ids: string;
17
+ }): Promise<DomainWithObjects<Memory>>;
18
+ detachChannels(id: string, data: {
19
+ ids: string;
20
+ }): Promise<DomainWithObjects<Channel>>;
21
+ detachSkills(id: string, data: {
22
+ ids: string;
23
+ }): Promise<DomainWithObjects<Skill>>;
24
+ detachMemories(id: string, data: {
25
+ ids: string;
26
+ }): Promise<DomainWithObjects<Memory>>;
27
+ }
28
+ //# sourceMappingURL=domainRelationshipApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainRelationshipApi.d.ts","sourceRoot":"","sources":["../../../src/api/domainRelationshipApi.ts"],"names":[],"mappings":"AACA,OAAO,EACL,OAAO,EACP,KAAK,EACL,MAAM,EACN,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAOvC,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAcpD,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAchD,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAelD,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAgBvF,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAgBnF,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAgBtF,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAgBvF,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAgBnF,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;CAUvF"}
@@ -1,6 +1,8 @@
1
1
  export { SkillApi } from './skillApi';
2
2
  export { MemoryApi } from './memoryApi';
3
3
  export { ChannelApi } from './channelApi';
4
+ export { DomainApi } from './domainApi';
5
+ export { DomainRelationshipApi } from './domainRelationshipApi';
4
6
  export { MigrationApi } from './migrationApi';
5
7
  export { IdwInfoApi } from './idwInfoApi';
6
8
  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,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,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,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,10 +1,12 @@
1
1
  import { IDWBaseConfig } from './types';
2
- import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi } from './api';
2
+ import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi, DomainApi, DomainRelationshipApi } 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
+ readonly domainRelationshipApi: DomainRelationshipApi;
8
10
  readonly migrationApi: MigrationApi;
9
11
  readonly idwInfoApi: IdwInfoApi;
10
12
  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,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,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C;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;gBACd,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,aAAa;CAkB/D"}
@@ -0,0 +1,27 @@
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
@@ -0,0 +1 @@
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,5 +1,6 @@
1
1
  export * from './skill';
2
2
  export * from './channel';
3
+ export * from './domain';
3
4
  export * from './config';
4
5
  export * from './common';
5
6
  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,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,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.1-beta.1776.0",
2
+ "version": "4.2.0-beta.1784.0",
3
3
  "name": "@or-sdk/idw",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
@@ -0,0 +1,90 @@
1
+ import { buildRoute } from '../helpers';
2
+ import {
3
+ Domain,
4
+ ListDomains,
5
+ DomainWithFlows,
6
+ DomainUpdateData,
7
+ DomainCreateData,
8
+ } from '../types';
9
+ import { Providers } from '@or-sdk/providers';
10
+
11
+ export class DomainApi {
12
+ constructor(
13
+ private readonly providers: Providers
14
+ ) {}
15
+
16
+ /**
17
+ * @description Get specific domain
18
+ * @param id
19
+ */
20
+ getDomain(id: string): Promise<DomainWithFlows> {
21
+ return this.providers.makeRequest({
22
+ route: buildRoute('domain'),
23
+ params: {
24
+ id,
25
+ },
26
+ });
27
+ }
28
+
29
+
30
+ /**
31
+ * @description Get all domains
32
+ */
33
+ getAllDomains(): Promise<ListDomains> {
34
+ return this.providers.makeRequest({
35
+ route: buildRoute('domains'),
36
+ });
37
+ }
38
+
39
+ /**
40
+ * @description Delete specific domain
41
+ * @param id
42
+ */
43
+ deleteDomain(id: string): Promise<void> {
44
+ return this.providers.makeRequest({
45
+ route: buildRoute('domain'),
46
+ method: 'DELETE',
47
+ params: {
48
+ id,
49
+ },
50
+ });
51
+ }
52
+
53
+ /**
54
+ * @description Delete all domains
55
+ */
56
+ deleteAllDomains(): Promise<void> {
57
+ return this.providers.makeRequest({
58
+ route: buildRoute('domains'),
59
+ method: 'DELETE',
60
+ });
61
+ }
62
+
63
+ /**
64
+ * @description update specific domain
65
+ * @param id
66
+ * @param data
67
+ */
68
+ updateDomain(id: string, data: DomainUpdateData): Promise<Domain> {
69
+ return this.providers.makeRequest({
70
+ route: buildRoute('domain'),
71
+ method: 'PATCH',
72
+ data,
73
+ params: {
74
+ id,
75
+ },
76
+ });
77
+ }
78
+
79
+ /**
80
+ * @description create domain
81
+ * @param data
82
+ */
83
+ createDomain(data: DomainCreateData): Promise<Domain> {
84
+ return this.providers.makeRequest({
85
+ route: buildRoute('domain'),
86
+ method: 'POST',
87
+ data,
88
+ });
89
+ }
90
+ }
@@ -0,0 +1,152 @@
1
+ import { buildRoute } from '../helpers';
2
+ import {
3
+ Channel,
4
+ Skill,
5
+ Memory,
6
+ DomainWithObjects,
7
+ } from '../types';
8
+ import { Providers } from '@or-sdk/providers';
9
+
10
+ export class DomainRelationshipApi {
11
+ constructor(
12
+ private readonly providers: Providers
13
+ ) {}
14
+
15
+ /**
16
+ * @description Get domain's channel list
17
+ * @param id Domain's id
18
+ */
19
+ getDomainChannelList(id: string): Promise<Channel[]> {
20
+ return this.providers.makeRequest({
21
+ route: buildRoute('domain/channels'),
22
+ method: 'GET',
23
+ params: {
24
+ id,
25
+ },
26
+ });
27
+ }
28
+
29
+ /**
30
+ * @description Get domain's skill list
31
+ * @param id Domain's id
32
+ */
33
+ getDomainSkillList(id: string): Promise<Skill[]> {
34
+ return this.providers.makeRequest({
35
+ route: buildRoute('domain/skills'),
36
+ method: 'GET',
37
+ params: {
38
+ id,
39
+ },
40
+ });
41
+ }
42
+
43
+ /**
44
+ * @description Get domain's memory list
45
+ * @param id Domain's id
46
+ */
47
+ getDomainMemoryList(id: string): Promise<Memory[]> {
48
+ return this.providers.makeRequest({
49
+ route: buildRoute('domain/memories'),
50
+ method: 'GET',
51
+ params: {
52
+ id,
53
+ },
54
+ });
55
+ }
56
+
57
+ /**
58
+ * @description Create relationship from domain to the entity
59
+ * @param id The domain's id
60
+ * @param data The object containing the ids - list of channels IDs separated with comma
61
+ */
62
+ attachChannels(id: string, data: { ids: string; }): Promise<DomainWithObjects<Channel>> {
63
+ return this.providers.makeRequest({
64
+ route: buildRoute('domain/channels'),
65
+ method: 'POST',
66
+ data,
67
+ params: {
68
+ domainId: id,
69
+ },
70
+ });
71
+ }
72
+
73
+ /**
74
+ * @description Create relationship from domain to the entity
75
+ * @param id The domain's id
76
+ * @param data The object containing the ids - list of skills IDs separated with comma
77
+ */
78
+ attachSkills(id: string, data: { ids: string; }): Promise<DomainWithObjects<Skill>> {
79
+ return this.providers.makeRequest({
80
+ route: buildRoute('domain/skills'),
81
+ method: 'POST',
82
+ data,
83
+ params: {
84
+ domainId: id,
85
+ },
86
+ });
87
+ }
88
+
89
+ /**
90
+ * @description Create relationship from domain to the entity
91
+ * @param id The domain's id
92
+ * @param data The object containing the ids - list of memories IDs separated with comma
93
+ */
94
+ attachMemories(id: string, data: { ids: string; }): Promise<DomainWithObjects<Memory>> {
95
+ return this.providers.makeRequest({
96
+ route: buildRoute('domain/memories'),
97
+ method: 'POST',
98
+ data,
99
+ params: {
100
+ domainId: id,
101
+ },
102
+ });
103
+ }
104
+
105
+ /**
106
+ * @description Remove relationship from domain to the entity
107
+ * @param id The domain's id
108
+ * @param data The object containing the ids - list of channels IDs separated with comma
109
+ */
110
+ detachChannels(id: string, data: { ids: string; }): Promise<DomainWithObjects<Channel>> {
111
+ return this.providers.makeRequest({
112
+ route: buildRoute('domain/channels'),
113
+ method: 'DELETE',
114
+ data,
115
+ params: {
116
+ domainId: id,
117
+ },
118
+ });
119
+ }
120
+
121
+ /**
122
+ * @description Remove relationship from domain to the entity
123
+ * @param id The domain's id
124
+ * @param data The object containing the ids - list of skills IDs separated with comma
125
+ */
126
+ detachSkills(id: string, data: { ids: string; }): Promise<DomainWithObjects<Skill>> {
127
+ return this.providers.makeRequest({
128
+ route: buildRoute('domain/skills'),
129
+ method: 'DELETE',
130
+ data,
131
+ params: {
132
+ domainId: id,
133
+ },
134
+ });
135
+ }
136
+
137
+ /**
138
+ * @description Remove relationship from domain to the entity
139
+ * @param id The domain's id
140
+ * @param data The object containing the ids - list of memories IDs separated with comma
141
+ */
142
+ detachMemories(id: string, data: { ids: string; }): Promise<DomainWithObjects<Memory>> {
143
+ return this.providers.makeRequest({
144
+ route: buildRoute('domain/memories'),
145
+ method: 'DELETE',
146
+ data,
147
+ params: {
148
+ domainId: id,
149
+ },
150
+ });
151
+ }
152
+ }
package/src/api/index.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export { SkillApi } from './skillApi';
2
2
  export { MemoryApi } from './memoryApi';
3
3
  export { ChannelApi } from './channelApi';
4
+ export { DomainApi } from './domainApi';
5
+ export { DomainRelationshipApi } from './domainRelationshipApi';
4
6
  export { MigrationApi } from './migrationApi';
5
7
  export { IdwInfoApi } from './idwInfoApi';
6
8
  export { IdwDbApi } from './idwDbApi';
package/src/idwApi.ts CHANGED
@@ -1,6 +1,16 @@
1
1
  import { IDWBaseConfig } from './types';
2
2
 
3
- import { IdwDbApi, IdwInfoApi, IdwRwcApi, MigrationApi, SkillApi, MemoryApi, ChannelApi } from './api';
3
+ import {
4
+ IdwDbApi,
5
+ IdwInfoApi,
6
+ IdwRwcApi,
7
+ MigrationApi,
8
+ SkillApi,
9
+ MemoryApi,
10
+ ChannelApi,
11
+ DomainApi,
12
+ DomainRelationshipApi,
13
+ } from './api';
4
14
  import { Providers } from '@or-sdk/providers';
5
15
  import { FlowApi } from './api/flowApi';
6
16
 
@@ -8,6 +18,8 @@ export class IdwApi {
8
18
  readonly skillApi: SkillApi;
9
19
  readonly memoryApi: MemoryApi;
10
20
  readonly channelApi: ChannelApi;
21
+ readonly domainApi: DomainApi;
22
+ readonly domainRelationshipApi: DomainRelationshipApi;
11
23
  readonly migrationApi: MigrationApi;
12
24
  readonly idwInfoApi: IdwInfoApi;
13
25
  readonly idwDbApi: IdwDbApi;
@@ -23,6 +35,8 @@ export class IdwApi {
23
35
  this.skillApi = new SkillApi(provider);
24
36
  this.memoryApi = new MemoryApi(provider);
25
37
  this.channelApi = new ChannelApi(provider);
38
+ this.domainApi = new DomainApi(provider);
39
+ this.domainRelationshipApi = new DomainRelationshipApi(provider);
26
40
  this.migrationApi = new MigrationApi(provider);
27
41
  this.idwInfoApi = new IdwInfoApi(provider);
28
42
  this.idwDbApi = new IdwDbApi(provider);
@@ -0,0 +1,15 @@
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
+ };
@@ -1,5 +1,6 @@
1
1
  export * from './skill';
2
2
  export * from './channel';
3
+ export * from './domain';
3
4
  export * from './config';
4
5
  export * from './common';
5
6
  export * from './flow';