@tennac-booking/sdk 1.0.225 → 1.0.227

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.
Files changed (138) hide show
  1. package/.openapi-generator/FILES +30 -51
  2. package/README.md +48 -76
  3. package/api.ts +3538 -4733
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +3766 -4855
  8. package/dist/api.js +9858 -15754
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +11 -32
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +41 -133
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +8 -21
  15. package/dist/esm/api.d.ts +25620 -0
  16. package/dist/esm/api.js +17756 -0
  17. package/dist/esm/base.d.ts +66 -0
  18. package/dist/esm/base.js +60 -0
  19. package/dist/esm/common.d.ts +65 -0
  20. package/dist/esm/common.js +149 -0
  21. package/dist/esm/configuration.d.ts +91 -0
  22. package/dist/esm/configuration.js +40 -0
  23. package/dist/esm/index.d.ts +13 -0
  24. package/dist/esm/index.js +15 -0
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AgendaBooking.md +0 -2
  28. package/docs/BookingPopulated.md +1 -9
  29. package/docs/BookingSummary.md +4 -4
  30. package/docs/BookingsApi.md +79 -25
  31. package/docs/BookingsStaffApi.md +57 -1
  32. package/docs/BookingsUserApi.md +6 -58
  33. package/docs/CheckInPlayerSumupRequest.md +22 -0
  34. package/docs/{CloseOpenBookingResponse.md → CheckInPlayerSumupResponse.md} +7 -5
  35. package/docs/CheckInSumupPaymentInfo.md +26 -0
  36. package/docs/ClubPageResponse.md +0 -16
  37. package/docs/ClubPricingPeriodResponse.md +6 -6
  38. package/docs/ClubReservationSettingsResponse.md +2 -2
  39. package/docs/ClubResponse.md +2 -12
  40. package/docs/ClubSummary.md +0 -6
  41. package/docs/CreateBookingRequest.md +2 -0
  42. package/docs/CreateOpenBookingRequest.md +4 -6
  43. package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -4
  44. package/docs/EventBookingDetailSummary.md +0 -2
  45. package/docs/EventBookingResponse.md +0 -2
  46. package/docs/EventResponse.md +0 -2
  47. package/docs/EventsApi.md +0 -113
  48. package/docs/EventsStaffApi.md +25 -119
  49. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +0 -2
  50. package/docs/GetOpenBookingPrice200Response.md +24 -0
  51. package/docs/GetOpenBookingPriceRequest.md +26 -0
  52. package/docs/IUserAttributes.md +0 -4
  53. package/docs/JoinPriceEstimateResponse.md +38 -0
  54. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
  55. package/docs/MyClubInfosResponse.md +2 -0
  56. package/docs/OpenBookingInfo.md +5 -7
  57. package/docs/OpenBookingSlotInfo.md +24 -0
  58. package/docs/PaymentIntentResult.md +28 -0
  59. package/docs/{SupportedLanguage.md → PaymentProviderType.md} +3 -3
  60. package/docs/{NotificationActorType.md → PaymentStatus.md} +6 -4
  61. package/docs/PaymentsStaffApi.md +124 -0
  62. package/docs/PlayerPrice.md +1 -3
  63. package/docs/PublicEmailApi.md +4 -4
  64. package/docs/QuickReservationClubSummary.md +0 -12
  65. package/docs/SportResponse.md +0 -2
  66. package/docs/StaffEventBookingResponse.md +0 -2
  67. package/docs/StaffEventsPaginatedResponse.md +26 -0
  68. package/docs/StaffUserProfileResponse.md +0 -4
  69. package/docs/SubscriptionPlanDiscountResponse.md +0 -2
  70. package/docs/SubscriptionPlanDiscountUpdateRequest.md +0 -2
  71. package/docs/SumUpApi.md +63 -0
  72. package/docs/SumUpManagerApi.md +617 -0
  73. package/docs/SumupAccountStatusResponse.md +32 -0
  74. package/docs/{VerifyVerificationCodeResponse.md → SumupCancelPaymentRequest.md} +5 -5
  75. package/docs/{RequestVerificationCodeResponse.md → SumupConnectUrlResponse.md} +5 -5
  76. package/docs/SumupCreatePaymentRequest.md +32 -0
  77. package/docs/SumupOAuthCallbackResponse.md +24 -0
  78. package/docs/SumupPairReaderRequest.md +24 -0
  79. package/docs/{Health200Response.md → SumupPairReaderResponse.md} +5 -7
  80. package/docs/SumupReaderInfo.md +42 -0
  81. package/docs/{NotificationTargetPreview.md → SumupReaderInfoDevice.md} +7 -7
  82. package/docs/{MarkNotificationsReadResponse.md → SumupReaderResponse.md} +5 -5
  83. package/docs/SumupReaderStatusInfo.md +32 -0
  84. package/docs/SumupReaderStatusResponse.md +20 -0
  85. package/docs/SumupReadersResponse.md +20 -0
  86. package/docs/{NotificationResponseClub.md → SumupUpdateReaderRequest.md} +5 -7
  87. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  88. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  89. package/docs/UserClubMembership.md +0 -2
  90. package/docs/UserProfileResponse.md +0 -12
  91. package/docs/UsersApi.md +0 -273
  92. package/docs/WaitListStaffApi.md +0 -55
  93. package/index.ts +1 -1
  94. package/package.json +4 -2
  95. package/tsconfig.esm.json +7 -0
  96. package/tsconfig.json +2 -5
  97. package/docs/AuthApi.md +0 -113
  98. package/docs/ClubPageResponseClubCustomerStatus.md +0 -27
  99. package/docs/ClubPageResponseSportsIdsLookup.md +0 -23
  100. package/docs/ClubPricingPeriodPayload.md +0 -32
  101. package/docs/ComingEventsPageResponse.md +0 -22
  102. package/docs/CourtEnvironment.md +0 -10
  103. package/docs/EstimateOpenBookingJoinRequest.md +0 -24
  104. package/docs/GetOpenEventBookingsBySport200Response.md +0 -20
  105. package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +0 -46
  106. package/docs/JobResult.md +0 -24
  107. package/docs/JobsApi.md +0 -367
  108. package/docs/JoinOpenBookingRequest.md +0 -28
  109. package/docs/MarkNotificationsReadRequest.md +0 -22
  110. package/docs/NotificationData.md +0 -22
  111. package/docs/NotificationInitiator.md +0 -28
  112. package/docs/NotificationParticipantPreview.md +0 -24
  113. package/docs/NotificationPreview.md +0 -78
  114. package/docs/NotificationResponse.md +0 -46
  115. package/docs/NotificationSlotPreview.md +0 -24
  116. package/docs/NotificationSportPreview.md +0 -24
  117. package/docs/NotificationType.md +0 -26
  118. package/docs/OpenBookingBasePriceResponse.md +0 -24
  119. package/docs/OpenBookingJoinEstimateResponse.md +0 -26
  120. package/docs/OpenBookingPriceBody.md +0 -26
  121. package/docs/PartnerSearchItem.md +0 -28
  122. package/docs/PartnerSearchResponse.md +0 -22
  123. package/docs/PartnerSearchResponseMeta.md +0 -26
  124. package/docs/PricingPeriodDiscount.md +0 -24
  125. package/docs/QuickReservationCourtType.md +0 -10
  126. package/docs/RequestOrganizationEmailCodeBody.md +0 -22
  127. package/docs/RequestOrganizationEmailCodeResponse.md +0 -22
  128. package/docs/RequestVerificationCodeBody.md +0 -26
  129. package/docs/StaffEventsPageResponse.md +0 -22
  130. package/docs/UserNextBookingSummary.md +0 -26
  131. package/docs/UserNotificationsResponse.md +0 -22
  132. package/docs/UserNotificationsResponseMeta.md +0 -28
  133. package/docs/VerifyOrganizationEmailCodeBody.md +0 -24
  134. package/docs/VerifyOrganizationEmailCodeResponse.md +0 -22
  135. package/docs/VerifyVerificationCodeBody.md +0 -24
  136. package/docs/WaitListEntryWithPlayer.md +0 -44
  137. package/docs/WaitListPlayer.md +0 -28
  138. package/docs/WaitListPlayersListResponse.md +0 -22
