@eliasrrosa/tutorhub-public-assets 0.0.2 → 0.0.3
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/dist/domain/entities/AsaasCustomer.js +1 -5
- package/dist/domain/entities/Class.js +1 -5
- package/dist/domain/entities/ClassRequest.js +1 -2
- package/dist/domain/entities/Contract.js +1 -2
- package/dist/domain/entities/Course.js +1 -2
- package/dist/domain/entities/CourseToSchoolConnectionRequest.js +1 -2
- package/dist/domain/entities/Date.js +1 -2
- package/dist/domain/entities/DateTimeSlot.js +1 -2
- package/dist/domain/entities/DateValidator.js +1 -2
- package/dist/domain/entities/File.js +1 -2
- package/dist/domain/entities/FreeTimeSlot.js +1 -5
- package/dist/domain/entities/GenericNotification.js +1 -2
- package/dist/domain/entities/GoogleAuth.js +1 -2
- package/dist/domain/entities/GoogleCalendar.js +1 -2
- package/dist/domain/entities/GoogleCalendarEvent.js +1 -2
- package/dist/domain/entities/ISO8601Date.js +3 -7
- package/dist/domain/entities/ISO8601Date.test.js +33 -35
- package/dist/domain/entities/ISO8601DateTime.js +1 -5
- package/dist/domain/entities/ISO8601DateTime.test.js +51 -53
- package/dist/domain/entities/ISO8601DateValidator.js +1 -5
- package/dist/domain/entities/ISO8601DateValidator.test.js +3 -5
- package/dist/domain/entities/ISO8601Time.js +3 -7
- package/dist/domain/entities/ISO8601Time.test.js +12 -14
- package/dist/domain/entities/ISO8601TimeValidator.js +1 -5
- package/dist/domain/entities/ISO8601TimeValidator.test.js +2 -4
- package/dist/domain/entities/PasswordRecovery.js +1 -2
- package/dist/domain/entities/Payment.js +1 -2
- package/dist/domain/entities/PaymentRecognitionRequest.js +1 -2
- package/dist/domain/entities/PreApprovedUser.js +1 -2
- package/dist/domain/entities/RescheduleRequest.js +1 -2
- package/dist/domain/entities/School.js +1 -2
- package/dist/domain/entities/SchoolConnection.js +1 -2
- package/dist/domain/entities/SchoolConnectionRequest.js +1 -2
- package/dist/domain/entities/SchoolStudent.js +1 -2
- package/dist/domain/entities/SchoolTeacher.js +1 -2
- package/dist/domain/entities/Time.js +1 -2
- package/dist/domain/entities/TimeSlot.js +1 -2
- package/dist/domain/entities/TimeValidator.js +1 -2
- package/dist/domain/entities/UnauthorizedUser.js +1 -2
- package/dist/domain/entities/UserAuth.js +1 -2
- package/dist/domain/entities/UserConnection.js +1 -2
- package/dist/domain/entities/UserConnectionRequest.js +1 -2
- package/dist/domain/entities/UserCredentials.js +1 -5
- package/dist/domain/entities/UserNavigation.js +1 -2
- package/dist/domain/entities/UserPreferences.js +1 -2
- package/dist/domain/entities/UserPremium.js +1 -2
- package/dist/domain/entities/UserProfile.js +1 -2
- package/dist/domain/entities/UserRoles.js +1 -2
- package/dist/domain/entities/UserSharedFileTimestamps.js +1 -2
- package/dist/domain/entities/UserUnavailableTime.js +1 -5
- package/dist/domain/entities/UserUnavailableTime.test.js +4 -6
- package/dist/domain/repositories/UnavailableTimeRepository.js +1 -2
- package/dist/index.d.ts +48 -0
- package/dist/index.js +10 -0
- package/dist/restful/responses/GetFixedAvailableTimesResponseBody.js +1 -2
- package/package.json +9 -3
- package/dist/entities/AsaasCustomer.d.ts +0 -14
- package/dist/entities/AsaasCustomer.js +0 -13
- package/dist/entities/Class.d.ts +0 -79
- package/dist/entities/Class.js +0 -30
- package/dist/entities/ClassRequest.d.ts +0 -15
- package/dist/entities/ClassRequest.js +0 -2
- package/dist/entities/Contract.d.ts +0 -40
- package/dist/entities/Contract.js +0 -2
- package/dist/entities/Course.d.ts +0 -34
- package/dist/entities/Course.js +0 -2
- package/dist/entities/CourseToSchoolConnectionRequest.d.ts +0 -10
- package/dist/entities/CourseToSchoolConnectionRequest.js +0 -2
- package/dist/entities/Date.d.ts +0 -56
- package/dist/entities/Date.js +0 -2
- package/dist/entities/Date.test.d.ts +0 -0
- package/dist/entities/Date.test.js +0 -23
- package/dist/entities/DateTimeSlot.d.ts +0 -6
- package/dist/entities/DateTimeSlot.js +0 -2
- package/dist/entities/DateValidator.d.ts +0 -3
- package/dist/entities/DateValidator.js +0 -2
- package/dist/entities/File.d.ts +0 -23
- package/dist/entities/File.js +0 -2
- package/dist/entities/FreeTimeSlot.d.ts +0 -19
- package/dist/entities/FreeTimeSlot.js +0 -12
- package/dist/entities/GenericNotification.d.ts +0 -11
- package/dist/entities/GenericNotification.js +0 -2
- package/dist/entities/GoogleAuth.d.ts +0 -8
- package/dist/entities/GoogleAuth.js +0 -2
- package/dist/entities/GoogleCalendar.d.ts +0 -10
- package/dist/entities/GoogleCalendar.js +0 -2
- package/dist/entities/GoogleCalendarEvent.d.ts +0 -10
- package/dist/entities/GoogleCalendarEvent.js +0 -2
- package/dist/entities/ISO8601Date.d.ts +0 -35
- package/dist/entities/ISO8601Date.js +0 -86
- package/dist/entities/ISO8601Date.test.d.ts +0 -1
- package/dist/entities/ISO8601Date.test.js +0 -210
- package/dist/entities/ISO8601DateTime.d.ts +0 -41
- package/dist/entities/ISO8601DateTime.js +0 -44
- package/dist/entities/ISO8601DateTime.test.d.ts +0 -1
- package/dist/entities/ISO8601DateTime.test.js +0 -146
- package/dist/entities/ISO8601DateValidator.d.ts +0 -13
- package/dist/entities/ISO8601DateValidator.js +0 -20
- package/dist/entities/ISO8601DateValidator.test.d.ts +0 -1
- package/dist/entities/ISO8601DateValidator.test.js +0 -15
- package/dist/entities/ISO8601Time.d.ts +0 -25
- package/dist/entities/ISO8601Time.js +0 -57
- package/dist/entities/ISO8601Time.test.d.ts +0 -1
- package/dist/entities/ISO8601Time.test.js +0 -63
- package/dist/entities/ISO8601TimeValidator.d.ts +0 -12
- package/dist/entities/ISO8601TimeValidator.js +0 -19
- package/dist/entities/ISO8601TimeValidator.test.d.ts +0 -1
- package/dist/entities/ISO8601TimeValidator.test.js +0 -42
- package/dist/entities/PasswordRecovery.d.ts +0 -6
- package/dist/entities/PasswordRecovery.js +0 -2
- package/dist/entities/Payment.d.ts +0 -42
- package/dist/entities/Payment.js +0 -2
- package/dist/entities/PaymentRecognitionRequest.d.ts +0 -12
- package/dist/entities/PaymentRecognitionRequest.js +0 -2
- package/dist/entities/PreApprovedUser.d.ts +0 -12
- package/dist/entities/PreApprovedUser.js +0 -2
- package/dist/entities/RescheduleRequest.d.ts +0 -16
- package/dist/entities/RescheduleRequest.js +0 -2
- package/dist/entities/School.d.ts +0 -31
- package/dist/entities/School.js +0 -2
- package/dist/entities/SchoolConnection.d.ts +0 -10
- package/dist/entities/SchoolConnection.js +0 -2
- package/dist/entities/SchoolConnectionRequest.d.ts +0 -7
- package/dist/entities/SchoolConnectionRequest.js +0 -2
- package/dist/entities/SchoolStudent.d.ts +0 -14
- package/dist/entities/SchoolStudent.js +0 -2
- package/dist/entities/SchoolTeacher.d.ts +0 -14
- package/dist/entities/SchoolTeacher.js +0 -2
- package/dist/entities/Time.d.ts +0 -9
- package/dist/entities/Time.js +0 -2
- package/dist/entities/TimeSlot.d.ts +0 -4
- package/dist/entities/TimeSlot.js +0 -2
- package/dist/entities/TimeValidator.d.ts +0 -3
- package/dist/entities/TimeValidator.js +0 -2
- package/dist/entities/UnauthorizedUser.d.ts +0 -16
- package/dist/entities/UnauthorizedUser.js +0 -2
- package/dist/entities/UserAuth.d.ts +0 -72
- package/dist/entities/UserAuth.js +0 -2
- package/dist/entities/UserConnection.d.ts +0 -8
- package/dist/entities/UserConnection.js +0 -2
- package/dist/entities/UserConnectionRequest.d.ts +0 -9
- package/dist/entities/UserConnectionRequest.js +0 -2
- package/dist/entities/UserCredentials.d.ts +0 -16
- package/dist/entities/UserCredentials.js +0 -11
- package/dist/entities/UserNavigation.d.ts +0 -8
- package/dist/entities/UserNavigation.js +0 -2
- package/dist/entities/UserPreferences.d.ts +0 -6
- package/dist/entities/UserPreferences.js +0 -2
- package/dist/entities/UserPremium.d.ts +0 -13
- package/dist/entities/UserPremium.js +0 -2
- package/dist/entities/UserProfile.d.ts +0 -9
- package/dist/entities/UserProfile.js +0 -2
- package/dist/entities/UserRoles.d.ts +0 -11
- package/dist/entities/UserRoles.js +0 -2
- package/dist/entities/UserSharedFileTimestamps.d.ts +0 -9
- package/dist/entities/UserSharedFileTimestamps.js +0 -2
- package/dist/entities/UserUnavailableTime.d.ts +0 -49
- package/dist/entities/UserUnavailableTime.js +0 -32
- package/dist/entities/UserUnavailableTime.test.d.ts +0 -1
- package/dist/entities/UserUnavailableTime.test.js +0 -22
- package/dist/repositories/UnavailableTimeRepository.d.ts +0 -20
- package/dist/repositories/UnavailableTimeRepository.js +0 -2
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ISO8601Time_1 = require("./ISO8601Time");
|
|
1
|
+
import { ISO8601Time } from "./ISO8601Time";
|
|
4
2
|
describe("ISO8601Time", () => {
|
|
5
3
|
beforeAll(() => {
|
|
6
4
|
jest.useFakeTimers({
|
|
@@ -13,50 +11,50 @@ describe("ISO8601Time", () => {
|
|
|
13
11
|
});
|
|
14
12
|
describe("ISO8601Time constructor", () => {
|
|
15
13
|
it("Should construct with no arguments.", () => {
|
|
16
|
-
const time = new
|
|
14
|
+
const time = new ISO8601Time();
|
|
17
15
|
expect(time).toBeDefined();
|
|
18
16
|
});
|
|
19
17
|
it("Should construct with now time when receiving no arguments.", () => {
|
|
20
|
-
const time = new
|
|
18
|
+
const time = new ISO8601Time();
|
|
21
19
|
expect(time.value).toBe("23:00:00");
|
|
22
20
|
});
|
|
23
21
|
});
|
|
24
22
|
describe("ISO8601Time.getNow()", () => {
|
|
25
23
|
it("Should get now time.", () => {
|
|
26
|
-
expect(
|
|
24
|
+
expect(ISO8601Time.getNow()).toBe("23:00:00");
|
|
27
25
|
});
|
|
28
26
|
});
|
|
29
27
|
describe("ISO8601Time.getHours()", () => {
|
|
30
28
|
it("Should return hours when valid", () => {
|
|
31
|
-
const time = new
|
|
29
|
+
const time = new ISO8601Time("00:01");
|
|
32
30
|
expect(time.getHours()).toBe("00");
|
|
33
|
-
const time2 = new
|
|
31
|
+
const time2 = new ISO8601Time("00:01:02");
|
|
34
32
|
expect(time2.getHours()).toBe("00");
|
|
35
33
|
});
|
|
36
34
|
});
|
|
37
35
|
describe("ISO8601Time.getMinutes()", () => {
|
|
38
36
|
it("Should return minutes when valid", () => {
|
|
39
|
-
const time = new
|
|
37
|
+
const time = new ISO8601Time("00:01");
|
|
40
38
|
expect(time.getMinutes()).toBe("01");
|
|
41
|
-
const time2 = new
|
|
39
|
+
const time2 = new ISO8601Time("00:01:02");
|
|
42
40
|
expect(time2.getMinutes()).toBe("01");
|
|
43
41
|
});
|
|
44
42
|
});
|
|
45
43
|
describe("ISO8601Time.getSeconds()", () => {
|
|
46
44
|
it("Should return seconds when valid", () => {
|
|
47
|
-
const time2 = new
|
|
45
|
+
const time2 = new ISO8601Time("00:01:02");
|
|
48
46
|
expect(time2.getSeconds()).toBe("02");
|
|
49
47
|
});
|
|
50
48
|
it("Should return 00 when seconds are not present.", () => {
|
|
51
|
-
const time = new
|
|
49
|
+
const time = new ISO8601Time("00:01");
|
|
52
50
|
expect(time.getSeconds()).toBe("00");
|
|
53
51
|
});
|
|
54
52
|
});
|
|
55
53
|
describe("ISO8601Time.getTime()", () => {
|
|
56
54
|
it("Should return time when valid", () => {
|
|
57
|
-
const time = new
|
|
55
|
+
const time = new ISO8601Time("00:01");
|
|
58
56
|
expect(time.getTime()).toBe("00:01:00");
|
|
59
|
-
const time2 = new
|
|
57
|
+
const time2 = new ISO8601Time("00:01:02");
|
|
60
58
|
expect(time2.getTime()).toBe("00:01:02");
|
|
61
59
|
});
|
|
62
60
|
});
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ISO8601TimeValidator = void 0;
|
|
4
|
-
class ISO8601TimeValidator {
|
|
1
|
+
export class ISO8601TimeValidator {
|
|
5
2
|
constructor() {
|
|
6
3
|
this.hhMMssPattern = new RegExp("^([0-1][0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9]$");
|
|
7
4
|
this.hhMMPattern = new RegExp("^([0-1][0-9]|[2][0-3]):[0-5][0-9]$");
|
|
@@ -16,4 +13,3 @@ class ISO8601TimeValidator {
|
|
|
16
13
|
return this.hhMMPattern.test(time);
|
|
17
14
|
}
|
|
18
15
|
}
|
|
19
|
-
exports.ISO8601TimeValidator = ISO8601TimeValidator;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ISO8601TimeValidator_1 = require("./ISO8601TimeValidator");
|
|
1
|
+
import { ISO8601TimeValidator } from "./ISO8601TimeValidator";
|
|
4
2
|
describe("ISO8601TimeValidator", () => {
|
|
5
|
-
const validator = new
|
|
3
|
+
const validator = new ISO8601TimeValidator();
|
|
6
4
|
describe("ISO8601TimeValidator.formatIsValid()", () => {
|
|
7
5
|
it("Should not accept ISO8601 timestamp with offset.", () => {
|
|
8
6
|
const time = "00:00:00-03:00";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserCredentials = void 0;
|
|
4
|
-
class UserCredentials {
|
|
1
|
+
export class UserCredentials {
|
|
5
2
|
constructor(opts) {
|
|
6
3
|
this.email = opts.email;
|
|
7
4
|
this.password = opts.password;
|
|
8
5
|
this.user = opts.user;
|
|
9
6
|
}
|
|
10
7
|
}
|
|
11
|
-
exports.UserCredentials = UserCredentials;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserUnavailableTime = void 0;
|
|
4
|
-
class UserUnavailableTime {
|
|
1
|
+
export class UserUnavailableTime {
|
|
5
2
|
constructor(opts) {
|
|
6
3
|
this.getDateTimeSlot = () => {
|
|
7
4
|
return {
|
|
@@ -29,4 +26,3 @@ class UserUnavailableTime {
|
|
|
29
26
|
return this.date.getDayOfTheWeek();
|
|
30
27
|
}
|
|
31
28
|
}
|
|
32
|
-
exports.UserUnavailableTime = UserUnavailableTime;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const ISO8601Date_1 = require("./ISO8601Date");
|
|
4
|
-
const UserUnavailableTime_1 = require("./UserUnavailableTime");
|
|
1
|
+
import { ISO8601Date } from "./ISO8601Date";
|
|
2
|
+
import { UserUnavailableTime } from "./UserUnavailableTime";
|
|
5
3
|
describe("UserUnavailableTime", () => {
|
|
6
|
-
const availableTime = new
|
|
4
|
+
const availableTime = new UserUnavailableTime({
|
|
7
5
|
courseId: "courseId",
|
|
8
|
-
date: new
|
|
6
|
+
date: new ISO8601Date("2025-01-01"),
|
|
9
7
|
endTime: "15:00",
|
|
10
8
|
startTime: "14:00",
|
|
11
9
|
groupId: "groupId",
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AsaasCustomer } from "./domain/entities/AsaasCustomer";
|
|
2
|
+
import { Class, IClass } from "./domain/entities/Class";
|
|
3
|
+
import { IClassRequest } from "./domain/entities/ClassRequest";
|
|
4
|
+
import { IContract } from "./domain/entities/Contract";
|
|
5
|
+
import { ICourse } from "./domain/entities/Course";
|
|
6
|
+
import { ICourseToSchoolConnectionRequest } from "./domain/entities/CourseToSchoolConnectionRequest";
|
|
7
|
+
import { IDate } from "./domain/entities/Date";
|
|
8
|
+
import { IDateTimeSlot } from "./domain/entities/DateTimeSlot";
|
|
9
|
+
import { IDateValidator } from "./domain/entities/DateValidator";
|
|
10
|
+
import { IFile } from "./domain/entities/File";
|
|
11
|
+
import { IGenericNotification } from "./domain/entities/GenericNotification";
|
|
12
|
+
import { IGoogleAuth } from "./domain/entities/GoogleAuth";
|
|
13
|
+
import { IGoogleCalendar } from "./domain/entities/GoogleCalendar";
|
|
14
|
+
import { IGoogleCalendarEvent } from "./domain/entities/GoogleCalendarEvent";
|
|
15
|
+
import { ISO8601Date } from "./domain/entities/ISO8601Date";
|
|
16
|
+
import { IDateTime, ISO8601DateTime } from "./domain/entities/ISO8601DateTime";
|
|
17
|
+
import { ISO8601DateValidator } from "./domain/entities/ISO8601DateValidator";
|
|
18
|
+
import { ISO8601Time } from "./domain/entities/ISO8601Time";
|
|
19
|
+
import { ISO8601TimeValidator } from "./domain/entities/ISO8601TimeValidator";
|
|
20
|
+
import { IPasswordRecovery } from "./domain/entities/PasswordRecovery";
|
|
21
|
+
import { IPayment } from "./domain/entities/Payment";
|
|
22
|
+
import { IPaymentRecognitionRequest } from "./domain/entities/PaymentRecognitionRequest";
|
|
23
|
+
import { IPreApprovedUser } from "./domain/entities/PreApprovedUser";
|
|
24
|
+
import { IRescheduleRequest } from "./domain/entities/RescheduleRequest";
|
|
25
|
+
import { ISchool } from "./domain/entities/School";
|
|
26
|
+
import { ISchoolConnection } from "./domain/entities/SchoolConnection";
|
|
27
|
+
import { ISchoolConnectionRequest } from "./domain/entities/SchoolConnectionRequest";
|
|
28
|
+
import { ISchoolStudent } from "./domain/entities/SchoolStudent";
|
|
29
|
+
import { ISchoolTeacher } from "./domain/entities/SchoolTeacher";
|
|
30
|
+
import { ITime } from "./domain/entities/Time";
|
|
31
|
+
import { ITimeSlot } from "./domain/entities/TimeSlot";
|
|
32
|
+
import { ITimeValidator } from "./domain/entities/TimeValidator";
|
|
33
|
+
import { IUnauthorizedUser } from "./domain/entities/UnauthorizedUser";
|
|
34
|
+
import { IUserAuth } from "./domain/entities/UserAuth";
|
|
35
|
+
import { IUserConnection } from "./domain/entities/UserConnection";
|
|
36
|
+
import { IUserConnectionRequest } from "./domain/entities/UserConnectionRequest";
|
|
37
|
+
import { IUserCredentials } from "./domain/entities/UserCredentials";
|
|
38
|
+
import { IUserNavigation } from "./domain/entities/UserNavigation";
|
|
39
|
+
import { IUserPreferences } from "./domain/entities/UserPreferences";
|
|
40
|
+
import { IUserPremium } from "./domain/entities/UserPremium";
|
|
41
|
+
import { IUserProfile } from "./domain/entities/UserProfile";
|
|
42
|
+
import { IUserRoles } from "./domain/entities/UserRoles";
|
|
43
|
+
import { IUserSharedFileTimestamps } from "./domain/entities/UserSharedFileTimestamps";
|
|
44
|
+
import { IUnavailableTimeRepository } from "./domain/repositories/UnavailableTimeRepository";
|
|
45
|
+
import { GetFixedAvailableTimeResponseBody } from "./restful/responses/GetFixedAvailableTimesResponseBody";
|
|
46
|
+
import { IUserUnavailableTime, UserUnavailableTime } from "./domain/entities/UserUnavailableTime";
|
|
47
|
+
import { IFreeDateTimeSlot, FreeDateTimeSlot } from "./domain/entities/FreeTimeSlot";
|
|
48
|
+
export { AsaasCustomer, Class, IClass, IClassRequest, IContract, ICourse, ICourseToSchoolConnectionRequest, IDate, IDateTimeSlot, IFreeDateTimeSlot, FreeDateTimeSlot, IUserUnavailableTime, UserUnavailableTime, IDateValidator, IFile, IGenericNotification, IGoogleAuth, IGoogleCalendar, IGoogleCalendarEvent, ISO8601Date, IDateTime, ISO8601DateValidator, ISO8601Time, ISO8601TimeValidator, IPasswordRecovery, IPayment, IPaymentRecognitionRequest, IPreApprovedUser, IRescheduleRequest, ISchool, ISchoolConnection, ISchoolConnectionRequest, ISchoolStudent, ISchoolTeacher, ITime, ITimeSlot, ITimeValidator, IUnauthorizedUser, IUserAuth, IUserConnection, IUserConnectionRequest, IUserCredentials, IUserNavigation, IUserPreferences, IUserPremium, IUserProfile, IUserRoles, IUserSharedFileTimestamps, IUnavailableTimeRepository, GetFixedAvailableTimeResponseBody, ISO8601DateTime };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AsaasCustomer } from "./domain/entities/AsaasCustomer";
|
|
2
|
+
import { Class } from "./domain/entities/Class";
|
|
3
|
+
import { ISO8601Date } from "./domain/entities/ISO8601Date";
|
|
4
|
+
import { ISO8601DateTime } from "./domain/entities/ISO8601DateTime";
|
|
5
|
+
import { ISO8601DateValidator } from "./domain/entities/ISO8601DateValidator";
|
|
6
|
+
import { ISO8601Time } from "./domain/entities/ISO8601Time";
|
|
7
|
+
import { ISO8601TimeValidator } from "./domain/entities/ISO8601TimeValidator";
|
|
8
|
+
import { UserUnavailableTime, } from "./domain/entities/UserUnavailableTime";
|
|
9
|
+
import { FreeDateTimeSlot, } from "./domain/entities/FreeTimeSlot";
|
|
10
|
+
export { AsaasCustomer, Class, FreeDateTimeSlot, UserUnavailableTime, ISO8601Date, ISO8601DateValidator, ISO8601Time, ISO8601TimeValidator, ISO8601DateTime };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliasrrosa/tutorhub-public-assets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Assets, mainly interfaces, to be shared among different Tutorhub apps.",
|
|
5
|
-
"main": "/dist/index.js",
|
|
6
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
7
13
|
"files": [
|
|
8
|
-
"
|
|
14
|
+
"dist"
|
|
9
15
|
],
|
|
10
16
|
"scripts": {
|
|
11
17
|
"test": "npx jest --watch --passWithNoTests "
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare class AsaasCustomer {
|
|
2
|
-
name: string;
|
|
3
|
-
cpfCnpj: string;
|
|
4
|
-
email: string;
|
|
5
|
-
mobilePhone: string;
|
|
6
|
-
externalReference?: string;
|
|
7
|
-
constructor(opts: {
|
|
8
|
-
name: string;
|
|
9
|
-
cpfCnpj: string;
|
|
10
|
-
email: string;
|
|
11
|
-
mobilePhone: string;
|
|
12
|
-
externalReference?: string;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AsaasCustomer = void 0;
|
|
4
|
-
class AsaasCustomer {
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
this.name = opts.name;
|
|
7
|
-
this.cpfCnpj = opts.cpfCnpj;
|
|
8
|
-
this.email = opts.email;
|
|
9
|
-
this.mobilePhone = opts.mobilePhone;
|
|
10
|
-
this.externalReference = opts.externalReference;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.AsaasCustomer = AsaasCustomer;
|
package/dist/entities/Class.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { IContract } from "./Contract";
|
|
2
|
-
import { ICourse } from "./Course";
|
|
3
|
-
import { IDate } from "./Date";
|
|
4
|
-
import { IFile } from "./File";
|
|
5
|
-
import { IGoogleCalendarEvent } from "./GoogleCalendarEvent";
|
|
6
|
-
import { IPayment } from "./Payment";
|
|
7
|
-
import { IRescheduleRequest } from "./RescheduleRequest";
|
|
8
|
-
export interface IClass {
|
|
9
|
-
id: string;
|
|
10
|
-
groupId: string | null;
|
|
11
|
-
title: string;
|
|
12
|
-
description: string | null;
|
|
13
|
-
createdAt: Date | null;
|
|
14
|
-
updatedAt: Date | null;
|
|
15
|
-
date: IDate;
|
|
16
|
-
time: string;
|
|
17
|
-
endTime: string;
|
|
18
|
-
endDate: IDate | null;
|
|
19
|
-
courseId: string;
|
|
20
|
-
paymentId: string | null;
|
|
21
|
-
status: string | null;
|
|
22
|
-
course?: ICourse;
|
|
23
|
-
payment?: IPayment;
|
|
24
|
-
files?: IFile[];
|
|
25
|
-
rescheduleRequests?: IRescheduleRequest[];
|
|
26
|
-
googleCalendarEvents?: IGoogleCalendarEvent[];
|
|
27
|
-
meetingLink: string | null;
|
|
28
|
-
contractId: string | null;
|
|
29
|
-
contract?: IContract;
|
|
30
|
-
ownerId: string;
|
|
31
|
-
}
|
|
32
|
-
export declare class Class implements IClass {
|
|
33
|
-
id: string;
|
|
34
|
-
groupId: string | null;
|
|
35
|
-
title: string;
|
|
36
|
-
description: string | null;
|
|
37
|
-
createdAt: Date | null;
|
|
38
|
-
updatedAt: Date | null;
|
|
39
|
-
date: IDate;
|
|
40
|
-
time: string;
|
|
41
|
-
endTime: string;
|
|
42
|
-
endDate: IDate | null;
|
|
43
|
-
courseId: string;
|
|
44
|
-
paymentId: string | null;
|
|
45
|
-
status: string | null;
|
|
46
|
-
course?: ICourse;
|
|
47
|
-
payment?: IPayment;
|
|
48
|
-
files?: IFile[];
|
|
49
|
-
rescheduleRequests?: IRescheduleRequest[];
|
|
50
|
-
googleCalendarEvents?: IGoogleCalendarEvent[];
|
|
51
|
-
meetingLink: string | null;
|
|
52
|
-
contractId: string | null;
|
|
53
|
-
contract?: IContract;
|
|
54
|
-
ownerId: string;
|
|
55
|
-
constructor(params: {
|
|
56
|
-
id: string;
|
|
57
|
-
groupId?: string | null;
|
|
58
|
-
title: string;
|
|
59
|
-
description?: string | null;
|
|
60
|
-
createdAt?: Date | null;
|
|
61
|
-
updatedAt?: Date | null;
|
|
62
|
-
date: IDate;
|
|
63
|
-
time: string;
|
|
64
|
-
endTime: string;
|
|
65
|
-
endDate?: IDate | null;
|
|
66
|
-
courseId: string;
|
|
67
|
-
paymentId?: string | null;
|
|
68
|
-
status?: string | null;
|
|
69
|
-
course?: ICourse;
|
|
70
|
-
payment?: IPayment;
|
|
71
|
-
files?: IFile[];
|
|
72
|
-
rescheduleRequests?: IRescheduleRequest[];
|
|
73
|
-
googleCalendarEvents?: IGoogleCalendarEvent[];
|
|
74
|
-
meetingLink?: string | null;
|
|
75
|
-
contractId?: string | null;
|
|
76
|
-
contract?: IContract;
|
|
77
|
-
ownerId: string;
|
|
78
|
-
});
|
|
79
|
-
}
|
package/dist/entities/Class.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Class = void 0;
|
|
4
|
-
class Class {
|
|
5
|
-
constructor(params) {
|
|
6
|
-
this.id = params.id;
|
|
7
|
-
this.groupId = params.groupId ? params.groupId : null;
|
|
8
|
-
this.title = params.title;
|
|
9
|
-
this.description = params.description ? params.description : null;
|
|
10
|
-
this.createdAt = params.createdAt ? params.createdAt : null;
|
|
11
|
-
this.updatedAt = params.updatedAt ? params.updatedAt : null;
|
|
12
|
-
this.date = params.date;
|
|
13
|
-
this.time = params.time;
|
|
14
|
-
this.endTime = params.endTime;
|
|
15
|
-
this.endDate = params.endDate ? params.endDate : null;
|
|
16
|
-
this.courseId = params.courseId;
|
|
17
|
-
this.paymentId = params.paymentId ? params.paymentId : null;
|
|
18
|
-
this.status = params.status ? params.status : null;
|
|
19
|
-
this.course = params.course;
|
|
20
|
-
this.payment = params.payment;
|
|
21
|
-
this.files = params.files;
|
|
22
|
-
this.rescheduleRequests = params.rescheduleRequests;
|
|
23
|
-
this.googleCalendarEvents = params.googleCalendarEvents;
|
|
24
|
-
this.meetingLink = params.meetingLink ? params.meetingLink : null;
|
|
25
|
-
this.contractId = params.contractId ? params.contractId : null;
|
|
26
|
-
this.contract = params.contract;
|
|
27
|
-
this.ownerId = params.ownerId;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.Class = Class;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IUserAuth } from "./UserAuth";
|
|
2
|
-
import { ICourse } from "./Course";
|
|
3
|
-
export interface IClassRequest {
|
|
4
|
-
id: string;
|
|
5
|
-
requesterId: string;
|
|
6
|
-
requester?: IUserAuth;
|
|
7
|
-
requestedId: string;
|
|
8
|
-
requested?: IUserAuth;
|
|
9
|
-
date: Date;
|
|
10
|
-
startTime: string;
|
|
11
|
-
endTime: string;
|
|
12
|
-
courseId?: string;
|
|
13
|
-
course?: ICourse;
|
|
14
|
-
createdAt?: Date;
|
|
15
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IClass } from "./Class";
|
|
2
|
-
import { ICourse } from "./Course";
|
|
3
|
-
import { IFile } from "./File";
|
|
4
|
-
import { IPayment } from "./Payment";
|
|
5
|
-
import { IPreApprovedUser } from "./PreApprovedUser";
|
|
6
|
-
import { ISchool } from "./School";
|
|
7
|
-
import { IUserAuth } from "./UserAuth";
|
|
8
|
-
export interface IContract {
|
|
9
|
-
id: string;
|
|
10
|
-
title: string;
|
|
11
|
-
contractorId: string | null;
|
|
12
|
-
schoolContractorId: string | null;
|
|
13
|
-
contractantId: string | null;
|
|
14
|
-
schoolContractantId: string | null;
|
|
15
|
-
preApprovedUserContractantEmail: string | null;
|
|
16
|
-
contractantSigned: boolean;
|
|
17
|
-
contractorSigned: boolean;
|
|
18
|
-
creatorId: string;
|
|
19
|
-
contractorSignatureDate: Date | null;
|
|
20
|
-
contractantSignatureDate: Date | null;
|
|
21
|
-
fileId: string | null;
|
|
22
|
-
responsibleTeacherId: string | null;
|
|
23
|
-
contractExpiryDate: Date | null;
|
|
24
|
-
status: string | null;
|
|
25
|
-
courseId: string | null;
|
|
26
|
-
createdAt: Date;
|
|
27
|
-
schoolId: string | null;
|
|
28
|
-
creator?: IUserAuth;
|
|
29
|
-
contractor?: IUserAuth | null;
|
|
30
|
-
schoolContractor?: ISchool | null;
|
|
31
|
-
contractant?: IUserAuth | null;
|
|
32
|
-
schoolContractant?: ISchool | null;
|
|
33
|
-
classes?: IClass[];
|
|
34
|
-
payments?: IPayment[];
|
|
35
|
-
file?: IFile | null;
|
|
36
|
-
responsibleTeacher?: IUserAuth | null;
|
|
37
|
-
course?: ICourse | null;
|
|
38
|
-
school?: ISchool | null;
|
|
39
|
-
preApprovedUserContractant?: IPreApprovedUser | null;
|
|
40
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { IClass } from "./Class";
|
|
2
|
-
import { IClassRequest } from "./ClassRequest";
|
|
3
|
-
import { IContract } from "./Contract";
|
|
4
|
-
import { ICourseToSchoolConnectionRequest } from "./CourseToSchoolConnectionRequest";
|
|
5
|
-
import { IFile } from "./File";
|
|
6
|
-
import { IPayment } from "./Payment";
|
|
7
|
-
import { IPreApprovedUser } from "./PreApprovedUser";
|
|
8
|
-
import { ISchool } from "./School";
|
|
9
|
-
import { IUserAuth } from "./UserAuth";
|
|
10
|
-
import { IUserUnavailableTime } from "./UserUnavailableTime";
|
|
11
|
-
export interface ICourse {
|
|
12
|
-
id: string;
|
|
13
|
-
title: string;
|
|
14
|
-
description: string;
|
|
15
|
-
createdAt: Date | null;
|
|
16
|
-
updatedAt: Date | null;
|
|
17
|
-
isActive: boolean;
|
|
18
|
-
ownerId: string;
|
|
19
|
-
schoolId: string | null;
|
|
20
|
-
responsibleTeacherId: string | null;
|
|
21
|
-
owner?: IUserAuth;
|
|
22
|
-
students?: IUserAuth[];
|
|
23
|
-
preApprovedUserStudents?: IPreApprovedUser[];
|
|
24
|
-
classes?: IClass[];
|
|
25
|
-
payments?: IPayment[];
|
|
26
|
-
files?: IFile[];
|
|
27
|
-
availableTimes?: IUserUnavailableTime[];
|
|
28
|
-
classRequests?: IClassRequest[];
|
|
29
|
-
meetingLink: string | null;
|
|
30
|
-
contracts?: IContract[];
|
|
31
|
-
schools?: ISchool;
|
|
32
|
-
courseToSchoolConnectionRequests?: ICourseToSchoolConnectionRequest[];
|
|
33
|
-
responsibleTeacher?: IUserAuth;
|
|
34
|
-
}
|
package/dist/entities/Course.js
DELETED