@gooday_corp/gooday-api-client 1.1.10 → 1.1.11

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 +711 -132
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -195,12 +195,6 @@ export interface BusinessEntity {
195
195
  * @memberof BusinessEntity
196
196
  */
197
197
  'venues'?: Array<object>;
198
- /**
199
- * Business Verification Document
200
- * @type {string}
201
- * @memberof BusinessEntity
202
- */
203
- 'verificationDoc'?: string;
204
198
  /**
205
199
  * Business Type
206
200
  * @type {string}
@@ -208,39 +202,32 @@ export interface BusinessEntity {
208
202
  */
209
203
  'businessType'?: string;
210
204
  /**
211
- * Business Category
212
- * @type {Array<string>}
213
- * @memberof BusinessEntity
214
- */
215
- 'businessCategory'?: Array<string>;
216
- /**
217
- * Business Employee
205
+ * User Id
218
206
  * @type {string}
219
207
  * @memberof BusinessEntity
220
208
  */
221
- 'numberOfEmployees'?: string;
209
+ 'userId'?: string;
222
210
  /**
223
- * Business Type
211
+ * Business Category
224
212
  * @type {string}
225
213
  * @memberof BusinessEntity
226
214
  */
227
- 'priceRange'?: string;
215
+ 'businessCategory'?: string;
228
216
  /**
229
- * Business Account Confirmation
217
+ * Business verification status
230
218
  * @type {string}
231
219
  * @memberof BusinessEntity
232
220
  */
233
- 'isVerifiedFromAdmin'?: BusinessEntityIsVerifiedFromAdminEnum;
221
+ 'status': BusinessEntityStatusEnum;
234
222
  }
235
223
 
236
- export const BusinessEntityIsVerifiedFromAdminEnum = {
237
- ApplicationSubmitted: 'application_submitted',
238
- UnderVerification: 'under_verification',
239
- PaymentProcessing: 'payment_processing',
240
- Completed: 'completed'
224
+ export const BusinessEntityStatusEnum = {
225
+ Verified: 'VERIFIED',
226
+ Pending: 'PENDING',
227
+ QuoteRequested: 'QUOTE_REQUESTED'
241
228
  } as const;
242
229
 
243
- export type BusinessEntityIsVerifiedFromAdminEnum = typeof BusinessEntityIsVerifiedFromAdminEnum[keyof typeof BusinessEntityIsVerifiedFromAdminEnum];
230
+ export type BusinessEntityStatusEnum = typeof BusinessEntityStatusEnum[keyof typeof BusinessEntityStatusEnum];
244
231
 
245
232
  /**
246
233
  *
@@ -259,13 +246,7 @@ export interface BusinessOnBoardingDTO {
259
246
  * @type {Array<BusinessVenueDTO>}
260
247
  * @memberof BusinessOnBoardingDTO
261
248
  */
262
- 'venue'?: Array<BusinessVenueDTO>;
263
- /**
264
- *
265
- * @type {string}
266
- * @memberof BusinessOnBoardingDTO
267
- */
268
- 'verificationDoc'?: string;
249
+ 'venues'?: Array<BusinessVenueDTO>;
269
250
  /**
270
251
  * Business policies
271
252
  * @type {string}
@@ -298,28 +279,16 @@ export interface BusinessOnBoardingDTO {
298
279
  'businessType'?: string;
299
280
  /**
300
281
  * Business Category
301
- * @type {Array<string>}
302
- * @memberof BusinessOnBoardingDTO
303
- */
304
- 'businessCategory'?: Array<string>;
305
- /**
306
- * Business Employee
307
282
  * @type {string}
308
283
  * @memberof BusinessOnBoardingDTO
309
284
  */
310
- 'numberOfEmployees'?: string;
285
+ 'businessCategory'?: string;
311
286
  /**
312
287
  * Assistant ID
313
288
  * @type {string}
314
289
  * @memberof BusinessOnBoardingDTO
315
290
  */
316
291
  'assistant'?: string;
317
- /**
318
- * Business Type
319
- * @type {string}
320
- * @memberof BusinessOnBoardingDTO
321
- */
322
- 'priceRange'?: string;
323
292
  }
324
293
  /**
325
294
  *
@@ -482,32 +451,16 @@ export interface BusinessVerificationResponse {
482
451
  /**
483
452
  *
484
453
  * @export
485
- * @interface BusinessVerifiedDTO
454
+ * @interface CalendarAccessDTO
486
455
  */
487
- export interface BusinessVerifiedDTO {
488
- /**
489
- * User Id
490
- * @type {string}
491
- * @memberof BusinessVerifiedDTO
492
- */
493
- 'user'?: string;
456
+ export interface CalendarAccessDTO {
494
457
  /**
495
- * Business Account Confirmation
458
+ * authorizationCode
496
459
  * @type {string}
497
- * @memberof BusinessVerifiedDTO
460
+ * @memberof CalendarAccessDTO
498
461
  */
499
- 'isVerifiedFromAdmin'?: BusinessVerifiedDTOIsVerifiedFromAdminEnum;
462
+ 'authorizationCode': string;
500
463
  }
501
-
502
- export const BusinessVerifiedDTOIsVerifiedFromAdminEnum = {
503
- ApplicationSubmitted: 'application_submitted',
504
- UnderVerification: 'under_verification',
505
- PaymentProcessing: 'payment_processing',
506
- Completed: 'completed'
507
- } as const;
508
-
509
- export type BusinessVerifiedDTOIsVerifiedFromAdminEnum = typeof BusinessVerifiedDTOIsVerifiedFromAdminEnum[keyof typeof BusinessVerifiedDTOIsVerifiedFromAdminEnum];
510
-
511
464
  /**
512
465
  *
513
466
  * @export
@@ -552,6 +505,43 @@ export interface CategoryListResponse {
552
505
  */
553
506
  'data': Array<CategoryEntity>;
554
507
  }
