@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/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.61
5
+ * The version of the OpenAPI document: 1.0.62
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -63,6 +63,25 @@ export interface AddClubMemberRequest {
63
63
  */
64
64
  'rights'?: Array<string>;
65
65
  }
66
+ /**
67
+ *
68
+ * @export
69
+ * @interface AddOrganizationRequest
70
+ */
71
+ export interface AddOrganizationRequest {
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof AddOrganizationRequest
76
+ */
77
+ 'organizationEmail'?: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof AddOrganizationRequest
82
+ */
83
+ 'organizationId'?: string;
84
+ }
66
85
  /**
67
86
  *
68
87
  * @export
@@ -2775,6 +2794,36 @@ export interface IUserAttributes {
2775
2794
  * @memberof IUserAttributes
2776
2795
  */
2777
2796
  'profilePicture'?: string;
2797
+ /**
2798
+ *
2799
+ * @type {string}
2800
+ * @memberof IUserAttributes
2801
+ */
2802
+ 'resetPasswordToken'?: string;
2803
+ /**
2804
+ *
2805
+ * @type {string}
2806
+ * @memberof IUserAttributes
2807
+ */
2808
+ 'resetPasswordExpires'?: string;
2809
+ /**
2810
+ *
2811
+ * @type {string}
2812
+ * @memberof IUserAttributes
2813
+ */
2814
+ 'emailVerificationToken'?: string;
2815
+ /**
2816
+ *
2817
+ * @type {string}
2818
+ * @memberof IUserAttributes
2819
+ */
2820
+ 'emailVerificationExpires'?: string;
2821
+ /**
2822
+ *
2823
+ * @type {Array<IUserAttributesOrganizationsInner>}
2824
+ * @memberof IUserAttributes
2825
+ */
2826
+ 'organizations'?: Array<IUserAttributesOrganizationsInner>;
2778
2827
  /**
2779
2828
  *
2780
2829
  * @type {boolean}
@@ -2856,6 +2905,43 @@ export interface IUserAttributes {
2856
2905
  [key: string]: any;
2857
2906
  };
2858
2907
  }
2908
+ /**
2909
+ *
2910
+ * @export
2911
+ * @interface IUserAttributesOrganizationsInner
2912
+ */
2913
+ export interface IUserAttributesOrganizationsInner {
2914
+ /**
2915
+ *
2916
+ * @type {string}
2917
+ * @memberof IUserAttributesOrganizationsInner
2918
+ */
2919
+ 'verificationExpires'?: string;
2920
+ /**
2921
+ *
2922
+ * @type {string}
2923
+ * @memberof IUserAttributesOrganizationsInner
2924
+ */
2925
+ 'verificationToken'?: string;
2926
+ /**
2927
+ *
2928
+ * @type {boolean}
2929
+ * @memberof IUserAttributesOrganizationsInner
2930
+ */
2931
+ 'verified'?: boolean;
2932
+ /**
2933
+ *
2934
+ * @type {string}
2935
+ * @memberof IUserAttributesOrganizationsInner
2936
+ */
2937
+ 'orgEmail': string;
2938
+ /**
2939
+ *
2940
+ * @type {string}
2941
+ * @memberof IUserAttributesOrganizationsInner
2942
+ */
2943
+ 'clubId': string;
2944
+ }
2859
2945
  /**
2860
2946
  *
2861
2947
  * @export
@@ -3926,7 +4012,118 @@ export interface RegisterRequestBody {
3926
4012
  * @memberof RegisterRequestBody
3927
4013
  */
3928
4014
  'profilePicture'?: string;
