@aurigma/axios-design-atoms-api-client 2.23.1 → 2.26.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.
@@ -405,7 +405,7 @@ export interface IDesignAtomsServiceApiClient {
405
405
  * @param body (optional) Design variable values
406
406
  * @return Success
407
407
  */
408
- setVariables(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | null | undefined): Promise<VariablesModel>;
408
+ setVariables(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | null | undefined): Promise<void>;
409
409
  /**
410
410
  * Loads variable data printing information from design file taken from storage
411
411
  * @param id Design identifier
@@ -435,9 +435,9 @@ export interface IDesignAtomsServiceApiClient {
435
435
  */
436
436
  deleteVdpData(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<void>;
437
437
  /**
438
- * Flatten items
438
+ * Flatten items.
439
439
  * @param tenantId (optional) Tenant identifier
440
- * @param body (optional) Items to flatten
440
+ * @param body (optional) Items to flatten.
441
441
  * @return Success
442
442
  */
443
443
  flattenItems(tenantId?: number | undefined, body?: any[] | null | undefined): Promise<any>;
@@ -452,11 +452,37 @@ export interface IDesignAtomsServiceApiClient {
452
452
  * @return Success
453
453
  */
454
454
  createItem(itemType?: ItemType | null | undefined, tenantId?: number | undefined, sourceType?: ItemSourceType | null | undefined, sourceId?: string | null | undefined, sourceOwnerId?: string | null | undefined, sourceFile?: FileParameter | null | undefined): Promise<any>;
455
+ /**
456
+ * Creates a private design from a public design.
457
+ * @param designId (optional) Public design ID.
458
+ * @param privateDesignId (optional) Private design ID.
459
+ * @param privateStorageOwner (optional) Private storage owner ID.
460
+ * @param tenantId (optional) Tenant identifier
461
+ * @return Success
462
+ */
463
+ createPrivateDesignFromDesign(designId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<void>;
464
+ /**
465
+ * Creates a private design from a public resource.
466
+ * @param resourceId (optional) Resource ID.
467
+ * @param privateDesignId (optional) Private design ID.
468
+ * @param privateStorageOwner (optional) Private storage owner ID.
469
+ * @param tenantId (optional) Tenant identifier
470
+ * @return Success
471
+ */
472
+ createPrivateDesignFromResource(resourceId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<void>;
473
+ /**
474
+ * Renders a design with the specified parameters.
475
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
476
+ * @param tenantId (optional) Tenant identifier
477
+ * @param body (optional) Render model with preview parameters.
478
+ * @return Success
479
+ */
480
+ renderDesign(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderDesignModel | null | undefined): Promise<FileResponse>;
455
481
  /**
456
482
  * Render product proof image with specified parameters.
457
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
483
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
458
484
  * @param tenantId (optional) Tenant identifier
459
- * @param body (optional) Preview parameters
485
+ * @param body (optional) Preview parameters.
460
486
  * @return Success
461
487
  */
462
488
  renderProduct(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderProductModel | null | undefined): Promise<FileResponse>;
@@ -547,8 +573,8 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
547
573
  * @param body (optional) Design variable values
548
574
  * @return Success
549
575
  */
550
- setVariables(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<VariablesModel>;
551
- protected processSetVariables(response: AxiosResponse): Promise<VariablesModel>;
576
+ setVariables(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
577
+ protected processSetVariables(response: AxiosResponse): Promise<void>;
552
578
  /**
553
579
  * Loads variable data printing information from design file taken from storage
554
580
  * @param id Design identifier
@@ -581,9 +607,9 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
581
607
  deleteVdpData(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
582
608
  protected processDeleteVdpData(response: AxiosResponse): Promise<void>;
583
609
  /**
584
- * Flatten items
610
+ * Flatten items.
585
611
  * @param tenantId (optional) Tenant identifier
586
- * @param body (optional) Items to flatten
612
+ * @param body (optional) Items to flatten.
587
613
  * @return Success
588
614
  */
589
615
  flattenItems(tenantId?: number | undefined, body?: any[] | null | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
@@ -600,11 +626,40 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
600
626
  */
601
627
  createItem(itemType?: ItemType | null | undefined, tenantId?: number | undefined, sourceType?: ItemSourceType | null | undefined, sourceId?: string | null | undefined, sourceOwnerId?: string | null | undefined, sourceFile?: FileParameter | null | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
602
628
  protected processCreateItem(response: AxiosResponse): Promise<any>;
629
+ /**
630
+ * Creates a private design from a public design.
631
+ * @param designId (optional) Public design ID.
632
+ * @param privateDesignId (optional) Private design ID.
633
+ * @param privateStorageOwner (optional) Private storage owner ID.
634
+ * @param tenantId (optional) Tenant identifier
635
+ * @return Success
636
+ */
637
+ createPrivateDesignFromDesign(designId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
638
+ protected processCreatePrivateDesignFromDesign(response: AxiosResponse): Promise<void>;
639
+ /**
640
+ * Creates a private design from a public resource.
641
+ * @param resourceId (optional) Resource ID.
642
+ * @param privateDesignId (optional) Private design ID.
643
+ * @param privateStorageOwner (optional) Private storage owner ID.
644
+ * @param tenantId (optional) Tenant identifier
645
+ * @return Success
646
+ */
647
+ createPrivateDesignFromResource(resourceId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
648
+ protected processCreatePrivateDesignFromResource(response: AxiosResponse): Promise<void>;
649
+ /**
650
+ * Renders a design with the specified parameters.
651
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
652
+ * @param tenantId (optional) Tenant identifier
653
+ * @param body (optional) Render model with preview parameters.
654
+ * @return Success
655
+ */
656
+ renderDesign(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderDesignModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<FileResponse>;
657
+ protected processRenderDesign(response: AxiosResponse): Promise<FileResponse>;
603
658
  /**
604
659
  * Render product proof image with specified parameters.
605
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
660
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
606
661
  * @param tenantId (optional) Tenant identifier
607
- * @param body (optional) Preview parameters
662
+ * @param body (optional) Preview parameters.
608
663
  * @return Success
609
664
  */
610
665
  renderProduct(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderProductModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<FileResponse>;
@@ -1060,13 +1115,13 @@ export declare enum ProductPatchType {
1060
1115
  Undefined = "Undefined",
1061
1116
  ReplaceImageItemFile = "ReplaceImageItemFile"
1062
1117
  }
1063
- /** Variable information */
1118
+ /** Variable information. */
1064
1119
  export interface VariableInfo {
1065
- /** Variable name */
1120
+ /** Variable name. */
1066
1121
  name?: string | null;
1067
- /** Variable value */
1122
+ /** Variable value. */
1068
1123
  value?: string | null;
1069
- /** Variable type */
1124
+ /** Variable type. */
1070
1125
  type?: string | null;
1071
1126
  }
1072
1127
  /** Variables information */
@@ -1093,6 +1148,33 @@ export declare enum ItemSourceType {
1093
1148
  ImageStorage = "ImageStorage",
1094
1149
  PrivateImageStorage = "PrivateImageStorage"
1095
1150
  }
1151
+ /** Product preview file format. */
1152
+ export declare enum ProductPreviewFormat {
1153
+ Jpeg = "Jpeg",
1154
+ Png = "Png",
1155
+ Tiff = "Tiff",
1156
+ Pdf = "Pdf"
1157
+ }
1158
+ export interface ProductPreviewRenderingConfig {
1159
+ surfaceIndex?: number | null;
1160
+ width?: number;
1161
+ height?: number;
1162
+ fileFormat?: ProductPreviewFormat | null;
1163
+ }
1164
+ export interface RenderDesignModel {
1165
+ /** Design ID.
1166
+ Used to get design file from public or private storage. */
1167
+ designId?: string | null;
1168
+ /** Mockup ID.
1169
+ Used to get mockup file from public storage. */
1170
+ mockupId?: string | null;
1171
+ /** ID of the design owner. */
1172
+ ownerId?: string | null;
1173
+ /** Rendering configuration for getting a preview of design. */
1174
+ renderingConfig?: ProductPreviewRenderingConfig | null;
1175
+ /** Variable (user) data of design. */
1176
+ variableData?: VariableInfo[] | null;
1177
+ }
1096
1178
  export declare enum ProductProofFormat {
1097
1179
  Jpeg = "Jpeg",
1098
1180
  Png = "Png",
@@ -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.ItemSourceType = exports.ItemType = exports.ProductPatchType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
11
+ exports.ApiException = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ProductPreviewFormat = exports.ItemSourceType = exports.ItemType = exports.ProductPatchType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
12
12
  const axios_1 = require("axios");
13
13
  class ApiClientConfiguration {
14
14
  apiUrl;
@@ -2181,7 +2181,6 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2181
2181
  url: url_,
2182
2182
  headers: {
2183
2183
  "Content-Type": "application/json",
2184
- "Accept": "application/json"
2185
2184
  },
2186
2185
  cancelToken
2187
2186
  };
@@ -2210,10 +2209,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2210
2209
  }
2211
2210
  if (status === 200) {
2212
2211
  const _responseText = response.data;
2213
- let result200 = null;
2214
- let resultData200 = _responseText;
2215
- result200 = JSON.parse(resultData200);
2216
- return Promise.resolve(result200);
2212
+ return Promise.resolve(null);
2217
2213
  }
2218
2214
  else if (status === 404) {
2219
2215
  const _responseText = response.data;
@@ -2489,9 +2485,9 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2489
2485
  return Promise.resolve(null);
2490
2486
  }
2491
2487
  /**
2492
- * Flatten items
2488
+ * Flatten items.
2493
2489
  * @param tenantId (optional) Tenant identifier
2494
- * @param body (optional) Items to flatten
2490
+ * @param body (optional) Items to flatten.
2495
2491
  * @return Success
2496
2492
  */
2497
2493
  flattenItems(tenantId, body, cancelToken) {
@@ -2644,11 +2640,218 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2644
2640
  }
2645
2641
  return Promise.resolve(null);
2646
2642
  }
2643
+ /**
2644
+ * Creates a private design from a public design.
2645
+ * @param designId (optional) Public design ID.
2646
+ * @param privateDesignId (optional) Private design ID.
2647
+ * @param privateStorageOwner (optional) Private storage owner ID.
2648
+ * @param tenantId (optional) Tenant identifier
2649
+ * @return Success
2650
+ */
2651
+ createPrivateDesignFromDesign(designId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
2652
+ let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-design?";
2653
+ if (designId !== undefined && designId !== null)
2654
+ url_ += "designId=" + encodeURIComponent("" + designId) + "&";
2655
+ if (privateDesignId !== undefined && privateDesignId !== null)
2656
+ url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
2657
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2658
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2659
+ if (tenantId === null)
2660
+ throw new Error("The parameter 'tenantId' cannot be null.");
2661
+ else if (tenantId !== undefined)
2662
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2663
+ url_ = url_.replace(/[?&]$/, "");
2664
+ let options_ = {
2665
+ method: "POST",
2666
+ url: url_,
2667
+ headers: {},
2668
+ cancelToken
2669
+ };
2670
+ return this.transformOptions(options_).then(transformedOptions_ => {
2671
+ return this.instance.request(transformedOptions_);
2672
+ }).catch((_error) => {
2673
+ if (isAxiosError(_error) && _error.response) {
2674
+ return _error.response;
2675
+ }
2676
+ else {
2677
+ throw _error;
2678
+ }
2679
+ }).then((_response) => {
2680
+ return this.transformResult(url_, _response, (_response) => this.processCreatePrivateDesignFromDesign(_response));
2681
+ });
2682
+ }
2683
+ processCreatePrivateDesignFromDesign(response) {
2684
+ const status = response.status;
2685
+ let _headers = {};
2686
+ if (response.headers && typeof response.headers === "object") {
2687
+ for (let k in response.headers) {
2688
+ if (response.headers.hasOwnProperty(k)) {
2689
+ _headers[k] = response.headers[k];
2690
+ }
2691
+ }
2692
+ }
2693
+ if (status === 201) {
2694
+ const _responseText = response.data;
2695
+ return Promise.resolve(null);
2696
+ }
2697
+ else if (status === 401) {
2698
+ const _responseText = response.data;
2699
+ return throwException("Unauthorized", status, _responseText, _headers);
2700
+ }
2701
+ else if (status === 403) {
2702
+ const _responseText = response.data;
2703
+ return throwException("Forbidden", status, _responseText, _headers);
2704
+ }
2705
+ else if (status !== 200 && status !== 204) {
2706
+ const _responseText = response.data;
2707
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2708
+ }
2709
+ return Promise.resolve(null);
2710
+ }
2711
+ /**
2712
+ * Creates a private design from a public resource.
2713
+ * @param resourceId (optional) Resource ID.
2714
+ * @param privateDesignId (optional) Private design ID.
2715
+ * @param privateStorageOwner (optional) Private storage owner ID.
2716
+ * @param tenantId (optional) Tenant identifier
2717
+ * @return Success
2718
+ */
2719
+ createPrivateDesignFromResource(resourceId, privateDesignId, privateStorageOwner, tenantId, cancelToken) {
2720
+ let url_ = this.baseUrl + "/api/atoms/v1/private-designs/from-resource?";
2721
+ if (resourceId !== undefined && resourceId !== null)
2722
+ url_ += "resourceId=" + encodeURIComponent("" + resourceId) + "&";
2723
+ if (privateDesignId !== undefined && privateDesignId !== null)
2724
+ url_ += "privateDesignId=" + encodeURIComponent("" + privateDesignId) + "&";
2725
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
2726
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
2727
+ if (tenantId === null)
2728
+ throw new Error("The parameter 'tenantId' cannot be null.");
2729
+ else if (tenantId !== undefined)
2730
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2731
+ url_ = url_.replace(/[?&]$/, "");
2732
+ let options_ = {
2733
+ method: "POST",
2734
+ url: url_,
2735
+ headers: {},
2736
+ cancelToken
2737
+ };
2738
+ return this.transformOptions(options_).then(transformedOptions_ => {
2739
+ return this.instance.request(transformedOptions_);
2740
+ }).catch((_error) => {
2741
+ if (isAxiosError(_error) && _error.response) {
2742
+ return _error.response;
2743
+ }
2744
+ else {
2745
+ throw _error;
2746
+ }
2747
+ }).then((_response) => {
2748
+ return this.transformResult(url_, _response, (_response) => this.processCreatePrivateDesignFromResource(_response));
2749
+ });
2750
+ }
2751
+ processCreatePrivateDesignFromResource(response) {
2752
+ const status = response.status;
2753
+ let _headers = {};
2754
+ if (response.headers && typeof response.headers === "object") {
2755
+ for (let k in response.headers) {
2756
+ if (response.headers.hasOwnProperty(k)) {
2757
+ _headers[k] = response.headers[k];
2758
+ }
2759
+ }
2760
+ }
2761
+ if (status === 201) {
2762
+ const _responseText = response.data;
2763
+ return Promise.resolve(null);
2764
+ }
2765
+ else if (status === 401) {
2766
+ const _responseText = response.data;
2767
+ return throwException("Unauthorized", status, _responseText, _headers);
2768
+ }
2769
+ else if (status === 403) {
2770
+ const _responseText = response.data;
2771
+ return throwException("Forbidden", status, _responseText, _headers);
2772
+ }
2773
+ else if (status !== 200 && status !== 204) {
2774
+ const _responseText = response.data;
2775
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2776
+ }
2777
+ return Promise.resolve(null);
2778
+ }
2779
+ /**
2780
+ * Renders a design with the specified parameters.
2781
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
2782
+ * @param tenantId (optional) Tenant identifier
2783
+ * @param body (optional) Render model with preview parameters.
2784
+ * @return Success
2785
+ */
2786
+ renderDesign(attachment, tenantId, body, cancelToken) {
2787
+ let url_ = this.baseUrl + "/api/atoms/v1/render-design-preview?";
2788
+ if (attachment !== undefined && attachment !== null)
2789
+ url_ += "attachment=" + encodeURIComponent("" + attachment) + "&";
2790
+ if (tenantId === null)
2791
+ throw new Error("The parameter 'tenantId' cannot be null.");
2792
+ else if (tenantId !== undefined)
2793
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2794
+ url_ = url_.replace(/[?&]$/, "");
2795
+ const content_ = JSON.stringify(body);
2796
+ let options_ = {
2797
+ data: content_,
2798
+ responseType: "blob",
2799
+ method: "POST",
2800
+ url: url_,
2801
+ headers: {
2802
+ "Content-Type": "application/json",
2803
+ "Accept": "application/octet-stream"
2804
+ },
2805
+ cancelToken
2806
+ };
2807
+ return this.transformOptions(options_).then(transformedOptions_ => {
2808
+ return this.instance.request(transformedOptions_);
2809
+ }).catch((_error) => {
2810
+ if (isAxiosError(_error) && _error.response) {
2811
+ return _error.response;
2812
+ }
2813
+ else {
2814
+ throw _error;
2815
+ }
2816
+ }).then((_response) => {
2817
+ return this.transformResult(url_, _response, (_response) => this.processRenderDesign(_response));
2818
+ });
2819
+ }
2820
+ processRenderDesign(response) {
2821
+ const status = response.status;
2822
+ let _headers = {};
2823
+ if (response.headers && typeof response.headers === "object") {
2824
+ for (let k in response.headers) {
2825
+ if (response.headers.hasOwnProperty(k)) {
2826
+ _headers[k] = response.headers[k];
2827
+ }
2828
+ }
2829
+ }
2830
+ if (status === 200 || status === 206) {
2831
+ const contentDisposition = response.headers ? response.headers["content-disposition"] : undefined;
2832
+ const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
2833
+ const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
2834
+ return Promise.resolve({ fileName: fileName, status: status, data: new Blob([response.data]), headers: _headers });
2835
+ }
2836
+ else if (status === 401) {
2837
+ const _responseText = response.data;
2838
+ return throwException("Unauthorized", status, _responseText, _headers);
2839
+ }
2840
+ else if (status === 403) {
2841
+ const _responseText = response.data;
2842
+ return throwException("Forbidden", status, _responseText, _headers);
2843
+ }
2844
+ else if (status !== 200 && status !== 204) {
2845
+ const _responseText = response.data;
2846
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2847
+ }
2848
+ return Promise.resolve(null);
2849
+ }
2647
2850
  /**
2648
2851
  * Render product proof image with specified parameters.
2649
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
2852
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
2650
2853
  * @param tenantId (optional) Tenant identifier
2651
- * @param body (optional) Preview parameters
2854
+ * @param body (optional) Preview parameters.
2652
2855
  * @return Success
2653
2856
  */
2654
2857
  renderProduct(attachment, tenantId, body, cancelToken) {
@@ -2668,7 +2871,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
2668
2871
  url: url_,
2669
2872
  headers: {
2670
2873
  "Content-Type": "application/json",
2671
- "Accept": "application/json"
2874
+ "Accept": "application/octet-stream"
2672
2875
  },
2673
2876
  cancelToken
2674
2877
  };
@@ -4204,6 +4407,14 @@ var ItemSourceType;
4204
4407
  ItemSourceType["ImageStorage"] = "ImageStorage";
4205
4408
  ItemSourceType["PrivateImageStorage"] = "PrivateImageStorage";
4206
4409
  })(ItemSourceType = exports.ItemSourceType || (exports.ItemSourceType = {}));
4410
+ /** Product preview file format. */
4411
+ var ProductPreviewFormat;
4412
+ (function (ProductPreviewFormat) {
4413
+ ProductPreviewFormat["Jpeg"] = "Jpeg";
4414
+ ProductPreviewFormat["Png"] = "Png";
4415
+ ProductPreviewFormat["Tiff"] = "Tiff";
4416
+ ProductPreviewFormat["Pdf"] = "Pdf";
4417
+ })(ProductPreviewFormat = exports.ProductPreviewFormat || (exports.ProductPreviewFormat = {}));
4207
4418
  var ProductProofFormat;
4208
4419
  (function (ProductProofFormat) {
4209
4420
  ProductProofFormat["Jpeg"] = "Jpeg";