@gooday_corp/gooday-api-client 1.2.41 → 1.2.44
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/api.ts +829 -47
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2250,6 +2250,67 @@ export interface CreateCalendarPayload {
|
|
|
2250
2250
|
*/
|
|
2251
2251
|
'name': string;
|
|
2252
2252
|
}
|
|
2253
|
+
/**
|
|
2254
|
+
*
|
|
2255
|
+
* @export
|
|
2256
|
+
* @interface CreateCustomerPayloadDTO
|
|
2257
|
+
*/
|
|
2258
|
+
export interface CreateCustomerPayloadDTO {
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @type {string}
|
|
2262
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2263
|
+
*/
|
|
2264
|
+
'firstName'?: string;
|
|
2265
|
+
/**
|
|
2266
|
+
*
|
|
2267
|
+
* @type {string}
|
|
2268
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2269
|
+
*/
|
|
2270
|
+
'lastName'?: string;
|
|
2271
|
+
/**
|
|
2272
|
+
*
|
|
2273
|
+
* @type {string}
|
|
2274
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2275
|
+
*/
|
|
2276
|
+
'email'?: string;
|
|
2277
|
+
/**
|
|
2278
|
+
*
|
|
2279
|
+
* @type {string}
|
|
2280
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2281
|
+
*/
|
|
2282
|
+
'mobileNumber'?: string;
|
|
2283
|
+
/**
|
|
2284
|
+
*
|
|
2285
|
+
* @type {string}
|
|
2286
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2287
|
+
*/
|
|
2288
|
+
'notes'?: string;
|
|
2289
|
+
/**
|
|
2290
|
+
*
|
|
2291
|
+
* @type {string}
|
|
2292
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2293
|
+
*/
|
|
2294
|
+
'goodayId'?: string;
|
|
2295
|
+
/**
|
|
2296
|
+
*
|
|
2297
|
+
* @type {Array<string>}
|
|
2298
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2299
|
+
*/
|
|
2300
|
+
'tags'?: Array<string>;
|
|
2301
|
+
/**
|
|
2302
|
+
*
|
|
2303
|
+
* @type {string}
|
|
2304
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2305
|
+
*/
|
|
2306
|
+
'business': string;
|
|
2307
|
+
/**
|
|
2308
|
+
*
|
|
2309
|
+
* @type {string}
|
|
2310
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2311
|
+
*/
|
|
2312
|
+
'venue': string;
|
|
2313
|
+
}
|
|
2253
2314
|
/**
|
|
2254
2315
|
*
|
|
2255
2316
|
* @export
|
|
@@ -2519,6 +2580,142 @@ export const CreateWaitlistBookingCustomerPayloadStatusEnum = {
|
|
|
2519
2580
|
|
|
2520
2581
|
export type CreateWaitlistBookingCustomerPayloadStatusEnum = typeof CreateWaitlistBookingCustomerPayloadStatusEnum[keyof typeof CreateWaitlistBookingCustomerPayloadStatusEnum];
|
|
2521
2582
|
|
|
2583
|
+
/**
|
|
2584
|
+
*
|
|
2585
|
+
* @export
|
|
2586
|
+
* @interface CustomerDeleteResponseDTO
|
|
2587
|
+
*/
|
|
2588
|
+
export interface CustomerDeleteResponseDTO {
|
|
2589
|
+
/**
|
|
2590
|
+
* statusCode
|
|
2591
|
+
* @type {number}
|
|
2592
|
+
* @memberof CustomerDeleteResponseDTO
|
|
2593
|
+
*/
|
|
2594
|
+
'statusCode': number;
|
|
2595
|
+
/**
|
|
2596
|
+
*
|
|
2597
|
+
* @type {string}
|
|
2598
|
+
* @memberof CustomerDeleteResponseDTO
|
|
2599
|
+
*/
|
|
2600
|
+
'data': string;
|
|
2601
|
+
}
|
|
2602
|
+
/**
|
|
2603
|
+
*
|
|
2604
|
+
* @export
|
|
2605
|
+
* @interface CustomerEntity
|
|
2606
|
+
*/
|
|
2607
|
+
export interface CustomerEntity {
|
|
2608
|
+
/**
|
|
2609
|
+
*
|
|
2610
|
+
* @type {string}
|
|
2611
|
+
* @memberof CustomerEntity
|
|
2612
|
+
*/
|
|
2613
|
+
'_id': string;
|
|
2614
|
+
/**
|
|
2615
|
+
*
|
|
2616
|
+
* @type {string}
|
|
2617
|
+
* @memberof CustomerEntity
|
|
2618
|
+
*/
|
|
2619
|
+
'firstName': string;
|
|
2620
|
+
/**
|
|
2621
|
+
*
|
|
2622
|
+
* @type {string}
|
|
2623
|
+
* @memberof CustomerEntity
|
|
2624
|
+
*/
|
|
2625
|
+
'lastName': string;
|
|
2626
|
+
/**
|
|
2627
|
+
*
|
|
2628
|
+
* @type {string}
|
|
2629
|
+
* @memberof CustomerEntity
|
|
2630
|
+
*/
|
|
2631
|
+
'email': string;
|
|
2632
|
+
/**
|
|
2633
|
+
*
|
|
2634
|
+
* @type {string}
|
|
2635
|
+
* @memberof CustomerEntity
|
|
2636
|
+
*/
|
|
2637
|
+
'mobileNumber': string;
|
|
2638
|
+
/**
|
|
2639
|
+
*
|
|
2640
|
+
* @type {string}
|
|
2641
|
+
* @memberof CustomerEntity
|
|
2642
|
+
*/
|
|
2643
|
+
'notes': string;
|
|
2644
|
+
/**
|
|
2645
|
+
*
|
|
2646
|
+
* @type {string}
|
|
2647
|
+
* @memberof CustomerEntity
|
|
2648
|
+
*/
|
|
2649
|
+
'goodayId': string;
|
|
2650
|
+
/**
|
|
2651
|
+
*
|
|
2652
|
+
* @type {Array<TagsResponse>}
|
|
2653
|
+
* @memberof CustomerEntity
|
|
2654
|
+
*/
|
|
2655
|
+
'tags': Array<TagsResponse>;
|
|
2656
|
+
/**
|
|
2657
|
+
*
|
|
2658
|
+
* @type {BusinessEntity}
|
|
2659
|
+
* @memberof CustomerEntity
|
|
2660
|
+
*/
|
|
2661
|
+
'business': BusinessEntity;
|
|
2662
|
+
/**
|
|
2663
|
+
*
|
|
2664
|
+
* @type {BusinessVenueDetailsEntity}
|
|
2665
|
+
* @memberof CustomerEntity
|
|
2666
|
+
*/
|
|
2667
|
+
'venue': BusinessVenueDetailsEntity;
|
|
2668
|
+
}
|
|
2669
|
+
/**
|
|
2670
|
+
*
|
|
2671
|
+
* @export
|
|
2672
|
+
* @interface CustomerFilter
|
|
2673
|
+
*/
|
|
2674
|
+
export interface CustomerFilter {
|
|
2675
|
+
/**
|
|
2676
|
+
*
|
|
2677
|
+
* @type {number}
|
|
2678
|
+
* @memberof CustomerFilter
|
|
2679
|
+
*/
|
|
2680
|
+
'page': number;
|
|
2681
|
+
/**
|
|
2682
|
+
*
|
|
2683
|
+
* @type {number}
|
|
2684
|
+
* @memberof CustomerFilter
|
|
2685
|
+
*/
|
|
2686
|
+
'pageSize': number;
|
|
2687
|
+
/**
|
|
2688
|
+
*
|
|
2689
|
+
* @type {string}
|
|
2690
|
+
* @memberof CustomerFilter
|
|
2691
|
+
*/
|
|
2692
|
+
'search'?: string;
|
|
2693
|
+
/**
|
|
2694
|
+
*
|
|
2695
|
+
* @type {string}
|
|
2696
|
+
* @memberof CustomerFilter
|
|
2697
|
+
*/
|
|
2698
|
+
'venue'?: string;
|
|
2699
|
+
}
|
|
2700
|
+
/**
|
|
2701
|
+
*
|
|
2702
|
+
* @export
|
|
2703
|
+
* @interface CustomerResponseDTO
|
|
2704
|
+
*/
|
|
2705
|
+
export interface CustomerResponseDTO {
|
|
2706
|
+
/**
|
|
2707
|
+
* statusCode
|
|
2708
|
+
* @type {number}
|
|
2709
|
+
* @memberof CustomerResponseDTO
|
|
2710
|
+
*/
|
|
2711
|
+
'statusCode': number;
|
|
2712
|
+
/**
|
|
2713
|
+
* Customer response
|
|
2714
|
+
* @type {CustomerEntity}
|
|
2715
|
+
* @memberof CustomerResponseDTO
|
|
2716
|
+
*/
|
|
2717
|
+
'data': CustomerEntity;
|
|
2718
|
+
}
|
|
2522
2719
|
/**
|
|
2523
2720
|
*
|
|
2524
2721
|
* @export
|
|
@@ -3003,6 +3200,25 @@ export interface FindWaitlistResponseDTO {
|
|
|
3003
3200
|
*/
|
|
3004
3201
|
'data': Array<WaitlistEntity>;
|
|
3005
3202
|
}
|
|
3203
|
+
/**
|
|
3204
|
+
*
|
|
3205
|
+
* @export
|
|
3206
|
+
* @interface FineCustomerResponseDTO
|
|
3207
|
+
*/
|
|
3208
|
+
export interface FineCustomerResponseDTO {
|
|
3209
|
+
/**
|
|
3210
|
+
* statusCode
|
|
3211
|
+
* @type {number}
|
|
3212
|
+
* @memberof FineCustomerResponseDTO
|
|
3213
|
+
*/
|
|
3214
|
+
'statusCode': number;
|
|
3215
|
+
/**
|
|
3216
|
+
* Customer response
|
|
3217
|
+
* @type {Array<CustomerEntity>}
|
|
3218
|
+
* @memberof FineCustomerResponseDTO
|
|
3219
|
+
*/
|
|
3220
|
+
'data': Array<CustomerEntity>;
|
|
3221
|
+
}
|
|
3006
3222
|
/**
|
|
3007
3223
|
*
|
|
3008
3224
|
* @export
|
|
@@ -3443,7 +3659,7 @@ export interface ListTaskListPayload {
|
|
|
3443
3659
|
* @type {string}
|
|
3444
3660
|
* @memberof ListTaskListPayload
|
|
3445
3661
|
*/
|
|
3446
|
-
'todo'
|
|
3662
|
+
'todo'?: string;
|
|
3447
3663
|
/**
|
|
3448
3664
|
* Start date
|
|
3449
3665
|
* @type {string}
|
|
@@ -3456,7 +3672,34 @@ export interface ListTaskListPayload {
|
|
|
3456
3672
|
* @memberof ListTaskListPayload
|
|
3457
3673
|
*/
|
|
3458
3674
|
'end'?: string;
|
|
3675
|
+
/**
|
|
3676
|
+
* Status
|
|
3677
|
+
* @type {string}
|
|
3678
|
+
* @memberof ListTaskListPayload
|
|
3679
|
+
*/
|
|
3680
|
+
'status'?: ListTaskListPayloadStatusEnum;
|
|
3681
|
+
/**
|
|
3682
|
+
*
|
|
3683
|
+
* @type {boolean}
|
|
3684
|
+
* @memberof ListTaskListPayload
|
|
3685
|
+
*/
|
|
3686
|
+
'isDeleted'?: boolean;
|
|
3687
|
+
/**
|
|
3688
|
+
*
|
|
3689
|
+
* @type {boolean}
|
|
3690
|
+
* @memberof ListTaskListPayload
|
|
3691
|
+
*/
|
|
3692
|
+
'urgent'?: boolean;
|
|
3459
3693
|
}
|
|
3694
|
+
|
|
3695
|
+
export const ListTaskListPayloadStatusEnum = {
|
|
3696
|
+
Pending: 'PENDING',
|
|
3697
|
+
Completed: 'COMPLETED',
|
|
3698
|
+
Deleted: 'DELETED'
|
|
3699
|
+
} as const;
|
|
3700
|
+
|
|
3701
|
+
export type ListTaskListPayloadStatusEnum = typeof ListTaskListPayloadStatusEnum[keyof typeof ListTaskListPayloadStatusEnum];
|
|
3702
|
+
|
|
3460
3703
|
/**
|
|
3461
3704
|
*
|
|
3462
3705
|
* @export
|
|
@@ -5134,6 +5377,18 @@ export interface TaskEntity {
|
|
|
5134
5377
|
* @memberof TaskEntity
|
|
5135
5378
|
*/
|
|
5136
5379
|
'position': number;
|
|
5380
|
+
/**
|
|
5381
|
+
*
|
|
5382
|
+
* @type {boolean}
|
|
5383
|
+
* @memberof TaskEntity
|
|
5384
|
+
*/
|
|
5385
|
+
'urgent'?: boolean;
|
|
5386
|
+
/**
|
|
5387
|
+
*
|
|
5388
|
+
* @type {boolean}
|
|
5389
|
+
* @memberof TaskEntity
|
|
5390
|
+
*/
|
|
5391
|
+
'isDeleted'?: boolean;
|
|
5137
5392
|
}
|
|
5138
5393
|
/**
|
|
5139
5394
|
*
|
|
@@ -5357,6 +5612,12 @@ export interface UpdateTaskPayload {
|
|
|
5357
5612
|
* @memberof UpdateTaskPayload
|
|
5358
5613
|
*/
|
|
5359
5614
|
'status'?: string;
|
|
5615
|
+
/**
|
|
5616
|
+
*
|
|
5617
|
+
* @type {boolean}
|
|
5618
|
+
* @memberof UpdateTaskPayload
|
|
5619
|
+
*/
|
|
5620
|
+
'urgent'?: boolean;
|
|
5360
5621
|
}
|
|
5361
5622
|
/**
|
|
5362
5623
|
*
|
|
@@ -9936,21 +10197,21 @@ export type CalendarControllerListEventsViewEnum = typeof CalendarControllerList
|
|
|
9936
10197
|
|
|
9937
10198
|
|
|
9938
10199
|
/**
|
|
9939
|
-
*
|
|
10200
|
+
* CustomerApi - axios parameter creator
|
|
9940
10201
|
* @export
|
|
9941
10202
|
*/
|
|
9942
|
-
export const
|
|
10203
|
+
export const CustomerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
9943
10204
|
return {
|
|
9944
10205
|
/**
|
|
9945
10206
|
*
|
|
9946
|
-
* @param {
|
|
10207
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
9947
10208
|
* @param {*} [options] Override http request option.
|
|
9948
10209
|
* @throws {RequiredError}
|
|
9949
10210
|
*/
|
|
9950
|
-
|
|
9951
|
-
// verify required parameter '
|
|
9952
|
-
assertParamExists('
|
|
9953
|
-
const localVarPath = `/
|
|
10211
|
+
customerControllerAddCustomer: async (createCustomerPayloadDTO: CreateCustomerPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10212
|
+
// verify required parameter 'createCustomerPayloadDTO' is not null or undefined
|
|
10213
|
+
assertParamExists('customerControllerAddCustomer', 'createCustomerPayloadDTO', createCustomerPayloadDTO)
|
|
10214
|
+
const localVarPath = `/v2/customer`;
|
|
9954
10215
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9955
10216
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9956
10217
|
let baseOptions;
|
|
@@ -9973,58 +10234,455 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9973
10234
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9974
10235
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9975
10236
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9976
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
10237
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCustomerPayloadDTO, localVarRequestOptions, configuration)
|
|
9977
10238
|
|
|
9978
10239
|
return {
|
|
9979
10240
|
url: toPathString(localVarUrlObj),
|
|
9980
10241
|
options: localVarRequestOptions,
|
|
9981
10242
|
};
|
|
9982
10243
|
},
|
|
9983
|
-
}
|
|
9984
|
-
};
|
|
9985
|
-
|
|
9986
|
-
/**
|
|
9987
|
-
* DeviceApi - functional programming interface
|
|
9988
|
-
* @export
|
|
9989
|
-
*/
|
|
9990
|
-
export const DeviceApiFp = function(configuration?: Configuration) {
|
|
9991
|
-
const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
|
|
9992
|
-
return {
|
|
9993
10244
|
/**
|
|
9994
10245
|
*
|
|
9995
|
-
* @param {
|
|
10246
|
+
* @param {string} id
|
|
9996
10247
|
* @param {*} [options] Override http request option.
|
|
9997
10248
|
* @throws {RequiredError}
|
|
9998
10249
|
*/
|
|
9999
|
-
async
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
const
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10250
|
+
customerControllerDeleteCustomer: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10251
|
+
// verify required parameter 'id' is not null or undefined
|
|
10252
|
+
assertParamExists('customerControllerDeleteCustomer', 'id', id)
|
|
10253
|
+
const localVarPath = `/v2/customer/{id}`
|
|
10254
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10255
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10257
|
+
let baseOptions;
|
|
10258
|
+
if (configuration) {
|
|
10259
|
+
baseOptions = configuration.baseOptions;
|
|
10260
|
+
}
|
|
10007
10261
|
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
*/
|
|
10012
|
-
export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10013
|
-
const localVarFp = DeviceApiFp(configuration)
|
|
10014
|
-
return {
|
|
10015
|
-
/**
|
|
10016
|
-
*
|
|
10017
|
-
* @param {AddDevicePayload} addDevicePayload
|
|
10018
|
-
* @param {*} [options] Override http request option.
|
|
10019
|
-
* @throws {RequiredError}
|
|
10020
|
-
*/
|
|
10021
|
-
deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): AxiosPromise<DeviceAddResponse> {
|
|
10022
|
-
return localVarFp.deviceControllerAddDevice(addDevicePayload, options).then((request) => request(axios, basePath));
|
|
10023
|
-
},
|
|
10024
|
-
};
|
|
10025
|
-
};
|
|
10262
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10263
|
+
const localVarHeaderParameter = {} as any;
|
|
10264
|
+
const localVarQueryParameter = {} as any;
|
|
10026
10265
|
|
|
10027
|
-
|
|
10266
|
+
// authentication bearer required
|
|
10267
|
+
// http bearer authentication required
|
|
10268
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10269
|
+
|
|
10270
|
+
|
|
10271
|
+
|
|
10272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10274
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10275
|
+
|
|
10276
|
+
return {
|
|
10277
|
+
url: toPathString(localVarUrlObj),
|
|
10278
|
+
options: localVarRequestOptions,
|
|
10279
|
+
};
|
|
10280
|
+
},
|
|
10281
|
+
/**
|
|
10282
|
+
*
|
|
10283
|
+
* @param {string} id
|
|
10284
|
+
* @param {*} [options] Override http request option.
|
|
10285
|
+
* @throws {RequiredError}
|
|
10286
|
+
*/
|
|
10287
|
+
customerControllerFindCustomer: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10288
|
+
// verify required parameter 'id' is not null or undefined
|
|
10289
|
+
assertParamExists('customerControllerFindCustomer', 'id', id)
|
|
10290
|
+
const localVarPath = `/v2/customer/{id}`
|
|
10291
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10292
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10293
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10294
|
+
let baseOptions;
|
|
10295
|
+
if (configuration) {
|
|
10296
|
+
baseOptions = configuration.baseOptions;
|
|
10297
|
+
}
|
|
10298
|
+
|
|
10299
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10300
|
+
const localVarHeaderParameter = {} as any;
|
|
10301
|
+
const localVarQueryParameter = {} as any;
|
|
10302
|
+
|
|
10303
|
+
// authentication bearer required
|
|
10304
|
+
// http bearer authentication required
|
|
10305
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10306
|
+
|
|
10307
|
+
|
|
10308
|
+
|
|
10309
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10310
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10311
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10312
|
+
|
|
10313
|
+
return {
|
|
10314
|
+
url: toPathString(localVarUrlObj),
|
|
10315
|
+
options: localVarRequestOptions,
|
|
10316
|
+
};
|
|
10317
|
+
},
|
|
10318
|
+
/**
|
|
10319
|
+
*
|
|
10320
|
+
* @param {CustomerFilter} customerFilter
|
|
10321
|
+
* @param {*} [options] Override http request option.
|
|
10322
|
+
* @throws {RequiredError}
|
|
10323
|
+
*/
|
|
10324
|
+
customerControllerFindCustomersList: async (customerFilter: CustomerFilter, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10325
|
+
// verify required parameter 'customerFilter' is not null or undefined
|
|
10326
|
+
assertParamExists('customerControllerFindCustomersList', 'customerFilter', customerFilter)
|
|
10327
|
+
const localVarPath = `/v2/customer/list`;
|
|
10328
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10329
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10330
|
+
let baseOptions;
|
|
10331
|
+
if (configuration) {
|
|
10332
|
+
baseOptions = configuration.baseOptions;
|
|
10333
|
+
}
|
|
10334
|
+
|
|
10335
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10336
|
+
const localVarHeaderParameter = {} as any;
|
|
10337
|
+
const localVarQueryParameter = {} as any;
|
|
10338
|
+
|
|
10339
|
+
// authentication bearer required
|
|
10340
|
+
// http bearer authentication required
|
|
10341
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10342
|
+
|
|
10343
|
+
|
|
10344
|
+
|
|
10345
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10346
|
+
|
|
10347
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10348
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10349
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10350
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerFilter, localVarRequestOptions, configuration)
|
|
10351
|
+
|
|
10352
|
+
return {
|
|
10353
|
+
url: toPathString(localVarUrlObj),
|
|
10354
|
+
options: localVarRequestOptions,
|
|
10355
|
+
};
|
|
10356
|
+
},
|
|
10357
|
+
/**
|
|
10358
|
+
*
|
|
10359
|
+
* @param {string} id
|
|
10360
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10361
|
+
* @param {*} [options] Override http request option.
|
|
10362
|
+
* @throws {RequiredError}
|
|
10363
|
+
*/
|
|
10364
|
+
customerControllerUpdateCustomer: async (id: string, createCustomerPayloadDTO: CreateCustomerPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10365
|
+
// verify required parameter 'id' is not null or undefined
|
|
10366
|
+
assertParamExists('customerControllerUpdateCustomer', 'id', id)
|
|
10367
|
+
// verify required parameter 'createCustomerPayloadDTO' is not null or undefined
|
|
10368
|
+
assertParamExists('customerControllerUpdateCustomer', 'createCustomerPayloadDTO', createCustomerPayloadDTO)
|
|
10369
|
+
const localVarPath = `/v2/customer/{id}`
|
|
10370
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10371
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10372
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10373
|
+
let baseOptions;
|
|
10374
|
+
if (configuration) {
|
|
10375
|
+
baseOptions = configuration.baseOptions;
|
|
10376
|
+
}
|
|
10377
|
+
|
|
10378
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
10379
|
+
const localVarHeaderParameter = {} as any;
|
|
10380
|
+
const localVarQueryParameter = {} as any;
|
|
10381
|
+
|
|
10382
|
+
// authentication bearer required
|
|
10383
|
+
// http bearer authentication required
|
|
10384
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10385
|
+
|
|
10386
|
+
|
|
10387
|
+
|
|
10388
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10389
|
+
|
|
10390
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10391
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10392
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10393
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCustomerPayloadDTO, localVarRequestOptions, configuration)
|
|
10394
|
+
|
|
10395
|
+
return {
|
|
10396
|
+
url: toPathString(localVarUrlObj),
|
|
10397
|
+
options: localVarRequestOptions,
|
|
10398
|
+
};
|
|
10399
|
+
},
|
|
10400
|
+
}
|
|
10401
|
+
};
|
|
10402
|
+
|
|
10403
|
+
/**
|
|
10404
|
+
* CustomerApi - functional programming interface
|
|
10405
|
+
* @export
|
|
10406
|
+
*/
|
|
10407
|
+
export const CustomerApiFp = function(configuration?: Configuration) {
|
|
10408
|
+
const localVarAxiosParamCreator = CustomerApiAxiosParamCreator(configuration)
|
|
10409
|
+
return {
|
|
10410
|
+
/**
|
|
10411
|
+
*
|
|
10412
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10413
|
+
* @param {*} [options] Override http request option.
|
|
10414
|
+
* @throws {RequiredError}
|
|
10415
|
+
*/
|
|
10416
|
+
async customerControllerAddCustomer(createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerResponseDTO>> {
|
|
10417
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerAddCustomer(createCustomerPayloadDTO, options);
|
|
10418
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10419
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerAddCustomer']?.[localVarOperationServerIndex]?.url;
|
|
10420
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10421
|
+
},
|
|
10422
|
+
/**
|
|
10423
|
+
*
|
|
10424
|
+
* @param {string} id
|
|
10425
|
+
* @param {*} [options] Override http request option.
|
|
10426
|
+
* @throws {RequiredError}
|
|
10427
|
+
*/
|
|
10428
|
+
async customerControllerDeleteCustomer(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerDeleteResponseDTO>> {
|
|
10429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerDeleteCustomer(id, options);
|
|
10430
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10431
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerDeleteCustomer']?.[localVarOperationServerIndex]?.url;
|
|
10432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10433
|
+
},
|
|
10434
|
+
/**
|
|
10435
|
+
*
|
|
10436
|
+
* @param {string} id
|
|
10437
|
+
* @param {*} [options] Override http request option.
|
|
10438
|
+
* @throws {RequiredError}
|
|
10439
|
+
*/
|
|
10440
|
+
async customerControllerFindCustomer(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerResponseDTO>> {
|
|
10441
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerFindCustomer(id, options);
|
|
10442
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10443
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerFindCustomer']?.[localVarOperationServerIndex]?.url;
|
|
10444
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10445
|
+
},
|
|
10446
|
+
/**
|
|
10447
|
+
*
|
|
10448
|
+
* @param {CustomerFilter} customerFilter
|
|
10449
|
+
* @param {*} [options] Override http request option.
|
|
10450
|
+
* @throws {RequiredError}
|
|
10451
|
+
*/
|
|
10452
|
+
async customerControllerFindCustomersList(customerFilter: CustomerFilter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FineCustomerResponseDTO>> {
|
|
10453
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerFindCustomersList(customerFilter, options);
|
|
10454
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10455
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerFindCustomersList']?.[localVarOperationServerIndex]?.url;
|
|
10456
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10457
|
+
},
|
|
10458
|
+
/**
|
|
10459
|
+
*
|
|
10460
|
+
* @param {string} id
|
|
10461
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10462
|
+
* @param {*} [options] Override http request option.
|
|
10463
|
+
* @throws {RequiredError}
|
|
10464
|
+
*/
|
|
10465
|
+
async customerControllerUpdateCustomer(id: string, createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerResponseDTO>> {
|
|
10466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerUpdateCustomer(id, createCustomerPayloadDTO, options);
|
|
10467
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10468
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerUpdateCustomer']?.[localVarOperationServerIndex]?.url;
|
|
10469
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10470
|
+
},
|
|
10471
|
+
}
|
|
10472
|
+
};
|
|
10473
|
+
|
|
10474
|
+
/**
|
|
10475
|
+
* CustomerApi - factory interface
|
|
10476
|
+
* @export
|
|
10477
|
+
*/
|
|
10478
|
+
export const CustomerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10479
|
+
const localVarFp = CustomerApiFp(configuration)
|
|
10480
|
+
return {
|
|
10481
|
+
/**
|
|
10482
|
+
*
|
|
10483
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10484
|
+
* @param {*} [options] Override http request option.
|
|
10485
|
+
* @throws {RequiredError}
|
|
10486
|
+
*/
|
|
10487
|
+
customerControllerAddCustomer(createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<CustomerResponseDTO> {
|
|
10488
|
+
return localVarFp.customerControllerAddCustomer(createCustomerPayloadDTO, options).then((request) => request(axios, basePath));
|
|
10489
|
+
},
|
|
10490
|
+
/**
|
|
10491
|
+
*
|
|
10492
|
+
* @param {string} id
|
|
10493
|
+
* @param {*} [options] Override http request option.
|
|
10494
|
+
* @throws {RequiredError}
|
|
10495
|
+
*/
|
|
10496
|
+
customerControllerDeleteCustomer(id: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomerDeleteResponseDTO> {
|
|
10497
|
+
return localVarFp.customerControllerDeleteCustomer(id, options).then((request) => request(axios, basePath));
|
|
10498
|
+
},
|
|
10499
|
+
/**
|
|
10500
|
+
*
|
|
10501
|
+
* @param {string} id
|
|
10502
|
+
* @param {*} [options] Override http request option.
|
|
10503
|
+
* @throws {RequiredError}
|
|
10504
|
+
*/
|
|
10505
|
+
customerControllerFindCustomer(id: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomerResponseDTO> {
|
|
10506
|
+
return localVarFp.customerControllerFindCustomer(id, options).then((request) => request(axios, basePath));
|
|
10507
|
+
},
|
|
10508
|
+
/**
|
|
10509
|
+
*
|
|
10510
|
+
* @param {CustomerFilter} customerFilter
|
|
10511
|
+
* @param {*} [options] Override http request option.
|
|
10512
|
+
* @throws {RequiredError}
|
|
10513
|
+
*/
|
|
10514
|
+
customerControllerFindCustomersList(customerFilter: CustomerFilter, options?: RawAxiosRequestConfig): AxiosPromise<FineCustomerResponseDTO> {
|
|
10515
|
+
return localVarFp.customerControllerFindCustomersList(customerFilter, options).then((request) => request(axios, basePath));
|
|
10516
|
+
},
|
|
10517
|
+
/**
|
|
10518
|
+
*
|
|
10519
|
+
* @param {string} id
|
|
10520
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10521
|
+
* @param {*} [options] Override http request option.
|
|
10522
|
+
* @throws {RequiredError}
|
|
10523
|
+
*/
|
|
10524
|
+
customerControllerUpdateCustomer(id: string, createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<CustomerResponseDTO> {
|
|
10525
|
+
return localVarFp.customerControllerUpdateCustomer(id, createCustomerPayloadDTO, options).then((request) => request(axios, basePath));
|
|
10526
|
+
},
|
|
10527
|
+
};
|
|
10528
|
+
};
|
|
10529
|
+
|
|
10530
|
+
/**
|
|
10531
|
+
* CustomerApi - object-oriented interface
|
|
10532
|
+
* @export
|
|
10533
|
+
* @class CustomerApi
|
|
10534
|
+
* @extends {BaseAPI}
|
|
10535
|
+
*/
|
|
10536
|
+
export class CustomerApi extends BaseAPI {
|
|
10537
|
+
/**
|
|
10538
|
+
*
|
|
10539
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10540
|
+
* @param {*} [options] Override http request option.
|
|
10541
|
+
* @throws {RequiredError}
|
|
10542
|
+
* @memberof CustomerApi
|
|
10543
|
+
*/
|
|
10544
|
+
public customerControllerAddCustomer(createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
10545
|
+
return CustomerApiFp(this.configuration).customerControllerAddCustomer(createCustomerPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10546
|
+
}
|
|
10547
|
+
|
|
10548
|
+
/**
|
|
10549
|
+
*
|
|
10550
|
+
* @param {string} id
|
|
10551
|
+
* @param {*} [options] Override http request option.
|
|
10552
|
+
* @throws {RequiredError}
|
|
10553
|
+
* @memberof CustomerApi
|
|
10554
|
+
*/
|
|
10555
|
+
public customerControllerDeleteCustomer(id: string, options?: RawAxiosRequestConfig) {
|
|
10556
|
+
return CustomerApiFp(this.configuration).customerControllerDeleteCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
10557
|
+
}
|
|
10558
|
+
|
|
10559
|
+
/**
|
|
10560
|
+
*
|
|
10561
|
+
* @param {string} id
|
|
10562
|
+
* @param {*} [options] Override http request option.
|
|
10563
|
+
* @throws {RequiredError}
|
|
10564
|
+
* @memberof CustomerApi
|
|
10565
|
+
*/
|
|
10566
|
+
public customerControllerFindCustomer(id: string, options?: RawAxiosRequestConfig) {
|
|
10567
|
+
return CustomerApiFp(this.configuration).customerControllerFindCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
10568
|
+
}
|
|
10569
|
+
|
|
10570
|
+
/**
|
|
10571
|
+
*
|
|
10572
|
+
* @param {CustomerFilter} customerFilter
|
|
10573
|
+
* @param {*} [options] Override http request option.
|
|
10574
|
+
* @throws {RequiredError}
|
|
10575
|
+
* @memberof CustomerApi
|
|
10576
|
+
*/
|
|
10577
|
+
public customerControllerFindCustomersList(customerFilter: CustomerFilter, options?: RawAxiosRequestConfig) {
|
|
10578
|
+
return CustomerApiFp(this.configuration).customerControllerFindCustomersList(customerFilter, options).then((request) => request(this.axios, this.basePath));
|
|
10579
|
+
}
|
|
10580
|
+
|
|
10581
|
+
/**
|
|
10582
|
+
*
|
|
10583
|
+
* @param {string} id
|
|
10584
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10585
|
+
* @param {*} [options] Override http request option.
|
|
10586
|
+
* @throws {RequiredError}
|
|
10587
|
+
* @memberof CustomerApi
|
|
10588
|
+
*/
|
|
10589
|
+
public customerControllerUpdateCustomer(id: string, createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
10590
|
+
return CustomerApiFp(this.configuration).customerControllerUpdateCustomer(id, createCustomerPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10591
|
+
}
|
|
10592
|
+
}
|
|
10593
|
+
|
|
10594
|
+
|
|
10595
|
+
|
|
10596
|
+
/**
|
|
10597
|
+
* DeviceApi - axios parameter creator
|
|
10598
|
+
* @export
|
|
10599
|
+
*/
|
|
10600
|
+
export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10601
|
+
return {
|
|
10602
|
+
/**
|
|
10603
|
+
*
|
|
10604
|
+
* @param {AddDevicePayload} addDevicePayload
|
|
10605
|
+
* @param {*} [options] Override http request option.
|
|
10606
|
+
* @throws {RequiredError}
|
|
10607
|
+
*/
|
|
10608
|
+
deviceControllerAddDevice: async (addDevicePayload: AddDevicePayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10609
|
+
// verify required parameter 'addDevicePayload' is not null or undefined
|
|
10610
|
+
assertParamExists('deviceControllerAddDevice', 'addDevicePayload', addDevicePayload)
|
|
10611
|
+
const localVarPath = `/v1/device`;
|
|
10612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10613
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10614
|
+
let baseOptions;
|
|
10615
|
+
if (configuration) {
|
|
10616
|
+
baseOptions = configuration.baseOptions;
|
|
10617
|
+
}
|
|
10618
|
+
|
|
10619
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10620
|
+
const localVarHeaderParameter = {} as any;
|
|
10621
|
+
const localVarQueryParameter = {} as any;
|
|
10622
|
+
|
|
10623
|
+
// authentication bearer required
|
|
10624
|
+
// http bearer authentication required
|
|
10625
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10626
|
+
|
|
10627
|
+
|
|
10628
|
+
|
|
10629
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10630
|
+
|
|
10631
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10632
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10633
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10634
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addDevicePayload, localVarRequestOptions, configuration)
|
|
10635
|
+
|
|
10636
|
+
return {
|
|
10637
|
+
url: toPathString(localVarUrlObj),
|
|
10638
|
+
options: localVarRequestOptions,
|
|
10639
|
+
};
|
|
10640
|
+
},
|
|
10641
|
+
}
|
|
10642
|
+
};
|
|
10643
|
+
|
|
10644
|
+
/**
|
|
10645
|
+
* DeviceApi - functional programming interface
|
|
10646
|
+
* @export
|
|
10647
|
+
*/
|
|
10648
|
+
export const DeviceApiFp = function(configuration?: Configuration) {
|
|
10649
|
+
const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
|
|
10650
|
+
return {
|
|
10651
|
+
/**
|
|
10652
|
+
*
|
|
10653
|
+
* @param {AddDevicePayload} addDevicePayload
|
|
10654
|
+
* @param {*} [options] Override http request option.
|
|
10655
|
+
* @throws {RequiredError}
|
|
10656
|
+
*/
|
|
10657
|
+
async deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceAddResponse>> {
|
|
10658
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deviceControllerAddDevice(addDevicePayload, options);
|
|
10659
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10660
|
+
const localVarOperationServerBasePath = operationServerMap['DeviceApi.deviceControllerAddDevice']?.[localVarOperationServerIndex]?.url;
|
|
10661
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10662
|
+
},
|
|
10663
|
+
}
|
|
10664
|
+
};
|
|
10665
|
+
|
|
10666
|
+
/**
|
|
10667
|
+
* DeviceApi - factory interface
|
|
10668
|
+
* @export
|
|
10669
|
+
*/
|
|
10670
|
+
export const DeviceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10671
|
+
const localVarFp = DeviceApiFp(configuration)
|
|
10672
|
+
return {
|
|
10673
|
+
/**
|
|
10674
|
+
*
|
|
10675
|
+
* @param {AddDevicePayload} addDevicePayload
|
|
10676
|
+
* @param {*} [options] Override http request option.
|
|
10677
|
+
* @throws {RequiredError}
|
|
10678
|
+
*/
|
|
10679
|
+
deviceControllerAddDevice(addDevicePayload: AddDevicePayload, options?: RawAxiosRequestConfig): AxiosPromise<DeviceAddResponse> {
|
|
10680
|
+
return localVarFp.deviceControllerAddDevice(addDevicePayload, options).then((request) => request(axios, basePath));
|
|
10681
|
+
},
|
|
10682
|
+
};
|
|
10683
|
+
};
|
|
10684
|
+
|
|
10685
|
+
/**
|
|
10028
10686
|
* DeviceApi - object-oriented interface
|
|
10029
10687
|
* @export
|
|
10030
10688
|
* @class DeviceApi
|
|
@@ -13946,6 +14604,72 @@ export const TodoApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
13946
14604
|
options: localVarRequestOptions,
|
|
13947
14605
|
};
|
|
13948
14606
|
},
|
|
14607
|
+
/**
|
|
14608
|
+
*
|
|
14609
|
+
* @param {*} [options] Override http request option.
|
|
14610
|
+
* @throws {RequiredError}
|
|
14611
|
+
*/
|
|
14612
|
+
todoControllerListDelegatedMyFriendsTasks: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14613
|
+
const localVarPath = `/v1/todo/my-friends/task/list`;
|
|
14614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14615
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14616
|
+
let baseOptions;
|
|
14617
|
+
if (configuration) {
|
|
14618
|
+
baseOptions = configuration.baseOptions;
|
|
14619
|
+
}
|
|
14620
|
+
|
|
14621
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14622
|
+
const localVarHeaderParameter = {} as any;
|
|
14623
|
+
const localVarQueryParameter = {} as any;
|
|
14624
|
+
|
|
14625
|
+
// authentication bearer required
|
|
14626
|
+
// http bearer authentication required
|
|
14627
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14628
|
+
|
|
14629
|
+
|
|
14630
|
+
|
|
14631
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14632
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14633
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14634
|
+
|
|
14635
|
+
return {
|
|
14636
|
+
url: toPathString(localVarUrlObj),
|
|
14637
|
+
options: localVarRequestOptions,
|
|
14638
|
+
};
|
|
14639
|
+
},
|
|
14640
|
+
/**
|
|
14641
|
+
*
|
|
14642
|
+
* @param {*} [options] Override http request option.
|
|
14643
|
+
* @throws {RequiredError}
|
|
14644
|
+
*/
|
|
14645
|
+
todoControllerListDelegatedMyTasks: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14646
|
+
const localVarPath = `/v1/todo/my/task/list`;
|
|
14647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14649
|
+
let baseOptions;
|
|
14650
|
+
if (configuration) {
|
|
14651
|
+
baseOptions = configuration.baseOptions;
|
|
14652
|
+
}
|
|
14653
|
+
|
|
14654
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14655
|
+
const localVarHeaderParameter = {} as any;
|
|
14656
|
+
const localVarQueryParameter = {} as any;
|
|
14657
|
+
|
|
14658
|
+
// authentication bearer required
|
|
14659
|
+
// http bearer authentication required
|
|
14660
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14661
|
+
|
|
14662
|
+
|
|
14663
|
+
|
|
14664
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14665
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14666
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14667
|
+
|
|
14668
|
+
return {
|
|
14669
|
+
url: toPathString(localVarUrlObj),
|
|
14670
|
+
options: localVarRequestOptions,
|
|
14671
|
+
};
|
|
14672
|
+
},
|
|
13949
14673
|
/**
|
|
13950
14674
|
*
|
|
13951
14675
|
* @param {ListTaskListPayload} listTaskListPayload
|
|
@@ -14311,6 +15035,28 @@ export const TodoApiFp = function(configuration?: Configuration) {
|
|
|
14311
15035
|
const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerInviteCollaborator']?.[localVarOperationServerIndex]?.url;
|
|
14312
15036
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14313
15037
|
},
|
|
15038
|
+
/**
|
|
15039
|
+
*
|
|
15040
|
+
* @param {*} [options] Override http request option.
|
|
15041
|
+
* @throws {RequiredError}
|
|
15042
|
+
*/
|
|
15043
|
+
async todoControllerListDelegatedMyFriendsTasks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskListResponseDTO>> {
|
|
15044
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.todoControllerListDelegatedMyFriendsTasks(options);
|
|
15045
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15046
|
+
const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerListDelegatedMyFriendsTasks']?.[localVarOperationServerIndex]?.url;
|
|
15047
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15048
|
+
},
|
|
15049
|
+
/**
|
|
15050
|
+
*
|
|
15051
|
+
* @param {*} [options] Override http request option.
|
|
15052
|
+
* @throws {RequiredError}
|
|
15053
|
+
*/
|
|
15054
|
+
async todoControllerListDelegatedMyTasks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskListResponseDTO>> {
|
|
15055
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.todoControllerListDelegatedMyTasks(options);
|
|
15056
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15057
|
+
const localVarOperationServerBasePath = operationServerMap['TodoApi.todoControllerListDelegatedMyTasks']?.[localVarOperationServerIndex]?.url;
|
|
15058
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15059
|
+
},
|
|
14314
15060
|
/**
|
|
14315
15061
|
*
|
|
14316
15062
|
* @param {ListTaskListPayload} listTaskListPayload
|
|
@@ -14471,6 +15217,22 @@ export const TodoApiFactory = function (configuration?: Configuration, basePath?
|
|
|
14471
15217
|
todoControllerInviteCollaborator(id: string, addCollaboratorPayload: AddCollaboratorPayload, options?: RawAxiosRequestConfig): AxiosPromise<TodoDetailResponseDTO> {
|
|
14472
15218
|
return localVarFp.todoControllerInviteCollaborator(id, addCollaboratorPayload, options).then((request) => request(axios, basePath));
|
|
14473
15219
|
},
|
|
15220
|
+
/**
|
|
15221
|
+
*
|
|
15222
|
+
* @param {*} [options] Override http request option.
|
|
15223
|
+
* @throws {RequiredError}
|
|
15224
|
+
*/
|
|
15225
|
+
todoControllerListDelegatedMyFriendsTasks(options?: RawAxiosRequestConfig): AxiosPromise<TaskListResponseDTO> {
|
|
15226
|
+
return localVarFp.todoControllerListDelegatedMyFriendsTasks(options).then((request) => request(axios, basePath));
|
|
15227
|
+
},
|
|
15228
|
+
/**
|
|
15229
|
+
*
|
|
15230
|
+
* @param {*} [options] Override http request option.
|
|
15231
|
+
* @throws {RequiredError}
|
|
15232
|
+
*/
|
|
15233
|
+
todoControllerListDelegatedMyTasks(options?: RawAxiosRequestConfig): AxiosPromise<TaskListResponseDTO> {
|
|
15234
|
+
return localVarFp.todoControllerListDelegatedMyTasks(options).then((request) => request(axios, basePath));
|
|
15235
|
+
},
|
|
14474
15236
|
/**
|
|
14475
15237
|
*
|
|
14476
15238
|
* @param {ListTaskListPayload} listTaskListPayload
|
|
@@ -14624,6 +15386,26 @@ export class TodoApi extends BaseAPI {
|
|
|
14624
15386
|
return TodoApiFp(this.configuration).todoControllerInviteCollaborator(id, addCollaboratorPayload, options).then((request) => request(this.axios, this.basePath));
|
|
14625
15387
|
}
|
|
14626
15388
|
|
|
15389
|
+
/**
|
|
15390
|
+
*
|
|
15391
|
+
* @param {*} [options] Override http request option.
|
|
15392
|
+
* @throws {RequiredError}
|
|
15393
|
+
* @memberof TodoApi
|
|
15394
|
+
*/
|
|
15395
|
+
public todoControllerListDelegatedMyFriendsTasks(options?: RawAxiosRequestConfig) {
|
|
15396
|
+
return TodoApiFp(this.configuration).todoControllerListDelegatedMyFriendsTasks(options).then((request) => request(this.axios, this.basePath));
|
|
15397
|
+
}
|
|
15398
|
+
|
|
15399
|
+
/**
|
|
15400
|
+
*
|
|
15401
|
+
* @param {*} [options] Override http request option.
|
|
15402
|
+
* @throws {RequiredError}
|
|
15403
|
+
* @memberof TodoApi
|
|
15404
|
+
*/
|
|
15405
|
+
public todoControllerListDelegatedMyTasks(options?: RawAxiosRequestConfig) {
|
|
15406
|
+
return TodoApiFp(this.configuration).todoControllerListDelegatedMyTasks(options).then((request) => request(this.axios, this.basePath));
|
|
15407
|
+
}
|
|
15408
|
+
|
|
14627
15409
|
/**
|
|
14628
15410
|
*
|
|
14629
15411
|
* @param {ListTaskListPayload} listTaskListPayload
|