@aurigma/ng-design-atoms-api-client 2.63.1 → 2.64.1

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.
@@ -2886,7 +2886,7 @@
2886
2886
  return _this;
2887
2887
  }
2888
2888
  /**
2889
- * Renders a web image preview with the specified parameters.
2889
+ * Renders a preview of an image with the specified parameters.
2890
2890
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
2891
2891
  (default value is 'false').
2892
2892
  * @param tenantId (optional) Tenant identifier
@@ -2975,37 +2975,1113 @@
2975
2975
  return rxjs.of(null);
2976
2976
  };
2977
2977
  /**
2978
- * Renders a web image preview with the specified parameters and saves rendering result as resource.
2978
+ * Renders a preview of an uploaded image with the specified parameters.
2979
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
2980
+ (default value is 'false').
2981
+ * @param tenantId (optional) Tenant identifier
2982
+ * @param sourceFile (optional)
2983
+ * @param mockupOwnerId (optional)
2984
+ * @param mockupId (optional)
2985
+ * @param width (optional)
2986
+ * @param height (optional)
2987
+ * @param fileFormat (optional)
2988
+ * @param fitMode (optional)
2989
+ * @return Success
2990
+ */
2991
+ DesignAtomsImagesApiClient.prototype.renderImagePreviewFromFile = function (attachment, tenantId, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode) {
2992
+ var _this = this;
2993
+ var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file?";
2994
+ if (attachment !== undefined && attachment !== null)
2995
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
2996
+ if (tenantId === null)
2997
+ throw new Error("The parameter 'tenantId' cannot be null.");
2998
+ else if (tenantId !== undefined)
2999
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3000
+ url_ = url_.replace(/[?&]$/, "");
3001
+ var content_ = new FormData();
3002
+ if (sourceFile !== null && sourceFile !== undefined)
3003
+ content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
3004
+ if (mockupOwnerId !== null && mockupOwnerId !== undefined)
3005
+ content_.append("mockupOwnerId", mockupOwnerId.toString());
3006
+ if (mockupId !== null && mockupId !== undefined)
3007
+ content_.append("mockupId", mockupId.toString());
3008
+ if (width !== null && width !== undefined)
3009
+ content_.append("width", width.toString());
3010
+ if (height !== null && height !== undefined)
3011
+ content_.append("height", height.toString());
3012
+ if (fileFormat !== null && fileFormat !== undefined)
3013
+ content_.append("fileFormat", fileFormat.toString());
3014
+ if (fitMode !== null && fitMode !== undefined)
3015
+ content_.append("fitMode", fitMode.toString());
3016
+ var options_ = {
3017
+ body: content_,
3018
+ observe: "response",
3019
+ responseType: "blob",
3020
+ headers: new i1.HttpHeaders({
3021
+ "Accept": "application/octet-stream"
3022
+ })
3023
+ };
3024
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3025
+ return _this.http.request("post", url_, transformedOptions_);
3026
+ })).pipe(operators.mergeMap(function (response_) {
3027
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewFromFile(r); });
3028
+ })).pipe(operators.catchError(function (response_) {
3029
+ if (response_ instanceof i1.HttpResponseBase) {
3030
+ try {
3031
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewFromFile(r); });
3032
+ }
3033
+ catch (e) {
3034
+ return rxjs.throwError(e);
3035
+ }
3036
+ }
3037
+ else
3038
+ return rxjs.throwError(response_);
3039
+ }));
3040
+ };
3041
+ DesignAtomsImagesApiClient.prototype.processRenderImagePreviewFromFile = function (response) {
3042
+ var e_30, _a;
3043
+ var status = response.status;
3044
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3045
+ response.error instanceof Blob ? response.error : undefined;
3046
+ var _headers = {};
3047
+ if (response.headers) {
3048
+ try {
3049
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3050
+ var key = _c.value;
3051
+ _headers[key] = response.headers.get(key);
3052
+ }
3053
+ }
3054
+ catch (e_30_1) { e_30 = { error: e_30_1 }; }
3055
+ finally {
3056
+ try {
3057
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3058
+ }
3059
+ finally { if (e_30) throw e_30.error; }
3060
+ }
3061
+ }
3062
+ if (status === 200 || status === 206) {
3063
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
3064
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
3065
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
3066
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
3067
+ }
3068
+ else if (status === 401) {
3069
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3070
+ return throwException("Unauthorized", status, _responseText, _headers);
3071
+ }));
3072
+ }
3073
+ else if (status === 403) {
3074
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3075
+ return throwException("Forbidden", status, _responseText, _headers);
3076
+ }));
3077
+ }
3078
+ else if (status !== 200 && status !== 204) {
3079
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3080
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3081
+ }));
3082
+ }
3083
+ return rxjs.of(null);
3084
+ };
3085
+ /**
3086
+ * Renders a preview of an uploaded image with the specified parameters and saves rendering result as resource.
3087
+ * @param tenantId (optional) Tenant identifier
3088
+ * @param resourceOwnerId (optional)
3089
+ * @param resourceNamespace (optional)
3090
+ * @param resourceName (optional)
3091
+ * @param resourceSourceId (optional)
3092
+ * @param resourceType (optional)
3093
+ * @param anonymousAccess (optional)
3094
+ * @param overwriteExistingResource (optional)
3095
+ * @param sourceFile (optional)
3096
+ * @param mockupOwnerId (optional)
3097
+ * @param mockupId (optional)
3098
+ * @param width (optional)
3099
+ * @param height (optional)
3100
+ * @param fileFormat (optional)
3101
+ * @param fitMode (optional)
3102
+ * @return Success
3103
+ */
3104
+ DesignAtomsImagesApiClient.prototype.renderImagePreviewFromFileToResource = function (tenantId, resourceOwnerId, resourceNamespace, resourceName, resourceSourceId, resourceType, anonymousAccess, overwriteExistingResource, sourceFile, mockupOwnerId, mockupId, width, height, fileFormat, fitMode) {
3105
+ var _this = this;
3106
+ var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-file/to-resource?";
3107
+ if (tenantId === null)
3108
+ throw new Error("The parameter 'tenantId' cannot be null.");
3109
+ else if (tenantId !== undefined)
3110
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3111
+ url_ = url_.replace(/[?&]$/, "");
3112
+ var content_ = new FormData();
3113
+ if (resourceOwnerId !== null && resourceOwnerId !== undefined)
3114
+ content_.append("resourceOwnerId", resourceOwnerId.toString());
3115
+ if (resourceNamespace !== null && resourceNamespace !== undefined)
3116
+ content_.append("resourceNamespace", resourceNamespace.toString());
3117
+ if (resourceName !== null && resourceName !== undefined)
3118
+ content_.append("resourceName", resourceName.toString());
3119
+ if (resourceSourceId !== null && resourceSourceId !== undefined)
3120
+ content_.append("resourceSourceId", resourceSourceId.toString());
3121
+ if (resourceType !== null && resourceType !== undefined)
3122
+ content_.append("resourceType", resourceType.toString());
3123
+ if (anonymousAccess === null || anonymousAccess === undefined)
3124
+ throw new Error("The parameter 'anonymousAccess' cannot be null.");
3125
+ else
3126
+ content_.append("anonymousAccess", anonymousAccess.toString());
3127
+ if (overwriteExistingResource === null || overwriteExistingResource === undefined)
3128
+ throw new Error("The parameter 'overwriteExistingResource' cannot be null.");
3129
+ else
3130
+ content_.append("overwriteExistingResource", overwriteExistingResource.toString());
3131
+ if (sourceFile !== null && sourceFile !== undefined)
3132
+ content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
3133
+ if (mockupOwnerId !== null && mockupOwnerId !== undefined)
3134
+ content_.append("mockupOwnerId", mockupOwnerId.toString());
3135
+ if (mockupId !== null && mockupId !== undefined)
3136
+ content_.append("mockupId", mockupId.toString());
3137
+ if (width !== null && width !== undefined)
3138
+ content_.append("width", width.toString());
3139
+ if (height !== null && height !== undefined)
3140
+ content_.append("height", height.toString());
3141
+ if (fileFormat !== null && fileFormat !== undefined)
3142
+ content_.append("fileFormat", fileFormat.toString());
3143
+ if (fitMode !== null && fitMode !== undefined)
3144
+ content_.append("fitMode", fitMode.toString());
3145
+ var options_ = {
3146
+ body: content_,
3147
+ observe: "response",
3148
+ responseType: "blob",
3149
+ headers: new i1.HttpHeaders({
3150
+ "Accept": "application/json"
3151
+ })
3152
+ };
3153
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3154
+ return _this.http.request("post", url_, transformedOptions_);
3155
+ })).pipe(operators.mergeMap(function (response_) {
3156
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewFromFileToResource(r); });
3157
+ })).pipe(operators.catchError(function (response_) {
3158
+ if (response_ instanceof i1.HttpResponseBase) {
3159
+ try {
3160
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewFromFileToResource(r); });
3161
+ }
3162
+ catch (e) {
3163
+ return rxjs.throwError(e);
3164
+ }
3165
+ }
3166
+ else
3167
+ return rxjs.throwError(response_);
3168
+ }));
3169
+ };
3170
+ DesignAtomsImagesApiClient.prototype.processRenderImagePreviewFromFileToResource = function (response) {
3171
+ var e_31, _a;
3172
+ var _this = this;
3173
+ var status = response.status;
3174
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3175
+ response.error instanceof Blob ? response.error : undefined;
3176
+ var _headers = {};
3177
+ if (response.headers) {
3178
+ try {
3179
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3180
+ var key = _c.value;
3181
+ _headers[key] = response.headers.get(key);
3182
+ }
3183
+ }
3184
+ catch (e_31_1) { e_31 = { error: e_31_1 }; }
3185
+ finally {
3186
+ try {
3187
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3188
+ }
3189
+ finally { if (e_31) throw e_31.error; }
3190
+ }
3191
+ }
3192
+ if (status === 200) {
3193
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3194
+ var result200 = null;
3195
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3196
+ return rxjs.of(result200);
3197
+ }));
3198
+ }
3199
+ else if (status === 409) {
3200
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3201
+ var result409 = null;
3202
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3203
+ return throwException("Conflict", status, _responseText, _headers, result409);
3204
+ }));
3205
+ }
3206
+ else if (status === 401) {
3207
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3208
+ return throwException("Unauthorized", status, _responseText, _headers);
3209
+ }));
3210
+ }
3211
+ else if (status === 403) {
3212
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3213
+ return throwException("Forbidden", status, _responseText, _headers);
3214
+ }));
3215
+ }
3216
+ else if (status !== 200 && status !== 204) {
3217
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3218
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3219
+ }));
3220
+ }
3221
+ return rxjs.of(null);
3222
+ };
3223
+ /**
3224
+ * Renders a preview of a web image with the specified parameters.
3225
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
3226
+ (default value is 'false').
3227
+ * @param tenantId (optional) Tenant identifier
3228
+ * @param body (optional) Render model with preview parameters.
3229
+ * @return Success
3230
+ */
3231
+ DesignAtomsImagesApiClient.prototype.renderImagePreviewFromUrl = function (attachment, tenantId, body) {
3232
+ var _this = this;
3233
+ var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-url?";
3234
+ if (attachment !== undefined && attachment !== null)
3235
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
3236
+ if (tenantId === null)
3237
+ throw new Error("The parameter 'tenantId' cannot be null.");
3238
+ else if (tenantId !== undefined)
3239
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3240
+ url_ = url_.replace(/[?&]$/, "");
3241
+ var content_ = JSON.stringify(body);
3242
+ var options_ = {
3243
+ body: content_,
3244
+ observe: "response",
3245
+ responseType: "blob",
3246
+ headers: new i1.HttpHeaders({
3247
+ "Content-Type": "application/json",
3248
+ "Accept": "application/octet-stream"
3249
+ })
3250
+ };
3251
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3252
+ return _this.http.request("post", url_, transformedOptions_);
3253
+ })).pipe(operators.mergeMap(function (response_) {
3254
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewFromUrl(r); });
3255
+ })).pipe(operators.catchError(function (response_) {
3256
+ if (response_ instanceof i1.HttpResponseBase) {
3257
+ try {
3258
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewFromUrl(r); });
3259
+ }
3260
+ catch (e) {
3261
+ return rxjs.throwError(e);
3262
+ }
3263
+ }
3264
+ else
3265
+ return rxjs.throwError(response_);
3266
+ }));
3267
+ };
3268
+ DesignAtomsImagesApiClient.prototype.processRenderImagePreviewFromUrl = function (response) {
3269
+ var e_32, _a;
3270
+ var status = response.status;
3271
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3272
+ response.error instanceof Blob ? response.error : undefined;
3273
+ var _headers = {};
3274
+ if (response.headers) {
3275
+ try {
3276
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3277
+ var key = _c.value;
3278
+ _headers[key] = response.headers.get(key);
3279
+ }
3280
+ }
3281
+ catch (e_32_1) { e_32 = { error: e_32_1 }; }
3282
+ finally {
3283
+ try {
3284
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3285
+ }
3286
+ finally { if (e_32) throw e_32.error; }
3287
+ }
3288
+ }
3289
+ if (status === 200 || status === 206) {
3290
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
3291
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
3292
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
3293
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
3294
+ }
3295
+ else if (status === 401) {
3296
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3297
+ return throwException("Unauthorized", status, _responseText, _headers);
3298
+ }));
3299
+ }
3300
+ else if (status === 403) {
3301
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3302
+ return throwException("Forbidden", status, _responseText, _headers);
3303
+ }));
3304
+ }
3305
+ else if (status !== 200 && status !== 204) {
3306
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3307
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3308
+ }));
3309
+ }
3310
+ return rxjs.of(null);
3311
+ };
3312
+ /**
3313
+ * Renders a preview of a web image with the specified parameters and saves rendering result as resource.
3314
+ * @param tenantId (optional) Tenant identifier
3315
+ * @param body (optional) Render model with preview parameters.
3316
+ * @return Success
3317
+ */
3318
+ DesignAtomsImagesApiClient.prototype.renderImagePreviewFromUrlToResource = function (tenantId, body) {
3319
+ var _this = this;
3320
+ var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/from-url/to-resource?";
3321
+ if (tenantId === null)
3322
+ throw new Error("The parameter 'tenantId' cannot be null.");
3323
+ else if (tenantId !== undefined)
3324
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3325
+ url_ = url_.replace(/[?&]$/, "");
3326
+ var content_ = JSON.stringify(body);
3327
+ var options_ = {
3328
+ body: content_,
3329
+ observe: "response",
3330
+ responseType: "blob",
3331
+ headers: new i1.HttpHeaders({
3332
+ "Content-Type": "application/json",
3333
+ "Accept": "application/json"
3334
+ })
3335
+ };
3336
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3337
+ return _this.http.request("post", url_, transformedOptions_);
3338
+ })).pipe(operators.mergeMap(function (response_) {
3339
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewFromUrlToResource(r); });
3340
+ })).pipe(operators.catchError(function (response_) {
3341
+ if (response_ instanceof i1.HttpResponseBase) {
3342
+ try {
3343
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewFromUrlToResource(r); });
3344
+ }
3345
+ catch (e) {
3346
+ return rxjs.throwError(e);
3347
+ }
3348
+ }
3349
+ else
3350
+ return rxjs.throwError(response_);
3351
+ }));
3352
+ };
3353
+ DesignAtomsImagesApiClient.prototype.processRenderImagePreviewFromUrlToResource = function (response) {
3354
+ var e_33, _a;
3355
+ var _this = this;
3356
+ var status = response.status;
3357
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3358
+ response.error instanceof Blob ? response.error : undefined;
3359
+ var _headers = {};
3360
+ if (response.headers) {
3361
+ try {
3362
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3363
+ var key = _c.value;
3364
+ _headers[key] = response.headers.get(key);
3365
+ }
3366
+ }
3367
+ catch (e_33_1) { e_33 = { error: e_33_1 }; }
3368
+ finally {
3369
+ try {
3370
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3371
+ }
3372
+ finally { if (e_33) throw e_33.error; }
3373
+ }
3374
+ }
3375
+ if (status === 200) {
3376
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3377
+ var result200 = null;
3378
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3379
+ return rxjs.of(result200);
3380
+ }));
3381
+ }
3382
+ else if (status === 409) {
3383
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3384
+ var result409 = null;
3385
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3386
+ return throwException("Conflict", status, _responseText, _headers, result409);
3387
+ }));
3388
+ }
3389
+ else if (status === 401) {
3390
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3391
+ return throwException("Unauthorized", status, _responseText, _headers);
3392
+ }));
3393
+ }
3394
+ else if (status === 403) {
3395
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3396
+ return throwException("Forbidden", status, _responseText, _headers);
3397
+ }));
3398
+ }
3399
+ else if (status !== 200 && status !== 204) {
3400
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3401
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3402
+ }));
3403
+ }
3404
+ return rxjs.of(null);
3405
+ };
3406
+ /**
3407
+ * Renders a preview of an image with the specified parameters and saves rendering result as resource.
3408
+ * @param tenantId (optional) Tenant identifier
3409
+ * @param body (optional) Render model with preview parameters.
3410
+ * @return Success
3411
+ */
3412
+ DesignAtomsImagesApiClient.prototype.renderImagePreviewToResource = function (tenantId, body) {
3413
+ var _this = this;
3414
+ var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/to-resource?";
3415
+ if (tenantId === null)
3416
+ throw new Error("The parameter 'tenantId' cannot be null.");
3417
+ else if (tenantId !== undefined)
3418
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3419
+ url_ = url_.replace(/[?&]$/, "");
3420
+ var content_ = JSON.stringify(body);
3421
+ var options_ = {
3422
+ body: content_,
3423
+ observe: "response",
3424
+ responseType: "blob",
3425
+ headers: new i1.HttpHeaders({
3426
+ "Content-Type": "application/json",
3427
+ "Accept": "application/json"
3428
+ })
3429
+ };
3430
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3431
+ return _this.http.request("post", url_, transformedOptions_);
3432
+ })).pipe(operators.mergeMap(function (response_) {
3433
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewToResource(r); });
3434
+ })).pipe(operators.catchError(function (response_) {
3435
+ if (response_ instanceof i1.HttpResponseBase) {
3436
+ try {
3437
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewToResource(r); });
3438
+ }
3439
+ catch (e) {
3440
+ return rxjs.throwError(e);
3441
+ }
3442
+ }
3443
+ else
3444
+ return rxjs.throwError(response_);
3445
+ }));
3446
+ };
3447
+ DesignAtomsImagesApiClient.prototype.processRenderImagePreviewToResource = function (response) {
3448
+ var e_34, _a;
3449
+ var _this = this;
3450
+ var status = response.status;
3451
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3452
+ response.error instanceof Blob ? response.error : undefined;
3453
+ var _headers = {};
3454
+ if (response.headers) {
3455
+ try {
3456
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3457
+ var key = _c.value;
3458
+ _headers[key] = response.headers.get(key);
3459
+ }
3460
+ }
3461
+ catch (e_34_1) { e_34 = { error: e_34_1 }; }
3462
+ finally {
3463
+ try {
3464
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3465
+ }
3466
+ finally { if (e_34) throw e_34.error; }
3467
+ }
3468
+ }
3469
+ if (status === 200) {
3470
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3471
+ var result200 = null;
3472
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3473
+ return rxjs.of(result200);
3474
+ }));
3475
+ }
3476
+ else if (status === 409) {
3477
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3478
+ var result409 = null;
3479
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3480
+ return throwException("Conflict", status, _responseText, _headers, result409);
3481
+ }));
3482
+ }
3483
+ else if (status === 401) {
3484
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3485
+ return throwException("Unauthorized", status, _responseText, _headers);
3486
+ }));
3487
+ }
3488
+ else if (status === 403) {
3489
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3490
+ return throwException("Forbidden", status, _responseText, _headers);
3491
+ }));
3492
+ }
3493
+ else if (status !== 200 && status !== 204) {
3494
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3495
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3496
+ }));
3497
+ }
3498
+ return rxjs.of(null);
3499
+ };
3500
+ return DesignAtomsImagesApiClient;
3501
+ }(ApiClientBase));
3502
+ DesignAtomsImagesApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function DesignAtomsImagesApiClient_Factory() { return new DesignAtomsImagesApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsImagesApiClient, providedIn: "root" });
3503
+ DesignAtomsImagesApiClient.decorators = [
3504
+ { type: i0.Injectable, args: [{
3505
+ providedIn: 'root'
3506
+ },] }
3507
+ ];
3508
+ DesignAtomsImagesApiClient.ctorParameters = function () { return [
3509
+ { type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
3510
+ { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
3511
+ { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
3512
+ ]; };
3513
+ var DesignAtomsMockups3dApiClient = /** @class */ (function (_super) {
3514
+ __extends(DesignAtomsMockups3dApiClient, _super);
3515
+ function DesignAtomsMockups3dApiClient(configuration, http, baseUrl) {
3516
+ var _this = _super.call(this, configuration) || this;
3517
+ _this.jsonParseReviver = undefined;
3518
+ _this.http = http;
3519
+ _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
3520
+ return _this;
3521
+ }
3522
+ /**
3523
+ * Returns a 3D-Mockup attributes.
3524
+ * @param id 3D-Mockup identifier.
3525
+ * @param ownerId (optional) Private mockup owner identifier.
3526
+ * @param tenantId (optional) Tenant identifier
3527
+ * @return Success
3528
+ */
3529
+ DesignAtomsMockups3dApiClient.prototype.getAttributes = function (id, ownerId, tenantId) {
3530
+ var _this = this;
3531
+ var url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/attributes?";
3532
+ if (id === undefined || id === null)
3533
+ throw new Error("The parameter 'id' must be defined.");
3534
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3535
+ if (ownerId !== undefined && ownerId !== null)
3536
+ url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
3537
+ if (tenantId === null)
3538
+ throw new Error("The parameter 'tenantId' cannot be null.");
3539
+ else if (tenantId !== undefined)
3540
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3541
+ url_ = url_.replace(/[?&]$/, "");
3542
+ var options_ = {
3543
+ observe: "response",
3544
+ responseType: "blob",
3545
+ headers: new i1.HttpHeaders({
3546
+ "Accept": "application/json"
3547
+ })
3548
+ };
3549
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3550
+ return _this.http.request("get", url_, transformedOptions_);
3551
+ })).pipe(operators.mergeMap(function (response_) {
3552
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAttributes(r); });
3553
+ })).pipe(operators.catchError(function (response_) {
3554
+ if (response_ instanceof i1.HttpResponseBase) {
3555
+ try {
3556
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetAttributes(r); });
3557
+ }
3558
+ catch (e) {
3559
+ return rxjs.throwError(e);
3560
+ }
3561
+ }
3562
+ else
3563
+ return rxjs.throwError(response_);
3564
+ }));
3565
+ };
3566
+ DesignAtomsMockups3dApiClient.prototype.processGetAttributes = function (response) {
3567
+ var e_35, _a;
3568
+ var _this = this;
3569
+ var status = response.status;
3570
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3571
+ response.error instanceof Blob ? response.error : undefined;
3572
+ var _headers = {};
3573
+ if (response.headers) {
3574
+ try {
3575
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3576
+ var key = _c.value;
3577
+ _headers[key] = response.headers.get(key);
3578
+ }
3579
+ }
3580
+ catch (e_35_1) { e_35 = { error: e_35_1 }; }
3581
+ finally {
3582
+ try {
3583
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3584
+ }
3585
+ finally { if (e_35) throw e_35.error; }
3586
+ }
3587
+ }
3588
+ if (status === 200) {
3589
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3590
+ var result200 = null;
3591
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3592
+ return rxjs.of(result200);
3593
+ }));
3594
+ }
3595
+ else if (status === 404) {
3596
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3597
+ var result404 = null;
3598
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3599
+ return throwException("Not Found", status, _responseText, _headers, result404);
3600
+ }));
3601
+ }
3602
+ else if (status === 422) {
3603
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3604
+ var result422 = null;
3605
+ result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3606
+ return throwException("Client Error", status, _responseText, _headers, result422);
3607
+ }));
3608
+ }
3609
+ else if (status === 401) {
3610
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3611
+ return throwException("Unauthorized", status, _responseText, _headers);
3612
+ }));
3613
+ }
3614
+ else if (status === 403) {
3615
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3616
+ return throwException("Forbidden", status, _responseText, _headers);
3617
+ }));
3618
+ }
3619
+ else if (status !== 200 && status !== 204) {
3620
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3621
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3622
+ }));
3623
+ }
3624
+ return rxjs.of(null);
3625
+ };
3626
+ /**
3627
+ * Returns a 3D-Mockup content as protobuf binary stream.
3628
+ * @param id 3D-Mockup identifier.
3629
+ * @param ownerId (optional) Private mockup owner identifier.
3630
+ * @param tenantId (optional) Tenant identifier
3631
+ * @return Success
3632
+ */
3633
+ DesignAtomsMockups3dApiClient.prototype.getContentAsProtobuf = function (id, ownerId, tenantId) {
3634
+ var _this = this;
3635
+ var url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/content/as-protobuf?";
3636
+ if (id === undefined || id === null)
3637
+ throw new Error("The parameter 'id' must be defined.");
3638
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3639
+ if (ownerId !== undefined && ownerId !== null)
3640
+ url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
3641
+ if (tenantId === null)
3642
+ throw new Error("The parameter 'tenantId' cannot be null.");
3643
+ else if (tenantId !== undefined)
3644
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3645
+ url_ = url_.replace(/[?&]$/, "");
3646
+ var options_ = {
3647
+ observe: "response",
3648
+ responseType: "blob",
3649
+ headers: new i1.HttpHeaders({
3650
+ "Accept": "application/json"
3651
+ })
3652
+ };
3653
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3654
+ return _this.http.request("get", url_, transformedOptions_);
3655
+ })).pipe(operators.mergeMap(function (response_) {
3656
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetContentAsProtobuf(r); });
3657
+ })).pipe(operators.catchError(function (response_) {
3658
+ if (response_ instanceof i1.HttpResponseBase) {
3659
+ try {
3660
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetContentAsProtobuf(r); });
3661
+ }
3662
+ catch (e) {
3663
+ return rxjs.throwError(e);
3664
+ }
3665
+ }
3666
+ else
3667
+ return rxjs.throwError(response_);
3668
+ }));
3669
+ };
3670
+ DesignAtomsMockups3dApiClient.prototype.processGetContentAsProtobuf = function (response) {
3671
+ var e_36, _a;
3672
+ var _this = this;
3673
+ var status = response.status;
3674
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3675
+ response.error instanceof Blob ? response.error : undefined;
3676
+ var _headers = {};
3677
+ if (response.headers) {
3678
+ try {
3679
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3680
+ var key = _c.value;
3681
+ _headers[key] = response.headers.get(key);
3682
+ }
3683
+ }
3684
+ catch (e_36_1) { e_36 = { error: e_36_1 }; }
3685
+ finally {
3686
+ try {
3687
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3688
+ }
3689
+ finally { if (e_36) throw e_36.error; }
3690
+ }
3691
+ }
3692
+ if (status === 200 || status === 206) {
3693
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
3694
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
3695
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
3696
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
3697
+ }
3698
+ else if (status === 404) {
3699
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3700
+ var result404 = null;
3701
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3702
+ return throwException("Not Found", status, _responseText, _headers, result404);
3703
+ }));
3704
+ }
3705
+ else if (status === 422) {
3706
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3707
+ var result422 = null;
3708
+ result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3709
+ return throwException("Client Error", status, _responseText, _headers, result422);
3710
+ }));
3711
+ }
3712
+ else if (status === 401) {
3713
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3714
+ return throwException("Unauthorized", status, _responseText, _headers);
3715
+ }));
3716
+ }
3717
+ else if (status === 403) {
3718
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3719
+ return throwException("Forbidden", status, _responseText, _headers);
3720
+ }));
3721
+ }
3722
+ else if (status !== 200 && status !== 204) {
3723
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3724
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3725
+ }));
3726
+ }
3727
+ return rxjs.of(null);
3728
+ };
3729
+ /**
3730
+ * Returns a 3D-Mockup geometry as binary stream.
3731
+ * @param id 3D-Mockup identifier.
3732
+ * @param ownerId (optional) Private mockup owner identifier.
3733
+ * @param tenantId (optional) Tenant identifier
3734
+ * @return Success
3735
+ */
3736
+ DesignAtomsMockups3dApiClient.prototype.getGeometryFile = function (id, ownerId, tenantId) {
3737
+ var _this = this;
3738
+ var url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/geometry/file?";
3739
+ if (id === undefined || id === null)
3740
+ throw new Error("The parameter 'id' must be defined.");
3741
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3742
+ if (ownerId !== undefined && ownerId !== null)
3743
+ url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
3744
+ if (tenantId === null)
3745
+ throw new Error("The parameter 'tenantId' cannot be null.");
3746
+ else if (tenantId !== undefined)
3747
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3748
+ url_ = url_.replace(/[?&]$/, "");
3749
+ var options_ = {
3750
+ observe: "response",
3751
+ responseType: "blob",
3752
+ headers: new i1.HttpHeaders({
3753
+ "Accept": "application/json"
3754
+ })
3755
+ };
3756
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3757
+ return _this.http.request("get", url_, transformedOptions_);
3758
+ })).pipe(operators.mergeMap(function (response_) {
3759
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetGeometryFile(r); });
3760
+ })).pipe(operators.catchError(function (response_) {
3761
+ if (response_ instanceof i1.HttpResponseBase) {
3762
+ try {
3763
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetGeometryFile(r); });
3764
+ }
3765
+ catch (e) {
3766
+ return rxjs.throwError(e);
3767
+ }
3768
+ }
3769
+ else
3770
+ return rxjs.throwError(response_);
3771
+ }));
3772
+ };
3773
+ DesignAtomsMockups3dApiClient.prototype.processGetGeometryFile = function (response) {
3774
+ var e_37, _a;
3775
+ var _this = this;
3776
+ var status = response.status;
3777
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3778
+ response.error instanceof Blob ? response.error : undefined;
3779
+ var _headers = {};
3780
+ if (response.headers) {
3781
+ try {
3782
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3783
+ var key = _c.value;
3784
+ _headers[key] = response.headers.get(key);
3785
+ }
3786
+ }
3787
+ catch (e_37_1) { e_37 = { error: e_37_1 }; }
3788
+ finally {
3789
+ try {
3790
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3791
+ }
3792
+ finally { if (e_37) throw e_37.error; }
3793
+ }
3794
+ }
3795
+ if (status === 200 || status === 206) {
3796
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
3797
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
3798
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
3799
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
3800
+ }
3801
+ else if (status === 404) {
3802
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3803
+ var result404 = null;
3804
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3805
+ return throwException("Not Found", status, _responseText, _headers, result404);
3806
+ }));
3807
+ }
3808
+ else if (status === 422) {
3809
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3810
+ var result422 = null;
3811
+ result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3812
+ return throwException("Client Error", status, _responseText, _headers, result422);
3813
+ }));
3814
+ }
3815
+ else if (status === 401) {
3816
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3817
+ return throwException("Unauthorized", status, _responseText, _headers);
3818
+ }));
3819
+ }
3820
+ else if (status === 403) {
3821
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3822
+ return throwException("Forbidden", status, _responseText, _headers);
3823
+ }));
3824
+ }
3825
+ else if (status !== 200 && status !== 204) {
3826
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3827
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3828
+ }));
3829
+ }
3830
+ return rxjs.of(null);
3831
+ };
3832
+ return DesignAtomsMockups3dApiClient;
3833
+ }(ApiClientBase));
3834
+ DesignAtomsMockups3dApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function DesignAtomsMockups3dApiClient_Factory() { return new DesignAtomsMockups3dApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsMockups3dApiClient, providedIn: "root" });
3835
+ DesignAtomsMockups3dApiClient.decorators = [
3836
+ { type: i0.Injectable, args: [{
3837
+ providedIn: 'root'
3838
+ },] }
3839
+ ];
3840
+ DesignAtomsMockups3dApiClient.ctorParameters = function () { return [
3841
+ { type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
3842
+ { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
3843
+ { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
3844
+ ]; };
3845
+ var DesignAtomsServiceApiClient = /** @class */ (function (_super) {
3846
+ __extends(DesignAtomsServiceApiClient, _super);
3847
+ function DesignAtomsServiceApiClient(configuration, http, baseUrl) {
3848
+ var _this = _super.call(this, configuration) || this;
3849
+ _this.jsonParseReviver = undefined;
3850
+ _this.http = http;
3851
+ _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
3852
+ return _this;
3853
+ }
3854
+ /**
3855
+ * Creates new design file with specified parameters and saves it in storage.
3856
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3857
+ * @param tenantId (optional) Tenant identifier
3858
+ * @param body (optional) Design creation parameters.
3859
+ * @return Created
3860
+ */
3861
+ DesignAtomsServiceApiClient.prototype.createDesign = function (privateStorageOwner, tenantId, body) {
3862
+ var _this = this;
3863
+ var url_ = this.baseUrl + "/api/atoms/v1/designs?";
3864
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3865
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3866
+ if (tenantId === null)
3867
+ throw new Error("The parameter 'tenantId' cannot be null.");
3868
+ else if (tenantId !== undefined)
3869
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3870
+ url_ = url_.replace(/[?&]$/, "");
3871
+ var content_ = JSON.stringify(body);
3872
+ var options_ = {
3873
+ body: content_,
3874
+ observe: "response",
3875
+ responseType: "blob",
3876
+ headers: new i1.HttpHeaders({
3877
+ "Content-Type": "application/json",
3878
+ "Accept": "application/json"
3879
+ })
3880
+ };
3881
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3882
+ return _this.http.request("post", url_, transformedOptions_);
3883
+ })).pipe(operators.mergeMap(function (response_) {
3884
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateDesign(r); });
3885
+ })).pipe(operators.catchError(function (response_) {
3886
+ if (response_ instanceof i1.HttpResponseBase) {
3887
+ try {
3888
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateDesign(r); });
3889
+ }
3890
+ catch (e) {
3891
+ return rxjs.throwError(e);
3892
+ }
3893
+ }
3894
+ else
3895
+ return rxjs.throwError(response_);
3896
+ }));
3897
+ };
3898
+ DesignAtomsServiceApiClient.prototype.processCreateDesign = function (response) {
3899
+ var e_38, _a;
3900
+ var _this = this;
3901
+ var status = response.status;
3902
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3903
+ response.error instanceof Blob ? response.error : undefined;
3904
+ var _headers = {};
3905
+ if (response.headers) {
3906
+ try {
3907
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
3908
+ var key = _c.value;
3909
+ _headers[key] = response.headers.get(key);
3910
+ }
3911
+ }
3912
+ catch (e_38_1) { e_38 = { error: e_38_1 }; }
3913
+ finally {
3914
+ try {
3915
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3916
+ }
3917
+ finally { if (e_38) throw e_38.error; }
3918
+ }
3919
+ }
3920
+ if (status === 201) {
3921
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3922
+ var result201 = null;
3923
+ result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3924
+ return rxjs.of(result201);
3925
+ }));
3926
+ }
3927
+ else if (status === 401) {
3928
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3929
+ return throwException("Unauthorized", status, _responseText, _headers);
3930
+ }));
3931
+ }
3932
+ else if (status === 403) {
3933
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3934
+ return throwException("Forbidden", status, _responseText, _headers);
3935
+ }));
3936
+ }
3937
+ else if (status !== 200 && status !== 204) {
3938
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3939
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3940
+ }));
3941
+ }
3942
+ return rxjs.of(null);
3943
+ };
3944
+ /**
3945
+ * Returns content of the background.
3946
+ * @param id Design identifier.
3947
+ * @param surfaceIndex (optional) Surface index.
3948
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3949
+ * @param tenantId (optional) Tenant identifier
3950
+ * @return Success
3951
+ */
3952
+ DesignAtomsServiceApiClient.prototype.extractBackground = function (id, surfaceIndex, privateStorageOwner, tenantId) {
3953
+ var _this = this;
3954
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/background?";
3955
+ if (id === undefined || id === null)
3956
+ throw new Error("The parameter 'id' must be defined.");
3957
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3958
+ if (surfaceIndex !== undefined && surfaceIndex !== null)
3959
+ url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
3960
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3961
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3962
+ if (tenantId === null)
3963
+ throw new Error("The parameter 'tenantId' cannot be null.");
3964
+ else if (tenantId !== undefined)
3965
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3966
+ url_ = url_.replace(/[?&]$/, "");
3967
+ var options_ = {
3968
+ observe: "response",
3969
+ responseType: "blob",
3970
+ headers: new i1.HttpHeaders({
3971
+ "Accept": "application/octet-stream"
3972
+ })
3973
+ };
3974
+ return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3975
+ return _this.http.request("get", url_, transformedOptions_);
3976
+ })).pipe(operators.mergeMap(function (response_) {
3977
+ return _this.transformResult(url_, response_, function (r) { return _this.processExtractBackground(r); });
3978
+ })).pipe(operators.catchError(function (response_) {
3979
+ if (response_ instanceof i1.HttpResponseBase) {
3980
+ try {
3981
+ return _this.transformResult(url_, response_, function (r) { return _this.processExtractBackground(r); });
3982
+ }
3983
+ catch (e) {
3984
+ return rxjs.throwError(e);
3985
+ }
3986
+ }
3987
+ else
3988
+ return rxjs.throwError(response_);
3989
+ }));
3990
+ };
3991
+ DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
3992
+ var e_39, _a;
3993
+ var _this = this;
3994
+ var status = response.status;
3995
+ var responseBlob = response instanceof i1.HttpResponse ? response.body :
3996
+ response.error instanceof Blob ? response.error : undefined;
3997
+ var _headers = {};
3998
+ if (response.headers) {
3999
+ try {
4000
+ for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
4001
+ var key = _c.value;
4002
+ _headers[key] = response.headers.get(key);
4003
+ }
4004
+ }
4005
+ catch (e_39_1) { e_39 = { error: e_39_1 }; }
4006
+ finally {
4007
+ try {
4008
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4009
+ }
4010
+ finally { if (e_39) throw e_39.error; }
4011
+ }
4012
+ }
4013
+ if (status === 200 || status === 206) {
4014
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
4015
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
4016
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4017
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4018
+ }
4019
+ else if (status === 404) {
4020
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4021
+ var result404 = null;
4022
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4023
+ return throwException("Not Found", status, _responseText, _headers, result404);
4024
+ }));
4025
+ }
4026
+ else if (status === 422) {
4027
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4028
+ var result422 = null;
4029
+ result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4030
+ return throwException("Client Error", status, _responseText, _headers, result422);
4031
+ }));
4032
+ }
4033
+ else if (status === 401) {
4034
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4035
+ return throwException("Unauthorized", status, _responseText, _headers);
4036
+ }));
4037
+ }
4038
+ else if (status === 403) {
4039
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4040
+ return throwException("Forbidden", status, _responseText, _headers);
4041
+ }));
4042
+ }
4043
+ else if (status !== 200 && status !== 204) {
4044
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4045
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4046
+ }));
4047
+ }
4048
+ return rxjs.of(null);
4049
+ };
4050
+ /**
4051
+ * Loads product (design model) from design file taken from storage.
4052
+ * @param id Design identifier.
4053
+ * @param privateStorageOwner (optional) Private storage owner identifier.
2979
4054
  * @param tenantId (optional) Tenant identifier
2980
- * @param body (optional) Render model with preview parameters.
2981
4055
  * @return Success
2982
4056
  */
