@aurigma/axios-storefront-api-client 2.62.12 → 2.65.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.
@@ -8,7 +8,7 @@
8
8
  //----------------------
9
9
  // ReSharper disable InconsistentNaming
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.ApiException = exports.StorefrontType = exports.OrderDataItemValueType = exports.RenderHiResScenarioOutputRotateMode = exports.RenderHiResScenarioOutputFlipMode = exports.RenderHiResScenarioOutputColorSpace = exports.RenderHiResScenarioOutputFormat = exports.ProjectItemProductType = exports.ProjectItemResourceType = exports.ProjectProcessingStatus = exports.DatePeriod = exports.SurfaceUsageType = exports.ProductVariantMockupType = exports.ProductVariantResourceType = exports.ProductReferenceType = exports.OptionType = exports.ProductLinkResourceType = exports.WorkflowType = exports.AppearanceDataType = exports.ConflictType = exports.ProductBundleResourceType = exports.TenantInfoApiClient = exports.StorefrontUsersApiClient = exports.StorefrontsApiClient = exports.ProjectsApiClient = exports.ProductSpecificationsApiClient = exports.ProductsApiClient = exports.ProductReferencesApiClient = exports.ProductLinksApiClient = exports.ProductBundlesApiClient = exports.ProcessingPipelinesApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
11
+ exports.ApiException = exports.StorefrontStatus = exports.StorefrontType = exports.OrderDataItemValueType = exports.RenderHiResScenarioOutputRotateMode = exports.RenderHiResScenarioOutputFlipMode = exports.RenderHiResScenarioOutputColorSpace = exports.RenderHiResScenarioOutputFormat = exports.ProjectItemProductType = exports.ProjectItemResourceType = exports.ProjectProcessingStatus = exports.DatePeriod = exports.SurfaceUsageType = exports.ProductVariantMockupType = exports.ProductVariantResourceType = exports.ProductReferenceType = exports.OptionType = exports.ProductLinkResourceType = exports.AppearanceDataType = exports.WorkflowType = exports.ProductType = exports.ConflictType = exports.ProductBundleResourceType = exports.TenantInfoApiClient = exports.StorefrontUsersApiClient = exports.StorefrontsApiClient = exports.ProjectsApiClient = exports.ProductSpecificationsApiClient = exports.ProductsApiClient = exports.ProductReferencesApiClient = exports.ProductLinksApiClient = exports.ProductBundlesApiClient = exports.ProcessingPipelinesApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
12
12
  const axios_1 = require("axios");
13
13
  class ApiClientConfiguration {
14
14
  apiUrl;
@@ -485,6 +485,89 @@ class ProductBundlesApiClient extends ApiClientBase {
485
485
  }
486
486
  return Promise.resolve(null);
487
487
  }
