@tennac-booking/sdk 1.0.6 → 1.0.10

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 (140) hide show
  1. package/.openapi-generator/FILES +10 -1
  2. package/README.md +17 -2
  3. package/api.ts +831 -224
  4. package/dist/api.d.ts +589 -109
  5. package/dist/api.js +394 -148
  6. package/dist/esm/api.d.ts +589 -109
  7. package/dist/esm/api.js +394 -144
  8. package/docs/ApiErrorResponse.md +22 -0
  9. package/docs/ChangePasswordRequestBody.md +22 -0
  10. package/docs/ChangePasswordResponse.md +20 -0
  11. package/docs/LoginRequestBody.md +22 -0
  12. package/docs/LoginResponse.md +26 -0
  13. package/docs/RefreshTokenRequestBody.md +20 -0
  14. package/docs/RefreshTokenResponse.md +26 -0
  15. package/docs/RegisterRequestBody.md +36 -0
  16. package/docs/UpdateUserRequestBody.md +32 -0
  17. package/docs/UserResponse.md +44 -0
  18. package/docs/UsersApi.md +345 -6
  19. package/package.json +1 -4
  20. package/apis/AuthApi.ts +0 -157
  21. package/apis/UsersApi.ts +0 -56
  22. package/apis/index.ts +0 -4
  23. package/dist/apis/AuthApi.d.ts +0 -39
  24. package/dist/apis/AuthApi.js +0 -117
  25. package/dist/apis/UsersApi.d.ts +0 -26
  26. package/dist/apis/UsersApi.js +0 -58
  27. package/dist/apis/index.d.ts +0 -2
  28. package/dist/apis/index.js +0 -20
  29. package/dist/esm/apis/AuthApi.d.ts +0 -39
  30. package/dist/esm/apis/AuthApi.js +0 -113
  31. package/dist/esm/apis/UsersApi.d.ts +0 -26
  32. package/dist/esm/apis/UsersApi.js +0 -54
  33. package/dist/esm/apis/index.d.ts +0 -2
  34. package/dist/esm/apis/index.js +0 -4
  35. package/dist/esm/models/Booking.d.ts +0 -87
  36. package/dist/esm/models/Booking.js +0 -82
  37. package/dist/esm/models/Court.d.ts +0 -76
  38. package/dist/esm/models/Court.js +0 -72
  39. package/dist/esm/models/Slot.d.ts +0 -44
  40. package/dist/esm/models/Slot.js +0 -51
  41. package/dist/esm/models/SlotException.d.ts +0 -50
  42. package/dist/esm/models/SlotException.js +0 -55
  43. package/dist/esm/models/User.d.ts +0 -92
  44. package/dist/esm/models/User.js +0 -69
  45. package/dist/esm/models/index.d.ts +0 -5
  46. package/dist/esm/models/index.js +0 -7
  47. package/dist/esm/runtime.d.ts +0 -184
  48. package/dist/esm/runtime.js +0 -334
  49. package/dist/esm/src/apis/AuthApi.d.ts +0 -39
  50. package/dist/esm/src/apis/AuthApi.js +0 -113
  51. package/dist/esm/src/apis/UsersApi.d.ts +0 -26
  52. package/dist/esm/src/apis/UsersApi.js +0 -54
  53. package/dist/esm/src/apis/index.d.ts +0 -2
  54. package/dist/esm/src/apis/index.js +0 -4
  55. package/dist/esm/src/index.d.ts +0 -3
  56. package/dist/esm/src/index.js +0 -5
  57. package/dist/esm/src/models/Booking.d.ts +0 -87
  58. package/dist/esm/src/models/Booking.js +0 -82
  59. package/dist/esm/src/models/BookingStatus.d.ts +0 -25
  60. package/dist/esm/src/models/BookingStatus.js +0 -43
  61. package/dist/esm/src/models/Court.d.ts +0 -76
  62. package/dist/esm/src/models/Court.js +0 -72
  63. package/dist/esm/src/models/CourtStatus.d.ts +0 -25
  64. package/dist/esm/src/models/CourtStatus.js +0 -43
  65. package/dist/esm/src/models/Slot.d.ts +0 -44
  66. package/dist/esm/src/models/Slot.js +0 -51
  67. package/dist/esm/src/models/SlotException.d.ts +0 -50
  68. package/dist/esm/src/models/SlotException.js +0 -55
  69. package/dist/esm/src/models/StripeStatus.d.ts +0 -28
  70. package/dist/esm/src/models/StripeStatus.js +0 -46
  71. package/dist/esm/src/models/User.d.ts +0 -92
  72. package/dist/esm/src/models/User.js +0 -69
  73. package/dist/esm/src/models/index.d.ts +0 -5
  74. package/dist/esm/src/models/index.js +0 -7
  75. package/dist/esm/src/runtime.d.ts +0 -184
  76. package/dist/esm/src/runtime.js +0 -334
  77. package/dist/models/Booking.d.ts +0 -87
  78. package/dist/models/Booking.js +0 -90
  79. package/dist/models/Court.d.ts +0 -76
  80. package/dist/models/Court.js +0 -80
  81. package/dist/models/Slot.d.ts +0 -44
  82. package/dist/models/Slot.js +0 -58
  83. package/dist/models/SlotException.d.ts +0 -50
  84. package/dist/models/SlotException.js +0 -62
  85. package/dist/models/User.d.ts +0 -92
  86. package/dist/models/User.js +0 -76
  87. package/dist/models/index.d.ts +0 -5
  88. package/dist/models/index.js +0 -23
  89. package/dist/runtime.d.ts +0 -184
  90. package/dist/runtime.js +0 -350
  91. package/dist/src/apis/AuthApi.d.ts +0 -39
  92. package/dist/src/apis/AuthApi.js +0 -117
  93. package/dist/src/apis/UsersApi.d.ts +0 -26
  94. package/dist/src/apis/UsersApi.js +0 -58
  95. package/dist/src/apis/index.d.ts +0 -2
  96. package/dist/src/apis/index.js +0 -20
  97. package/dist/src/index.d.ts +0 -3
  98. package/dist/src/index.js +0 -21
  99. package/dist/src/models/Booking.d.ts +0 -87
  100. package/dist/src/models/Booking.js +0 -90
  101. package/dist/src/models/BookingStatus.d.ts +0 -25
  102. package/dist/src/models/BookingStatus.js +0 -51
  103. package/dist/src/models/Court.d.ts +0 -76
  104. package/dist/src/models/Court.js +0 -80
  105. package/dist/src/models/CourtStatus.d.ts +0 -25
  106. package/dist/src/models/CourtStatus.js +0 -51
  107. package/dist/src/models/Slot.d.ts +0 -44
  108. package/dist/src/models/Slot.js +0 -58
  109. package/dist/src/models/SlotException.d.ts +0 -50
  110. package/dist/src/models/SlotException.js +0 -62
  111. package/dist/src/models/StripeStatus.d.ts +0 -28
  112. package/dist/src/models/StripeStatus.js +0 -54
  113. package/dist/src/models/User.d.ts +0 -92
  114. package/dist/src/models/User.js +0 -76
  115. package/dist/src/models/index.d.ts +0 -5
  116. package/dist/src/models/index.js +0 -23
  117. package/dist/src/runtime.d.ts +0 -184
  118. package/dist/src/runtime.js +0 -350
  119. package/docs/AuthApi.md +0 -88
  120. package/models/Booking.ts +0 -142
  121. package/models/Court.ts +0 -130
  122. package/models/Slot.ts +0 -84
  123. package/models/SlotException.ts +0 -93
  124. package/models/User.ts +0 -149
  125. package/models/index.ts +0 -7
  126. package/runtime.ts +0 -432
  127. package/src/apis/AuthApi.ts +0 -157
  128. package/src/apis/UsersApi.ts +0 -56
  129. package/src/apis/index.ts +0 -4
  130. package/src/index.ts +0 -5
  131. package/src/models/Booking.ts +0 -142
  132. package/src/models/BookingStatus.ts +0 -53
  133. package/src/models/Court.ts +0 -130
  134. package/src/models/CourtStatus.ts +0 -53
  135. package/src/models/Slot.ts +0 -84
  136. package/src/models/SlotException.ts +0 -93
  137. package/src/models/StripeStatus.ts +0 -56
  138. package/src/models/User.ts +0 -149
  139. package/src/models/index.ts +0 -7
  140. package/src/runtime.ts +0 -432
