@gooday_corp/gooday-api-client 1.2.50 → 1.2.53

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.
Files changed (2) hide show
  1. package/api.ts +581 -13
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2466,6 +2466,12 @@ export interface CreateEventPayload {
2466
2466
  * @memberof CreateEventPayload
2467
2467
  */
2468
2468
  'location': LocationDTO;
2469
+ /**
2470
+ * Event images
2471
+ * @type {Array<string>}
2472
+ * @memberof CreateEventPayload
2473
+ */
2474
+ 'images': Array<string>;
2469
2475
  }
2470
2476
  /**
2471
2477
  *
@@ -3193,6 +3199,25 @@ export interface FindFriendsFavoritesDTO {
3193
3199
  */
3194
3200
  'limit'?: number;
3195
3201
  }
3202
+ /**
3203
+ *
3204
+ * @export
3205
+ * @interface FindHistoryResponseDTO
3206
+ */
3207
+ export interface FindHistoryResponseDTO {
3208
+ /**
3209
+ * statusCode
3210
+ * @type {number}
3211
+ * @memberof FindHistoryResponseDTO
3212
+ */
3213
+ 'statusCode': number;
3214
+ /**
3215
+ * Waitlist response
3216
+ * @type {Array<HistoryEntity>}
3217
+ * @memberof FindHistoryResponseDTO
3218
+ */
3219
+ 'data': Array<HistoryEntity>;
3220
+ }
3196
3221
  /**
3197
3222
  *
3198
3223
  * @export
@@ -3544,6 +3569,103 @@ export interface HelpCenterPayloadDTO {
3544
3569
  */
3545
3570
  'email': string;
3546
3571
  }
3572
+ /**
3573
+ *
3574
+ * @export
3575
+ * @interface HistoryEntity
3576
+ */
3577
+ export interface HistoryEntity {
3578
+ /**
3579
+ * Unique identifier for the history
3580
+ * @type {string}
3581
+ * @memberof HistoryEntity
3582
+ */
3583
+ '_id': string;
3584
+ /**
3585
+ *
3586
+ * @type {string}
3587
+ * @memberof HistoryEntity
3588
+ */
3589
+ 'action': string;
3590
+ /**
3591
+ *
3592
+ * @type {BusinessStaffEntity}
3593
+ * @memberof HistoryEntity
3594
+ */
3595
+ 'staff': BusinessStaffEntity;
3596
+ /**
3597
+ *
3598
+ * @type {string}
3599
+ * @memberof HistoryEntity
3600
+ */
3601
+ 'time': string;
3602
+ /**
3603
+ *
3604
+ * @type {string}
3605
+ * @memberof HistoryEntity
3606
+ */
3607
+ 'modalName': HistoryEntityModalNameEnum;
3608
+ }
3609
+
3610
+ export const HistoryEntityModalNameEnum = {
3611
+ Booking: 'booking',
3612
+ Waitlist: 'waitlist'
3613
+ } as const;
3614
+
3615
+ export type HistoryEntityModalNameEnum = typeof HistoryEntityModalNameEnum[keyof typeof HistoryEntityModalNameEnum];
3616
+
3617
+ /**
3618
+ *
3619
+ * @export
3620
+ * @interface HistoryPayloadDTO
3621
+ */
3622
+ export interface HistoryPayloadDTO {
3623
+ /**
3624
+ *
3625
+ * @type {string}
3626
+ * @memberof HistoryPayloadDTO
3627
+ */
3628
+ 'action': string;
3629
+ /**
3630
+ * The list of collaborators associated with the waitlist
3631
+ * @type {string}
3632
+ * @memberof HistoryPayloadDTO
3633
+ */
3634
+ 'staff': string;
3635
+ /**
3636
+ *
3637
+ * @type {string}
3638
+ * @memberof HistoryPayloadDTO
3639
+ */
3640
+ 'modalName': HistoryPayloadDTOModalNameEnum;
3641
+ }
3642
+
3643
+ export const HistoryPayloadDTOModalNameEnum = {
3644
+ Booking: 'booking',
3645
+ Waitlist: 'waitlist'
3646
+ } as const;
3647
+
3648
+ export type HistoryPayloadDTOModalNameEnum = typeof HistoryPayloadDTOModalNameEnum[keyof typeof HistoryPayloadDTOModalNameEnum];
3649
+
3650
+ /**
3651
+ *
3652
+ * @export
3653
+ * @interface HistoryResponseDTO
3654
+ */
3655
+ export interface HistoryResponseDTO {
3656
+ /**
3657
+ * statusCode
3658
+ * @type {number}
3659
+ * @memberof HistoryResponseDTO
3660
+ */
3661
+ 'statusCode': number;
3662
+ /**
3663
+ * Waitlist response
3664
+ * @type {HistoryEntity}
3665
+ * @memberof HistoryResponseDTO
3666
+ */
3667
+ 'data': HistoryEntity;
3668
+ }
3547
3669
  /**
3548
3670
  *
3549
3671
  * @export
@@ -5169,10 +5291,10 @@ export interface TagPayloadDTO {
5169
5291
  'icon': string;
5170
5292
  /**
5171
5293
  *
5172
- * @type {boolean}
5294
+ * @type {Array<string>}
5173
5295
  * @memberof TagPayloadDTO
5174
5296
  */
