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