@or-sdk/idw 4.6.1-beta.1866.0 → 4.6.1
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/CHANGELOG.md +9 -0
- package/dist/cjs/api/BaseApi.js +22 -0
- package/dist/cjs/api/BaseApi.js.map +1 -0
- package/dist/cjs/api/channelApi.js +28 -12
- package/dist/cjs/api/channelApi.js.map +1 -1
- package/dist/cjs/api/domainApi.js +27 -11
- package/dist/cjs/api/domainApi.js.map +1 -1
- package/dist/cjs/api/domainRelationshipApi.js +30 -14
- package/dist/cjs/api/domainRelationshipApi.js.map +1 -1
- package/dist/cjs/api/flowApi.js +27 -11
- package/dist/cjs/api/flowApi.js.map +1 -1
- package/dist/cjs/api/idwDbApi.js +23 -7
- package/dist/cjs/api/idwDbApi.js.map +1 -1
- package/dist/cjs/api/idwInfoApi.js +24 -8
- package/dist/cjs/api/idwInfoApi.js.map +1 -1
- package/dist/cjs/api/idwRwcApi.js +26 -10
- package/dist/cjs/api/idwRwcApi.js.map +1 -1
- package/dist/cjs/api/memoryApi.js +27 -11
- package/dist/cjs/api/memoryApi.js.map +1 -1
- package/dist/cjs/api/migrationApi.js +24 -8
- package/dist/cjs/api/migrationApi.js.map +1 -1
- package/dist/cjs/api/skillApi.js +28 -12
- package/dist/cjs/api/skillApi.js.map +1 -1
- package/dist/cjs/idwApi.js +11 -18
- package/dist/cjs/idwApi.js.map +1 -1
- package/dist/esm/api/BaseApi.js +16 -0
- package/dist/esm/api/BaseApi.js.map +1 -0
- package/dist/esm/api/channelApi.js +11 -11
- package/dist/esm/api/channelApi.js.map +1 -1
- package/dist/esm/api/domainApi.js +10 -10
- package/dist/esm/api/domainApi.js.map +1 -1
- package/dist/esm/api/domainRelationshipApi.js +13 -13
- package/dist/esm/api/domainRelationshipApi.js.map +1 -1
- package/dist/esm/api/flowApi.js +10 -10
- package/dist/esm/api/flowApi.js.map +1 -1
- package/dist/esm/api/idwDbApi.js +6 -6
- package/dist/esm/api/idwDbApi.js.map +1 -1
- package/dist/esm/api/idwInfoApi.js +7 -7
- package/dist/esm/api/idwInfoApi.js.map +1 -1
- package/dist/esm/api/idwRwcApi.js +9 -9
- package/dist/esm/api/idwRwcApi.js.map +1 -1
- package/dist/esm/api/memoryApi.js +10 -10
- package/dist/esm/api/memoryApi.js.map +1 -1
- package/dist/esm/api/migrationApi.js +7 -7
- package/dist/esm/api/migrationApi.js.map +1 -1
- package/dist/esm/api/skillApi.js +11 -11
- package/dist/esm/api/skillApi.js.map +1 -1
- package/dist/esm/idwApi.js +11 -17
- package/dist/esm/idwApi.js.map +1 -1
- package/dist/types/api/BaseApi.d.ts +9 -0
- package/dist/types/api/BaseApi.d.ts.map +1 -0
- package/dist/types/api/channelApi.d.ts +4 -5
- package/dist/types/api/channelApi.d.ts.map +1 -1
- package/dist/types/api/domainApi.d.ts +4 -5
- package/dist/types/api/domainApi.d.ts.map +1 -1
- package/dist/types/api/domainRelationshipApi.d.ts +4 -5
- package/dist/types/api/domainRelationshipApi.d.ts.map +1 -1
- package/dist/types/api/flowApi.d.ts +4 -5
- package/dist/types/api/flowApi.d.ts.map +1 -1
- package/dist/types/api/idwDbApi.d.ts +4 -4
- package/dist/types/api/idwDbApi.d.ts.map +1 -1
- package/dist/types/api/idwInfoApi.d.ts +4 -5
- package/dist/types/api/idwInfoApi.d.ts.map +1 -1
- package/dist/types/api/idwRwcApi.d.ts +4 -5
- package/dist/types/api/idwRwcApi.d.ts.map +1 -1
- package/dist/types/api/memoryApi.d.ts +4 -5
- package/dist/types/api/memoryApi.d.ts.map +1 -1
- package/dist/types/api/migrationApi.d.ts +4 -4
- package/dist/types/api/migrationApi.d.ts.map +1 -1
- package/dist/types/api/skillApi.d.ts +4 -5
- package/dist/types/api/skillApi.d.ts.map +1 -1
- package/dist/types/idwApi.d.ts +1 -1
- package/dist/types/idwApi.d.ts.map +1 -1
- package/dist/types/types/config.d.ts +1 -0
- package/dist/types/types/config.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/api/BaseApi.ts +25 -0
- package/src/api/channelApi.ts +13 -14
- package/src/api/domainApi.ts +12 -13
- package/src/api/domainRelationshipApi.ts +15 -16
- package/src/api/flowApi.ts +12 -13
- package/src/api/idwDbApi.ts +8 -8
- package/src/api/idwInfoApi.ts +9 -10
- package/src/api/idwRwcApi.ts +11 -12
- package/src/api/memoryApi.ts +12 -13
- package/src/api/migrationApi.ts +9 -9
- package/src/api/skillApi.ts +13 -14
- package/src/idwApi.ts +11 -18
- package/src/types/config.ts +5 -0
- package/dist/cjs/helpers.js +0 -7
- package/dist/cjs/helpers.js.map +0 -1
- package/dist/esm/helpers.js +0 -3
- package/dist/esm/helpers.js.map +0 -1
- package/dist/types/helpers.d.ts +0 -2
- package/dist/types/helpers.d.ts.map +0 -1
- package/src/helpers.ts +0 -3
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
18
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
19
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -37,40 +52,41 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
52
|
};
|
|
38
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
54
|
exports.IdwRwcApi = void 0;
|
|
40
|
-
var
|
|
55
|
+
var BaseApi_1 = require("./BaseApi");
|
|
41
56
|
var noop = function () { };
|
|
42
|
-
var IdwRwcApi = (function () {
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
var IdwRwcApi = (function (_super) {
|
|
58
|
+
__extends(IdwRwcApi, _super);
|
|
59
|
+
function IdwRwcApi(config) {
|
|
60
|
+
return _super.call(this, config) || this;
|
|
45
61
|
}
|
|
46
62
|
IdwRwcApi.prototype.getIdwRwcData = function () {
|
|
47
63
|
return this.providers.makeRequest({
|
|
48
|
-
route:
|
|
64
|
+
route: this.buildRoute('idw-rwc'),
|
|
49
65
|
method: 'GET',
|
|
50
66
|
});
|
|
51
67
|
};
|
|
52
68
|
IdwRwcApi.prototype.upsertIdwRwcData = function (data) {
|
|
53
69
|
return this.providers.makeRequest({
|
|
54
|
-
route:
|
|
70
|
+
route: this.buildRoute('idw-rwc'),
|
|
55
71
|
method: 'POST',
|
|
56
72
|
data: data,
|
|
57
73
|
});
|
|
58
74
|
};
|
|
59
75
|
IdwRwcApi.prototype.deleteIdwRwcData = function () {
|
|
60
76
|
return this.providers.makeRequest({
|
|
61
|
-
route:
|
|
77
|
+
route: this.buildRoute('idw-rwc'),
|
|
62
78
|
method: 'DELETE',
|
|
63
79
|
});
|
|
64
80
|
};
|
|
65
81
|
IdwRwcApi.prototype.installRwcChat = function () {
|
|
66
82
|
return this.providers.makeRequest({
|
|
67
|
-
route:
|
|
83
|
+
route: this.buildRoute('idw-rwc/install'),
|
|
68
84
|
method: 'POST',
|
|
69
85
|
});
|
|
70
86
|
};
|
|
71
87
|
IdwRwcApi.prototype.getChatStatus = function () {
|
|
72
88
|
return this.providers.makeRequest({
|
|
73
|
-
route:
|
|
89
|
+
route: this.buildRoute('idw-rwc/install'),
|
|
74
90
|
method: 'GET',
|
|
75
91
|
});
|
|
76
92
|
};
|
|
@@ -109,6 +125,6 @@ var IdwRwcApi = (function () {
|
|
|
109
125
|
};
|
|
110
126
|
};
|
|
111
127
|
return IdwRwcApi;
|
|
112
|
-
}());
|
|
128
|
+
}(BaseApi_1.BaseApi));
|
|
113
129
|
exports.IdwRwcApi = IdwRwcApi;
|
|
114
130
|
//# sourceMappingURL=idwRwcApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idwRwcApi.js","sourceRoot":"","sources":["../../../src/api/idwRwcApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"idwRwcApi.js","sourceRoot":"","sources":["../../../src/api/idwRwcApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAoC;AAEpC,IAAM,IAAI,GAA0B,cAAO,CAAC,CAAC;AAE7C;IAA+B,6BAAO;IACpC,mBAAY,MAAqB;eAC/B,kBAAM,MAAM,CAAC;IACf,CAAC;IAKD,iCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,oCAAgB,GAAhB,UAAiB,IAAsB;QACrC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAKD,oCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAKD,kCAAc,GAAd;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IAKD,iCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAQD,wDAAoC,GAApC,UACE,eAAuB,EACvB,WAAuD,EACvD,aAA0C;QAD1C,4BAAA,EAAA,kBAAuD;QACvD,8BAAA,EAAA,oBAA0C;QAG1C,IAAM,KAAK,GAAG,IAAI,CAAC;QACnB,IAAI,UAAoC,CAAC;QAEzC,OAAO;YACL,SAAS,EAAE;gBAAA,iBAUV;gBATC,UAAU,GAAG,WAAW,CAAC;;;;;;gCAEN,WAAM,KAAK,CAAC,aAAa,EAAE,EAAA;;gCAApC,WAAS,SAA2B;gCAC1C,WAAW,CAAC,QAAM,CAAC,CAAC;;;;gCAEpB,aAAa,CAAC,GAAC,CAAC,CAAC;gCACjB,IAAI,CAAC,WAAW,EAAE,CAAC;;;;;qBAEtB,EAAE,eAAe,CAAC,CAAC;YACtB,CAAC;YACD,WAAW,EAAE;gBACX,aAAa,CAAC,UAAU,CAAC,CAAC;YAC5B,CAAC;SACF,CAAC;IACJ,CAAC;IAEH,gBAAC;AAAD,CAAC,AAzFD,CAA+B,iBAAO,GAyFrC;AAzFY,8BAAS"}
|
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.MemoryApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
var MemoryApi = (function () {
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var BaseApi_1 = require("./BaseApi");
|
|
20
|
+
var MemoryApi = (function (_super) {
|
|
21
|
+
__extends(MemoryApi, _super);
|
|
22
|
+
function MemoryApi(config) {
|
|
23
|
+
return _super.call(this, config) || this;
|
|
8
24
|
}
|
|
9
25
|
MemoryApi.prototype.getMemory = function (id) {
|
|
10
26
|
return this.providers.makeRequest({
|
|
11
|
-
route:
|
|
27
|
+
route: this.buildRoute('memory'),
|
|
12
28
|
params: {
|
|
13
29
|
id: id,
|
|
14
30
|
},
|
|
@@ -16,12 +32,12 @@ var MemoryApi = (function () {
|
|
|
16
32
|
};
|
|
17
33
|
MemoryApi.prototype.getAllMemories = function () {
|
|
18
34
|
return this.providers.makeRequest({
|
|
19
|
-
route:
|
|
35
|
+
route: this.buildRoute('memories'),
|
|
20
36
|
});
|
|
21
37
|
};
|
|
22
38
|
MemoryApi.prototype.deleteMemory = function (id) {
|
|
23
39
|
return this.providers.makeRequest({
|
|
24
|
-
route:
|
|
40
|
+
route: this.buildRoute('memory'),
|
|
25
41
|
method: 'DELETE',
|
|
26
42
|
params: {
|
|
27
43
|
id: id,
|
|
@@ -30,13 +46,13 @@ var MemoryApi = (function () {
|
|
|
30
46
|
};
|
|
31
47
|
MemoryApi.prototype.deleteAllMemories = function () {
|
|
32
48
|
return this.providers.makeRequest({
|
|
33
|
-
route:
|
|
49
|
+
route: this.buildRoute('memories'),
|
|
34
50
|
method: 'DELETE',
|
|
35
51
|
});
|
|
36
52
|
};
|
|
37
53
|
MemoryApi.prototype.updateMemory = function (id, data) {
|
|
38
54
|
return this.providers.makeRequest({
|
|
39
|
-
route:
|
|
55
|
+
route: this.buildRoute('memory'),
|
|
40
56
|
method: 'PATCH',
|
|
41
57
|
data: data,
|
|
42
58
|
params: {
|
|
@@ -46,12 +62,12 @@ var MemoryApi = (function () {
|
|
|
46
62
|
};
|
|
47
63
|
MemoryApi.prototype.createMemory = function (data) {
|
|
48
64
|
return this.providers.makeRequest({
|
|
49
|
-
route:
|
|
65
|
+
route: this.buildRoute('memory'),
|
|
50
66
|
method: 'POST',
|
|
51
67
|
data: data,
|
|
52
68
|
});
|
|
53
69
|
};
|
|
54
70
|
return MemoryApi;
|
|
55
|
-
}());
|
|
71
|
+
}(BaseApi_1.BaseApi));
|
|
56
72
|
exports.MemoryApi = MemoryApi;
|
|
57
73
|
//# sourceMappingURL=memoryApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoryApi.js","sourceRoot":"","sources":["../../../src/api/memoryApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"memoryApi.js","sourceRoot":"","sources":["../../../src/api/memoryApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,qCAAoC;AAEpC;IAA+B,6BAAO;IACpC,mBAAY,MAAqB;eAC/B,kBAAM,MAAM,CAAC;IACf,CAAC;IAMD,6BAAS,GAAT,UAAU,EAAU;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,kCAAc,GAAd;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;IAMD,gCAAY,GAAZ,UAAa,EAAU;QACrB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,qCAAiB,GAAjB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAClC,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,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,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,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IACH,gBAAC;AAAD,CAAC,AA9ED,CAA+B,iBAAO,GA8ErC;AA9EY,8BAAS"}
|
|
@@ -1,30 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.MigrationApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
var MigrationApi = (function () {
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var BaseApi_1 = require("./BaseApi");
|
|
20
|
+
var MigrationApi = (function (_super) {
|
|
21
|
+
__extends(MigrationApi, _super);
|
|
22
|
+
function MigrationApi(config) {
|
|
23
|
+
return _super.call(this, config) || this;
|
|
8
24
|
}
|
|
9
25
|
MigrationApi.prototype.migrationsStatus = function () {
|
|
10
26
|
return this.providers.makeRequest({
|
|
11
|
-
route:
|
|
27
|
+
route: this.buildRoute('migration'),
|
|
12
28
|
method: 'GET',
|
|
13
29
|
});
|
|
14
30
|
};
|
|
15
31
|
MigrationApi.prototype.migrationsRun = function () {
|
|
16
32
|
return this.providers.makeRequest({
|
|
17
|
-
route:
|
|
33
|
+
route: this.buildRoute('migration'),
|
|
18
34
|
method: 'POST',
|
|
19
35
|
});
|
|
20
36
|
};
|
|
21
37
|
MigrationApi.prototype.revertLatest = function () {
|
|
22
38
|
return this.providers.makeRequest({
|
|
23
|
-
route:
|
|
39
|
+
route: this.buildRoute('migration'),
|
|
24
40
|
method: 'DELETE',
|
|
25
41
|
});
|
|
26
42
|
};
|
|
27
43
|
return MigrationApi;
|
|
28
|
-
}());
|
|
44
|
+
}(BaseApi_1.BaseApi));
|
|
29
45
|
exports.MigrationApi = MigrationApi;
|
|
30
46
|
//# sourceMappingURL=migrationApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrationApi.js","sourceRoot":"","sources":["../../../src/api/migrationApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"migrationApi.js","sourceRoot":"","sources":["../../../src/api/migrationApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,qCAAoC;AAEpC;IAAkC,gCAAO;IACvC,sBAAY,MAAqB;eAC/B,kBAAM,MAAM,CAAC;IACf,CAAC;IAMD,uCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACnC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,oCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACnC,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IAKD,mCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;YACnC,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IACH,mBAAC;AAAD,CAAC,AAnCD,CAAkC,iBAAO,GAmCxC;AAnCY,oCAAY"}
|
package/dist/cjs/api/skillApi.js
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.SkillApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
var SkillApi = (function () {
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var BaseApi_1 = require("./BaseApi");
|
|
20
|
+
var SkillApi = (function (_super) {
|
|
21
|
+
__extends(SkillApi, _super);
|
|
22
|
+
function SkillApi(config) {
|
|
23
|
+
return _super.call(this, config) || this;
|
|
8
24
|
}
|
|
9
25
|
SkillApi.prototype.getSkill = function (id) {
|
|
10
26
|
return this.providers.makeRequest({
|
|
11
|
-
route:
|
|
27
|
+
route: this.buildRoute('skill'),
|
|
12
28
|
params: {
|
|
13
29
|
id: id,
|
|
14
30
|
},
|
|
@@ -16,12 +32,12 @@ var SkillApi = (function () {
|
|
|
16
32
|
};
|
|
17
33
|
SkillApi.prototype.getAllSkills = function () {
|
|
18
34
|
return this.providers.makeRequest({
|
|
19
|
-
route:
|
|
35
|
+
route: this.buildRoute('skills'),
|
|
20
36
|
});
|
|
21
37
|
};
|
|
22
38
|
SkillApi.prototype.deleteSkill = function (id) {
|
|
23
39
|
return this.providers.makeRequest({
|
|
24
|
-
route:
|
|
40
|
+
route: this.buildRoute('skill'),
|
|
25
41
|
method: 'DELETE',
|
|
26
42
|
params: {
|
|
27
43
|
id: id,
|
|
@@ -30,13 +46,13 @@ var SkillApi = (function () {
|
|
|
30
46
|
};
|
|
31
47
|
SkillApi.prototype.deleteAllSkills = function () {
|
|
32
48
|
return this.providers.makeRequest({
|
|
33
|
-
route:
|
|
49
|
+
route: this.buildRoute('skills'),
|
|
34
50
|
method: 'DELETE',
|
|
35
51
|
});
|
|
36
52
|
};
|
|
37
53
|
SkillApi.prototype.updateSkill = function (id, data) {
|
|
38
54
|
return this.providers.makeRequest({
|
|
39
|
-
route:
|
|
55
|
+
route: this.buildRoute('skill'),
|
|
40
56
|
method: 'PATCH',
|
|
41
57
|
data: data,
|
|
42
58
|
params: {
|
|
@@ -46,17 +62,17 @@ var SkillApi = (function () {
|
|
|
46
62
|
};
|
|
47
63
|
SkillApi.prototype.createSkill = function (data) {
|
|
48
64
|
return this.providers.makeRequest({
|
|
49
|
-
route:
|
|
65
|
+
route: this.buildRoute('skill'),
|
|
50
66
|
method: 'POST',
|
|
51
67
|
data: data,
|
|
52
68
|
});
|
|
53
69
|
};
|
|
54
70
|
SkillApi.prototype.getSuggestedSkills = function () {
|
|
55
71
|
return this.providers.makeRequest({
|
|
56
|
-
route:
|
|
72
|
+
route: this.buildRoute('skills/suggested'),
|
|
57
73
|
});
|
|
58
74
|
};
|
|
59
75
|
return SkillApi;
|
|
60
|
-
}());
|
|
76
|
+
}(BaseApi_1.BaseApi));
|
|
61
77
|
exports.SkillApi = SkillApi;
|
|
62
78
|
//# sourceMappingURL=skillApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skillApi.js","sourceRoot":"","sources":["../../../src/api/skillApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skillApi.js","sourceRoot":"","sources":["../../../src/api/skillApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAQA,qCAAoC;AAEpC;IAA8B,4BAAO;IACnC,kBAAY,MAAqB;eAC/B,kBAAM,MAAM,CAAC;IACf,CAAC;IAMD,2BAAQ,GAAR,UAAS,EAAU;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAC/B,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,+BAAY,GAAZ;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;SACjC,CAAC,CAAC;IACL,CAAC;IAMD,8BAAW,GAAX,UAAY,EAAU;QACpB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAC/B,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,kCAAe,GAAf;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAOD,8BAAW,GAAX,UAAY,EAAU,EAAE,IAAqB;QAC3C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAC/B,MAAM,EAAE,OAAO;YACf,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,8BAAW,GAAX,UAAY,IAAqB;QAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAC/B,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAKD,qCAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;SAC3C,CAAC,CAAC;IACL,CAAC;IACH,eAAC;AAAD,CAAC,AAxFD,CAA8B,iBAAO,GAwFpC;AAxFY,4BAAQ"}
|
package/dist/cjs/idwApi.js
CHANGED
|
@@ -2,26 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IdwApi = void 0;
|
|
4
4
|
var api_1 = require("./api");
|
|
5
|
-
var providers_1 = require("@or-sdk/providers");
|
|
6
5
|
var api_2 = require("./api");
|
|
7
6
|
var IdwApi = (function () {
|
|
8
|
-
function IdwApi(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.domainRelationshipApi = new api_1.DomainRelationshipApi(provider);
|
|
20
|
-
this.migrationApi = new api_1.MigrationApi(provider);
|
|
21
|
-
this.idwInfoApi = new api_1.IdwInfoApi(provider);
|
|
22
|
-
this.idwDbApi = new api_1.IdwDbApi(provider);
|
|
23
|
-
this.idwRwcApi = new api_1.IdwRwcApi(provider);
|
|
24
|
-
this.flowApi = new api_2.FlowApi(provider);
|
|
7
|
+
function IdwApi(config) {
|
|
8
|
+
this.skillApi = new api_1.SkillApi(config);
|
|
9
|
+
this.memoryApi = new api_1.MemoryApi(config);
|
|
10
|
+
this.channelApi = new api_1.ChannelApi(config);
|
|
11
|
+
this.domainApi = new api_1.DomainApi(config);
|
|
12
|
+
this.domainRelationshipApi = new api_1.DomainRelationshipApi(config);
|
|
13
|
+
this.migrationApi = new api_1.MigrationApi(config);
|
|
14
|
+
this.idwInfoApi = new api_1.IdwInfoApi(config);
|
|
15
|
+
this.idwDbApi = new api_1.IdwDbApi(config);
|
|
16
|
+
this.idwRwcApi = new api_1.IdwRwcApi(config);
|
|
17
|
+
this.flowApi = new api_2.FlowApi(config);
|
|
25
18
|
}
|
|
26
19
|
return IdwApi;
|
|
27
20
|
}());
|
package/dist/cjs/idwApi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":";;;AAEA,6BAUe;AACf
|
|
1
|
+
{"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":";;;AAEA,6BAUe;AACf,6BAAgC;AAEhC;IAWE,gBAAY,MAAqB;QAC/B,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAQ,CAAC,MAAM,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,IAAI,eAAS,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,gBAAU,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,eAAS,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,qBAAqB,GAAG,IAAI,2BAAqB,CAAC,MAAM,CAAC,CAAC;QAC/D,IAAI,CAAC,YAAY,GAAG,IAAI,kBAAY,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,gBAAU,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAQ,CAAC,MAAM,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,GAAG,IAAI,eAAS,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,IAAI,aAAO,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IACH,aAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBY,wBAAM"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Providers } from '@or-sdk/providers';
|
|
2
|
+
import { IDW_PROVIDER_NAME_SPACE } from '../constants';
|
|
3
|
+
export class BaseApi {
|
|
4
|
+
constructor({ providerAccountId, emUrl, token, idwProviderNameSpace = IDW_PROVIDER_NAME_SPACE, }) {
|
|
5
|
+
this.providers = new Providers({
|
|
6
|
+
token,
|
|
7
|
+
eventManagerUrl: emUrl,
|
|
8
|
+
providersAccountId: providerAccountId,
|
|
9
|
+
});
|
|
10
|
+
this.idwProviderNameSpace = idwProviderNameSpace;
|
|
11
|
+
}
|
|
12
|
+
buildRoute(route) {
|
|
13
|
+
return `${this.idwProviderNameSpace}/${route}`;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=BaseApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseApi.js","sourceRoot":"","sources":["../../../src/api/BaseApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,OAAgB,OAAO;IAG3B,YAAsB,EACpB,iBAAiB,EACjB,KAAK,EACL,KAAK,EACL,oBAAoB,GAAG,uBAAuB,GAChC;QACd,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC;YAC7B,KAAK;YACL,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,iBAAiB;SACtC,CAAC,CAAC;QACH,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACnD,CAAC;IAES,UAAU,CAAC,KAAa;QAChC,OAAO,GAAG,IAAI,CAAC,oBAAoB,IAAI,KAAK,EAAE,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class ChannelApi {
|
|
3
|
-
constructor(
|
|
4
|
-
|
|
1
|
+
import { BaseApi } from './BaseApi';
|
|
2
|
+
export class ChannelApi extends BaseApi {
|
|
3
|
+
constructor(config) {
|
|
4
|
+
super(config);
|
|
5
5
|
}
|
|
6
6
|
getChannel(id) {
|
|
7
7
|
return this.providers.makeRequest({
|
|
8
|
-
route: buildRoute('channel'),
|
|
8
|
+
route: this.buildRoute('channel'),
|
|
9
9
|
params: {
|
|
10
10
|
id,
|
|
11
11
|
},
|
|
@@ -13,12 +13,12 @@ export class ChannelApi {
|
|
|
13
13
|
}
|
|
14
14
|
getAllChannels() {
|
|
15
15
|
return this.providers.makeRequest({
|
|
16
|
-
route: buildRoute('channels'),
|
|
16
|
+
route: this.buildRoute('channels'),
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
deleteChannel(id) {
|
|
20
20
|
return this.providers.makeRequest({
|
|
21
|
-
route: buildRoute('channel'),
|
|
21
|
+
route: this.buildRoute('channel'),
|
|
22
22
|
method: 'DELETE',
|
|
23
23
|
params: {
|
|
24
24
|
id,
|
|
@@ -27,13 +27,13 @@ export class ChannelApi {
|
|
|
27
27
|
}
|
|
28
28
|
deleteAllChannels() {
|
|
29
29
|
return this.providers.makeRequest({
|
|
30
|
-
route: buildRoute('channels'),
|
|
30
|
+
route: this.buildRoute('channels'),
|
|
31
31
|
method: 'DELETE',
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
updateChannel(id, data) {
|
|
35
35
|
return this.providers.makeRequest({
|
|
36
|
-
route: buildRoute('channel'),
|
|
36
|
+
route: this.buildRoute('channel'),
|
|
37
37
|
method: 'PATCH',
|
|
38
38
|
data,
|
|
39
39
|
params: {
|
|
@@ -43,14 +43,14 @@ export class ChannelApi {
|
|
|
43
43
|
}
|
|
44
44
|
createChannel(data) {
|
|
45
45
|
return this.providers.makeRequest({
|
|
46
|
-
route: buildRoute('channel'),
|
|
46
|
+
route: this.buildRoute('channel'),
|
|
47
47
|
method: 'POST',
|
|
48
48
|
data,
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
getSuggestedChannels() {
|
|
52
52
|
return this.providers.makeRequest({
|
|
53
|
-
route: buildRoute('channels/suggested'),
|
|
53
|
+
route: this.buildRoute('channels/suggested'),
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelApi.js","sourceRoot":"","sources":["../../../src/api/channelApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channelApi.js","sourceRoot":"","sources":["../../../src/api/channelApi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,OAAO,UAAW,SAAQ,OAAO;IACrC,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAMD,UAAU,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE;gBACN,EAAE;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,cAAc;QACZ,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;IAMD,aAAa,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,EAAE;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,iBAAiB;QACf,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAClC,MAAM,EAAE,QAAQ;SACjB,CAAC,CAAC;IACL,CAAC;IAOD,aAAa,CAAC,EAAU,EAAE,IAAuB;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,OAAO;YACf,IAAI;YACJ,MAAM,EAAE;gBACN,EAAE;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,aAAa,CAAC,IAAuB;QACnC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAKD,oBAAoB;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class DomainApi {
|
|
3
|
-
constructor(
|
|
4
|
-
|
|
1
|
+
import { BaseApi } from './BaseApi';
|
|
2
|
+
export class DomainApi extends BaseApi {
|
|
3
|
+
constructor(config) {
|
|
4
|
+
super(config);
|
|
5
5
|
}
|
|
6
6
|
getDomain(id) {
|
|
7
7
|
return this.providers.makeRequest({
|
|
8
|
-
route: buildRoute('domain'),
|
|
8
|
+
route: this.buildRoute('domain'),
|
|
9
9
|
params: {
|
|
10
10
|
id,
|
|
11
11
|
},
|
|
@@ -13,12 +13,12 @@ export class DomainApi {
|
|
|
13
13
|
}
|
|
14
14
|
getAllDomains() {
|
|
15
15
|
return this.providers.makeRequest({
|
|
16
|
-
route: buildRoute('domains'),
|
|
16
|
+
route: this.buildRoute('domains'),
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
deleteDomain(id) {
|
|
20
20
|
return this.providers.makeRequest({
|
|
21
|
-
route: buildRoute('domain'),
|
|
21
|
+
route: this.buildRoute('domain'),
|
|
22
22
|
method: 'DELETE',
|
|
23
23
|
params: {
|
|
24
24
|
id,
|
|
@@ -27,13 +27,13 @@ export class DomainApi {
|
|
|
27
27
|
}
|
|
28
28
|
deleteAllDomains() {
|
|
29
29
|
return this.providers.makeRequest({
|
|
30
|
-
route: buildRoute('domains'),
|
|
30
|
+
route: this.buildRoute('domains'),
|
|
31
31
|
method: 'DELETE',
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
updateDomain(id, data) {
|
|
35
35
|
return this.providers.makeRequest({
|
|
36
|
-
route: buildRoute('domain'),
|
|
36
|
+
route: this.buildRoute('domain'),
|
|
37
37
|
method: 'PATCH',
|
|
38
38
|
data,
|
|
39
39
|
params: {
|
|
@@ -43,7 +43,7 @@ export class DomainApi {
|
|
|
43
43
|
}
|
|
44
44
|
createDomain(data) {
|
|
45
45
|
return this.providers.makeRequest({
|
|
46
|
-
route: buildRoute('domain'),
|
|
46
|
+
route: this.buildRoute('domain'),
|
|
47
47
|
method: 'POST',
|
|
48
48
|
data,
|
|
49
49
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domainApi.js","sourceRoot":"","sources":["../../../src/api/domainApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"domainApi.js","sourceRoot":"","sources":["../../../src/api/domainApi.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,OAAO,SAAU,SAAQ,OAAO;IACpC,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAMD,SAAS,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE;gBACN,EAAE;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,aAAa;QACX,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;SAClC,CAAC,CAAC;IACL,CAAC;IAMD,YAAY,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,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,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,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,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,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,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAChC,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class DomainRelationshipApi {
|
|
3
|
-
constructor(
|
|
4
|
-
|
|
1
|
+
import { BaseApi } from './BaseApi';
|
|
2
|
+
export class DomainRelationshipApi extends BaseApi {
|
|
3
|
+
constructor(config) {
|
|
4
|
+
super(config);
|
|
5
5
|
}
|
|
6
6
|
getDomainChannelList(id) {
|
|
7
7
|
return this.providers.makeRequest({
|
|
8
|
-
route: buildRoute('domain/channels'),
|
|
8
|
+
route: this.buildRoute('domain/channels'),
|
|
9
9
|
method: 'GET',
|
|
10
10
|
params: {
|
|
11
11
|
id,
|
|
@@ -14,7 +14,7 @@ export class DomainRelationshipApi {
|
|
|
14
14
|
}
|
|
15
15
|
getDomainSkillList(id) {
|
|
16
16
|
return this.providers.makeRequest({
|
|
17
|
-
route: buildRoute('domain/skills'),
|
|
17
|
+
route: this.buildRoute('domain/skills'),
|
|
18
18
|
method: 'GET',
|
|
19
19
|
params: {
|
|
20
20
|
id,
|
|
@@ -23,7 +23,7 @@ export class DomainRelationshipApi {
|
|
|
23
23
|
}
|
|
24
24
|
getDomainMemoryList(id) {
|
|
25
25
|
return this.providers.makeRequest({
|
|
26
|
-
route: buildRoute('domain/memories'),
|
|
26
|
+
route: this.buildRoute('domain/memories'),
|
|
27
27
|
method: 'GET',
|
|
28
28
|
params: {
|
|
29
29
|
id,
|
|
@@ -32,7 +32,7 @@ export class DomainRelationshipApi {
|
|
|
32
32
|
}
|
|
33
33
|
attachChannels(id, data) {
|
|
34
34
|
return this.providers.makeRequest({
|
|
35
|
-
route: buildRoute('domain/channels'),
|
|
35
|
+
route: this.buildRoute('domain/channels'),
|
|
36
36
|
method: 'POST',
|
|
37
37
|
data,
|
|
38
38
|
params: {
|
|
@@ -42,7 +42,7 @@ export class DomainRelationshipApi {
|
|
|
42
42
|
}
|
|
43
43
|
attachSkills(id, data) {
|
|
44
44
|
return this.providers.makeRequest({
|
|
45
|
-
route: buildRoute('domain/skills'),
|
|
45
|
+
route: this.buildRoute('domain/skills'),
|
|
46
46
|
method: 'POST',
|
|
47
47
|
data,
|
|
48
48
|
params: {
|
|
@@ -52,7 +52,7 @@ export class DomainRelationshipApi {
|
|
|
52
52
|
}
|
|
53
53
|
attachMemories(id, data) {
|
|
54
54
|
return this.providers.makeRequest({
|
|
55
|
-
route: buildRoute('domain/memories'),
|
|
55
|
+
route: this.buildRoute('domain/memories'),
|
|
56
56
|
method: 'POST',
|
|
57
57
|
data,
|
|
58
58
|
params: {
|
|
@@ -62,7 +62,7 @@ export class DomainRelationshipApi {
|
|
|
62
62
|
}
|
|
63
63
|
detachChannels(id, data) {
|
|
64
64
|
return this.providers.makeRequest({
|
|
65
|
-
route: buildRoute('domain/channels'),
|
|
65
|
+
route: this.buildRoute('domain/channels'),
|
|
66
66
|
method: 'DELETE',
|
|
67
67
|
data,
|
|
68
68
|
params: {
|
|
@@ -72,7 +72,7 @@ export class DomainRelationshipApi {
|
|
|
72
72
|
}
|
|
73
73
|
detachSkills(id, data) {
|
|
74
74
|
return this.providers.makeRequest({
|
|
75
|
-
route: buildRoute('domain/skills'),
|
|
75
|
+
route: this.buildRoute('domain/skills'),
|
|
76
76
|
method: 'DELETE',
|
|
77
77
|
data,
|
|
78
78
|
params: {
|
|
@@ -82,7 +82,7 @@ export class DomainRelationshipApi {
|
|
|
82
82
|
}
|
|
83
83
|
detachMemories(id, data) {
|
|
84
84
|
return this.providers.makeRequest({
|
|
85
|
-
route: buildRoute('domain/memories'),
|
|
85
|
+
route: this.buildRoute('domain/memories'),
|
|
86
86
|
method: 'DELETE',
|
|
87
87
|
data,
|
|
88
88
|
params: {
|