@gooday_corp/gooday-api-client 1.1.12-beta → 1.1.12-beta-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.
Files changed (2) hide show
  1. package/api.ts +274 -93
  2. package/package.json +1 -1
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
@@ -235,10 +191,10 @@ export interface BusinessEntity {
235
191
  'businessCountry'?: string;
236
192
  /**
237
193
  * Business Venue
238
- * @type {Array<object>}
194
+ * @type {Array<BusinessVenueDTO>}
239
195
  * @memberof BusinessEntity
240
196
  */
241
- 'venues'?: Array<object>;
197
+ 'venues'?: Array<BusinessVenueDTO>;
242
198
  /**
243
199
  * Business Type
244
200
  * @type {string}
@@ -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,95 @@ 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
+ * @type {LocationMetaDTO}
889
+ * @memberof LocationDTO
890
+ */
891
+ 'meta': LocationMetaDTO;
892
+ }
893
+
894
+ export const LocationDTOTypeEnum = {
895
+ Point: 'Point'
896
+ } as const;
897
+
898
+ export type LocationDTOTypeEnum = typeof LocationDTOTypeEnum[keyof typeof LocationDTOTypeEnum];
899
+
900
+ /**
901
+ *
902
+ * @export
903
+ * @interface LocationEntityResponse
904
+ */
905
+ export interface LocationEntityResponse {
906
+ /**
907
+ * statusCode
908
+ * @type {number}
909
+ * @memberof LocationEntityResponse
910
+ */
911
+ 'statusCode': number;
912
+ /**
913
+ * Location places
914
+ * @type {Array<Places>}
915
+ * @memberof LocationEntityResponse
916
+ */
917
+ 'data': Array<Places>;
918
+ }
919
+ /**
920
+ *
921
+ * @export
922
+ * @interface LocationMetaDTO
923
+ */
924
+ export interface LocationMetaDTO {
925
+ /**
926
+ *
927
+ * @type {string}
928
+ * @memberof LocationMetaDTO
929
+ */
930
+ 'label'?: string;
931
+ /**
932
+ *
933
+ * @type {string}
934
+ * @memberof LocationMetaDTO
935
+ */
936
+ 'shortLabel': string;
937
+ }
894
938
  /**
895
939
  *
896
940
  * @export
@@ -1055,6 +1099,25 @@ export interface OnBoardingResponseDTO {
1055
1099
  */
1056
1100
  'data': UserEntity;
1057
1101
  }
1102
+ /**
1103
+ *
1104
+ * @export
1105
+ * @interface Places
1106
+ */
1107
+ export interface Places {
1108
+ /**
1109
+ *
1110
+ * @type {string}
1111
+ * @memberof Places
1112
+ */
1113
+ 'label': string;
1114
+ /**
1115
+ *
1116
+ * @type {string}
1117
+ * @memberof Places
1118
+ */
1119
+ 'value': string;
1120
+ }
1058
1121
  /**
1059
1122
  *
1060
1123
  * @export
@@ -3629,21 +3692,24 @@ export class IntegrationApi extends BaseAPI {
3629
3692
 
3630
3693
 
3631
3694
  /**
3632
- * OAuthApi - axios parameter creator
3695
+ * LocationApi - axios parameter creator
3633
3696
  * @export
3634
3697
  */
