@or-sdk/billing 11.92.1-beta.4467.0 → 11.92.1-beta.4484.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/discoveryApi/index.js +0 -25
- package/dist/cjs/api/discoveryApi/index.js.map +1 -1
- package/dist/esm/api/discoveryApi/index.js +0 -13
- package/dist/esm/api/discoveryApi/index.js.map +1 -1
- package/dist/types/api/discoveryApi/index.d.ts +0 -4
- package/dist/types/api/discoveryApi/index.d.ts.map +1 -1
- package/dist/types/api/discoveryApi/types.d.ts +1 -5
- package/dist/types/api/discoveryApi/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/discoveryApi/index.ts +0 -24
- package/src/api/discoveryApi/types.ts +1 -8
|
@@ -81,31 +81,6 @@ var DiscoveryApi = (function (_super) {
|
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
|
-
DiscoveryApi.prototype.updateAllEnvironmentsDiscoveryData = function () {
|
|
85
|
-
return __awaiter(this, arguments, void 0, function (options) {
|
|
86
|
-
if (options === void 0) { options = {}; }
|
|
87
|
-
return __generator(this, function (_a) {
|
|
88
|
-
switch (_a.label) {
|
|
89
|
-
case 0: return [4, this.apiCall(__assign({ method: 'POST', route: "".concat(this.apiBasePath, "/environments/update-all") }, options))];
|
|
90
|
-
case 1: return [2, _a.sent()];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
DiscoveryApi.prototype.getServiceVersionJson = function (environmentId_1, url_1) {
|
|
96
|
-
return __awaiter(this, arguments, void 0, function (environmentId, url, options) {
|
|
97
|
-
if (options === void 0) { options = {}; }
|
|
98
|
-
return __generator(this, function (_a) {
|
|
99
|
-
switch (_a.label) {
|
|
100
|
-
case 0: return [4, this.apiCall(__assign({ method: 'GET', route: "".concat(this.apiBasePath, "/version-json"), params: {
|
|
101
|
-
environmentId: environmentId,
|
|
102
|
-
url: url,
|
|
103
|
-
} }, options))];
|
|
104
|
-
case 1: return [2, _a.sent()];
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
84
|
return DiscoveryApi;
|
|
110
85
|
}(baseApi_1.BaseApi));
|
|
111
86
|
exports.default = DiscoveryApi;
|
|
@@ -1 +1 @@
|
|
|
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;;
|
|
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"}
|
|
@@ -18,18 +18,5 @@ export default class DiscoveryApi extends BaseApi {
|
|
|
18
18
|
return yield this.apiCall(Object.assign({ method: 'POST', route: `${this.apiBasePath}/${id}/environments` }, options));
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
updateAllEnvironmentsDiscoveryData() {
|
|
22
|
-
return __awaiter(this, arguments, void 0, function* (options = {}) {
|
|
23
|
-
return yield this.apiCall(Object.assign({ method: 'POST', route: `${this.apiBasePath}/environments/update-all` }, options));
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
getServiceVersionJson(environmentId_1, url_1) {
|
|
27
|
-
return __awaiter(this, arguments, void 0, function* (environmentId, url, options = {}) {
|
|
28
|
-
return yield this.apiCall(Object.assign({ method: 'GET', route: `${this.apiBasePath}/version-json`, params: {
|
|
29
|
-
environmentId,
|
|
30
|
-
url,
|
|
31
|
-
} }, options));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
21
|
}
|
|
35
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -4,9 +4,5 @@ import { DiscoveryData } from './types';
|
|
|
4
4
|
export default class DiscoveryApi extends BaseApi {
|
|
5
5
|
private readonly apiBasePath;
|
|
6
6
|
updateEnvironmentDiscoveryData(id: string, options?: OptionalApiParams): Promise<DiscoveryData>;
|
|
7
|
-
updateAllEnvironmentsDiscoveryData(options?: OptionalApiParams): Promise<{
|
|
8
|
-
message: string;
|
|
9
|
-
}>;
|
|
10
|
-
getServiceVersionJson(environmentId: string, url: string, options?: OptionalApiParams): Promise<unknown>;
|
|
11
7
|
}
|
|
12
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,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;
|
|
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,10 +1,6 @@
|
|
|
1
1
|
import type { Service } from '@or-sdk/discovery';
|
|
2
|
-
export interface DiscoveryService extends Service {
|
|
3
|
-
versionJsonUrl?: string;
|
|
4
|
-
versionData?: Record<string, any>;
|
|
5
|
-
}
|
|
6
2
|
export interface DiscoveryData {
|
|
7
|
-
services:
|
|
3
|
+
services: Service[];
|
|
8
4
|
discoveryLastUpdated: Date;
|
|
9
5
|
}
|
|
10
6
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/api/discoveryApi/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/api/discoveryApi/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,oBAAoB,EAAE,IAAI,CAAC;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/billing",
|
|
3
|
-
"version": "11.92.1-beta.
|
|
3
|
+
"version": "11.92.1-beta.4484.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.92.1-beta.
|
|
19
|
-
"@onereach/billing-shared": "^11.92.1-beta.
|
|
18
|
+
"@onereach/billing-dto": "^11.92.1-beta.4484.0",
|
|
19
|
+
"@onereach/billing-shared": "^11.92.1-beta.4484.0",
|
|
20
20
|
"@or-sdk/base": "^0.42.4",
|
|
21
21
|
"@or-sdk/discovery": "1.10.6",
|
|
22
22
|
"@types/qs": "6.14.0",
|
|
@@ -13,28 +13,4 @@ export default class DiscoveryApi extends BaseApi {
|
|
|
13
13
|
...options,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
public async updateAllEnvironmentsDiscoveryData(options: OptionalApiParams = {}): Promise<{ message: string }> {
|
|
18
|
-
return await this.apiCall({
|
|
19
|
-
method: 'POST',
|
|
20
|
-
route: `${this.apiBasePath}/environments/update-all`,
|
|
21
|
-
...options,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public async getServiceVersionJson(
|
|
26
|
-
environmentId: string,
|
|
27
|
-
url: string,
|
|
28
|
-
options: OptionalApiParams = {},
|
|
29
|
-
): Promise<unknown> {
|
|
30
|
-
return await this.apiCall({
|
|
31
|
-
method: 'GET',
|
|
32
|
-
route: `${this.apiBasePath}/version-json`,
|
|
33
|
-
params: {
|
|
34
|
-
environmentId,
|
|
35
|
-
url,
|
|
36
|
-
},
|
|
37
|
-
...options,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
16
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import type { Service } from '@or-sdk/discovery';
|
|
2
2
|
|
|
3
|
-
export interface DiscoveryService extends Service {
|
|
4
|
-
versionJsonUrl?: string;
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
-
versionData?: Record<string, any>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
export interface DiscoveryData {
|
|
11
|
-
services:
|
|
4
|
+
services: Service[];
|
|
12
5
|
discoveryLastUpdated: Date;
|
|
13
6
|
}
|