2983
- DesignAtomsImagesApiClient.prototype.renderImagePreviewToResource = function (tenantId, body) {
4057
+ DesignAtomsServiceApiClient.prototype.loadProduct = function (id, privateStorageOwner, tenantId) {
2984
4058
  var _this = this;
2985
- var url_ = this.baseUrl + "/api/atoms/v1/images/render-preview/to-resource?";
4059
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
4060
+ if (id === undefined || id === null)
4061
+ throw new Error("The parameter 'id' must be defined.");
4062
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4063
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4064
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2986
4065
  if (tenantId === null)
2987
4066
  throw new Error("The parameter 'tenantId' cannot be null.");
2988
4067
  else if (tenantId !== undefined)
2989
4068
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2990
4069
  url_ = url_.replace(/[?&]$/, "");
2991
- var content_ = JSON.stringify(body);
2992
4070
  var options_ = {
2993
- body: content_,
2994
4071
  observe: "response",
2995
4072
  responseType: "blob",
2996
4073
  headers: new i1.HttpHeaders({
2997
- "Content-Type": "application/json",
2998
4074
  "Accept": "application/json"
2999
4075
  })
3000
4076
  };
3001
4077
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3002
- return _this.http.request("post", url_, transformedOptions_);
4078
+ return _this.http.request("get", url_, transformedOptions_);
3003
4079
  })).pipe(operators.mergeMap(function (response_) {
3004
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewToResource(r); });
4080
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadProduct(r); });
3005
4081
  })).pipe(operators.catchError(function (response_) {
3006
4082
  if (response_ instanceof i1.HttpResponseBase) {
3007
4083
  try {
3008
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderImagePreviewToResource(r); });
4084
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadProduct(r); });
3009
4085
  }
3010
4086
  catch (e) {
3011
4087
  return rxjs.throwError(e);
@@ -3015,8 +4091,8 @@
3015
4091
  return rxjs.throwError(response_);
3016
4092
  }));
3017
4093
  };
3018
- DesignAtomsImagesApiClient.prototype.processRenderImagePreviewToResource = function (response) {
3019
- var e_30, _a;
4094
+ DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
4095
+ var e_40, _a;
3020
4096
  var _this = this;
3021
4097
  var status = response.status;
3022
4098
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3029,12 +4105,12 @@
3029
4105
  _headers[key] = response.headers.get(key);
3030
4106
  }
3031
4107
  }
3032
- catch (e_30_1) { e_30 = { error: e_30_1 }; }
4108
+ catch (e_40_1) { e_40 = { error: e_40_1 }; }
3033
4109
  finally {
3034
4110
  try {
3035
4111
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3036
4112
  }
3037
- finally { if (e_30) throw e_30.error; }
4113
+ finally { if (e_40) throw e_40.error; }
3038
4114
  }
3039
4115
  }
3040
4116
  if (status === 200) {
@@ -3044,6 +4120,13 @@
3044
4120
  return rxjs.of(result200);
3045
4121
  }));
3046
4122
  }
4123
+ else if (status === 404) {
4124
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4125
+ var result404 = null;
4126
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4127
+ return throwException("Not Found", status, _responseText, _headers, result404);
4128
+ }));
4129
+ }
3047
4130
  else if (status === 401) {
3048
4131
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3049
4132
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3061,63 +4144,44 @@
3061
4144
  }
3062
4145
  return rxjs.of(null);
3063
4146
  };
3064
- return DesignAtomsImagesApiClient;
3065
- }(ApiClientBase));
3066
- DesignAtomsImagesApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function DesignAtomsImagesApiClient_Factory() { return new DesignAtomsImagesApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsImagesApiClient, providedIn: "root" });
3067
- DesignAtomsImagesApiClient.decorators = [
3068
- { type: i0.Injectable, args: [{
3069
- providedIn: 'root'
3070
- },] }
3071
- ];
3072
- DesignAtomsImagesApiClient.ctorParameters = function () { return [
3073
- { type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
3074
- { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
3075
- { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
3076
- ]; };
3077
- var DesignAtomsMockups3dApiClient = /** @class */ (function (_super) {
3078
- __extends(DesignAtomsMockups3dApiClient, _super);
3079
- function DesignAtomsMockups3dApiClient(configuration, http, baseUrl) {
3080
- var _this = _super.call(this, configuration) || this;
3081
- _this.jsonParseReviver = undefined;
3082
- _this.http = http;
3083
- _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
3084
- return _this;
3085
- }
3086
4147
  /**
3087
- * Returns a 3D-Mockup attributes.
3088
- * @param id 3D-Mockup identifier.
3089
- * @param ownerId (optional) Private mockup owner identifier.
4148
+ * Saves product (design model) to design file and updates design in storage.
4149
+ * @param id Design identifier.
4150
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3090
4151
  * @param tenantId (optional) Tenant identifier
4152
+ * @param body (optional) Serialized product description.
3091
4153
  * @return Success
3092
4154
  */
3093
- DesignAtomsMockups3dApiClient.prototype.getAttributes = function (id, ownerId, tenantId) {
4155
+ DesignAtomsServiceApiClient.prototype.saveProduct = function (id, privateStorageOwner, tenantId, body) {
3094
4156
  var _this = this;
3095
- var url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/attributes?";
4157
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
3096
4158
  if (id === undefined || id === null)
3097
4159
  throw new Error("The parameter 'id' must be defined.");
3098
4160
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3099
- if (ownerId !== undefined && ownerId !== null)
3100
- url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
4161
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4162
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3101
4163
  if (tenantId === null)
3102
4164
  throw new Error("The parameter 'tenantId' cannot be null.");
3103
4165
  else if (tenantId !== undefined)
3104
4166
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3105
4167
  url_ = url_.replace(/[?&]$/, "");
4168
+ var content_ = JSON.stringify(body);
3106
4169
  var options_ = {
4170
+ body: content_,
3107
4171
  observe: "response",
3108
4172
  responseType: "blob",
3109
4173
  headers: new i1.HttpHeaders({
3110
- "Accept": "application/json"
4174
+ "Content-Type": "application/json",
3111
4175
  })
3112
4176
  };
3113
4177
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3114
- return _this.http.request("get", url_, transformedOptions_);
4178
+ return _this.http.request("put", url_, transformedOptions_);
3115
4179
  })).pipe(operators.mergeMap(function (response_) {
3116
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAttributes(r); });
4180
+ return _this.transformResult(url_, response_, function (r) { return _this.processSaveProduct(r); });
3117
4181
  })).pipe(operators.catchError(function (response_) {
3118
4182
  if (response_ instanceof i1.HttpResponseBase) {
3119
4183
  try {
3120
- return _this.transformResult(url_, response_, function (r) { return _this.processGetAttributes(r); });
4184
+ return _this.transformResult(url_, response_, function (r) { return _this.processSaveProduct(r); });
3121
4185
  }
3122
4186
  catch (e) {
3123
4187
  return rxjs.throwError(e);
@@ -3127,8 +4191,8 @@
3127
4191
  return rxjs.throwError(response_);
3128
4192
  }));
3129
4193
  };
3130
- DesignAtomsMockups3dApiClient.prototype.processGetAttributes = function (response) {
3131
- var e_31, _a;
4194
+ DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
4195
+ var e_41, _a;
3132
4196
  var _this = this;
3133
4197
  var status = response.status;
3134
4198
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3141,19 +4205,17 @@
3141
4205
  _headers[key] = response.headers.get(key);
3142
4206
  }
3143
4207
  }
3144
- catch (e_31_1) { e_31 = { error: e_31_1 }; }
4208
+ catch (e_41_1) { e_41 = { error: e_41_1 }; }
3145
4209
  finally {
3146
4210
  try {
3147
4211
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3148
4212
  }
3149
- finally { if (e_31) throw e_31.error; }
4213
+ finally { if (e_41) throw e_41.error; }
3150
4214
  }
3151
4215
  }
3152
4216
  if (status === 200) {
3153
4217
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3154
- var result200 = null;
3155
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3156
- return rxjs.of(result200);
4218
+ return rxjs.of(null);
3157
4219
  }));
3158
4220
  }
3159
4221
  else if (status === 404) {
@@ -3163,13 +4225,6 @@
3163
4225
  return throwException("Not Found", status, _responseText, _headers, result404);
3164
4226
  }));
3165
4227
  }
3166
- else if (status === 422) {
3167
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3168
- var result422 = null;
3169
- result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3170
- return throwException("Client Error", status, _responseText, _headers, result422);
3171
- }));
3172
- }
3173
4228
  else if (status === 401) {
3174
4229
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3175
4230
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3188,40 +4243,62 @@
3188
4243
  return rxjs.of(null);
3189
4244
  };
3190
4245
  /**
3191
- * Returns a 3D-Mockup content as protobuf binary stream.
3192
- * @param id 3D-Mockup identifier.
3193
- * @param ownerId (optional) Private mockup owner identifier.
4246
+ * Patches product (design model) in design file.
4247
+ * @param id Design identifier.
4248
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3194
4249
  * @param tenantId (optional) Tenant identifier
4250
+ * @param patchType (optional)
4251
+ * @param replaceImageItemFileInfo_itemName (optional)
4252
+ * @param replaceImageItemFileInfo_sourceFile (optional)
4253
+ * @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
4254
+ * @param replacePlaceholderItemContentInfo_newContentType (optional)
4255
+ * @param replacePlaceholderItemContentInfo_sourceFile (optional)
3195
4256
  * @return Success
3196
4257
  */
3197
- DesignAtomsMockups3dApiClient.prototype.getContentAsProtobuf = function (id, ownerId, tenantId) {
4258
+ DesignAtomsServiceApiClient.prototype.patchProduct = function (id, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, replacePlaceholderItemContentInfo_placeholderItemName, replacePlaceholderItemContentInfo_newContentType, replacePlaceholderItemContentInfo_sourceFile) {
3198
4259
  var _this = this;
3199
- var url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/content/as-protobuf?";
4260
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
3200
4261
  if (id === undefined || id === null)
3201
4262
  throw new Error("The parameter 'id' must be defined.");
3202
4263
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3203
- if (ownerId !== undefined && ownerId !== null)
3204
- url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
4264
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4265
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3205
4266
  if (tenantId === null)
3206
4267
  throw new Error("The parameter 'tenantId' cannot be null.");
3207
4268
  else if (tenantId !== undefined)
3208
4269
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3209
4270
  url_ = url_.replace(/[?&]$/, "");
4271
+ var content_ = new FormData();
4272
+ if (patchType === null || patchType === undefined)
4273
+ throw new Error("The parameter 'patchType' cannot be null.");
4274
+ else
4275
+ content_.append("patchType", patchType.toString());
4276
+ if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
4277
+ content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
4278
+ if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
4279
+ content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
4280
+ if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
4281
+ content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
4282
+ if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
4283
+ throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
4284
+ else
4285
+ content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
4286
+ if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
4287
+ content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
3210
4288
  var options_ = {
4289
+ body: content_,
3211
4290
  observe: "response",
3212
4291
  responseType: "blob",
3213
- headers: new i1.HttpHeaders({
3214
- "Accept": "application/json"
3215
- })
4292
+ headers: new i1.HttpHeaders({})
3216
4293
  };
3217
4294
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3218
- return _this.http.request("get", url_, transformedOptions_);
4295
+ return _this.http.request("patch", url_, transformedOptions_);
3219
4296
  })).pipe(operators.mergeMap(function (response_) {
3220
- return _this.transformResult(url_, response_, function (r) { return _this.processGetContentAsProtobuf(r); });
4297
+ return _this.transformResult(url_, response_, function (r) { return _this.processPatchProduct(r); });
3221
4298
  })).pipe(operators.catchError(function (response_) {
3222
4299
  if (response_ instanceof i1.HttpResponseBase) {
3223
4300
  try {
3224
- return _this.transformResult(url_, response_, function (r) { return _this.processGetContentAsProtobuf(r); });
4301
+ return _this.transformResult(url_, response_, function (r) { return _this.processPatchProduct(r); });
3225
4302
  }
3226
4303
  catch (e) {
3227
4304
  return rxjs.throwError(e);
@@ -3231,8 +4308,8 @@
3231
4308
  return rxjs.throwError(response_);
3232
4309
  }));
3233
4310
  };
3234
- DesignAtomsMockups3dApiClient.prototype.processGetContentAsProtobuf = function (response) {
3235
- var e_32, _a;
4311
+ DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
4312
+ var e_42, _a;
3236
4313
  var _this = this;
3237
4314
  var status = response.status;
3238
4315
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3245,19 +4322,18 @@
3245
4322
  _headers[key] = response.headers.get(key);
3246
4323
  }
3247
4324
  }
3248
- catch (e_32_1) { e_32 = { error: e_32_1 }; }
4325
+ catch (e_42_1) { e_42 = { error: e_42_1 }; }
3249
4326
  finally {
3250
4327
  try {
3251
4328
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3252
4329
  }
3253
- finally { if (e_32) throw e_32.error; }
4330
+ finally { if (e_42) throw e_42.error; }
3254
4331
  }
3255
4332
  }
3256
- if (status === 200 || status === 206) {
3257
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
3258
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
3259
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
3260
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4333
+ if (status === 200) {
4334
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4335
+ return rxjs.of(null);
4336
+ }));
3261
4337
  }
3262
4338
  else if (status === 404) {
3263
4339
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -3266,13 +4342,6 @@
3266
4342
  return throwException("Not Found", status, _responseText, _headers, result404);
3267
4343
  }));
3268
4344
  }
3269
- else if (status === 422) {
3270
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3271
- var result422 = null;
3272
- result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3273
- return throwException("Client Error", status, _responseText, _headers, result422);
3274
- }));
3275
- }
3276
4345
  else if (status === 401) {
3277
4346
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3278
4347
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3291,20 +4360,20 @@
3291
4360
  return rxjs.of(null);
3292
4361
  };
3293
4362
  /**
3294
- * Returns a 3D-Mockup geometry as binary stream.
3295
- * @param id 3D-Mockup identifier.
3296
- * @param ownerId (optional) Private mockup owner identifier.
4363
+ * Returns design parameters stored in product model.
4364
+ * @param id Design identifier.
4365
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3297
4366
  * @param tenantId (optional) Tenant identifier
3298
4367
  * @return Success
3299
4368
  */
3300
- DesignAtomsMockups3dApiClient.prototype.getGeometryFile = function (id, ownerId, tenantId) {
4369
+ DesignAtomsServiceApiClient.prototype.getDesignParameters = function (id, privateStorageOwner, tenantId) {
3301
4370
  var _this = this;
3302
- var url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/geometry/file?";
4371
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/parameters?";
3303
4372
  if (id === undefined || id === null)
3304
4373
  throw new Error("The parameter 'id' must be defined.");
3305
4374
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3306
- if (ownerId !== undefined && ownerId !== null)
3307
- url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
4375
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4376
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3308
4377
  if (tenantId === null)
3309
4378
  throw new Error("The parameter 'tenantId' cannot be null.");
3310
4379
  else if (tenantId !== undefined)
@@ -3320,11 +4389,11 @@
3320
4389
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3321
4390
  return _this.http.request("get", url_, transformedOptions_);
3322
4391
  })).pipe(operators.mergeMap(function (response_) {
3323
- return _this.transformResult(url_, response_, function (r) { return _this.processGetGeometryFile(r); });
4392
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignParameters(r); });
3324
4393
  })).pipe(operators.catchError(function (response_) {
3325
4394
  if (response_ instanceof i1.HttpResponseBase) {
3326
4395
  try {
3327
- return _this.transformResult(url_, response_, function (r) { return _this.processGetGeometryFile(r); });
4396
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignParameters(r); });
3328
4397
  }
3329
4398
  catch (e) {
3330
4399
  return rxjs.throwError(e);
@@ -3334,8 +4403,8 @@
3334
4403
  return rxjs.throwError(response_);
3335
4404
  }));
3336
4405
  };
3337
- DesignAtomsMockups3dApiClient.prototype.processGetGeometryFile = function (response) {
3338
- var e_33, _a;
4406
+ DesignAtomsServiceApiClient.prototype.processGetDesignParameters = function (response) {
4407
+ var e_43, _a;
3339
4408
  var _this = this;
3340
4409
  var status = response.status;
3341
4410
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3348,19 +4417,20 @@
3348
4417
  _headers[key] = response.headers.get(key);
3349
4418
  }
3350
4419
  }
3351
- catch (e_33_1) { e_33 = { error: e_33_1 }; }
4420
+ catch (e_43_1) { e_43 = { error: e_43_1 }; }
3352
4421
  finally {
3353
4422
  try {
3354
4423
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3355
4424
  }
3356
- finally { if (e_33) throw e_33.error; }
4425
+ finally { if (e_43) throw e_43.error; }
3357
4426
  }
3358
4427
  }
3359
- if (status === 200 || status === 206) {
3360
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
3361
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
3362
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
3363
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4428
+ if (status === 200) {
4429
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4430
+ var result200 = null;
4431
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4432
+ return rxjs.of(result200);
4433
+ }));
3364
4434
  }
3365
4435
  else if (status === 404) {
3366
4436
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -3369,13 +4439,6 @@
3369
4439
  return throwException("Not Found", status, _responseText, _headers, result404);
3370
4440
  }));
3371
4441
  }
3372
- else if (status === 422) {
3373
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3374
- var result422 = null;
3375
- result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3376
- return throwException("Client Error", status, _responseText, _headers, result422);
3377
- }));
3378
- }
3379
4442
  else if (status === 401) {
3380
4443
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3381
4444
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3393,38 +4456,19 @@
3393
4456
  }
3394
4457
  return rxjs.of(null);
3395
4458
  };
3396
- return DesignAtomsMockups3dApiClient;
3397
- }(ApiClientBase));
3398
- DesignAtomsMockups3dApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function DesignAtomsMockups3dApiClient_Factory() { return new DesignAtomsMockups3dApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: DesignAtomsMockups3dApiClient, providedIn: "root" });
3399
- DesignAtomsMockups3dApiClient.decorators = [
3400
- { type: i0.Injectable, args: [{
3401
- providedIn: 'root'
3402
- },] }
3403
- ];
3404
- DesignAtomsMockups3dApiClient.ctorParameters = function () { return [
3405
- { type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
3406
- { type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
3407
- { type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
3408
- ]; };
3409
- var DesignAtomsServiceApiClient = /** @class */ (function (_super) {
3410
- __extends(DesignAtomsServiceApiClient, _super);
3411
- function DesignAtomsServiceApiClient(configuration, http, baseUrl) {
3412
- var _this = _super.call(this, configuration) || this;
3413
- _this.jsonParseReviver = undefined;
3414
- _this.http = http;
3415
- _this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
3416
- return _this;
3417
- }
3418
4459
  /**
3419
- * Creates new design file with specified parameters and saves it in storage.
4460
+ * Loads data schema from design file taken from storage.
4461
+ * @param id Design identifier.
3420
4462
  * @param privateStorageOwner (optional) Private storage owner identifier.
3421
4463
  * @param tenantId (optional) Tenant identifier
3422
- * @param body (optional) Design creation parameters.
3423
- * @return Created
4464
+ * @return Success
3424
4465
  */
3425
- DesignAtomsServiceApiClient.prototype.createDesign = function (privateStorageOwner, tenantId, body) {
4466
+ DesignAtomsServiceApiClient.prototype.loadDataSchema = function (id, privateStorageOwner, tenantId) {
3426
4467
  var _this = this;
3427
- var url_ = this.baseUrl + "/api/atoms/v1/designs?";
4468
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/schema?";
4469
+ if (id === undefined || id === null)
4470
+ throw new Error("The parameter 'id' must be defined.");
4471
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3428
4472
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3429
4473
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3430
4474
  if (tenantId === null)
@@ -3432,24 +4476,21 @@
3432
4476
  else if (tenantId !== undefined)
3433
4477
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3434
4478
  url_ = url_.replace(/[?&]$/, "");
3435
- var content_ = JSON.stringify(body);
3436
4479
  var options_ = {
3437
- body: content_,
3438
4480
  observe: "response",
3439
4481
  responseType: "blob",
3440
4482
  headers: new i1.HttpHeaders({
3441
- "Content-Type": "application/json",
3442
- "Accept": "application/json"
4483
+ "Accept": "application/octet-stream"
3443
4484
  })
3444
4485
  };
3445
4486
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3446
- return _this.http.request("post", url_, transformedOptions_);
4487
+ return _this.http.request("get", url_, transformedOptions_);
3447
4488
  })).pipe(operators.mergeMap(function (response_) {
3448
- return _this.transformResult(url_, response_, function (r) { return _this.processCreateDesign(r); });
4489
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadDataSchema(r); });
3449
4490
  })).pipe(operators.catchError(function (response_) {
3450
4491
  if (response_ instanceof i1.HttpResponseBase) {
3451
4492
  try {
3452
- return _this.transformResult(url_, response_, function (r) { return _this.processCreateDesign(r); });
4493
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadDataSchema(r); });
3453
4494
  }
3454
4495
  catch (e) {
3455
4496
  return rxjs.throwError(e);
@@ -3459,8 +4500,8 @@
3459
4500
  return rxjs.throwError(response_);
3460
4501
  }));
3461
4502
  };
3462
- DesignAtomsServiceApiClient.prototype.processCreateDesign = function (response) {
3463
- var e_34, _a;
4503
+ DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
4504
+ var e_44, _a;
3464
4505
  var _this = this;
3465
4506
  var status = response.status;
3466
4507
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3473,19 +4514,32 @@
3473
4514
  _headers[key] = response.headers.get(key);
3474
4515
  }
3475
4516
  }
3476
- catch (e_34_1) { e_34 = { error: e_34_1 }; }
4517
+ catch (e_44_1) { e_44 = { error: e_44_1 }; }
3477
4518
  finally {
3478
4519
  try {
3479
4520
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3480
4521
  }
3481
- finally { if (e_34) throw e_34.error; }
4522
+ finally { if (e_44) throw e_44.error; }
3482
4523
  }
3483
4524
  }
3484
- if (status === 201) {
4525
+ if (status === 200 || status === 206) {
4526
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
4527
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
4528
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4529
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4530
+ }
4531
+ else if (status === 404) {
3485
4532
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3486
- var result201 = null;
3487
- result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3488
- return rxjs.of(result201);
4533
+ var result404 = null;
4534
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4535
+ return throwException("Not Found", status, _responseText, _headers, result404);
4536
+ }));
4537
+ }
4538
+ else if (status === 409) {
4539
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4540
+ var result409 = null;
4541
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4542
+ return throwException("Conflict", status, _responseText, _headers, result409);
3489
4543
  }));
3490
4544
  }
3491
4545
  else if (status === 401) {
@@ -3506,21 +4560,18 @@
3506
4560
  return rxjs.of(null);
3507
4561
  };
3508
4562
  /**
3509
- * Returns content of the background.
4563
+ * Loads a toggle set from design file taken from storage.
3510
4564
  * @param id Design identifier.
3511
- * @param surfaceIndex (optional) Surface index.
3512
4565
  * @param privateStorageOwner (optional) Private storage owner identifier.
3513
4566
  * @param tenantId (optional) Tenant identifier
3514
4567
  * @return Success
3515
4568
  */
3516
- DesignAtomsServiceApiClient.prototype.extractBackground = function (id, surfaceIndex, privateStorageOwner, tenantId) {
4569
+ DesignAtomsServiceApiClient.prototype.loadToggleSet = function (id, privateStorageOwner, tenantId) {
3517
4570
  var _this = this;
3518
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/background?";
4571
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/toggle-set?";
3519
4572
  if (id === undefined || id === null)
3520
4573
  throw new Error("The parameter 'id' must be defined.");
3521
4574
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
3522
- if (surfaceIndex !== undefined && surfaceIndex !== null)
3523
- url_ += "surfaceIndex=" + encodeURIComponent("" + surfaceIndex) + "&";
3524
4575
  if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3525
4576
  url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3526
4577
  if (tenantId === null)
@@ -3538,11 +4589,11 @@
3538
4589
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3539
4590
  return _this.http.request("get", url_, transformedOptions_);
3540
4591
  })).pipe(operators.mergeMap(function (response_) {
3541
- return _this.transformResult(url_, response_, function (r) { return _this.processExtractBackground(r); });
4592
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadToggleSet(r); });
3542
4593
  })).pipe(operators.catchError(function (response_) {
3543
4594
  if (response_ instanceof i1.HttpResponseBase) {
3544
4595
  try {
3545
- return _this.transformResult(url_, response_, function (r) { return _this.processExtractBackground(r); });
4596
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadToggleSet(r); });
3546
4597
  }
3547
4598
  catch (e) {
3548
4599
  return rxjs.throwError(e);
@@ -3552,8 +4603,8 @@
3552
4603
  return rxjs.throwError(response_);
3553
4604
  }));
