@gooday_corp/gooday-api-client 1.1.12-alpha → 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
@@ -60,50 +60,6 @@ export interface AddDevicePayload {
60
60
  */
61
61
  'version': string;
62
62
  }
63
- /**
64
- *
65
- * @export
66
- * @interface AppleOAuthResponseDTO
67
- */
68
- export interface AppleOAuthResponseDTO {
69
- /**
70
- * statusCode
71
- * @type {number}
72
- * @memberof AppleOAuthResponseDTO
73
- */
74
- 'statusCode': number;
75
- /**
76
- * User
77
- * @type {SignupResponse}
78
- * @memberof AppleOAuthResponseDTO
79
- */
80
- 'data': SignupResponse;
81
- }
82
- /**
83
- *
84
- * @export
85
- * @interface AppleVerificationPayloadDTO
86
- */
87
- export interface AppleVerificationPayloadDTO {
88
- /**
89
- * The ID token provided by Google after authentication
90
- * @type {string}
91
- * @memberof AppleVerificationPayloadDTO
92
- */
93
- 'token': string;
94
- /**
95
- * First name of the user
96
- * @type {string}
97
- * @memberof AppleVerificationPayloadDTO
98
- */
99
- 'firstName': string;
100
- /**
101
- * Last name of the user
102
- * @type {string}
103
- * @memberof AppleVerificationPayloadDTO
104
- */
105
- 'lastName': string;
106
- }
107
63
  /**
108
64
  *
109
65
  * @export
@@ -455,10 +411,10 @@ export interface BusinessVenueDTO {
455
411
  'priceRange': string;
456
412
  /**
457
413
  *
458
- * @type {string}
414
+ * @type {LocationDTO}
459
415
  * @memberof BusinessVenueDTO
460
416
  */
461
- 'location': string;
417
+ 'location': LocationDTO;
462
418
  }
463
419
  /**
464
420
  *
@@ -782,7 +738,7 @@ export interface GoalListResponse {
782
738
  */
783
739
  export interface GoogleOAuthResponseDTO {
784
740
  /**
785
- * statusCode
741
+ * statuscCode
786
742
  * @type {number}
787
743
  * @memberof GoogleOAuthResponseDTO
788
744
  */
@@ -847,8 +803,7 @@ export interface IntegrationEntity {
847
803
 
848
804
  export const IntegrationEntityIntegrationTypeEnum = {
849
805
  Google: 'google',
850
- Microsoft: 'microsoft',
851
- Apple: 'apple'
806
+ Microsoft: 'microsoft'
852
807
  } as const;
853
808
 
854
809
  export type IntegrationEntityIntegrationTypeEnum = typeof IntegrationEntityIntegrationTypeEnum[keyof typeof IntegrationEntityIntegrationTypeEnum];
@@ -891,6 +846,70 @@ export interface IntegrationsResponse {
891
846
  */
892
847
  'data': Array<IntegrationEntity>;
893
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
+ }
894
913
  /**
895
914
  *
896
915
  * @export
@@ -1055,6 +1074,25 @@ export interface OnBoardingResponseDTO {
1055
1074
  */
1056
1075
  'data': UserEntity;
1057
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
+ }
1058
1096
  /**
1059
1097
  *
1060
1098
  * @export
@@ -3629,21 +3667,21 @@ export class IntegrationApi extends BaseAPI {
3629
3667
 
3630
3668
 
3631
3669
  /**
3632
- * OAuthApi - axios parameter creator
3670
+ * LocationApi - axios parameter creator
3633
3671
  * @export
3634
3672
  */
3635
- export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
3673
+ export const LocationApiAxiosParamCreator = function (configuration?: Configuration) {
3636
3674
  return {
3637
3675
  /**
3638
3676
  *
3639
- * @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
3677
+ * @param {string} place
3640
3678
  * @param {*} [options] Override http request option.
3641
3679
  * @throws {RequiredError}
3642
3680
  */
3643
- oAuthControllerValidateAppleToken: async (appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3644
- // verify required parameter 'appleVerificationPayloadDTO' is not null or undefined
3645
- assertParamExists('oAuthControllerValidateAppleToken', 'appleVerificationPayloadDTO', appleVerificationPayloadDTO)
3646
- const localVarPath = `/v1/oauth/apple`;
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`;
3647
3685
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3648
3686
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3649
3687
  let baseOptions;
@@ -3651,24 +3689,164 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3651
3689
  baseOptions = configuration.baseOptions;
3652
3690
  }
3653
3691
 
3654
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3692
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3655
3693
  const localVarHeaderParameter = {} as any;
3656
3694
  const localVarQueryParameter = {} as any;
3657
3695
 
3696
+ if (place !== undefined) {
3697
+ localVarQueryParameter['place'] = place;
3698
+ }
3699
+
3658
3700
 
3659
3701
 
3660
- localVarHeaderParameter['Content-Type'] = 'application/json';
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
+
3661
3736
 
3737
+
3662
3738
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3663
3739
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3664
3740
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3665
- localVarRequestOptions.data = serializeDataIfNeeded(appleVerificationPayloadDTO, localVarRequestOptions, configuration)
3666
3741
 
3667
3742
  return {
3668
3743
  url: toPathString(localVarUrlObj),
3669
3744
  options: localVarRequestOptions,
3670
3745
  };
3671
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
+
3844
+ /**
3845
+ * OAuthApi - axios parameter creator
3846
+ * @export
3847
+ */
3848
+ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
3849
+ return {
3672
3850
  /**
3673
3851
  *
3674
3852
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3749,18 +3927,6 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3749
3927
  export const OAuthApiFp = function(configuration?: Configuration) {
3750
3928
  const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
3751
3929
  return {
3752
- /**
3753
- *
3754
- * @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
3755
- * @param {*} [options] Override http request option.
3756
- * @throws {RequiredError}
3757
- */
3758
- async oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppleOAuthResponseDTO>> {
3759
- const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options);
3760
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3761
- const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateAppleToken']?.[localVarOperationServerIndex]?.url;
3762
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3763
- },
3764
3930
  /**
3765
3931
  *
3766
3932
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3795,15 +3961,6 @@ export const OAuthApiFp = function(configuration?: Configuration) {
3795
3961
  export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3796
3962
  const localVarFp = OAuthApiFp(configuration)
3797
3963
  return {
3798
- /**
3799
- *
3800
- * @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
3801
- * @param {*} [options] Override http request option.
3802
- * @throws {RequiredError}
3803
- */
3804
- oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<AppleOAuthResponseDTO> {
3805
- return localVarFp.oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
3806
- },
3807
3964
  /**
3808
3965
  *
3809
3966
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3832,17 +3989,6 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
3832
3989
  * @extends {BaseAPI}
3833
3990
  */
3834
3991
  export class OAuthApi extends BaseAPI {
3835
- /**
3836
- *
3837
- * @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
3838
- * @param {*} [options] Override http request option.
3839
- * @throws {RequiredError}
3840
- * @memberof OAuthApi
3841
- */
3842
- public oAuthControllerValidateAppleToken(appleVerificationPayloadDTO: AppleVerificationPayloadDTO, options?: RawAxiosRequestConfig) {
3843
- return OAuthApiFp(this.configuration).oAuthControllerValidateAppleToken(appleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
3844
- }
3845
-
3846
3992
  /**
3847
3993
  *
3848
3994
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.12-alpha",
3
+ "version": "1.1.12-alpha-1",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},