@tennac-booking/sdk 1.0.5 → 1.0.8

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