5175
- 'allVenues': boolean;
5297
+ 'venue': Array<string>;
5176
5298
  }
5177
5299
 
5178
5300
  export const TagPayloadDTOCategoryEnum = {
@@ -5239,10 +5361,10 @@ export interface TagUpdatePayloadDTO {
5239
5361
  'icon': string;
5240
5362
  /**
5241
5363
  *
5242
- * @type {boolean}
5364
+ * @type {Array<string>}
5243
5365
  * @memberof TagUpdatePayloadDTO
5244
5366
  */
5245
- 'allVenues': boolean;
5367
+ 'venue': Array<string>;
5246
5368
  }
5247
5369
 
5248
5370
  export const TagUpdatePayloadDTOCategoryEnum = {
@@ -5290,10 +5412,10 @@ export interface TagsResponse {
5290
5412
  'icon': string;
5291
5413
  /**
5292
5414
  *
5293
- * @type {boolean}
5415
+ * @type {Array<string>}
5294
5416
  * @memberof TagsResponse
5295
5417
  */
5296
- 'allVenues': boolean;
5418
+ 'venue': Array<string>;
5297
5419
  }
5298
5420
 
5299
5421
  export const TagsResponseCategoryEnum = {
@@ -5800,6 +5922,12 @@ export interface UserEntity {
5800
5922
  * @memberof UserEntity
5801
5923
  */
5802
5924
  'pendingAction'?: Array<string>;
5925
+ /**
5926
+ *
5927
+ * @type {boolean}
5928
+ * @memberof UserEntity
5929
+ */
5930
+ 'hangout': boolean;
5803
5931
  }
5804
5932
 
5805
5933
  export const UserEntityRoleEnum = {
@@ -5809,6 +5937,19 @@ export const UserEntityRoleEnum = {
5809
5937
 
5810
5938
  export type UserEntityRoleEnum = typeof UserEntityRoleEnum[keyof typeof UserEntityRoleEnum];
5811
5939
 
5940
+ /**
5941
+ *
5942
+ * @export
5943
+ * @interface UserHangout
5944
+ */
5945
+ export interface UserHangout {
5946
+ /**
5947
+ *
5948
+ * @type {boolean}
5949
+ * @memberof UserHangout
5950
+ */
5951
+ 'hangout'?: boolean;
5952
+ }
5812
5953
  /**
5813
5954
  *
5814
5955
  * @export
@@ -7685,6 +7826,49 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
7685
7826
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7686
7827
  localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingInvitePayload, localVarRequestOptions, configuration)
7687
7828
 
7829
+ return {
7830
+ url: toPathString(localVarUrlObj),
7831
+ options: localVarRequestOptions,
7832
+ };
7833
+ },
7834
+ /**
7835
+ *
7836
+ * @param {string} id
7837
+ * @param {CreateBookingPayload} createBookingPayload
7838
+ * @param {*} [options] Override http request option.
7839
+ * @throws {RequiredError}
7840
+ */
7841
+ bookingControllerUpdateBooking: async (id: string, createBookingPayload: CreateBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7842
+ // verify required parameter 'id' is not null or undefined
7843
+ assertParamExists('bookingControllerUpdateBooking', 'id', id)
7844
+ // verify required parameter 'createBookingPayload' is not null or undefined
7845
+ assertParamExists('bookingControllerUpdateBooking', 'createBookingPayload', createBookingPayload)
7846
+ const localVarPath = `/v1/booking/{id}`
7847
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7848
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7849
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7850
+ let baseOptions;
7851
+ if (configuration) {
7852
+ baseOptions = configuration.baseOptions;
7853
+ }
7854
+
7855
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
7856
+ const localVarHeaderParameter = {} as any;
7857
+ const localVarQueryParameter = {} as any;
7858
+
7859
+ // authentication bearer required
7860
+ // http bearer authentication required
7861
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7862
+
7863
+
7864
+
7865
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7866
+
7867
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7868
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7869
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7870
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingPayload, localVarRequestOptions, configuration)
7871
+
7688
7872
  return {
7689
7873
  url: toPathString(localVarUrlObj),
7690
7874
  options: localVarRequestOptions,
@@ -7784,6 +7968,19 @@ export const BookingApiFp = function(configuration?: Configuration) {
7784
7968
  const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRejectBookingInvite']?.[localVarOperationServerIndex]?.url;
7785
7969
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7786
7970
  },
7971
+ /**
7972
+ *
7973
+ * @param {string} id
7974
+ * @param {CreateBookingPayload} createBookingPayload
7975
+ * @param {*} [options] Override http request option.
7976
+ * @throws {RequiredError}
7977
+ */
7978
+ async bookingControllerUpdateBooking(id: string, createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponseDTO>> {
7979
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerUpdateBooking(id, createBookingPayload, options);
7980
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7981
+ const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerUpdateBooking']?.[localVarOperationServerIndex]?.url;
7982
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7983
+ },
7787
7984
  }
7788
7985
  };
7789
7986
 
@@ -7857,6 +8054,16 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
7857
8054
  bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
7858
8055
  return localVarFp.bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(axios, basePath));
7859
8056
  },
8057
+ /**
8058
+ *
8059
+ * @param {string} id
8060
+ * @param {CreateBookingPayload} createBookingPayload
8061
+ * @param {*} [options] Override http request option.
8062
+ * @throws {RequiredError}
8063
+ */
8064
+ bookingControllerUpdateBooking(id: string, createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
8065
+ return localVarFp.bookingControllerUpdateBooking(id, createBookingPayload, options).then((request) => request(axios, basePath));
8066
+ },
7860
8067
  };
7861
8068
  };
7862
8069
 
@@ -7943,6 +8150,18 @@ export class BookingApi extends BaseAPI {
7943
8150
  public bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig) {
7944
8151
  return BookingApiFp(this.configuration).bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
7945
8152
  }
8153
+
8154
+ /**
8155
+ *
8156
+ * @param {string} id
8157
+ * @param {CreateBookingPayload} createBookingPayload
8158
+ * @param {*} [options] Override http request option.
8159
+ * @throws {RequiredError}
8160
+ * @memberof BookingApi
8161
+ */
8162
+ public bookingControllerUpdateBooking(id: string, createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig) {
8163
+ return BookingApiFp(this.configuration).bookingControllerUpdateBooking(id, createBookingPayload, options).then((request) => request(this.axios, this.basePath));
8164
+ }
7946
8165
  }
