@vbasoftware/vbapi-vbasoftware-typescript-axios 1.20240120.1 → 1.20240302.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/api/adv-workflow-api.ts +456 -0
  3. package/api/benefits-api.ts +122 -0
  4. package/api/client-config-api.ts +869 -0
  5. package/api/commission-rates-api.ts +8 -18
  6. package/api/group-ucpercent-criterias-api.ts +677 -0
  7. package/api/process-automation-api.ts +365 -0
  8. package/api/support-api.ts +532 -0
  9. package/api/user-api.ts +0 -96
  10. package/api/vbareports-api.ts +155 -0
  11. package/api.ts +6 -0
  12. package/models/auth.ts +29 -5
  13. package/models/callback-dto.ts +43 -0
  14. package/models/company-data.ts +14 -2
  15. package/models/database-connection.ts +36 -0
  16. package/models/email-report-dto.ts +103 -0
  17. package/models/fax-report-dto.ts +85 -0
  18. package/models/group-ucpercent-criteria-list-vbaresponse.ts +45 -0
  19. package/models/group-ucpercent-criteria-vbaresponse.ts +45 -0
  20. package/models/group-ucpercent-criteria.ts +84 -0
  21. package/models/groups.ts +6 -0
  22. package/models/index.ts +24 -0
  23. package/models/json-node-options.ts +30 -0
  24. package/models/json-node.ts +43 -0
  25. package/models/json-value.ts +44 -0
  26. package/models/report-series-step.ts +6 -0
  27. package/models/smsdto.ts +67 -0
  28. package/models/ssoconfig-list-vbaresponse.ts +45 -0
  29. package/models/ssoconfig-vbaresponse.ts +45 -0
  30. package/models/ssoconfig.ts +84 -0
  31. package/models/users.ts +13 -1
  32. package/models/vbaclient-environment-list-vbaresponse.ts +45 -0
  33. package/models/vbaclient-environment.ts +37 -0
  34. package/models/vbaclient-list-vbaresponse.ts +45 -0
  35. package/models/vbaclient-vbaresponse.ts +45 -0
  36. package/models/vbaclient.ts +55 -0
  37. package/models/vbareport-list-vbaresponse.ts +45 -0
  38. package/models/vbareport.ts +60 -0
  39. package/models/vbassologin-config.ts +42 -0
  40. package/models/workflow-claim.ts +60 -0
  41. package/models/workflow-processing.ts +49 -0
  42. package/package.json +1 -1