3635
- export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
3698
+ export const LocationApiAxiosParamCreator = function (configuration?: Configuration) {
3636
3699
  return {
3637
3700
  /**
3638
3701
  *
3639
- * @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
3702
+ * @param {string} place
3703
+ * @param {string} label
3640
3704
  * @param {*} [options] Override http request option.
3641
3705
  * @throws {RequiredError}
3642
3706
  */
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`;
3707
+ locationControllerFetchCoordinates: async (place: string, label: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3708
+ // verify required parameter 'place' is not null or undefined
3709
+ assertParamExists('locationControllerFetchCoordinates', 'place', place)
3710
+ // verify required parameter 'label' is not null or undefined
3711
+ assertParamExists('locationControllerFetchCoordinates', 'label', label)
3712
+ const localVarPath = `/v1/locations-coordinates`;
3647
3713
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3648
3714
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3649
3715
  let baseOptions;
@@ -3651,24 +3717,171 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3651
3717
  baseOptions = configuration.baseOptions;
3652
3718
  }
3653
3719
 
3654
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3720
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3655
3721
  const localVarHeaderParameter = {} as any;
3656
3722
  const localVarQueryParameter = {} as any;
3657
3723
 
3724
+ if (place !== undefined) {
3725
+ localVarQueryParameter['place'] = place;
3726
+ }
3727
+
3728
+ if (label !== undefined) {
3729
+ localVarQueryParameter['label'] = label;
3730
+ }
3731
+
3658
3732
 
3659
3733
 
3660
- localVarHeaderParameter['Content-Type'] = 'application/json';
3734
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3736
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3661
3737
 
3738
+ return {
3739
+ url: toPathString(localVarUrlObj),
3740
+ options: localVarRequestOptions,
3741
+ };
3742
+ },
3743
+ /**
3744
+ *
3745
+ * @param {string} place
3746
+ * @param {*} [options] Override http request option.
3747
+ * @throws {RequiredError}
3748
+ */
3749
+ locationControllerFetchLocations: async (place: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3750
+ // verify required parameter 'place' is not null or undefined
3751
+ assertParamExists('locationControllerFetchLocations', 'place', place)
3752
+ const localVarPath = `/v1/locations`;
3753
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3754
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3755
+ let baseOptions;
3756
+ if (configuration) {
3757
+ baseOptions = configuration.baseOptions;
3758
+ }
3759
+
3760
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3761
+ const localVarHeaderParameter = {} as any;
3762
+ const localVarQueryParameter = {} as any;
3763
+
3764
+ if (place !== undefined) {
3765
+ localVarQueryParameter['place'] = place;
3766
+ }
3767
+
3768
+
3769
+
3662
3770
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3663
3771
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3664
3772
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3665
- localVarRequestOptions.data = serializeDataIfNeeded(appleVerificationPayloadDTO, localVarRequestOptions, configuration)
3666
3773
 
3667
3774
  return {
3668
3775
  url: toPathString(localVarUrlObj),
3669
3776
  options: localVarRequestOptions,
3670
3777
  };
3671
3778
  },
3779
+ }
3780
+ };
3781
+
3782
+ /**
3783
+ * LocationApi - functional programming interface
3784
+ * @export
3785
+ */
3786
+ export const LocationApiFp = function(configuration?: Configuration) {
3787
+ const localVarAxiosParamCreator = LocationApiAxiosParamCreator(configuration)
3788
+ return {
3789
+ /**
3790
+ *
3791
+ * @param {string} place
3792
+ * @param {string} label
3793
+ * @param {*} [options] Override http request option.
3794
+ * @throws {RequiredError}
3795
+ */
3796
+ async locationControllerFetchCoordinates(place: string, label: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LocationCoordinatesResponse>> {
3797
+ const localVarAxiosArgs = await localVarAxiosParamCreator.locationControllerFetchCoordinates(place, label, options);
3798
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3799
+ const localVarOperationServerBasePath = operationServerMap['LocationApi.locationControllerFetchCoordinates']?.[localVarOperationServerIndex]?.url;
3800
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3801
+ },
3802
+ /**
3803
+ *
3804
+ * @param {string} place
3805
+ * @param {*} [options] Override http request option.
3806
+ * @throws {RequiredError}
3807
+ */
3808
+ async locationControllerFetchLocations(place: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LocationEntityResponse>> {
3809
+ const localVarAxiosArgs = await localVarAxiosParamCreator.locationControllerFetchLocations(place, options);
3810
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3811
+ const localVarOperationServerBasePath = operationServerMap['LocationApi.locationControllerFetchLocations']?.[localVarOperationServerIndex]?.url;
3812
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3813
+ },
3814
+ }
3815
+ };
3816
+
3817
+ /**
3818
+ * LocationApi - factory interface
3819
+ * @export
3820
+ */
3821
+ export const LocationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3822
+ const localVarFp = LocationApiFp(configuration)
3823
+ return {
3824
+ /**
3825
+ *
3826
+ * @param {string} place
3827
+ * @param {string} label
3828
+ * @param {*} [options] Override http request option.
3829
+ * @throws {RequiredError}
3830
+ */
3831
+ locationControllerFetchCoordinates(place: string, label: string, options?: RawAxiosRequestConfig): AxiosPromise<LocationCoordinatesResponse> {
3832
+ return localVarFp.locationControllerFetchCoordinates(place, label, options).then((request) => request(axios, basePath));
3833
+ },
3834
+ /**
3835
+ *
3836
+ * @param {string} place
3837
+ * @param {*} [options] Override http request option.
3838
+ * @throws {RequiredError}
3839
+ */
3840
+ locationControllerFetchLocations(place: string, options?: RawAxiosRequestConfig): AxiosPromise<LocationEntityResponse> {
3841
+ return localVarFp.locationControllerFetchLocations(place, options).then((request) => request(axios, basePath));
3842
+ },
3843
+ };
3844
+ };
3845
+
3846
+ /**
3847
+ * LocationApi - object-oriented interface
3848
+ * @export
3849
+ * @class LocationApi
3850
+ * @extends {BaseAPI}
3851
+ */
3852
+ export class LocationApi extends BaseAPI {
3853
+ /**
3854
+ *
3855
+ * @param {string} place
3856
+ * @param {string} label
3857
+ * @param {*} [options] Override http request option.
3858
+ * @throws {RequiredError}
3859
+ * @memberof LocationApi
3860
+ */
3861
+ public locationControllerFetchCoordinates(place: string, label: string, options?: RawAxiosRequestConfig) {
3862
+ return LocationApiFp(this.configuration).locationControllerFetchCoordinates(place, label, options).then((request) => request(this.axios, this.basePath));
3863
+ }
3864
+
3865
+ /**
3866
+ *
3867
+ * @param {string} place
3868
+ * @param {*} [options] Override http request option.
3869
+ * @throws {RequiredError}
3870
+ * @memberof LocationApi
3871
+ */
3872
+ public locationControllerFetchLocations(place: string, options?: RawAxiosRequestConfig) {
3873
+ return LocationApiFp(this.configuration).locationControllerFetchLocations(place, options).then((request) => request(this.axios, this.basePath));
3874
+ }
3875
+ }
3876
+
3877
+
3878
+
3879
+ /**
3880
+ * OAuthApi - axios parameter creator
3881
+ * @export
3882
+ */
3883
+ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
3884
+ return {
3672
3885
  /**
3673
3886
  *
3674
3887
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3749,18 +3962,6 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3749
3962
  export const OAuthApiFp = function(configuration?: Configuration) {
3750
3963
  const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
3751
3964
  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
3965
  /**
3765
3966
  *
3766
3967
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3795,15 +3996,6 @@ export const OAuthApiFp = function(configuration?: Configuration) {
3795
3996
  export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3796
3997
  const localVarFp = OAuthApiFp(configuration)
3797
3998
  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
3999
  /**
3808
4000
  *
3809
4001
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3832,17 +4024,6 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
3832
4024
  * @extends {BaseAPI}
3833
4025
  */
3834
4026
  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
4027
  /**
3847
4028
  *
3848
4029
  * @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-beta",
3
+ "version": "1.1.12-beta-1",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},