@or-sdk/hitl 0.35.5 → 0.35.6
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/Versions.js +15 -3
- package/dist/cjs/api/Versions.js.map +1 -1
- package/dist/esm/api/Versions.js +14 -2
- package/dist/esm/api/Versions.js.map +1 -1
- package/dist/types/api/Versions.d.ts +2 -2
- package/dist/types/api/Versions.d.ts.map +1 -1
- package/dist/types/types/versions.d.ts +2 -1
- package/dist/types/types/versions.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/Versions.ts +14 -4
- package/src/types/versions.ts +4 -1
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
|
+
## [0.35.6](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.35.5...@or-sdk/hitl@0.35.6) (2025-08-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **hitl:** add stepName param to get step to UI versions map ([3a0e99e](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/3a0e99ee39619ce54e623123cf948ba30d4abc84))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [0.35.5](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.35.4...@or-sdk/hitl@0.35.5) (2025-08-15)
|
|
7
16
|
|
|
8
17
|
|
package/dist/cjs/api/Versions.js
CHANGED
|
@@ -61,6 +61,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
61
61
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
65
|
+
var t = {};
|
|
66
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
67
|
+
t[p] = s[p];
|
|
68
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
69
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
70
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
71
|
+
t[p[i]] = s[p[i]];
|
|
72
|
+
}
|
|
73
|
+
return t;
|
|
74
|
+
};
|
|
64
75
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
65
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
66
77
|
};
|
|
@@ -92,13 +103,14 @@ var Versions = (function (_super) {
|
|
|
92
103
|
});
|
|
93
104
|
});
|
|
94
105
|
};
|
|
95
|
-
Versions.getStepsToUIVersionsMap = function (
|
|
106
|
+
Versions.getStepsToUIVersionsMap = function (_a) {
|
|
96
107
|
return __awaiter(this, void 0, void 0, function () {
|
|
97
108
|
var baseUrl, route;
|
|
98
|
-
|
|
109
|
+
var stepName = _a.stepName, options = __rest(_a, ["stepName"]);
|
|
110
|
+
return __generator(this, function (_b) {
|
|
99
111
|
baseUrl = this.getBaseUrl(options);
|
|
100
112
|
route = new urijs_1.default(baseUrl).segment(this.STEPS_TO_UI_VERSIONS_MAP).href();
|
|
101
|
-
return [2, this.request(__assign({ route: route }, this.getBaseSettings(options)))];
|
|
113
|
+
return [2, this.request(__assign({ route: route, params: { stepName: stepName } }, this.getBaseSettings(options)))];
|
|
102
114
|
});
|
|
103
115
|
});
|
|
104
116
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Versions.js","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Versions.js","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"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GAAG,iBAAiB,CAAC;IAsGhE,eAAC;CAAA,AAzGD,CAA8B,mBAAQ,GAyGrC;AAzGY,4BAAQ"}
|
package/dist/esm/api/Versions.js
CHANGED
|
@@ -7,6 +7,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
+
var t = {};
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
+
t[p[i]] = s[p[i]];
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
10
21
|
import URI from 'urijs';
|
|
11
22
|
import { HITLBase } from './HITLBase';
|
|
12
23
|
export class Versions extends HITLBase {
|
|
@@ -23,11 +34,12 @@ export class Versions extends HITLBase {
|
|
|
23
34
|
return this.request(Object.assign({ route }, this.getBaseSettings(options)));
|
|
24
35
|
});
|
|
25
36
|
}
|
|
26
|
-
static getStepsToUIVersionsMap(
|
|
37
|
+
static getStepsToUIVersionsMap(_a) {
|
|
27
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
var { stepName } = _a, options = __rest(_a, ["stepName"]);
|
|
28
40
|
const baseUrl = this.getBaseUrl(options);
|
|
29
41
|
const route = new URI(baseUrl).segment(this.STEPS_TO_UI_VERSIONS_MAP).href();
|
|
30
|
-
return this.request(Object.assign({ route }, this.getBaseSettings(options)));
|
|
42
|
+
return this.request(Object.assign({ route, params: { stepName } }, this.getBaseSettings(options)));
|
|
31
43
|
});
|
|
32
44
|
}
|
|
33
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Versions.js","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Versions.js","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AASxB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAiBtC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IAyB7B,MAAM,CAAO,eAAe,CACjC,OAA0B;;YAE1B,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAEvC,OAAO,IAAI,CAAC,OAAO,iBACjB,KAAK,IACF,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,CAAC;QACL,CAAC;KAAA;IAsBM,MAAM,CAAO,cAAc,CAChC,OAA0B;;YAE1B,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACzC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,CAAC;YAEjE,OAAO,IAAI,CAAC,OAAO,iBACjB,KAAK,IACF,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,CAAC;QACL,CAAC;KAAA;IA2BM,MAAM,CAAO,uBAAuB,CACzC,EAAwD;;gBAAxD,EAAE,QAAQ,OAA8C,EAAzC,OAAO,cAAtB,YAAwB,CAAF;YAEtB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACzC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,IAAI,EAAE,CAAC;YAE7E,OAAO,IAAI,CAAC,OAAO,iBACjB,KAAK,EACL,MAAM,EAAE,EAAE,QAAQ,EAAE,IACjB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,CAAC;QACL,CAAC;KAAA;;AAvGgB,mBAAU,GAAG,aAAa,CAAC;AAC3B,qBAAY,GAAG,cAAc,CAAC;AAC9B,iCAAwB,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiVersionOptions } from '../types';
|
|
2
|
-
import { GetVersionsListResponse, GetVersionInfoResponse,
|
|
2
|
+
import { GetVersionsListResponse, GetVersionInfoResponse, GetStepsToUIVersionsMapOptions } from '../types/versions';
|
|
3
3
|
import { HITLBase } from './HITLBase';
|
|
4
4
|
export declare class Versions extends HITLBase {
|
|
5
5
|
protected static MODULE_URL: string;
|
|
@@ -7,6 +7,6 @@ export declare class Versions extends HITLBase {
|
|
|
7
7
|
protected static STEPS_TO_UI_VERSIONS_MAP: string;
|
|
8
8
|
static getVersionsList(options: ApiVersionOptions): Promise<GetVersionsListResponse>;
|
|
9
9
|
static getVersionInfo(options: ApiVersionOptions): Promise<GetVersionInfoResponse>;
|
|
10
|
-
static getStepsToUIVersionsMap(options:
|
|
10
|
+
static getStepsToUIVersionsMap({ stepName, ...options }: GetStepsToUIVersionsMapOptions): Promise<object>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=Versions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Versions.d.ts","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"Versions.d.ts","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAiBtC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAiB;IAC5C,SAAS,CAAC,MAAM,CAAC,YAAY,SAAkB;IAC/C,SAAS,CAAC,MAAM,CAAC,wBAAwB,SAAqB;WAsB1C,eAAe,CACjC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,uBAAuB,CAAC;WA6Bf,cAAc,CAChC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,sBAAsB,CAAC;WAmCd,uBAAuB,CACzC,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,8BAA8B,GACvD,OAAO,CAAC,MAAM,CAAC;CAUnB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Versions } from '@onereach/types-hitl-api';
|
|
2
|
+
import { ApiVersionOptions } from './common';
|
|
2
3
|
export interface Version extends Versions.IVersion {
|
|
3
4
|
}
|
|
4
5
|
export interface GetVersionsListResponse extends Versions.IGetVersionsListResponse {
|
|
@@ -6,6 +7,6 @@ export interface GetVersionsListResponse extends Versions.IGetVersionsListRespon
|
|
|
6
7
|
}
|
|
7
8
|
export interface GetVersionInfoResponse extends Versions.IGetVersionInfoResponse {
|
|
8
9
|
}
|
|
9
|
-
export interface
|
|
10
|
+
export interface GetStepsToUIVersionsMapOptions extends ApiVersionOptions, Versions.IGetStepsToUIVersionsMapQuery {
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/types/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/types/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG7C,MAAM,WAAW,OAAQ,SAAQ,QAAQ,CAAC,QAAQ;CAAG;AACrD,MAAM,WAAW,uBAAwB,SAAQ,QAAQ,CAAC,wBAAwB;IAChF,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,sBAAuB,SAAQ,QAAQ,CAAC,uBAAuB;CAAG;AACnF,MAAM,WAAW,8BAA+B,SAAQ,iBAAiB,EACvE,QAAQ,CAAC,6BAA6B;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/hitl",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dev": "pnpm build:watch:esm"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@onereach/types-hitl-api": "0.0.86-rc.
|
|
21
|
+
"@onereach/types-hitl-api": "0.0.86-rc.2",
|
|
22
22
|
"@or-sdk/base": "^0.42.1",
|
|
23
23
|
"urijs": "^1.19.8"
|
|
24
24
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "590fc3c09f76487829db137cfb68280766d352f0"
|
|
34
34
|
}
|
package/src/api/Versions.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import URI from 'urijs';
|
|
2
2
|
|
|
3
3
|
import { ApiVersionOptions } from '../types';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
GetVersionsListResponse,
|
|
6
|
+
GetVersionInfoResponse,
|
|
7
|
+
GetStepsToUIVersionsMapOptions,
|
|
8
|
+
} from '../types/versions';
|
|
5
9
|
|
|
6
10
|
import { HITLBase } from './HITLBase';
|
|
7
11
|
|
|
@@ -94,6 +98,7 @@ export class Versions extends HITLBase {
|
|
|
94
98
|
* @param options - Configuration parameters for retrieving steps to UI versions map
|
|
95
99
|
*
|
|
96
100
|
* Optional parameters:
|
|
101
|
+
* - `stepName` - (string) The name of the step to retrieve mapping information for
|
|
97
102
|
* - `timeout` - (number) Request timeout in milliseconds
|
|
98
103
|
* - `version` - (string | number) API version to use
|
|
99
104
|
*
|
|
@@ -101,7 +106,11 @@ export class Versions extends HITLBase {
|
|
|
101
106
|
*
|
|
102
107
|
* @example
|
|
103
108
|
* ```typescript
|
|
104
|
-
* const
|
|
109
|
+
* const stepsToUIVesionsMap = await hitlApi.versions.getStepsToUIVersionsMap();
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* ```typescript
|
|
113
|
+
* const stepToUIVesionsMap = await hitlApi.versions.getStepsToUIVersionsMap({ stepName });
|
|
105
114
|
* ```
|
|
106
115
|
*
|
|
107
116
|
* @remarks
|
|
@@ -109,13 +118,14 @@ export class Versions extends HITLBase {
|
|
|
109
118
|
* @public
|
|
110
119
|
*/
|
|
111
120
|
public static async getStepsToUIVersionsMap(
|
|
112
|
-
options:
|
|
113
|
-
): Promise<
|
|
121
|
+
{ stepName, ...options }: GetStepsToUIVersionsMapOptions,
|
|
122
|
+
): Promise<object> {
|
|
114
123
|
const baseUrl = this.getBaseUrl(options);
|
|
115
124
|
const route = new URI(baseUrl).segment(this.STEPS_TO_UI_VERSIONS_MAP).href();
|
|
116
125
|
|
|
117
126
|
return this.request({
|
|
118
127
|
route,
|
|
128
|
+
params: { stepName },
|
|
119
129
|
...this.getBaseSettings(options),
|
|
120
130
|
});
|
|
121
131
|
}
|
package/src/types/versions.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Versions } from '@onereach/types-hitl-api';
|
|
2
2
|
|
|
3
|
+
import { ApiVersionOptions } from './common';
|
|
4
|
+
|
|
3
5
|
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
4
6
|
export interface Version extends Versions.IVersion {}
|
|
5
7
|
export interface GetVersionsListResponse extends Versions.IGetVersionsListResponse {
|
|
@@ -7,4 +9,5 @@ export interface GetVersionsListResponse extends Versions.IGetVersionsListRespon
|
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
export interface GetVersionInfoResponse extends Versions.IGetVersionInfoResponse {}
|
|
10
|
-
export interface
|
|
12
|
+
export interface GetStepsToUIVersionsMapOptions extends ApiVersionOptions,
|
|
13
|
+
Versions.IGetStepsToUIVersionsMapQuery {}
|