@gooday_corp/gooday-api-client 1.2.50 → 1.2.51
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 +544 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2466,6 +2466,12 @@ export interface CreateEventPayload {
|
|
|
2466
2466
|
* @memberof CreateEventPayload
|
|
2467
2467
|
*/
|
|
2468
2468
|
'location': LocationDTO;
|
|
2469
|
+
/**
|
|
2470
|
+
* Event images
|
|
2471
|
+
* @type {Array<string>}
|
|
2472
|
+
* @memberof CreateEventPayload
|
|
2473
|
+
*/
|
|
2474
|
+
'images': Array<string>;
|
|
2469
2475
|
}
|
|
2470
2476
|
/**
|
|
2471
2477
|
*
|
|
@@ -3193,6 +3199,25 @@ export interface FindFriendsFavoritesDTO {
|
|
|
3193
3199
|
*/
|
|
3194
3200
|
'limit'?: number;
|
|
3195
3201
|
}
|
|
3202
|
+
/**
|
|
3203
|
+
*
|
|
3204
|
+
* @export
|
|
3205
|
+
* @interface FindHistoryResponseDTO
|
|
3206
|
+
*/
|
|
3207
|
+
export interface FindHistoryResponseDTO {
|
|
3208
|
+
/**
|
|
3209
|
+
* statusCode
|
|
3210
|
+
* @type {number}
|
|
3211
|
+
* @memberof FindHistoryResponseDTO
|
|
3212
|
+
*/
|
|
3213
|
+
'statusCode': number;
|
|
3214
|
+
/**
|
|
3215
|
+
* Waitlist response
|
|
3216
|
+
* @type {Array<HistoryEntity>}
|
|
3217
|
+
* @memberof FindHistoryResponseDTO
|
|
3218
|
+
*/
|
|
3219
|
+
'data': Array<HistoryEntity>;
|
|
3220
|
+
}
|
|
3196
3221
|
/**
|
|
3197
3222
|
*
|
|
3198
3223
|
* @export
|
|
@@ -3544,6 +3569,103 @@ export interface HelpCenterPayloadDTO {
|
|
|
3544
3569
|
*/
|
|
3545
3570
|
'email': string;
|
|
3546
3571
|
}
|
|
3572
|
+
/**
|
|
3573
|
+
*
|
|
3574
|
+
* @export
|
|
3575
|
+
* @interface HistoryEntity
|
|
3576
|
+
*/
|
|
3577
|
+
export interface HistoryEntity {
|
|
3578
|
+
/**
|
|
3579
|
+
* Unique identifier for the history
|
|
3580
|
+
* @type {string}
|
|
3581
|
+
* @memberof HistoryEntity
|
|
3582
|
+
*/
|
|
3583
|
+
'_id': string;
|
|
3584
|
+
/**
|
|
3585
|
+
*
|
|
3586
|
+
* @type {string}
|
|
3587
|
+
* @memberof HistoryEntity
|
|
3588
|
+
*/
|
|
3589
|
+
'action': string;
|
|
3590
|
+
/**
|
|
3591
|
+
*
|
|
3592
|
+
* @type {BusinessStaffEntity}
|
|
3593
|
+
* @memberof HistoryEntity
|
|
3594
|
+
*/
|
|
3595
|
+
'staff': BusinessStaffEntity;
|
|
3596
|
+
/**
|
|
3597
|
+
*
|
|
3598
|
+
* @type {string}
|
|
3599
|
+
* @memberof HistoryEntity
|
|
3600
|
+
*/
|
|
3601
|
+
'time': string;
|
|
3602
|
+
/**
|
|
3603
|
+
*
|
|
3604
|
+
* @type {string}
|
|
3605
|
+
* @memberof HistoryEntity
|
|
3606
|
+
*/
|
|
3607
|
+
'modalName': HistoryEntityModalNameEnum;
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
export const HistoryEntityModalNameEnum = {
|
|
3611
|
+
Booking: 'booking',
|
|
3612
|
+
Waitlist: 'waitlist'
|
|
3613
|
+
} as const;
|
|
3614
|
+
|
|
3615
|
+
export type HistoryEntityModalNameEnum = typeof HistoryEntityModalNameEnum[keyof typeof HistoryEntityModalNameEnum];
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
*
|
|
3619
|
+
* @export
|
|
3620
|
+
* @interface HistoryPayloadDTO
|
|
3621
|
+
*/
|
|
3622
|
+
export interface HistoryPayloadDTO {
|
|
3623
|
+
/**
|
|
3624
|
+
*
|
|
3625
|
+
* @type {string}
|
|
3626
|
+
* @memberof HistoryPayloadDTO
|
|
3627
|
+
*/
|
|
3628
|
+
'action': string;
|
|
3629
|
+
/**
|
|
3630
|
+
* The list of collaborators associated with the waitlist
|
|
3631
|
+
* @type {string}
|
|
3632
|
+
* @memberof HistoryPayloadDTO
|
|
3633
|
+
*/
|
|
3634
|
+
'staff': string;
|
|
3635
|
+
/**
|
|
3636
|
+
*
|
|
3637
|
+
* @type {string}
|
|
3638
|
+
* @memberof HistoryPayloadDTO
|
|
3639
|
+
*/
|
|
3640
|
+
'modalName': HistoryPayloadDTOModalNameEnum;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
export const HistoryPayloadDTOModalNameEnum = {
|
|
3644
|
+
Booking: 'booking',
|
|
3645
|
+
Waitlist: 'waitlist'
|
|
3646
|
+
} as const;
|
|
3647
|
+
|
|
3648
|
+
export type HistoryPayloadDTOModalNameEnum = typeof HistoryPayloadDTOModalNameEnum[keyof typeof HistoryPayloadDTOModalNameEnum];
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
*
|
|
3652
|
+
* @export
|
|
3653
|
+
* @interface HistoryResponseDTO
|
|
3654
|
+
*/
|
|
3655
|
+
export interface HistoryResponseDTO {
|
|
3656
|
+
/**
|
|
3657
|
+
* statusCode
|
|
3658
|
+
* @type {number}
|
|
3659
|
+
* @memberof HistoryResponseDTO
|
|
3660
|
+
*/
|
|
3661
|
+
'statusCode': number;
|
|
3662
|
+
/**
|
|
3663
|
+
* Waitlist response
|
|
3664
|
+
* @type {HistoryEntity}
|
|
3665
|
+
* @memberof HistoryResponseDTO
|
|
3666
|
+
*/
|
|
3667
|
+
'data': HistoryEntity;
|
|
3668
|
+
}
|
|
3547
3669
|
/**
|
|
3548
3670
|
*
|
|
3549
3671
|
* @export
|
|
@@ -5800,6 +5922,12 @@ export interface UserEntity {
|
|
|
5800
5922
|
* @memberof UserEntity
|
|
5801
5923
|
*/
|
|
5802
5924
|
'pendingAction'?: Array<string>;
|
|
5925
|
+
/**
|
|
5926
|
+
*
|
|
5927
|
+
* @type {boolean}
|
|
5928
|
+
* @memberof UserEntity
|
|
5929
|
+
*/
|
|
5930
|
+
'hangout': boolean;
|
|
5803
5931
|
}
|
|
5804
5932
|
|
|
5805
5933
|
export const UserEntityRoleEnum = {
|
|
@@ -5809,6 +5937,19 @@ export const UserEntityRoleEnum = {
|
|
|
5809
5937
|
|
|
5810
5938
|
export type UserEntityRoleEnum = typeof UserEntityRoleEnum[keyof typeof UserEntityRoleEnum];
|
|
5811
5939
|
|
|
5940
|
+
/**
|
|
5941
|
+
*
|
|
5942
|
+
* @export
|
|
5943
|
+
* @interface UserHangout
|
|
5944
|
+
*/
|
|
5945
|
+
export interface UserHangout {
|
|
5946
|
+
/**
|
|
5947
|
+
*
|
|
5948
|
+
* @type {boolean}
|
|
5949
|
+
* @memberof UserHangout
|
|
5950
|
+
*/
|
|
5951
|
+
'hangout'?: boolean;
|
|
5952
|
+
}
|
|
5812
5953
|
/**
|
|
5813
5954
|
*
|
|
5814
5955
|
* @export
|
|
@@ -7685,6 +7826,49 @@ export const BookingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7685
7826
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7686
7827
|
localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingInvitePayload, localVarRequestOptions, configuration)
|
|
7687
7828
|
|
|
7829
|
+
return {
|
|
7830
|
+
url: toPathString(localVarUrlObj),
|
|
7831
|
+
options: localVarRequestOptions,
|
|
7832
|
+
};
|
|
7833
|
+
},
|
|
7834
|
+
/**
|
|
7835
|
+
*
|
|
7836
|
+
* @param {string} id
|
|
7837
|
+
* @param {CreateBookingPayload} createBookingPayload
|
|
7838
|
+
* @param {*} [options] Override http request option.
|
|
7839
|
+
* @throws {RequiredError}
|
|
7840
|
+
*/
|
|
7841
|
+
bookingControllerUpdateBooking: async (id: string, createBookingPayload: CreateBookingPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7842
|
+
// verify required parameter 'id' is not null or undefined
|
|
7843
|
+
assertParamExists('bookingControllerUpdateBooking', 'id', id)
|
|
7844
|
+
// verify required parameter 'createBookingPayload' is not null or undefined
|
|
7845
|
+
assertParamExists('bookingControllerUpdateBooking', 'createBookingPayload', createBookingPayload)
|
|
7846
|
+
const localVarPath = `/v1/booking/{id}`
|
|
7847
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7848
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7849
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7850
|
+
let baseOptions;
|
|
7851
|
+
if (configuration) {
|
|
7852
|
+
baseOptions = configuration.baseOptions;
|
|
7853
|
+
}
|
|
7854
|
+
|
|
7855
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
7856
|
+
const localVarHeaderParameter = {} as any;
|
|
7857
|
+
const localVarQueryParameter = {} as any;
|
|
7858
|
+
|
|
7859
|
+
// authentication bearer required
|
|
7860
|
+
// http bearer authentication required
|
|
7861
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7862
|
+
|
|
7863
|
+
|
|
7864
|
+
|
|
7865
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7866
|
+
|
|
7867
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7868
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7869
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7870
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBookingPayload, localVarRequestOptions, configuration)
|
|
7871
|
+
|
|
7688
7872
|
return {
|
|
7689
7873
|
url: toPathString(localVarUrlObj),
|
|
7690
7874
|
options: localVarRequestOptions,
|
|
@@ -7784,6 +7968,19 @@ export const BookingApiFp = function(configuration?: Configuration) {
|
|
|
7784
7968
|
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerRejectBookingInvite']?.[localVarOperationServerIndex]?.url;
|
|
7785
7969
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7786
7970
|
},
|
|
7971
|
+
/**
|
|
7972
|
+
*
|
|
7973
|
+
* @param {string} id
|
|
7974
|
+
* @param {CreateBookingPayload} createBookingPayload
|
|
7975
|
+
* @param {*} [options] Override http request option.
|
|
7976
|
+
* @throws {RequiredError}
|
|
7977
|
+
*/
|
|
7978
|
+
async bookingControllerUpdateBooking(id: string, createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponseDTO>> {
|
|
7979
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingControllerUpdateBooking(id, createBookingPayload, options);
|
|
7980
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7981
|
+
const localVarOperationServerBasePath = operationServerMap['BookingApi.bookingControllerUpdateBooking']?.[localVarOperationServerIndex]?.url;
|
|
7982
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7983
|
+
},
|
|
7787
7984
|
}
|
|
7788
7985
|
};
|
|
7789
7986
|
|
|
@@ -7857,6 +8054,16 @@ export const BookingApiFactory = function (configuration?: Configuration, basePa
|
|
|
7857
8054
|
bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingRequestResponseDTO> {
|
|
7858
8055
|
return localVarFp.bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(axios, basePath));
|
|
7859
8056
|
},
|
|
8057
|
+
/**
|
|
8058
|
+
*
|
|
8059
|
+
* @param {string} id
|
|
8060
|
+
* @param {CreateBookingPayload} createBookingPayload
|
|
8061
|
+
* @param {*} [options] Override http request option.
|
|
8062
|
+
* @throws {RequiredError}
|
|
8063
|
+
*/
|
|
8064
|
+
bookingControllerUpdateBooking(id: string, createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponseDTO> {
|
|
8065
|
+
return localVarFp.bookingControllerUpdateBooking(id, createBookingPayload, options).then((request) => request(axios, basePath));
|
|
8066
|
+
},
|
|
7860
8067
|
};
|
|
7861
8068
|
};
|
|
7862
8069
|
|
|
@@ -7943,6 +8150,18 @@ export class BookingApi extends BaseAPI {
|
|
|
7943
8150
|
public bookingControllerRejectBookingInvite(rejectBookingInvitePayload: RejectBookingInvitePayload, options?: RawAxiosRequestConfig) {
|
|
7944
8151
|
return BookingApiFp(this.configuration).bookingControllerRejectBookingInvite(rejectBookingInvitePayload, options).then((request) => request(this.axios, this.basePath));
|
|
7945
8152
|
}
|
|
8153
|
+
|
|
8154
|
+
/**
|
|
8155
|
+
*
|
|
8156
|
+
* @param {string} id
|
|
8157
|
+
* @param {CreateBookingPayload} createBookingPayload
|
|
8158
|
+
* @param {*} [options] Override http request option.
|
|
8159
|
+
* @throws {RequiredError}
|
|
8160
|
+
* @memberof BookingApi
|
|
8161
|
+
*/
|
|
8162
|
+
public bookingControllerUpdateBooking(id: string, createBookingPayload: CreateBookingPayload, options?: RawAxiosRequestConfig) {
|
|
8163
|
+
return BookingApiFp(this.configuration).bookingControllerUpdateBooking(id, createBookingPayload, options).then((request) => request(this.axios, this.basePath));
|
|
8164
|
+
}
|
|
7946
8165
|
}
|
|
7947
8166
|
|
|
7948
8167
|
|
|
@@ -11489,6 +11708,39 @@ export const FriendsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
11489
11708
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11490
11709
|
localVarRequestOptions.data = serializeDataIfNeeded(sendFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
11491
11710
|
|
|
11711
|
+
return {
|
|
11712
|
+
url: toPathString(localVarUrlObj),
|
|
11713
|
+
options: localVarRequestOptions,
|
|
11714
|
+
};
|
|
11715
|
+
},
|
|
11716
|
+
/**
|
|
11717
|
+
*
|
|
11718
|
+
* @param {*} [options] Override http request option.
|
|
11719
|
+
* @throws {RequiredError}
|
|
11720
|
+
*/
|
|
11721
|
+
friendControllerTodayAvailableFriends: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11722
|
+
const localVarPath = `/v1/friend/today/available/friends`;
|
|
11723
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11724
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11725
|
+
let baseOptions;
|
|
11726
|
+
if (configuration) {
|
|
11727
|
+
baseOptions = configuration.baseOptions;
|
|
11728
|
+
}
|
|
11729
|
+
|
|
11730
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11731
|
+
const localVarHeaderParameter = {} as any;
|
|
11732
|
+
const localVarQueryParameter = {} as any;
|
|
11733
|
+
|
|
11734
|
+
// authentication bearer required
|
|
11735
|
+
// http bearer authentication required
|
|
11736
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11737
|
+
|
|
11738
|
+
|
|
11739
|
+
|
|
11740
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11741
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11742
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11743
|
+
|
|
11492
11744
|
return {
|
|
11493
11745
|
url: toPathString(localVarUrlObj),
|
|
11494
11746
|
options: localVarRequestOptions,
|
|
@@ -11593,6 +11845,17 @@ export const FriendsApiFp = function(configuration?: Configuration) {
|
|
|
11593
11845
|
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerSendFriendRequest']?.[localVarOperationServerIndex]?.url;
|
|
11594
11846
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11595
11847
|
},
|
|
11848
|
+
/**
|
|
11849
|
+
*
|
|
11850
|
+
* @param {*} [options] Override http request option.
|
|
11851
|
+
* @throws {RequiredError}
|
|
11852
|
+
*/
|
|
11853
|
+
async friendControllerTodayAvailableFriends(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
|
|
11854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerTodayAvailableFriends(options);
|
|
11855
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11856
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerTodayAvailableFriends']?.[localVarOperationServerIndex]?.url;
|
|
11857
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11858
|
+
},
|
|
11596
11859
|
}
|
|
11597
11860
|
};
|
|
11598
11861
|
|
|
@@ -11671,6 +11934,14 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
|
|
|
11671
11934
|
friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
11672
11935
|
return localVarFp.friendControllerSendFriendRequest(sendFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
11673
11936
|
},
|
|
11937
|
+
/**
|
|
11938
|
+
*
|
|
11939
|
+
* @param {*} [options] Override http request option.
|
|
11940
|
+
* @throws {RequiredError}
|
|
11941
|
+
*/
|
|
11942
|
+
friendControllerTodayAvailableFriends(options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
|
|
11943
|
+
return localVarFp.friendControllerTodayAvailableFriends(options).then((request) => request(axios, basePath));
|
|
11944
|
+
},
|
|
11674
11945
|
};
|
|
11675
11946
|
};
|
|
11676
11947
|
|
|
@@ -11762,6 +12033,16 @@ export class FriendsApi extends BaseAPI {
|
|
|
11762
12033
|
public friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
11763
12034
|
return FriendsApiFp(this.configuration).friendControllerSendFriendRequest(sendFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
11764
12035
|
}
|
|
12036
|
+
|
|
12037
|
+
/**
|
|
12038
|
+
*
|
|
12039
|
+
* @param {*} [options] Override http request option.
|
|
12040
|
+
* @throws {RequiredError}
|
|
12041
|
+
* @memberof FriendsApi
|
|
12042
|
+
*/
|
|
12043
|
+
public friendControllerTodayAvailableFriends(options?: RawAxiosRequestConfig) {
|
|
12044
|
+
return FriendsApiFp(this.configuration).friendControllerTodayAvailableFriends(options).then((request) => request(this.axios, this.basePath));
|
|
12045
|
+
}
|
|
11765
12046
|
}
|
|
11766
12047
|
|
|
11767
12048
|
|
|
@@ -11969,6 +12250,198 @@ export class GoalsApi extends BaseAPI {
|
|
|
11969
12250
|
|
|
11970
12251
|
|
|
11971
12252
|
|
|
12253
|
+
/**
|
|
12254
|
+
* HistoryApi - axios parameter creator
|
|
12255
|
+
* @export
|
|
12256
|
+
*/
|
|
12257
|
+
export const HistoryApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12258
|
+
return {
|
|
12259
|
+
/**
|
|
12260
|
+
*
|
|
12261
|
+
* @param {HistoryPayloadDTO} historyPayloadDTO
|
|
12262
|
+
* @param {*} [options] Override http request option.
|
|
12263
|
+
* @throws {RequiredError}
|
|
12264
|
+
*/
|
|
12265
|
+
historyControllerAddHistory: async (historyPayloadDTO: HistoryPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12266
|
+
// verify required parameter 'historyPayloadDTO' is not null or undefined
|
|
12267
|
+
assertParamExists('historyControllerAddHistory', 'historyPayloadDTO', historyPayloadDTO)
|
|
12268
|
+
const localVarPath = `/v1/history`;
|
|
12269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12270
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12271
|
+
let baseOptions;
|
|
12272
|
+
if (configuration) {
|
|
12273
|
+
baseOptions = configuration.baseOptions;
|
|
12274
|
+
}
|
|
12275
|
+
|
|
12276
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12277
|
+
const localVarHeaderParameter = {} as any;
|
|
12278
|
+
const localVarQueryParameter = {} as any;
|
|
12279
|
+
|
|
12280
|
+
// authentication bearer required
|
|
12281
|
+
// http bearer authentication required
|
|
12282
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12283
|
+
|
|
12284
|
+
|
|
12285
|
+
|
|
12286
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12287
|
+
|
|
12288
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12290
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12291
|
+
localVarRequestOptions.data = serializeDataIfNeeded(historyPayloadDTO, localVarRequestOptions, configuration)
|
|
12292
|
+
|
|
12293
|
+
return {
|
|
12294
|
+
url: toPathString(localVarUrlObj),
|
|
12295
|
+
options: localVarRequestOptions,
|
|
12296
|
+
};
|
|
12297
|
+
},
|
|
12298
|
+
/**
|
|
12299
|
+
*
|
|
12300
|
+
* @param {number} page
|
|
12301
|
+
* @param {number} pageSize
|
|
12302
|
+
* @param {*} [options] Override http request option.
|
|
12303
|
+
* @throws {RequiredError}
|
|
12304
|
+
*/
|
|
12305
|
+
historyControllerFindHistory: async (page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12306
|
+
// verify required parameter 'page' is not null or undefined
|
|
12307
|
+
assertParamExists('historyControllerFindHistory', 'page', page)
|
|
12308
|
+
// verify required parameter 'pageSize' is not null or undefined
|
|
12309
|
+
assertParamExists('historyControllerFindHistory', 'pageSize', pageSize)
|
|
12310
|
+
const localVarPath = `/v1/history`;
|
|
12311
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12312
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12313
|
+
let baseOptions;
|
|
12314
|
+
if (configuration) {
|
|
12315
|
+
baseOptions = configuration.baseOptions;
|
|
12316
|
+
}
|
|
12317
|
+
|
|
12318
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12319
|
+
const localVarHeaderParameter = {} as any;
|
|
12320
|
+
const localVarQueryParameter = {} as any;
|
|
12321
|
+
|
|
12322
|
+
// authentication bearer required
|
|
12323
|
+
// http bearer authentication required
|
|
12324
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12325
|
+
|
|
12326
|
+
if (page !== undefined) {
|
|
12327
|
+
localVarQueryParameter['page'] = page;
|
|
12328
|
+
}
|
|
12329
|
+
|
|
12330
|
+
if (pageSize !== undefined) {
|
|
12331
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
12332
|
+
}
|
|
12333
|
+
|
|
12334
|
+
|
|
12335
|
+
|
|
12336
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12337
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12338
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12339
|
+
|
|
12340
|
+
return {
|
|
12341
|
+
url: toPathString(localVarUrlObj),
|
|
12342
|
+
options: localVarRequestOptions,
|
|
12343
|
+
};
|
|
12344
|
+
},
|
|
12345
|
+
}
|
|
12346
|
+
};
|
|
12347
|
+
|
|
12348
|
+
/**
|
|
12349
|
+
* HistoryApi - functional programming interface
|
|
12350
|
+
* @export
|
|
12351
|
+
*/
|
|
12352
|
+
export const HistoryApiFp = function(configuration?: Configuration) {
|
|
12353
|
+
const localVarAxiosParamCreator = HistoryApiAxiosParamCreator(configuration)
|
|
12354
|
+
return {
|
|
12355
|
+
/**
|
|
12356
|
+
*
|
|
12357
|
+
* @param {HistoryPayloadDTO} historyPayloadDTO
|
|
12358
|
+
* @param {*} [options] Override http request option.
|
|
12359
|
+
* @throws {RequiredError}
|
|
12360
|
+
*/
|
|
12361
|
+
async historyControllerAddHistory(historyPayloadDTO: HistoryPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HistoryResponseDTO>> {
|
|
12362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.historyControllerAddHistory(historyPayloadDTO, options);
|
|
12363
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12364
|
+
const localVarOperationServerBasePath = operationServerMap['HistoryApi.historyControllerAddHistory']?.[localVarOperationServerIndex]?.url;
|
|
12365
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12366
|
+
},
|
|
12367
|
+
/**
|
|
12368
|
+
*
|
|
12369
|
+
* @param {number} page
|
|
12370
|
+
* @param {number} pageSize
|
|
12371
|
+
* @param {*} [options] Override http request option.
|
|
12372
|
+
* @throws {RequiredError}
|
|
12373
|
+
*/
|
|
12374
|
+
async historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FindHistoryResponseDTO>> {
|
|
12375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.historyControllerFindHistory(page, pageSize, options);
|
|
12376
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12377
|
+
const localVarOperationServerBasePath = operationServerMap['HistoryApi.historyControllerFindHistory']?.[localVarOperationServerIndex]?.url;
|
|
12378
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12379
|
+
},
|
|
12380
|
+
}
|
|
12381
|
+
};
|
|
12382
|
+
|
|
12383
|
+
/**
|
|
12384
|
+
* HistoryApi - factory interface
|
|
12385
|
+
* @export
|
|
12386
|
+
*/
|
|
12387
|
+
export const HistoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
12388
|
+
const localVarFp = HistoryApiFp(configuration)
|
|
12389
|
+
return {
|
|
12390
|
+
/**
|
|
12391
|
+
*
|
|
12392
|
+
* @param {HistoryPayloadDTO} historyPayloadDTO
|
|
12393
|
+
* @param {*} [options] Override http request option.
|
|
12394
|
+
* @throws {RequiredError}
|
|
12395
|
+
*/
|
|
12396
|
+
historyControllerAddHistory(historyPayloadDTO: HistoryPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<HistoryResponseDTO> {
|
|
12397
|
+
return localVarFp.historyControllerAddHistory(historyPayloadDTO, options).then((request) => request(axios, basePath));
|
|
12398
|
+
},
|
|
12399
|
+
/**
|
|
12400
|
+
*
|
|
12401
|
+
* @param {number} page
|
|
12402
|
+
* @param {number} pageSize
|
|
12403
|
+
* @param {*} [options] Override http request option.
|
|
12404
|
+
* @throws {RequiredError}
|
|
12405
|
+
*/
|
|
12406
|
+
historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig): AxiosPromise<FindHistoryResponseDTO> {
|
|
12407
|
+
return localVarFp.historyControllerFindHistory(page, pageSize, options).then((request) => request(axios, basePath));
|
|
12408
|
+
},
|
|
12409
|
+
};
|
|
12410
|
+
};
|
|
12411
|
+
|
|
12412
|
+
/**
|
|
12413
|
+
* HistoryApi - object-oriented interface
|
|
12414
|
+
* @export
|
|
12415
|
+
* @class HistoryApi
|
|
12416
|
+
* @extends {BaseAPI}
|
|
12417
|
+
*/
|
|
12418
|
+
export class HistoryApi extends BaseAPI {
|
|
12419
|
+
/**
|
|
12420
|
+
*
|
|
12421
|
+
* @param {HistoryPayloadDTO} historyPayloadDTO
|
|
12422
|
+
* @param {*} [options] Override http request option.
|
|
12423
|
+
* @throws {RequiredError}
|
|
12424
|
+
* @memberof HistoryApi
|
|
12425
|
+
*/
|
|
12426
|
+
public historyControllerAddHistory(historyPayloadDTO: HistoryPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
12427
|
+
return HistoryApiFp(this.configuration).historyControllerAddHistory(historyPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
12428
|
+
}
|
|
12429
|
+
|
|
12430
|
+
/**
|
|
12431
|
+
*
|
|
12432
|
+
* @param {number} page
|
|
12433
|
+
* @param {number} pageSize
|
|
12434
|
+
* @param {*} [options] Override http request option.
|
|
12435
|
+
* @throws {RequiredError}
|
|
12436
|
+
* @memberof HistoryApi
|
|
12437
|
+
*/
|
|
12438
|
+
public historyControllerFindHistory(page: number, pageSize: number, options?: RawAxiosRequestConfig) {
|
|
12439
|
+
return HistoryApiFp(this.configuration).historyControllerFindHistory(page, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
12440
|
+
}
|
|
12441
|
+
}
|
|
12442
|
+
|
|
12443
|
+
|
|
12444
|
+
|
|
11972
12445
|
/**
|
|
11973
12446
|
* IntegrationApi - axios parameter creator
|
|
11974
12447
|
* @export
|
|
@@ -16007,6 +16480,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
16007
16480
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16008
16481
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16009
16482
|
|
|
16483
|
+
return {
|
|
16484
|
+
url: toPathString(localVarUrlObj),
|
|
16485
|
+
options: localVarRequestOptions,
|
|
16486
|
+
};
|
|
16487
|
+
},
|
|
16488
|
+
/**
|
|
16489
|
+
*
|
|
16490
|
+
* @param {UserHangout} userHangout
|
|
16491
|
+
* @param {*} [options] Override http request option.
|
|
16492
|
+
* @throws {RequiredError}
|
|
16493
|
+
*/
|
|
16494
|
+
usersControllerUserHangout: async (userHangout: UserHangout, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16495
|
+
// verify required parameter 'userHangout' is not null or undefined
|
|
16496
|
+
assertParamExists('usersControllerUserHangout', 'userHangout', userHangout)
|
|
16497
|
+
const localVarPath = `/v1/user/hangout`;
|
|
16498
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16499
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16500
|
+
let baseOptions;
|
|
16501
|
+
if (configuration) {
|
|
16502
|
+
baseOptions = configuration.baseOptions;
|
|
16503
|
+
}
|
|
16504
|
+
|
|
16505
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16506
|
+
const localVarHeaderParameter = {} as any;
|
|
16507
|
+
const localVarQueryParameter = {} as any;
|
|
16508
|
+
|
|
16509
|
+
// authentication bearer required
|
|
16510
|
+
// http bearer authentication required
|
|
16511
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16512
|
+
|
|
16513
|
+
|
|
16514
|
+
|
|
16515
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16516
|
+
|
|
16517
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16518
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16519
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16520
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userHangout, localVarRequestOptions, configuration)
|
|
16521
|
+
|
|
16010
16522
|
return {
|
|
16011
16523
|
url: toPathString(localVarUrlObj),
|
|
16012
16524
|
options: localVarRequestOptions,
|
|
@@ -16138,6 +16650,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16138
16650
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerUserActivity']?.[localVarOperationServerIndex]?.url;
|
|
16139
16651
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16140
16652
|
},
|
|
16653
|
+
/**
|
|
16654
|
+
*
|
|
16655
|
+
* @param {UserHangout} userHangout
|
|
16656
|
+
* @param {*} [options] Override http request option.
|
|
16657
|
+
* @throws {RequiredError}
|
|
16658
|
+
*/
|
|
16659
|
+
async usersControllerUserHangout(userHangout: UserHangout, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserMeDTO>> {
|
|
16660
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.usersControllerUserHangout(userHangout, options);
|
|
16661
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16662
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.usersControllerUserHangout']?.[localVarOperationServerIndex]?.url;
|
|
16663
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16664
|
+
},
|
|
16141
16665
|
}
|
|
16142
16666
|
};
|
|
16143
16667
|
|
|
@@ -16234,6 +16758,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
16234
16758
|
usersControllerUserActivity(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ActivityDTO> {
|
|
16235
16759
|
return localVarFp.usersControllerUserActivity(id, options).then((request) => request(axios, basePath));
|
|
16236
16760
|
},
|
|
16761
|
+
/**
|
|
16762
|
+
*
|
|
16763
|
+
* @param {UserHangout} userHangout
|
|
16764
|
+
* @param {*} [options] Override http request option.
|
|
16765
|
+
* @throws {RequiredError}
|
|
16766
|
+
*/
|
|
16767
|
+
usersControllerUserHangout(userHangout: UserHangout, options?: RawAxiosRequestConfig): AxiosPromise<UserMeDTO> {
|
|
16768
|
+
return localVarFp.usersControllerUserHangout(userHangout, options).then((request) => request(axios, basePath));
|
|
16769
|
+
},
|
|
16237
16770
|
};
|
|
16238
16771
|
};
|
|
16239
16772
|
|
|
@@ -16349,6 +16882,17 @@ export class UsersApi extends BaseAPI {
|
|
|
16349
16882
|
public usersControllerUserActivity(id: string, options?: RawAxiosRequestConfig) {
|
|
16350
16883
|
return UsersApiFp(this.configuration).usersControllerUserActivity(id, options).then((request) => request(this.axios, this.basePath));
|
|
16351
16884
|
}
|
|
16885
|
+
|
|
16886
|
+
/**
|
|
16887
|
+
*
|
|
16888
|
+
* @param {UserHangout} userHangout
|
|
16889
|
+
* @param {*} [options] Override http request option.
|
|
16890
|
+
* @throws {RequiredError}
|
|
16891
|
+
* @memberof UsersApi
|
|
16892
|
+
*/
|
|
16893
|
+
public usersControllerUserHangout(userHangout: UserHangout, options?: RawAxiosRequestConfig) {
|
|
16894
|
+
return UsersApiFp(this.configuration).usersControllerUserHangout(userHangout, options).then((request) => request(this.axios, this.basePath));
|
|
16895
|
+
}
|
|
16352
16896
|
}
|
|
16353
16897
|
|
|
16354
16898
|
|