@teemill/website 0.18.0 → 0.19.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/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.18.0
8
+ * The version of the OpenAPI document: 0.19.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +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.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = 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.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.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
25
+ exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = 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.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.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
26
+ exports.SearchApi = exports.SearchApiFactory = void 0;
26
27
  const axios_1 = require("axios");
27
28
  // Some imports not used depending on template conditions
28
29
  // @ts-ignore
@@ -2265,6 +2266,292 @@ class PaymentApi extends base_1.BaseAPI {
2265
2266
  }
2266
2267
  }
2267
2268
  exports.PaymentApi = PaymentApi;
2269
+ /**
2270
+ * ReviewsApi - axios parameter creator
2271
+ * @export
2272
+ */
2273
+ const ReviewsApiAxiosParamCreator = function (configuration) {
2274
+ return {
2275
+ /**
2276
+ *
2277
+ * @summary Get review
2278
+ * @param {string} project What project it is
2279
+ * @param {string} reviewId Review\'s unique identifier
2280
+ * @param {*} [options] Override http request option.
2281
+ * @throws {RequiredError}
2282
+ */
2283
+ getReview: (project_1, reviewId_1, ...args_1) => __awaiter(this, [project_1, reviewId_1, ...args_1], void 0, function* (project, reviewId, options = {}) {
2284
+ // verify required parameter 'project' is not null or undefined
2285
+ (0, common_1.assertParamExists)('getReview', 'project', project);
2286
+ // verify required parameter 'reviewId' is not null or undefined
2287
+ (0, common_1.assertParamExists)('getReview', 'reviewId', reviewId);
2288
+ const localVarPath = `/v1/website/reviews/{reviewId}`
2289
+ .replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
2290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2291
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2292
+ let baseOptions;
2293
+ if (configuration) {
2294
+ baseOptions = configuration.baseOptions;
2295
+ }
2296
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2297
+ const localVarHeaderParameter = {};
2298
+ const localVarQueryParameter = {};
2299
+ // authentication session-oauth required
2300
+ // oauth required
2301
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2302
+ // authentication api-key required
2303
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2304
+ if (project !== undefined) {
2305
+ localVarQueryParameter['project'] = project;
2306
+ }
2307
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2309
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2310
+ return {
2311
+ url: (0, common_1.toPathString)(localVarUrlObj),
2312
+ options: localVarRequestOptions,
2313
+ };
2314
+ }),
2315
+ /**
2316
+ *
2317
+ * @summary List Reviews
2318
+ * @param {string} project What project it is
2319
+ * @param {number} [pageToken] Page reference token
2320
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2321
+ * @param {string} [search] Search term to filter results
2322
+ * @param {*} [options] Override http request option.
2323
+ * @throws {RequiredError}
2324
+ */
2325
+ listReviews: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
2326
+ // verify required parameter 'project' is not null or undefined
2327
+ (0, common_1.assertParamExists)('listReviews', 'project', project);
2328
+ const localVarPath = `/v1/website/reviews`;
2329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2330
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2331
+ let baseOptions;
2332
+ if (configuration) {
2333
+ baseOptions = configuration.baseOptions;
2334
+ }
2335
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2336
+ const localVarHeaderParameter = {};
2337
+ const localVarQueryParameter = {};
2338
+ // authentication session-oauth required
2339
+ // oauth required
2340
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2341
+ // authentication api-key required
2342
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2343
+ if (project !== undefined) {
2344
+ localVarQueryParameter['project'] = project;
2345
+ }
2346
+ if (pageToken !== undefined) {
2347
+ localVarQueryParameter['pageToken'] = pageToken;
2348
+ }
2349
+ if (pageSize !== undefined) {
2350
+ localVarQueryParameter['pageSize'] = pageSize;
2351
+ }
2352
+ if (search !== undefined) {
2353
+ localVarQueryParameter['search'] = search;
2354
+ }
2355
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2356
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2357
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2358
+ return {
2359
+ url: (0, common_1.toPathString)(localVarUrlObj),
2360
+ options: localVarRequestOptions,
2361
+ };
2362
+ }),
2363
+ /**
2364
+ *
2365
+ * @summary Moderate review
2366
+ * @param {string} project What project it is
2367
+ * @param {string} reviewId Review\'s unique identifier
2368
+ * @param {ModerateReviewRequest} [moderateReviewRequest]
2369
+ * @param {*} [options] Override http request option.
2370
+ * @throws {RequiredError}
2371
+ */
2372
+ moderateReview: (project_1, reviewId_1, moderateReviewRequest_1, ...args_1) => __awaiter(this, [project_1, reviewId_1, moderateReviewRequest_1, ...args_1], void 0, function* (project, reviewId, moderateReviewRequest, options = {}) {
2373
+ // verify required parameter 'project' is not null or undefined
2374
+ (0, common_1.assertParamExists)('moderateReview', 'project', project);
2375
+ // verify required parameter 'reviewId' is not null or undefined
2376
+ (0, common_1.assertParamExists)('moderateReview', 'reviewId', reviewId);
2377
+ const localVarPath = `/v1/website/reviews/{reviewId}/moderate`
2378
+ .replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
2379
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2380
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2381
+ let baseOptions;
2382
+ if (configuration) {
2383
+ baseOptions = configuration.baseOptions;
2384
+ }
2385
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2386
+ const localVarHeaderParameter = {};
2387
+ const localVarQueryParameter = {};
2388
+ // authentication session-oauth required
2389
+ // oauth required
2390
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
2391
+ // authentication api-key required
2392
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2393
+ if (project !== undefined) {
2394
+ localVarQueryParameter['project'] = project;
2395
+ }
2396
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2397
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2398
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2399
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2400
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(moderateReviewRequest, localVarRequestOptions, configuration);
2401
+ return {
2402
+ url: (0, common_1.toPathString)(localVarUrlObj),
2403
+ options: localVarRequestOptions,
2404
+ };
2405
+ }),
2406
+ };
2407
+ };
2408
+ exports.ReviewsApiAxiosParamCreator = ReviewsApiAxiosParamCreator;
2409
+ /**
2410
+ * ReviewsApi - functional programming interface
2411
+ * @export
2412
+ */
2413
+ const ReviewsApiFp = function (configuration) {
2414
+ const localVarAxiosParamCreator = (0, exports.ReviewsApiAxiosParamCreator)(configuration);
2415
+ return {
2416
+ /**
2417
+ *
2418
+ * @summary Get review
2419
+ * @param {string} project What project it is
2420
+ * @param {string} reviewId Review\'s unique identifier
2421
+ * @param {*} [options] Override http request option.
2422
+ * @throws {RequiredError}
2423
+ */
2424
+ getReview(project, reviewId, options) {
2425
+ return __awaiter(this, void 0, void 0, function* () {
2426
+ var _a, _b, _c;
2427
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReview(project, reviewId, options);
2428
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2429
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReviewsApi.getReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2430
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2431
+ });
2432
+ },
2433
+ /**
2434
+ *
2435
+ * @summary List Reviews
2436
+ * @param {string} project What project it is
2437
+ * @param {number} [pageToken] Page reference token
2438
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2439
+ * @param {string} [search] Search term to filter results
2440
+ * @param {*} [options] Override http request option.
2441
+ * @throws {RequiredError}
2442
+ */
2443
+ listReviews(project, pageToken, pageSize, search, options) {
2444
+ return __awaiter(this, void 0, void 0, function* () {
2445
+ var _a, _b, _c;
2446
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, options);
2447
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2448
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReviewsApi.listReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2449
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2450
+ });
2451
+ },
2452
+ /**
2453
+ *
2454
+ * @summary Moderate review
2455
+ * @param {string} project What project it is
2456
+ * @param {string} reviewId Review\'s unique identifier
2457
+ * @param {ModerateReviewRequest} [moderateReviewRequest]
2458
+ * @param {*} [options] Override http request option.
2459
+ * @throws {RequiredError}
2460
+ */
2461
+ moderateReview(project, reviewId, moderateReviewRequest, options) {
2462
+ return __awaiter(this, void 0, void 0, function* () {
2463
+ var _a, _b, _c;
2464
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.moderateReview(project, reviewId, moderateReviewRequest, options);
2465
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2466
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReviewsApi.moderateReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2467
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2468
+ });
2469
+ },
2470
+ };
2471
+ };
2472
+ exports.ReviewsApiFp = ReviewsApiFp;
2473
+ /**
2474
+ * ReviewsApi - factory interface
2475
+ * @export
2476
+ */
2477
+ const ReviewsApiFactory = function (configuration, basePath, axios) {
2478
+ const localVarFp = (0, exports.ReviewsApiFp)(configuration);
2479
+ return {
2480
+ /**
2481
+ *
2482
+ * @summary Get review
2483
+ * @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
2484
+ * @param {*} [options] Override http request option.
2485
+ * @throws {RequiredError}
2486
+ */
2487
+ getReview(requestParameters, options) {
2488
+ return localVarFp.getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(axios, basePath));
2489
+ },
2490
+ /**
2491
+ *
2492
+ * @summary List Reviews
2493
+ * @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
2494
+ * @param {*} [options] Override http request option.
2495
+ * @throws {RequiredError}
2496
+ */
2497
+ listReviews(requestParameters, options) {
2498
+ return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
2499
+ },
2500
+ /**
2501
+ *
2502
+ * @summary Moderate review
2503
+ * @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
2504
+ * @param {*} [options] Override http request option.
2505
+ * @throws {RequiredError}
2506
+ */
2507
+ moderateReview(requestParameters, options) {
2508
+ return localVarFp.moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(axios, basePath));
2509
+ },
2510
+ };
2511
+ };
2512
+ exports.ReviewsApiFactory = ReviewsApiFactory;
2513
+ /**
2514
+ * ReviewsApi - object-oriented interface
2515
+ * @export
2516
+ * @class ReviewsApi
2517
+ * @extends {BaseAPI}
2518
+ */
2519
+ class ReviewsApi extends base_1.BaseAPI {
2520
+ /**
2521
+ *
2522
+ * @summary Get review
2523
+ * @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
2524
+ * @param {*} [options] Override http request option.
2525
+ * @throws {RequiredError}
2526
+ * @memberof ReviewsApi
2527
+ */
2528
+ getReview(requestParameters, options) {
2529
+ return (0, exports.ReviewsApiFp)(this.configuration).getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(this.axios, this.basePath));
2530
+ }
2531
+ /**
2532
+ *
2533
+ * @summary List Reviews
2534
+ * @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
2535
+ * @param {*} [options] Override http request option.
2536
+ * @throws {RequiredError}
2537
+ * @memberof ReviewsApi
2538
+ */
2539
+ listReviews(requestParameters, options) {
2540
+ return (0, exports.ReviewsApiFp)(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2541
+ }
2542
+ /**
2543
+ *
2544
+ * @summary Moderate review
2545
+ * @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
2546
+ * @param {*} [options] Override http request option.
2547
+ * @throws {RequiredError}
2548
+ * @memberof ReviewsApi
2549
+ */
2550
+ moderateReview(requestParameters, options) {
2551
+ return (0, exports.ReviewsApiFp)(this.configuration).moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(this.axios, this.basePath));
2552
+ }
2553
+ }
2554
+ exports.ReviewsApi = ReviewsApi;
2268
2555
  /**
2269
2556
  * RoutesApi - axios parameter creator
2270
2557
  * @export
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.18.0
5
+ * The version of the OpenAPI document: 0.19.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.18.0
8
+ * The version of the OpenAPI document: 0.19.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.18.0
5
+ * The version of the OpenAPI document: 0.19.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.18.0
8
+ * The version of the OpenAPI document: 0.19.0
9
9
  *
10
10
  *
11
11
  * 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.18.0
5
+ * The version of the OpenAPI document: 0.19.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.18.0
8
+ * The version of the OpenAPI document: 0.19.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).