@gooday_corp/gooday-api-client 1.2.54 → 1.2.59
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 +39 -11
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -616,6 +616,12 @@ export interface BookingEntity {
|
|
|
616
616
|
* @memberof BookingEntity
|
|
617
617
|
*/
|
|
618
618
|
'paymentMethod': StripeSetupIntentPaymentResponse;
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @type {Array<TagsResponse>}
|
|
622
|
+
* @memberof BookingEntity
|
|
623
|
+
*/
|
|
624
|
+
'tags': Array<TagsResponse>;
|
|
619
625
|
}
|
|
620
626
|
|
|
621
627
|
export const BookingEntityStatusEnum = {
|
|
@@ -3114,10 +3120,10 @@ export interface FindBookingPayload {
|
|
|
3114
3120
|
'staffs': Array<string>;
|
|
3115
3121
|
/**
|
|
3116
3122
|
*
|
|
3117
|
-
* @type {string}
|
|
3123
|
+
* @type {Array<string>}
|
|
3118
3124
|
* @memberof FindBookingPayload
|
|
3119
3125
|
*/
|
|
3120
|
-
'status': FindBookingPayloadStatusEnum
|
|
3126
|
+
'status': Array<FindBookingPayloadStatusEnum>;
|
|
3121
3127
|
/**
|
|
3122
3128
|
*
|
|
3123
3129
|
* @type {number}
|
|
@@ -3699,6 +3705,12 @@ export interface HistoryEntity {
|
|
|
3699
3705
|
* @memberof HistoryEntity
|
|
3700
3706
|
*/
|
|
3701
3707
|
'modalName': HistoryEntityModalNameEnum;
|
|
3708
|
+
/**
|
|
3709
|
+
*
|
|
3710
|
+
* @type {string}
|
|
3711
|
+
* @memberof HistoryEntity
|
|
3712
|
+
*/
|
|
3713
|
+
'bookingId': string;
|
|
3702
3714
|
}
|
|
3703
3715
|
|
|
3704
3716
|
export const HistoryEntityModalNameEnum = {
|
|
@@ -3732,6 +3744,12 @@ export interface HistoryPayloadDTO {
|
|
|
3732
3744
|
* @memberof HistoryPayloadDTO
|
|
3733
3745
|
*/
|
|
3734
3746
|
'modalName': HistoryPayloadDTOModalNameEnum;
|
|
3747
|
+
/**
|
|
3748
|
+
*
|
|
3749
|
+
* @type {string}
|
|
3750
|
+
* @memberof HistoryPayloadDTO
|
|
3751
|
+
*/
|
|
3752
|
+
'bookingId': string;
|
|
3735
3753
|
}
|
|
3736
3754
|
|
|
3737
3755
|
export const HistoryPayloadDTOModalNameEnum = {
|
|
@@ -12535,15 +12553,18 @@ export const HistoryApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12535
12553
|
*
|
|
12536
12554
|
* @param {number} page
|
|
12537
12555
|
* @param {number} pageSize
|
|
12556
|
+
* @param {string} bookingId
|
|
12538
12557
|
* @param {*} [options] Override http request option.
|
|
12539
12558
|
* @throws {RequiredError}
|
|
12540
12559
|
*/
|
|
12541
|
-
historyControllerFindHistory: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12560
|
+
historyControllerFindHistory: async (page: number, pageSize: number, bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12542
12561
|
// verify required parameter 'page' is not null or undefined
|
|
12543
12562
|
assertParamExists('historyControllerFindHistory', 'page', page)
|
|
12544
12563
|
// verify required parameter 'pageSize' is not null or undefined
|
|
12545
12564
|
assertParamExists('historyControllerFindHistory', 'pageSize', pageSize)
|
|
12546
|
-
|
|
12565
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
12566
|
+
assertParamExists('historyControllerFindHistory', 'bookingId', bookingId)
|
|
12567
|
+
const localVarPath = `/v1/history/list`;
|
|
12547
12568
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12548
12569
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12549
12570
|
let baseOptions;
|
|
@@ -12551,7 +12572,7 @@ export const HistoryApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12551
12572
|
baseOptions = configuration.baseOptions;
|
|
12552
12573
|
}
|
|
12553
12574
|
|
|
12554
|
-
const localVarRequestOptions = { method: '
|
|
12575
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12555
12576
|
const localVarHeaderParameter = {} as any;
|
|
12556
12577
|
const localVarQueryParameter = {} as any;
|
|
12557
12578
|
|
|
@@ -12567,6 +12588,10 @@ export const HistoryApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
12567
12588
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
12568
12589
|
}
|
|
12569
12590
|
|
|
12591
|
+
if (bookingId !== undefined) {
|
|
12592
|
+
localVarQueryParameter['bookingId'] = bookingId;
|
|
12593
|
+
}
|
|
12594
|
+
|
|
12570
12595
|
|
|
12571
12596
|
|
|
12572
12597
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12604,11 +12629,12 @@ export const HistoryApiFp = function(configuration?: Configuration) {
|
|
|
12604
12629
|
*
|
|
12605
12630
|
* @param {number} page
|
|
12606
12631
|
* @param {number} pageSize
|
|
12632
|
+
* @param {string} bookingId
|
|
12607
12633
|
* @param {*} [options] Override http request option.
|
|
12608
12634
|
* @throws {RequiredError}
|
|
12609
12635
|
*/
|
|
12610
|
-
async historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindHistoryResponseDTO>> {
|
|
12611
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.historyControllerFindHistory(page, pageSize, options);
|
|
12636
|
+
async historyControllerFindHistory(page: number, pageSize: number, bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindHistoryResponseDTO>> {
|
|
12637
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.historyControllerFindHistory(page, pageSize, bookingId, options);
|
|
12612
12638
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12613
12639
|
const localVarOperationServerBasePath = operationServerMap['HistoryApi.historyControllerFindHistory']?.[localVarOperationServerIndex]?.url;
|
|
12614
12640
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12636,11 +12662,12 @@ export const HistoryApiFactory = function (configuration?: Configuration, basePa
|
|
|
12636
12662
|
*
|
|
12637
12663
|
* @param {number} page
|
|
12638
12664
|
* @param {number} pageSize
|
|
12665
|
+
* @param {string} bookingId
|
|
12639
12666
|
* @param {*} [options] Override http request option.
|
|
12640
12667
|
* @throws {RequiredError}
|
|
12641
12668
|
*/
|
|
12642
|
-
historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<FindHistoryResponseDTO> {
|
|
12643
|
-
return localVarFp.historyControllerFindHistory(page, pageSize, options).then((request) => request(axios, basePath));
|
|
12669
|
+
historyControllerFindHistory(page: number, pageSize: number, bookingId: string, options?: RawAxiosRequestConfig): AxiosPromise<FindHistoryResponseDTO> {
|
|
12670
|
+
return localVarFp.historyControllerFindHistory(page, pageSize, bookingId, options).then((request) => request(axios, basePath));
|
|
12644
12671
|
},
|
|
12645
12672
|
};
|
|
12646
12673
|
};
|
|
@@ -12667,12 +12694,13 @@ export class HistoryApi extends BaseAPI {
|
|
|
12667
12694
|
*
|
|
12668
12695
|
* @param {number} page
|
|
12669
12696
|
* @param {number} pageSize
|
|
12697
|
+
* @param {string} bookingId
|
|
12670
12698
|
* @param {*} [options] Override http request option.
|
|
12671
12699
|
* @throws {RequiredError}
|
|
12672
12700
|
* @memberof HistoryApi
|
|
12673
12701
|
*/
|
|
12674
|
-
public historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
|
|
12675
|
-
return HistoryApiFp(this.configuration).historyControllerFindHistory(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
12702
|
+
public historyControllerFindHistory(page: number, pageSize: number, bookingId: string, options?: RawAxiosRequestConfig) {
|
|
12703
|
+
return HistoryApiFp(this.configuration).historyControllerFindHistory(page, pageSize, bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12676
12704
|
}
|
|
12677
12705
|
}
|
|
12678
12706
|
|