@gooday_corp/gooday-api-client 1.1.12-delta-3 → 1.1.12-delta-5

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 +190 -78
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -165,6 +165,12 @@ export interface BusinessEntity {
165
165
  * @memberof BusinessEntity
166
166
  */
167
167
  'timing'?: Array<BusinessTiming>;
168
+ /**
169
+ * Business Current Timing
170
+ * @type {BusinessTiming}
171
+ * @memberof BusinessEntity
172
+ */
173
+ 'currentTime'?: BusinessTiming;
168
174
  /**
169
175
  * Business policies
170
176
  * @type {string}
@@ -491,7 +497,7 @@ export interface BusinessVenueDTO {
491
497
  * @type {string}
492
498
  * @memberof BusinessVenueDTO
493
499
  */
494
- 'coverPhotos': string;
500
+ 'coverPhoto': string;
495
501
  /**
496
502
  *
497
503
  * @type {string}
@@ -514,43 +520,49 @@ export interface BusinessVenueDTO {
514
520
  /**
515
521
  *
516
522
  * @export
517
- * @interface BusinessVenueDetailsDTO
523
+ * @interface BusinessVenueDetailsEntity
518
524
  */
519
- export interface BusinessVenueDetailsDTO {
525
+ export interface BusinessVenueDetailsEntity {
526
+ /**
527
+ * Unique identifier for the business venue
528
+ * @type {string}
529
+ * @memberof BusinessVenueDetailsEntity
530
+ */
531
+ '_id'?: string;
520
532
  /**
521
533
  * coverPhots
522
534
  * @type {string}
523
- * @memberof BusinessVenueDetailsDTO
535
+ * @memberof BusinessVenueDetailsEntity
524
536
  */
525
- 'coverPhotos': string;
537
+ 'coverPhoto': string;
526
538
  /**
527
539
  *
528
540
  * @type {string}
529
- * @memberof BusinessVenueDetailsDTO
541
+ * @memberof BusinessVenueDetailsEntity
530
542
  */
531
543
  'priceRange': string;
532
544
  /**
533
545
  *
534
546
  * @type {LocationDTO}
535
- * @memberof BusinessVenueDetailsDTO
547
+ * @memberof BusinessVenueDetailsEntity
536
548
  */
537
549
  'location': LocationDTO;
538
550
  /**
539
551
  *
540
552
  * @type {string}
541
- * @memberof BusinessVenueDetailsDTO
553
+ * @memberof BusinessVenueDetailsEntity
542
554
  */
543
555
  'numberOfEmployee': string;
544
556
  /**
545
557
  *
546
- * @type {UserMeDTO}
547
- * @memberof BusinessVenueDetailsDTO
558
+ * @type {UserEntity}
559
+ * @memberof BusinessVenueDetailsEntity
548
560
  */
549
- 'user': UserMeDTO;
561
+ 'user': UserEntity;
550
562
  /**
551
563
  *
552
564
  * @type {BusinessEntity}
553
- * @memberof BusinessVenueDetailsDTO
565
+ * @memberof BusinessVenueDetailsEntity
554
566
  */
555
567
  'business': BusinessEntity;
556
568
  }
@@ -568,10 +580,10 @@ export interface BusinessVenueResponseDTO {
568
580
  'statusCode': number;
569
581
  /**
570
582
  * Business verification
571
- * @type {Array<BusinessVenueDetailsDTO>}
583
+ * @type {Array<BusinessVenueDetailsEntity>}
572
584
  * @memberof BusinessVenueResponseDTO
573
585
  */
574
- 'data': Array<BusinessVenueDetailsDTO>;
586
+ 'data': Array<BusinessVenueDetailsEntity>;
575
587
  }
576
588
  /**
577
589
  *
@@ -856,6 +868,55 @@ export interface ForgotPasswordResponseDTO {
856
868
  */
857
869
  'message': string;
858
870
  }
871
+ /**
872
+ *
873
+ * @export
874
+ * @interface GetBusinessVenueDto
875
+ */
876
+ export interface GetBusinessVenueDto {
877
+ /**
878
+ * Business type ID
879
+ * @type {string}
880
+ * @memberof GetBusinessVenueDto
881
+ */
882
+ 'type'?: string;
883
+ /**
884
+ * Business name search
885
+ * @type {string}
886
+ * @memberof GetBusinessVenueDto
887
+ */
888
+ 'search'?: string;
889
+ /**
890
+ * Business category ID
891
+ * @type {string}
892
+ * @memberof GetBusinessVenueDto
893
+ */
894
+ 'category'?: string;
895
+ /**
896
+ * Longitude of the location
897
+ * @type {number}
898
+ * @memberof GetBusinessVenueDto
899
+ */
900
+ 'longitude'?: number;
901
+ /**
902
+ * Latitude of the location
903
+ * @type {number}
904
+ * @memberof GetBusinessVenueDto
905
+ */
906
+ 'latitude'?: number;
907
+ /**
908
+ * Page number for pagination
909
+ * @type {number}
910
+ * @memberof GetBusinessVenueDto
911
+ */
912
+ 'page'?: number;
913
+ /**
914
+ * Number of items per page for pagination
915
+ * @type {number}
916
+ * @memberof GetBusinessVenueDto
917
+ */
918
+ 'limit'?: number;
919
+ }
859
920
  /**
860
921
  *
861
922
  * @export
@@ -1046,6 +1107,12 @@ export interface LocationDTO {
1046
1107
  * @memberof LocationDTO
1047
1108
  */
1048
1109
  'coordinates': Array<number>;
1110
+ /**
1111
+ *
1112
+ * @type {string}
1113
+ * @memberof LocationDTO
1114
+ */
1115
+ 'distance'?: string;
1049
1116
  /**
1050
1117
  *
1051
1118
  * @type {LocationMetaDTO}
@@ -1753,6 +1820,12 @@ export interface UserEntity {
1753
1820
  * @memberof UserEntity
1754
1821
  */
1755
1822
  'email': string;
1823
+ /**
1824
+ * User location
1825
+ * @type {Array<number>}
1826
+ * @memberof UserEntity
1827
+ */
1828
+ 'location'?: Array<number>;
1756
1829
  /**
1757
1830
  * Nickname of the user
1758
1831
  * @type {string}
@@ -1801,6 +1874,12 @@ export interface UserEntity {
1801
1874
  * @memberof UserEntity
1802
1875
  */
1803
1876
  'plan': UserPlanDTO;
1877
+ /**
1878
+ * Plan subscribed by the user
1879
+ * @type {BusinessEntity}
1880
+ * @memberof UserEntity
1881
+ */
1882
+ 'business'?: BusinessEntity;
1804
1883
  /**
1805
1884
  * Action user has to perform
1806
1885
  * @type {Array<string>}
@@ -1862,6 +1941,19 @@ export const UserPlanDTONameEnum = {
1862
1941
 
1863
1942
  export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
1864
1943
 
1944
+ /**
1945
+ *
1946
+ * @export
1947
+ * @interface UserSyncLocationDTO
1948
+ */
1949
+ export interface UserSyncLocationDTO {
1950
+ /**
1951
+ * User location
1952
+ * @type {Array<number>}
1953
+ * @memberof UserSyncLocationDTO
1954
+ */
1955
+ 'location'?: Array<number>;
1956
+ }
1865
1957
  /**
1866
1958
  *
1867
1959
  * @export
@@ -2819,17 +2911,13 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2819
2911
  },
2820
2912
  /**
2821
2913
  *
2822
- * @param {string} [type] Business type ID
2823
- * @param {string} [search] Business name search
2824
- * @param {string} [category] Business category ID
2825
- * @param {number} [longitude] Longitude of the location
2826
- * @param {number} [latitude] Latitude of the location
2827
- * @param {number} [page] Page number for pagination
2828
- * @param {number} [limit] Number of items per page for pagination
2914
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
2829
2915
  * @param {*} [options] Override http request option.
2830
2916
  * @throws {RequiredError}
2831
2917
  */
2832
- businessTypeControllerGetBusinessVenue: async (type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2918
+ businessTypeControllerGetBusinessVenue: async (getBusinessVenueDto: GetBusinessVenueDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2919
+ // verify required parameter 'getBusinessVenueDto' is not null or undefined
2920
+ assertParamExists('businessTypeControllerGetBusinessVenue', 'getBusinessVenueDto', getBusinessVenueDto)
2833
2921
  const localVarPath = `/v1/business/business-venue`;
2834
2922
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2835
2923
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2838,7 +2926,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2838
2926
  baseOptions = configuration.baseOptions;
2839
2927
  }
2840
2928
 
2841
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2929
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2842
2930
  const localVarHeaderParameter = {} as any;
2843
2931
  const localVarQueryParameter = {} as any;
2844
2932
 
@@ -2846,39 +2934,14 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2846
2934
  // http bearer authentication required
2847
2935
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
2848
2936
 
2849
- if (type !== undefined) {
2850
- localVarQueryParameter['type'] = type;
2851
- }
2852
-
2853
- if (search !== undefined) {
2854
- localVarQueryParameter['search'] = search;
2855
- }
2856
-
2857
- if (category !== undefined) {
2858
- localVarQueryParameter['category'] = category;
2859
- }
2860
-
2861
- if (longitude !== undefined) {
2862
- localVarQueryParameter['longitude'] = longitude;
2863
- }
2864
-
2865
- if (latitude !== undefined) {
2866
- localVarQueryParameter['latitude'] = latitude;
2867
- }
2868
-
2869
- if (page !== undefined) {
2870
- localVarQueryParameter['page'] = page;
2871
- }
2872
-
2873
- if (limit !== undefined) {
2874
- localVarQueryParameter['limit'] = limit;
2875
- }
2876
-
2877
2937
 
2878
2938
 
2939
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2940
+
2879
2941
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2880
2942
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2881
2943
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2944
+ localVarRequestOptions.data = serializeDataIfNeeded(getBusinessVenueDto, localVarRequestOptions, configuration)
2882
2945
 
2883
2946
  return {
2884
2947
  url: toPathString(localVarUrlObj),
@@ -3182,18 +3245,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
3182
3245
  },
3183
3246
  /**
3184
3247
  *
3185
- * @param {string} [type] Business type ID
3186
- * @param {string} [search] Business name search
3187
- * @param {string} [category] Business category ID
3188
- * @param {number} [longitude] Longitude of the location
3189
- * @param {number} [latitude] Latitude of the location
3190
- * @param {number} [page] Page number for pagination
3191
- * @param {number} [limit] Number of items per page for pagination
3248
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3192
3249
  * @param {*} [options] Override http request option.
3193
3250
  * @throws {RequiredError}
3194
3251
  */
3195
- async businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVenueResponseDTO>> {
3196
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options);
3252
+ async businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVenueResponseDTO>> {
3253
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options);
3197
3254
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3198
3255
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
3199
3256
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3317,18 +3374,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
3317
3374
  },
3318
3375
  /**
3319
3376
  *
3320
- * @param {string} [type] Business type ID
3321
- * @param {string} [search] Business name search
3322
- * @param {string} [category] Business category ID
3323
- * @param {number} [longitude] Longitude of the location
3324
- * @param {number} [latitude] Latitude of the location
3325
- * @param {number} [page] Page number for pagination
3326
- * @param {number} [limit] Number of items per page for pagination
3377
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3327
3378
  * @param {*} [options] Override http request option.
3328
3379
  * @throws {RequiredError}
3329
3380
  */
3330
- businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
3331
- return localVarFp.businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options).then((request) => request(axios, basePath));
3381
+ businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
3382
+ return localVarFp.businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(axios, basePath));
3332
3383
  },
