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