@gooday_corp/gooday-api-client 1.2.43 → 1.2.46
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 +696 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2109,6 +2109,12 @@ export interface CreateBookingCustomerPayload {
|
|
|
2109
2109
|
* @memberof CreateBookingCustomerPayload
|
|
2110
2110
|
*/
|
|
2111
2111
|
'_id'?: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* The unique identifier of the customer
|
|
2114
|
+
* @type {string}
|
|
2115
|
+
* @memberof CreateBookingCustomerPayload
|
|
2116
|
+
*/
|
|
2117
|
+
'customer'?: string;
|
|
2112
2118
|
/**
|
|
2113
2119
|
* The name of the customer
|
|
2114
2120
|
* @type {string}
|
|
@@ -2250,6 +2256,67 @@ export interface CreateCalendarPayload {
|
|
|
2250
2256
|
*/
|
|
2251
2257
|
'name': string;
|
|
2252
2258
|
}
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @export
|
|
2262
|
+
* @interface CreateCustomerPayloadDTO
|
|
2263
|
+
*/
|
|
2264
|
+
export interface CreateCustomerPayloadDTO {
|
|
2265
|
+
/**
|
|
2266
|
+
*
|
|
2267
|
+
* @type {string}
|
|
2268
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2269
|
+
*/
|
|
2270
|
+
'firstName'?: string;
|
|
2271
|
+
/**
|
|
2272
|
+
*
|
|
2273
|
+
* @type {string}
|
|
2274
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2275
|
+
*/
|
|
2276
|
+
'lastName'?: string;
|
|
2277
|
+
/**
|
|
2278
|
+
*
|
|
2279
|
+
* @type {string}
|
|
2280
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2281
|
+
*/
|
|
2282
|
+
'email'?: string;
|
|
2283
|
+
/**
|
|
2284
|
+
*
|
|
2285
|
+
* @type {string}
|
|
2286
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2287
|
+
*/
|
|
2288
|
+
'mobileNumber'?: string;
|
|
2289
|
+
/**
|
|
2290
|
+
*
|
|
2291
|
+
* @type {string}
|
|
2292
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2293
|
+
*/
|
|
2294
|
+
'notes'?: string;
|
|
2295
|
+
/**
|
|
2296
|
+
*
|
|
2297
|
+
* @type {string}
|
|
2298
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2299
|
+
*/
|
|
2300
|
+
'goodayId'?: string;
|
|
2301
|
+
/**
|
|
2302
|
+
*
|
|
2303
|
+
* @type {Array<string>}
|
|
2304
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2305
|
+
*/
|
|
2306
|
+
'tags'?: Array<string>;
|
|
2307
|
+
/**
|
|
2308
|
+
*
|
|
2309
|
+
* @type {string}
|
|
2310
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2311
|
+
*/
|
|
2312
|
+
'business': string;
|
|
2313
|
+
/**
|
|
2314
|
+
*
|
|
2315
|
+
* @type {string}
|
|
2316
|
+
* @memberof CreateCustomerPayloadDTO
|
|
2317
|
+
*/
|
|
2318
|
+
'venue': string;
|
|
2319
|
+
}
|
|
2253
2320
|
/**
|
|
2254
2321
|
*
|
|
2255
2322
|
* @export
|
|
@@ -2519,6 +2586,142 @@ export const CreateWaitlistBookingCustomerPayloadStatusEnum = {
|
|
|
2519
2586
|
|
|
2520
2587
|
export type CreateWaitlistBookingCustomerPayloadStatusEnum = typeof CreateWaitlistBookingCustomerPayloadStatusEnum[keyof typeof CreateWaitlistBookingCustomerPayloadStatusEnum];
|
|
2521
2588
|
|
|
2589
|
+
/**
|
|
2590
|
+
*
|
|
2591
|
+
* @export
|
|
2592
|
+
* @interface CustomerDeleteResponseDTO
|
|
2593
|
+
*/
|
|
2594
|
+
export interface CustomerDeleteResponseDTO {
|
|
2595
|
+
/**
|
|
2596
|
+
* statusCode
|
|
2597
|
+
* @type {number}
|
|
2598
|
+
* @memberof CustomerDeleteResponseDTO
|
|
2599
|
+
*/
|
|
2600
|
+
'statusCode': number;
|
|
2601
|
+
/**
|
|
2602
|
+
*
|
|
2603
|
+
* @type {string}
|
|
2604
|
+
* @memberof CustomerDeleteResponseDTO
|
|
2605
|
+
*/
|
|
2606
|
+
'data': string;
|
|
2607
|
+
}
|
|
2608
|
+
/**
|
|
2609
|
+
*
|
|
2610
|
+
* @export
|
|
2611
|
+
* @interface CustomerEntity
|
|
2612
|
+
*/
|
|
2613
|
+
export interface CustomerEntity {
|
|
2614
|
+
/**
|
|
2615
|
+
*
|
|
2616
|
+
* @type {string}
|
|
2617
|
+
* @memberof CustomerEntity
|
|
2618
|
+
*/
|
|
2619
|
+
'_id': string;
|
|
2620
|
+
/**
|
|
2621
|
+
*
|
|
2622
|
+
* @type {string}
|
|
2623
|
+
* @memberof CustomerEntity
|
|
2624
|
+
*/
|
|
2625
|
+
'firstName': string;
|
|
2626
|
+
/**
|
|
2627
|
+
*
|
|
2628
|
+
* @type {string}
|
|
2629
|
+
* @memberof CustomerEntity
|
|
2630
|
+
*/
|
|
2631
|
+
'lastName': string;
|
|
2632
|
+
/**
|
|
2633
|
+
*
|
|
2634
|
+
* @type {string}
|
|
2635
|
+
* @memberof CustomerEntity
|
|
2636
|
+
*/
|
|
2637
|
+
'email': string;
|
|
2638
|
+
/**
|
|
2639
|
+
*
|
|
2640
|
+
* @type {string}
|
|
2641
|
+
* @memberof CustomerEntity
|
|
2642
|
+
*/
|
|
2643
|
+
'mobileNumber': string;
|
|
2644
|
+
/**
|
|
2645
|
+
*
|
|
2646
|
+
* @type {string}
|
|
2647
|
+
* @memberof CustomerEntity
|
|
2648
|
+
*/
|
|
2649
|
+
'notes': string;
|
|
2650
|
+
/**
|
|
2651
|
+
*
|
|
2652
|
+
* @type {string}
|
|
2653
|
+
* @memberof CustomerEntity
|
|
2654
|
+
*/
|
|
2655
|
+
'goodayId': string;
|
|
2656
|
+
/**
|
|
2657
|
+
*
|
|
2658
|
+
* @type {Array<TagsResponse>}
|
|
2659
|
+
* @memberof CustomerEntity
|
|
2660
|
+
*/
|
|
2661
|
+
'tags': Array<TagsResponse>;
|
|
2662
|
+
/**
|
|
2663
|
+
*
|
|
2664
|
+
* @type {BusinessEntity}
|
|
2665
|
+
* @memberof CustomerEntity
|
|
2666
|
+
*/
|
|
2667
|
+
'business': BusinessEntity;
|
|
2668
|
+
/**
|
|
2669
|
+
*
|
|
2670
|
+
* @type {BusinessVenueDetailsEntity}
|
|
2671
|
+
* @memberof CustomerEntity
|
|
2672
|
+
*/
|
|
2673
|
+
'venue': BusinessVenueDetailsEntity;
|
|
2674
|
+
}
|
|
2675
|
+
/**
|
|
2676
|
+
*
|
|
2677
|
+
* @export
|
|
2678
|
+
* @interface CustomerFilter
|
|
2679
|
+
*/
|
|
2680
|
+
export interface CustomerFilter {
|
|
2681
|
+
/**
|
|
2682
|
+
*
|
|
2683
|
+
* @type {number}
|
|
2684
|
+
* @memberof CustomerFilter
|
|
2685
|
+
*/
|
|
2686
|
+
'page': number;
|
|
2687
|
+
/**
|
|
2688
|
+
*
|
|
2689
|
+
* @type {number}
|
|
2690
|
+
* @memberof CustomerFilter
|
|
2691
|
+
*/
|
|
2692
|
+
'pageSize': number;
|
|
2693
|
+
/**
|
|
2694
|
+
*
|
|
2695
|
+
* @type {string}
|
|
2696
|
+
* @memberof CustomerFilter
|
|
2697
|
+
*/
|
|
2698
|
+
'search'?: string;
|
|
2699
|
+
/**
|
|
2700
|
+
*
|
|
2701
|
+
* @type {string}
|
|
2702
|
+
* @memberof CustomerFilter
|
|
2703
|
+
*/
|
|
2704
|
+
'venue'?: string;
|
|
2705
|
+
}
|
|
2706
|
+
/**
|
|
2707
|
+
*
|
|
2708
|
+
* @export
|
|
2709
|
+
* @interface CustomerResponseDTO
|
|
2710
|
+
*/
|
|
2711
|
+
export interface CustomerResponseDTO {
|
|
2712
|
+
/**
|
|
2713
|
+
* statusCode
|
|
2714
|
+
* @type {number}
|
|
2715
|
+
* @memberof CustomerResponseDTO
|
|
2716
|
+
*/
|
|
2717
|
+
'statusCode': number;
|
|
2718
|
+
/**
|
|
2719
|
+
* Customer response
|
|
2720
|
+
* @type {CustomerEntity}
|
|
2721
|
+
* @memberof CustomerResponseDTO
|
|
2722
|
+
*/
|
|
2723
|
+
'data': CustomerEntity;
|
|
2724
|
+
}
|
|
2522
2725
|
/**
|
|
2523
2726
|
*
|
|
2524
2727
|
* @export
|
|
@@ -3003,6 +3206,25 @@ export interface FindWaitlistResponseDTO {
|
|
|
3003
3206
|
*/
|
|
3004
3207
|
'data': Array<WaitlistEntity>;
|
|
3005
3208
|
}
|
|
3209
|
+
/**
|
|
3210
|
+
*
|
|
3211
|
+
* @export
|
|
3212
|
+
* @interface FineCustomerResponseDTO
|
|
3213
|
+
*/
|
|
3214
|
+
export interface FineCustomerResponseDTO {
|
|
3215
|
+
/**
|
|
3216
|
+
* statusCode
|
|
3217
|
+
* @type {number}
|
|
3218
|
+
* @memberof FineCustomerResponseDTO
|
|
3219
|
+
*/
|
|
3220
|
+
'statusCode': number;
|
|
3221
|
+
/**
|
|
3222
|
+
* Customer response
|
|
3223
|
+
* @type {Array<CustomerEntity>}
|
|
3224
|
+
* @memberof FineCustomerResponseDTO
|
|
3225
|
+
*/
|
|
3226
|
+
'data': Array<CustomerEntity>;
|
|
3227
|
+
}
|
|
3006
3228
|
/**
|
|
3007
3229
|
*
|
|
3008
3230
|
* @export
|
|
@@ -5173,6 +5395,12 @@ export interface TaskEntity {
|
|
|
5173
5395
|
* @memberof TaskEntity
|
|
5174
5396
|
*/
|
|
5175
5397
|
'isDeleted'?: boolean;
|
|
5398
|
+
/**
|
|
5399
|
+
*
|
|
5400
|
+
* @type {string}
|
|
5401
|
+
* @memberof TaskEntity
|
|
5402
|
+
*/
|
|
5403
|
+
'todo'?: string;
|
|
5176
5404
|
}
|
|
5177
5405
|
/**
|
|
5178
5406
|
*
|
|
@@ -7451,6 +7679,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7451
7679
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7452
7680
|
localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingInvitePayload, localVarRequestOptions, configuration)
|
|
7453
7681
|
|
|
7682
|
+
return {
|
|
7683
|
+
url: toPathString(localVarUrlObj),
|
|
7684
|
+
options: localVarRequestOptions,
|
|
7685
|
+
};
|
|
7686
|
+
},
|
|
7687
|
+
/**
|
|
7688
|
+
*
|
|
7689
|
+
* @param {CreateBookingPayload} createBookingPayload
|
|
7690
|
+
* @param {*} [options] Override http request option.
|
|
7691
|
+
* @throws {RequiredError}
|
|
7692
|
+
*/
|
|
7693
|
+
bookingVersion2ControllerCreateBooking: async (createBookingPayload: CreateBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7694
|
+
// verify required parameter 'createBookingPayload' is not null or undefined
|
|
7695
|
+
assertParamExists('bookingVersion2ControllerCreateBooking', 'createBookingPayload', createBookingPayload)
|
|
7696
|
+
const localVarPath = `/v2/booking`;
|
|
7697
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7698
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7699
|
+
let baseOptions;
|
|
7700
|
+
if (configuration) {
|
|
7701
|
+
baseOptions = configuration.baseOptions;
|
|
7702
|
+
}
|
|
7703
|
+
|
|
7704
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7705
|
+
const localVarHeaderParameter = {} as any;
|
|
7706
|
+
const localVarQueryParameter = {} as any;
|
|
7707
|
+
|
|
7708
|
+
// authentication bearer required
|
|
7709
|
+
// http bearer authentication required
|
|
7710
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7711
|
+
|
|
7712
|
+
|
|
7713
|
+
|
|
7714
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7715
|
+
|
|
7716
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7717
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7718
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7719
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBookingPayload, localVarRequestOptions, configuration)
|
|
7720
|
+
|
|
7454
7721
|
return {
|
|
7455
7722
|
url: toPathString(localVarUrlObj),
|
|
7456
7723
|
options: localVarRequestOptions,
|
|
@@ -7550,6 +7817,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
7550
7817
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRejectBookingInvite']?.[localVarOperationServerIndex]?.url;
|
|
7551
7818
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7552
7819
|
},
|
|
7820
|
+
/**
|
|
7821
|
+
*
|
|
7822
|
+
* @param {CreateBookingPayload} createBookingPayload
|
|
7823
|
+
* @param {*} [options] Override http request option.
|
|
7824
|
+
* @throws {RequiredError}
|
|
7825
|
+
*/
|
|
7826
|
+
async bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponseDTO>> {
|
|
7827
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingVersion2ControllerCreateBooking(createBookingPayload, options);
|
|
7828
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7829
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingVersion2ControllerCreateBooking']?.[localVarOperationServerIndex]?.url;
|
|
7830
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7831
|
+
},
|
|
7553
7832
|
}
|
|
7554
7833
|
};
|
|
7555
7834
|
|
|
@@ -7623,6 +7902,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
7623
7902
|
bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
|
|
7624
7903
|
return localVarFp.bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(axios, basePath));
|
|
7625
7904
|
},
|
|
7905
|
+
/**
|
|
7906
|
+
*
|
|
7907
|
+
* @param {CreateBookingPayload} createBookingPayload
|
|
7908
|
+
* @param {*} [options] Override http request option.
|
|
7909
|
+
* @throws {RequiredError}
|
|
7910
|
+
*/
|
|
7911
|
+
bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
|
|
7912
|
+
return localVarFp.bookingVersion2ControllerCreateBooking(createBookingPayload, options).then((request) => request(axios, basePath));
|
|
7913
|
+
},
|
|
7626
7914
|
};
|
|
7627
7915
|
};
|
|
7628
7916
|
|
|
@@ -7709,6 +7997,17 @@ export class BookingApi extends BaseAPI {
|
|
|
7709
7997
|
public bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig) {
|
|
7710
7998
|
return BookingApiFp(this.configuration).bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
|
|
7711
7999
|
}
|
|
8000
|
+
|
|
8001
|
+
/**
|
|
8002
|
+
*
|
|
8003
|
+
* @param {CreateBookingPayload} createBookingPayload
|
|
8004
|
+
* @param {*} [options] Override http request option.
|
|
8005
|
+
* @throws {RequiredError}
|
|
8006
|
+
* @memberof BookingApi
|
|
8007
|
+
*/
|
|
8008
|
+
public bookingVersion2ControllerCreateBooking(createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig) {
|
|
8009
|
+
return BookingApiFp(this.configuration).bookingVersion2ControllerCreateBooking(createBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
8010
|
+
}
|
|
7712
8011
|
}
|
|
7713
8012
|
|
|
7714
8013
|
|
|
@@ -9980,6 +10279,403 @@ export const CalendarControllerListEventsViewEnum = {
|
|
|
9980
10279
|
export type CalendarControllerListEventsViewEnum = typeof CalendarControllerListEventsViewEnum[keyof typeof CalendarControllerListEventsViewEnum];
|
|
9981
10280
|
|
|
9982
10281
|
|
|
10282
|
+
/**
|
|
10283
|
+
* CustomerApi - axios parameter creator
|
|
10284
|
+
* @export
|
|
10285
|
+
*/
|
|
10286
|
+
export const CustomerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10287
|
+
return {
|
|
10288
|
+
/**
|
|
10289
|
+
*
|
|
10290
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10291
|
+
* @param {*} [options] Override http request option.
|
|
10292
|
+
* @throws {RequiredError}
|
|
10293
|
+
*/
|
|
10294
|
+
customerControllerAddCustomer: async (createCustomerPayloadDTO: CreateCustomerPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10295
|
+
// verify required parameter 'createCustomerPayloadDTO' is not null or undefined
|
|
10296
|
+
assertParamExists('customerControllerAddCustomer', 'createCustomerPayloadDTO', createCustomerPayloadDTO)
|
|
10297
|
+
const localVarPath = `/v2/customer`;
|
|
10298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10299
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10300
|
+
let baseOptions;
|
|
10301
|
+
if (configuration) {
|
|
10302
|
+
baseOptions = configuration.baseOptions;
|
|
10303
|
+
}
|
|
10304
|
+
|
|
10305
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10306
|
+
const localVarHeaderParameter = {} as any;
|
|
10307
|
+
const localVarQueryParameter = {} as any;
|
|
10308
|
+
|
|
10309
|
+
// authentication bearer required
|
|
10310
|
+
// http bearer authentication required
|
|
10311
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10312
|
+
|
|
10313
|
+
|
|
10314
|
+
|
|
10315
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10316
|
+
|
|
10317
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10318
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10319
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10320
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCustomerPayloadDTO, localVarRequestOptions, configuration)
|
|
10321
|
+
|
|
10322
|
+
return {
|
|
10323
|
+
url: toPathString(localVarUrlObj),
|
|
10324
|
+
options: localVarRequestOptions,
|
|
10325
|
+
};
|
|
10326
|
+
},
|
|
10327
|
+
/**
|
|
10328
|
+
*
|
|
10329
|
+
* @param {string} id
|
|
10330
|
+
* @param {*} [options] Override http request option.
|
|
10331
|
+
* @throws {RequiredError}
|
|
10332
|
+
*/
|
|
10333
|
+
customerControllerDeleteCustomer: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10334
|
+
// verify required parameter 'id' is not null or undefined
|
|
10335
|
+
assertParamExists('customerControllerDeleteCustomer', 'id', id)
|
|
10336
|
+
const localVarPath = `/v2/customer/{id}`
|
|
10337
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10338
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10339
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10340
|
+
let baseOptions;
|
|
10341
|
+
if (configuration) {
|
|
10342
|
+
baseOptions = configuration.baseOptions;
|
|
10343
|
+
}
|
|
10344
|
+
|
|
10345
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10346
|
+
const localVarHeaderParameter = {} as any;
|
|
10347
|
+
const localVarQueryParameter = {} as any;
|
|
10348
|
+
|
|
10349
|
+
// authentication bearer required
|
|
10350
|
+
// http bearer authentication required
|
|
10351
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10352
|
+
|
|
10353
|
+
|
|
10354
|
+
|
|
10355
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10357
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10358
|
+
|
|
10359
|
+
return {
|
|
10360
|
+
url: toPathString(localVarUrlObj),
|
|
10361
|
+
options: localVarRequestOptions,
|
|
10362
|
+
};
|
|
10363
|
+
},
|
|
10364
|
+
/**
|
|
10365
|
+
*
|
|
10366
|
+
* @param {string} id
|
|
10367
|
+
* @param {*} [options] Override http request option.
|
|
10368
|
+
* @throws {RequiredError}
|
|
10369
|
+
*/
|
|
10370
|
+
customerControllerFindCustomer: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10371
|
+
// verify required parameter 'id' is not null or undefined
|
|
10372
|
+
assertParamExists('customerControllerFindCustomer', 'id', id)
|
|
10373
|
+
const localVarPath = `/v2/customer/{id}`
|
|
10374
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10376
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10377
|
+
let baseOptions;
|
|
10378
|
+
if (configuration) {
|
|
10379
|
+
baseOptions = configuration.baseOptions;
|
|
10380
|
+
}
|
|
10381
|
+
|
|
10382
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10383
|
+
const localVarHeaderParameter = {} as any;
|
|
10384
|
+
const localVarQueryParameter = {} as any;
|
|
10385
|
+
|
|
10386
|
+
// authentication bearer required
|
|
10387
|
+
// http bearer authentication required
|
|
10388
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10389
|
+
|
|
10390
|
+
|
|
10391
|
+
|
|
10392
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10393
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10394
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10395
|
+
|
|
10396
|
+
return {
|
|
10397
|
+
url: toPathString(localVarUrlObj),
|
|
10398
|
+
options: localVarRequestOptions,
|
|
10399
|
+
};
|
|
10400
|
+
},
|
|
10401
|
+
/**
|
|
10402
|
+
*
|
|
10403
|
+
* @param {CustomerFilter} customerFilter
|
|
10404
|
+
* @param {*} [options] Override http request option.
|
|
10405
|
+
* @throws {RequiredError}
|
|
10406
|
+
*/
|
|
10407
|
+
customerControllerFindCustomersList: async (customerFilter: CustomerFilter, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10408
|
+
// verify required parameter 'customerFilter' is not null or undefined
|
|
10409
|
+
assertParamExists('customerControllerFindCustomersList', 'customerFilter', customerFilter)
|
|
10410
|
+
const localVarPath = `/v2/customer/list`;
|
|
10411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10413
|
+
let baseOptions;
|
|
10414
|
+
if (configuration) {
|
|
10415
|
+
baseOptions = configuration.baseOptions;
|
|
10416
|
+
}
|
|
10417
|
+
|
|
10418
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10419
|
+
const localVarHeaderParameter = {} as any;
|
|
10420
|
+
const localVarQueryParameter = {} as any;
|
|
10421
|
+
|
|
10422
|
+
// authentication bearer required
|
|
10423
|
+
// http bearer authentication required
|
|
10424
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10425
|
+
|
|
10426
|
+
|
|
10427
|
+
|
|
10428
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10429
|
+
|
|
10430
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10432
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10433
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerFilter, localVarRequestOptions, configuration)
|
|
10434
|
+
|
|
10435
|
+
return {
|
|
10436
|
+
url: toPathString(localVarUrlObj),
|
|
10437
|
+
options: localVarRequestOptions,
|
|
10438
|
+
};
|
|
10439
|
+
},
|
|
10440
|
+
/**
|
|
10441
|
+
*
|
|
10442
|
+
* @param {string} id
|
|
10443
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10444
|
+
* @param {*} [options] Override http request option.
|
|
10445
|
+
* @throws {RequiredError}
|
|
10446
|
+
*/
|
|
10447
|
+
customerControllerUpdateCustomer: async (id: string, createCustomerPayloadDTO: CreateCustomerPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10448
|
+
// verify required parameter 'id' is not null or undefined
|
|
10449
|
+
assertParamExists('customerControllerUpdateCustomer', 'id', id)
|
|
10450
|
+
// verify required parameter 'createCustomerPayloadDTO' is not null or undefined
|
|
10451
|
+
assertParamExists('customerControllerUpdateCustomer', 'createCustomerPayloadDTO', createCustomerPayloadDTO)
|
|
10452
|
+
const localVarPath = `/v2/customer/{id}`
|
|
10453
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
10454
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10455
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10456
|
+
let baseOptions;
|
|
10457
|
+
if (configuration) {
|
|
10458
|
+
baseOptions = configuration.baseOptions;
|
|
10459
|
+
}
|
|
10460
|
+
|
|
10461
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
10462
|
+
const localVarHeaderParameter = {} as any;
|
|
10463
|
+
const localVarQueryParameter = {} as any;
|
|
10464
|
+
|
|
10465
|
+
// authentication bearer required
|
|
10466
|
+
// http bearer authentication required
|
|
10467
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10468
|
+
|
|
10469
|
+
|
|
10470
|
+
|
|
10471
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10472
|
+
|
|
10473
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10474
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10475
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10476
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCustomerPayloadDTO, localVarRequestOptions, configuration)
|
|
10477
|
+
|
|
10478
|
+
return {
|
|
10479
|
+
url: toPathString(localVarUrlObj),
|
|
10480
|
+
options: localVarRequestOptions,
|
|
10481
|
+
};
|
|
10482
|
+
},
|
|
10483
|
+
}
|
|
10484
|
+
};
|
|
10485
|
+
|
|
10486
|
+
/**
|
|
10487
|
+
* CustomerApi - functional programming interface
|
|
10488
|
+
* @export
|
|
10489
|
+
*/
|
|
10490
|
+
export const CustomerApiFp = function(configuration?: Configuration) {
|
|
10491
|
+
const localVarAxiosParamCreator = CustomerApiAxiosParamCreator(configuration)
|
|
10492
|
+
return {
|
|
10493
|
+
/**
|
|
10494
|
+
*
|
|
10495
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10496
|
+
* @param {*} [options] Override http request option.
|
|
10497
|
+
* @throws {RequiredError}
|
|
10498
|
+
*/
|
|
10499
|
+
async customerControllerAddCustomer(createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerResponseDTO>> {
|
|
10500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerAddCustomer(createCustomerPayloadDTO, options);
|
|
10501
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10502
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerAddCustomer']?.[localVarOperationServerIndex]?.url;
|
|
10503
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10504
|
+
},
|
|
10505
|
+
/**
|
|
10506
|
+
*
|
|
10507
|
+
* @param {string} id
|
|
10508
|
+
* @param {*} [options] Override http request option.
|
|
10509
|
+
* @throws {RequiredError}
|
|
10510
|
+
*/
|
|
10511
|
+
async customerControllerDeleteCustomer(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerDeleteResponseDTO>> {
|
|
10512
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerDeleteCustomer(id, options);
|
|
10513
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10514
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerDeleteCustomer']?.[localVarOperationServerIndex]?.url;
|
|
10515
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10516
|
+
},
|
|
10517
|
+
/**
|
|
10518
|
+
*
|
|
10519
|
+
* @param {string} id
|
|
10520
|
+
* @param {*} [options] Override http request option.
|
|
10521
|
+
* @throws {RequiredError}
|
|
10522
|
+
*/
|
|
10523
|
+
async customerControllerFindCustomer(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerResponseDTO>> {
|
|
10524
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerFindCustomer(id, options);
|
|
10525
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10526
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerFindCustomer']?.[localVarOperationServerIndex]?.url;
|
|
10527
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10528
|
+
},
|
|
10529
|
+
/**
|
|
10530
|
+
*
|
|
10531
|
+
* @param {CustomerFilter} customerFilter
|
|
10532
|
+
* @param {*} [options] Override http request option.
|
|
10533
|
+
* @throws {RequiredError}
|
|
10534
|
+
*/
|
|
10535
|
+
async customerControllerFindCustomersList(customerFilter: CustomerFilter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FineCustomerResponseDTO>> {
|
|
10536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerFindCustomersList(customerFilter, options);
|
|
10537
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10538
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerFindCustomersList']?.[localVarOperationServerIndex]?.url;
|
|
10539
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10540
|
+
},
|
|
10541
|
+
/**
|
|
10542
|
+
*
|
|
10543
|
+
* @param {string} id
|
|
10544
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10545
|
+
* @param {*} [options] Override http request option.
|
|
10546
|
+
* @throws {RequiredError}
|
|
10547
|
+
*/
|
|
10548
|
+
async customerControllerUpdateCustomer(id: string, createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerResponseDTO>> {
|
|
10549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.customerControllerUpdateCustomer(id, createCustomerPayloadDTO, options);
|
|
10550
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10551
|
+
const localVarOperationServerBasePath = operationServerMap['CustomerApi.customerControllerUpdateCustomer']?.[localVarOperationServerIndex]?.url;
|
|
10552
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10553
|
+
},
|
|
10554
|
+
}
|
|
10555
|
+
};
|
|
10556
|
+
|
|
10557
|
+
/**
|
|
10558
|
+
* CustomerApi - factory interface
|
|
10559
|
+
* @export
|
|
10560
|
+
*/
|
|
10561
|
+
export const CustomerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10562
|
+
const localVarFp = CustomerApiFp(configuration)
|
|
10563
|
+
return {
|
|
10564
|
+
/**
|
|
10565
|
+
*
|
|
10566
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10567
|
+
* @param {*} [options] Override http request option.
|
|
10568
|
+
* @throws {RequiredError}
|
|
10569
|
+
*/
|
|
10570
|
+
customerControllerAddCustomer(createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<CustomerResponseDTO> {
|
|
10571
|
+
return localVarFp.customerControllerAddCustomer(createCustomerPayloadDTO, options).then((request) => request(axios, basePath));
|
|
10572
|
+
},
|
|
10573
|
+
/**
|
|
10574
|
+
*
|
|
10575
|
+
* @param {string} id
|
|
10576
|
+
* @param {*} [options] Override http request option.
|
|
10577
|
+
* @throws {RequiredError}
|
|
10578
|
+
*/
|
|
10579
|
+
customerControllerDeleteCustomer(id: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomerDeleteResponseDTO> {
|
|
10580
|
+
return localVarFp.customerControllerDeleteCustomer(id, options).then((request) => request(axios, basePath));
|
|
10581
|
+
},
|
|
10582
|
+
/**
|
|
10583
|
+
*
|
|
10584
|
+
* @param {string} id
|
|
10585
|
+
* @param {*} [options] Override http request option.
|
|
10586
|
+
* @throws {RequiredError}
|
|
10587
|
+
*/
|
|
10588
|
+
customerControllerFindCustomer(id: string, options?: RawAxiosRequestConfig): AxiosPromise<CustomerResponseDTO> {
|
|
10589
|
+
return localVarFp.customerControllerFindCustomer(id, options).then((request) => request(axios, basePath));
|
|
10590
|
+
},
|
|
10591
|
+
/**
|
|
10592
|
+
*
|
|
10593
|
+
* @param {CustomerFilter} customerFilter
|
|
10594
|
+
* @param {*} [options] Override http request option.
|
|
10595
|
+
* @throws {RequiredError}
|
|
10596
|
+
*/
|
|
10597
|
+
customerControllerFindCustomersList(customerFilter: CustomerFilter, options?: RawAxiosRequestConfig): AxiosPromise<FineCustomerResponseDTO> {
|
|
10598
|
+
return localVarFp.customerControllerFindCustomersList(customerFilter, options).then((request) => request(axios, basePath));
|
|
10599
|
+
},
|
|
10600
|
+
/**
|
|
10601
|
+
*
|
|
10602
|
+
* @param {string} id
|
|
10603
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10604
|
+
* @param {*} [options] Override http request option.
|
|
10605
|
+
* @throws {RequiredError}
|
|
10606
|
+
*/
|
|
10607
|
+
customerControllerUpdateCustomer(id: string, createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<CustomerResponseDTO> {
|
|
10608
|
+
return localVarFp.customerControllerUpdateCustomer(id, createCustomerPayloadDTO, options).then((request) => request(axios, basePath));
|
|
10609
|
+
},
|
|
10610
|
+
};
|
|
10611
|
+
};
|
|
10612
|
+
|
|
10613
|
+
/**
|
|
10614
|
+
* CustomerApi - object-oriented interface
|
|
10615
|
+
* @export
|
|
10616
|
+
* @class CustomerApi
|
|
10617
|
+
* @extends {BaseAPI}
|
|
10618
|
+
*/
|
|
10619
|
+
export class CustomerApi extends BaseAPI {
|
|
10620
|
+
/**
|
|
10621
|
+
*
|
|
10622
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10623
|
+
* @param {*} [options] Override http request option.
|
|
10624
|
+
* @throws {RequiredError}
|
|
10625
|
+
* @memberof CustomerApi
|
|
10626
|
+
*/
|
|
10627
|
+
public customerControllerAddCustomer(createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
10628
|
+
return CustomerApiFp(this.configuration).customerControllerAddCustomer(createCustomerPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10629
|
+
}
|
|
10630
|
+
|
|
10631
|
+
/**
|
|
10632
|
+
*
|
|
10633
|
+
* @param {string} id
|
|
10634
|
+
* @param {*} [options] Override http request option.
|
|
10635
|
+
* @throws {RequiredError}
|
|
10636
|
+
* @memberof CustomerApi
|
|
10637
|
+
*/
|
|
10638
|
+
public customerControllerDeleteCustomer(id: string, options?: RawAxiosRequestConfig) {
|
|
10639
|
+
return CustomerApiFp(this.configuration).customerControllerDeleteCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
10640
|
+
}
|
|
10641
|
+
|
|
10642
|
+
/**
|
|
10643
|
+
*
|
|
10644
|
+
* @param {string} id
|
|
10645
|
+
* @param {*} [options] Override http request option.
|
|
10646
|
+
* @throws {RequiredError}
|
|
10647
|
+
* @memberof CustomerApi
|
|
10648
|
+
*/
|
|
10649
|
+
public customerControllerFindCustomer(id: string, options?: RawAxiosRequestConfig) {
|
|
10650
|
+
return CustomerApiFp(this.configuration).customerControllerFindCustomer(id, options).then((request) => request(this.axios, this.basePath));
|
|
10651
|
+
}
|
|
10652
|
+
|
|
10653
|
+
/**
|
|
10654
|
+
*
|
|
10655
|
+
* @param {CustomerFilter} customerFilter
|
|
10656
|
+
* @param {*} [options] Override http request option.
|
|
10657
|
+
* @throws {RequiredError}
|
|
10658
|
+
* @memberof CustomerApi
|
|
10659
|
+
*/
|
|
10660
|
+
public customerControllerFindCustomersList(customerFilter: CustomerFilter, options?: RawAxiosRequestConfig) {
|
|
10661
|
+
return CustomerApiFp(this.configuration).customerControllerFindCustomersList(customerFilter, options).then((request) => request(this.axios, this.basePath));
|
|
10662
|
+
}
|
|
10663
|
+
|
|
10664
|
+
/**
|
|
10665
|
+
*
|
|
10666
|
+
* @param {string} id
|
|
10667
|
+
* @param {CreateCustomerPayloadDTO} createCustomerPayloadDTO
|
|
10668
|
+
* @param {*} [options] Override http request option.
|
|
10669
|
+
* @throws {RequiredError}
|
|
10670
|
+
* @memberof CustomerApi
|
|
10671
|
+
*/
|
|
10672
|
+
public customerControllerUpdateCustomer(id: string, createCustomerPayloadDTO: CreateCustomerPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
10673
|
+
return CustomerApiFp(this.configuration).customerControllerUpdateCustomer(id, createCustomerPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
10674
|
+
}
|
|
10675
|
+
}
|
|
10676
|
+
|
|
10677
|
+
|
|
10678
|
+
|
|
9983
10679
|
/**
|
|
9984
10680
|
* DeviceApi - axios parameter creator
|
|
9985
10681
|
* @export
|