7947
8166
 
7948
8167
 
@@ -11489,6 +11708,39 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
11489
11708
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11490
11709
  localVarRequestOptions.data = serializeDataIfNeeded(sendFriendshipRequestPayload, localVarRequestOptions, configuration)
11491
11710
 
11711
+ return {
11712
+ url: toPathString(localVarUrlObj),
11713
+ options: localVarRequestOptions,
11714
+ };
11715
+ },
11716
+ /**
11717
+ *
11718
+ * @param {*} [options] Override http request option.
11719
+ * @throws {RequiredError}
11720
+ */
11721
+ friendControllerTodayAvailableFriends: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11722
+ const localVarPath = `/v1/friend/today/available/friends`;
11723
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11724
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11725
+ let baseOptions;
11726
+ if (configuration) {
11727
+ baseOptions = configuration.baseOptions;
11728
+ }
11729
+
11730
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11731
+ const localVarHeaderParameter = {} as any;
11732
+ const localVarQueryParameter = {} as any;
11733
+
11734
+ // authentication bearer required
11735
+ // http bearer authentication required
11736
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11737
+
11738
+
11739
+
11740
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11741
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11742
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11743
+
11492
11744
  return {
11493
11745
  url: toPathString(localVarUrlObj),
11494
11746
  options: localVarRequestOptions,
@@ -11593,6 +11845,17 @@ export const FriendsApiFp = function(configuration?: Configuration) {
11593
11845
  const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerSendFriendRequest']?.[localVarOperationServerIndex]?.url;
11594
11846
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11595
11847
  },
11848
+ /**
11849
+ *
11850
+ * @param {*} [options] Override http request option.
11851
+ * @throws {RequiredError}
11852
+ */
11853
+ async friendControllerTodayAvailableFriends(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
11854
+ const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerTodayAvailableFriends(options);
11855
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11856
+ const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerTodayAvailableFriends']?.[localVarOperationServerIndex]?.url;
11857
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11858
+ },
11596
11859
  }
