@tennac-booking/sdk 1.0.309 → 1.0.310
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 +560 -560
- package/README.md +2 -2
- package/api.ts +5 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +5 -5
- package/dist/api.js +2881 -3772
- package/dist/base.d.ts +1 -1
- package/dist/base.js +6 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +23 -39
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +63 -3
- package/dist/esm/api.d.ts +5 -5
- package/dist/esm/api.js +2881 -3772
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +6 -3
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +23 -39
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +63 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CreateSubscriptionPlanRequest.md +2 -2
- package/docs/EstimateEventPrice200Response.md +30 -0
- package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
- package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +18 -0
- package/docs/LoginResponse.md +30 -0
- package/docs/PublicSubscriptionPlanResponse.md +2 -2
- package/docs/SubscriptionPlanResponse.md +2 -2
- package/docs/UpdateSubscriptionPlanRequest.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.310
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -29,13 +29,15 @@ export const COLLECTION_FORMATS = {
|
|
|
29
29
|
* @class BaseAPI
|
|
30
30
|
*/
|
|
31
31
|
export class BaseAPI {
|
|
32
|
+
basePath;
|
|
33
|
+
axios;
|
|
34
|
+
configuration;
|
|
32
35
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
-
var _a;
|
|
34
36
|
this.basePath = basePath;
|
|
35
37
|
this.axios = axios;
|
|
36
38
|
if (configuration) {
|
|
37
39
|
this.configuration = configuration;
|
|
38
|
-
this.basePath =
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
}
|
|
@@ -47,6 +49,7 @@ export class BaseAPI {
|
|
|
47
49
|
* @extends {Error}
|
|
48
50
|
*/
|
|
49
51
|
export class RequiredError extends Error {
|
|
52
|
+
field;
|
|
50
53
|
constructor(field, msg) {
|
|
51
54
|
super(msg);
|
|
52
55
|
this.field = field;
|
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
|
@@ -4,22 +4,13 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.310
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
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
|
-
};
|
|
23
14
|
import { RequiredError } from "./base";
|
|
24
15
|
/**
|
|
25
16
|
*
|
|
@@ -40,15 +31,13 @@ export const assertParamExists = function (functionName, paramName, paramValue)
|
|
|
40
31
|
*
|
|
41
32
|
* @export
|
|
42
33
|
*/
|
|
43
|
-
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
});
|
|
34
|
+
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
35
|
+
if (configuration && configuration.apiKey) {
|
|
36
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
37
|
+
? await configuration.apiKey(keyParamName)
|
|
38
|
+
: await configuration.apiKey;
|
|
39
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
40
|
+
}
|
|
52
41
|
};
|
|
53
42
|
/**
|
|
54
43
|
*
|
|
@@ -63,29 +52,25 @@ export const setBasicAuthToObject = function (object, configuration) {
|
|
|
63
52
|
*
|
|
64
53
|
* @export
|
|
65
54
|
*/
|
|
66
|
-
export const setBearerAuthToObject = function (object, configuration) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
});
|
|
55
|
+
export const setBearerAuthToObject = async function (object, configuration) {
|
|
56
|
+
if (configuration && configuration.accessToken) {
|
|
57
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
58
|
+
? await configuration.accessToken()
|
|
59
|
+
: await configuration.accessToken;
|
|
60
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
61
|
+
}
|
|
75
62
|
};
|
|
76
63
|
/**
|
|
77
64
|
*
|
|
78
65
|
* @export
|
|
79
66
|
*/
|
|
80
|
-
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
});
|
|
67
|
+
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
68
|
+
if (configuration && configuration.accessToken) {
|
|
69
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
70
|
+
? await configuration.accessToken(name, scopes)
|
|
71
|
+
: await configuration.accessToken;
|
|
72
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
73
|
+
}
|
|
89
74
|
};
|
|
90
75
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
91
76
|
if (parameter == null)
|
|
@@ -142,8 +127,7 @@ export const toPathString = function (url) {
|
|
|
142
127
|
*/
|
|
143
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
144
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
145
|
-
|
|
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 });
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
147
131
|
return axios.request(axiosRequestArgs);
|
|
148
132
|
};
|
|
149
133
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.310
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,15 +12,75 @@
|
|
|
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;
|
|
15
71
|
constructor(param = {}) {
|
|
16
|
-
var _a;
|
|
17
72
|
this.apiKey = param.apiKey;
|
|
18
73
|
this.username = param.username;
|
|
19
74
|
this.password = param.password;
|
|
20
75
|
this.accessToken = param.accessToken;
|
|
21
76
|
this.basePath = param.basePath;
|
|
22
77
|
this.serverIndex = param.serverIndex;
|
|
23
|
-
this.baseOptions =
|
|
78
|
+
this.baseOptions = {
|
|
79
|
+
...param.baseOptions,
|
|
80
|
+
headers: {
|
|
81
|
+
...param.baseOptions?.headers,
|
|
82
|
+
},
|
|
83
|
+
};
|
|
24
84
|
this.formDataCtor = param.formDataCtor;
|
|
25
85
|
}
|
|
26
86
|
/**
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**prices** | [**Array<PlanPriceInput>**](PlanPriceInput.md) | | [default to undefined]
|
|
12
12
|
**currency** | **string** | | [default to undefined]
|
|
13
13
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
|
|
14
|
-
**
|
|
14
|
+
**commitmentInDays** | **number** | | [optional] [default to undefined]
|
|
15
15
|
**discount** | [**CreateSubscriptionPlanRequestDiscount**](CreateSubscriptionPlanRequestDiscount.md) | | [optional] [default to undefined]
|
|
16
16
|
|
|
17
17
|
## Example
|
|
@@ -26,7 +26,7 @@ const instance: CreateSubscriptionPlanRequest = {
|
|
|
26
26
|
prices,
|
|
27
27
|
currency,
|
|
28
28
|
interval,
|
|
29
|
-
|
|
29
|
+
commitmentInDays,
|
|
30
30
|
discount,
|
|
31
31
|
};
|
|
32
32
|
```
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# EstimateEventPrice200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**perPayerAfterCredits** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
9
|
+
**totalAfterCredits** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**creditsAppliedInCents** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**currency** | **string** | | [default to undefined]
|
|
12
|
+
**total** | **number** | | [default to undefined]
|
|
13
|
+
**perPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { EstimateEventPrice200Response } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: EstimateEventPrice200Response = {
|
|
21
|
+
perPayerAfterCredits,
|
|
22
|
+
totalAfterCredits,
|
|
23
|
+
creditsAppliedInCents,
|
|
24
|
+
currency,
|
|
25
|
+
total,
|
|
26
|
+
perPlayer,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[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,22 @@
|
|
|
1
|
+
# EstimateEventPriceRequestSharesInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**paysAlsoFor** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
**playerId** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { EstimateEventPriceRequestSharesInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: EstimateEventPriceRequestSharesInner = {
|
|
17
|
+
paysAlsoFor,
|
|
18
|
+
playerId,
|
|
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,18 @@
|
|
|
1
|
+
# EventBookingResponsePlayersInnerInvoiceStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { EventBookingResponsePlayersInnerInvoiceStatus } from '@tennac-booking/sdk';
|
|
13
|
+
|
|
14
|
+
const instance: EventBookingResponsePlayersInnerInvoiceStatus = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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,30 @@
|
|
|
1
|
+
# LoginResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**token** | **string** | | [default to undefined]
|
|
9
|
+
**refreshToken** | **string** | | [default to undefined]
|
|
10
|
+
**sessionDuration** | **number** | | [default to undefined]
|
|
11
|
+
**sessionEnd** | **number** | | [default to undefined]
|
|
12
|
+
**role** | **string** | | [default to undefined]
|
|
13
|
+
**isOnBoardingInAppCompleted** | **boolean** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { LoginResponse } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: LoginResponse = {
|
|
21
|
+
token,
|
|
22
|
+
refreshToken,
|
|
23
|
+
sessionDuration,
|
|
24
|
+
sessionEnd,
|
|
25
|
+
role,
|
|
26
|
+
isOnBoardingInAppCompleted,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
15
15
|
**description** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
17
|
-
**
|
|
17
|
+
**commitmentInDays** | **number** | | [optional] [default to undefined]
|
|
18
18
|
**isUserSubscribed** | **boolean** | | [optional] [default to undefined]
|
|
19
19
|
**userSubscriptionId** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**userSubscriptionStatus** | **string** | | [optional] [default to undefined]
|
|
@@ -34,7 +34,7 @@ const instance: PublicSubscriptionPlanResponse = {
|
|
|
34
34
|
interval,
|
|
35
35
|
description,
|
|
36
36
|
discount,
|
|
37
|
-
|
|
37
|
+
commitmentInDays,
|
|
38
38
|
isUserSubscribed,
|
|
39
39
|
userSubscriptionId,
|
|
40
40
|
userSubscriptionStatus,
|
|
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
|
|
|
18
18
|
**priceActive** | **boolean** | | [default to undefined]
|
|
19
19
|
**description** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
21
|
-
**
|
|
21
|
+
**commitmentInDays** | **number** | | [optional] [default to undefined]
|
|
22
22
|
|
|
23
23
|
## Example
|
|
24
24
|
|
|
@@ -39,7 +39,7 @@ const instance: SubscriptionPlanResponse = {
|
|
|
39
39
|
priceActive,
|
|
40
40
|
description,
|
|
41
41
|
discount,
|
|
42
|
-
|
|
42
|
+
commitmentInDays,
|
|
43
43
|
};
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**currency** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [optional] [default to undefined]
|
|
14
|
-
**
|
|
14
|
+
**commitmentInDays** | **number** | | [optional] [default to undefined]
|
|
15
15
|
**discount** | [**SubscriptionPlanDiscountUpdateRequest**](SubscriptionPlanDiscountUpdateRequest.md) | | [optional] [default to undefined]
|
|
16
16
|
**newAmountInCents** | **number** | | [optional] [default to undefined]
|
|
17
17
|
|
|
@@ -27,7 +27,7 @@ const instance: UpdateSubscriptionPlanRequest = {
|
|
|
27
27
|
description,
|
|
28
28
|
currency,
|
|
29
29
|
interval,
|
|
30
|
-
|
|
30
|
+
commitmentInDays,
|
|
31
31
|
discount,
|
|
32
32
|
newAmountInCents,
|
|
33
33
|
};
|
package/index.ts
CHANGED
package/package.json
CHANGED