@gooday_corp/gooday-api-client 1.1.10-delta → 1.1.10-geta
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.
- package/api.ts +115 -15
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -827,6 +827,25 @@ export interface IntegrationResponse {
|
|
|
827
827
|
*/
|
|
828
828
|
'data': IntegrationEntity;
|
|
829
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
|
+
}
|
|
830
849
|
/**
|
|
831
850
|
*
|
|
832
851
|
* @export
|
|
@@ -859,6 +878,25 @@ export interface LoggedOutResponse {
|
|
|
859
878
|
*/
|
|
860
879
|
'message': string;
|
|
861
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
|
+
}
|
|
862
900
|
/**
|
|
863
901
|
*
|
|
864
902
|
* @export
|
|
@@ -1483,7 +1521,7 @@ export interface UserEntity {
|
|
|
1483
1521
|
}
|
|
1484
1522
|
|
|
1485
1523
|
export const UserEntityRoleEnum = {
|
|
1486
|
-
|
|
1524
|
+
Business: 'business',
|
|
1487
1525
|
User: 'user'
|
|
1488
1526
|
} as const;
|
|
1489
1527
|
|
|
@@ -3308,6 +3346,39 @@ export class GoalsApi extends BaseAPI {
|
|
|
3308
3346
|
*/
|
|
3309
3347
|
export const IntegrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3310
3348
|
return {
|
|
3349
|
+
/**
|
|
3350
|
+
*
|
|
3351
|
+
* @param {*} [options] Override http request option.
|
|
3352
|
+
* @throws {RequiredError}
|
|
3353
|
+
*/
|
|
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
|
+
},
|
|
3311
3382
|
/**
|
|
3312
3383
|
*
|
|
3313
3384
|
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
@@ -3349,13 +3420,13 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
3349
3420
|
},
|
|
3350
3421
|
/**
|
|
3351
3422
|
*
|
|
3352
|
-
* @param {
|
|
3423
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3353
3424
|
* @param {*} [options] Override http request option.
|
|
3354
3425
|
* @throws {RequiredError}
|
|
3355
3426
|
*/
|
|
3356
|
-
integrationControllerMicrosoftCalendar: async (
|
|
3357
|
-
// verify required parameter '
|
|
3358
|
-
assertParamExists('integrationControllerMicrosoftCalendar', '
|
|
3427
|
+
integrationControllerMicrosoftCalendar: async (microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3428
|
+
// verify required parameter 'microsoftCalendarAccessDTO' is not null or undefined
|
|
3429
|
+
assertParamExists('integrationControllerMicrosoftCalendar', 'microsoftCalendarAccessDTO', microsoftCalendarAccessDTO)
|
|
3359
3430
|
const localVarPath = `/v1/calendar/microsoft`;
|
|
3360
3431
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3361
3432
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3379,7 +3450,7 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
3379
3450
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3380
3451
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3381
3452
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3382
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3453
|
+
localVarRequestOptions.data = serializeDataIfNeeded(microsoftCalendarAccessDTO, localVarRequestOptions, configuration)
|
|
3383
3454
|
|
|
3384
3455
|
return {
|
|
3385
3456
|
url: toPathString(localVarUrlObj),
|
|
@@ -3396,6 +3467,17 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
3396
3467
|
export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
3397
3468
|
const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration)
|
|
3398
3469
|
return {
|
|
3470
|
+
/**
|
|
3471
|
+
*
|
|
3472
|
+
* @param {*} [options] Override http request option.
|
|
3473
|
+
* @throws {RequiredError}
|
|
3474
|
+
*/
|
|
3475
|
+
async integrationControllerFetchIntegration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationsResponse>> {
|
|
3476
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerFetchIntegration(options);
|
|
3477
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3478
|
+
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerFetchIntegration']?.[localVarOperationServerIndex]?.url;
|
|
3479
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3480
|
+
},
|
|
3399
3481
|
/**
|
|
3400
3482
|
*
|
|
3401
3483
|
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
@@ -3410,12 +3492,12 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
3410
3492
|
},
|
|
3411
3493
|
/**
|
|
3412
3494
|
*
|
|
3413
|
-
* @param {
|
|
3495
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3414
3496
|
* @param {*} [options] Override http request option.
|
|
3415
3497
|
* @throws {RequiredError}
|
|
3416
3498
|
*/
|
|
3417
|
-
async integrationControllerMicrosoftCalendar(
|
|
3418
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerMicrosoftCalendar(
|
|
3499
|
+
async integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
|
|
3500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options);
|
|
3419
3501
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3420
3502
|
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerMicrosoftCalendar']?.[localVarOperationServerIndex]?.url;
|
|
3421
3503
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3430,6 +3512,14 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
3430
3512
|
export const IntegrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3431
3513
|
const localVarFp = IntegrationApiFp(configuration)
|
|
3432
3514
|
return {
|
|
3515
|
+
/**
|
|
3516
|
+
*
|
|
3517
|
+
* @param {*} [options] Override http request option.
|
|
3518
|
+
* @throws {RequiredError}
|
|
3519
|
+
*/
|
|
3520
|
+
integrationControllerFetchIntegration(options?: RawAxiosRequestConfig): AxiosPromise<IntegrationsResponse> {
|
|
3521
|
+
return localVarFp.integrationControllerFetchIntegration(options).then((request) => request(axios, basePath));
|
|
3522
|
+
},
|
|
3433
3523
|
/**
|
|
3434
3524
|
*
|
|
3435
3525
|
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
@@ -3441,12 +3531,12 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
3441
3531
|
},
|
|
3442
3532
|
/**
|
|
3443
3533
|
*
|
|
3444
|
-
* @param {
|
|
3534
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3445
3535
|
* @param {*} [options] Override http request option.
|
|
3446
3536
|
* @throws {RequiredError}
|
|
3447
3537
|
*/
|
|
3448
|
-
integrationControllerMicrosoftCalendar(
|
|
3449
|
-
return localVarFp.integrationControllerMicrosoftCalendar(
|
|
3538
|
+
integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
|
|
3539
|
+
return localVarFp.integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options).then((request) => request(axios, basePath));
|
|
3450
3540
|
},
|
|
3451
3541
|
};
|
|
3452
3542
|
};
|
|
@@ -3458,6 +3548,16 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
3458
3548
|
* @extends {BaseAPI}
|
|
3459
3549
|
*/
|
|
3460
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
|
+
|
|
3461
3561
|
/**
|
|
3462
3562
|
*
|
|
3463
3563
|
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
@@ -3471,13 +3571,13 @@ export class IntegrationApi extends BaseAPI {
|
|
|
3471
3571
|
|
|
3472
3572
|
/**
|
|
3473
3573
|
*
|
|
3474
|
-
* @param {
|
|
3574
|
+
* @param {MicrosoftCalendarAccessDTO} microsoftCalendarAccessDTO
|
|
3475
3575
|
* @param {*} [options] Override http request option.
|
|
3476
3576
|
* @throws {RequiredError}
|
|
3477
3577
|
* @memberof IntegrationApi
|
|
3478
3578
|
*/
|
|
3479
|
-
public integrationControllerMicrosoftCalendar(
|
|
3480
|
-
return IntegrationApiFp(this.configuration).integrationControllerMicrosoftCalendar(
|
|
3579
|
+
public integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO: MicrosoftCalendarAccessDTO, options?: RawAxiosRequestConfig) {
|
|
3580
|
+
return IntegrationApiFp(this.configuration).integrationControllerMicrosoftCalendar(microsoftCalendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3481
3581
|
}
|
|
3482
3582
|
}
|
|
3483
3583
|
|