@gooday_corp/gooday-api-client 1.2.44 → 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 +83 -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}
|
|
@@ -5389,6 +5395,12 @@ export interface TaskEntity {
|
|
|
5389
5395
|
* @memberof TaskEntity
|
|
5390
5396
|
*/
|
|
5391
5397
|
'isDeleted'?: boolean;
|
|
5398
|
+
/**
|
|
5399
|
+
*
|
|
5400
|
+
* @type {string}
|
|
5401
|
+
* @memberof TaskEntity
|
|
5402
|
+
*/
|
|
5403
|
+
'todo'?: string;
|
|
5392
5404
|
}
|
|
5393
5405
|
/**
|
|
5394
5406
|
*
|
|
@@ -7667,6 +7679,45 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7667
7679
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7668
7680
|
localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingInvitePayload, localVarRequestOptions, configuration)
|
|
7669
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
|
+
|
|
7670
7721
|
return {
|
|
7671
7722
|
url: toPathString(localVarUrlObj),
|
|
7672
7723
|
options: localVarRequestOptions,
|
|
@@ -7766,6 +7817,18 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
7766
7817
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRejectBookingInvite']?.[localVarOperationServerIndex]?.url;
|
|
7767
7818
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7768
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
|
+
},
|
|
7769
7832
|
}
|
|
7770
7833
|
};
|
|
7771
7834
|
|
|
@@ -7839,6 +7902,15 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
7839
7902
|
bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
|
|
7840
7903
|
return localVarFp.bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(axios, basePath));
|
|
7841
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
|
+
},
|
|
7842
7914
|
};
|
|
7843
7915
|
};
|
|
7844
7916
|
|
|
@@ -7925,6 +7997,17 @@ export class BookingApi extends BaseAPI {
|
|
|
7925
7997
|
public bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig) {
|
|
7926
7998
|
return BookingApiFp(this.configuration).bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
|
|
7927
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
|
+
}
|
|
7928
8011
|
}
|
|
7929
8012
|
|
|
7930
8013
|
|