@or-sdk/billing 11.92.1-beta.4484.0 → 11.92.1-beta.4494.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 +25 -0
- package/dist/cjs/api/discoveryApi/index.js.map +1 -1
- package/dist/esm/api/discoveryApi/index.js +13 -0
- package/dist/esm/api/discoveryApi/index.js.map +1 -1
- package/dist/types/api/discoveryApi/index.d.ts +4 -0
- package/dist/types/api/discoveryApi/index.d.ts.map +1 -1
- package/dist/types/api/discoveryApi/types.d.ts +5 -1
- package/dist/types/api/discoveryApi/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/discoveryApi/index.ts +24 -0
- package/src/api/discoveryApi/types.ts +8 -1
|
@@ -81,6 +81,31 @@ 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
|
+
};
|
|
84
109
|
return DiscoveryApi;
|
|
85
110
|
}(baseApi_1.BaseApi));
|
|
86
111
|
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;;IAiCjD,CAAC;IA/Bc,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;IAEY,yDAAkC,GAA/C;4DAAgD,OAA+B;YAA/B,wBAAA,EAAA,YAA+B;;;4BACtE,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,6BAA0B,IACjD,OAAO,EACV,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAEY,4CAAqB,GAAlC;4DACE,aAAqB,EACrB,GAAW,EACX,OAA+B;YAA/B,wBAAA,EAAA,YAA+B;;;4BAExB,WAAM,IAAI,CAAC,OAAO,YACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,kBAAe,EACzC,MAAM,EAAE;gCACN,aAAa,eAAA;gCACb,GAAG,KAAA;6BACJ,IACE,OAAO,EACV,EAAA;4BARF,WAAO,SAQL,EAAC;;;;KACJ;IACH,mBAAC;AAAD,CAAC,AAlCD,CAA0C,iBAAO,GAkChD"}
|
|
@@ -18,5 +18,18 @@ 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
|
+
}
|
|
21
34
|
}
|
|
22
35
|
//# 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;IAiCjD,CAAC;IA/Bc,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;IAEY,kCAAkC;6DAAC,UAA6B,EAAE;YAC7E,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,0BAA0B,IACjD,OAAO,EACV,CAAC;QACL,CAAC;KAAA;IAEY,qBAAqB;6DAChC,aAAqB,EACrB,GAAW,EACX,UAA6B,EAAE;YAE/B,OAAO,MAAM,IAAI,CAAC,OAAO,iBACvB,MAAM,EAAE,KAAK,EACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,eAAe,EACzC,MAAM,EAAE;oBACN,aAAa;oBACb,GAAG;iBACJ,IACE,OAAO,EACV,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -4,5 +4,9 @@ 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>;
|
|
7
11
|
}
|
|
8
12
|
//# 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;IAQnG,kCAAkC,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAQjG,qBAAqB,CAChC,aAAa,EAAE,MAAM,EACrB,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC;CAWpB"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { Service } from '@or-sdk/discovery';
|
|
2
|
+
export interface DiscoveryService extends Service {
|
|
3
|
+
versionJsonUrl?: string;
|
|
4
|
+
versionData?: Record<string, any>;
|
|
5
|
+
}
|
|
2
6
|
export interface DiscoveryData {
|
|
3
|
-
services:
|
|
7
|
+
services: DiscoveryService[];
|
|
4
8
|
discoveryLastUpdated: Date;
|
|
5
9
|
}
|
|
6
10
|
//# 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,aAAa;IAC5B,QAAQ,EAAE,
|
|
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,gBAAiB,SAAQ,OAAO;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,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.4494.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.4494.0",
|
|
19
|
+
"@onereach/billing-shared": "^11.92.1-beta.4494.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,4 +13,28 @@ 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
|
+
}
|
|
16
40
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
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
|
+
|
|
3
10
|
export interface DiscoveryData {
|
|
4
|
-
services:
|
|
11
|
+
services: DiscoveryService[];
|
|
5
12
|
discoveryLastUpdated: Date;
|
|
6
13
|
}
|