@teemill/platform 0.11.0 → 0.11.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 +89 -11
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +53 -5
- package/dist/api.js +41 -11
- 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 +2 -2
- package/dist/esm/api.d.ts +53 -5
- package/dist/esm/api.js +41 -11
- 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 +2 -2
- 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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.11.
|
|
1
|
+
## @teemill/platform@0.11.1
|
|
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.11.
|
|
39
|
+
npm install @teemill/platform@0.11.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
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.11.
|
|
7
|
+
* The version of the OpenAPI document: 0.11.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1774,10 +1774,13 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1774
1774
|
* @summary List customers
|
|
1775
1775
|
* @param {string} project Project unique identifier
|
|
1776
1776
|
* @param {string} platformId The platform identifier
|
|
1777
|
+
* @param {number} [pageToken] Page reference token
|
|
1778
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1779
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1777
1780
|
* @param {*} [options] Override http request option.
|
|
1778
1781
|
* @throws {RequiredError}
|
|
1779
1782
|
*/
|
|
1780
|
-
listCustomers: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1783
|
+
listCustomers: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1781
1784
|
// verify required parameter 'project' is not null or undefined
|
|
1782
1785
|
assertParamExists('listCustomers', 'project', project)
|
|
1783
1786
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -1806,6 +1809,18 @@ export const CustomersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1806
1809
|
localVarQueryParameter['project'] = project;
|
|
1807
1810
|
}
|
|
1808
1811
|
|
|
1812
|
+
if (pageToken !== undefined) {
|
|
1813
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
if (pageSize !== undefined) {
|
|
1817
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
if (search !== undefined) {
|
|
1821
|
+
localVarQueryParameter['search'] = search;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1809
1824
|
|
|
1810
1825
|
|
|
1811
1826
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1861,11 +1876,14 @@ export const CustomersApiFp = function(configuration?: Configuration) {
|
|
|
1861
1876
|
* @summary List customers
|
|
1862
1877
|
* @param {string} project Project unique identifier
|
|
1863
1878
|
* @param {string} platformId The platform identifier
|
|
1879
|
+
* @param {number} [pageToken] Page reference token
|
|
1880
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1881
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1864
1882
|
* @param {*} [options] Override http request option.
|
|
1865
1883
|
* @throws {RequiredError}
|
|
1866
1884
|
*/
|
|
1867
|
-
async listCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
|
|
1868
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, options);
|
|
1885
|
+
async listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
|
|
1886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
1869
1887
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1870
1888
|
const localVarOperationServerBasePath = operationServerMap['CustomersApi.listCustomers']?.[localVarOperationServerIndex]?.url;
|
|
1871
1889
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1908,7 +1926,7 @@ export const CustomersApiFactory = function (configuration?: Configuration, base
|
|
|
1908
1926
|
* @throws {RequiredError}
|
|
1909
1927
|
*/
|
|
1910
1928
|
listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse> {
|
|
1911
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
1929
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1912
1930
|
},
|
|
1913
1931
|
};
|
|
1914
1932
|
};
|
|
@@ -1981,6 +1999,27 @@ export interface CustomersApiListCustomersRequest {
|
|
|
1981
1999
|
* @memberof CustomersApiListCustomers
|
|
1982
2000
|
*/
|
|
1983
2001
|
readonly platformId: string
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* Page reference token
|
|
2005
|
+
* @type {number}
|
|
2006
|
+
* @memberof CustomersApiListCustomers
|
|
2007
|
+
*/
|
|
2008
|
+
readonly pageToken?: number
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2012
|
+
* @type {number}
|
|
2013
|
+
* @memberof CustomersApiListCustomers
|
|
2014
|
+
*/
|
|
2015
|
+
readonly pageSize?: number
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* Search term to filter based on order reference, customer name and email
|
|
2019
|
+
* @type {string}
|
|
2020
|
+
* @memberof CustomersApiListCustomers
|
|
2021
|
+
*/
|
|
2022
|
+
readonly search?: string
|
|
1984
2023
|
}
|
|
1985
2024
|
|
|
1986
2025
|
/**
|
|
@@ -2023,7 +2062,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
2023
2062
|
* @memberof CustomersApi
|
|
2024
2063
|
*/
|
|
2025
2064
|
public listCustomers(requestParameters: CustomersApiListCustomersRequest, options?: RawAxiosRequestConfig) {
|
|
2026
|
-
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
2065
|
+
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
2027
2066
|
}
|
|
2028
2067
|
}
|
|
2029
2068
|
|
|
@@ -3254,10 +3293,13 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3254
3293
|
* @summary List customers
|
|
3255
3294
|
* @param {string} project Project unique identifier
|
|
3256
3295
|
* @param {string} platformId The platform identifier
|
|
3296
|
+
* @param {number} [pageToken] Page reference token
|
|
3297
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3298
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
3257
3299
|
* @param {*} [options] Override http request option.
|
|
3258
3300
|
* @throws {RequiredError}
|
|
3259
3301
|
*/
|
|
3260
|
-
listCustomers: async (project: string, platformId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3302
|
+
listCustomers: async (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3261
3303
|
// verify required parameter 'project' is not null or undefined
|
|
3262
3304
|
assertParamExists('listCustomers', 'project', project)
|
|
3263
3305
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -3286,6 +3328,18 @@ export const PlatformApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3286
3328
|
localVarQueryParameter['project'] = project;
|
|
3287
3329
|
}
|
|
3288
3330
|
|
|
3331
|
+
if (pageToken !== undefined) {
|
|
3332
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
if (pageSize !== undefined) {
|
|
3336
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
if (search !== undefined) {
|
|
3340
|
+
localVarQueryParameter['search'] = search;
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3289
3343
|
|
|
3290
3344
|
|
|
3291
3345
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3717,11 +3771,14 @@ export const PlatformApiFp = function(configuration?: Configuration) {
|
|
|
3717
3771
|
* @summary List customers
|
|
3718
3772
|
* @param {string} project Project unique identifier
|
|
3719
3773
|
* @param {string} platformId The platform identifier
|
|
3774
|
+
* @param {number} [pageToken] Page reference token
|
|
3775
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3776
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
3720
3777
|
* @param {*} [options] Override http request option.
|
|
3721
3778
|
* @throws {RequiredError}
|
|
3722
3779
|
*/
|
|
3723
|
-
async listCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
|
|
3724
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, options);
|
|
3780
|
+
async listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>> {
|
|
3781
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
3725
3782
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3726
3783
|
const localVarOperationServerBasePath = operationServerMap['PlatformApi.listCustomers']?.[localVarOperationServerIndex]?.url;
|
|
3727
3784
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3895,7 +3952,7 @@ export const PlatformApiFactory = function (configuration?: Configuration, baseP
|
|
|
3895
3952
|
* @throws {RequiredError}
|
|
3896
3953
|
*/
|
|
3897
3954
|
listCustomers(requestParameters: PlatformApiListCustomersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CustomersResponse> {
|
|
3898
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
3955
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
3899
3956
|
},
|
|
3900
3957
|
/**
|
|
3901
3958
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
@@ -4158,6 +4215,27 @@ export interface PlatformApiListCustomersRequest {
|
|
|
4158
4215
|
* @memberof PlatformApiListCustomers
|
|
4159
4216
|
*/
|
|
4160
4217
|
readonly platformId: string
|
|
4218
|
+
|
|
4219
|
+
/**
|
|
4220
|
+
* Page reference token
|
|
4221
|
+
* @type {number}
|
|
4222
|
+
* @memberof PlatformApiListCustomers
|
|
4223
|
+
*/
|
|
4224
|
+
readonly pageToken?: number
|
|
4225
|
+
|
|
4226
|
+
/**
|
|
4227
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
4228
|
+
* @type {number}
|
|
4229
|
+
* @memberof PlatformApiListCustomers
|
|
4230
|
+
*/
|
|
4231
|
+
readonly pageSize?: number
|
|
4232
|
+
|
|
4233
|
+
/**
|
|
4234
|
+
* Search term to filter based on order reference, customer name and email
|
|
4235
|
+
* @type {string}
|
|
4236
|
+
* @memberof PlatformApiListCustomers
|
|
4237
|
+
*/
|
|
4238
|
+
readonly search?: string
|
|
4161
4239
|
}
|
|
4162
4240
|
|
|
4163
4241
|
/**
|
|
@@ -4442,7 +4520,7 @@ export class PlatformApi extends BaseAPI {
|
|
|
4442
4520
|
* @memberof PlatformApi
|
|
4443
4521
|
*/
|
|
4444
4522
|
public listCustomers(requestParameters: PlatformApiListCustomersRequest, options?: RawAxiosRequestConfig) {
|
|
4445
|
-
return PlatformApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
4523
|
+
return PlatformApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
4446
4524
|
}
|
|
4447
4525
|
|
|
4448
4526
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.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.11.
|
|
7
|
+
* The version of the OpenAPI document: 0.11.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -92,7 +92,7 @@ export class Configuration {
|
|
|
92
92
|
this.baseOptions = {
|
|
93
93
|
headers: {
|
|
94
94
|
...param.baseOptions?.headers,
|
|
95
|
-
'User-Agent': "OpenAPI-Generator/0.11.
|
|
95
|
+
'User-Agent': "OpenAPI-Generator/0.11.1/typescript-axios"
|
|
96
96
|
},
|
|
97
97
|
...param.baseOptions
|
|
98
98
|
};
|
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.11.
|
|
5
|
+
* The version of the OpenAPI document: 0.11.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1665,10 +1665,13 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
1665
1665
|
* @summary List customers
|
|
1666
1666
|
* @param {string} project Project unique identifier
|
|
1667
1667
|
* @param {string} platformId The platform identifier
|
|
1668
|
+
* @param {number} [pageToken] Page reference token
|
|
1669
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1670
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1668
1671
|
* @param {*} [options] Override http request option.
|
|
1669
1672
|
* @throws {RequiredError}
|
|
1670
1673
|
*/
|
|
1671
|
-
listCustomers: (project: string, platformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1674
|
+
listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1672
1675
|
};
|
|
1673
1676
|
/**
|
|
1674
1677
|
* CustomersApi - functional programming interface
|
|
@@ -1699,10 +1702,13 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
1699
1702
|
* @summary List customers
|
|
1700
1703
|
* @param {string} project Project unique identifier
|
|
1701
1704
|
* @param {string} platformId The platform identifier
|
|
1705
|
+
* @param {number} [pageToken] Page reference token
|
|
1706
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1707
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1702
1708
|
* @param {*} [options] Override http request option.
|
|
1703
1709
|
* @throws {RequiredError}
|
|
1704
1710
|
*/
|
|
1705
|
-
listCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
1711
|
+
listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
1706
1712
|
};
|
|
1707
1713
|
/**
|
|
1708
1714
|
* CustomersApi - factory interface
|
|
@@ -1796,6 +1802,24 @@ export interface CustomersApiListCustomersRequest {
|
|
|
1796
1802
|
* @memberof CustomersApiListCustomers
|
|
1797
1803
|
*/
|
|
1798
1804
|
readonly platformId: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* Page reference token
|
|
1807
|
+
* @type {number}
|
|
1808
|
+
* @memberof CustomersApiListCustomers
|
|
1809
|
+
*/
|
|
1810
|
+
readonly pageToken?: number;
|
|
1811
|
+
/**
|
|
1812
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1813
|
+
* @type {number}
|
|
1814
|
+
* @memberof CustomersApiListCustomers
|
|
1815
|
+
*/
|
|
1816
|
+
readonly pageSize?: number;
|
|
1817
|
+
/**
|
|
1818
|
+
* Search term to filter based on order reference, customer name and email
|
|
1819
|
+
* @type {string}
|
|
1820
|
+
* @memberof CustomersApiListCustomers
|
|
1821
|
+
*/
|
|
1822
|
+
readonly search?: string;
|
|
1799
1823
|
}
|
|
1800
1824
|
/**
|
|
1801
1825
|
* CustomersApi - object-oriented interface
|
|
@@ -2365,10 +2389,13 @@ export declare const PlatformApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2365
2389
|
* @summary List customers
|
|
2366
2390
|
* @param {string} project Project unique identifier
|
|
2367
2391
|
* @param {string} platformId The platform identifier
|
|
2392
|
+
* @param {number} [pageToken] Page reference token
|
|
2393
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2394
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
2368
2395
|
* @param {*} [options] Override http request option.
|
|
2369
2396
|
* @throws {RequiredError}
|
|
2370
2397
|
*/
|
|
2371
|
-
listCustomers: (project: string, platformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2398
|
+
listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2372
2399
|
/**
|
|
2373
2400
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
2374
2401
|
* @summary List orders
|
|
@@ -2505,10 +2532,13 @@ export declare const PlatformApiFp: (configuration?: Configuration) => {
|
|
|
2505
2532
|
* @summary List customers
|
|
2506
2533
|
* @param {string} project Project unique identifier
|
|
2507
2534
|
* @param {string} platformId The platform identifier
|
|
2535
|
+
* @param {number} [pageToken] Page reference token
|
|
2536
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2537
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
2508
2538
|
* @param {*} [options] Override http request option.
|
|
2509
2539
|
* @throws {RequiredError}
|
|
2510
2540
|
*/
|
|
2511
|
-
listCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
2541
|
+
listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
2512
2542
|
/**
|
|
2513
2543
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
2514
2544
|
* @summary List orders
|
|
@@ -2863,6 +2893,24 @@ export interface PlatformApiListCustomersRequest {
|
|
|
2863
2893
|
* @memberof PlatformApiListCustomers
|
|
2864
2894
|
*/
|
|
2865
2895
|
readonly platformId: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* Page reference token
|
|
2898
|
+
* @type {number}
|
|
2899
|
+
* @memberof PlatformApiListCustomers
|
|
2900
|
+
*/
|
|
2901
|
+
readonly pageToken?: number;
|
|
2902
|
+
/**
|
|
2903
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2904
|
+
* @type {number}
|
|
2905
|
+
* @memberof PlatformApiListCustomers
|
|
2906
|
+
*/
|
|
2907
|
+
readonly pageSize?: number;
|
|
2908
|
+
/**
|
|
2909
|
+
* Search term to filter based on order reference, customer name and email
|
|
2910
|
+
* @type {string}
|
|
2911
|
+
* @memberof PlatformApiListCustomers
|
|
2912
|
+
*/
|
|
2913
|
+
readonly search?: string;
|
|
2866
2914
|
}
|
|
2867
2915
|
/**
|
|
2868
2916
|
* Request parameters for listOrders operation in PlatformApi.
|
package/dist/api.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.11.
|
|
8
|
+
* The version of the OpenAPI document: 0.11.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -164,10 +164,13 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
164
164
|
* @summary List customers
|
|
165
165
|
* @param {string} project Project unique identifier
|
|
166
166
|
* @param {string} platformId The platform identifier
|
|
167
|
+
* @param {number} [pageToken] Page reference token
|
|
168
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
169
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
167
170
|
* @param {*} [options] Override http request option.
|
|
168
171
|
* @throws {RequiredError}
|
|
169
172
|
*/
|
|
170
|
-
listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
173
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, options = {}) {
|
|
171
174
|
// verify required parameter 'project' is not null or undefined
|
|
172
175
|
(0, common_1.assertParamExists)('listCustomers', 'project', project);
|
|
173
176
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -191,6 +194,15 @@ const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
191
194
|
if (project !== undefined) {
|
|
192
195
|
localVarQueryParameter['project'] = project;
|
|
193
196
|
}
|
|
197
|
+
if (pageToken !== undefined) {
|
|
198
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
199
|
+
}
|
|
200
|
+
if (pageSize !== undefined) {
|
|
201
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
202
|
+
}
|
|
203
|
+
if (search !== undefined) {
|
|
204
|
+
localVarQueryParameter['search'] = search;
|
|
205
|
+
}
|
|
194
206
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
195
207
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
196
208
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -249,13 +261,16 @@ const CustomersApiFp = function (configuration) {
|
|
|
249
261
|
* @summary List customers
|
|
250
262
|
* @param {string} project Project unique identifier
|
|
251
263
|
* @param {string} platformId The platform identifier
|
|
264
|
+
* @param {number} [pageToken] Page reference token
|
|
265
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
266
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
252
267
|
* @param {*} [options] Override http request option.
|
|
253
268
|
* @throws {RequiredError}
|
|
254
269
|
*/
|
|
255
|
-
listCustomers(project, platformId, options) {
|
|
270
|
+
listCustomers(project, platformId, pageToken, pageSize, search, options) {
|
|
256
271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
257
272
|
var _a, _b, _c;
|
|
258
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
|
|
273
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
259
274
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
260
275
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
261
276
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -299,7 +314,7 @@ const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
299
314
|
* @throws {RequiredError}
|
|
300
315
|
*/
|
|
301
316
|
listCustomers(requestParameters, options) {
|
|
302
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
317
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
303
318
|
},
|
|
304
319
|
};
|
|
305
320
|
};
|
|
@@ -342,7 +357,7 @@ class CustomersApi extends base_1.BaseAPI {
|
|
|
342
357
|
* @memberof CustomersApi
|
|
343
358
|
*/
|
|
344
359
|
listCustomers(requestParameters, options) {
|
|
345
|
-
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
360
|
+
return (0, exports.CustomersApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
346
361
|
}
|
|
347
362
|
}
|
|
348
363
|
exports.CustomersApi = CustomersApi;
|
|
@@ -1249,10 +1264,13 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1249
1264
|
* @summary List customers
|
|
1250
1265
|
* @param {string} project Project unique identifier
|
|
1251
1266
|
* @param {string} platformId The platform identifier
|
|
1267
|
+
* @param {number} [pageToken] Page reference token
|
|
1268
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1269
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1252
1270
|
* @param {*} [options] Override http request option.
|
|
1253
1271
|
* @throws {RequiredError}
|
|
1254
1272
|
*/
|
|
1255
|
-
listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
1273
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, options = {}) {
|
|
1256
1274
|
// verify required parameter 'project' is not null or undefined
|
|
1257
1275
|
(0, common_1.assertParamExists)('listCustomers', 'project', project);
|
|
1258
1276
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -1276,6 +1294,15 @@ const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1276
1294
|
if (project !== undefined) {
|
|
1277
1295
|
localVarQueryParameter['project'] = project;
|
|
1278
1296
|
}
|
|
1297
|
+
if (pageToken !== undefined) {
|
|
1298
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
1299
|
+
}
|
|
1300
|
+
if (pageSize !== undefined) {
|
|
1301
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1302
|
+
}
|
|
1303
|
+
if (search !== undefined) {
|
|
1304
|
+
localVarQueryParameter['search'] = search;
|
|
1305
|
+
}
|
|
1279
1306
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1280
1307
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1281
1308
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1676,13 +1703,16 @@ const PlatformApiFp = function (configuration) {
|
|
|
1676
1703
|
* @summary List customers
|
|
1677
1704
|
* @param {string} project Project unique identifier
|
|
1678
1705
|
* @param {string} platformId The platform identifier
|
|
1706
|
+
* @param {number} [pageToken] Page reference token
|
|
1707
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1708
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1679
1709
|
* @param {*} [options] Override http request option.
|
|
1680
1710
|
* @throws {RequiredError}
|
|
1681
1711
|
*/
|
|
1682
|
-
listCustomers(project, platformId, options) {
|
|
1712
|
+
listCustomers(project, platformId, pageToken, pageSize, search, options) {
|
|
1683
1713
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1684
1714
|
var _a, _b, _c;
|
|
1685
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
|
|
1715
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
1686
1716
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1687
1717
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1688
1718
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1872,7 +1902,7 @@ const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
|
1872
1902
|
* @throws {RequiredError}
|
|
1873
1903
|
*/
|
|
1874
1904
|
listCustomers(requestParameters, options) {
|
|
1875
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
1905
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1876
1906
|
},
|
|
1877
1907
|
/**
|
|
1878
1908
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
@@ -2020,7 +2050,7 @@ class PlatformApi extends base_1.BaseAPI {
|
|
|
2020
2050
|
* @memberof PlatformApi
|
|
2021
2051
|
*/
|
|
2022
2052
|
listCustomers(requestParameters, options) {
|
|
2023
|
-
return (0, exports.PlatformApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
2053
|
+
return (0, exports.PlatformApiFp)(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
2024
2054
|
}
|
|
2025
2055
|
/**
|
|
2026
2056
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.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.11.
|
|
8
|
+
* The version of the OpenAPI document: 0.11.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,7 +23,7 @@ class Configuration {
|
|
|
23
23
|
this.accessToken = param.accessToken;
|
|
24
24
|
this.basePath = param.basePath;
|
|
25
25
|
this.serverIndex = param.serverIndex;
|
|
26
|
-
this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.11.
|
|
26
|
+
this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.11.1/typescript-axios" }) }, param.baseOptions);
|
|
27
27
|
this.formDataCtor = param.formDataCtor;
|
|
28
28
|
}
|
|
29
29
|
/**
|
package/dist/esm/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.11.
|
|
5
|
+
* The version of the OpenAPI document: 0.11.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1665,10 +1665,13 @@ export declare const CustomersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
1665
1665
|
* @summary List customers
|
|
1666
1666
|
* @param {string} project Project unique identifier
|
|
1667
1667
|
* @param {string} platformId The platform identifier
|
|
1668
|
+
* @param {number} [pageToken] Page reference token
|
|
1669
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1670
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1668
1671
|
* @param {*} [options] Override http request option.
|
|
1669
1672
|
* @throws {RequiredError}
|
|
1670
1673
|
*/
|
|
1671
|
-
listCustomers: (project: string, platformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1674
|
+
listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1672
1675
|
};
|
|
1673
1676
|
/**
|
|
1674
1677
|
* CustomersApi - functional programming interface
|
|
@@ -1699,10 +1702,13 @@ export declare const CustomersApiFp: (configuration?: Configuration) => {
|
|
|
1699
1702
|
* @summary List customers
|
|
1700
1703
|
* @param {string} project Project unique identifier
|
|
1701
1704
|
* @param {string} platformId The platform identifier
|
|
1705
|
+
* @param {number} [pageToken] Page reference token
|
|
1706
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1707
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1702
1708
|
* @param {*} [options] Override http request option.
|
|
1703
1709
|
* @throws {RequiredError}
|
|
1704
1710
|
*/
|
|
1705
|
-
listCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
1711
|
+
listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
1706
1712
|
};
|
|
1707
1713
|
/**
|
|
1708
1714
|
* CustomersApi - factory interface
|
|
@@ -1796,6 +1802,24 @@ export interface CustomersApiListCustomersRequest {
|
|
|
1796
1802
|
* @memberof CustomersApiListCustomers
|
|
1797
1803
|
*/
|
|
1798
1804
|
readonly platformId: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* Page reference token
|
|
1807
|
+
* @type {number}
|
|
1808
|
+
* @memberof CustomersApiListCustomers
|
|
1809
|
+
*/
|
|
1810
|
+
readonly pageToken?: number;
|
|
1811
|
+
/**
|
|
1812
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1813
|
+
* @type {number}
|
|
1814
|
+
* @memberof CustomersApiListCustomers
|
|
1815
|
+
*/
|
|
1816
|
+
readonly pageSize?: number;
|
|
1817
|
+
/**
|
|
1818
|
+
* Search term to filter based on order reference, customer name and email
|
|
1819
|
+
* @type {string}
|
|
1820
|
+
* @memberof CustomersApiListCustomers
|
|
1821
|
+
*/
|
|
1822
|
+
readonly search?: string;
|
|
1799
1823
|
}
|
|
1800
1824
|
/**
|
|
1801
1825
|
* CustomersApi - object-oriented interface
|
|
@@ -2365,10 +2389,13 @@ export declare const PlatformApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2365
2389
|
* @summary List customers
|
|
2366
2390
|
* @param {string} project Project unique identifier
|
|
2367
2391
|
* @param {string} platformId The platform identifier
|
|
2392
|
+
* @param {number} [pageToken] Page reference token
|
|
2393
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2394
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
2368
2395
|
* @param {*} [options] Override http request option.
|
|
2369
2396
|
* @throws {RequiredError}
|
|
2370
2397
|
*/
|
|
2371
|
-
listCustomers: (project: string, platformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2398
|
+
listCustomers: (project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2372
2399
|
/**
|
|
2373
2400
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
2374
2401
|
* @summary List orders
|
|
@@ -2505,10 +2532,13 @@ export declare const PlatformApiFp: (configuration?: Configuration) => {
|
|
|
2505
2532
|
* @summary List customers
|
|
2506
2533
|
* @param {string} project Project unique identifier
|
|
2507
2534
|
* @param {string} platformId The platform identifier
|
|
2535
|
+
* @param {number} [pageToken] Page reference token
|
|
2536
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2537
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
2508
2538
|
* @param {*} [options] Override http request option.
|
|
2509
2539
|
* @throws {RequiredError}
|
|
2510
2540
|
*/
|
|
2511
|
-
listCustomers(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
2541
|
+
listCustomers(project: string, platformId: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomersResponse>>;
|
|
2512
2542
|
/**
|
|
2513
2543
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
2514
2544
|
* @summary List orders
|
|
@@ -2863,6 +2893,24 @@ export interface PlatformApiListCustomersRequest {
|
|
|
2863
2893
|
* @memberof PlatformApiListCustomers
|
|
2864
2894
|
*/
|
|
2865
2895
|
readonly platformId: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* Page reference token
|
|
2898
|
+
* @type {number}
|
|
2899
|
+
* @memberof PlatformApiListCustomers
|
|
2900
|
+
*/
|
|
2901
|
+
readonly pageToken?: number;
|
|
2902
|
+
/**
|
|
2903
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2904
|
+
* @type {number}
|
|
2905
|
+
* @memberof PlatformApiListCustomers
|
|
2906
|
+
*/
|
|
2907
|
+
readonly pageSize?: number;
|
|
2908
|
+
/**
|
|
2909
|
+
* Search term to filter based on order reference, customer name and email
|
|
2910
|
+
* @type {string}
|
|
2911
|
+
* @memberof PlatformApiListCustomers
|
|
2912
|
+
*/
|
|
2913
|
+
readonly search?: string;
|
|
2866
2914
|
}
|
|
2867
2915
|
/**
|
|
2868
2916
|
* Request parameters for listOrders operation in PlatformApi.
|
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.11.
|
|
7
|
+
* The version of the OpenAPI document: 0.11.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -161,10 +161,13 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
161
161
|
* @summary List customers
|
|
162
162
|
* @param {string} project Project unique identifier
|
|
163
163
|
* @param {string} platformId The platform identifier
|
|
164
|
+
* @param {number} [pageToken] Page reference token
|
|
165
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
166
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
164
167
|
* @param {*} [options] Override http request option.
|
|
165
168
|
* @throws {RequiredError}
|
|
166
169
|
*/
|
|
167
|
-
listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
170
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, options = {}) {
|
|
168
171
|
// verify required parameter 'project' is not null or undefined
|
|
169
172
|
assertParamExists('listCustomers', 'project', project);
|
|
170
173
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -188,6 +191,15 @@ export const CustomersApiAxiosParamCreator = function (configuration) {
|
|
|
188
191
|
if (project !== undefined) {
|
|
189
192
|
localVarQueryParameter['project'] = project;
|
|
190
193
|
}
|
|
194
|
+
if (pageToken !== undefined) {
|
|
195
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
196
|
+
}
|
|
197
|
+
if (pageSize !== undefined) {
|
|
198
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
199
|
+
}
|
|
200
|
+
if (search !== undefined) {
|
|
201
|
+
localVarQueryParameter['search'] = search;
|
|
202
|
+
}
|
|
191
203
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
192
204
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
205
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -245,13 +257,16 @@ export const CustomersApiFp = function (configuration) {
|
|
|
245
257
|
* @summary List customers
|
|
246
258
|
* @param {string} project Project unique identifier
|
|
247
259
|
* @param {string} platformId The platform identifier
|
|
260
|
+
* @param {number} [pageToken] Page reference token
|
|
261
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
262
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
248
263
|
* @param {*} [options] Override http request option.
|
|
249
264
|
* @throws {RequiredError}
|
|
250
265
|
*/
|
|
251
|
-
listCustomers(project, platformId, options) {
|
|
266
|
+
listCustomers(project, platformId, pageToken, pageSize, search, options) {
|
|
252
267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
253
268
|
var _a, _b, _c;
|
|
254
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
|
|
269
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
255
270
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
256
271
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
257
272
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -294,7 +309,7 @@ export const CustomersApiFactory = function (configuration, basePath, axios) {
|
|
|
294
309
|
* @throws {RequiredError}
|
|
295
310
|
*/
|
|
296
311
|
listCustomers(requestParameters, options) {
|
|
297
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
312
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
298
313
|
},
|
|
299
314
|
};
|
|
300
315
|
};
|
|
@@ -336,7 +351,7 @@ export class CustomersApi extends BaseAPI {
|
|
|
336
351
|
* @memberof CustomersApi
|
|
337
352
|
*/
|
|
338
353
|
listCustomers(requestParameters, options) {
|
|
339
|
-
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
354
|
+
return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
340
355
|
}
|
|
341
356
|
}
|
|
342
357
|
/**
|
|
@@ -1238,10 +1253,13 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1238
1253
|
* @summary List customers
|
|
1239
1254
|
* @param {string} project Project unique identifier
|
|
1240
1255
|
* @param {string} platformId The platform identifier
|
|
1256
|
+
* @param {number} [pageToken] Page reference token
|
|
1257
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1258
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1241
1259
|
* @param {*} [options] Override http request option.
|
|
1242
1260
|
* @throws {RequiredError}
|
|
1243
1261
|
*/
|
|
1244
|
-
listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
1262
|
+
listCustomers: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, options = {}) {
|
|
1245
1263
|
// verify required parameter 'project' is not null or undefined
|
|
1246
1264
|
assertParamExists('listCustomers', 'project', project);
|
|
1247
1265
|
// verify required parameter 'platformId' is not null or undefined
|
|
@@ -1265,6 +1283,15 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
|
|
|
1265
1283
|
if (project !== undefined) {
|
|
1266
1284
|
localVarQueryParameter['project'] = project;
|
|
1267
1285
|
}
|
|
1286
|
+
if (pageToken !== undefined) {
|
|
1287
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
1288
|
+
}
|
|
1289
|
+
if (pageSize !== undefined) {
|
|
1290
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1291
|
+
}
|
|
1292
|
+
if (search !== undefined) {
|
|
1293
|
+
localVarQueryParameter['search'] = search;
|
|
1294
|
+
}
|
|
1268
1295
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1269
1296
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1270
1297
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1664,13 +1691,16 @@ export const PlatformApiFp = function (configuration) {
|
|
|
1664
1691
|
* @summary List customers
|
|
1665
1692
|
* @param {string} project Project unique identifier
|
|
1666
1693
|
* @param {string} platformId The platform identifier
|
|
1694
|
+
* @param {number} [pageToken] Page reference token
|
|
1695
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1696
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
1667
1697
|
* @param {*} [options] Override http request option.
|
|
1668
1698
|
* @throws {RequiredError}
|
|
1669
1699
|
*/
|
|
1670
|
-
listCustomers(project, platformId, options) {
|
|
1700
|
+
listCustomers(project, platformId, pageToken, pageSize, search, options) {
|
|
1671
1701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1672
1702
|
var _a, _b, _c;
|
|
1673
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
|
|
1703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, pageToken, pageSize, search, options);
|
|
1674
1704
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1675
1705
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1676
1706
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1859,7 +1889,7 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
|
|
|
1859
1889
|
* @throws {RequiredError}
|
|
1860
1890
|
*/
|
|
1861
1891
|
listCustomers(requestParameters, options) {
|
|
1862
|
-
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
1892
|
+
return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
1863
1893
|
},
|
|
1864
1894
|
/**
|
|
1865
1895
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
|
@@ -2006,7 +2036,7 @@ export class PlatformApi extends BaseAPI {
|
|
|
2006
2036
|
* @memberof PlatformApi
|
|
2007
2037
|
*/
|
|
2008
2038
|
listCustomers(requestParameters, options) {
|
|
2009
|
-
return PlatformApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
2039
|
+
return PlatformApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
2010
2040
|
}
|
|
2011
2041
|
/**
|
|
2012
2042
|
* Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
|
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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.11.
|
|
7
|
+
* The version of the OpenAPI document: 0.11.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,7 +20,7 @@ export class Configuration {
|
|
|
20
20
|
this.accessToken = param.accessToken;
|
|
21
21
|
this.basePath = param.basePath;
|
|
22
22
|
this.serverIndex = param.serverIndex;
|
|
23
|
-
this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.11.
|
|
23
|
+
this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/0.11.1/typescript-axios" }) }, param.baseOptions);
|
|
24
24
|
this.formDataCtor = param.formDataCtor;
|
|
25
25
|
}
|
|
26
26
|
/**
|
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