@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/dist/esm/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/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.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).
@@ -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\&#39;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\&#39;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.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/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.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).
@@ -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).
@@ -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).
@@ -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,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).
@@ -18,6 +17,7 @@ export class Configuration {
18
17
  this.username = param.username;
19
18
  this.password = param.password;
20
19
  this.accessToken = param.accessToken;
20
+ this.awsv4 = param.awsv4;
21
21
  this.basePath = param.basePath;
22
22
  this.serverIndex = param.serverIndex;
23
23
  this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
@@ -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/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.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/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.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/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.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/docs/BlogsApi.md CHANGED
@@ -62,6 +62,7 @@ const { status, data } = await apiInstance.exportBlogs(
62
62
  |**400** | Failed validation | - |
63
63
  |**401** | Not authorised to access this resource | - |
64
64
  |**403** | Refuse to authorize | - |
65
+ |**409** | Conflict | - |
65
66
  |**500** | Unknown server error | - |
66
67
 
67
68
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)