@tennac-booking/sdk 1.0.233 → 1.0.235
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 +489 -482
- package/README.md +9 -0
- package/api.ts +518 -33
- package/dist/api.d.ts +401 -30
- package/dist/api.js +3626 -2626
- package/dist/base.js +2 -5
- package/dist/common.js +38 -22
- package/dist/configuration.js +2 -62
- package/dist/esm/api.d.ts +401 -30
- package/dist/esm/api.js +3625 -2625
- package/dist/esm/base.js +2 -5
- package/dist/esm/common.js +38 -22
- package/dist/esm/configuration.js +2 -62
- package/docs/AcceptBookingInvitationResponse.md +2 -0
- package/docs/ClubAnalyticsStaffApi.md +47 -0
- package/docs/ClubNewSubscriberItem.md +34 -0
- package/docs/ClubNewSubscribersListResponse.md +26 -0
- package/docs/JobsApi.md +7 -7
- package/docs/MigrateSubscription200Response.md +22 -0
- package/docs/MigrateSubscriptionRequest.md +26 -0
- package/docs/MigrateUser200Response.md +24 -0
- package/docs/MigrateUserRequest.md +40 -0
- package/docs/UsersApi.md +110 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
package/dist/esm/base.js
CHANGED
|
@@ -29,15 +29,13 @@ export const COLLECTION_FORMATS = {
|
|
|
29
29
|
* @class BaseAPI
|
|
30
30
|
*/
|
|
31
31
|
export class BaseAPI {
|
|
32
|
-
basePath;
|
|
33
|
-
axios;
|
|
34
|
-
configuration;
|
|
35
32
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
+
var _a;
|
|
36
34
|
this.basePath = basePath;
|
|
37
35
|
this.axios = axios;
|
|
38
36
|
if (configuration) {
|
|
39
37
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
38
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
}
|
|
@@ -49,7 +47,6 @@ export class BaseAPI {
|
|
|
49
47
|
* @extends {Error}
|
|
50
48
|
*/
|
|
51
49
|
export class RequiredError extends Error {
|
|
52
|
-
field;
|
|
53
50
|
constructor(field, msg) {
|
|
54
51
|
super(msg);
|
|
55
52
|
this.field = field;
|
package/dist/esm/common.js
CHANGED
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
14
23
|
import { RequiredError } from "./base";
|
|
15
24
|
/**
|
|
16
25
|
*
|
|
@@ -31,13 +40,15 @@ export const assertParamExists = function (functionName, paramName, paramValue)
|
|
|
31
40
|
*
|
|
32
41
|
* @export
|
|
33
42
|
*/
|
|
34
|
-
export const setApiKeyToObject =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
if (configuration && configuration.apiKey) {
|
|
46
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
47
|
+
? yield configuration.apiKey(keyParamName)
|
|
48
|
+
: yield configuration.apiKey;
|
|
49
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
41
52
|
};
|
|
42
53
|
/**
|
|
43
54
|
*
|
|
@@ -52,25 +63,29 @@ export const setBasicAuthToObject = function (object, configuration) {
|
|
|
52
63
|
*
|
|
53
64
|
* @export
|
|
54
65
|
*/
|
|
55
|
-
export const setBearerAuthToObject =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
export const setBearerAuthToObject = function (object, configuration) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
if (configuration && configuration.accessToken) {
|
|
69
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
70
|
+
? yield configuration.accessToken()
|
|
71
|
+
: yield configuration.accessToken;
|
|
72
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
62
75
|
};
|
|
63
76
|
/**
|
|
64
77
|
*
|
|
65
78
|
* @export
|
|
66
79
|
*/
|
|
67
|
-
export const setOAuthToObject =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
if (configuration && configuration.accessToken) {
|
|
83
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
84
|
+
? yield configuration.accessToken(name, scopes)
|
|
85
|
+
: yield configuration.accessToken;
|
|
86
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
74
89
|
};
|
|
75
90
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
76
91
|
if (parameter == null)
|
|
@@ -127,7 +142,8 @@ export const toPathString = function (url) {
|
|
|
127
142
|
*/
|
|
128
143
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
144
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
|
|
145
|
+
var _a;
|
|
146
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
131
147
|
return axios.request(axiosRequestArgs);
|
|
132
148
|
};
|
|
133
149
|
};
|
|
@@ -12,75 +12,15 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
export class Configuration {
|
|
15
|
-
/**
|
|
16
|
-
* parameter for apiKey security
|
|
17
|
-
* @param name security name
|
|
18
|
-
* @memberof Configuration
|
|
19
|
-
*/
|
|
20
|
-
apiKey;
|
|
21
|
-
/**
|
|
22
|
-
* parameter for basic security
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Configuration
|
|
26
|
-
*/
|
|
27
|
-
username;
|
|
28
|
-
/**
|
|
29
|
-
* parameter for basic security
|
|
30
|
-
*
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof Configuration
|
|
33
|
-
*/
|
|
34
|
-
password;
|
|
35
|
-
/**
|
|
36
|
-
* parameter for oauth2 security
|
|
37
|
-
* @param name security name
|
|
38
|
-
* @param scopes oauth2 scope
|
|
39
|
-
* @memberof Configuration
|
|
40
|
-
*/
|
|
41
|
-
accessToken;
|
|
42
|
-
/**
|
|
43
|
-
* override base path
|
|
44
|
-
*
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof Configuration
|
|
47
|
-
*/
|
|
48
|
-
basePath;
|
|
49
|
-
/**
|
|
50
|
-
* override server index
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof Configuration
|
|
54
|
-
*/
|
|
55
|
-
serverIndex;
|
|
56
|
-
/**
|
|
57
|
-
* base options for axios calls
|
|
58
|
-
*
|
|
59
|
-
* @type {any}
|
|
60
|
-
* @memberof Configuration
|
|
61
|
-
*/
|
|
62
|
-
baseOptions;
|
|
63
|
-
/**
|
|
64
|
-
* The FormData constructor that will be used to create multipart form data
|
|
65
|
-
* requests. You can inject this here so that execution environments that
|
|
66
|
-
* do not support the FormData class can still run the generated client.
|
|
67
|
-
*
|
|
68
|
-
* @type {new () => FormData}
|
|
69
|
-
*/
|
|
70
|
-
formDataCtor;
|
|
71
15
|
constructor(param = {}) {
|
|
16
|
+
var _a;
|
|
72
17
|
this.apiKey = param.apiKey;
|
|
73
18
|
this.username = param.username;
|
|
74
19
|
this.password = param.password;
|
|
75
20
|
this.accessToken = param.accessToken;
|
|
76
21
|
this.basePath = param.basePath;
|
|
77
22
|
this.serverIndex = param.serverIndex;
|
|
78
|
-
this.baseOptions = {
|
|
79
|
-
...param.baseOptions,
|
|
80
|
-
headers: {
|
|
81
|
-
...param.baseOptions?.headers,
|
|
82
|
-
},
|
|
83
|
-
};
|
|
23
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
84
24
|
this.formDataCtor = param.formDataCtor;
|
|
85
25
|
}
|
|
86
26
|
/**
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
9
|
**bookingStatus** | **string** | Statut du booking après acceptation/refus | [default to undefined]
|
|
10
10
|
**allPlayersAccepted** | **boolean** | Si tous les joueurs ont accepté | [optional] [default to undefined]
|
|
11
|
+
**paymentUrl** | **string** | URL de paiement (si paiement en ligne requis après acceptation) | [optional] [default to undefined]
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ const instance: AcceptBookingInvitationResponse = {
|
|
|
18
19
|
message,
|
|
19
20
|
bookingStatus,
|
|
20
21
|
allPlayersAccepted,
|
|
22
|
+
paymentUrl,
|
|
21
23
|
};
|
|
22
24
|
```
|
|
23
25
|
|
|
@@ -20,6 +20,7 @@ All URIs are relative to *http://localhost*
|
|
|
20
20
|
|[**getMonthlyTurnOver**](#getmonthlyturnover) | **GET** /api/club-analytics/monthly-turnover | |
|
|
21
21
|
|[**getNewBookingsCount**](#getnewbookingscount) | **GET** /api/club-analytics/bookings/new | |
|
|
22
22
|
|[**getNewSubscribersCount**](#getnewsubscriberscount) | **GET** /api/club-analytics/subscribers/new | |
|
|
23
|
+
|[**getNewSubscribersList**](#getnewsubscriberslist) | **GET** /api/club-analytics/subscribers/new/list | |
|
|
23
24
|
|[**getNoShowRate**](#getnoshowrate) | **GET** /api/club-analytics/bookings/no-show-rate | |
|
|
24
25
|
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/club-analytics/users-count | |
|
|
25
26
|
|[**getRetentionRate**](#getretentionrate) | **GET** /api/club-analytics/retention-rate | |
|
|
@@ -887,6 +888,52 @@ const { status, data } = await apiInstance.getNewSubscribersCount(
|
|
|
887
888
|
|
|
888
889
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
889
890
|
|
|
891
|
+
# **getNewSubscribersList**
|
|
892
|
+
> ClubNewSubscribersListResponse getNewSubscribersList()
|
|
893
|
+
|
|
894
|
+
Liste des nouveaux abonnés (30 derniers jours)
|
|
895
|
+
|
|
896
|
+
### Example
|
|
897
|
+
|
|
898
|
+
```typescript
|
|
899
|
+
import {
|
|
900
|
+
ClubAnalyticsStaffApi,
|
|
901
|
+
Configuration
|
|
902
|
+
} from '@tennac-booking/sdk';
|
|
903
|
+
|
|
904
|
+
const configuration = new Configuration();
|
|
905
|
+
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
906
|
+
|
|
907
|
+
const { status, data } = await apiInstance.getNewSubscribersList();
|
|
908
|
+
```
|
|
909
|
+
|
|
910
|
+
### Parameters
|
|
911
|
+
This endpoint does not have any parameters.
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
### Return type
|
|
915
|
+
|
|
916
|
+
**ClubNewSubscribersListResponse**
|
|
917
|
+
|
|
918
|
+
### Authorization
|
|
919
|
+
|
|
920
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
921
|
+
|
|
922
|
+
### HTTP request headers
|
|
923
|
+
|
|
924
|
+
- **Content-Type**: Not defined
|
|
925
|
+
- **Accept**: application/json
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
### HTTP response details
|
|
929
|
+
| Status code | Description | Response headers |
|
|
930
|
+
|-------------|-------------|------------------|
|
|
931
|
+
|**200** | Nouveaux abonnés (30 derniers jours) | - |
|
|
932
|
+
|**400** | Bad Request | - |
|
|
933
|
+
|**401** | Unauthorized | - |
|
|
934
|
+
|
|
935
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
936
|
+
|
|
890
937
|
# **getNoShowRate**
|
|
891
938
|
> NoShowRateResponse getNoShowRate()
|
|
892
939
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ClubNewSubscriberItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID du joueur | [default to undefined]
|
|
9
|
+
**firstName** | **string** | Prénom | [default to undefined]
|
|
10
|
+
**lastName** | **string** | Nom | [default to undefined]
|
|
11
|
+
**email** | **string** | Email | [default to undefined]
|
|
12
|
+
**profilePictureUrl** | **string** | URL de la photo de profil | [default to undefined]
|
|
13
|
+
**isAccountVerified** | **boolean** | Compte vérifié | [default to undefined]
|
|
14
|
+
**subscribedAt** | **string** | Date d\'abonnement (format ISO) | [default to undefined]
|
|
15
|
+
**subscriptionsToMyClub** | [**Array<ClubPlayerSubscriptionSummary>**](ClubPlayerSubscriptionSummary.md) | Abonnements au club courant | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ClubNewSubscriberItem } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: ClubNewSubscriberItem = {
|
|
23
|
+
id,
|
|
24
|
+
firstName,
|
|
25
|
+
lastName,
|
|
26
|
+
email,
|
|
27
|
+
profilePictureUrl,
|
|
28
|
+
isAccountVerified,
|
|
29
|
+
subscribedAt,
|
|
30
|
+
subscriptionsToMyClub,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ClubNewSubscribersListResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**startDate** | **string** | Date de début incluse (format ISO) | [default to undefined]
|
|
9
|
+
**endDate** | **string** | Date de fin incluse (format ISO) | [default to undefined]
|
|
10
|
+
**total** | **number** | Nombre total de nouveaux abonnés | [default to undefined]
|
|
11
|
+
**subscribers** | [**Array<ClubNewSubscriberItem>**](ClubNewSubscriberItem.md) | Détails des nouveaux abonnés | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubNewSubscribersListResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubNewSubscribersListResponse = {
|
|
19
|
+
startDate,
|
|
20
|
+
endDate,
|
|
21
|
+
total,
|
|
22
|
+
subscribers,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/JobsApi.md
CHANGED
|
@@ -16,7 +16,7 @@ All URIs are relative to *http://localhost*
|
|
|
16
16
|
# **captureExpiringAuthorizations**
|
|
17
17
|
> JobResult captureExpiringAuthorizations()
|
|
18
18
|
|
|
19
|
-
Job: Capturer les autorisations de paiement qui expirent bientôt
|
|
19
|
+
Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
@@ -60,7 +60,7 @@ No authorization required
|
|
|
60
60
|
# **capturePastReservations**
|
|
61
61
|
> JobResult capturePastReservations()
|
|
62
62
|
|
|
63
|
-
Job: Capturer les paiements pour les réservations passées
|
|
63
|
+
Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
64
64
|
|
|
65
65
|
### Example
|
|
66
66
|
|
|
@@ -104,7 +104,7 @@ No authorization required
|
|
|
104
104
|
# **expireBookingWaitingPayments**
|
|
105
105
|
> JobResult expireBookingWaitingPayments()
|
|
106
106
|
|
|
107
|
-
Job: Expirer les réservations en attente de paiement
|
|
107
|
+
Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
108
108
|
|
|
109
109
|
### Example
|
|
110
110
|
|
|
@@ -148,7 +148,7 @@ No authorization required
|
|
|
148
148
|
# **expireWaitlistPayments**
|
|
149
149
|
> JobResult expireWaitlistPayments()
|
|
150
150
|
|
|
151
|
-
Job: Expirer les paiements en attente sur la waitlist
|
|
151
|
+
Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
152
152
|
|
|
153
153
|
### Example
|
|
154
154
|
|
|
@@ -236,7 +236,7 @@ No authorization required
|
|
|
236
236
|
# **maintainSlots**
|
|
237
237
|
> JobResult maintainSlots()
|
|
238
238
|
|
|
239
|
-
Job: Maintenir les créneaux (slots)
|
|
239
|
+
Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
240
240
|
|
|
241
241
|
### Example
|
|
242
242
|
|
|
@@ -280,7 +280,7 @@ No authorization required
|
|
|
280
280
|
# **releaseOldBookings**
|
|
281
281
|
> JobResult releaseOldBookings()
|
|
282
282
|
|
|
283
|
-
Job: Libérer les anciennes réservations
|
|
283
|
+
Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
284
284
|
|
|
285
285
|
### Example
|
|
286
286
|
|
|
@@ -324,7 +324,7 @@ No authorization required
|
|
|
324
324
|
# **sendBookingReminders**
|
|
325
325
|
> JobResult sendBookingReminders()
|
|
326
326
|
|
|
327
|
-
Job: Envoyer les rappels de réservation et d\'événements
|
|
327
|
+
Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
328
328
|
|
|
329
329
|
### Example
|
|
330
330
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# MigrateSubscription200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**success** | **boolean** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { MigrateSubscription200Response } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: MigrateSubscription200Response = {
|
|
17
|
+
message,
|
|
18
|
+
success,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# MigrateSubscriptionRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscriptionData** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
9
|
+
**clubId** | **string** | | [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [default to undefined]
|
|
11
|
+
**firstName** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { MigrateSubscriptionRequest } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: MigrateSubscriptionRequest = {
|
|
19
|
+
subscriptionData,
|
|
20
|
+
clubId,
|
|
21
|
+
lastName,
|
|
22
|
+
firstName,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# MigrateUser200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**userId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**success** | **boolean** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { MigrateUser200Response } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: MigrateUser200Response = {
|
|
18
|
+
message,
|
|
19
|
+
userId,
|
|
20
|
+
success,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# MigrateUserRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscriptionMetadata** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
9
|
+
**metadata** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
10
|
+
**clubId** | **string** | | [default to undefined]
|
|
11
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**postalCode** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**adress** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**gender** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**email** | **string** | | [default to undefined]
|
|
17
|
+
**lastName** | **string** | | [default to undefined]
|
|
18
|
+
**firstName** | **string** | | [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { MigrateUserRequest } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: MigrateUserRequest = {
|
|
26
|
+
subscriptionMetadata,
|
|
27
|
+
metadata,
|
|
28
|
+
clubId,
|
|
29
|
+
city,
|
|
30
|
+
postalCode,
|
|
31
|
+
adress,
|
|
32
|
+
gender,
|
|
33
|
+
phone,
|
|
34
|
+
email,
|
|
35
|
+
lastName,
|
|
36
|
+
firstName,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UsersApi.md
CHANGED
|
@@ -31,6 +31,8 @@ All URIs are relative to *http://localhost*
|
|
|
31
31
|
|[**login**](#login) | **POST** /api/users/login | |
|
|
32
32
|
|[**loginClubMember**](#loginclubmember) | **POST** /api/users/club-members/login | |
|
|
33
33
|
|[**markNotificationsRead**](#marknotificationsread) | **POST** /api/users/me/notifications/read | |
|
|
34
|
+
|[**migrateSubscription**](#migratesubscription) | **POST** /api/users/migrate-subscriptions | |
|
|
35
|
+
|[**migrateUser**](#migrateuser) | **POST** /api/users/migrate | |
|
|
34
36
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
|
|
35
37
|
|[**register**](#register) | **POST** /api/users | |
|
|
36
38
|
|[**registerFromApp**](#registerfromapp) | **POST** /api/users/register-app | |
|
|
@@ -943,10 +945,12 @@ const apiInstance = new UsersApi(configuration);
|
|
|
943
945
|
|
|
944
946
|
let limit: number; // (optional) (default to undefined)
|
|
945
947
|
let skip: number; // (optional) (default to undefined)
|
|
948
|
+
let timeFilter: 'upcoming' | 'past'; // (optional) (default to undefined)
|
|
946
949
|
|
|
947
950
|
const { status, data } = await apiInstance.getUserBookings(
|
|
948
951
|
limit,
|
|
949
|
-
skip
|
|
952
|
+
skip,
|
|
953
|
+
timeFilter
|
|
950
954
|
);
|
|
951
955
|
```
|
|
952
956
|
|
|
@@ -956,6 +960,7 @@ const { status, data } = await apiInstance.getUserBookings(
|
|
|
956
960
|
|------------- | ------------- | ------------- | -------------|
|
|
957
961
|
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
958
962
|
| **skip** | [**number**] | | (optional) defaults to undefined|
|
|
963
|
+
| **timeFilter** | [**'upcoming' | 'past'**]**Array<'upcoming' | 'past'>** | | (optional) defaults to undefined|
|
|
959
964
|
|
|
960
965
|
|
|
961
966
|
### Return type
|
|
@@ -1415,6 +1420,110 @@ const { status, data } = await apiInstance.markNotificationsRead(
|
|
|
1415
1420
|
- **Accept**: application/json
|
|
1416
1421
|
|
|
1417
1422
|
|
|
1423
|
+
### HTTP response details
|
|
1424
|
+
| Status code | Description | Response headers |
|
|
1425
|
+
|-------------|-------------|------------------|
|
|
1426
|
+
|**200** | Ok | - |
|
|
1427
|
+
|
|
1428
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1429
|
+
|
|
1430
|
+
# **migrateSubscription**
|
|
1431
|
+
> MigrateSubscription200Response migrateSubscription(migrateSubscriptionRequest)
|
|
1432
|
+
|
|
1433
|
+
Endpoint de migration pour importer les abonnements depuis un CSV Map les abonnements aux ClubCustomer existants via firstName/lastName
|
|
1434
|
+
|
|
1435
|
+
### Example
|
|
1436
|
+
|
|
1437
|
+
```typescript
|
|
1438
|
+
import {
|
|
1439
|
+
UsersApi,
|
|
1440
|
+
Configuration,
|
|
1441
|
+
MigrateSubscriptionRequest
|
|
1442
|
+
} from '@tennac-booking/sdk';
|
|
1443
|
+
|
|
1444
|
+
const configuration = new Configuration();
|
|
1445
|
+
const apiInstance = new UsersApi(configuration);
|
|
1446
|
+
|
|
1447
|
+
let migrateSubscriptionRequest: MigrateSubscriptionRequest; //
|
|
1448
|
+
|
|
1449
|
+
const { status, data } = await apiInstance.migrateSubscription(
|
|
1450
|
+
migrateSubscriptionRequest
|
|
1451
|
+
);
|
|
1452
|
+
```
|
|
1453
|
+
|
|
1454
|
+
### Parameters
|
|
1455
|
+
|
|
1456
|
+
|Name | Type | Description | Notes|
|
|
1457
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1458
|
+
| **migrateSubscriptionRequest** | **MigrateSubscriptionRequest**| | |
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
### Return type
|
|
1462
|
+
|
|
1463
|
+
**MigrateSubscription200Response**
|
|
1464
|
+
|
|
1465
|
+
### Authorization
|
|
1466
|
+
|
|
1467
|
+
No authorization required
|
|
1468
|
+
|
|
1469
|
+
### HTTP request headers
|
|
1470
|
+
|
|
1471
|
+
- **Content-Type**: application/json
|
|
1472
|
+
- **Accept**: application/json
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
### HTTP response details
|
|
1476
|
+
| Status code | Description | Response headers |
|
|
1477
|
+
|-------------|-------------|------------------|
|
|
1478
|
+
|**200** | Ok | - |
|
|
1479
|
+
|
|
1480
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1481
|
+
|
|
1482
|
+
# **migrateUser**
|
|
1483
|
+
> MigrateUser200Response migrateUser(migrateUserRequest)
|
|
1484
|
+
|
|
1485
|
+
Endpoint de migration pour importer des utilisateurs depuis un CSV Crée l\'utilisateur, le ClubCustomer avec metadata et gère les duplicates
|
|
1486
|
+
|
|
1487
|
+
### Example
|
|
1488
|
+
|
|
1489
|
+
```typescript
|
|
1490
|
+
import {
|
|
1491
|
+
UsersApi,
|
|
1492
|
+
Configuration,
|
|
1493
|
+
MigrateUserRequest
|
|
1494
|
+
} from '@tennac-booking/sdk';
|
|
1495
|
+
|
|
1496
|
+
const configuration = new Configuration();
|
|
1497
|
+
const apiInstance = new UsersApi(configuration);
|
|
1498
|
+
|
|
1499
|
+
let migrateUserRequest: MigrateUserRequest; //
|
|
1500
|
+
|
|
1501
|
+
const { status, data } = await apiInstance.migrateUser(
|
|
1502
|
+
migrateUserRequest
|
|
1503
|
+
);
|
|
1504
|
+
```
|
|
1505
|
+
|
|
1506
|
+
### Parameters
|
|
1507
|
+
|
|
1508
|
+
|Name | Type | Description | Notes|
|
|
1509
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1510
|
+
| **migrateUserRequest** | **MigrateUserRequest**| | |
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
### Return type
|
|
1514
|
+
|
|
1515
|
+
**MigrateUser200Response**
|
|
1516
|
+
|
|
1517
|
+
### Authorization
|
|
1518
|
+
|
|
1519
|
+
No authorization required
|
|
1520
|
+
|
|
1521
|
+
### HTTP request headers
|
|
1522
|
+
|
|
1523
|
+
- **Content-Type**: application/json
|
|
1524
|
+
- **Accept**: application/json
|
|
1525
|
+
|
|
1526
|
+
|
|
1418
1527
|
### HTTP response details
|
|
1419
1528
|
| Status code | Description | Response headers |
|
|
1420
1529
|
|-------------|-------------|------------------|
|
package/package.json
CHANGED