@or-sdk/hitl 0.35.4 → 0.35.5
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 +11 -0
- package/dist/cjs/api/Versions.js.map +1 -1
- package/dist/esm/api/Versions.js +8 -0
- package/dist/esm/api/Versions.js.map +1 -1
- package/dist/types/api/Versions.d.ts +3 -1
- package/dist/types/api/Versions.d.ts.map +1 -1
- package/dist/types/types/versions.d.ts +2 -0
- package/dist/types/types/versions.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/Versions.ts +34 -1
- package/src/types/versions.ts +1 -0
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.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
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **hitl:** add get steps to UI versions map endpoint ([9dc40ae](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/9dc40aed224fe3600695b08ccdebb8c63214be68))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [0.35.4](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.35.3...@or-sdk/hitl@0.35.4) (2025-07-30)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @or-sdk/hitl
|
package/dist/cjs/api/Versions.js
CHANGED
|
@@ -92,8 +92,19 @@ var Versions = (function (_super) {
|
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
|
+
Versions.getStepsToUIVersionsMap = function (options) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
97
|
+
var baseUrl, route;
|
|
98
|
+
return __generator(this, function (_a) {
|
|
99
|
+
baseUrl = this.getBaseUrl(options);
|
|
100
|
+
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)))];
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
95
105
|
Versions.MODULE_URL = 'ui-versions';
|
|
96
106
|
Versions.VERSION_INFO = 'version-info';
|
|
107
|
+
Versions.STEPS_TO_UI_VERSIONS_MAP = 'steps-to-ui-map';
|
|
97
108
|
return Versions;
|
|
98
109
|
}(HITLBase_1.HITLBase));
|
|
99
110
|
exports.Versions = Versions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Versions.js","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAKxB,uCAAsC;AAiBtC;IAA8B,4BAAQ;IAAtC;;
|
|
1
|
+
{"version":3,"file":"Versions.js","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAKxB,uCAAsC;AAiBtC;IAA8B,4BAAQ;IAAtC;;IAmGA,CAAC;IA1EqB,wBAAe,GAAnC,UACE,OAA0B;;;;gBAEpB,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBAEvC,WAAO,IAAI,CAAC,OAAO,YACjB,KAAK,OAAA,IACF,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,EAAC;;;KACJ;IAsBmB,uBAAc,GAAlC,UACE,OAA0B;;;;gBAEpB,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACnC,KAAK,GAAG,IAAI,eAAG,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,EAAE,CAAC;gBAEjE,WAAO,IAAI,CAAC,OAAO,YACjB,KAAK,OAAA,IACF,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,EAAC;;;KACJ;IAsBmB,gCAAuB,GAA3C,UACE,OAA0B;;;;gBAEpB,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACnC,KAAK,GAAG,IAAI,eAAG,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,IAAI,EAAE,CAAC;gBAE7E,WAAO,IAAI,CAAC,OAAO,YACjB,KAAK,OAAA,IACF,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,EAAC;;;KACJ;IAjGgB,mBAAU,GAAG,aAAa,CAAC;IAC3B,qBAAY,GAAG,cAAc,CAAC;IAC9B,iCAAwB,GAAG,iBAAiB,CAAC;IAgGhE,eAAC;CAAA,AAnGD,CAA8B,mBAAQ,GAmGrC;AAnGY,4BAAQ"}
|
package/dist/esm/api/Versions.js
CHANGED
|
@@ -23,7 +23,15 @@ export class Versions extends HITLBase {
|
|
|
23
23
|
return this.request(Object.assign({ route }, this.getBaseSettings(options)));
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
+
static getStepsToUIVersionsMap(options) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const baseUrl = this.getBaseUrl(options);
|
|
29
|
+
const route = new URI(baseUrl).segment(this.STEPS_TO_UI_VERSIONS_MAP).href();
|
|
30
|
+
return this.request(Object.assign({ route }, this.getBaseSettings(options)));
|
|
31
|
+
});
|
|
32
|
+
}
|
|
26
33
|
}
|
|
27
34
|
Versions.MODULE_URL = 'ui-versions';
|
|
28
35
|
Versions.VERSION_INFO = 'version-info';
|
|
36
|
+
Versions.STEPS_TO_UI_VERSIONS_MAP = 'steps-to-ui-map';
|
|
29
37
|
//# sourceMappingURL=Versions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Versions.js","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAKxB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAiBtC,MAAM,OAAO,QAAS,SAAQ,QAAQ;
|
|
1
|
+
{"version":3,"file":"Versions.js","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAKxB,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;IAsBM,MAAM,CAAO,uBAAuB,CACzC,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,wBAAwB,CAAC,CAAC,IAAI,EAAE,CAAC;YAE7E,OAAO,IAAI,CAAC,OAAO,iBACjB,KAAK,IACF,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,CAAC;QACL,CAAC;KAAA;;AAjGgB,mBAAU,GAAG,aAAa,CAAC;AAC3B,qBAAY,GAAG,cAAc,CAAC;AAC9B,iCAAwB,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ApiVersionOptions } from '../types';
|
|
2
|
-
import { GetVersionsListResponse, GetVersionInfoResponse } from '../types/versions';
|
|
2
|
+
import { GetVersionsListResponse, GetVersionInfoResponse, GetStepsToUIVersionsMapResponse } from '../types/versions';
|
|
3
3
|
import { HITLBase } from './HITLBase';
|
|
4
4
|
export declare class Versions extends HITLBase {
|
|
5
5
|
protected static MODULE_URL: string;
|
|
6
6
|
protected static VERSION_INFO: string;
|
|
7
|
+
protected static STEPS_TO_UI_VERSIONS_MAP: string;
|
|
7
8
|
static getVersionsList(options: ApiVersionOptions): Promise<GetVersionsListResponse>;
|
|
8
9
|
static getVersionInfo(options: ApiVersionOptions): Promise<GetVersionInfoResponse>;
|
|
10
|
+
static getStepsToUIVersionsMap(options: ApiVersionOptions): Promise<GetStepsToUIVersionsMapResponse>;
|
|
9
11
|
}
|
|
10
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,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;
|
|
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,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AAErH,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;WA8Bd,uBAAuB,CACzC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,+BAA+B,CAAC;CAS5C"}
|
|
@@ -6,4 +6,6 @@ export interface GetVersionsListResponse extends Versions.IGetVersionsListRespon
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetVersionInfoResponse extends Versions.IGetVersionInfoResponse {
|
|
8
8
|
}
|
|
9
|
+
export interface GetStepsToUIVersionsMapResponse extends Versions.IGetStepsToUIVersionsMapResponse {
|
|
10
|
+
}
|
|
9
11
|
//# 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;AAGpD,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"}
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/types/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGpD,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,+BAAgC,SAAQ,QAAQ,CAAC,gCAAgC;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.5",
|
|
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.
|
|
21
|
+
"@onereach/types-hitl-api": "0.0.86-rc.1",
|
|
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": "1598af9309ac2fb60f628335683f9d4bb25e8516"
|
|
34
34
|
}
|
package/src/api/Versions.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import URI from 'urijs';
|
|
2
2
|
|
|
3
3
|
import { ApiVersionOptions } from '../types';
|
|
4
|
-
import { GetVersionsListResponse, GetVersionInfoResponse } from '../types/versions';
|
|
4
|
+
import { GetVersionsListResponse, GetVersionInfoResponse, GetStepsToUIVersionsMapResponse } from '../types/versions';
|
|
5
5
|
|
|
6
6
|
import { HITLBase } from './HITLBase';
|
|
7
7
|
|
|
@@ -23,6 +23,7 @@ import { HITLBase } from './HITLBase';
|
|
|
23
23
|
export class Versions extends HITLBase {
|
|
24
24
|
protected static MODULE_URL = 'ui-versions';
|
|
25
25
|
protected static VERSION_INFO = 'version-info';
|
|
26
|
+
protected static STEPS_TO_UI_VERSIONS_MAP = 'steps-to-ui-map';
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
29
|
* Retrieves a list of available UI versions
|
|
@@ -86,4 +87,36 @@ export class Versions extends HITLBase {
|
|
|
86
87
|
...this.getBaseSettings(options),
|
|
87
88
|
});
|
|
88
89
|
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves information about the compatibility of steps to UI versions
|
|
93
|
+
*
|
|
94
|
+
* @param options - Configuration parameters for retrieving steps to UI versions map
|
|
95
|
+
*
|
|
96
|
+
* Optional parameters:
|
|
97
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
98
|
+
* - `version` - (string | number) API version to use
|
|
99
|
+
*
|
|
100
|
+
* @returns {Promise<GetStepsToUIVersionsMapResponse>} Promise resolving to steps to UI versions map
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```typescript
|
|
104
|
+
* const versionInfo = await hitlApi.versions.getStepsToUIVersionsMap();
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* Makes a GET request to the `/ui-versions/steps-to-ui-map` endpoint
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
public static async getStepsToUIVersionsMap(
|
|
112
|
+
options: ApiVersionOptions,
|
|
113
|
+
): Promise<GetStepsToUIVersionsMapResponse> {
|
|
114
|
+
const baseUrl = this.getBaseUrl(options);
|
|
115
|
+
const route = new URI(baseUrl).segment(this.STEPS_TO_UI_VERSIONS_MAP).href();
|
|
116
|
+
|
|
117
|
+
return this.request({
|
|
118
|
+
route,
|
|
119
|
+
...this.getBaseSettings(options),
|
|
120
|
+
});
|
|
121
|
+
}
|
|
89
122
|
}
|
package/src/types/versions.ts
CHANGED
|
@@ -7,3 +7,4 @@ export interface GetVersionsListResponse extends Versions.IGetVersionsListRespon
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export interface GetVersionInfoResponse extends Versions.IGetVersionInfoResponse {}
|
|
10
|
+
export interface GetStepsToUIVersionsMapResponse extends Versions.IGetStepsToUIVersionsMapResponse {}
|