@gooday_corp/gooday-api-client 1.1.12-delta-7 → 1.1.12-delta-9
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 +679 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -60,6 +60,19 @@ export interface AddDevicePayload {
|
|
|
60
60
|
*/
|
|
61
61
|
'version': string;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
* @interface ApproveFriendshipRequestPayload
|
|
67
|
+
*/
|
|
68
|
+
export interface ApproveFriendshipRequestPayload {
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof ApproveFriendshipRequestPayload
|
|
73
|
+
*/
|
|
74
|
+
'from': string;
|
|
75
|
+
}
|
|
63
76
|
/**
|
|
64
77
|
*
|
|
65
78
|
* @export
|
|
@@ -723,6 +736,19 @@ export interface CreatePaymentLinkDTO {
|
|
|
723
736
|
*/
|
|
724
737
|
'user': string;
|
|
725
738
|
}
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @export
|
|
742
|
+
* @interface DeclineFriendshipRequestPayload
|
|
743
|
+
*/
|
|
744
|
+
export interface DeclineFriendshipRequestPayload {
|
|
745
|
+
/**
|
|
746
|
+
*
|
|
747
|
+
* @type {string}
|
|
748
|
+
* @memberof DeclineFriendshipRequestPayload
|
|
749
|
+
*/
|
|
750
|
+
'from': string;
|
|
751
|
+
}
|
|
726
752
|
/**
|
|
727
753
|
*
|
|
728
754
|
* @export
|
|
@@ -874,6 +900,87 @@ export interface ForgotPasswordResponseDTO {
|
|
|
874
900
|
*/
|
|
875
901
|
'message': string;
|
|
876
902
|
}
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @export
|
|
906
|
+
* @interface FriendsDTO
|
|
907
|
+
*/
|
|
908
|
+
export interface FriendsDTO {
|
|
909
|
+
/**
|
|
910
|
+
* statusCode
|
|
911
|
+
* @type {number}
|
|
912
|
+
* @memberof FriendsDTO
|
|
913
|
+
*/
|
|
914
|
+
'statusCode': number;
|
|
915
|
+
/**
|
|
916
|
+
* User
|
|
917
|
+
* @type {Array<UserEntity>}
|
|
918
|
+
* @memberof FriendsDTO
|
|
919
|
+
*/
|
|
920
|
+
'data': Array<UserEntity>;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
*
|
|
924
|
+
* @export
|
|
925
|
+
* @interface FriendsResponseDTO
|
|
926
|
+
*/
|
|
927
|
+
export interface FriendsResponseDTO {
|
|
928
|
+
/**
|
|
929
|
+
* statusCode
|
|
930
|
+
* @type {number}
|
|
931
|
+
* @memberof FriendsResponseDTO
|
|
932
|
+
*/
|
|
933
|
+
'statusCode': number;
|
|
934
|
+
/**
|
|
935
|
+
*
|
|
936
|
+
* @type {boolean}
|
|
937
|
+
* @memberof FriendsResponseDTO
|
|
938
|
+
*/
|
|
939
|
+
'success': boolean;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
*
|
|
943
|
+
* @export
|
|
944
|
+
* @interface FriendshipStatusCheck
|
|
945
|
+
*/
|
|
946
|
+
export interface FriendshipStatusCheck {
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* @type {string}
|
|
950
|
+
* @memberof FriendshipStatusCheck
|
|
951
|
+
*/
|
|
952
|
+
'to': string;
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
*
|
|
956
|
+
* @export
|
|
957
|
+
* @interface FriendshipStatusDTO
|
|
958
|
+
*/
|
|
959
|
+
export interface FriendshipStatusDTO {
|
|
960
|
+
/**
|
|
961
|
+
* statusCode
|
|
962
|
+
* @type {number}
|
|
963
|
+
* @memberof FriendshipStatusDTO
|
|
964
|
+
*/
|
|
965
|
+
'statusCode': number;
|
|
966
|
+
/**
|
|
967
|
+
*
|
|
968
|
+
* @type {string}
|
|
969
|
+
* @memberof FriendshipStatusDTO
|
|
970
|
+
*/
|
|
971
|
+
'success': FriendshipStatusDTOSuccessEnum;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
export const FriendshipStatusDTOSuccessEnum = {
|
|
975
|
+
Pending: 'PENDING',
|
|
976
|
+
Confirmed: 'CONFIRMED',
|
|
977
|
+
Rejected: 'REJECTED',
|
|
978
|
+
Cancelled: 'CANCELLED',
|
|
979
|
+
Unknown: 'UNKNOWN'
|
|
980
|
+
} as const;
|
|
981
|
+
|
|
982
|
+
export type FriendshipStatusDTOSuccessEnum = typeof FriendshipStatusDTOSuccessEnum[keyof typeof FriendshipStatusDTOSuccessEnum];
|
|
983
|
+
|
|
877
984
|
/**
|
|
878
985
|
*
|
|
879
986
|
* @export
|
|
@@ -1514,6 +1621,19 @@ export interface PriceRangeListResponse {
|
|
|
1514
1621
|
*/
|
|
1515
1622
|
'data': Array<PriceRangeEntity>;
|
|
1516
1623
|
}
|
|
1624
|
+
/**
|
|
1625
|
+
*
|
|
1626
|
+
* @export
|
|
1627
|
+
* @interface RemoveFriendshipRequestPayload
|
|
1628
|
+
*/
|
|
1629
|
+
export interface RemoveFriendshipRequestPayload {
|
|
1630
|
+
/**
|
|
1631
|
+
*
|
|
1632
|
+
* @type {string}
|
|
1633
|
+
* @memberof RemoveFriendshipRequestPayload
|
|
1634
|
+
*/
|
|
1635
|
+
'from': string;
|
|
1636
|
+
}
|
|
1517
1637
|
/**
|
|
1518
1638
|
*
|
|
1519
1639
|
* @export
|
|
@@ -1552,6 +1672,19 @@ export interface ResetPasswordResponseDTO {
|
|
|
1552
1672
|
*/
|
|
1553
1673
|
'message': string;
|
|
1554
1674
|
}
|
|
1675
|
+
/**
|
|
1676
|
+
*
|
|
1677
|
+
* @export
|
|
1678
|
+
* @interface SendFriendshipRequestPayload
|
|
1679
|
+
*/
|
|
1680
|
+
export interface SendFriendshipRequestPayload {
|
|
1681
|
+
/**
|
|
1682
|
+
*
|
|
1683
|
+
* @type {string}
|
|
1684
|
+
* @memberof SendFriendshipRequestPayload
|
|
1685
|
+
*/
|
|
1686
|
+
'to': string;
|
|
1687
|
+
}
|
|
1555
1688
|
/**
|
|
1556
1689
|
*
|
|
1557
1690
|
* @export
|
|
@@ -3698,6 +3831,552 @@ export class DeviceApi extends BaseAPI {
|
|
|
3698
3831
|
|
|
3699
3832
|
|
|
3700
3833
|
|
|
3834
|
+
/**
|
|
3835
|
+
* FriendsApi - axios parameter creator
|
|
3836
|
+
* @export
|
|
3837
|
+
*/
|
|
3838
|
+
export const FriendsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3839
|
+
return {
|
|
3840
|
+
/**
|
|
3841
|
+
*
|
|
3842
|
+
* @param {ApproveFriendshipRequestPayload} approveFriendshipRequestPayload
|
|
3843
|
+
* @param {*} [options] Override http request option.
|
|
3844
|
+
* @throws {RequiredError}
|
|
3845
|
+
*/
|
|
3846
|
+
friendControllerApproveFriendRequest: async (approveFriendshipRequestPayload: ApproveFriendshipRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3847
|
+
// verify required parameter 'approveFriendshipRequestPayload' is not null or undefined
|
|
3848
|
+
assertParamExists('friendControllerApproveFriendRequest', 'approveFriendshipRequestPayload', approveFriendshipRequestPayload)
|
|
3849
|
+
const localVarPath = `/v1/friend/approve-request`;
|
|
3850
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3851
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3852
|
+
let baseOptions;
|
|
3853
|
+
if (configuration) {
|
|
3854
|
+
baseOptions = configuration.baseOptions;
|
|
3855
|
+
}
|
|
3856
|
+
|
|
3857
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3858
|
+
const localVarHeaderParameter = {} as any;
|
|
3859
|
+
const localVarQueryParameter = {} as any;
|
|
3860
|
+
|
|
3861
|
+
// authentication bearer required
|
|
3862
|
+
// http bearer authentication required
|
|
3863
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3864
|
+
|
|
3865
|
+
|
|
3866
|
+
|
|
3867
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3868
|
+
|
|
3869
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3870
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3871
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3872
|
+
localVarRequestOptions.data = serializeDataIfNeeded(approveFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
3873
|
+
|
|
3874
|
+
return {
|
|
3875
|
+
url: toPathString(localVarUrlObj),
|
|
3876
|
+
options: localVarRequestOptions,
|
|
3877
|
+
};
|
|
3878
|
+
},
|
|
3879
|
+
/**
|
|
3880
|
+
*
|
|
3881
|
+
* @param {DeclineFriendshipRequestPayload} declineFriendshipRequestPayload
|
|
3882
|
+
* @param {*} [options] Override http request option.
|
|
3883
|
+
* @throws {RequiredError}
|
|
3884
|
+
*/
|
|
3885
|
+
friendControllerDeclineFriendRequest: async (declineFriendshipRequestPayload: DeclineFriendshipRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3886
|
+
// verify required parameter 'declineFriendshipRequestPayload' is not null or undefined
|
|
3887
|
+
assertParamExists('friendControllerDeclineFriendRequest', 'declineFriendshipRequestPayload', declineFriendshipRequestPayload)
|
|
3888
|
+
const localVarPath = `/v1/friend/decline-request`;
|
|
3889
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3890
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3891
|
+
let baseOptions;
|
|
3892
|
+
if (configuration) {
|
|
3893
|
+
baseOptions = configuration.baseOptions;
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3897
|
+
const localVarHeaderParameter = {} as any;
|
|
3898
|
+
const localVarQueryParameter = {} as any;
|
|
3899
|
+
|
|
3900
|
+
// authentication bearer required
|
|
3901
|
+
// http bearer authentication required
|
|
3902
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3903
|
+
|
|
3904
|
+
|
|
3905
|
+
|
|
3906
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3907
|
+
|
|
3908
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3909
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3910
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3911
|
+
localVarRequestOptions.data = serializeDataIfNeeded(declineFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
3912
|
+
|
|
3913
|
+
return {
|
|
3914
|
+
url: toPathString(localVarUrlObj),
|
|
3915
|
+
options: localVarRequestOptions,
|
|
3916
|
+
};
|
|
3917
|
+
},
|
|
3918
|
+
/**
|
|
3919
|
+
*
|
|
3920
|
+
* @param {number} page
|
|
3921
|
+
* @param {number} pageSize
|
|
3922
|
+
* @param {string} [query]
|
|
3923
|
+
* @param {*} [options] Override http request option.
|
|
3924
|
+
* @throws {RequiredError}
|
|
3925
|
+
*/
|
|
3926
|
+
friendControllerFindFriends: async (page: number, pageSize: number, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3927
|
+
// verify required parameter 'page' is not null or undefined
|
|
3928
|
+
assertParamExists('friendControllerFindFriends', 'page', page)
|
|
3929
|
+
// verify required parameter 'pageSize' is not null or undefined
|
|
3930
|
+
assertParamExists('friendControllerFindFriends', 'pageSize', pageSize)
|
|
3931
|
+
const localVarPath = `/v1/friend/find`;
|
|
3932
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3933
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3934
|
+
let baseOptions;
|
|
3935
|
+
if (configuration) {
|
|
3936
|
+
baseOptions = configuration.baseOptions;
|
|
3937
|
+
}
|
|
3938
|
+
|
|
3939
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3940
|
+
const localVarHeaderParameter = {} as any;
|
|
3941
|
+
const localVarQueryParameter = {} as any;
|
|
3942
|
+
|
|
3943
|
+
// authentication bearer required
|
|
3944
|
+
// http bearer authentication required
|
|
3945
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3946
|
+
|
|
3947
|
+
if (query !== undefined) {
|
|
3948
|
+
localVarQueryParameter['query'] = query;
|
|
3949
|
+
}
|
|
3950
|
+
|
|
3951
|
+
if (page !== undefined) {
|
|
3952
|
+
localVarQueryParameter['page'] = page;
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
if (pageSize !== undefined) {
|
|
3956
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3962
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3963
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3964
|
+
|
|
3965
|
+
return {
|
|
3966
|
+
url: toPathString(localVarUrlObj),
|
|
3967
|
+
options: localVarRequestOptions,
|
|
3968
|
+
};
|
|
3969
|
+
},
|
|
3970
|
+
/**
|
|
3971
|
+
*
|
|
3972
|
+
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
3973
|
+
* @param {*} [options] Override http request option.
|
|
3974
|
+
* @throws {RequiredError}
|
|
3975
|
+
*/
|
|
3976
|
+
friendControllerGetFriendshipStatus: async (friendshipStatusCheck: FriendshipStatusCheck, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3977
|
+
// verify required parameter 'friendshipStatusCheck' is not null or undefined
|
|
3978
|
+
assertParamExists('friendControllerGetFriendshipStatus', 'friendshipStatusCheck', friendshipStatusCheck)
|
|
3979
|
+
const localVarPath = `/v1/friend/status`;
|
|
3980
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3981
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3982
|
+
let baseOptions;
|
|
3983
|
+
if (configuration) {
|
|
3984
|
+
baseOptions = configuration.baseOptions;
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3988
|
+
const localVarHeaderParameter = {} as any;
|
|
3989
|
+
const localVarQueryParameter = {} as any;
|
|
3990
|
+
|
|
3991
|
+
// authentication bearer required
|
|
3992
|
+
// http bearer authentication required
|
|
3993
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
|
|
3997
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3998
|
+
|
|
3999
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4000
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4001
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4002
|
+
localVarRequestOptions.data = serializeDataIfNeeded(friendshipStatusCheck, localVarRequestOptions, configuration)
|
|
4003
|
+
|
|
4004
|
+
return {
|
|
4005
|
+
url: toPathString(localVarUrlObj),
|
|
4006
|
+
options: localVarRequestOptions,
|
|
4007
|
+
};
|
|
4008
|
+
},
|
|
4009
|
+
/**
|
|
4010
|
+
*
|
|
4011
|
+
* @param {*} [options] Override http request option.
|
|
4012
|
+
* @throws {RequiredError}
|
|
4013
|
+
*/
|
|
4014
|
+
friendControllerListMyFriends: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4015
|
+
const localVarPath = `/v1/friend/list`;
|
|
4016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4017
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4018
|
+
let baseOptions;
|
|
4019
|
+
if (configuration) {
|
|
4020
|
+
baseOptions = configuration.baseOptions;
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4024
|
+
const localVarHeaderParameter = {} as any;
|
|
4025
|
+
const localVarQueryParameter = {} as any;
|
|
4026
|
+
|
|
4027
|
+
// authentication bearer required
|
|
4028
|
+
// http bearer authentication required
|
|
4029
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4030
|
+
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4035
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4036
|
+
|
|
4037
|
+
return {
|
|
4038
|
+
url: toPathString(localVarUrlObj),
|
|
4039
|
+
options: localVarRequestOptions,
|
|
4040
|
+
};
|
|
4041
|
+
},
|
|
4042
|
+
/**
|
|
4043
|
+
*
|
|
4044
|
+
* @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
|
|
4045
|
+
* @param {*} [options] Override http request option.
|
|
4046
|
+
* @throws {RequiredError}
|
|
4047
|
+
*/
|
|
4048
|
+
friendControllerRemoveFriendById: async (removeFriendshipRequestPayload: RemoveFriendshipRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4049
|
+
// verify required parameter 'removeFriendshipRequestPayload' is not null or undefined
|
|
4050
|
+
assertParamExists('friendControllerRemoveFriendById', 'removeFriendshipRequestPayload', removeFriendshipRequestPayload)
|
|
4051
|
+
const localVarPath = `/v1/friend/remove`;
|
|
4052
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4053
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4054
|
+
let baseOptions;
|
|
4055
|
+
if (configuration) {
|
|
4056
|
+
baseOptions = configuration.baseOptions;
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4060
|
+
const localVarHeaderParameter = {} as any;
|
|
4061
|
+
const localVarQueryParameter = {} as any;
|
|
4062
|
+
|
|
4063
|
+
// authentication bearer required
|
|
4064
|
+
// http bearer authentication required
|
|
4065
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4066
|
+
|
|
4067
|
+
|
|
4068
|
+
|
|
4069
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4070
|
+
|
|
4071
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4072
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4073
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4074
|
+
localVarRequestOptions.data = serializeDataIfNeeded(removeFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
4075
|
+
|
|
4076
|
+
return {
|
|
4077
|
+
url: toPathString(localVarUrlObj),
|
|
4078
|
+
options: localVarRequestOptions,
|
|
4079
|
+
};
|
|
4080
|
+
},
|
|
4081
|
+
/**
|
|
4082
|
+
*
|
|
4083
|
+
* @param {SendFriendshipRequestPayload} sendFriendshipRequestPayload
|
|
4084
|
+
* @param {*} [options] Override http request option.
|
|
4085
|
+
* @throws {RequiredError}
|
|
4086
|
+
*/
|
|
4087
|
+
friendControllerSendFriendRequest: async (sendFriendshipRequestPayload: SendFriendshipRequestPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4088
|
+
// verify required parameter 'sendFriendshipRequestPayload' is not null or undefined
|
|
4089
|
+
assertParamExists('friendControllerSendFriendRequest', 'sendFriendshipRequestPayload', sendFriendshipRequestPayload)
|
|
4090
|
+
const localVarPath = `/v1/friend/send-request`;
|
|
4091
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4092
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4093
|
+
let baseOptions;
|
|
4094
|
+
if (configuration) {
|
|
4095
|
+
baseOptions = configuration.baseOptions;
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4099
|
+
const localVarHeaderParameter = {} as any;
|
|
4100
|
+
const localVarQueryParameter = {} as any;
|
|
4101
|
+
|
|
4102
|
+
// authentication bearer required
|
|
4103
|
+
// http bearer authentication required
|
|
4104
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4109
|
+
|
|
4110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4112
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4113
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sendFriendshipRequestPayload, localVarRequestOptions, configuration)
|
|
4114
|
+
|
|
4115
|
+
return {
|
|
4116
|
+
url: toPathString(localVarUrlObj),
|
|
4117
|
+
options: localVarRequestOptions,
|
|
4118
|
+
};
|
|
4119
|
+
},
|
|
4120
|
+
}
|
|
4121
|
+
};
|
|
4122
|
+
|
|
4123
|
+
/**
|
|
4124
|
+
* FriendsApi - functional programming interface
|
|
4125
|
+
* @export
|
|
4126
|
+
*/
|
|
4127
|
+
export const FriendsApiFp = function(configuration?: Configuration) {
|
|
4128
|
+
const localVarAxiosParamCreator = FriendsApiAxiosParamCreator(configuration)
|
|
4129
|
+
return {
|
|
4130
|
+
/**
|
|
4131
|
+
*
|
|
4132
|
+
* @param {ApproveFriendshipRequestPayload} approveFriendshipRequestPayload
|
|
4133
|
+
* @param {*} [options] Override http request option.
|
|
4134
|
+
* @throws {RequiredError}
|
|
4135
|
+
*/
|
|
4136
|
+
async friendControllerApproveFriendRequest(approveFriendshipRequestPayload: ApproveFriendshipRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsResponseDTO>> {
|
|
4137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerApproveFriendRequest(approveFriendshipRequestPayload, options);
|
|
4138
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4139
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerApproveFriendRequest']?.[localVarOperationServerIndex]?.url;
|
|
4140
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4141
|
+
},
|
|
4142
|
+
/**
|
|
4143
|
+
*
|
|
4144
|
+
* @param {DeclineFriendshipRequestPayload} declineFriendshipRequestPayload
|
|
4145
|
+
* @param {*} [options] Override http request option.
|
|
4146
|
+
* @throws {RequiredError}
|
|
4147
|
+
*/
|
|
4148
|
+
async friendControllerDeclineFriendRequest(declineFriendshipRequestPayload: DeclineFriendshipRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsResponseDTO>> {
|
|
4149
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerDeclineFriendRequest(declineFriendshipRequestPayload, options);
|
|
4150
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4151
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerDeclineFriendRequest']?.[localVarOperationServerIndex]?.url;
|
|
4152
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4153
|
+
},
|
|
4154
|
+
/**
|
|
4155
|
+
*
|
|
4156
|
+
* @param {number} page
|
|
4157
|
+
* @param {number} pageSize
|
|
4158
|
+
* @param {string} [query]
|
|
4159
|
+
* @param {*} [options] Override http request option.
|
|
4160
|
+
* @throws {RequiredError}
|
|
4161
|
+
*/
|
|
4162
|
+
async friendControllerFindFriends(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
|
|
4163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerFindFriends(page, pageSize, query, options);
|
|
4164
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4165
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerFindFriends']?.[localVarOperationServerIndex]?.url;
|
|
4166
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4167
|
+
},
|
|
4168
|
+
/**
|
|
4169
|
+
*
|
|
4170
|
+
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
4171
|
+
* @param {*} [options] Override http request option.
|
|
4172
|
+
* @throws {RequiredError}
|
|
4173
|
+
*/
|
|
4174
|
+
async friendControllerGetFriendshipStatus(friendshipStatusCheck: FriendshipStatusCheck, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendshipStatusDTO>> {
|
|
4175
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerGetFriendshipStatus(friendshipStatusCheck, options);
|
|
4176
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4177
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerGetFriendshipStatus']?.[localVarOperationServerIndex]?.url;
|
|
4178
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4179
|
+
},
|
|
4180
|
+
/**
|
|
4181
|
+
*
|
|
4182
|
+
* @param {*} [options] Override http request option.
|
|
4183
|
+
* @throws {RequiredError}
|
|
4184
|
+
*/
|
|
4185
|
+
async friendControllerListMyFriends(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsDTO>> {
|
|
4186
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerListMyFriends(options);
|
|
4187
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4188
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerListMyFriends']?.[localVarOperationServerIndex]?.url;
|
|
4189
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4190
|
+
},
|
|
4191
|
+
/**
|
|
4192
|
+
*
|
|
4193
|
+
* @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
|
|
4194
|
+
* @param {*} [options] Override http request option.
|
|
4195
|
+
* @throws {RequiredError}
|
|
4196
|
+
*/
|
|
4197
|
+
async friendControllerRemoveFriendById(removeFriendshipRequestPayload: RemoveFriendshipRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsResponseDTO>> {
|
|
4198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerRemoveFriendById(removeFriendshipRequestPayload, options);
|
|
4199
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4200
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerRemoveFriendById']?.[localVarOperationServerIndex]?.url;
|
|
4201
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4202
|
+
},
|
|
4203
|
+
/**
|
|
4204
|
+
*
|
|
4205
|
+
* @param {SendFriendshipRequestPayload} sendFriendshipRequestPayload
|
|
4206
|
+
* @param {*} [options] Override http request option.
|
|
4207
|
+
* @throws {RequiredError}
|
|
4208
|
+
*/
|
|
4209
|
+
async friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendsResponseDTO>> {
|
|
4210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.friendControllerSendFriendRequest(sendFriendshipRequestPayload, options);
|
|
4211
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4212
|
+
const localVarOperationServerBasePath = operationServerMap['FriendsApi.friendControllerSendFriendRequest']?.[localVarOperationServerIndex]?.url;
|
|
4213
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4214
|
+
},
|
|
4215
|
+
}
|
|
4216
|
+
};
|
|
4217
|
+
|
|
4218
|
+
/**
|
|
4219
|
+
* FriendsApi - factory interface
|
|
4220
|
+
* @export
|
|
4221
|
+
*/
|
|
4222
|
+
export const FriendsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4223
|
+
const localVarFp = FriendsApiFp(configuration)
|
|
4224
|
+
return {
|
|
4225
|
+
/**
|
|
4226
|
+
*
|
|
4227
|
+
* @param {ApproveFriendshipRequestPayload} approveFriendshipRequestPayload
|
|
4228
|
+
* @param {*} [options] Override http request option.
|
|
4229
|
+
* @throws {RequiredError}
|
|
4230
|
+
*/
|
|
4231
|
+
friendControllerApproveFriendRequest(approveFriendshipRequestPayload: ApproveFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
4232
|
+
return localVarFp.friendControllerApproveFriendRequest(approveFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
4233
|
+
},
|
|
4234
|
+
/**
|
|
4235
|
+
*
|
|
4236
|
+
* @param {DeclineFriendshipRequestPayload} declineFriendshipRequestPayload
|
|
4237
|
+
* @param {*} [options] Override http request option.
|
|
4238
|
+
* @throws {RequiredError}
|
|
4239
|
+
*/
|
|
4240
|
+
friendControllerDeclineFriendRequest(declineFriendshipRequestPayload: DeclineFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
4241
|
+
return localVarFp.friendControllerDeclineFriendRequest(declineFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
4242
|
+
},
|
|
4243
|
+
/**
|
|
4244
|
+
*
|
|
4245
|
+
* @param {number} page
|
|
4246
|
+
* @param {number} pageSize
|
|
4247
|
+
* @param {string} [query]
|
|
4248
|
+
* @param {*} [options] Override http request option.
|
|
4249
|
+
* @throws {RequiredError}
|
|
4250
|
+
*/
|
|
4251
|
+
friendControllerFindFriends(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
|
|
4252
|
+
return localVarFp.friendControllerFindFriends(page, pageSize, query, options).then((request) => request(axios, basePath));
|
|
4253
|
+
},
|
|
4254
|
+
/**
|
|
4255
|
+
*
|
|
4256
|
+
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
4257
|
+
* @param {*} [options] Override http request option.
|
|
4258
|
+
* @throws {RequiredError}
|
|
4259
|
+
*/
|
|
4260
|
+
friendControllerGetFriendshipStatus(friendshipStatusCheck: FriendshipStatusCheck, options?: RawAxiosRequestConfig): AxiosPromise<FriendshipStatusDTO> {
|
|
4261
|
+
return localVarFp.friendControllerGetFriendshipStatus(friendshipStatusCheck, options).then((request) => request(axios, basePath));
|
|
4262
|
+
},
|
|
4263
|
+
/**
|
|
4264
|
+
*
|
|
4265
|
+
* @param {*} [options] Override http request option.
|
|
4266
|
+
* @throws {RequiredError}
|
|
4267
|
+
*/
|
|
4268
|
+
friendControllerListMyFriends(options?: RawAxiosRequestConfig): AxiosPromise<FriendsDTO> {
|
|
4269
|
+
return localVarFp.friendControllerListMyFriends(options).then((request) => request(axios, basePath));
|
|
4270
|
+
},
|
|
4271
|
+
/**
|
|
4272
|
+
*
|
|
4273
|
+
* @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
|
|
4274
|
+
* @param {*} [options] Override http request option.
|
|
4275
|
+
* @throws {RequiredError}
|
|
4276
|
+
*/
|
|
4277
|
+
friendControllerRemoveFriendById(removeFriendshipRequestPayload: RemoveFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
4278
|
+
return localVarFp.friendControllerRemoveFriendById(removeFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
4279
|
+
},
|
|
4280
|
+
/**
|
|
4281
|
+
*
|
|
4282
|
+
* @param {SendFriendshipRequestPayload} sendFriendshipRequestPayload
|
|
4283
|
+
* @param {*} [options] Override http request option.
|
|
4284
|
+
* @throws {RequiredError}
|
|
4285
|
+
*/
|
|
4286
|
+
friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig): AxiosPromise<FriendsResponseDTO> {
|
|
4287
|
+
return localVarFp.friendControllerSendFriendRequest(sendFriendshipRequestPayload, options).then((request) => request(axios, basePath));
|
|
4288
|
+
},
|
|
4289
|
+
};
|
|
4290
|
+
};
|
|
4291
|
+
|
|
4292
|
+
/**
|
|
4293
|
+
* FriendsApi - object-oriented interface
|
|
4294
|
+
* @export
|
|
4295
|
+
* @class FriendsApi
|
|
4296
|
+
* @extends {BaseAPI}
|
|
4297
|
+
*/
|
|
4298
|
+
export class FriendsApi extends BaseAPI {
|
|
4299
|
+
/**
|
|
4300
|
+
*
|
|
4301
|
+
* @param {ApproveFriendshipRequestPayload} approveFriendshipRequestPayload
|
|
4302
|
+
* @param {*} [options] Override http request option.
|
|
4303
|
+
* @throws {RequiredError}
|
|
4304
|
+
* @memberof FriendsApi
|
|
4305
|
+
*/
|
|
4306
|
+
public friendControllerApproveFriendRequest(approveFriendshipRequestPayload: ApproveFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
4307
|
+
return FriendsApiFp(this.configuration).friendControllerApproveFriendRequest(approveFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
4308
|
+
}
|
|
4309
|
+
|
|
4310
|
+
/**
|
|
4311
|
+
*
|
|
4312
|
+
* @param {DeclineFriendshipRequestPayload} declineFriendshipRequestPayload
|
|
4313
|
+
* @param {*} [options] Override http request option.
|
|
4314
|
+
* @throws {RequiredError}
|
|
4315
|
+
* @memberof FriendsApi
|
|
4316
|
+
*/
|
|
4317
|
+
public friendControllerDeclineFriendRequest(declineFriendshipRequestPayload: DeclineFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
4318
|
+
return FriendsApiFp(this.configuration).friendControllerDeclineFriendRequest(declineFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4321
|
+
/**
|
|
4322
|
+
*
|
|
4323
|
+
* @param {number} page
|
|
4324
|
+
* @param {number} pageSize
|
|
4325
|
+
* @param {string} [query]
|
|
4326
|
+
* @param {*} [options] Override http request option.
|
|
4327
|
+
* @throws {RequiredError}
|
|
4328
|
+
* @memberof FriendsApi
|
|
4329
|
+
*/
|
|
4330
|
+
public friendControllerFindFriends(page: number, pageSize: number, query?: string, options?: RawAxiosRequestConfig) {
|
|
4331
|
+
return FriendsApiFp(this.configuration).friendControllerFindFriends(page, pageSize, query, options).then((request) => request(this.axios, this.basePath));
|
|
4332
|
+
}
|
|
4333
|
+
|
|
4334
|
+
/**
|
|
4335
|
+
*
|
|
4336
|
+
* @param {FriendshipStatusCheck} friendshipStatusCheck
|
|
4337
|
+
* @param {*} [options] Override http request option.
|
|
4338
|
+
* @throws {RequiredError}
|
|
4339
|
+
* @memberof FriendsApi
|
|
4340
|
+
*/
|
|
4341
|
+
public friendControllerGetFriendshipStatus(friendshipStatusCheck: FriendshipStatusCheck, options?: RawAxiosRequestConfig) {
|
|
4342
|
+
return FriendsApiFp(this.configuration).friendControllerGetFriendshipStatus(friendshipStatusCheck, options).then((request) => request(this.axios, this.basePath));
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
/**
|
|
4346
|
+
*
|
|
4347
|
+
* @param {*} [options] Override http request option.
|
|
4348
|
+
* @throws {RequiredError}
|
|
4349
|
+
* @memberof FriendsApi
|
|
4350
|
+
*/
|
|
4351
|
+
public friendControllerListMyFriends(options?: RawAxiosRequestConfig) {
|
|
4352
|
+
return FriendsApiFp(this.configuration).friendControllerListMyFriends(options).then((request) => request(this.axios, this.basePath));
|
|
4353
|
+
}
|
|
4354
|
+
|
|
4355
|
+
/**
|
|
4356
|
+
*
|
|
4357
|
+
* @param {RemoveFriendshipRequestPayload} removeFriendshipRequestPayload
|
|
4358
|
+
* @param {*} [options] Override http request option.
|
|
4359
|
+
* @throws {RequiredError}
|
|
4360
|
+
* @memberof FriendsApi
|
|
4361
|
+
*/
|
|
4362
|
+
public friendControllerRemoveFriendById(removeFriendshipRequestPayload: RemoveFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
4363
|
+
return FriendsApiFp(this.configuration).friendControllerRemoveFriendById(removeFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
4364
|
+
}
|
|
4365
|
+
|
|
4366
|
+
/**
|
|
4367
|
+
*
|
|
4368
|
+
* @param {SendFriendshipRequestPayload} sendFriendshipRequestPayload
|
|
4369
|
+
* @param {*} [options] Override http request option.
|
|
4370
|
+
* @throws {RequiredError}
|
|
4371
|
+
* @memberof FriendsApi
|
|
4372
|
+
*/
|
|
4373
|
+
public friendControllerSendFriendRequest(sendFriendshipRequestPayload: SendFriendshipRequestPayload, options?: RawAxiosRequestConfig) {
|
|
4374
|
+
return FriendsApiFp(this.configuration).friendControllerSendFriendRequest(sendFriendshipRequestPayload, options).then((request) => request(this.axios, this.basePath));
|
|
4375
|
+
}
|
|
4376
|
+
}
|
|
4377
|
+
|
|
4378
|
+
|
|
4379
|
+
|
|
3701
4380
|
/**
|
|
3702
4381
|
* GcsApi - axios parameter creator
|
|
3703
4382
|
* @export
|