3554
4605
  };
3555
- DesignAtomsServiceApiClient.prototype.processExtractBackground = function (response) {
3556
- var e_35, _a;
4606
+ DesignAtomsServiceApiClient.prototype.processLoadToggleSet = function (response) {
4607
+ var e_45, _a;
3557
4608
  var _this = this;
3558
4609
  var status = response.status;
3559
4610
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3566,12 +4617,12 @@
3566
4617
  _headers[key] = response.headers.get(key);
3567
4618
  }
3568
4619
  }
3569
- catch (e_35_1) { e_35 = { error: e_35_1 }; }
4620
+ catch (e_45_1) { e_45 = { error: e_45_1 }; }
3570
4621
  finally {
3571
4622
  try {
3572
4623
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3573
4624
  }
3574
- finally { if (e_35) throw e_35.error; }
4625
+ finally { if (e_45) throw e_45.error; }
3575
4626
  }
3576
4627
  }
3577
4628
  if (status === 200 || status === 206) {
@@ -3587,11 +4638,11 @@
3587
4638
  return throwException("Not Found", status, _responseText, _headers, result404);
3588
4639
  }));
3589
4640
  }
3590
- else if (status === 422) {
4641
+ else if (status === 409) {
3591
4642
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3592
- var result422 = null;
3593
- result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3594
- return throwException("Client Error", status, _responseText, _headers, result422);
4643
+ var result409 = null;
4644
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4645
+ return throwException("Conflict", status, _responseText, _headers, result409);
3595
4646
  }));
3596
4647
  }
3597
4648
  else if (status === 401) {
@@ -3612,15 +4663,15 @@
3612
4663
  return rxjs.of(null);
3613
4664
  };
3614
4665
  /**
3615
- * Loads product (design model) from design file taken from storage.
4666
+ * Gets variable items information for design file taken from storage.
3616
4667
  * @param id Design identifier.
3617
4668
  * @param privateStorageOwner (optional) Private storage owner identifier.
3618
4669
  * @param tenantId (optional) Tenant identifier
3619
4670
  * @return Success
3620
4671
  */
3621
- DesignAtomsServiceApiClient.prototype.loadProduct = function (id, privateStorageOwner, tenantId) {
4672
+ DesignAtomsServiceApiClient.prototype.getVariables = function (id, privateStorageOwner, tenantId) {
3622
4673
  var _this = this;
3623
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
4674
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
3624
4675
  if (id === undefined || id === null)
3625
4676
  throw new Error("The parameter 'id' must be defined.");
3626
4677
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -3641,11 +4692,11 @@
3641
4692
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3642
4693
  return _this.http.request("get", url_, transformedOptions_);
3643
4694
  })).pipe(operators.mergeMap(function (response_) {
3644
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadProduct(r); });
4695
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetVariables(r); });
3645
4696
  })).pipe(operators.catchError(function (response_) {
3646
4697
  if (response_ instanceof i1.HttpResponseBase) {
3647
4698
  try {
3648
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadProduct(r); });
4699
+ return _this.transformResult(url_, response_, function (r) { return _this.processGetVariables(r); });
3649
4700
  }
3650
4701
  catch (e) {
3651
4702
  return rxjs.throwError(e);
@@ -3655,8 +4706,8 @@
3655
4706
  return rxjs.throwError(response_);
3656
4707
  }));
3657
4708
  };
3658
- DesignAtomsServiceApiClient.prototype.processLoadProduct = function (response) {
3659
- var e_36, _a;
4709
+ DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
4710
+ var e_46, _a;
3660
4711
  var _this = this;
3661
4712
  var status = response.status;
3662
4713
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3669,12 +4720,12 @@
3669
4720
  _headers[key] = response.headers.get(key);
3670
4721
  }
3671
4722
  }
3672
- catch (e_36_1) { e_36 = { error: e_36_1 }; }
4723
+ catch (e_46_1) { e_46 = { error: e_46_1 }; }
3673
4724
  finally {
3674
4725
  try {
3675
4726
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3676
4727
  }
3677
- finally { if (e_36) throw e_36.error; }
4728
+ finally { if (e_46) throw e_46.error; }
3678
4729
  }
3679
4730
  }
3680
4731
  if (status === 200) {
@@ -3709,16 +4760,16 @@
3709
4760
  return rxjs.of(null);
3710
4761
  };
3711
4762
  /**
3712
- * Saves product (design model) to design file and updates design in storage.
4763
+ * Sets variable items values for design file taken from storage.
3713
4764
  * @param id Design identifier.
3714
4765
  * @param privateStorageOwner (optional) Private storage owner identifier.
3715
4766
  * @param tenantId (optional) Tenant identifier
3716
- * @param body (optional) Serialized product description.
4767
+ * @param body (optional) Design variable values.
3717
4768
  * @return Success
3718
4769
  */
3719
- DesignAtomsServiceApiClient.prototype.saveProduct = function (id, privateStorageOwner, tenantId, body) {
4770
+ DesignAtomsServiceApiClient.prototype.setVariables = function (id, privateStorageOwner, tenantId, body) {
3720
4771
  var _this = this;
3721
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
4772
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
3722
4773
  if (id === undefined || id === null)
3723
4774
  throw new Error("The parameter 'id' must be defined.");
3724
4775
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -3741,11 +4792,11 @@
3741
4792
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3742
4793
  return _this.http.request("put", url_, transformedOptions_);
3743
4794
  })).pipe(operators.mergeMap(function (response_) {
3744
- return _this.transformResult(url_, response_, function (r) { return _this.processSaveProduct(r); });
4795
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetVariables(r); });
3745
4796
  })).pipe(operators.catchError(function (response_) {
3746
4797
  if (response_ instanceof i1.HttpResponseBase) {
3747
4798
  try {
3748
- return _this.transformResult(url_, response_, function (r) { return _this.processSaveProduct(r); });
4799
+ return _this.transformResult(url_, response_, function (r) { return _this.processSetVariables(r); });
3749
4800
  }
3750
4801
  catch (e) {
3751
4802
  return rxjs.throwError(e);
@@ -3755,8 +4806,8 @@
3755
4806
  return rxjs.throwError(response_);
3756
4807
  }));
3757
4808
  };
3758
- DesignAtomsServiceApiClient.prototype.processSaveProduct = function (response) {
3759
- var e_37, _a;
4809
+ DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
4810
+ var e_47, _a;
3760
4811
  var _this = this;
3761
4812
  var status = response.status;
3762
4813
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3769,12 +4820,12 @@
3769
4820
  _headers[key] = response.headers.get(key);
3770
4821
  }
3771
4822
  }
3772
- catch (e_37_1) { e_37 = { error: e_37_1 }; }
4823
+ catch (e_47_1) { e_47 = { error: e_47_1 }; }
3773
4824
  finally {
3774
4825
  try {
3775
4826
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3776
4827
  }
3777
- finally { if (e_37) throw e_37.error; }
4828
+ finally { if (e_47) throw e_47.error; }
3778
4829
  }
3779
4830
  }
3780
4831
  if (status === 200) {
@@ -3789,6 +4840,13 @@
3789
4840
  return throwException("Not Found", status, _responseText, _headers, result404);
3790
4841
  }));
3791
4842
  }
4843
+ else if (status === 409) {
4844
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4845
+ var result409 = null;
4846
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4847
+ return throwException("Conflict", status, _responseText, _headers, result409);
4848
+ }));
4849
+ }
3792
4850
  else if (status === 401) {
3793
4851
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3794
4852
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3807,21 +4865,15 @@
3807
4865
  return rxjs.of(null);
3808
4866
  };
3809
4867
  /**
3810
- * Patches product (design model) in design file.
4868
+ * Loads variable data printing information from design file taken from storage.
3811
4869
  * @param id Design identifier.
3812
4870
  * @param privateStorageOwner (optional) Private storage owner identifier.
3813
4871
  * @param tenantId (optional) Tenant identifier
3814
- * @param patchType (optional)
3815
- * @param replaceImageItemFileInfo_itemName (optional)
3816
- * @param replaceImageItemFileInfo_sourceFile (optional)
3817
- * @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
3818
- * @param replacePlaceholderItemContentInfo_newContentType (optional)
3819
- * @param replacePlaceholderItemContentInfo_sourceFile (optional)
3820
4872
  * @return Success
3821
4873
  */
3822
- DesignAtomsServiceApiClient.prototype.patchProduct = function (id, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, replacePlaceholderItemContentInfo_placeholderItemName, replacePlaceholderItemContentInfo_newContentType, replacePlaceholderItemContentInfo_sourceFile) {
4874
+ DesignAtomsServiceApiClient.prototype.loadVdpData = function (id, privateStorageOwner, tenantId) {
3823
4875
  var _this = this;
3824
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
4876
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
3825
4877
  if (id === undefined || id === null)
3826
4878
  throw new Error("The parameter 'id' must be defined.");
3827
4879
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -3832,37 +4884,21 @@
3832
4884
  else if (tenantId !== undefined)
3833
4885
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3834
4886
  url_ = url_.replace(/[?&]$/, "");
3835
- var content_ = new FormData();
3836
- if (patchType === null || patchType === undefined)
3837
- throw new Error("The parameter 'patchType' cannot be null.");
3838
- else
3839
- content_.append("patchType", patchType.toString());
3840
- if (replaceImageItemFileInfo_itemName !== null && replaceImageItemFileInfo_itemName !== undefined)
3841
- content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
3842
- if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
3843
- content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
3844
- if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
3845
- content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
3846
- if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
3847
- throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
3848
- else
3849
- content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
3850
- if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
3851
- content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
3852
4887
  var options_ = {
3853
- body: content_,
3854
4888
  observe: "response",
3855
4889
  responseType: "blob",
3856
- headers: new i1.HttpHeaders({})
4890
+ headers: new i1.HttpHeaders({
4891
+ "Accept": "application/json"
4892
+ })
3857
4893
  };
3858
4894
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3859
- return _this.http.request("patch", url_, transformedOptions_);
4895
+ return _this.http.request("get", url_, transformedOptions_);
3860
4896
  })).pipe(operators.mergeMap(function (response_) {
3861
- return _this.transformResult(url_, response_, function (r) { return _this.processPatchProduct(r); });
4897
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadVdpData(r); });
3862
4898
  })).pipe(operators.catchError(function (response_) {
3863
4899
  if (response_ instanceof i1.HttpResponseBase) {
3864
4900
  try {
3865
- return _this.transformResult(url_, response_, function (r) { return _this.processPatchProduct(r); });
4901
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadVdpData(r); });
3866
4902
  }
3867
4903
  catch (e) {
3868
4904
  return rxjs.throwError(e);
@@ -3872,8 +4908,8 @@
3872
4908
  return rxjs.throwError(response_);
3873
4909
  }));
3874
4910
  };
3875
- DesignAtomsServiceApiClient.prototype.processPatchProduct = function (response) {
3876
- var e_38, _a;
4911
+ DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
4912
+ var e_48, _a;
3877
4913
  var _this = this;
3878
4914
  var status = response.status;
3879
4915
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3886,17 +4922,19 @@
3886
4922
  _headers[key] = response.headers.get(key);
3887
4923
  }
3888
4924
  }
3889
- catch (e_38_1) { e_38 = { error: e_38_1 }; }
4925
+ catch (e_48_1) { e_48 = { error: e_48_1 }; }
3890
4926
  finally {
3891
4927
  try {
3892
4928
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3893
4929
  }
3894
- finally { if (e_38) throw e_38.error; }
4930
+ finally { if (e_48) throw e_48.error; }
3895
4931
  }
3896
4932
  }
3897
4933
  if (status === 200) {
3898
4934
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3899
- return rxjs.of(null);
4935
+ var result200 = null;
4936
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4937
+ return rxjs.of(result200);
3900
4938
  }));
3901
4939
  }
3902
4940
  else if (status === 404) {
@@ -3906,6 +4944,13 @@
3906
4944
  return throwException("Not Found", status, _responseText, _headers, result404);
3907
4945
  }));
3908
4946
  }
4947
+ else if (status === 409) {
4948
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4949
+ var result409 = null;
4950
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4951
+ return throwException("Conflict", status, _responseText, _headers, result409);
4952
+ }));
4953
+ }
3909
4954
  else if (status === 401) {
3910
4955
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3911
4956
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -3924,15 +4969,16 @@
3924
4969
  return rxjs.of(null);
3925
4970
  };
3926
4971
  /**
3927
- * Returns design parameters stored in product model.
4972
+ * Saves variable data printing information to design file and updates design in storage.
3928
4973
  * @param id Design identifier.
3929
4974
  * @param privateStorageOwner (optional) Private storage owner identifier.
3930
4975
  * @param tenantId (optional) Tenant identifier
4976
+ * @param body (optional) Serialized vdp data.
3931
4977
  * @return Success
3932
4978
  */
3933
- DesignAtomsServiceApiClient.prototype.getDesignParameters = function (id, privateStorageOwner, tenantId) {
4979
+ DesignAtomsServiceApiClient.prototype.saveVdpData = function (id, privateStorageOwner, tenantId, body) {
3934
4980
  var _this = this;
3935
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/parameters?";
4981
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
3936
4982
  if (id === undefined || id === null)
3937
4983
  throw new Error("The parameter 'id' must be defined.");
3938
4984
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -3943,21 +4989,23 @@
3943
4989
  else if (tenantId !== undefined)
3944
4990
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3945
4991
  url_ = url_.replace(/[?&]$/, "");
4992
+ var content_ = JSON.stringify(body);
3946
4993
  var options_ = {
4994
+ body: content_,
3947
4995
  observe: "response",
3948
4996
  responseType: "blob",
3949
4997
  headers: new i1.HttpHeaders({
3950
- "Accept": "application/json"
4998
+ "Content-Type": "application/json",
3951
4999
  })
3952
5000
  };
3953
5001
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
3954
- return _this.http.request("get", url_, transformedOptions_);
5002
+ return _this.http.request("put", url_, transformedOptions_);
3955
5003
  })).pipe(operators.mergeMap(function (response_) {
3956
- return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignParameters(r); });
5004
+ return _this.transformResult(url_, response_, function (r) { return _this.processSaveVdpData(r); });
3957
5005
  })).pipe(operators.catchError(function (response_) {
3958
5006
  if (response_ instanceof i1.HttpResponseBase) {
3959
5007
  try {
3960
- return _this.transformResult(url_, response_, function (r) { return _this.processGetDesignParameters(r); });
5008
+ return _this.transformResult(url_, response_, function (r) { return _this.processSaveVdpData(r); });
3961
5009
  }
3962
5010
  catch (e) {
3963
5011
  return rxjs.throwError(e);
@@ -3967,8 +5015,8 @@
3967
5015
  return rxjs.throwError(response_);
3968
5016
  }));
3969
5017
  };
3970
- DesignAtomsServiceApiClient.prototype.processGetDesignParameters = function (response) {
3971
- var e_39, _a;
5018
+ DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
5019
+ var e_49, _a;
3972
5020
  var _this = this;
3973
5021
  var status = response.status;
3974
5022
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -3981,19 +5029,17 @@
3981
5029
  _headers[key] = response.headers.get(key);
3982
5030
  }
3983
5031
  }
3984
- catch (e_39_1) { e_39 = { error: e_39_1 }; }
5032
+ catch (e_49_1) { e_49 = { error: e_49_1 }; }
3985
5033
  finally {
3986
5034
  try {
3987
5035
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
3988
5036
  }
3989
- finally { if (e_39) throw e_39.error; }
5037
+ finally { if (e_49) throw e_49.error; }
3990
5038
  }
3991
5039
  }
3992
5040
  if (status === 200) {
3993
5041
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
3994
- var result200 = null;
3995
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
3996
- return rxjs.of(result200);
5042
+ return rxjs.of(null);
3997
5043
  }));
3998
5044
  }
3999
5045
  else if (status === 404) {
@@ -4021,15 +5067,15 @@
4021
5067
  return rxjs.of(null);
4022
5068
  };
4023
5069
  /**
4024
- * Loads data schema from design file taken from storage.
5070
+ * Deletes variable data printing information from design file and updates design in storage.
4025
5071
  * @param id Design identifier.
4026
5072
  * @param privateStorageOwner (optional) Private storage owner identifier.
4027
5073
  * @param tenantId (optional) Tenant identifier
4028
5074
  * @return Success
4029
5075
  */
4030
- DesignAtomsServiceApiClient.prototype.loadDataSchema = function (id, privateStorageOwner, tenantId) {
5076
+ DesignAtomsServiceApiClient.prototype.deleteVdpData = function (id, privateStorageOwner, tenantId) {
4031
5077
  var _this = this;
4032
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/schema?";
5078
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
4033
5079
  if (id === undefined || id === null)
4034
5080
  throw new Error("The parameter 'id' must be defined.");
4035
5081
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -4043,18 +5089,16 @@
4043
5089
  var options_ = {
4044
5090
  observe: "response",
4045
5091
  responseType: "blob",
4046
- headers: new i1.HttpHeaders({
4047
- "Accept": "application/octet-stream"
4048
- })
5092
+ headers: new i1.HttpHeaders({})
4049
5093
  };
4050
5094
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4051
- return _this.http.request("get", url_, transformedOptions_);
5095
+ return _this.http.request("delete", url_, transformedOptions_);
4052
5096
  })).pipe(operators.mergeMap(function (response_) {
4053
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadDataSchema(r); });
5097
+ return _this.transformResult(url_, response_, function (r) { return _this.processDeleteVdpData(r); });
4054
5098
  })).pipe(operators.catchError(function (response_) {
4055
5099
  if (response_ instanceof i1.HttpResponseBase) {
4056
5100
  try {
4057
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadDataSchema(r); });
5101
+ return _this.transformResult(url_, response_, function (r) { return _this.processDeleteVdpData(r); });
4058
5102
  }
4059
5103
  catch (e) {
4060
5104
  return rxjs.throwError(e);
@@ -4064,8 +5108,8 @@
4064
5108
  return rxjs.throwError(response_);
4065
5109
  }));
4066
5110
  };
4067
- DesignAtomsServiceApiClient.prototype.processLoadDataSchema = function (response) {
4068
- var e_40, _a;
5111
+ DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
5112
+ var e_50, _a;
4069
5113
  var _this = this;
4070
5114
  var status = response.status;
4071
5115
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4078,25 +5122,17 @@
4078
5122
  _headers[key] = response.headers.get(key);
4079
5123
  }
4080
5124
  }
4081
- catch (e_40_1) { e_40 = { error: e_40_1 }; }
5125
+ catch (e_50_1) { e_50 = { error: e_50_1 }; }
4082
5126
  finally {
4083
5127
  try {
4084
5128
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4085
5129
  }
4086
- finally { if (e_40) throw e_40.error; }
5130
+ finally { if (e_50) throw e_50.error; }
4087
5131
  }
4088
5132
  }
4089
- if (status === 200 || status === 206) {
4090
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
4091
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
4092
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4093
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4094
- }
4095
- else if (status === 404) {
5133
+ if (status === 200) {
4096
5134
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4097
- var result404 = null;
4098
- result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4099
- return throwException("Not Found", status, _responseText, _headers, result404);
5135
+ return rxjs.of(null);
4100
5136
  }));
4101
5137
  }
4102
5138
  else if (status === 409) {
@@ -4124,15 +5160,15 @@
4124
5160
  return rxjs.of(null);
4125
5161
  };
4126
5162
  /**
4127
- * Loads a toggle set from design file taken from storage.
4128
- * @param id Design identifier.
5163
+ * Loads product (design model) from resource file taken from storage.
5164
+ * @param id Resource identifier.
4129
5165
  * @param privateStorageOwner (optional) Private storage owner identifier.
4130
5166
  * @param tenantId (optional) Tenant identifier
4131
5167
  * @return Success
4132
5168
  */
4133
- DesignAtomsServiceApiClient.prototype.loadToggleSet = function (id, privateStorageOwner, tenantId) {
5169
+ DesignAtomsServiceApiClient.prototype.loadProductFromResource = function (id, privateStorageOwner, tenantId) {
4134
5170
  var _this = this;
4135
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/toggle-set?";
5171
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/from-resource/{id}/model?";
4136
5172
  if (id === undefined || id === null)
4137
5173
  throw new Error("The parameter 'id' must be defined.");
4138
5174
  url_ = url_.replace("{id}", encodeURIComponent("" + id));
@@ -4147,17 +5183,17 @@
4147
5183
  observe: "response",
4148
5184
  responseType: "blob",
4149
5185
  headers: new i1.HttpHeaders({
4150
- "Accept": "application/octet-stream"
5186
+ "Accept": "application/json"
4151
5187
  })
4152
5188
  };
4153
5189
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4154
5190
  return _this.http.request("get", url_, transformedOptions_);
4155
5191
  })).pipe(operators.mergeMap(function (response_) {
4156
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadToggleSet(r); });
5192
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
4157
5193
  })).pipe(operators.catchError(function (response_) {
4158
5194
  if (response_ instanceof i1.HttpResponseBase) {
4159
5195
  try {
4160
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadToggleSet(r); });
5196
+ return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
4161
5197
  }
4162
5198
  catch (e) {
4163
5199
  return rxjs.throwError(e);
@@ -4167,8 +5203,8 @@
4167
5203
  return rxjs.throwError(response_);
4168
5204
  }));
