@tennac-booking/sdk 1.0.0

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 (117) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +46 -0
  5. package/apis/AuthApi.ts +157 -0
  6. package/apis/UsersApi.ts +56 -0
  7. package/apis/index.ts +4 -0
  8. package/dist/apis/AuthApi.d.ts +39 -0
  9. package/dist/apis/AuthApi.js +117 -0
  10. package/dist/apis/UsersApi.d.ts +26 -0
  11. package/dist/apis/UsersApi.js +58 -0
  12. package/dist/apis/index.d.ts +2 -0
  13. package/dist/apis/index.js +20 -0
  14. package/dist/esm/apis/AuthApi.d.ts +39 -0
  15. package/dist/esm/apis/AuthApi.js +113 -0
  16. package/dist/esm/apis/UsersApi.d.ts +26 -0
  17. package/dist/esm/apis/UsersApi.js +54 -0
  18. package/dist/esm/apis/index.d.ts +2 -0
  19. package/dist/esm/apis/index.js +4 -0
  20. package/dist/esm/index.d.ts +3 -0
  21. package/dist/esm/index.js +5 -0
  22. package/dist/esm/models/Booking.d.ts +87 -0
  23. package/dist/esm/models/Booking.js +82 -0
  24. package/dist/esm/models/Court.d.ts +76 -0
  25. package/dist/esm/models/Court.js +72 -0
  26. package/dist/esm/models/Slot.d.ts +44 -0
  27. package/dist/esm/models/Slot.js +51 -0
  28. package/dist/esm/models/SlotException.d.ts +50 -0
  29. package/dist/esm/models/SlotException.js +55 -0
  30. package/dist/esm/models/User.d.ts +92 -0
  31. package/dist/esm/models/User.js +69 -0
  32. package/dist/esm/models/index.d.ts +5 -0
  33. package/dist/esm/models/index.js +7 -0
  34. package/dist/esm/runtime.d.ts +184 -0
  35. package/dist/esm/runtime.js +334 -0
  36. package/dist/esm/src/apis/AuthApi.d.ts +39 -0
  37. package/dist/esm/src/apis/AuthApi.js +113 -0
  38. package/dist/esm/src/apis/UsersApi.d.ts +26 -0
  39. package/dist/esm/src/apis/UsersApi.js +54 -0
  40. package/dist/esm/src/apis/index.d.ts +2 -0
  41. package/dist/esm/src/apis/index.js +4 -0
  42. package/dist/esm/src/index.d.ts +3 -0
  43. package/dist/esm/src/index.js +5 -0
  44. package/dist/esm/src/models/Booking.d.ts +87 -0
  45. package/dist/esm/src/models/Booking.js +82 -0
  46. package/dist/esm/src/models/Court.d.ts +76 -0
  47. package/dist/esm/src/models/Court.js +72 -0
  48. package/dist/esm/src/models/Slot.d.ts +44 -0
  49. package/dist/esm/src/models/Slot.js +51 -0
  50. package/dist/esm/src/models/SlotException.d.ts +50 -0
  51. package/dist/esm/src/models/SlotException.js +55 -0
  52. package/dist/esm/src/models/User.d.ts +92 -0
  53. package/dist/esm/src/models/User.js +69 -0
  54. package/dist/esm/src/models/index.d.ts +5 -0
  55. package/dist/esm/src/models/index.js +7 -0
  56. package/dist/esm/src/runtime.d.ts +184 -0
  57. package/dist/esm/src/runtime.js +334 -0
  58. package/dist/index.d.ts +3 -0
  59. package/dist/index.js +21 -0
  60. package/dist/models/Booking.d.ts +87 -0
  61. package/dist/models/Booking.js +90 -0
  62. package/dist/models/Court.d.ts +76 -0
  63. package/dist/models/Court.js +80 -0
  64. package/dist/models/Slot.d.ts +44 -0
  65. package/dist/models/Slot.js +58 -0
  66. package/dist/models/SlotException.d.ts +50 -0
  67. package/dist/models/SlotException.js +62 -0
  68. package/dist/models/User.d.ts +92 -0
  69. package/dist/models/User.js +76 -0
  70. package/dist/models/index.d.ts +5 -0
  71. package/dist/models/index.js +23 -0
  72. package/dist/runtime.d.ts +184 -0
  73. package/dist/runtime.js +350 -0
  74. package/dist/src/apis/AuthApi.d.ts +39 -0
  75. package/dist/src/apis/AuthApi.js +117 -0
  76. package/dist/src/apis/UsersApi.d.ts +26 -0
  77. package/dist/src/apis/UsersApi.js +58 -0
  78. package/dist/src/apis/index.d.ts +2 -0
  79. package/dist/src/apis/index.js +20 -0
  80. package/dist/src/index.d.ts +3 -0
  81. package/dist/src/index.js +21 -0
  82. package/dist/src/models/Booking.d.ts +87 -0
  83. package/dist/src/models/Booking.js +90 -0
  84. package/dist/src/models/Court.d.ts +76 -0
  85. package/dist/src/models/Court.js +80 -0
  86. package/dist/src/models/Slot.d.ts +44 -0
  87. package/dist/src/models/Slot.js +58 -0
  88. package/dist/src/models/SlotException.d.ts +50 -0
  89. package/dist/src/models/SlotException.js +62 -0
  90. package/dist/src/models/User.d.ts +92 -0
  91. package/dist/src/models/User.js +76 -0
  92. package/dist/src/models/index.d.ts +5 -0
  93. package/dist/src/models/index.js +23 -0
  94. package/dist/src/runtime.d.ts +184 -0
  95. package/dist/src/runtime.js +350 -0
  96. package/index.ts +5 -0
  97. package/models/Booking.ts +142 -0
  98. package/models/Court.ts +130 -0
  99. package/models/Slot.ts +84 -0
  100. package/models/SlotException.ts +93 -0
  101. package/models/User.ts +149 -0
  102. package/models/index.ts +7 -0
  103. package/package.json +20 -0
  104. package/runtime.ts +432 -0
  105. package/src/apis/AuthApi.ts +157 -0
  106. package/src/apis/UsersApi.ts +56 -0
  107. package/src/apis/index.ts +4 -0
  108. package/src/index.ts +5 -0
  109. package/src/models/Booking.ts +142 -0
  110. package/src/models/Court.ts +130 -0
  111. package/src/models/Slot.ts +84 -0
  112. package/src/models/SlotException.ts +93 -0
  113. package/src/models/User.ts +149 -0
  114. package/src/models/index.ts +7 -0
  115. package/src/runtime.ts +432 -0
  116. package/tsconfig.esm.json +7 -0
  117. package/tsconfig.json +16 -0