3333
3384
  /**
3334
3385
  *
@@ -3434,19 +3485,13 @@ export class BusinessApi extends BaseAPI {
3434
3485
 
3435
3486
  /**
3436
3487
  *
3437
- * @param {string} [type] Business type ID
3438
- * @param {string} [search] Business name search
3439
- * @param {string} [category] Business category ID
3440
- * @param {number} [longitude] Longitude of the location
3441
- * @param {number} [latitude] Latitude of the location
3442
- * @param {number} [page] Page number for pagination
3443
- * @param {number} [limit] Number of items per page for pagination
3488
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3444
3489
  * @param {*} [options] Override http request option.
3445
3490
  * @throws {RequiredError}
3446
3491
  * @memberof BusinessApi
3447
3492
  */
3448
- public businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3449
- return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options).then((request) => request(this.axios, this.basePath));
3493
+ public businessTypeControllerGetBusinessVenue(getBusinessVenueDto: GetBusinessVenueDto, options?: RawAxiosRequestConfig) {
3494
+ return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(getBusinessVenueDto, options).then((request) => request(this.axios, this.basePath));
3450
3495
  }
3451
3496
 
3452
3497
  /**
@@ -4828,6 +4873,41 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
4828
4873
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4829
4874
  localVarRequestOptions.data = serializeDataIfNeeded(onBoardingDTO, localVarRequestOptions, configuration)
4830
4875
 
4876
+ return {
4877
+ url: toPathString(localVarUrlObj),
4878
+ options: localVarRequestOptions,
4879
+ };
4880
+ },
4881
+ /**
4882
+ *
4883
+ * @param {UserSyncLocationDTO} userSyncLocationDTO
4884
+ * @param {*} [options] Override http request option.
4885
+ * @throws {RequiredError}
4886
+ */
4887
+ usersControllerSyncUserLocation: async (userSyncLocationDTO: UserSyncLocationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4888
+ // verify required parameter 'userSyncLocationDTO' is not null or undefined
4889
+ assertParamExists('usersControllerSyncUserLocation', 'userSyncLocationDTO', userSyncLocationDTO)
4890
+ const localVarPath = `/v1/user/sync/user/location`;
4891
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4892
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4893
+ let baseOptions;
4894
+ if (configuration) {
4895
+ baseOptions = configuration.baseOptions;
4896
+ }
4897
+
4898
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4899
+ const localVarHeaderParameter = {} as any;
4900
+ const localVarQueryParameter = {} as any;
4901
+
4902
+
4903
+
4904
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4905
+
4906
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4907
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4908
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4909
+ localVarRequestOptions.data = serializeDataIfNeeded(userSyncLocationDTO, localVarRequestOptions, configuration)
4910
+
4831
4911
  return {
4832
4912
  url: toPathString(localVarUrlObj),
4833
4913
  options: localVarRequestOptions,
@@ -4866,6 +4946,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
4866
4946
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
4867
4947
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4868
4948
  },
4949
+ /**
4950
+ *
4951
+ * @param {UserSyncLocationDTO} userSyncLocationDTO
4952
+ * @param {*} [options] Override http request option.
4953
+ * @throws {RequiredError}
4954
+ */
4955
+ async usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnBoardingResponseDTO>> {
4956
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerSyncUserLocation(userSyncLocationDTO, options);
4957
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4958
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerSyncUserLocation']?.[localVarOperationServerIndex]?.url;
4959
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4960
+ },
4869
4961
  }
