@or-sdk/hitl 0.33.6-beta.1153.0 → 0.33.7-beta.1174.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/CHANGELOG.md +9 -0
- package/dist/cjs/api/Migrations.js +13 -0
- package/dist/cjs/api/Migrations.js.map +1 -1
- package/dist/esm/api/Migrations.js +10 -0
- package/dist/esm/api/Migrations.js.map +1 -1
- package/dist/types/api/Migrations.d.ts +3 -1
- package/dist/types/api/Migrations.d.ts.map +1 -1
- package/dist/types/types/migrations.d.ts +1 -0
- package/dist/types/types/migrations.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/api/Migrations.ts +11 -0
- package/src/types/migrations.ts +2 -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.33.6](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.33.5...@or-sdk/hitl@0.33.6) (2023-04-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **hitl:** update hitl types package ([81c7084](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/81c7084f77f687711f7f59ad668da924924b832d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [0.33.5](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.33.4...@or-sdk/hitl@0.33.5) (2023-03-28)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -105,8 +105,21 @@ var Migrations = (function (_super) {
|
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
+
Migrations.getMigrationsInfo = function () {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
110
|
+
var baseUrl, route;
|
|
111
|
+
return __generator(this, function (_a) {
|
|
112
|
+
baseUrl = this.getBaseUrl({});
|
|
113
|
+
route = new urijs_1.default(baseUrl).segment(this.MIGRATIONS_INFO_URL).href();
|
|
114
|
+
return [2, this.request({
|
|
115
|
+
route: route,
|
|
116
|
+
})];
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
};
|
|
108
120
|
Migrations.MODULE_URL = 'migrations';
|
|
109
121
|
Migrations.CREATE_DEFAULT_RECORDS_URL = 'default-records';
|
|
122
|
+
Migrations.MIGRATIONS_INFO_URL = 'info';
|
|
110
123
|
return Migrations;
|
|
111
124
|
}(HITLBase_1.HITLBase));
|
|
112
125
|
exports.Migrations = Migrations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migrations.js","sourceRoot":"","sources":["../../../src/api/Migrations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuB;
|
|
1
|
+
{"version":3,"file":"Migrations.js","sourceRoot":"","sources":["../../../src/api/Migrations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAuB;AASvB,uCAAsC;AACtC,gDAAwB;AAExB;IAAgC,8BAAQ;IAAxC;;IAgDA,CAAC;IA3CqB,8BAAmB,GAAvC,UACE,OAAkC;QAAlC,wBAAA,EAAA,YAAkC;;;;gBAE5B,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACjC,MAAM,GAAG,gBAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;gBAE/C,WAAO,IAAI,CAAC,OAAO,CAAC;wBAClB,KAAK,OAAA;wBACL,MAAM,QAAA;qBACP,CAAC,EAAC;;;KACJ;IAEmB,2BAAgB,GAApC,UACE,OAAkC;QAAlC,wBAAA,EAAA,YA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, function* () {
|
|
47
|
+
const baseUrl = this.getBaseUrl({});
|
|
48
|
+
const route = new URI(baseUrl).segment(this.MIGRATIONS_INFO_URL).href();
|
|
49
|
+
return this.request({
|
|
50
|
+
route,
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
45
54
|
}
|
|
46
55
|
Migrations.MODULE_URL = 'migrations';
|
|
47
56
|
Migrations.CREATE_DEFAULT_RECORDS_URL = 'default-records';
|
|
57
|
+
Migrations.MIGRATIONS_INFO_URL = 'info';
|
|
48
58
|
//# sourceMappingURL=Migrations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migrations.js","sourceRoot":"","sources":["../../../src/api/Migrations.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Migrations.js","sourceRoot":"","sources":["../../../src/api/Migrations.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AASvB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,MAAM,OAAO,UAAW,SAAQ,QAAQ;IAK/B,MAAM,CAAO,mBAAmB,CACrC,UAAgC,EAAE;;YAElC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;YAE/C,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,KAAK;gBACL,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KAAA;IAEM,MAAM,CAAO,gBAAgB,CAClC,UAAgC,EAAE;;YAElC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;YAEjE,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,KAAK;gBACL,MAAM,EAAE,MAAM;gBACd,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KAAA;IAEM,MAAM,CAAO,yBAAyB;;YAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YACpC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,IAAI,EAAE,CAAC;YAE/E,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,KAAK;gBACL,MAAM,EAAE,MAAM;aACf,CAAC,CAAC;QACL,CAAC;KAAA;IAEM,MAAM,CAAO,iBAAiB;;YACnC,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YACpC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,IAAI,EAAE,CAAC;YAExE,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,KAAK;aACN,CAAC,CAAC;QACL,CAAC;KAAA;;AA9CyB,qBAAU,GAAG,YAAY,CAAC;AACnC,qCAA0B,GAAG,iBAAiB,CAAC;AAC/C,8BAAmB,GAAG,MAAM,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { GetMigrationsOptions, GetMigrationsResponse, RunMigrationsOptions, RunMigrationsResponse, CreateDefaultRecordsResponse } from '../types/migrations';
|
|
1
|
+
import { GetMigrationsOptions, GetMigrationsResponse, RunMigrationsOptions, RunMigrationsResponse, CreateDefaultRecordsResponse, GetMigrationsInfoResponse } from '../types/migrations';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
3
|
export declare class Migrations extends HITLBase {
|
|
4
4
|
protected static readonly MODULE_URL = "migrations";
|
|
5
5
|
protected static CREATE_DEFAULT_RECORDS_URL: string;
|
|
6
|
+
protected static MIGRATIONS_INFO_URL: string;
|
|
6
7
|
static getListOfMigrations(options?: GetMigrationsOptions): Promise<GetMigrationsResponse>;
|
|
7
8
|
static runAllMigrations(options?: RunMigrationsOptions): Promise<RunMigrationsResponse>;
|
|
8
9
|
static createTableDefaultRecords(): Promise<CreateDefaultRecordsResponse>;
|
|
10
|
+
static getMigrationsInfo(): Promise<GetMigrationsInfoResponse>;
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=Migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migrations.d.ts","sourceRoot":"","sources":["../../../src/api/Migrations.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"Migrations.d.ts","sourceRoot":"","sources":["../../../src/api/Migrations.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC5B,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,qBAAa,UAAW,SAAQ,QAAQ;IACtC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,gBAAgB;IACpD,SAAS,CAAC,MAAM,CAAC,0BAA0B,SAAqB;IAChE,SAAS,CAAC,MAAM,CAAC,mBAAmB,SAAU;WAE1B,mBAAmB,CACrC,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,qBAAqB,CAAC;WAUb,gBAAgB,CAClC,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,qBAAqB,CAAC;WAWb,yBAAyB,IAAI,OAAO,CAAC,4BAA4B,CAAC;WAUlE,iBAAiB,IAAI,OAAO,CAAC,yBAAyB,CAAC;CAQ5E"}
|
|
@@ -6,4 +6,5 @@ export type RunMigrationsOptions = ApiVersionOptions & NoAccountId<Migrations.IR
|
|
|
6
6
|
export type RunMigrationsResponse = Migrations.IMigrationResult;
|
|
7
7
|
export type CreateDefaultRecordsResponse = Migrations.ICreateDefaultRecordsResponse;
|
|
8
8
|
export type Migration = Migrations.IMigration;
|
|
9
|
+
export type GetMigrationsInfoResponse = Migrations.IGetMigrationsInfoResponse;
|
|
9
10
|
//# sourceMappingURL=migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../src/types/migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACnG,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,sBAAsB,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACnG,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,gBAAgB,CAAC;AAChE,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,6BAA6B,CAAC;AACpF,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../src/types/migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE1D,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACnG,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,sBAAsB,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,WAAW,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACnG,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,gBAAgB,CAAC;AAChE,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,6BAA6B,CAAC;AACpF,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,UAAU,CAAC;AAC9C,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/hitl",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.7-beta.1174.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dev": "pnpm build:watch:esm"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@onereach/types-hitl-api": "0.0.
|
|
20
|
+
"@onereach/types-hitl-api": "0.0.44",
|
|
21
21
|
"@or-sdk/base": "^0.28.1",
|
|
22
22
|
"@types/lodash": "^4.14.191",
|
|
23
23
|
"@types/urijs": "^1.19.18",
|
package/src/api/Migrations.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
RunMigrationsOptions,
|
|
6
6
|
RunMigrationsResponse,
|
|
7
7
|
CreateDefaultRecordsResponse,
|
|
8
|
+
GetMigrationsInfoResponse,
|
|
8
9
|
} from '../types/migrations';
|
|
9
10
|
import { HITLBase } from './HITLBase';
|
|
10
11
|
import URI from 'urijs';
|
|
@@ -12,6 +13,7 @@ import URI from 'urijs';
|
|
|
12
13
|
export class Migrations extends HITLBase {
|
|
13
14
|
protected static readonly MODULE_URL = 'migrations';
|
|
14
15
|
protected static CREATE_DEFAULT_RECORDS_URL = 'default-records';
|
|
16
|
+
protected static MIGRATIONS_INFO_URL = 'info';
|
|
15
17
|
|
|
16
18
|
public static async getListOfMigrations(
|
|
17
19
|
options: GetMigrationsOptions = {}
|
|
@@ -47,4 +49,13 @@ export class Migrations extends HITLBase {
|
|
|
47
49
|
method: 'POST',
|
|
48
50
|
});
|
|
49
51
|
}
|
|
52
|
+
|
|
53
|
+
public static async getMigrationsInfo(): Promise<GetMigrationsInfoResponse> {
|
|
54
|
+
const baseUrl = this.getBaseUrl({});
|
|
55
|
+
const route = new URI(baseUrl).segment(this.MIGRATIONS_INFO_URL).href();
|
|
56
|
+
|
|
57
|
+
return this.request({
|
|
58
|
+
route,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
50
61
|
}
|
package/src/types/migrations.ts
CHANGED
|
@@ -7,3 +7,5 @@ export type RunMigrationsOptions = ApiVersionOptions & NoAccountId<Migrations.IR
|
|
|
7
7
|
export type RunMigrationsResponse = Migrations.IMigrationResult;
|
|
8
8
|
export type CreateDefaultRecordsResponse = Migrations.ICreateDefaultRecordsResponse;
|
|
9
9
|
export type Migration = Migrations.IMigration;
|
|
10
|
+
export type GetMigrationsInfoResponse = Migrations.IGetMigrationsInfoResponse;
|
|
11
|
+
|