@gooday_corp/gooday-api-client 1.2.116 → 1.2.117
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 +210 -63
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,6 +23,25 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AISuggestionResponseDTO
|
|
30
|
+
*/
|
|
31
|
+
export interface AISuggestionResponseDTO {
|
|
32
|
+
/**
|
|
33
|
+
* statusCode
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof AISuggestionResponseDTO
|
|
36
|
+
*/
|
|
37
|
+
'statusCode': number;
|
|
38
|
+
/**
|
|
39
|
+
* AI Suggestion
|
|
40
|
+
* @type {Array<SuggestionEntity>}
|
|
41
|
+
* @memberof AISuggestionResponseDTO
|
|
42
|
+
*/
|
|
43
|
+
'data': Array<SuggestionEntity>;
|
|
44
|
+
}
|
|
26
45
|
/**
|
|
27
46
|
*
|
|
28
47
|
* @export
|
|
@@ -780,10 +799,10 @@ export interface BookingEntity {
|
|
|
780
799
|
'whatsOn': WhatsOnEntity;
|
|
781
800
|
/**
|
|
782
801
|
* Cancellation fee
|
|
783
|
-
* @type {
|
|
802
|
+
* @type {object}
|
|
784
803
|
* @memberof BookingEntity
|
|
785
804
|
*/
|
|
786
|
-
'cancellationFee'?:
|
|
805
|
+
'cancellationFee'?: object;
|
|
787
806
|
}
|
|
788
807
|
|
|
789
808
|
export const BookingEntityStatusEnum = {
|
|
@@ -6164,6 +6183,74 @@ export interface StripeSetupPaymentIntentDTO {
|
|
|
6164
6183
|
*/
|
|
6165
6184
|
'clientSecret': string;
|
|
6166
6185
|
}
|
|
6186
|
+
/**
|
|
6187
|
+
*
|
|
6188
|
+
* @export
|
|
6189
|
+
* @interface SuggestionActions
|
|
6190
|
+
*/
|
|
6191
|
+
export interface SuggestionActions {
|
|
6192
|
+
/**
|
|
6193
|
+
*
|
|
6194
|
+
* @type {string}
|
|
6195
|
+
* @memberof SuggestionActions
|
|
6196
|
+
*/
|
|
6197
|
+
'label': string;
|
|
6198
|
+
/**
|
|
6199
|
+
*
|
|
6200
|
+
* @type {string}
|
|
6201
|
+
* @memberof SuggestionActions
|
|
6202
|
+
*/
|
|
6203
|
+
'target': string;
|
|
6204
|
+
}
|
|
6205
|
+
/**
|
|
6206
|
+
*
|
|
6207
|
+
* @export
|
|
6208
|
+
* @interface SuggestionEntity
|
|
6209
|
+
*/
|
|
6210
|
+
export interface SuggestionEntity {
|
|
6211
|
+
/**
|
|
6212
|
+
*
|
|
6213
|
+
* @type {string}
|
|
6214
|
+
* @memberof SuggestionEntity
|
|
6215
|
+
*/
|
|
6216
|
+
'_id': string;
|
|
6217
|
+
/**
|
|
6218
|
+
*
|
|
6219
|
+
* @type {string}
|
|
6220
|
+
* @memberof SuggestionEntity
|
|
6221
|
+
*/
|
|
6222
|
+
'title': string;
|
|
6223
|
+
/**
|
|
6224
|
+
*
|
|
6225
|
+
* @type {string}
|
|
6226
|
+
* @memberof SuggestionEntity
|
|
6227
|
+
*/
|
|
6228
|
+
'description': string;
|
|
6229
|
+
/**
|
|
6230
|
+
*
|
|
6231
|
+
* @type {UserEntity}
|
|
6232
|
+
* @memberof SuggestionEntity
|
|
6233
|
+
*/
|
|
6234
|
+
'userId': UserEntity;
|
|
6235
|
+
/**
|
|
6236
|
+
*
|
|
6237
|
+
* @type {AssistantEntity}
|
|
6238
|
+
* @memberof SuggestionEntity
|
|
6239
|
+
*/
|
|
6240
|
+
'assistant': AssistantEntity;
|
|
6241
|
+
/**
|
|
6242
|
+
*
|
|
6243
|
+
* @type {object}
|
|
6244
|
+
* @memberof SuggestionEntity
|
|
6245
|
+
*/
|
|
6246
|
+
'metaData': object;
|
|
6247
|
+
/**
|
|
6248
|
+
*
|
|
6249
|
+
* @type {Array<SuggestionActions>}
|
|
6250
|
+
* @memberof SuggestionEntity
|
|
6251
|
+
*/
|
|
6252
|
+
'actions': Array<SuggestionActions>;
|
|
6253
|
+
}
|
|
6167
6254
|
/**
|
|
6168
6255
|
*
|
|
6169
6256
|
* @export
|
|
@@ -7273,6 +7360,53 @@ export interface WaitlistResponseDTO {
|
|
|
7273
7360
|
*/
|
|
7274
7361
|
'data': WaitlistEntity;
|
|
7275
7362
|
}
|
|
7363
|
+
/**
|
|
7364
|
+
*
|
|
7365
|
+
* @export
|
|
7366
|
+
* @interface WaitlistStaff
|
|
7367
|
+
*/
|
|
7368
|
+
export interface WaitlistStaff {
|
|
7369
|
+
/**
|
|
7370
|
+
*
|
|
7371
|
+
* @type {number}
|
|
7372
|
+
* @memberof WaitlistStaff
|
|
7373
|
+
*/
|
|
7374
|
+
'page': number;
|
|
7375
|
+
/**
|
|
7376
|
+
*
|
|
7377
|
+
* @type {number}
|
|
7378
|
+
* @memberof WaitlistStaff
|
|
7379
|
+
*/
|
|
7380
|
+
'pageSize': number;
|
|
7381
|
+
/**
|
|
7382
|
+
*
|
|
7383
|
+
* @type {string}
|
|
7384
|
+
* @memberof WaitlistStaff
|
|
7385
|
+
*/
|
|
7386
|
+
'search'?: string;
|
|
7387
|
+
/**
|
|
7388
|
+
*
|
|
7389
|
+
* @type {string}
|
|
7390
|
+
* @memberof WaitlistStaff
|
|
7391
|
+
*/
|
|
7392
|
+
'venue'?: string;
|
|
7393
|
+
/**
|
|
7394
|
+
*
|
|
7395
|
+
* @type {Array<string>}
|
|
7396
|
+
* @memberof WaitlistStaff
|
|
7397
|
+
*/
|
|
7398
|
+
'status'?: Array<WaitlistStaffStatusEnum>;
|
|
7399
|
+
}
|
|
7400
|
+
|
|
7401
|
+
export const WaitlistStaffStatusEnum = {
|
|
7402
|
+
Pending: 'PENDING',
|
|
7403
|
+
Confirm: 'CONFIRM',
|
|
7404
|
+
ConnectedNoAnswer: 'CONNECTED_NO_ANSWER',
|
|
7405
|
+
Withdraw: 'WITHDRAW'
|
|
7406
|
+
} as const;
|
|
7407
|
+
|
|
7408
|
+
export type WaitlistStaffStatusEnum = typeof WaitlistStaffStatusEnum[keyof typeof WaitlistStaffStatusEnum];
|
|
7409
|
+
|
|
7276
7410
|
/**
|
|
7277
7411
|
*
|
|
7278
7412
|
* @export
|
|
@@ -7996,6 +8130,35 @@ export interface WhatsOnUnFavoriteResponse {
|
|
|
7996
8130
|
*/
|
|
7997
8131
|
export const AIApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7998
8132
|
return {
|
|
8133
|
+
/**
|
|
8134
|
+
*
|
|
8135
|
+
* @param {*} [options] Override http request option.
|
|
8136
|
+
* @throws {RequiredError}
|
|
8137
|
+
*/
|
|
8138
|
+
aISuggestionControllerFindAiSuggestion: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8139
|
+
const localVarPath = `/v1/ai/suggestion/list`;
|
|
8140
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8142
|
+
let baseOptions;
|
|
8143
|
+
if (configuration) {
|
|
8144
|
+
baseOptions = configuration.baseOptions;
|
|
8145
|
+
}
|
|
8146
|
+
|
|
8147
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8148
|
+
const localVarHeaderParameter = {} as any;
|
|
8149
|
+
const localVarQueryParameter = {} as any;
|
|
8150
|
+
|
|
8151
|
+
|
|
8152
|
+
|
|
8153
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8154
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8155
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8156
|
+
|
|
8157
|
+
return {
|
|
8158
|
+
url: toPathString(localVarUrlObj),
|
|
8159
|
+
options: localVarRequestOptions,
|
|
8160
|
+
};
|
|
8161
|
+
},
|
|
7999
8162
|
/**
|
|
8000
8163
|
*
|
|
8001
8164
|
* @param {*} [options] Override http request option.
|
|
@@ -8068,6 +8231,17 @@ export const AIApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
|
8068
8231
|
export const AIApiFp = function(configuration?: Configuration) {
|
|
8069
8232
|
const localVarAxiosParamCreator = AIApiAxiosParamCreator(configuration)
|
|
8070
8233
|
return {
|
|
8234
|
+
/**
|
|
8235
|
+
*
|
|
8236
|
+
* @param {*} [options] Override http request option.
|
|
8237
|
+
* @throws {RequiredError}
|
|
8238
|
+
*/
|
|
8239
|
+
async aISuggestionControllerFindAiSuggestion(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AISuggestionResponseDTO>> {
|
|
8240
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.aISuggestionControllerFindAiSuggestion(options);
|
|
8241
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8242
|
+
const localVarOperationServerBasePath = operationServerMap['AIApi.aISuggestionControllerFindAiSuggestion']?.[localVarOperationServerIndex]?.url;
|
|
8243
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8244
|
+
},
|
|
8071
8245
|
/**
|
|
8072
8246
|
*
|
|
8073
8247
|
* @param {*} [options] Override http request option.
|
|
@@ -8100,6 +8274,14 @@ export const AIApiFp = function(configuration?: Configuration) {
|
|
|
8100
8274
|
export const AIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8101
8275
|
const localVarFp = AIApiFp(configuration)
|
|
8102
8276
|
return {
|
|
8277
|
+
/**
|
|
8278
|
+
*
|
|
8279
|
+
* @param {*} [options] Override http request option.
|
|
8280
|
+
* @throws {RequiredError}
|
|
8281
|
+
*/
|
|
8282
|
+
aISuggestionControllerFindAiSuggestion(options?: RawAxiosRequestConfig): AxiosPromise<AISuggestionResponseDTO> {
|
|
8283
|
+
return localVarFp.aISuggestionControllerFindAiSuggestion(options).then((request) => request(axios, basePath));
|
|
8284
|
+
},
|
|
8103
8285
|
/**
|
|
8104
8286
|
*
|
|
8105
8287
|
* @param {*} [options] Override http request option.
|
|
@@ -8126,6 +8308,16 @@ export const AIApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
8126
8308
|
* @extends {BaseAPI}
|
|
8127
8309
|
*/
|
|
8128
8310
|
export class AIApi extends BaseAPI {
|
|
8311
|
+
/**
|
|
8312
|
+
*
|
|
8313
|
+
* @param {*} [options] Override http request option.
|
|
8314
|
+
* @throws {RequiredError}
|
|
8315
|
+
* @memberof AIApi
|
|
8316
|
+
*/
|
|
8317
|
+
public aISuggestionControllerFindAiSuggestion(options?: RawAxiosRequestConfig) {
|
|
8318
|
+
return AIApiFp(this.configuration).aISuggestionControllerFindAiSuggestion(options).then((request) => request(this.axios, this.basePath));
|
|
8319
|
+
}
|
|
8320
|
+
|
|
8129
8321
|
/**
|
|
8130
8322
|
*
|
|
8131
8323
|
* @param {*} [options] Override http request option.
|
|
@@ -19679,19 +19871,13 @@ export const WaitlistApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
19679
19871
|
},
|
|
19680
19872
|
/**
|
|
19681
19873
|
*
|
|
19682
|
-
* @param {
|
|
19683
|
-
* @param {number} pageSize
|
|
19684
|
-
* @param {string} [search]
|
|
19685
|
-
* @param {string} [venue]
|
|
19686
|
-
* @param {Array<WaitlistControllerFindWaitlistStatusEnum>} [status]
|
|
19874
|
+
* @param {WaitlistStaff} waitlistStaff
|
|
19687
19875
|
* @param {*} [options] Override http request option.
|
|
19688
19876
|
* @throws {RequiredError}
|
|
19689
19877
|
*/
|
|
19690
|
-
waitlistControllerFindWaitlist: async (
|
|
19691
|
-
// verify required parameter '
|
|
19692
|
-
assertParamExists('waitlistControllerFindWaitlist', '
|
|
19693
|
-
// verify required parameter 'pageSize' is not null or undefined
|
|
19694
|
-
assertParamExists('waitlistControllerFindWaitlist', 'pageSize', pageSize)
|
|
19878
|
+
waitlistControllerFindWaitlist: async (waitlistStaff: WaitlistStaff, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19879
|
+
// verify required parameter 'waitlistStaff' is not null or undefined
|
|
19880
|
+
assertParamExists('waitlistControllerFindWaitlist', 'waitlistStaff', waitlistStaff)
|
|
19695
19881
|
const localVarPath = `/v1/waitlist/list`;
|
|
19696
19882
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19697
19883
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -19708,31 +19894,14 @@ export const WaitlistApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
19708
19894
|
// http bearer authentication required
|
|
19709
19895
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19710
19896
|
|
|
19711
|
-
if (page !== undefined) {
|
|
19712
|
-
localVarQueryParameter['page'] = page;
|
|
19713
|
-
}
|
|
19714
|
-
|
|
19715
|
-
if (pageSize !== undefined) {
|
|
19716
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
19717
|
-
}
|
|
19718
|
-
|
|
19719
|
-
if (search !== undefined) {
|
|
19720
|
-
localVarQueryParameter['search'] = search;
|
|
19721
|
-
}
|
|
19722
|
-
|
|
19723
|
-
if (venue !== undefined) {
|
|
19724
|
-
localVarQueryParameter['venue'] = venue;
|
|
19725
|
-
}
|
|
19726
|
-
|
|
19727
|
-
if (status) {
|
|
19728
|
-
localVarQueryParameter['status'] = status;
|
|
19729
|
-
}
|
|
19730
|
-
|
|
19731
19897
|
|
|
19732
19898
|
|
|
19899
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19900
|
+
|
|
19733
19901
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19734
19902
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19735
19903
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19904
|
+
localVarRequestOptions.data = serializeDataIfNeeded(waitlistStaff, localVarRequestOptions, configuration)
|
|
19736
19905
|
|
|
19737
19906
|
return {
|
|
19738
19907
|
url: toPathString(localVarUrlObj),
|
|
@@ -19806,16 +19975,12 @@ export const WaitlistApiFp = function(configuration?: Configuration) {
|
|
|
19806
19975
|
},
|
|
19807
19976
|
/**
|
|
19808
19977
|
*
|
|
19809
|
-
* @param {
|
|
19810
|
-
* @param {number} pageSize
|
|
19811
|
-
* @param {string} [search]
|
|
19812
|
-
* @param {string} [venue]
|
|
19813
|
-
* @param {Array<WaitlistControllerFindWaitlistStatusEnum>} [status]
|
|
19978
|
+
* @param {WaitlistStaff} waitlistStaff
|
|
19814
19979
|
* @param {*} [options] Override http request option.
|
|
19815
19980
|
* @throws {RequiredError}
|
|
19816
19981
|
*/
|
|
19817
|
-
async waitlistControllerFindWaitlist(
|
|
19818
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.waitlistControllerFindWaitlist(
|
|
19982
|
+
async waitlistControllerFindWaitlist(waitlistStaff: WaitlistStaff, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindWaitlistResponseDTO>> {
|
|
19983
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.waitlistControllerFindWaitlist(waitlistStaff, options);
|
|
19819
19984
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19820
19985
|
const localVarOperationServerBasePath = operationServerMap['WaitlistApi.waitlistControllerFindWaitlist']?.[localVarOperationServerIndex]?.url;
|
|
19821
19986
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -19854,16 +20019,12 @@ export const WaitlistApiFactory = function (configuration?: Configuration, baseP
|
|
|
19854
20019
|
},
|
|
19855
20020
|
/**
|
|
19856
20021
|
*
|
|
19857
|
-
* @param {
|
|
19858
|
-
* @param {number} pageSize
|
|
19859
|
-
* @param {string} [search]
|
|
19860
|
-
* @param {string} [venue]
|
|
19861
|
-
* @param {Array<WaitlistControllerFindWaitlistStatusEnum>} [status]
|
|
20022
|
+
* @param {WaitlistStaff} waitlistStaff
|
|
19862
20023
|
* @param {*} [options] Override http request option.
|
|
19863
20024
|
* @throws {RequiredError}
|
|
19864
20025
|
*/
|
|
19865
|
-
waitlistControllerFindWaitlist(
|
|
19866
|
-
return localVarFp.waitlistControllerFindWaitlist(
|
|
20026
|
+
waitlistControllerFindWaitlist(waitlistStaff: WaitlistStaff, options?: RawAxiosRequestConfig): AxiosPromise<FindWaitlistResponseDTO> {
|
|
20027
|
+
return localVarFp.waitlistControllerFindWaitlist(waitlistStaff, options).then((request) => request(axios, basePath));
|
|
19867
20028
|
},
|
|
19868
20029
|
/**
|
|
19869
20030
|
*
|
|
@@ -19898,17 +20059,13 @@ export class WaitlistApi extends BaseAPI {
|
|
|
19898
20059
|
|
|
19899
20060
|
/**
|
|
19900
20061
|
*
|
|
19901
|
-
* @param {
|
|
19902
|
-
* @param {number} pageSize
|
|
19903
|
-
* @param {string} [search]
|
|
19904
|
-
* @param {string} [venue]
|
|
19905
|
-
* @param {Array<WaitlistControllerFindWaitlistStatusEnum>} [status]
|
|
20062
|
+
* @param {WaitlistStaff} waitlistStaff
|
|
19906
20063
|
* @param {*} [options] Override http request option.
|
|
19907
20064
|
* @throws {RequiredError}
|
|
19908
20065
|
* @memberof WaitlistApi
|
|
19909
20066
|
*/
|
|
19910
|
-
public waitlistControllerFindWaitlist(
|
|
19911
|
-
return WaitlistApiFp(this.configuration).waitlistControllerFindWaitlist(
|
|
20067
|
+
public waitlistControllerFindWaitlist(waitlistStaff: WaitlistStaff, options?: RawAxiosRequestConfig) {
|
|
20068
|
+
return WaitlistApiFp(this.configuration).waitlistControllerFindWaitlist(waitlistStaff, options).then((request) => request(this.axios, this.basePath));
|
|
19912
20069
|
}
|
|
19913
20070
|
|
|
19914
20071
|
/**
|
|
@@ -19924,16 +20081,6 @@ export class WaitlistApi extends BaseAPI {
|
|
|
19924
20081
|
}
|
|
19925
20082
|
}
|
|
19926
20083
|
|
|
19927
|
-
/**
|
|
19928
|
-
* @export
|
|
19929
|
-
*/
|
|
19930
|
-
export const WaitlistControllerFindWaitlistStatusEnum = {
|
|
19931
|
-
Pending: 'PENDING',
|
|
19932
|
-
Confirm: 'CONFIRM',
|
|
19933
|
-
ConnectedNoAnswer: 'CONNECTED_NO_ANSWER',
|
|
19934
|
-
Withdraw: 'WITHDRAW'
|
|
19935
|
-
} as const;
|
|
19936
|
-
export type WaitlistControllerFindWaitlistStatusEnum = typeof WaitlistControllerFindWaitlistStatusEnum[keyof typeof WaitlistControllerFindWaitlistStatusEnum];
|
|
19937
20084
|
|
|
19938
20085
|
|
|
19939
20086
|
/**
|