@tennac-booking/sdk 1.0.310 → 1.0.311

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 (41) hide show
  1. package/.openapi-generator/FILES +563 -560
  2. package/README.md +4 -2
  3. package/api.ts +174 -4
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +118 -3
  8. package/dist/api.js +3888 -2887
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +3 -6
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +39 -23
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +3 -63
  15. package/dist/esm/api.d.ts +118 -3
  16. package/dist/esm/api.js +3879 -2882
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +3 -6
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +39 -23
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +3 -63
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ClubReservationSettingsResponse.md +2 -0
  28. package/docs/InvoiceStatus.md +2 -0
  29. package/docs/ManagerConsoleInvoicePlayerSummary.md +2 -0
  30. package/docs/ManagerConsoleInvoiceUserSummary.md +2 -0
  31. package/docs/TermsAndConditionsPublicApi.md +61 -0
  32. package/docs/TermsAndConditionsResponse.md +5 -2
  33. package/docs/TermsAudience.md +10 -0
  34. package/docs/UpdateClubReservationSettingsRequest.md +2 -0
  35. package/index.ts +1 -1
  36. package/package.json +1 -1
  37. package/tsconfig.json +1 -1
  38. package/docs/EstimateEventPrice200Response.md +0 -30
  39. package/docs/EstimateEventPriceRequestSharesInner.md +0 -22
  40. package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +0 -18
  41. package/docs/LoginResponse.md +0 -30
package/dist/base.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.310
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.310
8
+ * The version of the OpenAPI document: 1.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,15 +32,13 @@ exports.COLLECTION_FORMATS = {
32
32
  * @class BaseAPI
33
33
  */
34
34
  class BaseAPI {
35
- basePath;
36
- axios;
37
- configuration;
38
35
  constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
36
+ var _a;
39
37
  this.basePath = basePath;
40
38
  this.axios = axios;
41
39
  if (configuration) {
42
40
  this.configuration = configuration;
43
- this.basePath = configuration.basePath ?? basePath;
41
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
44
42
  }
45
43
  }
46
44
  }
@@ -53,7 +51,6 @@ exports.BaseAPI = BaseAPI;
53
51
  * @extends {Error}
54
52
  */
55
53
  class RequiredError extends Error {
56
- field;
57
54
  constructor(field, msg) {
58
55
  super(msg);
59
56
  this.field = field;
package/dist/common.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.310
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,13 +5,22 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.310
8
+ * The version of the OpenAPI document: 1.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
15
24
  Object.defineProperty(exports, "__esModule", { value: true });
16
25
  exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
17
26
  const base_1 = require("./base");
@@ -35,13 +44,15 @@ exports.assertParamExists = assertParamExists;
35
44
  *
36
45
  * @export
37
46
  */
38
- const setApiKeyToObject = async function (object, keyParamName, configuration) {
39
- if (configuration && configuration.apiKey) {
40
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
41
- ? await configuration.apiKey(keyParamName)
42
- : await configuration.apiKey;
43
- object[keyParamName] = localVarApiKeyValue;
44
- }
47
+ const setApiKeyToObject = function (object, keyParamName, configuration) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ if (configuration && configuration.apiKey) {
50
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
51
+ ? yield configuration.apiKey(keyParamName)
52
+ : yield configuration.apiKey;
53
+ object[keyParamName] = localVarApiKeyValue;
54
+ }
55
+ });
45
56
  };
46
57
  exports.setApiKeyToObject = setApiKeyToObject;
47
58
  /**
@@ -58,26 +69,30 @@ exports.setBasicAuthToObject = setBasicAuthToObject;
58
69
  *
59
70
  * @export
60
71
  */
61
- const setBearerAuthToObject = async function (object, configuration) {
62
- if (configuration && configuration.accessToken) {
63
- const accessToken = typeof configuration.accessToken === 'function'
64
- ? await configuration.accessToken()
65
- : await configuration.accessToken;
66
- object["Authorization"] = "Bearer " + accessToken;
67
- }
72
+ const setBearerAuthToObject = function (object, configuration) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ if (configuration && configuration.accessToken) {
75
+ const accessToken = typeof configuration.accessToken === 'function'
76
+ ? yield configuration.accessToken()
77
+ : yield configuration.accessToken;
78
+ object["Authorization"] = "Bearer " + accessToken;
79
+ }
80
+ });
68
81
  };