@@ -1,142 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pickle Ball API
5
- * API for managing pickle ball games and players
6
- *
7
- * The version of the OpenAPI document: 1.0.0
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
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface Booking
20
- */
21
- export interface Booking {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof Booking
26
- */
27
- userId: string;
28
- /**
29
- *
30
- * @type {Array<string>}
31
- * @memberof Booking
32
- */
33
- playersIds?: Array<string>;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof Booking
38
- */
39
- status: BookingStatusEnum;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof Booking
44
- */
45
- stripeStatus: BookingStripeStatusEnum;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof Booking
50
- */
51
- stripePaymentIntentId: string;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof Booking
56
- */
57
- totalPrice: number;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof Booking
62
- */
63
- slotId: string;
64
- }
65
-
66
-
67
- /**
68
- * @export
69
- */
70
- export const BookingStatusEnum = {
71
- Active: 'active',
72
- Inactive: 'inactive'
73
- } as const;
74
- export type BookingStatusEnum = typeof BookingStatusEnum[keyof typeof BookingStatusEnum];
75
-
76
- /**
77
- * @export
78
- */
79
- export const BookingStripeStatusEnum = {
80
- Pending: 'pending',
81
- Paid: 'paid',
82
- Failed: 'failed',
83
- Refunded: 'refunded',
84
- Canceled: 'canceled'
85
- } as const;
86
- export type BookingStripeStatusEnum = typeof BookingStripeStatusEnum[keyof typeof BookingStripeStatusEnum];
87
-
88
-
89
- /**
90
- * Check if a given object implements the Booking interface.
91
- */
92
- export function instanceOfBooking(value: object): value is Booking {
93
- if (!('userId' in value) || value['userId'] === undefined) return false;
94
- if (!('status' in value) || value['status'] === undefined) return false;
95
- if (!('stripeStatus' in value) || value['stripeStatus'] === undefined) return false;
96
- if (!('stripePaymentIntentId' in value) || value['stripePaymentIntentId'] === undefined) return false;
97
- if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
98
- if (!('slotId' in value) || value['slotId'] === undefined) return false;
99
- return true;
100
- }
101
-
102
- export function BookingFromJSON(json: any): Booking {
103
- return BookingFromJSONTyped(json, false);
104
- }
105
-
106
- export function BookingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Booking {
107
- if (json == null) {
108
- return json;
109
- }
110
- return {
111
-
112
- 'userId': json['userId'],
113
- 'playersIds': json['playersIds'] == null ? undefined : json['playersIds'],
114
- 'status': json['status'],
115
- 'stripeStatus': json['stripeStatus'],
116
- 'stripePaymentIntentId': json['stripePaymentIntentId'],
117
- 'totalPrice': json['totalPrice'],
118
- 'slotId': json['slotId'],
119
- };
120
- }
121
-
122
- export function BookingToJSON(json: any): Booking {
123
- return BookingToJSONTyped(json, false);
124
- }
125
-
126
- export function BookingToJSONTyped(value?: Booking | null, ignoreDiscriminator: boolean = false): any {
127
- if (value == null) {
128
- return value;
129
- }
130
-
131
- return {
132
-
133
- 'userId': value['userId'],
134
- 'playersIds': value['playersIds'],
135
- 'status': value['status'],
136
- 'stripeStatus': value['stripeStatus'],
137
- 'stripePaymentIntentId': value['stripePaymentIntentId'],
138
- 'totalPrice': value['totalPrice'],
139
- 'slotId': value['slotId'],
140
- };
141
- }
142
-
@@ -1,53 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pickle Ball API
5
- * API for managing pickle ball games and players
6
- *
7
- * The version of the OpenAPI document: 1.0.0
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
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const BookingStatus = {
21
- Active: 'active',
22
- Inactive: 'inactive'
23
- } as const;
24
- export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
25
-
26
-
27
- export function instanceOfBookingStatus(value: any): boolean {
28
- for (const key in BookingStatus) {
29
- if (Object.prototype.hasOwnProperty.call(BookingStatus, key)) {
30
- if (BookingStatus[key as keyof typeof BookingStatus] === value) {
31
- return true;
32
- }
33
- }
34
- }
35
- return false;
36
- }
37
-
38
- export function BookingStatusFromJSON(json: any): BookingStatus {
39
- return BookingStatusFromJSONTyped(json, false);
40
- }
41
-
42
- export function BookingStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookingStatus {
43
- return json as BookingStatus;
44
- }
45
-
46
- export function BookingStatusToJSON(value?: BookingStatus | null): any {
47
- return value as any;
48
- }
49
-
50
- export function BookingStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): BookingStatus {
51
- return value as BookingStatus;
52
- }
53
-
@@ -1,130 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pickle Ball API
5
- * API for managing pickle ball games and players
6
- *
7
- * The version of the OpenAPI document: 1.0.0
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
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface Court
20
- */
21
- export interface Court {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof Court
26
- */
27
- name: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof Court
32
- */
33
- status: CourtStatusEnum;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof Court
38
- */
39
- comments?: string;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof Court
44
- */
45
- pricePerSlot: number;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof Court
50
- */
51
- slotDefaultDuration: number;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof Court
56
- */
57
- startTimeInTheDayInMinutes: number;
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof Court
62
- */
63
- endTimeInTheDayInMinutes: number;
64
- }
65
-
66
-
67
- /**
68
- * @export
69
- */
70
- export const CourtStatusEnum = {
71
- Available: 'available',
72
- Unavailable: 'unavailable'
73
- } as const;
74
- export type CourtStatusEnum = typeof CourtStatusEnum[keyof typeof CourtStatusEnum];
75
-
76
-
77
- /**
78
- * Check if a given object implements the Court interface.
79
- */
80
- export function instanceOfCourt(value: object): value is Court {
81
- if (!('name' in value) || value['name'] === undefined) return false;
82
- if (!('status' in value) || value['status'] === undefined) return false;
83
- if (!('pricePerSlot' in value) || value['pricePerSlot'] === undefined) return false;
84
- if (!('slotDefaultDuration' in value) || value['slotDefaultDuration'] === undefined) return false;
85
- if (!('startTimeInTheDayInMinutes' in value) || value['startTimeInTheDayInMinutes'] === undefined) return false;
86
- if (!('endTimeInTheDayInMinutes' in value) || value['endTimeInTheDayInMinutes'] === undefined) return false;
87
- return true;
88
- }
89
-
90
- export function CourtFromJSON(json: any): Court {
91
- return CourtFromJSONTyped(json, false);
92
- }
93
-
94
- export function CourtFromJSONTyped(json: any, ignoreDiscriminator: boolean): Court {
95
- if (json == null) {
96
- return json;
97
- }
98
- return {
99
-
100
- 'name': json['name'],
101
- 'status': json['status'],
102
- 'comments': json['comments'] == null ? undefined : json['comments'],
103
- 'pricePerSlot': json['pricePerSlot'],
104
- 'slotDefaultDuration': json['slotDefaultDuration'],
105
- 'startTimeInTheDayInMinutes': json['startTimeInTheDayInMinutes'],
106
- 'endTimeInTheDayInMinutes': json['endTimeInTheDayInMinutes'],
107
- };
108
- }
109
-
110
- export function CourtToJSON(json: any): Court {
111
- return CourtToJSONTyped(json, false);
112
- }
113
-
114
- export function CourtToJSONTyped(value?: Court | null, ignoreDiscriminator: boolean = false): any {
115
- if (value == null) {
116
- return value;
117
- }
118
-
119
- return {
120
-
121
- 'name': value['name'],
122
- 'status': value['status'],
123
- 'comments': value['comments'],
124
- 'pricePerSlot': value['pricePerSlot'],
125
- 'slotDefaultDuration': value['slotDefaultDuration'],
126
- 'startTimeInTheDayInMinutes': value['startTimeInTheDayInMinutes'],
127
- 'endTimeInTheDayInMinutes': value['endTimeInTheDayInMinutes'],
128
- };
129
- }
130
-
@@ -1,53 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pickle Ball API
5
- * API for managing pickle ball games and players
6
- *
7
- * The version of the OpenAPI document: 1.0.0
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
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const CourtStatus = {
21
- Available: 'available',
22
- Unavailable: 'unavailable'
23
- } as const;
24
- export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
25
-
26
-
27
- export function instanceOfCourtStatus(value: any): boolean {
28
- for (const key in CourtStatus) {
29
- if (Object.prototype.hasOwnProperty.call(CourtStatus, key)) {
30
- if (CourtStatus[key as keyof typeof CourtStatus] === value) {
31
- return true;
32
- }
33
- }
34
- }
35
- return false;
36
- }
37
-
38
- export function CourtStatusFromJSON(json: any): CourtStatus {
39
- return CourtStatusFromJSONTyped(json, false);
40
- }
41
-
42
- export function CourtStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourtStatus {
43
- return json as CourtStatus;
44
- }
45
-
46
- export function CourtStatusToJSON(value?: CourtStatus | null): any {
47
- return value as any;
48
- }
49
-
50
- export function CourtStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CourtStatus {
51
- return value as CourtStatus;
52
- }
53
-
@@ -1,84 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pickle Ball API
5
- * API for managing pickle ball games and players
6
- *
7
- * The version of the OpenAPI document: 1.0.0
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
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface Slot
20
- */
21
- export interface Slot {
22
- /**
23
- *
24
- * @type {Date}
25
- * @memberof Slot
26
- */
27
- startDate: Date;
28
- /**
29
- *
30
- * @type {Date}
31
- * @memberof Slot
32
- */
33
- endDate: Date;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof Slot
38
- */
39
- courtId: string;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the Slot interface.
44
- */
45
- export function instanceOfSlot(value: object): value is Slot {
46
- if (!('startDate' in value) || value['startDate'] === undefined) return false;
47
- if (!('endDate' in value) || value['endDate'] === undefined) return false;
48
- if (!('courtId' in value) || value['courtId'] === undefined) return false;
49
- return true;
50
- }
51
-
52
- export function SlotFromJSON(json: any): Slot {
53
- return SlotFromJSONTyped(json, false);
54
- }
55
-
56
- export function SlotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Slot {
57
- if (json == null) {
58
- return json;
59
- }
60
- return {
61
-
62
- 'startDate': (new Date(json['startDate'])),
63
- 'endDate': (new Date(json['endDate'])),
64
- 'courtId': json['courtId'],
65
- };
66
- }
67
-
68
- export function SlotToJSON(json: any): Slot {
69
- return SlotToJSONTyped(json, false);
70
- }
71
-
72
- export function SlotToJSONTyped(value?: Slot | null, ignoreDiscriminator: boolean = false): any {
73
- if (value == null) {
74
- return value;
75
- }
76
-
77
- return {
78
-
79
- 'startDate': ((value['startDate']).toISOString()),
80
- 'endDate': ((value['endDate']).toISOString()),
81
- 'courtId': value['courtId'],
82
- };
83
- }
84
-
@@ -1,93 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pickle Ball API
5
- * API for managing pickle ball games and players
6
- *
7
- * The version of the OpenAPI document: 1.0.0
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
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface SlotException
20
- */
21
- export interface SlotException {
22
- /**
23
- *
24
- * @type {Date}
25
- * @memberof SlotException
26
- */
27
- startDate: Date;
28
- /**
29
- *
30
- * @type {Date}
31
- * @memberof SlotException
32
- */
33
- endDate: Date;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof SlotException
38
- */
39
- courtId: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof SlotException
44
- */
45
- reason: string;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the SlotException interface.
50
- */
51
- export function instanceOfSlotException(value: object): value is SlotException {
52
- if (!('startDate' in value) || value['startDate'] === undefined) return false;
53
- if (!('endDate' in value) || value['endDate'] === undefined) return false;
54
- if (!('courtId' in value) || value['courtId'] === undefined) return false;
55
- if (!('reason' in value) || value['reason'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function SlotExceptionFromJSON(json: any): SlotException {
60
- return SlotExceptionFromJSONTyped(json, false);
61
- }
62
-
63
- export function SlotExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlotException {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'startDate': (new Date(json['startDate'])),
70
- 'endDate': (new Date(json['endDate'])),
71
- 'courtId': json['courtId'],
72
- 'reason': json['reason'],
73
- };
74
- }
75
-
76
- export function SlotExceptionToJSON(json: any): SlotException {
77
- return SlotExceptionToJSONTyped(json, false);
78
- }
79
-
80
- export function SlotExceptionToJSONTyped(value?: SlotException | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
84
-
85
- return {
86
-
87
- 'startDate': ((value['startDate']).toISOString()),
88
- 'endDate': ((value['endDate']).toISOString()),
89
- 'courtId': value['courtId'],
90
- 'reason': value['reason'],
91
- };
92
- }
93
-
@@ -1,56 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Pickle Ball API
5
- * API for managing pickle ball games and players
6
- *
7
- * The version of the OpenAPI document: 1.0.0
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
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const StripeStatus = {
21
- Pending: 'pending',
22
- Paid: 'paid',
23
- Failed: 'failed',
24
- Refunded: 'refunded',
25
- Canceled: 'canceled'
26
- } as const;
27
- export type StripeStatus = typeof StripeStatus[keyof typeof StripeStatus];
28
-
29
-
30
- export function instanceOfStripeStatus(value: any): boolean {
31
- for (const key in StripeStatus) {
32
- if (Object.prototype.hasOwnProperty.call(StripeStatus, key)) {
33
- if (StripeStatus[key as keyof typeof StripeStatus] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
-
41
- export function StripeStatusFromJSON(json: any): StripeStatus {
42
- return StripeStatusFromJSONTyped(json, false);
43
- }
44
-
45
- export function StripeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): StripeStatus {
46
- return json as StripeStatus;
47
- }
48
-
49
- export function StripeStatusToJSON(value?: StripeStatus | null): any {
50
- return value as any;
51
- }
52
-
53
- export function StripeStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): StripeStatus {
54
- return value as StripeStatus;
55
- }
56
-