508
+ /**
509
+ *
510
+ * @export
511
+ * @interface CreatePaymentLinkDTO
512
+ */
513
+ export interface CreatePaymentLinkDTO {
514
+ /**
515
+ * Currency in which the payment is made
516
+ * @type {string}
517
+ * @memberof CreatePaymentLinkDTO
518
+ */
519
+ 'currency': string;
520
+ /**
521
+ * Recurring interval for the payment
522
+ * @type {string}
523
+ * @memberof CreatePaymentLinkDTO
524
+ */
525
+ 'interval': string;
526
+ /**
527
+ * Amount to be charged in the smallest currency unit (e.g., cents for USD)
528
+ * @type {number}
529
+ * @memberof CreatePaymentLinkDTO
530
+ */
531
+ 'amount': number;
532
+ /**
533
+ * Name of the product or service for which payment is being made
534
+ * @type {string}
535
+ * @memberof CreatePaymentLinkDTO
536
+ */
537
+ 'name': string;
538
+ /**
539
+ * User Id
540
+ * @type {string}
541
+ * @memberof CreatePaymentLinkDTO
542
+ */
543
+ 'user': string;
544
+ }
555
545
  /**
556
546
  *
557
547
  * @export
@@ -773,6 +763,89 @@ export interface GoogleVerificationPayloadDTO {
773
763
  */
774
764
  'token': string;
775
765
  }
766
+ /**
767
+ *
768
+ * @export
769
+ * @interface IntegrationEntity
770
+ */
771
+ export interface IntegrationEntity {
772
+ /**
773
+ * Unique identifier for the user
774
+ * @type {string}
775
+ * @memberof IntegrationEntity
776
+ */
777
+ 'user': string;
778
+ /**
779
+ * Status of the Integration
780
+ * @type {boolean}
781
+ * @memberof IntegrationEntity
782
+ */
783
+ 'isActive': boolean;
784
+ /**
785
+ * refreshToken
786
+ * @type {string}
787
+ * @memberof IntegrationEntity
788
+ */
789
+ 'refreshToken': string;
790
+ /**
791
+ * Token
792
+ * @type {string}
793
+ * @memberof IntegrationEntity
794
+ */
795
+ 'token': string;
796
+ /**
797
+ * Unique identifier for the user
798
+ * @type {string}
799
+ * @memberof IntegrationEntity
800
+ */
801
+ 'integrationType': IntegrationEntityIntegrationTypeEnum;
802
+ }
803
+
804
+ export const IntegrationEntityIntegrationTypeEnum = {
805
+ Google: 'google',
806
+ Microsoft: 'microsoft'
807
+ } as const;
808
+
809
+ export type IntegrationEntityIntegrationTypeEnum = typeof IntegrationEntityIntegrationTypeEnum[keyof typeof IntegrationEntityIntegrationTypeEnum];
810
+
811
+ /**
812
+ *
813
+ * @export
814
+ * @interface IntegrationResponse
815
+ */
816
+ export interface IntegrationResponse {
817
+ /**
818
+ * Status code of the response
819
+ * @type {number}
820
+ * @memberof IntegrationResponse
821
+ */
822
+ 'statusCode': number;
823
+ /**
824
+ * Integration response
825
+ * @type {IntegrationEntity}
826
+ * @memberof IntegrationResponse
827
+ */
828
+ 'data': IntegrationEntity;
829
+ }
830
+ /**
831
+ *
832
+ * @export
833
+ * @interface IntegrationsResponse
834
+ */
835
+ export interface IntegrationsResponse {
836
+ /**
837
+ * Status code of the response
838
+ * @type {number}
839
+ * @memberof IntegrationsResponse
840
+ */
841
+ 'statusCode': number;
842
+ /**
843
+ * Integration response
844
+ * @type {Array<IntegrationEntity>}
845
+ * @memberof IntegrationsResponse
846
+ */
847
+ 'data': Array<IntegrationEntity>;
848
+ }
776
849
  /**
777
850
  *
778
851
  * @export
@@ -805,6 +878,25 @@ export interface LoggedOutResponse {
805
878
  */
806
879
  'message': string;
807
880
  }
881
+ /**
882
+ *
883
+ * @export
884
+ * @interface MicrosoftCalendarAccessDTO
885
+ */
886
+ export interface MicrosoftCalendarAccessDTO {
887
+ /**
888
+ * accessToken
889
+ * @type {string}
890
+ * @memberof MicrosoftCalendarAccessDTO
891
+ */
892
+ 'accessToken': string;
893
+ /**
894
+ * refreshToken
895
+ * @type {string}
896
+ * @memberof MicrosoftCalendarAccessDTO
897
+ */
898
+ 'refreshToken': string;
899
+ }
808
900
  /**
809
901
  *
810
902
  * @export
@@ -942,6 +1034,12 @@ export interface PlanEntity {
942
1034
  * @memberof PlanEntity
943
1035
  */
