@aurigma/axios-design-atoms-api-client 2.74.1 → 2.77.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-atoms-api-client.d.ts +293 -7
- package/dist/cjs/design-atoms-api-client.js +439 -7
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +293 -7
- package/dist/esm/design-atoms-api-client.js +437 -6
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +2 -3
|
@@ -2537,6 +2537,102 @@ export class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
|
2537
2537
|
return Promise.resolve(null);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
+
export class DesignAtomsMockups2dApiClient extends ApiClientBase {
|
|
2541
|
+
instance;
|
|
2542
|
+
baseUrl;
|
|
2543
|
+
jsonParseReviver = undefined;
|
|
2544
|
+
constructor(configuration, baseUrl, instance) {
|
|
2545
|
+
super(configuration);
|
|
2546
|
+
this.instance = instance ? instance : axios.create();
|
|
2547
|
+
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
2548
|
+
}
|
|
2549
|
+
/**
|
|
2550
|
+
* Renders a mockup preview with the specified parameters.
|
|
2551
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
2552
|
+
(default value is 'false').
|
|
2553
|
+
* @param tenantId (optional) Tenant ID.
|
|
2554
|
+
* @param body (optional) Render model with preview parameters.
|
|
2555
|
+
* @return Success
|
|
2556
|
+
*/
|
|
2557
|
+
renderMockupPreview(attachment, tenantId, body, cancelToken) {
|
|
2558
|
+
let url_ = this.baseUrl + "/api/atoms/v1/mockups-2d/render-preview?";
|
|
2559
|
+
if (attachment !== undefined && attachment !== null)
|
|
2560
|
+
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
2561
|
+
if (tenantId === null)
|
|
2562
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2563
|
+
else if (tenantId !== undefined)
|
|
2564
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2565
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2566
|
+
const content_ = JSON.stringify(body);
|
|
2567
|
+
let options_ = {
|
|
2568
|
+
data: content_,
|
|
2569
|
+
responseType: "blob",
|
|
2570
|
+
method: "POST",
|
|
2571
|
+
url: url_,
|
|
2572
|
+
headers: {
|
|
2573
|
+
"Content-Type": "application/json",
|
|
2574
|
+
"Accept": "application/octet-stream"
|
|
2575
|
+
},
|
|
2576
|
+
cancelToken
|
|
2577
|
+
};
|
|
2578
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
2579
|
+
return this.instance.request(transformedOptions_);
|
|
2580
|
+
}).catch((_error) => {
|
|
2581
|
+
if (isAxiosError(_error) && _error.response) {
|
|
2582
|
+
return _error.response;
|
|
2583
|
+
}
|
|
2584
|
+
else {
|
|
2585
|
+
throw _error;
|
|
2586
|
+
}
|
|
2587
|
+
}).then((_response) => {
|
|
2588
|
+
return this.transformResult(url_, _response, (_response) => this.processRenderMockupPreview(_response));
|
|
2589
|
+
});
|
|
2590
|
+
}
|
|
2591
|
+
processRenderMockupPreview(response) {
|
|
2592
|
+
const status = response.status;
|
|
2593
|
+
let _headers = {};
|
|
2594
|
+
if (response.headers && typeof response.headers === "object") {
|
|
2595
|
+
for (let k in response.headers) {
|
|
2596
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
2597
|
+
_headers[k] = response.headers[k];
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
if (status === 200 || status === 206) {
|
|
2602
|
+
const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
|
|
2603
|
+
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
2604
|
+
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
2605
|
+
return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
|
|
2606
|
+
}
|
|
2607
|
+
else if (status === 404) {
|
|
2608
|
+
const _responseText = response.data;
|
|
2609
|
+
let result404 = null;
|
|
2610
|
+
let resultData404 = _responseText;
|
|
2611
|
+
result404 = JSON.parse(resultData404);
|
|
2612
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2613
|
+
}
|
|
2614
|
+
else if (status === 409) {
|
|
2615
|
+
const _responseText = response.data;
|
|
2616
|
+
let result409 = null;
|
|
2617
|
+
let resultData409 = _responseText;
|
|
2618
|
+
result409 = JSON.parse(resultData409);
|
|
2619
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
2620
|
+
}
|
|
2621
|
+
else if (status === 401) {
|
|
2622
|
+
const _responseText = response.data;
|
|
2623
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2624
|
+
}
|
|
2625
|
+
else if (status === 403) {
|
|
2626
|
+
const _responseText = response.data;
|
|
2627
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2628
|
+
}
|
|
2629
|
+
else if (status !== 200 && status !== 204) {
|
|
2630
|
+
const _responseText = response.data;
|
|
2631
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2632
|
+
}
|
|
2633
|
+
return Promise.resolve(null);
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2540
2636
|
export class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
2541
2637
|
instance;
|
|
2542
2638
|
baseUrl;
|
|
@@ -3185,6 +3281,285 @@ export class DesignAtomsPrintProductApiClient extends ApiClientBase {
|
|
|
3185
3281
|
}
|
|
3186
3282
|
return Promise.resolve(null);
|
|
3187
3283
|
}
|
|
3284
|
+
/**
|
|
3285
|
+
* Returns a list of print-product container descriptions of the specified design file.
|
|
3286
|
+
* @param id Design identifier.
|
|
3287
|
+
* @param index (optional)
|
|
3288
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
3289
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3290
|
+
* @param tenantId (optional) Tenant ID.
|
|
3291
|
+
* @param body (optional)
|
|
3292
|
+
* @return Success
|
|
3293
|
+
*/
|
|
3294
|
+
addDesignSurfaceContainer(id, index, surfaceId, privateStorageOwner, tenantId, body, cancelToken) {
|
|
3295
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers?";
|
|
3296
|
+
if (id === undefined || id === null)
|
|
3297
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3298
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3299
|
+
if (index !== undefined && index !== null)
|
|
3300
|
+
url_ += "index=" + encodeURIComponent("" + index) + "&";
|
|
3301
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
3302
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
3303
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3304
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3305
|
+
if (tenantId === null)
|
|
3306
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3307
|
+
else if (tenantId !== undefined)
|
|
3308
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3309
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3310
|
+
const content_ = JSON.stringify(body);
|
|
3311
|
+
let options_ = {
|
|
3312
|
+
data: content_,
|
|
3313
|
+
method: "POST",
|
|
3314
|
+
url: url_,
|
|
3315
|
+
headers: {
|
|
3316
|
+
"Content-Type": "application/json",
|
|
3317
|
+
"Accept": "application/json"
|
|
3318
|
+
},
|
|
3319
|
+
cancelToken
|
|
3320
|
+
};
|
|
3321
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3322
|
+
return this.instance.request(transformedOptions_);
|
|
3323
|
+
}).catch((_error) => {
|
|
3324
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3325
|
+
return _error.response;
|
|
3326
|
+
}
|
|
3327
|
+
else {
|
|
3328
|
+
throw _error;
|
|
3329
|
+
}
|
|
3330
|
+
}).then((_response) => {
|
|
3331
|
+
return this.transformResult(url_, _response, (_response) => this.processAddDesignSurfaceContainer(_response));
|
|
3332
|
+
});
|
|
3333
|
+
}
|
|
3334
|
+
processAddDesignSurfaceContainer(response) {
|
|
3335
|
+
const status = response.status;
|
|
3336
|
+
let _headers = {};
|
|
3337
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3338
|
+
for (let k in response.headers) {
|
|
3339
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3340
|
+
_headers[k] = response.headers[k];
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
if (status === 200) {
|
|
3345
|
+
const _responseText = response.data;
|
|
3346
|
+
let result200 = null;
|
|
3347
|
+
let resultData200 = _responseText;
|
|
3348
|
+
result200 = JSON.parse(resultData200);
|
|
3349
|
+
return Promise.resolve(result200);
|
|
3350
|
+
}
|
|
3351
|
+
else if (status === 404) {
|
|
3352
|
+
const _responseText = response.data;
|
|
3353
|
+
let result404 = null;
|
|
3354
|
+
let resultData404 = _responseText;
|
|
3355
|
+
result404 = JSON.parse(resultData404);
|
|
3356
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3357
|
+
}
|
|
3358
|
+
else if (status === 409) {
|
|
3359
|
+
const _responseText = response.data;
|
|
3360
|
+
let result409 = null;
|
|
3361
|
+
let resultData409 = _responseText;
|
|
3362
|
+
result409 = JSON.parse(resultData409);
|
|
3363
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3364
|
+
}
|
|
3365
|
+
else if (status === 401) {
|
|
3366
|
+
const _responseText = response.data;
|
|
3367
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3368
|
+
}
|
|
3369
|
+
else if (status === 403) {
|
|
3370
|
+
const _responseText = response.data;
|
|
3371
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3372
|
+
}
|
|
3373
|
+
else if (status !== 200 && status !== 204) {
|
|
3374
|
+
const _responseText = response.data;
|
|
3375
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3376
|
+
}
|
|
3377
|
+
return Promise.resolve(null);
|
|
3378
|
+
}
|
|
3379
|
+
/**
|
|
3380
|
+
* Returns a print-product container parameters of the specified design file.
|
|
3381
|
+
* @param id Design identifier.
|
|
3382
|
+
* @param containerId Print-product container identifier.
|
|
3383
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3384
|
+
* @param tenantId (optional) Tenant ID.
|
|
3385
|
+
* @return Success
|
|
3386
|
+
*/
|
|
3387
|
+
getDesignSurfaceContainer(id, containerId, privateStorageOwner, tenantId, cancelToken) {
|
|
3388
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
|
|
3389
|
+
if (id === undefined || id === null)
|
|
3390
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3391
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3392
|
+
if (containerId === undefined || containerId === null)
|
|
3393
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
3394
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
3395
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3396
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3397
|
+
if (tenantId === null)
|
|
3398
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3399
|
+
else if (tenantId !== undefined)
|
|
3400
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3401
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3402
|
+
let options_ = {
|
|
3403
|
+
method: "GET",
|
|
3404
|
+
url: url_,
|
|
3405
|
+
headers: {
|
|
3406
|
+
"Accept": "application/json"
|
|
3407
|
+
},
|
|
3408
|
+
cancelToken
|
|
3409
|
+
};
|
|
3410
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3411
|
+
return this.instance.request(transformedOptions_);
|
|
3412
|
+
}).catch((_error) => {
|
|
3413
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3414
|
+
return _error.response;
|
|
3415
|
+
}
|
|
3416
|
+
else {
|
|
3417
|
+
throw _error;
|
|
3418
|
+
}
|
|
3419
|
+
}).then((_response) => {
|
|
3420
|
+
return this.transformResult(url_, _response, (_response) => this.processGetDesignSurfaceContainer(_response));
|
|
3421
|
+
});
|
|
3422
|
+
}
|
|
3423
|
+
processGetDesignSurfaceContainer(response) {
|
|
3424
|
+
const status = response.status;
|
|
3425
|
+
let _headers = {};
|
|
3426
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3427
|
+
for (let k in response.headers) {
|
|
3428
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3429
|
+
_headers[k] = response.headers[k];
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
if (status === 200) {
|
|
3434
|
+
const _responseText = response.data;
|
|
3435
|
+
let result200 = null;
|
|
3436
|
+
let resultData200 = _responseText;
|
|
3437
|
+
result200 = JSON.parse(resultData200);
|
|
3438
|
+
return Promise.resolve(result200);
|
|
3439
|
+
}
|
|
3440
|
+
else if (status === 404) {
|
|
3441
|
+
const _responseText = response.data;
|
|
3442
|
+
let result404 = null;
|
|
3443
|
+
let resultData404 = _responseText;
|
|
3444
|
+
result404 = JSON.parse(resultData404);
|
|
3445
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3446
|
+
}
|
|
3447
|
+
else if (status === 409) {
|
|
3448
|
+
const _responseText = response.data;
|
|
3449
|
+
let result409 = null;
|
|
3450
|
+
let resultData409 = _responseText;
|
|
3451
|
+
result409 = JSON.parse(resultData409);
|
|
3452
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3453
|
+
}
|
|
3454
|
+
else if (status === 401) {
|
|
3455
|
+
const _responseText = response.data;
|
|
3456
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3457
|
+
}
|
|
3458
|
+
else if (status === 403) {
|
|
3459
|
+
const _responseText = response.data;
|
|
3460
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3461
|
+
}
|
|
3462
|
+
else if (status !== 200 && status !== 204) {
|
|
3463
|
+
const _responseText = response.data;
|
|
3464
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3465
|
+
}
|
|
3466
|
+
return Promise.resolve(null);
|
|
3467
|
+
}
|
|
3468
|
+
/**
|
|
3469
|
+
* Returns a list of print-product container descriptions of the specified design file.
|
|
3470
|
+
* @param id Design identifier.
|
|
3471
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
3472
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3473
|
+
* @param tenantId (optional) Tenant ID.
|
|
3474
|
+
* @param body (optional)
|
|
3475
|
+
* @return Success
|
|
3476
|
+
*/
|
|
3477
|
+
updateDesignSurfaceContainer(id, containerId, surfaceId, privateStorageOwner, tenantId, body, cancelToken) {
|
|
3478
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
|
|
3479
|
+
if (id === undefined || id === null)
|
|
3480
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3481
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3482
|
+
if (containerId === undefined || containerId === null)
|
|
3483
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
3484
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
3485
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
3486
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
3487
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3488
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3489
|
+
if (tenantId === null)
|
|
3490
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3491
|
+
else if (tenantId !== undefined)
|
|
3492
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3493
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3494
|
+
const content_ = JSON.stringify(body);
|
|
3495
|
+
let options_ = {
|
|
3496
|
+
data: content_,
|
|
3497
|
+
method: "PUT",
|
|
3498
|
+
url: url_,
|
|
3499
|
+
headers: {
|
|
3500
|
+
"Content-Type": "application/json",
|
|
3501
|
+
"Accept": "application/json"
|
|
3502
|
+
},
|
|
3503
|
+
cancelToken
|
|
3504
|
+
};
|
|
3505
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3506
|
+
return this.instance.request(transformedOptions_);
|
|
3507
|
+
}).catch((_error) => {
|
|
3508
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3509
|
+
return _error.response;
|
|
3510
|
+
}
|
|
3511
|
+
else {
|
|
3512
|
+
throw _error;
|
|
3513
|
+
}
|
|
3514
|
+
}).then((_response) => {
|
|
3515
|
+
return this.transformResult(url_, _response, (_response) => this.processUpdateDesignSurfaceContainer(_response));
|
|
3516
|
+
});
|
|
3517
|
+
}
|
|
3518
|
+
processUpdateDesignSurfaceContainer(response) {
|
|
3519
|
+
const status = response.status;
|
|
3520
|
+
let _headers = {};
|
|
3521
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3522
|
+
for (let k in response.headers) {
|
|
3523
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3524
|
+
_headers[k] = response.headers[k];
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
if (status === 200) {
|
|
3529
|
+
const _responseText = response.data;
|
|
3530
|
+
let result200 = null;
|
|
3531
|
+
let resultData200 = _responseText;
|
|
3532
|
+
result200 = JSON.parse(resultData200);
|
|
3533
|
+
return Promise.resolve(result200);
|
|
3534
|
+
}
|
|
3535
|
+
else if (status === 404) {
|
|
3536
|
+
const _responseText = response.data;
|
|
3537
|
+
let result404 = null;
|
|
3538
|
+
let resultData404 = _responseText;
|
|
3539
|
+
result404 = JSON.parse(resultData404);
|
|
3540
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3541
|
+
}
|
|
3542
|
+
else if (status === 409) {
|
|
3543
|
+
const _responseText = response.data;
|
|
3544
|
+
let result409 = null;
|
|
3545
|
+
let resultData409 = _responseText;
|
|
3546
|
+
result409 = JSON.parse(resultData409);
|
|
3547
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3548
|
+
}
|
|
3549
|
+
else if (status === 401) {
|
|
3550
|
+
const _responseText = response.data;
|
|
3551
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3552
|
+
}
|
|
3553
|
+
else if (status === 403) {
|
|
3554
|
+
const _responseText = response.data;
|
|
3555
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3556
|
+
}
|
|
3557
|
+
else if (status !== 200 && status !== 204) {
|
|
3558
|
+
const _responseText = response.data;
|
|
3559
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3560
|
+
}
|
|
3561
|
+
return Promise.resolve(null);
|
|
3562
|
+
}
|
|
3188
3563
|
/**
|
|
3189
3564
|
* Deletes a specified print-product container in an existing design file.
|
|
3190
3565
|
* @param id Design identifier.
|
|
@@ -8865,11 +9240,11 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
8865
9240
|
* @param resourceId (optional) Resource identifier.
|
|
8866
9241
|
* @param privateDesignId (optional) Private design identifier.
|
|
8867
9242
|
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
8868
|
-
* @param
|
|
9243
|
+
* @param tenantId (optional) Tenant ID.
|
|
8869
9244
|
* @return Created
|
|
8870
9245
|
* @deprecated
|
|
8871
9246
|
*/
|
|
8872
|
-
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner,
|
|
9247
|
+
createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
|
|
8873
9248
|
let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
|
|
8874
9249
|
if (resourceId !== undefined && resourceId !== null)
|
|
8875
9250
|
url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
|
|
@@ -8877,10 +9252,10 @@ export class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
8877
9252
|
url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
|
|
8878
9253
|
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
8879
9254
|
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
8880
|
-
if (
|
|
8881
|
-
throw new Error("The parameter '
|
|
8882
|
-
else if (
|
|
8883
|
-
url_ += "tenantId=" + encodeURIComponent("" +
|
|
9255
|
+
if (tenantId === null)
|
|
9256
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
9257
|
+
else if (tenantId !== undefined)
|
|
9258
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
8884
9259
|
url_ = url_.replace(/[?&]$/, "");
|
|
8885
9260
|
let options_ = {
|
|
8886
9261
|
method: "POST",
|
|
@@ -10785,6 +11160,32 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
10785
11160
|
return Promise.resolve(null);
|
|
10786
11161
|
}
|
|
10787
11162
|
}
|
|
11163
|
+
export var ArtworkShapeType;
|
|
11164
|
+
(function (ArtworkShapeType) {
|
|
11165
|
+
ArtworkShapeType["Rectangle"] = "rectangle";
|
|
11166
|
+
ArtworkShapeType["Ellipse"] = "ellipse";
|
|
11167
|
+
})(ArtworkShapeType || (ArtworkShapeType = {}));
|
|
11168
|
+
/** Colorless container display type. */
|
|
11169
|
+
export var ColorlessContainerDisplayType;
|
|
11170
|
+
(function (ColorlessContainerDisplayType) {
|
|
11171
|
+
ColorlessContainerDisplayType["Color"] = "Color";
|
|
11172
|
+
ColorlessContainerDisplayType["Texture"] = "Texture";
|
|
11173
|
+
})(ColorlessContainerDisplayType || (ColorlessContainerDisplayType = {}));
|
|
11174
|
+
/** Colorless container dither type. */
|
|
11175
|
+
export var ColorlessContainerDitherType;
|
|
11176
|
+
(function (ColorlessContainerDitherType) {
|
|
11177
|
+
ColorlessContainerDitherType["None"] = "None";
|
|
11178
|
+
ColorlessContainerDitherType["Diffusion"] = "Diffusion";
|
|
11179
|
+
ColorlessContainerDitherType["Pattern"] = "Pattern";
|
|
11180
|
+
ColorlessContainerDitherType["Noise"] = "Noise";
|
|
11181
|
+
})(ColorlessContainerDitherType || (ColorlessContainerDitherType = {}));
|
|
11182
|
+
/** Colorless container format. */
|
|
11183
|
+
export var ColorlessContainerFormat;
|
|
11184
|
+
(function (ColorlessContainerFormat) {
|
|
11185
|
+
ColorlessContainerFormat["OneBit"] = "OneBit";
|
|
11186
|
+
ColorlessContainerFormat["Grayscale"] = "Grayscale";
|
|
11187
|
+
ColorlessContainerFormat["Vector"] = "Vector";
|
|
11188
|
+
})(ColorlessContainerFormat || (ColorlessContainerFormat = {}));
|
|
10788
11189
|
/** Conflict types. */
|
|
10789
11190
|
export var ConflictType;
|
|
10790
11191
|
(function (ConflictType) {
|
|
@@ -10793,6 +11194,22 @@ export var ConflictType;
|
|
|
10793
11194
|
ConflictType["IdConflict"] = "IdConflict";
|
|
10794
11195
|
ConflictType["GeneralConflict"] = "GeneralConflict";
|
|
10795
11196
|
})(ConflictType || (ConflictType = {}));
|
|
11197
|
+
/** Full color container color space. */
|
|
11198
|
+
export var ContainerColorSpace;
|
|
11199
|
+
(function (ContainerColorSpace) {
|
|
11200
|
+
ContainerColorSpace["Rgb"] = "Rgb";
|
|
11201
|
+
ContainerColorSpace["Cmyk"] = "Cmyk";
|
|
11202
|
+
ContainerColorSpace["Grayscale"] = "Grayscale";
|
|
11203
|
+
ContainerColorSpace["Lab"] = "Lab";
|
|
11204
|
+
ContainerColorSpace["Spot"] = "Spot";
|
|
11205
|
+
})(ContainerColorSpace || (ContainerColorSpace = {}));
|
|
11206
|
+
/** Container printing mode. */
|
|
11207
|
+
export var ContainerPrintingMode;
|
|
11208
|
+
(function (ContainerPrintingMode) {
|
|
11209
|
+
ContainerPrintingMode["FullColor"] = "FullColor";
|
|
11210
|
+
ContainerPrintingMode["LimitedColor"] = "LimitedColor";
|
|
11211
|
+
ContainerPrintingMode["Colorless"] = "Colorless";
|
|
11212
|
+
})(ContainerPrintingMode || (ContainerPrintingMode = {}));
|
|
10796
11213
|
export var DesignElementType;
|
|
10797
11214
|
(function (DesignElementType) {
|
|
10798
11215
|
DesignElementType["Product"] = "Product";
|
|
@@ -10837,6 +11254,20 @@ export var ItemType;
|
|
|
10837
11254
|
ItemType["Clipart"] = "Clipart";
|
|
10838
11255
|
ItemType["Group"] = "Group";
|
|
10839
11256
|
})(ItemType || (ItemType = {}));
|
|
11257
|
+
/** Mockup preview fitting mode. */
|
|
11258
|
+
export var MockupPreviewFitMode;
|
|
11259
|
+
(function (MockupPreviewFitMode) {
|
|
11260
|
+
MockupPreviewFitMode["Fit"] = "Fit";
|
|
11261
|
+
MockupPreviewFitMode["Shrink"] = "Shrink";
|
|
11262
|
+
MockupPreviewFitMode["Resize"] = "Resize";
|
|
11263
|
+
MockupPreviewFitMode["Fill"] = "Fill";
|
|
11264
|
+
})(MockupPreviewFitMode || (MockupPreviewFitMode = {}));
|
|
11265
|
+
/** Mockup preview file format. */
|
|
11266
|
+
export var MockupPreviewFormat;
|
|
11267
|
+
(function (MockupPreviewFormat) {
|
|
11268
|
+
MockupPreviewFormat["Jpeg"] = "Jpeg";
|
|
11269
|
+
MockupPreviewFormat["Png"] = "Png";
|
|
11270
|
+
})(MockupPreviewFormat || (MockupPreviewFormat = {}));
|
|
10840
11271
|
/** Placeholder item content type. */
|
|
10841
11272
|
export var PlaceholderItemContentType;
|
|
10842
11273
|
(function (PlaceholderItemContentType) {
|