@aurigma/axios-storefront-api-client 2.22.30 → 2.23.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.
@@ -286,6 +286,14 @@ export interface IProjectsApiClient {
286
286
  * @return Success
287
287
  */
288
288
  delete(id: number, tenantId?: number | null | undefined): Promise<void>;
289
+ /**
290
+ * Creates a new project by 'Render HiRes' scenario.
291
+ * @param storefrontId Storefront identifier.
292
+ * @param tenantId (optional) Tenant identifier.
293
+ * @param body (optional) Create operation parameters.
294
+ * @return Success
295
+ */
296
+ createByRenderHiResScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectByRenderHiResScenarioDto | undefined): Promise<ProjectDto>;
289
297
  /**
290
298
  * Returns all available status transitions for a project.
291
299
  * @param id Project identifier.
@@ -328,6 +336,7 @@ export interface IProjectsApiClient {
328
336
  * @param designId Design identifier.
329
337
  * @param tenantId (optional) Tenant identifier.
330
338
  * @return Success
339
+ * @deprecated
331
340
  */
332
341
  getProjectPdfUrl(id: number, designUserId: string, designId: string, tenantId?: number | null | undefined): Promise<ProjectPdfResultDto>;
333
342
  /**
@@ -338,8 +347,30 @@ export interface IProjectsApiClient {
338
347
  * @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
339
348
  * @param tenantId (optional) Tenant identifier.
340
349
  * @return Success
350
+ * @deprecated
341
351
  */
342
352
  getProjectPdfZip(id: number, designUserId: string, designId: string, attachment?: boolean | null | undefined, tenantId?: number | null | undefined): Promise<FileResponse>;
353
+ /**
354
+ * Returns a project processing results.
355
+ * @param id Project identifier.
356
+ * @param tenantId (optional) Tenant identifier.
357
+ * @return Success
358
+ */
359
+ getProjectProcessingResults(id: number, tenantId?: number | null | undefined): Promise<ProjectProcessingResultsDto>;
360
+ /**
361
+ * Resumes project processing.
362
+ * @param id Project identifier.
363
+ * @param tenantId (optional) Tenant identifier.
364
+ * @return Success
365
+ */
366
+ resumeProjectProcessing(id: number, tenantId?: number | null | undefined): Promise<void>;
367
+ /**
368
+ * Restarts a project processing routine.
369
+ * @param id Project identifier.
370
+ * @param tenantId (optional) Tenant identifier.
371
+ * @return Success
372
+ */
373
+ restartProjectProcessing(id: number, tenantId?: number | null | undefined): Promise<void>;
343
374
  /**
344
375
  * Returns an order description from the ecommerce system for the specified project.
345
376
  * @param id Project identifier.
@@ -395,6 +426,15 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
395
426
  */