@@ -0,0 +1,365 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * VBASoftware
5
+ * APIs for VBASoftware
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
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
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { EmailReportDTO } from '../models';
25
+ // @ts-ignore
26
+ import { FaxReportDTO } from '../models';
27
+ // @ts-ignore
28
+ import { SMSDTO } from '../models';
29
+ // @ts-ignore
30
+ import { StringVBAResponse } from '../models';
31
+ /**
32
+ * ProcessAutomationApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const ProcessAutomationApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * Sends an email with attached report
39
+ * @summary Send Report Email
40
+ * @param {string} vbasoftwareDatabase Target database
41
+ * @param {EmailReportDTO} emailReportDTO
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ sendReportEmail: async (vbasoftwareDatabase: string, emailReportDTO: EmailReportDTO, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
47
+ assertParamExists('sendReportEmail', 'vbasoftwareDatabase', vbasoftwareDatabase)
48
+ // verify required parameter 'emailReportDTO' is not null or undefined
49
+ assertParamExists('sendReportEmail', 'emailReportDTO', emailReportDTO)
50
+ const localVarPath = `/process-automation/report/email`;
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ }
57
+
58
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
+ const localVarHeaderParameter = {} as any;
60
+ const localVarQueryParameter = {} as any;
61
+
62
+ // authentication apiKeyAuth required
63
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
64
+
65
+ // authentication bearerAuth required
66
+ // http bearer authentication required
67
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
68
+
69
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
70
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
71
+ }
72
+
73
+
74
+
75
+ localVarHeaderParameter['Content-Type'] = 'application/json';
76
+
77
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
78
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
79
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
80
+ localVarRequestOptions.data = serializeDataIfNeeded(emailReportDTO, localVarRequestOptions, configuration)
81
+
82
+ return {
83
+ url: toPathString(localVarUrlObj),
84
+ options: localVarRequestOptions,
85
+ };
86
+ },
87
+ /**
88
+ * Sends a report via fax
89
+ * @summary Send Report Fax
90
+ * @param {string} vbasoftwareDatabase Target database
91
+ * @param {FaxReportDTO} faxReportDTO
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ sendReportFax: async (vbasoftwareDatabase: string, faxReportDTO: FaxReportDTO, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
97
+ assertParamExists('sendReportFax', 'vbasoftwareDatabase', vbasoftwareDatabase)
98
+ // verify required parameter 'faxReportDTO' is not null or undefined
99
+ assertParamExists('sendReportFax', 'faxReportDTO', faxReportDTO)
100
+ const localVarPath = `/process-automation/report/fax`;
101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
+ let baseOptions;
104
+ if (configuration) {
105
+ baseOptions = configuration.baseOptions;
106
+ }
107
+
108
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
109
+ const localVarHeaderParameter = {} as any;
110
+ const localVarQueryParameter = {} as any;
111
+
112
+ // authentication apiKeyAuth required
113
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
114
+
115
+ // authentication bearerAuth required
116
+ // http bearer authentication required
117
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
118
+
119
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
120
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
121
+ }
122
+
123
+
124
+
125
+ localVarHeaderParameter['Content-Type'] = 'application/json';
126
+
127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
130
+ localVarRequestOptions.data = serializeDataIfNeeded(faxReportDTO, localVarRequestOptions, configuration)
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * Sends or schedules an SMS
139
+ * @summary Send or schedule SMS
140
+ * @param {string} vbasoftwareDatabase Target database
141
+ * @param {SMSDTO} sMSDTO
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ sendSMS: async (vbasoftwareDatabase: string, sMSDTO: SMSDTO, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
147
+ assertParamExists('sendSMS', 'vbasoftwareDatabase', vbasoftwareDatabase)
148
+ // verify required parameter 'sMSDTO' is not null or undefined
149
+ assertParamExists('sendSMS', 'sMSDTO', sMSDTO)
150
+ const localVarPath = `/process-automation/sms`;
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+
158
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
159
+ const localVarHeaderParameter = {} as any;
160
+ const localVarQueryParameter = {} as any;
161
+
162
+ // authentication apiKeyAuth required
163
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
164
+
165
+ // authentication bearerAuth required
166
+ // http bearer authentication required
167
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
+
169
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
170
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
171
+ }
172
+
173
+
174
+
175
+ localVarHeaderParameter['Content-Type'] = 'application/json';
176
+
177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
179
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
180
+ localVarRequestOptions.data = serializeDataIfNeeded(sMSDTO, localVarRequestOptions, configuration)
181
+
182
+ return {
183
+ url: toPathString(localVarUrlObj),
184
+ options: localVarRequestOptions,
185
+ };
186
+ },
187
+ }
188
+ };
189
+
190
+ /**
191
+ * ProcessAutomationApi - functional programming interface
192
+ * @export
193
+ */
194
+ export const ProcessAutomationApiFp = function(configuration?: Configuration) {
195
+ const localVarAxiosParamCreator = ProcessAutomationApiAxiosParamCreator(configuration)
196
+ return {
197
+ /**
198
+ * Sends an email with attached report
199
+ * @summary Send Report Email
200
+ * @param {string} vbasoftwareDatabase Target database
201
+ * @param {EmailReportDTO} emailReportDTO
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ async sendReportEmail(vbasoftwareDatabase: string, emailReportDTO: EmailReportDTO, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StringVBAResponse>> {
206
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendReportEmail(vbasoftwareDatabase, emailReportDTO, options);
207
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
208
+ },
209
+ /**
210
+ * Sends a report via fax
211
+ * @summary Send Report Fax
212
+ * @param {string} vbasoftwareDatabase Target database
213
+ * @param {FaxReportDTO} faxReportDTO
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ async sendReportFax(vbasoftwareDatabase: string, faxReportDTO: FaxReportDTO, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StringVBAResponse>> {
218
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendReportFax(vbasoftwareDatabase, faxReportDTO, options);
219
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
220
+ },
221
+ /**
222
+ * Sends or schedules an SMS
223
+ * @summary Send or schedule SMS
224
+ * @param {string} vbasoftwareDatabase Target database
225
+ * @param {SMSDTO} sMSDTO
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ async sendSMS(vbasoftwareDatabase: string, sMSDTO: SMSDTO, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StringVBAResponse>> {
230
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendSMS(vbasoftwareDatabase, sMSDTO, options);
231
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
232
+ },
233
+ }
234
+ };
235
+
236
+ /**
237
+ * ProcessAutomationApi - factory interface
238
+ * @export
239
+ */
240
+ export const ProcessAutomationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
241
+ const localVarFp = ProcessAutomationApiFp(configuration)
242
+ return {
243
+ /**
244
+ * Sends an email with attached report
245
+ * @summary Send Report Email
246
+ * @param {string} vbasoftwareDatabase Target database
247
+ * @param {EmailReportDTO} emailReportDTO
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ sendReportEmail(vbasoftwareDatabase: string, emailReportDTO: EmailReportDTO, options?: any): AxiosPromise<StringVBAResponse> {
252
+ return localVarFp.sendReportEmail(vbasoftwareDatabase, emailReportDTO, options).then((request) => request(axios, basePath));
253
+ },
254
+ /**
255
+ * Sends a report via fax
256
+ * @summary Send Report Fax
257
+ * @param {string} vbasoftwareDatabase Target database
258
+ * @param {FaxReportDTO} faxReportDTO
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ sendReportFax(vbasoftwareDatabase: string, faxReportDTO: FaxReportDTO, options?: any): AxiosPromise<StringVBAResponse> {
263
+ return localVarFp.sendReportFax(vbasoftwareDatabase, faxReportDTO, options).then((request) => request(axios, basePath));
264
+ },
265
+ /**
266
+ * Sends or schedules an SMS
267
+ * @summary Send or schedule SMS
268
+ * @param {string} vbasoftwareDatabase Target database
269
+ * @param {SMSDTO} sMSDTO
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ sendSMS(vbasoftwareDatabase: string, sMSDTO: SMSDTO, options?: any): AxiosPromise<StringVBAResponse> {
274
+ return localVarFp.sendSMS(vbasoftwareDatabase, sMSDTO, options).then((request) => request(axios, basePath));
275
+ },
276
+ };
277
+ };
278
+
279
+ /**
280
+ * ProcessAutomationApi - interface
281
+ * @export
282
+ * @interface ProcessAutomationApi
283
+ */
284
+ export interface ProcessAutomationApiInterface {
285
+ /**
286
+ * Sends an email with attached report
287
+ * @summary Send Report Email
288
+ * @param {string} vbasoftwareDatabase Target database
289
+ * @param {EmailReportDTO} emailReportDTO
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ * @memberof ProcessAutomationApiInterface
293
+ */
294
+ sendReportEmail(vbasoftwareDatabase: string, emailReportDTO: EmailReportDTO, options?: AxiosRequestConfig): AxiosPromise<StringVBAResponse>;
295
+
296
+ /**
297
+ * Sends a report via fax
298
+ * @summary Send Report Fax
299
+ * @param {string} vbasoftwareDatabase Target database
300
+ * @param {FaxReportDTO} faxReportDTO
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ * @memberof ProcessAutomationApiInterface
304
+ */
305
+ sendReportFax(vbasoftwareDatabase: string, faxReportDTO: FaxReportDTO, options?: AxiosRequestConfig): AxiosPromise<StringVBAResponse>;
306
+
307
+ /**
308
+ * Sends or schedules an SMS
309
+ * @summary Send or schedule SMS
310
+ * @param {string} vbasoftwareDatabase Target database
311
+ * @param {SMSDTO} sMSDTO
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof ProcessAutomationApiInterface
315
+ */
316
+ sendSMS(vbasoftwareDatabase: string, sMSDTO: SMSDTO, options?: AxiosRequestConfig): AxiosPromise<StringVBAResponse>;
317
+
318
+ }
319
+
320
+ /**
321
+ * ProcessAutomationApi - object-oriented interface
322
+ * @export
323
+ * @class ProcessAutomationApi
324
+ * @extends {BaseAPI}
325
+ */
326
+ export class ProcessAutomationApi extends BaseAPI implements ProcessAutomationApiInterface {
327
+ /**
328
+ * Sends an email with attached report
329
+ * @summary Send Report Email
330
+ * @param {string} vbasoftwareDatabase Target database
331
+ * @param {EmailReportDTO} emailReportDTO
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ * @memberof ProcessAutomationApi
335
+ */
336
+ public sendReportEmail(vbasoftwareDatabase: string, emailReportDTO: EmailReportDTO, options?: AxiosRequestConfig) {
337
+ return ProcessAutomationApiFp(this.configuration).sendReportEmail(vbasoftwareDatabase, emailReportDTO, options).then((request) => request(this.axios, this.basePath));
338
+ }
339
+
340
+ /**
341
+ * Sends a report via fax
342
+ * @summary Send Report Fax
343
+ * @param {string} vbasoftwareDatabase Target database
344
+ * @param {FaxReportDTO} faxReportDTO
345
+ * @param {*} [options] Override http request option.
346
+ * @throws {RequiredError}
347
+ * @memberof ProcessAutomationApi
348
+ */
349
+ public sendReportFax(vbasoftwareDatabase: string, faxReportDTO: FaxReportDTO, options?: AxiosRequestConfig) {
350
+ return ProcessAutomationApiFp(this.configuration).sendReportFax(vbasoftwareDatabase, faxReportDTO, options).then((request) => request(this.axios, this.basePath));
351
+ }
352
+
353
+ /**
354
+ * Sends or schedules an SMS
355
+ * @summary Send or schedule SMS
356
+ * @param {string} vbasoftwareDatabase Target database
357
+ * @param {SMSDTO} sMSDTO
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ * @memberof ProcessAutomationApi
361
+ */
362
+ public sendSMS(vbasoftwareDatabase: string, sMSDTO: SMSDTO, options?: AxiosRequestConfig) {
363
+ return ProcessAutomationApiFp(this.configuration).sendSMS(vbasoftwareDatabase, sMSDTO, options).then((request) => request(this.axios, this.basePath));
364
+ }
365
+ }