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

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 +91 -237
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -60,6 +60,50 @@ 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
+ }
63
107
  /**
64
108
  *
65
109
  * @export
@@ -411,10 +455,10 @@ export interface BusinessVenueDTO {
411
455
  'priceRange': string;
412
456
  /**
413
457
  *
414
- * @type {LocationDTO}
458
+ * @type {string}
415
459
  * @memberof BusinessVenueDTO
416
460
  */
417
- 'location': LocationDTO;
461
+ 'location': string;
418
462
  }
419
463
  /**
420
464
  *
@@ -738,7 +782,7 @@ export interface GoalListResponse {
738
782
  */
739
783
  export interface GoogleOAuthResponseDTO {
740
784
  /**
741
- * statuscCode
785
+ * statusCode
742
786
  * @type {number}
743
787
  * @memberof GoogleOAuthResponseDTO
744
788
  */
@@ -803,7 +847,8 @@ export interface IntegrationEntity {
803
847
 
804
848
  export const IntegrationEntityIntegrationTypeEnum = {
805
849
  Google: 'google',
806
- Microsoft: 'microsoft'
850
+ Microsoft: 'microsoft',
851
+ Apple: 'apple'
807
852
  } as const;
808
853
 
809
854
  export type IntegrationEntityIntegrationTypeEnum = typeof IntegrationEntityIntegrationTypeEnum[keyof typeof IntegrationEntityIntegrationTypeEnum];
@@ -846,70 +891,6 @@ export interface IntegrationsResponse {
846
891
  */
847
892
  'data': Array<IntegrationEntity>;
848
893
  }
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
- }
913
894
  /**
914
895
  *
915
896
  * @export
@@ -1074,25 +1055,6 @@ export interface OnBoardingResponseDTO {
1074
1055
  */
1075
1056
  'data': UserEntity;
1076
1057
  }
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
- }
1096
1058
  /**
1097
1059
  *
1098
1060
  * @export
@@ -3667,21 +3629,21 @@ export class IntegrationApi extends BaseAPI {
3667
3629
 
3668
3630
 
3669
3631
  /**
3670
- * LocationApi - axios parameter creator
3632
+ * OAuthApi - axios parameter creator
3671
3633
  * @export
3672
3634
  */
3673
- export const LocationApiAxiosParamCreator = function (configuration?: Configuration) {
3635
+ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
3674
3636
  return {
3675
3637
  /**
3676
3638
  *
3677
- * @param {string} place
3639
+ * @param {AppleVerificationPayloadDTO} appleVerificationPayloadDTO
3678
3640
  * @param {*} [options] Override http request option.
3679
3641
  * @throws {RequiredError}
3680
3642
  */
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`;
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`;
3685
3647
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3686
3648
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3687
3649
  let baseOptions;
@@ -3689,164 +3651,24 @@ export const LocationApiAxiosParamCreator = function (configuration?: Configurat
3689
3651
  baseOptions = configuration.baseOptions;
3690
3652
  }
3691
3653
 
3692
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3654
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3693
3655
  const localVarHeaderParameter = {} as any;
3694
3656
  const localVarQueryParameter = {} as any;
3695
3657
 
3696
- if (place !== undefined) {
3697
- localVarQueryParameter['place'] = place;
3698
- }
3699
-
3700
3658
 
3701
3659
 
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
-
3660
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3736
3661
 
3737
-
3738
3662
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3739
3663
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3740
3664
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3665
+ localVarRequestOptions.data = serializeDataIfNeeded(appleVerificationPayloadDTO, localVarRequestOptions, configuration)
3741
3666
 
3742
3667
  return {
3743
3668
  url: toPathString(localVarUrlObj),
3744
3669
  options: localVarRequestOptions,
3745
3670
  };
3746
3671
  },
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 {
3850
3672
  /**
3851
3673
  *
3852
3674
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3927,6 +3749,18 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3927
3749
  export const OAuthApiFp = function(configuration?: Configuration) {
3928
3750
  const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
3929
3751
  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
+ },
3930
3764
  /**
3931
3765
  *
3932
3766
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3961,6 +3795,15 @@ export const OAuthApiFp = function(configuration?: Configuration) {
3961
3795
  export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3962
3796
  const localVarFp = OAuthApiFp(configuration)
3963
3797
  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
+ },
3964
3807
  /**
3965
3808
  *
3966
3809
  * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
@@ -3989,6 +3832,17 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
3989
3832
  * @extends {BaseAPI}
3990
3833
  */
3991
3834
  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
+
3992
3846
  /**
3993
3847
  *
3994
3848
  * @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-1",
3
+ "version": "1.1.12-beta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},