944
1036
  'description': string;
1037
+ /**
1038
+ *
1039
+ * @type {string}
1040
+ * @memberof PlanEntity
1041
+ */
1042
+ 'currency': string;
945
1043
  /**
946
1044
  * Array of features included in the plan
947
1045
  * @type {Array<PlanFeature>}
@@ -1298,6 +1396,50 @@ export interface SkillDto {
1298
1396
  */
1299
1397
  'weightage': number;
1300
1398
  }
1399
+ /**
1400
+ *
1401
+ * @export
1402
+ * @interface StripPaymentDTO
1403
+ */
1404
+ export interface StripPaymentDTO {
1405
+ /**
1406
+ * Strip Customer ID
1407
+ * @type {string}
1408
+ * @memberof StripPaymentDTO
1409
+ */
1410
+ 'customerId': string;
1411
+ /**
1412
+ * Strip ephemeral Key
1413
+ * @type {string}
1414
+ * @memberof StripPaymentDTO
1415
+ */
1416
+ 'ephemeralKey': string;
1417
+ /**
1418
+ * Strip ClientSecret
1419
+ * @type {string}
1420
+ * @memberof StripPaymentDTO
1421
+ */
1422
+ 'clientSecret': string;
1423
+ }
1424
+ /**
1425
+ *
1426
+ * @export
1427
+ * @interface StripePaymentIntentResponseDTO
1428
+ */
1429
+ export interface StripePaymentIntentResponseDTO {
1430
+ /**
1431
+ * statuscCode
1432
+ * @type {number}
1433
+ * @memberof StripePaymentIntentResponseDTO
1434
+ */
1435
+ 'statusCode': number;
1436
+ /**
1437
+ * Strip Intent Data
1438
+ * @type {StripPaymentDTO}
1439
+ * @memberof StripePaymentIntentResponseDTO
1440
+ */
1441
+ 'data': StripPaymentDTO;
1442
+ }
1301
1443
  /**
1302
1444
  *
1303
1445
  * @export
@@ -1379,7 +1521,7 @@ export interface UserEntity {
1379
1521
  }
1380
1522
 
1381
1523
  export const UserEntityRoleEnum = {
1382
- BusinessOwner: 'business_owner',
1524
+ Business: 'business',
1383
1525
  User: 'user'
1384
1526
  } as const;
1385
1527
 
@@ -2326,14 +2468,11 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2326
2468
  },
2327
2469
  /**
2328
2470
  *
2329
- * @param {BusinessVerifiedDTO} businessVerifiedDTO
2330
2471
  * @param {*} [options] Override http request option.
2331
2472
  * @throws {RequiredError}
2332
2473
  */
2333
- businessControllerBusinessVerified: async (businessVerifiedDTO: BusinessVerifiedDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2334
- // verify required parameter 'businessVerifiedDTO' is not null or undefined
2335
- assertParamExists('businessControllerBusinessVerified', 'businessVerifiedDTO', businessVerifiedDTO)
2336
- const localVarPath = `/v1/business/verified`;
2474
+ businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2475
+ const localVarPath = `/v1/business/me`;
2337
2476
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2338
2477
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2339
2478
  let baseOptions;
@@ -2341,7 +2480,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2341
2480
  baseOptions = configuration.baseOptions;
2342
2481
  }
2343
2482
 
2344
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2483
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2345
2484
  const localVarHeaderParameter = {} as any;
2346
2485
  const localVarQueryParameter = {} as any;
2347
2486
 
@@ -2351,12 +2490,9 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2351
2490
 
2352
2491
 
2353
2492
 
2354
- localVarHeaderParameter['Content-Type'] = 'application/json';
2355
-
2356
2493
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2357
2494
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2358
2495
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2359
- localVarRequestOptions.data = serializeDataIfNeeded(businessVerifiedDTO, localVarRequestOptions, configuration)
2360
2496
 
2361
2497
  return {
2362
2498
  url: toPathString(localVarUrlObj),
@@ -2368,8 +2504,8 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2368
2504
  * @param {*} [options] Override http request option.
2369
2505
  * @throws {RequiredError}
2370
2506
  */
2371
- businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2372
- const localVarPath = `/v1/business/me`;
2507
+ businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2508
+ const localVarPath = `/business`;
2373
2509
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2374
2510
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2375
2511
  let baseOptions;
@@ -2381,10 +2517,6 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
2381
2517
  const localVarHeaderParameter = {} as any;
2382
2518
  const localVarQueryParameter = {} as any;
2383
2519
 
2384
- // authentication bearer required
2385
- // http bearer authentication required
2386
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
2387
-
2388
2520
 
2389
2521
 
2390
2522
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2556,14 +2688,13 @@ export const BusinessApiFp = function(configuration?: Configuration) {
2556
2688
  },
2557
2689
  /**
2558
2690
  *
2559
- * @param {BusinessVerifiedDTO} businessVerifiedDTO
2560
2691
  * @param {*} [options] Override http request option.
2561
2692
  * @throws {RequiredError}
2562
2693
  */
2563
- async businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2564
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessVerified(businessVerifiedDTO, options);
2694
+ async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2695
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
2565
2696
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2566
- const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessVerified']?.[localVarOperationServerIndex]?.url;
2697
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
2567
2698
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2568
2699
  },
