@tennac-booking/sdk 1.0.62 → 1.0.63
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/.openapi-generator/FILES +3 -1
- package/README.md +7 -3
- package/api.ts +425 -95
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +344 -96
- package/dist/api.js +134 -5
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +344 -96
- package/dist/esm/api.js +133 -4
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AddOrganizationRequest.md +22 -0
- package/docs/IUserAttributes.md +10 -0
- package/docs/IUserAttributesOrganizationsInner.md +28 -0
- package/docs/RegisterRequestBody.md +6 -0
- package/docs/{UpdateUserRequestBodyLocation.md → RegisterRequestBodyLocation.md} +3 -3
- package/docs/StaffUserProfileResponse.md +10 -0
- package/docs/UpdateUserRequestBody.md +1 -1
- package/docs/UserProfileResponse.md +10 -0
- package/docs/UsersApi.md +104 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.62
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -73,6 +73,25 @@ export interface AddClubMemberRequest {
|
|
|
73
73
|
*/
|
|
74
74
|
'rights'?: Array<string>;
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @export
|
|
79
|
+
* @interface AddOrganizationRequest
|
|
80
|
+
*/
|
|
81
|
+
export interface AddOrganizationRequest {
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof AddOrganizationRequest
|
|
86
|
+
*/
|
|
87
|
+
'organizationEmail'?: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof AddOrganizationRequest
|
|
92
|
+
*/
|
|
93
|
+
'organizationId'?: string;
|
|
94
|
+
}
|
|
76
95
|
/**
|
|
77
96
|
*
|
|
78
97
|
* @export
|
|
@@ -2824,6 +2843,36 @@ export interface IUserAttributes {
|
|
|
2824
2843
|
* @memberof IUserAttributes
|
|
2825
2844
|
*/
|
|
2826
2845
|
'profilePicture'?: string;
|
|
2846
|
+
/**
|
|
2847
|
+
*
|
|
2848
|
+
* @type {string}
|
|
2849
|
+
* @memberof IUserAttributes
|
|
2850
|
+
*/
|
|
2851
|
+
'resetPasswordToken'?: string;
|
|
2852
|
+
/**
|
|
2853
|
+
*
|
|
2854
|
+
* @type {string}
|
|
2855
|
+
* @memberof IUserAttributes
|
|
2856
|
+
*/
|
|
2857
|
+
'resetPasswordExpires'?: string;
|
|
2858
|
+
/**
|
|
2859
|
+
*
|
|
2860
|
+
* @type {string}
|
|
2861
|
+
* @memberof IUserAttributes
|
|
2862
|
+
*/
|
|
2863
|
+
'emailVerificationToken'?: string;
|
|
2864
|
+
/**
|
|
2865
|
+
*
|
|
2866
|
+
* @type {string}
|
|
2867
|
+
* @memberof IUserAttributes
|
|
2868
|
+
*/
|
|
2869
|
+
'emailVerificationExpires'?: string;
|
|
2870
|
+
/**
|
|
2871
|
+
*
|
|
2872
|
+
* @type {Array<IUserAttributesOrganizationsInner>}
|
|
2873
|
+
* @memberof IUserAttributes
|
|
2874
|
+
*/
|
|
2875
|
+
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
2827
2876
|
/**
|
|
2828
2877
|
*
|
|
2829
2878
|
* @type {boolean}
|
|
@@ -2905,6 +2954,43 @@ export interface IUserAttributes {
|
|
|
2905
2954
|
}
|
|
2906
2955
|
|
|
2907
2956
|
|
|
2957
|
+
/**
|
|
2958
|
+
*
|
|
2959
|
+
* @export
|
|
2960
|
+
* @interface IUserAttributesOrganizationsInner
|
|
2961
|
+
*/
|
|
2962
|
+
export interface IUserAttributesOrganizationsInner {
|
|
2963
|
+
/**
|
|
2964
|
+
*
|
|
2965
|
+
* @type {string}
|
|
2966
|
+
* @memberof IUserAttributesOrganizationsInner
|
|
2967
|
+
*/
|
|
2968
|
+
'verificationExpires'?: string;
|
|
2969
|
+
/**
|
|
2970
|
+
*
|
|
2971
|
+
* @type {string}
|
|
2972
|
+
* @memberof IUserAttributesOrganizationsInner
|
|
2973
|
+
*/
|
|
2974
|
+
'verificationToken'?: string;
|
|
2975
|
+
/**
|
|
2976
|
+
*
|
|
2977
|
+
* @type {boolean}
|
|
2978
|
+
* @memberof IUserAttributesOrganizationsInner
|
|
2979
|
+
*/
|
|
2980
|
+
'verified'?: boolean;
|
|
2981
|
+
/**
|
|
2982
|
+
*
|
|
2983
|
+
* @type {string}
|
|
2984
|
+
* @memberof IUserAttributesOrganizationsInner
|
|
2985
|
+
*/
|
|
2986
|
+
'orgEmail': string;
|
|
2987
|
+
/**
|
|
2988
|
+
*
|
|
2989
|
+
* @type {string}
|
|
2990
|
+
* @memberof IUserAttributesOrganizationsInner
|
|
2991
|
+
*/
|
|
2992
|
+
'clubId': string;
|
|
2993
|
+
}
|
|
2908
2994
|
/**
|
|
2909
2995
|
*
|
|
2910
2996
|
* @export
|
|
@@ -3986,7 +4072,117 @@ export interface RegisterRequestBody {
|
|
|
3986
4072
|
* @memberof RegisterRequestBody
|
|
3987
4073
|
*/
|
|
3988
4074
|
'profilePicture'?: string;
|
|
4075
|
+
/**
|
|
4076
|
+
*
|
|
4077
|
+
* @type {RegisterRequestBodyLocation}
|
|
4078
|
+
* @memberof RegisterRequestBody
|
|
4079
|
+
*/
|
|
4080
|
+
'location'?: RegisterRequestBodyLocation;
|
|
4081
|
+
/**
|
|
4082
|
+
*
|
|
4083
|
+
* @type {string}
|
|
4084
|
+
* @memberof RegisterRequestBody
|
|
4085
|
+
*/
|
|
4086
|
+
'organizationId'?: string;
|
|
4087
|
+
/**
|
|
4088
|
+
*
|
|
4089
|
+
* @type {string}
|
|
4090
|
+
* @memberof RegisterRequestBody
|
|
4091
|
+
*/
|
|
4092
|
+
'organizationEmail'?: string;
|
|
3989
4093
|
}
|
|
4094
|
+
/**
|
|
4095
|
+
*
|
|
4096
|
+
* @export
|
|
4097
|
+
* @interface RegisterRequestBodyLocation
|
|
4098
|
+
*/
|
|
4099
|
+
export interface RegisterRequestBodyLocation {
|
|
4100
|
+
/**
|
|
4101
|
+
*
|
|
4102
|
+
* @type {Array<number>}
|
|
4103
|
+
* @memberof RegisterRequestBodyLocation
|
|
4104
|
+
*/
|
|
4105
|
+
'coordinates': Array<number>;
|
|
4106
|
+
/**
|
|
4107
|
+
*
|
|
4108
|
+
* @type {string}
|
|
4109
|
+
* @memberof RegisterRequestBodyLocation
|
|
4110
|
+
*/
|
|
4111
|
+
'mapboxId'?: string;
|
|
4112
|
+
/**
|
|
4113
|
+
*
|
|
4114
|
+
* @type {Array<string>}
|
|
4115
|
+
* @memberof RegisterRequestBodyLocation
|
|
4116
|
+
*/
|
|
4117
|
+
'mapboxPlaceType'?: Array<string>;
|
|
4118
|
+
/**
|
|
4119
|
+
*
|
|
4120
|
+
* @type {string}
|
|
4121
|
+
* @memberof RegisterRequestBodyLocation
|
|
4122
|
+
*/
|
|
4123
|
+
'mapboxPlaceName'?: string;
|
|
4124
|
+
/**
|
|
4125
|
+
*
|
|
4126
|
+
* @type {string}
|
|
4127
|
+
* @memberof RegisterRequestBodyLocation
|
|
4128
|
+
*/
|
|
4129
|
+
'mapboxAddress'?: string;
|
|
4130
|
+
/**
|
|
4131
|
+
*
|
|
4132
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
4133
|
+
* @memberof RegisterRequestBodyLocation
|
|
4134
|
+
*/
|
|
4135
|
+
'mapboxContext'?: Array<{ [key: string]: any; }>;
|
|
4136
|
+
/**
|
|
4137
|
+
* Construct a type with a set of properties K of type T
|
|
4138
|
+
* @type {{ [key: string]: object; }}
|
|
4139
|
+
* @memberof RegisterRequestBodyLocation
|
|
4140
|
+
*/
|
|
4141
|
+
'mapboxRaw'?: { [key: string]: object; };
|
|
4142
|
+
/**
|
|
4143
|
+
*
|
|
4144
|
+
* @type {string}
|
|
4145
|
+
* @memberof RegisterRequestBodyLocation
|
|
4146
|
+
*/
|
|
4147
|
+
'city'?: string;
|
|
4148
|
+
/**
|
|
4149
|
+
*
|
|
4150
|
+
* @type {string}
|
|
4151
|
+
* @memberof RegisterRequestBodyLocation
|
|
4152
|
+
*/
|
|
4153
|
+
'country'?: string;
|
|
4154
|
+
/**
|
|
4155
|
+
*
|
|
4156
|
+
* @type {string}
|
|
4157
|
+
* @memberof RegisterRequestBodyLocation
|
|
4158
|
+
*/
|
|
4159
|
+
'postalCode'?: string;
|
|
4160
|
+
/**
|
|
4161
|
+
*
|
|
4162
|
+
* @type {string}
|
|
4163
|
+
* @memberof RegisterRequestBodyLocation
|
|
4164
|
+
*/
|
|
4165
|
+
'state'?: string;
|
|
4166
|
+
/**
|
|
4167
|
+
*
|
|
4168
|
+
* @type {string}
|
|
4169
|
+
* @memberof RegisterRequestBodyLocation
|
|
4170
|
+
*/
|
|
4171
|
+
'address'?: string;
|
|
4172
|
+
/**
|
|
4173
|
+
*
|
|
4174
|
+
* @type {string}
|
|
4175
|
+
* @memberof RegisterRequestBodyLocation
|
|
4176
|
+
*/
|
|
4177
|
+
'type'?: RegisterRequestBodyLocationTypeEnum;
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
export const RegisterRequestBodyLocationTypeEnum = {
|
|
4181
|
+
Point: 'Point'
|
|
4182
|
+
} as const;
|
|
4183
|
+
|
|
4184
|
+
export type RegisterRequestBodyLocationTypeEnum = typeof RegisterRequestBodyLocationTypeEnum[keyof typeof RegisterRequestBodyLocationTypeEnum];
|
|
4185
|
+
|
|
3990
4186
|
/**
|
|
3991
4187
|
*
|
|
3992
4188
|
* @export
|
|
@@ -4332,6 +4528,36 @@ export interface StaffUserProfileResponse {
|
|
|
4332
4528
|
* @memberof StaffUserProfileResponse
|
|
4333
4529
|
*/
|
|
4334
4530
|
'profilePicture'?: string;
|
|
4531
|
+
/**
|
|
4532
|
+
*
|
|
4533
|
+
* @type {string}
|
|
4534
|
+
* @memberof StaffUserProfileResponse
|
|
4535
|
+
*/
|
|
4536
|
+
'resetPasswordToken'?: string;
|
|
4537
|
+
/**
|
|
4538
|
+
*
|
|
4539
|
+
* @type {string}
|
|
4540
|
+
* @memberof StaffUserProfileResponse
|
|
4541
|
+
*/
|
|
4542
|
+
'resetPasswordExpires'?: string;
|
|
4543
|
+
/**
|
|
4544
|
+
*
|
|
4545
|
+
* @type {string}
|
|
4546
|
+
* @memberof StaffUserProfileResponse
|
|
4547
|
+
*/
|
|
4548
|
+
'emailVerificationToken'?: string;
|
|
4549
|
+
/**
|
|
4550
|
+
*
|
|
4551
|
+
* @type {string}
|
|
4552
|
+
* @memberof StaffUserProfileResponse
|
|
4553
|
+
*/
|
|
4554
|
+
'emailVerificationExpires'?: string;
|
|
4555
|
+
/**
|
|
4556
|
+
*
|
|
4557
|
+
* @type {Array<IUserAttributesOrganizationsInner>}
|
|
4558
|
+
* @memberof StaffUserProfileResponse
|
|
4559
|
+
*/
|
|
4560
|
+
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
4335
4561
|
/**
|
|
4336
4562
|
*
|
|
4337
4563
|
* @type {boolean}
|
|
@@ -6142,10 +6368,10 @@ export interface UpdateUserRequestBody {
|
|
|
6142
6368
|
'description'?: string;
|
|
6143
6369
|
/**
|
|
6144
6370
|
*
|
|
6145
|
-
* @type {
|
|
6371
|
+
* @type {RegisterRequestBodyLocation}
|
|
6146
6372
|
* @memberof UpdateUserRequestBody
|
|
6147
6373
|
*/
|
|
6148
|
-
'location'?:
|
|
6374
|
+
'location'?: RegisterRequestBodyLocation;
|
|
6149
6375
|
}
|
|
6150
6376
|
/**
|
|
6151
6377
|
*
|
|
@@ -6166,98 +6392,6 @@ export interface UpdateUserRequestBodyLevelBySportsInner {
|
|
|
6166
6392
|
*/
|
|
6167
6393
|
'sport': string;
|
|
6168
6394
|
}
|
|
6169
|
-
/**
|
|
6170
|
-
*
|
|
6171
|
-
* @export
|
|
6172
|
-
* @interface UpdateUserRequestBodyLocation
|
|
6173
|
-
*/
|
|
6174
|
-
export interface UpdateUserRequestBodyLocation {
|
|
6175
|
-
/**
|
|
6176
|
-
*
|
|
6177
|
-
* @type {Array<number>}
|
|
6178
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6179
|
-
*/
|
|
6180
|
-
'coordinates': Array<number>;
|
|
6181
|
-
/**
|
|
6182
|
-
*
|
|
6183
|
-
* @type {string}
|
|
6184
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6185
|
-
*/
|
|
6186
|
-
'mapboxId'?: string;
|
|
6187
|
-
/**
|
|
6188
|
-
*
|
|
6189
|
-
* @type {Array<string>}
|
|
6190
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6191
|
-
*/
|
|
6192
|
-
'mapboxPlaceType'?: Array<string>;
|
|
6193
|
-
/**
|
|
6194
|
-
*
|
|
6195
|
-
* @type {string}
|
|
6196
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6197
|
-
*/
|
|
6198
|
-
'mapboxPlaceName'?: string;
|
|
6199
|
-
/**
|
|
6200
|
-
*
|
|
6201
|
-
* @type {string}
|
|
6202
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6203
|
-
*/
|
|
6204
|
-
'mapboxAddress'?: string;
|
|
6205
|
-
/**
|
|
6206
|
-
*
|
|
6207
|
-
* @type {Array<{ [key: string]: any; }>}
|
|
6208
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6209
|
-
*/
|
|
6210
|
-
'mapboxContext'?: Array<{ [key: string]: any; }>;
|
|
6211
|
-
/**
|
|
6212
|
-
* Construct a type with a set of properties K of type T
|
|
6213
|
-
* @type {{ [key: string]: object; }}
|
|
6214
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6215
|
-
*/
|
|
6216
|
-
'mapboxRaw'?: { [key: string]: object; };
|
|
6217
|
-
/**
|
|
6218
|
-
*
|
|
6219
|
-
* @type {string}
|
|
6220
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6221
|
-
*/
|
|
6222
|
-
'city'?: string;
|
|
6223
|
-
/**
|
|
6224
|
-
*
|
|
6225
|
-
* @type {string}
|
|
6226
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6227
|
-
*/
|
|
6228
|
-
'country'?: string;
|
|
6229
|
-
/**
|
|
6230
|
-
*
|
|
6231
|
-
* @type {string}
|
|
6232
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6233
|
-
*/
|
|
6234
|
-
'postalCode'?: string;
|
|
6235
|
-
/**
|
|
6236
|
-
*
|
|
6237
|
-
* @type {string}
|
|
6238
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6239
|
-
*/
|
|
6240
|
-
'state'?: string;
|
|
6241
|
-
/**
|
|
6242
|
-
*
|
|
6243
|
-
* @type {string}
|
|
6244
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6245
|
-
*/
|
|
6246
|
-
'address'?: string;
|
|
6247
|
-
/**
|
|
6248
|
-
*
|
|
6249
|
-
* @type {string}
|
|
6250
|
-
* @memberof UpdateUserRequestBodyLocation
|
|
6251
|
-
*/
|
|
6252
|
-
'type'?: UpdateUserRequestBodyLocationTypeEnum;
|
|
6253
|
-
}
|
|
6254
|
-
|
|
6255
|
-
export const UpdateUserRequestBodyLocationTypeEnum = {
|
|
6256
|
-
Point: 'Point'
|
|
6257
|
-
} as const;
|
|
6258
|
-
|
|
6259
|
-
export type UpdateUserRequestBodyLocationTypeEnum = typeof UpdateUserRequestBodyLocationTypeEnum[keyof typeof UpdateUserRequestBodyLocationTypeEnum];
|
|
6260
|
-
|
|
6261
6395
|
/**
|
|
6262
6396
|
*
|
|
6263
6397
|
* @export
|
|
@@ -6546,6 +6680,36 @@ export interface UserProfileResponse {
|
|
|
6546
6680
|
* @memberof UserProfileResponse
|
|
6547
6681
|
*/
|
|
6548
6682
|
'profilePicture'?: string;
|
|
6683
|
+
/**
|
|
6684
|
+
*
|
|
6685
|
+
* @type {string}
|
|
6686
|
+
* @memberof UserProfileResponse
|
|
6687
|
+
*/
|
|
6688
|
+
'resetPasswordToken'?: string;
|
|
6689
|
+
/**
|
|
6690
|
+
*
|
|
6691
|
+
* @type {string}
|
|
6692
|
+
* @memberof UserProfileResponse
|
|
6693
|
+
*/
|
|
6694
|
+
'resetPasswordExpires'?: string;
|
|
6695
|
+
/**
|
|
6696
|
+
*
|
|
6697
|
+
* @type {string}
|
|
6698
|
+
* @memberof UserProfileResponse
|
|
6699
|
+
*/
|
|
6700
|
+
'emailVerificationToken'?: string;
|
|
6701
|
+
/**
|
|
6702
|
+
*
|
|
6703
|
+
* @type {string}
|
|
6704
|
+
* @memberof UserProfileResponse
|
|
6705
|
+
*/
|
|
6706
|
+
'emailVerificationExpires'?: string;
|
|
6707
|
+
/**
|
|
6708
|
+
*
|
|
6709
|
+
* @type {Array<IUserAttributesOrganizationsInner>}
|
|
6710
|
+
* @memberof UserProfileResponse
|
|
6711
|
+
*/
|
|
6712
|
+
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
6549
6713
|
/**
|
|
6550
6714
|
*
|
|
6551
6715
|
* @type {boolean}
|
|
@@ -14844,6 +15008,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
14844
15008
|
options: localVarRequestOptions,
|
|
14845
15009
|
};
|
|
14846
15010
|
},
|
|
15011
|
+
/**
|
|
15012
|
+
*
|
|
15013
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
15014
|
+
* @param {*} [options] Override http request option.
|
|
15015
|
+
* @throws {RequiredError}
|
|
15016
|
+
*/
|
|
15017
|
+
addOrganization: async (addOrganizationRequest: AddOrganizationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15018
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
15019
|
+
assertParamExists('addOrganization', 'addOrganizationRequest', addOrganizationRequest)
|
|
15020
|
+
const localVarPath = `/api/users/me/add-organization`;
|
|
15021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15023
|
+
let baseOptions;
|
|
15024
|
+
if (configuration) {
|
|
15025
|
+
baseOptions = configuration.baseOptions;
|
|
15026
|
+
}
|
|
15027
|
+
|
|
15028
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15029
|
+
const localVarHeaderParameter = {} as any;
|
|
15030
|
+
const localVarQueryParameter = {} as any;
|
|
15031
|
+
|
|
15032
|
+
// authentication bearerAuth required
|
|
15033
|
+
// http bearer authentication required
|
|
15034
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15035
|
+
|
|
15036
|
+
|
|
15037
|
+
|
|
15038
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15039
|
+
|
|
15040
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15041
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15042
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15043
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration)
|
|
15044
|
+
|
|
15045
|
+
return {
|
|
15046
|
+
url: toPathString(localVarUrlObj),
|
|
15047
|
+
options: localVarRequestOptions,
|
|
15048
|
+
};
|
|
15049
|
+
},
|
|
14847
15050
|
/**
|
|
14848
15051
|
*
|
|
14849
15052
|
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
@@ -15995,6 +16198,41 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15995
16198
|
|
|
15996
16199
|
|
|
15997
16200
|
|
|
16201
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16202
|
+
|
|
16203
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16204
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16205
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16206
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailRequest, localVarRequestOptions, configuration)
|
|
16207
|
+
|
|
16208
|
+
return {
|
|
16209
|
+
url: toPathString(localVarUrlObj),
|
|
16210
|
+
options: localVarRequestOptions,
|
|
16211
|
+
};
|
|
16212
|
+
},
|
|
16213
|
+
/**
|
|
16214
|
+
*
|
|
16215
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
16216
|
+
* @param {*} [options] Override http request option.
|
|
16217
|
+
* @throws {RequiredError}
|
|
16218
|
+
*/
|
|
16219
|
+
verifyOrganization: async (verifyEmailRequest: VerifyEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16220
|
+
// verify required parameter 'verifyEmailRequest' is not null or undefined
|
|
16221
|
+
assertParamExists('verifyOrganization', 'verifyEmailRequest', verifyEmailRequest)
|
|
16222
|
+
const localVarPath = `/api/users/verify-organization`;
|
|
16223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16224
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16225
|
+
let baseOptions;
|
|
16226
|
+
if (configuration) {
|
|
16227
|
+
baseOptions = configuration.baseOptions;
|
|
16228
|
+
}
|
|
16229
|
+
|
|
16230
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16231
|
+
const localVarHeaderParameter = {} as any;
|
|
16232
|
+
const localVarQueryParameter = {} as any;
|
|
16233
|
+
|
|
16234
|
+
|
|
16235
|
+
|
|
15998
16236
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15999
16237
|
|
|
16000
16238
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16041,6 +16279,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16041
16279
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.addFavoritePlayer']?.[localVarOperationServerIndex]?.url;
|
|
16042
16280
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16043
16281
|
},
|
|
16282
|
+
/**
|
|
16283
|
+
*
|
|
16284
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
16285
|
+
* @param {*} [options] Override http request option.
|
|
16286
|
+
* @throws {RequiredError}
|
|
16287
|
+
*/
|
|
16288
|
+
async addOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
16289
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganization(addOrganizationRequest, options);
|
|
16290
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16291
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.addOrganization']?.[localVarOperationServerIndex]?.url;
|
|
16292
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16293
|
+
},
|
|
16044
16294
|
/**
|
|
16045
16295
|
*
|
|
16046
16296
|
* @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
|
|
@@ -16415,6 +16665,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16415
16665
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyEmail']?.[localVarOperationServerIndex]?.url;
|
|
16416
16666
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16417
16667
|
},
|
|
16668
|
+
/**
|
|
16669
|
+
*
|
|
16670
|
+
* @param {VerifyEmailRequest} verifyEmailRequest
|
|
16671
|
+
* @param {*} [options] Override http request option.
|
|
16672
|
+
* @throws {RequiredError}
|
|
16673
|
+
*/
|
|
16674
|
+
async verifyOrganization(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
|
|
16675
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrganization(verifyEmailRequest, options);
|
|
16676
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16677
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyOrganization']?.[localVarOperationServerIndex]?.url;
|
|
16678
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16679
|
+
},
|
|
16418
16680
|
}
|
|
16419
16681
|
};
|
|
16420
16682
|
|
|
@@ -16443,6 +16705,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
16443
16705
|
addFavoritePlayer(requestParameters: UsersApiAddFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayerMutationResponse> {
|
|
16444
16706
|
return localVarFp.addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
16445
16707
|
},
|
|
16708
|
+
/**
|
|
16709
|
+
*
|
|
16710
|
+
* @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
|
|
16711
|
+
* @param {*} [options] Override http request option.
|
|
16712
|
+
* @throws {RequiredError}
|
|
16713
|
+
*/
|
|
16714
|
+
addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16715
|
+
return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
16716
|
+
},
|
|
16446
16717
|
/**
|
|
16447
16718
|
*
|
|
16448
16719
|
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
@@ -16715,6 +16986,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
16715
16986
|
verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16716
16987
|
return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
16717
16988
|
},
|
|
16989
|
+
/**
|
|
16990
|
+
*
|
|
16991
|
+
* @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
|
|
16992
|
+
* @param {*} [options] Override http request option.
|
|
16993
|
+
* @throws {RequiredError}
|
|
16994
|
+
*/
|
|
16995
|
+
verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
|
|
16996
|
+
return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
16997
|
+
},
|
|
16718
16998
|
};
|
|
16719
16999
|
};
|
|
16720
17000
|
|
|
@@ -16746,6 +17026,20 @@ export interface UsersApiAddFavoritePlayerRequest {
|
|
|
16746
17026
|
readonly favoritePlayerRequestBody: FavoritePlayerRequestBody
|
|
16747
17027
|
}
|
|
16748
17028
|
|
|
17029
|
+
/**
|
|
17030
|
+
* Request parameters for addOrganization operation in UsersApi.
|
|
17031
|
+
* @export
|
|
17032
|
+
* @interface UsersApiAddOrganizationRequest
|
|
17033
|
+
*/
|
|
17034
|
+
export interface UsersApiAddOrganizationRequest {
|
|
17035
|
+
/**
|
|
17036
|
+
*
|
|
17037
|
+
* @type {AddOrganizationRequest}
|
|
17038
|
+
* @memberof UsersApiAddOrganization
|
|
17039
|
+
*/
|
|
17040
|
+
readonly addOrganizationRequest: AddOrganizationRequest
|
|
17041
|
+
}
|
|
17042
|
+
|
|
16749
17043
|
/**
|
|
16750
17044
|
* Request parameters for addPaymentMethodSetup operation in UsersApi.
|
|
16751
17045
|
* @export
|
|
@@ -17145,6 +17439,20 @@ export interface UsersApiVerifyEmailRequest {
|
|
|
17145
17439
|
readonly verifyEmailRequest: VerifyEmailRequest
|
|
17146
17440
|
}
|
|
17147
17441
|
|
|
17442
|
+
/**
|
|
17443
|
+
* Request parameters for verifyOrganization operation in UsersApi.
|
|
17444
|
+
* @export
|
|
17445
|
+
* @interface UsersApiVerifyOrganizationRequest
|
|
17446
|
+
*/
|
|
17447
|
+
export interface UsersApiVerifyOrganizationRequest {
|
|
17448
|
+
/**
|
|
17449
|
+
*
|
|
17450
|
+
* @type {VerifyEmailRequest}
|
|
17451
|
+
* @memberof UsersApiVerifyOrganization
|
|
17452
|
+
*/
|
|
17453
|
+
readonly verifyEmailRequest: VerifyEmailRequest
|
|
17454
|
+
}
|
|
17455
|
+
|
|
17148
17456
|
/**
|
|
17149
17457
|
* UsersApi - object-oriented interface
|
|
17150
17458
|
* @export
|
|
@@ -17174,6 +17482,17 @@ export class UsersApi extends BaseAPI {
|
|
|
17174
17482
|
return UsersApiFp(this.configuration).addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
17175
17483
|
}
|
|
17176
17484
|
|
|
17485
|
+
/**
|
|
17486
|
+
*
|
|
17487
|
+
* @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
|
|
17488
|
+
* @param {*} [options] Override http request option.
|
|
17489
|
+
* @throws {RequiredError}
|
|
17490
|
+
* @memberof UsersApi
|
|
17491
|
+
*/
|
|
17492
|
+
public addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig) {
|
|
17493
|
+
return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17494
|
+
}
|
|
17495
|
+
|
|
17177
17496
|
/**
|
|
17178
17497
|
*
|
|
17179
17498
|
* @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
@@ -17507,6 +17826,17 @@ export class UsersApi extends BaseAPI {
|
|
|
17507
17826
|
public verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig) {
|
|
17508
17827
|
return UsersApiFp(this.configuration).verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17509
17828
|
}
|
|
17829
|
+
|
|
17830
|
+
/**
|
|
17831
|
+
*
|
|
17832
|
+
* @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
|
|
17833
|
+
* @param {*} [options] Override http request option.
|
|
17834
|
+
* @throws {RequiredError}
|
|
17835
|
+
* @memberof UsersApi
|
|
17836
|
+
*/
|
|
17837
|
+
public verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig) {
|
|
17838
|
+
return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17839
|
+
}
|
|
17510
17840
|
}
|
|
17511
17841
|
|
|
17512
17842
|
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED