@teemill/website 0.28.0 → 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/dist/esm/api.js 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.28.0
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).
@@ -551,6 +551,115 @@ export class BlogsApi extends BaseAPI {
551
551
  return BlogsApiFp(this.configuration).updateBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateBlogsRequest, options).then((request) => request(this.axios, this.basePath));
552
552
  }
553
553
  }
554
+ /**
555
+ * CollectionsApi - axios parameter creator
556
+ */
557
+ export const CollectionsApiAxiosParamCreator = function (configuration) {
558
+ return {
559
+ /**
560
+ *
561
+ * @summary Update product collections
562
+ * @param {string} project What project it is
563
+ * @param {string} productId Product\'s unique identifier
564
+ * @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ 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 = {}) {
569
+ // verify required parameter 'project' is not null or undefined
570
+ assertParamExists('updateProductCollections', 'project', project);
571
+ // verify required parameter 'productId' is not null or undefined
572
+ assertParamExists('updateProductCollections', 'productId', productId);
573
+ const localVarPath = `/v1/website/products/{productId}/collections`
574
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
576
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
577
+ let baseOptions;
578
+ if (configuration) {
579
+ baseOptions = configuration.baseOptions;
580
+ }
581
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
582
+ const localVarHeaderParameter = {};
583
+ const localVarQueryParameter = {};
584
+ // authentication session-oauth required
585
+ // oauth required
586
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
587
+ // authentication api-key required
588
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
589
+ if (project !== undefined) {
590
+ localVarQueryParameter['project'] = project;
591
+ }
592
+ localVarHeaderParameter['Content-Type'] = 'application/json';
593
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
594
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
595
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
596
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductCollectionsRequest, localVarRequestOptions, configuration);
597
+ return {
598
+ url: toPathString(localVarUrlObj),
599
+ options: localVarRequestOptions,
600
+ };
601
+ }),
602
+ };
603
+ };
604
+ /**
605
+ * CollectionsApi - functional programming interface
606
+ */
607
+ export const CollectionsApiFp = function (configuration) {
608
+ const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration);
609
+ return {
610
+ /**
611
+ *
612
+ * @summary Update product collections
613
+ * @param {string} project What project it is
614
+ * @param {string} productId Product\'s unique identifier
615
+ * @param {UpdateProductCollectionsRequest} [updateProductCollectionsRequest]
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ */
619
+ updateProductCollections(project, productId, updateProductCollectionsRequest, options) {
620
+ return __awaiter(this, void 0, void 0, function* () {
621
+ var _a, _b, _c;
622
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProductCollections(project, productId, updateProductCollectionsRequest, options);
623
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
624
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.updateProductCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
625
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
626
+ });
627
+ },
628
+ };
629
+ };
630
+ /**
631
+ * CollectionsApi - factory interface
632
+ */
633
+ export const CollectionsApiFactory = function (configuration, basePath, axios) {
634
+ const localVarFp = CollectionsApiFp(configuration);
635
+ return {
636
+ /**
637
+ *
638
+ * @summary Update product collections
639
+ * @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
640
+ * @param {*} [options] Override http request option.
641
+ * @throws {RequiredError}
642
+ */
643
+ updateProductCollections(requestParameters, options) {
644
+ return localVarFp.updateProductCollections(requestParameters.project, requestParameters.productId, requestParameters.updateProductCollectionsRequest, options).then((request) => request(axios, basePath));
645
+ },
646
+ };
647
+ };
648
+ /**
649
+ * CollectionsApi - object-oriented interface
650
+ */
651
+ export class CollectionsApi extends BaseAPI {
652
+ /**
653
+ *
654
+ * @summary Update product collections
655
+ * @param {CollectionsApiUpdateProductCollectionsRequest} requestParameters Request parameters.
656
+ * @param {*} [options] Override http request option.
657
+ * @throws {RequiredError}
658
+ */
659
+ updateProductCollections(requestParameters, options) {
660
+ return CollectionsApiFp(this.configuration).updateProductCollections(requestParameters.project, requestParameters.productId, requestParameters.updateProductCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
661
+ }
662
+ }
554
663
  /**
555
664
  * CrossSellApi - axios parameter creator
556
665
  */
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.28.0
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/esm/base.js 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.28.0
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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.28.0
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).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.28.0
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).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.28.0
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).
@@ -3,7 +3,7 @@
3
3
  * Website API
4
4
  * Manage your PodOS Website
5
5
  *
6
- * The version of the OpenAPI document: 0.28.0
6
+ * The version of the OpenAPI document: 0.29.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.28.0
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/esm/index.js 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.28.0
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/dist/index.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.28.0
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/index.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.28.0
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).