@tennac-booking/sdk 1.0.1 → 1.0.2

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.
@@ -7,9 +7,12 @@ common.ts
7
7
  configuration.ts
8
8
  docs/AuthApi.md
9
9
  docs/Booking.md
10
+ docs/BookingStatus.md
10
11
  docs/Court.md
12
+ docs/CourtStatus.md
11
13
  docs/Slot.md
12
14
  docs/SlotException.md
15
+ docs/StripeStatus.md
13
16
  docs/User.md
14
17
  docs/UsersApi.md
15
18
  git_push.sh
package/README.md CHANGED
@@ -58,9 +58,12 @@ Class | Method | HTTP request | Description
58
58
  ### Documentation For Models
59
59
 
60
60
  - [Booking](docs/Booking.md)
61
+ - [BookingStatus](docs/BookingStatus.md)
61
62
  - [Court](docs/Court.md)
63
+ - [CourtStatus](docs/CourtStatus.md)
62
64
  - [Slot](docs/Slot.md)
63
65
  - [SlotException](docs/SlotException.md)
66
+ - [StripeStatus](docs/StripeStatus.md)
64
67
  - [User](docs/User.md)
65
68
 
66
69
 
package/api.ts CHANGED
@@ -43,16 +43,16 @@ export interface Booking {
43
43
  'playersIds'?: Array<string>;
44
44
  /**
45
45
  *
46
- * @type {string}
46
+ * @type {BookingStatus}
47
47
  * @memberof Booking
48
48
  */
49
- 'status': BookingStatusEnum;
49
+ 'status': BookingStatus;
50
50
  /**
51
51
  *
52
- * @type {string}
52
+ * @type {StripeStatus}
53
53
  * @memberof Booking
54
54
  */
55
- 'stripeStatus': BookingStripeStatusEnum;
55
+ 'stripeStatus': StripeStatus;
56
56
  /**
57
57
  *
58
58
  * @type {string}
@@ -73,21 +73,20 @@ export interface Booking {
73
73
  'slotId': string;
74
74
  }
75
75
 
76
- export const BookingStatusEnum = {
76
+
77
+ /**
78
+ *
79
+ * @export
80
+ * @enum {string}
81
+ */
82
+
83
+ export const BookingStatus = {
77
84
  Active: 'active',
78
85
  Inactive: 'inactive'
79
86
  } as const;
80
87
 
81
- export type BookingStatusEnum = typeof BookingStatusEnum[keyof typeof BookingStatusEnum];
82
- export const BookingStripeStatusEnum = {
83
- Pending: 'pending',
84
- Paid: 'paid',
85
- Failed: 'failed',
86
- Refunded: 'refunded',
87
- Canceled: 'canceled'
88
- } as const;
88
+ export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
89
89
 
90
- export type BookingStripeStatusEnum = typeof BookingStripeStatusEnum[keyof typeof BookingStripeStatusEnum];
91
90
 
92
91
  /**
93
92
  *
@@ -103,10 +102,10 @@ export interface Court {
103
102
  'name': string;
104
103
  /**
105
104
  *
106
- * @type {string}
105
+ * @type {CourtStatus}
107
106
  * @memberof Court
108
107
  */
109
- 'status': CourtStatusEnum;
108
+ 'status': CourtStatus;
110
109
  /**
111
110
  *
112
111
  * @type {string}
@@ -139,12 +138,20 @@ export interface Court {
139
138
  'endTimeInTheDayInMinutes': number;
140
139
  }
141
140
 
142
- export const CourtStatusEnum = {
141
+
142
+ /**
143
+ *
144
+ * @export
145
+ * @enum {string}
146
+ */
147
+
148
+ export const CourtStatus = {
143
149
  Available: 'available',
144
150
  Unavailable: 'unavailable'
145
151
  } as const;
146
152
 
147
- export type CourtStatusEnum = typeof CourtStatusEnum[keyof typeof CourtStatusEnum];
153
+ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
154
+
148
155
 
149
156
  /**
150
157
  *
@@ -202,6 +209,23 @@ export interface SlotException {
202
209
  */
203
210
  'reason': string;
204
211
  }
