@or-sdk/billing 11.80.2 → 11.80.3-beta.3982.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/dist/cjs/api/auditApi/index.js +10 -16
- package/dist/cjs/api/auditApi/index.js.map +1 -1
- package/dist/cjs/api/discoveryApi/index.js +15 -6
- package/dist/cjs/api/discoveryApi/index.js.map +1 -1
- package/dist/cjs/api/environmentsApi/index.js +24 -23
- package/dist/cjs/api/environmentsApi/index.js.map +1 -1
- package/dist/esm/api/auditApi/index.js +7 -16
- package/dist/esm/api/auditApi/index.js.map +1 -1
- package/dist/esm/api/discoveryApi/index.js +3 -6
- package/dist/esm/api/discoveryApi/index.js.map +1 -1
- package/dist/esm/api/environmentsApi/index.js +15 -23
- package/dist/esm/api/environmentsApi/index.js.map +1 -1
- package/dist/types/api/auditApi/index.d.ts +3 -3
- package/dist/types/api/auditApi/index.d.ts.map +1 -1
- package/dist/types/api/discoveryApi/index.d.ts +2 -1
- package/dist/types/api/discoveryApi/index.d.ts.map +1 -1
- package/dist/types/api/environmentsApi/index.d.ts +5 -4
- package/dist/types/api/environmentsApi/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/auditApi/index.ts +6 -3
- package/src/api/discoveryApi/index.ts +3 -1
- package/src/api/environmentsApi/index.ts +23 -43
|
@@ -104,40 +104,34 @@ var AuditApi = (function (_super) {
|
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
AuditApi.prototype.getAuditById = function (
|
|
108
|
-
return __awaiter(this,
|
|
107
|
+
AuditApi.prototype.getAuditById = function (id_1) {
|
|
108
|
+
return __awaiter(this, arguments, void 0, function (id, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
109
110
|
return __generator(this, function (_a) {
|
|
110
111
|
switch (_a.label) {
|
|
111
|
-
case 0: return [4, this.apiCall({
|
|
112
|
-
method: 'GET',
|
|
113
|
-
route: "".concat(this.apiBasePath, "/").concat(id),
|
|
114
|
-
})];
|
|
112
|
+
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiBasePath, "/").concat(id) }, options))];
|
|
115
113
|
case 1: return [2, _a.sent()];
|
|
116
114
|
}
|
|
117
115
|
});
|
|
118
116
|
});
|
|
119
117
|
};
|
|
120
118
|
AuditApi.prototype.getEntities = function () {
|
|
121
|
-
return __awaiter(this,
|
|
119
|
+
return __awaiter(this, arguments, void 0, function (options) {
|
|
120
|
+
if (options === void 0) { options = {}; }
|
|
122
121
|
return __generator(this, function (_a) {
|
|
123
122
|
switch (_a.label) {
|
|
124
|
-
case 0: return [4, this.apiCall({
|
|
125
|
-
method: 'GET',
|
|
126
|
-
route: "".concat(this.apiBasePath, "/entities"),
|
|
127
|
-
})];
|
|
123
|
+
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiBasePath, "/entities") }, options))];
|
|
128
124
|
case 1: return [2, _a.sent()];
|
|
129
125
|
}
|
|
130
126
|
});
|
|
131
127
|
});
|
|
132
128
|
};
|
|
133
129
|
AuditApi.prototype.getUsers = function () {
|
|
134
|
-
return __awaiter(this,
|
|
130
|
+
return __awaiter(this, arguments, void 0, function (options) {
|
|
131
|
+
if (options === void 0) { options = {}; }
|
|
135
132
|
return __generator(this, function (_a) {
|
|
136
133
|
switch (_a.label) {
|
|
137
|
-
case 0: return [4, this.apiCall({
|
|
138
|
-
method: 'GET',
|
|
139
|
-
route: "".concat(this.apiBasePath, "/users"),
|
|
140
|
-
})];
|
|
134
|
+
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiBasePath, "/users") }, options))];
|
|
141
135
|
case 1: return [2, _a.sent()];
|
|
142
136
|
}
|
|
143
137
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/auditApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,cAAI,EAAE,CAAE,IAC/B,OAAO,EACV,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAKY,8BAAW,GAAxB;4DAAyB,OAA+B;YAA/B,wBAAA,EAAA,YAA+B;;;4BAC/C,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,cAAW,IAClC,OAAO,EACV,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAKY,2BAAQ,GAArB;4DAAsB,OAA+B;YAA/B,wBAAA,EAAA,YAA+B;;;4BAC5C,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,WAAQ,IAC/B,OAAO,EACV,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IACH,eAAC;AAAD,CAAC,AAzDD,CAAsC,iBAAO,GAyD5C"}
|
|
@@ -14,6 +14,17 @@ 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 __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
17
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -59,14 +70,12 @@ var DiscoveryApi = (function (_super) {
|
|
|
59
70
|
_this.apiBasePath = 'discovery-api';
|
|
60
71
|
return _this;
|
|
61
72
|
}
|
|
62
|
-
DiscoveryApi.prototype.updateEnvironmentDiscoveryData = function (
|
|
63
|
-
return __awaiter(this,
|
|
73
|
+
DiscoveryApi.prototype.updateEnvironmentDiscoveryData = function (id_1) {
|
|
74
|
+
return __awaiter(this, arguments, void 0, function (id, options) {
|
|
75
|
+
if (options === void 0) { options = {}; }
|
|
64
76
|
return __generator(this, function (_a) {
|
|
65
77
|
switch (_a.label) {
|
|
66
|
-
case 0: return [4, this.apiCall({
|
|
67
|
-
method: 'POST',
|
|
68
|
-
route: "".concat(this.apiBasePath, "/").concat(id, "/environments"),
|
|
69
|
-
})];
|
|
78
|
+
case 0: return [4, this.apiCall(__assign({ method: 'POST', route: "".concat(this.apiBasePath, "/").concat(id, "/environments") }, options))];
|
|
70
79
|
case 1: return [2, _a.sent()];
|
|
71
80
|
}
|
|
72
81
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/discoveryApi/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/discoveryApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sCAAqC;AAIrC;IAA0C,gCAAO;IAAjD;;QACmB,iBAAW,GAAG,eAAe,CAAC;;IASjD,CAAC;IAPc,qDAA8B,GAA3C;4DAA4C,EAAU,EAAE,OAA+B;YAA/B,wBAAA,EAAA,YAA+B;;;4BAC9E,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,cAAI,EAAE,kBAAe,IAC5C,OAAO,EACV,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IACH,mBAAC;AAAD,CAAC,AAVD,CAA0C,iBAAO,GAUhD"}
|
|
@@ -105,50 +105,51 @@ var EnvironmentsApi = (function (_super) {
|
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
EnvironmentsApi.prototype.
|
|
109
|
-
return __awaiter(this,
|
|
108
|
+
EnvironmentsApi.prototype.getAggregatedServices = function () {
|
|
109
|
+
return __awaiter(this, arguments, void 0, function (options) {
|
|
110
|
+
if (options === void 0) { options = {}; }
|
|
110
111
|
return __generator(this, function (_a) {
|
|
111
112
|
switch (_a.label) {
|
|
112
|
-
case 0: return [4, this.apiCall({
|
|
113
|
-
method: 'POST',
|
|
114
|
-
route: "".concat(this.apiBasePath),
|
|
115
|
-
data: data,
|
|
116
|
-
})];
|
|
113
|
+
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiBasePath, "/services") }, options))];
|
|
117
114
|
case 1: return [2, _a.sent()];
|
|
118
115
|
}
|
|
119
116
|
});
|
|
120
117
|
});
|
|
121
118
|
};
|
|
122
|
-
EnvironmentsApi.prototype.
|
|
123
|
-
return __awaiter(this,
|
|
119
|
+
EnvironmentsApi.prototype.createEnvironment = function (data_1) {
|
|
120
|
+
return __awaiter(this, arguments, void 0, function (data, options) {
|
|
121
|
+
if (options === void 0) { options = {}; }
|
|
124
122
|
return __generator(this, function (_a) {
|
|
125
123
|
switch (_a.label) {
|
|
126
|
-
case 0: return [4, this.apiCall({
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
case 0: return [4, this.apiCall(__assign({ method: 'POST', route: "".concat(this.apiBasePath), data: data }, options))];
|
|
125
|
+
case 1: return [2, _a.sent()];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
EnvironmentsApi.prototype.updateEnvironment = function (id_1, data_1) {
|
|
131
|
+
return __awaiter(this, arguments, void 0, function (id, data, options) {
|
|
132
|
+
if (options === void 0) { options = {}; }
|
|
133
|
+
return __generator(this, function (_a) {
|
|
134
|
+
switch (_a.label) {
|
|
135
|
+
case 0: return [4, this.apiCall(__assign({ method: 'PUT', route: "".concat(this.apiBasePath), params: {
|
|
130
136
|
id: id,
|
|
131
|
-
},
|
|
132
|
-
data: data,
|
|
133
|
-
})];
|
|
137
|
+
}, data: data }, options))];
|
|
134
138
|
case 1: return [2, _a.sent()];
|
|
135
139
|
}
|
|
136
140
|
});
|
|
137
141
|
});
|
|
138
142
|
};
|
|
139
143
|
EnvironmentsApi.prototype.deleteEnvironment = function (id_1) {
|
|
140
|
-
return __awaiter(this, arguments, void 0, function (id, softDelete) {
|
|
144
|
+
return __awaiter(this, arguments, void 0, function (id, softDelete, options) {
|
|
141
145
|
if (softDelete === void 0) { softDelete = true; }
|
|
146
|
+
if (options === void 0) { options = {}; }
|
|
142
147
|
return __generator(this, function (_a) {
|
|
143
148
|
switch (_a.label) {
|
|
144
|
-
case 0: return [4, this.apiCall({
|
|
145
|
-
method: 'DELETE',
|
|
146
|
-
route: "".concat(this.apiBasePath),
|
|
147
|
-
params: {
|
|
149
|
+
case 0: return [4, this.apiCall(__assign({ method: 'DELETE', route: "".concat(this.apiBasePath), params: {
|
|
148
150
|
id: id,
|
|
149
151
|
softDelete: softDelete,
|
|
150
|
-
},
|
|
151
|
-
})];
|
|
152
|
+
} }, options))];
|
|
152
153
|
case 1: return [2, _a.sent()];
|
|
153
154
|
}
|
|
154
155
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/environmentsApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/environmentsApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,cAAW,IAClC,OAAO,EACV,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAQY,2CAAiB,GAA9B;4DAA+B,IAA0B,EAAE,OAA+B;YAA/B,wBAAA,EAAA,YAA+B;;;4BACjF,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE,EAC5B,IAAI,MAAA,IACD,OAAO,EACV,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IASY,2CAAiB,GAA9B;4DAA+B,EAAU,EAAE,IAA0B,EAAE,OAA+B;YAA/B,wBAAA,EAAA,YAA+B;;;4BAC7F,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE,EAC5B,MAAM,EAAE;gCACN,EAAE,EAAE,EAAE;6BACP,EACD,IAAI,MAAA,IACD,OAAO,EACV,EAAA;4BARF,WAAO,SAQL,EAAC;;;;KACJ;IASY,2CAAiB,GAA9B;4DAA+B,EAAU,EAAE,UAAiB,EAAE,OAA+B;YAAlD,2BAAA,EAAA,iBAAiB;YAAE,wBAAA,EAAA,YAA+B;;;4BACpF,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,QAAQ,EAChB,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE,EAC5B,MAAM,EAAE;gCACN,EAAE,EAAE,EAAE;gCACN,UAAU,EAAE,UAAU;6BACvB,IACE,OAAO,EACV,EAAA;4BARF,WAAO,SAQL,EAAC;;;;KACJ;IACH,sBAAC;AAAD,CAAC,AAnJD,CAA6C,iBAAO,GAmJnD"}
|
|
@@ -39,28 +39,19 @@ export default class AuditApi extends BaseApi {
|
|
|
39
39
|
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}`, params: normalized }, options));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
getAuditById(
|
|
43
|
-
return __awaiter(this,
|
|
44
|
-
return yield this.apiCall({
|
|
45
|
-
method: 'GET',
|
|
46
|
-
route: `${this.apiBasePath}/${id}`,
|
|
47
|
-
});
|
|
42
|
+
getAuditById(id_1) {
|
|
43
|
+
return __awaiter(this, arguments, void 0, function* (id, options = {}) {
|
|
44
|
+
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/${id}` }, options));
|
|
48
45
|
});
|
|
49
46
|
}
|
|
50
47
|
getEntities() {
|
|
51
|
-
return __awaiter(this,
|
|
52
|
-
return yield this.apiCall({
|
|
53
|
-
method: 'GET',
|
|
54
|
-
route: `${this.apiBasePath}/entities`,
|
|
55
|
-
});
|
|
48
|
+
return __awaiter(this, arguments, void 0, function* (options = {}) {
|
|
49
|
+
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/entities` }, options));
|
|
56
50
|
});
|
|
57
51
|
}
|
|
58
52
|
getUsers() {
|
|
59
|
-
return __awaiter(this,
|
|
60
|
-
return yield this.apiCall({
|
|
61
|
-
method: 'GET',
|
|
62
|
-
route: `${this.apiBasePath}/users`,
|
|
63
|
-
});
|
|
53
|
+
return __awaiter(this, arguments, void 0, function* (options = {}) {
|
|
54
|
+
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/users` }, options));
|
|
64
55
|
});
|
|
65
56
|
}
|
|
66
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/auditApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;IAA7C;;QACmB,gBAAW,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/audit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WAAW,IAClC,OAAO,EACV,CAAC;QACL,CAAC;KAAA;IAKY,QAAQ;6DAAC,UAA6B,EAAE;YACnD,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,QAAQ,IAC/B,OAAO,EACV,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -13,12 +13,9 @@ export default class DiscoveryApi extends BaseApi {
|
|
|
13
13
|
super(...arguments);
|
|
14
14
|
this.apiBasePath = 'discovery-api';
|
|
15
15
|
}
|
|
16
|
-
updateEnvironmentDiscoveryData(
|
|
17
|
-
return __awaiter(this,
|
|
18
|
-
return yield this.apiCall({
|
|
19
|
-
method: 'POST',
|
|
20
|
-
route: `${this.apiBasePath}/${id}/environments`,
|
|
21
|
-
});
|
|
16
|
+
updateEnvironmentDiscoveryData(id_1) {
|
|
17
|
+
return __awaiter(this, arguments, void 0, function* (id, options = {}) {
|
|
18
|
+
return yield this.apiCall(Object.assign({ method: 'POST', route: `${this.apiBasePath}/${id}/environments` }, options));
|
|
22
19
|
});
|
|
23
20
|
}
|
|
24
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/discoveryApi/index.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/discoveryApi/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;IAAjD;;QACmB,gBAAW,GAAG,eAAe,CAAC;IASjD,CAAC;IAPc,8BAA8B;6DAAC,EAAU,EAAE,UAA6B,EAAE;YACrF,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,eAAe,IAC5C,OAAO,EACV,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -33,37 +33,29 @@ export default class EnvironmentsApi extends BaseApi {
|
|
|
33
33
|
return yield this.apiCall(Object.assign({ method: 'GET', route: `v2/${this.apiBasePath}`, params: _params }, options));
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
return __awaiter(this,
|
|
38
|
-
return yield this.apiCall({
|
|
39
|
-
method: 'POST',
|
|
40
|
-
route: `${this.apiBasePath}`,
|
|
41
|
-
data,
|
|
42
|
-
});
|
|
36
|
+
getAggregatedServices() {
|
|
37
|
+
return __awaiter(this, arguments, void 0, function* (options = {}) {
|
|
38
|
+
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/services` }, options));
|
|
43
39
|
});
|
|
44
40
|
}
|
|
45
|
-
|
|
46
|
-
return __awaiter(this,
|
|
47
|
-
return yield this.apiCall({
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
createEnvironment(data_1) {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function* (data, options = {}) {
|
|
43
|
+
return yield this.apiCall(Object.assign({ method: 'POST', route: `${this.apiBasePath}`, data }, options));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
updateEnvironment(id_1, data_1) {
|
|
47
|
+
return __awaiter(this, arguments, void 0, function* (id, data, options = {}) {
|
|
48
|
+
return yield this.apiCall(Object.assign({ method: 'PUT', route: `${this.apiBasePath}`, params: {
|
|
51
49
|
id: id,
|
|
52
|
-
},
|
|
53
|
-
data,
|
|
54
|
-
});
|
|
50
|
+
}, data }, options));
|
|
55
51
|
});
|
|
56
52
|
}
|
|
57
53
|
deleteEnvironment(id_1) {
|
|
58
|
-
return __awaiter(this, arguments, void 0, function* (id, softDelete = true) {
|
|
59
|
-
return yield this.apiCall({
|
|
60
|
-
method: 'DELETE',
|
|
61
|
-
route: `${this.apiBasePath}`,
|
|
62
|
-
params: {
|
|
54
|
+
return __awaiter(this, arguments, void 0, function* (id, softDelete = true, options = {}) {
|
|
55
|
+
return yield this.apiCall(Object.assign({ method: 'DELETE', route: `${this.apiBasePath}`, params: {
|
|
63
56
|
id: id,
|
|
64
57
|
softDelete: softDelete,
|
|
65
|
-
},
|
|
66
|
-
});
|
|
58
|
+
} }, options));
|
|
67
59
|
});
|
|
68
60
|
}
|
|
69
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/environmentsApi/index.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/environmentsApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,OAAO;IAApD;;QACmB,gBAAW,GAAG,cAAc,CAAC;IAkJhD,CAAC;IAzGc,eAAe,CAAC,MAAkC;;YAC7D,MAAM,OAAO,mCACR,MAAM,KACT,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,CAAC;oBAC7C,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC;oBAC9B,CAAC,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,GACxB,CAAC;YACF,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;gBAC5B,MAAM,EAAE,OAAO;aAChB,CAAC,CAAC;QACL,CAAC;KAAA;IAUY,iBAAiB;6DAC5B,MAAoC,EACpC,UAA6B,EAAE;YAE/B,MAAM,OAAO,mCACR,MAAM,KACT,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,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E,UAAU;iBACvB,IACE,OAAO,EACV,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -4,11 +4,11 @@ import { BaseApi } from '../baseApi';
|
|
|
4
4
|
export default class AuditApi extends BaseApi {
|
|
5
5
|
private readonly apiBasePath;
|
|
6
6
|
getAudits(params: AuditQueryParamsDto, options?: OptionalApiParams): Promise<AuditPaginatedResponseDto>;
|
|
7
|
-
getAuditById(id: string): Promise<AuditDto>;
|
|
8
|
-
getEntities(): Promise<{
|
|
7
|
+
getAuditById(id: string, options?: OptionalApiParams): Promise<AuditDto>;
|
|
8
|
+
getEntities(options?: OptionalApiParams): Promise<{
|
|
9
9
|
items: string[];
|
|
10
10
|
}>;
|
|
11
|
-
getUsers(): Promise<{
|
|
11
|
+
getUsers(options?: OptionalApiParams): Promise<{
|
|
12
12
|
items: string[];
|
|
13
13
|
}>;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/auditApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;IAC3C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAW;IAK1B,SAAS,CACpB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,yBAAyB,CAAC;IAmBxB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/auditApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,OAAO;IAC3C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAW;IAK1B,SAAS,CACpB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,yBAAyB,CAAC;IAmBxB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAW5E,WAAW,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAW1E,QAAQ,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAOrF"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { OptionalApiParams } from '../../types';
|
|
1
2
|
import { BaseApi } from '../baseApi';
|
|
2
3
|
import { DiscoveryData } from './types';
|
|
3
4
|
export default class DiscoveryApi extends BaseApi {
|
|
4
5
|
private readonly apiBasePath;
|
|
5
|
-
updateEnvironmentDiscoveryData(id: string): Promise<DiscoveryData>;
|
|
6
|
+
updateEnvironmentDiscoveryData(id: string, options?: OptionalApiParams): Promise<DiscoveryData>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/discoveryApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;IAC/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmB;IAElC,8BAA8B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/discoveryApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;IAC/C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmB;IAElC,8BAA8B,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,aAAa,CAAC;CAOjH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateEnvironmentDto, UpdateEnvironmentDto, EnvironmentDto, EnvironmentQueryParamsDto, EnvironmentSearchRequestDto } from '@onereach/billing-dto';
|
|
1
|
+
import { CreateEnvironmentDto, UpdateEnvironmentDto, EnvironmentDto, EnvironmentQueryParamsDto, EnvironmentSearchRequestDto, AggregatedServiceDto } from '@onereach/billing-dto';
|
|
2
2
|
import { ResponseDto } from '@onereach/billing-shared';
|
|
3
3
|
import { OptionalApiParams } from '../../types';
|
|
4
4
|
import { BaseApi } from '../baseApi';
|
|
@@ -6,8 +6,9 @@ export default class EnvironmentsApi extends BaseApi {
|
|
|
6
6
|
private readonly apiBasePath;
|
|
7
7
|
getEnvironments(params?: EnvironmentQueryParamsDto): Promise<EnvironmentDto>;
|
|
8
8
|
getEnvironmentsV2(params?: EnvironmentSearchRequestDto, options?: OptionalApiParams): Promise<ResponseDto<EnvironmentDto>>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
getAggregatedServices(options?: OptionalApiParams): Promise<AggregatedServiceDto[]>;
|
|
10
|
+
createEnvironment(data: CreateEnvironmentDto, options?: OptionalApiParams): Promise<EnvironmentDto>;
|
|
11
|
+
updateEnvironment(id: string, data: UpdateEnvironmentDto, options?: OptionalApiParams): Promise<EnvironmentDto>;
|
|
12
|
+
deleteEnvironment(id: string, softDelete?: boolean, options?: OptionalApiParams): Promise<void>;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/environmentsApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,yBAAyB,EACzB,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/environmentsApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,yBAAyB,EACzB,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,OAAO;IAClD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkB;IAyCjC,eAAe,CAAC,MAAM,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC;IAsB5E,iBAAiB,CAC5B,MAAM,CAAC,EAAE,2BAA2B,EACpC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAoB1B,qBAAqB,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAcvF,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,cAAc,CAAC;IAgBvG,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,cAAc,CAAC;IAmBnH,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,UAAO,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;CAW9G"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/billing",
|
|
3
|
-
"version": "11.80.
|
|
3
|
+
"version": "11.80.3-beta.3982.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"dev": "pnpm build:watch:esm"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@onereach/billing-dto": "^11.80.
|
|
19
|
-
"@onereach/billing-shared": "^11.80.
|
|
18
|
+
"@onereach/billing-dto": "^11.80.3-beta.3982.0",
|
|
19
|
+
"@onereach/billing-shared": "^11.80.3-beta.3982.0",
|
|
20
20
|
"@or-sdk/base": "^0.42.4",
|
|
21
21
|
"@or-sdk/discovery": "1.10.6",
|
|
22
22
|
"@types/qs": "6.14.0",
|
|
@@ -31,30 +31,33 @@ export default class AuditApi extends BaseApi {
|
|
|
31
31
|
/**
|
|
32
32
|
* @description Get audit record by id
|
|
33
33
|
*/
|
|
34
|
-
public async getAuditById(id: string): Promise<AuditDto> {
|
|
34
|
+
public async getAuditById(id: string, options: OptionalApiParams = {}): Promise<AuditDto> {
|
|
35
35
|
return await this.apiCall({
|
|
36
36
|
method: 'GET',
|
|
37
37
|
route: `${this.apiBasePath}/${id}`,
|
|
38
|
+
...options,
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* @description Get list of audited entity names
|
|
43
44
|
*/
|
|
44
|
-
public async getEntities(): Promise<{ items: string[] }> {
|
|
45
|
+
public async getEntities(options: OptionalApiParams = {}): Promise<{ items: string[] }> {
|
|
45
46
|
return await this.apiCall({
|
|
46
47
|
method: 'GET',
|
|
47
48
|
route: `${this.apiBasePath}/entities`,
|
|
49
|
+
...options,
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
/**
|
|
52
54
|
* @description Get list of users who made changes
|
|
53
55
|
*/
|
|
54
|
-
public async getUsers(): Promise<{ items: string[] }> {
|
|
56
|
+
public async getUsers(options: OptionalApiParams = {}): Promise<{ items: string[] }> {
|
|
55
57
|
return await this.apiCall({
|
|
56
58
|
method: 'GET',
|
|
57
59
|
route: `${this.apiBasePath}/users`,
|
|
60
|
+
...options,
|
|
58
61
|
});
|
|
59
62
|
}
|
|
60
63
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OptionalApiParams } from '../../types';
|
|
1
2
|
import { BaseApi } from '../baseApi';
|
|
2
3
|
|
|
3
4
|
import { DiscoveryData } from './types';
|
|
@@ -5,10 +6,11 @@ import { DiscoveryData } from './types';
|
|
|
5
6
|
export default class DiscoveryApi extends BaseApi {
|
|
6
7
|
private readonly apiBasePath = 'discovery-api';
|
|
7
8
|
|
|
8
|
-
public async updateEnvironmentDiscoveryData(id: string): Promise<DiscoveryData> {
|
|
9
|
+
public async updateEnvironmentDiscoveryData(id: string, options: OptionalApiParams = {}): Promise<DiscoveryData> {
|
|
9
10
|
return await this.apiCall({
|
|
10
11
|
method: 'POST',
|
|
11
12
|
route: `${this.apiBasePath}/${id}/environments`,
|
|
13
|
+
...options,
|
|
12
14
|
});
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
EnvironmentDto,
|
|
5
5
|
EnvironmentQueryParamsDto,
|
|
6
6
|
EnvironmentSearchRequestDto,
|
|
7
|
+
AggregatedServiceDto,
|
|
7
8
|
} from '@onereach/billing-dto';
|
|
8
9
|
import { ResponseDto } from '@onereach/billing-shared';
|
|
9
10
|
|
|
@@ -93,36 +94,31 @@ export default class EnvironmentsApi extends BaseApi {
|
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
|
|
97
|
+
/**
|
|
98
|
+
* @description Retrieves aggregated services from all environments
|
|
99
|
+
* @param {OptionalApiParams} [options] - Optional API params (e.g., abort signal).
|
|
100
|
+
* @returns {Promise<AggregatedServiceDto[]>} List of services with their versions and environments
|
|
101
|
+
*/
|
|
102
|
+
public async getAggregatedServices(options: OptionalApiParams = {}): Promise<AggregatedServiceDto[]> {
|
|
103
|
+
return await this.apiCall({
|
|
104
|
+
method: 'GET',
|
|
105
|
+
route: `${this.apiBasePath}/services`,
|
|
106
|
+
...options,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
96
110
|
/**
|
|
97
111
|
* @description Creates a new environment
|
|
98
112
|
* @param {CreateEnvironmentDto} data - Environment data for creation
|
|
99
|
-
* @param {
|
|
100
|
-
* @param {string} [data.environment] - Environment name/identifier
|
|
101
|
-
* @param {string} [data.endDate] - End date for the environment
|
|
102
|
-
* @param {string} [data.studioUrl] - Studio interface URL
|
|
103
|
-
* @param {string} [data.shortcode] - Environment shortcode
|
|
104
|
-
* @param {string} [data.type] - Environment type
|
|
105
|
-
* @param {string} [data.friendlyName] - Human-readable name
|
|
106
|
-
* @param {string} [data.client] - Associated client
|
|
107
|
-
* @param {string} [data.providerAccountId] - Provider account identifier
|
|
108
|
-
* @param {string} [data.environmentUri] - Environment URI
|
|
109
|
-
* @param {string} [data.databaseId] - Associated database ID
|
|
110
|
-
* @param {string} [data.reportingDatabaseName] - Reporting database name
|
|
111
|
-
* @param {string} [data.startDate] - Start date for the environment
|
|
112
|
-
* @param {string} [data.customerId] - Associated customer ID
|
|
113
|
-
* @param {string} [data.status] - Initial environment status
|
|
114
|
-
* @param {string} [data.tablesUri] - Tables URI
|
|
115
|
-
* @param {string} [data.liveAgentUri] - Live agent URI
|
|
116
|
-
* @param {string} [data.customDataUri] - Custom data URI
|
|
117
|
-
* @param {string} [data.authUrl] - Authentication URL
|
|
118
|
-
* @param {string} [data.slackChannel] - Associated Slack channel
|
|
113
|
+
* @param {OptionalApiParams} [options] - Optional API params.
|
|
119
114
|
* @returns {Promise<EnvironmentDto>} Created environment object
|
|
120
115
|
*/
|
|
121
|
-
public async createEnvironment(data: CreateEnvironmentDto): Promise<EnvironmentDto> {
|
|
116
|
+
public async createEnvironment(data: CreateEnvironmentDto, options: OptionalApiParams = {}): Promise<EnvironmentDto> {
|
|
122
117
|
return await this.apiCall({
|
|
123
118
|
method: 'POST',
|
|
124
119
|
route: `${this.apiBasePath}`,
|
|
125
120
|
data,
|
|
121
|
+
...options,
|
|
126
122
|
});
|
|
127
123
|
}
|
|
128
124
|
|
|
@@ -130,29 +126,10 @@ export default class EnvironmentsApi extends BaseApi {
|
|
|
130
126
|
* @description Updates an existing environment
|
|
131
127
|
* @param {string} id - ID of the environment to update
|
|
132
128
|
* @param {UpdateEnvironmentDto} data - Updated environment data
|
|
133
|
-
* @param {
|
|
134
|
-
* @param {string} [data.environment] - Environment name/identifier
|
|
135
|
-
* @param {string} [data.endDate] - End date for the environment
|
|
136
|
-
* @param {string} [data.studioUrl] - Studio interface URL
|
|
137
|
-
* @param {string} [data.shortcode] - Environment shortcode
|
|
138
|
-
* @param {string} [data.type] - Environment type
|
|
139
|
-
* @param {string} [data.friendlyName] - Human-readable name
|
|
140
|
-
* @param {string} [data.client] - Associated client
|
|
141
|
-
* @param {string} [data.providerAccountId] - Provider account identifier
|
|
142
|
-
* @param {string} [data.environmentUri] - Environment URI
|
|
143
|
-
* @param {string} [data.databaseId] - Associated database ID
|
|
144
|
-
* @param {string} [data.reportingDatabaseName] - Reporting database name
|
|
145
|
-
* @param {string} [data.startDate] - Start date for the environment
|
|
146
|
-
* @param {string} [data.customerId] - Associated customer ID
|
|
147
|
-
* @param {string} [data.status] - Updated environment status
|
|
148
|
-
* @param {string} [data.tablesUri] - Tables URI
|
|
149
|
-
* @param {string} [data.liveAgentUri] - Live agent URI
|
|
150
|
-
* @param {string} [data.customDataUri] - Custom data URI
|
|
151
|
-
* @param {string} [data.authUrl] - Authentication URL
|
|
152
|
-
* @param {string} [data.slackChannel] - Associated Slack channel
|
|
129
|
+
* @param {OptionalApiParams} [options] - Optional API params.
|
|
153
130
|
* @returns {Promise<EnvironmentDto>} Updated environment object
|
|
154
131
|
*/
|
|
155
|
-
public async updateEnvironment(id: string, data: UpdateEnvironmentDto): Promise<EnvironmentDto> {
|
|
132
|
+
public async updateEnvironment(id: string, data: UpdateEnvironmentDto, options: OptionalApiParams = {}): Promise<EnvironmentDto> {
|
|
156
133
|
return await this.apiCall({
|
|
157
134
|
method: 'PUT',
|
|
158
135
|
route: `${this.apiBasePath}`,
|
|
@@ -160,6 +137,7 @@ export default class EnvironmentsApi extends BaseApi {
|
|
|
160
137
|
id: id,
|
|
161
138
|
},
|
|
162
139
|
data,
|
|
140
|
+
...options,
|
|
163
141
|
});
|
|
164
142
|
}
|
|
165
143
|
|
|
@@ -167,9 +145,10 @@ export default class EnvironmentsApi extends BaseApi {
|
|
|
167
145
|
* @description Deletes an environment
|
|
168
146
|
* @param {string} id - ID of the environment to delete
|
|
169
147
|
* @param {boolean} [softDelete=true] - If true, performs a soft delete instead of permanent deletion
|
|
148
|
+
* @param {OptionalApiParams} [options] - Optional API params.
|
|
170
149
|
* @returns {Promise<void>}
|
|
171
150
|
*/
|
|
172
|
-
public async deleteEnvironment(id: string, softDelete = true): Promise<void> {
|
|
151
|
+
public async deleteEnvironment(id: string, softDelete = true, options: OptionalApiParams = {}): Promise<void> {
|
|
173
152
|
return await this.apiCall({
|
|
174
153
|
method: 'DELETE',
|
|
175
154
|
route: `${this.apiBasePath}`,
|
|
@@ -177,6 +156,7 @@ export default class EnvironmentsApi extends BaseApi {
|
|
|
177
156
|
id: id,
|
|
178
157
|
softDelete: softDelete,
|
|
179
158
|
},
|
|
159
|
+
...options,
|
|
180
160
|
});
|
|
181
161
|
}
|
|
182
162
|
}
|