4169
5205
  };
4170
- DesignAtomsServiceApiClient.prototype.processLoadToggleSet = function (response) {
4171
- var e_41, _a;
5206
+ DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
5207
+ var e_51, _a;
4172
5208
  var _this = this;
4173
5209
  var status = response.status;
4174
5210
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4181,19 +5217,20 @@
4181
5217
  _headers[key] = response.headers.get(key);
4182
5218
  }
4183
5219
  }
4184
- catch (e_41_1) { e_41 = { error: e_41_1 }; }
5220
+ catch (e_51_1) { e_51 = { error: e_51_1 }; }
4185
5221
  finally {
4186
5222
  try {
4187
5223
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4188
5224
  }
4189
- finally { if (e_41) throw e_41.error; }
5225
+ finally { if (e_51) throw e_51.error; }
4190
5226
  }
4191
5227
  }
4192
- if (status === 200 || status === 206) {
4193
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
4194
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
4195
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
4196
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
5228
+ if (status === 200) {
5229
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5230
+ var result200 = null;
5231
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5232
+ return rxjs.of(result200);
5233
+ }));
4197
5234
  }
4198
5235
  else if (status === 404) {
4199
5236
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -4202,11 +5239,11 @@
4202
5239
  return throwException("Not Found", status, _responseText, _headers, result404);
4203
5240
  }));
4204
5241
  }
4205
- else if (status === 409) {
5242
+ else if (status === 422) {
4206
5243
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4207
- var result409 = null;
4208
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4209
- return throwException("Conflict", status, _responseText, _headers, result409);
5244
+ var result422 = null;
5245
+ result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5246
+ return throwException("Client Error", status, _responseText, _headers, result422);
4210
5247
  }));
4211
5248
  }
4212
5249
  else if (status === 401) {
@@ -4227,40 +5264,37 @@
4227
5264
  return rxjs.of(null);
4228
5265
  };
4229
5266
  /**
4230
- * Gets variable items information for design file taken from storage.
4231
- * @param id Design identifier.
4232
- * @param privateStorageOwner (optional) Private storage owner identifier.
5267
+ * Converts colors.
4233
5268
  * @param tenantId (optional) Tenant identifier
5269
+ * @param body (optional) Convert colors operation parameters.
4234
5270
  * @return Success
4235
5271
  */
4236
- DesignAtomsServiceApiClient.prototype.getVariables = function (id, privateStorageOwner, tenantId) {
5272
+ DesignAtomsServiceApiClient.prototype.convertColors = function (tenantId, body) {
4237
5273
  var _this = this;
4238
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
4239
- if (id === undefined || id === null)
4240
- throw new Error("The parameter 'id' must be defined.");
4241
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
4242
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4243
- url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
5274
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/convert-colors?";
4244
5275
  if (tenantId === null)
4245
5276
  throw new Error("The parameter 'tenantId' cannot be null.");
4246
5277
  else if (tenantId !== undefined)
4247
5278
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4248
5279
  url_ = url_.replace(/[?&]$/, "");
5280
+ var content_ = JSON.stringify(body);
4249
5281
  var options_ = {
5282
+ body: content_,
4250
5283
  observe: "response",
4251
5284
  responseType: "blob",
4252
5285
  headers: new i1.HttpHeaders({
5286
+ "Content-Type": "application/json",
4253
5287
  "Accept": "application/json"
4254
5288
  })
4255
5289
  };
4256
5290
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4257
- return _this.http.request("get", url_, transformedOptions_);
5291
+ return _this.http.request("post", url_, transformedOptions_);
4258
5292
  })).pipe(operators.mergeMap(function (response_) {
4259
- return _this.transformResult(url_, response_, function (r) { return _this.processGetVariables(r); });
5293
+ return _this.transformResult(url_, response_, function (r) { return _this.processConvertColors(r); });
4260
5294
  })).pipe(operators.catchError(function (response_) {
4261
5295
  if (response_ instanceof i1.HttpResponseBase) {
4262
5296
  try {
4263
- return _this.transformResult(url_, response_, function (r) { return _this.processGetVariables(r); });
5297
+ return _this.transformResult(url_, response_, function (r) { return _this.processConvertColors(r); });
4264
5298
  }
4265
5299
  catch (e) {
4266
5300
  return rxjs.throwError(e);
@@ -4270,8 +5304,8 @@
4270
5304
  return rxjs.throwError(response_);
4271
5305
  }));
4272
5306
  };
4273
- DesignAtomsServiceApiClient.prototype.processGetVariables = function (response) {
4274
- var e_42, _a;
5307
+ DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
5308
+ var e_52, _a;
4275
5309
  var _this = this;
4276
5310
  var status = response.status;
4277
5311
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4284,12 +5318,12 @@
4284
5318
  _headers[key] = response.headers.get(key);
4285
5319
  }
4286
5320
  }
4287
- catch (e_42_1) { e_42 = { error: e_42_1 }; }
5321
+ catch (e_52_1) { e_52 = { error: e_52_1 }; }
4288
5322
  finally {
4289
5323
  try {
4290
5324
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4291
5325
  }
4292
- finally { if (e_42) throw e_42.error; }
5326
+ finally { if (e_52) throw e_52.error; }
4293
5327
  }
4294
5328
  }
4295
5329
  if (status === 200) {
@@ -4324,21 +5358,14 @@
4324
5358
  return rxjs.of(null);
4325
5359
  };
4326
5360
  /**
4327
- * Sets variable items values for design file taken from storage.
4328
- * @param id Design identifier.
4329
- * @param privateStorageOwner (optional) Private storage owner identifier.
5361
+ * Extracts product item image.
4330
5362
  * @param tenantId (optional) Tenant identifier
4331
- * @param body (optional) Design variable values.
5363
+ * @param body (optional) Extraction parameters.
4332
5364
  * @return Success
4333
5365
  */
4334
- DesignAtomsServiceApiClient.prototype.setVariables = function (id, privateStorageOwner, tenantId, body) {
5366
+ DesignAtomsServiceApiClient.prototype.extractItemImage = function (tenantId, body) {
4335
5367
  var _this = this;
4336
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
4337
- if (id === undefined || id === null)
4338
- throw new Error("The parameter 'id' must be defined.");
4339
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
4340
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4341
- url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
5368
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/extract-image?";
4342
5369
  if (tenantId === null)
4343
5370
  throw new Error("The parameter 'tenantId' cannot be null.");
4344
5371
  else if (tenantId !== undefined)
@@ -4351,16 +5378,17 @@
4351
5378
  responseType: "blob",
4352
5379
  headers: new i1.HttpHeaders({
4353
5380
  "Content-Type": "application/json",
5381
+ "Accept": "application/octet-stream"
4354
5382
  })
4355
5383
  };
4356
5384
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4357
- return _this.http.request("put", url_, transformedOptions_);
5385
+ return _this.http.request("post", url_, transformedOptions_);
4358
5386
  })).pipe(operators.mergeMap(function (response_) {
4359
- return _this.transformResult(url_, response_, function (r) { return _this.processSetVariables(r); });
5387
+ return _this.transformResult(url_, response_, function (r) { return _this.processExtractItemImage(r); });
4360
5388
  })).pipe(operators.catchError(function (response_) {
4361
5389
  if (response_ instanceof i1.HttpResponseBase) {
4362
5390
  try {
4363
- return _this.transformResult(url_, response_, function (r) { return _this.processSetVariables(r); });
5391
+ return _this.transformResult(url_, response_, function (r) { return _this.processExtractItemImage(r); });
4364
5392
  }
4365
5393
  catch (e) {
4366
5394
  return rxjs.throwError(e);
@@ -4370,9 +5398,8 @@
4370
5398
  return rxjs.throwError(response_);
4371
5399
  }));
4372
5400
  };
4373
- DesignAtomsServiceApiClient.prototype.processSetVariables = function (response) {
4374
- var e_43, _a;
4375
- var _this = this;
5401
+ DesignAtomsServiceApiClient.prototype.processExtractItemImage = function (response) {
5402
+ var e_53, _a;
4376
5403
  var status = response.status;
4377
5404
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
4378
5405
  response.error instanceof Blob ? response.error : undefined;
@@ -4384,32 +5411,19 @@
4384
5411
  _headers[key] = response.headers.get(key);
4385
5412
  }
4386
5413
  }
4387
- catch (e_43_1) { e_43 = { error: e_43_1 }; }
5414
+ catch (e_53_1) { e_53 = { error: e_53_1 }; }
4388
5415
  finally {
4389
5416
  try {
4390
5417
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4391
5418
  }
4392
- finally { if (e_43) throw e_43.error; }
5419
+ finally { if (e_53) throw e_53.error; }
4393
5420
  }
4394
5421
  }
4395
- if (status === 200) {
4396
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4397
- return rxjs.of(null);
4398
- }));
4399
- }
4400
- else if (status === 404) {
4401
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4402
- var result404 = null;
4403
- result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4404
- return throwException("Not Found", status, _responseText, _headers, result404);
4405
- }));
4406
- }
4407
- else if (status === 409) {
4408
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4409
- var result409 = null;
4410
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4411
- return throwException("Conflict", status, _responseText, _headers, result409);
4412
- }));
5422
+ if (status === 200 || status === 206) {
5423
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5424
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5425
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5426
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
4413
5427
  }
4414
5428
  else if (status === 401) {
4415
5429
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -4429,40 +5443,37 @@
4429
5443
  return rxjs.of(null);
4430
5444
  };
4431
5445
  /**
4432
- * Loads variable data printing information from design file taken from storage.
4433
- * @param id Design identifier.
4434
- * @param privateStorageOwner (optional) Private storage owner identifier.
5446
+ * Flatten items.
4435
5447
  * @param tenantId (optional) Tenant identifier
5448
+ * @param body (optional) Items to flatten.
4436
5449
  * @return Success
4437
5450
  */
4438
- DesignAtomsServiceApiClient.prototype.loadVdpData = function (id, privateStorageOwner, tenantId) {
5451
+ DesignAtomsServiceApiClient.prototype.flattenItems = function (tenantId, body) {
4439
5452
  var _this = this;
4440
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
4441
- if (id === undefined || id === null)
4442
- throw new Error("The parameter 'id' must be defined.");
4443
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
4444
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4445
- url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
5453
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/flatten?";
4446
5454
  if (tenantId === null)
4447
5455
  throw new Error("The parameter 'tenantId' cannot be null.");
4448
5456
  else if (tenantId !== undefined)
4449
5457
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4450
5458
  url_ = url_.replace(/[?&]$/, "");
5459
+ var content_ = JSON.stringify(body);
4451
5460
  var options_ = {
5461
+ body: content_,
4452
5462
  observe: "response",
4453
5463
  responseType: "blob",
4454
5464
  headers: new i1.HttpHeaders({
5465
+ "Content-Type": "application/json",
4455
5466
  "Accept": "application/json"
4456
5467
  })
4457
5468
  };
4458
5469
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4459
- return _this.http.request("get", url_, transformedOptions_);
5470
+ return _this.http.request("post", url_, transformedOptions_);
4460
5471
  })).pipe(operators.mergeMap(function (response_) {
4461
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadVdpData(r); });
5472
+ return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
4462
5473
  })).pipe(operators.catchError(function (response_) {
4463
5474
  if (response_ instanceof i1.HttpResponseBase) {
4464
5475
  try {
4465
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadVdpData(r); });
5476
+ return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
4466
5477
  }
4467
5478
  catch (e) {
4468
5479
  return rxjs.throwError(e);
@@ -4472,8 +5483,8 @@
4472
5483
  return rxjs.throwError(response_);
4473
5484
  }));
4474
5485
  };
4475
- DesignAtomsServiceApiClient.prototype.processLoadVdpData = function (response) {
4476
- var e_44, _a;
5486
+ DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
5487
+ var e_54, _a;
4477
5488
  var _this = this;
4478
5489
  var status = response.status;
4479
5490
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4486,12 +5497,12 @@
4486
5497
  _headers[key] = response.headers.get(key);
4487
5498
  }
4488
5499
  }
4489
- catch (e_44_1) { e_44 = { error: e_44_1 }; }
5500
+ catch (e_54_1) { e_54 = { error: e_54_1 }; }
4490
5501
  finally {
4491
5502
  try {
4492
5503
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4493
5504
  }
4494
- finally { if (e_44) throw e_44.error; }
5505
+ finally { if (e_54) throw e_54.error; }
4495
5506
  }
4496
5507
  }
4497
5508
  if (status === 200) {
@@ -4501,20 +5512,6 @@
4501
5512
  return rxjs.of(result200);
4502
5513
  }));
4503
5514
  }
4504
- else if (status === 404) {
4505
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4506
- var result404 = null;
4507
- result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4508
- return throwException("Not Found", status, _responseText, _headers, result404);
4509
- }));
4510
- }
4511
- else if (status === 409) {
4512
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4513
- var result409 = null;
4514
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4515
- return throwException("Conflict", status, _responseText, _headers, result409);
4516
- }));
4517
- }
4518
5515
  else if (status === 401) {
4519
5516
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4520
5517
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -4533,43 +5530,41 @@
4533
5530
  return rxjs.of(null);
4534
5531
  };
4535
5532
  /**
4536
- * Saves variable data printing information to design file and updates design in storage.
4537
- * @param id Design identifier.
4538
- * @param privateStorageOwner (optional) Private storage owner identifier.
5533
+ * Creates product item from input image file.
5534
+ * @param itemType (optional) Desired item type.
4539
5535
  * @param tenantId (optional) Tenant identifier
4540
- * @param body (optional) Serialized vdp data.
5536
+ * @param sourceFile (optional)
4541
5537
  * @return Success
4542
5538
  */
4543
- DesignAtomsServiceApiClient.prototype.saveVdpData = function (id, privateStorageOwner, tenantId, body) {
5539
+ DesignAtomsServiceApiClient.prototype.createItemFromFile = function (itemType, tenantId, sourceFile) {
4544
5540
  var _this = this;
4545
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
4546
- if (id === undefined || id === null)
4547
- throw new Error("The parameter 'id' must be defined.");
4548
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
4549
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4550
- url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
5541
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/from-file?";
5542
+ if (itemType !== undefined && itemType !== null)
5543
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
4551
5544
  if (tenantId === null)
4552
5545
  throw new Error("The parameter 'tenantId' cannot be null.");
4553
5546
  else if (tenantId !== undefined)
4554
5547
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4555
5548
  url_ = url_.replace(/[?&]$/, "");
4556
- var content_ = JSON.stringify(body);
5549
+ var content_ = new FormData();
5550
+ if (sourceFile !== null && sourceFile !== undefined)
5551
+ content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
4557
5552
  var options_ = {
4558
5553
  body: content_,
4559
5554
  observe: "response",
4560
5555
  responseType: "blob",
4561
5556
  headers: new i1.HttpHeaders({
4562
- "Content-Type": "application/json",
5557
+ "Accept": "application/json"
4563
5558
  })
4564
5559
  };
4565
5560
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4566
- return _this.http.request("put", url_, transformedOptions_);
5561
+ return _this.http.request("post", url_, transformedOptions_);
4567
5562
  })).pipe(operators.mergeMap(function (response_) {
4568
- return _this.transformResult(url_, response_, function (r) { return _this.processSaveVdpData(r); });
5563
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItemFromFile(r); });
4569
5564
  })).pipe(operators.catchError(function (response_) {
4570
5565
  if (response_ instanceof i1.HttpResponseBase) {
4571
5566
  try {
4572
- return _this.transformResult(url_, response_, function (r) { return _this.processSaveVdpData(r); });
5567
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItemFromFile(r); });
4573
5568
  }
4574
5569
  catch (e) {
4575
5570
  return rxjs.throwError(e);
@@ -4579,8 +5574,8 @@
4579
5574
  return rxjs.throwError(response_);
4580
5575
  }));
4581
5576
  };
4582
- DesignAtomsServiceApiClient.prototype.processSaveVdpData = function (response) {
4583
- var e_45, _a;
5577
+ DesignAtomsServiceApiClient.prototype.processCreateItemFromFile = function (response) {
5578
+ var e_55, _a;
4584
5579
  var _this = this;
4585
5580
  var status = response.status;
4586
5581
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4593,17 +5588,19 @@
4593
5588
  _headers[key] = response.headers.get(key);
4594
5589
  }
4595
5590
  }
4596
- catch (e_45_1) { e_45 = { error: e_45_1 }; }
5591
+ catch (e_55_1) { e_55 = { error: e_55_1 }; }
4597
5592
  finally {
4598
5593
  try {
4599
5594
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4600
5595
  }
4601
- finally { if (e_45) throw e_45.error; }
5596
+ finally { if (e_55) throw e_55.error; }
4602
5597
  }
4603
5598
  }
4604
5599
  if (status === 200) {
4605
5600
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4606
- return rxjs.of(null);
5601
+ var result200 = null;
5602
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5603
+ return rxjs.of(result200);
4607
5604
  }));
4608
5605
  }
4609
5606
  else if (status === 404) {
@@ -4631,38 +5628,41 @@
4631
5628
  return rxjs.of(null);
4632
5629
  };
4633
5630
  /**
4634
- * Deletes variable data printing information from design file and updates design in storage.
4635
- * @param id Design identifier.
4636
- * @param privateStorageOwner (optional) Private storage owner identifier.
4637
- * @param tenantId (optional) Tenant identifier
4638
- * @return Success
4639
- */
4640
- DesignAtomsServiceApiClient.prototype.deleteVdpData = function (id, privateStorageOwner, tenantId) {
4641
- var _this = this;
4642
- var url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdp-data?";
4643
- if (id === undefined || id === null)
4644
- throw new Error("The parameter 'id' must be defined.");
4645
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
4646
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4647
- url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
5631
+ * Creates multiple product items from input image files.
5632
+ * @param itemType (optional) Desired items type.
5633
+ * @param tenantId (optional) Tenant identifier
5634
+ * @param sourceFiles (optional)
5635
+ * @return Success
5636
+ */
5637
+ DesignAtomsServiceApiClient.prototype.batchCreateItemsFromFile = function (itemType, tenantId, sourceFiles) {
5638
+ var _this = this;
5639
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/from-file/batch-create?";
5640
+ if (itemType !== undefined && itemType !== null)
5641
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
4648
5642
  if (tenantId === null)
4649
5643
  throw new Error("The parameter 'tenantId' cannot be null.");
4650
5644
  else if (tenantId !== undefined)
4651
5645
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4652
5646
  url_ = url_.replace(/[?&]$/, "");
5647
+ var content_ = new FormData();
5648
+ if (sourceFiles !== null && sourceFiles !== undefined)
5649
+ sourceFiles.forEach(function (item_) { return content_.append("sourceFiles", item_.data, item_.fileName ? item_.fileName : "sourceFiles"); });
4653
5650
  var options_ = {
5651
+ body: content_,
4654
5652
  observe: "response",
4655
5653
  responseType: "blob",
4656
- headers: new i1.HttpHeaders({})
5654
+ headers: new i1.HttpHeaders({
5655
+ "Accept": "application/json"
5656
+ })
4657
5657
  };
4658
5658
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4659
- return _this.http.request("delete", url_, transformedOptions_);
5659
+ return _this.http.request("post", url_, transformedOptions_);
4660
5660
  })).pipe(operators.mergeMap(function (response_) {
4661
- return _this.transformResult(url_, response_, function (r) { return _this.processDeleteVdpData(r); });
5661
+ return _this.transformResult(url_, response_, function (r) { return _this.processBatchCreateItemsFromFile(r); });
4662
5662
  })).pipe(operators.catchError(function (response_) {
4663
5663
  if (response_ instanceof i1.HttpResponseBase) {
4664
5664
  try {
4665
- return _this.transformResult(url_, response_, function (r) { return _this.processDeleteVdpData(r); });
5665
+ return _this.transformResult(url_, response_, function (r) { return _this.processBatchCreateItemsFromFile(r); });
4666
5666
  }
4667
5667
  catch (e) {
4668
5668
  return rxjs.throwError(e);
@@ -4672,8 +5672,8 @@
4672
5672
  return rxjs.throwError(response_);
4673
5673
  }));
4674
5674
  };
4675
- DesignAtomsServiceApiClient.prototype.processDeleteVdpData = function (response) {
4676
- var e_46, _a;
5675
+ DesignAtomsServiceApiClient.prototype.processBatchCreateItemsFromFile = function (response) {
5676
+ var e_56, _a;
4677
5677
  var _this = this;
4678
5678
  var status = response.status;
4679
5679
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4686,24 +5686,26 @@
4686
5686
  _headers[key] = response.headers.get(key);
4687
5687
  }
4688
5688
  }
4689
- catch (e_46_1) { e_46 = { error: e_46_1 }; }
5689
+ catch (e_56_1) { e_56 = { error: e_56_1 }; }
4690
5690
  finally {
4691
5691
  try {
4692
5692
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4693
5693
  }
4694
- finally { if (e_46) throw e_46.error; }
5694
+ finally { if (e_56) throw e_56.error; }
4695
5695
  }
4696
5696
  }