2569
2700
  /**
@@ -2571,10 +2702,10 @@ export const BusinessApiFp = function(configuration?: Configuration) {
2571
2702
  * @param {*} [options] Override http request option.
2572
2703
  * @throws {RequiredError}
2573
2704
  */
2574
- async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
2575
- const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
2705
+ async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
2576
2707
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2577
- const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
2708
+ const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
2578
2709
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2579
2710
  },
2580
2711
  /**
@@ -2643,20 +2774,19 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
2643
2774
  },
2644
2775
  /**
2645
2776
  *
2646
- * @param {BusinessVerifiedDTO} businessVerifiedDTO
2647
2777
  * @param {*} [options] Override http request option.
2648
2778
  * @throws {RequiredError}
2649
2779
  */
2650
- businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
2651
- return localVarFp.businessControllerBusinessVerified(businessVerifiedDTO, options).then((request) => request(axios, basePath));
2780
+ businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
2781
+ return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
2652
2782
  },
2653
2783
  /**
2654
2784
  *
2655
2785
  * @param {*} [options] Override http request option.
2656
2786
  * @throws {RequiredError}
2657
2787
  */
2658
- businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
2659
- return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
2788
+ businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<void> {
2789
+ return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
2660
2790
  },
2661
2791
  /**
2662
2792
  *
@@ -2714,13 +2844,12 @@ export class BusinessApi extends BaseAPI {
2714
2844
 
2715
2845
  /**
2716
2846
  *
2717
- * @param {BusinessVerifiedDTO} businessVerifiedDTO
2718
2847
  * @param {*} [options] Override http request option.
2719
2848
  * @throws {RequiredError}
2720
2849
  * @memberof BusinessApi
2721
2850
  */