69
82
  exports.setBearerAuthToObject = setBearerAuthToObject;
70
83
  /**
71
84
  *
72
85
  * @export
73
86
  */
74
- const setOAuthToObject = async function (object, name, scopes, configuration) {
75
- if (configuration && configuration.accessToken) {
76
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
77
- ? await configuration.accessToken(name, scopes)
78
- : await configuration.accessToken;
79
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
80
- }
87
+ const setOAuthToObject = function (object, name, scopes, configuration) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ if (configuration && configuration.accessToken) {
90
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
91
+ ? yield configuration.accessToken(name, scopes)
92
+ : yield configuration.accessToken;
93
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
94
+ }
95
+ });
81
96
  };
82
97
  exports.setOAuthToObject = setOAuthToObject;
83
98
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
@@ -138,7 +153,8 @@ exports.toPathString = toPathString;
138
153
  */
139
154
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
140
155
  return (axios = globalAxios, basePath = BASE_PATH) => {
141
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
156
+ var _a;
157
+ 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 });
142
158
  return axios.request(axiosRequestArgs);
143
159
  };
144
160
  };
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.310
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.310
8
+ * The version of the OpenAPI document: 1.0.2
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,75 +15,15 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Configuration = void 0;
17
17
  class Configuration {
18
- /**
19
- * parameter for apiKey security
20
- * @param name security name
21
- * @memberof Configuration
22
- */
23
- apiKey;
24
- /**
25
- * parameter for basic security
26
- *
27
- * @type {string}
28
- * @memberof Configuration
29
- */
30
- username;
31
- /**
32
- * parameter for basic security
33
- *
34
- * @type {string}
35
- * @memberof Configuration
36
- */
37
- password;
38
- /**
39
- * parameter for oauth2 security
40
- * @param name security name
41
- * @param scopes oauth2 scope
42
- * @memberof Configuration
43
- */
44
- accessToken;
45
- /**
46
- * override base path
47
- *
48
- * @type {string}
49
- * @memberof Configuration
50
- */
51
- basePath;
52
- /**
53
- * override server index
54
- *
55
- * @type {number}
56
- * @memberof Configuration
57
- */
58
- serverIndex;
59
- /**
60
- * base options for axios calls
61
- *
62
- * @type {any}
63
- * @memberof Configuration
64
- */
65
- baseOptions;
66
- /**
67
- * The FormData constructor that will be used to create multipart form data
68
- * requests. You can inject this here so that execution environments that
69
- * do not support the FormData class can still run the generated client.
70
- *
71
- * @type {new () => FormData}
72
- */
73
- formDataCtor;
74
18
  constructor(param = {}) {
19
+ var _a;
75
20
  this.apiKey = param.apiKey;
76
21
  this.username = param.username;
77
22
  this.password = param.password;
78
23
  this.accessToken = param.accessToken;
79
24
  this.basePath = param.basePath;
80
25
  this.serverIndex = param.serverIndex;
81
- this.baseOptions = {
82
- ...param.baseOptions,
83
- headers: {
84
- ...param.baseOptions?.headers,
85
- },
86
- };
26
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
87
27
  this.formDataCtor = param.formDataCtor;
88
28
  }
89
29
  /**
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.310
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4639,6 +4639,12 @@ export interface ClubReservationSettingsResponse {
4639
4639
  * @memberof ClubReservationSettingsResponse
4640
4640
  */
4641
4641
  'cancellationDelayInHours': number;
4642
+ /**
4643
+ *
4644
+ * @type {number}
4645
+ * @memberof ClubReservationSettingsResponse
4646
+ */
4647
+ 'eventCancellationDelayInHours': number;
4642
4648
  /**
4643
4649
  *
4644
4650
  * @type {number}
@@ -9936,6 +9942,7 @@ export declare const InvoiceStatus: {
9936
9942
  readonly Authorized: "authorized";
9937
9943
  readonly Canceled: "canceled";
9938
9944
  readonly Expired: "expired";
9945
+ readonly Refunded: "refunded";
9939
9946
  };
9940
9947
  export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
9941
9948
  /**
@@ -10700,6 +10707,12 @@ export interface ManagerConsoleInvoicePlayerSummary {
10700
10707
  * @memberof ManagerConsoleInvoicePlayerSummary
10701
10708
  */
10702
10709
  'reducedAmount': number;
10710
+ /**
10711
+ *
10712
+ * @type {Array<string>}
10713
+ * @memberof ManagerConsoleInvoicePlayerSummary
10714
+ */
10715
+ 'subscriptionNames'?: Array<string>;
10703
10716
  }