4697
5697
  if (status === 200) {
4698
5698
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4699
- return rxjs.of(null);
5699
+ var result200 = null;
5700
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5701
+ return rxjs.of(result200);
4700
5702
  }));
4701
5703
  }
4702
- else if (status === 409) {
5704
+ else if (status === 404) {
4703
5705
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4704
- var result409 = null;
4705
- result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4706
- return throwException("Conflict", status, _responseText, _headers, result409);
5706
+ var result404 = null;
5707
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5708
+ return throwException("Not Found", status, _responseText, _headers, result404);
4707
5709
  }));
4708
5710
  }
4709
5711
  else if (status === 401) {
@@ -4724,40 +5726,40 @@
4724
5726
  return rxjs.of(null);
4725
5727
  };
4726
5728
  /**
4727
- * Loads product (design model) from resource file taken from storage.
4728
- * @param id Resource identifier.
4729
- * @param privateStorageOwner (optional) Private storage owner identifier.
5729
+ * Creates product item from image in storage.
5730
+ * @param itemType (optional) Desired item type.
4730
5731
  * @param tenantId (optional) Tenant identifier
5732
+ * @param body (optional) Operation parameters.
4731
5733
  * @return Success
4732
5734
  */
4733
- DesignAtomsServiceApiClient.prototype.loadProductFromResource = function (id, privateStorageOwner, tenantId) {
5735
+ DesignAtomsServiceApiClient.prototype.createItemFromStorage = function (itemType, tenantId, body) {
4734
5736
  var _this = this;
4735
- var url_ = this.baseUrl + "/api/atoms/v1/designs/from-resource/{id}/model?";
4736
- if (id === undefined || id === null)
4737
- throw new Error("The parameter 'id' must be defined.");
4738
- url_ = url_.replace("{id}", encodeURIComponent("" + id));
4739
- if (privateStorageOwner !== undefined && privateStorageOwner !== null)
4740
- url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
5737
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/from-storage?";
5738
+ if (itemType !== undefined && itemType !== null)
5739
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
4741
5740
  if (tenantId === null)
4742
5741
  throw new Error("The parameter 'tenantId' cannot be null.");
4743
5742
  else if (tenantId !== undefined)
4744
5743
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4745
5744
  url_ = url_.replace(/[?&]$/, "");
5745
+ var content_ = JSON.stringify(body);
4746
5746
  var options_ = {
5747
+ body: content_,
4747
5748
  observe: "response",
4748
5749
  responseType: "blob",
4749
5750
  headers: new i1.HttpHeaders({
5751
+ "Content-Type": "application/json",
4750
5752
  "Accept": "application/json"
4751
5753
  })
4752
5754
  };
4753
5755
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4754
- return _this.http.request("get", url_, transformedOptions_);
5756
+ return _this.http.request("post", url_, transformedOptions_);
4755
5757
  })).pipe(operators.mergeMap(function (response_) {
4756
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
5758
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItemFromStorage(r); });
4757
5759
  })).pipe(operators.catchError(function (response_) {
4758
5760
  if (response_ instanceof i1.HttpResponseBase) {
4759
5761
  try {
4760
- return _this.transformResult(url_, response_, function (r) { return _this.processLoadProductFromResource(r); });
5762
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItemFromStorage(r); });
4761
5763
  }
4762
5764
  catch (e) {
4763
5765
  return rxjs.throwError(e);
@@ -4767,8 +5769,8 @@
4767
5769
  return rxjs.throwError(response_);
4768
5770
  }));
4769
5771
  };
4770
- DesignAtomsServiceApiClient.prototype.processLoadProductFromResource = function (response) {
4771
- var e_47, _a;
5772
+ DesignAtomsServiceApiClient.prototype.processCreateItemFromStorage = function (response) {
5773
+ var e_57, _a;
4772
5774
  var _this = this;
4773
5775
  var status = response.status;
4774
5776
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4781,12 +5783,12 @@
4781
5783
  _headers[key] = response.headers.get(key);
4782
5784
  }
4783
5785
  }
4784
- catch (e_47_1) { e_47 = { error: e_47_1 }; }
5786
+ catch (e_57_1) { e_57 = { error: e_57_1 }; }
4785
5787
  finally {
4786
5788
  try {
4787
5789
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4788
5790
  }
4789
- finally { if (e_47) throw e_47.error; }
5791
+ finally { if (e_57) throw e_57.error; }
4790
5792
  }
4791
5793
  }
4792
5794
  if (status === 200) {
@@ -4803,13 +5805,6 @@
4803
5805
  return throwException("Not Found", status, _responseText, _headers, result404);
4804
5806
  }));
4805
5807
  }
4806
- else if (status === 422) {
4807
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4808
- var result422 = null;
4809
- result422 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
4810
- return throwException("Client Error", status, _responseText, _headers, result422);
4811
- }));
4812
- }
4813
5808
  else if (status === 401) {
4814
5809
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
4815
5810
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -4828,14 +5823,17 @@
4828
5823
  return rxjs.of(null);
4829
5824
  };
4830
5825
  /**
4831
- * Converts colors.
5826
+ * Creates multiple product items from images in storage.
5827
+ * @param itemType (optional) Desired items type.
4832
5828
  * @param tenantId (optional) Tenant identifier
4833
- * @param body (optional) Convert colors operation parameters.
5829
+ * @param body (optional) Create items operation parameters.
4834
5830
  * @return Success
4835
5831
  */
4836
- DesignAtomsServiceApiClient.prototype.convertColors = function (tenantId, body) {
5832
+ DesignAtomsServiceApiClient.prototype.batchCreateItemsFromStorage = function (itemType, tenantId, body) {
4837
5833
  var _this = this;
4838
- var url_ = this.baseUrl + "/api/atoms/v1/designs/model/convert-colors?";
5834
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/from-storage/batch-create?";
5835
+ if (itemType !== undefined && itemType !== null)
5836
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
4839
5837
  if (tenantId === null)
4840
5838
  throw new Error("The parameter 'tenantId' cannot be null.");
4841
5839
  else if (tenantId !== undefined)
@@ -4854,11 +5852,11 @@
4854
5852
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4855
5853
  return _this.http.request("post", url_, transformedOptions_);
4856
5854
  })).pipe(operators.mergeMap(function (response_) {
4857
- return _this.transformResult(url_, response_, function (r) { return _this.processConvertColors(r); });
5855
+ return _this.transformResult(url_, response_, function (r) { return _this.processBatchCreateItemsFromStorage(r); });
4858
5856
  })).pipe(operators.catchError(function (response_) {
4859
5857
  if (response_ instanceof i1.HttpResponseBase) {
4860
5858
  try {
4861
- return _this.transformResult(url_, response_, function (r) { return _this.processConvertColors(r); });
5859
+ return _this.transformResult(url_, response_, function (r) { return _this.processBatchCreateItemsFromStorage(r); });
4862
5860
  }
4863
5861
  catch (e) {
4864
5862
  return rxjs.throwError(e);
@@ -4868,8 +5866,8 @@
4868
5866
  return rxjs.throwError(response_);
4869
5867
  }));
4870
5868
  };
4871
- DesignAtomsServiceApiClient.prototype.processConvertColors = function (response) {
4872
- var e_48, _a;
5869
+ DesignAtomsServiceApiClient.prototype.processBatchCreateItemsFromStorage = function (response) {
5870
+ var e_58, _a;
4873
5871
  var _this = this;
4874
5872
  var status = response.status;
4875
5873
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4882,12 +5880,12 @@
4882
5880
  _headers[key] = response.headers.get(key);
4883
5881
  }
4884
5882
  }
4885
- catch (e_48_1) { e_48 = { error: e_48_1 }; }
5883
+ catch (e_58_1) { e_58 = { error: e_58_1 }; }
4886
5884
  finally {
4887
5885
  try {
4888
5886
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4889
5887
  }
4890
- finally { if (e_48) throw e_48.error; }
5888
+ finally { if (e_58) throw e_58.error; }
4891
5889
  }
4892
5890
  }
4893
5891
  if (status === 200) {
@@ -4922,18 +5920,15 @@
4922
5920
  return rxjs.of(null);
4923
5921
  };
4924
5922
  /**
4925
- * Creates product item.
5923
+ * Creates product item from remote web image provided by URL.
4926
5924
  * @param itemType (optional) Desired item type.
4927
5925
  * @param tenantId (optional) Tenant identifier
4928
- * @param sourceType (optional)
4929
- * @param sourceId (optional)
4930
- * @param sourceOwnerId (optional)
4931
- * @param sourceFile (optional)
5926
+ * @param body (optional) Operation parameters.
4932
5927
  * @return Success
4933
5928
  */
4934
- DesignAtomsServiceApiClient.prototype.createItem = function (itemType, tenantId, sourceType, sourceId, sourceOwnerId, sourceFile) {
5929
+ DesignAtomsServiceApiClient.prototype.createItemFromUrl = function (itemType, tenantId, body) {
4935
5930
  var _this = this;
4936
- var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
5931
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/from-url?";
4937
5932
  if (itemType !== undefined && itemType !== null)
4938
5933
  url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
4939
5934
  if (tenantId === null)
@@ -4941,31 +5936,24 @@
4941
5936
  else if (tenantId !== undefined)
4942
5937
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4943
5938
  url_ = url_.replace(/[?&]$/, "");
4944
- var content_ = new FormData();
4945
- if (sourceType !== null && sourceType !== undefined)
4946
- content_.append("sourceType", sourceType.toString());
4947
- if (sourceId !== null && sourceId !== undefined)
4948
- content_.append("sourceId", sourceId.toString());
4949
- if (sourceOwnerId !== null && sourceOwnerId !== undefined)
4950
- content_.append("sourceOwnerId", sourceOwnerId.toString());
4951
- if (sourceFile !== null && sourceFile !== undefined)
4952
- content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
5939
+ var content_ = JSON.stringify(body);
4953
5940
  var options_ = {
4954
5941
  body: content_,
4955
5942
  observe: "response",
4956
5943
  responseType: "blob",
4957
5944
  headers: new i1.HttpHeaders({
5945
+ "Content-Type": "application/json",
4958
5946
  "Accept": "application/json"
4959
5947
  })
4960
5948
  };
4961
5949
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
4962
5950
  return _this.http.request("post", url_, transformedOptions_);
4963
5951
  })).pipe(operators.mergeMap(function (response_) {
4964
- return _this.transformResult(url_, response_, function (r) { return _this.processCreateItem(r); });
5952
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItemFromUrl(r); });
4965
5953
  })).pipe(operators.catchError(function (response_) {
4966
5954
  if (response_ instanceof i1.HttpResponseBase) {
4967
5955
  try {
4968
- return _this.transformResult(url_, response_, function (r) { return _this.processCreateItem(r); });
5956
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItemFromUrl(r); });
4969
5957
  }
4970
5958
  catch (e) {
4971
5959
  return rxjs.throwError(e);
@@ -4975,8 +5963,8 @@
4975
5963
  return rxjs.throwError(response_);
4976
5964
  }));
4977
5965
  };
4978
- DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
4979
- var e_49, _a;
5966
+ DesignAtomsServiceApiClient.prototype.processCreateItemFromUrl = function (response) {
5967
+ var e_59, _a;
4980
5968
  var _this = this;
4981
5969
  var status = response.status;
4982
5970
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -4989,12 +5977,12 @@
4989
5977
  _headers[key] = response.headers.get(key);
4990
5978
  }
4991
5979
  }
4992
- catch (e_49_1) { e_49 = { error: e_49_1 }; }
5980
+ catch (e_59_1) { e_59 = { error: e_59_1 }; }
4993
5981
  finally {
4994
5982
  try {
4995
5983
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4996
5984
  }
4997
- finally { if (e_49) throw e_49.error; }
5985
+ finally { if (e_59) throw e_59.error; }
4998
5986
  }
4999
5987
  }
5000
5988
  if (status === 200) {
@@ -5029,14 +6017,17 @@
5029
6017
  return rxjs.of(null);
5030
6018
  };
5031
6019
  /**
5032
- * Extracts product item image.
6020
+ * Creates multiple product items from remote web images provided by URLs list.
6021
+ * @param itemType (optional) Desired items type.
5033
6022
  * @param tenantId (optional) Tenant identifier
5034
- * @param body (optional) Extraction parameters.
6023
+ * @param body (optional) Operation parameters.
5035
6024
  * @return Success
5036
6025
  */
5037
- DesignAtomsServiceApiClient.prototype.extractItemImage = function (tenantId, body) {
6026
+ DesignAtomsServiceApiClient.prototype.batchCreateItemsFromUrl = function (itemType, tenantId, body) {
5038
6027
  var _this = this;
5039
- var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/extract-image?";
6028
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/from-url/batch-create?";
6029
+ if (itemType !== undefined && itemType !== null)
6030
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
5040
6031
  if (tenantId === null)
5041
6032
  throw new Error("The parameter 'tenantId' cannot be null.");
5042
6033
  else if (tenantId !== undefined)
@@ -5049,17 +6040,17 @@
5049
6040
  responseType: "blob",
5050
6041
  headers: new i1.HttpHeaders({
5051
6042
  "Content-Type": "application/json",
5052
- "Accept": "application/octet-stream"
6043
+ "Accept": "application/json"
5053
6044
  })
5054
6045
  };
5055
6046
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5056
6047
  return _this.http.request("post", url_, transformedOptions_);
5057
6048
  })).pipe(operators.mergeMap(function (response_) {
5058
- return _this.transformResult(url_, response_, function (r) { return _this.processExtractItemImage(r); });
6049
+ return _this.transformResult(url_, response_, function (r) { return _this.processBatchCreateItemsFromUrl(r); });
5059
6050
  })).pipe(operators.catchError(function (response_) {
5060
6051
  if (response_ instanceof i1.HttpResponseBase) {
5061
6052
  try {
5062
- return _this.transformResult(url_, response_, function (r) { return _this.processExtractItemImage(r); });
6053
+ return _this.transformResult(url_, response_, function (r) { return _this.processBatchCreateItemsFromUrl(r); });
5063
6054
  }
5064
6055
  catch (e) {
5065
6056
  return rxjs.throwError(e);
@@ -5069,8 +6060,9 @@
5069
6060
  return rxjs.throwError(response_);
5070
6061
  }));
5071
6062
  };
5072
- DesignAtomsServiceApiClient.prototype.processExtractItemImage = function (response) {
5073
- var e_50, _a;
6063
+ DesignAtomsServiceApiClient.prototype.processBatchCreateItemsFromUrl = function (response) {
6064
+ var e_60, _a;
6065
+ var _this = this;
5074
6066
  var status = response.status;
5075
6067
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5076
6068
  response.error instanceof Blob ? response.error : undefined;
@@ -5082,19 +6074,27 @@
5082
6074
  _headers[key] = response.headers.get(key);
5083
6075
  }
5084
6076
  }
5085
- catch (e_50_1) { e_50 = { error: e_50_1 }; }
6077
+ catch (e_60_1) { e_60 = { error: e_60_1 }; }
5086
6078
  finally {
5087
6079
  try {
5088
6080
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5089
6081
  }
5090
- finally { if (e_50) throw e_50.error; }
6082
+ finally { if (e_60) throw e_60.error; }
5091
6083
  }
5092
6084
  }
5093
- if (status === 200 || status === 206) {
5094
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5095
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5096
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5097
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
6085
+ if (status === 200) {
6086
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6087
+ var result200 = null;
6088
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
6089
+ return rxjs.of(result200);
6090
+ }));
6091
+ }
6092
+ else if (status === 404) {
6093
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6094
+ var result404 = null;
6095
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
6096
+ return throwException("Not Found", status, _responseText, _headers, result404);
6097
+ }));
5098
6098
  }
5099
6099
  else if (status === 401) {
5100
6100
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -5114,14 +6114,18 @@
5114
6114
  return rxjs.of(null);
5115
6115
  };
5116
6116
  /**
5117
- * Flatten items.
6117
+ * Render product proof image with specified parameters.
6118
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
6119
+ (default value is 'false').
5118
6120
  * @param tenantId (optional) Tenant identifier
5119
- * @param body (optional) Items to flatten.
6121
+ * @param body (optional) Preview parameters.
5120
6122
  * @return Success
5121
6123
  */
5122
- DesignAtomsServiceApiClient.prototype.flattenItems = function (tenantId, body) {
6124
+ DesignAtomsServiceApiClient.prototype.renderProduct = function (attachment, tenantId, body) {
5123
6125
  var _this = this;
5124
- var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items/flatten?";
6126
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
6127
+ if (attachment !== undefined && attachment !== null)
6128
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
5125
6129
  if (tenantId === null)
5126
6130
  throw new Error("The parameter 'tenantId' cannot be null.");
5127
6131
  else if (tenantId !== undefined)
@@ -5134,17 +6138,17 @@
5134
6138
  responseType: "blob",
5135
6139
  headers: new i1.HttpHeaders({
5136
6140
  "Content-Type": "application/json",
5137
- "Accept": "application/json"
6141
+ "Accept": "application/octet-stream"
5138
6142
  })
5139
6143
  };
5140
6144
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5141
6145
  return _this.http.request("post", url_, transformedOptions_);
5142
6146
  })).pipe(operators.mergeMap(function (response_) {
5143
- return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
6147
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderProduct(r); });
5144
6148
  })).pipe(operators.catchError(function (response_) {
5145
6149
  if (response_ instanceof i1.HttpResponseBase) {
5146
6150
  try {
5147
- return _this.transformResult(url_, response_, function (r) { return _this.processFlattenItems(r); });
6151
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderProduct(r); });
5148
6152
  }
5149
6153
  catch (e) {
5150
6154
  return rxjs.throwError(e);
@@ -5154,9 +6158,8 @@
5154
6158
  return rxjs.throwError(response_);
5155
6159
  }));
5156
6160
  };
5157
- DesignAtomsServiceApiClient.prototype.processFlattenItems = function (response) {
5158
- var e_51, _a;
5159
- var _this = this;
6161
+ DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
6162
+ var e_61, _a;
5160
6163
  var status = response.status;
5161
6164
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5162
6165
  response.error instanceof Blob ? response.error : undefined;
@@ -5168,20 +6171,19 @@
5168
6171
  _headers[key] = response.headers.get(key);
5169
6172
  }
5170
6173
  }
5171
- catch (e_51_1) { e_51 = { error: e_51_1 }; }
6174
+ catch (e_61_1) { e_61 = { error: e_61_1 }; }
5172
6175
  finally {
5173
6176
  try {
5174
6177
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5175
6178
  }
5176
- finally { if (e_51) throw e_51.error; }
6179
+ finally { if (e_61) throw e_61.error; }
5177
6180
  }
5178
6181
  }
5179
- if (status === 200) {
5180
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5181
- var result200 = null;
5182
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5183
- return rxjs.of(result200);
5184
- }));
6182
+ if (status === 200 || status === 206) {
6183
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
6184
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
6185
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
6186
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
5185
6187
  }
5186
6188
  else if (status === 401) {
5187
6189
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -5201,16 +6203,16 @@
5201
6203
  return rxjs.of(null);
5202
6204
  };
5203
6205
  /**
5204
- * Render product proof image with specified parameters.
6206
+ * Renders a design preview with the specified parameters.
5205
6207
  * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
5206
6208
  (default value is 'false').
5207
6209
  * @param tenantId (optional) Tenant identifier
5208
- * @param body (optional) Preview parameters.
6210
+ * @param body (optional) Render model with preview parameters.
5209
6211
  * @return Success
5210
6212
  */
5211
- DesignAtomsServiceApiClient.prototype.renderProduct = function (attachment, tenantId, body) {
6213
+ DesignAtomsServiceApiClient.prototype.renderDesignPreview = function (attachment, tenantId, body) {
5212
6214
  var _this = this;
5213
- var url_ = this.baseUrl + "/api/atoms/v1/designs/model/render-proof?";
6215
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
5214
6216
  if (attachment !== undefined && attachment !== null)
5215
6217
  url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
5216
6218
  if (tenantId === null)
@@ -5231,11 +6233,11 @@
5231
6233
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5232
6234
  return _this.http.request("post", url_, transformedOptions_);
5233
6235
  })).pipe(operators.mergeMap(function (response_) {
5234
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderProduct(r); });
6236
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreview(r); });
5235
6237
  })).pipe(operators.catchError(function (response_) {
5236
6238
  if (response_ instanceof i1.HttpResponseBase) {
5237
6239
  try {
5238
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderProduct(r); });
6240
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreview(r); });
5239
6241
  }
5240
6242
  catch (e) {
5241
6243
  return rxjs.throwError(e);
@@ -5245,8 +6247,8 @@
5245
6247
  return rxjs.throwError(response_);
5246
6248
  }));
5247
6249
  };
5248
- DesignAtomsServiceApiClient.prototype.processRenderProduct = function (response) {
5249
- var e_52, _a;
6250
+ DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
6251
+ var e_62, _a;
5250
6252
  var status = response.status;
5251
6253
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5252
6254
  response.error instanceof Blob ? response.error : undefined;
@@ -5258,12 +6260,12 @@
5258
6260
  _headers[key] = response.headers.get(key);
5259
6261
  }
5260
6262
  }