2722
- public businessControllerBusinessVerified(businessVerifiedDTO: BusinessVerifiedDTO, options?: RawAxiosRequestConfig) {
2723
- return BusinessApiFp(this.configuration).businessControllerBusinessVerified(businessVerifiedDTO, options).then((request) => request(this.axios, this.basePath));
2851
+ public businessControllerGetMe(options?: RawAxiosRequestConfig) {
2852
+ return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
2724
2853
  }
2725
2854
 
2726
2855
  /**
@@ -2729,8 +2858,8 @@ export class BusinessApi extends BaseAPI {
2729
2858
  * @throws {RequiredError}
2730
2859
  * @memberof BusinessApi
2731
2860
  */
2732
- public businessControllerGetMe(options?: RawAxiosRequestConfig) {
2733
- return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
2861
+ public businessControllerListBusinesses(options?: RawAxiosRequestConfig) {
2862
+ return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
2734
2863
  }
2735
2864
 
2736
2865
  /**
@@ -3212,21 +3341,54 @@ export class GoalsApi extends BaseAPI {
3212
3341
 
3213
3342
 
3214
3343
  /**
3215
- * OAuthApi - axios parameter creator
3344
+ * IntegrationApi - axios parameter creator
3216
3345
  * @export
3217
3346
  */
3218
- export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
3347
+ export const IntegrationApiAxiosParamCreator = function (configuration?: Configuration) {
3219
3348
  return {
3220
3349
  /**
3221
3350
  *
3222
- * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3223
3351
  * @param {*} [options] Override http request option.
3224
3352
  * @throws {RequiredError}
3225
3353
  */
3226
- oAuthControllerValidateGoogleToken: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3227
- // verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
3228
- assertParamExists('oAuthControllerValidateGoogleToken', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
3229
- const localVarPath = `/v1/oauth/google`;
3354
+ integrationControllerFetchIntegration: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3355
+ const localVarPath = `/v1/calendar`;
3356
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3357
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3358
+ let baseOptions;
3359
+ if (configuration) {
3360
+ baseOptions = configuration.baseOptions;
3361
+ }
3362
+
3363
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3364
+ const localVarHeaderParameter = {} as any;
3365
+ const localVarQueryParameter = {} as any;
3366
+
3367
+ // authentication bearer required
3368
+ // http bearer authentication required
3369
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3370
+
3371
+
3372
+
3373
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3375
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3376
+
3377
+ return {
3378
+ url: toPathString(localVarUrlObj),
3379
+ options: localVarRequestOptions,
3380
+ };
3381
+ },
3382
+ /**
3383
+ *
3384
+ * @param {CalendarAccessDTO} calendarAccessDTO
3385
+ * @param {*} [options] Override http request option.
3386
+ * @throws {RequiredError}
3387
+ */
3388
+ integrationControllerGoogleCalendarAccess: async (calendarAccessDTO: CalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3389
+ // verify required parameter 'calendarAccessDTO' is not null or undefined
3390
+ assertParamExists('integrationControllerGoogleCalendarAccess', 'calendarAccessDTO', calendarAccessDTO)
3391
+ const localVarPath = `/v1/calendar/google`;
3230
3392
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3231
3393
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3232
3394
  let baseOptions;
@@ -3238,6 +3400,10 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3238
3400
  const localVarHeaderParameter = {} as any;
3239
3401
  const localVarQueryParameter = {} as any;
3240
3402
 
3403
+ // authentication bearer required
3404
+ // http bearer authentication required
3405
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3406
+
3241
3407
 
3242
3408
 
3243
3409
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -3245,7 +3411,7 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3245
3411
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3246
3412
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3247
3413
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3248
- localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
3414
+ localVarRequestOptions.data = serializeDataIfNeeded(calendarAccessDTO, localVarRequestOptions, configuration)
3249
3415
 
3250
3416
  return {
3251
3417
  url: toPathString(localVarUrlObj),
@@ -3254,14 +3420,14 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3254
3420
  },
3255
3421
  /**
3256
3422
  *
3257
- * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3423
+ * @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
3258
3424
  * @param {*} [options] Override http request option.
3259
3425
  * @throws {RequiredError}
3260
3426
  */
3261
- oAuthControllerValidateGoogleTokenBusiness: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3262
- // verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
3263
- assertParamExists('oAuthControllerValidateGoogleTokenBusiness', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
3264
- const localVarPath = `/v1/oauth/google/business`;
3427
+ integrationControllerMicrosoftCalendar: async (microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3428
+ // verify required parameter 'microsoftCalendarAccessDTO' is not null or undefined
3429
+ assertParamExists('integrationControllerMicrosoftCalendar', 'microsoftCalendarAccessDTO', microsoftCalendarAccessDTO)
3430
+ const localVarPath = `/v1/calendar/microsoft`;
3265
3431
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3266
3432
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3267
3433
  let baseOptions;
@@ -3273,6 +3439,10 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3273
3439
  const localVarHeaderParameter = {} as any;
3274
3440
  const localVarQueryParameter = {} as any;
3275
3441
 
3442
+ // authentication bearer required
3443
+ // http bearer authentication required
3444
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3445
+
3276
3446
 
3277
3447
 
3278
3448
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -3280,7 +3450,7 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3280
3450
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3281
3451
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3282
3452
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3283
- localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
3453
+ localVarRequestOptions.data = serializeDataIfNeeded(microsoftCalendarAccessDTO, localVarRequestOptions, configuration)
3284
3454
 
3285
3455
  return {
3286
3456
  url: toPathString(localVarUrlObj),
@@ -3291,62 +3461,264 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
3291
3461
  };
3292
3462
 
3293
3463
  /**
3294
- * OAuthApi - functional programming interface
3464
+ * IntegrationApi - functional programming interface
3295
3465
  * @export
3296
3466
  */
3297
- export const OAuthApiFp = function(configuration?: Configuration) {
3298
- const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
3467
+ export const IntegrationApiFp = function(configuration?: Configuration) {
3468
+ const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration)
3299
3469
  return {
3300
3470
  /**
3301
3471
  *
3302
- * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3303
3472
  * @param {*} [options] Override http request option.
3304
3473
  * @throws {RequiredError}
3305
3474
  */
3306
- async oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
3307
- const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options);
3475
+ async integrationControllerFetchIntegration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
3476
+ const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerFetchIntegration(options);
3308
3477
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3309
- const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleToken']?.[localVarOperationServerIndex]?.url;
3478
+ const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerFetchIntegration']?.[localVarOperationServerIndex]?.url;
3310
3479
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3311
3480
  },
3312
3481
  /**
3313
3482
  *
3314
- * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3483
+ * @param {CalendarAccessDTO} calendarAccessDTO
3315
3484
  * @param {*} [options] Override http request option.
3316
3485
  * @throws {RequiredError}
3317
3486
  */
3318
- async oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
3319
- const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO, options);
3487
+ async integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
3488
+ const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerGoogleCalendarAccess(calendarAccessDTO, options);
3320
3489
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3321
- const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleTokenBusiness']?.[localVarOperationServerIndex]?.url;
3490
+ const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerGoogleCalendarAccess']?.[localVarOperationServerIndex]?.url;
3491
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3492
+ },
3493
+ /**
3494
+ *
3495
+ * @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
3496
+ * @param {*} [options] Override http request option.
3497
+ * @throws {RequiredError}
3498
+ */
3499
+ async integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
3500
+ const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options);
3501
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3502
+ const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerMicrosoftCalendar']?.[localVarOperationServerIndex]?.url;
3322
3503
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3323
3504
  },
3324
3505
  }
3325
3506
  };
3326
3507
 
3327
3508
  /**
3328
- * OAuthApi - factory interface
3509
+ * IntegrationApi - factory interface
3329
3510
  * @export
3330
3511
  */
3331
- export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3332
- const localVarFp = OAuthApiFp(configuration)
3512
+ export const IntegrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3513
+ const localVarFp = IntegrationApiFp(configuration)
3333
3514
  return {
3334
3515
  /**
3335
3516
  *
3336
- * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3337
3517
  * @param {*} [options] Override http request option.
3338
3518
  * @throws {RequiredError}
3339
3519
  */
3340
- oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
3341
- return localVarFp.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
3520
+ integrationControllerFetchIntegration(options?: RawAxiosRequestConfig): AxiosPromise<IntegrationsResponse> {
3521
+ return localVarFp.integrationControllerFetchIntegration(options).then((request) => request(axios, basePath));
3342
3522
  },
3343
3523
  /**
3344
3524
  *
3345
- * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3525
+ * @param {CalendarAccessDTO} calendarAccessDTO
3346
3526
  * @param {*} [options] Override http request option.
3347
3527
  * @throws {RequiredError}
3348
3528
  */
3349
- oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
3529
+ integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
3530
+ return localVarFp.integrationControllerGoogleCalendarAccess(calendarAccessDTO, options).then((request) => request(axios, basePath));
3531
+ },
3532
+ /**
3533
+ *
3534
+ * @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
3535
+ * @param {*} [options] Override http request option.
3536
+ * @throws {RequiredError}
3537
+ */
3538
+ integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
3539
+ return localVarFp.integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options).then((request) => request(axios, basePath));
3540
+ },
3541
+ };
3542
+ };
3543
+
3544
+ /**
3545
+ * IntegrationApi - object-oriented interface
3546
+ * @export
3547
+ * @class IntegrationApi
3548
+ * @extends {BaseAPI}
3549
+ */
3550
+ export class IntegrationApi extends BaseAPI {
3551
+ /**
3552
+ *
3553
+ * @param {*} [options] Override http request option.
3554
+ * @throws {RequiredError}
3555
+ * @memberof IntegrationApi
3556
+ */
3557
+ public integrationControllerFetchIntegration(options?: RawAxiosRequestConfig) {
3558
+ return IntegrationApiFp(this.configuration).integrationControllerFetchIntegration(options).then((request) => request(this.axios, this.basePath));
3559
+ }
3560
+
3561
+ /**
3562
+ *
3563
+ * @param {CalendarAccessDTO} calendarAccessDTO
3564
+ * @param {*} [options] Override http request option.
3565
+ * @throws {RequiredError}
3566
+ * @memberof IntegrationApi
3567
+ */
3568
+ public integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig) {
3569
+ return IntegrationApiFp(this.configuration).integrationControllerGoogleCalendarAccess(calendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
3570
+ }
3571
+
3572
+ /**
3573
+ *
3574
+ * @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
3575
+ * @param {*} [options] Override http request option.
3576
+ * @throws {RequiredError}
3577
+ * @memberof IntegrationApi
3578
+ */
3579
+ public integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig) {
3580
+ return IntegrationApiFp(this.configuration).integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
3581
+ }
3582
+ }
3583
+
3584
+
3585
+
3586
+ /**
3587
+ * OAuthApi - axios parameter creator
3588
+ * @export
3589
+ */
3590
+ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
3591
+ return {
3592
+ /**
3593
+ *
3594
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3595
+ * @param {*} [options] Override http request option.
3596
+ * @throws {RequiredError}
3597
+ */
3598
+ oAuthControllerValidateGoogleToken: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3599
+ // verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
3600
+ assertParamExists('oAuthControllerValidateGoogleToken', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
3601
+ const localVarPath = `/v1/oauth/google`;
3602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3603
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3604
+ let baseOptions;
3605
+ if (configuration) {
3606
+ baseOptions = configuration.baseOptions;
3607
+ }
3608
+
3609
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3610
+ const localVarHeaderParameter = {} as any;
3611
+ const localVarQueryParameter = {} as any;
3612
+
3613
+
3614
+
3615
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3616
+
3617
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3618
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3619
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3620
+ localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
3621
+
3622
+ return {
3623
+ url: toPathString(localVarUrlObj),
3624
+ options: localVarRequestOptions,
3625
+ };
3626
+ },
3627
+ /**
3628
+ *
3629
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3630
+ * @param {*} [options] Override http request option.
3631
+ * @throws {RequiredError}
3632
+ */
3633
+ oAuthControllerValidateGoogleTokenBusiness: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3634
+ // verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
3635
+ assertParamExists('oAuthControllerValidateGoogleTokenBusiness', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
3636
+ const localVarPath = `/v1/oauth/google/business`;
3637
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3638
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3639
+ let baseOptions;
3640
+ if (configuration) {
3641
+ baseOptions = configuration.baseOptions;
3642
+ }
3643
+
3644
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3645
+ const localVarHeaderParameter = {} as any;
3646
+ const localVarQueryParameter = {} as any;
3647
+
3648
+
3649
+
3650
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3651
+
3652
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3653
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3654
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3655
+ localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
3656
+
3657
+ return {
3658
+ url: toPathString(localVarUrlObj),
3659
+ options: localVarRequestOptions,
3660
+ };
3661
+ },
3662
+ }
3663
+ };
3664
+
3665
+ /**
3666
+ * OAuthApi - functional programming interface
3667
+ * @export
3668
+ */
3669
+ export const OAuthApiFp = function(configuration?: Configuration) {
3670
+ const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
3671
+ return {
3672
+ /**
3673
+ *
3674
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3675
+ * @param {*} [options] Override http request option.
3676
+ * @throws {RequiredError}
3677
+ */
3678
+ async oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
3679
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options);
3680
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3681
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleToken']?.[localVarOperationServerIndex]?.url;
3682
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3683
+ },
3684
+ /**
3685
+ *
3686
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3687
+ * @param {*} [options] Override http request option.
3688
+ * @throws {RequiredError}
3689
+ */
3690
+ async oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
3691
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO, options);
3692
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3693
+ const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleTokenBusiness']?.[localVarOperationServerIndex]?.url;
3694
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3695
+ },
3696
+ }
3697
+ };
3698
+
3699
+ /**
3700
+ * OAuthApi - factory interface
3701
+ * @export
3702
+ */
3703
+ export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3704
+ const localVarFp = OAuthApiFp(configuration)
3705
+ return {
3706
+ /**
3707
+ *
3708
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3709
+ * @param {*} [options] Override http request option.
3710
+ * @throws {RequiredError}
3711
+ */
3712
+ oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
3713
+ return localVarFp.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
3714
+ },
3715
+ /**
3716
+ *
3717
+ * @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
3718
+ * @param {*} [options] Override http request option.
3719
+ * @throws {RequiredError}
3720
+ */
3721
+ oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
3350
3722
  return localVarFp.oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
