turboself-api 0.1.5 → 1.1.5
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/README.md +28 -14
- package/dist/api/balanceGet.d.ts +2 -0
- package/dist/api/balanceGet.js +27 -0
- package/dist/api/bookDay.d.ts +2 -0
- package/dist/api/bookDay.js +58 -0
- package/dist/api/bookingGet.d.ts +2 -0
- package/dist/api/bookingGet.js +43 -0
- package/dist/api/canBookEveningGet.d.ts +1 -0
- package/dist/api/canBookEveningGet.js +18 -0
- package/dist/api/establishmentGet.d.ts +2 -0
- package/dist/api/establishmentGet.js +43 -0
- package/dist/api/establishmentSearch.d.ts +2 -0
- package/dist/api/establishmentSearch.js +21 -0
- package/dist/api/historyGet.d.ts +2 -0
- package/dist/api/historyGet.js +26 -0
- package/dist/api/hostGet.d.ts +2 -0
- package/dist/api/hostGet.js +53 -0
- package/dist/api/lastPaymentGet.d.ts +2 -0
- package/dist/api/lastPaymentGet.js +21 -0
- package/dist/api/siblingsGet.d.ts +2 -0
- package/dist/api/siblingsGet.js +56 -0
- package/dist/authenticate/index.d.ts +3 -0
- package/dist/authenticate/index.js +25 -0
- package/dist/client/Turboself.d.ts +53 -0
- package/dist/client/Turboself.js +119 -0
- package/dist/index.d.ts +8 -5
- package/dist/index.js +9 -6
- package/dist/index.mjs +8 -4
- package/dist/interfaces/AuthFlow.d.ts +24 -0
- package/dist/interfaces/AuthFlow.js +3 -0
- package/dist/interfaces/Balance.d.ts +16 -0
- package/dist/{types → interfaces}/Balance.js +1 -1
- package/dist/interfaces/Bookings.d.ts +144 -0
- package/dist/interfaces/Bookings.js +3 -0
- package/dist/interfaces/Establishment.d.ts +95 -0
- package/dist/interfaces/Establishment.js +3 -0
- package/dist/interfaces/Fetcher.d.ts +9 -0
- package/dist/interfaces/Fetcher.js +3 -0
- package/dist/interfaces/Home.d.ts +27 -0
- package/dist/{types → interfaces}/Home.js +1 -1
- package/dist/interfaces/Host.d.ts +38 -0
- package/dist/{types/School.js → interfaces/Host.js} +1 -1
- package/dist/parser/Balance.d.ts +17 -0
- package/dist/parser/Balance.js +20 -0
- package/dist/parser/BookedMeal.d.ts +29 -0
- package/dist/parser/BookedMeal.js +28 -0
- package/dist/parser/BookingDay.d.ts +32 -0
- package/dist/parser/BookingDay.js +39 -0
- package/dist/parser/BookingPrice.d.ts +7 -0
- package/dist/parser/BookingPrice.js +13 -0
- package/dist/parser/BookingTerminal.d.ts +32 -0
- package/dist/parser/BookingTerminal.js +30 -0
- package/dist/parser/BookingWeek.d.ts +17 -0
- package/dist/parser/BookingWeek.js +19 -0
- package/dist/parser/Establishment.d.ts +117 -0
- package/dist/parser/Establishment.js +84 -0
- package/dist/parser/History.d.ts +17 -0
- package/dist/parser/History.js +20 -0
- package/dist/parser/Host.d.ts +70 -0
- package/dist/parser/Host.js +67 -0
- package/dist/parser/LatestPayment.d.ts +26 -0
- package/dist/parser/LatestPayment.js +27 -0
- package/dist/utils/endpoints.d.ts +10 -0
- package/dist/utils/endpoints.js +24 -0
- package/dist/utils/fetcher.d.ts +7 -0
- package/dist/utils/fetcher.js +25 -0
- package/dist/utils/weekNumber.d.ts +1 -0
- package/dist/utils/weekNumber.js +14 -0
- package/package.json +5 -4
- package/dist/auth/index.d.ts +0 -7
- package/dist/auth/index.js +0 -35
- package/dist/rest/RESTManager.d.ts +0 -7
- package/dist/rest/RESTManager.js +0 -15
- package/dist/rest/RequestHandler.d.ts +0 -5
- package/dist/rest/RequestHandler.js +0 -27
- package/dist/rest/endpoints.d.ts +0 -10
- package/dist/rest/endpoints.js +0 -23
- package/dist/routes/School.d.ts +0 -19
- package/dist/routes/School.js +0 -55
- package/dist/routes/User.d.ts +0 -74
- package/dist/routes/User.js +0 -237
- package/dist/structures/Client.d.ts +0 -26
- package/dist/structures/Client.js +0 -195
- package/dist/types/Balance.d.ts +0 -24
- package/dist/types/Booking.d.ts +0 -73
- package/dist/types/Booking.js +0 -3
- package/dist/types/Home.d.ts +0 -42
- package/dist/types/Login.d.ts +0 -14
- package/dist/types/Login.js +0 -3
- package/dist/types/School.d.ts +0 -103
- package/dist/types/User.d.ts +0 -69
- package/dist/types/User.js +0 -3
package/dist/types/School.d.ts
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
export interface SchoolResponse {
|
|
2
|
-
/** School 2p5 identifier */
|
|
3
|
-
code2p5: number;
|
|
4
|
-
/** School Name */
|
|
5
|
-
nom: string;
|
|
6
|
-
/** Turboself version used by the School */
|
|
7
|
-
versionTS: string;
|
|
8
|
-
/** School ID */
|
|
9
|
-
id: number;
|
|
10
|
-
/** School Address 1 */
|
|
11
|
-
adr1: string;
|
|
12
|
-
/** School Address 2 */
|
|
13
|
-
adr2: string;
|
|
14
|
-
/** School Postal Code */
|
|
15
|
-
cp: string;
|
|
16
|
-
/** School City */
|
|
17
|
-
ville: string;
|
|
18
|
-
/** School Phone Number */
|
|
19
|
-
tel: string;
|
|
20
|
-
/** School First Synchronisation Date in ISO-8601 */
|
|
21
|
-
datePremSynchro: string;
|
|
22
|
-
/** School Last Synchronisation Date in ISO-8601 */
|
|
23
|
-
dateDernSynchro: string;
|
|
24
|
-
/** Turboself ID */
|
|
25
|
-
idTurboSelf: number;
|
|
26
|
-
/** School Currency Symbol */
|
|
27
|
-
currencySymbol: string;
|
|
28
|
-
configuration: SchoolConfiguration;
|
|
29
|
-
configurationsReserv: Array<SchoolReservation>;
|
|
30
|
-
configurationSelf: {
|
|
31
|
-
id: number;
|
|
32
|
-
nbmultiElvArg: number;
|
|
33
|
-
nbmultiElvFor: number;
|
|
34
|
-
nbmultiComArg: number;
|
|
35
|
-
nbmultiComFor: number;
|
|
36
|
-
nbmultiStgArg: number;
|
|
37
|
-
nbmultiStgFor: number;
|
|
38
|
-
dateDernSynchro: string;
|
|
39
|
-
};
|
|
40
|
-
/** National Identification Number of the School */
|
|
41
|
-
numEtab: string;
|
|
42
|
-
/** If the School is desactivated */
|
|
43
|
-
desactive: boolean;
|
|
44
|
-
/** MAC Address of the School server */
|
|
45
|
-
pcServeur: string;
|
|
46
|
-
/** Autorised School Transactions */
|
|
47
|
-
nbTransactionAutorise: number;
|
|
48
|
-
/** School Books Total */
|
|
49
|
-
nbReservationsTotal: number | null;
|
|
50
|
-
}
|
|
51
|
-
export interface SchoolReservation {
|
|
52
|
-
id: number;
|
|
53
|
-
usage: number;
|
|
54
|
-
elecom: number;
|
|
55
|
-
/** End of reservation */
|
|
56
|
-
finReserv: string;
|
|
57
|
-
}
|
|
58
|
-
export interface SchoolConfiguration {
|
|
59
|
-
/** School Configuration ID */
|
|
60
|
-
id: number;
|
|
61
|
-
/** School Website URL */
|
|
62
|
-
url: string;
|
|
63
|
-
/** School E-Mail */
|
|
64
|
-
email: string;
|
|
65
|
-
/** Minimum Meal to Pay */
|
|
66
|
-
nbRepasMini: number;
|
|
67
|
-
creanceMini: number;
|
|
68
|
-
montantCreditMini: number | null;
|
|
69
|
-
/** Actual Reservation Week */
|
|
70
|
-
nbSemaineReserv: number;
|
|
71
|
-
/** School Message */
|
|
72
|
-
msgAccueil: string;
|
|
73
|
-
/** Students has the right to use QRCode */
|
|
74
|
-
autoriseQrCodeEleve: boolean;
|
|
75
|
-
/** Commensals has the right to use QRCode */
|
|
76
|
-
autoriseQrCodeCommensal: boolean;
|
|
77
|
-
/** Trainees has the right to use QRCode */
|
|
78
|
-
autoriseQrCodeStagiaire: boolean;
|
|
79
|
-
/** If the account history of users is hidden */
|
|
80
|
-
cacherHistorique: boolean;
|
|
81
|
-
fermetures: Array<SchoolClosure>;
|
|
82
|
-
}
|
|
83
|
-
export interface SchoolClosure {
|
|
84
|
-
/** School Closure ID */
|
|
85
|
-
id: number;
|
|
86
|
-
/** User has the right to book a meal */
|
|
87
|
-
rsv: boolean;
|
|
88
|
-
/** User has the right to pay */
|
|
89
|
-
paiement: boolean;
|
|
90
|
-
/** From */
|
|
91
|
-
du: string;
|
|
92
|
-
/** To */
|
|
93
|
-
au: string;
|
|
94
|
-
synchro: unknown | null;
|
|
95
|
-
}
|
|
96
|
-
export interface SchoolSearchResponse {
|
|
97
|
-
/** School Configuration ID */
|
|
98
|
-
code2p5: number;
|
|
99
|
-
/** School Name */
|
|
100
|
-
nom: string;
|
|
101
|
-
/** Turboself version used by the School */
|
|
102
|
-
versionTS: string;
|
|
103
|
-
}
|
package/dist/types/User.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { SchoolResponse } from "./School";
|
|
2
|
-
export interface userResponse {
|
|
3
|
-
/** The hoteId */
|
|
4
|
-
id: number;
|
|
5
|
-
idOrig: number;
|
|
6
|
-
etab: SchoolResponse;
|
|
7
|
-
/** Lastname of the user */
|
|
8
|
-
nom: string;
|
|
9
|
-
/** Firstname of the user */
|
|
10
|
-
prenom: string;
|
|
11
|
-
/** Payment mode of the user */
|
|
12
|
-
mode: string;
|
|
13
|
-
/** User Quality */
|
|
14
|
-
qualite: string;
|
|
15
|
-
/** Division of the user */
|
|
16
|
-
division: string;
|
|
17
|
-
/** Price of a meal */
|
|
18
|
-
prixDej: number;
|
|
19
|
-
type: number;
|
|
20
|
-
nbMulti: number;
|
|
21
|
-
/** User has the right to pay */
|
|
22
|
-
droitPaiement: boolean;
|
|
23
|
-
/** User has the right to book a meal */
|
|
24
|
-
droitReservation: boolean;
|
|
25
|
-
/** User has the right to access to the cafeteria */
|
|
26
|
-
droitCafeteria: boolean;
|
|
27
|
-
/** Last User synchronisation in ISO-8601 */
|
|
28
|
-
dateDernSynchro: string;
|
|
29
|
-
/** If the account is desactivated */
|
|
30
|
-
desactive: boolean;
|
|
31
|
-
/** If the password is private (wtf?) */
|
|
32
|
-
mdpPrive: boolean;
|
|
33
|
-
/** User has the right to book a meal if his balance is negative */
|
|
34
|
-
autoriseReservSoldeIns: boolean;
|
|
35
|
-
profilForfaitModule: number;
|
|
36
|
-
carteCodee: number;
|
|
37
|
-
}
|
|
38
|
-
export interface userInfo {
|
|
39
|
-
/** Lastname of the user */
|
|
40
|
-
nom: string;
|
|
41
|
-
/** Firstname of the user */
|
|
42
|
-
prenom: string;
|
|
43
|
-
/** Payment mode of the user */
|
|
44
|
-
mode: string;
|
|
45
|
-
/** User Quality */
|
|
46
|
-
qualite: string;
|
|
47
|
-
/** Division of the user */
|
|
48
|
-
division: string;
|
|
49
|
-
/** Price of a meal */
|
|
50
|
-
prixDej: number;
|
|
51
|
-
type: number;
|
|
52
|
-
nbMulti: number;
|
|
53
|
-
/** User has the right to pay */
|
|
54
|
-
droitPaiement: boolean;
|
|
55
|
-
/** User has the right to book a meal */
|
|
56
|
-
droitReservation: boolean;
|
|
57
|
-
/** User has the right to access to the cafeteria */
|
|
58
|
-
droitCafeteria: boolean;
|
|
59
|
-
/** Last User synchronisation in ISO-8601 */
|
|
60
|
-
dateDernSynchro: string;
|
|
61
|
-
/** If the account is desactivated */
|
|
62
|
-
desactive: boolean;
|
|
63
|
-
/** If the password is private (wtf?) */
|
|
64
|
-
mdpPrive: boolean;
|
|
65
|
-
/** User has the right to book a meal if his balance is negative */
|
|
66
|
-
autoriseReservSoldeIns: boolean;
|
|
67
|
-
profilForfaitModule: number;
|
|
68
|
-
carteCodee: number;
|
|
69
|
-
}
|
package/dist/types/User.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi90eXBlcy9Vc2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|