11597
11860
  };
11598
11861
 
@@ -11671,6 +11934,14 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
11671
11934
  friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
11672
11935
  return localVarFp.friendControllerSendFriendRequest(sendFriendshipRequestPayload, options).then((request) => request(axios, basePath));
11673
11936
  },
11937
+ /**
11938
+ *
11939
+ * @param {*} [options] Override http request option.
11940
+ * @throws {RequiredError}
11941
+ */
11942
+ friendControllerTodayAvailableFriends(options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
11943
+ return localVarFp.friendControllerTodayAvailableFriends(options).then((request) => request(axios, basePath));
11944
+ },
11674
11945
  };
11675
11946
  };
11676
11947
 
@@ -11762,6 +12033,16 @@ export class FriendsApi extends BaseAPI {
11762
12033
  public friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
11763
12034
  return FriendsApiFp(this.configuration).friendControllerSendFriendRequest(sendFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
11764
12035
  }
12036
+
12037
+ /**
12038
+ *
12039
+ * @param {*} [options] Override http request option.
12040
+ * @throws {RequiredError}
12041
+ * @memberof FriendsApi
12042
+ */
12043
+ public friendControllerTodayAvailableFriends(options?: RawAxiosRequestConfig) {
12044
+ return FriendsApiFp(this.configuration).friendControllerTodayAvailableFriends(options).then((request) => request(this.axios, this.basePath));
12045
+ }
11765
12046
  }
11766
12047
 
11767
12048
 