3351
3723
  },
3352
3724
  };
@@ -3390,13 +3762,88 @@ export class OAuthApi extends BaseAPI {
3390
3762
  */
3391
3763
  export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
3392
3764
  return {
3765
+ /**
3766
+ *
3767
+ * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
3768
+ * @param {*} [options] Override http request option.
3769
+ * @throws {RequiredError}
3770
+ */
3771
+ paymentControllerCreatePaymentLink: async (createPaymentLinkDTO: CreatePaymentLinkDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3772
+ // verify required parameter 'createPaymentLinkDTO' is not null or undefined
3773
+ assertParamExists('paymentControllerCreatePaymentLink', 'createPaymentLinkDTO', createPaymentLinkDTO)
3774
+ const localVarPath = `/v1/payment/payment-link`;
3775
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3776
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3777
+ let baseOptions;
3778
+ if (configuration) {
3779
+ baseOptions = configuration.baseOptions;
3780
+ }
3781
+
3782
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3783
+ const localVarHeaderParameter = {} as any;
3784
+ const localVarQueryParameter = {} as any;
3785
+
3786
+
3787
+
3788
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3789
+
3790
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3792
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3793
+ localVarRequestOptions.data = serializeDataIfNeeded(createPaymentLinkDTO, localVarRequestOptions, configuration)
3794
+
3795
+ return {
3796
+ url: toPathString(localVarUrlObj),
3797
+ options: localVarRequestOptions,
3798
+ };
3799
+ },
3800
+ /**
3801
+ *
3802
+ * @param {string} planId Strip Plan ID
3803
+ * @param {*} [options] Override http request option.
3804
+ * @throws {RequiredError}
3805
+ */
3806
+ paymentControllerGetPaymentSecretForIntent: async (planId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3807
+ // verify required parameter 'planId' is not null or undefined
3808
+ assertParamExists('paymentControllerGetPaymentSecretForIntent', 'planId', planId)
3809
+ const localVarPath = `/v1/payment/payment-secret-for-intent`;
3810
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3811
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3812
+ let baseOptions;
3813
+ if (configuration) {
3814
+ baseOptions = configuration.baseOptions;
3815
+ }
3816
+
3817
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3818
+ const localVarHeaderParameter = {} as any;
3819
+ const localVarQueryParameter = {} as any;
3820
+
3821
+ // authentication bearer required
3822
+ // http bearer authentication required
3823
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3824
+
3825
+ if (planId !== undefined) {
3826
+ localVarQueryParameter['planId'] = planId;
3827
+ }
3828
+
3829
+
3830
+
3831
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3832
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3833
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3834
+
3835
+ return {
3836
+ url: toPathString(localVarUrlObj),
3837
+ options: localVarRequestOptions,
3838
+ };
3839
+ },
3393
3840
  /**
3394
3841
  *
3395
3842
  * @param {*} [options] Override http request option.
3396
3843
  * @throws {RequiredError}
3397
3844
  */
3398
3845
  paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3399
- const localVarPath = `/v1/plans`;
3846
+ const localVarPath = `/v1/payment/plans`;
3400
3847
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3401
3848
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3402
3849
  let baseOptions;
@@ -3410,6 +3857,42 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
3410
3857
 
3411
3858
 
3412
3859
 
3860
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3862
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3863
+
3864
+ return {
3865
+ url: toPathString(localVarUrlObj),
3866
+ options: localVarRequestOptions,
3867
+ };
3868
+ },
3869
+ /**
3870
+ *
3871
+ * @param {string} stripeSignature
3872
+ * @param {*} [options] Override http request option.
3873
+ * @throws {RequiredError}
3874
+ */
3875
+ paymentControllerStripeWebhook: async (stripeSignature: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3876
+ // verify required parameter 'stripeSignature' is not null or undefined
3877
+ assertParamExists('paymentControllerStripeWebhook', 'stripeSignature', stripeSignature)
3878
+ const localVarPath = `/v1/payment/stripe-webhook`;
3879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3880
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3881
+ let baseOptions;
3882
+ if (configuration) {
3883
+ baseOptions = configuration.baseOptions;
3884
+ }
3885
+
3886
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3887
+ const localVarHeaderParameter = {} as any;
3888
+ const localVarQueryParameter = {} as any;
3889
+
3890
+ if (stripeSignature != null) {
3891
+ localVarHeaderParameter['stripe-signature'] = String(stripeSignature);
3892
+ }
3893
+
3894
+
3895
+
3413
3896
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3414
3897
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3415
3898
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3429,6 +3912,30 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
3429
3912
  export const PlansApiFp = function(configuration?: Configuration) {
3430
3913
  const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
3431
3914
  return {
3915
+ /**
3916
+ *
3917
+ * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
3918
+ * @param {*} [options] Override http request option.
3919
+ * @throws {RequiredError}
3920
+ */
3921
+ async paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3922
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options);
3923
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3924
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreatePaymentLink']?.[localVarOperationServerIndex]?.url;
3925
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3926
+ },
3927
+ /**
3928
+ *
3929
+ * @param {string} planId Strip Plan ID
3930
+ * @param {*} [options] Override http request option.
3931
+ * @throws {RequiredError}
3932
+ */
3933
+ async paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePaymentIntentResponseDTO>> {
3934
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPaymentSecretForIntent(planId, options);
3935
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3936
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPaymentSecretForIntent']?.[localVarOperationServerIndex]?.url;
3937
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3938
+ },
3432
3939
  /**
3433
3940
  *
3434
3941
  * @param {*} [options] Override http request option.
@@ -3440,6 +3947,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
3440
3947
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
3441
3948
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3442
3949
  },
3950
+ /**
3951
+ *
3952
+ * @param {string} stripeSignature
3953
+ * @param {*} [options] Override http request option.
3954
+ * @throws {RequiredError}
3955
+ */
3956
+ async paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerStripeWebhook(stripeSignature, options);
3958
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3959
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerStripeWebhook']?.[localVarOperationServerIndex]?.url;
3960
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3961
+ },
3443
3962
  }