@@ -0,0 +1,66 @@
1
+ /**
2
+ * openapi.json
3
+ * Pandook API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.177
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openapi.json
5
+ * Pandook API Documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.177
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const COLLECTION_FORMATS = {
21
+ csv: ",",
22
+ ssv: " ",
23
+ tsv: "\t",
24
+ pipes: "|",
25
+ };
26
+ /**
27
+ *
28
+ * @export
29
+ * @class BaseAPI
30
+ */
31
+ export class BaseAPI {
32
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
33
+ var _a;
34
+ this.basePath = basePath;
35
+ this.axios = axios;
36
+ if (configuration) {
37
+ this.configuration = configuration;
38
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
39
+ }
40
+ }
41
+ }
42
+ ;
43
+ /**
44
+ *
45
+ * @export
46
+ * @class RequiredError
47
+ * @extends {Error}
48
+ */
49
+ export class RequiredError extends Error {
50
+ constructor(field, msg) {
51
+ super(msg);
52
+ this.field = field;
53
+ this.name = "RequiredError";
54
+ }
55
+ }
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export const operationServerMap = {};
@@ -0,0 +1,65 @@
1
+ /**
2
+ * openapi.json
3
+ * Pandook API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.177
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from "./configuration";
13
+ import type { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -0,0 +1,149 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openapi.json
5
+ * Pandook API Documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.177
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
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
+ };
23
+ import { RequiredError } from "./base";
24
+ /**
25
+ *
26
+ * @export
27
+ */
28
+ export const DUMMY_BASE_URL = 'https://example.com';
29
+ /**
30
+ *
31
+ * @throws {RequiredError}
32
+ * @export
33
+ */
34
+ export const assertParamExists = function (functionName, paramName, paramValue) {
35
+ if (paramValue === null || paramValue === undefined) {
36
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
37
+ }
38
+ };
39
+ /**
40
+ *
41
+ * @export
42
+ */
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
+ });
52
+ };
53
+ /**
54
+ *
55
+ * @export
56
+ */
57
+ export const setBasicAuthToObject = function (object, configuration) {
58
+ if (configuration && (configuration.username || configuration.password)) {
59
+ object["auth"] = { username: configuration.username, password: configuration.password };
60
+ }
61
+ };
62
+ /**
63
+ *
64
+ * @export
65
+ */
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
+ });
75
+ };
76
+ /**
77
+ *
78
+ * @export
79
+ */
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
+ });
89
+ };
90
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
91
+ if (parameter == null)
92
+ return;
93
+ if (typeof parameter === "object") {
94
+ if (Array.isArray(parameter)) {
95
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
96
+ }
97
+ else {
98
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
99
+ }
100
+ }
101
+ else {
102
+ if (urlSearchParams.has(key)) {
103
+ urlSearchParams.append(key, parameter);
104
+ }
105
+ else {
106
+ urlSearchParams.set(key, parameter);
107
+ }
108
+ }
109
+ }
110
+ /**
111
+ *
112
+ * @export
113
+ */
114
+ export const setSearchParams = function (url, ...objects) {
115
+ const searchParams = new URLSearchParams(url.search);
116
+ setFlattenedQueryParams(searchParams, objects);
117
+ url.search = searchParams.toString();
118
+ };
119
+ /**
120
+ *
121
+ * @export
122
+ */
123
+ export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
124
+ const nonString = typeof value !== 'string';
125
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
126
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
127
+ : nonString;
128
+ return needsSerialization
129
+ ? JSON.stringify(value !== undefined ? value : {})
130
+ : (value || "");
131
+ };
132
+ /**
133
+ *
134
+ * @export
135
+ */
136
+ export const toPathString = function (url) {
137
+ return url.pathname + url.search + url.hash;
138
+ };
139
+ /**
140
+ *
141
+ * @export
142
+ */
143
+ export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
144
+ return (axios = globalAxios, basePath = BASE_PATH) => {
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 });
147
+ return axios.request(axiosRequestArgs);
148
+ };
149
+ };
@@ -0,0 +1,91 @@
1
+ /**
2
+ * openapi.json
3
+ * Pandook API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.177
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ serverIndex?: number;
19
+ baseOptions?: any;
20
+ formDataCtor?: new () => any;
21
+ }
22
+ export declare class Configuration {
23
+ /**
24
+ * parameter for apiKey security
25
+ * @param name security name
26
+ * @memberof Configuration
27
+ */
28
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
+ /**
30
+ * parameter for basic security
31
+ *
32
+ * @type {string}
33
+ * @memberof Configuration
34
+ */
35
+ username?: string;
36
+ /**
37
+ * parameter for basic security
38
+ *
39
+ * @type {string}
40
+ * @memberof Configuration
41
+ */
42
+ password?: string;
43
+ /**
44
+ * parameter for oauth2 security
45
+ * @param name security name
46
+ * @param scopes oauth2 scope
47
+ * @memberof Configuration
48
+ */
49
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
+ /**
51
+ * override base path
52
+ *
53
+ * @type {string}
54
+ * @memberof Configuration
55
+ */
56
+ basePath?: string;
57
+ /**
58
+ * override server index
59
+ *
60
+ * @type {number}
61
+ * @memberof Configuration
62
+ */
63
+ serverIndex?: number;
64
+ /**
65
+ * base options for axios calls
66
+ *
67
+ * @type {any}
68
+ * @memberof Configuration
69
+ */
70
+ baseOptions?: any;
71
+ /**
72
+ * The FormData constructor that will be used to create multipart form data
73
+ * requests. You can inject this here so that execution environments that
74
+ * do not support the FormData class can still run the generated client.
75
+ *
76
+ * @type {new () => FormData}
77
+ */
78
+ formDataCtor?: new () => any;
79
+ constructor(param?: ConfigurationParameters);
80
+ /**
81
+ * Check if the given MIME is a JSON MIME.
82
+ * JSON MIME examples:
83
+ * application/json
84
+ * application/json; charset=UTF8
85
+ * APPLICATION/JSON
86
+ * application/vnd.company+json
87
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
88
+ * @return True if the given MIME is JSON, false otherwise.
89
+ */
90
+ isJsonMime(mime: string): boolean;
91
+ }
@@ -0,0 +1,40 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openapi.json
5
+ * Pandook API Documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.177
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export class Configuration {
15
+ constructor(param = {}) {
16
+ var _a;
17
+ this.apiKey = param.apiKey;
18
+ this.username = param.username;
19
+ this.password = param.password;
20
+ this.accessToken = param.accessToken;
21
+ this.basePath = param.basePath;
22
+ this.serverIndex = param.serverIndex;
23
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
24
+ this.formDataCtor = param.formDataCtor;
25
+ }
26
+ /**
27
+ * Check if the given MIME is a JSON MIME.
28
+ * JSON MIME examples:
29
+ * application/json
30
+ * application/json; charset=UTF8
31
+ * APPLICATION/JSON
32
+ * application/vnd.company+json
33
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
34
+ * @return True if the given MIME is JSON, false otherwise.
35
+ */
36
+ isJsonMime(mime) {
37
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
38
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
39
+ }
40
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * openapi.json
3
+ * Pandook API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.177
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from "./api";
13
+ export * from "./configuration";
@@ -0,0 +1,15 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openapi.json
5
+ * Pandook API Documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.177
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export * from "./api";
15
+ export * from "./configuration";
package/dist/index.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.223
5
+ * The version of the OpenAPI document: 1.0.177
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.223
8
+ * The version of the OpenAPI document: 1.0.177
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [default to undefined]
9
9
  **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
10
- **isOpen** | **boolean** | | [default to undefined]
11
10
  **creatorName** | **string** | | [default to undefined]
12
11
  **players** | [**Array&lt;AgendaBookingPlayer&gt;**](AgendaBookingPlayer.md) | | [default to undefined]
13
12
  **paymentStatus** | [**BookingInvoicePaymentStatus**](BookingInvoicePaymentStatus.md) | | [default to undefined]
@@ -21,7 +20,6 @@ import { AgendaBooking } from '@tennac-booking/sdk';
21
20
  const instance: AgendaBooking = {
22
21
  id,
23
22
  status,
24
- isOpen,
25
23
  creatorName,
26
24
  players,
27
25
  paymentStatus,
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | ID de la réservation | [default to undefined]
9
9
  **clubId** | **string** | | [default to undefined]
10
10
  **creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
11
- **slotInfos** | [**Array&lt;SlotInfo&gt;**](SlotInfo.md) | Informations des slots | [default to undefined]
11
+ **slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
12
12
  **players** | [**Array&lt;UserInfo&gt;**](UserInfo.md) | | [default to undefined]
13
13
  **initialPlayers** | [**Array&lt;UserInfo&gt;**](UserInfo.md) | Joueurs inclus à la création de la réservation (pour les créneaux ouverts) | [optional] [default to undefined]
14
14
  **paymentByPlayers** | [**Array&lt;PaymentByPlayerInfo&gt;**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
@@ -21,10 +21,6 @@ Name | Type | Description | Notes
21
21
  **cancelledByManager** | **boolean** | | [optional] [default to undefined]
22
22
  **cancelledBy** | **string** | | [optional] [default to undefined]
23
23
  **cancellationReason** | **string** | | [optional] [default to undefined]
24
- **isOpen** | **boolean** | | [default to undefined]
25
- **description** | **string** | | [optional] [default to undefined]
26
- **minLevel** | **string** | | [optional] [default to undefined]
27
- **maxPlayersDesired** | **number** | | [optional] [default to undefined]
28
24
 
29
25
  ## Example
30
26
 
@@ -48,10 +44,6 @@ const instance: BookingPopulated = {
48
44
  cancelledByManager,
49
45
  cancelledBy,
50
46
  cancellationReason,
51
- isOpen,
52
- description,
53
- minLevel,
54
- maxPlayersDesired,
55
47
  };
56
48
  ```
57
49
 
@@ -16,6 +16,8 @@ Name | Type | Description | Notes
16
16
  **slotIds** | **Array&lt;string&gt;** | | [default to undefined]
17
17
  **isPublic** | **boolean** | | [default to undefined]
18
18
  **isOpen** | **boolean** | | [default to undefined]
19
+ **maxPlayers** | **number** | | [optional] [default to undefined]
20
+ **maxPlayersDesired** | **number** | | [optional] [default to undefined]
19
21
  **description** | **string** | | [optional] [default to undefined]
20
22
  **minLevel** | **string** | | [optional] [default to undefined]
21
23
  **initialPlayers** | [**Array&lt;BookingPlayerInfo&gt;**](BookingPlayerInfo.md) | | [optional] [default to undefined]
@@ -50,8 +52,6 @@ Name | Type | Description | Notes
50
52
  **court** | [**BookingCourtInfo**](BookingCourtInfo.md) | | [optional] [default to undefined]
51
53
  **sport** | [**BookingSportInfo**](BookingSportInfo.md) | | [optional] [default to undefined]
52
54
  **players** | [**Array&lt;BookingPlayerPaymentSummary&gt;**](BookingPlayerPaymentSummary.md) | | [default to undefined]
53
- **userParticipationStatus** | **string** | | [optional] [default to undefined]
54
- **waitListPosition** | **number** | | [optional] [default to undefined]
55
55
 
56
56
  ## Example
57
57
 
@@ -70,6 +70,8 @@ const instance: BookingSummary = {
70
70
  slotIds,
71
71
  isPublic,
72
72
  isOpen,
73
+ maxPlayers,
74
+ maxPlayersDesired,
73
75
  description,
74
76
  minLevel,
75
77
  initialPlayers,
@@ -104,8 +106,6 @@ const instance: BookingSummary = {
104
106
  court,
105
107
  sport,
106
108
  players,
107
- userParticipationStatus,
108
- waitListPosition,
109
109
  };
110
110
  ```
111
111