@@ -11969,6 +12250,198 @@ export class GoalsApi extends BaseAPI {
11969
12250
 
11970
12251
 
11971
12252
 
12253
+ /**
12254
+ * HistoryApi - axios parameter creator
12255
+ * @export
12256
+ */
12257
+ export const HistoryApiAxiosParamCreator = function (configuration?: Configuration) {
12258
+ return {
12259
+ /**
12260
+ *
12261
+ * @param {HistoryPayloadDTO} historyPayloadDTO
12262
+ * @param {*} [options] Override http request option.
12263
+ * @throws {RequiredError}
12264
+ */
12265
+ historyControllerAddHistory: async (historyPayloadDTO: HistoryPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12266
+ // verify required parameter 'historyPayloadDTO' is not null or undefined
12267
+ assertParamExists('historyControllerAddHistory', 'historyPayloadDTO', historyPayloadDTO)
12268
+ const localVarPath = `/v1/history`;
12269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12271
+ let baseOptions;
12272
+ if (configuration) {
12273
+ baseOptions = configuration.baseOptions;
12274
+ }
12275
+
12276
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12277
+ const localVarHeaderParameter = {} as any;
12278
+ const localVarQueryParameter = {} as any;
12279
+
12280
+ // authentication bearer required
12281
+ // http bearer authentication required
12282
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12283
+
12284
+
12285
+
12286
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12287
+
12288
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12289
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12290
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12291
+ localVarRequestOptions.data = serializeDataIfNeeded(historyPayloadDTO, localVarRequestOptions, configuration)
12292
+
12293
+ return {
12294
+ url: toPathString(localVarUrlObj),
12295
+ options: localVarRequestOptions,
12296
+ };
12297
+ },
12298
+ /**
12299
+ *
12300
+ * @param {number} page
12301
+ * @param {number} pageSize
12302
+ * @param {*} [options] Override http request option.
12303
+ * @throws {RequiredError}
12304
+ */
12305
+ historyControllerFindHistory: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12306
+ // verify required parameter 'page' is not null or undefined
12307
+ assertParamExists('historyControllerFindHistory', 'page', page)
12308
+ // verify required parameter 'pageSize' is not null or undefined
12309
+ assertParamExists('historyControllerFindHistory', 'pageSize', pageSize)
12310
+ const localVarPath = `/v1/history`;
12311
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12312
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12313
+ let baseOptions;
12314
+ if (configuration) {
12315
+ baseOptions = configuration.baseOptions;
12316
+ }
12317
+
12318
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12319
+ const localVarHeaderParameter = {} as any;
12320
+ const localVarQueryParameter = {} as any;
12321
+
12322
+ // authentication bearer required
12323
+ // http bearer authentication required
12324
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12325
+
12326
+ if (page !== undefined) {
12327
+ localVarQueryParameter['page'] = page;
12328
+ }
12329
+
12330
+ if (pageSize !== undefined) {
12331
+ localVarQueryParameter['pageSize'] = pageSize;
12332
+ }
12333
+
12334
+
12335
+
12336
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12338
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12339
+
12340
+ return {
12341
+ url: toPathString(localVarUrlObj),
12342
+ options: localVarRequestOptions,
12343
+ };
12344
+ },
12345
+ }
12346
+ };
12347
+
12348
+ /**
12349
+ * HistoryApi - functional programming interface
12350
+ * @export
12351
+ */
12352
+ export const HistoryApiFp = function(configuration?: Configuration) {
12353
+ const localVarAxiosParamCreator = HistoryApiAxiosParamCreator(configuration)
12354
+ return {
12355
+ /**
12356
+ *
12357
+ * @param {HistoryPayloadDTO} historyPayloadDTO
12358
+ * @param {*} [options] Override http request option.
12359
+ * @throws {RequiredError}
12360
+ */
12361
+ async historyControllerAddHistory(historyPayloadDTO: HistoryPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HistoryResponseDTO>> {
12362
+ const localVarAxiosArgs = await localVarAxiosParamCreator.historyControllerAddHistory(historyPayloadDTO, options);
12363
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12364
+ const localVarOperationServerBasePath = operationServerMap['HistoryApi.historyControllerAddHistory']?.[localVarOperationServerIndex]?.url;
12365
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12366
+ },
12367
+ /**
12368
+ *
12369
+ * @param {number} page
12370
+ * @param {number} pageSize
12371
+ * @param {*} [options] Override http request option.
12372
+ * @throws {RequiredError}
12373
+ */
12374
+ async historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindHistoryResponseDTO>> {
12375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.historyControllerFindHistory(page, pageSize, options);
12376
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12377
+ const localVarOperationServerBasePath = operationServerMap['HistoryApi.historyControllerFindHistory']?.[localVarOperationServerIndex]?.url;
12378
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12379
+ },
12380
+ }
12381
+ };
12382
+
12383
+ /**
12384
+ * HistoryApi - factory interface
12385
+ * @export
12386
+ */
12387
+ export const HistoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12388
+ const localVarFp = HistoryApiFp(configuration)
12389
+ return {
12390
+ /**
12391
+ *
12392
+ * @param {HistoryPayloadDTO} historyPayloadDTO
12393
+ * @param {*} [options] Override http request option.
12394
+ * @throws {RequiredError}
12395
+ */
12396
+ historyControllerAddHistory(historyPayloadDTO: HistoryPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<HistoryResponseDTO> {
12397
+ return localVarFp.historyControllerAddHistory(historyPayloadDTO, options).then((request) => request(axios, basePath));
12398
+ },
12399
+ /**
12400
+ *
12401
+ * @param {number} page
12402
+ * @param {number} pageSize
12403
+ * @param {*} [options] Override http request option.
12404
+ * @throws {RequiredError}
12405
+ */
12406
+ historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<FindHistoryResponseDTO> {
12407
+ return localVarFp.historyControllerFindHistory(page, pageSize, options).then((request) => request(axios, basePath));
12408
+ },
12409
+ };
12410
+ };
12411
+
12412
+ /**
12413
+ * HistoryApi - object-oriented interface
12414
+ * @export
12415
+ * @class HistoryApi
12416
+ * @extends {BaseAPI}
12417
+ */
12418
+ export class HistoryApi extends BaseAPI {
12419
+ /**
12420
+ *
12421
+ * @param {HistoryPayloadDTO} historyPayloadDTO
12422
+ * @param {*} [options] Override http request option.
12423
+ * @throws {RequiredError}
12424
+ * @memberof HistoryApi
12425
+ */
12426
+ public historyControllerAddHistory(historyPayloadDTO: HistoryPayloadDTO, options?: RawAxiosRequestConfig) {
12427
+ return HistoryApiFp(this.configuration).historyControllerAddHistory(historyPayloadDTO, options).then((request) => request(this.axios, this.basePath));
12428
+ }
12429
+
12430
+ /**
12431
+ *
12432
+ * @param {number} page
12433
+ * @param {number} pageSize
12434
+ * @param {*} [options] Override http request option.
12435
+ * @throws {RequiredError}
12436
+ * @memberof HistoryApi
12437
+ */
12438
+ public historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
12439
+ return HistoryApiFp(this.configuration).historyControllerFindHistory(page, pageSize, options).then((request) => request(this.axios, this.basePath));
12440
+ }
12441
+ }
12442
+
12443
+
12444
+
11972
12445
  /**
11973
12446
  * IntegrationApi - axios parameter creator
11974
12447
  * @export
@@ -14026,10 +14499,12 @@ export const TagsApiAxiosParamCreator = function (configuration?: Configuration)
14026
14499
  *
14027
14500
  * @param {number} page
14028
14501
  * @param {number} pageSize
14502
+ * @param {Array<string>} [venue]
14503
+ * @param {Array<TagsControllerFindTagsCategoryEnum>} [category]
14029
14504
  * @param {*} [options] Override http request option.
14030
14505
  * @throws {RequiredError}
14031
14506
  */