10704
10717
  /**
10705
10718
  *
@@ -11127,6 +11140,12 @@ export interface ManagerConsoleInvoiceUserSummary {
11127
11140
  * @memberof ManagerConsoleInvoiceUserSummary
11128
11141
  */
11129
11142
  'profilePictureUrl'?: string;
11143
+ /**
11144
+ *
11145
+ * @type {Array<string>}
11146
+ * @memberof ManagerConsoleInvoiceUserSummary
11147
+ */
11148
+ 'subscriptionNames'?: Array<string>;
11130
11149
  }
11131
11150
  /**
11132
11151
  *
@@ -17472,7 +17491,7 @@ export interface Team {
17472
17491
  'players': Array<EventUser>;
17473
17492
  }
17474
17493
  /**
17475
- * CGU (Terms and Conditions)
17494
+ *
17476
17495
  * @export
17477
17496
  * @interface TermsAndConditionsResponse
17478
17497
  */
@@ -17500,20 +17519,42 @@ export interface TermsAndConditionsResponse {
17500
17519
  * @type {string}
17501
17520
  * @memberof TermsAndConditionsResponse
17502
17521
  */
17503
- 'effectiveDate': string;
17522
+ 'effectiveDate'?: string;
17504
17523
  /**
17505
17524
  * Résumé des changements (optionnel)
17506
17525
  * @type {string}
17507
17526
  * @memberof TermsAndConditionsResponse
17508
17527
  */
17509
17528
  'summary'?: string;
17529
+ /**
17530
+ *
17531
+ * @type {string}
17532
+ * @memberof TermsAndConditionsResponse
17533
+ */
17534
+ 'audience'?: string;
17510
17535
  /**
17511
17536
  * Code de la langue
17512
17537
  * @type {string}
17513
17538
  * @memberof TermsAndConditionsResponse
17514
17539
  */
17515
17540
  'language': string;
17541
+ /**
17542
+ *
17543
+ * @type {string}
17544
+ * @memberof TermsAndConditionsResponse
17545
+ */
17546
+ 'createdAt'?: string;
17516
17547
  }
17548
+ /**
17549
+ *
17550
+ * @export
17551
+ * @enum {string}
17552
+ */
17553
+ export declare const TermsAudience: {
17554
+ readonly User: "user";
17555
+ readonly Manager: "manager";
17556
+ };
17557
+ export type TermsAudience = typeof TermsAudience[keyof typeof TermsAudience];
17517
17558
  /**
17518
17559
  *
17519
17560
  * @export
@@ -17915,6 +17956,12 @@ export interface UpdateClubReservationSettingsRequest {
17915
17956
  * @memberof UpdateClubReservationSettingsRequest
17916
17957
  */
17917
17958
  'cancellationDelayInHours': number;
17959
+ /**
17960
+ *
17961
+ * @type {number}
17962
+ * @memberof UpdateClubReservationSettingsRequest
17963
+ */
17964
+ 'eventCancellationDelayInHours'?: number;
17918
17965
  /**
17919
17966
  *
17920
17967
  * @type {number}
@@ -30712,6 +30759,74 @@ export declare class SumUpManagerApi extends BaseAPI {
30712
30759
  */