4015
+ /**
4016
+ *
4017
+ * @type {RegisterRequestBodyLocation}
4018
+ * @memberof RegisterRequestBody
4019
+ */
4020
+ 'location'?: RegisterRequestBodyLocation;
4021
+ /**
4022
+ *
4023
+ * @type {string}
4024
+ * @memberof RegisterRequestBody
4025
+ */
4026
+ 'organizationId'?: string;
4027
+ /**
4028
+ *
4029
+ * @type {string}
4030
+ * @memberof RegisterRequestBody
4031
+ */
4032
+ 'organizationEmail'?: string;
4033
+ }
4034
+ /**
4035
+ *
4036
+ * @export
4037
+ * @interface RegisterRequestBodyLocation
4038
+ */
4039
+ export interface RegisterRequestBodyLocation {
4040
+ /**
4041
+ *
4042
+ * @type {Array<number>}
4043
+ * @memberof RegisterRequestBodyLocation
4044
+ */
4045
+ 'coordinates': Array<number>;
4046
+ /**
4047
+ *
4048
+ * @type {string}
4049
+ * @memberof RegisterRequestBodyLocation
4050
+ */
4051
+ 'mapboxId'?: string;
4052
+ /**
4053
+ *
4054
+ * @type {Array<string>}
4055
+ * @memberof RegisterRequestBodyLocation
4056
+ */
4057
+ 'mapboxPlaceType'?: Array<string>;
4058
+ /**
4059
+ *
4060
+ * @type {string}
4061
+ * @memberof RegisterRequestBodyLocation
4062
+ */
4063
+ 'mapboxPlaceName'?: string;
4064
+ /**
4065
+ *
4066
+ * @type {string}
4067
+ * @memberof RegisterRequestBodyLocation
4068
+ */
4069
+ 'mapboxAddress'?: string;
4070
+ /**
4071
+ *
4072
+ * @type {Array<{ [key: string]: any; }>}
4073
+ * @memberof RegisterRequestBodyLocation
4074
+ */
4075
+ 'mapboxContext'?: Array<{
4076
+ [key: string]: any;
4077
+ }>;
4078
+ /**
4079
+ * Construct a type with a set of properties K of type T
4080
+ * @type {{ [key: string]: object; }}
4081
+ * @memberof RegisterRequestBodyLocation
4082
+ */
4083
+ 'mapboxRaw'?: {
4084
+ [key: string]: object;
4085
+ };
4086
+ /**
4087
+ *
4088
+ * @type {string}
4089
+ * @memberof RegisterRequestBodyLocation
4090
+ */
4091
+ 'city'?: string;
4092
+ /**
4093
+ *
4094
+ * @type {string}
4095
+ * @memberof RegisterRequestBodyLocation
4096
+ */
4097
+ 'country'?: string;
4098
+ /**
4099
+ *
4100
+ * @type {string}
4101
+ * @memberof RegisterRequestBodyLocation
4102
+ */
4103
+ 'postalCode'?: string;
4104
+ /**
4105
+ *
4106
+ * @type {string}
4107
+ * @memberof RegisterRequestBodyLocation
4108
+ */
4109
+ 'state'?: string;
4110
+ /**
4111
+ *
4112
+ * @type {string}
4113
+ * @memberof RegisterRequestBodyLocation
4114
+ */
4115
+ 'address'?: string;
4116
+ /**
4117
+ *
4118
+ * @type {string}
4119
+ * @memberof RegisterRequestBodyLocation
4120
+ */
4121
+ 'type'?: RegisterRequestBodyLocationTypeEnum;
3929
4122
  }
4123
+ export declare const RegisterRequestBodyLocationTypeEnum: {
4124
+ readonly Point: "Point";
4125
+ };
4126
+ export type RegisterRequestBodyLocationTypeEnum = typeof RegisterRequestBodyLocationTypeEnum[keyof typeof RegisterRequestBodyLocationTypeEnum];
3930
4127
  /**
3931
4128
  *
3932
4129
  * @export
@@ -4272,6 +4469,36 @@ export interface StaffUserProfileResponse {
4272
4469
  * @memberof StaffUserProfileResponse
4273
4470
  */
4274
4471
  'profilePicture'?: string;