5261
- catch (e_52_1) { e_52 = { error: e_52_1 }; }
6263
+ catch (e_62_1) { e_62 = { error: e_62_1 }; }
5262
6264
  finally {
5263
6265
  try {
5264
6266
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5265
6267
  }
5266
- finally { if (e_52) throw e_52.error; }
6268
+ finally { if (e_62) throw e_62.error; }
5267
6269
  }
5268
6270
  }
5269
6271
  if (status === 200 || status === 206) {
@@ -5290,18 +6292,14 @@
5290
6292
  return rxjs.of(null);
5291
6293
  };
5292
6294
  /**
5293
- * Renders a design preview with the specified parameters.
5294
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
5295
- (default value is 'false').
6295
+ * Renders a design preview with the specified parameters and saves rendering result as resource.
5296
6296
  * @param tenantId (optional) Tenant identifier
5297
6297
  * @param body (optional) Render model with preview parameters.
5298
6298
  * @return Success
5299
6299
  */
5300
- DesignAtomsServiceApiClient.prototype.renderDesignPreview = function (attachment, tenantId, body) {
6300
+ DesignAtomsServiceApiClient.prototype.renderDesignPreviewToResource = function (tenantId, body) {
5301
6301
  var _this = this;
5302
- var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview?";
5303
- if (attachment !== undefined && attachment !== null)
5304
- url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
6302
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview/to-resource?";
5305
6303
  if (tenantId === null)
5306
6304
  throw new Error("The parameter 'tenantId' cannot be null.");
5307
6305
  else if (tenantId !== undefined)
@@ -5314,17 +6312,17 @@
5314
6312
  responseType: "blob",
5315
6313
  headers: new i1.HttpHeaders({
5316
6314
  "Content-Type": "application/json",
5317
- "Accept": "application/octet-stream"
6315
+ "Accept": "application/json"
5318
6316
  })
5319
6317
  };
5320
6318
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5321
6319
  return _this.http.request("post", url_, transformedOptions_);
5322
6320
  })).pipe(operators.mergeMap(function (response_) {
5323
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreview(r); });
6321
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreviewToResource(r); });
5324
6322
  })).pipe(operators.catchError(function (response_) {
5325
6323
  if (response_ instanceof i1.HttpResponseBase) {
5326
6324
  try {
5327
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreview(r); });
6325
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreviewToResource(r); });
5328
6326
  }
5329
6327
  catch (e) {
5330
6328
  return rxjs.throwError(e);
@@ -5334,8 +6332,9 @@
5334
6332
  return rxjs.throwError(response_);
5335
6333
  }));
5336
6334
  };
5337
- DesignAtomsServiceApiClient.prototype.processRenderDesignPreview = function (response) {
5338
- var e_53, _a;
6335
+ DesignAtomsServiceApiClient.prototype.processRenderDesignPreviewToResource = function (response) {
6336
+ var e_63, _a;
6337
+ var _this = this;
5339
6338
  var status = response.status;
5340
6339
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5341
6340
  response.error instanceof Blob ? response.error : undefined;
@@ -5347,19 +6346,27 @@
5347
6346
  _headers[key] = response.headers.get(key);
5348
6347
  }
5349
6348
  }
5350
- catch (e_53_1) { e_53 = { error: e_53_1 }; }
6349
+ catch (e_63_1) { e_63 = { error: e_63_1 }; }
5351
6350
  finally {
5352
6351
  try {
5353
6352
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5354
6353
  }
5355
- finally { if (e_53) throw e_53.error; }
6354
+ finally { if (e_63) throw e_63.error; }
5356
6355
  }
5357
6356
  }
5358
- if (status === 200 || status === 206) {
5359
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5360
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5361
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5362
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
6357
+ if (status === 200) {
6358
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6359
+ var result200 = null;
6360
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
6361
+ return rxjs.of(result200);
6362
+ }));
6363
+ }
6364
+ else if (status === 409) {
6365
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6366
+ var result409 = null;
6367
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
6368
+ return throwException("Conflict", status, _responseText, _headers, result409);
6369
+ }));
5363
6370
  }
5364
6371
  else if (status === 401) {
5365
6372
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -5379,14 +6386,18 @@
5379
6386
  return rxjs.of(null);
5380
6387
  };
5381
6388
  /**
5382
- * Renders a design preview with the specified parameters and saves rendering result as resource.
6389
+ * Renders a design proof with the specified parameters.
6390
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
6391
+ (default value is 'false').
5383
6392
  * @param tenantId (optional) Tenant identifier
5384
- * @param body (optional) Render model with preview parameters.
6393
+ * @param body (optional) Render model with proof parameters.
5385
6394
  * @return Success
5386
6395
  */
5387
- DesignAtomsServiceApiClient.prototype.renderDesignPreviewToResource = function (tenantId, body) {
6396
+ DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
5388
6397
  var _this = this;
5389
- var url_ = this.baseUrl + "/api/atoms/v1/designs/render-preview/to-resource?";
6398
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
6399
+ if (attachment !== undefined && attachment !== null)
6400
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
5390
6401
  if (tenantId === null)
5391
6402
  throw new Error("The parameter 'tenantId' cannot be null.");
5392
6403
  else if (tenantId !== undefined)
@@ -5399,17 +6410,17 @@
5399
6410
  responseType: "blob",
5400
6411
  headers: new i1.HttpHeaders({
5401
6412
  "Content-Type": "application/json",
5402
- "Accept": "application/json"
6413
+ "Accept": "application/octet-stream"
5403
6414
  })
5404
6415
  };
5405
6416
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5406
6417
  return _this.http.request("post", url_, transformedOptions_);
5407
6418
  })).pipe(operators.mergeMap(function (response_) {
5408
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreviewToResource(r); });
6419
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
5409
6420
  })).pipe(operators.catchError(function (response_) {
5410
6421
  if (response_ instanceof i1.HttpResponseBase) {
5411
6422
  try {
5412
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignPreviewToResource(r); });
6423
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
5413
6424
  }
5414
6425
  catch (e) {
5415
6426
  return rxjs.throwError(e);
@@ -5419,9 +6430,8 @@
5419
6430
  return rxjs.throwError(response_);
5420
6431
  }));
5421
6432
  };
5422
- DesignAtomsServiceApiClient.prototype.processRenderDesignPreviewToResource = function (response) {
5423
- var e_54, _a;
5424
- var _this = this;
6433
+ DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
6434
+ var e_64, _a;
5425
6435
  var status = response.status;
5426
6436
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5427
6437
  response.error instanceof Blob ? response.error : undefined;
@@ -5433,20 +6443,19 @@
5433
6443
  _headers[key] = response.headers.get(key);
5434
6444
  }
5435
6445
  }
5436
- catch (e_54_1) { e_54 = { error: e_54_1 }; }
6446
+ catch (e_64_1) { e_64 = { error: e_64_1 }; }
5437
6447
  finally {
5438
6448
  try {
5439
6449
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5440
6450
  }
5441
- finally { if (e_54) throw e_54.error; }
6451
+ finally { if (e_64) throw e_64.error; }
5442
6452
  }
5443
6453
  }
5444
- if (status === 200) {
5445
- return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5446
- var result200 = null;
5447
- result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
5448
- return rxjs.of(result200);
5449
- }));
6454
+ if (status === 200 || status === 206) {
6455
+ var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
6456
+ var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
6457
+ var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
6458
+ return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
5450
6459
  }
5451
6460
  else if (status === 401) {
5452
6461
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -5466,18 +6475,14 @@
5466
6475
  return rxjs.of(null);
5467
6476
  };
5468
6477
  /**
5469
- * Renders a design proof with the specified parameters.
5470
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
5471
- (default value is 'false').
6478
+ * Renders a design proof with the specified parameters and saves rendering result as resource.
5472
6479
  * @param tenantId (optional) Tenant identifier
5473
- * @param body (optional) Render model with proof parameters.
6480
+ * @param body (optional) Render model with preview parameters.
5474
6481
  * @return Success
5475
6482
  */
5476
- DesignAtomsServiceApiClient.prototype.renderDesignProof = function (attachment, tenantId, body) {
6483
+ DesignAtomsServiceApiClient.prototype.renderDesignProofToResource = function (tenantId, body) {
5477
6484
  var _this = this;
5478
- var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof?";
5479
- if (attachment !== undefined && attachment !== null)
5480
- url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
6485
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof/to-resource?";
5481
6486
  if (tenantId === null)
5482
6487
  throw new Error("The parameter 'tenantId' cannot be null.");
5483
6488
  else if (tenantId !== undefined)
@@ -5490,17 +6495,17 @@
5490
6495
  responseType: "blob",
5491
6496
  headers: new i1.HttpHeaders({
5492
6497
  "Content-Type": "application/json",
5493
- "Accept": "application/octet-stream"
6498
+ "Accept": "application/json"
5494
6499
  })
5495
6500
  };
5496
6501
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5497
6502
  return _this.http.request("post", url_, transformedOptions_);
5498
6503
  })).pipe(operators.mergeMap(function (response_) {
5499
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
6504
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProofToResource(r); });
5500
6505
  })).pipe(operators.catchError(function (response_) {
5501
6506
  if (response_ instanceof i1.HttpResponseBase) {
5502
6507
  try {
5503
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProof(r); });
6508
+ return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProofToResource(r); });
5504
6509
  }
5505
6510
  catch (e) {
5506
6511
  return rxjs.throwError(e);
@@ -5510,8 +6515,9 @@
5510
6515
  return rxjs.throwError(response_);
5511
6516
  }));
5512
6517
  };
5513
- DesignAtomsServiceApiClient.prototype.processRenderDesignProof = function (response) {
5514
- var e_55, _a;
6518
+ DesignAtomsServiceApiClient.prototype.processRenderDesignProofToResource = function (response) {
6519
+ var e_65, _a;
6520
+ var _this = this;
5515
6521
  var status = response.status;
5516
6522
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5517
6523
  response.error instanceof Blob ? response.error : undefined;
@@ -5523,19 +6529,27 @@
5523
6529
  _headers[key] = response.headers.get(key);
5524
6530
  }
5525
6531
  }
5526
- catch (e_55_1) { e_55 = { error: e_55_1 }; }
6532
+ catch (e_65_1) { e_65 = { error: e_65_1 }; }
5527
6533
  finally {
5528
6534
  try {
5529
6535
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5530
6536
  }
5531
- finally { if (e_55) throw e_55.error; }
6537
+ finally { if (e_65) throw e_65.error; }
5532
6538
  }
5533
6539
  }
5534
- if (status === 200 || status === 206) {
5535
- var contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
5536
- var fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
5537
- var fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
5538
- return rxjs.of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
6540
+ if (status === 200) {
6541
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6542
+ var result200 = null;
6543
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
6544
+ return rxjs.of(result200);
6545
+ }));
6546
+ }
6547
+ else if (status === 409) {
6548
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6549
+ var result409 = null;
6550
+ result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
6551
+ return throwException("Conflict", status, _responseText, _headers, result409);
6552
+ }));
5539
6553
  }
5540
6554
  else if (status === 401) {
5541
6555
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
@@ -5555,37 +6569,54 @@
5555
6569
  return rxjs.of(null);
5556
6570
  };
5557
6571
  /**
5558
- * Renders a design proof with the specified parameters and saves rendering result as resource.
6572
+ * Creates product item.
6573
+ * @param itemType (optional) Desired item type.
5559
6574
  * @param tenantId (optional) Tenant identifier
5560
- * @param body (optional) Render model with preview parameters.
6575
+ * @param sourceType (optional)
6576
+ * @param sourceId (optional)
6577
+ * @param sourceOwnerId (optional)
6578
+ * @param url (optional)
6579
+ * @param sourceFile (optional)
5561
6580
  * @return Success
6581
+ * @deprecated
5562
6582
  */
5563
- DesignAtomsServiceApiClient.prototype.renderDesignProofToResource = function (tenantId, body) {
6583
+ DesignAtomsServiceApiClient.prototype.createItem = function (itemType, tenantId, sourceType, sourceId, sourceOwnerId, url, sourceFile) {
5564
6584
  var _this = this;
5565
- var url_ = this.baseUrl + "/api/atoms/v1/designs/render-proof/to-resource?";
6585
+ var url_ = this.baseUrl + "/api/atoms/v1/designs/model/items?";
6586
+ if (itemType !== undefined && itemType !== null)
6587
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
5566
6588
  if (tenantId === null)
5567
6589
  throw new Error("The parameter 'tenantId' cannot be null.");
5568
6590
  else if (tenantId !== undefined)
5569
6591
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
5570
6592
  url_ = url_.replace(/[?&]$/, "");
5571
- var content_ = JSON.stringify(body);
6593
+ var content_ = new FormData();
6594
+ if (sourceType !== null && sourceType !== undefined)
6595
+ content_.append("sourceType", sourceType.toString());
6596
+ if (sourceId !== null && sourceId !== undefined)
6597
+ content_.append("sourceId", sourceId.toString());
6598
+ if (sourceOwnerId !== null && sourceOwnerId !== undefined)
6599
+ content_.append("sourceOwnerId", sourceOwnerId.toString());
6600
+ if (url !== null && url !== undefined)
6601
+ content_.append("url", url.toString());
6602
+ if (sourceFile !== null && sourceFile !== undefined)
6603
+ content_.append("sourceFile", sourceFile.data, sourceFile.fileName ? sourceFile.fileName : "sourceFile");
5572
6604
  var options_ = {
5573
6605
  body: content_,
5574
6606
  observe: "response",
5575
6607
  responseType: "blob",
5576
6608
  headers: new i1.HttpHeaders({
5577
- "Content-Type": "application/json",
5578
6609
  "Accept": "application/json"
5579
6610
  })
5580
6611
  };
5581
6612
  return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
5582
6613
  return _this.http.request("post", url_, transformedOptions_);
5583
6614
  })).pipe(operators.mergeMap(function (response_) {
5584
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProofToResource(r); });
6615
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItem(r); });
5585
6616
  })).pipe(operators.catchError(function (response_) {
5586
6617
  if (response_ instanceof i1.HttpResponseBase) {
5587
6618
  try {
5588
- return _this.transformResult(url_, response_, function (r) { return _this.processRenderDesignProofToResource(r); });
6619
+ return _this.transformResult(url_, response_, function (r) { return _this.processCreateItem(r); });
5589
6620
  }
5590
6621
  catch (e) {
5591
6622
  return rxjs.throwError(e);
@@ -5595,8 +6626,8 @@
5595
6626
  return rxjs.throwError(response_);
5596
6627
  }));
5597
6628
  };
5598
- DesignAtomsServiceApiClient.prototype.processRenderDesignProofToResource = function (response) {
5599
- var e_56, _a;
6629
+ DesignAtomsServiceApiClient.prototype.processCreateItem = function (response) {
6630
+ var e_66, _a;
5600
6631
  var _this = this;
5601
6632
  var status = response.status;
5602
6633
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5609,12 +6640,12 @@
5609
6640
  _headers[key] = response.headers.get(key);
5610
6641
  }
5611
6642
  }
5612
- catch (e_56_1) { e_56 = { error: e_56_1 }; }
6643
+ catch (e_66_1) { e_66 = { error: e_66_1 }; }
5613
6644
  finally {
5614
6645
  try {
5615
6646
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5616
6647
  }
5617
- finally { if (e_56) throw e_56.error; }
6648
+ finally { if (e_66) throw e_66.error; }
5618
6649
  }
5619
6650
  }
5620
6651
  if (status === 200) {
@@ -5624,6 +6655,13 @@
5624
6655
  return rxjs.of(result200);
5625
6656
  }));
5626
6657
  }
6658
+ else if (status === 404) {
6659
+ return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
6660
+ var result404 = null;
6661
+ result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
6662
+ return throwException("Not Found", status, _responseText, _headers, result404);
6663
+ }));
6664
+ }
5627
6665
  else if (status === 401) {
5628
6666
  return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
5629
6667
  return throwException("Unauthorized", status, _responseText, _headers);
@@ -5687,7 +6725,7 @@
5687
6725
  }));
5688
6726
  };
5689
6727
  DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromDesign = function (response) {
5690
- var e_57, _a;
6728
+ var e_67, _a;
5691
6729
  var status = response.status;
5692
6730
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5693
6731
  response.error instanceof Blob ? response.error : undefined;
@@ -5699,12 +6737,12 @@
5699
6737
  _headers[key] = response.headers.get(key);
5700
6738
  }
5701
6739
  }
5702
- catch (e_57_1) { e_57 = { error: e_57_1 }; }
6740
+ catch (e_67_1) { e_67 = { error: e_67_1 }; }
5703
6741
  finally {
5704
6742
  try {
5705
6743
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5706
6744
  }
5707
- finally { if (e_57) throw e_57.error; }
6745
+ finally { if (e_67) throw e_67.error; }
5708
6746
  }
5709
6747
  }
5710
6748
  if (status === 201) {
@@ -5775,7 +6813,7 @@
5775
6813
  }));
5776
6814
  };
5777
6815
  DesignAtomsServiceApiClient.prototype.processCreatePrivateDesignFromResource = function (response) {
5778
- var e_58, _a;
6816
+ var e_68, _a;
5779
6817
  var status = response.status;
5780
6818
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
5781
6819
  response.error instanceof Blob ? response.error : undefined;
@@ -5787,12 +6825,12 @@
5787
6825
  _headers[key] = response.headers.get(key);
5788
6826
  }
5789
6827
  }
5790
- catch (e_58_1) { e_58 = { error: e_58_1 }; }
6828
+ catch (e_68_1) { e_68 = { error: e_68_1 }; }
5791
6829
  finally {
5792
6830
  try {
5793
6831
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5794
6832
  }
5795
- finally { if (e_58) throw e_58.error; }
6833
+ finally { if (e_68) throw e_68.error; }
5796
6834
  }
5797
6835
  }
5798
6836
  if (status === 201) {
@@ -5880,7 +6918,7 @@
5880
6918
  }));
5881
6919
  };
5882
6920
  DesignAtomsViewerApiClient.prototype.processCssFonts = function (response) {
5883
- var e_59, _a;
6921
+ var e_69, _a;
5884
6922
  var _this = this;
5885
6923
  var status = response.status;
5886
6924
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5893,12 +6931,12 @@
5893
6931
  _headers[key] = response.headers.get(key);
5894
6932
  }
5895
6933
  }
5896
- catch (e_59_1) { e_59 = { error: e_59_1 }; }
6934
+ catch (e_69_1) { e_69 = { error: e_69_1 }; }
5897
6935
  finally {
5898
6936
  try {
5899
6937
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5900
6938
  }
5901
- finally { if (e_59) throw e_59.error; }
6939
+ finally { if (e_69) throw e_69.error; }
5902
6940
  }
5903
6941
  }
5904
6942
  if (status === 200) {
@@ -5965,7 +7003,7 @@
5965
7003
  }));
5966
7004
  };
5967
7005
  DesignAtomsViewerApiClient.prototype.processFonts = function (response) {
5968
- var e_60, _a;
7006
+ var e_70, _a;
5969
7007
  var _this = this;
5970
7008
  var status = response.status;
5971
7009
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -5978,12 +7016,12 @@
5978
7016
  _headers[key] = response.headers.get(key);
5979
7017
  }
5980
7018
  }
5981
- catch (e_60_1) { e_60 = { error: e_60_1 }; }
7019
+ catch (e_70_1) { e_70 = { error: e_70_1 }; }
5982
7020
  finally {
5983
7021
  try {
5984
7022
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
5985
7023
  }
5986
- finally { if (e_60) throw e_60.error; }
7024
+ finally { if (e_70) throw e_70.error; }
5987
7025
  }
5988
7026
  }
5989
7027
  if (status === 200 || status === 206) {
@@ -6057,7 +7095,7 @@
6057
7095
  }));
6058
7096
  };
6059
7097
  DesignAtomsViewerApiClient.prototype.processGetColorPreview = function (response) {
6060
- var e_61, _a;
7098
+ var e_71, _a;
6061
7099
  var _this = this;
6062
7100
  var status = response.status;
6063
7101
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6070,12 +7108,12 @@
6070
7108
  _headers[key] = response.headers.get(key);
6071
7109
  }
6072
7110
  }
6073
- catch (e_61_1) { e_61 = { error: e_61_1 }; }
7111
+ catch (e_71_1) { e_71 = { error: e_71_1 }; }
6074
7112
  finally {
6075
7113
  try {
6076
7114
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6077
7115
  }
6078
- finally { if (e_61) throw e_61.error; }
7116
+ finally { if (e_71) throw e_71.error; }
6079
7117
  }
6080
7118
  }
6081
7119
  if (status === 200) {
@@ -6143,7 +7181,7 @@
6143
7181
  }));
6144
7182
  };
6145
7183
  DesignAtomsViewerApiClient.prototype.processGetColorPreviews = function (response) {
6146
- var e_62, _a;
7184
+ var e_72, _a;
6147
7185
  var _this = this;
6148
7186
  var status = response.status;
6149
7187
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6156,12 +7194,12 @@
6156
7194
  _headers[key] = response.headers.get(key);
6157
7195
  }
6158
7196
  }
6159
- catch (e_62_1) { e_62 = { error: e_62_1 }; }
7197
+ catch (e_72_1) { e_72 = { error: e_72_1 }; }
6160
7198
  finally {
6161
7199
  try {
6162
7200
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6163
7201
  }
6164
- finally { if (e_62) throw e_62.error; }
7202
+ finally { if (e_72) throw e_72.error; }
6165
7203
  }
