@emilgroup/public-api-sdk 1.3.0 → 1.6.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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/documents-api.ts +16 -16
- package/api/payments-setup-api.ts +104 -0
- package/api/products-api.ts +12 -12
- package/base.ts +5 -3
- package/dist/api/documents-api.d.ts +16 -16
- package/dist/api/documents-api.js +12 -12
- package/dist/api/payments-setup-api.d.ts +56 -0
- package/dist/api/payments-setup-api.js +93 -0
- package/dist/api/products-api.d.ts +12 -12
- package/dist/api/products-api.js +9 -9
- package/dist/base.d.ts +1 -1
- package/dist/base.js +6 -3
- package/dist/models/create-lead-request-dto.d.ts +9 -10
- package/dist/models/create-lead-request-dto.js +0 -7
- package/dist/models/get-public-psp-settings-response-class.d.ts +30 -0
- package/dist/models/get-public-psp-settings-response-class.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/insured-object-class.d.ts +18 -0
- package/dist/models/lead-class.d.ts +7 -0
- package/dist/models/update-lead-request-dto.d.ts +3 -17
- package/dist/models/update-lead-request-dto.js +0 -7
- package/models/create-lead-request-dto.ts +9 -13
- package/models/get-public-psp-settings-response-class.ts +36 -0
- package/models/index.ts +1 -0
- package/models/insured-object-class.ts +18 -0
- package/models/lead-class.ts +7 -0
- package/models/update-lead-request-dto.ts +3 -20
- package/package.json +2 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -29,6 +29,7 @@ models/create-lead-response-class.ts
|
|
|
29
29
|
models/document-class.ts
|
|
30
30
|
models/get-custom-css-response-class.ts
|
|
31
31
|
models/get-lead-response-class.ts
|
|
32
|
+
models/get-public-psp-settings-response-class.ts
|
|
32
33
|
models/index.ts
|
|
33
34
|
models/initiate-braintree-payment-setup-request-dto.ts
|
|
34
35
|
models/initiate-braintree-payment-setup-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.6.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.6.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/documents-api.ts
CHANGED
|
@@ -126,12 +126,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
126
126
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
127
127
|
* @summary List documents
|
|
128
128
|
* @param {string} [authorization] Bearer Token
|
|
129
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
130
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
129
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
130
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
131
131
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
132
132
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
133
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
134
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
133
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
134
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
135
135
|
* @param {*} [options] Override http request option.
|
|
136
136
|
* @throws {RequiredError}
|
|
137
137
|
*/
|
|
@@ -231,12 +231,12 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
231
231
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
232
232
|
* @summary List documents
|
|
233
233
|
* @param {string} [authorization] Bearer Token
|
|
234
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
235
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
234
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
235
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
236
236
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
237
237
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
238
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
239
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
238
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
239
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
240
240
|
* @param {*} [options] Override http request option.
|
|
241
241
|
* @throws {RequiredError}
|
|
242
242
|
*/
|
|
@@ -280,12 +280,12 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
280
280
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
281
281
|
* @summary List documents
|
|
282
282
|
* @param {string} [authorization] Bearer Token
|
|
283
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
284
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
283
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
284
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
285
285
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
286
286
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
287
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
288
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
287
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
288
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
289
289
|
* @param {*} [options] Override http request option.
|
|
290
290
|
* @throws {RequiredError}
|
|
291
291
|
*/
|
|
@@ -351,14 +351,14 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
351
351
|
readonly authorization?: string
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* A limit on the number of objects to be returned.
|
|
354
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
355
355
|
* @type {any}
|
|
356
356
|
* @memberof DocumentsApiListDocuments
|
|
357
357
|
*/
|
|
358
358
|
readonly pageSize?: any
|
|
359
359
|
|
|
360
360
|
/**
|
|
361
|
-
* A cursor for use in pagination.
|
|
361
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
362
362
|
* @type {any}
|
|
363
363
|
* @memberof DocumentsApiListDocuments
|
|
364
364
|
*/
|
|
@@ -379,14 +379,14 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
379
379
|
readonly search?: any
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
382
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
383
383
|
* @type {any}
|
|
384
384
|
* @memberof DocumentsApiListDocuments
|
|
385
385
|
*/
|
|
386
386
|
readonly order?: any
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
|
-
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
389
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
390
390
|
* @type {any}
|
|
391
391
|
* @memberof DocumentsApiListDocuments
|
|
392
392
|
*/
|
|
@@ -25,6 +25,8 @@ import { CompletePaymentSetupRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CompletePaymentSetupResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { GetPublicPspSettingsResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
28
30
|
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
29
31
|
// @ts-ignore
|
|
30
32
|
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
@@ -86,6 +88,52 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
86
88
|
options: localVarRequestOptions,
|
|
87
89
|
};
|
|
88
90
|
},
|
|
91
|
+
/**
|
|
92
|
+
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
93
|
+
* @summary Get public key and psp
|
|
94
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
95
|
+
* @param {string} [authorization] Bearer Token
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
getPublicPSPConfig: async (idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
|
+
const localVarPath = `/publicapi/v1/payment-setup/get-psp-config`;
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
// authentication bearer required
|
|
115
|
+
// http bearer authentication required
|
|
116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
+
|
|
118
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
url: toPathString(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
89
137
|
/**
|
|
90
138
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
91
139
|
* @summary Initiate a payment setup
|
|
@@ -161,6 +209,18 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
|
|
|
161
209
|
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options);
|
|
162
210
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
163
211
|
},
|
|
212
|
+
/**
|
|
213
|
+
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
214
|
+
* @summary Get public key and psp
|
|
215
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
216
|
+
* @param {string} [authorization] Bearer Token
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
async getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
221
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options);
|
|
222
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
223
|
+
},
|
|
164
224
|
/**
|
|
165
225
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
166
226
|
* @summary Initiate a payment setup
|
|
@@ -196,6 +256,17 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
|
|
|
196
256
|
completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
197
257
|
return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
198
258
|
},
|
|
259
|
+
/**
|
|
260
|
+
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
261
|
+
* @summary Get public key and psp
|
|
262
|
+
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
263
|
+
* @param {string} [authorization] Bearer Token
|
|
264
|
+
* @param {*} [options] Override http request option.
|
|
265
|
+
* @throws {RequiredError}
|
|
266
|
+
*/
|
|
267
|
+
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
268
|
+
return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
269
|
+
},
|
|
199
270
|
/**
|
|
200
271
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
201
272
|
* @summary Initiate a payment setup
|
|
@@ -239,6 +310,27 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
239
310
|
readonly authorization?: string
|
|
240
311
|
}
|
|
241
312
|
|
|
313
|
+
/**
|
|
314
|
+
* Request parameters for getPublicPSPConfig operation in PaymentsSetupApi.
|
|
315
|
+
* @export
|
|
316
|
+
* @interface PaymentsSetupApiGetPublicPSPConfigRequest
|
|
317
|
+
*/
|
|
318
|
+
export interface PaymentsSetupApiGetPublicPSPConfigRequest {
|
|
319
|
+
/**
|
|
320
|
+
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
321
|
+
* @type {string}
|
|
322
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
323
|
+
*/
|
|
324
|
+
readonly idempotencyKey?: string
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Bearer Token
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
330
|
+
*/
|
|
331
|
+
readonly authorization?: string
|
|
332
|
+
}
|
|
333
|
+
|
|
242
334
|
/**
|
|
243
335
|
* Request parameters for initiatePaymentSetup operation in PaymentsSetupApi.
|
|
244
336
|
* @export
|
|
@@ -286,6 +378,18 @@ export class PaymentsSetupApi extends BaseAPI {
|
|
|
286
378
|
return PaymentsSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
287
379
|
}
|
|
288
380
|
|
|
381
|
+
/**
|
|
382
|
+
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
383
|
+
* @summary Get public key and psp
|
|
384
|
+
* @param {PaymentsSetupApiGetPublicPSPConfigRequest} requestParameters Request parameters.
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
* @memberof PaymentsSetupApi
|
|
388
|
+
*/
|
|
389
|
+
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest = {}, options?: AxiosRequestConfig) {
|
|
390
|
+
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
391
|
+
}
|
|
392
|
+
|
|
289
393
|
/**
|
|
290
394
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
291
395
|
* @summary Initiate a payment setup
|
package/api/products-api.ts
CHANGED
|
@@ -333,11 +333,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
333
333
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
334
334
|
* @summary List products
|
|
335
335
|
* @param {string} [authorization] Bearer Token
|
|
336
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
337
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
336
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
337
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
338
338
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
339
339
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
340
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
340
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
341
341
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
342
342
|
* @param {*} [options] Override http request option.
|
|
343
343
|
* @throws {RequiredError}
|
|
@@ -488,11 +488,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
488
488
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
489
489
|
* @summary List products
|
|
490
490
|
* @param {string} [authorization] Bearer Token
|
|
491
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
492
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
491
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
492
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
493
493
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
494
494
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
495
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
495
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
496
496
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
497
497
|
* @param {*} [options] Override http request option.
|
|
498
498
|
* @throws {RequiredError}
|
|
@@ -583,11 +583,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
583
583
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
584
584
|
* @summary List products
|
|
585
585
|
* @param {string} [authorization] Bearer Token
|
|
586
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
587
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
586
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
587
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
588
588
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
589
589
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
590
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
590
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
591
591
|
* @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
|
|
592
592
|
* @param {*} [options] Override http request option.
|
|
593
593
|
* @throws {RequiredError}
|
|
@@ -752,14 +752,14 @@ export interface ProductsApiListProductsRequest {
|
|
|
752
752
|
readonly authorization?: string
|
|
753
753
|
|
|
754
754
|
/**
|
|
755
|
-
* A limit on the number of objects to be returned.
|
|
755
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
756
756
|
* @type {any}
|
|
757
757
|
* @memberof ProductsApiListProducts
|
|
758
758
|
*/
|
|
759
759
|
readonly pageSize?: any
|
|
760
760
|
|
|
761
761
|
/**
|
|
762
|
-
* A cursor for use in pagination.
|
|
762
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
763
763
|
* @type {any}
|
|
764
764
|
* @memberof ProductsApiListProducts
|
|
765
765
|
*/
|
|
@@ -780,7 +780,7 @@ export interface ProductsApiListProductsRequest {
|
|
|
780
780
|
readonly search?: any
|
|
781
781
|
|
|
782
782
|
/**
|
|
783
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
783
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
784
784
|
* @type {any}
|
|
785
785
|
* @memberof ProductsApiListProducts
|
|
786
786
|
*/
|
package/base.ts
CHANGED
|
@@ -129,7 +129,7 @@ export class BaseAPI {
|
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
async
|
|
132
|
+
async refreshTokenInternal(): Promise<string> {
|
|
133
133
|
const { username } = this.configuration;
|
|
134
134
|
|
|
135
135
|
if (!username) {
|
|
@@ -160,6 +160,8 @@ export class BaseAPI {
|
|
|
160
160
|
public loadTokenData() {
|
|
161
161
|
if (typeof window !== 'undefined') {
|
|
162
162
|
this.tokenData = defaultStorage().get<TokenData>(TOKEN_DATA) || {};
|
|
163
|
+
} else {
|
|
164
|
+
this.tokenData = {};
|
|
163
165
|
}
|
|
164
166
|
}
|
|
165
167
|
|
|
@@ -180,7 +182,7 @@ export class BaseAPI {
|
|
|
180
182
|
&& !originalConfig._retry) {
|
|
181
183
|
originalConfig._retry = true;
|
|
182
184
|
try {
|
|
183
|
-
let tokenString = await this.
|
|
185
|
+
let tokenString = await this.refreshTokenInternal();
|
|
184
186
|
const accessToken = `Bearer ${tokenString}`;
|
|
185
187
|
|
|
186
188
|
delete originalConfig.headers['Authorization']
|
|
@@ -206,7 +208,7 @@ export class BaseAPI {
|
|
|
206
208
|
) {
|
|
207
209
|
_retry_count++;
|
|
208
210
|
try {
|
|
209
|
-
let tokenString = await this.
|
|
211
|
+
let tokenString = await this.refreshTokenInternal();
|
|
210
212
|
const accessToken = `Bearer ${tokenString}`;
|
|
211
213
|
|
|
212
214
|
_retry = true;
|
|
@@ -41,12 +41,12 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
41
41
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
42
42
|
* @summary List documents
|
|
43
43
|
* @param {string} [authorization] Bearer Token
|
|
44
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
45
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
44
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
45
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
46
46
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
47
47
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
48
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
49
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
48
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
49
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
@@ -79,12 +79,12 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
79
79
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
80
80
|
* @summary List documents
|
|
81
81
|
* @param {string} [authorization] Bearer Token
|
|
82
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
83
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
82
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
83
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
84
84
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
85
85
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
86
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
87
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
86
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
87
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
@@ -117,12 +117,12 @@ export declare const DocumentsApiFactory: (configuration?: Configuration, basePa
|
|
|
117
117
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
118
118
|
* @summary List documents
|
|
119
119
|
* @param {string} [authorization] Bearer Token
|
|
120
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
121
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
120
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
121
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
122
122
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
123
123
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
124
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
125
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
124
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
125
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
126
126
|
* @param {*} [options] Override http request option.
|
|
127
127
|
* @throws {RequiredError}
|
|
128
128
|
*/
|
|
@@ -179,13 +179,13 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
179
179
|
*/
|
|
180
180
|
readonly authorization?: string;
|
|
181
181
|
/**
|
|
182
|
-
* A limit on the number of objects to be returned.
|
|
182
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
183
183
|
* @type {any}
|
|
184
184
|
* @memberof DocumentsApiListDocuments
|
|
185
185
|
*/
|
|
186
186
|
readonly pageSize?: any;
|
|
187
187
|
/**
|
|
188
|
-
* A cursor for use in pagination.
|
|
188
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
189
189
|
* @type {any}
|
|
190
190
|
* @memberof DocumentsApiListDocuments
|
|
191
191
|
*/
|
|
@@ -203,13 +203,13 @@ export interface DocumentsApiListDocumentsRequest {
|
|
|
203
203
|
*/
|
|
204
204
|
readonly search?: any;
|
|
205
205
|
/**
|
|
206
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
206
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
207
207
|
* @type {any}
|
|
208
208
|
* @memberof DocumentsApiListDocuments
|
|
209
209
|
*/
|
|
210
210
|
readonly order?: any;
|
|
211
211
|
/**
|
|
212
|
-
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
212
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
213
213
|
* @type {any}
|
|
214
214
|
* @memberof DocumentsApiListDocuments
|
|
215
215
|
*/
|
|
@@ -193,12 +193,12 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
193
193
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
194
194
|
* @summary List documents
|
|
195
195
|
* @param {string} [authorization] Bearer Token
|
|
196
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
197
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
196
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
197
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
198
198
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
199
199
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
200
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
201
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
200
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
201
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
@@ -313,12 +313,12 @@ var DocumentsApiFp = function (configuration) {
|
|
|
313
313
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
314
314
|
* @summary List documents
|
|
315
315
|
* @param {string} [authorization] Bearer Token
|
|
316
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
317
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
316
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
317
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
318
318
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
319
319
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
320
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
321
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
320
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
321
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
322
322
|
* @param {*} [options] Override http request option.
|
|
323
323
|
* @throws {RequiredError}
|
|
324
324
|
*/
|
|
@@ -371,12 +371,12 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
371
371
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
372
372
|
* @summary List documents
|
|
373
373
|
* @param {string} [authorization] Bearer Token
|
|
374
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
375
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
374
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
375
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
376
376
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
377
377
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
378
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
379
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
378
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
379
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
380
380
|
* @param {*} [options] Override http request option.
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
*/
|