@vbasoftware/vbapi-vbasoftware-typescript-axios 1.20230117.1 → 1.20230130.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,716 @@
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 { DayInterval } from '../models';
25
+ // @ts-ignore
26
+ import { DayIntervalListVBAResponse } from '../models';
27
+ // @ts-ignore
28
+ import { DayIntervalVBAResponse } from '../models';
29
+ // @ts-ignore
30
+ import { MultiCodeResponseListVBAResponse } from '../models';
31
+ /**
32
+ * DayIntervalsApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const DayIntervalsApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * Creates a new DayInterval
39
+ * @summary Create DayInterval
40
+ * @param {string} vbasoftwareDatabase Target database
41
+ * @param {DayInterval} dayInterval
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ createDayInterval: async (vbasoftwareDatabase: string, dayInterval: DayInterval, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
47
+ assertParamExists('createDayInterval', 'vbasoftwareDatabase', vbasoftwareDatabase)
48
+ // verify required parameter 'dayInterval' is not null or undefined
49
+ assertParamExists('createDayInterval', 'dayInterval', dayInterval)
50
+ const localVarPath = `/day-intervals`;
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(dayInterval, localVarRequestOptions, configuration)
81
+
82
+ return {
83
+ url: toPathString(localVarUrlObj),
84
+ options: localVarRequestOptions,
85
+ };
86
+ },
87
+ /**
88
+ * Deletes an DayInterval
89
+ * @summary Delete DayInterval
90
+ * @param {string} vbasoftwareDatabase Target database
91
+ * @param {number} intervalYear Interval Year
92
+ * @param {number} intervalMonth Interval Month
93
+ * @param {number} intervalDay Interval Day
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ deleteDayInterval: async (vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
99
+ assertParamExists('deleteDayInterval', 'vbasoftwareDatabase', vbasoftwareDatabase)
100
+ // verify required parameter 'intervalYear' is not null or undefined
101
+ assertParamExists('deleteDayInterval', 'intervalYear', intervalYear)
102
+ // verify required parameter 'intervalMonth' is not null or undefined
103
+ assertParamExists('deleteDayInterval', 'intervalMonth', intervalMonth)
104
+ // verify required parameter 'intervalDay' is not null or undefined
105
+ assertParamExists('deleteDayInterval', 'intervalDay', intervalDay)
106
+ const localVarPath = `/day-intervals/{intervalYear}/{intervalMonth}/{intervalDay}`
107
+ .replace(`{${"intervalYear"}}`, encodeURIComponent(String(intervalYear)))
108
+ .replace(`{${"intervalMonth"}}`, encodeURIComponent(String(intervalMonth)))
109
+ .replace(`{${"intervalDay"}}`, encodeURIComponent(String(intervalDay)));
110
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
111
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
112
+ let baseOptions;
113
+ if (configuration) {
114
+ baseOptions = configuration.baseOptions;
115
+ }
116
+
117
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
118
+ const localVarHeaderParameter = {} as any;
119
+ const localVarQueryParameter = {} as any;
120
+
121
+ // authentication apiKeyAuth required
122
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
123
+
124
+ // authentication bearerAuth required
125
+ // http bearer authentication required
126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
127
+
128
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
129
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
130
+ }
131
+
132
+
133
+
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
137
+
138
+ return {
139
+ url: toPathString(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ },
143
+ /**
144
+ * Gets DayInterval
145
+ * @summary Get DayInterval
146
+ * @param {string} vbasoftwareDatabase Target database
147
+ * @param {number} intervalYear Interval Year
148
+ * @param {number} intervalMonth Interval Month
149
+ * @param {number} intervalDay Interval Day
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ getDayInterval: async (vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
154
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
155
+ assertParamExists('getDayInterval', 'vbasoftwareDatabase', vbasoftwareDatabase)
156
+ // verify required parameter 'intervalYear' is not null or undefined
157
+ assertParamExists('getDayInterval', 'intervalYear', intervalYear)
158
+ // verify required parameter 'intervalMonth' is not null or undefined
159
+ assertParamExists('getDayInterval', 'intervalMonth', intervalMonth)
160
+ // verify required parameter 'intervalDay' is not null or undefined
161
+ assertParamExists('getDayInterval', 'intervalDay', intervalDay)
162
+ const localVarPath = `/day-intervals/{intervalYear}/{intervalMonth}/{intervalDay}`
163
+ .replace(`{${"intervalYear"}}`, encodeURIComponent(String(intervalYear)))
164
+ .replace(`{${"intervalMonth"}}`, encodeURIComponent(String(intervalMonth)))
165
+ .replace(`{${"intervalDay"}}`, encodeURIComponent(String(intervalDay)));
166
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
167
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
168
+ let baseOptions;
169
+ if (configuration) {
170
+ baseOptions = configuration.baseOptions;
171
+ }
172
+
173
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
174
+ const localVarHeaderParameter = {} as any;
175
+ const localVarQueryParameter = {} as any;
176
+
177
+ // authentication apiKeyAuth required
178
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
179
+
180
+ // authentication bearerAuth required
181
+ // http bearer authentication required
182
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
183
+
184
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
185
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
186
+ }
187
+
188
+
189
+
190
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
193
+
194
+ return {
195
+ url: toPathString(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ },
199
+ /**
200
+ * Lists all DayInterval
201
+ * @summary List DayInterval
202
+ * @param {string} vbasoftwareDatabase Target database
203
+ * @param {number} [page] Page
204
+ * @param {number} [pageSize] Page Size
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ listDayInterval: async (vbasoftwareDatabase: string, page?: number, pageSize?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
209
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
210
+ assertParamExists('listDayInterval', 'vbasoftwareDatabase', vbasoftwareDatabase)
211
+ const localVarPath = `/day-intervals`;
212
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
213
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
214
+ let baseOptions;
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ }
218
+
219
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
220
+ const localVarHeaderParameter = {} as any;
221
+ const localVarQueryParameter = {} as any;
222
+
223
+ // authentication apiKeyAuth required
224
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
225
+
226
+ // authentication bearerAuth required
227
+ // http bearer authentication required
228
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
229
+
230
+ if (page !== undefined) {
231
+ localVarQueryParameter['page'] = page;
232
+ }
233
+
234
+ if (pageSize !== undefined) {
235
+ localVarQueryParameter['pageSize'] = pageSize;
236
+ }
237
+
238
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
239
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
240
+ }
241
+
242
+
243
+
244
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
246
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
247
+
248
+ return {
249
+ url: toPathString(localVarUrlObj),
250
+ options: localVarRequestOptions,
251
+ };
252
+ },
253
+ /**
254
+ * Create or Update multiple DayInterval at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
255
+ * @summary Create or Update Batch DayInterval
256
+ * @param {string} vbasoftwareDatabase Target database
257
+ * @param {Array<DayInterval>} dayInterval
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ updateBatchDayInterval: async (vbasoftwareDatabase: string, dayInterval: Array<DayInterval>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
262
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
263
+ assertParamExists('updateBatchDayInterval', 'vbasoftwareDatabase', vbasoftwareDatabase)
264
+ // verify required parameter 'dayInterval' is not null or undefined
265
+ assertParamExists('updateBatchDayInterval', 'dayInterval', dayInterval)
266
+ const localVarPath = `/day-intervals-batch`;
267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
269
+ let baseOptions;
270
+ if (configuration) {
271
+ baseOptions = configuration.baseOptions;
272
+ }
273
+
274
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
275
+ const localVarHeaderParameter = {} as any;
276
+ const localVarQueryParameter = {} as any;
277
+
278
+ // authentication apiKeyAuth required
279
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
280
+
281
+ // authentication bearerAuth required
282
+ // http bearer authentication required
283
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
284
+
285
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
286
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
287
+ }
288
+
289
+
290
+
291
+ localVarHeaderParameter['Content-Type'] = 'application/json';
292
+
293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
296
+ localVarRequestOptions.data = serializeDataIfNeeded(dayInterval, localVarRequestOptions, configuration)
297
+
298
+ return {
299
+ url: toPathString(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ },
303
+ /**
304
+ * Updates a specific DayInterval.
305
+ * @summary Update DayInterval
306
+ * @param {string} vbasoftwareDatabase Target database
307
+ * @param {number} intervalYear Interval Year
308
+ * @param {number} intervalMonth Interval Month
309
+ * @param {number} intervalDay Interval Day
310
+ * @param {DayInterval} dayInterval
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ updateDayInterval: async (vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, dayInterval: DayInterval, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
315
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
316
+ assertParamExists('updateDayInterval', 'vbasoftwareDatabase', vbasoftwareDatabase)
317
+ // verify required parameter 'intervalYear' is not null or undefined
318
+ assertParamExists('updateDayInterval', 'intervalYear', intervalYear)
319
+ // verify required parameter 'intervalMonth' is not null or undefined
320
+ assertParamExists('updateDayInterval', 'intervalMonth', intervalMonth)
321
+ // verify required parameter 'intervalDay' is not null or undefined
322
+ assertParamExists('updateDayInterval', 'intervalDay', intervalDay)
323
+ // verify required parameter 'dayInterval' is not null or undefined
324
+ assertParamExists('updateDayInterval', 'dayInterval', dayInterval)
325
+ const localVarPath = `/day-intervals/{intervalYear}/{intervalMonth}/{intervalDay}`
326
+ .replace(`{${"intervalYear"}}`, encodeURIComponent(String(intervalYear)))
327
+ .replace(`{${"intervalMonth"}}`, encodeURIComponent(String(intervalMonth)))
328
+ .replace(`{${"intervalDay"}}`, encodeURIComponent(String(intervalDay)));
329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
330
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
331
+ let baseOptions;
332
+ if (configuration) {
333
+ baseOptions = configuration.baseOptions;
334
+ }
335
+
336
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
337
+ const localVarHeaderParameter = {} as any;
338
+ const localVarQueryParameter = {} as any;
339
+
340
+ // authentication apiKeyAuth required
341
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
342
+
343
+ // authentication bearerAuth required
344
+ // http bearer authentication required
345
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
346
+
347
+ if (vbasoftwareDatabase !== undefined && vbasoftwareDatabase !== null) {
348
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
349
+ }
350
+
351
+
352
+
353
+ localVarHeaderParameter['Content-Type'] = 'application/json';
354
+
355
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
356
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
357
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
358
+ localVarRequestOptions.data = serializeDataIfNeeded(dayInterval, localVarRequestOptions, configuration)
359
+
360
+ return {
361
+ url: toPathString(localVarUrlObj),
362
+ options: localVarRequestOptions,
363
+ };
364
+ },
365
+ }
366
+ };
367
+
368
+ /**
369
+ * DayIntervalsApi - functional programming interface
370
+ * @export
371
+ */
372
+ export const DayIntervalsApiFp = function(configuration?: Configuration) {
373
+ const localVarAxiosParamCreator = DayIntervalsApiAxiosParamCreator(configuration)
374
+ return {
375
+ /**
376
+ * Creates a new DayInterval
377
+ * @summary Create DayInterval
378
+ * @param {string} vbasoftwareDatabase Target database
379
+ * @param {DayInterval} dayInterval
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ async createDayInterval(vbasoftwareDatabase: string, dayInterval: DayInterval, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DayIntervalVBAResponse>> {
384
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createDayInterval(vbasoftwareDatabase, dayInterval, options);
385
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
386
+ },
387
+ /**
388
+ * Deletes an DayInterval
389
+ * @summary Delete DayInterval
390
+ * @param {string} vbasoftwareDatabase Target database
391
+ * @param {number} intervalYear Interval Year
392
+ * @param {number} intervalMonth Interval Month
393
+ * @param {number} intervalDay Interval Day
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ async deleteDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
398
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, options);
399
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
400
+ },
401
+ /**
402
+ * Gets DayInterval
403
+ * @summary Get DayInterval
404
+ * @param {string} vbasoftwareDatabase Target database
405
+ * @param {number} intervalYear Interval Year
406
+ * @param {number} intervalMonth Interval Month
407
+ * @param {number} intervalDay Interval Day
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ async getDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DayIntervalVBAResponse>> {
412
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, options);
413
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
414
+ },
415
+ /**
416
+ * Lists all DayInterval
417
+ * @summary List DayInterval
418
+ * @param {string} vbasoftwareDatabase Target database
419
+ * @param {number} [page] Page
420
+ * @param {number} [pageSize] Page Size
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ async listDayInterval(vbasoftwareDatabase: string, page?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DayIntervalListVBAResponse>> {
425
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDayInterval(vbasoftwareDatabase, page, pageSize, options);
426
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
427
+ },
428
+ /**
429
+ * Create or Update multiple DayInterval at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
430
+ * @summary Create or Update Batch DayInterval
431
+ * @param {string} vbasoftwareDatabase Target database
432
+ * @param {Array<DayInterval>} dayInterval
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ async updateBatchDayInterval(vbasoftwareDatabase: string, dayInterval: Array<DayInterval>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MultiCodeResponseListVBAResponse>> {
437
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBatchDayInterval(vbasoftwareDatabase, dayInterval, options);
438
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
439
+ },
440
+ /**
441
+ * Updates a specific DayInterval.
442
+ * @summary Update DayInterval
443
+ * @param {string} vbasoftwareDatabase Target database
444
+ * @param {number} intervalYear Interval Year
445
+ * @param {number} intervalMonth Interval Month
446
+ * @param {number} intervalDay Interval Day
447
+ * @param {DayInterval} dayInterval
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ async updateDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, dayInterval: DayInterval, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DayIntervalVBAResponse>> {
452
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, dayInterval, options);
453
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
454
+ },
455
+ }
456
+ };
457
+
458
+ /**
459
+ * DayIntervalsApi - factory interface
460
+ * @export
461
+ */
462
+ export const DayIntervalsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
463
+ const localVarFp = DayIntervalsApiFp(configuration)
464
+ return {
465
+ /**
466
+ * Creates a new DayInterval
467
+ * @summary Create DayInterval
468
+ * @param {string} vbasoftwareDatabase Target database
469
+ * @param {DayInterval} dayInterval
470
+ * @param {*} [options] Override http request option.
471
+ * @throws {RequiredError}
472
+ */
473
+ createDayInterval(vbasoftwareDatabase: string, dayInterval: DayInterval, options?: any): AxiosPromise<DayIntervalVBAResponse> {
474
+ return localVarFp.createDayInterval(vbasoftwareDatabase, dayInterval, options).then((request) => request(axios, basePath));
475
+ },
476
+ /**
477
+ * Deletes an DayInterval
478
+ * @summary Delete DayInterval
479
+ * @param {string} vbasoftwareDatabase Target database
480
+ * @param {number} intervalYear Interval Year
481
+ * @param {number} intervalMonth Interval Month
482
+ * @param {number} intervalDay Interval Day
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
486
+ deleteDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options?: any): AxiosPromise<void> {
487
+ return localVarFp.deleteDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, options).then((request) => request(axios, basePath));
488
+ },
489
+ /**
490
+ * Gets DayInterval
491
+ * @summary Get DayInterval
492
+ * @param {string} vbasoftwareDatabase Target database
493
+ * @param {number} intervalYear Interval Year
494
+ * @param {number} intervalMonth Interval Month
495
+ * @param {number} intervalDay Interval Day
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
499
+ getDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options?: any): AxiosPromise<DayIntervalVBAResponse> {
500
+ return localVarFp.getDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, options).then((request) => request(axios, basePath));
501
+ },
502
+ /**
503
+ * Lists all DayInterval
504
+ * @summary List DayInterval
505
+ * @param {string} vbasoftwareDatabase Target database
506
+ * @param {number} [page] Page
507
+ * @param {number} [pageSize] Page Size
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ listDayInterval(vbasoftwareDatabase: string, page?: number, pageSize?: number, options?: any): AxiosPromise<DayIntervalListVBAResponse> {
512
+ return localVarFp.listDayInterval(vbasoftwareDatabase, page, pageSize, options).then((request) => request(axios, basePath));
513
+ },
514
+ /**
515
+ * Create or Update multiple DayInterval at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
516
+ * @summary Create or Update Batch DayInterval
517
+ * @param {string} vbasoftwareDatabase Target database
518
+ * @param {Array<DayInterval>} dayInterval
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ updateBatchDayInterval(vbasoftwareDatabase: string, dayInterval: Array<DayInterval>, options?: any): AxiosPromise<MultiCodeResponseListVBAResponse> {
523
+ return localVarFp.updateBatchDayInterval(vbasoftwareDatabase, dayInterval, options).then((request) => request(axios, basePath));
524
+ },
525
+ /**
526
+ * Updates a specific DayInterval.
527
+ * @summary Update DayInterval
528
+ * @param {string} vbasoftwareDatabase Target database
529
+ * @param {number} intervalYear Interval Year
530
+ * @param {number} intervalMonth Interval Month
531
+ * @param {number} intervalDay Interval Day
532
+ * @param {DayInterval} dayInterval
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ */
536
+ updateDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, dayInterval: DayInterval, options?: any): AxiosPromise<DayIntervalVBAResponse> {
537
+ return localVarFp.updateDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, dayInterval, options).then((request) => request(axios, basePath));
538
+ },
539
+ };
540
+ };
541
+
542
+ /**
543
+ * DayIntervalsApi - interface
544
+ * @export
545
+ * @interface DayIntervalsApi
546
+ */
547
+ export interface DayIntervalsApiInterface {
548
+ /**
549
+ * Creates a new DayInterval
550
+ * @summary Create DayInterval
551
+ * @param {string} vbasoftwareDatabase Target database
552
+ * @param {DayInterval} dayInterval
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ * @memberof DayIntervalsApiInterface
556
+ */
557
+ createDayInterval(vbasoftwareDatabase: string, dayInterval: DayInterval, options?: AxiosRequestConfig): AxiosPromise<DayIntervalVBAResponse>;
558
+
559
+ /**
560
+ * Deletes an DayInterval
561
+ * @summary Delete DayInterval
562
+ * @param {string} vbasoftwareDatabase Target database
563
+ * @param {number} intervalYear Interval Year
564
+ * @param {number} intervalMonth Interval Month
565
+ * @param {number} intervalDay Interval Day
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ * @memberof DayIntervalsApiInterface
569
+ */
570
+ deleteDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options?: AxiosRequestConfig): AxiosPromise<void>;
571
+
572
+ /**
573
+ * Gets DayInterval
574
+ * @summary Get DayInterval
575
+ * @param {string} vbasoftwareDatabase Target database
576
+ * @param {number} intervalYear Interval Year
577
+ * @param {number} intervalMonth Interval Month
578
+ * @param {number} intervalDay Interval Day
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ * @memberof DayIntervalsApiInterface
582
+ */
583
+ getDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options?: AxiosRequestConfig): AxiosPromise<DayIntervalVBAResponse>;
584
+
585
+ /**
586
+ * Lists all DayInterval
587
+ * @summary List DayInterval
588
+ * @param {string} vbasoftwareDatabase Target database
589
+ * @param {number} [page] Page
590
+ * @param {number} [pageSize] Page Size
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ * @memberof DayIntervalsApiInterface
594
+ */
595
+ listDayInterval(vbasoftwareDatabase: string, page?: number, pageSize?: number, options?: AxiosRequestConfig): AxiosPromise<DayIntervalListVBAResponse>;
596
+
597
+ /**
598
+ * Create or Update multiple DayInterval at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
599
+ * @summary Create or Update Batch DayInterval
600
+ * @param {string} vbasoftwareDatabase Target database
601
+ * @param {Array<DayInterval>} dayInterval
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ * @memberof DayIntervalsApiInterface
605
+ */
606
+ updateBatchDayInterval(vbasoftwareDatabase: string, dayInterval: Array<DayInterval>, options?: AxiosRequestConfig): AxiosPromise<MultiCodeResponseListVBAResponse>;
607
+
608
+ /**
609
+ * Updates a specific DayInterval.
610
+ * @summary Update DayInterval
611
+ * @param {string} vbasoftwareDatabase Target database
612
+ * @param {number} intervalYear Interval Year
613
+ * @param {number} intervalMonth Interval Month
614
+ * @param {number} intervalDay Interval Day
615
+ * @param {DayInterval} dayInterval
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ * @memberof DayIntervalsApiInterface
619
+ */
620
+ updateDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, dayInterval: DayInterval, options?: AxiosRequestConfig): AxiosPromise<DayIntervalVBAResponse>;
621
+
622
+ }
623
+
624
+ /**
625
+ * DayIntervalsApi - object-oriented interface
626
+ * @export
627
+ * @class DayIntervalsApi
628
+ * @extends {BaseAPI}
629
+ */
630
+ export class DayIntervalsApi extends BaseAPI implements DayIntervalsApiInterface {
631
+ /**
632
+ * Creates a new DayInterval
633
+ * @summary Create DayInterval
634
+ * @param {string} vbasoftwareDatabase Target database
635
+ * @param {DayInterval} dayInterval
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ * @memberof DayIntervalsApi
639
+ */
640
+ public createDayInterval(vbasoftwareDatabase: string, dayInterval: DayInterval, options?: AxiosRequestConfig) {
641
+ return DayIntervalsApiFp(this.configuration).createDayInterval(vbasoftwareDatabase, dayInterval, options).then((request) => request(this.axios, this.basePath));
642
+ }
643
+
644
+ /**
645
+ * Deletes an DayInterval
646
+ * @summary Delete DayInterval
647
+ * @param {string} vbasoftwareDatabase Target database
648
+ * @param {number} intervalYear Interval Year
649
+ * @param {number} intervalMonth Interval Month
650
+ * @param {number} intervalDay Interval Day
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ * @memberof DayIntervalsApi
654
+ */
655
+ public deleteDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options?: AxiosRequestConfig) {
656
+ return DayIntervalsApiFp(this.configuration).deleteDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, options).then((request) => request(this.axios, this.basePath));
657
+ }
658
+
659
+ /**
660
+ * Gets DayInterval
661
+ * @summary Get DayInterval
662
+ * @param {string} vbasoftwareDatabase Target database
663
+ * @param {number} intervalYear Interval Year
664
+ * @param {number} intervalMonth Interval Month
665
+ * @param {number} intervalDay Interval Day
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ * @memberof DayIntervalsApi
669
+ */
670
+ public getDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, options?: AxiosRequestConfig) {
671
+ return DayIntervalsApiFp(this.configuration).getDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, options).then((request) => request(this.axios, this.basePath));
672
+ }
673
+
674
+ /**
675
+ * Lists all DayInterval
676
+ * @summary List DayInterval
677
+ * @param {string} vbasoftwareDatabase Target database
678
+ * @param {number} [page] Page
679
+ * @param {number} [pageSize] Page Size
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ * @memberof DayIntervalsApi
683
+ */
684
+ public listDayInterval(vbasoftwareDatabase: string, page?: number, pageSize?: number, options?: AxiosRequestConfig) {
685
+ return DayIntervalsApiFp(this.configuration).listDayInterval(vbasoftwareDatabase, page, pageSize, options).then((request) => request(this.axios, this.basePath));
686
+ }
687
+
688
+ /**
689
+ * Create or Update multiple DayInterval at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
690
+ * @summary Create or Update Batch DayInterval
691
+ * @param {string} vbasoftwareDatabase Target database
692
+ * @param {Array<DayInterval>} dayInterval
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ * @memberof DayIntervalsApi
696
+ */
697
+ public updateBatchDayInterval(vbasoftwareDatabase: string, dayInterval: Array<DayInterval>, options?: AxiosRequestConfig) {
698
+ return DayIntervalsApiFp(this.configuration).updateBatchDayInterval(vbasoftwareDatabase, dayInterval, options).then((request) => request(this.axios, this.basePath));
699
+ }
700
+
701
+ /**
702
+ * Updates a specific DayInterval.
703
+ * @summary Update DayInterval
704
+ * @param {string} vbasoftwareDatabase Target database
705
+ * @param {number} intervalYear Interval Year
706
+ * @param {number} intervalMonth Interval Month
707
+ * @param {number} intervalDay Interval Day
708
+ * @param {DayInterval} dayInterval
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ * @memberof DayIntervalsApi
712
+ */
713
+ public updateDayInterval(vbasoftwareDatabase: string, intervalYear: number, intervalMonth: number, intervalDay: number, dayInterval: DayInterval, options?: AxiosRequestConfig) {
714
+ return DayIntervalsApiFp(this.configuration).updateDayInterval(vbasoftwareDatabase, intervalYear, intervalMonth, intervalDay, dayInterval, options).then((request) => request(this.axios, this.basePath));
715
+ }
716
+ }