@gooday_corp/gooday-api-client 1.1.11 → 1.1.12-alpha-1

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.
@@ -1 +1 @@
1
- 7.8.0
1
+ 7.9.0
package/api.ts CHANGED
@@ -411,10 +411,10 @@ export interface BusinessVenueDTO {
411
411
  'priceRange': string;
412
412
  /**
413
413
  *
414
- * @type {string}
414
+ * @type {LocationDTO}
415
415
  * @memberof BusinessVenueDTO
416
416
  */
417
- 'location': string;
417
+ 'location': LocationDTO;
418
418
  }
419
419
  /**
420
420
  *
@@ -846,6 +846,70 @@ export interface IntegrationsResponse {
846
846
  */
847
847
  'data': Array<IntegrationEntity>;
848
848
  }
849
+ /**
850
+ *
851
+ * @export
852
+ * @interface LocationCoordinatesResponse
853
+ */
854
+ export interface LocationCoordinatesResponse {
855
+ /**
856
+ * statusCode
857
+ * @type {number}
858
+ * @memberof LocationCoordinatesResponse
859
+ */
860
+ 'statusCode': number;
861
+ /**
862
+ * Location coordinate
863
+ * @type {LocationDTO}
864
+ * @memberof LocationCoordinatesResponse
865
+ */
866
+ 'data': LocationDTO;
867
+ }
868
+ /**
869
+ *
870
+ * @export
871
+ * @interface LocationDTO
872
+ */
873
+ export interface LocationDTO {
874
+ /**
875
+ *
876
+ * @type {string}
877
+ * @memberof LocationDTO
878
+ */
879
+ 'type': LocationDTOTypeEnum;
880
+ /**
881
+ *
882
+ * @type {Array<number>}
883
+ * @memberof LocationDTO
884
+ */
885
+ 'coordinates': Array<number>;
886
+ }
887
+
888
+ export const LocationDTOTypeEnum = {
889
+ Point: 'Point'
890
+ } as const;
891
+
892
+ export type LocationDTOTypeEnum = typeof LocationDTOTypeEnum[keyof typeof LocationDTOTypeEnum];
893
+
894
+ /**
895
+ *
896
+ * @export
897
+ * @interface LocationEntityResponse
898
+ */
899
+ export interface LocationEntityResponse {
900
+ /**
901
+ * statusCode
902
+ * @type {number}
903
+ * @memberof LocationEntityResponse
904
+ */
905
+ 'statusCode': number;
906
+ /**
907
+ * Location places
908
+ * @type {Array<Places>}
909
+ * @memberof LocationEntityResponse
910
+ */
911
+ 'data': Array<Places>;
912
+ }
849
913
  /**
850
914
  *
851
915
  * @export
@@ -1010,6 +1074,25 @@ export interface OnBoardingResponseDTO {
1010
1074
  */
1011
1075
  'data': UserEntity;
1012
1076
  }
