@gooday_corp/gooday-api-client 1.1.9 → 1.1.10-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 +258 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -508,6 +508,19 @@ export const BusinessVerifiedDTOIsVerifiedFromAdminEnum = {
508
508
 
509
509
  export type BusinessVerifiedDTOIsVerifiedFromAdminEnum = typeof BusinessVerifiedDTOIsVerifiedFromAdminEnum[keyof typeof BusinessVerifiedDTOIsVerifiedFromAdminEnum];
510
510
 
511
+ /**
512
+ *
513
+ * @export
514
+ * @interface CalendarAccessDTO
515
+ */
516
+ export interface CalendarAccessDTO {
517
+ /**
518
+ * authorizationCode
519
+ * @type {string}
520
+ * @memberof CalendarAccessDTO
521
+ */
522
+ 'authorizationCode': string;
523
+ }
511
524
  /**
512
525
  *
513
526
  * @export
@@ -773,6 +786,70 @@ export interface GoogleVerificationPayloadDTO {
773
786
  */
774
787
  'token': string;
775
788
  }
789
+ /**
790
+ *
791
+ * @export
792
+ * @interface IntegrationEntity
793
+ */
794
+ export interface IntegrationEntity {
795
+ /**
796
+ * Unique identifier for the user
797
+ * @type {string}
798
+ * @memberof IntegrationEntity
799
+ */
800
+ 'user': string;
801
+ /**
802
+ * Status of the Integration
803
+ * @type {boolean}
804
+ * @memberof IntegrationEntity
805
+ */
806
+ 'isActive': boolean;
807
+ /**
808
+ * refreshToken
809
+ * @type {string}
810
+ * @memberof IntegrationEntity
811
+ */
812
+ 'refreshToken': string;
813
+ /**
814
+ * Token
815
+ * @type {string}
816
+ * @memberof IntegrationEntity
817
+ */
818
+ 'token': string;
819
+ /**
820
+ * Unique identifier for the user
821
+ * @type {string}
822
+ * @memberof IntegrationEntity
823
+ */
824
+ 'integrationType': IntegrationEntityIntegrationTypeEnum;
825
+ }
826
+
827
+ export const IntegrationEntityIntegrationTypeEnum = {
828
+ Google: 'google',
829
+ Microsoft: 'microsoft'
830
+ } as const;
831
+
832
+ export type IntegrationEntityIntegrationTypeEnum = typeof IntegrationEntityIntegrationTypeEnum[keyof typeof IntegrationEntityIntegrationTypeEnum];
833
+
834
+ /**
835
+ *
836
+ * @export
837
+ * @interface IntegrationResponse
838
+ */
839
+ export interface IntegrationResponse {
840
+ /**
841
+ * Status code of the response
842
+ * @type {number}
843
+ * @memberof IntegrationResponse
844
+ */
845
+ 'statusCode': number;
846
+ /**
847
+ * Integration response
848
+ * @type {IntegrationEntity}
849
+ * @memberof IntegrationResponse
850
+ */
851
+ 'data': IntegrationEntity;
852
+ }
776
853
  /**
777
854
  *
778
855
  * @export
@@ -3211,6 +3288,187 @@ export class GoalsApi extends BaseAPI {
3211
3288
 
3212
3289
 
3213
3290
 
3291
+ /**
3292
+ * IntegrationApi - axios parameter creator
3293
+ * @export
3294
+ */
3295
+ export const IntegrationApiAxiosParamCreator = function (configuration?: Configuration) {
3296
+ return {
3297
+ /**
3298
+ *
3299
+ * @param {CalendarAccessDTO} calendarAccessDTO
3300
+ * @param {*} [options] Override http request option.
3301
+ * @throws {RequiredError}
3302
+ */
3303
+ integrationControllerGoogleCalendarAccess: async (calendarAccessDTO: CalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3304
+ // verify required parameter 'calendarAccessDTO' is not null or undefined
3305
+ assertParamExists('integrationControllerGoogleCalendarAccess', 'calendarAccessDTO', calendarAccessDTO)
3306
+ const localVarPath = `/v1/calendar/google`;
3307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3308
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3309
+ let baseOptions;
3310
+ if (configuration) {
3311
+ baseOptions = configuration.baseOptions;
3312
+ }
3313
+
3314
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3315
+ const localVarHeaderParameter = {} as any;
3316
+ const localVarQueryParameter = {} as any;
3317
+
3318
+ // authentication bearer required
3319
+ // http bearer authentication required
3320
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3321
+
3322
+
3323
+
3324
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3325
+
3326
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3327
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3328
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3329
+ localVarRequestOptions.data = serializeDataIfNeeded(calendarAccessDTO, localVarRequestOptions, configuration)
3330
+
3331
+ return {
3332
+ url: toPathString(localVarUrlObj),
3333
+ options: localVarRequestOptions,
3334
+ };
3335
+ },
3336
+ /**
3337
+ *
3338
+ * @param {CalendarAccessDTO} calendarAccessDTO
3339
+ * @param {*} [options] Override http request option.
3340
+ * @throws {RequiredError}
3341
+ */
3342
+ integrationControllerMicrosoftCalendar: async (calendarAccessDTO: CalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3343
+ // verify required parameter 'calendarAccessDTO' is not null or undefined
3344
+ assertParamExists('integrationControllerMicrosoftCalendar', 'calendarAccessDTO', calendarAccessDTO)
3345
+ const localVarPath = `/v1/calendar/microsoft`;
3346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3347
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3348
+ let baseOptions;
3349
+ if (configuration) {
3350
+ baseOptions = configuration.baseOptions;
3351
+ }
3352
+
3353
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3354
+ const localVarHeaderParameter = {} as any;
3355
+ const localVarQueryParameter = {} as any;
3356
+
3357
+ // authentication bearer required
3358
+ // http bearer authentication required
3359
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3360
+
3361
+
3362
+
3363
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3364
+
3365
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3367
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3368
+ localVarRequestOptions.data = serializeDataIfNeeded(calendarAccessDTO, localVarRequestOptions, configuration)
3369
+
3370
+ return {
3371
+ url: toPathString(localVarUrlObj),
3372
+ options: localVarRequestOptions,
3373
+ };
3374
+ },
3375
+ }
3376
+ };
3377
+
3378
+ /**
3379
+ * IntegrationApi - functional programming interface
3380
+ * @export
3381
+ */
3382
+ export const IntegrationApiFp = function(configuration?: Configuration) {
3383
+ const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration)
3384
+ return {
3385
+ /**
3386
+ *
3387
+ * @param {CalendarAccessDTO} calendarAccessDTO
3388
+ * @param {*} [options] Override http request option.
3389
+ * @throws {RequiredError}
3390
+ */
3391
+ async integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
3392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerGoogleCalendarAccess(calendarAccessDTO, options);
3393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3394
+ const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerGoogleCalendarAccess']?.[localVarOperationServerIndex]?.url;
3395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3396
+ },
3397
+ /**
3398
+ *
3399
+ * @param {CalendarAccessDTO} calendarAccessDTO
3400
+ * @param {*} [options] Override http request option.
3401
+ * @throws {RequiredError}
3402
+ */
3403
+ async integrationControllerMicrosoftCalendar(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
3404
+ const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerMicrosoftCalendar(calendarAccessDTO, options);
3405
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3406
+ const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerMicrosoftCalendar']?.[localVarOperationServerIndex]?.url;
3407
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3408
+ },
3409
+ }
3410
+ };
3411
+
3412
+ /**
3413
+ * IntegrationApi - factory interface
3414
+ * @export
3415
+ */
3416
+ export const IntegrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3417
+ const localVarFp = IntegrationApiFp(configuration)
3418
+ return {
3419
+ /**
3420
+ *
3421
+ * @param {CalendarAccessDTO} calendarAccessDTO
3422
+ * @param {*} [options] Override http request option.
3423
+ * @throws {RequiredError}
3424
+ */
3425
+ integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
3426
+ return localVarFp.integrationControllerGoogleCalendarAccess(calendarAccessDTO, options).then((request) => request(axios, basePath));
3427
+ },
3428
+ /**
3429
+ *
3430
+ * @param {CalendarAccessDTO} calendarAccessDTO
3431
+ * @param {*} [options] Override http request option.
3432
+ * @throws {RequiredError}
3433
+ */
3434
+ integrationControllerMicrosoftCalendar(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
3435
+ return localVarFp.integrationControllerMicrosoftCalendar(calendarAccessDTO, options).then((request) => request(axios, basePath));
3436
+ },
3437
+ };
3438
+ };
3439
+
3440
+ /**
3441
+ * IntegrationApi - object-oriented interface
3442
+ * @export
3443
+ * @class IntegrationApi
3444
+ * @extends {BaseAPI}
3445
+ */
3446
+ export class IntegrationApi extends BaseAPI {
3447
+ /**
3448
+ *
3449
+ * @param {CalendarAccessDTO} calendarAccessDTO
3450
+ * @param {*} [options] Override http request option.
3451
+ * @throws {RequiredError}
3452
+ * @memberof IntegrationApi
3453
+ */
3454
+ public integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig) {
3455
+ return IntegrationApiFp(this.configuration).integrationControllerGoogleCalendarAccess(calendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
3456
+ }
3457
+
3458
+ /**
3459
+ *
3460
+ * @param {CalendarAccessDTO} calendarAccessDTO
3461
+ * @param {*} [options] Override http request option.
3462
+ * @throws {RequiredError}
3463
+ * @memberof IntegrationApi
3464
+ */
3465
+ public integrationControllerMicrosoftCalendar(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig) {
3466
+ return IntegrationApiFp(this.configuration).integrationControllerMicrosoftCalendar(calendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
3467
+ }
3468
+ }
3469
+
3470
+
3471
+
3214
3472
  /**
3215
3473
  * OAuthApi - axios parameter creator
3216
3474
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.1.9",
3
+ "version": "1.1.10-beta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},