@gooday_corp/gooday-api-client 1.1.42 → 1.1.45

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 +198 -1
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -2622,8 +2622,10 @@ export const NotificationEntityTypeEnum = {
2622
2622
  BookingCreate: 'BOOKING_CREATE',
2623
2623
  BookingCreateForUser: 'BOOKING_CREATE_FOR_USER',
2624
2624
  BookingCancel: 'BOOKING_CANCEL',
2625
+ BookingUserLeave: 'BOOKING_USER_LEAVE',
2626
+ BookingUserLeaveToBusiness: 'BOOKING_USER_LEAVE_TO_BUSINESS',
2625
2627
  BusinessBookingCancelBusiness: 'BUSINESS_BOOKING_CANCEL_BUSINESS',
2626
- BusinessBookingCancelUserToBusinesss: 'BUSINESS_BOOKING_CANCEL_USER_TO_BUSINESSS',
2628
+ BusinessBookingCancelUserToBusiness: 'BUSINESS_BOOKING_CANCEL_USER_TO_BUSINESS',
2627
2629
  BokingAccept: 'BOKING_ACCEPT',
2628
2630
  BookingReject: 'BOOKING_REJECT',
2629
2631
  InviteTodo: 'INVITE_TODO',
@@ -3692,6 +3694,12 @@ export interface UserEntity {
3692
3694
  * @memberof UserEntity
3693
3695
  */
3694
3696
  'permissions': UserPermissionDTO;
3697
+ /**
3698
+ * User daily streak
3699
+ * @type {number}
3700
+ * @memberof UserEntity
3701
+ */
3702
+ 'streak': number;
3695
3703
  /**
3696
3704
  * Action user has to perform
3697
3705
  * @type {Array<string>}
@@ -3833,6 +3841,62 @@ export interface UserSyncDTO {
3833
3841
  */
3834
3842
  'timezone'?: string;
3835
3843
  }
3844
+ /**
3845
+ *
3846
+ * @export
3847
+ * @interface UserWaitingListPayloadDTO
3848
+ */
3849
+ export interface UserWaitingListPayloadDTO {
3850
+ /**
3851
+ * The first name of the user joining the waitlist
3852
+ * @type {string}
3853
+ * @memberof UserWaitingListPayloadDTO
3854
+ */
3855
+ 'firstName': string;
3856
+ /**
3857
+ * The last name of the user joining the waitlist
3858
+ * @type {string}
3859
+ * @memberof UserWaitingListPayloadDTO
3860
+ */
3861
+ 'lastName': string;
3862
+ /**
3863
+ * User id which store the info
3864
+ * @type {string}
3865
+ * @memberof UserWaitingListPayloadDTO
3866
+ */
3867
+ 'user'?: string;
3868
+ /**
3869
+ * Name of business which you wish to join
3870
+ * @type {string}
3871
+ * @memberof UserWaitingListPayloadDTO
3872
+ */
3873
+ 'businessName': string;
3874
+ /**
3875
+ * The unique email of the user joining the waitlist
3876
+ * @type {string}
3877
+ * @memberof UserWaitingListPayloadDTO
3878
+ */
3879
+ 'email': string;
3880
+ }
3881
+ /**
3882
+ *
3883
+ * @export
3884
+ * @interface UserWaitingListResponseDTO
3885
+ */
3886
+ export interface UserWaitingListResponseDTO {
3887
+ /**
3888
+ * statusCode
3889
+ * @type {number}
3890
+ * @memberof UserWaitingListResponseDTO
3891
+ */
3892
+ 'statusCode': number;
3893
+ /**
3894
+ * Assistant
3895
+ * @type {UserWaitingListPayloadDTO}
3896
+ * @memberof UserWaitingListResponseDTO
3897
+ */
3898
+ 'data': UserWaitingListPayloadDTO;
3899
+ }
3836
3900
  /**
3837
3901
  *
3838
3902
  * @export
@@ -10533,6 +10597,45 @@ export class TodoApi extends BaseAPI {
10533
10597
  */
10534
10598
  export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
10535
10599
  return {
10600
+ /**
10601
+ *
10602
+ * @param {UserWaitingListPayloadDTO} userWaitingListPayloadDTO
10603
+ * @param {*} [options] Override http request option.
10604
+ * @throws {RequiredError}
10605
+ */
10606
+ usersControllerAddToWaitingList: async (userWaitingListPayloadDTO: UserWaitingListPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10607
+ // verify required parameter 'userWaitingListPayloadDTO' is not null or undefined
10608
+ assertParamExists('usersControllerAddToWaitingList', 'userWaitingListPayloadDTO', userWaitingListPayloadDTO)
10609
+ const localVarPath = `/v1/user/joining-list`;
10610
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10611
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10612
+ let baseOptions;
10613
+ if (configuration) {
10614
+ baseOptions = configuration.baseOptions;
10615
+ }
10616
+
10617
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10618
+ const localVarHeaderParameter = {} as any;
10619
+ const localVarQueryParameter = {} as any;
10620
+
10621
+ // authentication bearer required
10622
+ // http bearer authentication required
10623
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10624
+
10625
+
10626
+
10627
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10628
+
10629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10631
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10632
+ localVarRequestOptions.data = serializeDataIfNeeded(userWaitingListPayloadDTO, localVarRequestOptions, configuration)
10633
+
10634
+ return {
10635
+ url: toPathString(localVarUrlObj),
10636
+ options: localVarRequestOptions,
10637
+ };
10638
+ },
10536
10639
  /**
10537
10640
  *
10538
10641
  * @param {*} [options] Override http request option.
@@ -10677,6 +10780,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
10677
10780
  options: localVarRequestOptions,
10678
10781
  };
10679
10782
  },
10783
+ /**
10784
+ *
10785
+ * @param {*} [options] Override http request option.
10786
+ * @throws {RequiredError}
10787
+ */
10788
+ usersControllerStreak: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10789
+ const localVarPath = `/v1/user/streak`;
10790
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10791
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10792
+ let baseOptions;
10793
+ if (configuration) {
10794
+ baseOptions = configuration.baseOptions;
10795
+ }
10796
+
10797
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10798
+ const localVarHeaderParameter = {} as any;
10799
+ const localVarQueryParameter = {} as any;
10800
+
10801
+ // authentication bearer required
10802
+ // http bearer authentication required
10803
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10804
+
10805
+
10806
+
10807
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10809
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10810
+
10811
+ return {
10812
+ url: toPathString(localVarUrlObj),
10813
+ options: localVarRequestOptions,
10814
+ };
10815
+ },
10680
10816
  /**
10681
10817
  *
10682
10818
  * @param {UserSyncDTO} userSyncDTO
@@ -10798,6 +10934,18 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
10798
10934
  export const UsersApiFp = function(configuration?: Configuration) {
10799
10935
  const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
10800
10936
  return {
10937
+ /**
10938
+ *
10939
+ * @param {UserWaitingListPayloadDTO} userWaitingListPayloadDTO
10940
+ * @param {*} [options] Override http request option.
10941
+ * @throws {RequiredError}
10942
+ */
10943
+ async usersControllerAddToWaitingList(userWaitingListPayloadDTO: UserWaitingListPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserWaitingListResponseDTO>> {
10944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerAddToWaitingList(userWaitingListPayloadDTO, options);
10945
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10946
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerAddToWaitingList']?.[localVarOperationServerIndex]?.url;
10947
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10948
+ },
10801
10949
  /**
10802
10950
  *
10803
10951
  * @param {*} [options] Override http request option.
@@ -10844,6 +10992,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
10844
10992
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
10845
10993
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10846
10994
  },
10995
+ /**
10996
+ *
10997
+ * @param {*} [options] Override http request option.
10998
+ * @throws {RequiredError}
10999
+ */
11000
+ async usersControllerStreak(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeDTO>> {
11001
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerStreak(options);
11002
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11003
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerStreak']?.[localVarOperationServerIndex]?.url;
11004
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11005
+ },
10847
11006
  /**
10848
11007
  *
10849
11008
  * @param {UserSyncDTO} userSyncDTO
@@ -10889,6 +11048,15 @@ export const UsersApiFp = function(configuration?: Configuration) {
10889
11048
  export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10890
11049
  const localVarFp = UsersApiFp(configuration)
10891
11050
  return {
11051
+ /**
11052
+ *
11053
+ * @param {UserWaitingListPayloadDTO} userWaitingListPayloadDTO
11054
+ * @param {*} [options] Override http request option.
11055
+ * @throws {RequiredError}
11056
+ */
11057
+ usersControllerAddToWaitingList(userWaitingListPayloadDTO: UserWaitingListPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<UserWaitingListResponseDTO> {
11058
+ return localVarFp.usersControllerAddToWaitingList(userWaitingListPayloadDTO, options).then((request) => request(axios, basePath));
11059
+ },
10892
11060
  /**
10893
11061
  *
10894
11062
  * @param {*} [options] Override http request option.
@@ -10923,6 +11091,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
10923
11091
  usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
10924
11092
  return localVarFp.usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(axios, basePath));
10925
11093
  },
11094
+ /**
11095
+ *
11096
+ * @param {*} [options] Override http request option.
11097
+ * @throws {RequiredError}
11098
+ */
11099
+ usersControllerStreak(options?: RawAxiosRequestConfig): AxiosPromise<UserMeDTO> {
11100
+ return localVarFp.usersControllerStreak(options).then((request) => request(axios, basePath));
11101
+ },
10926
11102
  /**
10927
11103
  *
10928
11104
  * @param {UserSyncDTO} userSyncDTO
@@ -10959,6 +11135,17 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
10959
11135
  * @extends {BaseAPI}
10960
11136
  */
10961
11137
  export class UsersApi extends BaseAPI {
11138
+ /**
11139
+ *
11140
+ * @param {UserWaitingListPayloadDTO} userWaitingListPayloadDTO
11141
+ * @param {*} [options] Override http request option.
11142
+ * @throws {RequiredError}
11143
+ * @memberof UsersApi
11144
+ */
11145
+ public usersControllerAddToWaitingList(userWaitingListPayloadDTO: UserWaitingListPayloadDTO, options?: RawAxiosRequestConfig) {
11146
+ return UsersApiFp(this.configuration).usersControllerAddToWaitingList(userWaitingListPayloadDTO, options).then((request) => request(this.axios, this.basePath));
11147
+ }
11148
+
10962
11149
  /**
10963
11150
  *
10964
11151
  * @param {*} [options] Override http request option.
@@ -11001,6 +11188,16 @@ export class UsersApi extends BaseAPI {
11001
11188
  return UsersApiFp(this.configuration).usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(this.axios, this.basePath));
11002
11189
  }
11003
11190
 
11191
+ /**
11192
+ *
11193
+ * @param {*} [options] Override http request option.
11194
+ * @throws {RequiredError}
11195
+ * @memberof UsersApi
11196
+ */
11197
+ public usersControllerStreak(options?: RawAxiosRequestConfig) {
11198
+ return UsersApiFp(this.configuration).usersControllerStreak(options).then((request) => request(this.axios, this.basePath));
11199
+ }
11200
+
11004
11201
  /**
11005
11202
  *
11006
11203
  * @param {UserSyncDTO} userSyncDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.42",
3
+ "version": "1.1.45",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},