@chukyo-umebo/web_parser 0.0.1
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 +56 -0
- package/dist/cjs/albo/index.js +5 -0
- package/dist/cjs/albo/parser/albo.js +52 -0
- package/dist/cjs/albo/types/albo.js +19 -0
- package/dist/cjs/common/dom.js +116 -0
- package/dist/cjs/common/utils.js +13 -0
- package/dist/cjs/cubics/index.js +5 -0
- package/dist/cjs/cubics/parser/cubics.js +94 -0
- package/dist/cjs/cubics/types/cubics.js +38 -0
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/manabo/index.js +23 -0
- package/dist/cjs/manabo/parser/manaboClass.js +428 -0
- package/dist/cjs/manabo/parser/manaboEntry.js +35 -0
- package/dist/cjs/manabo/parser/manaboMail.js +169 -0
- package/dist/cjs/manabo/parser/manaboNews.js +29 -0
- package/dist/cjs/manabo/parser/manaboTimetable.js +75 -0
- package/dist/cjs/manabo/types/manaboClass.js +126 -0
- package/dist/cjs/manabo/types/manaboEntry.js +21 -0
- package/dist/cjs/manabo/types/manaboMail.js +66 -0
- package/dist/cjs/manabo/types/manaboNews.js +11 -0
- package/dist/cjs/manabo/types/manaboTimetable.js +32 -0
- package/dist/esm/albo/index.d.ts +3 -0
- package/dist/esm/albo/index.d.ts.map +1 -0
- package/dist/esm/albo/index.js +1 -0
- package/dist/esm/albo/parser/albo.d.ts +4 -0
- package/dist/esm/albo/parser/albo.d.ts.map +1 -0
- package/dist/esm/albo/parser/albo.js +48 -0
- package/dist/esm/albo/types/albo.d.ts +34 -0
- package/dist/esm/albo/types/albo.d.ts.map +1 -0
- package/dist/esm/albo/types/albo.js +16 -0
- package/dist/esm/common/dom.d.ts +18 -0
- package/dist/esm/common/dom.d.ts.map +1 -0
- package/dist/esm/common/dom.js +99 -0
- package/dist/esm/common/utils.d.ts +3 -0
- package/dist/esm/common/utils.d.ts.map +1 -0
- package/dist/esm/common/utils.js +8 -0
- package/dist/esm/cubics/index.d.ts +3 -0
- package/dist/esm/cubics/index.d.ts.map +1 -0
- package/dist/esm/cubics/index.js +1 -0
- package/dist/esm/cubics/parser/cubics.d.ts +4 -0
- package/dist/esm/cubics/parser/cubics.d.ts.map +1 -0
- package/dist/esm/cubics/parser/cubics.js +90 -0
- package/dist/esm/cubics/types/cubics.d.ts +60 -0
- package/dist/esm/cubics/types/cubics.d.ts.map +1 -0
- package/dist/esm/cubics/types/cubics.js +35 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/manabo/index.d.ts +11 -0
- package/dist/esm/manabo/index.d.ts.map +1 -0
- package/dist/esm/manabo/index.js +5 -0
- package/dist/esm/manabo/parser/manaboClass.d.ts +9 -0
- package/dist/esm/manabo/parser/manaboClass.d.ts.map +1 -0
- package/dist/esm/manabo/parser/manaboClass.js +419 -0
- package/dist/esm/manabo/parser/manaboEntry.d.ts +5 -0
- package/dist/esm/manabo/parser/manaboEntry.d.ts.map +1 -0
- package/dist/esm/manabo/parser/manaboEntry.js +30 -0
- package/dist/esm/manabo/parser/manaboMail.d.ts +8 -0
- package/dist/esm/manabo/parser/manaboMail.d.ts.map +1 -0
- package/dist/esm/manabo/parser/manaboMail.js +161 -0
- package/dist/esm/manabo/parser/manaboNews.d.ts +4 -0
- package/dist/esm/manabo/parser/manaboNews.d.ts.map +1 -0
- package/dist/esm/manabo/parser/manaboNews.js +25 -0
- package/dist/esm/manabo/parser/manaboTimetable.d.ts +4 -0
- package/dist/esm/manabo/parser/manaboTimetable.d.ts.map +1 -0
- package/dist/esm/manabo/parser/manaboTimetable.js +71 -0
- package/dist/esm/manabo/types/manaboClass.d.ts +268 -0
- package/dist/esm/manabo/types/manaboClass.d.ts.map +1 -0
- package/dist/esm/manabo/types/manaboClass.js +123 -0
- package/dist/esm/manabo/types/manaboEntry.d.ts +21 -0
- package/dist/esm/manabo/types/manaboEntry.d.ts.map +1 -0
- package/dist/esm/manabo/types/manaboEntry.js +18 -0
- package/dist/esm/manabo/types/manaboMail.d.ts +95 -0
- package/dist/esm/manabo/types/manaboMail.d.ts.map +1 -0
- package/dist/esm/manabo/types/manaboMail.js +63 -0
- package/dist/esm/manabo/types/manaboNews.d.ts +13 -0
- package/dist/esm/manabo/types/manaboNews.d.ts.map +1 -0
- package/dist/esm/manabo/types/manaboNews.js +8 -0
- package/dist/esm/manabo/types/manaboTimetable.d.ts +57 -0
- package/dist/esm/manabo/types/manaboTimetable.d.ts.map +1 -0
- package/dist/esm/manabo/types/manaboTimetable.js +29 -0
- package/package.json +37 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ManaboClassDirectoryItemSchema = z.object({
|
|
3
|
+
directoryId: z.string(),
|
|
4
|
+
title: z.string(),
|
|
5
|
+
});
|
|
6
|
+
export const ManaboClassDirectorySchema = z.object({
|
|
7
|
+
classId: z.string(),
|
|
8
|
+
className: z.string(),
|
|
9
|
+
directories: z.array(ManaboClassDirectoryItemSchema),
|
|
10
|
+
});
|
|
11
|
+
export const ManaboClassContentIconSchema = z.object({
|
|
12
|
+
pluginIconSrc: z.string(),
|
|
13
|
+
isIconChecked: z.boolean(),
|
|
14
|
+
});
|
|
15
|
+
export const ManaboClassContentDurationSchema = z.object({
|
|
16
|
+
label: z.string(),
|
|
17
|
+
value: z.string(),
|
|
18
|
+
});
|
|
19
|
+
export const ManaboClassContentFileSchema = z.object({
|
|
20
|
+
fileName: z.string(),
|
|
21
|
+
href: z.string(),
|
|
22
|
+
icon: z.string(),
|
|
23
|
+
});
|
|
24
|
+
export const ManaboClassContentActionSchema = z.object({
|
|
25
|
+
title: z.string(),
|
|
26
|
+
href: z.string(),
|
|
27
|
+
});
|
|
28
|
+
export const ManaboClassContentAttachedFileSchema = z.object({
|
|
29
|
+
comment: z.string(),
|
|
30
|
+
files: z.array(ManaboClassContentFileSchema),
|
|
31
|
+
duration: z.array(ManaboClassContentDurationSchema),
|
|
32
|
+
});
|
|
33
|
+
export const ManaboClassContentContentSchema = z.object({
|
|
34
|
+
title: z.string(),
|
|
35
|
+
contentId: z.string(),
|
|
36
|
+
pluginKey: z.string(),
|
|
37
|
+
duration: z.array(ManaboClassContentDurationSchema),
|
|
38
|
+
});
|
|
39
|
+
export const ManaboClassContentToggleAreaSchema = z.object({
|
|
40
|
+
description: z.string(),
|
|
41
|
+
isExpired: z.boolean(),
|
|
42
|
+
isNotAvailableYet: z.boolean(),
|
|
43
|
+
actions: z.array(ManaboClassContentActionSchema),
|
|
44
|
+
});
|
|
45
|
+
export const ManaboClassFileContentSchema = z.object({
|
|
46
|
+
type: z.literal("file"),
|
|
47
|
+
icon: ManaboClassContentIconSchema,
|
|
48
|
+
attachedFile: ManaboClassContentAttachedFileSchema,
|
|
49
|
+
});
|
|
50
|
+
export const ManaboClassReportContentSchema = z.object({
|
|
51
|
+
type: z.literal("report"),
|
|
52
|
+
icon: ManaboClassContentIconSchema,
|
|
53
|
+
content: ManaboClassContentContentSchema,
|
|
54
|
+
toggleArea: ManaboClassContentToggleAreaSchema,
|
|
55
|
+
});
|
|
56
|
+
export const ManaboClassContentSchema = z.object({
|
|
57
|
+
contents: z.array(z.union([ManaboClassFileContentSchema, ManaboClassReportContentSchema])),
|
|
58
|
+
});
|
|
59
|
+
export const ManaboClassEntryRowSchema = z.object({
|
|
60
|
+
directory: z.string(),
|
|
61
|
+
lectureDate: z.string().nullable(),
|
|
62
|
+
status: z.string(),
|
|
63
|
+
});
|
|
64
|
+
export const ManaboClassEntrySchema = z.object({
|
|
65
|
+
rows: z.array(ManaboClassEntryRowSchema),
|
|
66
|
+
});
|
|
67
|
+
export const ManaboClassNewsItemSchema = z.object({
|
|
68
|
+
id: z.string().nullable(),
|
|
69
|
+
title: z.string(),
|
|
70
|
+
bodyHtml: z.string(),
|
|
71
|
+
});
|
|
72
|
+
export const ManaboClassNewsSchema = z.object({
|
|
73
|
+
items: z.array(ManaboClassNewsItemSchema),
|
|
74
|
+
});
|
|
75
|
+
export const ManaboClassSyllabusEvaluationSchema = z.object({
|
|
76
|
+
type: z.string(),
|
|
77
|
+
weight: z.string(),
|
|
78
|
+
});
|
|
79
|
+
export const ManaboClassSyllabusTextbookSchema = z.object({
|
|
80
|
+
type: z.string(),
|
|
81
|
+
title: z.string(),
|
|
82
|
+
});
|
|
83
|
+
export const ManaboClassSyllabusReferenceSchema = z.object({
|
|
84
|
+
title: z.string(),
|
|
85
|
+
code: z.string(),
|
|
86
|
+
});
|
|
87
|
+
export const ManaboClassSyllabusPlanItemSchema = z.object({
|
|
88
|
+
no: z.number(),
|
|
89
|
+
item: z.string(),
|
|
90
|
+
content: z.string(),
|
|
91
|
+
});
|
|
92
|
+
export const ManaboClassSyllabusSchema = z.object({
|
|
93
|
+
object: z.string(),
|
|
94
|
+
goal: z.array(z.string()),
|
|
95
|
+
method: z.string(),
|
|
96
|
+
usedMethods: z.array(z.string()),
|
|
97
|
+
evaluation: z.array(ManaboClassSyllabusEvaluationSchema),
|
|
98
|
+
textbooks: z.array(ManaboClassSyllabusTextbookSchema),
|
|
99
|
+
references: z.array(ManaboClassSyllabusReferenceSchema),
|
|
100
|
+
officeHour: z.string(),
|
|
101
|
+
plan: z.array(ManaboClassSyllabusPlanItemSchema),
|
|
102
|
+
comment: z.string(),
|
|
103
|
+
prePostStudy: z.string(),
|
|
104
|
+
});
|
|
105
|
+
export const ManaboClassQuizResultQuestionSchema = z.object({
|
|
106
|
+
page: z.string(),
|
|
107
|
+
questionNumber: z.string(),
|
|
108
|
+
questionText: z.string(),
|
|
109
|
+
correctAnswer: z.string(),
|
|
110
|
+
studentAnswer: z.string(),
|
|
111
|
+
resultIconAlt: z.string().nullable(),
|
|
112
|
+
resultIconSrc: z.string().nullable(),
|
|
113
|
+
resultText: z.string().nullable(),
|
|
114
|
+
teacherComment: z.string().nullable(),
|
|
115
|
+
});
|
|
116
|
+
export const ManaboClassQuizResultSchema = z.object({
|
|
117
|
+
score: z.object({
|
|
118
|
+
obtained: z.number(),
|
|
119
|
+
total: z.number(),
|
|
120
|
+
}),
|
|
121
|
+
totalItemsText: z.string().nullable(),
|
|
122
|
+
questions: z.array(ManaboClassQuizResultQuestionSchema),
|
|
123
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ManaboEntryFormSchema: z.ZodObject<{
|
|
3
|
+
action: z.ZodString;
|
|
4
|
+
classId: z.ZodString;
|
|
5
|
+
directoryId: z.ZodString;
|
|
6
|
+
entryId: z.ZodString;
|
|
7
|
+
uniqid: z.ZodString;
|
|
8
|
+
messages: z.ZodArray<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type ManaboEntryFormDTO = z.infer<typeof ManaboEntryFormSchema>;
|
|
11
|
+
export declare const ManaboEntryResponseSchema: z.ZodObject<{
|
|
12
|
+
success: z.ZodBoolean;
|
|
13
|
+
html: z.ZodNullable<z.ZodString>;
|
|
14
|
+
error: z.ZodNullable<z.ZodString>;
|
|
15
|
+
message: z.ZodNullable<z.ZodString>;
|
|
16
|
+
data: z.ZodObject<{
|
|
17
|
+
is_accepted: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type ManaboEntryResponseDTO = z.infer<typeof ManaboEntryResponseSchema>;
|
|
21
|
+
//# sourceMappingURL=manaboEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manaboEntry.d.ts","sourceRoot":"","sources":["../../../../src/manabo/types/manaboEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;iBAOhC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;iBAQpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ManaboEntryFormSchema = z.object({
|
|
3
|
+
action: z.string(),
|
|
4
|
+
classId: z.string(),
|
|
5
|
+
directoryId: z.string(),
|
|
6
|
+
entryId: z.string(),
|
|
7
|
+
uniqid: z.string(),
|
|
8
|
+
messages: z.array(z.string()),
|
|
9
|
+
});
|
|
10
|
+
export const ManaboEntryResponseSchema = z.object({
|
|
11
|
+
success: z.boolean(),
|
|
12
|
+
html: z.string().nullable(),
|
|
13
|
+
error: z.string().nullable(),
|
|
14
|
+
message: z.string().nullable(),
|
|
15
|
+
data: z.object({
|
|
16
|
+
is_accepted: z.number(),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ManaboMailListPageSchema: z.ZodObject<{
|
|
3
|
+
label: z.ZodString;
|
|
4
|
+
page: z.ZodString;
|
|
5
|
+
active: z.ZodBoolean;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type ManaboMailListPageDTO = z.infer<typeof ManaboMailListPageSchema>;
|
|
8
|
+
export declare const ManaboReceivedMailItemSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
statusIconAlt: z.ZodNullable<z.ZodString>;
|
|
12
|
+
statusIconSrc: z.ZodNullable<z.ZodString>;
|
|
13
|
+
mailLink: z.ZodNullable<z.ZodString>;
|
|
14
|
+
senderName: z.ZodNullable<z.ZodString>;
|
|
15
|
+
senderImage: z.ZodNullable<z.ZodString>;
|
|
16
|
+
receivedAt: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type ManaboReceivedMailItemDTO = z.infer<typeof ManaboReceivedMailItemSchema>;
|
|
19
|
+
export declare const ManaboReceivedMailSchema: z.ZodObject<{
|
|
20
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
21
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
22
|
+
label: z.ZodString;
|
|
23
|
+
page: z.ZodString;
|
|
24
|
+
active: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
mails: z.ZodArray<z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
title: z.ZodString;
|
|
29
|
+
statusIconAlt: z.ZodNullable<z.ZodString>;
|
|
30
|
+
statusIconSrc: z.ZodNullable<z.ZodString>;
|
|
31
|
+
mailLink: z.ZodNullable<z.ZodString>;
|
|
32
|
+
senderName: z.ZodNullable<z.ZodString>;
|
|
33
|
+
senderImage: z.ZodNullable<z.ZodString>;
|
|
34
|
+
receivedAt: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type ManaboReceivedMailDTO = z.infer<typeof ManaboReceivedMailSchema>;
|
|
38
|
+
export declare const ManaboSentMailItemSchema: z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
title: z.ZodString;
|
|
41
|
+
statusIconAlt: z.ZodNullable<z.ZodString>;
|
|
42
|
+
statusIconSrc: z.ZodNullable<z.ZodString>;
|
|
43
|
+
mailLink: z.ZodNullable<z.ZodString>;
|
|
44
|
+
recipientName: z.ZodNullable<z.ZodString>;
|
|
45
|
+
recipientImage: z.ZodNullable<z.ZodString>;
|
|
46
|
+
sentAt: z.ZodString;
|
|
47
|
+
unreadCount: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type ManaboSentMailItemDTO = z.infer<typeof ManaboSentMailItemSchema>;
|
|
50
|
+
export declare const ManaboSentMailSchema: z.ZodObject<{
|
|
51
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
52
|
+
mails: z.ZodArray<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
statusIconAlt: z.ZodNullable<z.ZodString>;
|
|
56
|
+
statusIconSrc: z.ZodNullable<z.ZodString>;
|
|
57
|
+
mailLink: z.ZodNullable<z.ZodString>;
|
|
58
|
+
recipientName: z.ZodNullable<z.ZodString>;
|
|
59
|
+
recipientImage: z.ZodNullable<z.ZodString>;
|
|
60
|
+
sentAt: z.ZodString;
|
|
61
|
+
unreadCount: z.ZodNumber;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type ManaboSentMailDTO = z.infer<typeof ManaboSentMailSchema>;
|
|
65
|
+
export declare const ManaboMailViewSchema: z.ZodObject<{
|
|
66
|
+
title: z.ZodString;
|
|
67
|
+
replyMailId: z.ZodNullable<z.ZodString>;
|
|
68
|
+
fromMemberId: z.ZodNullable<z.ZodString>;
|
|
69
|
+
nextMailId: z.ZodNullable<z.ZodString>;
|
|
70
|
+
senderName: z.ZodString;
|
|
71
|
+
senderImage: z.ZodNullable<z.ZodString>;
|
|
72
|
+
sentAt: z.ZodString;
|
|
73
|
+
bodyHtml: z.ZodString;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type ManaboMailViewDTO = z.infer<typeof ManaboMailViewSchema>;
|
|
76
|
+
export declare const ManaboMailSendSchema: z.ZodObject<{
|
|
77
|
+
modalTitle: z.ZodString;
|
|
78
|
+
form: z.ZodObject<{
|
|
79
|
+
action: z.ZodString;
|
|
80
|
+
replyMailId: z.ZodNullable<z.ZodString>;
|
|
81
|
+
signature: z.ZodNullable<z.ZodString>;
|
|
82
|
+
csrfToken: z.ZodString;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
submitLabel: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type ManaboMailSendDTO = z.infer<typeof ManaboMailSendSchema>;
|
|
87
|
+
export declare const ManaboMailMemberSchema: z.ZodObject<{
|
|
88
|
+
members: z.ZodArray<z.ZodObject<{
|
|
89
|
+
memberId: z.ZodString;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
image: z.ZodNullable<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type ManaboMailMemberDTO = z.infer<typeof ManaboMailMemberSchema>;
|
|
95
|
+
//# sourceMappingURL=manaboMail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manaboMail.d.ts","sourceRoot":"","sources":["../../../../src/manabo/types/manaboMail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,4BAA4B;;;;;;;;;iBASvC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;iBAInC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAUnC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,oBAAoB;;;;;;;;;iBAS/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,oBAAoB;;;;;;;;;iBAS/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,sBAAsB;;;;;;iBAQjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ManaboMailListPageSchema = z.object({
|
|
3
|
+
label: z.string(),
|
|
4
|
+
page: z.string(),
|
|
5
|
+
active: z.boolean(),
|
|
6
|
+
});
|
|
7
|
+
export const ManaboReceivedMailItemSchema = z.object({
|
|
8
|
+
id: z.string(),
|
|
9
|
+
title: z.string(),
|
|
10
|
+
statusIconAlt: z.string().nullable(),
|
|
11
|
+
statusIconSrc: z.string().nullable(),
|
|
12
|
+
mailLink: z.string().nullable(),
|
|
13
|
+
senderName: z.string().nullable(),
|
|
14
|
+
senderImage: z.string().nullable(),
|
|
15
|
+
receivedAt: z.string(),
|
|
16
|
+
});
|
|
17
|
+
export const ManaboReceivedMailSchema = z.object({
|
|
18
|
+
summary: z.string().nullable(),
|
|
19
|
+
pages: z.array(ManaboMailListPageSchema),
|
|
20
|
+
mails: z.array(ManaboReceivedMailItemSchema),
|
|
21
|
+
});
|
|
22
|
+
export const ManaboSentMailItemSchema = z.object({
|
|
23
|
+
id: z.string(),
|
|
24
|
+
title: z.string(),
|
|
25
|
+
statusIconAlt: z.string().nullable(),
|
|
26
|
+
statusIconSrc: z.string().nullable(),
|
|
27
|
+
mailLink: z.string().nullable(),
|
|
28
|
+
recipientName: z.string().nullable(),
|
|
29
|
+
recipientImage: z.string().nullable(),
|
|
30
|
+
sentAt: z.string(),
|
|
31
|
+
unreadCount: z.number(),
|
|
32
|
+
});
|
|
33
|
+
export const ManaboSentMailSchema = z.object({
|
|
34
|
+
summary: z.string().nullable(),
|
|
35
|
+
mails: z.array(ManaboSentMailItemSchema),
|
|
36
|
+
});
|
|
37
|
+
export const ManaboMailViewSchema = z.object({
|
|
38
|
+
title: z.string(),
|
|
39
|
+
replyMailId: z.string().nullable(),
|
|
40
|
+
fromMemberId: z.string().nullable(),
|
|
41
|
+
nextMailId: z.string().nullable(),
|
|
42
|
+
senderName: z.string(),
|
|
43
|
+
senderImage: z.string().nullable(),
|
|
44
|
+
sentAt: z.string(),
|
|
45
|
+
bodyHtml: z.string(),
|
|
46
|
+
});
|
|
47
|
+
export const ManaboMailSendSchema = z.object({
|
|
48
|
+
modalTitle: z.string(),
|
|
49
|
+
form: z.object({
|
|
50
|
+
action: z.string(),
|
|
51
|
+
replyMailId: z.string().nullable(),
|
|
52
|
+
signature: z.string().nullable(),
|
|
53
|
+
csrfToken: z.string(),
|
|
54
|
+
}),
|
|
55
|
+
submitLabel: z.string(),
|
|
56
|
+
});
|
|
57
|
+
export const ManaboMailMemberSchema = z.object({
|
|
58
|
+
members: z.array(z.object({
|
|
59
|
+
memberId: z.string(),
|
|
60
|
+
name: z.string(),
|
|
61
|
+
image: z.string().nullable(),
|
|
62
|
+
})),
|
|
63
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ManaboNewsItemSchema: z.ZodObject<{
|
|
3
|
+
text: z.ZodString;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type ManaboNewsItemDTO = z.infer<typeof ManaboNewsItemSchema>;
|
|
6
|
+
export declare const ManaboNewsSchema: z.ZodObject<{
|
|
7
|
+
message: z.ZodNullable<z.ZodString>;
|
|
8
|
+
items: z.ZodArray<z.ZodObject<{
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ManaboNewsDTO = z.infer<typeof ManaboNewsSchema>;
|
|
13
|
+
//# sourceMappingURL=manaboNews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manaboNews.d.ts","sourceRoot":"","sources":["../../../../src/manabo/types/manaboNews.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ManaboTimetableSlotSchema: z.ZodObject<{
|
|
3
|
+
day: z.ZodString;
|
|
4
|
+
className: z.ZodNullable<z.ZodString>;
|
|
5
|
+
teacher: z.ZodNullable<z.ZodString>;
|
|
6
|
+
href: z.ZodNullable<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type ManaboTimetableSlotDTO = z.infer<typeof ManaboTimetableSlotSchema>;
|
|
9
|
+
export declare const ManaboTimetablePeriodSchema: z.ZodObject<{
|
|
10
|
+
period: z.ZodString;
|
|
11
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
12
|
+
day: z.ZodString;
|
|
13
|
+
className: z.ZodNullable<z.ZodString>;
|
|
14
|
+
teacher: z.ZodNullable<z.ZodString>;
|
|
15
|
+
href: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export type ManaboTimetablePeriodDTO = z.infer<typeof ManaboTimetablePeriodSchema>;
|
|
19
|
+
export declare const ManaboTimetableTermSchema: z.ZodObject<{
|
|
20
|
+
archiveId: z.ZodString;
|
|
21
|
+
label: z.ZodString;
|
|
22
|
+
active: z.ZodBoolean;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type ManaboTimetableTermDTO = z.infer<typeof ManaboTimetableTermSchema>;
|
|
25
|
+
export declare const ManaboTimetableViewModeSchema: z.ZodObject<{
|
|
26
|
+
archiveId: z.ZodString;
|
|
27
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
28
|
+
label: z.ZodString;
|
|
29
|
+
active: z.ZodBoolean;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type ManaboTimetableViewModeDTO = z.infer<typeof ManaboTimetableViewModeSchema>;
|
|
32
|
+
export declare const ManaboTimetableSchema: z.ZodObject<{
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
terms: z.ZodArray<z.ZodObject<{
|
|
35
|
+
archiveId: z.ZodString;
|
|
36
|
+
label: z.ZodString;
|
|
37
|
+
active: z.ZodBoolean;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
viewModes: z.ZodArray<z.ZodObject<{
|
|
40
|
+
archiveId: z.ZodString;
|
|
41
|
+
mode: z.ZodNullable<z.ZodString>;
|
|
42
|
+
label: z.ZodString;
|
|
43
|
+
active: z.ZodBoolean;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
days: z.ZodArray<z.ZodString>;
|
|
46
|
+
periods: z.ZodArray<z.ZodObject<{
|
|
47
|
+
period: z.ZodString;
|
|
48
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
49
|
+
day: z.ZodString;
|
|
50
|
+
className: z.ZodNullable<z.ZodString>;
|
|
51
|
+
teacher: z.ZodNullable<z.ZodString>;
|
|
52
|
+
href: z.ZodNullable<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type ManaboTimetableDTO = z.infer<typeof ManaboTimetableSchema>;
|
|
57
|
+
//# sourceMappingURL=manaboTimetable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manaboTimetable.d.ts","sourceRoot":"","sources":["../../../../src/manabo/types/manaboTimetable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,2BAA2B;;;;;;;;iBAGtC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEnF,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,6BAA6B;;;;;iBAKxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;iBAMhC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ManaboTimetableSlotSchema = z.object({
|
|
3
|
+
day: z.string(),
|
|
4
|
+
className: z.string().nullable(),
|
|
5
|
+
teacher: z.string().nullable(),
|
|
6
|
+
href: z.string().nullable(),
|
|
7
|
+
});
|
|
8
|
+
export const ManaboTimetablePeriodSchema = z.object({
|
|
9
|
+
period: z.string(),
|
|
10
|
+
slots: z.array(ManaboTimetableSlotSchema),
|
|
11
|
+
});
|
|
12
|
+
export const ManaboTimetableTermSchema = z.object({
|
|
13
|
+
archiveId: z.string(),
|
|
14
|
+
label: z.string(),
|
|
15
|
+
active: z.boolean(),
|
|
16
|
+
});
|
|
17
|
+
export const ManaboTimetableViewModeSchema = z.object({
|
|
18
|
+
archiveId: z.string(),
|
|
19
|
+
mode: z.string().nullable(),
|
|
20
|
+
label: z.string(),
|
|
21
|
+
active: z.boolean(),
|
|
22
|
+
});
|
|
23
|
+
export const ManaboTimetableSchema = z.object({
|
|
24
|
+
title: z.string(),
|
|
25
|
+
terms: z.array(ManaboTimetableTermSchema),
|
|
26
|
+
viewModes: z.array(ManaboTimetableViewModeSchema),
|
|
27
|
+
days: z.array(z.string()),
|
|
28
|
+
periods: z.array(ManaboTimetablePeriodSchema),
|
|
29
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@chukyo-umebo/web_parser",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"main": "dist/cjs/index.js",
|
|
8
|
+
"module": "dist/esm/index.js",
|
|
9
|
+
"types": "dist/esm/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"lint": "eslint . --ext .ts",
|
|
16
|
+
"build": "bun run build:cjs && bun run build:esm",
|
|
17
|
+
"publish": "bun run build && npm publish",
|
|
18
|
+
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
19
|
+
"build:esm": "tsc --project tsconfig.esm.json"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@eslint/js": "^9.38.0",
|
|
23
|
+
"@types/bun": "latest",
|
|
24
|
+
"eslint": "^9.38.0",
|
|
25
|
+
"globals": "^16.4.0",
|
|
26
|
+
"jiti": "^2.6.1",
|
|
27
|
+
"typescript-eslint": "^8.46.2"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"typescript": "^5"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"css-select": "^6.0.0",
|
|
34
|
+
"htmlparser2": "^10.0.0",
|
|
35
|
+
"zod": "^4.1.12"
|
|
36
|
+
}
|
|
37
|
+
}
|