@emilgroup/numbergenerator-sdk-node 1.3.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +24 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +2 -2
- package/api/default-api.ts +124 -0
- package/api/numbers-api.ts +825 -0
- package/api.ts +33 -0
- package/base.ts +327 -0
- package/common.ts +199 -0
- package/configuration.ts +118 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/numbers-api.d.ts +457 -0
- package/dist/api/numbers-api.js +755 -0
- package/dist/api.d.ts +13 -0
- package/dist/api.js +31 -0
- package/dist/base.d.ts +88 -0
- package/dist/base.js +434 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +96 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-number-response-class.d.ts +25 -0
- package/dist/models/create-number-response-class.js +15 -0
- package/dist/models/entity-number-class.d.ts +66 -0
- package/dist/models/entity-number-class.js +21 -0
- package/dist/models/get-number-response-class.d.ts +25 -0
- package/dist/models/get-number-response-class.js +15 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +25 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-numbers-response-class.d.ts +31 -0
- package/dist/models/list-numbers-response-class.js +15 -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/dist/models/update-number-response-class.d.ts +25 -0
- package/dist/models/update-number-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-number-response-class.ts +31 -0
- package/models/entity-number-class.ts +75 -0
- package/models/get-number-response-class.ts +31 -0
- package/models/index.ts +9 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-numbers-response-class.ts +37 -0
- package/models/lookup-number-request-dto.ts +30 -0
- package/models/reset-number-request-dto.ts +30 -0
- package/models/update-number-response-class.ts +31 -0
- package/package.json +24 -8
- package/tsconfig.json +23 -0
- package/index.js +0 -99
- package/scripts/deploy.js +0 -246
|
@@ -0,0 +1,457 @@
|
|
|
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
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateNumberResponseClass } from '../models';
|
|
16
|
+
import { GetNumberResponseClass } from '../models';
|
|
17
|
+
import { ListNumbersResponseClass } from '../models';
|
|
18
|
+
import { LookupNumberRequestDto } from '../models';
|
|
19
|
+
import { ResetNumberRequestDto } from '../models';
|
|
20
|
+
import { UpdateNumberResponseClass } from '../models';
|
|
21
|
+
/**
|
|
22
|
+
* NumbersApi - axios parameter creator
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const NumbersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
|
+
/**
|
|
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.
|
|
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
|
|
32
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
createNumber: (slug: string, type: string, config: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
+
/**
|
|
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.
|
|
39
|
+
* @summary Retrieve the number
|
|
40
|
+
* @param {string} code Unique identifier for the object.
|
|
41
|
+
* @param {string} expand
|
|
42
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
getNumber: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
* @summary List Numbers
|
|
50
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
51
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
52
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
53
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
54
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
55
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
56
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
57
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
listNumbers: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
|
+
/**
|
|
63
|
+
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
64
|
+
* @summary Lookup entity number
|
|
65
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
66
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
lookupNumber: (lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
|
+
/**
|
|
72
|
+
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
73
|
+
* @summary Reset entity number
|
|
74
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
75
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
resetNumber: (resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
|
+
/**
|
|
81
|
+
* This will update an entity number in the database.
|
|
82
|
+
* @summary Update the number
|
|
83
|
+
* @param {string} code Unique identifier for the object.
|
|
84
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
updateNumber: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* NumbersApi - functional programming interface
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const NumbersApiFp: (configuration?: Configuration) => {
|
|
95
|
+
/**
|
|
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
|
+
* @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
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
createNumber(slug: string, type: string, config: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>>;
|
|
106
|
+
/**
|
|
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.
|
|
108
|
+
* @summary Retrieve the number
|
|
109
|
+
* @param {string} code Unique identifier for the object.
|
|
110
|
+
* @param {string} expand
|
|
111
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getNumber(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNumberResponseClass>>;
|
|
116
|
+
/**
|
|
117
|
+
* 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.
|
|
118
|
+
* @summary List Numbers
|
|
119
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
120
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
121
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
122
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
123
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
124
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
125
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
126
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
130
|
+
listNumbers(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNumbersResponseClass>>;
|
|
131
|
+
/**
|
|
132
|
+
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
133
|
+
* @summary Lookup entity number
|
|
134
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
135
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
lookupNumber(lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
140
|
+
/**
|
|
141
|
+
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
142
|
+
* @summary Reset entity number
|
|
143
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
144
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
resetNumber(resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
149
|
+
/**
|
|
150
|
+
* This will update an entity number in the database.
|
|
151
|
+
* @summary Update the number
|
|
152
|
+
* @param {string} code Unique identifier for the object.
|
|
153
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
updateNumber(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateNumberResponseClass>>;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* NumbersApi - factory interface
|
|
161
|
+
* @export
|
|
162
|
+
*/
|
|
163
|
+
export declare const NumbersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
164
|
+
/**
|
|
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.
|
|
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
|
|
170
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
*/
|
|
174
|
+
createNumber(slug: string, type: string, config: object, authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass>;
|
|
175
|
+
/**
|
|
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.
|
|
177
|
+
* @summary Retrieve the number
|
|
178
|
+
* @param {string} code Unique identifier for the object.
|
|
179
|
+
* @param {string} expand
|
|
180
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
getNumber(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetNumberResponseClass>;
|
|
185
|
+
/**
|
|
186
|
+
* 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.
|
|
187
|
+
* @summary List Numbers
|
|
188
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
191
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
192
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
193
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
194
|
+
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
195
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
listNumbers(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListNumbersResponseClass>;
|
|
200
|
+
/**
|
|
201
|
+
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
202
|
+
* @summary Lookup entity number
|
|
203
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
204
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
lookupNumber(lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
209
|
+
/**
|
|
210
|
+
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
211
|
+
* @summary Reset entity number
|
|
212
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
213
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
resetNumber(resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
218
|
+
/**
|
|
219
|
+
* This will update an entity number in the database.
|
|
220
|
+
* @summary Update the number
|
|
221
|
+
* @param {string} code Unique identifier for the object.
|
|
222
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
updateNumber(code: string, authorization?: string, options?: any): AxiosPromise<UpdateNumberResponseClass>;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* Request parameters for createNumber operation in NumbersApi.
|
|
230
|
+
* @export
|
|
231
|
+
* @interface NumbersApiCreateNumberRequest
|
|
232
|
+
*/
|
|
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;
|
|
252
|
+
/**
|
|
253
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
|
+
* @type {string}
|
|
255
|
+
* @memberof NumbersApiCreateNumber
|
|
256
|
+
*/
|
|
257
|
+
readonly authorization?: string;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Request parameters for getNumber operation in NumbersApi.
|
|
261
|
+
* @export
|
|
262
|
+
* @interface NumbersApiGetNumberRequest
|
|
263
|
+
*/
|
|
264
|
+
export interface NumbersApiGetNumberRequest {
|
|
265
|
+
/**
|
|
266
|
+
* Unique identifier for the object.
|
|
267
|
+
* @type {string}
|
|
268
|
+
* @memberof NumbersApiGetNumber
|
|
269
|
+
*/
|
|
270
|
+
readonly code: string;
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @type {string}
|
|
274
|
+
* @memberof NumbersApiGetNumber
|
|
275
|
+
*/
|
|
276
|
+
readonly expand: string;
|
|
277
|
+
/**
|
|
278
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @memberof NumbersApiGetNumber
|
|
281
|
+
*/
|
|
282
|
+
readonly authorization?: string;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Request parameters for listNumbers operation in NumbersApi.
|
|
286
|
+
* @export
|
|
287
|
+
* @interface NumbersApiListNumbersRequest
|
|
288
|
+
*/
|
|
289
|
+
export interface NumbersApiListNumbersRequest {
|
|
290
|
+
/**
|
|
291
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @memberof NumbersApiListNumbers
|
|
294
|
+
*/
|
|
295
|
+
readonly authorization?: string;
|
|
296
|
+
/**
|
|
297
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
298
|
+
* @type {number}
|
|
299
|
+
* @memberof NumbersApiListNumbers
|
|
300
|
+
*/
|
|
301
|
+
readonly pageSize?: number;
|
|
302
|
+
/**
|
|
303
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
304
|
+
* @type {string}
|
|
305
|
+
* @memberof NumbersApiListNumbers
|
|
306
|
+
*/
|
|
307
|
+
readonly pageToken?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
310
|
+
* @type {string}
|
|
311
|
+
* @memberof NumbersApiListNumbers
|
|
312
|
+
*/
|
|
313
|
+
readonly filter?: string;
|
|
314
|
+
/**
|
|
315
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof NumbersApiListNumbers
|
|
318
|
+
*/
|
|
319
|
+
readonly search?: string;
|
|
320
|
+
/**
|
|
321
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof NumbersApiListNumbers
|
|
324
|
+
*/
|
|
325
|
+
readonly order?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof NumbersApiListNumbers
|
|
330
|
+
*/
|
|
331
|
+
readonly expand?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
334
|
+
* @type {string}
|
|
335
|
+
* @memberof NumbersApiListNumbers
|
|
336
|
+
*/
|
|
337
|
+
readonly filters?: string;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Request parameters for lookupNumber operation in NumbersApi.
|
|
341
|
+
* @export
|
|
342
|
+
* @interface NumbersApiLookupNumberRequest
|
|
343
|
+
*/
|
|
344
|
+
export interface NumbersApiLookupNumberRequest {
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* @type {LookupNumberRequestDto}
|
|
348
|
+
* @memberof NumbersApiLookupNumber
|
|
349
|
+
*/
|
|
350
|
+
readonly lookupNumberRequestDto: LookupNumberRequestDto;
|
|
351
|
+
/**
|
|
352
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
|
+
* @type {string}
|
|
354
|
+
* @memberof NumbersApiLookupNumber
|
|
355
|
+
*/
|
|
356
|
+
readonly authorization?: string;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Request parameters for resetNumber operation in NumbersApi.
|
|
360
|
+
* @export
|
|
361
|
+
* @interface NumbersApiResetNumberRequest
|
|
362
|
+
*/
|
|
363
|
+
export interface NumbersApiResetNumberRequest {
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @type {ResetNumberRequestDto}
|
|
367
|
+
* @memberof NumbersApiResetNumber
|
|
368
|
+
*/
|
|
369
|
+
readonly resetNumberRequestDto: ResetNumberRequestDto;
|
|
370
|
+
/**
|
|
371
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
372
|
+
* @type {string}
|
|
373
|
+
* @memberof NumbersApiResetNumber
|
|
374
|
+
*/
|
|
375
|
+
readonly authorization?: string;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Request parameters for updateNumber operation in NumbersApi.
|
|
379
|
+
* @export
|
|
380
|
+
* @interface NumbersApiUpdateNumberRequest
|
|
381
|
+
*/
|
|
382
|
+
export interface NumbersApiUpdateNumberRequest {
|
|
383
|
+
/**
|
|
384
|
+
* Unique identifier for the object.
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof NumbersApiUpdateNumber
|
|
387
|
+
*/
|
|
388
|
+
readonly code: string;
|
|
389
|
+
/**
|
|
390
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
391
|
+
* @type {string}
|
|
392
|
+
* @memberof NumbersApiUpdateNumber
|
|
393
|
+
*/
|
|
394
|
+
readonly authorization?: string;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* NumbersApi - object-oriented interface
|
|
398
|
+
* @export
|
|
399
|
+
* @class NumbersApi
|
|
400
|
+
* @extends {BaseAPI}
|
|
401
|
+
*/
|
|
402
|
+
export declare class NumbersApi extends BaseAPI {
|
|
403
|
+
/**
|
|
404
|
+
* 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.
|
|
405
|
+
* @summary Create the number
|
|
406
|
+
* @param {NumbersApiCreateNumberRequest} requestParameters Request parameters.
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
* @memberof NumbersApi
|
|
410
|
+
*/
|
|
411
|
+
createNumber(requestParameters: NumbersApiCreateNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberResponseClass, any, {}>>;
|
|
412
|
+
/**
|
|
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.
|
|
414
|
+
* @summary Retrieve the number
|
|
415
|
+
* @param {NumbersApiGetNumberRequest} requestParameters Request parameters.
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
* @memberof NumbersApi
|
|
419
|
+
*/
|
|
420
|
+
getNumber(requestParameters: NumbersApiGetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberResponseClass, any, {}>>;
|
|
421
|
+
/**
|
|
422
|
+
* 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
|
+
* @summary List Numbers
|
|
424
|
+
* @param {NumbersApiListNumbersRequest} requestParameters Request parameters.
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
* @memberof NumbersApi
|
|
428
|
+
*/
|
|
429
|
+
listNumbers(requestParameters?: NumbersApiListNumbersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumbersResponseClass, any, {}>>;
|
|
430
|
+
/**
|
|
431
|
+
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
432
|
+
* @summary Lookup entity number
|
|
433
|
+
* @param {NumbersApiLookupNumberRequest} requestParameters Request parameters.
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
* @memberof NumbersApi
|
|
437
|
+
*/
|
|
438
|
+
lookupNumber(requestParameters: NumbersApiLookupNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
439
|
+
/**
|
|
440
|
+
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
441
|
+
* @summary Reset entity number
|
|
442
|
+
* @param {NumbersApiResetNumberRequest} requestParameters Request parameters.
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
* @memberof NumbersApi
|
|
446
|
+
*/
|
|
447
|
+
resetNumber(requestParameters: NumbersApiResetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
448
|
+
/**
|
|
449
|
+
* This will update an entity number in the database.
|
|
450
|
+
* @summary Update the number
|
|
451
|
+
* @param {NumbersApiUpdateNumberRequest} requestParameters Request parameters.
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
* @memberof NumbersApi
|
|
455
|
+
*/
|
|
456
|
+
updateNumber(requestParameters: NumbersApiUpdateNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNumberResponseClass, any, {}>>;
|
|
457
|
+
}
|