14032
- tagsControllerFindTags: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14507
+ tagsControllerFindTags: async (page: number, pageSize: number, venue?: Array<string>, category?: Array<TagsControllerFindTagsCategoryEnum>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14033
14508
  // verify required parameter 'page' is not null or undefined
14034
14509
  assertParamExists('tagsControllerFindTags', 'page', page)
14035
14510
  // verify required parameter 'pageSize' is not null or undefined
@@ -14058,6 +14533,14 @@ export const TagsApiAxiosParamCreator = function (configuration?: Configuration)
14058
14533
  localVarQueryParameter['pageSize'] = pageSize;
14059
14534
  }
14060
14535
 
14536
+ if (venue) {
14537
+ localVarQueryParameter['venue'] = venue;
14538
+ }
14539
+
14540
+ if (category) {
14541
+ localVarQueryParameter['category'] = category;
14542
+ }
14543
+
14061
14544
 
14062
14545
 
14063
14546
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -14183,11 +14666,13 @@ export const TagsApiFp = function(configuration?: Configuration) {
14183
14666
  *
14184
14667
  * @param {number} page
14185
14668
  * @param {number} pageSize
14669
+ * @param {Array<string>} [venue]
14670
+ * @param {Array<TagsControllerFindTagsCategoryEnum>} [category]
14186
14671
  * @param {*} [options] Override http request option.
14187
14672
  * @throws {RequiredError}
14188
14673
  */
14189
- async tagsControllerFindTags(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagsResponseDTO>> {
14190
- const localVarAxiosArgs = await localVarAxiosParamCreator.tagsControllerFindTags(page, pageSize, options);
14674
+ async tagsControllerFindTags(page: number, pageSize: number, venue?: Array<string>, category?: Array<TagsControllerFindTagsCategoryEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagsResponseDTO>> {
14675
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tagsControllerFindTags(page, pageSize, venue, category, options);
14191
14676
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14192
14677
  const localVarOperationServerBasePath = operationServerMap['TagsApi.tagsControllerFindTags']?.[localVarOperationServerIndex]?.url;
14193
14678
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14248,11 +14733,13 @@ export const TagsApiFactory = function (configuration?: Configuration, basePath?
14248
14733
  *
14249
14734
  * @param {number} page
14250
14735
  * @param {number} pageSize
14736
+ * @param {Array<string>} [venue]
14737
+ * @param {Array<TagsControllerFindTagsCategoryEnum>} [category]
14251
14738
  * @param {*} [options] Override http request option.
14252
14739
  * @throws {RequiredError}
14253
14740
  */
14254
- tagsControllerFindTags(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<TagsResponseDTO> {
14255
- return localVarFp.tagsControllerFindTags(page, pageSize, options).then((request) => request(axios, basePath));
14741
+ tagsControllerFindTags(page: number, pageSize: number, venue?: Array<string>, category?: Array<TagsControllerFindTagsCategoryEnum>, options?: RawAxiosRequestConfig): AxiosPromise<TagsResponseDTO> {
14742
+ return localVarFp.tagsControllerFindTags(page, pageSize, venue, category, options).then((request) => request(axios, basePath));
14256
14743
  },
14257
14744
  /**
14258
14745
  *
@@ -14308,12 +14795,14 @@ export class TagsApi extends BaseAPI {
14308
14795
  *
14309
14796
  * @param {number} page
14310
14797
  * @param {number} pageSize
14798
+ * @param {Array<string>} [venue]
14799
+ * @param {Array<TagsControllerFindTagsCategoryEnum>} [category]
14311
14800
  * @param {*} [options] Override http request option.
14312
14801
  * @throws {RequiredError}
14313
14802
  * @memberof TagsApi
14314
14803
  */
14315
- public tagsControllerFindTags(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
14316
- return TagsApiFp(this.configuration).tagsControllerFindTags(page, pageSize, options).then((request) => request(this.axios, this.basePath));
14804
+ public tagsControllerFindTags(page: number, pageSize: number, venue?: Array<string>, category?: Array<TagsControllerFindTagsCategoryEnum>, options?: RawAxiosRequestConfig) {
14805
+ return TagsApiFp(this.configuration).tagsControllerFindTags(page, pageSize, venue, category, options).then((request) => request(this.axios, this.basePath));
14317
14806
  }
14318
14807
 
14319
14808
  /**
@@ -14339,6 +14828,14 @@ export class TagsApi extends BaseAPI {
14339
14828
  }
14340
14829
  }
14341
14830
 
14831
+ /**
14832
+ * @export
14833
+ */
14834
+ export const TagsControllerFindTagsCategoryEnum = {
14835
+ Booking: 'BOOKING',
14836
+ Customer: 'CUSTOMER'
14837
+ } as const;
14838
+ export type TagsControllerFindTagsCategoryEnum = typeof TagsControllerFindTagsCategoryEnum[keyof typeof TagsControllerFindTagsCategoryEnum];
14342
14839
 
14343
14840
 
14344
14841
  /**
@@ -16007,6 +16504,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
16007
16504
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16008
16505
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16009
16506
 
16507
+ return {
16508
+ url: toPathString(localVarUrlObj),
16509
+ options: localVarRequestOptions,
16510
+ };
16511
+ },
16512
+ /**
16513
+ *
16514
+ * @param {UserHangout} userHangout
16515
+ * @param {*} [options] Override http request option.
16516
+ * @throws {RequiredError}
16517
+ */
16518
+ usersControllerUserHangout: async (userHangout: UserHangout, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16519
+ // verify required parameter 'userHangout' is not null or undefined
16520
+ assertParamExists('usersControllerUserHangout', 'userHangout', userHangout)
16521
+ const localVarPath = `/v1/user/hangout`;
16522
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16523
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16524
+ let baseOptions;
16525
+ if (configuration) {
16526
+ baseOptions = configuration.baseOptions;
16527
+ }
16528
+
16529
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16530
+ const localVarHeaderParameter = {} as any;
16531
+ const localVarQueryParameter = {} as any;
16532
+
16533
+ // authentication bearer required
16534
+ // http bearer authentication required
16535
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16536
+
16537
+
16538
+
16539
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16540
+
16541
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16542
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16543
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16544
+ localVarRequestOptions.data = serializeDataIfNeeded(userHangout, localVarRequestOptions, configuration)
16545
+
16010
16546
  return {
16011
16547
  url: toPathString(localVarUrlObj),
16012
16548
  options: localVarRequestOptions,
@@ -16138,6 +16674,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
16138
16674
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerUserActivity']?.[localVarOperationServerIndex]?.url;
16139
16675
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16140
16676
  },
16677
+ /**
16678
+ *
16679
+ * @param {UserHangout} userHangout
16680
+ * @param {*} [options] Override http request option.
16681
+ * @throws {RequiredError}
16682
+ */
16683
+ async usersControllerUserHangout(userHangout: UserHangout, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeDTO>> {
16684
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerUserHangout(userHangout, options);
16685
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16686
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerUserHangout']?.[localVarOperationServerIndex]?.url;
16687
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16688
+ },
16141
16689
  }
16142
16690
  };
16143
16691
 
@@ -16234,6 +16782,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
16234
16782
  usersControllerUserActivity(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ActivityDTO> {
16235
16783
  return localVarFp.usersControllerUserActivity(id, options).then((request) => request(axios, basePath));
16236
16784
  },
16785
+ /**
16786
+ *
16787
+ * @param {UserHangout} userHangout
16788
+ * @param {*} [options] Override http request option.
16789
+ * @throws {RequiredError}
16790
+ */
16791
+ usersControllerUserHangout(userHangout: UserHangout, options?: RawAxiosRequestConfig): AxiosPromise<UserMeDTO> {
16792
+ return localVarFp.usersControllerUserHangout(userHangout, options).then((request) => request(axios, basePath));
16793
+ },
16237
16794
  };
16238
16795
  };
16239
16796
 
@@ -16349,6 +16906,17 @@ export class UsersApi extends BaseAPI {
16349
16906
  public usersControllerUserActivity(id: string, options?: RawAxiosRequestConfig) {
16350
16907
  return UsersApiFp(this.configuration).usersControllerUserActivity(id, options).then((request) => request(this.axios, this.basePath));
16351
16908
  }
16909
+
16910
+ /**
16911
+ *
16912
+ * @param {UserHangout} userHangout
16913
+ * @param {*} [options] Override http request option.
16914
+ * @throws {RequiredError}
16915
+ * @memberof UsersApi
16916
+ */
16917
+ public usersControllerUserHangout(userHangout: UserHangout, options?: RawAxiosRequestConfig) {
16918
+ return UsersApiFp(this.configuration).usersControllerUserHangout(userHangout, options).then((request) => request(this.axios, this.basePath));
16919
+ }
16352
16920
  }
16353
16921
 
16354
16922
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.50",
3
+ "version": "1.2.53",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},