4472
+ /**
4473
+ *
4474
+ * @type {string}
4475
+ * @memberof StaffUserProfileResponse
4476
+ */
4477
+ 'resetPasswordToken'?: string;
4478
+ /**
4479
+ *
4480
+ * @type {string}
4481
+ * @memberof StaffUserProfileResponse
4482
+ */
4483
+ 'resetPasswordExpires'?: string;
4484
+ /**
4485
+ *
4486
+ * @type {string}
4487
+ * @memberof StaffUserProfileResponse
4488
+ */
4489
+ 'emailVerificationToken'?: string;
4490
+ /**
4491
+ *
4492
+ * @type {string}
4493
+ * @memberof StaffUserProfileResponse
4494
+ */
4495
+ 'emailVerificationExpires'?: string;
4496
+ /**
4497
+ *
4498
+ * @type {Array<IUserAttributesOrganizationsInner>}
4499
+ * @memberof StaffUserProfileResponse
4500
+ */
4501
+ 'organizations'?: Array<IUserAttributesOrganizationsInner>;
4275
4502
  /**
4276
4503
  *
4277
4504
  * @type {boolean}
@@ -6029,10 +6256,10 @@ export interface UpdateUserRequestBody {
6029
6256
  'description'?: string;
6030
6257
  /**
6031
6258
  *
6032
- * @type {UpdateUserRequestBodyLocation}
6259
+ * @type {RegisterRequestBodyLocation}
6033
6260
  * @memberof UpdateUserRequestBody
6034
6261
  */
6035
- 'location'?: UpdateUserRequestBodyLocation;
6262
+ 'location'?: RegisterRequestBodyLocation;
6036
6263
  }
6037
6264
  /**
6038
6265
  *
@@ -6053,99 +6280,6 @@ export interface UpdateUserRequestBodyLevelBySportsInner {
6053
6280
  */
6054
6281
  'sport': string;
6055
6282
  }
6056
- /**
6057
- *
6058
- * @export
6059
- * @interface UpdateUserRequestBodyLocation
6060
- */
6061
- export interface UpdateUserRequestBodyLocation {
6062
- /**
6063
- *
6064
- * @type {Array<number>}
6065
- * @memberof UpdateUserRequestBodyLocation
6066
- */
6067
- 'coordinates': Array<number>;
6068
- /**
6069
- *
6070
- * @type {string}
6071
- * @memberof UpdateUserRequestBodyLocation
6072
- */
6073
- 'mapboxId'?: string;
6074
- /**
6075
- *
6076
- * @type {Array<string>}
6077
- * @memberof UpdateUserRequestBodyLocation
6078
- */
6079
- 'mapboxPlaceType'?: Array<string>;
6080
- /**
6081
- *
6082
- * @type {string}
6083
- * @memberof UpdateUserRequestBodyLocation
6084
- */
6085
- 'mapboxPlaceName'?: string;
6086
- /**
6087
- *
6088
- * @type {string}
6089
- * @memberof UpdateUserRequestBodyLocation
6090
- */
6091
- 'mapboxAddress'?: string;
6092
- /**
6093
- *
6094
- * @type {Array<{ [key: string]: any; }>}
6095
- * @memberof UpdateUserRequestBodyLocation
6096
- */
6097
- 'mapboxContext'?: Array<{
6098
- [key: string]: any;
6099
- }>;
6100
- /**
6101
- * Construct a type with a set of properties K of type T
6102
- * @type {{ [key: string]: object; }}
6103
- * @memberof UpdateUserRequestBodyLocation
6104
- */
6105
- 'mapboxRaw'?: {
6106
- [key: string]: object;
6107
- };
6108
- /**
6109
- *
6110
- * @type {string}
6111
- * @memberof UpdateUserRequestBodyLocation
6112
- */
6113
- 'city'?: string;
6114
- /**
6115
- *
6116
- * @type {string}
6117
- * @memberof UpdateUserRequestBodyLocation
6118
- */
6119
- 'country'?: string;
6120
- /**
6121
- *
6122
- * @type {string}
6123
- * @memberof UpdateUserRequestBodyLocation
6124
- */
6125
- 'postalCode'?: string;
6126
- /**
6127
- *
6128
- * @type {string}
6129
- * @memberof UpdateUserRequestBodyLocation
6130
- */
6131
- 'state'?: string;
6132
- /**
6133
- *
6134
- * @type {string}
6135
- * @memberof UpdateUserRequestBodyLocation
6136
- */
6137
- 'address'?: string;
6138
- /**
6139
- *
6140
- * @type {string}
6141
- * @memberof UpdateUserRequestBodyLocation
6142
- */
6143
- 'type'?: UpdateUserRequestBodyLocationTypeEnum;
6144
- }
6145
- export declare const UpdateUserRequestBodyLocationTypeEnum: {
6146
- readonly Point: "Point";
6147
- };
6148
- export type UpdateUserRequestBodyLocationTypeEnum = typeof UpdateUserRequestBodyLocationTypeEnum[keyof typeof UpdateUserRequestBodyLocationTypeEnum];
6149
6283
  /**
6150
6284
  *
6151
6285
  * @export
@@ -6433,6 +6567,36 @@ export interface UserProfileResponse {
6433
6567
  * @memberof UserProfileResponse
6434
6568
  */
