@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
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.6.1](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.6.0...@or-sdk/idw@4.6.1) (2023-09-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **@or-sdk/idw:** add feature support ([a5c2ca3](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/a5c2ca3dded37dcd7528badda4bf5c228cdb0344))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [4.6.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.5.1...@or-sdk/idw@4.6.0) (2023-09-26)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseApi = void 0;
|
|
4
|
+
var providers_1 = require("@or-sdk/providers");
|
|
5
|
+
var constants_1 = require("../constants");
|
|
6
|
+
var BaseApi = (function () {
|
|
7
|
+
function BaseApi(_a) {
|
|
8
|
+
var providerAccountId = _a.providerAccountId, emUrl = _a.emUrl, token = _a.token, _b = _a.idwProviderNameSpace, idwProviderNameSpace = _b === void 0 ? constants_1.IDW_PROVIDER_NAME_SPACE : _b;
|
|
9
|
+
this.providers = new providers_1.Providers({
|
|
10
|
+
token: token,
|
|
11
|
+
eventManagerUrl: emUrl,
|
|
12
|
+
providersAccountId: providerAccountId,
|
|
13
|
+
});
|
|
14
|
+
this.idwProviderNameSpace = idwProviderNameSpace;
|
|
15
|
+
}
|
|
16
|
+
BaseApi.prototype.buildRoute = function (route) {
|
|
17
|
+
return "".concat(this.idwProviderNameSpace, "/").concat(route);
|
|
18
|
+
};
|
|
19
|
+
return BaseApi;
|
|
20
|
+
}());
|
|
21
|
+
exports.BaseApi = BaseApi;
|
|
22
|
+
//# sourceMappingURL=BaseApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseApi.js","sourceRoot":"","sources":["../../../src/api/BaseApi.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAE9C,0CAAuD;AAEvD;IAGE,iBAAsB,EAKN;YAJd,iBAAiB,uBAAA,EACjB,KAAK,WAAA,EACL,KAAK,WAAA,EACL,4BAA8C,EAA9C,oBAAoB,mBAAG,mCAAuB,KAAA;QAE9C,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAS,CAAC;YAC7B,KAAK,OAAA;YACL,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,iBAAiB;SACtC,CAAC,CAAC;QACH,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACnD,CAAC;IAES,4BAAU,GAApB,UAAqB,KAAa;QAChC,OAAO,UAAG,IAAI,CAAC,oBAAoB,cAAI,KAAK,CAAE,CAAC;IACjD,CAAC;IACH,cAAC;AAAD,CAAC,AApBD,IAoBC;AApBqB,0BAAO"}
|
|
@@ -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.ChannelApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
var ChannelApi = (function () {
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var BaseApi_1 = require("./BaseApi");
|
|
20
|
+
var ChannelApi = (function (_super) {
|
|
21
|
+
__extends(ChannelApi, _super);
|
|
22
|
+
function ChannelApi(config) {
|
|
23
|
+
return _super.call(this, config) || this;
|
|
8
24
|
}
|
|
9
25
|
ChannelApi.prototype.getChannel = function (id) {
|
|
10
26
|
return this.providers.makeRequest({
|
|
11
|
-
route:
|
|
27
|
+
route: this.buildRoute('channel'),
|
|
12
28
|
params: {
|
|
13
29
|
id: id,
|
|
14
30
|
},
|
|
@@ -16,12 +32,12 @@ var ChannelApi = (function () {
|
|
|
16
32
|
};
|
|
17
33
|
ChannelApi.prototype.getAllChannels = function () {
|
|
18
34
|
return this.providers.makeRequest({
|
|
19
|
-
route:
|
|
35
|
+
route: this.buildRoute('channels'),
|
|
20
36
|
});
|
|
21
37
|
};
|
|
22
38
|
ChannelApi.prototype.deleteChannel = function (id) {
|
|
23
39
|
return this.providers.makeRequest({
|
|
24
|
-
route:
|
|
40
|
+
route: this.buildRoute('channel'),
|
|
25
41
|
method: 'DELETE',
|
|
26
42
|
params: {
|
|
27
43
|
id: id,
|
|
@@ -30,13 +46,13 @@ var ChannelApi = (function () {
|
|
|
30
46
|
};
|
|
31
47
|
ChannelApi.prototype.deleteAllChannels = function () {
|
|
32
48
|
return this.providers.makeRequest({
|
|
33
|
-
route:
|
|
49
|
+
route: this.buildRoute('channels'),
|
|
34
50
|
method: 'DELETE',
|
|
35
51
|
});
|
|
36
52
|
};
|
|
37
53
|
ChannelApi.prototype.updateChannel = function (id, data) {
|
|
38
54
|
return this.providers.makeRequest({
|
|
39
|
-
route:
|
|
55
|
+
route: this.buildRoute('channel'),
|
|
40
56
|
method: 'PATCH',
|
|
41
57
|
data: data,
|
|
42
58
|
params: {
|
|
@@ -46,17 +62,17 @@ var ChannelApi = (function () {
|
|
|
46
62
|
};
|
|
47
63
|
ChannelApi.prototype.createChannel = function (data) {
|
|
48
64
|
return this.providers.makeRequest({
|
|
49
|
-
route:
|
|
65
|
+
route: this.buildRoute('channel'),
|
|
50
66
|
method: 'POST',
|
|
51
67
|
data: data,
|
|
52
68
|
});
|
|
53
69
|
};
|
|
54
70
|
ChannelApi.prototype.getSuggestedChannels = function () {
|
|
55
71
|
return this.providers.makeRequest({
|
|
56
|
-
route:
|
|
72
|
+
route: this.buildRoute('channels/suggested'),
|
|
57
73
|
});
|
|
58
74
|
};
|
|
59
75
|
return ChannelApi;
|
|
60
|
-
}());
|
|
76
|
+
}(BaseApi_1.BaseApi));
|
|
61
77
|
exports.ChannelApi = ChannelApi;
|
|
62
78
|
//# sourceMappingURL=channelApi.js.map
|
|
@@ -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,qCAAoC;AAEpC;IAAgC,8BAAO;IACrC,oBAAY,MAAqB;eAC/B,kBAAM,MAAM,CAAC;IACf,CAAC;IAMD,+BAAU,GAAV,UAAW,EAAU;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YACjC,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,mCAAc,GAAd;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;SACnC,CAAC,CAAC;IACL,CAAC;IAMD,kCAAa,GAAb,UAAc,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,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAKD,sCAAiB,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,kCAAa,GAAb,UAAc,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,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,kCAAa,GAAb,UAAc,IAAuB;QACnC,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,yCAAoB,GAApB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;IACH,iBAAC;AAAD,CAAC,AAxFD,CAAgC,iBAAO,GAwFtC;AAxFY,gCAAU"}
|
|
@@ -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.DomainApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
var DomainApi = (function () {
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var BaseApi_1 = require("./BaseApi");
|
|
20
|
+
var DomainApi = (function (_super) {
|
|
21
|
+
__extends(DomainApi, _super);
|
|
22
|
+
function DomainApi(config) {
|
|
23
|
+
return _super.call(this, config) || this;
|
|
8
24
|
}
|
|
9
25
|
DomainApi.prototype.getDomain = function (id) {
|
|
10
26
|
return this.providers.makeRequest({
|
|
11
|
-
route:
|
|
27
|
+
route: this.buildRoute('domain'),
|
|
12
28
|
params: {
|
|
13
29
|
id: id,
|
|
14
30
|
},
|
|
@@ -16,12 +32,12 @@ var DomainApi = (function () {
|
|
|
16
32
|
};
|
|
17
33
|
DomainApi.prototype.getAllDomains = function () {
|
|
18
34
|
return this.providers.makeRequest({
|
|
19
|
-
route:
|
|
35
|
+
route: this.buildRoute('domains'),
|
|
20
36
|
});
|
|
21
37
|
};
|
|
22
38
|
DomainApi.prototype.deleteDomain = function (id) {
|
|
23
39
|
return this.providers.makeRequest({
|
|
24
|
-
route:
|
|
40
|
+
route: this.buildRoute('domain'),
|
|
25
41
|
method: 'DELETE',
|
|
26
42
|
params: {
|
|
27
43
|
id: id,
|
|
@@ -30,13 +46,13 @@ var DomainApi = (function () {
|
|
|
30
46
|
};
|
|
31
47
|
DomainApi.prototype.deleteAllDomains = function () {
|
|
32
48
|
return this.providers.makeRequest({
|
|
33
|
-
route:
|
|
49
|
+
route: this.buildRoute('domains'),
|
|
34
50
|
method: 'DELETE',
|
|
35
51
|
});
|
|
36
52
|
};
|
|
37
53
|
DomainApi.prototype.updateDomain = function (id, data) {
|
|
38
54
|
return this.providers.makeRequest({
|
|
39
|
-
route:
|
|
55
|
+
route: this.buildRoute('domain'),
|
|
40
56
|
method: 'PATCH',
|
|
41
57
|
data: data,
|
|
42
58
|
params: {
|
|
@@ -46,12 +62,12 @@ var DomainApi = (function () {
|
|
|
46
62
|
};
|
|
47
63
|
DomainApi.prototype.createDomain = function (data) {
|
|
48
64
|
return this.providers.makeRequest({
|
|
49
|
-
route:
|
|
65
|
+
route: this.buildRoute('domain'),
|
|
50
66
|
method: 'POST',
|
|
51
67
|
data: data,
|
|
52
68
|
});
|
|
53
69
|
};
|
|
54
70
|
return DomainApi;
|
|
55
|
-
}());
|
|
71
|
+
}(BaseApi_1.BaseApi));
|
|
56
72
|
exports.DomainApi = DomainApi;
|
|
57
73
|
//# sourceMappingURL=domainApi.js.map
|
|
@@ -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,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;IAMD,iCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;SAClC,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,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;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,AA/ED,CAA+B,iBAAO,GA+ErC;AA/EY,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.DomainRelationshipApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
var DomainRelationshipApi = (function () {
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var BaseApi_1 = require("./BaseApi");
|
|
20
|
+
var DomainRelationshipApi = (function (_super) {
|
|
21
|
+
__extends(DomainRelationshipApi, _super);
|
|
22
|
+
function DomainRelationshipApi(config) {
|
|
23
|
+
return _super.call(this, config) || this;
|
|
8
24
|
}
|
|
9
25
|
DomainRelationshipApi.prototype.getDomainChannelList = function (id) {
|
|
10
26
|
return this.providers.makeRequest({
|
|
11
|
-
route:
|
|
27
|
+
route: this.buildRoute('domain/channels'),
|
|
12
28
|
method: 'GET',
|
|
13
29
|
params: {
|
|
14
30
|
id: id,
|
|
@@ -17,7 +33,7 @@ var DomainRelationshipApi = (function () {
|
|
|
17
33
|
};
|
|
18
34
|
DomainRelationshipApi.prototype.getDomainSkillList = function (id) {
|
|
19
35
|
return this.providers.makeRequest({
|
|
20
|
-
route:
|
|
36
|
+
route: this.buildRoute('domain/skills'),
|
|
21
37
|
method: 'GET',
|
|
22
38
|
params: {
|
|
23
39
|
id: id,
|
|
@@ -26,7 +42,7 @@ var DomainRelationshipApi = (function () {
|
|
|
26
42
|
};
|
|
27
43
|
DomainRelationshipApi.prototype.getDomainMemoryList = function (id) {
|
|
28
44
|
return this.providers.makeRequest({
|
|
29
|
-
route:
|
|
45
|
+
route: this.buildRoute('domain/memories'),
|
|
30
46
|
method: 'GET',
|
|
31
47
|
params: {
|
|
32
48
|
id: id,
|
|
@@ -35,7 +51,7 @@ var DomainRelationshipApi = (function () {
|
|
|
35
51
|
};
|
|
36
52
|
DomainRelationshipApi.prototype.attachChannels = function (id, data) {
|
|
37
53
|
return this.providers.makeRequest({
|
|
38
|
-
route:
|
|
54
|
+
route: this.buildRoute('domain/channels'),
|
|
39
55
|
method: 'POST',
|
|
40
56
|
data: data,
|
|
41
57
|
params: {
|
|
@@ -45,7 +61,7 @@ var DomainRelationshipApi = (function () {
|
|
|
45
61
|
};
|
|
46
62
|
DomainRelationshipApi.prototype.attachSkills = function (id, data) {
|
|
47
63
|
return this.providers.makeRequest({
|
|
48
|
-
route:
|
|
64
|
+
route: this.buildRoute('domain/skills'),
|
|
49
65
|
method: 'POST',
|
|
50
66
|
data: data,
|
|
51
67
|
params: {
|
|
@@ -55,7 +71,7 @@ var DomainRelationshipApi = (function () {
|
|
|
55
71
|
};
|
|
56
72
|
DomainRelationshipApi.prototype.attachMemories = function (id, data) {
|
|
57
73
|
return this.providers.makeRequest({
|
|
58
|
-
route:
|
|
74
|
+
route: this.buildRoute('domain/memories'),
|
|
59
75
|
method: 'POST',
|
|
60
76
|
data: data,
|
|
61
77
|
params: {
|
|
@@ -65,7 +81,7 @@ var DomainRelationshipApi = (function () {
|
|
|
65
81
|
};
|
|
66
82
|
DomainRelationshipApi.prototype.detachChannels = function (id, data) {
|
|
67
83
|
return this.providers.makeRequest({
|
|
68
|
-
route:
|
|
84
|
+
route: this.buildRoute('domain/channels'),
|
|
69
85
|
method: 'DELETE',
|
|
70
86
|
data: data,
|
|
71
87
|
params: {
|
|
@@ -75,7 +91,7 @@ var DomainRelationshipApi = (function () {
|
|
|
75
91
|
};
|
|
76
92
|
DomainRelationshipApi.prototype.detachSkills = function (id, data) {
|
|
77
93
|
return this.providers.makeRequest({
|
|
78
|
-
route:
|
|
94
|
+
route: this.buildRoute('domain/skills'),
|
|
79
95
|
method: 'DELETE',
|
|
80
96
|
data: data,
|
|
81
97
|
params: {
|
|
@@ -85,7 +101,7 @@ var DomainRelationshipApi = (function () {
|
|
|
85
101
|
};
|
|
86
102
|
DomainRelationshipApi.prototype.detachMemories = function (id, data) {
|
|
87
103
|
return this.providers.makeRequest({
|
|
88
|
-
route:
|
|
104
|
+
route: this.buildRoute('domain/memories'),
|
|
89
105
|
method: 'DELETE',
|
|
90
106
|
data: data,
|
|
91
107
|
params: {
|
|
@@ -94,6 +110,6 @@ var DomainRelationshipApi = (function () {
|
|
|
94
110
|
});
|
|
95
111
|
};
|
|
96
112
|
return DomainRelationshipApi;
|
|
97
|
-
}());
|
|
113
|
+
}(BaseApi_1.BaseApi));
|
|
98
114
|
exports.DomainRelationshipApi = DomainRelationshipApi;
|
|
99
115
|
//# sourceMappingURL=domainRelationshipApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domainRelationshipApi.js","sourceRoot":"","sources":["../../../src/api/domainRelationshipApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"domainRelationshipApi.js","sourceRoot":"","sources":["../../../src/api/domainRelationshipApi.ts"],"names":[],"mappings":"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"}
|
package/dist/cjs/api/flowApi.js
CHANGED
|
@@ -1,15 +1,31 @@
|
|
|
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.FlowApi = void 0;
|
|
4
|
-
var helpers_1 = require("../helpers");
|
|
5
19
|
var dto_1 = require("../dto");
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
20
|
+
var BaseApi_1 = require("./BaseApi");
|
|
21
|
+
var FlowApi = (function (_super) {
|
|
22
|
+
__extends(FlowApi, _super);
|
|
23
|
+
function FlowApi(config) {
|
|
24
|
+
return _super.call(this, config) || this;
|
|
9
25
|
}
|
|
10
26
|
FlowApi.prototype.getFlow = function (id) {
|
|
11
27
|
return this.providers.makeRequest({
|
|
12
|
-
route:
|
|
28
|
+
route: this.buildRoute('flow'),
|
|
13
29
|
params: {
|
|
14
30
|
id: id,
|
|
15
31
|
},
|
|
@@ -17,7 +33,7 @@ var FlowApi = (function () {
|
|
|
17
33
|
};
|
|
18
34
|
FlowApi.prototype.deleteFlow = function (id) {
|
|
19
35
|
return this.providers.makeRequest({
|
|
20
|
-
route:
|
|
36
|
+
route: this.buildRoute('flow'),
|
|
21
37
|
method: 'DELETE',
|
|
22
38
|
params: {
|
|
23
39
|
id: id,
|
|
@@ -26,7 +42,7 @@ var FlowApi = (function () {
|
|
|
26
42
|
};
|
|
27
43
|
FlowApi.prototype.deleteFlows = function (ids) {
|
|
28
44
|
return this.providers.makeRequest({
|
|
29
|
-
route:
|
|
45
|
+
route: this.buildRoute('flows'),
|
|
30
46
|
method: 'DELETE',
|
|
31
47
|
params: {
|
|
32
48
|
ids: ids.join(),
|
|
@@ -36,7 +52,7 @@ var FlowApi = (function () {
|
|
|
36
52
|
FlowApi.prototype.upsert = function (flow) {
|
|
37
53
|
var data = (0, dto_1.flowUpsertDataDto)(flow);
|
|
38
54
|
return this.providers.makeRequest({
|
|
39
|
-
route:
|
|
55
|
+
route: this.buildRoute('flow'),
|
|
40
56
|
method: 'POST',
|
|
41
57
|
data: data,
|
|
42
58
|
});
|
|
@@ -45,7 +61,7 @@ var FlowApi = (function () {
|
|
|
45
61
|
var id = flow.id;
|
|
46
62
|
var data = (0, dto_1.flowActivateDataDto)(flow);
|
|
47
63
|
return this.providers.makeRequest({
|
|
48
|
-
route:
|
|
64
|
+
route: this.buildRoute('flow/activate'),
|
|
49
65
|
method: 'PATCH',
|
|
50
66
|
data: data,
|
|
51
67
|
params: {
|
|
@@ -55,7 +71,7 @@ var FlowApi = (function () {
|
|
|
55
71
|
};
|
|
56
72
|
FlowApi.prototype.deactivateFlow = function (id) {
|
|
57
73
|
return this.providers.makeRequest({
|
|
58
|
-
route:
|
|
74
|
+
route: this.buildRoute('flow/deactivate'),
|
|
59
75
|
method: 'PATCH',
|
|
60
76
|
params: {
|
|
61
77
|
id: id,
|
|
@@ -63,6 +79,6 @@ var FlowApi = (function () {
|
|
|
63
79
|
});
|
|
64
80
|
};
|
|
65
81
|
return FlowApi;
|
|
66
|
-
}());
|
|
82
|
+
}(BaseApi_1.BaseApi));
|
|
67
83
|
exports.FlowApi = FlowApi;
|
|
68
84
|
//# sourceMappingURL=flowApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowApi.js","sourceRoot":"","sources":["../../../src/api/flowApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flowApi.js","sourceRoot":"","sources":["../../../src/api/flowApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,8BAAgE;AAChE,qCAAoC;AAEpC;IAA6B,2BAAO;IAClC,iBAAY,MAAqB;eAC/B,kBAAM,MAAM,CAAC;IACf,CAAC;IAMD,yBAAO,GAAP,UAAQ,EAAU;QAChB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC9B,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,4BAAU,GAAV,UAAW,EAAU;QACnB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC9B,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,6BAAW,GAAX,UAAY,GAAa;QACvB,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,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE;aAChB;SACF,CAAC,CAAC;IACL,CAAC;IAMD,wBAAM,GAAN,UAAO,IAAc;QACnB,IAAM,IAAI,GAAG,IAAA,uBAAiB,EAAC,IAAI,CAAC,CAAC;QACrC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAC9B,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAMD,8BAAY,GAAZ,UAAa,IAAc;QACzB,IAAM,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QACnB,IAAM,IAAI,GAAG,IAAA,yBAAmB,EAAC,IAAI,CAAC,CAAC;QACvC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;YACvC,MAAM,EAAE,OAAO;YACf,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAMD,gCAAc,GAAd,UAAe,EAAU;QACvB,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,OAAO;YACf,MAAM,EAAE;gBACN,EAAE,IAAA;aACH;SACF,CAAC,CAAC;IACL,CAAC;IAEH,cAAC;AAAD,CAAC,AA1FD,CAA6B,iBAAO,GA0FnC;AA1FY,0BAAO"}
|
package/dist/cjs/api/idwDbApi.js
CHANGED
|
@@ -1,24 +1,40 @@
|
|
|
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.IdwDbApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
var IdwDbApi = (function () {
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var BaseApi_1 = require("./BaseApi");
|
|
20
|
+
var IdwDbApi = (function (_super) {
|
|
21
|
+
__extends(IdwDbApi, _super);
|
|
22
|
+
function IdwDbApi(config) {
|
|
23
|
+
return _super.call(this, config) || this;
|
|
8
24
|
}
|
|
9
25
|
IdwDbApi.prototype.isDbExist = function () {
|
|
10
26
|
return this.providers.makeRequest({
|
|
11
|
-
route:
|
|
27
|
+
route: this.buildRoute('db'),
|
|
12
28
|
method: 'GET',
|
|
13
29
|
});
|
|
14
30
|
};
|
|
15
31
|
IdwDbApi.prototype.prepareDb = function () {
|
|
16
32
|
return this.providers.makeRequest({
|
|
17
|
-
route:
|
|
33
|
+
route: this.buildRoute('db'),
|
|
18
34
|
method: 'POST',
|
|
19
35
|
});
|
|
20
36
|
};
|
|
21
37
|
return IdwDbApi;
|
|
22
|
-
}());
|
|
38
|
+
}(BaseApi_1.BaseApi));
|
|
23
39
|
exports.IdwDbApi = IdwDbApi;
|
|
24
40
|
//# sourceMappingURL=idwDbApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idwDbApi.js","sourceRoot":"","sources":["../../../src/api/idwDbApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"idwDbApi.js","sourceRoot":"","sources":["../../../src/api/idwDbApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,qCAAoC;AAEpC;IAA8B,4BAAO;IACnC,kBAAY,MAAqB;eAC/B,kBAAM,MAAM,CAAC;IACf,CAAC;IAKD,4BAAS,GAAT;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC5B,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,4BAAS,GAAT;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YAC5B,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IACH,eAAC;AAAD,CAAC,AAxBD,CAA8B,iBAAO,GAwBpC;AAxBY,4BAAQ"}
|
|
@@ -1,31 +1,47 @@
|
|
|
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.IdwInfoApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
var IdwInfoApi = (function () {
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var BaseApi_1 = require("./BaseApi");
|
|
20
|
+
var IdwInfoApi = (function (_super) {
|
|
21
|
+
__extends(IdwInfoApi, _super);
|
|
22
|
+
function IdwInfoApi(config) {
|
|
23
|
+
return _super.call(this, config) || this;
|
|
8
24
|
}
|
|
9
25
|
IdwInfoApi.prototype.getBaseInfo = function () {
|
|
10
26
|
return this.providers.makeRequest({
|
|
11
|
-
route:
|
|
27
|
+
route: this.buildRoute('idw-info'),
|
|
12
28
|
method: 'GET',
|
|
13
29
|
});
|
|
14
30
|
};
|
|
15
31
|
IdwInfoApi.prototype.getIdwInfoWithStatistic = function () {
|
|
16
32
|
return this.providers.makeRequest({
|
|
17
|
-
route:
|
|
33
|
+
route: this.buildRoute('idw-info/statistic'),
|
|
18
34
|
method: 'GET',
|
|
19
35
|
});
|
|
20
36
|
};
|
|
21
37
|
IdwInfoApi.prototype.updateIdwInfo = function (data) {
|
|
22
38
|
return this.providers.makeRequest({
|
|
23
|
-
route:
|
|
39
|
+
route: this.buildRoute('idw-info'),
|
|
24
40
|
method: 'POST',
|
|
25
41
|
data: data,
|
|
26
42
|
});
|
|
27
43
|
};
|
|
28
44
|
return IdwInfoApi;
|
|
29
|
-
}());
|
|
45
|
+
}(BaseApi_1.BaseApi));
|
|
30
46
|
exports.IdwInfoApi = IdwInfoApi;
|
|
31
47
|
//# sourceMappingURL=idwInfoApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idwInfoApi.js","sourceRoot":"","sources":["../../../src/api/idwInfoApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"idwInfoApi.js","sourceRoot":"","sources":["../../../src/api/idwInfoApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,qCAAoC;AAEpC;IAAgC,8BAAO;IACrC,oBAAY,MAAqB;eAC/B,kBAAM,MAAM,CAAC;IACf,CAAC;IAKD,gCAAW,GAAX;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAClC,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,4CAAuB,GAAvB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;YAC5C,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IAKD,kCAAa,GAAb,UAAc,IAAiB;QAC7B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAClC,MAAM,EAAE,MAAM;YACd,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IACH,iBAAC;AAAD,CAAC,AAnCD,CAAgC,iBAAO,GAmCtC;AAnCY,gCAAU"}
|