@teemill/platform 0.19.0 → 0.21.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.19.0
7
+ * The version of the OpenAPI document: 0.21.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,11 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const EnquiryStatusEnum = {
30
+ New: 'New',
31
+ Archived: 'Archived',
32
+ Priority: 'Priority'
33
+ };
29
34
  /**
30
35
  *
31
36
  * @export
@@ -416,6 +421,313 @@ export const ListCustomersSortByEnum = {
416
421
  LastPurchased: '+lastPurchased',
417
422
  LastPurchased2: '-lastPurchased'
418
423
  };
424
+ /**
425
+ * EnquiriesApi - axios parameter creator
426
+ * @export
427
+ */
428
+ export const EnquiriesApiAxiosParamCreator = function (configuration) {
429
+ return {
430
+ /**
431
+ * Get a customer enquiry
432
+ * @summary Get customer enquiry
433
+ * @param {string} project Project unique identifier
434
+ * @param {string} platformId The platform identifier
435
+ * @param {string} enquiryId
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ getCustomerEnquiry: (project_1, platformId_1, enquiryId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, enquiryId_1, ...args_1], void 0, function* (project, platformId, enquiryId, options = {}) {
440
+ // verify required parameter 'project' is not null or undefined
441
+ assertParamExists('getCustomerEnquiry', 'project', project);
442
+ // verify required parameter 'platformId' is not null or undefined
443
+ assertParamExists('getCustomerEnquiry', 'platformId', platformId);
444
+ // verify required parameter 'enquiryId' is not null or undefined
445
+ assertParamExists('getCustomerEnquiry', 'enquiryId', enquiryId);
446
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}`
447
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
448
+ .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
451
+ let baseOptions;
452
+ if (configuration) {
453
+ baseOptions = configuration.baseOptions;
454
+ }
455
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
456
+ const localVarHeaderParameter = {};
457
+ const localVarQueryParameter = {};
458
+ // authentication session-oauth required
459
+ // oauth required
460
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
461
+ // authentication api-key required
462
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
463
+ if (project !== undefined) {
464
+ localVarQueryParameter['project'] = project;
465
+ }
466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
469
+ return {
470
+ url: toPathString(localVarUrlObj),
471
+ options: localVarRequestOptions,
472
+ };
473
+ }),
474
+ /**
475
+ * List customer enquiries
476
+ * @summary List customer enquiries
477
+ * @param {string} project Project unique identifier
478
+ * @param {string} platformId The platform identifier
479
+ * @param {number} [pageToken] Page reference token
480
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
481
+ * @param {string} [search] Search term to filter based on enquiry title, content, customer name and customer email.
482
+ * @param {string} [start] Start of date range to filter by
483
+ * @param {string} [end] End of date range to filter by
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ */
487
+ listCustomerEnquiries: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, start_1, end_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, start, end, options = {}) {
488
+ // verify required parameter 'project' is not null or undefined
489
+ assertParamExists('listCustomerEnquiries', 'project', project);
490
+ // verify required parameter 'platformId' is not null or undefined
491
+ assertParamExists('listCustomerEnquiries', 'platformId', platformId);
492
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries`
493
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
494
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
495
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
496
+ let baseOptions;
497
+ if (configuration) {
498
+ baseOptions = configuration.baseOptions;
499
+ }
500
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
501
+ const localVarHeaderParameter = {};
502
+ const localVarQueryParameter = {};
503
+ // authentication session-oauth required
504
+ // oauth required
505
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
506
+ // authentication api-key required
507
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
508
+ if (project !== undefined) {
509
+ localVarQueryParameter['project'] = project;
510
+ }
511
+ if (pageToken !== undefined) {
512
+ localVarQueryParameter['pageToken'] = pageToken;
513
+ }
514
+ if (pageSize !== undefined) {
515
+ localVarQueryParameter['pageSize'] = pageSize;
516
+ }
517
+ if (search !== undefined) {
518
+ localVarQueryParameter['search'] = search;
519
+ }
520
+ if (start !== undefined) {
521
+ localVarQueryParameter['start'] = (start instanceof Date) ?
522
+ start.toISOString() :
523
+ start;
524
+ }
525
+ if (end !== undefined) {
526
+ localVarQueryParameter['end'] = (end instanceof Date) ?
527
+ end.toISOString() :
528
+ end;
529
+ }
530
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
531
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
532
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
533
+ return {
534
+ url: toPathString(localVarUrlObj),
535
+ options: localVarRequestOptions,
536
+ };
537
+ }),
538
+ /**
539
+ * Lists all customer enquiry Logs
540
+ * @summary List customer enquiry Logs
541
+ * @param {string} project Project unique identifier
542
+ * @param {string} platformId The platform identifier
543
+ * @param {string} enquiryId
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ */
547
+ listCustomerEnquiryLogs: (project_1, platformId_1, enquiryId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, enquiryId_1, ...args_1], void 0, function* (project, platformId, enquiryId, options = {}) {
548
+ // verify required parameter 'project' is not null or undefined
549
+ assertParamExists('listCustomerEnquiryLogs', 'project', project);
550
+ // verify required parameter 'platformId' is not null or undefined
551
+ assertParamExists('listCustomerEnquiryLogs', 'platformId', platformId);
552
+ // verify required parameter 'enquiryId' is not null or undefined
553
+ assertParamExists('listCustomerEnquiryLogs', 'enquiryId', enquiryId);
554
+ const localVarPath = `/v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs`
555
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
556
+ .replace(`{${"enquiryId"}}`, encodeURIComponent(String(enquiryId)));
557
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
558
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
559
+ let baseOptions;
560
+ if (configuration) {
561
+ baseOptions = configuration.baseOptions;
562
+ }
563
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
564
+ const localVarHeaderParameter = {};
565
+ const localVarQueryParameter = {};
566
+ // authentication session-oauth required
567
+ // oauth required
568
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
569
+ // authentication api-key required
570
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
571
+ if (project !== undefined) {
572
+ localVarQueryParameter['project'] = project;
573
+ }
574
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
575
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
576
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
577
+ return {
578
+ url: toPathString(localVarUrlObj),
579
+ options: localVarRequestOptions,
580
+ };
581
+ }),
582
+ };
583
+ };
584
+ /**
585
+ * EnquiriesApi - functional programming interface
586
+ * @export
587
+ */
588
+ export const EnquiriesApiFp = function (configuration) {
589
+ const localVarAxiosParamCreator = EnquiriesApiAxiosParamCreator(configuration);
590
+ return {
591
+ /**
592
+ * Get a customer enquiry
593
+ * @summary Get customer enquiry
594
+ * @param {string} project Project unique identifier
595
+ * @param {string} platformId The platform identifier
596
+ * @param {string} enquiryId
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ getCustomerEnquiry(project, platformId, enquiryId, options) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ var _a, _b, _c;
603
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomerEnquiry(project, platformId, enquiryId, options);
604
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
605
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnquiriesApi.getCustomerEnquiry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
606
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
607
+ });
608
+ },
609
+ /**
610
+ * List customer enquiries
611
+ * @summary List customer enquiries
612
+ * @param {string} project Project unique identifier
613
+ * @param {string} platformId The platform identifier
614
+ * @param {number} [pageToken] Page reference token
615
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
616
+ * @param {string} [search] Search term to filter based on enquiry title, content, customer name and customer email.
617
+ * @param {string} [start] Start of date range to filter by
618
+ * @param {string} [end] End of date range to filter by
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ listCustomerEnquiries(project, platformId, pageToken, pageSize, search, start, end, options) {
623
+ return __awaiter(this, void 0, void 0, function* () {
624
+ var _a, _b, _c;
625
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomerEnquiries(project, platformId, pageToken, pageSize, search, start, end, options);
626
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
627
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnquiriesApi.listCustomerEnquiries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
628
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
629
+ });
630
+ },
631
+ /**
632
+ * Lists all customer enquiry Logs
633
+ * @summary List customer enquiry Logs
634
+ * @param {string} project Project unique identifier
635
+ * @param {string} platformId The platform identifier
636
+ * @param {string} enquiryId
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ listCustomerEnquiryLogs(project, platformId, enquiryId, options) {
641
+ return __awaiter(this, void 0, void 0, function* () {
642
+ var _a, _b, _c;
643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomerEnquiryLogs(project, platformId, enquiryId, options);
644
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
645
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnquiriesApi.listCustomerEnquiryLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
646
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
647
+ });
648
+ },
649
+ };
650
+ };
651
+ /**
652
+ * EnquiriesApi - factory interface
653
+ * @export
654
+ */
655
+ export const EnquiriesApiFactory = function (configuration, basePath, axios) {
656
+ const localVarFp = EnquiriesApiFp(configuration);
657
+ return {
658
+ /**
659
+ * Get a customer enquiry
660
+ * @summary Get customer enquiry
661
+ * @param {EnquiriesApiGetCustomerEnquiryRequest} requestParameters Request parameters.
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ */
665
+ getCustomerEnquiry(requestParameters, options) {
666
+ return localVarFp.getCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
667
+ },
668
+ /**
669
+ * List customer enquiries
670
+ * @summary List customer enquiries
671
+ * @param {EnquiriesApiListCustomerEnquiriesRequest} requestParameters Request parameters.
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ listCustomerEnquiries(requestParameters, options) {
676
+ return localVarFp.listCustomerEnquiries(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
677
+ },
678
+ /**
679
+ * Lists all customer enquiry Logs
680
+ * @summary List customer enquiry Logs
681
+ * @param {EnquiriesApiListCustomerEnquiryLogsRequest} requestParameters Request parameters.
682
+ * @param {*} [options] Override http request option.
683
+ * @throws {RequiredError}
684
+ */
685
+ listCustomerEnquiryLogs(requestParameters, options) {
686
+ return localVarFp.listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(axios, basePath));
687
+ },
688
+ };
689
+ };
690
+ /**
691
+ * EnquiriesApi - object-oriented interface
692
+ * @export
693
+ * @class EnquiriesApi
694
+ * @extends {BaseAPI}
695
+ */
696
+ export class EnquiriesApi extends BaseAPI {
697
+ /**
698
+ * Get a customer enquiry
699
+ * @summary Get customer enquiry
700
+ * @param {EnquiriesApiGetCustomerEnquiryRequest} requestParameters Request parameters.
701
+ * @param {*} [options] Override http request option.
702
+ * @throws {RequiredError}
703
+ * @memberof EnquiriesApi
704
+ */
705
+ getCustomerEnquiry(requestParameters, options) {
706
+ return EnquiriesApiFp(this.configuration).getCustomerEnquiry(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
707
+ }
708
+ /**
709
+ * List customer enquiries
710
+ * @summary List customer enquiries
711
+ * @param {EnquiriesApiListCustomerEnquiriesRequest} requestParameters Request parameters.
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ * @memberof EnquiriesApi
715
+ */
716
+ listCustomerEnquiries(requestParameters, options) {
717
+ return EnquiriesApiFp(this.configuration).listCustomerEnquiries(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
718
+ }
719
+ /**
720
+ * Lists all customer enquiry Logs
721
+ * @summary List customer enquiry Logs
722
+ * @param {EnquiriesApiListCustomerEnquiryLogsRequest} requestParameters Request parameters.
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ * @memberof EnquiriesApi
726
+ */
727
+ listCustomerEnquiryLogs(requestParameters, options) {
728
+ return EnquiriesApiFp(this.configuration).listCustomerEnquiryLogs(requestParameters.project, requestParameters.platformId, requestParameters.enquiryId, options).then((request) => request(this.axios, this.basePath));
729
+ }
730
+ }
419
731
  /**
420
732
  * OrdersApi - axios parameter creator
421
733
  * @export
@@ -1939,3 +2251,199 @@ export class ReviewsApi extends BaseAPI {
1939
2251
  return ReviewsApiFp(this.configuration).moderateReview(requestParameters.project, requestParameters.platformId, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(this.axios, this.basePath));
1940
2252
  }
1941
2253
  }
2254
+ /**
2255
+ * TermsApi - axios parameter creator
2256
+ * @export
2257
+ */
2258
+ export const TermsApiAxiosParamCreator = function (configuration) {
2259
+ return {
2260
+ /**
2261
+ *
2262
+ * @summary Get the platform\'s terms
2263
+ * @param {string} project Project unique identifier
2264
+ * @param {string} platformId The platform identifier
2265
+ * @param {*} [options] Override http request option.
2266
+ * @throws {RequiredError}
2267
+ */
2268
+ getTerms: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
2269
+ // verify required parameter 'project' is not null or undefined
2270
+ assertParamExists('getTerms', 'project', project);
2271
+ // verify required parameter 'platformId' is not null or undefined
2272
+ assertParamExists('getTerms', 'platformId', platformId);
2273
+ const localVarPath = `/v1/platform/{platformId}/terms`
2274
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
2275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2276
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2277
+ let baseOptions;
2278
+ if (configuration) {
2279
+ baseOptions = configuration.baseOptions;
2280
+ }
2281
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2282
+ const localVarHeaderParameter = {};
2283
+ const localVarQueryParameter = {};
2284
+ // authentication session-oauth required
2285
+ // oauth required
2286
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2287
+ // authentication api-key required
2288
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2289
+ if (project !== undefined) {
2290
+ localVarQueryParameter['project'] = project;
2291
+ }
2292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2294
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2295
+ return {
2296
+ url: toPathString(localVarUrlObj),
2297
+ options: localVarRequestOptions,
2298
+ };
2299
+ }),
2300
+ /**
2301
+ *
2302
+ * @summary Save the platform\'s terms
2303
+ * @param {string} project Project unique identifier
2304
+ * @param {string} platformId The platform identifier
2305
+ * @param {SaveTermsRequest} saveTermsRequest Save terms
2306
+ * @param {*} [options] Override http request option.
2307
+ * @throws {RequiredError}
2308
+ */
2309
+ saveTerms: (project_1, platformId_1, saveTermsRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, saveTermsRequest_1, ...args_1], void 0, function* (project, platformId, saveTermsRequest, options = {}) {
2310
+ // verify required parameter 'project' is not null or undefined
2311
+ assertParamExists('saveTerms', 'project', project);
2312
+ // verify required parameter 'platformId' is not null or undefined
2313
+ assertParamExists('saveTerms', 'platformId', platformId);
2314
+ // verify required parameter 'saveTermsRequest' is not null or undefined
2315
+ assertParamExists('saveTerms', 'saveTermsRequest', saveTermsRequest);
2316
+ const localVarPath = `/v1/platform/{platformId}/terms`
2317
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
2318
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2319
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2320
+ let baseOptions;
2321
+ if (configuration) {
2322
+ baseOptions = configuration.baseOptions;
2323
+ }
2324
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2325
+ const localVarHeaderParameter = {};
2326
+ const localVarQueryParameter = {};
2327
+ // authentication session-oauth required
2328
+ // oauth required
2329
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2330
+ // authentication api-key required
2331
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2332
+ if (project !== undefined) {
2333
+ localVarQueryParameter['project'] = project;
2334
+ }
2335
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2336
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2338
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2339
+ localVarRequestOptions.data = serializeDataIfNeeded(saveTermsRequest, localVarRequestOptions, configuration);
2340
+ return {
2341
+ url: toPathString(localVarUrlObj),
2342
+ options: localVarRequestOptions,
2343
+ };
2344
+ }),
2345
+ };
2346
+ };
2347
+ /**
2348
+ * TermsApi - functional programming interface
2349
+ * @export
2350
+ */
2351
+ export const TermsApiFp = function (configuration) {
2352
+ const localVarAxiosParamCreator = TermsApiAxiosParamCreator(configuration);
2353
+ return {
2354
+ /**
2355
+ *
2356
+ * @summary Get the platform\'s terms
2357
+ * @param {string} project Project unique identifier
2358
+ * @param {string} platformId The platform identifier
2359
+ * @param {*} [options] Override http request option.
2360
+ * @throws {RequiredError}
2361
+ */
2362
+ getTerms(project, platformId, options) {
2363
+ return __awaiter(this, void 0, void 0, function* () {
2364
+ var _a, _b, _c;
2365
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTerms(project, platformId, options);
2366
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2367
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TermsApi.getTerms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2368
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2369
+ });
2370
+ },
2371
+ /**
2372
+ *
2373
+ * @summary Save the platform\'s terms
2374
+ * @param {string} project Project unique identifier
2375
+ * @param {string} platformId The platform identifier
2376
+ * @param {SaveTermsRequest} saveTermsRequest Save terms
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ */
2380
+ saveTerms(project, platformId, saveTermsRequest, options) {
2381
+ return __awaiter(this, void 0, void 0, function* () {
2382
+ var _a, _b, _c;
2383
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.saveTerms(project, platformId, saveTermsRequest, options);
2384
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2385
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TermsApi.saveTerms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2386
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2387
+ });
2388
+ },
2389
+ };
2390
+ };
2391
+ /**
2392
+ * TermsApi - factory interface
2393
+ * @export
2394
+ */
2395
+ export const TermsApiFactory = function (configuration, basePath, axios) {
2396
+ const localVarFp = TermsApiFp(configuration);
2397
+ return {
2398
+ /**
2399
+ *
2400
+ * @summary Get the platform\'s terms
2401
+ * @param {TermsApiGetTermsRequest} requestParameters Request parameters.
2402
+ * @param {*} [options] Override http request option.
2403
+ * @throws {RequiredError}
2404
+ */
2405
+ getTerms(requestParameters, options) {
2406
+ return localVarFp.getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
2407
+ },
2408
+ /**
2409
+ *
2410
+ * @summary Save the platform\'s terms
2411
+ * @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
2412
+ * @param {*} [options] Override http request option.
2413
+ * @throws {RequiredError}
2414
+ */
2415
+ saveTerms(requestParameters, options) {
2416
+ return localVarFp.saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(axios, basePath));
2417
+ },
2418
+ };
2419
+ };
2420
+ /**
2421
+ * TermsApi - object-oriented interface
2422
+ * @export
2423
+ * @class TermsApi
2424
+ * @extends {BaseAPI}
2425
+ */
2426
+ export class TermsApi extends BaseAPI {
2427
+ /**
2428
+ *
2429
+ * @summary Get the platform\'s terms
2430
+ * @param {TermsApiGetTermsRequest} requestParameters Request parameters.
2431
+ * @param {*} [options] Override http request option.
2432
+ * @throws {RequiredError}
2433
+ * @memberof TermsApi
2434
+ */
2435
+ getTerms(requestParameters, options) {
2436
+ return TermsApiFp(this.configuration).getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
2437
+ }
2438
+ /**
2439
+ *
2440
+ * @summary Save the platform\'s terms
2441
+ * @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
2442
+ * @param {*} [options] Override http request option.
2443
+ * @throws {RequiredError}
2444
+ * @memberof TermsApi
2445
+ */
2446
+ saveTerms(requestParameters, options) {
2447
+ return TermsApiFp(this.configuration).saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(this.axios, this.basePath));
2448
+ }
2449
+ }
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.19.0
5
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.19.0
7
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.19.0
5
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.19.0
7
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.19.0
5
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.19.0
7
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.19.0
5
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.19.0
7
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.19.0
5
+ * The version of the OpenAPI document: 0.21.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
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.19.0
8
+ * The version of the OpenAPI document: 0.21.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Client.md ADDED
@@ -0,0 +1,24 @@
1
+ # Client
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **ref** | **string** | API reference for the client | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { Client } from '@teemill/platform';
16
+
17
+ const instance: Client = {
18
+ id,
19
+ ref,
20
+ name,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)