@shapediver/sdk.geometry-api-sdk-v2 1.6.0 → 1.7.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/ShapeDiverErrors.js +0 -1
- package/dist/ShapeDiverErrors.js.map +1 -1
- package/dist/ShapeDiverSdk.d.ts +0 -6
- package/dist/ShapeDiverSdk.d.ts.map +1 -1
- package/dist/ShapeDiverSdk.js +0 -6
- package/dist/ShapeDiverSdk.js.map +1 -1
- package/dist/resources/ShapeDiverAnalyticsApi.d.ts +0 -5
- package/dist/resources/ShapeDiverAnalyticsApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverAnalyticsApi.js +0 -5
- package/dist/resources/ShapeDiverAnalyticsApi.js.map +1 -1
- package/dist/resources/ShapeDiverArSceneApi.d.ts +0 -17
- package/dist/resources/ShapeDiverArSceneApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverArSceneApi.js +0 -18
- package/dist/resources/ShapeDiverArSceneApi.js.map +1 -1
- package/dist/resources/ShapeDiverAssetApi.d.ts +0 -56
- package/dist/resources/ShapeDiverAssetApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverAssetApi.js +2 -61
- package/dist/resources/ShapeDiverAssetApi.js.map +1 -1
- package/dist/resources/ShapeDiverExportApi.d.ts +0 -24
- package/dist/resources/ShapeDiverExportApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverExportApi.js +0 -24
- package/dist/resources/ShapeDiverExportApi.js.map +1 -1
- package/dist/resources/ShapeDiverFileApi.d.ts +0 -26
- package/dist/resources/ShapeDiverFileApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverFileApi.js +0 -26
- package/dist/resources/ShapeDiverFileApi.js.map +1 -1
- package/dist/resources/ShapeDiverGltfApi.d.ts +0 -8
- package/dist/resources/ShapeDiverGltfApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverGltfApi.js +0 -8
- package/dist/resources/ShapeDiverGltfApi.js.map +1 -1
- package/dist/resources/ShapeDiverModelApi.d.ts +0 -106
- package/dist/resources/ShapeDiverModelApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverModelApi.js +0 -107
- package/dist/resources/ShapeDiverModelApi.js.map +1 -1
- package/dist/resources/ShapeDiverOutputApi.d.ts +0 -24
- package/dist/resources/ShapeDiverOutputApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverOutputApi.js +0 -24
- package/dist/resources/ShapeDiverOutputApi.js.map +1 -1
- package/dist/resources/ShapeDiverSdtfApi.d.ts +0 -24
- package/dist/resources/ShapeDiverSdtfApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverSdtfApi.js +0 -24
- package/dist/resources/ShapeDiverSdtfApi.js.map +1 -1
- package/dist/resources/ShapeDiverSessionApi.d.ts +0 -29
- package/dist/resources/ShapeDiverSessionApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverSessionApi.js +0 -29
- package/dist/resources/ShapeDiverSessionApi.js.map +1 -1
- package/dist/resources/ShapeDiverSystemApi.d.ts +0 -29
- package/dist/resources/ShapeDiverSystemApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverSystemApi.js +0 -29
- package/dist/resources/ShapeDiverSystemApi.js.map +1 -1
- package/dist/resources/ShapeDiverTextureApi.d.ts +0 -5
- package/dist/resources/ShapeDiverTextureApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverTextureApi.js +0 -5
- package/dist/resources/ShapeDiverTextureApi.js.map +1 -1
- package/dist/resources/ShapeDiverUtilsApi.d.ts +0 -65
- package/dist/resources/ShapeDiverUtilsApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverUtilsApi.js +0 -72
- package/dist/resources/ShapeDiverUtilsApi.js.map +1 -1
- package/dist/utils/utils.d.ts +0 -10
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +2 -16
- package/dist/utils/utils.js.map +1 -1
- package/package.json +7 -7
|
@@ -16,13 +16,6 @@ class ShapeDiverSessionApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
16
16
|
constructor(api) {
|
|
17
17
|
super(api);
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Create a new ticket that allows to initialize new sessions for the
|
|
21
|
-
* specified model.
|
|
22
|
-
*
|
|
23
|
-
* @param modelId
|
|
24
|
-
* @param body
|
|
25
|
-
*/
|
|
26
19
|
ticket(modelId, body) {
|
|
27
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
21
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30,23 +23,11 @@ class ShapeDiverSessionApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
30
23
|
}));
|
|
31
24
|
});
|
|
32
25
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Create a new session for a ShapeDiver Model via a ticket.
|
|
35
|
-
*
|
|
36
|
-
* @param ticket
|
|
37
|
-
* @param request - Optional customization or export request.
|
|
38
|
-
*/
|
|
39
26
|
init(ticket, request) {
|
|
40
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
28
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.post(this.buildTicketUri(ticket), request))[1]; }));
|
|
42
29
|
});
|
|
43
30
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Create a new session for a ShapeDiver Model.
|
|
46
|
-
*
|
|
47
|
-
* @param ticket
|
|
48
|
-
* @param request - Optional customization or export request.
|
|
49
|
-
*/
|
|
50
31
|
initForModel(modelId, request) {
|
|
51
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
33
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -54,11 +35,6 @@ class ShapeDiverSessionApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
54
35
|
}));
|
|
55
36
|
});
|
|
56
37
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Get the full description of a ShapeDiver Model.
|
|
59
|
-
*
|
|
60
|
-
* @param sessionId
|
|
61
|
-
*/
|
|
62
38
|
default(sessionId) {
|
|
63
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
40
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -66,11 +42,6 @@ class ShapeDiverSessionApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
66
42
|
}));
|
|
67
43
|
});
|
|
68
44
|
}
|
|
69
|
-
/**
|
|
70
|
-
* Close the specified session.
|
|
71
|
-
*
|
|
72
|
-
* @param sessionId
|
|
73
|
-
*/
|
|
74
45
|
close(sessionId) {
|
|
75
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
47
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverSessionApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverSessionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,qFAAyF;AACzF,0CAA4C;AAE5C,MAAa,oBAAqB,SAAQ,2CAAe;IAErD,YAAY,GAAqB;QAC7B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;
|
|
1
|
+
{"version":3,"file":"ShapeDiverSessionApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverSessionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,qFAAyF;AACzF,0CAA4C;AAE5C,MAAa,oBAAqB,SAAQ,2CAAe;IAErD,YAAY,GAAqB;QAC7B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;IASK,MAAM,CAAC,OAAe,EAAE,IAA6B;;YACvD,OAAO,MAAM,IAAA,mBAAW,EAAC,GAAS,EAAE;gBAChC,OAAA,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAChB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,SAAS,EACvC,IA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
|
2
2
|
import { BaseResourceApi, ShapeDiverSdkApi } from "@shapediver/sdk.geometry-api-sdk-core";
|
|
3
3
|
export declare class ShapeDiverSystemApi extends BaseResourceApi {
|
|
4
4
|
constructor(api: ShapeDiverSdkApi);
|
|
5
|
-
/**
|
|
6
|
-
* Log the specified message.
|
|
7
|
-
*
|
|
8
|
-
* @param sessionId
|
|
9
|
-
* @param body
|
|
10
|
-
*/
|
|
11
5
|
log(sessionId: string, body: ShapeDiverRequestLogMessage): Promise<ShapeDiverResponseDto>;
|
|
12
|
-
/**
|
|
13
|
-
* Remove a model with all it's components.
|
|
14
|
-
*
|
|
15
|
-
* **WARNING: This operation cannot be undone!**
|
|
16
|
-
*
|
|
17
|
-
* @param modelId
|
|
18
|
-
*/
|
|
19
6
|
pruneModel(modelId: string): Promise<ShapeDiverResponseDto>;
|
|
20
|
-
/**
|
|
21
|
-
* Decrypt the given ticket.
|
|
22
|
-
*
|
|
23
|
-
* @param ticket
|
|
24
|
-
*/
|
|
25
7
|
decryptTicket(ticket: string): Promise<ShapeDiverResponseDto>;
|
|
26
|
-
/**
|
|
27
|
-
* Create a new authentication group.
|
|
28
|
-
*
|
|
29
|
-
* @param body
|
|
30
|
-
*/
|
|
31
8
|
authGroup(body: ShapeDiverRequestAuthorizationGroup): Promise<ShapeDiverResponseDto>;
|
|
32
|
-
/**
|
|
33
|
-
* Returns system information about the Geometry Minions.
|
|
34
|
-
*/
|
|
35
9
|
getMinionInfo(): Promise<ShapeDiverResponseDto>;
|
|
36
|
-
/**
|
|
37
|
-
* Returns system information about the Geometry Workers.
|
|
38
|
-
*/
|
|
39
10
|
getWorkerInfo(): Promise<ShapeDiverResponseDto>;
|
|
40
11
|
}
|
|
41
12
|
//# sourceMappingURL=ShapeDiverSystemApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverSystemApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverSystemApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mCAAmC,EACnC,2BAA2B,EAC3B,qBAAqB,EACxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAGzF,qBAAa,mBAAoB,SAAQ,eAAe;gBAEvC,GAAG,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"ShapeDiverSystemApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverSystemApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mCAAmC,EACnC,2BAA2B,EAC3B,qBAAqB,EACxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAGzF,qBAAa,mBAAoB,SAAQ,eAAe;gBAEvC,GAAG,EAAE,gBAAgB;IAU5B,GAAG,CAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAa1F,UAAU,CAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAW5D,aAAa,CAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAW9D,SAAS,CAAE,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,qBAAqB,CAAC;IASrF,aAAa,IAAK,OAAO,CAAC,qBAAqB,CAAC;IAShD,aAAa,IAAK,OAAO,CAAC,qBAAqB,CAAC;CAMzD"}
|
|
@@ -16,60 +16,31 @@ class ShapeDiverSystemApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
16
16
|
constructor(api) {
|
|
17
17
|
super(api);
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Log the specified message.
|
|
21
|
-
*
|
|
22
|
-
* @param sessionId
|
|
23
|
-
* @param body
|
|
24
|
-
*/
|
|
25
19
|
log(sessionId, body) {
|
|
26
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
21
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.post(this.buildSessionUri(sessionId) + "/log/message", body))[1]; }));
|
|
28
22
|
});
|
|
29
23
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Remove a model with all it's components.
|
|
32
|
-
*
|
|
33
|
-
* **WARNING: This operation cannot be undone!**
|
|
34
|
-
*
|
|
35
|
-
* @param modelId
|
|
36
|
-
*/
|
|
37
24
|
pruneModel(modelId) {
|
|
38
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
26
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.delete(`${this.buildSystemUri()}/model/${modelId}`))[1]; }));
|
|
40
27
|
});
|
|
41
28
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Decrypt the given ticket.
|
|
44
|
-
*
|
|
45
|
-
* @param ticket
|
|
46
|
-
*/
|
|
47
29
|
decryptTicket(ticket) {
|
|
48
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
31
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.get(this.buildTicketUri(ticket)))[1]; }));
|
|
50
32
|
});
|
|
51
33
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Create a new authentication group.
|
|
54
|
-
*
|
|
55
|
-
* @param body
|
|
56
|
-
*/
|
|
57
34
|
authGroup(body) {
|
|
58
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
36
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.post(this.buildAuthGroupUri(), body))[1]; }));
|
|
60
37
|
});
|
|
61
38
|
}
|
|
62
|
-
/**
|
|
63
|
-
* Returns system information about the Geometry Minions.
|
|
64
|
-
*/
|
|
65
39
|
getMinionInfo() {
|
|
66
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
41
|
return (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.get(`${this.buildSystemUri()}/minions/info`))[1]; }));
|
|
68
42
|
});
|
|
69
43
|
}
|
|
70
|
-
/**
|
|
71
|
-
* Returns system information about the Geometry Workers.
|
|
72
|
-
*/
|
|
73
44
|
getWorkerInfo() {
|
|
74
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
46
|
return (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.get(`${this.buildSystemUri()}/workers/info`))[1]; }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverSystemApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverSystemApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,qFAAyF;AACzF,0CAA4C;AAE5C,MAAa,mBAAoB,SAAQ,2CAAe;IAEpD,YAAa,GAAqB;QAC9B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;
|
|
1
|
+
{"version":3,"file":"ShapeDiverSystemApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverSystemApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,qFAAyF;AACzF,0CAA4C;AAE5C,MAAa,mBAAoB,SAAQ,2CAAe;IAEpD,YAAa,GAAqB;QAC9B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;IAQK,GAAG,CAAE,SAAiB,EAAE,IAAiC;;YAC3D,OAAO,MAAM,IAAA,mBAAW,EAAC,GAAS,EAAE,gDAChC,OAAA,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAwB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,GAAA,CAC1G,CAAA;QACL,CAAC;KAAA;IASK,UAAU,CAAE,OAAe;;YAC7B,OAAO,MAAM,IAAA,mBAAW,EAAC,GAAS,EAAE,gDAChC,OAAA,CAAC,MAAM,IAAI,CAAC,GAAG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apediver/sdk.geometry-api-sdk-core";
|
|
3
3
|
export declare class ShapeDiverTextureApi extends BaseResourceApi {
|
|
4
4
|
constructor(api: ShapeDiverSdkApi);
|
|
5
|
-
/**
|
|
6
|
-
* List all textures of the specified model.
|
|
7
|
-
*
|
|
8
|
-
* @param sessionId
|
|
9
|
-
*/
|
|
10
5
|
listModelTextures(sessionId: string): Promise<ShapeDiverResponseDto>;
|
|
11
6
|
}
|
|
12
7
|
//# sourceMappingURL=ShapeDiverTextureApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverTextureApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverTextureApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAGzF,qBAAa,oBAAqB,SAAQ,eAAe;gBAExC,GAAG,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"ShapeDiverTextureApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverTextureApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAGzF,qBAAa,oBAAqB,SAAQ,eAAe;gBAExC,GAAG,EAAE,gBAAgB;IAS5B,iBAAiB,CAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAM9E"}
|
|
@@ -16,11 +16,6 @@ class ShapeDiverTextureApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
16
16
|
constructor(api) {
|
|
17
17
|
super(api);
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* List all textures of the specified model.
|
|
21
|
-
*
|
|
22
|
-
* @param sessionId
|
|
23
|
-
*/
|
|
24
19
|
listModelTextures(sessionId) {
|
|
25
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
21
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.get(this.buildSessionUri(sessionId) + "/texture/list"))[1]; }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverTextureApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverTextureApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qFAAyF;AACzF,0CAA4C;AAE5C,MAAa,oBAAqB,SAAQ,2CAAe;IAErD,YAAa,GAAqB;QAC9B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;
|
|
1
|
+
{"version":3,"file":"ShapeDiverTextureApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverTextureApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qFAAyF;AACzF,0CAA4C;AAE5C,MAAa,oBAAqB,SAAQ,2CAAe;IAErD,YAAa,GAAqB;QAC9B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;IAOK,iBAAiB,CAAE,SAAiB;;YACtC,OAAO,MAAM,IAAA,mBAAW,EAAC,GAAS,EAAE,gDAChC,OAAA,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAwB,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,GAAA,CACpG,CAAA;QACL,CAAC;KAAA;CAEJ;AAjBD,oDAiBC"}
|
|
@@ -4,81 +4,16 @@ import { ShapeDiverSdk } from "../ShapeDiverSdk";
|
|
|
4
4
|
type ShapeDiverSdkUtilsDownloadType<T extends ShapeDiverSdkApiResponseType> = T extends ShapeDiverSdkApiResponseType.TEXT ? string : T extends ShapeDiverSdkApiResponseType.JSON ? Record<string, any> : T extends ShapeDiverSdkApiResponseType.DATA ? ArrayBuffer : never;
|
|
5
5
|
export declare class ShapeDiverUtilsApi extends BaseResourceApi {
|
|
6
6
|
constructor(api: ShapeDiverSdkApi);
|
|
7
|
-
/**
|
|
8
|
-
* Upload the given file to the specified URL.
|
|
9
|
-
*
|
|
10
|
-
* @param url - The target URL of the upload request.
|
|
11
|
-
* @param data - The data that should be uploaded.
|
|
12
|
-
* @param contentType - Indicate the original media type of the resource.
|
|
13
|
-
*/
|
|
14
7
|
upload(url: string, data: ArrayBuffer | Record<string, any> | string, contentType: string): Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* Download from the given URL.
|
|
17
|
-
*
|
|
18
|
-
* @param url - The target URL of the download request.
|
|
19
|
-
* @param responseType - Indicates the type of data that the server should respond with if possible.
|
|
20
|
-
* @returns Array of size 2: [0] = response headers, [1] = response data
|
|
21
|
-
*/
|
|
22
8
|
download<T extends ShapeDiverSdkApiResponseType>(url: string, responseType: T): Promise<[
|
|
23
9
|
Record<string, any>,
|
|
24
10
|
ShapeDiverSdkUtilsDownloadType<T>
|
|
25
11
|
]>;
|
|
26
|
-
/**
|
|
27
|
-
* Submit a customization request and wait for the result to be finished.
|
|
28
|
-
*
|
|
29
|
-
* @param sdk
|
|
30
|
-
* @param sessionId
|
|
31
|
-
* @param body
|
|
32
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
33
|
-
* @throws {@link ShapeDiverError} in case a maximum duration has been specified and is exceeded.
|
|
34
|
-
* @returns
|
|
35
|
-
*/
|
|
36
12
|
submitAndWaitForCustomization(sdk: ShapeDiverSdk, sessionId: string, body: ShapeDiverRequestCustomization, maxWaitMsec?: number): Promise<ShapeDiverResponseDto>;
|
|
37
|
-
/**
|
|
38
|
-
* Submit an export request and wait for the result to be finished.
|
|
39
|
-
*
|
|
40
|
-
* @param sdk
|
|
41
|
-
* @param sessionId
|
|
42
|
-
* @param body
|
|
43
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
44
|
-
* @throws {@link ShapeDiverError} in case a maximum duration has been specified and is exceeded.
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
13
|
submitAndWaitForExport(sdk: ShapeDiverSdk, sessionId: string, body: ShapeDiverRequestExport, maxWaitMsec?: number): Promise<ShapeDiverResponseDto>;
|
|
48
|
-
/**
|
|
49
|
-
* Given a DTO resulting from a customization request, wait for the results to be finished.
|
|
50
|
-
*
|
|
51
|
-
* @param sdk
|
|
52
|
-
* @param sessionId
|
|
53
|
-
* @param dto
|
|
54
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
55
|
-
* @returns
|
|
56
|
-
*/
|
|
57
14
|
private static waitForCustomizationResult;
|
|
58
|
-
/**
|
|
59
|
-
* Given a DTO resulting from an export request, wait for the result to be finished.
|
|
60
|
-
*
|
|
61
|
-
* @param sdk
|
|
62
|
-
* @param sessionId
|
|
63
|
-
* @param dto
|
|
64
|
-
* @param exportIds
|
|
65
|
-
* @param outputIds
|
|
66
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
67
|
-
* @returns
|
|
68
|
-
*/
|
|
69
15
|
private static waitForExportResult;
|
|
70
|
-
/**
|
|
71
|
-
* Get the maximum delay that was reported for output versions.
|
|
72
|
-
*
|
|
73
|
-
* @returns maximum delay, -1 in case no delay was reported
|
|
74
|
-
*/
|
|
75
16
|
private static getMaxOutputDelay;
|
|
76
|
-
/**
|
|
77
|
-
* Get the maximum delay that was reported for the exports. If outputs have been reported as
|
|
78
|
-
* well, their delay time is included too.
|
|
79
|
-
*
|
|
80
|
-
* @returns delay, -1 in case no delay was reported
|
|
81
|
-
*/
|
|
82
17
|
private static getMaxExportDelay;
|
|
83
18
|
}
|
|
84
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverUtilsApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverUtilsApi.ts"],"names":[],"mappings":"AAAA,OAAO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MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAgBxG,QAAQ,CAAC,CAAC,SAAS,4BAA4B,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,OAAO,CAAC;QAC1F,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;QACnB,8BAA8B,CAAC,CAAC,CAAC;KACpC,CAAC;IAmBI,6BAA6B,CAC/B,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,8BAA8B,EACpC,WAAW,SAAK,GACjB,OAAO,CAAC,qBAAqB,CAAC;IAqB3B,sBAAsB,CACxB,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,uBAAuB,EAC7B,WAAW,SAAK,GACjB,OAAO,CAAC,qBAAqB,CAAC;mBAoBZ,0BAA0B;mBAkD1B,mBAAmB;IAqCxC,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAchC,OAAO,CAAC,MAAM,CAAC,iBAAiB;CAmBnC"}
|
|
@@ -16,13 +16,6 @@ class ShapeDiverUtilsApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
16
16
|
constructor(api) {
|
|
17
17
|
super(api);
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* Upload the given file to the specified URL.
|
|
21
|
-
*
|
|
22
|
-
* @param url - The target URL of the upload request.
|
|
23
|
-
* @param data - The data that should be uploaded.
|
|
24
|
-
* @param contentType - Indicate the original media type of the resource.
|
|
25
|
-
*/
|
|
26
19
|
upload(url, data, contentType) {
|
|
27
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
21
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -35,13 +28,6 @@ class ShapeDiverUtilsApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
35
28
|
}));
|
|
36
29
|
});
|
|
37
30
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Download from the given URL.
|
|
40
|
-
*
|
|
41
|
-
* @param url - The target URL of the download request.
|
|
42
|
-
* @param responseType - Indicates the type of data that the server should respond with if possible.
|
|
43
|
-
* @returns Array of size 2: [0] = response headers, [1] = response data
|
|
44
|
-
*/
|
|
45
31
|
download(url, responseType) {
|
|
46
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
33
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -54,60 +40,28 @@ class ShapeDiverUtilsApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
54
40
|
}));
|
|
55
41
|
});
|
|
56
42
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Submit a customization request and wait for the result to be finished.
|
|
59
|
-
*
|
|
60
|
-
* @param sdk
|
|
61
|
-
* @param sessionId
|
|
62
|
-
* @param body
|
|
63
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
64
|
-
* @throws {@link ShapeDiverError} in case a maximum duration has been specified and is exceeded.
|
|
65
|
-
* @returns
|
|
66
|
-
*/
|
|
67
43
|
submitAndWaitForCustomization(sdk, sessionId, body, maxWaitMsec = -1) {
|
|
68
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
45
|
const startMsec = Date.now();
|
|
70
46
|
const dto = yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return sdk.output.customize(sessionId, body); }));
|
|
71
47
|
const waitMsec = Date.now() - startMsec;
|
|
72
|
-
// Reduce the total max waiting time by the amount the customization-request took
|
|
73
48
|
maxWaitMsec = (maxWaitMsec < 0) ? maxWaitMsec : Math.max(0, maxWaitMsec - waitMsec);
|
|
74
49
|
return ShapeDiverUtilsApi.waitForCustomizationResult(sdk, sessionId, dto, maxWaitMsec);
|
|
75
50
|
});
|
|
76
51
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Submit an export request and wait for the result to be finished.
|
|
79
|
-
*
|
|
80
|
-
* @param sdk
|
|
81
|
-
* @param sessionId
|
|
82
|
-
* @param body
|
|
83
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
84
|
-
* @throws {@link ShapeDiverError} in case a maximum duration has been specified and is exceeded.
|
|
85
|
-
* @returns
|
|
86
|
-
*/
|
|
87
52
|
submitAndWaitForExport(sdk, sessionId, body, maxWaitMsec = -1) {
|
|
88
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
54
|
const startMsec = Date.now();
|
|
90
55
|
const dto = yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return sdk.export.compute(sessionId, body); }));
|
|
91
56
|
const waitMsec = Date.now() - startMsec;
|
|
92
|
-
// Reduce the total max waiting time by the amount the compute-request took
|
|
93
57
|
maxWaitMsec = (maxWaitMsec < 0) ? maxWaitMsec : Math.max(0, maxWaitMsec - waitMsec);
|
|
94
58
|
return ShapeDiverUtilsApi.waitForExportResult(sdk, sessionId, body, dto, maxWaitMsec);
|
|
95
59
|
});
|
|
96
60
|
}
|
|
97
|
-
/**
|
|
98
|
-
* Given a DTO resulting from a customization request, wait for the results to be finished.
|
|
99
|
-
*
|
|
100
|
-
* @param sdk
|
|
101
|
-
* @param sessionId
|
|
102
|
-
* @param dto
|
|
103
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
104
|
-
* @returns
|
|
105
|
-
*/
|
|
106
61
|
static waitForCustomizationResult(sdk, sessionId, dto, maxWaitMsec = -1) {
|
|
107
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
63
|
if (!dto.outputs)
|
|
109
64
|
return dto;
|
|
110
|
-
// Build new cache request
|
|
111
65
|
const outputVersions = {};
|
|
112
66
|
Object
|
|
113
67
|
.keys(dto.outputs)
|
|
@@ -115,7 +69,6 @@ class ShapeDiverUtilsApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
115
69
|
let delay = ShapeDiverUtilsApi.getMaxOutputDelay(dto);
|
|
116
70
|
const startMsec = Date.now();
|
|
117
71
|
while (delay > 0) {
|
|
118
|
-
// Check whether maxWaitMsec has been reached
|
|
119
72
|
if (maxWaitMsec >= 0) {
|
|
120
73
|
const waitMsec = Date.now() - startMsec;
|
|
121
74
|
if (waitMsec >= maxWaitMsec) {
|
|
@@ -126,30 +79,17 @@ class ShapeDiverUtilsApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
126
79
|
}
|
|
127
80
|
}
|
|
128
81
|
yield (0, utils_1.sleep)(delay);
|
|
129
|
-
// Send cache request
|
|
130
82
|
dto = yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return sdk.output.getCache(sessionId, outputVersions); }));
|
|
131
83
|
delay = ShapeDiverUtilsApi.getMaxOutputDelay(dto);
|
|
132
84
|
}
|
|
133
85
|
return dto;
|
|
134
86
|
});
|
|
135
87
|
}
|
|
136
|
-
/**
|
|
137
|
-
* Given a DTO resulting from an export request, wait for the result to be finished.
|
|
138
|
-
*
|
|
139
|
-
* @param sdk
|
|
140
|
-
* @param sessionId
|
|
141
|
-
* @param dto
|
|
142
|
-
* @param exportIds
|
|
143
|
-
* @param outputIds
|
|
144
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
145
|
-
* @returns
|
|
146
|
-
*/
|
|
147
88
|
static waitForExportResult(sdk, sessionId, body, dto, maxWaitMsec = -1) {
|
|
148
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
90
|
let delay = ShapeDiverUtilsApi.getMaxExportDelay(dto, body);
|
|
150
91
|
const startMsec = Date.now();
|
|
151
92
|
while (delay > 0) {
|
|
152
|
-
// Check whether maxWaitMsec has been reached
|
|
153
93
|
if (maxWaitMsec >= 0) {
|
|
154
94
|
const waitMsec = Date.now() - startMsec;
|
|
155
95
|
if (waitMsec >= maxWaitMsec) {
|
|
@@ -160,29 +100,17 @@ class ShapeDiverUtilsApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
160
100
|
}
|
|
161
101
|
}
|
|
162
102
|
yield (0, utils_1.sleep)(delay);
|
|
163
|
-
// Send cache request
|
|
164
103
|
dto = yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return sdk.export.getCache(sessionId, body); }));
|
|
165
104
|
delay = ShapeDiverUtilsApi.getMaxExportDelay(dto, body);
|
|
166
105
|
}
|
|
167
106
|
return dto;
|
|
168
107
|
});
|
|
169
108
|
}
|
|
170
|
-
/**
|
|
171
|
-
* Get the maximum delay that was reported for output versions.
|
|
172
|
-
*
|
|
173
|
-
* @returns maximum delay, -1 in case no delay was reported
|
|
174
|
-
*/
|
|
175
109
|
static getMaxOutputDelay(dto) {
|
|
176
110
|
return Math.max(...Object.values(dto.outputs)
|
|
177
111
|
.map(output => output)
|
|
178
112
|
.map(output => { var _a; return (_a = output.delay) !== null && _a !== void 0 ? _a : -1; }));
|
|
179
113
|
}
|
|
180
|
-
/**
|
|
181
|
-
* Get the maximum delay that was reported for the exports. If outputs have been reported as
|
|
182
|
-
* well, their delay time is included too.
|
|
183
|
-
*
|
|
184
|
-
* @returns delay, -1 in case no delay was reported
|
|
185
|
-
*/
|
|
186
114
|
static getMaxExportDelay(dto, body) {
|
|
187
115
|
var _a, _b, _c;
|
|
188
116
|
const exports = (Array.isArray(body.exports)) ? body.exports : [body.exports.id];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverUtilsApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverUtilsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,qFAK8C;AAE9C,0CAAmD;AASnD,MAAa,kBAAmB,SAAQ,2CAAe;IAEnD,YAAY,GAAqB;QAC7B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;
|
|
1
|
+
{"version":3,"file":"Shape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AC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAChF,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,EAAE,CAAA;QAElC,OAAO,IAAI,CAAC,GAAG,CACX,GAAG,MAAM,CAAC,MAAM,CAAC,MAAA,GAAG,CAAC,OAAO,mCAAI,EAAE,CAAC;aAC9B,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;aACnC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAA6B,CAAC;aACvC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAC,OAAA,MAAA,CAAC,CAAC,KAAK,mCAAI,CAAC,CAAC,CAAA,EAAA,CAAC,EAC5B,GAAG,MAAM,CAAC,MAAM,CAAC,MAAA,GAAG,CAAC,OAAO,mCAAI,EAAE,CAAC;aAC9B,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;aACnC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAA6B,CAAC;aACvC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAC,OAAA,MAAA,CAAC,CAAC,KAAK,mCAAI,CAAC,CAAC,CAAA,EAAA,CAAC,CAC/B,CAAA;IACL,CAAC;CAEJ;AA9ND,gDA8NC"}
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { ShapeDiverError, ShapeDiverRequestError as ShapeDiverRequestErrorCore } from "@shapediver/sdk.geometry-api-sdk-core";
|
|
2
2
|
import { ShapeDiverResponseError } from "../ShapeDiverErrors";
|
|
3
|
-
/** Type guard for all error types of the Geometry Backend SDK package. */
|
|
4
3
|
export declare function isGBError(e: any): e is (ShapeDiverError & ShapeDiverRequestErrorCore & ShapeDiverResponseError);
|
|
5
|
-
/** Type guard for a Geometry Backend SDK generic error. */
|
|
6
4
|
export declare function isGBGenericError(e: any): e is ShapeDiverError;
|
|
7
|
-
/** Type guard for a Geometry Backend SDK request error. */
|
|
8
5
|
export declare function isGBRequestError(e: any): e is ShapeDiverRequestErrorCore;
|
|
9
|
-
/** Type guard for a Geometry Backend SDK response error. */
|
|
10
6
|
export declare function isGBResponseError(e: any): e is ShapeDiverResponseError;
|
|
11
|
-
/**
|
|
12
|
-
* Sends the given request, handles retries for the HTTP status 429, and maps
|
|
13
|
-
* the response error object to its typed representation.
|
|
14
|
-
*/
|
|
15
7
|
export declare function sendRequest<T>(call: () => Promise<T>): Promise<T>;
|
|
16
|
-
/** Delays the response for the given number of milliseconds */
|
|
17
8
|
export declare function sleep(ms: number): Promise<void>;
|
|
18
|
-
/** Encode the given string to base64 */
|
|
19
9
|
export declare function encodeBase64(str: string): string;
|
|
20
10
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,sBAAsB,IAAI,0BAA0B,EAEvD,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,sBAAsB,IAAI,0BAA0B,EAEvD,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAG7D,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAChC,CAAC,eAAe,GAAG,0BAA0B,GAAG,uBAAuB,CAAC,CAI3E;AAGD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,eAAe,CAI7D;AAGD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,0BAA0B,CAIxE;AAGD,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,uBAAuB,CAItE;AAMD,wBAAsB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAiCvE;AAGD,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAGD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMhD"}
|
package/dist/utils/utils.js
CHANGED
|
@@ -12,38 +12,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.encodeBase64 = exports.sleep = exports.sendRequest = exports.isGBResponseError = exports.isGBRequestError = exports.isGBGenericError = exports.isGBError = void 0;
|
|
13
13
|
const sdk_geometry_api_sdk_core_1 = require("@shapediver/sdk.geometry-api-sdk-core");
|
|
14
14
|
const ShapeDiverErrors_1 = require("../ShapeDiverErrors");
|
|
15
|
-
/** Type guard for all error types of the Geometry Backend SDK package. */
|
|
16
15
|
function isGBError(e) {
|
|
17
16
|
return e instanceof Error &&
|
|
18
17
|
"errorType" in e &&
|
|
19
18
|
Object.values(sdk_geometry_api_sdk_core_1.ShapeDiverErrorType).includes(e.errorType);
|
|
20
19
|
}
|
|
21
20
|
exports.isGBError = isGBError;
|
|
22
|
-
/** Type guard for a Geometry Backend SDK generic error. */
|
|
23
21
|
function isGBGenericError(e) {
|
|
24
22
|
return e instanceof Error &&
|
|
25
23
|
"errorType" in e &&
|
|
26
24
|
e.errorType === sdk_geometry_api_sdk_core_1.ShapeDiverErrorType.Generic;
|
|
27
25
|
}
|
|
28
26
|
exports.isGBGenericError = isGBGenericError;
|
|
29
|
-
/** Type guard for a Geometry Backend SDK request error. */
|
|
30
27
|
function isGBRequestError(e) {
|
|
31
28
|
return e instanceof Error &&
|
|
32
29
|
"errorType" in e &&
|
|
33
30
|
e.errorType === sdk_geometry_api_sdk_core_1.ShapeDiverErrorType.Request;
|
|
34
31
|
}
|
|
35
32
|
exports.isGBRequestError = isGBRequestError;
|
|
36
|
-
/** Type guard for a Geometry Backend SDK response error. */
|
|
37
33
|
function isGBResponseError(e) {
|
|
38
34
|
return e instanceof Error &&
|
|
39
35
|
"errorType" in e &&
|
|
40
36
|
e.errorType === sdk_geometry_api_sdk_core_1.ShapeDiverErrorType.Response;
|
|
41
37
|
}
|
|
42
38
|
exports.isGBResponseError = isGBResponseError;
|
|
43
|
-
/**
|
|
44
|
-
* Sends the given request, handles retries for the HTTP status 429, and maps
|
|
45
|
-
* the response error object to its typed representation.
|
|
46
|
-
*/
|
|
47
39
|
function sendRequest(call) {
|
|
48
40
|
var _a;
|
|
49
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -56,22 +48,18 @@ function sendRequest(call) {
|
|
|
56
48
|
catch (e) {
|
|
57
49
|
retryCounter++;
|
|
58
50
|
if (e instanceof sdk_geometry_api_sdk_core_1.ShapeDiverResponseError) {
|
|
59
|
-
/* Check for special response statuses */
|
|
60
51
|
if (e.status === 429) {
|
|
61
|
-
|
|
62
|
-
const seconds = (_a = e.headers["retry-after"]) !== null && _a !== void 0 ? _a : 60; // default is 1 minute
|
|
52
|
+
const seconds = (_a = e.headers["retry-after"]) !== null && _a !== void 0 ? _a : 60;
|
|
63
53
|
yield sleep(Number(seconds) * 1000);
|
|
64
54
|
continue;
|
|
65
55
|
}
|
|
66
56
|
else if (e.status === 502) {
|
|
67
|
-
yield sleep(1000);
|
|
57
|
+
yield sleep(1000);
|
|
68
58
|
continue;
|
|
69
59
|
}
|
|
70
|
-
// Error mapping
|
|
71
60
|
throw new ShapeDiverErrors_1.ShapeDiverResponseError(e);
|
|
72
61
|
}
|
|
73
62
|
else {
|
|
74
|
-
// Not a response error -> something went wrong
|
|
75
63
|
throw e;
|
|
76
64
|
}
|
|
77
65
|
}
|
|
@@ -80,12 +68,10 @@ function sendRequest(call) {
|
|
|
80
68
|
});
|
|
81
69
|
}
|
|
82
70
|
exports.sendRequest = sendRequest;
|
|
83
|
-
/** Delays the response for the given number of milliseconds */
|
|
84
71
|
function sleep(ms) {
|
|
85
72
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
86
73
|
}
|
|
87
74
|
exports.sleep = sleep;
|
|
88
|
-
/** Encode the given string to base64 */
|
|
89
75
|
function encodeBase64(str) {
|
|
90
76
|
try {
|
|
91
77
|
return btoa(str);
|
package/dist/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qFAK8C;AAC9C,0DAA6D;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qFAK8C;AAC9C,0DAA6D;AAG7D,SAAgB,SAAS,CAAC,CAAM;IAE5B,OAAO,CAAC,YAAY,KAAK;QACrB,WAAW,IAAI,CAAC;QAChB,MAAM,CAAC,MAAM,CAAC,+CAAmB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAgB,CAAC,CAAA;AACvE,CAAC;AALD,8BAKC;AAGD,SAAgB,gBAAgB,CAAC,CAAM;IACnC,OAAO,CAAC,YAAY,KAAK;QACrB,WAAW,IAAI,CAAC;QAChB,CAAC,CAAC,SAAS,KAAK,+CAAmB,CAAC,OAAO,CAAA;AACnD,CAAC;AAJD,4CAIC;AAGD,SAAgB,gBAAgB,CAAC,CAAM;IACnC,OAAO,CAAC,YAAY,KAAK;QACrB,WAAW,IAAI,CAAC;QAChB,CAAC,CAAC,SAAS,KAAK,+CAAmB,CAAC,OAAO,CAAA;AACnD,CAAC;AAJD,4CAIC;AAGD,SAAgB,iBAAiB,CAAC,CAAM;IACpC,OAAO,CA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