@aurigma/axios-design-atoms-api-client 2.29.1 → 2.31.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-atoms-api-client.d.ts +70 -22
- package/dist/cjs/design-atoms-api-client.js +122 -15
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +70 -22
- package/dist/esm/design-atoms-api-client.js +120 -14
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -330,6 +330,33 @@ export declare class DesignAtomsCompatibilityApiClient extends ApiClientBase imp
|
|
|
330
330
|
updateShapeItemHandler(tenantId: number, body?: UpdateHandlerRequest | null | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
|
|
331
331
|
protected processUpdateShapeItemHandler(response: AxiosResponse): Promise<any>;
|
|
332
332
|
}
|
|
333
|
+
export interface IDesignAtomsImagesApiClient {
|
|
334
|
+
/**
|
|
335
|
+
* Renders a web image preview with the specified parameters.
|
|
336
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
337
|
+
(default value is 'false').
|
|
338
|
+
* @param tenantId (optional) Tenant identifier
|
|
339
|
+
* @param body (optional) Render model with preview parameters.
|
|
340
|
+
* @return Success
|
|
341
|
+
*/
|
|
342
|
+
renderImagePreview(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderImagePreviewModel | null | undefined): Promise<FileResponse>;
|
|
343
|
+
}
|
|
344
|
+
export declare class DesignAtomsImagesApiClient extends ApiClientBase implements IDesignAtomsImagesApiClient {
|
|
345
|
+
private instance;
|
|
346
|
+
private baseUrl;
|
|
347
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
348
|
+
constructor(configuration: ApiClientConfiguration, baseUrl?: string, instance?: AxiosInstance);
|
|
349
|
+
/**
|
|
350
|
+
* Renders a web image preview with the specified parameters.
|
|
351
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
352
|
+
(default value is 'false').
|
|
353
|
+
* @param tenantId (optional) Tenant identifier
|
|
354
|
+
* @param body (optional) Render model with preview parameters.
|
|
355
|
+
* @return Success
|
|
356
|
+
*/
|
|
357
|
+
renderImagePreview(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderImagePreviewModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<FileResponse>;
|
|
358
|
+
protected processRenderImagePreview(response: AxiosResponse): Promise<FileResponse>;
|
|
359
|
+
}
|
|
333
360
|
export interface IDesignAtomsServiceApiClient {
|
|
334
361
|
/**
|
|
335
362
|
* Converts colors
|
|
@@ -376,17 +403,20 @@ export interface IDesignAtomsServiceApiClient {
|
|
|
376
403
|
*/
|
|
377
404
|
saveProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: any | null | undefined): Promise<void>;
|
|
378
405
|
/**
|
|
379
|
-
* Patches product (design model) in design file
|
|
380
|
-
* @param id Design identifier
|
|
381
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
382
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
406
|
+
* Patches product (design model) in design file.
|
|
407
|
+
* @param id Design identifier.
|
|
408
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage.
|
|
409
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
383
410
|
* @param tenantId (optional) Tenant identifier
|
|
384
411
|
* @param patchType (optional)
|
|
385
412
|
* @param replaceImageItemFileInfo_itemName (optional)
|
|
386
413
|
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
414
|
+
* @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
|
|
415
|
+
* @param replacePlaceholderItemContentInfo_newContentType (optional)
|
|
416
|
+
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
387
417
|
* @return Success
|
|
388
418
|
*/
|
|
389
|
-
patchProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined): Promise<void>;
|
|
419
|
+
patchProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined, replacePlaceholderItemContentInfo_placeholderItemName?: string | null | undefined, replacePlaceholderItemContentInfo_newContentType?: PlaceholderItemContentType | undefined, replacePlaceholderItemContentInfo_sourceFile?: FileParameter | null | undefined): Promise<void>;
|
|
390
420
|
/**
|
|
391
421
|
* Loads data schema from design file taken from storage
|
|
392
422
|
* @param id Design identifier
|
|
@@ -561,17 +591,20 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
|
|
|
561
591
|
saveProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: any | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
562
592
|
protected processSaveProduct(response: AxiosResponse): Promise<void>;
|
|
563
593
|
/**
|
|
564
|
-
* Patches product (design model) in design file
|
|
565
|
-
* @param id Design identifier
|
|
566
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
567
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
594
|
+
* Patches product (design model) in design file.
|
|
595
|
+
* @param id Design identifier.
|
|
596
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage.
|
|
597
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
568
598
|
* @param tenantId (optional) Tenant identifier
|
|
569
599
|
* @param patchType (optional)
|
|
570
600
|
* @param replaceImageItemFileInfo_itemName (optional)
|
|
571
601
|
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
602
|
+
* @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
|
|
603
|
+
* @param replacePlaceholderItemContentInfo_newContentType (optional)
|
|
604
|
+
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
572
605
|
* @return Success
|
|
573
606
|
*/
|
|
574
|
-
patchProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
607
|
+
patchProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined, replacePlaceholderItemContentInfo_placeholderItemName?: string | null | undefined, replacePlaceholderItemContentInfo_newContentType?: PlaceholderItemContentType | undefined, replacePlaceholderItemContentInfo_sourceFile?: FileParameter | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
575
608
|
protected processPatchProduct(response: AxiosResponse): Promise<void>;
|
|
576
609
|
/**
|
|
577
610
|
* Loads data schema from design file taken from storage
|
|
@@ -1122,6 +1155,23 @@ export interface UpdateImageHandlerRequest {
|
|
|
1122
1155
|
itemHandlerData?: string | null;
|
|
1123
1156
|
itemData?: any | null;
|
|
1124
1157
|
}
|
|
1158
|
+
/** Product preview file format. */
|
|
1159
|
+
export declare enum ProductPreviewFormat {
|
|
1160
|
+
Jpeg = "Jpeg",
|
|
1161
|
+
Png = "Png",
|
|
1162
|
+
Tiff = "Tiff",
|
|
1163
|
+
Pdf = "Pdf"
|
|
1164
|
+
}
|
|
1165
|
+
export interface RenderImagePreviewModel {
|
|
1166
|
+
/** External image URL. */
|
|
1167
|
+
imageUrl?: string | null;
|
|
1168
|
+
/** Height of preview image. */
|
|
1169
|
+
height?: number;
|
|
1170
|
+
/** Width of preview image. */
|
|
1171
|
+
width?: number;
|
|
1172
|
+
/** Output image format. PNG by default. */
|
|
1173
|
+
fileFormat?: ProductPreviewFormat | null;
|
|
1174
|
+
}
|
|
1125
1175
|
/** Convert colors operation parameters */
|
|
1126
1176
|
export interface ConvertColorsModel {
|
|
1127
1177
|
/** Serialized color description */
|
|
@@ -1170,10 +1220,15 @@ export interface UnprocessableDesignElementDto {
|
|
|
1170
1220
|
/** Missing element type. */
|
|
1171
1221
|
readonly missingElementType?: DesignElementType;
|
|
1172
1222
|
}
|
|
1173
|
-
/** Available patch type */
|
|
1223
|
+
/** Available patch type. */
|
|
1174
1224
|
export declare enum ProductPatchType {
|
|
1175
1225
|
Undefined = "Undefined",
|
|
1176
|
-
ReplaceImageItemFile = "ReplaceImageItemFile"
|
|
1226
|
+
ReplaceImageItemFile = "ReplaceImageItemFile",
|
|
1227
|
+
ReplacePlaceholderItemContent = "ReplacePlaceholderItemContent"
|
|
1228
|
+
}
|
|
1229
|
+
/** Placeholder item content type. */
|
|
1230
|
+
export declare enum PlaceholderItemContentType {
|
|
1231
|
+
Image = "Image"
|
|
1177
1232
|
}
|
|
1178
1233
|
/** Variable information. */
|
|
1179
1234
|
export interface VariableInfo {
|
|
@@ -1208,13 +1263,6 @@ export declare enum ItemSourceType {
|
|
|
1208
1263
|
ImageStorage = "ImageStorage",
|
|
1209
1264
|
PrivateImageStorage = "PrivateImageStorage"
|
|
1210
1265
|
}
|
|
1211
|
-
/** Product preview file format. */
|
|
1212
|
-
export declare enum ProductPreviewFormat {
|
|
1213
|
-
Jpeg = "Jpeg",
|
|
1214
|
-
Png = "Png",
|
|
1215
|
-
Tiff = "Tiff",
|
|
1216
|
-
Pdf = "Pdf"
|
|
1217
|
-
}
|
|
1218
1266
|
export interface ProductPreviewRenderingConfig {
|
|
1219
1267
|
surfaceIndex?: number | null;
|
|
1220
1268
|
width?: number;
|
|
@@ -1232,7 +1280,7 @@ Used to get mockup file from public storage. */
|
|
|
1232
1280
|
ownerId?: string | null;
|
|
1233
1281
|
/** Rendering configuration for getting a preview of design. */
|
|
1234
1282
|
renderingConfig?: ProductPreviewRenderingConfig | null;
|
|
1235
|
-
/** Variable (user) data
|
|
1283
|
+
/** Variable (user) data for design variable fields in the preview image. */
|
|
1236
1284
|
variableData?: VariableInfo[] | null;
|
|
1237
1285
|
}
|
|
1238
1286
|
export declare enum ProductProofFormat {
|
|
@@ -1280,9 +1328,9 @@ Used to get design file from public or private storage. */
|
|
|
1280
1328
|
designId?: string | null;
|
|
1281
1329
|
/** ID of the design owner. */
|
|
1282
1330
|
ownerId?: string | null;
|
|
1283
|
-
/** Rendering configuration for getting a
|
|
1331
|
+
/** Rendering configuration for getting a proof image of design. */
|
|
1284
1332
|
renderingConfig?: ProductProofRenderingConfig | null;
|
|
1285
|
-
/** Variable (user) data
|
|
1333
|
+
/** Variable (user) data for design variable fields in the proof image. */
|
|
1286
1334
|
variableData?: VariableInfo[] | null;
|
|
1287
1335
|
}
|
|
1288
1336
|
/** Render product parameters */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
//----------------------
|
|
9
9
|
// ReSharper disable InconsistentNaming
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.ApiException = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.
|
|
11
|
+
exports.ApiException = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ItemSourceType = exports.ItemType = exports.PlaceholderItemContentType = exports.ProductPatchType = exports.DesignElementType = exports.ProductPreviewFormat = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsImagesApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
|
|
12
12
|
const axios_1 = require("axios");
|
|
13
13
|
class ApiClientConfiguration {
|
|
14
14
|
apiUrl;
|
|
@@ -1748,6 +1748,96 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
}
|
|
1750
1750
|
exports.DesignAtomsCompatibilityApiClient = DesignAtomsCompatibilityApiClient;
|
|
1751
|
+
class DesignAtomsImagesApiClient extends ApiClientBase {
|
|
1752
|
+
instance;
|
|
1753
|
+
baseUrl;
|
|
1754
|
+
jsonParseReviver = undefined;
|
|
1755
|
+
constructor(configuration, baseUrl, instance) {
|
|
1756
|
+
super(configuration);
|
|
1757
|
+
this.instance = instance ? instance : axios_1.default.create();
|
|
1758
|
+
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* Renders a web image preview with the specified parameters.
|
|
1762
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
1763
|
+
(default value is 'false').
|
|
1764
|
+
* @param tenantId (optional) Tenant identifier
|
|
1765
|
+
* @param body (optional) Render model with preview parameters.
|
|
1766
|
+
* @return Success
|
|
1767
|
+
*/
|
|
1768
|
+
renderImagePreview(attachment, tenantId, body, cancelToken) {
|
|
1769
|
+
let url_ = this.baseUrl + "/api/atoms/v1/images/render-image-preview?";
|
|
1770
|
+
if (attachment !== undefined && attachment !== null)
|
|
1771
|
+
url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
|
|
1772
|
+
if (tenantId === null)
|
|
1773
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
1774
|
+
else if (tenantId !== undefined)
|
|
1775
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
1776
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1777
|
+
const content_ = JSON.stringify(body);
|
|
1778
|
+
let options_ = {
|
|
1779
|
+
data: content_,
|
|
1780
|
+
responseType: "blob",
|
|
1781
|
+
method: "POST",
|
|
1782
|
+
url: url_,
|
|
1783
|
+
headers: {
|
|
1784
|
+
"Content-Type": "application/json",
|
|
1785
|
+
"Accept": "application/octet-stream"
|
|
1786
|
+
},
|
|
1787
|
+
cancelToken
|
|
1788
|
+
};
|
|
1789
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1790
|
+
return this.instance.request(transformedOptions_);
|
|
1791
|
+
}).catch((_error) => {
|
|
1792
|
+
if (isAxiosError(_error) && _error.response) {
|
|
1793
|
+
return _error.response;
|
|
1794
|
+
}
|
|
1795
|
+
else {
|
|
1796
|
+
throw _error;
|
|
1797
|
+
}
|
|
1798
|
+
}).then((_response) => {
|
|
1799
|
+
return this.transformResult(url_, _response, (_response) => this.processRenderImagePreview(_response));
|
|
1800
|
+
});
|
|
1801
|
+
}
|
|
1802
|
+
processRenderImagePreview(response) {
|
|
1803
|
+
const status = response.status;
|
|
1804
|
+
let _headers = {};
|
|
1805
|
+
if (response.headers && typeof response.headers === "object") {
|
|
1806
|
+
for (let k in response.headers) {
|
|
1807
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
1808
|
+
_headers[k] = response.headers[k];
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
if (status === 200 || status === 206) {
|
|
1813
|
+
const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
|
|
1814
|
+
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
1815
|
+
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
1816
|
+
return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
|
|
1817
|
+
}
|
|
1818
|
+
else if (status === 401) {
|
|
1819
|
+
const _responseText = response.data;
|
|
1820
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
1821
|
+
}
|
|
1822
|
+
else if (status === 403) {
|
|
1823
|
+
const _responseText = response.data;
|
|
1824
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
1825
|
+
}
|
|
1826
|
+
else if (status === 500) {
|
|
1827
|
+
const _responseText = response.data;
|
|
1828
|
+
let result500 = null;
|
|
1829
|
+
let resultData500 = _responseText;
|
|
1830
|
+
result500 = JSON.parse(resultData500);
|
|
1831
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
1832
|
+
}
|
|
1833
|
+
else if (status !== 200 && status !== 204) {
|
|
1834
|
+
const _responseText = response.data;
|
|
1835
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1836
|
+
}
|
|
1837
|
+
return Promise.resolve(null);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
exports.DesignAtomsImagesApiClient = DesignAtomsImagesApiClient;
|
|
1751
1841
|
class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
1752
1842
|
instance;
|
|
1753
1843
|
baseUrl;
|
|
@@ -2192,17 +2282,20 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2192
2282
|
return Promise.resolve(null);
|
|
2193
2283
|
}
|
|
2194
2284
|
/**
|
|
2195
|
-
* Patches product (design model) in design file
|
|
2196
|
-
* @param id Design identifier
|
|
2197
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2198
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2285
|
+
* Patches product (design model) in design file.
|
|
2286
|
+
* @param id Design identifier.
|
|
2287
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage.
|
|
2288
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
2199
2289
|
* @param tenantId (optional) Tenant identifier
|
|
2200
2290
|
* @param patchType (optional)
|
|
2201
2291
|
* @param replaceImageItemFileInfo_itemName (optional)
|
|
2202
2292
|
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
2293
|
+
* @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
|
|
2294
|
+
* @param replacePlaceholderItemContentInfo_newContentType (optional)
|
|
2295
|
+
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
2203
2296
|
* @return Success
|
|
2204
2297
|
*/
|
|
2205
|
-
patchProduct(id, privateStorage, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, cancelToken) {
|
|
2298
|
+
patchProduct(id, privateStorage, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile, replacePlaceholderItemContentInfo_placeholderItemName, replacePlaceholderItemContentInfo_newContentType, replacePlaceholderItemContentInfo_sourceFile, cancelToken) {
|
|
2206
2299
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
|
|
2207
2300
|
if (id === undefined || id === null)
|
|
2208
2301
|
throw new Error("The parameter 'id' must be defined.");
|
|
@@ -2225,6 +2318,14 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2225
2318
|
content_.append("replaceImageItemFileInfo.itemName", replaceImageItemFileInfo_itemName.toString());
|
|
2226
2319
|
if (replaceImageItemFileInfo_sourceFile !== null && replaceImageItemFileInfo_sourceFile !== undefined)
|
|
2227
2320
|
content_.append("replaceImageItemFileInfo.sourceFile", replaceImageItemFileInfo_sourceFile.data, replaceImageItemFileInfo_sourceFile.fileName ? replaceImageItemFileInfo_sourceFile.fileName : "replaceImageItemFileInfo.sourceFile");
|
|
2321
|
+
if (replacePlaceholderItemContentInfo_placeholderItemName !== null && replacePlaceholderItemContentInfo_placeholderItemName !== undefined)
|
|
2322
|
+
content_.append("replacePlaceholderItemContentInfo.placeholderItemName", replacePlaceholderItemContentInfo_placeholderItemName.toString());
|
|
2323
|
+
if (replacePlaceholderItemContentInfo_newContentType === null || replacePlaceholderItemContentInfo_newContentType === undefined)
|
|
2324
|
+
throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");
|
|
2325
|
+
else
|
|
2326
|
+
content_.append("replacePlaceholderItemContentInfo.newContentType", replacePlaceholderItemContentInfo_newContentType.toString());
|
|
2327
|
+
if (replacePlaceholderItemContentInfo_sourceFile !== null && replacePlaceholderItemContentInfo_sourceFile !== undefined)
|
|
2328
|
+
content_.append("replacePlaceholderItemContentInfo.sourceFile", replacePlaceholderItemContentInfo_sourceFile.data, replacePlaceholderItemContentInfo_sourceFile.fileName ? replacePlaceholderItemContentInfo_sourceFile.fileName : "replacePlaceholderItemContentInfo.sourceFile");
|
|
2228
2329
|
let options_ = {
|
|
2229
2330
|
data: content_,
|
|
2230
2331
|
method: "PATCH",
|
|
@@ -5017,6 +5118,14 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
5017
5118
|
}
|
|
5018
5119
|
}
|
|
5019
5120
|
exports.DesignAtomsViewerApiClient = DesignAtomsViewerApiClient;
|
|
5121
|
+
/** Product preview file format. */
|
|
5122
|
+
var ProductPreviewFormat;
|
|
5123
|
+
(function (ProductPreviewFormat) {
|
|
5124
|
+
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
5125
|
+
ProductPreviewFormat["Png"] = "Png";
|
|
5126
|
+
ProductPreviewFormat["Tiff"] = "Tiff";
|
|
5127
|
+
ProductPreviewFormat["Pdf"] = "Pdf";
|
|
5128
|
+
})(ProductPreviewFormat = exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
5020
5129
|
var DesignElementType;
|
|
5021
5130
|
(function (DesignElementType) {
|
|
5022
5131
|
DesignElementType["Product"] = "Product";
|
|
@@ -5026,12 +5135,18 @@ var DesignElementType;
|
|
|
5026
5135
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
5027
5136
|
DesignElementType["Item"] = "Item";
|
|
5028
5137
|
})(DesignElementType = exports.DesignElementType || (exports.DesignElementType = {}));
|
|
5029
|
-
/** Available patch type */
|
|
5138
|
+
/** Available patch type. */
|
|
5030
5139
|
var ProductPatchType;
|
|
5031
5140
|
(function (ProductPatchType) {
|
|
5032
5141
|
ProductPatchType["Undefined"] = "Undefined";
|
|
5033
5142
|
ProductPatchType["ReplaceImageItemFile"] = "ReplaceImageItemFile";
|
|
5143
|
+
ProductPatchType["ReplacePlaceholderItemContent"] = "ReplacePlaceholderItemContent";
|
|
5034
5144
|
})(ProductPatchType = exports.ProductPatchType || (exports.ProductPatchType = {}));
|
|
5145
|
+
/** Placeholder item content type. */
|
|
5146
|
+
var PlaceholderItemContentType;
|
|
5147
|
+
(function (PlaceholderItemContentType) {
|
|
5148
|
+
PlaceholderItemContentType["Image"] = "Image";
|
|
5149
|
+
})(PlaceholderItemContentType = exports.PlaceholderItemContentType || (exports.PlaceholderItemContentType = {}));
|
|
5035
5150
|
var ItemType;
|
|
5036
5151
|
(function (ItemType) {
|
|
5037
5152
|
ItemType["Image"] = "Image";
|
|
@@ -5046,14 +5161,6 @@ var ItemSourceType;
|
|
|
5046
5161
|
ItemSourceType["ImageStorage"] = "ImageStorage";
|
|
5047
5162
|
ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
|
|
5048
5163
|
})(ItemSourceType = exports.ItemSourceType || (exports.ItemSourceType = {}));
|
|
5049
|
-
/** Product preview file format. */
|
|
5050
|
-
var ProductPreviewFormat;
|
|
5051
|
-
(function (ProductPreviewFormat) {
|
|
5052
|
-
ProductPreviewFormat["Jpeg"] = "Jpeg";
|
|
5053
|
-
ProductPreviewFormat["Png"] = "Png";
|
|
5054
|
-
ProductPreviewFormat["Tiff"] = "Tiff";
|
|
5055
|
-
ProductPreviewFormat["Pdf"] = "Pdf";
|
|
5056
|
-
})(ProductPreviewFormat = exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
|
|
5057
5164
|
var ProductProofFormat;
|
|
5058
5165
|
(function (ProductProofFormat) {
|
|
5059
5166
|
ProductProofFormat["Jpeg"] = "Jpeg";
|