@emilgroup/numbergenerator-sdk 1.0.1-beta.10 → 1.0.1-beta.2
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 +0 -2
- package/README.md +2 -2
- package/api/numbers-api.ts +35 -91
- package/base.ts +0 -4
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/numbers-api.d.ts +25 -54
- package/dist/api/numbers-api.js +32 -57
- package/dist/base.js +1 -3
- package/dist/common.d.ts +1 -1
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/models/index.ts +0 -2
- package/package.json +2 -2
- package/dist/models/lookup-number-request-dto.d.ts +0 -24
- package/dist/models/lookup-number-request-dto.js +0 -15
- package/dist/models/reset-number-request-dto.d.ts +0 -24
- package/dist/models/reset-number-request-dto.js +0 -15
- package/models/lookup-number-request-dto.ts +0 -30
- package/models/reset-number-request-dto.ts +0 -30
package/.openapi-generator/FILES
CHANGED
|
@@ -17,8 +17,6 @@ models/index.ts
|
|
|
17
17
|
models/inline-response200.ts
|
|
18
18
|
models/inline-response503.ts
|
|
19
19
|
models/list-numbers-response-class.ts
|
|
20
|
-
models/lookup-number-request-dto.ts
|
|
21
|
-
models/reset-number-request-dto.ts
|
|
22
20
|
models/update-number-response-class.ts
|
|
23
21
|
package.json
|
|
24
22
|
tsconfig.json
|
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/numbergenerator-sdk@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/numbergenerator-sdk@1.0.1-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/numbergenerator-sdk@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/numbergenerator-sdk@1.0.1-beta.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `NumbersApi`.
|
package/api/numbers-api.ts
CHANGED
|
@@ -27,10 +27,6 @@ import { GetNumberResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { ListNumbersResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
-
import { LookupNumberRequestDto } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { ResetNumberRequestDto } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
30
|
import { UpdateNumberResponseClass } from '../models';
|
|
35
31
|
/**
|
|
36
32
|
* NumbersApi - axios parameter creator
|
|
@@ -41,20 +37,11 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41
37
|
/**
|
|
42
38
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
43
39
|
* @summary Create the number
|
|
44
|
-
* @param {string} slug The slug of the number
|
|
45
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
46
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
47
40
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
48
41
|
* @param {*} [options] Override http request option.
|
|
49
42
|
* @throws {RequiredError}
|
|
50
43
|
*/
|
|
51
|
-
createNumber: async (
|
|
52
|
-
// verify required parameter 'slug' is not null or undefined
|
|
53
|
-
assertParamExists('createNumber', 'slug', slug)
|
|
54
|
-
// verify required parameter 'type' is not null or undefined
|
|
55
|
-
assertParamExists('createNumber', 'type', type)
|
|
56
|
-
// verify required parameter 'config' is not null or undefined
|
|
57
|
-
assertParamExists('createNumber', 'config', config)
|
|
44
|
+
createNumber: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58
45
|
const localVarPath = `/numbergenerator/v1/numbers`;
|
|
59
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
47
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -68,7 +55,6 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
68
55
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
69
56
|
const localVarHeaderParameter = {} as any;
|
|
70
57
|
const localVarQueryParameter = {} as any;
|
|
71
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
72
58
|
|
|
73
59
|
// authentication bearer required
|
|
74
60
|
// http bearer authentication required
|
|
@@ -79,25 +65,10 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
79
65
|
}
|
|
80
66
|
|
|
81
67
|
|
|
82
|
-
if (slug !== undefined) {
|
|
83
|
-
localVarFormParams.append('slug', slug as any);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (type !== undefined) {
|
|
87
|
-
localVarFormParams.append('type', type as any);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (config !== undefined) {
|
|
91
|
-
localVarFormParams.append('config', new Blob([JSON.stringify(config)], { type: "application/json", }));
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
68
|
|
|
97
69
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
98
70
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
99
71
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
100
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
101
72
|
|
|
102
73
|
return {
|
|
103
74
|
url: toPathString(localVarUrlObj),
|
|
@@ -235,14 +206,14 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
235
206
|
/**
|
|
236
207
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
237
208
|
* @summary Lookup entity number
|
|
238
|
-
* @param {
|
|
209
|
+
* @param {object} body
|
|
239
210
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
240
211
|
* @param {*} [options] Override http request option.
|
|
241
212
|
* @throws {RequiredError}
|
|
242
213
|
*/
|
|
243
|
-
lookupNumber: async (
|
|
244
|
-
// verify required parameter '
|
|
245
|
-
assertParamExists('lookupNumber', '
|
|
214
|
+
lookupNumber: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
215
|
+
// verify required parameter 'body' is not null or undefined
|
|
216
|
+
assertParamExists('lookupNumber', 'body', body)
|
|
246
217
|
const localVarPath = `/numbergenerator/v1/numbers/lookup`;
|
|
247
218
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
219
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -272,7 +243,7 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
272
243
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
273
244
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
274
245
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
275
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
246
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
276
247
|
|
|
277
248
|
return {
|
|
278
249
|
url: toPathString(localVarUrlObj),
|
|
@@ -282,14 +253,14 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
282
253
|
/**
|
|
283
254
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
284
255
|
* @summary Reset entity number
|
|
285
|
-
* @param {
|
|
256
|
+
* @param {object} body
|
|
286
257
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
287
258
|
* @param {*} [options] Override http request option.
|
|
288
259
|
* @throws {RequiredError}
|
|
289
260
|
*/
|
|
290
|
-
resetNumber: async (
|
|
291
|
-
// verify required parameter '
|
|
292
|
-
assertParamExists('resetNumber', '
|
|
261
|
+
resetNumber: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
262
|
+
// verify required parameter 'body' is not null or undefined
|
|
263
|
+
assertParamExists('resetNumber', 'body', body)
|
|
293
264
|
const localVarPath = `/numbergenerator/v1/numbers/reset`;
|
|
294
265
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
295
266
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -319,7 +290,7 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
319
290
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
320
291
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
321
292
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
322
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
293
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
323
294
|
|
|
324
295
|
return {
|
|
325
296
|
url: toPathString(localVarUrlObj),
|
|
@@ -384,15 +355,12 @@ export const NumbersApiFp = function(configuration?: Configuration) {
|
|
|
384
355
|
/**
|
|
385
356
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
386
357
|
* @summary Create the number
|
|
387
|
-
* @param {string} slug The slug of the number
|
|
388
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
389
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
390
358
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
391
359
|
* @param {*} [options] Override http request option.
|
|
392
360
|
* @throws {RequiredError}
|
|
393
361
|
*/
|
|
394
|
-
async createNumber(
|
|
395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createNumber(
|
|
362
|
+
async createNumber(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>> {
|
|
363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createNumber(authorization, options);
|
|
396
364
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
397
365
|
},
|
|
398
366
|
/**
|
|
@@ -429,25 +397,25 @@ export const NumbersApiFp = function(configuration?: Configuration) {
|
|
|
429
397
|
/**
|
|
430
398
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
431
399
|
* @summary Lookup entity number
|
|
432
|
-
* @param {
|
|
400
|
+
* @param {object} body
|
|
433
401
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
434
402
|
* @param {*} [options] Override http request option.
|
|
435
403
|
* @throws {RequiredError}
|
|
436
404
|
*/
|
|
437
|
-
async lookupNumber(
|
|
438
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupNumber(
|
|
405
|
+
async lookupNumber(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupNumber(body, authorization, options);
|
|
439
407
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
440
408
|
},
|
|
441
409
|
/**
|
|
442
410
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
443
411
|
* @summary Reset entity number
|
|
444
|
-
* @param {
|
|
412
|
+
* @param {object} body
|
|
445
413
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
446
414
|
* @param {*} [options] Override http request option.
|
|
447
415
|
* @throws {RequiredError}
|
|
448
416
|
*/
|
|
449
|
-
async resetNumber(
|
|
450
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.resetNumber(
|
|
417
|
+
async resetNumber(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
418
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetNumber(body, authorization, options);
|
|
451
419
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
452
420
|
},
|
|
453
421
|
/**
|
|
@@ -475,15 +443,12 @@ export const NumbersApiFactory = function (configuration?: Configuration, basePa
|
|
|
475
443
|
/**
|
|
476
444
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
477
445
|
* @summary Create the number
|
|
478
|
-
* @param {string} slug The slug of the number
|
|
479
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
480
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
481
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
482
447
|
* @param {*} [options] Override http request option.
|
|
483
448
|
* @throws {RequiredError}
|
|
484
449
|
*/
|
|
485
|
-
createNumber(
|
|
486
|
-
return localVarFp.createNumber(
|
|
450
|
+
createNumber(authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass> {
|
|
451
|
+
return localVarFp.createNumber(authorization, options).then((request) => request(axios, basePath));
|
|
487
452
|
},
|
|
488
453
|
/**
|
|
489
454
|
* Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
|
|
@@ -517,24 +482,24 @@ export const NumbersApiFactory = function (configuration?: Configuration, basePa
|
|
|
517
482
|
/**
|
|
518
483
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
519
484
|
* @summary Lookup entity number
|
|
520
|
-
* @param {
|
|
485
|
+
* @param {object} body
|
|
521
486
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
522
487
|
* @param {*} [options] Override http request option.
|
|
523
488
|
* @throws {RequiredError}
|
|
524
489
|
*/
|
|
525
|
-
lookupNumber(
|
|
526
|
-
return localVarFp.lookupNumber(
|
|
490
|
+
lookupNumber(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
491
|
+
return localVarFp.lookupNumber(body, authorization, options).then((request) => request(axios, basePath));
|
|
527
492
|
},
|
|
528
493
|
/**
|
|
529
494
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
530
495
|
* @summary Reset entity number
|
|
531
|
-
* @param {
|
|
496
|
+
* @param {object} body
|
|
532
497
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
533
498
|
* @param {*} [options] Override http request option.
|
|
534
499
|
* @throws {RequiredError}
|
|
535
500
|
*/
|
|
536
|
-
resetNumber(
|
|
537
|
-
return localVarFp.resetNumber(
|
|
501
|
+
resetNumber(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
502
|
+
return localVarFp.resetNumber(body, authorization, options).then((request) => request(axios, basePath));
|
|
538
503
|
},
|
|
539
504
|
/**
|
|
540
505
|
* This will update an entity number in the database.
|
|
@@ -556,27 +521,6 @@ export const NumbersApiFactory = function (configuration?: Configuration, basePa
|
|
|
556
521
|
* @interface NumbersApiCreateNumberRequest
|
|
557
522
|
*/
|
|
558
523
|
export interface NumbersApiCreateNumberRequest {
|
|
559
|
-
/**
|
|
560
|
-
* The slug of the number
|
|
561
|
-
* @type {string}
|
|
562
|
-
* @memberof NumbersApiCreateNumber
|
|
563
|
-
*/
|
|
564
|
-
readonly slug: string
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* The type of number generator. This determines the structure of the config object.
|
|
568
|
-
* @type {string}
|
|
569
|
-
* @memberof NumbersApiCreateNumber
|
|
570
|
-
*/
|
|
571
|
-
readonly type: string
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* Configuration object that varies based on the type field
|
|
575
|
-
* @type {object}
|
|
576
|
-
* @memberof NumbersApiCreateNumber
|
|
577
|
-
*/
|
|
578
|
-
readonly config: object
|
|
579
|
-
|
|
580
524
|
/**
|
|
581
525
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
582
526
|
* @type {string}
|
|
@@ -684,10 +628,10 @@ export interface NumbersApiListNumbersRequest {
|
|
|
684
628
|
export interface NumbersApiLookupNumberRequest {
|
|
685
629
|
/**
|
|
686
630
|
*
|
|
687
|
-
* @type {
|
|
631
|
+
* @type {object}
|
|
688
632
|
* @memberof NumbersApiLookupNumber
|
|
689
633
|
*/
|
|
690
|
-
readonly
|
|
634
|
+
readonly body: object
|
|
691
635
|
|
|
692
636
|
/**
|
|
693
637
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -705,10 +649,10 @@ export interface NumbersApiLookupNumberRequest {
|
|
|
705
649
|
export interface NumbersApiResetNumberRequest {
|
|
706
650
|
/**
|
|
707
651
|
*
|
|
708
|
-
* @type {
|
|
652
|
+
* @type {object}
|
|
709
653
|
* @memberof NumbersApiResetNumber
|
|
710
654
|
*/
|
|
711
|
-
readonly
|
|
655
|
+
readonly body: object
|
|
712
656
|
|
|
713
657
|
/**
|
|
714
658
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -754,8 +698,8 @@ export class NumbersApi extends BaseAPI {
|
|
|
754
698
|
* @throws {RequiredError}
|
|
755
699
|
* @memberof NumbersApi
|
|
756
700
|
*/
|
|
757
|
-
public createNumber(requestParameters: NumbersApiCreateNumberRequest, options?: AxiosRequestConfig) {
|
|
758
|
-
return NumbersApiFp(this.configuration).createNumber(requestParameters.
|
|
701
|
+
public createNumber(requestParameters: NumbersApiCreateNumberRequest = {}, options?: AxiosRequestConfig) {
|
|
702
|
+
return NumbersApiFp(this.configuration).createNumber(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
759
703
|
}
|
|
760
704
|
|
|
761
705
|
/**
|
|
@@ -791,7 +735,7 @@ export class NumbersApi extends BaseAPI {
|
|
|
791
735
|
* @memberof NumbersApi
|
|
792
736
|
*/
|
|
793
737
|
public lookupNumber(requestParameters: NumbersApiLookupNumberRequest, options?: AxiosRequestConfig) {
|
|
794
|
-
return NumbersApiFp(this.configuration).lookupNumber(requestParameters.
|
|
738
|
+
return NumbersApiFp(this.configuration).lookupNumber(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
795
739
|
}
|
|
796
740
|
|
|
797
741
|
/**
|
|
@@ -803,7 +747,7 @@ export class NumbersApi extends BaseAPI {
|
|
|
803
747
|
* @memberof NumbersApi
|
|
804
748
|
*/
|
|
805
749
|
public resetNumber(requestParameters: NumbersApiResetNumberRequest, options?: AxiosRequestConfig) {
|
|
806
|
-
return NumbersApiFp(this.configuration).resetNumber(requestParameters.
|
|
750
|
+
return NumbersApiFp(this.configuration).resetNumber(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
807
751
|
}
|
|
808
752
|
|
|
809
753
|
/**
|
package/base.ts
CHANGED
|
@@ -62,5 +62,5 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
62
62
|
* @throws {RequiredError}
|
|
63
63
|
* @memberof DefaultApi
|
|
64
64
|
*/
|
|
65
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any
|
|
65
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
66
66
|
}
|
|
@@ -15,8 +15,6 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreateNumberResponseClass } from '../models';
|
|
16
16
|
import { GetNumberResponseClass } from '../models';
|
|
17
17
|
import { ListNumbersResponseClass } from '../models';
|
|
18
|
-
import { LookupNumberRequestDto } from '../models';
|
|
19
|
-
import { ResetNumberRequestDto } from '../models';
|
|
20
18
|
import { UpdateNumberResponseClass } from '../models';
|
|
21
19
|
/**
|
|
22
20
|
* NumbersApi - axios parameter creator
|
|
@@ -26,14 +24,11 @@ export declare const NumbersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
26
24
|
/**
|
|
27
25
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
28
26
|
* @summary Create the number
|
|
29
|
-
* @param {string} slug The slug of the number
|
|
30
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
31
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
32
27
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
33
28
|
* @param {*} [options] Override http request option.
|
|
34
29
|
* @throws {RequiredError}
|
|
35
30
|
*/
|
|
36
|
-
createNumber: (
|
|
31
|
+
createNumber: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
32
|
/**
|
|
38
33
|
* Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
|
|
39
34
|
* @summary Retrieve the number
|
|
@@ -62,21 +57,21 @@ export declare const NumbersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
62
57
|
/**
|
|
63
58
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
64
59
|
* @summary Lookup entity number
|
|
65
|
-
* @param {
|
|
60
|
+
* @param {object} body
|
|
66
61
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
67
62
|
* @param {*} [options] Override http request option.
|
|
68
63
|
* @throws {RequiredError}
|
|
69
64
|
*/
|
|
70
|
-
lookupNumber: (
|
|
65
|
+
lookupNumber: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
66
|
/**
|
|
72
67
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
73
68
|
* @summary Reset entity number
|
|
74
|
-
* @param {
|
|
69
|
+
* @param {object} body
|
|
75
70
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
71
|
* @param {*} [options] Override http request option.
|
|
77
72
|
* @throws {RequiredError}
|
|
78
73
|
*/
|
|
79
|
-
resetNumber: (
|
|
74
|
+
resetNumber: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
75
|
/**
|
|
81
76
|
* This will update an entity number in the database.
|
|
82
77
|
* @summary Update the number
|
|
@@ -95,14 +90,11 @@ export declare const NumbersApiFp: (configuration?: Configuration) => {
|
|
|
95
90
|
/**
|
|
96
91
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
97
92
|
* @summary Create the number
|
|
98
|
-
* @param {string} slug The slug of the number
|
|
99
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
100
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
101
93
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
102
94
|
* @param {*} [options] Override http request option.
|
|
103
95
|
* @throws {RequiredError}
|
|
104
96
|
*/
|
|
105
|
-
createNumber(
|
|
97
|
+
createNumber(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>>;
|
|
106
98
|
/**
|
|
107
99
|
* Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
|
|
108
100
|
* @summary Retrieve the number
|
|
@@ -131,21 +123,21 @@ export declare const NumbersApiFp: (configuration?: Configuration) => {
|
|
|
131
123
|
/**
|
|
132
124
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
133
125
|
* @summary Lookup entity number
|
|
134
|
-
* @param {
|
|
126
|
+
* @param {object} body
|
|
135
127
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
136
128
|
* @param {*} [options] Override http request option.
|
|
137
129
|
* @throws {RequiredError}
|
|
138
130
|
*/
|
|
139
|
-
lookupNumber(
|
|
131
|
+
lookupNumber(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
140
132
|
/**
|
|
141
133
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
142
134
|
* @summary Reset entity number
|
|
143
|
-
* @param {
|
|
135
|
+
* @param {object} body
|
|
144
136
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
145
137
|
* @param {*} [options] Override http request option.
|
|
146
138
|
* @throws {RequiredError}
|
|
147
139
|
*/
|
|
148
|
-
resetNumber(
|
|
140
|
+
resetNumber(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
149
141
|
/**
|
|
150
142
|
* This will update an entity number in the database.
|
|
151
143
|
* @summary Update the number
|
|
@@ -164,14 +156,11 @@ export declare const NumbersApiFactory: (configuration?: Configuration, basePath
|
|
|
164
156
|
/**
|
|
165
157
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
166
158
|
* @summary Create the number
|
|
167
|
-
* @param {string} slug The slug of the number
|
|
168
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
169
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
170
159
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
171
160
|
* @param {*} [options] Override http request option.
|
|
172
161
|
* @throws {RequiredError}
|
|
173
162
|
*/
|
|
174
|
-
createNumber(
|
|
163
|
+
createNumber(authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass>;
|
|
175
164
|
/**
|
|
176
165
|
* Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
|
|
177
166
|
* @summary Retrieve the number
|
|
@@ -200,21 +189,21 @@ export declare const NumbersApiFactory: (configuration?: Configuration, basePath
|
|
|
200
189
|
/**
|
|
201
190
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
202
191
|
* @summary Lookup entity number
|
|
203
|
-
* @param {
|
|
192
|
+
* @param {object} body
|
|
204
193
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
205
194
|
* @param {*} [options] Override http request option.
|
|
206
195
|
* @throws {RequiredError}
|
|
207
196
|
*/
|
|
208
|
-
lookupNumber(
|
|
197
|
+
lookupNumber(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
209
198
|
/**
|
|
210
199
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
211
200
|
* @summary Reset entity number
|
|
212
|
-
* @param {
|
|
201
|
+
* @param {object} body
|
|
213
202
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
214
203
|
* @param {*} [options] Override http request option.
|
|
215
204
|
* @throws {RequiredError}
|
|
216
205
|
*/
|
|
217
|
-
resetNumber(
|
|
206
|
+
resetNumber(body: object, authorization?: string, options?: any): AxiosPromise<void>;
|
|
218
207
|
/**
|
|
219
208
|
* This will update an entity number in the database.
|
|
220
209
|
* @summary Update the number
|
|
@@ -231,24 +220,6 @@ export declare const NumbersApiFactory: (configuration?: Configuration, basePath
|
|
|
231
220
|
* @interface NumbersApiCreateNumberRequest
|
|
232
221
|
*/
|
|
233
222
|
export interface NumbersApiCreateNumberRequest {
|
|
234
|
-
/**
|
|
235
|
-
* The slug of the number
|
|
236
|
-
* @type {string}
|
|
237
|
-
* @memberof NumbersApiCreateNumber
|
|
238
|
-
*/
|
|
239
|
-
readonly slug: string;
|
|
240
|
-
/**
|
|
241
|
-
* The type of number generator. This determines the structure of the config object.
|
|
242
|
-
* @type {string}
|
|
243
|
-
* @memberof NumbersApiCreateNumber
|
|
244
|
-
*/
|
|
245
|
-
readonly type: string;
|
|
246
|
-
/**
|
|
247
|
-
* Configuration object that varies based on the type field
|
|
248
|
-
* @type {object}
|
|
249
|
-
* @memberof NumbersApiCreateNumber
|
|
250
|
-
*/
|
|
251
|
-
readonly config: object;
|
|
252
223
|
/**
|
|
253
224
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
225
|
* @type {string}
|
|
@@ -344,10 +315,10 @@ export interface NumbersApiListNumbersRequest {
|
|
|
344
315
|
export interface NumbersApiLookupNumberRequest {
|
|
345
316
|
/**
|
|
346
317
|
*
|
|
347
|
-
* @type {
|
|
318
|
+
* @type {object}
|
|
348
319
|
* @memberof NumbersApiLookupNumber
|
|
349
320
|
*/
|
|
350
|
-
readonly
|
|
321
|
+
readonly body: object;
|
|
351
322
|
/**
|
|
352
323
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
324
|
* @type {string}
|
|
@@ -363,10 +334,10 @@ export interface NumbersApiLookupNumberRequest {
|
|
|
363
334
|
export interface NumbersApiResetNumberRequest {
|
|
364
335
|
/**
|
|
365
336
|
*
|
|
366
|
-
* @type {
|
|
337
|
+
* @type {object}
|
|
367
338
|
* @memberof NumbersApiResetNumber
|
|
368
339
|
*/
|
|
369
|
-
readonly
|
|
340
|
+
readonly body: object;
|
|
370
341
|
/**
|
|
371
342
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
372
343
|
* @type {string}
|
|
@@ -408,7 +379,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
408
379
|
* @throws {RequiredError}
|
|
409
380
|
* @memberof NumbersApi
|
|
410
381
|
*/
|
|
411
|
-
createNumber(requestParameters
|
|
382
|
+
createNumber(requestParameters?: NumbersApiCreateNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberResponseClass, any>>;
|
|
412
383
|
/**
|
|
413
384
|
* Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
|
|
414
385
|
* @summary Retrieve the number
|
|
@@ -417,7 +388,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
417
388
|
* @throws {RequiredError}
|
|
418
389
|
* @memberof NumbersApi
|
|
419
390
|
*/
|
|
420
|
-
getNumber(requestParameters: NumbersApiGetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberResponseClass, any
|
|
391
|
+
getNumber(requestParameters: NumbersApiGetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberResponseClass, any>>;
|
|
421
392
|
/**
|
|
422
393
|
* Returns a list of Numbers you have previously created. The Numbers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
423
394
|
* @summary List Numbers
|
|
@@ -426,7 +397,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
426
397
|
* @throws {RequiredError}
|
|
427
398
|
* @memberof NumbersApi
|
|
428
399
|
*/
|
|
429
|
-
listNumbers(requestParameters?: NumbersApiListNumbersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumbersResponseClass, any
|
|
400
|
+
listNumbers(requestParameters?: NumbersApiListNumbersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumbersResponseClass, any>>;
|
|
430
401
|
/**
|
|
431
402
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
432
403
|
* @summary Lookup entity number
|
|
@@ -435,7 +406,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
435
406
|
* @throws {RequiredError}
|
|
436
407
|
* @memberof NumbersApi
|
|
437
408
|
*/
|
|
438
|
-
lookupNumber(requestParameters: NumbersApiLookupNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any
|
|
409
|
+
lookupNumber(requestParameters: NumbersApiLookupNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
439
410
|
/**
|
|
440
411
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
441
412
|
* @summary Reset entity number
|
|
@@ -444,7 +415,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
444
415
|
* @throws {RequiredError}
|
|
445
416
|
* @memberof NumbersApi
|
|
446
417
|
*/
|
|
447
|
-
resetNumber(requestParameters: NumbersApiResetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any
|
|
418
|
+
resetNumber(requestParameters: NumbersApiResetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
448
419
|
/**
|
|
449
420
|
* This will update an entity number in the database.
|
|
450
421
|
* @summary Update the number
|
|
@@ -453,5 +424,5 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
453
424
|
* @throws {RequiredError}
|
|
454
425
|
* @memberof NumbersApi
|
|
455
426
|
*/
|
|
456
|
-
updateNumber(requestParameters: NumbersApiUpdateNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNumberResponseClass, any
|
|
427
|
+
updateNumber(requestParameters: NumbersApiUpdateNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNumberResponseClass, any>>;
|
|
457
428
|
}
|
package/dist/api/numbers-api.js
CHANGED
|
@@ -95,26 +95,17 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
97
97
|
* @summary Create the number
|
|
98
|
-
* @param {string} slug The slug of the number
|
|
99
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
100
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
101
98
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
102
99
|
* @param {*} [options] Override http request option.
|
|
103
100
|
* @throws {RequiredError}
|
|
104
101
|
*/
|
|
105
|
-
createNumber: function (
|
|
102
|
+
createNumber: function (authorization, options) {
|
|
106
103
|
if (options === void 0) { options = {}; }
|
|
107
104
|
return __awaiter(_this, void 0, void 0, function () {
|
|
108
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
105
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
109
106
|
return __generator(this, function (_a) {
|
|
110
107
|
switch (_a.label) {
|
|
111
108
|
case 0:
|
|
112
|
-
// verify required parameter 'slug' is not null or undefined
|
|
113
|
-
(0, common_1.assertParamExists)('createNumber', 'slug', slug);
|
|
114
|
-
// verify required parameter 'type' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('createNumber', 'type', type);
|
|
116
|
-
// verify required parameter 'config' is not null or undefined
|
|
117
|
-
(0, common_1.assertParamExists)('createNumber', 'config', config);
|
|
118
109
|
localVarPath = "/numbergenerator/v1/numbers";
|
|
119
110
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
111
|
if (configuration) {
|
|
@@ -124,7 +115,6 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
124
115
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
125
116
|
localVarHeaderParameter = {};
|
|
126
117
|
localVarQueryParameter = {};
|
|
127
|
-
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
128
118
|
// authentication bearer required
|
|
129
119
|
// http bearer authentication required
|
|
130
120
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
@@ -135,19 +125,9 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
135
125
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
136
126
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
127
|
}
|
|
138
|
-
if (slug !== undefined) {
|
|
139
|
-
localVarFormParams.append('slug', slug);
|
|
140
|
-
}
|
|
141
|
-
if (type !== undefined) {
|
|
142
|
-
localVarFormParams.append('type', type);
|
|
143
|
-
}
|
|
144
|
-
if (config !== undefined) {
|
|
145
|
-
localVarFormParams.append('config', new Blob([JSON.stringify(config)], { type: "application/json", }));
|
|
146
|
-
}
|
|
147
128
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
148
129
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
130
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
150
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
151
131
|
return [2 /*return*/, {
|
|
152
132
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
153
133
|
options: localVarRequestOptions,
|
|
@@ -285,20 +265,20 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
285
265
|
/**
|
|
286
266
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
287
267
|
* @summary Lookup entity number
|
|
288
|
-
* @param {
|
|
268
|
+
* @param {object} body
|
|
289
269
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
290
270
|
* @param {*} [options] Override http request option.
|
|
291
271
|
* @throws {RequiredError}
|
|
292
272
|
*/
|
|
293
|
-
lookupNumber: function (
|
|
273
|
+
lookupNumber: function (body, authorization, options) {
|
|
294
274
|
if (options === void 0) { options = {}; }
|
|
295
275
|
return __awaiter(_this, void 0, void 0, function () {
|
|
296
276
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
297
277
|
return __generator(this, function (_a) {
|
|
298
278
|
switch (_a.label) {
|
|
299
279
|
case 0:
|
|
300
|
-
// verify required parameter '
|
|
301
|
-
(0, common_1.assertParamExists)('lookupNumber', '
|
|
280
|
+
// verify required parameter 'body' is not null or undefined
|
|
281
|
+
(0, common_1.assertParamExists)('lookupNumber', 'body', body);
|
|
302
282
|
localVarPath = "/numbergenerator/v1/numbers/lookup";
|
|
303
283
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
304
284
|
if (configuration) {
|
|
@@ -322,7 +302,7 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
322
302
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
323
303
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
304
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
325
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
305
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
326
306
|
return [2 /*return*/, {
|
|
327
307
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
328
308
|
options: localVarRequestOptions,
|
|
@@ -334,20 +314,20 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
334
314
|
/**
|
|
335
315
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
336
316
|
* @summary Reset entity number
|
|
337
|
-
* @param {
|
|
317
|
+
* @param {object} body
|
|
338
318
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
339
319
|
* @param {*} [options] Override http request option.
|
|
340
320
|
* @throws {RequiredError}
|
|
341
321
|
*/
|
|
342
|
-
resetNumber: function (
|
|
322
|
+
resetNumber: function (body, authorization, options) {
|
|
343
323
|
if (options === void 0) { options = {}; }
|
|
344
324
|
return __awaiter(_this, void 0, void 0, function () {
|
|
345
325
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
346
326
|
return __generator(this, function (_a) {
|
|
347
327
|
switch (_a.label) {
|
|
348
328
|
case 0:
|
|
349
|
-
// verify required parameter '
|
|
350
|
-
(0, common_1.assertParamExists)('resetNumber', '
|
|
329
|
+
// verify required parameter 'body' is not null or undefined
|
|
330
|
+
(0, common_1.assertParamExists)('resetNumber', 'body', body);
|
|
351
331
|
localVarPath = "/numbergenerator/v1/numbers/reset";
|
|
352
332
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
353
333
|
if (configuration) {
|
|
@@ -371,7 +351,7 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
371
351
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
372
352
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
373
353
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
374
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
354
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
375
355
|
return [2 /*return*/, {
|
|
376
356
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
377
357
|
options: localVarRequestOptions,
|
|
@@ -441,19 +421,16 @@ var NumbersApiFp = function (configuration) {
|
|
|
441
421
|
/**
|
|
442
422
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
443
423
|
* @summary Create the number
|
|
444
|
-
* @param {string} slug The slug of the number
|
|
445
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
446
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
447
424
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
448
425
|
* @param {*} [options] Override http request option.
|
|
449
426
|
* @throws {RequiredError}
|
|
450
427
|
*/
|
|
451
|
-
createNumber: function (
|
|
428
|
+
createNumber: function (authorization, options) {
|
|
452
429
|
return __awaiter(this, void 0, void 0, function () {
|
|
453
430
|
var localVarAxiosArgs;
|
|
454
431
|
return __generator(this, function (_a) {
|
|
455
432
|
switch (_a.label) {
|
|
456
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createNumber(
|
|
433
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createNumber(authorization, options)];
|
|
457
434
|
case 1:
|
|
458
435
|
localVarAxiosArgs = _a.sent();
|
|
459
436
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -513,17 +490,17 @@ var NumbersApiFp = function (configuration) {
|
|
|
513
490
|
/**
|
|
514
491
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
515
492
|
* @summary Lookup entity number
|
|
516
|
-
* @param {
|
|
493
|
+
* @param {object} body
|
|
517
494
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
518
495
|
* @param {*} [options] Override http request option.
|
|
519
496
|
* @throws {RequiredError}
|
|
520
497
|
*/
|
|
521
|
-
lookupNumber: function (
|
|
498
|
+
lookupNumber: function (body, authorization, options) {
|
|
522
499
|
return __awaiter(this, void 0, void 0, function () {
|
|
523
500
|
var localVarAxiosArgs;
|
|
524
501
|
return __generator(this, function (_a) {
|
|
525
502
|
switch (_a.label) {
|
|
526
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.lookupNumber(
|
|
503
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.lookupNumber(body, authorization, options)];
|
|
527
504
|
case 1:
|
|
528
505
|
localVarAxiosArgs = _a.sent();
|
|
529
506
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -534,17 +511,17 @@ var NumbersApiFp = function (configuration) {
|
|
|
534
511
|
/**
|
|
535
512
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
536
513
|
* @summary Reset entity number
|
|
537
|
-
* @param {
|
|
514
|
+
* @param {object} body
|
|
538
515
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
539
516
|
* @param {*} [options] Override http request option.
|
|
540
517
|
* @throws {RequiredError}
|
|
541
518
|
*/
|
|
542
|
-
resetNumber: function (
|
|
519
|
+
resetNumber: function (body, authorization, options) {
|
|
543
520
|
return __awaiter(this, void 0, void 0, function () {
|
|
544
521
|
var localVarAxiosArgs;
|
|
545
522
|
return __generator(this, function (_a) {
|
|
546
523
|
switch (_a.label) {
|
|
547
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetNumber(
|
|
524
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetNumber(body, authorization, options)];
|
|
548
525
|
case 1:
|
|
549
526
|
localVarAxiosArgs = _a.sent();
|
|
550
527
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -586,15 +563,12 @@ var NumbersApiFactory = function (configuration, basePath, axios) {
|
|
|
586
563
|
/**
|
|
587
564
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
588
565
|
* @summary Create the number
|
|
589
|
-
* @param {string} slug The slug of the number
|
|
590
|
-
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
591
|
-
* @param {object} config Configuration object that varies based on the type field
|
|
592
566
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
567
|
* @param {*} [options] Override http request option.
|
|
594
568
|
* @throws {RequiredError}
|
|
595
569
|
*/
|
|
596
|
-
createNumber: function (
|
|
597
|
-
return localVarFp.createNumber(
|
|
570
|
+
createNumber: function (authorization, options) {
|
|
571
|
+
return localVarFp.createNumber(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
598
572
|
},
|
|
599
573
|
/**
|
|
600
574
|
* Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
|
|
@@ -628,24 +602,24 @@ var NumbersApiFactory = function (configuration, basePath, axios) {
|
|
|
628
602
|
/**
|
|
629
603
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
630
604
|
* @summary Lookup entity number
|
|
631
|
-
* @param {
|
|
605
|
+
* @param {object} body
|
|
632
606
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
633
607
|
* @param {*} [options] Override http request option.
|
|
634
608
|
* @throws {RequiredError}
|
|
635
609
|
*/
|
|
636
|
-
lookupNumber: function (
|
|
637
|
-
return localVarFp.lookupNumber(
|
|
610
|
+
lookupNumber: function (body, authorization, options) {
|
|
611
|
+
return localVarFp.lookupNumber(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
638
612
|
},
|
|
639
613
|
/**
|
|
640
614
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
641
615
|
* @summary Reset entity number
|
|
642
|
-
* @param {
|
|
616
|
+
* @param {object} body
|
|
643
617
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
644
618
|
* @param {*} [options] Override http request option.
|
|
645
619
|
* @throws {RequiredError}
|
|
646
620
|
*/
|
|
647
|
-
resetNumber: function (
|
|
648
|
-
return localVarFp.resetNumber(
|
|
621
|
+
resetNumber: function (body, authorization, options) {
|
|
622
|
+
return localVarFp.resetNumber(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
649
623
|
},
|
|
650
624
|
/**
|
|
651
625
|
* This will update an entity number in the database.
|
|
@@ -682,7 +656,8 @@ var NumbersApi = /** @class */ (function (_super) {
|
|
|
682
656
|
*/
|
|
683
657
|
NumbersApi.prototype.createNumber = function (requestParameters, options) {
|
|
684
658
|
var _this = this;
|
|
685
|
-
|
|
659
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
660
|
+
return (0, exports.NumbersApiFp)(this.configuration).createNumber(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
686
661
|
};
|
|
687
662
|
/**
|
|
688
663
|
* Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
|
|
@@ -719,7 +694,7 @@ var NumbersApi = /** @class */ (function (_super) {
|
|
|
719
694
|
*/
|
|
720
695
|
NumbersApi.prototype.lookupNumber = function (requestParameters, options) {
|
|
721
696
|
var _this = this;
|
|
722
|
-
return (0, exports.NumbersApiFp)(this.configuration).lookupNumber(requestParameters.
|
|
697
|
+
return (0, exports.NumbersApiFp)(this.configuration).lookupNumber(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
723
698
|
};
|
|
724
699
|
/**
|
|
725
700
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
@@ -731,7 +706,7 @@ var NumbersApi = /** @class */ (function (_super) {
|
|
|
731
706
|
*/
|
|
732
707
|
NumbersApi.prototype.resetNumber = function (requestParameters, options) {
|
|
733
708
|
var _this = this;
|
|
734
|
-
return (0, exports.NumbersApiFp)(this.configuration).resetNumber(requestParameters.
|
|
709
|
+
return (0, exports.NumbersApiFp)(this.configuration).resetNumber(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
735
710
|
};
|
|
736
711
|
/**
|
|
737
712
|
* This will update an entity number in the database.
|
package/dist/base.js
CHANGED
|
@@ -189,9 +189,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
189
189
|
// Only store if no workspace switch (since switchWorkspace will store after switching)
|
|
190
190
|
this.storeTokenData(__assign({}, this.tokenData));
|
|
191
191
|
_b.label = 4;
|
|
192
|
-
case 4:
|
|
193
|
-
this.storeTokenData(__assign({}, this.tokenData));
|
|
194
|
-
return [2 /*return*/];
|
|
192
|
+
case 4: return [2 /*return*/];
|
|
195
193
|
}
|
|
196
194
|
});
|
|
197
195
|
});
|
package/dist/common.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
66
|
/**
|
|
67
67
|
* EMIL Number Generator Service
|
|
68
68
|
* The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,4 @@ export * from './get-number-response-class';
|
|
|
4
4
|
export * from './inline-response200';
|
|
5
5
|
export * from './inline-response503';
|
|
6
6
|
export * from './list-numbers-response-class';
|
|
7
|
-
export * from './lookup-number-request-dto';
|
|
8
|
-
export * from './reset-number-request-dto';
|
|
9
7
|
export * from './update-number-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,4 @@ __exportStar(require("./get-number-response-class"), exports);
|
|
|
20
20
|
__exportStar(require("./inline-response200"), exports);
|
|
21
21
|
__exportStar(require("./inline-response503"), exports);
|
|
22
22
|
__exportStar(require("./list-numbers-response-class"), exports);
|
|
23
|
-
__exportStar(require("./lookup-number-request-dto"), exports);
|
|
24
|
-
__exportStar(require("./reset-number-request-dto"), exports);
|
|
25
23
|
__exportStar(require("./update-number-response-class"), exports);
|
package/models/index.ts
CHANGED
|
@@ -4,6 +4,4 @@ export * from './get-number-response-class';
|
|
|
4
4
|
export * from './inline-response200';
|
|
5
5
|
export * from './inline-response503';
|
|
6
6
|
export * from './list-numbers-response-class';
|
|
7
|
-
export * from './lookup-number-request-dto';
|
|
8
|
-
export * from './reset-number-request-dto';
|
|
9
7
|
export * from './update-number-response-class';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/numbergenerator-sdk",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.2",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/numbergenerator-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^
|
|
21
|
+
"axios": "^0.27.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^4.0"
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL Number Generator Service
|
|
3
|
-
* The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface LookupNumberRequestDto
|
|
16
|
-
*/
|
|
17
|
-
export interface LookupNumberRequestDto {
|
|
18
|
-
/**
|
|
19
|
-
* The slug of the number
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof LookupNumberRequestDto
|
|
22
|
-
*/
|
|
23
|
-
'slug': string;
|
|
24
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL Number Generator Service
|
|
6
|
-
* The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL Number Generator Service
|
|
3
|
-
* The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ResetNumberRequestDto
|
|
16
|
-
*/
|
|
17
|
-
export interface ResetNumberRequestDto {
|
|
18
|
-
/**
|
|
19
|
-
* The slug of the number
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ResetNumberRequestDto
|
|
22
|
-
*/
|
|
23
|
-
'slug': string;
|
|
24
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL Number Generator Service
|
|
6
|
-
* The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL Number Generator Service
|
|
5
|
-
* The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface LookupNumberRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface LookupNumberRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* The slug of the number
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof LookupNumberRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'slug': string;
|
|
29
|
-
}
|
|
30
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL Number Generator Service
|
|
5
|
-
* The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface ResetNumberRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface ResetNumberRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* The slug of the number
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof ResetNumberRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'slug': string;
|
|
29
|
-
}
|
|
30
|
-
|