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