488
+ /**
489
+ * Returns a product bundle personalization parameters by product identifier.
490
+ * @param id Product bundle identifier.
491
+ * @param productBundleVersionId (optional) Product bundle version identifier.
492
+ * @param tenantId (optional) Tenant identifier.
493
+ * @return Success
494
+ */
495
+ getProductBundlePersonalizationParameters(id, productBundleVersionId, tenantId, cancelToken) {
496
+ let url_ = this.baseUrl + "/api/storefront/v1/product-bundles/{id}/personalization-parameters?";
497
+ if (id === undefined || id === null)
498
+ throw new Error("The parameter 'id' must be defined.");
499
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
500
+ if (productBundleVersionId !== undefined && productBundleVersionId !== null)
501
+ url_ += "productBundleVersionId=" + encodeURIComponent("" + productBundleVersionId) + "&";
502
+ if (tenantId !== undefined && tenantId !== null)
503
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
504
+ url_ = url_.replace(/[?&]$/, "");
505
+ let options_ = {
506
+ method: "GET",
507
+ url: url_,
508
+ headers: {
509
+ "Accept": "application/json"
510
+ },
511
+ cancelToken
512
+ };
513
+ return this.transformOptions(options_).then(transformedOptions_ => {
514
+ return this.instance.request(transformedOptions_);
515
+ }).catch((_error) => {
516
+ if (isAxiosError(_error) && _error.response) {
517
+ return _error.response;
518
+ }
519
+ else {
520
+ throw _error;
521
+ }
522
+ }).then((_response) => {
523
+ return this.transformResult(url_, _response, (_response) => this.processGetProductBundlePersonalizationParameters(_response));
524
+ });
525
+ }
526
+ processGetProductBundlePersonalizationParameters(response) {
527
+ const status = response.status;
528
+ let _headers = {};
529
+ if (response.headers && typeof response.headers === "object") {
530
+ for (let k in response.headers) {
531
+ if (response.headers.hasOwnProperty(k)) {
532
+ _headers[k] = response.headers[k];
533
+ }
534
+ }
535
+ }
536
+ if (status === 200) {
537
+ const _responseText = response.data;
538
+ let result200 = null;
539
+ let resultData200 = _responseText;
540
+ result200 = JSON.parse(resultData200);
541
+ return Promise.resolve(result200);
542
+ }
543
+ else if (status === 404) {
544
+ const _responseText = response.data;
545
+ let result404 = null;
546
+ let resultData404 = _responseText;
547
+ result404 = JSON.parse(resultData404);
548
+ return throwException("Not Found", status, _responseText, _headers, result404);
549
+ }
550
+ else if (status === 409) {
551
+ const _responseText = response.data;
552
+ let result409 = null;
553
+ let resultData409 = _responseText;
554
+ result409 = JSON.parse(resultData409);
555
+ return throwException("Conflict", status, _responseText, _headers, result409);
556
+ }
557
+ else if (status === 401) {
558
+ const _responseText = response.data;
559
+ return throwException("Unauthorized", status, _responseText, _headers);
560
+ }
561
+ else if (status === 403) {
562
+ const _responseText = response.data;
563
+ return throwException("Forbidden", status, _responseText, _headers);
564
+ }
565
+ else if (status !== 200 && status !== 204) {
566
+ const _responseText = response.data;
567
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
568
+ }
569
+ return Promise.resolve(null);
570
+ }
488
571
  /**
489
572
  * Returns a product bundle summary by product bundle identifier.
490
573
  * @param id Product bundle identifier.
@@ -828,6 +911,89 @@ class ProductLinksApiClient extends ApiClientBase {
828
911
  }
829
912
  return Promise.resolve(null);
830
913
  }
914
+ /**
915
+ * Returns a product link personalization parameters by product identifier.
916
+ * @param id Product link identifier.
917
+ * @param productLinkVersionId (optional) Product link version identifier.
918
+ * @param tenantId (optional) Tenant identifier.
919
+ * @return Success
920
+ */
921
+ getProductLinkPersonalizationParameters(id, productLinkVersionId, tenantId, cancelToken) {
922
+ let url_ = this.baseUrl + "/api/storefront/v1/product-links/{id}/personalization-parameters?";
923
+ if (id === undefined || id === null)
924
+ throw new Error("The parameter 'id' must be defined.");
925
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
926
+ if (productLinkVersionId !== undefined && productLinkVersionId !== null)
927
+ url_ += "productLinkVersionId=" + encodeURIComponent("" + productLinkVersionId) + "&";
928
+ if (tenantId !== undefined && tenantId !== null)
929
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
930
+ url_ = url_.replace(/[?&]$/, "");
931
+ let options_ = {
932
+ method: "GET",
933
+ url: url_,
934
+ headers: {
935
+ "Accept": "application/json"
936
+ },
937
+ cancelToken
938
+ };
939
+ return this.transformOptions(options_).then(transformedOptions_ => {
940
+ return this.instance.request(transformedOptions_);
941
+ }).catch((_error) => {
942
+ if (isAxiosError(_error) && _error.response) {
943
+ return _error.response;
944
+ }
945
+ else {
946
+ throw _error;
947
+ }
948
+ }).then((_response) => {
949
+ return this.transformResult(url_, _response, (_response) => this.processGetProductLinkPersonalizationParameters(_response));
950
+ });
951
+ }
952
+ processGetProductLinkPersonalizationParameters(response) {
953
+ const status = response.status;
954
+ let _headers = {};
955
+ if (response.headers && typeof response.headers === "object") {
956
+ for (let k in response.headers) {
957
+ if (response.headers.hasOwnProperty(k)) {
958
+ _headers[k] = response.headers[k];
959
+ }
960
+ }
961
+ }
962
+ if (status === 200) {
963
+ const _responseText = response.data;
964
+ let result200 = null;
965
+ let resultData200 = _responseText;
966
+ result200 = JSON.parse(resultData200);
967
+ return Promise.resolve(result200);
968
+ }
969
+ else if (status === 404) {
970
+ const _responseText = response.data;
971
+ let result404 = null;
972
+ let resultData404 = _responseText;
973
+ result404 = JSON.parse(resultData404);
974
+ return throwException("Not Found", status, _responseText, _headers, result404);
975
+ }
976
+ else if (status === 409) {
977
+ const _responseText = response.data;
978
+ let result409 = null;
979
+ let resultData409 = _responseText;
980
+ result409 = JSON.parse(resultData409);
981
+ return throwException("Conflict", status, _responseText, _headers, result409);
982
+ }
983
+ else if (status === 401) {
984
+ const _responseText = response.data;
985
+ return throwException("Unauthorized", status, _responseText, _headers);
986
+ }
987
+ else if (status === 403) {
988
+ const _responseText = response.data;
989
+ return throwException("Forbidden", status, _responseText, _headers);
990
+ }
991
+ else if (status !== 200 && status !== 204) {
992
+ const _responseText = response.data;
993
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
994
+ }
995
+ return Promise.resolve(null);
996
+ }
831
997
  /**
832
998
  * Returns a product link summary by product link identifier.
833
999
  * @param id Product link identifier.
@@ -1660,6 +1826,91 @@ class ProductReferencesApiClient extends ApiClientBase {
1660
1826
  }
1661
1827
  return Promise.resolve(null);
1662
1828
  }
1829
+ /**
1830
+ * Returns a personalization parameters by the storefront product reference.
1831
+ * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
1832
+ * @param storefrontId Storefront identifier.
1833
+ * @param tenantId (optional) Tenant identifier.
1834
+ * @return Success
1835
+ */
1836
+ getPersonalizationParameters(reference, storefrontId, tenantId, cancelToken) {
1837
+ let url_ = this.baseUrl + "/api/storefront/v1/product-references/{reference}/personalization-parameters?";
1838
+ if (reference === undefined || reference === null)
1839
+ throw new Error("The parameter 'reference' must be defined.");
1840
+ url_ = url_.replace("{reference}", encodeURIComponent("" + reference));
1841
+ if (storefrontId === undefined || storefrontId === null)
1842
+ throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1843
+ else
1844
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1845
+ if (tenantId !== undefined && tenantId !== null)
1846
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1847
+ url_ = url_.replace(/[?&]$/, "");
1848
+ let options_ = {
1849
+ method: "GET",
1850
+ url: url_,
1851
+ headers: {
1852
+ "Accept": "application/json"
1853
+ },
1854
+ cancelToken
1855
+ };
1856
+ return this.transformOptions(options_).then(transformedOptions_ => {
1857
+ return this.instance.request(transformedOptions_);
1858
+ }).catch((_error) => {
1859
+ if (isAxiosError(_error) && _error.response) {
1860
+ return _error.response;
1861
+ }
1862
+ else {
1863
+ throw _error;
1864
+ }
1865
+ }).then((_response) => {
1866
+ return this.transformResult(url_, _response, (_response) => this.processGetPersonalizationParameters(_response));
1867
+ });
1868
+ }
1869
+ processGetPersonalizationParameters(response) {
1870
+ const status = response.status;
1871
+ let _headers = {};
1872
+ if (response.headers && typeof response.headers === "object") {
1873
+ for (let k in response.headers) {
1874
+ if (response.headers.hasOwnProperty(k)) {
1875
+ _headers[k] = response.headers[k];
1876
+ }
1877
+ }
1878
+ }
1879
+ if (status === 200) {
1880
+ const _responseText = response.data;
1881
+ let result200 = null;
1882
+ let resultData200 = _responseText;
1883
+ result200 = JSON.parse(resultData200);
1884
+ return Promise.resolve(result200);
1885
+ }
1886
+ else if (status === 404) {
1887
+ const _responseText = response.data;
1888
+ let result404 = null;
1889
+ let resultData404 = _responseText;
1890
+ result404 = JSON.parse(resultData404);
1891
+ return throwException("Not Found", status, _responseText, _headers, result404);
1892
+ }
1893
+ else if (status === 409) {
1894
+ const _responseText = response.data;
1895
+ let result409 = null;
1896
+ let resultData409 = _responseText;
1897
+ result409 = JSON.parse(resultData409);
1898
+ return throwException("Conflict", status, _responseText, _headers, result409);
1899
+ }
1900
+ else if (status === 401) {
1901
+ const _responseText = response.data;
1902
+ return throwException("Unauthorized", status, _responseText, _headers);
1903
+ }
1904
+ else if (status === 403) {
1905
+ const _responseText = response.data;
1906
+ return throwException("Forbidden", status, _responseText, _headers);
1907
+ }
1908
+ else if (status !== 200 && status !== 204) {
1909
+ const _responseText = response.data;
1910
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1911
+ }
1912
+ return Promise.resolve(null);
1913
+ }
1663
1914
  /**
1664
1915
  * Returns a product specification by the storefront product reference.
1665
1916
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
@@ -2454,6 +2705,89 @@ class ProductsApiClient extends ApiClientBase {
2454
2705
  }
2455
2706
  return Promise.resolve(null);
2456
2707
  }
2708
+ /**
2709
+ * Returns a product personalization parameters by product identifier.
2710
+ * @param id Product identifier.
2711
+ * @param productVersionId (optional) Product version identifier.
2712
+ * @param tenantId (optional) Tenant identifier.
2713
+ * @return Success
2714
+ */
2715
+ getProductSummary(id, productVersionId, tenantId, cancelToken) {
2716
+ let url_ = this.baseUrl + "/api/storefront/v1/products/{id}/personalization-parameters?";
2717
+ if (id === undefined || id === null)
2718
+ throw new Error("The parameter 'id' must be defined.");
2719
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
2720
+ if (productVersionId !== undefined && productVersionId !== null)
2721
+ url_ += "productVersionId=" + encodeURIComponent("" + productVersionId) + "&";
2722
+ if (tenantId !== undefined && tenantId !== null)
2723
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
2724
+ url_ = url_.replace(/[?&]$/, "");
2725
+ let options_ = {
2726
+ method: "GET",
2727
+ url: url_,
2728
+ headers: {
2729
+ "Accept": "application/json"
2730
+ },
2731
+ cancelToken
2732
+ };
2733
+ return this.transformOptions(options_).then(transformedOptions_ => {
2734
+ return this.instance.request(transformedOptions_);
2735
+ }).catch((_error) => {
2736
+ if (isAxiosError(_error) && _error.response) {
2737
+ return _error.response;
2738
+ }
2739
+ else {
2740
+ throw _error;
2741
+ }
2742
+ }).then((_response) => {
2743
+ return this.transformResult(url_, _response, (_response) => this.processGetProductSummary(_response));
2744
+ });
2745
+ }
2746
+ processGetProductSummary(response) {
2747
+ const status = response.status;
2748
+ let _headers = {};
2749
+ if (response.headers && typeof response.headers === "object") {
2750
+ for (let k in response.headers) {
2751
+ if (response.headers.hasOwnProperty(k)) {
2752
+ _headers[k] = response.headers[k];
2753
+ }
2754
+ }
2755
+ }
2756
+ if (status === 200) {
2757
+ const _responseText = response.data;
2758
+ let result200 = null;
2759
+ let resultData200 = _responseText;
2760
+ result200 = JSON.parse(resultData200);
2761
+ return Promise.resolve(result200);
2762
+ }
2763
+ else if (status === 404) {
2764
+ const _responseText = response.data;
2765
+ let result404 = null;
2766
+ let resultData404 = _responseText;
2767
+ result404 = JSON.parse(resultData404);
2768
+ return throwException("Not Found", status, _responseText, _headers, result404);
2769
+ }
2770
+ else if (status === 409) {
2771
+ const _responseText = response.data;
2772
+ let result409 = null;
2773
+ let resultData409 = _responseText;
2774
+ result409 = JSON.parse(resultData409);
2775
+ return throwException("Conflict", status, _responseText, _headers, result409);
2776
+ }
2777
+ else if (status === 401) {
2778
+ const _responseText = response.data;
2779
+ return throwException("Unauthorized", status, _responseText, _headers);
2780
+ }
2781
+ else if (status === 403) {
2782
+ const _responseText = response.data;
2783
+ return throwException("Forbidden", status, _responseText, _headers);
2784
+ }
2785
+ else if (status !== 200 && status !== 204) {
2786
+ const _responseText = response.data;
2787
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
2788
+ }
2789
+ return Promise.resolve(null);
2790
+ }
2457
2791
  /**
2458
2792
  * Returns a product summary by product identifier.
2459
2793
  * @param id Product identifier.
@@ -2464,7 +2798,7 @@ class ProductsApiClient extends ApiClientBase {
2464
2798
  * @param tenantId (optional) Tenant identifier.
2465
2799
  * @return Success
2466
2800
  */