6435
6569
  'profilePicture'?: string;
6570
+ /**
6571
+ *
6572
+ * @type {string}
6573
+ * @memberof UserProfileResponse
6574
+ */
6575
+ 'resetPasswordToken'?: string;
6576
+ /**
6577
+ *
6578
+ * @type {string}
6579
+ * @memberof UserProfileResponse
6580
+ */
6581
+ 'resetPasswordExpires'?: string;
6582
+ /**
6583
+ *
6584
+ * @type {string}
6585
+ * @memberof UserProfileResponse
6586
+ */
6587
+ 'emailVerificationToken'?: string;
6588
+ /**
6589
+ *
6590
+ * @type {string}
6591
+ * @memberof UserProfileResponse
6592
+ */
6593
+ 'emailVerificationExpires'?: string;
6594
+ /**
6595
+ *
6596
+ * @type {Array<IUserAttributesOrganizationsInner>}
6597
+ * @memberof UserProfileResponse
6598
+ */
6599
+ 'organizations'?: Array<IUserAttributesOrganizationsInner>;
6436
6600
  /**
6437
6601
  *
6438
6602
  * @type {boolean}
@@ -10708,6 +10872,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
10708
10872
  * @throws {RequiredError}
10709
10873
  */
10710
10874
  addFavoritePlayer: (favoritePlayerRequestBody: FavoritePlayerRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10875
+ /**
10876
+ *
10877
+ * @param {AddOrganizationRequest} addOrganizationRequest
10878
+ * @param {*} [options] Override http request option.
10879
+ * @throws {RequiredError}
10880
+ */
10881
+ addOrganization: (addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10711
10882
  /**
10712
10883
  *
10713
10884
  * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
@@ -10927,6 +11098,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
10927
11098
  * @throws {RequiredError}
10928
11099
  */
10929
11100
  verifyEmail: (verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11101
+ /**
11102
+ *
11103
+ * @param {VerifyEmailRequest} verifyEmailRequest
11104
+ * @param {*} [options] Override http request option.
11105
+ * @throws {RequiredError}
11106
+ */
11107
+ verifyOrganization: (verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
10930
11108
  };
10931
11109
  /**
10932
11110
  * UsersApi - functional programming interface
@@ -10947,6 +11125,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
10947
11125
  * @throws {RequiredError}
10948
11126
  */
10949
11127
  addFavoritePlayer(favoritePlayerRequestBody: FavoritePlayerRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayerMutationResponse>>;
11128
+ /**
11129
+ *
11130
+ * @param {AddOrganizationRequest} addOrganizationRequest
11131
+ * @param {*} [options] Override http request option.
11132
+ * @throws {RequiredError}
11133
+ */
11134
+ addOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>>;
10950
11135
  /**
10951
11136
  *
10952
11137
  * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
@@ -11174,6 +11359,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
11174
11359
  * @throws {RequiredError}
11175
11360
  */
11176
11361
  verifyEmail(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>>;
11362
+ /**
11363
+ *
11364
+ * @param {VerifyEmailRequest} verifyEmailRequest
11365
+ * @param {*} [options] Override http request option.
11366
+ * @throws {RequiredError}
11367
+ */
11368
+ verifyOrganization(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>>;
11177
11369
  };
11178
11370
  /**
11179
11371
  * UsersApi - factory interface
@@ -11194,6 +11386,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
11194
11386
  * @throws {RequiredError}
11195
11387
  */
11196
11388
  addFavoritePlayer(requestParameters: UsersApiAddFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayerMutationResponse>;
11389
+ /**
11390
+ *
11391
+ * @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
11392
+ * @param {*} [options] Override http request option.
11393
+ * @throws {RequiredError}
11394
+ */
11395
+ addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response>;
11197
11396
  /**
11198
11397
  *
11199
11398
  * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
@@ -11412,6 +11611,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
11412
11611
  * @throws {RequiredError}
11413
11612
  */
11414
11613
  verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response>;
11614
+ /**
11615
+ *
11616
+ * @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
11617
+ * @param {*} [options] Override http request option.
11618
+ * @throws {RequiredError}
11619
+ */
11620
+ verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response>;
11415
11621
  };
11416
11622
  /**
11417
11623
  * Request parameters for addFavoriteClub operation in UsersApi.
@@ -11439,6 +11645,19 @@ export interface UsersApiAddFavoritePlayerRequest {
11439
11645
  */
11440
11646
  readonly favoritePlayerRequestBody: FavoritePlayerRequestBody;
11441
11647
  }
11648
+ /**
11649
+ * Request parameters for addOrganization operation in UsersApi.
11650
+ * @export
11651
+ * @interface UsersApiAddOrganizationRequest
11652
+ */
11653
+ export interface UsersApiAddOrganizationRequest {
11654
+ /**
11655
+ *
11656
+ * @type {AddOrganizationRequest}
11657
+ * @memberof UsersApiAddOrganization
11658
+ */
11659
+ readonly addOrganizationRequest: AddOrganizationRequest;
11660
+ }
11442
11661
  /**
11443
11662
  * Request parameters for addPaymentMethodSetup operation in UsersApi.
11444
11663
  * @export
@@ -11805,6 +12024,19 @@ export interface UsersApiVerifyEmailRequest {
11805
12024
  */
11806
12025
  readonly verifyEmailRequest: VerifyEmailRequest;
11807
12026
  }
12027
+ /**
12028
+ * Request parameters for verifyOrganization operation in UsersApi.
12029
+ * @export
12030
+ * @interface UsersApiVerifyOrganizationRequest
12031
+ */
12032
+ export interface UsersApiVerifyOrganizationRequest {
12033
+ /**
12034
+ *
12035
+ * @type {VerifyEmailRequest}
12036
+ * @memberof UsersApiVerifyOrganization
12037
+ */
12038
+ readonly verifyEmailRequest: VerifyEmailRequest;
12039
+ }
11808
12040
  /**
11809
12041
  * UsersApi - object-oriented interface
11810
12042
  * @export
@@ -11828,6 +12060,14 @@ export declare class UsersApi extends BaseAPI {
11828
12060
  * @memberof UsersApi
11829
12061
  */
11830
12062
  addFavoritePlayer(requestParameters: UsersApiAddFavoritePlayerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoritePlayerMutationResponse, any, {}>>;
12063
+ /**
12064
+ *
12065
+ * @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
12066
+ * @param {*} [options] Override http request option.
12067
+ * @throws {RequiredError}
12068
+ * @memberof UsersApi
12069
+ */
12070
+ addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPasswordReset200Response, any, {}>>;
11831
12071
  /**
11832
12072
  *
11833
12073
  * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
@@ -12077,4 +12317,12 @@ export declare class UsersApi extends BaseAPI {
12077
12317
  * @memberof UsersApi
12078
12318
  */
12079
12319
  verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPasswordReset200Response, any, {}>>;
12320
+ /**
12321
+ *
12322
+ * @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
12323
+ * @param {*} [options] Override http request option.
12324
+ * @throws {RequiredError}
12325
+ * @memberof UsersApi
12326
+ */
12327
+ verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPasswordReset200Response, any, {}>>;
12080
12328
  }