@teemill/website 0.27.2 → 0.29.0

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/website@0.27.2
1
+ ## @teemill/website@0.29.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/website@0.27.2 --save
39
+ npm install @teemill/website@0.29.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -56,6 +56,7 @@ Class | Method | HTTP request | Description
56
56
  *BlogsApi* | [**listBlogs**](docs/BlogsApi.md#listblogs) | **GET** /v1/website/blogs | List website blog posts
57
57
  *BlogsApi* | [**updateBlog**](docs/BlogsApi.md#updateblog) | **PATCH** /v1/website/blogs/{blogId} | Update website blog post
58
58
  *BlogsApi* | [**updateBlogs**](docs/BlogsApi.md#updateblogs) | **PATCH** /v1/website/blogs | Update website blog posts
59
+ *CollectionsApi* | [**updateProductCollections**](docs/CollectionsApi.md#updateproductcollections) | **PATCH** /v1/website/products/{productId}/collections | Update product collections
59
60
  *CrossSellApi* | [**attachCrossSellProducts**](docs/CrossSellApi.md#attachcrosssellproducts) | **PUT** /v1/website/products/{productId}/cross-sell/products | Attach cross-sell products
60
61
  *CrossSellApi* | [**getCrossSellProducts**](docs/CrossSellApi.md#getcrosssellproducts) | **GET** /v1/website/products/{productId}/cross-sell/products | Get cross-sell products linked to a product
61
62
  *DefaultApi* | [**getBrand**](docs/DefaultApi.md#getbrand) | **GET** /v1/website/brand | Get brand
@@ -166,6 +167,7 @@ Class | Method | HTTP request | Description
166
167
  - [UpdatePageRequest](docs/UpdatePageRequest.md)
167
168
  - [UpdatePagesRequest](docs/UpdatePagesRequest.md)
168
169
  - [UpdatePagesRequestPagesInner](docs/UpdatePagesRequestPagesInner.md)
170
+ - [UpdateProductCollectionsRequest](docs/UpdateProductCollectionsRequest.md)
169
171
  - [UpdateSearchRedirectRequest](docs/UpdateSearchRedirectRequest.md)
170
172
  - [Variant](docs/Variant.md)
171
173
  - [VariantProduct](docs/VariantProduct.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.27.2
7
+ * The version of the OpenAPI document: 0.29.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -901,6 +901,12 @@ export interface UpdatePagesRequestPagesInner {
901
901
  */
902
902
  'targetSearchPhraseSynonyms'?: Array<string>;
903
903
  }
904
+ export interface UpdateProductCollectionsRequest {
905
+ /**
906
+ * An EXCLUSIVE list of collection IDs to attach to a product. If the product is in a collection not listed in this array, it will be removed from that collection.
907
+ */
908
+ 'collections': Array<string>;
909
+ }
904
910
  export interface UpdateSearchRedirectRequest {
905
911
  'searchTerm'?: string;
906
912
  'destinationUrl'?: string;
@@ -1543,6 +1549,144 @@ export class BlogsApi extends BaseAPI {
1543
1549
 
1544
1550
 
1545
1551
 
1552
+ /**
1553
+ * CollectionsApi - axios parameter creator
1554
+ */
1555
+ export const CollectionsApiAxiosParamCreator = function (configuration?: Configuration) {
1556
+ return {
1557
+ /**
1558
+ *
1559
+ * @summary Update product collections
1560
+ * @param {string} project What project it is
1561
+ * @param {string} productId Product\&#39;s unique identifier
1562
+ * @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
1563
+ * @param {*} [options] Override http request option.
1564
+ * @throws {RequiredError}
1565
+ */
1566
+ updateProductCollections: async (project: string, productId: string, updateProductCollectionsRequest?: UpdateProductCollectionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1567
+ // verify required parameter 'project' is not null or undefined
1568
+ assertParamExists('updateProductCollections', 'project', project)
1569
+ // verify required parameter 'productId' is not null or undefined
1570
+ assertParamExists('updateProductCollections', 'productId', productId)
1571
+ const localVarPath = `/v1/website/products/{productId}/collections`
1572
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1573
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1574
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1575
+ let baseOptions;
1576
+ if (configuration) {
1577
+ baseOptions = configuration.baseOptions;
1578
+ }
1579
+
1580
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1581
+ const localVarHeaderParameter = {} as any;
1582
+ const localVarQueryParameter = {} as any;
1583
+
1584
+ // authentication session-oauth required
1585
+ // oauth required
1586
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1587
+
1588
+ // authentication api-key required
1589
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1590
+
1591
+ if (project !== undefined) {
1592
+ localVarQueryParameter['project'] = project;
1593
+ }
1594
+
1595
+
1596
+
1597
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1598
+
1599
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1600
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1601
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1602
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductCollectionsRequest, localVarRequestOptions, configuration)
1603
+
1604
+ return {
1605
+ url: toPathString(localVarUrlObj),
1606
+ options: localVarRequestOptions,
1607
+ };
1608
+ },
1609
+ }
1610
+ };
1611
+
1612
+ /**
1613
+ * CollectionsApi - functional programming interface
1614
+ */
1615
+ export const CollectionsApiFp = function(configuration?: Configuration) {
1616
+ const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration)
1617
+ return {
1618
+ /**
1619
+ *
1620
+ * @summary Update product collections
1621
+ * @param {string} project What project it is
1622
+ * @param {string} productId Product\&#39;s unique identifier
1623
+ * @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
1624
+ * @param {*} [options] Override http request option.
1625
+ * @throws {RequiredError}
1626
+ */
1627
+ async updateProductCollections(project: string, productId: string, updateProductCollectionsRequest?: UpdateProductCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1628
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductCollections(project, productId, updateProductCollectionsRequest, options);
1629
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1630
+ const localVarOperationServerBasePath = operationServerMap['CollectionsApi.updateProductCollections']?.[localVarOperationServerIndex]?.url;
1631
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1632
+ },
1633
+ }
1634
+ };
1635
+
1636
+ /**
1637
+ * CollectionsApi - factory interface
1638
+ */
1639
+ export const CollectionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1640
+ const localVarFp = CollectionsApiFp(configuration)
1641
+ return {
1642
+ /**
1643
+ *
1644
+ * @summary Update product collections
1645
+ * @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
1646
+ * @param {*} [options] Override http request option.
1647
+ * @throws {RequiredError}
1648
+ */
1649
+ updateProductCollections(requestParameters: CollectionsApiUpdateProductCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1650
+ return localVarFp.updateProductCollections(requestParameters.project, requestParameters.productId, requestParameters.updateProductCollectionsRequest, options).then((request) => request(axios, basePath));
1651
+ },
1652
+ };
1653
+ };
1654
+
1655
+ /**
1656
+ * Request parameters for updateProductCollections operation in CollectionsApi.
1657
+ */
1658
+ export interface CollectionsApiUpdateProductCollectionsRequest {
1659
+ /**
1660
+ * What project it is
1661
+ */
1662
+ readonly project: string
1663
+
1664
+ /**
1665
+ * Product\&#39;s unique identifier
1666
+ */
1667
+ readonly productId: string
1668
+
1669
+ readonly updateProductCollectionsRequest?: UpdateProductCollectionsRequest
1670
+ }
1671
+
1672
+ /**
1673
+ * CollectionsApi - object-oriented interface
1674
+ */
1675
+ export class CollectionsApi extends BaseAPI {
1676
+ /**
1677
+ *
1678
+ * @summary Update product collections
1679
+ * @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
1680
+ * @param {*} [options] Override http request option.
1681
+ * @throws {RequiredError}
1682
+ */
1683
+ public updateProductCollections(requestParameters: CollectionsApiUpdateProductCollectionsRequest, options?: RawAxiosRequestConfig) {
1684
+ return CollectionsApiFp(this.configuration).updateProductCollections(requestParameters.project, requestParameters.productId, requestParameters.updateProductCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
1685
+ }
1686
+ }
1687
+
1688
+
1689
+
1546
1690
  /**
1547
1691
  * CrossSellApi - axios parameter creator
1548
1692
  */
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.27.2
7
+ * The version of the OpenAPI document: 0.29.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.27.2
7
+ * The version of the OpenAPI document: 0.29.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  /* tslint:disable */
2
- /* eslint-disable */
3
2
  /**
4
3
  * Website API
5
4
  * Manage your PodOS Website
6
5
  *
7
- * The version of the OpenAPI document: 0.27.2
6
+ * The version of the OpenAPI document: 0.29.0
8
7
  *
9
8
  *
10
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,12 +11,24 @@
12
11
  * Do not edit the class manually.
13
12
  */
14
13
 
14
+ interface AWSv4Configuration {
15
+ options?: {
16
+ region?: string
17
+ service?: string
18
+ }
19
+ credentials?: {
20
+ accessKeyId?: string
21
+ secretAccessKey?: string,
22
+ sessionToken?: string
23
+ }
24
+ }
15
25
 
16
26
  export interface ConfigurationParameters {
17
27
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
28
  username?: string;
19
29
  password?: string;
20
30
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
31
+ awsv4?: AWSv4Configuration;
21
32
  basePath?: string;
22
33
  serverIndex?: number;
23
34
  baseOptions?: any;
@@ -44,6 +55,17 @@ export class Configuration {
44
55
  * @param scopes oauth2 scope
45
56
  */
46
57
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
58
+ /**
59
+ * parameter for aws4 signature security
60
+ * @param {Object} AWS4Signature - AWS4 Signature security
61
+ * @param {string} options.region - aws region
62
+ * @param {string} options.service - name of the service.
63
+ * @param {string} credentials.accessKeyId - aws access key id
64
+ * @param {string} credentials.secretAccessKey - aws access key
65
+ * @param {string} credentials.sessionToken - aws session token
66
+ * @memberof Configuration
67
+ */
68
+ awsv4?: AWSv4Configuration;
47
69
  /**
48
70
  * override base path
49
71
  */
@@ -70,6 +92,7 @@ export class Configuration {
70
92
  this.username = param.username;
71
93
  this.password = param.password;
72
94
  this.accessToken = param.accessToken;
95
+ this.awsv4 = param.awsv4;
73
96
  this.basePath = param.basePath;
74
97
  this.serverIndex = param.serverIndex;
75
98
  this.baseOptions = {
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.27.2
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -852,6 +852,12 @@ export interface UpdatePagesRequestPagesInner {
852
852
  */
853
853
  'targetSearchPhraseSynonyms'?: Array<string>;
854
854
  }
855
+ export interface UpdateProductCollectionsRequest {
856
+ /**
857
+ * An EXCLUSIVE list of collection IDs to attach to a product. If the product is in a collection not listed in this array, it will be removed from that collection.
858
+ */
859
+ 'collections': Array<string>;
860
+ }
855
861
  export interface UpdateSearchRedirectRequest {
856
862
  'searchTerm'?: string;
857
863
  'destinationUrl'?: string;
@@ -1199,6 +1205,76 @@ export declare class BlogsApi extends BaseAPI {
1199
1205
  */
1200
1206
  updateBlogs(requestParameters: BlogsApiUpdateBlogsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BlogsResponse, any, {}>>;
1201
1207
  }
1208
+ /**
1209
+ * CollectionsApi - axios parameter creator
1210
+ */
1211
+ export declare const CollectionsApiAxiosParamCreator: (configuration?: Configuration) => {
1212
+ /**
1213
+ *
1214
+ * @summary Update product collections
1215
+ * @param {string} project What project it is
1216
+ * @param {string} productId Product\&#39;s unique identifier
1217
+ * @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
1218
+ * @param {*} [options] Override http request option.
1219
+ * @throws {RequiredError}
1220
+ */
1221
+ updateProductCollections: (project: string, productId: string, updateProductCollectionsRequest?: UpdateProductCollectionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1222
+ };
1223
+ /**
1224
+ * CollectionsApi - functional programming interface
1225
+ */
1226
+ export declare const CollectionsApiFp: (configuration?: Configuration) => {
1227
+ /**
1228
+ *
1229
+ * @summary Update product collections
1230
+ * @param {string} project What project it is
1231
+ * @param {string} productId Product\&#39;s unique identifier
1232
+ * @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
1233
+ * @param {*} [options] Override http request option.
1234
+ * @throws {RequiredError}
1235
+ */
1236
+ updateProductCollections(project: string, productId: string, updateProductCollectionsRequest?: UpdateProductCollectionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1237
+ };
1238
+ /**
1239
+ * CollectionsApi - factory interface
1240
+ */
1241
+ export declare const CollectionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1242
+ /**
1243
+ *
1244
+ * @summary Update product collections
1245
+ * @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
1246
+ * @param {*} [options] Override http request option.
1247
+ * @throws {RequiredError}
1248
+ */
1249
+ updateProductCollections(requestParameters: CollectionsApiUpdateProductCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1250
+ };
1251
+ /**
1252
+ * Request parameters for updateProductCollections operation in CollectionsApi.
1253
+ */
1254
+ export interface CollectionsApiUpdateProductCollectionsRequest {
1255
+ /**
1256
+ * What project it is
1257
+ */
1258
+ readonly project: string;
1259
+ /**
1260
+ * Product\&#39;s unique identifier
1261
+ */
1262
+ readonly productId: string;
1263
+ readonly updateProductCollectionsRequest?: UpdateProductCollectionsRequest;
1264
+ }
1265
+ /**
1266
+ * CollectionsApi - object-oriented interface
1267
+ */
1268
+ export declare class CollectionsApi extends BaseAPI {
1269
+ /**
1270
+ *
1271
+ * @summary Update product collections
1272
+ * @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
1273
+ * @param {*} [options] Override http request option.
1274
+ * @throws {RequiredError}
1275
+ */
1276
+ updateProductCollections(requestParameters: CollectionsApiUpdateProductCollectionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1277
+ }
1202
1278
  /**
1203
1279
  * CrossSellApi - axios parameter creator
1204
1280
  */
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.27.2
8
+ * The version of the OpenAPI document: 0.29.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.RoutesApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PagesApi = exports.PagesApiFactory = exports.PagesApiFp = exports.PagesApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.FooterApi = exports.FooterApiFactory = exports.FooterApiFp = exports.FooterApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CrossSellApi = exports.CrossSellApiFactory = exports.CrossSellApiFp = exports.CrossSellApiAxiosParamCreator = exports.BlogsApi = exports.BlogsApiFactory = exports.BlogsApiFp = exports.BlogsApiAxiosParamCreator = exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = exports.UpdateMenuRequestItemSubmenuInnerImageTextAlignmentEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonWidthEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonBorderRadiusEnum = exports.UpdateMenuRequestItemSubmenuInnerModeEnum = exports.SubmenuInnerImageTextShadowEnum = exports.SubmenuInnerImageTextAlignmentEnum = exports.SubmenuInnerImageButtonWidthEnum = exports.SubmenuInnerImageButtonBorderRadiusEnum = exports.SubmenuInnerImageBorderRadiusEnum = exports.SubmenuInnerModeEnum = exports.SalePriceCurrencyCodeEnum = exports.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
26
- exports.WebsiteApi = exports.WebsiteApiFactory = exports.WebsiteApiFp = exports.WebsiteApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = void 0;
25
+ exports.ReviewsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PagesApi = exports.PagesApiFactory = exports.PagesApiFp = exports.PagesApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.FooterApi = exports.FooterApiFactory = exports.FooterApiFp = exports.FooterApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CrossSellApi = exports.CrossSellApiFactory = exports.CrossSellApiFp = exports.CrossSellApiAxiosParamCreator = exports.CollectionsApi = exports.CollectionsApiFactory = exports.CollectionsApiFp = exports.CollectionsApiAxiosParamCreator = exports.BlogsApi = exports.BlogsApiFactory = exports.BlogsApiFp = exports.BlogsApiAxiosParamCreator = exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = exports.UpdateMenuRequestItemSubmenuInnerImageTextAlignmentEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonWidthEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonBorderRadiusEnum = exports.UpdateMenuRequestItemSubmenuInnerModeEnum = exports.SubmenuInnerImageTextShadowEnum = exports.SubmenuInnerImageTextAlignmentEnum = exports.SubmenuInnerImageButtonWidthEnum = exports.SubmenuInnerImageButtonBorderRadiusEnum = exports.SubmenuInnerImageBorderRadiusEnum = exports.SubmenuInnerModeEnum = exports.SalePriceCurrencyCodeEnum = exports.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
26
+ exports.WebsiteApi = exports.WebsiteApiFactory = exports.WebsiteApiFp = exports.WebsiteApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -559,6 +559,119 @@ class BlogsApi extends base_1.BaseAPI {
559
559
  }
560
560
  }
561
561
  exports.BlogsApi = BlogsApi;
562
+ /**
563
+ * CollectionsApi - axios parameter creator
564
+ */
565
+ const CollectionsApiAxiosParamCreator = function (configuration) {
566
+ return {
567
+ /**
568
+ *
569
+ * @summary Update product collections
570
+ * @param {string} project What project it is
571
+ * @param {string} productId Product\&#39;s unique identifier
572
+ * @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ */
576
+ updateProductCollections: (project_1, productId_1, updateProductCollectionsRequest_1, ...args_1) => __awaiter(this, [project_1, productId_1, updateProductCollectionsRequest_1, ...args_1], void 0, function* (project, productId, updateProductCollectionsRequest, options = {}) {
577
+ // verify required parameter 'project' is not null or undefined
578
+ (0, common_1.assertParamExists)('updateProductCollections', 'project', project);
579
+ // verify required parameter 'productId' is not null or undefined
580
+ (0, common_1.assertParamExists)('updateProductCollections', 'productId', productId);
581
+ const localVarPath = `/v1/website/products/{productId}/collections`
582
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
584
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
585
+ let baseOptions;
586
+ if (configuration) {
587
+ baseOptions = configuration.baseOptions;
588
+ }
589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
590
+ const localVarHeaderParameter = {};
591
+ const localVarQueryParameter = {};
592
+ // authentication session-oauth required
593
+ // oauth required
594
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
595
+ // authentication api-key required
596
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
597
+ if (project !== undefined) {
598
+ localVarQueryParameter['project'] = project;
599
+ }
600
+ localVarHeaderParameter['Content-Type'] = 'application/json';
601
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
602
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
603
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
604
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductCollectionsRequest, localVarRequestOptions, configuration);
605
+ return {
606
+ url: (0, common_1.toPathString)(localVarUrlObj),
607
+ options: localVarRequestOptions,
608
+ };
609
+ }),
610
+ };
611
+ };
612
+ exports.CollectionsApiAxiosParamCreator = CollectionsApiAxiosParamCreator;
613
+ /**
614
+ * CollectionsApi - functional programming interface
615
+ */
616
+ const CollectionsApiFp = function (configuration) {
617
+ const localVarAxiosParamCreator = (0, exports.CollectionsApiAxiosParamCreator)(configuration);
618
+ return {
619
+ /**
620
+ *
621
+ * @summary Update product collections
622
+ * @param {string} project What project it is
623
+ * @param {string} productId Product\&#39;s unique identifier
624
+ * @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
625
+ * @param {*} [options] Override http request option.
626
+ * @throws {RequiredError}
627
+ */
628
+ updateProductCollections(project, productId, updateProductCollectionsRequest, options) {
629
+ return __awaiter(this, void 0, void 0, function* () {
630
+ var _a, _b, _c;
631
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProductCollections(project, productId, updateProductCollectionsRequest, options);
632
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
633
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollectionsApi.updateProductCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
634
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
635
+ });
636
+ },
637
+ };
638
+ };
639
+ exports.CollectionsApiFp = CollectionsApiFp;
640
+ /**
641
+ * CollectionsApi - factory interface
642
+ */
643
+ const CollectionsApiFactory = function (configuration, basePath, axios) {
644
+ const localVarFp = (0, exports.CollectionsApiFp)(configuration);
645
+ return {
646
+ /**
647
+ *
648
+ * @summary Update product collections
649
+ * @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ updateProductCollections(requestParameters, options) {
654
+ return localVarFp.updateProductCollections(requestParameters.project, requestParameters.productId, requestParameters.updateProductCollectionsRequest, options).then((request) => request(axios, basePath));
655
+ },
656
+ };
657
+ };
658
+ exports.CollectionsApiFactory = CollectionsApiFactory;
659
+ /**
660
+ * CollectionsApi - object-oriented interface
661
+ */
662
+ class CollectionsApi extends base_1.BaseAPI {
663
+ /**
664
+ *
665
+ * @summary Update product collections
666
+ * @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ updateProductCollections(requestParameters, options) {
671
+ return (0, exports.CollectionsApiFp)(this.configuration).updateProductCollections(requestParameters.project, requestParameters.productId, requestParameters.updateProductCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
672
+ }
673
+ }
674
+ exports.CollectionsApi = CollectionsApi;
562
675
  /**
563
676
  * CrossSellApi - axios parameter creator
564
677
  */
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.27.2
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.27.2
8
+ * The version of the OpenAPI document: 0.29.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.27.2
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.27.2
8
+ * The version of the OpenAPI document: 0.29.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,18 +2,30 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.27.2
5
+ * The version of the OpenAPI document: 0.29.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ interface AWSv4Configuration {
13
+ options?: {
14
+ region?: string;
15
+ service?: string;
16
+ };
17
+ credentials?: {
18
+ accessKeyId?: string;
19
+ secretAccessKey?: string;
20
+ sessionToken?: string;
21
+ };
22
+ }
12
23
  export interface ConfigurationParameters {
13
24
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
25
  username?: string;
15
26
  password?: string;
16
27
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
+ awsv4?: AWSv4Configuration;
17
29
  basePath?: string;
18
30
  serverIndex?: number;
19
31
  baseOptions?: any;
@@ -39,6 +51,17 @@ export declare class Configuration {
39
51
  * @param scopes oauth2 scope
40
52
  */
41
53
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
54
+ /**
55
+ * parameter for aws4 signature security
56
+ * @param {Object} AWS4Signature - AWS4 Signature security
57
+ * @param {string} options.region - aws region
58
+ * @param {string} options.service - name of the service.
59
+ * @param {string} credentials.accessKeyId - aws access key id
60
+ * @param {string} credentials.secretAccessKey - aws access key
61
+ * @param {string} credentials.sessionToken - aws session token
62
+ * @memberof Configuration
63
+ */
64
+ awsv4?: AWSv4Configuration;
42
65
  /**
43
66
  * override base path
44
67
  */
@@ -72,3 +95,4 @@ export declare class Configuration {
72
95
  */
73
96
  isJsonMime(mime: string): boolean;
74
97
  }
98
+ export {};
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  /* tslint:disable */
3
- /* eslint-disable */
4
3
  /**
5
4
  * Website API
6
5
  * Manage your PodOS Website
7
6
  *
8
- * The version of the OpenAPI document: 0.27.2
7
+ * The version of the OpenAPI document: 0.29.0
9
8
  *
10
9
  *
11
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,6 +20,7 @@ class Configuration {
21
20
  this.username = param.username;
22
21
  this.password = param.password;
23
22
  this.accessToken = param.accessToken;
23
+ this.awsv4 = param.awsv4;
24
24
  this.basePath = param.basePath;
25
25
  this.serverIndex = param.serverIndex;
26
26
  this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });