@or-sdk/idw 2.0.4-beta.1616.0 → 2.0.4-beta.1625.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/index.js +1 -3
- package/dist/cjs/api/index.js.map +1 -1
- package/dist/cjs/idwApi.js +0 -1
- package/dist/cjs/idwApi.js.map +1 -1
- package/dist/esm/api/index.js +0 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/idwApi.js +1 -2
- package/dist/esm/idwApi.js.map +1 -1
- package/dist/types/api/index.d.ts +0 -1
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/idwApi.d.ts +1 -2
- package/dist/types/idwApi.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/api/index.ts +0 -1
- package/src/idwApi.ts +1 -3
- package/dist/cjs/api/migrationApi.js +0 -26
- package/dist/cjs/api/migrationApi.js.map +0 -1
- package/dist/esm/api/migrationApi.js +0 -21
- package/dist/esm/api/migrationApi.js.map +0 -1
- package/dist/types/api/migrationApi.d.ts +0 -9
- package/dist/types/api/migrationApi.d.ts.map +0 -1
- package/src/api/migrationApi.ts +0 -35
package/dist/cjs/api/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SkillApi = void 0;
|
|
4
4
|
var skillApi_1 = require("./skillApi");
|
|
5
5
|
Object.defineProperty(exports, "SkillApi", { enumerable: true, get: function () { return skillApi_1.SkillApi; } });
|
|
6
|
-
var migrationApi_1 = require("./migrationApi");
|
|
7
|
-
Object.defineProperty(exports, "MigrationApi", { enumerable: true, get: function () { return migrationApi_1.MigrationApi; } });
|
|
8
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
package/dist/cjs/idwApi.js
CHANGED
package/dist/cjs/idwApi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":";;;AACA,6BAAiC;AACjC,+CAA8C;AAE9C;IAEE,gBAAY,EAAkD;YAAhD,iBAAiB,uBAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA;QAC3C,IAAM,QAAQ,GAAG,IAAI,qBAAS,CAAC;YAC7B,KAAK,OAAA;YACL,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,iBAAiB;SACtC,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAQ,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;IACH,aAAC;AAAD,CAAC,AAXD,IAWC;AAXY,wBAAM"}
|
package/dist/esm/api/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/esm/idwApi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SkillApi } from './api';
|
|
2
2
|
import { Providers } from '@or-sdk/providers';
|
|
3
3
|
export class IdwApi {
|
|
4
4
|
constructor({ providerAccountId, emUrl, token }) {
|
|
@@ -8,7 +8,6 @@ export class IdwApi {
|
|
|
8
8
|
providersAccountId: providerAccountId,
|
|
9
9
|
});
|
|
10
10
|
this.skillApi = new SkillApi(provider);
|
|
11
|
-
this.migrationApi = new MigrationApi(provider);
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
//# sourceMappingURL=idwApi.js.map
|
package/dist/esm/idwApi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"idwApi.js","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,OAAO,MAAM;IAEjB,YAAY,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,EAAiB;QAC5D,MAAM,QAAQ,GAAG,IAAI,SAAS,CAAC;YAC7B,KAAK;YACL,eAAe,EAAE,KAAK;YACtB,kBAAkB,EAAE,iBAAiB;SACtC,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/types/idwApi.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IDWBaseConfig } from './types';
|
|
2
|
-
import {
|
|
2
|
+
import { SkillApi } from './api';
|
|
3
3
|
export declare class IdwApi {
|
|
4
4
|
readonly skillApi: SkillApi;
|
|
5
|
-
readonly migrationApi: MigrationApi;
|
|
6
5
|
constructor({ providerAccountId, emUrl, token }: IDWBaseConfig);
|
|
7
6
|
}
|
|
8
7
|
//# sourceMappingURL=idwApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idwApi.d.ts","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"idwApi.d.ts","sourceRoot":"","sources":["../../src/idwApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,qBAAa,MAAM;IACjB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;gBAChB,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,aAAa;CAS/D"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.4-beta.
|
|
2
|
+
"version": "2.0.4-beta.1625.0",
|
|
3
3
|
"name": "@or-sdk/idw",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@or-sdk/accounts": "^1.2.13",
|
|
28
28
|
"@or-sdk/base": "^0.28.3",
|
|
29
29
|
"@or-sdk/deployer": "^1.1.5",
|
|
30
|
-
"@or-sdk/flows": "^2.
|
|
30
|
+
"@or-sdk/flows": "^2.2.0-beta.1625.0",
|
|
31
31
|
"@or-sdk/graph": "^1.5.0",
|
|
32
32
|
"@or-sdk/providers": "^0.2.4",
|
|
33
33
|
"@or-sdk/settings": "^0.24.11",
|
package/src/api/index.ts
CHANGED
package/src/idwApi.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IDWBaseConfig } from './types';
|
|
2
|
-
import {
|
|
2
|
+
import { SkillApi } from './api';
|
|
3
3
|
import { Providers } from '@or-sdk/providers';
|
|
4
4
|
|
|
5
5
|
export class IdwApi {
|
|
6
6
|
readonly skillApi: SkillApi;
|
|
7
|
-
readonly migrationApi: MigrationApi;
|
|
8
7
|
constructor({ providerAccountId, emUrl, token }: IDWBaseConfig) {
|
|
9
8
|
const provider = new Providers({
|
|
10
9
|
token,
|
|
@@ -13,6 +12,5 @@ export class IdwApi {
|
|
|
13
12
|
});
|
|
14
13
|
|
|
15
14
|
this.skillApi = new SkillApi(provider);
|
|
16
|
-
this.migrationApi = new MigrationApi(provider);
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MigrationApi = void 0;
|
|
4
|
-
var MigrationApi = (function () {
|
|
5
|
-
function MigrationApi(providers) {
|
|
6
|
-
this.providers = providers;
|
|
7
|
-
}
|
|
8
|
-
MigrationApi.prototype.migrationsStatus = function () {
|
|
9
|
-
return this.providers.makeRequest({
|
|
10
|
-
route: 'migration/status',
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
MigrationApi.prototype.migrationsRun = function () {
|
|
14
|
-
return this.providers.makeRequest({
|
|
15
|
-
route: 'migration/run',
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
MigrationApi.prototype.revertLatest = function () {
|
|
19
|
-
return this.providers.makeRequest({
|
|
20
|
-
route: 'migration/revert',
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
return MigrationApi;
|
|
24
|
-
}());
|
|
25
|
-
exports.MigrationApi = MigrationApi;
|
|
26
|
-
//# sourceMappingURL=migrationApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrationApi.js","sourceRoot":"","sources":["../../../src/api/migrationApi.ts"],"names":[],"mappings":";;;AAEA;IACE,sBACmB,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAMJ,uCAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,kBAAkB;SAC1B,CAAC,CAAC;IACL,CAAC;IAKD,oCAAa,GAAb;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,eAAe;SACvB,CAAC,CAAC;IACL,CAAC;IAKD,mCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,kBAAkB;SAC1B,CAAC,CAAC;IACL,CAAC;IACH,mBAAC;AAAD,CAAC,AAhCD,IAgCC;AAhCY,oCAAY"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export class MigrationApi {
|
|
2
|
-
constructor(providers) {
|
|
3
|
-
this.providers = providers;
|
|
4
|
-
}
|
|
5
|
-
migrationsStatus() {
|
|
6
|
-
return this.providers.makeRequest({
|
|
7
|
-
route: 'migration/status',
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
migrationsRun() {
|
|
11
|
-
return this.providers.makeRequest({
|
|
12
|
-
route: 'migration/run',
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
revertLatest() {
|
|
16
|
-
return this.providers.makeRequest({
|
|
17
|
-
route: 'migration/revert',
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=migrationApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrationApi.js","sourceRoot":"","sources":["../../../src/api/migrationApi.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,YAAY;IACvB,YACmB,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAMJ,gBAAgB;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,kBAAkB;SAC1B,CAAC,CAAC;IACL,CAAC;IAKD,aAAa;QACX,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,eAAe;SACvB,CAAC,CAAC;IACL,CAAC;IAKD,YAAY;QACV,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;YAChC,KAAK,EAAE,kBAAkB;SAC1B,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Providers } from '@or-sdk/providers';
|
|
2
|
-
export declare class MigrationApi {
|
|
3
|
-
private readonly providers;
|
|
4
|
-
constructor(providers: Providers);
|
|
5
|
-
migrationsStatus(): Promise<boolean>;
|
|
6
|
-
migrationsRun(): Promise<void>;
|
|
7
|
-
revertLatest(): Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=migrationApi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrationApi.d.ts","sourceRoot":"","sources":["../../../src/api/migrationApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,qBAAa,YAAY;IAErB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAOvC,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC;IASpC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAS9B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAK9B"}
|
package/src/api/migrationApi.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Providers } from '@or-sdk/providers';
|
|
2
|
-
|
|
3
|
-
export class MigrationApi {
|
|
4
|
-
constructor(
|
|
5
|
-
private readonly providers: Providers
|
|
6
|
-
) {}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Check if there are any pending migrations.
|
|
10
|
-
* @return true if there are pending migrations
|
|
11
|
-
*/
|
|
12
|
-
migrationsStatus(): Promise<boolean> {
|
|
13
|
-
return this.providers.makeRequest({
|
|
14
|
-
route: 'migration/status',
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Run pending migrations
|
|
20
|
-
*/
|
|
21
|
-
migrationsRun(): Promise<void> {
|
|
22
|
-
return this.providers.makeRequest({
|
|
23
|
-
route: 'migration/run',
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Revert latest migrations
|
|
29
|
-
*/
|
|
30
|
-
revertLatest(): Promise<void> {
|
|
31
|
-
return this.providers.makeRequest({
|
|
32
|
-
route: 'migration/revert',
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|