1077
+ /**
1078
+ *
1079
+ * @export
1080
+ * @interface Places
1081
+ */
1082
+ export interface Places {
1083
+ /**
1084
+ *
1085
+ * @type {string}
1086
+ * @memberof Places
1087
+ */
1088
+ 'label': string;
1089
+ /**
1090
+ *
1091
+ * @type {string}
1092
+ * @memberof Places
1093
+ */
1094
+ 'value': string;
1095
+ }
1013
1096
  /**
1014
1097
  *
1015
1098
  * @export
@@ -3583,6 +3666,181 @@ export class IntegrationApi extends BaseAPI {
3583
3666
 
3584
3667
 
3585
3668
 
3669
+ /**
3670
+ * LocationApi - axios parameter creator
3671
+ * @export
3672
+ */
3673
+ export const LocationApiAxiosParamCreator = function (configuration?: Configuration) {
3674
+ return {
3675
+ /**
3676
+ *
3677
+ * @param {string} place
3678
+ * @param {*} [options] Override http request option.
3679
+ * @throws {RequiredError}
3680
+ */
3681
+ locationControllerFetchCoordinates: async (place: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3682
+ // verify required parameter 'place' is not null or undefined
3683
+ assertParamExists('locationControllerFetchCoordinates', 'place', place)
3684
+ const localVarPath = `/v1/locations-coordinates`;
3685
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3686
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3687
+ let baseOptions;
3688
+ if (configuration) {
3689
+ baseOptions = configuration.baseOptions;
3690
+ }
3691
+
3692
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3693
+ const localVarHeaderParameter = {} as any;
3694
+ const localVarQueryParameter = {} as any;
3695
+
3696
+ if (place !== undefined) {
3697
+ localVarQueryParameter['place'] = place;
3698
+ }
3699
+
3700
+
3701
+
3702
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3703
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3704
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3705
+
3706
+ return {
3707
+ url: toPathString(localVarUrlObj),
3708
+ options: localVarRequestOptions,
3709
+ };
3710
+ },
3711
+ /**
3712
+ *
3713
+ * @param {string} place
3714
+ * @param {*} [options] Override http request option.
3715
+ * @throws {RequiredError}
3716
+ */
3717
+ locationControllerFetchLocations: async (place: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3718
+ // verify required parameter 'place' is not null or undefined
3719
+ assertParamExists('locationControllerFetchLocations', 'place', place)
3720
+ const localVarPath = `/v1/locations`;
3721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3723
+ let baseOptions;
3724
+ if (configuration) {
3725
+ baseOptions = configuration.baseOptions;
3726
+ }
3727
+
3728
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3729
+ const localVarHeaderParameter = {} as any;
3730
+ const localVarQueryParameter = {} as any;
3731
+
3732
+ if (place !== undefined) {
3733
+ localVarQueryParameter['place'] = place;
3734
+ }
3735
+
3736
+
3737
+
3738
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3739
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3740
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3741
+
3742
+ return {
3743
+ url: toPathString(localVarUrlObj),
3744
+ options: localVarRequestOptions,
3745
+ };
3746
+ },
3747
+ }
3748
+ };
3749
+
3750
+ /**
3751
+ * LocationApi - functional programming interface
3752
+ * @export
3753
+ */
3754
+ export const LocationApiFp = function(configuration?: Configuration) {
3755
+ const localVarAxiosParamCreator = LocationApiAxiosParamCreator(configuration)
3756
+ return {
3757
+ /**
3758
+ *
3759
+ * @param {string} place
3760
+ * @param {*} [options] Override http request option.
3761
+ * @throws {RequiredError}
3762
+ */
3763
+ async locationControllerFetchCoordinates(place: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LocationCoordinatesResponse>> {
3764
+ const localVarAxiosArgs = await localVarAxiosParamCreator.locationControllerFetchCoordinates(place, options);
3765
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3766
+ const localVarOperationServerBasePath = operationServerMap['LocationApi.locationControllerFetchCoordinates']?.[localVarOperationServerIndex]?.url;
3767
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3768
+ },
3769
+ /**
3770
+ *
3771
+ * @param {string} place
3772
+ * @param {*} [options] Override http request option.
3773
+ * @throws {RequiredError}
3774
+ */
3775
+ async locationControllerFetchLocations(place: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LocationEntityResponse>> {
3776
+ const localVarAxiosArgs = await localVarAxiosParamCreator.locationControllerFetchLocations(place, options);
3777
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3778
+ const localVarOperationServerBasePath = operationServerMap['LocationApi.locationControllerFetchLocations']?.[localVarOperationServerIndex]?.url;
3779
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3780
+ },
3781
+ }
3782
+ };
3783
+
3784
+ /**
3785
+ * LocationApi - factory interface
3786
+ * @export
3787
+ */
3788
+ export const LocationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3789
+ const localVarFp = LocationApiFp(configuration)
3790
+ return {
3791
+ /**
3792
+ *
3793
+ * @param {string} place
3794
+ * @param {*} [options] Override http request option.
3795
+ * @throws {RequiredError}
3796
+ */
3797
+ locationControllerFetchCoordinates(place: string, options?: RawAxiosRequestConfig): AxiosPromise<LocationCoordinatesResponse> {
3798
+ return localVarFp.locationControllerFetchCoordinates(place, options).then((request) => request(axios, basePath));
3799
+ },
3800
+ /**
3801
+ *
3802
+ * @param {string} place
3803
+ * @param {*} [options] Override http request option.
3804
+ * @throws {RequiredError}
3805
+ */
3806
+ locationControllerFetchLocations(place: string, options?: RawAxiosRequestConfig): AxiosPromise<LocationEntityResponse> {
3807
+ return localVarFp.locationControllerFetchLocations(place, options).then((request) => request(axios, basePath));
3808
+ },
3809
+ };
3810
+ };
3811
+
3812
+ /**
3813
+ * LocationApi - object-oriented interface
3814
+ * @export
3815
+ * @class LocationApi
3816
+ * @extends {BaseAPI}
3817
+ */
3818
+ export class LocationApi extends BaseAPI {
3819
+ /**
3820
+ *
3821
+ * @param {string} place
3822
+ * @param {*} [options] Override http request option.
3823
+ * @throws {RequiredError}
3824
+ * @memberof LocationApi
3825
+ */
3826
+ public locationControllerFetchCoordinates(place: string, options?: RawAxiosRequestConfig) {
3827
+ return LocationApiFp(this.configuration).locationControllerFetchCoordinates(place, options).then((request) => request(this.axios, this.basePath));
3828
+ }
3829
+
3830
+ /**
3831
+ *
3832
+ * @param {string} place
3833
+ * @param {*} [options] Override http request option.
3834
+ * @throws {RequiredError}
3835
+ * @memberof LocationApi
3836
+ */
3837
+ public locationControllerFetchLocations(place: string, options?: RawAxiosRequestConfig) {
3838
+ return LocationApiFp(this.configuration).locationControllerFetchLocations(place, options).then((request) => request(this.axios, this.basePath));
3839
+ }
3840
+ }
3841
+
3842
+
3843
+
3586
3844
  /**
3587
3845
  * OAuthApi - axios parameter creator
3588
3846
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.11",
3
+ "version": "1.1.12-alpha-1",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},