@gooday_corp/gooday-api-client 1.1.41 → 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 +219 -3
  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',
@@ -3622,10 +3624,10 @@ export interface UserEntity {
3622
3624
  'nickName': string;
3623
3625
  /**
3624
3626
  * Device weather
3625
- * @type {string}
3627
+ * @type {Weather}
3626
3628
  * @memberof UserEntity
3627
3629
  */
3628
- 'weather': string;
3630
+ 'weather': Weather;
3629
3631
  /**
3630
3632
  * User\'s date of birth
3631
3633
  * @type {string}
@@ -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
@@ -3871,6 +3935,25 @@ export interface VerifyOTPResponseDTO {
3871
3935
  */
3872
3936
  'message': string;
3873
3937
  }
3938
+ /**
3939
+ *
3940
+ * @export
3941
+ * @interface Weather
3942
+ */
3943
+ export interface Weather {
3944
+ /**
3945
+ *
3946
+ * @type {string}
3947
+ * @memberof Weather
3948
+ */
3949
+ 'unit': string;
3950
+ /**
3951
+ *
3952
+ * @type {number}
3953
+ * @memberof Weather
3954
+ */
3955
+ 'temperature': number;
3956
+ }
3874
3957
 
3875
3958
  /**
3876
3959
  * AIApi - axios parameter creator
@@ -10514,6 +10597,45 @@ export class TodoApi extends BaseAPI {
10514
10597
  */
10515
10598
  export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
10516
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
+ },
10517
10639
  /**
10518
10640
  *
10519
10641
  * @param {*} [options] Override http request option.
@@ -10658,6 +10780,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
10658
10780
  options: localVarRequestOptions,
10659
10781
  };
10660
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
+ },
10661
10816
  /**
10662
10817
  *
10663
10818
  * @param {UserSyncDTO} userSyncDTO
@@ -10779,6 +10934,18 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
10779
10934
  export const UsersApiFp = function(configuration?: Configuration) {
10780
10935
  const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
10781
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
+ },
10782
10949
  /**
10783
10950
  *
10784
10951
  * @param {*} [options] Override http request option.
@@ -10825,6 +10992,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
10825
10992
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
10826
10993
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10827
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
+ },
10828
11006
  /**
10829
11007
  *
10830
11008
  * @param {UserSyncDTO} userSyncDTO
@@ -10870,6 +11048,15 @@ export const UsersApiFp = function(configuration?: Configuration) {
10870
11048
  export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10871
11049
  const localVarFp = UsersApiFp(configuration)
10872
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
+ },
10873
11060
  /**
10874
11061
  *
10875
11062
  * @param {*} [options] Override http request option.
@@ -10904,6 +11091,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
10904
11091
  usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
10905
11092
  return localVarFp.usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(axios, basePath));
10906
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
+ },
10907
11102
  /**
10908
11103
  *
10909
11104
  * @param {UserSyncDTO} userSyncDTO
@@ -10940,6 +11135,17 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
10940
11135
  * @extends {BaseAPI}
10941
11136
  */
10942
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
+
10943
11149
  /**
10944
11150
  *
10945
11151
  * @param {*} [options] Override http request option.
@@ -10982,6 +11188,16 @@ export class UsersApi extends BaseAPI {
10982
11188
  return UsersApiFp(this.configuration).usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(this.axios, this.basePath));
10983
11189
  }
10984
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
+
10985
11201
  /**
10986
11202
  *
10987
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.41",
3
+ "version": "1.1.45",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},