@teemill/platform 0.20.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/README.md +6 -2
- package/api.ts +338 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +217 -1
- package/dist/api.js +202 -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 +217 -1
- package/dist/esm/api.js +197 -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/docs/SaveTermsRequest.md +24 -0
- package/docs/Terms.md +32 -0
- package/docs/TermsApi.md +127 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.
|
|
1
|
+
## @teemill/platform@0.21.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/platform@0.
|
|
39
|
+
npm install @teemill/platform@0.21.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -73,6 +73,8 @@ Class | Method | HTTP request | Description
|
|
|
73
73
|
*ReviewsApi* | [**getReview**](docs/ReviewsApi.md#getreview) | **GET** /v1/platform/{platformId}/reviews/{reviewId} | Get review
|
|
74
74
|
*ReviewsApi* | [**listReviews**](docs/ReviewsApi.md#listreviews) | **GET** /v1/platform/{platformId}/reviews | List reviews
|
|
75
75
|
*ReviewsApi* | [**moderateReview**](docs/ReviewsApi.md#moderatereview) | **PATCH** /v1/platform/{platformId}/reviews/{reviewId}/moderate | Moderate review
|
|
76
|
+
*TermsApi* | [**getTerms**](docs/TermsApi.md#getterms) | **GET** /v1/platform/{platformId}/terms | Get the platform\'s terms
|
|
77
|
+
*TermsApi* | [**saveTerms**](docs/TermsApi.md#saveterms) | **POST** /v1/platform/{platformId}/terms | Save the platform\'s terms
|
|
76
78
|
|
|
77
79
|
|
|
78
80
|
### Documentation For Models
|
|
@@ -121,9 +123,11 @@ Class | Method | HTTP request | Description
|
|
|
121
123
|
- [ReviewReply](docs/ReviewReply.md)
|
|
122
124
|
- [ReviewReplyAuthor](docs/ReviewReplyAuthor.md)
|
|
123
125
|
- [ReviewsResponse](docs/ReviewsResponse.md)
|
|
126
|
+
- [SaveTermsRequest](docs/SaveTermsRequest.md)
|
|
124
127
|
- [ShippingMethod](docs/ShippingMethod.md)
|
|
125
128
|
- [Statistics](docs/Statistics.md)
|
|
126
129
|
- [StatusHistoryItem](docs/StatusHistoryItem.md)
|
|
130
|
+
- [Terms](docs/Terms.md)
|
|
127
131
|
- [UpdateFulfillmentRequest](docs/UpdateFulfillmentRequest.md)
|
|
128
132
|
- [UpdatePlatformRequest](docs/UpdatePlatformRequest.md)
|
|
129
133
|
- [ValidationError](docs/ValidationError.md)
|
package/api.ts
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.
|
|
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).
|
|
@@ -1374,6 +1374,31 @@ export interface ReviewsResponse {
|
|
|
1374
1374
|
*/
|
|
1375
1375
|
'nextPageToken'?: number | null;
|
|
1376
1376
|
}
|
|
1377
|
+
/**
|
|
1378
|
+
*
|
|
1379
|
+
* @export
|
|
1380
|
+
* @interface SaveTermsRequest
|
|
1381
|
+
*/
|
|
1382
|
+
export interface SaveTermsRequest {
|
|
1383
|
+
/**
|
|
1384
|
+
*
|
|
1385
|
+
* @type {string}
|
|
1386
|
+
* @memberof SaveTermsRequest
|
|
1387
|
+
*/
|
|
1388
|
+
'title': string;
|
|
1389
|
+
/**
|
|
1390
|
+
*
|
|
1391
|
+
* @type {string}
|
|
1392
|
+
* @memberof SaveTermsRequest
|
|
1393
|
+
*/
|
|
1394
|
+
'content': string;
|
|
1395
|
+
/**
|
|
1396
|
+
*
|
|
1397
|
+
* @type {boolean}
|
|
1398
|
+
* @memberof SaveTermsRequest
|
|
1399
|
+
*/
|
|
1400
|
+
'enabled': boolean;
|
|
1401
|
+
}
|
|
1377
1402
|
/**
|
|
1378
1403
|
*
|
|
1379
1404
|
* @export
|
|
@@ -1475,6 +1500,55 @@ export interface StatusHistoryItem {
|
|
|
1475
1500
|
}
|
|
1476
1501
|
|
|
1477
1502
|
|
|
1503
|
+
/**
|
|
1504
|
+
*
|
|
1505
|
+
* @export
|
|
1506
|
+
* @interface Terms
|
|
1507
|
+
*/
|
|
1508
|
+
export interface Terms {
|
|
1509
|
+
/**
|
|
1510
|
+
*
|
|
1511
|
+
* @type {string}
|
|
1512
|
+
* @memberof Terms
|
|
1513
|
+
*/
|
|
1514
|
+
'id': string;
|
|
1515
|
+
/**
|
|
1516
|
+
*
|
|
1517
|
+
* @type {string}
|
|
1518
|
+
* @memberof Terms
|
|
1519
|
+
*/
|
|
1520
|
+
'title': string;
|
|
1521
|
+
/**
|
|
1522
|
+
*
|
|
1523
|
+
* @type {string}
|
|
1524
|
+
* @memberof Terms
|
|
1525
|
+
*/
|
|
1526
|
+
'content': string;
|
|
1527
|
+
/**
|
|
1528
|
+
*
|
|
1529
|
+
* @type {number}
|
|
1530
|
+
* @memberof Terms
|
|
1531
|
+
*/
|
|
1532
|
+
'version': number;
|
|
1533
|
+
/**
|
|
1534
|
+
*
|
|
1535
|
+
* @type {boolean}
|
|
1536
|
+
* @memberof Terms
|
|
1537
|
+
*/
|
|
1538
|
+
'enabled': boolean;
|
|
1539
|
+
/**
|
|
1540
|
+
*
|
|
1541
|
+
* @type {string}
|
|
1542
|
+
* @memberof Terms
|
|
1543
|
+
*/
|
|
1544
|
+
'createdAt': string;
|
|
1545
|
+
/**
|
|
1546
|
+
*
|
|
1547
|
+
* @type {string}
|
|
1548
|
+
* @memberof Terms
|
|
1549
|
+
*/
|
|
1550
|
+
'updatedAt': string;
|
|
1551
|
+
}
|
|
1478
1552
|
/**
|
|
1479
1553
|
*
|
|
1480
1554
|
* @export
|
|
@@ -4736,3 +4810,266 @@ export class ReviewsApi extends BaseAPI {
|
|
|
4736
4810
|
|
|
4737
4811
|
|
|
4738
4812
|
|
|
4813
|
+
/**
|
|
4814
|
+
* TermsApi - axios parameter creator
|
|
4815
|
+
* @export
|
|
4816
|
+
*/
|
|
4817
|
+
export const TermsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4818
|
+
return {
|
|
4819
|
+
/**
|
|
4820
|
+
*
|
|
4821
|
+
* @summary Get the platform\'s terms
|
|
4822
|
+
* @param {string} project Project unique identifier
|
|
4823
|
+
* @param {string} platformId The platform identifier
|
|
4824
|
+
* @param {*} [options] Override http request option.
|
|
4825
|
+
* @throws {RequiredError}
|
|
4826
|
+
*/
|
|
4827
|
+
getTerms: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4828
|
+
// verify required parameter 'project' is not null or undefined
|
|
4829
|
+
assertParamExists('getTerms', 'project', project)
|
|
4830
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
4831
|
+
assertParamExists('getTerms', 'platformId', platformId)
|
|
4832
|
+
const localVarPath = `/v1/platform/{platformId}/terms`
|
|
4833
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
4834
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4835
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4836
|
+
let baseOptions;
|
|
4837
|
+
if (configuration) {
|
|
4838
|
+
baseOptions = configuration.baseOptions;
|
|
4839
|
+
}
|
|
4840
|
+
|
|
4841
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4842
|
+
const localVarHeaderParameter = {} as any;
|
|
4843
|
+
const localVarQueryParameter = {} as any;
|
|
4844
|
+
|
|
4845
|
+
// authentication session-oauth required
|
|
4846
|
+
// oauth required
|
|
4847
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4848
|
+
|
|
4849
|
+
// authentication api-key required
|
|
4850
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4851
|
+
|
|
4852
|
+
if (project !== undefined) {
|
|
4853
|
+
localVarQueryParameter['project'] = project;
|
|
4854
|
+
}
|
|
4855
|
+
|
|
4856
|
+
|
|
4857
|
+
|
|
4858
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4859
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4860
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4861
|
+
|
|
4862
|
+
return {
|
|
4863
|
+
url: toPathString(localVarUrlObj),
|
|
4864
|
+
options: localVarRequestOptions,
|
|
4865
|
+
};
|
|
4866
|
+
},
|
|
4867
|
+
/**
|
|
4868
|
+
*
|
|
4869
|
+
* @summary Save the platform\'s terms
|
|
4870
|
+
* @param {string} project Project unique identifier
|
|
4871
|
+
* @param {string} platformId The platform identifier
|
|
4872
|
+
* @param {SaveTermsRequest} saveTermsRequest Save terms
|
|
4873
|
+
* @param {*} [options] Override http request option.
|
|
4874
|
+
* @throws {RequiredError}
|
|
4875
|
+
*/
|
|
4876
|
+
saveTerms: async (project: string, platformId: string, saveTermsRequest: SaveTermsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4877
|
+
// verify required parameter 'project' is not null or undefined
|
|
4878
|
+
assertParamExists('saveTerms', 'project', project)
|
|
4879
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
4880
|
+
assertParamExists('saveTerms', 'platformId', platformId)
|
|
4881
|
+
// verify required parameter 'saveTermsRequest' is not null or undefined
|
|
4882
|
+
assertParamExists('saveTerms', 'saveTermsRequest', saveTermsRequest)
|
|
4883
|
+
const localVarPath = `/v1/platform/{platformId}/terms`
|
|
4884
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
4885
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4886
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4887
|
+
let baseOptions;
|
|
4888
|
+
if (configuration) {
|
|
4889
|
+
baseOptions = configuration.baseOptions;
|
|
4890
|
+
}
|
|
4891
|
+
|
|
4892
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4893
|
+
const localVarHeaderParameter = {} as any;
|
|
4894
|
+
const localVarQueryParameter = {} as any;
|
|
4895
|
+
|
|
4896
|
+
// authentication session-oauth required
|
|
4897
|
+
// oauth required
|
|
4898
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4899
|
+
|
|
4900
|
+
// authentication api-key required
|
|
4901
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4902
|
+
|
|
4903
|
+
if (project !== undefined) {
|
|
4904
|
+
localVarQueryParameter['project'] = project;
|
|
4905
|
+
}
|
|
4906
|
+
|
|
4907
|
+
|
|
4908
|
+
|
|
4909
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4910
|
+
|
|
4911
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4912
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4913
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4914
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveTermsRequest, localVarRequestOptions, configuration)
|
|
4915
|
+
|
|
4916
|
+
return {
|
|
4917
|
+
url: toPathString(localVarUrlObj),
|
|
4918
|
+
options: localVarRequestOptions,
|
|
4919
|
+
};
|
|
4920
|
+
},
|
|
4921
|
+
}
|
|
4922
|
+
};
|
|
4923
|
+
|
|
4924
|
+
/**
|
|
4925
|
+
* TermsApi - functional programming interface
|
|
4926
|
+
* @export
|
|
4927
|
+
*/
|
|
4928
|
+
export const TermsApiFp = function(configuration?: Configuration) {
|
|
4929
|
+
const localVarAxiosParamCreator = TermsApiAxiosParamCreator(configuration)
|
|
4930
|
+
return {
|
|
4931
|
+
/**
|
|
4932
|
+
*
|
|
4933
|
+
* @summary Get the platform\'s terms
|
|
4934
|
+
* @param {string} project Project unique identifier
|
|
4935
|
+
* @param {string} platformId The platform identifier
|
|
4936
|
+
* @param {*} [options] Override http request option.
|
|
4937
|
+
* @throws {RequiredError}
|
|
4938
|
+
*/
|
|
4939
|
+
async getTerms(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Terms>> {
|
|
4940
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTerms(project, platformId, options);
|
|
4941
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4942
|
+
const localVarOperationServerBasePath = operationServerMap['TermsApi.getTerms']?.[localVarOperationServerIndex]?.url;
|
|
4943
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4944
|
+
},
|
|
4945
|
+
/**
|
|
4946
|
+
*
|
|
4947
|
+
* @summary Save the platform\'s terms
|
|
4948
|
+
* @param {string} project Project unique identifier
|
|
4949
|
+
* @param {string} platformId The platform identifier
|
|
4950
|
+
* @param {SaveTermsRequest} saveTermsRequest Save terms
|
|
4951
|
+
* @param {*} [options] Override http request option.
|
|
4952
|
+
* @throws {RequiredError}
|
|
4953
|
+
*/
|
|
4954
|
+
async saveTerms(project: string, platformId: string, saveTermsRequest: SaveTermsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Terms>> {
|
|
4955
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.saveTerms(project, platformId, saveTermsRequest, options);
|
|
4956
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4957
|
+
const localVarOperationServerBasePath = operationServerMap['TermsApi.saveTerms']?.[localVarOperationServerIndex]?.url;
|
|
4958
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4959
|
+
},
|
|
4960
|
+
}
|
|
4961
|
+
};
|
|
4962
|
+
|
|
4963
|
+
/**
|
|
4964
|
+
* TermsApi - factory interface
|
|
4965
|
+
* @export
|
|
4966
|
+
*/
|
|
4967
|
+
export const TermsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4968
|
+
const localVarFp = TermsApiFp(configuration)
|
|
4969
|
+
return {
|
|
4970
|
+
/**
|
|
4971
|
+
*
|
|
4972
|
+
* @summary Get the platform\'s terms
|
|
4973
|
+
* @param {TermsApiGetTermsRequest} requestParameters Request parameters.
|
|
4974
|
+
* @param {*} [options] Override http request option.
|
|
4975
|
+
* @throws {RequiredError}
|
|
4976
|
+
*/
|
|
4977
|
+
getTerms(requestParameters: TermsApiGetTermsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Terms> {
|
|
4978
|
+
return localVarFp.getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
4979
|
+
},
|
|
4980
|
+
/**
|
|
4981
|
+
*
|
|
4982
|
+
* @summary Save the platform\'s terms
|
|
4983
|
+
* @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
|
|
4984
|
+
* @param {*} [options] Override http request option.
|
|
4985
|
+
* @throws {RequiredError}
|
|
4986
|
+
*/
|
|
4987
|
+
saveTerms(requestParameters: TermsApiSaveTermsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Terms> {
|
|
4988
|
+
return localVarFp.saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(axios, basePath));
|
|
4989
|
+
},
|
|
4990
|
+
};
|
|
4991
|
+
};
|
|
4992
|
+
|
|
4993
|
+
/**
|
|
4994
|
+
* Request parameters for getTerms operation in TermsApi.
|
|
4995
|
+
* @export
|
|
4996
|
+
* @interface TermsApiGetTermsRequest
|
|
4997
|
+
*/
|
|
4998
|
+
export interface TermsApiGetTermsRequest {
|
|
4999
|
+
/**
|
|
5000
|
+
* Project unique identifier
|
|
5001
|
+
* @type {string}
|
|
5002
|
+
* @memberof TermsApiGetTerms
|
|
5003
|
+
*/
|
|
5004
|
+
readonly project: string
|
|
5005
|
+
|
|
5006
|
+
/**
|
|
5007
|
+
* The platform identifier
|
|
5008
|
+
* @type {string}
|
|
5009
|
+
* @memberof TermsApiGetTerms
|
|
5010
|
+
*/
|
|
5011
|
+
readonly platformId: string
|
|
5012
|
+
}
|
|
5013
|
+
|
|
5014
|
+
/**
|
|
5015
|
+
* Request parameters for saveTerms operation in TermsApi.
|
|
5016
|
+
* @export
|
|
5017
|
+
* @interface TermsApiSaveTermsRequest
|
|
5018
|
+
*/
|
|
5019
|
+
export interface TermsApiSaveTermsRequest {
|
|
5020
|
+
/**
|
|
5021
|
+
* Project unique identifier
|
|
5022
|
+
* @type {string}
|
|
5023
|
+
* @memberof TermsApiSaveTerms
|
|
5024
|
+
*/
|
|
5025
|
+
readonly project: string
|
|
5026
|
+
|
|
5027
|
+
/**
|
|
5028
|
+
* The platform identifier
|
|
5029
|
+
* @type {string}
|
|
5030
|
+
* @memberof TermsApiSaveTerms
|
|
5031
|
+
*/
|
|
5032
|
+
readonly platformId: string
|
|
5033
|
+
|
|
5034
|
+
/**
|
|
5035
|
+
* Save terms
|
|
5036
|
+
* @type {SaveTermsRequest}
|
|
5037
|
+
* @memberof TermsApiSaveTerms
|
|
5038
|
+
*/
|
|
5039
|
+
readonly saveTermsRequest: SaveTermsRequest
|
|
5040
|
+
}
|
|
5041
|
+
|
|
5042
|
+
/**
|
|
5043
|
+
* TermsApi - object-oriented interface
|
|
5044
|
+
* @export
|
|
5045
|
+
* @class TermsApi
|
|
5046
|
+
* @extends {BaseAPI}
|
|
5047
|
+
*/
|
|
5048
|
+
export class TermsApi extends BaseAPI {
|
|
5049
|
+
/**
|
|
5050
|
+
*
|
|
5051
|
+
* @summary Get the platform\'s terms
|
|
5052
|
+
* @param {TermsApiGetTermsRequest} requestParameters Request parameters.
|
|
5053
|
+
* @param {*} [options] Override http request option.
|
|
5054
|
+
* @throws {RequiredError}
|
|
5055
|
+
* @memberof TermsApi
|
|
5056
|
+
*/
|
|
5057
|
+
public getTerms(requestParameters: TermsApiGetTermsRequest, options?: RawAxiosRequestConfig) {
|
|
5058
|
+
return TermsApiFp(this.configuration).getTerms(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
5059
|
+
}
|
|
5060
|
+
|
|
5061
|
+
/**
|
|
5062
|
+
*
|
|
5063
|
+
* @summary Save the platform\'s terms
|
|
5064
|
+
* @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
|
|
5065
|
+
* @param {*} [options] Override http request option.
|
|
5066
|
+
* @throws {RequiredError}
|
|
5067
|
+
* @memberof TermsApi
|
|
5068
|
+
*/
|
|
5069
|
+
public saveTerms(requestParameters: TermsApiSaveTermsRequest, options?: RawAxiosRequestConfig) {
|
|
5070
|
+
return TermsApiFp(this.configuration).saveTerms(requestParameters.project, requestParameters.platformId, requestParameters.saveTermsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5071
|
+
}
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
|
|
5075
|
+
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.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.
|
|
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).
|
|
@@ -1349,6 +1349,31 @@ export interface ReviewsResponse {
|
|
|
1349
1349
|
*/
|
|
1350
1350
|
'nextPageToken'?: number | null;
|
|
1351
1351
|
}
|
|
1352
|
+
/**
|
|
1353
|
+
*
|
|
1354
|
+
* @export
|
|
1355
|
+
* @interface SaveTermsRequest
|
|
1356
|
+
*/
|
|
1357
|
+
export interface SaveTermsRequest {
|
|
1358
|
+
/**
|
|
1359
|
+
*
|
|
1360
|
+
* @type {string}
|
|
1361
|
+
* @memberof SaveTermsRequest
|
|
1362
|
+
*/
|
|
1363
|
+
'title': string;
|
|
1364
|
+
/**
|
|
1365
|
+
*
|
|
1366
|
+
* @type {string}
|
|
1367
|
+
* @memberof SaveTermsRequest
|
|
1368
|
+
*/
|
|
1369
|
+
'content': string;
|
|
1370
|
+
/**
|
|
1371
|
+
*
|
|
1372
|
+
* @type {boolean}
|
|
1373
|
+
* @memberof SaveTermsRequest
|
|
1374
|
+
*/
|
|
1375
|
+
'enabled': boolean;
|
|
1376
|
+
}
|
|
1352
1377
|
/**
|
|
1353
1378
|
*
|
|
1354
1379
|
* @export
|
|
@@ -1448,6 +1473,55 @@ export interface StatusHistoryItem {
|
|
|
1448
1473
|
*/
|
|
1449
1474
|
'createdAt'?: string;
|
|
1450
1475
|
}
|
|
1476
|
+
/**
|
|
1477
|
+
*
|
|
1478
|
+
* @export
|
|
1479
|
+
* @interface Terms
|
|
1480
|
+
*/
|
|
1481
|
+
export interface Terms {
|
|
1482
|
+
/**
|
|
1483
|
+
*
|
|
1484
|
+
* @type {string}
|
|
1485
|
+
* @memberof Terms
|
|
1486
|
+
*/
|
|
1487
|
+
'id': string;
|
|
1488
|
+
/**
|
|
1489
|
+
*
|
|
1490
|
+
* @type {string}
|
|
1491
|
+
* @memberof Terms
|
|
1492
|
+
*/
|
|
1493
|
+
'title': string;
|
|
1494
|
+
/**
|
|
1495
|
+
*
|
|
1496
|
+
* @type {string}
|
|
1497
|
+
* @memberof Terms
|
|
1498
|
+
*/
|
|
1499
|
+
'content': string;
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @type {number}
|
|
1503
|
+
* @memberof Terms
|
|
1504
|
+
*/
|
|
1505
|
+
'version': number;
|
|
1506
|
+
/**
|
|
1507
|
+
*
|
|
1508
|
+
* @type {boolean}
|
|
1509
|
+
* @memberof Terms
|
|
1510
|
+
*/
|
|
1511
|
+
'enabled': boolean;
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* @type {string}
|
|
1515
|
+
* @memberof Terms
|
|
1516
|
+
*/
|
|
1517
|
+
'createdAt': string;
|
|
1518
|
+
/**
|
|
1519
|
+
*
|
|
1520
|
+
* @type {string}
|
|
1521
|
+
* @memberof Terms
|
|
1522
|
+
*/
|
|
1523
|
+
'updatedAt': string;
|
|
1524
|
+
}
|
|
1451
1525
|
/**
|
|
1452
1526
|
*
|
|
1453
1527
|
* @export
|
|
@@ -3269,3 +3343,145 @@ export declare class ReviewsApi extends BaseAPI {
|
|
|
3269
3343
|
*/
|
|
3270
3344
|
moderateReview(requestParameters: ReviewsApiModerateReviewRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Review, any>>;
|
|
3271
3345
|
}
|
|
3346
|
+
/**
|
|
3347
|
+
* TermsApi - axios parameter creator
|
|
3348
|
+
* @export
|
|
3349
|
+
*/
|
|
3350
|
+
export declare const TermsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3351
|
+
/**
|
|
3352
|
+
*
|
|
3353
|
+
* @summary Get the platform\'s terms
|
|
3354
|
+
* @param {string} project Project unique identifier
|
|
3355
|
+
* @param {string} platformId The platform identifier
|
|
3356
|
+
* @param {*} [options] Override http request option.
|
|
3357
|
+
* @throws {RequiredError}
|
|
3358
|
+
*/
|
|
3359
|
+
getTerms: (project: string, platformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3360
|
+
/**
|
|
3361
|
+
*
|
|
3362
|
+
* @summary Save the platform\'s terms
|
|
3363
|
+
* @param {string} project Project unique identifier
|
|
3364
|
+
* @param {string} platformId The platform identifier
|
|
3365
|
+
* @param {SaveTermsRequest} saveTermsRequest Save terms
|
|
3366
|
+
* @param {*} [options] Override http request option.
|
|
3367
|
+
* @throws {RequiredError}
|
|
3368
|
+
*/
|
|
3369
|
+
saveTerms: (project: string, platformId: string, saveTermsRequest: SaveTermsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3370
|
+
};
|
|
3371
|
+
/**
|
|
3372
|
+
* TermsApi - functional programming interface
|
|
3373
|
+
* @export
|
|
3374
|
+
*/
|
|
3375
|
+
export declare const TermsApiFp: (configuration?: Configuration) => {
|
|
3376
|
+
/**
|
|
3377
|
+
*
|
|
3378
|
+
* @summary Get the platform\'s terms
|
|
3379
|
+
* @param {string} project Project unique identifier
|
|
3380
|
+
* @param {string} platformId The platform identifier
|
|
3381
|
+
* @param {*} [options] Override http request option.
|
|
3382
|
+
* @throws {RequiredError}
|
|
3383
|
+
*/
|
|
3384
|
+
getTerms(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Terms>>;
|
|
3385
|
+
/**
|
|
3386
|
+
*
|
|
3387
|
+
* @summary Save the platform\'s terms
|
|
3388
|
+
* @param {string} project Project unique identifier
|
|
3389
|
+
* @param {string} platformId The platform identifier
|
|
3390
|
+
* @param {SaveTermsRequest} saveTermsRequest Save terms
|
|
3391
|
+
* @param {*} [options] Override http request option.
|
|
3392
|
+
* @throws {RequiredError}
|
|
3393
|
+
*/
|
|
3394
|
+
saveTerms(project: string, platformId: string, saveTermsRequest: SaveTermsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Terms>>;
|
|
3395
|
+
};
|
|
3396
|
+
/**
|
|
3397
|
+
* TermsApi - factory interface
|
|
3398
|
+
* @export
|
|
3399
|
+
*/
|
|
3400
|
+
export declare const TermsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3401
|
+
/**
|
|
3402
|
+
*
|
|
3403
|
+
* @summary Get the platform\'s terms
|
|
3404
|
+
* @param {TermsApiGetTermsRequest} requestParameters Request parameters.
|
|
3405
|
+
* @param {*} [options] Override http request option.
|
|
3406
|
+
* @throws {RequiredError}
|
|
3407
|
+
*/
|
|
3408
|
+
getTerms(requestParameters: TermsApiGetTermsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Terms>;
|
|
3409
|
+
/**
|
|
3410
|
+
*
|
|
3411
|
+
* @summary Save the platform\'s terms
|
|
3412
|
+
* @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
|
|
3413
|
+
* @param {*} [options] Override http request option.
|
|
3414
|
+
* @throws {RequiredError}
|
|
3415
|
+
*/
|
|
3416
|
+
saveTerms(requestParameters: TermsApiSaveTermsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Terms>;
|
|
3417
|
+
};
|
|
3418
|
+
/**
|
|
3419
|
+
* Request parameters for getTerms operation in TermsApi.
|
|
3420
|
+
* @export
|
|
3421
|
+
* @interface TermsApiGetTermsRequest
|
|
3422
|
+
*/
|
|
3423
|
+
export interface TermsApiGetTermsRequest {
|
|
3424
|
+
/**
|
|
3425
|
+
* Project unique identifier
|
|
3426
|
+
* @type {string}
|
|
3427
|
+
* @memberof TermsApiGetTerms
|
|
3428
|
+
*/
|
|
3429
|
+
readonly project: string;
|
|
3430
|
+
/**
|
|
3431
|
+
* The platform identifier
|
|
3432
|
+
* @type {string}
|
|
3433
|
+
* @memberof TermsApiGetTerms
|
|
3434
|
+
*/
|
|
3435
|
+
readonly platformId: string;
|
|
3436
|
+
}
|
|
3437
|
+
/**
|
|
3438
|
+
* Request parameters for saveTerms operation in TermsApi.
|
|
3439
|
+
* @export
|
|
3440
|
+
* @interface TermsApiSaveTermsRequest
|
|
3441
|
+
*/
|
|
3442
|
+
export interface TermsApiSaveTermsRequest {
|
|
3443
|
+
/**
|
|
3444
|
+
* Project unique identifier
|
|
3445
|
+
* @type {string}
|
|
3446
|
+
* @memberof TermsApiSaveTerms
|
|
3447
|
+
*/
|
|
3448
|
+
readonly project: string;
|
|
3449
|
+
/**
|
|
3450
|
+
* The platform identifier
|
|
3451
|
+
* @type {string}
|
|
3452
|
+
* @memberof TermsApiSaveTerms
|
|
3453
|
+
*/
|
|
3454
|
+
readonly platformId: string;
|
|
3455
|
+
/**
|
|
3456
|
+
* Save terms
|
|
3457
|
+
* @type {SaveTermsRequest}
|
|
3458
|
+
* @memberof TermsApiSaveTerms
|
|
3459
|
+
*/
|
|
3460
|
+
readonly saveTermsRequest: SaveTermsRequest;
|
|
3461
|
+
}
|
|
3462
|
+
/**
|
|
3463
|
+
* TermsApi - object-oriented interface
|
|
3464
|
+
* @export
|
|
3465
|
+
* @class TermsApi
|
|
3466
|
+
* @extends {BaseAPI}
|
|
3467
|
+
*/
|
|
3468
|
+
export declare class TermsApi extends BaseAPI {
|
|
3469
|
+
/**
|
|
3470
|
+
*
|
|
3471
|
+
* @summary Get the platform\'s terms
|
|
3472
|
+
* @param {TermsApiGetTermsRequest} requestParameters Request parameters.
|
|
3473
|
+
* @param {*} [options] Override http request option.
|
|
3474
|
+
* @throws {RequiredError}
|
|
3475
|
+
* @memberof TermsApi
|
|
3476
|
+
*/
|
|
3477
|
+
getTerms(requestParameters: TermsApiGetTermsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Terms, any>>;
|
|
3478
|
+
/**
|
|
3479
|
+
*
|
|
3480
|
+
* @summary Save the platform\'s terms
|
|
3481
|
+
* @param {TermsApiSaveTermsRequest} requestParameters Request parameters.
|
|
3482
|
+
* @param {*} [options] Override http request option.
|
|
3483
|
+
* @throws {RequiredError}
|
|
3484
|
+
* @memberof TermsApi
|
|
3485
|
+
*/
|
|
3486
|
+
saveTerms(requestParameters: TermsApiSaveTermsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Terms, any>>;
|
|
3487
|
+
}
|