@@ -0,0 +1,90 @@
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
+ }
@@ -0,0 +1,76 @@
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;
@@ -0,0 +1,80 @@
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
+ }
@@ -0,0 +1,44 @@
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;
@@ -0,0 +1,58 @@
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
+ }
@@ -0,0 +1,50 @@
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;
@@ -0,0 +1,62 @@
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.instanceOfSlotException = instanceOfSlotException;
17
+ exports.SlotExceptionFromJSON = SlotExceptionFromJSON;
18
+ exports.SlotExceptionFromJSONTyped = SlotExceptionFromJSONTyped;
19
+ exports.SlotExceptionToJSON = SlotExceptionToJSON;
20
+ exports.SlotExceptionToJSONTyped = SlotExceptionToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SlotException interface.
23
+ */
24
+ function instanceOfSlotException(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
+ if (!('reason' in value) || value['reason'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function SlotExceptionFromJSON(json) {
36
+ return SlotExceptionFromJSONTyped(json, false);
37
+ }
38
+ function SlotExceptionFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'startDate': (new Date(json['startDate'])),
44
+ 'endDate': (new Date(json['endDate'])),
45
+ 'courtId': json['courtId'],
46
+ 'reason': json['reason'],
47
+ };
48
+ }
49
+ function SlotExceptionToJSON(json) {
50
+ return SlotExceptionToJSONTyped(json, false);
51
+ }
52
+ function SlotExceptionToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'startDate': ((value['startDate']).toISOString()),
58
+ 'endDate': ((value['endDate']).toISOString()),
59
+ 'courtId': value['courtId'],
60
+ 'reason': value['reason'],
61
+ };
62
+ }
@@ -0,0 +1,92 @@
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 User
16
+ */
17
+ export interface User {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof User
22
+ */
23
+ username?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof User
28
+ */
29
+ firstName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof User
34
+ */
35
+ lastName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof User
40
+ */
41
+ email: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof User
46
+ */
47
+ isAccountVerified?: boolean;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof User
52
+ */
53
+ level?: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof User
58
+ */
59
+ stripeCustomerId?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof User
64
+ */
65
+ phone?: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof User
70
+ */
71
+ password: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof User
76
+ */
77
+ profilePicture?: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof User
82
+ */
83
+ isAdmin?: boolean;
84
+ }
85
+ /**
86
+ * Check if a given object implements the User interface.
87
+ */
88
+ export declare function instanceOfUser(value: object): value is User;
89
+ export declare function UserFromJSON(json: any): User;
90
+ export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User;
91
+ export declare function UserToJSON(json: any): User;
92
+ export declare function UserToJSONTyped(value?: User | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.instanceOfUser = instanceOfUser;
17
+ exports.UserFromJSON = UserFromJSON;
18
+ exports.UserFromJSONTyped = UserFromJSONTyped;
19
+ exports.UserToJSON = UserToJSON;
20
+ exports.UserToJSONTyped = UserToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the User interface.
23
+ */
24
+ function instanceOfUser(value) {
25
+ if (!('firstName' in value) || value['firstName'] === undefined)
26
+ return false;
27
+ if (!('lastName' in value) || value['lastName'] === undefined)
28
+ return false;
29
+ if (!('email' in value) || value['email'] === undefined)
30
+ return false;
31
+ if (!('password' in value) || value['password'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function UserFromJSON(json) {
36
+ return UserFromJSONTyped(json, false);
37
+ }
38
+ function UserFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'username': json['username'] == null ? undefined : json['username'],
44
+ 'firstName': json['firstName'],
45
+ 'lastName': json['lastName'],
46
+ 'email': json['email'],
47
+ 'isAccountVerified': json['isAccountVerified'] == null ? undefined : json['isAccountVerified'],
48
+ 'level': json['level'] == null ? undefined : json['level'],
49
+ 'stripeCustomerId': json['stripeCustomerId'] == null ? undefined : json['stripeCustomerId'],
50
+ 'phone': json['phone'] == null ? undefined : json['phone'],
51
+ 'password': json['password'],
52
+ 'profilePicture': json['profilePicture'] == null ? undefined : json['profilePicture'],
53
+ 'isAdmin': json['isAdmin'] == null ? undefined : json['isAdmin'],
54
+ };
55
+ }
56
+ function UserToJSON(json) {
57
+ return UserToJSONTyped(json, false);
58
+ }
59
+ function UserToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'username': value['username'],
65
+ 'firstName': value['firstName'],
66
+ 'lastName': value['lastName'],
67
+ 'email': value['email'],
68
+ 'isAccountVerified': value['isAccountVerified'],
69
+ 'level': value['level'],
70
+ 'stripeCustomerId': value['stripeCustomerId'],
71
+ 'phone': value['phone'],
72
+ 'password': value['password'],
73
+ 'profilePicture': value['profilePicture'],
74
+ 'isAdmin': value['isAdmin'],
75
+ };
76
+ }
@@ -0,0 +1,5 @@
1
+ export * from './Booking';
2
+ export * from './Court';
3
+ export * from './Slot';
4
+ export * from './SlotException';
5
+ export * from './User';
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./Booking"), exports);
20
+ __exportStar(require("./Court"), exports);
21
+ __exportStar(require("./Slot"), exports);
22
+ __exportStar(require("./SlotException"), exports);
23
+ __exportStar(require("./User"), exports);