396
427
  delete(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
397
428
  protected processDelete(response: AxiosResponse): Promise<void>;
429
+ /**
430
+ * Creates a new project by 'Render HiRes' scenario.
431
+ * @param storefrontId Storefront identifier.
432
+ * @param tenantId (optional) Tenant identifier.
433
+ * @param body (optional) Create operation parameters.
434
+ * @return Success
435
+ */
436
+ createByRenderHiResScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectByRenderHiResScenarioDto | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectDto>;
437
+ protected processCreateByRenderHiResScenario(response: AxiosResponse): Promise<ProjectDto>;
398
438
  /**
399
439
  * Returns all available status transitions for a project.
400
440
  * @param id Project identifier.
@@ -442,6 +482,7 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
442
482
  * @param designId Design identifier.
443
483
  * @param tenantId (optional) Tenant identifier.
444
484
  * @return Success
485
+ * @deprecated
445
486
  */
446
487
  getProjectPdfUrl(id: number, designUserId: string, designId: string, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectPdfResultDto>;
447
488
  protected processGetProjectPdfUrl(response: AxiosResponse): Promise<ProjectPdfResultDto>;
@@ -453,9 +494,34 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
453
494
  * @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
454
495
  * @param tenantId (optional) Tenant identifier.
455
496
  * @return Success
497
+ * @deprecated
456
498
  */
457
499
  getProjectPdfZip(id: number, designUserId: string, designId: string, attachment?: boolean | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<FileResponse>;
458
500
  protected processGetProjectPdfZip(response: AxiosResponse): Promise<FileResponse>;
501
+ /**
502
+ * Returns a project processing results.
503
+ * @param id Project identifier.
504
+ * @param tenantId (optional) Tenant identifier.
505
+ * @return Success
506
+ */
507
+ getProjectProcessingResults(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectProcessingResultsDto>;
508
+ protected processGetProjectProcessingResults(response: AxiosResponse): Promise<ProjectProcessingResultsDto>;
509
+ /**
510
+ * Resumes project processing.
511
+ * @param id Project identifier.
512
+ * @param tenantId (optional) Tenant identifier.
513
+ * @return Success
514
+ */
515
+ resumeProjectProcessing(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
516
+ protected processResumeProjectProcessing(response: AxiosResponse): Promise<void>;
517
+ /**
518
+ * Restarts a project processing routine.
519
+ * @param id Project identifier.
520
+ * @param tenantId (optional) Tenant identifier.
521
+ * @return Success
522
+ */
523
+ restartProjectProcessing(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
524
+ protected processRestartProjectProcessing(response: AxiosResponse): Promise<void>;
459
525
  /**
460
526
  * Returns an order description from the ecommerce system for the specified project.
461
527
  * @param id Project identifier.
@@ -779,10 +845,10 @@ export declare enum DatePeriod {
779
845
  Last30Days = "Last30Days"
780
846
  }
781
847
  /** Available product resource types */
782
- export declare enum ProjectProductResourceType {
783
- _0 = 0,
784
- _1 = 1,
785
- _2 = 2
848
+ export declare enum ProjectItemResourceType {
849
+ General = "General",
850
+ Preview = "Preview",
851
+ Hires = "Hires"
786
852
  }
787
853
  /** Dto class, containing information about a project item resource. */
788
854
  export interface ProjectItemResourceDto {
@@ -790,7 +856,7 @@ export interface ProjectItemResourceDto {
790
856
  resourceId?: string | null;
791
857
  /** Resource name. */
792
858
  name?: string | null;
793
- type?: ProjectProductResourceType;
859
+ type?: ProjectItemResourceType;
794
860
  }
795
861
  /** Dto class, containing information about a project item. */
796
862
  export interface ProjectItemDto {
@@ -863,7 +929,7 @@ export interface ProjectItemResourceParametersDto {
863
929
  url?: string | null;
864
930
  /** Resource name. */
865
931
  name?: string | null;
866
- type?: ProjectProductResourceType;
932
+ type?: ProjectItemResourceType;
867
933
  }
868
934
  /** Dto class, containing create operation paramters for a project item. */
869
935
  export interface ProjectItemParametersDto {
@@ -911,6 +977,65 @@ export interface CreateProjectDto {
911
977
  /** Description of the project. */
912
978
  description?: string | null;
913
979
  }
980
+ /** Dto class, containing ecommerce order description. */
981
+ export interface OrderDetailsDto {
982
+ /** Order identifier in ecommerce system. */
983
+ orderId?: string | null;
984
+ /** Order url in ecommerce system. */
985
+ orderUrl?: string | null;
986
+ /** Order number in ecommerce system. */
987
+ orderNumber?: number | null;
988
+ /** Line item index from ecommerce system order. */
989
+ orderLineItemIndex?: number | null;
990
+ /** Line Item identifier from ecommerce system order. */
991
+ orderLineItemId?: string | null;
992
+ /** Customer identifier in ecommerce system. */
993
+ customerId?: string | null;
994
+ /** Customer name in ecommerce system. */
995
+ customerName?: string | null;
996
+ }
997
+ export declare enum RenderHiResScenarioOutputFormat {
998
+ Pdf = "Pdf",
999
+ Jpeg = "Jpeg",
1000
+ Png = "Png",
1001
+ Tiff = "Tiff"
1002
+ }
1003
+ export declare enum RenderHiResScenarioOutputColorSpace {
1004
+ Rgb = "Rgb",
1005
+ Grayscale = "Grayscale",
1006
+ Cmyk = "Cmyk"
1007
+ }
1008
+ export declare enum RenderHiResScenarioOutputFlipMode {
1009
+ None = "None",
1010
+ Horizontal = "Horizontal",
1011
+ Vertical = "Vertical",
1012
+ Both = "Both"
1013
+ }
1014
+ /** Dto class, containing 'RenderHiRes' scenario paramters. */
1015
+ export interface RenderHiResScenarioDto {
1016
+ /** Private design identifier. */
1017
+ designId: string;
1018
+ /** Output file name (without extension). */
1019
+ name?: string | null;
1020
+ /** Output file DPI. */
1021
+ dpi?: number;
1022
+ format?: RenderHiResScenarioOutputFormat;
1023
+ colorSpace?: RenderHiResScenarioOutputColorSpace;
1024
+ flipMode?: RenderHiResScenarioOutputFlipMode;
1025
+ /** Output file access mode. */
1026
+ anonymousAccess?: boolean | null;
1027
+ }
1028
+ /** Dto class, containing 'create' operation parameters for project entity. */
1029
+ export interface CreateProjectByRenderHiResScenarioDto {
1030
+ /** Project owner identifier. */
1031
+ ownerId: string;
1032
+ /** Project name. */
1033
+ name?: string | null;
1034
+ /** Description of the project. */
1035
+ description?: string | null;
1036
+ orderDetails?: OrderDetailsDto;
1037
+ scenario: RenderHiResScenarioDto;
1038
+ }
914
1039
  /** Project transition dto class. */
915
1040
  export interface ProjectTransitionDto {
916
1041
  /** Transition identifying name. */
@@ -953,6 +1078,34 @@ export interface ProjectPdfResultDto {
953
1078
  /** Project pdf url. */
954
1079
  url?: string | null;
955
1080
  }
1081
+ /** Available project processing statuses. */
1082
+ export declare enum ProjectProcessingStatus {
1083
+ Pending = "Pending",
1084
+ InProgress = "InProgress",
1085
+ Completed = "Completed",
1086
+ Failed = "Failed"
1087
+ }
1088
+ /** Dto class, containing description of a project output file. */
1089
+ export interface ProjectOutputFileDetailsDto {
1090
+ /** Project output file URL. */
1091
+ url?: string | null;
1092
+ /** Project output file name */
1093
+ name?: string | null;
1094
+ /** Project output file format */
1095
+ format?: string | null;
1096
+ /** Project output file id withing artifacts storage. */
1097
+ artifactId?: string | null;
1098
+ /** Project output file access strategy. */
1099
+ anonymousAccess?: boolean;
1100
+ }
1101
+ /** Dto class, containing description of project processing results. */
1102
+ export interface ProjectProcessingResultsDto {
1103
+ status?: ProjectProcessingStatus;
1104
+ /** Project status description. */
1105
+ statusDescription?: string | null;
1106
+ /** Collection of project output file descriptions. */
1107
+ outputFileDetails?: ProjectOutputFileDetailsDto[] | null;
1108
+ }
956
1109
  /** Storefront types. */
957
1110
  export declare enum StorefrontType {
958
1111
  Custom = "Custom",
@@ -1288,6 +1288,84 @@ export class ProjectsApiClient extends ApiClientBase {
1288
1288
  }
1289
1289
  return Promise.resolve(null);
1290
1290
  }
1291
+ /**
1292
+ * Creates a new project by 'Render HiRes' scenario.
1293
+ * @param storefrontId Storefront identifier.
1294
+ * @param tenantId (optional) Tenant identifier.
1295
+ * @param body (optional) Create operation parameters.
1296
+ * @return Success
1297
+ */
1298
+ createByRenderHiResScenario(storefrontId, tenantId, body, cancelToken) {
1299
+ let url_ = this.baseUrl + "/api/storefront/v1/projects/by-scenario/render-hires?";
1300
+ if (storefrontId === undefined || storefrontId === null)
1301
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1302
+ else
1303
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1304
+ if (tenantId !== undefined && tenantId !== null)
1305
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1306
+ url_ = url_.replace(/[?&]$/, "");
1307
+ const content_ = JSON.stringify(body);
1308
+ let options_ = {
1309
+ data: content_,
1310
+ method: "POST",
1311
+ url: url_,
1312
+ headers: {
1313
+ "Content-Type": "application/json-patch+json",
1314
+ "Accept": "text/plain"
1315
+ },
1316
+ cancelToken
1317
+ };
1318
+ return this.transformOptions(options_).then(transformedOptions_ => {
1319
+ return this.instance.request(transformedOptions_);
1320
+ }).catch((_error) => {
1321
+ if (isAxiosError(_error) && _error.response) {
1322
+ return _error.response;
1323
+ }
1324
+ else {
1325
+ throw _error;
1326
+ }
1327
+ }).then((_response) => {
1328
+ return this.transformResult(url_, _response, (_response) => this.processCreateByRenderHiResScenario(_response));
1329
+ });
1330
+ }
1331
+ processCreateByRenderHiResScenario(response) {
1332
+ const status = response.status;
1333
+ let _headers = {};
1334
+ if (response.headers && typeof response.headers === "object") {
1335
+ for (let k in response.headers) {
1336
+ if (response.headers.hasOwnProperty(k)) {
1337
+ _headers[k] = response.headers[k];
1338
+ }
1339
+ }
1340
+ }
1341
+ if (status === 201) {
1342
+ const _responseText = response.data;
1343
+ let result201 = null;
1344
+ let resultData201 = _responseText;
1345
+ result201 = JSON.parse(resultData201);
1346
+ return Promise.resolve(result201);
1347
+ }
1348
+ else if (status === 409) {
1349
+ const _responseText = response.data;
1350
+ let result409 = null;
1351
+ let resultData409 = _responseText;
1352
+ result409 = JSON.parse(resultData409);
1353
+ return throwException("Conflict", status, _responseText, _headers, result409);
1354
+ }
1355
+ else if (status === 401) {
1356
+ const _responseText = response.data;
1357
+ return throwException("Unauthorized", status, _responseText, _headers);
1358
+ }
1359
+ else if (status === 403) {
1360
+ const _responseText = response.data;
1361
+ return throwException("Forbidden", status, _responseText, _headers);
1362
+ }
1363
+ else if (status !== 200 && status !== 204) {
1364
+ const _responseText = response.data;
1365
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1366
+ }
1367
+ return Promise.resolve(null);
1368
+ }
1291
1369
  /**
1292
1370
  * Returns all available status transitions for a project.
1293
1371
  * @param id Project identifier.
@@ -1681,6 +1759,7 @@ export class ProjectsApiClient extends ApiClientBase {
1681
1759
  * @param designId Design identifier.
1682
1760
  * @param tenantId (optional) Tenant identifier.
1683
1761
  * @return Success
1762
+ * @deprecated
1684
1763
  */
1685
1764
  getProjectPdfUrl(id, designUserId, designId, tenantId, cancelToken) {
1686
1765
  let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/project-pdf?";
@@ -1758,6 +1837,7 @@ export class ProjectsApiClient extends ApiClientBase {
1758
1837
  * @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
1759
1838
  * @param tenantId (optional) Tenant identifier.
1760
1839
  * @return Success
1840
+ * @deprecated
1761
1841
  */
1762
1842
  getProjectPdfZip(id, designUserId, designId, attachment, tenantId, cancelToken) {
1763
1843
  let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/project-pdf-zip?";
@@ -1836,6 +1916,215 @@ export class ProjectsApiClient extends ApiClientBase {
1836
1916
  }
1837
1917
  return Promise.resolve(null);
1838
1918
  }
1919
+ /**
1920
+ * Returns a project processing results.
1921
+ * @param id Project identifier.
1922
+ * @param tenantId (optional) Tenant identifier.
1923
+ * @return Success
1924
+ */
1925
+ getProjectProcessingResults(id, tenantId, cancelToken) {
1926
+ let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/processing-results?";
1927
+ if (id === undefined || id === null)
1928
+ throw new Error("The parameter 'id' must be defined.");
1929
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
1930
+ if (tenantId !== undefined && tenantId !== null)
1931
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1932
+ url_ = url_.replace(/[?&]$/, "");
1933
+ let options_ = {
1934
+ method: "GET",
1935
+ url: url_,
1936
+ headers: {
1937
+ "Accept": "text/plain"
1938
+ },
1939
+ cancelToken
1940
+ };
1941
+ return this.transformOptions(options_).then(transformedOptions_ => {
1942
+ return this.instance.request(transformedOptions_);
1943
+ }).catch((_error) => {
1944
+ if (isAxiosError(_error) && _error.response) {
1945
+ return _error.response;
1946
+ }
1947
+ else {
1948
+ throw _error;
1949
+ }
1950
+ }).then((_response) => {
1951
+ return this.transformResult(url_, _response, (_response) => this.processGetProjectProcessingResults(_response));
1952
+ });
1953
+ }
1954
+ processGetProjectProcessingResults(response) {
1955
+ const status = response.status;
1956
+ let _headers = {};
1957
+ if (response.headers && typeof response.headers === "object") {
1958
+ for (let k in response.headers) {
1959
+ if (response.headers.hasOwnProperty(k)) {
1960
+ _headers[k] = response.headers[k];
1961
+ }
1962
+ }
1963
+ }
1964
+ if (status === 200) {
1965
+ const _responseText = response.data;
1966
+ let result200 = null;
1967
+ let resultData200 = _responseText;
1968
+ result200 = JSON.parse(resultData200);
1969
+ return Promise.resolve(result200);
1970
+ }
1971
+ else if (status === 404) {
1972
+ const _responseText = response.data;
1973
+ let result404 = null;
1974
+ let resultData404 = _responseText;
1975
+ result404 = JSON.parse(resultData404);
1976
+ return throwException("Not Found", status, _responseText, _headers, result404);
1977
+ }
1978
+ else if (status === 401) {
1979
+ const _responseText = response.data;
1980
+ return throwException("Unauthorized", status, _responseText, _headers);
1981
+ }
1982
+ else if (status === 403) {
1983
+ const _responseText = response.data;
1984
+ return throwException("Forbidden", status, _responseText, _headers);
1985
+ }
1986
+ else if (status !== 200 && status !== 204) {
1987
+ const _responseText = response.data;
1988
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1989
+ }
1990
+ return Promise.resolve(null);
1991
+ }
1992
+ /**
1993
+ * Resumes project processing.
1994
+ * @param id Project identifier.
1995
+ * @param tenantId (optional) Tenant identifier.
1996
+ * @return Success
1997
+ */
1998
+ resumeProjectProcessing(id, tenantId, cancelToken) {
1999
+ let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/resume-processing?";
2000
+ if (id === undefined || id === null)
2001
+ throw new Error("The parameter 'id' must be defined.");
2002
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2003
+ if (tenantId !== undefined && tenantId !== null)
2004
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2005
+ url_ = url_.replace(/[?&]$/, "");
2006
+ let options_ = {
2007
+ method: "POST",
2008
+ url: url_,
2009
+ headers: {},
2010
+ cancelToken
2011
+ };
2012
+ return this.transformOptions(options_).then(transformedOptions_ => {
2013
+ return this.instance.request(transformedOptions_);
2014
+ }).catch((_error) => {
2015
+ if (isAxiosError(_error) && _error.response) {
2016
+ return _error.response;
2017
+ }
2018
+ else {
2019
+ throw _error;
2020
+ }
2021
+ }).then((_response) => {
2022
+ return this.transformResult(url_, _response, (_response) => this.processResumeProjectProcessing(_response));
2023
+ });
2024
+ }
2025
+ processResumeProjectProcessing(response) {
2026
+ const status = response.status;
2027
+ let _headers = {};
2028
+ if (response.headers && typeof response.headers === "object") {
2029
+ for (let k in response.headers) {
2030
+ if (response.headers.hasOwnProperty(k)) {
2031
+ _headers[k] = response.headers[k];
2032
+ }
2033
+ }
2034
+ }
2035
+ if (status === 204) {
2036
+ const _responseText = response.data;
2037
+ return Promise.resolve(null);
2038
+ }
2039
+ else if (status === 404) {
2040
+ const _responseText = response.data;
2041
+ let result404 = null;
2042
+ let resultData404 = _responseText;
2043
+ result404 = JSON.parse(resultData404);
2044
+ return throwException("Not Found", status, _responseText, _headers, result404);
2045
+ }
2046
+ else if (status === 401) {
2047
+ const _responseText = response.data;
2048
+ return throwException("Unauthorized", status, _responseText, _headers);
2049
+ }
2050
+ else if (status === 403) {
2051
+ const _responseText = response.data;
2052
+ return throwException("Forbidden", status, _responseText, _headers);
2053
+ }
2054
+ else if (status !== 200 && status !== 204) {
2055
+ const _responseText = response.data;
2056
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2057
+ }
2058
+ return Promise.resolve(null);
2059
+ }
2060
+ /**
2061
+ * Restarts a project processing routine.
2062
+ * @param id Project identifier.
2063
+ * @param tenantId (optional) Tenant identifier.
2064
+ * @return Success
2065
+ */
2066
+ restartProjectProcessing(id, tenantId, cancelToken) {
2067
+ let url_ = this.baseUrl + "/api/storefront/v1/projects/{id}/restart-processing?";
2068
+ if (id === undefined || id === null)
2069
+ throw new Error("The parameter 'id' must be defined.");
2070
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2071
+ if (tenantId !== undefined && tenantId !== null)
2072
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2073
+ url_ = url_.replace(/[?&]$/, "");
2074
+ let options_ = {
2075
+ method: "POST",
2076
+ url: url_,
2077
+ headers: {},
2078
+ cancelToken
2079
+ };
2080
+ return this.transformOptions(options_).then(transformedOptions_ => {
2081
+ return this.instance.request(transformedOptions_);
2082
+ }).catch((_error) => {
2083
+ if (isAxiosError(_error) && _error.response) {
2084
+ return _error.response;
2085
+ }
2086
+ else {
2087
+ throw _error;
2088
+ }
2089
+ }).then((_response) => {
2090
+ return this.transformResult(url_, _response, (_response) => this.processRestartProjectProcessing(_response));
2091
+ });
2092
+ }
2093
+ processRestartProjectProcessing(response) {
2094
+ const status = response.status;
2095
+ let _headers = {};
2096
+ if (response.headers && typeof response.headers === "object") {
2097
+ for (let k in response.headers) {
2098
+ if (response.headers.hasOwnProperty(k)) {
2099
+ _headers[k] = response.headers[k];
2100
+ }
2101
+ }
2102
+ }
2103
+ if (status === 204) {
2104
+ const _responseText = response.data;
2105
+ return Promise.resolve(null);
2106
+ }
2107
+ else if (status === 404) {
2108
+ const _responseText = response.data;
2109
+ let result404 = null;
2110
+ let resultData404 = _responseText;
2111
+ result404 = JSON.parse(resultData404);
2112
+ return throwException("Not Found", status, _responseText, _headers, result404);
2113
+ }
2114
+ else if (status === 401) {
2115
+ const _responseText = response.data;
2116
+ return throwException("Unauthorized", status, _responseText, _headers);
2117
+ }
2118
+ else if (status === 403) {
2119
+ const _responseText = response.data;
2120
+ return throwException("Forbidden", status, _responseText, _headers);
2121
+ }
2122
+ else if (status !== 200 && status !== 204) {
2123
+ const _responseText = response.data;
2124
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2125
+ }
2126
+ return Promise.resolve(null);
2127
+ }
1839
2128
  /**
1840
2129
  * Returns an order description from the ecommerce system for the specified project.
1841
2130
  * @param id Project identifier.
@@ -2768,12 +3057,40 @@ export var DatePeriod;
2768
3057
  DatePeriod["Last30Days"] = "Last30Days";
2769
3058
  })(DatePeriod || (DatePeriod = {}));
2770
3059
  /** Available product resource types */
2771
- export var ProjectProductResourceType;
2772
- (function (ProjectProductResourceType) {
2773
- ProjectProductResourceType[ProjectProductResourceType["_0"] = 0] = "_0";
2774
- ProjectProductResourceType[ProjectProductResourceType["_1"] = 1] = "_1";
2775
- ProjectProductResourceType[ProjectProductResourceType["_2"] = 2] = "_2";
2776
- })(ProjectProductResourceType || (ProjectProductResourceType = {}));
3060
+ export var ProjectItemResourceType;
3061
+ (function (ProjectItemResourceType) {
3062
+ ProjectItemResourceType["General"] = "General";
3063
+ ProjectItemResourceType["Preview"] = "Preview";
3064
+ ProjectItemResourceType["Hires"] = "Hires";
3065
+ })(ProjectItemResourceType || (ProjectItemResourceType = {}));
3066
+ export var RenderHiResScenarioOutputFormat;
3067
+ (function (RenderHiResScenarioOutputFormat) {
3068
+ RenderHiResScenarioOutputFormat["Pdf"] = "Pdf";
3069
+ RenderHiResScenarioOutputFormat["Jpeg"] = "Jpeg";
3070
+ RenderHiResScenarioOutputFormat["Png"] = "Png";
3071
+ RenderHiResScenarioOutputFormat["Tiff"] = "Tiff";
3072
+ })(RenderHiResScenarioOutputFormat || (RenderHiResScenarioOutputFormat = {}));
3073
+ export var RenderHiResScenarioOutputColorSpace;
3074
+ (function (RenderHiResScenarioOutputColorSpace) {
3075
+ RenderHiResScenarioOutputColorSpace["Rgb"] = "Rgb";
3076
+ RenderHiResScenarioOutputColorSpace["Grayscale"] = "Grayscale";
3077
+ RenderHiResScenarioOutputColorSpace["Cmyk"] = "Cmyk";
3078
+ })(RenderHiResScenarioOutputColorSpace || (RenderHiResScenarioOutputColorSpace = {}));
3079
+ export var RenderHiResScenarioOutputFlipMode;
3080
+ (function (RenderHiResScenarioOutputFlipMode) {
3081
+ RenderHiResScenarioOutputFlipMode["None"] = "None";
3082
+ RenderHiResScenarioOutputFlipMode["Horizontal"] = "Horizontal";
3083
+ RenderHiResScenarioOutputFlipMode["Vertical"] = "Vertical";
3084
+ RenderHiResScenarioOutputFlipMode["Both"] = "Both";
3085
+ })(RenderHiResScenarioOutputFlipMode || (RenderHiResScenarioOutputFlipMode = {}));
3086
+ /** Available project processing statuses. */
3087
+ export var ProjectProcessingStatus;
3088
+ (function (ProjectProcessingStatus) {
3089
+ ProjectProcessingStatus["Pending"] = "Pending";
3090
+ ProjectProcessingStatus["InProgress"] = "InProgress";
3091
+ ProjectProcessingStatus["Completed"] = "Completed";
3092
+ ProjectProcessingStatus["Failed"] = "Failed";
3093
+ })(ProjectProcessingStatus || (ProjectProcessingStatus = {}));
2777
3094
  /** Storefront types. */
2778
3095
  export var StorefrontType;
2779
3096
  (function (StorefrontType) {