3444
3963
  };
3445
3964
 
@@ -3450,6 +3969,24 @@ export const PlansApiFp = function(configuration?: Configuration) {
3450
3969
  export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3451
3970
  const localVarFp = PlansApiFp(configuration)
3452
3971
  return {
3972
+ /**
3973
+ *
3974
+ * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
3975
+ * @param {*} [options] Override http request option.
3976
+ * @throws {RequiredError}
3977
+ */
3978
+ paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3979
+ return localVarFp.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(axios, basePath));
3980
+ },
3981
+ /**
3982
+ *
3983
+ * @param {string} planId Strip Plan ID
3984
+ * @param {*} [options] Override http request option.
3985
+ * @throws {RequiredError}
3986
+ */
3987
+ paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<StripePaymentIntentResponseDTO> {
3988
+ return localVarFp.paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(axios, basePath));
3989
+ },
3453
3990
  /**
3454
3991
  *
3455
3992
  * @param {*} [options] Override http request option.
@@ -3458,6 +3995,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
3458
3995
  paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
3459
3996
  return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
3460
3997
  },
3998
+ /**
3999
+ *
4000
+ * @param {string} stripeSignature
4001
+ * @param {*} [options] Override http request option.
4002
+ * @throws {RequiredError}
4003
+ */
4004
+ paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
4005
+ return localVarFp.paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(axios, basePath));
4006
+ },
3461
4007
  };