30713
30760
  updateSumupReader(requestParameters: SumUpManagerApiUpdateSumupReaderRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SumupReaderResponse, any, {}>>;
30714
30761
  }
30762
+ /**
30763
+ * TermsAndConditionsPublicApi - axios parameter creator
30764
+ * @export
30765
+ */
30766
+ export declare const TermsAndConditionsPublicApiAxiosParamCreator: (configuration?: Configuration) => {
30767
+ /**
30768
+ * Récupère la dernière version active des CGU en français
30769
+ * @param {TermsAudience} [audience] Type de CGU à récupérer: \&quot;user\&quot; pour les utilisateurs finaux, \&quot;manager\&quot; pour les gestionnaires de clubs
30770
+ * @param {*} [options] Override http request option.
30771
+ * @throws {RequiredError}
30772
+ */
30773
+ getLatestTerms: (audience?: TermsAudience, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30774
+ };
30775
+ /**
30776
+ * TermsAndConditionsPublicApi - functional programming interface
30777
+ * @export
30778
+ */
30779
+ export declare const TermsAndConditionsPublicApiFp: (configuration?: Configuration) => {
30780
+ /**
30781
+ * Récupère la dernière version active des CGU en français
30782
+ * @param {TermsAudience} [audience] Type de CGU à récupérer: \&quot;user\&quot; pour les utilisateurs finaux, \&quot;manager\&quot; pour les gestionnaires de clubs
30783
+ * @param {*} [options] Override http request option.
30784
+ * @throws {RequiredError}
30785
+ */
30786
+ getLatestTerms(audience?: TermsAudience, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TermsAndConditionsResponse>>;
30787
+ };
30788
+ /**
30789
+ * TermsAndConditionsPublicApi - factory interface
30790
+ * @export
30791
+ */
30792
+ export declare const TermsAndConditionsPublicApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
30793
+ /**
30794
+ * Récupère la dernière version active des CGU en français
30795
+ * @param {TermsAndConditionsPublicApiGetLatestTermsRequest} requestParameters Request parameters.
30796
+ * @param {*} [options] Override http request option.
30797
+ * @throws {RequiredError}
30798
+ */
30799
+ getLatestTerms(requestParameters?: TermsAndConditionsPublicApiGetLatestTermsRequest, options?: RawAxiosRequestConfig): AxiosPromise<TermsAndConditionsResponse>;
30800
+ };
30801
+ /**
30802
+ * Request parameters for getLatestTerms operation in TermsAndConditionsPublicApi.
30803
+ * @export
30804
+ * @interface TermsAndConditionsPublicApiGetLatestTermsRequest
30805
+ */
30806
+ export interface TermsAndConditionsPublicApiGetLatestTermsRequest {
30807
+ /**
30808
+ * Type de CGU à récupérer: \&quot;user\&quot; pour les utilisateurs finaux, \&quot;manager\&quot; pour les gestionnaires de clubs
30809
+ * @type {TermsAudience}
30810
+ * @memberof TermsAndConditionsPublicApiGetLatestTerms
30811
+ */
30812
+ readonly audience?: TermsAudience;
30813
+ }
30814
+ /**
30815
+ * TermsAndConditionsPublicApi - object-oriented interface
30816
+ * @export
30817
+ * @class TermsAndConditionsPublicApi
30818
+ * @extends {BaseAPI}
30819
+ */
30820
+ export declare class TermsAndConditionsPublicApi extends BaseAPI {
30821
+ /**
30822
+ * Récupère la dernière version active des CGU en français
30823
+ * @param {TermsAndConditionsPublicApiGetLatestTermsRequest} requestParameters Request parameters.
30824
+ * @param {*} [options] Override http request option.
30825
+ * @throws {RequiredError}
30826
+ * @memberof TermsAndConditionsPublicApi
30827
+ */
30828
+ getLatestTerms(requestParameters?: TermsAndConditionsPublicApiGetLatestTermsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermsAndConditionsResponse, any, {}>>;
30829
+ }
30715
30830
  /**
30716
30831
  * UserApi - axios parameter creator
30717
30832
  * @export