@gooday_corp/gooday-api-client 1.1.12-delta-4 → 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 +177 -77
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -520,49 +520,49 @@ export interface BusinessVenueDTO {
520
520
  /**
521
521
  *
522
522
  * @export
523
- * @interface BusinessVenueDetailsDTO
523
+ * @interface BusinessVenueDetailsEntity
524
524
  */
525
- export interface BusinessVenueDetailsDTO {
525
+ export interface BusinessVenueDetailsEntity {
526
526
  /**
527
527
  * Unique identifier for the business venue
528
528
  * @type {string}
529
- * @memberof BusinessVenueDetailsDTO
529
+ * @memberof BusinessVenueDetailsEntity
530
530
  */
531
531
  '_id'?: string;
532
532
  /**
533
533
  * coverPhots
534
534
  * @type {string}
535
- * @memberof BusinessVenueDetailsDTO
535
+ * @memberof BusinessVenueDetailsEntity
536
536
  */
537
537
  'coverPhoto': string;
538
538
  /**
539
539
  *
540
540
  * @type {string}
541
- * @memberof BusinessVenueDetailsDTO
541
+ * @memberof BusinessVenueDetailsEntity
542
542
  */
543
543
  'priceRange': string;
544
544
  /**
545
545
  *
546
546
  * @type {LocationDTO}
547
- * @memberof BusinessVenueDetailsDTO
547
+ * @memberof BusinessVenueDetailsEntity
548
548
  */
549
549
  'location': LocationDTO;
550
550
  /**
551
551
  *
552
552
  * @type {string}
553
- * @memberof BusinessVenueDetailsDTO
553
+ * @memberof BusinessVenueDetailsEntity
554
554
  */
555
555
  'numberOfEmployee': string;
556
556
  /**
557
557
  *
558
- * @type {UserMeDTO}
559
- * @memberof BusinessVenueDetailsDTO
558
+ * @type {UserEntity}
559
+ * @memberof BusinessVenueDetailsEntity
560
560
  */
561
- 'user': UserMeDTO;
561
+ 'user': UserEntity;
562
562
  /**
563
563
  *
564
564
  * @type {BusinessEntity}
565
- * @memberof BusinessVenueDetailsDTO
565
+ * @memberof BusinessVenueDetailsEntity
566
566
  */
567
567
  'business': BusinessEntity;
568
568
  }
@@ -580,10 +580,10 @@ export interface BusinessVenueResponseDTO {
580
580
  'statusCode': number;
581
581
  /**
582
582
  * Business verification
583
- * @type {Array<BusinessVenueDetailsDTO>}
583
+ * @type {Array<BusinessVenueDetailsEntity>}
584
584
  * @memberof BusinessVenueResponseDTO
585
585
  */
586
- 'data': Array<BusinessVenueDetailsDTO>;
586
+ 'data': Array<BusinessVenueDetailsEntity>;
587
587
  }
588
588
  /**
589
589
  *
@@ -868,6 +868,55 @@ export interface ForgotPasswordResponseDTO {
868
868
  */
869
869
  'message': string;
870
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
+ }
871
920
  /**
872
921
  *
873
922
  * @export
@@ -1058,6 +1107,12 @@ export interface LocationDTO {
1058
1107
  * @memberof LocationDTO
1059
1108
  */
1060
1109
  'coordinates': Array<number>;
1110
+ /**
1111
+ *
1112
+ * @type {string}
1113
+ * @memberof LocationDTO
1114
+ */
1115
+ 'distance'?: string;
1061
1116
  /**
1062
1117
  *
1063
1118
  * @type {LocationMetaDTO}
@@ -1765,6 +1820,12 @@ export interface UserEntity {
1765
1820
  * @memberof UserEntity
1766
1821
  */
1767
1822
  'email': string;
1823
+ /**
1824
+ * User location
1825
+ * @type {Array<number>}
1826
+ * @memberof UserEntity
1827
+ */
1828
+ 'location'?: Array<number>;
1768
1829
  /**
1769
1830
  * Nickname of the user
1770
1831
  * @type {string}
@@ -1813,6 +1874,12 @@ export interface UserEntity {
1813
1874
  * @memberof UserEntity
1814
1875
  */
1815
1876
  'plan': UserPlanDTO;
1877
+ /**
1878
+ * Plan subscribed by the user
1879
+ * @type {BusinessEntity}
1880
+ * @memberof UserEntity
1881
+ */
1882
+ 'business'?: BusinessEntity;
1816
1883
  /**
1817
1884
  * Action user has to perform
1818
1885
  * @type {Array<string>}
@@ -1874,6 +1941,19 @@ export const UserPlanDTONameEnum = {
1874
1941
 
1875
1942
  export type UserPlanDTONameEnum = typeof UserPlanDTONameEnum[keyof typeof UserPlanDTONameEnum];
1876
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
+ }
1877
1957
  /**
1878
1958
  *
1879
1959
  * @export
@@ -2831,17 +2911,13 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2831
2911
  },
2832
2912
  /**
2833
2913
  *
2834
- * @param {string} [type] Business type ID
2835
- * @param {string} [search] Business name search
2836
- * @param {string} [category] Business category ID
2837
- * @param {number} [longitude] Longitude of the location
2838
- * @param {number} [latitude] Latitude of the location
2839
- * @param {number} [page] Page number for pagination
2840
- * @param {number} [limit] Number of items per page for pagination
2914
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
2841
2915
  * @param {*} [options] Override http request option.
2842
2916
  * @throws {RequiredError}
2843
2917
  */
2844
- 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)
2845
2921
  const localVarPath = `/v1/business/business-venue`;
