@or-sdk/idw 7.3.0 → 7.3.2-beta.2766.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.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/api/domainRelationshipApi.js +18 -18
- package/dist/cjs/api/domainRelationshipApi.js.map +1 -1
- package/dist/cjs/api/errors.js +17 -1
- package/dist/cjs/api/errors.js.map +1 -1
- package/dist/cjs/api/skillApi.js +163 -29
- package/dist/cjs/api/skillApi.js.map +1 -1
- package/dist/cjs/api/slugApi.js +49 -6
- package/dist/cjs/api/slugApi.js.map +1 -1
- package/dist/esm/api/domainRelationshipApi.js +18 -18
- package/dist/esm/api/domainRelationshipApi.js.map +1 -1
- package/dist/esm/api/errors.js +4 -0
- package/dist/esm/api/errors.js.map +1 -1
- package/dist/esm/api/skillApi.js +89 -29
- package/dist/esm/api/skillApi.js.map +1 -1
- package/dist/esm/api/slugApi.js +17 -6
- package/dist/esm/api/slugApi.js.map +1 -1
- package/dist/types/api/domainRelationshipApi.d.ts +15 -15
- package/dist/types/api/domainRelationshipApi.d.ts.map +1 -1
- package/dist/types/api/errors.d.ts +4 -0
- package/dist/types/api/errors.d.ts.map +1 -1
- package/dist/types/api/skillApi.d.ts +5 -3
- package/dist/types/api/skillApi.d.ts.map +1 -1
- package/dist/types/api/slugApi.d.ts +2 -2
- package/dist/types/api/slugApi.d.ts.map +1 -1
- package/package.json +2 -3
- package/src/api/domainRelationshipApi.ts +44 -28
- package/src/api/errors.ts +3 -0
- package/src/api/skillApi.ts +76 -33
- package/src/api/slugApi.ts +3 -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
|
+
## [7.3.1](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@7.3.0...@or-sdk/idw@7.3.1) (2024-05-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **idw:** Update domain slug query param to be 'id' ([ec2abf2](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/ec2abf2f7370053e4b7f09c721e8c1c2d03f7ddd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [7.3.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@7.2.6...@or-sdk/idw@7.3.0) (2024-05-28)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -22,90 +22,90 @@ var DomainRelationshipApi = (function (_super) {
|
|
|
22
22
|
function DomainRelationshipApi(config) {
|
|
23
23
|
return _super.call(this, config) || this;
|
|
24
24
|
}
|
|
25
|
-
DomainRelationshipApi.prototype.getDomainChannelList = function (
|
|
25
|
+
DomainRelationshipApi.prototype.getDomainChannelList = function (slug) {
|
|
26
26
|
return this.providers.makeRequest({
|
|
27
27
|
route: this.buildRoute('domain/channels'),
|
|
28
28
|
method: 'GET',
|
|
29
29
|
params: {
|
|
30
|
-
id:
|
|
30
|
+
id: slug,
|
|
31
31
|
},
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
DomainRelationshipApi.prototype.getDomainSkillList = function (
|
|
34
|
+
DomainRelationshipApi.prototype.getDomainSkillList = function (slug) {
|
|
35
35
|
return this.providers.makeRequest({
|
|
36
36
|
route: this.buildRoute('domain/skills'),
|
|
37
37
|
method: 'GET',
|
|
38
38
|
params: {
|
|
39
|
-
id:
|
|
39
|
+
id: slug,
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
DomainRelationshipApi.prototype.getDomainMemoryList = function (
|
|
43
|
+
DomainRelationshipApi.prototype.getDomainMemoryList = function (slug) {
|
|
44
44
|
return this.providers.makeRequest({
|
|
45
45
|
route: this.buildRoute('domain/memories'),
|
|
46
46
|
method: 'GET',
|
|
47
47
|
params: {
|
|
48
|
-
id:
|
|
48
|
+
id: slug,
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
DomainRelationshipApi.prototype.attachChannels = function (
|
|
52
|
+
DomainRelationshipApi.prototype.attachChannels = function (slug, data) {
|
|
53
53
|
return this.providers.makeRequest({
|
|
54
54
|
route: this.buildRoute('domain/channels'),
|
|
55
55
|
method: 'POST',
|
|
56
56
|
data: data,
|
|
57
57
|
params: {
|
|
58
|
-
|
|
58
|
+
id: slug,
|
|
59
59
|
},
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
DomainRelationshipApi.prototype.attachSkills = function (
|
|
62
|
+
DomainRelationshipApi.prototype.attachSkills = function (slug, data) {
|
|
63
63
|
return this.providers.makeRequest({
|
|
64
64
|
route: this.buildRoute('domain/skills'),
|
|
65
65
|
method: 'POST',
|
|
66
66
|
data: data,
|
|
67
67
|
params: {
|
|
68
|
-
|
|
68
|
+
id: slug,
|
|
69
69
|
},
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
DomainRelationshipApi.prototype.attachMemories = function (
|
|
72
|
+
DomainRelationshipApi.prototype.attachMemories = function (slug, data) {
|
|
73
73
|
return this.providers.makeRequest({
|
|
74
74
|
route: this.buildRoute('domain/memories'),
|
|
75
75
|
method: 'POST',
|
|
76
76
|
data: data,
|
|
77
77
|
params: {
|
|
78
|
-
|
|
78
|
+
id: slug,
|
|
79
79
|
},
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
|
-
DomainRelationshipApi.prototype.detachChannels = function (
|
|
82
|
+
DomainRelationshipApi.prototype.detachChannels = function (slug, data) {
|
|
83
83
|
return this.providers.makeRequest({
|
|
84
84
|
route: this.buildRoute('domain/channels'),
|
|
85
85
|
method: 'DELETE',
|
|
86
86
|
data: data,
|
|
87
87
|
params: {
|
|
88
|
-
|
|
88
|
+
id: slug,
|
|
89
89
|
},
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
-
DomainRelationshipApi.prototype.detachSkills = function (
|
|
92
|
+
DomainRelationshipApi.prototype.detachSkills = function (slug, data) {
|
|
93
93
|
return this.providers.makeRequest({
|
|
94
94
|
route: this.buildRoute('domain/skills'),
|
|
95
95
|
method: 'DELETE',
|
|
96
96
|
data: data,
|
|
97
97
|
params: {
|
|
98
|
-
|
|
98
|
+
id: slug,
|
|
99
99
|
},
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
DomainRelationshipApi.prototype.detachMemories = function (
|
|
102
|
+
DomainRelationshipApi.prototype.detachMemories = function (slug, data) {
|
|
103
103
|
return this.providers.makeRequest({
|
|
104
104
|
route: this.buildRoute('domain/memories'),
|
|
105
105
|
method: 'DELETE',
|
|
106
106
|
data: data,
|
|
107
107
|
params: {
|
|
108
|
-
|
|
108
|
+
id: slug,
|
|
109
109
|
},
|
|
110
110
|
});
|
|
111
111
|
};
|
|
@@ -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":";;;;;;;;;;;;;;;;;;AASA,qCAAoC;AAEpC;IAA2C,yCAAO;IAChD,+BAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAMD,oDAAoB,GAApB,UAAqB,IAAY;QAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAMD,kDAAkB,GAAlB,UAAmB,IAAY;QAC7B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CA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AEnD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,QAAQ;YAChB,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAOD,4CAAY,GAAZ,UACE,IAAY,EACZ,IAAmD;QAEnD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;YACvC,MAAM,EAAE,QAAQ;YAChB,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAOD,8CAAc,GAAd,UACE,IAAY,EACZ,IAAmD;QAEnD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,QAAQ;YAChB,IAAI,MAAA;YACJ,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IACH,4BAAC;AAAD,CAAC,AA7JD,CAA2C,iBAAO,GA6JjD;AA7JY,sDAAqB"}
|
package/dist/cjs/api/errors.js
CHANGED
|
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.DomainNotFoundError = exports.DomainError = void 0;
|
|
18
|
+
exports.SkillNotFoundError = exports.SkillError = exports.DomainNotFoundError = exports.DomainError = void 0;
|
|
19
19
|
var base_1 = require("@or-sdk/base");
|
|
20
20
|
var DomainError = (function (_super) {
|
|
21
21
|
__extends(DomainError, _super);
|
|
@@ -33,4 +33,20 @@ var DomainNotFoundError = (function (_super) {
|
|
|
33
33
|
return DomainNotFoundError;
|
|
34
34
|
}(DomainError));
|
|
35
35
|
exports.DomainNotFoundError = DomainNotFoundError;
|
|
36
|
+
var SkillError = (function (_super) {
|
|
37
|
+
__extends(SkillError, _super);
|
|
38
|
+
function SkillError() {
|
|
39
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
+
}
|
|
41
|
+
return SkillError;
|
|
42
|
+
}(base_1.BaseError));
|
|
43
|
+
exports.SkillError = SkillError;
|
|
44
|
+
var SkillNotFoundError = (function (_super) {
|
|
45
|
+
__extends(SkillNotFoundError, _super);
|
|
46
|
+
function SkillNotFoundError() {
|
|
47
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
+
}
|
|
49
|
+
return SkillNotFoundError;
|
|
50
|
+
}(SkillError));
|
|
51
|
+
exports.SkillNotFoundError = SkillNotFoundError;
|
|
36
52
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/api/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AAEzC;IAAiC,+BAAS;IAA1C;;IAA4C,CAAC;IAAD,kBAAC;AAAD,CAAC,AAA7C,CAAiC,gBAAS,GAAG;AAAhC,kCAAW;AACxB;IAAyC,uCAAW;IAApD;;IAAsD,CAAC;IAAD,0BAAC;AAAD,CAAC,AAAvD,CAAyC,WAAW,GAAG;AAA1C,kDAAmB"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/api/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AAEzC;IAAiC,+BAAS;IAA1C;;IAA4C,CAAC;IAAD,kBAAC;AAAD,CAAC,AAA7C,CAAiC,gBAAS,GAAG;AAAhC,kCAAW;AACxB;IAAyC,uCAAW;IAApD;;IAAsD,CAAC;IAAD,0BAAC;AAAD,CAAC,AAAvD,CAAyC,WAAW,GAAG;AAA1C,kDAAmB;AAEhC;IAAgC,8BAAS;IAAzC;;IAA2C,CAAC;IAAD,iBAAC;AAAD,CAAC,AAA5C,CAAgC,gBAAS,GAAG;AAA/B,gCAAU;AACvB;IAAwC,sCAAU;IAAlD;;IAAoD,CAAC;IAAD,yBAAC;AAAD,CAAC,AAArD,CAAwC,UAAU,GAAG;AAAxC,gDAAkB"}
|
package/dist/cjs/api/skillApi.js
CHANGED
|
@@ -14,64 +14,198 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
17
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
54
|
exports.SkillApi = void 0;
|
|
55
|
+
var base_1 = require("@or-sdk/base");
|
|
19
56
|
var BaseApi_1 = require("./BaseApi");
|
|
57
|
+
var errors_1 = require("./errors");
|
|
20
58
|
var SkillApi = (function (_super) {
|
|
21
59
|
__extends(SkillApi, _super);
|
|
22
60
|
function SkillApi(config) {
|
|
23
61
|
return _super.call(this, config) || this;
|
|
24
62
|
}
|
|
25
63
|
SkillApi.prototype.getSkill = function (id) {
|
|
26
|
-
return this
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
64
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
65
|
+
var error_1;
|
|
66
|
+
return __generator(this, function (_a) {
|
|
67
|
+
switch (_a.label) {
|
|
68
|
+
case 0:
|
|
69
|
+
_a.trys.push([0, 2, , 3]);
|
|
70
|
+
return [4, this.providers.makeRequest({
|
|
71
|
+
route: this.buildRoute('skill'),
|
|
72
|
+
params: {
|
|
73
|
+
id: id,
|
|
74
|
+
},
|
|
75
|
+
})];
|
|
76
|
+
case 1: return [2, _a.sent()];
|
|
77
|
+
case 2:
|
|
78
|
+
error_1 = _a.sent();
|
|
79
|
+
throw this._parseError(error_1, { notFoundMessage: "No skills with id: '".concat(id, "'") });
|
|
80
|
+
case 3: return [2];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
31
83
|
});
|
|
32
84
|
};
|
|
33
85
|
SkillApi.prototype.getAllSkills = function () {
|
|
34
|
-
return this
|
|
35
|
-
|
|
86
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
87
|
+
return __generator(this, function (_a) {
|
|
88
|
+
switch (_a.label) {
|
|
89
|
+
case 0: return [4, this.providers.makeRequest({
|
|
90
|
+
route: this.buildRoute('skills'),
|
|
91
|
+
})];
|
|
92
|
+
case 1: return [2, _a.sent()];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
36
95
|
});
|
|
37
96
|
};
|
|
38
97
|
SkillApi.prototype.deleteSkill = function (id) {
|
|
39
|
-
return this
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
98
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
99
|
+
var error_2;
|
|
100
|
+
return __generator(this, function (_a) {
|
|
101
|
+
switch (_a.label) {
|
|
102
|
+
case 0:
|
|
103
|
+
_a.trys.push([0, 2, , 3]);
|
|
104
|
+
return [4, this.providers.makeRequest({
|
|
105
|
+
route: this.buildRoute('skill'),
|
|
106
|
+
method: 'DELETE',
|
|
107
|
+
params: {
|
|
108
|
+
id: id,
|
|
109
|
+
},
|
|
110
|
+
})];
|
|
111
|
+
case 1: return [2, _a.sent()];
|
|
112
|
+
case 2:
|
|
113
|
+
error_2 = _a.sent();
|
|
114
|
+
throw this._parseError(error_2, { notFoundMessage: "No skills with id: '".concat(id, "'") });
|
|
115
|
+
case 3: return [2];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
45
118
|
});
|
|
46
119
|
};
|
|
47
120
|
SkillApi.prototype.deleteAllSkills = function () {
|
|
48
|
-
return this
|
|
49
|
-
|
|
50
|
-
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
return __generator(this, function (_a) {
|
|
123
|
+
switch (_a.label) {
|
|
124
|
+
case 0: return [4, this.providers.makeRequest({
|
|
125
|
+
route: this.buildRoute('skills'),
|
|
126
|
+
method: 'DELETE',
|
|
127
|
+
})];
|
|
128
|
+
case 1: return [2, _a.sent()];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
SkillApi.prototype.patchSkill = function (id, data) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
135
|
+
var error_3;
|
|
136
|
+
return __generator(this, function (_a) {
|
|
137
|
+
switch (_a.label) {
|
|
138
|
+
case 0:
|
|
139
|
+
_a.trys.push([0, 2, , 3]);
|
|
140
|
+
return [4, this.providers.makeRequest({
|
|
141
|
+
route: this.buildRoute('skill'),
|
|
142
|
+
method: 'PATCH',
|
|
143
|
+
data: data,
|
|
144
|
+
params: {
|
|
145
|
+
id: id,
|
|
146
|
+
},
|
|
147
|
+
})];
|
|
148
|
+
case 1: return [2, _a.sent()];
|
|
149
|
+
case 2:
|
|
150
|
+
error_3 = _a.sent();
|
|
151
|
+
throw this._parseError(error_3, { notFoundMessage: "No skills with id: '".concat(id, "'") });
|
|
152
|
+
case 3: return [2];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
51
155
|
});
|
|
52
156
|
};
|
|
53
157
|
SkillApi.prototype.updateSkill = function (id, data) {
|
|
54
|
-
return this
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
158
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
+
return __generator(this, function (_a) {
|
|
160
|
+
switch (_a.label) {
|
|
161
|
+
case 0: return [4, this.patchSkill(id, data)];
|
|
162
|
+
case 1: return [2, _a.sent()];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
61
165
|
});
|
|
62
166
|
};
|
|
63
167
|
SkillApi.prototype.createSkill = function (data) {
|
|
64
|
-
return this
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
168
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
169
|
+
return __generator(this, function (_a) {
|
|
170
|
+
switch (_a.label) {
|
|
171
|
+
case 0: return [4, this.providers.makeRequest({
|
|
172
|
+
route: this.buildRoute('skill'),
|
|
173
|
+
method: 'POST',
|
|
174
|
+
data: data,
|
|
175
|
+
})];
|
|
176
|
+
case 1: return [2, _a.sent()];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
68
179
|
});
|
|
69
180
|
};
|
|
70
181
|
SkillApi.prototype.getSuggestedSkills = function () {
|
|
71
|
-
return this
|
|
72
|
-
|
|
182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
+
return __generator(this, function (_a) {
|
|
184
|
+
switch (_a.label) {
|
|
185
|
+
case 0: return [4, this.providers.makeRequest({
|
|
186
|
+
route: this.buildRoute('skills/suggested'),
|
|
187
|
+
})];
|
|
188
|
+
case 1: return [2, _a.sent()];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
73
191
|
});
|
|
74
192
|
};
|
|
193
|
+
SkillApi.prototype._parseError = function (error, _a) {
|
|
194
|
+
var _b, _c;
|
|
195
|
+
var _d = _a === void 0 ? {} : _a, _e = _d.notFoundMessage, notFoundMessage = _e === void 0 ? 'Skill not found' : _e;
|
|
196
|
+
if (!(error instanceof Error))
|
|
197
|
+
throw error;
|
|
198
|
+
if (error instanceof base_1.AxiosError && ((_b = error.response) === null || _b === void 0 ? void 0 : _b.status) === 404) {
|
|
199
|
+
return new errors_1.SkillNotFoundError(notFoundMessage, { cause: error });
|
|
200
|
+
}
|
|
201
|
+
if (error.cause instanceof base_1.AxiosError && ((_c = error.cause.response) === null || _c === void 0 ? void 0 : _c.status) === 404) {
|
|
202
|
+
return new errors_1.SkillNotFoundError(notFoundMessage, { cause: error.cause });
|
|
203
|
+
}
|
|
204
|
+
if (error instanceof base_1.AxiosError) {
|
|
205
|
+
return new errors_1.SkillError((0, base_1.parseAxiosErrorMessage)(error), { cause: error });
|
|
206
|
+
}
|
|
207
|
+
return error;
|
|
208
|
+
};
|
|
75
209
|
return SkillApi;
|
|
76
210
|
}(BaseApi_1.BaseApi));
|
|
77
211
|
exports.SkillApi = SkillApi;
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAkE;AASlE,qCAAoC;AACpC,mCAA0D;AAE1D;IAA8B,4BAAO;IACnC,kBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAMY,2BAAQ,GAArB,UAAsB,EAAgC;;;;;;;wBAE3C,WAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAgB;gCACrD,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;gCAC/B,MAAM,EAAE;oCACN,EAAE,IAAA;iCACH;6BACF,CAAC,EAAA;4BALF,WAAO,SAKL,EAAC;;;wBAEH,MAAM,IAAI,CAAC,WAAW,CAAC,OAAK,EAAE,EAAE,eAAe,EAAE,8BAAuB,EAAE,MAAG,EAAE,C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iBAAU,EAAE,CAAC;YAChC,OAAO,IAAI,mBAAU,CAAC,IAAA,6BAAsB,EAAC,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QACzE,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IACH,eAAC;AAAD,CAAC,AAjID,CAA8B,iBAAO,GAiIpC;AAjIY,4BAAQ"}
|
package/dist/cjs/api/slugApi.js
CHANGED
|
@@ -14,6 +14,42 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
17
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
54
|
exports.SlugApi = void 0;
|
|
19
55
|
var BaseApi_1 = require("./BaseApi");
|
|
@@ -23,12 +59,19 @@ var SlugApi = (function (_super) {
|
|
|
23
59
|
return _super.call(this, config) || this;
|
|
24
60
|
}
|
|
25
61
|
SlugApi.prototype.getSlug = function (string) {
|
|
26
|
-
return this
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
62
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
switch (_a.label) {
|
|
65
|
+
case 0: return [4, this.providers.makeRequest({
|
|
66
|
+
route: this.buildRoute('slug'),
|
|
67
|
+
method: 'GET',
|
|
68
|
+
params: {
|
|
69
|
+
string: string,
|
|
70
|
+
},
|
|
71
|
+
})];
|
|
72
|
+
case 1: return [2, _a.sent()];
|
|
73
|
+
}
|
|
74
|
+
});
|
|
32
75
|
});
|
|
33
76
|
};
|
|
34
77
|
return SlugApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slugApi.js","sourceRoot":"","sources":["../../../src/api/slugApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slugApi.js","sourceRoot":"","sources":["../../../src/api/slugApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAGpC;IAA6B,2BAAO;IAClC,iBAAY,MAAqB;QAC/B,OAAA,MAAK,YAAC,MAAM,CAAC,SAAC;IAChB,CAAC;IAKY,yBAAO,GAApB,UAAqB,MAAc;;;;4BAC1B,WAAM,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;4BACtC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;4BAC9B,MAAM,EAAE,KAAK;4BACb,MAAM,EAAE;gCACN,MAAM,QAAA;6BACP;yBACF,CAAC,EAAA;4BANF,WAAO,SAML,EAAC;;;;KACJ;IACH,cAAC;AAAD,CAAC,AAjBD,CAA6B,iBAAO,GAiBnC;AAjBY,0BAAO"}
|
|
@@ -3,90 +3,90 @@ export class DomainRelationshipApi extends BaseApi {
|
|
|
3
3
|
constructor(config) {
|
|
4
4
|
super(config);
|
|
5
5
|
}
|
|
6
|
-
getDomainChannelList(
|
|
6
|
+
getDomainChannelList(slug) {
|
|
7
7
|
return this.providers.makeRequest({
|
|
8
8
|
route: this.buildRoute('domain/channels'),
|
|
9
9
|
method: 'GET',
|
|
10
10
|
params: {
|
|
11
|
-
id,
|
|
11
|
+
id: slug,
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
getDomainSkillList(
|
|
15
|
+
getDomainSkillList(slug) {
|
|
16
16
|
return this.providers.makeRequest({
|
|
17
17
|
route: this.buildRoute('domain/skills'),
|
|
18
18
|
method: 'GET',
|
|
19
19
|
params: {
|
|
20
|
-
id,
|
|
20
|
+
id: slug,
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
getDomainMemoryList(
|
|
24
|
+
getDomainMemoryList(slug) {
|
|
25
25
|
return this.providers.makeRequest({
|
|
26
26
|
route: this.buildRoute('domain/memories'),
|
|
27
27
|
method: 'GET',
|
|
28
28
|
params: {
|
|
29
|
-
id,
|
|
29
|
+
id: slug,
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
attachChannels(
|
|
33
|
+
attachChannels(slug, data) {
|
|
34
34
|
return this.providers.makeRequest({
|
|
35
35
|
route: this.buildRoute('domain/channels'),
|
|
36
36
|
method: 'POST',
|
|
37
37
|
data,
|
|
38
38
|
params: {
|
|
39
|
-
|
|
39
|
+
id: slug,
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
attachSkills(
|
|
43
|
+
attachSkills(slug, data) {
|
|
44
44
|
return this.providers.makeRequest({
|
|
45
45
|
route: this.buildRoute('domain/skills'),
|
|
46
46
|
method: 'POST',
|
|
47
47
|
data,
|
|
48
48
|
params: {
|
|
49
|
-
|
|
49
|
+
id: slug,
|
|
50
50
|
},
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
attachMemories(
|
|
53
|
+
attachMemories(slug, data) {
|
|
54
54
|
return this.providers.makeRequest({
|
|
55
55
|
route: this.buildRoute('domain/memories'),
|
|
56
56
|
method: 'POST',
|
|
57
57
|
data,
|
|
58
58
|
params: {
|
|
59
|
-
|
|
59
|
+
id: slug,
|
|
60
60
|
},
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
detachChannels(
|
|
63
|
+
detachChannels(slug, data) {
|
|
64
64
|
return this.providers.makeRequest({
|
|
65
65
|
route: this.buildRoute('domain/channels'),
|
|
66
66
|
method: 'DELETE',
|
|
67
67
|
data,
|
|
68
68
|
params: {
|
|
69
|
-
|
|
69
|
+
id: slug,
|
|
70
70
|
},
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
detachSkills(
|
|
73
|
+
detachSkills(slug, data) {
|
|
74
74
|
return this.providers.makeRequest({
|
|
75
75
|
route: this.buildRoute('domain/skills'),
|
|
76
76
|
method: 'DELETE',
|
|
77
77
|
data,
|
|
78
78
|
params: {
|
|
79
|
-
|
|
79
|
+
id: slug,
|
|
80
80
|
},
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
detachMemories(
|
|
83
|
+
detachMemories(slug, data) {
|
|
84
84
|
return this.providers.makeRequest({
|
|
85
85
|
route: this.buildRoute('domain/memories'),
|
|
86
86
|
method: 'DELETE',
|
|
87
87
|
data,
|
|
88
88
|
params: {
|
|
89
|
-
|
|
89
|
+
id: slug,
|
|
90
90
|
},
|
|
91
91
|
});
|
|
92
92
|
}
|
|
@@ -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":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,OAAO,qBAAsB,SAAQ,OAAO;IAChD,YAAY,MAAqB;QAC/B,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAMD,oBAAoB,CAAC,IAAY;QAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,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AM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAOD,cAAc,CACZ,IAAY,EACZ,IAAmD;QAEnD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,QAAQ;YAChB,IAAI;YACJ,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAOD,YAAY,CACV,IAAY,EACZ,IAAmD;QAEnD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;YACvC,MAAM,EAAE,QAAQ;YAChB,IAAI;YACJ,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;IAOD,cAAc,CACZ,IAAY,EACZ,IAAmD;QAEnD,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;YACzC,MAAM,EAAE,QAAQ;YAChB,IAAI;YACJ,MAAM,EAAE;gBACN,EAAE,EAAE,IAAI;aACT;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/dist/esm/api/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/api/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,OAAO,WAAY,SAAQ,SAAS;CAAG;AAC7C,MAAM,OAAO,mBAAoB,SAAQ,WAAW;CAAG"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/api/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,OAAO,WAAY,SAAQ,SAAS;CAAG;AAC7C,MAAM,OAAO,mBAAoB,SAAQ,WAAW;CAAG;AAEvD,MAAM,OAAO,UAAW,SAAQ,SAAS;CAAG;AAC5C,MAAM,OAAO,kBAAmB,SAAQ,UAAU;CAAG"}
|