6166
7204
  }
6167
7205
  if (status === 200) {
@@ -6228,7 +7266,7 @@
6228
7266
  }));
6229
7267
  };
6230
7268
  DesignAtomsViewerApiClient.prototype.processGetCssFont = function (response) {
6231
- var e_63, _a;
7269
+ var e_73, _a;
6232
7270
  var _this = this;
6233
7271
  var status = response.status;
6234
7272
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6241,12 +7279,12 @@
6241
7279
  _headers[key] = response.headers.get(key);
6242
7280
  }
6243
7281
  }
6244
- catch (e_63_1) { e_63 = { error: e_63_1 }; }
7282
+ catch (e_73_1) { e_73 = { error: e_73_1 }; }
6245
7283
  finally {
6246
7284
  try {
6247
7285
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6248
7286
  }
6249
- finally { if (e_63) throw e_63.error; }
7287
+ finally { if (e_73) throw e_73.error; }
6250
7288
  }
6251
7289
  }
6252
7290
  if (status === 200 || status === 206) {
@@ -6316,7 +7354,7 @@
6316
7354
  }));
6317
7355
  };
6318
7356
  DesignAtomsViewerApiClient.prototype.processGetFallbackFonts = function (response) {
6319
- var e_64, _a;
7357
+ var e_74, _a;
6320
7358
  var _this = this;
6321
7359
  var status = response.status;
6322
7360
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6329,12 +7367,12 @@
6329
7367
  _headers[key] = response.headers.get(key);
6330
7368
  }
6331
7369
  }
6332
- catch (e_64_1) { e_64 = { error: e_64_1 }; }
7370
+ catch (e_74_1) { e_74 = { error: e_74_1 }; }
6333
7371
  finally {
6334
7372
  try {
6335
7373
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6336
7374
  }
6337
- finally { if (e_64) throw e_64.error; }
7375
+ finally { if (e_74) throw e_74.error; }
6338
7376
  }
6339
7377
  }
6340
7378
  if (status === 200) {
@@ -6402,7 +7440,7 @@
6402
7440
  }));
6403
7441
  };
6404
7442
  DesignAtomsViewerApiClient.prototype.processGetImageSize = function (response) {
6405
- var e_65, _a;
7443
+ var e_75, _a;
6406
7444
  var _this = this;
6407
7445
  var status = response.status;
6408
7446
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6415,12 +7453,12 @@
6415
7453
  _headers[key] = response.headers.get(key);
6416
7454
  }
6417
7455
  }
6418
- catch (e_65_1) { e_65 = { error: e_65_1 }; }
7456
+ catch (e_75_1) { e_75 = { error: e_75_1 }; }
6419
7457
  finally {
6420
7458
  try {
6421
7459
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6422
7460
  }
6423
- finally { if (e_65) throw e_65.error; }
7461
+ finally { if (e_75) throw e_75.error; }
6424
7462
  }
6425
7463
  }
6426
7464
  if (status === 200) {
@@ -6488,7 +7526,7 @@
6488
7526
  }));
6489
7527
  };
6490
7528
  DesignAtomsViewerApiClient.prototype.processGetShapeBounds = function (response) {
6491
- var e_66, _a;
7529
+ var e_76, _a;
6492
7530
  var _this = this;
6493
7531
  var status = response.status;
6494
7532
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6501,12 +7539,12 @@
6501
7539
  _headers[key] = response.headers.get(key);
6502
7540
  }
6503
7541
  }
6504
- catch (e_66_1) { e_66 = { error: e_66_1 }; }
7542
+ catch (e_76_1) { e_76 = { error: e_76_1 }; }
6505
7543
  finally {
6506
7544
  try {
6507
7545
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6508
7546
  }
6509
- finally { if (e_66) throw e_66.error; }
7547
+ finally { if (e_76) throw e_76.error; }
6510
7548
  }
6511
7549
  }
6512
7550
  if (status === 200) {
@@ -6574,7 +7612,7 @@
6574
7612
  }));
6575
7613
  };
6576
7614
  DesignAtomsViewerApiClient.prototype.processGetWatermarkItems = function (response) {
6577
- var e_67, _a;
7615
+ var e_77, _a;
6578
7616
  var _this = this;
6579
7617
  var status = response.status;
6580
7618
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6587,12 +7625,12 @@
6587
7625
  _headers[key] = response.headers.get(key);
6588
7626
  }
6589
7627
  }
6590
- catch (e_67_1) { e_67 = { error: e_67_1 }; }
7628
+ catch (e_77_1) { e_77 = { error: e_77_1 }; }
6591
7629
  finally {
6592
7630
  try {
6593
7631
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6594
7632
  }
6595
- finally { if (e_67) throw e_67.error; }
7633
+ finally { if (e_77) throw e_77.error; }
6596
7634
  }
6597
7635
  }
6598
7636
  if (status === 200) {
@@ -6710,7 +7748,7 @@
6710
7748
  }));
6711
7749
  };
6712
7750
  DesignAtomsViewerApiClient.prototype.processImg = function (response) {
6713
- var e_68, _a;
7751
+ var e_78, _a;
6714
7752
  var _this = this;
6715
7753
  var status = response.status;
6716
7754
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6723,12 +7761,12 @@
6723
7761
  _headers[key] = response.headers.get(key);
6724
7762
  }
6725
7763
  }
6726
- catch (e_68_1) { e_68 = { error: e_68_1 }; }
7764
+ catch (e_78_1) { e_78 = { error: e_78_1 }; }
6727
7765
  finally {
6728
7766
  try {
6729
7767
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6730
7768
  }
6731
- finally { if (e_68) throw e_68.error; }
7769
+ finally { if (e_78) throw e_78.error; }
6732
7770
  }
6733
7771
  }
6734
7772
  if (status === 200 || status === 206) {
@@ -6803,7 +7841,7 @@
6803
7841
  }));
6804
7842
  };
6805
7843
  DesignAtomsViewerApiClient.prototype.processGetLicense = function (response) {
6806
- var e_69, _a;
7844
+ var e_79, _a;
6807
7845
  var _this = this;
6808
7846
  var status = response.status;
6809
7847
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6816,12 +7854,12 @@
6816
7854
  _headers[key] = response.headers.get(key);
6817
7855
  }
6818
7856
  }
6819
- catch (e_69_1) { e_69 = { error: e_69_1 }; }
7857
+ catch (e_79_1) { e_79 = { error: e_79_1 }; }
6820
7858
  finally {
6821
7859
  try {
6822
7860
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6823
7861
  }
6824
- finally { if (e_69) throw e_69.error; }
7862
+ finally { if (e_79) throw e_79.error; }
6825
7863
  }
6826
7864
  }
6827
7865
  if (status === 200) {
@@ -6888,7 +7926,7 @@
6888
7926
  }));
6889
7927
  };
6890
7928
  DesignAtomsViewerApiClient.prototype.processPth = function (response) {
6891
- var e_70, _a;
7929
+ var e_80, _a;
6892
7930
  var _this = this;
6893
7931
  var status = response.status;
6894
7932
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6901,12 +7939,12 @@
6901
7939
  _headers[key] = response.headers.get(key);
6902
7940
  }
6903
7941
  }
6904
- catch (e_70_1) { e_70 = { error: e_70_1 }; }
7942
+ catch (e_80_1) { e_80 = { error: e_80_1 }; }
6905
7943
  finally {
6906
7944
  try {
6907
7945
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
6908
7946
  }
6909
- finally { if (e_70) throw e_70.error; }
7947
+ finally { if (e_80) throw e_80.error; }
6910
7948
  }
6911
7949
  }
6912
7950
  if (status === 200 || status === 206) {
@@ -6984,7 +8022,7 @@
6984
8022
  }));
6985
8023
  };
6986
8024
  DesignAtomsViewerApiClient.prototype.processResource = function (response) {
6987
- var e_71, _a;
8025
+ var e_81, _a;
6988
8026
  var _this = this;
6989
8027
  var status = response.status;
6990
8028
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -6997,12 +8035,12 @@
6997
8035
  _headers[key] = response.headers.get(key);
6998
8036
  }
6999
8037
  }
7000
- catch (e_71_1) { e_71 = { error: e_71_1 }; }
8038
+ catch (e_81_1) { e_81 = { error: e_81_1 }; }
7001
8039
  finally {
7002
8040
  try {
7003
8041
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7004
8042
  }
7005
- finally { if (e_71) throw e_71.error; }
8043
+ finally { if (e_81) throw e_81.error; }
7006
8044
  }
7007
8045
  }
7008
8046
  if (status === 200 || status === 206) {
@@ -7126,7 +8164,7 @@
7126
8164
  }));
7127
8165
  };
7128
8166
  DesignAtomsViewerApiClient.prototype.processSvg = function (response) {
7129
- var e_72, _a;
8167
+ var e_82, _a;
7130
8168
  var _this = this;
7131
8169
  var status = response.status;
7132
8170
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7139,12 +8177,12 @@
7139
8177
  _headers[key] = response.headers.get(key);
7140
8178
  }
7141
8179
  }
7142
- catch (e_72_1) { e_72 = { error: e_72_1 }; }
8180
+ catch (e_82_1) { e_82 = { error: e_82_1 }; }
7143
8181
  finally {
7144
8182
  try {
7145
8183
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7146
8184
  }
7147
- finally { if (e_72) throw e_72.error; }
8185
+ finally { if (e_82) throw e_82.error; }
7148
8186
  }
7149
8187
  }
7150
8188
  if (status === 200 || status === 206) {
@@ -7222,7 +8260,7 @@
7222
8260
  }));
7223
8261
  };
7224
8262
  DesignAtomsViewerApiClient.prototype.processTxt = function (response) {
7225
- var e_73, _a;
8263
+ var e_83, _a;
7226
8264
  var _this = this;
7227
8265
  var status = response.status;
7228
8266
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7235,12 +8273,12 @@
7235
8273
  _headers[key] = response.headers.get(key);
7236
8274
  }
7237
8275
  }
7238
- catch (e_73_1) { e_73 = { error: e_73_1 }; }
8276
+ catch (e_83_1) { e_83 = { error: e_83_1 }; }
7239
8277
  finally {
7240
8278
  try {
7241
8279
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7242
8280
  }
7243
- finally { if (e_73) throw e_73.error; }
8281
+ finally { if (e_83) throw e_83.error; }
7244
8282
  }
7245
8283
  }
7246
8284
  if (status === 200 || status === 206) {
@@ -7319,7 +8357,7 @@
7319
8357
  }));
7320
8358
  };
7321
8359
  DesignAtomsViewerApiClient.prototype.processUpdateArchedTextItemHandler = function (response) {
7322
- var e_74, _a;
8360
+ var e_84, _a;
7323
8361
  var _this = this;
7324
8362
  var status = response.status;
7325
8363
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7332,12 +8370,12 @@
7332
8370
  _headers[key] = response.headers.get(key);
7333
8371
  }
7334
8372
  }
7335
- catch (e_74_1) { e_74 = { error: e_74_1 }; }
8373
+ catch (e_84_1) { e_84 = { error: e_84_1 }; }
7336
8374
  finally {
7337
8375
  try {
7338
8376
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7339
8377
  }
7340
- finally { if (e_74) throw e_74.error; }
8378
+ finally { if (e_84) throw e_84.error; }
7341
8379
  }
7342
8380
  }
7343
8381
  if (status === 200) {
@@ -7405,7 +8443,7 @@
7405
8443
  }));
7406
8444
  };
7407
8445
  DesignAtomsViewerApiClient.prototype.processUpdateAutoScaledTextItemHandler = function (response) {
7408
- var e_75, _a;
8446
+ var e_85, _a;
7409
8447
  var _this = this;
7410
8448
  var status = response.status;
7411
8449
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7418,12 +8456,12 @@
7418
8456
  _headers[key] = response.headers.get(key);
7419
8457
  }
7420
8458
  }
7421
- catch (e_75_1) { e_75 = { error: e_75_1 }; }
8459
+ catch (e_85_1) { e_85 = { error: e_85_1 }; }
7422
8460
  finally {
7423
8461
  try {
7424
8462
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7425
8463
  }
7426
- finally { if (e_75) throw e_75.error; }
8464
+ finally { if (e_85) throw e_85.error; }
7427
8465
  }
7428
8466
  }
7429
8467
  if (status === 200) {
@@ -7491,7 +8529,7 @@
7491
8529
  }));
7492
8530
  };
7493
8531
  DesignAtomsViewerApiClient.prototype.processUpdateBarcodeItemHandler = function (response) {
7494
- var e_76, _a;
8532
+ var e_86, _a;
7495
8533
  var _this = this;
7496
8534
  var status = response.status;
7497
8535
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7504,12 +8542,12 @@
7504
8542
  _headers[key] = response.headers.get(key);
7505
8543
  }
7506
8544
  }
7507
- catch (e_76_1) { e_76 = { error: e_76_1 }; }
8545
+ catch (e_86_1) { e_86 = { error: e_86_1 }; }
7508
8546
  finally {
7509
8547
  try {
7510
8548
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7511
8549
  }
7512
- finally { if (e_76) throw e_76.error; }
8550
+ finally { if (e_86) throw e_86.error; }
7513
8551
  }
7514
8552
  }
7515
8553
  if (status === 200) {
@@ -7577,7 +8615,7 @@
7577
8615
  }));
7578
8616
  };
7579
8617
  DesignAtomsViewerApiClient.prototype.processUpdateBoundedTextItemHandler = function (response) {
7580
- var e_77, _a;
8618
+ var e_87, _a;
7581
8619
  var _this = this;
7582
8620
  var status = response.status;
7583
8621
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7590,12 +8628,12 @@
7590
8628
  _headers[key] = response.headers.get(key);
7591
8629
  }
7592
8630
  }
7593
- catch (e_77_1) { e_77 = { error: e_77_1 }; }
8631
+ catch (e_87_1) { e_87 = { error: e_87_1 }; }
7594
8632
  finally {
7595
8633
  try {
7596
8634
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7597
8635
  }
7598
- finally { if (e_77) throw e_77.error; }
8636
+ finally { if (e_87) throw e_87.error; }
7599
8637
  }
7600
8638
  }
7601
8639
  if (status === 200) {
@@ -7663,7 +8701,7 @@
7663
8701
  }));
7664
8702
  };
7665
8703
  DesignAtomsViewerApiClient.prototype.processUpdateByColorData = function (response) {
7666
- var e_78, _a;
8704
+ var e_88, _a;
7667
8705
  var _this = this;
7668
8706
  var status = response.status;
7669
8707
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7676,12 +8714,12 @@
7676
8714
  _headers[key] = response.headers.get(key);
7677
8715
  }
7678
8716
  }
7679
- catch (e_78_1) { e_78 = { error: e_78_1 }; }
8717
+ catch (e_88_1) { e_88 = { error: e_88_1 }; }
7680
8718
  finally {
7681
8719
  try {
7682
8720
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7683
8721
  }
7684
- finally { if (e_78) throw e_78.error; }
8722
+ finally { if (e_88) throw e_88.error; }
7685
8723
  }
7686
8724
  }
7687
8725
  if (status === 200) {
@@ -7749,7 +8787,7 @@
7749
8787
  }));
7750
8788
  };
7751
8789
  DesignAtomsViewerApiClient.prototype.processUpdateByMultiCallRequest = function (response) {
7752
- var e_79, _a;
8790
+ var e_89, _a;
7753
8791
  var _this = this;
7754
8792
  var status = response.status;
7755
8793
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7762,12 +8800,12 @@
7762
8800
  _headers[key] = response.headers.get(key);
7763
8801
  }
7764
8802
  }
7765
- catch (e_79_1) { e_79 = { error: e_79_1 }; }
8803
+ catch (e_89_1) { e_89 = { error: e_89_1 }; }
7766
8804
  finally {
7767
8805
  try {
7768
8806
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7769
8807
  }
7770
- finally { if (e_79) throw e_79.error; }
8808
+ finally { if (e_89) throw e_89.error; }
7771
8809
  }
7772
8810
  }
7773
8811
  if (status === 200) {
@@ -7835,7 +8873,7 @@
7835
8873
  }));
7836
8874
  };
7837
8875
  DesignAtomsViewerApiClient.prototype.processUpdateCurvedTextItemHandler = function (response) {
7838
- var e_80, _a;
8876
+ var e_90, _a;
7839
8877
  var _this = this;
7840
8878
  var status = response.status;
7841
8879
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7848,12 +8886,12 @@
7848
8886
  _headers[key] = response.headers.get(key);
7849
8887
  }
7850
8888
  }
7851
- catch (e_80_1) { e_80 = { error: e_80_1 }; }
8889
+ catch (e_90_1) { e_90 = { error: e_90_1 }; }
7852
8890
  finally {
7853
8891
  try {
7854
8892
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7855
8893
  }
7856
- finally { if (e_80) throw e_80.error; }
8894
+ finally { if (e_90) throw e_90.error; }
7857
8895
  }
7858
8896
  }
7859
8897
  if (status === 200) {
@@ -7921,7 +8959,7 @@
7921
8959
  }));
7922
8960
  };
7923
8961
  DesignAtomsViewerApiClient.prototype.processUpdateImageItemHandler = function (response) {
7924
- var e_81, _a;
8962
+ var e_91, _a;
7925
8963
  var _this = this;
7926
8964
  var status = response.status;
7927
8965
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -7934,12 +8972,12 @@
7934
8972
  _headers[key] = response.headers.get(key);
7935
8973
  }
7936
8974
  }
7937
- catch (e_81_1) { e_81 = { error: e_81_1 }; }
8975
+ catch (e_91_1) { e_91 = { error: e_91_1 }; }
7938
8976
  finally {
7939
8977
  try {
7940
8978
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7941
8979
  }
7942
- finally { if (e_81) throw e_81.error; }
8980
+ finally { if (e_91) throw e_91.error; }
7943
8981
  }
7944
8982
  }
7945
8983
  if (status === 200) {
@@ -8007,7 +9045,7 @@
8007
9045
  }));
8008
9046
  };
8009
9047
  DesignAtomsViewerApiClient.prototype.processUpdatePathBoundedTextItemHandler = function (response) {
8010
- var e_82, _a;
9048
+ var e_92, _a;
8011
9049
  var _this = this;
8012
9050
  var status = response.status;
8013
9051
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8020,12 +9058,12 @@
8020
9058
  _headers[key] = response.headers.get(key);
8021
9059
  }
8022
9060
  }
8023
- catch (e_82_1) { e_82 = { error: e_82_1 }; }
9061
+ catch (e_92_1) { e_92 = { error: e_92_1 }; }
8024
9062
  finally {
8025
9063
  try {
8026
9064
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8027
9065
  }
8028
- finally { if (e_82) throw e_82.error; }
9066
+ finally { if (e_92) throw e_92.error; }
8029
9067
  }
8030
9068
  }
8031
9069
  if (status === 200) {
@@ -8093,7 +9131,7 @@
8093
9131
  }));
8094
9132
  };
8095
9133
  DesignAtomsViewerApiClient.prototype.processUpdatePlainTextItemHandler = function (response) {
8096
- var e_83, _a;
9134
+ var e_93, _a;
8097
9135
  var _this = this;
8098
9136
  var status = response.status;
8099
9137
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8106,12 +9144,12 @@
8106
9144
  _headers[key] = response.headers.get(key);
8107
9145
  }
8108
9146
  }
8109
- catch (e_83_1) { e_83 = { error: e_83_1 }; }
9147
+ catch (e_93_1) { e_93 = { error: e_93_1 }; }
8110
9148
  finally {
8111
9149
  try {
8112
9150
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8113
9151
  }
8114
- finally { if (e_83) throw e_83.error; }
9152
+ finally { if (e_93) throw e_93.error; }
8115
9153
  }
8116
9154
  }
8117
9155
  if (status === 200) {
@@ -8179,7 +9217,7 @@
8179
9217
  }));
8180
9218
  };
8181
9219
  DesignAtomsViewerApiClient.prototype.processUpdateShapeItemHandler = function (response) {
8182
- var e_84, _a;
9220
+ var e_94, _a;
8183
9221
  var _this = this;
8184
9222
  var status = response.status;
8185
9223
  var responseBlob = response instanceof i1.HttpResponse ? response.body :
@@ -8192,12 +9230,12 @@
8192
9230
  _headers[key] = response.headers.get(key);
8193
9231
  }
8194
9232
  }
8195
- catch (e_84_1) { e_84 = { error: e_84_1 }; }
9233
+ catch (e_94_1) { e_94 = { error: e_94_1 }; }
8196
9234
  finally {
8197
9235
  try {
8198
9236
  if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
8199
9237
  }
8200
- finally { if (e_84) throw e_84.error; }
9238
+ finally { if (e_94) throw e_94.error; }
8201
9239
  }
8202
9240
  }
8203
9241
  if (status === 200) {
@@ -8259,6 +9297,7 @@
8259
9297
  ItemSourceType["File"] = "File";
8260
9298
  ItemSourceType["ImageStorage"] = "ImageStorage";
8261
9299
  ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
9300
+ ItemSourceType["Url"] = "Url";
8262
9301
  })(exports.ItemSourceType || (exports.ItemSourceType = {}));
8263
9302
  (function (ItemType) {
8264
9303
  ItemType["Image"] = "Image";