2846
2922
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2847
2923
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2850,7 +2926,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2850
2926
  baseOptions = configuration.baseOptions;
2851
2927
  }
2852
2928
 
2853
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2929
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2854
2930
  const localVarHeaderParameter = {} as any;
2855
2931
  const localVarQueryParameter = {} as any;
2856
2932
 
@@ -2858,39 +2934,14 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2858
2934
  // http bearer authentication required
2859
2935
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
2860
2936
 
2861
- if (type !== undefined) {
2862
- localVarQueryParameter['type'] = type;
2863
- }
2864
-
2865
- if (search !== undefined) {
2866
- localVarQueryParameter['search'] = search;
2867
- }
2868
-
2869
- if (category !== undefined) {
2870
- localVarQueryParameter['category'] = category;
2871
- }
2872
-
2873
- if (longitude !== undefined) {
2874
- localVarQueryParameter['longitude'] = longitude;
2875
- }
2876
-
2877
- if (latitude !== undefined) {
2878
- localVarQueryParameter['latitude'] = latitude;
2879
- }
2880
-
2881
- if (page !== undefined) {
2882
- localVarQueryParameter['page'] = page;
2883
- }
2884
-
2885
- if (limit !== undefined) {
2886
- localVarQueryParameter['limit'] = limit;
2887
- }
2888
-
2889
2937
 
2890
2938
 
2939
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2940
+
2891
2941
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2892
2942
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2893
2943
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2944
+ localVarRequestOptions.data = serializeDataIfNeeded(getBusinessVenueDto, localVarRequestOptions, configuration)
2894
2945
 
2895
2946
  return {
2896
2947
  url: toPathString(localVarUrlObj),
@@ -3194,18 +3245,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
3194
3245
  },
3195
3246
  /**
3196
3247
  *
3197
- * @param {string} [type] Business type ID
3198
- * @param {string} [search] Business name search
3199
- * @param {string} [category] Business category ID
3200
- * @param {number} [longitude] Longitude of the location
3201
- * @param {number} [latitude] Latitude of the location
3202
- * @param {number} [page] Page number for pagination
3203
- * @param {number} [limit] Number of items per page for pagination
3248
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3204
3249
  * @param {*} [options] Override http request option.
3205
3250
  * @throws {RequiredError}
3206
3251
  */
3207
- 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>> {
3208
- 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);
3209
3254
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3210
3255
  const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
3211
3256
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3329,18 +3374,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
3329
3374
  },
3330
3375
  /**
3331
3376
  *
3332
- * @param {string} [type] Business type ID
3333
- * @param {string} [search] Business name search
3334
- * @param {string} [category] Business category ID
3335
- * @param {number} [longitude] Longitude of the location
3336
- * @param {number} [latitude] Latitude of the location
3337
- * @param {number} [page] Page number for pagination
3338
- * @param {number} [limit] Number of items per page for pagination
3377
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3339
3378
  * @param {*} [options] Override http request option.
3340
3379
  * @throws {RequiredError}
3341
3380
  */
3342
- businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
3343
- 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));
3344
3383
  },
3345
3384
  /**
3346
3385
  *
@@ -3446,19 +3485,13 @@ export class BusinessApi extends BaseAPI {
3446
3485
 
3447
3486
  /**
3448
3487
  *
3449
- * @param {string} [type] Business type ID
3450
- * @param {string} [search] Business name search
3451
- * @param {string} [category] Business category ID
3452
- * @param {number} [longitude] Longitude of the location
3453
- * @param {number} [latitude] Latitude of the location
3454
- * @param {number} [page] Page number for pagination
3455
- * @param {number} [limit] Number of items per page for pagination
3488
+ * @param {GetBusinessVenueDto} getBusinessVenueDto
3456
3489
  * @param {*} [options] Override http request option.
3457
3490
  * @throws {RequiredError}
3458
3491
  * @memberof BusinessApi
3459
3492
  */
3460
- public businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
3461
- 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));
3462
3495
  }
3463
3496
 
3464
3497
  /**
@@ -4840,6 +4873,41 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
4840
4873
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4841
4874
  localVarRequestOptions.data = serializeDataIfNeeded(onBoardingDTO, localVarRequestOptions, configuration)
4842
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
+
4843
4911
  return {
4844
4912
  url: toPathString(localVarUrlObj),
4845
4913
  options: localVarRequestOptions,
@@ -4878,6 +4946,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
4878
4946
  const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerOnBoarded']?.[localVarOperationServerIndex]?.url;
4879
4947
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4880
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
+ },
4881
4961
  }
4882
4962
  };
4883
4963
 
@@ -4905,6 +4985,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
4905
4985
  usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<OnBoardingResponseDTO> {
4906
4986
  return localVarFp.usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(axios, basePath));
4907
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
+ },
4908
4997
  };
4909
4998
  };
4910
4999
 
@@ -4935,6 +5024,17 @@ export class UsersApi extends BaseAPI {
4935
5024
  public usersControllerOnBoarded(onBoardingDTO: OnBoardingDTO, options?: RawAxiosRequestConfig) {
4936
5025
  return UsersApiFp(this.configuration).usersControllerOnBoarded(onBoardingDTO, options).then((request) => request(this.axios, this.basePath));
4937
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
+ }
4938
5038
  }
4939
5039
 
4940
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-4",
3
+ "version": "1.1.12-delta-5",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},