3462
4008
  };
3463
4009
 
@@ -3468,6 +4014,28 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
3468
4014
  * @extends {BaseAPI}
3469
4015
  */
3470
4016
  export class PlansApi extends BaseAPI {
4017
+ /**
4018
+ *
4019
+ * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
4020
+ * @param {*} [options] Override http request option.
4021
+ * @throws {RequiredError}
4022
+ * @memberof PlansApi
4023
+ */
4024
+ public paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig) {
4025
+ return PlansApiFp(this.configuration).paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(this.axios, this.basePath));
4026
+ }
4027
+
4028
+ /**
4029
+ *
4030
+ * @param {string} planId Strip Plan ID
4031
+ * @param {*} [options] Override http request option.
4032
+ * @throws {RequiredError}
4033
+ * @memberof PlansApi
4034
+ */
4035
+ public paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig) {
4036
+ return PlansApiFp(this.configuration).paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(this.axios, this.basePath));
4037
+ }
4038
+
3471
4039
  /**
3472
4040
  *
3473
4041
  * @param {*} [options] Override http request option.
@@ -3477,6 +4045,17 @@ export class PlansApi extends BaseAPI {
3477
4045
  public paymentControllerGetPlans(options?: RawAxiosRequestConfig) {
3478
4046
  return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
3479
4047
  }
4048
+
4049
+ /**
4050
+ *
4051
+ * @param {string} stripeSignature
4052
+ * @param {*} [options] Override http request option.
4053
+ * @throws {RequiredError}
4054
+ * @memberof PlansApi
4055
+ */
4056
+ public paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig) {
4057
+ return PlansApiFp(this.configuration).paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(this.axios, this.basePath));
4058
+ }
3480
4059
  }
3481
4060
 
3482
4061
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},