4870
4962
  };
4871
4963
 
@@ -4893,6 +4985,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
4893
4985
  usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
4894
4986
  return localVarFp.usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(axios, basePath));
4895
4987
  },
4988
+ /**
4989
+ *
4990
+ * @param {UserSyncLocationDTO} userSyncLocationDTO
4991
+ * @param {*} [options] Override http request option.
4992
+ * @throws {RequiredError}
4993
+ */
4994
+ usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
4995
+ return localVarFp.usersControllerSyncUserLocation(userSyncLocationDTO, options).then((request) => request(axios, basePath));
4996
+ },
4896
4997
  };
4897
4998
  };
4898
4999
 
@@ -4923,6 +5024,17 @@ export class UsersApi extends BaseAPI {
4923
5024
  public usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig) {
4924
5025
  return UsersApiFp(this.configuration).usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(this.axios, this.basePath));
4925
5026
  }
5027
+
5028
+ /**
5029
+ *
5030
+ * @param {UserSyncLocationDTO} userSyncLocationDTO
5031
+ * @param {*} [options] Override http request option.
5032
+ * @throws {RequiredError}
5033
+ * @memberof UsersApi
5034
+ */
5035
+ public usersControllerSyncUserLocation(userSyncLocationDTO: UserSyncLocationDTO, options?: RawAxiosRequestConfig) {
5036
+ return UsersApiFp(this.configuration).usersControllerSyncUserLocation(userSyncLocationDTO, options).then((request) => request(this.axios, this.basePath));
5037
+ }
4926
5038
  }
4927
5039
 
4928
5040
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.12-delta-3",
3
+ "version": "1.1.12-delta-5",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},