@shapediver/sdk.geometry-api-sdk-v2 1.12.2 → 2.0.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/README.md +133 -58
- package/dist/UtilsApi.d.ts +20 -0
- package/dist/UtilsApi.d.ts.map +1 -0
- package/dist/UtilsApi.js +185 -0
- package/dist/UtilsApi.js.map +1 -0
- package/dist/client/api.d.ts +2117 -0
- package/dist/client/api.d.ts.map +1 -0
- package/dist/client/api.js +3473 -0
- package/dist/client/api.js.map +1 -0
- package/dist/client/base.d.ts +32 -0
- package/dist/client/base.d.ts.map +1 -0
- package/dist/client/base.js +37 -0
- package/dist/client/base.js.map +1 -0
- package/dist/client/common.d.ts +14 -0
- package/dist/client/common.d.ts.map +1 -0
- package/dist/client/common.js +108 -0
- package/dist/client/common.js.map +1 -0
- package/dist/client/configuration.d.ts +23 -0
- package/dist/client/configuration.d.ts.map +1 -0
- package/dist/client/configuration.js +21 -0
- package/dist/client/configuration.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +19 -0
- package/dist/client/index.js.map +1 -0
- package/dist/configuration.d.ts +8 -0
- package/dist/configuration.d.ts.map +1 -0
- package/dist/configuration.js +22 -0
- package/dist/configuration.js.map +1 -0
- package/dist/error.d.ts +22 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +48 -0
- package/dist/error.js.map +1 -0
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -17
- package/dist/index.js.map +1 -1
- package/dist/utils.d.ts +12 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +93 -0
- package/dist/utils.js.map +1 -0
- package/package.json +55 -57
- package/src/UtilsApi.ts +393 -0
- package/src/client/api.ts +14084 -0
- package/src/client/base.ts +86 -0
- package/src/client/common.ts +150 -0
- package/src/client/configuration.ts +110 -0
- package/src/client/index.ts +18 -0
- package/src/configuration.ts +27 -0
- package/src/error.ts +92 -0
- package/src/index.ts +5 -17
- package/src/utils.ts +126 -0
- package/dist/ShapeDiverErrors.d.ts +0 -10
- package/dist/ShapeDiverErrors.d.ts.map +0 -1
- package/dist/ShapeDiverErrors.js +0 -18
- package/dist/ShapeDiverErrors.js.map +0 -1
- package/dist/ShapeDiverSdk.d.ts +0 -48
- package/dist/ShapeDiverSdk.d.ts.map +0 -1
- package/dist/ShapeDiverSdk.js +0 -87
- package/dist/ShapeDiverSdk.js.map +0 -1
- package/dist/resources/ShapeDiverAnalyticsApi.d.ts +0 -12
- package/dist/resources/ShapeDiverAnalyticsApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverAnalyticsApi.js +0 -63
- package/dist/resources/ShapeDiverAnalyticsApi.js.map +0 -1
- package/dist/resources/ShapeDiverArSceneApi.d.ts +0 -8
- package/dist/resources/ShapeDiverArSceneApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverArSceneApi.js +0 -63
- package/dist/resources/ShapeDiverArSceneApi.js.map +0 -1
- package/dist/resources/ShapeDiverAssetApi.d.ts +0 -13
- package/dist/resources/ShapeDiverAssetApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverAssetApi.js +0 -131
- package/dist/resources/ShapeDiverAssetApi.js.map +0 -1
- package/dist/resources/ShapeDiverExportApi.d.ts +0 -10
- package/dist/resources/ShapeDiverExportApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverExportApi.js +0 -49
- package/dist/resources/ShapeDiverExportApi.js.map +0 -1
- package/dist/resources/ShapeDiverFileApi.d.ts +0 -15
- package/dist/resources/ShapeDiverFileApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverFileApi.js +0 -67
- package/dist/resources/ShapeDiverFileApi.js.map +0 -1
- package/dist/resources/ShapeDiverGltfApi.d.ts +0 -7
- package/dist/resources/ShapeDiverGltfApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverGltfApi.js +0 -32
- package/dist/resources/ShapeDiverGltfApi.js.map +0 -1
- package/dist/resources/ShapeDiverModelApi.d.ts +0 -22
- package/dist/resources/ShapeDiverModelApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverModelApi.js +0 -156
- package/dist/resources/ShapeDiverModelApi.js.map +0 -1
- package/dist/resources/ShapeDiverModelStateApi.d.ts +0 -14
- package/dist/resources/ShapeDiverModelStateApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverModelStateApi.js +0 -104
- package/dist/resources/ShapeDiverModelStateApi.js.map +0 -1
- package/dist/resources/ShapeDiverOutputApi.d.ts +0 -10
- package/dist/resources/ShapeDiverOutputApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverOutputApi.js +0 -52
- package/dist/resources/ShapeDiverOutputApi.js.map +0 -1
- package/dist/resources/ShapeDiverSdtfApi.d.ts +0 -10
- package/dist/resources/ShapeDiverSdtfApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverSdtfApi.js +0 -52
- package/dist/resources/ShapeDiverSdtfApi.js.map +0 -1
- package/dist/resources/ShapeDiverSessionApi.d.ts +0 -11
- package/dist/resources/ShapeDiverSessionApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverSessionApi.js +0 -66
- package/dist/resources/ShapeDiverSessionApi.js.map +0 -1
- package/dist/resources/ShapeDiverSystemApi.d.ts +0 -12
- package/dist/resources/ShapeDiverSystemApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverSystemApi.js +0 -63
- package/dist/resources/ShapeDiverSystemApi.js.map +0 -1
- package/dist/resources/ShapeDiverTextureApi.d.ts +0 -7
- package/dist/resources/ShapeDiverTextureApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverTextureApi.js +0 -31
- package/dist/resources/ShapeDiverTextureApi.js.map +0 -1
- package/dist/resources/ShapeDiverUtilsApi.d.ts +0 -18
- package/dist/resources/ShapeDiverUtilsApi.d.ts.map +0 -1
- package/dist/resources/ShapeDiverUtilsApi.js +0 -146
- package/dist/resources/ShapeDiverUtilsApi.js.map +0 -1
- package/dist/utils/utils.d.ts +0 -12
- package/dist/utils/utils.d.ts.map +0 -1
- package/dist/utils/utils.js +0 -109
- package/dist/utils/utils.js.map +0 -1
- package/src/ShapeDiverErrors.ts +0 -34
- package/src/ShapeDiverSdk.ts +0 -121
- package/src/resources/ShapeDiverAnalyticsApi.ts +0 -108
- package/src/resources/ShapeDiverArSceneApi.ts +0 -77
- package/src/resources/ShapeDiverAssetApi.ts +0 -241
- package/src/resources/ShapeDiverExportApi.ts +0 -103
- package/src/resources/ShapeDiverFileApi.ts +0 -150
- package/src/resources/ShapeDiverGltfApi.ts +0 -46
- package/src/resources/ShapeDiverModelApi.ts +0 -374
- package/src/resources/ShapeDiverModelStateApi.ts +0 -163
- package/src/resources/ShapeDiverOutputApi.ts +0 -109
- package/src/resources/ShapeDiverSdtfApi.ts +0 -103
- package/src/resources/ShapeDiverSessionApi.ts +0 -142
- package/src/resources/ShapeDiverSystemApi.ts +0 -118
- package/src/resources/ShapeDiverTextureApi.ts +0 -36
- package/src/resources/ShapeDiverUtilsApi.ts +0 -318
- package/src/utils/utils.ts +0 -135
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Configuration = void 0;
|
|
4
|
+
class Configuration {
|
|
5
|
+
constructor(param = {}) {
|
|
6
|
+
this.apiKey = param.apiKey;
|
|
7
|
+
this.username = param.username;
|
|
8
|
+
this.password = param.password;
|
|
9
|
+
this.accessToken = param.accessToken;
|
|
10
|
+
this.basePath = param.basePath;
|
|
11
|
+
this.serverIndex = param.serverIndex;
|
|
12
|
+
this.baseOptions = param.baseOptions;
|
|
13
|
+
this.formDataCtor = param.formDataCtor;
|
|
14
|
+
}
|
|
15
|
+
isJsonMime(mime) {
|
|
16
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
17
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Configuration = Configuration;
|
|
21
|
+
//# sourceMappingURL=configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/client/configuration.ts"],"names":[],"mappings":";;;AA0BA,MAAa,aAAa;IA0DtB,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAYM,UAAU,CAAC,IAAY;QAC1B,MAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;CACJ;AAnFD,sCAmFC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAeA,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
18
|
+
__exportStar(require("./configuration"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,wCAAsB;AACtB,kDAAgC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Configuration as ClientConfig, ConfigurationParameters as ClientConfigParams } from './client/configuration';
|
|
2
|
+
export interface ConfigurationParameters extends ClientConfigParams {
|
|
3
|
+
}
|
|
4
|
+
export declare class Configuration extends ClientConfig {
|
|
5
|
+
protected readonly sdkVersion = "2.0.0";
|
|
6
|
+
constructor(param?: ConfigurationParameters);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,IAAI,YAAY,EAC7B,uBAAuB,IAAI,kBAAkB,EAChD,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;CAAG;AAEtE,qBAAa,aAAc,SAAQ,YAAY;IAC3C,SAAS,CAAC,QAAQ,CAAC,UAAU,WAAW;gBAE5B,KAAK,GAAE,uBAA4B;CAgBlD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Configuration = void 0;
|
|
4
|
+
const configuration_1 = require("./client/configuration");
|
|
5
|
+
class Configuration extends configuration_1.Configuration {
|
|
6
|
+
constructor(param = {}) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
super(param);
|
|
9
|
+
this.sdkVersion = '2.0.0';
|
|
10
|
+
this.baseOptions = (_a = this.baseOptions) !== null && _a !== void 0 ? _a : {};
|
|
11
|
+
this.baseOptions.headers = (_b = this.baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
12
|
+
const userAgent = `sd-sdk/typescript/${this.sdkVersion}`;
|
|
13
|
+
if (typeof process === 'object' && !this.baseOptions.headers['User-Agent']) {
|
|
14
|
+
this.baseOptions.headers['User-Agent'] = userAgent;
|
|
15
|
+
}
|
|
16
|
+
else if (!this.baseOptions.headers['x-shapediver-useragent']) {
|
|
17
|
+
this.baseOptions.headers['x-shapediver-useragent'] = userAgent;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Configuration = Configuration;
|
|
22
|
+
//# sourceMappingURL=configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":";;;AAAA,0DAGgC;AAIhC,MAAa,aAAc,SAAQ,6BAAY;IAG3C,YAAY,QAAiC,EAAE;;QAC3C,KAAK,CAAC,KAAK,CAAC,CAAC;QAHE,eAAU,GAAG,OAAO,CAAC;QAKpC,IAAI,CAAC,WAAW,GAAG,MAAA,IAAI,CAAC,WAAW,mCAAI,EAAE,CAAC;QAC1C,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,WAAW,CAAC,OAAO,mCAAI,EAAE,CAAC;QAE1D,MAAM,SAAS,GAAG,qBAAqB,IAAI,CAAC,UAAU,EAAE,CAAC;QAEzD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;YAEzE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;QACvD,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAAE,CAAC;YAE7D,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,wBAAwB,CAAC,GAAG,SAAS,CAAC;QACnE,CAAC;IACL,CAAC;CACJ;AAnBD,sCAmBC"}
|
package/dist/error.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ResErrorType } from './client';
|
|
2
|
+
export declare class SdError extends Error {
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
export declare class SdRequestError extends Error {
|
|
6
|
+
constructor(message: string);
|
|
7
|
+
}
|
|
8
|
+
export declare class SdResponseError extends Error {
|
|
9
|
+
readonly status: number;
|
|
10
|
+
readonly type: ResErrorType;
|
|
11
|
+
readonly description: string;
|
|
12
|
+
constructor(status: number, message: string, desc: string, type?: string);
|
|
13
|
+
}
|
|
14
|
+
export declare class IllegalArgumentError extends Error {
|
|
15
|
+
field: string;
|
|
16
|
+
constructor(field: string, msg?: string);
|
|
17
|
+
}
|
|
18
|
+
export declare class TimeoutError extends Error {
|
|
19
|
+
field: string;
|
|
20
|
+
constructor(field: string, msg?: string);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAUxC,qBAAa,OAAQ,SAAQ,KAAK;gBAClB,OAAO,EAAE,MAAM;CAI9B;AAUD,qBAAa,cAAe,SAAQ,KAAK;gBACzB,OAAO,EAAE,MAAM;CAI9B;AAWD,qBAAa,eAAgB,SAAQ,KAAK;IAEtC,SAAgB,MAAM,EAAE,MAAM,CAAC;IAG/B,SAAgB,IAAI,EAAE,YAAY,CAAC;IAGnC,SAAgB,WAAW,EAAE,MAAM,CAAC;gBAExB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;CAU3E;AAOD,qBAAa,oBAAqB,SAAQ,KAAK;IAEhC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM;CAKnB;AAOD,qBAAa,YAAa,SAAQ,KAAK;IAExB,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM;CAKnB"}
|
package/dist/error.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimeoutError = exports.IllegalArgumentError = exports.SdResponseError = exports.SdRequestError = exports.SdError = void 0;
|
|
4
|
+
const client_1 = require("./client");
|
|
5
|
+
class SdError extends Error {
|
|
6
|
+
constructor(message) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.name = 'SdError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SdError = SdError;
|
|
12
|
+
class SdRequestError extends Error {
|
|
13
|
+
constructor(message) {
|
|
14
|
+
super(message);
|
|
15
|
+
this.name = 'SdRequestError';
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.SdRequestError = SdRequestError;
|
|
19
|
+
class SdResponseError extends Error {
|
|
20
|
+
constructor(status, message, desc, type) {
|
|
21
|
+
super(message);
|
|
22
|
+
this.name = 'SdResponseError';
|
|
23
|
+
this.status = status;
|
|
24
|
+
this.description = desc;
|
|
25
|
+
this.type =
|
|
26
|
+
type && Object.values(client_1.ResErrorType).includes(type)
|
|
27
|
+
? type
|
|
28
|
+
: client_1.ResErrorType.UNKNOWN;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.SdResponseError = SdResponseError;
|
|
32
|
+
class IllegalArgumentError extends Error {
|
|
33
|
+
constructor(field, msg) {
|
|
34
|
+
super(msg);
|
|
35
|
+
this.field = field;
|
|
36
|
+
this.name = 'IllegalArgumentError';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.IllegalArgumentError = IllegalArgumentError;
|
|
40
|
+
class TimeoutError extends Error {
|
|
41
|
+
constructor(field, msg) {
|
|
42
|
+
super(msg);
|
|
43
|
+
this.field = field;
|
|
44
|
+
this.name = 'TimeoutError';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.TimeoutError = TimeoutError;
|
|
48
|
+
//# sourceMappingURL=error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;AAAA,qCAAwC;AAUxC,MAAa,OAAQ,SAAQ,KAAK;IAC9B,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;IAC1B,CAAC;CACJ;AALD,0BAKC;AAUD,MAAa,cAAe,SAAQ,KAAK;IACrC,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IACjC,CAAC;CACJ;AALD,wCAKC;AAWD,MAAa,eAAgB,SAAQ,KAAK;IAUtC,YAAY,MAAc,EAAE,OAAe,EAAE,IAAY,EAAE,IAAa;QACpE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI;YACL,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,qBAAY,CAAC,CAAC,QAAQ,CAAC,IAAoB,CAAC;gBAC9D,CAAC,CAAE,IAAqB;gBACxB,CAAC,CAAC,qBAAY,CAAC,OAAO,CAAC;IACnC,CAAC;CACJ;AApBD,0CAoBC;AAOD,MAAa,oBAAqB,SAAQ,KAAK;IAC3C,YACW,KAAa,EACpB,GAAY;QAEZ,KAAK,CAAC,GAAG,CAAC,CAAC;QAHJ,UAAK,GAAL,KAAK,CAAQ;QAIpB,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACvC,CAAC;CACJ;AARD,oDAQC;AAOD,MAAa,YAAa,SAAQ,KAAK;IACnC,YACW,KAAa,EACpB,GAAY;QAEZ,KAAK,CAAC,GAAG,CAAC,CAAC;QAHJ,UAAK,GAAL,KAAK,CAAQ;QAIpB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC/B,CAAC;CACJ;AARD,oCAQC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export { isGBError, isGBGenericError, isGBRequestError, isGBResponseError, } from "./utils/utils";
|
|
1
|
+
export * from './client/api';
|
|
2
|
+
export * from './UtilsApi';
|
|
3
|
+
export * from './configuration';
|
|
4
|
+
export * from './error';
|
|
5
|
+
export * from './utils';
|
|
7
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,21 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
Object.defineProperty(exports, "ShapeDiverSdkApiResponseType", { enumerable: true, get: function () { return sdk_geometry_api_sdk_core_1.ShapeDiverSdkApiResponseType; } });
|
|
23
|
-
Object.defineProperty(exports, "ShapeDiverSdkConfigType", { enumerable: true, get: function () { return sdk_geometry_api_sdk_core_1.ShapeDiverSdkConfigType; } });
|
|
24
|
-
var ShapeDiverErrors_1 = require("./ShapeDiverErrors");
|
|
25
|
-
Object.defineProperty(exports, "ShapeDiverResponseError", { enumerable: true, get: function () { return ShapeDiverErrors_1.ShapeDiverResponseError; } });
|
|
26
|
-
var ShapeDiverSdk_1 = require("./ShapeDiverSdk");
|
|
27
|
-
Object.defineProperty(exports, "ShapeDiverSdk", { enumerable: true, get: function () { return ShapeDiverSdk_1.ShapeDiverSdk; } });
|
|
28
|
-
Object.defineProperty(exports, "create", { enumerable: true, get: function () { return ShapeDiverSdk_1.create; } });
|
|
29
|
-
var utils_1 = require("./utils/utils");
|
|
30
|
-
Object.defineProperty(exports, "isGBError", { enumerable: true, get: function () { return utils_1.isGBError; } });
|
|
31
|
-
Object.defineProperty(exports, "isGBGenericError", { enumerable: true, get: function () { return utils_1.isGBGenericError; } });
|
|
32
|
-
Object.defineProperty(exports, "isGBRequestError", { enumerable: true, get: function () { return utils_1.isGBRequestError; } });
|
|
33
|
-
Object.defineProperty(exports, "isGBResponseError", { enumerable: true, get: function () { return utils_1.isGBResponseError; } });
|
|
17
|
+
__exportStar(require("./client/api"), exports);
|
|
18
|
+
__exportStar(require("./UtilsApi"), exports);
|
|
19
|
+
__exportStar(require("./configuration"), exports);
|
|
20
|
+
__exportStar(require("./error"), exports);
|
|
21
|
+
__exportStar(require("./utils"), exports);
|
|
34
22
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,6CAA2B;AAC3B,kDAAgC;AAChC,0CAAwB;AACxB,0CAAwB"}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AxiosError, AxiosPromise } from 'axios';
|
|
2
|
+
import { SdError, SdRequestError, SdResponseError } from './error';
|
|
3
|
+
export declare function sleep(ms: number): Promise<void>;
|
|
4
|
+
export declare function extractFileInfo(headers: Record<string, any> | undefined): {
|
|
5
|
+
size: number | undefined;
|
|
6
|
+
filename: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
export declare function contentDispositionFromFilename(filename: string): string;
|
|
9
|
+
export declare function filenameFromContentDisposition(contentDisposition: string): string | undefined;
|
|
10
|
+
export declare function exists(apiCall: () => AxiosPromise<unknown>): Promise<boolean>;
|
|
11
|
+
export declare function processError(error: AxiosError | Error): SdError | SdRequestError | SdResponseError;
|
|
12
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAGnE,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAOD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG;IACvE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAcA;AAOD,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAWvE;AAQD,wBAAgB,8BAA8B,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAmB7F;AAUD,wBAAsB,MAAM,CAAC,OAAO,EAAE,MAAM,YAAY,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAOnF;AAMD,wBAAgB,YAAY,CACxB,KAAK,EAAE,UAAU,GAAG,KAAK,GAC1B,OAAO,GAAG,cAAc,GAAG,eAAe,CAyB5C"}
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.sleep = sleep;
|
|
13
|
+
exports.extractFileInfo = extractFileInfo;
|
|
14
|
+
exports.contentDispositionFromFilename = contentDispositionFromFilename;
|
|
15
|
+
exports.filenameFromContentDisposition = filenameFromContentDisposition;
|
|
16
|
+
exports.exists = exists;
|
|
17
|
+
exports.processError = processError;
|
|
18
|
+
const error_1 = require("./error");
|
|
19
|
+
function sleep(ms) {
|
|
20
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
21
|
+
}
|
|
22
|
+
function extractFileInfo(headers) {
|
|
23
|
+
if (!headers)
|
|
24
|
+
return { size: undefined, filename: undefined };
|
|
25
|
+
const contentLength = headers['Content-Length'] || headers['content-length'];
|
|
26
|
+
const size = contentLength ? parseInt(contentLength) : undefined;
|
|
27
|
+
const contentDisposition = headers['Content-Disposition'] || headers['content-disposition'];
|
|
28
|
+
const filename = contentDisposition
|
|
29
|
+
? filenameFromContentDisposition(contentDisposition)
|
|
30
|
+
: undefined;
|
|
31
|
+
return { size, filename };
|
|
32
|
+
}
|
|
33
|
+
function contentDispositionFromFilename(filename) {
|
|
34
|
+
const asciiName = filename.normalize('NFKD').replace(/[^\x00-\x7F]/g, '');
|
|
35
|
+
let header = `attachment; filename="${asciiName}"`;
|
|
36
|
+
if (asciiName !== filename) {
|
|
37
|
+
const quotedName = encodeURIComponent(filename);
|
|
38
|
+
header += `; filename*=UTF-8''${quotedName}`;
|
|
39
|
+
}
|
|
40
|
+
return header;
|
|
41
|
+
}
|
|
42
|
+
function filenameFromContentDisposition(contentDisposition) {
|
|
43
|
+
let filename;
|
|
44
|
+
let filenameStar;
|
|
45
|
+
const filenameMatch = contentDisposition.match(/filename="([^"]+)"/);
|
|
46
|
+
if (filenameMatch)
|
|
47
|
+
filename = filenameMatch[1];
|
|
48
|
+
const filenameStarMatch = contentDisposition.match(/filename\*=([^'']+''|)?(.+)/);
|
|
49
|
+
if (filenameStarMatch) {
|
|
50
|
+
const encoding = filenameStarMatch[1] ? filenameStarMatch[1] : 'utf-8';
|
|
51
|
+
const encodedFilename = filenameStarMatch[2];
|
|
52
|
+
if (encoding.toLowerCase().startsWith('utf-8'))
|
|
53
|
+
filenameStar = decodeURIComponent(encodedFilename);
|
|
54
|
+
}
|
|
55
|
+
return filenameStar || filename;
|
|
56
|
+
}
|
|
57
|
+
function exists(apiCall) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return apiCall()
|
|
60
|
+
.then(() => true)
|
|
61
|
+
.catch((error) => {
|
|
62
|
+
var _a;
|
|
63
|
+
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 404)
|
|
64
|
+
return false;
|
|
65
|
+
throw error;
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function processError(error) {
|
|
70
|
+
if ('response' in error) {
|
|
71
|
+
const err = error, status = err.response.status, data = err.response.data;
|
|
72
|
+
if (data &&
|
|
73
|
+
typeof data === 'object' &&
|
|
74
|
+
'desc' in data &&
|
|
75
|
+
typeof data.desc === 'string' &&
|
|
76
|
+
'error' in data &&
|
|
77
|
+
typeof data.error === 'string' &&
|
|
78
|
+
'message' in data &&
|
|
79
|
+
typeof data.message === 'string') {
|
|
80
|
+
return new error_1.SdResponseError(status, data.message, data.desc, data.error);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
return new error_1.SdResponseError(status, err.message, 'No error description provided');
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else if ('request' in error) {
|
|
87
|
+
return new error_1.SdRequestError(error.message);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return new error_1.SdError(error.message);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,60 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
],
|
|
10
|
-
"author": "Matthias Reisacher <matt@shapediver.com>",
|
|
11
|
-
"license": "ISC",
|
|
12
|
-
"main": "dist/index.js",
|
|
13
|
-
"directories": {
|
|
14
|
-
"test": "__tests__"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist",
|
|
18
|
-
"src"
|
|
19
|
-
],
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/shapediver/GeometryBackendSdkTypeScript.git"
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"test": "bash ../../scripts/test.sh",
|
|
26
|
-
"check": "tsc --noEmit",
|
|
27
|
-
"build": "bash ../../scripts/build.sh",
|
|
28
|
-
"build-dep": "bash ../../scripts/build-dep.sh",
|
|
29
|
-
"pre-publish": "bash ../../scripts/pre-publish.sh",
|
|
30
|
-
"post-publish": "bash ../../scripts/post-publish.sh"
|
|
31
|
-
},
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/shapediver/GeometryBackendSdkTypeScript/issues"
|
|
34
|
-
},
|
|
35
|
-
"homepage": "https://github.com/shapediver/GeometryBackendSdkTypeScript#readme",
|
|
36
|
-
"typings": "dist/index.d.ts",
|
|
37
|
-
"jest": {
|
|
38
|
-
"preset": "ts-jest",
|
|
39
|
-
"testEnvironment": "node",
|
|
40
|
-
"testTimeout": 60000,
|
|
41
|
-
"setupFilesAfterEnv": [
|
|
42
|
-
"./test.config.js"
|
|
2
|
+
"name": "@shapediver/sdk.geometry-api-sdk-v2",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "SDK to communicate with the Geometry API version 2",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"shapediver",
|
|
7
|
+
"sdk",
|
|
8
|
+
"geometry api"
|
|
43
9
|
],
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
10
|
+
"author": "Matthias Reisacher <matt@shapediver.com>",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"directories": {
|
|
14
|
+
"test": "__tests__"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/shapediver/GeometryBackendSdkTypeScript.git"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "bash ../../scripts/test.sh",
|
|
26
|
+
"check": "tsc --noEmit",
|
|
27
|
+
"build": "bash ../../scripts/build.sh",
|
|
28
|
+
"build-dep": "bash ../../scripts/build-dep.sh",
|
|
29
|
+
"pre-publish": "bash ../../scripts/pre-publish.sh",
|
|
30
|
+
"post-publish": "bash ../../scripts/post-publish.sh"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/shapediver/GeometryBackendSdkTypeScript/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/shapediver/GeometryBackendSdkTypeScript#readme",
|
|
36
|
+
"typings": "dist/index.d.ts",
|
|
37
|
+
"jest": {
|
|
38
|
+
"preset": "ts-jest",
|
|
39
|
+
"testEnvironment": "node",
|
|
40
|
+
"testTimeout": 60000,
|
|
41
|
+
"testMatch": [
|
|
42
|
+
"**/__tests__/**/*.test.ts"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"axios": "~1.7.7"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"jest": "~29.7.0",
|
|
50
|
+
"lerna": "8.1.8",
|
|
51
|
+
"typescript": "~5.5.4",
|
|
52
|
+
"@types/uuid": "~10.0.0",
|
|
53
|
+
"uuid": "~10.0.0",
|
|
54
|
+
"webpack": "~5.94.0",
|
|
55
|
+
"webpack-cli": "~5.1.4",
|
|
56
|
+
"webpack-dev-server": "~5.0.4"
|
|
57
|
+
}
|
|
60
58
|
}
|