@shapediver/sdk.geometry-api-sdk-v2 1.5.1 → 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 +1 -25
- package/dist/resources/ShapeDiverExportApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverExportApi.js +12 -28
- 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 +1 -23
- package/dist/resources/ShapeDiverSessionApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverSessionApi.js +16 -26
- 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 +1 -67
- package/dist/resources/ShapeDiverUtilsApi.d.ts.map +1 -1
- package/dist/resources/ShapeDiverUtilsApi.js +16 -87
- 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 +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverSdtfApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverSdtfApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qFAAuH;AACvH,0CAA4C;AAE5C,MAAa,iBAAkB,SAAQ,2CAAe;IAElD,YAAa,GAAqB;QAC9B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;
|
|
1
|
+
{"version":3,"file":"ShapeDiverSdtfApi.js","sourceRoot":"","sources":["../../src/resources/ShapeDiverSdtfApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qFAAuH;AACvH,0CAA4C;AAE5C,MAAa,iBAAkB,SAAQ,2CAAe;IAElD,YAAa,GAAqB;QAC9B,KAAK,CAAC,GAAG,CAAC,CAAA;IACd,CAAC;IAQK,IAAI,CAAE,SAAiB,EAAE,SAAiB;;YAC5C,OAAO,MAAM,IAAA,mBAAW,EAAC,GAAS,EAAE,gDAChC,OAAA,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAwB,GAAI,IAAI,CAAC,eAAe,CAAC,SAAS,CAAE,SAAU,SAAU,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,GAAA,CAAC,CAAA;QACxH,CAAC;KAAA;IAQK,GAAG,CAAE,SAAiB,EAAE,MAAc;;YACxC,OAAO,MAAM,IAAA,mBAAW,EAAC,GAAS,EAAE;gBAChC,OAAA,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,GAAI,IAAI,CAAC,eAAe,CAAC,SAAS,CAAE,SAAU,MAAO,EAAE,EACvD,EAAE,YAAY,EAAE,wDAA4B,CAAC,IAAI,EAAE,CACtD,CAAC,CAAC,CAAC,CAAC,CAAA;cAAA,CACR,CAAA;QACL,CAAC;KAAA;IAQK,MAAM,CAAE,SAAiB,EAAE,MAAc;;YAC3C,OAAO,MAAM,IAAA,mBAAW,EAAC,GAAS,EAAE,gDAChC,OAAA,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAwB,GAAI,IAAI,CAAC,eAAe,CAAC,SAAS,CAAE,SAAU,MAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,GAAA,CAC7G,CAAA;QACL,CAAC;KAAA;IAQK,aAAa,CAAE,SAAiB,EAAE,IAAiC;;YACrE,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;CAEJ;AAxDD,8CAwDC"}
|
|
@@ -2,32 +2,10 @@ import { ShapeDiverRequestCustomization, ShapeDiverRequestExport, ShapeDiverRequ
|
|
|
2
2
|
import { BaseResourceApi, ShapeDiverSdkApi } from "@shapediver/sdk.geometry-api-sdk-core";
|
|
3
3
|
export declare class ShapeDiverSessionApi extends BaseResourceApi {
|
|
4
4
|
constructor(api: ShapeDiverSdkApi);
|
|
5
|
-
/**
|
|
6
|
-
* Create a new ticket that allows to initialize new sessions for the
|
|
7
|
-
* specified model.
|
|
8
|
-
*
|
|
9
|
-
* @param modelId
|
|
10
|
-
* @param body
|
|
11
|
-
*/
|
|
12
5
|
ticket(modelId: string, body: ShapeDiverRequestTicket): Promise<ShapeDiverResponseDto>;
|
|
13
|
-
/**
|
|
14
|
-
* Create a new session for a ShapeDiver Model.
|
|
15
|
-
*
|
|
16
|
-
* @param ticket
|
|
17
|
-
* @param request - Optional customization or export request.
|
|
18
|
-
*/
|
|
19
6
|
init(ticket: string, request?: ShapeDiverRequestCustomization | ShapeDiverRequestExport): Promise<ShapeDiverResponseDto>;
|
|
20
|
-
|
|
21
|
-
* Get the full description of a ShapeDiver Model.
|
|
22
|
-
*
|
|
23
|
-
* @param sessionId
|
|
24
|
-
*/
|
|
7
|
+
initForModel(modelId: string, request?: ShapeDiverRequestCustomization | ShapeDiverRequestExport): Promise<ShapeDiverResponseDto>;
|
|
25
8
|
default(sessionId: string): Promise<ShapeDiverResponseDto>;
|
|
26
|
-
/**
|
|
27
|
-
* Close the specified session.
|
|
28
|
-
*
|
|
29
|
-
* @param sessionId
|
|
30
|
-
*/
|
|
31
9
|
close(sessionId: string): Promise<ShapeDiverResponseDto>;
|
|
32
10
|
}
|
|
33
11
|
//# sourceMappingURL=ShapeDiverSessionApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverSessionApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverSessionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,8BAA8B,EAC9B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAGzF,qBAAa,oBAAqB,SAAQ,eAAe;
|
|
1
|
+
{"version":3,"file":"ShapeDiverSessionApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverSessionApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,8BAA8B,EAC9B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAGzF,qBAAa,oBAAqB,SAAQ,eAAe;gBAEzC,GAAG,EAAE,gBAAgB;IAW3B,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAetF,IAAI,CACN,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,8BAA8B,GAAG,uBAAuB,GACnE,OAAO,CAAC,qBAAqB,CAAC;IAY3B,YAAY,CACd,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,8BAA8B,GAAG,uBAAuB,GACnE,OAAO,CAAC,qBAAqB,CAAC;IAc3B,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAa1D,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAQjE"}
|
|
@@ -16,47 +16,37 @@ 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
|
-
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return (yield this.api.post(this.buildModelUri(modelId) + "/ticket", body))[1];
|
|
23
|
+
}));
|
|
29
24
|
});
|
|
30
25
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Create a new session for a ShapeDiver Model.
|
|
33
|
-
*
|
|
34
|
-
* @param ticket
|
|
35
|
-
* @param request - Optional customization or export request.
|
|
36
|
-
*/
|
|
37
26
|
init(ticket, request) {
|
|
38
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
28
|
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return (yield this.api.post(this.buildTicketUri(ticket), request))[1]; }));
|
|
40
29
|
});
|
|
41
30
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
initForModel(modelId, request) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
return (yield this.api.post(this.buildModelUri(modelId) + "/session", request))[1];
|
|
35
|
+
}));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
47
38
|
default(sessionId) {
|
|
48
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return (yield this.api.get(this.buildSessionUri(sessionId) + "/default"))[1];
|
|
42
|
+
}));
|
|
50
43
|
});
|
|
51
44
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Close the specified session.
|
|
54
|
-
*
|
|
55
|
-
* @param sessionId
|
|
56
|
-
*/
|
|
57
45
|
close(sessionId) {
|
|
58
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
return yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return (yield this.api.post(this.buildSessionUri(sessionId) + "/close"))[1];
|
|
49
|
+
}));
|
|
60
50
|
});
|
|
61
51
|
}
|
|
62
52
|
}
|
|
@@ -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,
|
|
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,CA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,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,QAAQ,CAC7C,CAAC,CAAC,CAAC,CAAC,CAAA;cAAA,CACR,CAAA;QACL,CAAC;KAAA;CAEJ;AAjFD,oDAiFC"}
|
|
@@ -2,40 +2,11 @@ import { ShapeDiverRequestAuthorizationGroup, ShapeDiverRequestLogMessage, Shape
|
|
|
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,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AAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,GAAA,CAC5F,CAAA;QACL,CAAC;KAAA;CAEJ;AAvED,kDAuEC"}
|
|
@@ -2,11 +2,6 @@ import { ShapeDiverResponseDto } from "@shapediver/api.geometry-api-dto-v2";
|
|
|
2
2
|
import { BaseResourceApi, ShapeDiverSdkApi } from "@shapediver/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,83 +4,17 @@ 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 exportId
|
|
65
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
15
|
private static waitForExportResult;
|
|
69
|
-
/**
|
|
70
|
-
* Get the maximum delay which was reported for output versions.
|
|
71
|
-
*
|
|
72
|
-
* @param dto
|
|
73
|
-
* @returns maximum delay, -1 in case no delay was reported
|
|
74
|
-
*/
|
|
75
16
|
private static getMaxOutputDelay;
|
|
76
|
-
|
|
77
|
-
* Get the delay which was reported for the export.
|
|
78
|
-
*
|
|
79
|
-
* @param dto
|
|
80
|
-
* @param exportId
|
|
81
|
-
* @returns delay, -1 in case no delay was reported
|
|
82
|
-
*/
|
|
83
|
-
private static getExportDelay;
|
|
17
|
+
private static getMaxExportDelay;
|
|
84
18
|
}
|
|
85
19
|
export {};
|
|
86
20
|
//# sourceMappingURL=ShapeDiverUtilsApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeDiverUtilsApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverUtilsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,8BAA8B,EAC9B,uBAAuB,EACvB,qBAAqB,EAGxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACH,eAAe,EAEf,gBAAgB,EAChB,4BAA4B,EAC/B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIhD,KAAK,8BAA8B,CAAC,CAAC,SAAS,4BAA4B,IACtE,CAAC,SAAS,4BAA4B,CAAC,IAAI,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"ShapeDiverUtilsApi.d.ts","sourceRoot":"","sources":["../../src/resources/ShapeDiverUtilsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,8BAA8B,EAC9B,uBAAuB,EACvB,qBAAqB,EAGxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACH,eAAe,EAEf,gBAAgB,EAChB,4BAA4B,EAC/B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIhD,KAAK,8BAA8B,CAAC,CAAC,SAAS,4BAA4B,IACtE,CAAC,SAAS,4BAA4B,CAAC,IAAI,GAAG,MAAM,GACpD,CAAC,SAAS,4BAA4B,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACjE,CAAC,SAAS,4BAA4B,CAAC,IAAI,GAAG,WAAW,GACzD,KAAK,CAAC;AAEV,qBAAa,kBAAmB,SAAQ,eAAe;gBAEvC,GAAG,EAAE,gBAAgB;IAW3B,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,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
|
-
return ShapeDiverUtilsApi.waitForExportResult(sdk, sessionId,
|
|
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,35 +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 exportId
|
|
143
|
-
* @param maxWaitMsec - Maximum duration to wait for result (in milliseconds), pass value < 0 to disable limit.
|
|
144
|
-
* @returns
|
|
145
|
-
*/
|
|
146
|
-
static waitForExportResult(sdk, sessionId, dto, exportId, maxWaitMsec = -1) {
|
|
88
|
+
static waitForExportResult(sdk, sessionId, body, dto, maxWaitMsec = -1) {
|
|
147
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
-
|
|
149
|
-
throw new sdk_geometry_api_sdk_core_1.ShapeDiverError("The given DTO does not contain any exports");
|
|
150
|
-
// Build new cache request
|
|
151
|
-
const exportVersion = { [exportId]: dto.exports[exportId].version };
|
|
152
|
-
if (!dto.exports)
|
|
153
|
-
throw new sdk_geometry_api_sdk_core_1.ShapeDiverError(`Could not find any export with the id '${exportId}'`);
|
|
154
|
-
let delay = ShapeDiverUtilsApi.getExportDelay(dto, exportId);
|
|
90
|
+
let delay = ShapeDiverUtilsApi.getMaxExportDelay(dto, body);
|
|
155
91
|
const startMsec = Date.now();
|
|
156
92
|
while (delay > 0) {
|
|
157
|
-
// Check whether maxWaitMsec has been reached
|
|
158
93
|
if (maxWaitMsec >= 0) {
|
|
159
94
|
const waitMsec = Date.now() - startMsec;
|
|
160
95
|
if (waitMsec >= maxWaitMsec) {
|
|
@@ -165,34 +100,28 @@ class ShapeDiverUtilsApi extends sdk_geometry_api_sdk_core_1.BaseResourceApi {
|
|
|
165
100
|
}
|
|
166
101
|
}
|
|
167
102
|
yield (0, utils_1.sleep)(delay);
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
delay = ShapeDiverUtilsApi.getExportDelay(dto, exportId);
|
|
103
|
+
dto = yield (0, utils_1.sendRequest)(() => __awaiter(this, void 0, void 0, function* () { return sdk.export.getCache(sessionId, body); }));
|
|
104
|
+
delay = ShapeDiverUtilsApi.getMaxExportDelay(dto, body);
|
|
171
105
|
}
|
|
172
106
|
return dto;
|
|
173
107
|
});
|
|
174
108
|
}
|
|
175
|
-
/**
|
|
176
|
-
* Get the maximum delay which was reported for output versions.
|
|
177
|
-
*
|
|
178
|
-
* @param dto
|
|
179
|
-
* @returns maximum delay, -1 in case no delay was reported
|
|
180
|
-
*/
|
|
181
109
|
static getMaxOutputDelay(dto) {
|
|
182
110
|
return Math.max(...Object.values(dto.outputs)
|
|
183
111
|
.map(output => output)
|
|
184
112
|
.map(output => { var _a; return (_a = output.delay) !== null && _a !== void 0 ? _a : -1; }));
|
|
185
113
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
114
|
+
static getMaxExportDelay(dto, body) {
|
|
115
|
+
var _a, _b, _c;
|
|
116
|
+
const exports = (Array.isArray(body.exports)) ? body.exports : [body.exports.id];
|
|
117
|
+
const outputs = (_a = body.outputs) !== null && _a !== void 0 ? _a : [];
|
|
118
|
+
return Math.max(...Object.values((_b = dto.exports) !== null && _b !== void 0 ? _b : {})
|
|
119
|
+
.filter(e => exports.includes(e.id))
|
|
120
|
+
.map(e => e)
|
|
121
|
+
.map(e => { var _a; return (_a = e.delay) !== null && _a !== void 0 ? _a : -1; }), ...Object.values((_c = dto.outputs) !== null && _c !== void 0 ? _c : {})
|
|
122
|
+
.filter(o => outputs.includes(o.id))
|
|
123
|
+
.map(o => o)
|
|
124
|
+
.map(o => { var _a; return (_a = o.delay) !== null && _a !== void 0 ? _a : -1; }));
|
|
196
125
|
}
|
|
197
126
|
}
|
|
198
127
|
exports.ShapeDiverUtilsApi = ShapeDiverUtilsApi;
|
|
@@ -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,
|
|
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;IASK,MAAM,CAAC,GAAW,EAAE,IAAgD,EAAE,WAAmB;;YAC3F,OAAO,MAAM,IAAA,mBAAW,EAAC,GAAS,EAAE;gBAAC,OA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,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"}
|