212
+ /**
213
+ *
214
+ * @export
215
+ * @enum {string}
216
+ */
217
+
218
+ export const StripeStatus = {
219
+ Pending: 'pending',
220
+ Paid: 'paid',
221
+ Failed: 'failed',
222
+ Refunded: 'refunded',
223
+ Canceled: 'canceled'
224
+ } as const;
225
+
226
+ export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
227
+
228
+
205
229
  /**
206
230
  *
207
231
  * @export
package/dist/api.d.ts CHANGED
@@ -33,16 +33,16 @@ export interface Booking {
33
33
  'playersIds'?: Array<string>;
34
34
  /**
35
35
  *
36
- * @type {string}
36
+ * @type {BookingStatus}
37
37
  * @memberof Booking
38
38
  */
39
- 'status': BookingStatusEnum;
39
+ 'status': BookingStatus;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {StripeStatus}
43
43
  * @memberof Booking
44
44
  */
45
- 'stripeStatus': BookingStripeStatusEnum;
45
+ 'stripeStatus': StripeStatus;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -62,19 +62,16 @@ export interface Booking {
62
62
  */
63
63
  'slotId': string;
64
64
  }
65
- export declare const BookingStatusEnum: {
65
+ /**
66
+ *
67
+ * @export
68
+ * @enum {string}
69
+ */
70
+ export declare const BookingStatus: {
66
71
  readonly Active: "active";
67
72
  readonly Inactive: "inactive";
68
73
  };
69
- export type BookingStatusEnum = typeof BookingStatusEnum[keyof typeof BookingStatusEnum];
70
- export declare const BookingStripeStatusEnum: {
71
- readonly Pending: "pending";
72
- readonly Paid: "paid";
73
- readonly Failed: "failed";
74
- readonly Refunded: "refunded";
75
- readonly Canceled: "canceled";
76
- };
77
- export type BookingStripeStatusEnum = typeof BookingStripeStatusEnum[keyof typeof BookingStripeStatusEnum];
74
+ export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
78
75
  /**
79
76
  *
80
77
  * @export
@@ -89,10 +86,10 @@ export interface Court {
89
86
  'name': string;
90
87
  /**
91
88
  *
92
- * @type {string}
89
+ * @type {CourtStatus}
93
90
  * @memberof Court
94
91
  */
95
- 'status': CourtStatusEnum;
92
+ 'status': CourtStatus;
96
93
  /**
97
94
  *
98
95
  * @type {string}
@@ -124,11 +121,16 @@ export interface Court {
124
121
  */
125
122
  'endTimeInTheDayInMinutes': number;
126
123
  }
127
- export declare const CourtStatusEnum: {
124
+ /**
125
+ *
126
+ * @export
127
+ * @enum {string}
128
+ */
129
+ export declare const CourtStatus: {
128
130
  readonly Available: "available";
129
131
  readonly Unavailable: "unavailable";
130
132
  };
131
- export type CourtStatusEnum = typeof CourtStatusEnum[keyof typeof CourtStatusEnum];
133
+ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
132
134
  /**
133
135
  *
134
136
  * @export
@@ -185,6 +187,19 @@ export interface SlotException {
185
187
  */
186
188
  'reason': string;
187
189
  }
190
+ /**
191
+ *
192
+ * @export
193
+ * @enum {string}
194
+ */
195
+ export declare const StripeStatus: {
196
+ readonly Pending: "pending";
197
+ readonly Paid: "paid";
198
+ readonly Failed: "failed";
199
+ readonly Refunded: "refunded";
200
+ readonly Canceled: "canceled";
201
+ };
202
+ export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
188
203
  /**
189
204
  *
190
205
  * @export
package/dist/api.js CHANGED
@@ -22,28 +22,43 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.CourtStatusEnum = exports.BookingStripeStatusEnum = exports.BookingStatusEnum = void 0;
25
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.StripeStatus = exports.CourtStatus = exports.BookingStatus = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
29
  const common_1 = require("./common");
30
30
  // @ts-ignore
31
31
  const base_1 = require("./base");
32
- exports.BookingStatusEnum = {
32
+ /**
33
+ *
34
+ * @export
35
+ * @enum {string}
36
+ */
37
+ exports.BookingStatus = {
33
38
  Active: 'active',
34
39
  Inactive: 'inactive'
35
40
  };
36
- exports.BookingStripeStatusEnum = {
41
+ /**
42
+ *
43
+ * @export
44
+ * @enum {string}
45
+ */
46
+ exports.CourtStatus = {
47
+ Available: 'available',
48
+ Unavailable: 'unavailable'
49
+ };
50
+ /**
51
+ *
52
+ * @export
53
+ * @enum {string}
54
+ */
55
+ exports.StripeStatus = {
37
56
  Pending: 'pending',
38
57
  Paid: 'paid',
39
58
  Failed: 'failed',
40
59
  Refunded: 'refunded',
41
60
  Canceled: 'canceled'
42
61
  };
43
- exports.CourtStatusEnum = {
44
- Available: 'available',
45
- Unavailable: 'unavailable'
46
- };
47
62
  /**
48
63
  * AuthApi - axios parameter creator
49
64
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -33,16 +33,16 @@ export interface Booking {
33
33
  'playersIds'?: Array<string>;
34
34
  /**
35
35
  *
36
- * @type {string}
36
+ * @type {BookingStatus}
37
37
  * @memberof Booking
38
38
  */
39
- 'status': BookingStatusEnum;
39
+ 'status': BookingStatus;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {StripeStatus}
43
43
  * @memberof Booking
44
44
  */
45
- 'stripeStatus': BookingStripeStatusEnum;
45
+ 'stripeStatus': StripeStatus;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -62,19 +62,16 @@ export interface Booking {
62
62
  */
63
63
  'slotId': string;
64
64
  }
65
- export declare const BookingStatusEnum: {
65
+ /**
66
+ *
67
+ * @export
68
+ * @enum {string}
69
+ */
70
+ export declare const BookingStatus: {
66
71
  readonly Active: "active";
67
72
  readonly Inactive: "inactive";
68
73
  };
69
- export type BookingStatusEnum = typeof BookingStatusEnum[keyof typeof BookingStatusEnum];
70
- export declare const BookingStripeStatusEnum: {
71
- readonly Pending: "pending";
72
- readonly Paid: "paid";
73
- readonly Failed: "failed";
74
- readonly Refunded: "refunded";
75
- readonly Canceled: "canceled";
76
- };
77
- export type BookingStripeStatusEnum = typeof BookingStripeStatusEnum[keyof typeof BookingStripeStatusEnum];
74
+ export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
78
75
  /**
79
76
  *
80
77
  * @export
@@ -89,10 +86,10 @@ export interface Court {
89
86
  'name': string;
90
87
  /**
91
88
  *
92
- * @type {string}
89
+ * @type {CourtStatus}
93
90
  * @memberof Court
94
91
  */
95
- 'status': CourtStatusEnum;
92
+ 'status': CourtStatus;
96
93
  /**
97
94
  *
98
95
  * @type {string}
@@ -124,11 +121,16 @@ export interface Court {
124
121
  */
125
122
  'endTimeInTheDayInMinutes': number;
126
123
  }
127
- export declare const CourtStatusEnum: {
124
+ /**
125
+ *
126
+ * @export
127
+ * @enum {string}
128
+ */
129
+ export declare const CourtStatus: {
128
130
  readonly Available: "available";
129
131
  readonly Unavailable: "unavailable";
130
132
  };
131
- export type CourtStatusEnum = typeof CourtStatusEnum[keyof typeof CourtStatusEnum];
133
+ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
132
134
  /**
133
135
  *
134
136
  * @export
@@ -185,6 +187,19 @@ export interface SlotException {
185
187
  */
186
188
  'reason': string;
187
189
  }
190
+ /**
191
+ *
192
+ * @export
193
+ * @enum {string}
194
+ */
195
+ export declare const StripeStatus: {
196
+ readonly Pending: "pending";
197
+ readonly Paid: "paid";
198
+ readonly Failed: "failed";
199
+ readonly Refunded: "refunded";
200
+ readonly Canceled: "canceled";
201
+ };
202
+ export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
188
203
  /**
189
204
  *
190
205
  * @export
package/dist/esm/api.js CHANGED
@@ -26,21 +26,36 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
- export const BookingStatusEnum = {
29
+ /**
30
+ *
31
+ * @export
32
+ * @enum {string}
33
+ */
34
+ export const BookingStatus = {
30
35
  Active: 'active',
31
36
  Inactive: 'inactive'
32
37
  };
33
- export const BookingStripeStatusEnum = {
38
+ /**
39
+ *
40
+ * @export
41
+ * @enum {string}
42
+ */
43
+ export const CourtStatus = {
44
+ Available: 'available',
45
+ Unavailable: 'unavailable'
46
+ };
47
+ /**
48
+ *
49
+ * @export
50
+ * @enum {string}
51
+ */
52
+ export const StripeStatus = {
34
53
  Pending: 'pending',
35
54
  Paid: 'paid',
36
55
  Failed: 'failed',
37
56
  Refunded: 'refunded',
38
57
  Canceled: 'canceled'
39
58
  };
40
- export const CourtStatusEnum = {
41
- Available: 'available',
42
- Unavailable: 'unavailable'
43
- };
44
59
  /**
45
60
  * AuthApi - axios parameter creator
46
61
  * @export
package/docs/Booking.md CHANGED
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **userId** | **string** | | [default to undefined]
9
9
  **playersIds** | **Array&lt;string&gt;** | | [optional] [default to undefined]
10
- **status** | **string** | | [default to undefined]
11
- **stripeStatus** | **string** | | [default to undefined]
10
+ **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
11
+ **stripeStatus** | [**StripeStatus**](StripeStatus.md) | | [default to undefined]
12
12
  **stripePaymentIntentId** | **string** | | [default to undefined]
13
13
  **totalPrice** | **number** | | [default to undefined]
14
14
  **slotId** | **string** | | [default to undefined]
@@ -0,0 +1,10 @@
1
+ # BookingStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Active` (value: `'active'`)
7
+
8
+ * `Inactive` (value: `'inactive'`)
9
+
10
+ [[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/Court.md CHANGED
@@ -6,7 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **name** | **string** | | [default to undefined]
9
- **status** | **string** | | [default to undefined]
9
+ **status** | [**CourtStatus**](CourtStatus.md) | | [default to undefined]
10
10
  **comments** | **string** | | [optional] [default to undefined]
11
11
  **pricePerSlot** | **number** | | [default to undefined]
12
12
  **slotDefaultDuration** | **number** | | [default to undefined]
@@ -0,0 +1,10 @@
1
+ # CourtStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Available` (value: `'available'`)
7
+
8
+ * `Unavailable` (value: `'unavailable'`)
9
+
10
+ [[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,16 @@
1
+ # StripeStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Pending` (value: `'pending'`)
7
+
8
+ * `Paid` (value: `'paid'`)
9
+
10
+ * `Failed` (value: `'failed'`)
11
+
12
+ * `Refunded` (value: `'refunded'`)
13
+
14
+ * `Canceled` (value: `'canceled'`)
15
+
16
+ [[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/package.json CHANGED
@@ -1,12 +1,8 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
9
- },
10
6
  "keywords": [
11
7
  "axios",
12
8
  "typescript",
@@ -14,6 +10,9 @@
14
10
  "openapi-generator",
15
11
  "@tennac-booking/sdk"
16
12
  ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
17
16
  "license": "Unlicense",
18
17
  "main": "./dist/index.js",
19
18
  "typings": "./dist/index.d.ts",