2467
- getProductSummary(id, productVersionId, productLinkId, productVariantId, sku, tenantId, cancelToken) {
2801
+ getProductSummary2(id, productVersionId, productLinkId, productVariantId, sku, tenantId, cancelToken) {
2468
2802
  let url_ = this.baseUrl + "/api/storefront/v1/products/{id}/summary?";
2469
2803
  if (id === undefined || id === null)
2470
2804
  throw new Error("The parameter 'id' must be defined.");
@@ -2498,10 +2832,10 @@ class ProductsApiClient extends ApiClientBase {
2498
2832
  throw _error;
2499
2833
  }
2500
2834
  }).then((_response) => {
2501
- return this.transformResult(url_, _response, (_response) => this.processGetProductSummary(_response));
2835
+ return this.transformResult(url_, _response, (_response) => this.processGetProductSummary2(_response));
2502
2836
  });
2503
2837
  }
2504
- processGetProductSummary(response) {
2838
+ processGetProductSummary2(response) {
2505
2839
  const status = response.status;
2506
2840
  let _headers = {};
2507
2841
  if (response.headers && typeof response.headers === "object") {
@@ -3790,6 +4124,86 @@ class ProductSpecificationsApiClient extends ApiClientBase {
3790
4124
  }
3791
4125
  return Promise.resolve(null);
3792
4126
  }
4127
+ /**
4128
+ * Returns a product specification personalization parameters by product identifier.
4129
+ * @param id Product specification identifier.
4130
+ * @param tenantId (optional) Tenant identifier.
4131
+ * @return Success
4132
+ */
4133
+ getProductSpecificationSummary(id, tenantId, cancelToken) {
4134
+ let url_ = this.baseUrl + "/api/storefront/v1/product-specifications/{id}/personalization-parameters?";
4135
+ if (id === undefined || id === null)
4136
+ throw new Error("The parameter 'id' must be defined.");
4137
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
4138
+ if (tenantId !== undefined && tenantId !== null)
4139
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
4140
+ url_ = url_.replace(/[?&]$/, "");
4141
+ let options_ = {
4142
+ method: "GET",
4143
+ url: url_,
4144
+ headers: {
4145
+ "Accept": "application/json"
4146
+ },
4147
+ cancelToken
4148
+ };
4149
+ return this.transformOptions(options_).then(transformedOptions_ => {
4150
+ return this.instance.request(transformedOptions_);
4151
+ }).catch((_error) => {
4152
+ if (isAxiosError(_error) && _error.response) {
4153
+ return _error.response;
4154
+ }
4155
+ else {
4156
+ throw _error;
4157
+ }
4158
+ }).then((_response) => {
4159
+ return this.transformResult(url_, _response, (_response) => this.processGetProductSpecificationSummary(_response));
4160
+ });
4161
+ }
4162
+ processGetProductSpecificationSummary(response) {
4163
+ const status = response.status;
4164
+ let _headers = {};
4165
+ if (response.headers && typeof response.headers === "object") {
4166
+ for (let k in response.headers) {
4167
+ if (response.headers.hasOwnProperty(k)) {
4168
+ _headers[k] = response.headers[k];
4169
+ }
4170
+ }
4171
+ }
4172
+ if (status === 200) {
4173
+ const _responseText = response.data;
4174
+ let result200 = null;
4175
+ let resultData200 = _responseText;
4176
+ result200 = JSON.parse(resultData200);
4177
+ return Promise.resolve(result200);
4178
+ }
4179
+ else if (status === 404) {
4180
+ const _responseText = response.data;
4181
+ let result404 = null;
4182
+ let resultData404 = _responseText;
4183
+ result404 = JSON.parse(resultData404);
4184
+ return throwException("Not Found", status, _responseText, _headers, result404);
4185
+ }
4186
+ else if (status === 409) {
4187
+ const _responseText = response.data;
4188
+ let result409 = null;
4189
+ let resultData409 = _responseText;
4190
+ result409 = JSON.parse(resultData409);
4191
+ return throwException("Conflict", status, _responseText, _headers, result409);
4192
+ }
4193
+ else if (status === 401) {
4194
+ const _responseText = response.data;
4195
+ return throwException("Unauthorized", status, _responseText, _headers);
4196
+ }
4197
+ else if (status === 403) {
4198
+ const _responseText = response.data;
4199
+ return throwException("Forbidden", status, _responseText, _headers);
4200
+ }
4201
+ else if (status !== 200 && status !== 204) {
4202
+ const _responseText = response.data;
4203
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
4204
+ }
4205
+ return Promise.resolve(null);
4206
+ }
3793
4207
  /**
3794
4208
  * Returns a product personalization workflow description by product specification identifier.
3795
4209
  * @param id Product specification identifier.
@@ -5518,10 +5932,11 @@ class StorefrontsApiClient extends ApiClientBase {
5518
5932
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
5519
5933
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
5520
5934
  * @param search (optional) Search string for partial match.
5935
+ * @param status (optional) Storefront status.
5521
5936
  * @param tenantId (optional) Tenant identifier.
5522
5937
  * @return Success
5523
5938
  */
5524
- getAll(types, skip, take, sorting, search, tenantId, cancelToken) {
5939
+ getAll(types, skip, take, sorting, search, status, tenantId, cancelToken) {
5525
5940
  let url_ = this.baseUrl + "/api/storefront/v1/storefronts?";
5526
5941
  if (types !== undefined && types !== null)
5527
5942
  types && types.forEach(item => { url_ += "types=" + encodeURIComponent("" + item) + "&"; });
@@ -5533,6 +5948,8 @@ class StorefrontsApiClient extends ApiClientBase {
5533
5948
  url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
5534
5949
  if (search !== undefined && search !== null)
5535
5950
  url_ += "search=" + encodeURIComponent("" + search) + "&";
5951
+ if (status !== undefined && status !== null)
5952
+ url_ += "status=" + encodeURIComponent("" + status) + "&";
5536
5953
  if (tenantId !== undefined && tenantId !== null)
5537
5954
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
5538
5955
  url_ = url_.replace(/[?&]$/, "");
@@ -6454,6 +6871,22 @@ var ConflictType;
6454
6871
  ConflictType["IdConflict"] = "IdConflict";
6455
6872
  ConflictType["GeneralConflict"] = "GeneralConflict";
6456
6873
  })(ConflictType = exports.ConflictType || (exports.ConflictType = {}));
6874
+ /** Customer's Canvas product type. */
6875
+ var ProductType;
6876
+ (function (ProductType) {
6877
+ ProductType["ProductSpecification"] = "ProductSpecification";
6878
+ ProductType["Product"] = "Product";
6879
+ ProductType["ProductLink"] = "ProductLink";
6880
+ ProductType["ProductBundle"] = "ProductBundle";
6881
+ })(ProductType = exports.ProductType || (exports.ProductType = {}));
6882
+ /** Type of editor that should be configured by workflow. */
6883
+ var WorkflowType;
6884
+ (function (WorkflowType) {
6885
+ WorkflowType["UIFramework"] = "UIFramework";
6886
+ WorkflowType["SimpleEditor"] = "SimpleEditor";
6887
+ WorkflowType["DesignEditor"] = "DesignEditor";
6888
+ WorkflowType["WorkflowElements"] = "WorkflowElements";
6889
+ })(WorkflowType = exports.WorkflowType || (exports.WorkflowType = {}));
6457
6890
  /** Available appearance types. */
6458
6891
  var AppearanceDataType;
6459
6892
  (function (AppearanceDataType) {
@@ -6465,14 +6898,6 @@ var AppearanceDataType;
6465
6898
  AppearanceDataType["ImageGrid"] = "ImageGrid";
6466
6899
  AppearanceDataType["ImageList"] = "ImageList";
6467
6900
  })(AppearanceDataType = exports.AppearanceDataType || (exports.AppearanceDataType = {}));
6468
- /** Type of editor that should be configured by workflow. */
6469
- var WorkflowType;
6470
- (function (WorkflowType) {
6471
- WorkflowType["UIFramework"] = "UIFramework";
6472
- WorkflowType["SimpleEditor"] = "SimpleEditor";
6473
- WorkflowType["DesignEditor"] = "DesignEditor";
6474
- WorkflowType["WorkflowElements"] = "WorkflowElements";
6475
- })(WorkflowType = exports.WorkflowType || (exports.WorkflowType = {}));
6476
6901
  /** Product link resource type. */
6477
6902
  var ProductLinkResourceType;
6478
6903
  (function (ProductLinkResourceType) {
@@ -6594,6 +7019,12 @@ var StorefrontType;
6594
7019
  StorefrontType["Shopify"] = "Shopify";
6595
7020
  StorefrontType["ShopifyCustom"] = "ShopifyCustom";
6596
7021
  })(StorefrontType = exports.StorefrontType || (exports.StorefrontType = {}));
7022
+ /** Storefront status. */
7023
+ var StorefrontStatus;
7024
+ (function (StorefrontStatus) {
7025
+ StorefrontStatus["Dev"] = "Dev";
7026
+ StorefrontStatus["Prod"] = "Prod";
7027
+ })(StorefrontStatus = exports.StorefrontStatus || (exports.StorefrontStatus = {}));
6597
7028
  class ApiException extends Error {
6598
7029
  message;
6599
7030
  status;