@chukyo-umebo/web_parser 0.0.1 → 0.0.2

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.
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseCubicsPtNews = void 0;
3
+ exports.parseAlboPersonal = exports.parseAlboInformation = exports.parseAlboCalendar = void 0;
4
4
  var albo_1 = require("./parser/albo");
5
- Object.defineProperty(exports, "parseCubicsPtNews", { enumerable: true, get: function () { return albo_1.parseCubicsPtNews; } });
5
+ Object.defineProperty(exports, "parseAlboCalendar", { enumerable: true, get: function () { return albo_1.parseAlboCalendar; } });
6
+ Object.defineProperty(exports, "parseAlboInformation", { enumerable: true, get: function () { return albo_1.parseAlboInformation; } });
7
+ Object.defineProperty(exports, "parseAlboPersonal", { enumerable: true, get: function () { return albo_1.parseAlboPersonal; } });
@@ -1,52 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseCubicsPtNews = void 0;
4
- const dom_1 = require("../../common/dom");
3
+ exports.parseAlboPersonal = exports.parseAlboInformation = exports.parseAlboCalendar = void 0;
5
4
  const albo_1 = require("../types/albo");
6
- const utils_1 = require("../../common/utils");
7
- const parseNewsEntry = (row) => {
8
- const categoryImg = (0, dom_1.queryOne)("th.category img", row);
9
- const statusImg = (0, dom_1.queryOne)("td.status img", row);
10
- const headlineAnchor = (0, dom_1.queryOne)("td.headline a", row);
11
- if (!headlineAnchor) {
12
- return null;
5
+ const parseAlboJson = (input, schema) => {
6
+ try {
7
+ return schema.safeParse(JSON.parse(input));
8
+ }
9
+ catch {
10
+ return schema.safeParse(undefined);
13
11
  }
14
- const title = (0, utils_1.normalizeWhitespace)((0, dom_1.getTextContent)(headlineAnchor));
15
- const onclick = (0, dom_1.getAttribute)(headlineAnchor, "onclick") ?? "";
16
- const href = (0, dom_1.getAttribute)(headlineAnchor, "href");
17
- const link = (0, utils_1.extractFirstQuotedValue)(onclick) ?? href ?? null;
18
- return {
19
- category: (0, dom_1.getAttribute)(categoryImg, "alt"),
20
- status: (0, dom_1.getAttribute)(statusImg, "alt") ?? (0, dom_1.getAttribute)(statusImg, "src"),
21
- title,
22
- link,
23
- };
24
- };
25
- const parseCubicsPtNews = (html) => {
26
- const document = (0, dom_1.loadDocument)(html);
27
- const tabs = (0, dom_1.queryAll)("#tab_element li", document).map((tab) => {
28
- const anchor = (0, dom_1.queryOne)("a", tab);
29
- const href = (0, dom_1.getAttribute)(anchor, "href") ?? "";
30
- const targetId = href.replace(/^#/, "");
31
- const title = (0, utils_1.normalizeWhitespace)(anchor ? (0, dom_1.getTextContent)(anchor) : "");
32
- const rows = (0, dom_1.queryAll)(`#${targetId} table.tab-newslist tr`, document)
33
- .map((row) => parseNewsEntry(row))
34
- .filter((entry) => entry !== null);
35
- return {
36
- id: targetId,
37
- title,
38
- entries: rows,
39
- active: (0, dom_1.elementHasClass)(tab, "selected"),
40
- };
41
- });
42
- const selectedTab = tabs.find((tab) => tab.active);
43
- return albo_1.CubicsPtNewsSchema.safeParse({
44
- selectedTabId: selectedTab ? selectedTab.id : null,
45
- tabs: tabs.map((tab) => ({
46
- id: tab.id,
47
- title: tab.title,
48
- entries: tab.entries,
49
- })),
50
- });
51
12
  };
52
- exports.parseCubicsPtNews = parseCubicsPtNews;
13
+ const parseAlboCalendar = (json) => parseAlboJson(json, albo_1.AlboCalendarSchema);
14
+ exports.parseAlboCalendar = parseAlboCalendar;
15
+ const parseAlboInformation = (json) => parseAlboJson(json, albo_1.AlboInformationSchema);
16
+ exports.parseAlboInformation = parseAlboInformation;
17
+ const parseAlboPersonal = (json) => parseAlboJson(json, albo_1.AlboPersonalSchema);
18
+ exports.parseAlboPersonal = parseAlboPersonal;
@@ -1,19 +1,171 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CubicsPtNewsSchema = exports.CubicsPtNewsTabSchema = exports.CubicsPtNewsEntrySchema = void 0;
3
+ exports.AlboPersonalSchema = exports.AlboPersonalUserSchema = exports.AlboPersonalGroupSchema = exports.AlboPersonalAuthProfileSchema = exports.AlboInformationSchema = exports.AlboInformationItemSchema = exports.AlboInformationFileSchema = exports.AlboInformationCategorySchema = exports.AlboCalendarSchema = exports.AlboCalendarItemSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- exports.CubicsPtNewsEntrySchema = zod_1.z.object({
6
- category: zod_1.z.string().nullable(),
7
- status: zod_1.z.string().nullable(),
8
- title: zod_1.z.string(),
9
- link: zod_1.z.string().nullable(),
5
+ exports.AlboCalendarItemSchema = zod_1.z.object({
6
+ calendar_source_uuid: zod_1.z.string(),
7
+ summary: zod_1.z.string(),
8
+ description: zod_1.z.string().nullable(),
9
+ start_at: zod_1.z.number(),
10
+ end_at: zod_1.z.number(),
11
+ created_at: zod_1.z.number(),
12
+ });
13
+ exports.AlboCalendarSchema = zod_1.z.object({
14
+ is_successful: zod_1.z.boolean(),
15
+ code: zod_1.z.number(),
16
+ api_version: zod_1.z.number(),
17
+ gmt: zod_1.z.number(),
18
+ user: zod_1.z.unknown().nullable(),
19
+ result: zod_1.z.object({
20
+ page_total: zod_1.z.number(),
21
+ page_size: zod_1.z.number(),
22
+ item_count: zod_1.z.number(),
23
+ source_name: zod_1.z.string(),
24
+ items: zod_1.z.array(exports.AlboCalendarItemSchema),
25
+ }),
26
+ });
27
+ exports.AlboInformationCategorySchema = zod_1.z.object({
28
+ uuid: zod_1.z.string(),
29
+ name: zod_1.z.string(),
30
+ name_en: zod_1.z.string().nullable(),
31
+ description: zod_1.z.string().nullable(),
32
+ description_en: zod_1.z.string().nullable(),
33
+ order: zod_1.z.number(),
34
+ is_for_guest: zod_1.z.boolean(),
35
+ created_by: zod_1.z.string(),
36
+ updated_by: zod_1.z.string().nullable(),
37
+ created_at: zod_1.z.number(),
38
+ updated_at: zod_1.z.number(),
39
+ });
40
+ exports.AlboInformationFileSchema = zod_1.z.object({
41
+ uuid: zod_1.z.string(),
42
+ file_name: zod_1.z.string(),
43
+ mime_type: zod_1.z.string(),
44
+ is_thumb_exists: zod_1.z.boolean(),
45
+ created_by: zod_1.z.string(),
46
+ created_at: zod_1.z.number(),
10
47
  });
11
- exports.CubicsPtNewsTabSchema = zod_1.z.object({
12
- id: zod_1.z.string(),
48
+ exports.AlboInformationItemSchema = zod_1.z.object({
49
+ uuid: zod_1.z.string(),
50
+ publish_from: zod_1.z.string(),
51
+ publish_from_en: zod_1.z.string().nullable(),
52
+ publish_department_en: zod_1.z.string().nullable(),
53
+ publish_start_at: zod_1.z.number(),
54
+ publish_end_at: zod_1.z.number(),
13
55
  title: zod_1.z.string(),
14
- entries: zod_1.z.array(exports.CubicsPtNewsEntrySchema),
56
+ title_en: zod_1.z.string().nullable(),
57
+ content: zod_1.z.string(),
58
+ content_en: zod_1.z.string().nullable(),
59
+ priority: zod_1.z.number(),
60
+ event_title: zod_1.z.string().nullable(),
61
+ event_title_en: zod_1.z.string().nullable(),
62
+ event_start_at: zod_1.z.number().nullable(),
63
+ event_end_at: zod_1.z.number().nullable(),
64
+ is_send_mail_notification: zod_1.z.number(),
65
+ mail_from: zod_1.z.string().nullable(),
66
+ options: zod_1.z.unknown().nullable(),
67
+ created_by: zod_1.z.string(),
68
+ updated_by: zod_1.z.string().nullable(),
69
+ created_at: zod_1.z.number(),
70
+ is_template: zod_1.z.number(),
71
+ is_public: zod_1.z.boolean(),
72
+ is_read: zod_1.z.boolean(),
73
+ is_pinned: zod_1.z.boolean(),
74
+ is_reacted_good: zod_1.z.boolean(),
75
+ good_count: zod_1.z.number(),
76
+ category: exports.AlboInformationCategorySchema,
77
+ files: zod_1.z.array(exports.AlboInformationFileSchema).nullable(),
78
+ personal_files: zod_1.z.array(exports.AlboInformationFileSchema).nullable(),
79
+ images: zod_1.z.array(exports.AlboInformationFileSchema).nullable(),
80
+ });
81
+ exports.AlboInformationSchema = zod_1.z.object({
82
+ is_successful: zod_1.z.boolean(),
83
+ code: zod_1.z.number(),
84
+ api_version: zod_1.z.number(),
85
+ gmt: zod_1.z.number(),
86
+ user: zod_1.z.unknown().nullable(),
87
+ result: zod_1.z.object({
88
+ page_total: zod_1.z.number(),
89
+ page_size: zod_1.z.number(),
90
+ item_count: zod_1.z.number(),
91
+ items: zod_1.z.array(exports.AlboInformationItemSchema),
92
+ }),
93
+ });
94
+ exports.AlboPersonalAuthProfileSchema = zod_1.z.object({
95
+ uuid: zod_1.z.string(),
96
+ name: zod_1.z.string(),
97
+ created_at: zod_1.z.number(),
98
+ updated_at: zod_1.z.number().nullable(),
99
+ });
100
+ exports.AlboPersonalGroupSchema = zod_1.z.object({
101
+ group_index: zod_1.z.string(),
102
+ next_group_index: zod_1.z.string(),
103
+ orig_group_index: zod_1.z.string(),
104
+ uuid: zod_1.z.string(),
105
+ name: zod_1.z.string(),
106
+ name_en: zod_1.z.string().nullable(),
107
+ is_authority: zod_1.z.boolean(),
108
+ order: zod_1.z.number(),
109
+ is_active: zod_1.z.number(),
110
+ is_shown_in_signup: zod_1.z.number(),
111
+ created_at: zod_1.z.number(),
112
+ updated_at: zod_1.z.number(),
113
+ full_name: zod_1.z.string(),
114
+ display_name: zod_1.z.string(),
115
+ display_name_en: zod_1.z.string(),
116
+ });
117
+ exports.AlboPersonalUserSchema = zod_1.z.object({
118
+ uuid: zod_1.z.string(),
119
+ personal_id: zod_1.z.string(),
120
+ name: zod_1.z.string(),
121
+ name_kana: zod_1.z.string(),
122
+ name_alphabet: zod_1.z.string(),
123
+ email: zod_1.z.string(),
124
+ locale: zod_1.z.string(),
125
+ option_1: zod_1.z.string().nullable(),
126
+ option_2: zod_1.z.string().nullable(),
127
+ option_3: zod_1.z.string().nullable(),
128
+ option_4: zod_1.z.string().nullable(),
129
+ option_5: zod_1.z.string().nullable(),
130
+ option_6: zod_1.z.string().nullable(),
131
+ option_7: zod_1.z.string().nullable(),
132
+ option_8: zod_1.z.string().nullable(),
133
+ option_9: zod_1.z.string().nullable(),
134
+ option_10: zod_1.z.string().nullable(),
135
+ approval_status: zod_1.z.string().nullable(),
136
+ is_user_enabled: zod_1.z.boolean(),
137
+ is_login_enabled: zod_1.z.boolean(),
138
+ is_guest: zod_1.z.boolean(),
139
+ start_at: zod_1.z.number(),
140
+ end_at: zod_1.z.number(),
141
+ memo: zod_1.z.string().nullable(),
142
+ admin_memo: zod_1.z.string().nullable(),
143
+ is_not_delete_csv: zod_1.z.boolean(),
144
+ created_at: zod_1.z.number(),
145
+ updated_at: zod_1.z.number(),
146
+ user_id: zod_1.z.string(),
147
+ auth_profiles: exports.AlboPersonalAuthProfileSchema,
148
+ groups: zod_1.z.array(exports.AlboPersonalGroupSchema),
149
+ has_answer_force_questionnaire: zod_1.z.boolean(),
150
+ has_force_questionnaire: zod_1.z.boolean(),
151
+ sub_email_addresses: zod_1.z.array(zod_1.z.string()),
152
+ display_group_names: zod_1.z.array(zod_1.z.string()),
153
+ display_group_names_en: zod_1.z.array(zod_1.z.string()),
154
+ portrait: zod_1.z.string().nullable(),
155
+ permission: zod_1.z.string(),
156
+ permission_unit: zod_1.z.array(zod_1.z.unknown()),
157
+ has_local_auth: zod_1.z.boolean(),
158
+ affiliated_groups: zod_1.z.unknown().nullable(),
15
159
  });
16
- exports.CubicsPtNewsSchema = zod_1.z.object({
17
- selectedTabId: zod_1.z.string().nullable(),
18
- tabs: zod_1.z.array(exports.CubicsPtNewsTabSchema),
160
+ exports.AlboPersonalSchema = zod_1.z.object({
161
+ is_successful: zod_1.z.boolean(),
162
+ code: zod_1.z.number(),
163
+ api_version: zod_1.z.number(),
164
+ gmt: zod_1.z.number(),
165
+ user: exports.AlboPersonalUserSchema,
166
+ result: zod_1.z.object({
167
+ login: zod_1.z.string(),
168
+ message: zod_1.z.string(),
169
+ login_message: zod_1.z.string().nullable(),
170
+ }),
19
171
  });
@@ -1,3 +1,3 @@
1
- export { parseCubicsPtNews } from "./parser/albo";
2
- export { type CubicsPtNewsDTO, type CubicsPtNewsTabDTO, type CubicsPtNewsEntryDTO } from "./types/albo";
1
+ export { parseAlboCalendar, parseAlboInformation, parseAlboPersonal } from "./parser/albo";
2
+ export { type AlboCalendarDTO, type AlboCalendarItemDTO, type AlboInformationDTO, type AlboInformationCategoryDTO, type AlboInformationFileDTO, type AlboInformationItemDTO, type AlboPersonalDTO, type AlboPersonalAuthProfileDTO, type AlboPersonalGroupDTO, type AlboPersonalUserDTO, } from "./types/albo";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/albo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/albo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GAC3B,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- export { parseCubicsPtNews } from "./parser/albo";
1
+ export { parseAlboCalendar, parseAlboInformation, parseAlboPersonal } from "./parser/albo";
@@ -1,4 +1,6 @@
1
- import { type CubicsPtNewsDTO } from "../types/albo";
2
1
  import type { ZodSafeParseResult } from "zod";
3
- export declare const parseCubicsPtNews: (html: string) => ZodSafeParseResult<CubicsPtNewsDTO>;
2
+ import { type AlboCalendarDTO, type AlboInformationDTO, type AlboPersonalDTO } from "../types/albo";
3
+ export declare const parseAlboCalendar: (json: string) => ZodSafeParseResult<AlboCalendarDTO>;
4
+ export declare const parseAlboInformation: (json: string) => ZodSafeParseResult<AlboInformationDTO>;
5
+ export declare const parseAlboPersonal: (json: string) => ZodSafeParseResult<AlboPersonalDTO>;
4
6
  //# sourceMappingURL=albo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"albo.d.ts","sourceRoot":"","sources":["../../../../src/albo/parser/albo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiD,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,KAAK,CAAC;AAyB9C,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,kBAAkB,CAAC,eAAe,CA+BlF,CAAC"}
1
+ {"version":3,"file":"albo.d.ts","sourceRoot":"","sources":["../../../../src/albo/parser/albo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,KAAK,CAAC;AAC9C,OAAO,EAEH,KAAK,eAAe,EAEpB,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EACvB,MAAM,eAAe,CAAC;AAUvB,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,kBAAkB,CAAC,eAAe,CAA4C,CAAC;AAEhI,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,kBAAkB,CAAC,kBAAkB,CAA+C,CAAC;AAEzI,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,kBAAkB,CAAC,eAAe,CAA4C,CAAC"}
@@ -1,48 +1,12 @@
1
- import { loadDocument, queryAll, queryOne, getAttribute, getTextContent, elementHasClass } from "../../common/dom";
2
- import { CubicsPtNewsSchema } from "../types/albo";
3
- import { normalizeWhitespace, extractFirstQuotedValue } from "../../common/utils";
4
- const parseNewsEntry = (row) => {
5
- const categoryImg = queryOne("th.category img", row);
6
- const statusImg = queryOne("td.status img", row);
7
- const headlineAnchor = queryOne("td.headline a", row);
8
- if (!headlineAnchor) {
9
- return null;
1
+ import { AlboCalendarSchema, AlboInformationSchema, AlboPersonalSchema, } from "../types/albo";
2
+ const parseAlboJson = (input, schema) => {
3
+ try {
4
+ return schema.safeParse(JSON.parse(input));
5
+ }
6
+ catch {
7
+ return schema.safeParse(undefined);
10
8
  }
11
- const title = normalizeWhitespace(getTextContent(headlineAnchor));
12
- const onclick = getAttribute(headlineAnchor, "onclick") ?? "";
13
- const href = getAttribute(headlineAnchor, "href");
14
- const link = extractFirstQuotedValue(onclick) ?? href ?? null;
15
- return {
16
- category: getAttribute(categoryImg, "alt"),
17
- status: getAttribute(statusImg, "alt") ?? getAttribute(statusImg, "src"),
18
- title,
19
- link,
20
- };
21
- };
22
- export const parseCubicsPtNews = (html) => {
23
- const document = loadDocument(html);
24
- const tabs = queryAll("#tab_element li", document).map((tab) => {
25
- const anchor = queryOne("a", tab);
26
- const href = getAttribute(anchor, "href") ?? "";
27
- const targetId = href.replace(/^#/, "");
28
- const title = normalizeWhitespace(anchor ? getTextContent(anchor) : "");
29
- const rows = queryAll(`#${targetId} table.tab-newslist tr`, document)
30
- .map((row) => parseNewsEntry(row))
31
- .filter((entry) => entry !== null);
32
- return {
33
- id: targetId,
34
- title,
35
- entries: rows,
36
- active: elementHasClass(tab, "selected"),
37
- };
38
- });
39
- const selectedTab = tabs.find((tab) => tab.active);
40
- return CubicsPtNewsSchema.safeParse({
41
- selectedTabId: selectedTab ? selectedTab.id : null,
42
- tabs: tabs.map((tab) => ({
43
- id: tab.id,
44
- title: tab.title,
45
- entries: tab.entries,
46
- })),
47
- });
48
9
  };
10
+ export const parseAlboCalendar = (json) => parseAlboJson(json, AlboCalendarSchema);
11
+ export const parseAlboInformation = (json) => parseAlboJson(json, AlboInformationSchema);
12
+ export const parseAlboPersonal = (json) => parseAlboJson(json, AlboPersonalSchema);
@@ -1,34 +1,368 @@
1
1
  import { z } from "zod";
2
- export declare const CubicsPtNewsEntrySchema: z.ZodObject<{
3
- category: z.ZodNullable<z.ZodString>;
4
- status: z.ZodNullable<z.ZodString>;
5
- title: z.ZodString;
6
- link: z.ZodNullable<z.ZodString>;
2
+ export declare const AlboCalendarItemSchema: z.ZodObject<{
3
+ calendar_source_uuid: z.ZodString;
4
+ summary: z.ZodString;
5
+ description: z.ZodNullable<z.ZodString>;
6
+ start_at: z.ZodNumber;
7
+ end_at: z.ZodNumber;
8
+ created_at: z.ZodNumber;
9
+ }, z.core.$strip>;
10
+ export type AlboCalendarItemDTO = z.infer<typeof AlboCalendarItemSchema>;
11
+ export declare const AlboCalendarSchema: z.ZodObject<{
12
+ is_successful: z.ZodBoolean;
13
+ code: z.ZodNumber;
14
+ api_version: z.ZodNumber;
15
+ gmt: z.ZodNumber;
16
+ user: z.ZodNullable<z.ZodUnknown>;
17
+ result: z.ZodObject<{
18
+ page_total: z.ZodNumber;
19
+ page_size: z.ZodNumber;
20
+ item_count: z.ZodNumber;
21
+ source_name: z.ZodString;
22
+ items: z.ZodArray<z.ZodObject<{
23
+ calendar_source_uuid: z.ZodString;
24
+ summary: z.ZodString;
25
+ description: z.ZodNullable<z.ZodString>;
26
+ start_at: z.ZodNumber;
27
+ end_at: z.ZodNumber;
28
+ created_at: z.ZodNumber;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strip>;
7
31
  }, z.core.$strip>;
8
- export type CubicsPtNewsEntryDTO = z.infer<typeof CubicsPtNewsEntrySchema>;
9
- export declare const CubicsPtNewsTabSchema: z.ZodObject<{
10
- id: z.ZodString;
32
+ export type AlboCalendarDTO = z.infer<typeof AlboCalendarSchema>;
33
+ export declare const AlboInformationCategorySchema: z.ZodObject<{
34
+ uuid: z.ZodString;
35
+ name: z.ZodString;
36
+ name_en: z.ZodNullable<z.ZodString>;
37
+ description: z.ZodNullable<z.ZodString>;
38
+ description_en: z.ZodNullable<z.ZodString>;
39
+ order: z.ZodNumber;
40
+ is_for_guest: z.ZodBoolean;
41
+ created_by: z.ZodString;
42
+ updated_by: z.ZodNullable<z.ZodString>;
43
+ created_at: z.ZodNumber;
44
+ updated_at: z.ZodNumber;
45
+ }, z.core.$strip>;
46
+ export type AlboInformationCategoryDTO = z.infer<typeof AlboInformationCategorySchema>;
47
+ export declare const AlboInformationFileSchema: z.ZodObject<{
48
+ uuid: z.ZodString;
49
+ file_name: z.ZodString;
50
+ mime_type: z.ZodString;
51
+ is_thumb_exists: z.ZodBoolean;
52
+ created_by: z.ZodString;
53
+ created_at: z.ZodNumber;
54
+ }, z.core.$strip>;
55
+ export type AlboInformationFileDTO = z.infer<typeof AlboInformationFileSchema>;
56
+ export declare const AlboInformationItemSchema: z.ZodObject<{
57
+ uuid: z.ZodString;
58
+ publish_from: z.ZodString;
59
+ publish_from_en: z.ZodNullable<z.ZodString>;
60
+ publish_department_en: z.ZodNullable<z.ZodString>;
61
+ publish_start_at: z.ZodNumber;
62
+ publish_end_at: z.ZodNumber;
11
63
  title: z.ZodString;
12
- entries: z.ZodArray<z.ZodObject<{
13
- category: z.ZodNullable<z.ZodString>;
14
- status: z.ZodNullable<z.ZodString>;
15
- title: z.ZodString;
16
- link: z.ZodNullable<z.ZodString>;
17
- }, z.core.$strip>>;
64
+ title_en: z.ZodNullable<z.ZodString>;
65
+ content: z.ZodString;
66
+ content_en: z.ZodNullable<z.ZodString>;
67
+ priority: z.ZodNumber;
68
+ event_title: z.ZodNullable<z.ZodString>;
69
+ event_title_en: z.ZodNullable<z.ZodString>;
70
+ event_start_at: z.ZodNullable<z.ZodNumber>;
71
+ event_end_at: z.ZodNullable<z.ZodNumber>;
72
+ is_send_mail_notification: z.ZodNumber;
73
+ mail_from: z.ZodNullable<z.ZodString>;
74
+ options: z.ZodNullable<z.ZodUnknown>;
75
+ created_by: z.ZodString;
76
+ updated_by: z.ZodNullable<z.ZodString>;
77
+ created_at: z.ZodNumber;
78
+ is_template: z.ZodNumber;
79
+ is_public: z.ZodBoolean;
80
+ is_read: z.ZodBoolean;
81
+ is_pinned: z.ZodBoolean;
82
+ is_reacted_good: z.ZodBoolean;
83
+ good_count: z.ZodNumber;
84
+ category: z.ZodObject<{
85
+ uuid: z.ZodString;
86
+ name: z.ZodString;
87
+ name_en: z.ZodNullable<z.ZodString>;
88
+ description: z.ZodNullable<z.ZodString>;
89
+ description_en: z.ZodNullable<z.ZodString>;
90
+ order: z.ZodNumber;
91
+ is_for_guest: z.ZodBoolean;
92
+ created_by: z.ZodString;
93
+ updated_by: z.ZodNullable<z.ZodString>;
94
+ created_at: z.ZodNumber;
95
+ updated_at: z.ZodNumber;
96
+ }, z.core.$strip>;
97
+ files: z.ZodNullable<z.ZodArray<z.ZodObject<{
98
+ uuid: z.ZodString;
99
+ file_name: z.ZodString;
100
+ mime_type: z.ZodString;
101
+ is_thumb_exists: z.ZodBoolean;
102
+ created_by: z.ZodString;
103
+ created_at: z.ZodNumber;
104
+ }, z.core.$strip>>>;
105
+ personal_files: z.ZodNullable<z.ZodArray<z.ZodObject<{
106
+ uuid: z.ZodString;
107
+ file_name: z.ZodString;
108
+ mime_type: z.ZodString;
109
+ is_thumb_exists: z.ZodBoolean;
110
+ created_by: z.ZodString;
111
+ created_at: z.ZodNumber;
112
+ }, z.core.$strip>>>;
113
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
114
+ uuid: z.ZodString;
115
+ file_name: z.ZodString;
116
+ mime_type: z.ZodString;
117
+ is_thumb_exists: z.ZodBoolean;
118
+ created_by: z.ZodString;
119
+ created_at: z.ZodNumber;
120
+ }, z.core.$strip>>>;
18
121
  }, z.core.$strip>;
19
- export type CubicsPtNewsTabDTO = z.infer<typeof CubicsPtNewsTabSchema>;
20
- export declare const CubicsPtNewsSchema: z.ZodObject<{
21
- selectedTabId: z.ZodNullable<z.ZodString>;
22
- tabs: z.ZodArray<z.ZodObject<{
23
- id: z.ZodString;
24
- title: z.ZodString;
25
- entries: z.ZodArray<z.ZodObject<{
26
- category: z.ZodNullable<z.ZodString>;
27
- status: z.ZodNullable<z.ZodString>;
122
+ export type AlboInformationItemDTO = z.infer<typeof AlboInformationItemSchema>;
123
+ export declare const AlboInformationSchema: z.ZodObject<{
124
+ is_successful: z.ZodBoolean;
125
+ code: z.ZodNumber;
126
+ api_version: z.ZodNumber;
127
+ gmt: z.ZodNumber;
128
+ user: z.ZodNullable<z.ZodUnknown>;
129
+ result: z.ZodObject<{
130
+ page_total: z.ZodNumber;
131
+ page_size: z.ZodNumber;
132
+ item_count: z.ZodNumber;
133
+ items: z.ZodArray<z.ZodObject<{
134
+ uuid: z.ZodString;
135
+ publish_from: z.ZodString;
136
+ publish_from_en: z.ZodNullable<z.ZodString>;
137
+ publish_department_en: z.ZodNullable<z.ZodString>;
138
+ publish_start_at: z.ZodNumber;
139
+ publish_end_at: z.ZodNumber;
28
140
  title: z.ZodString;
29
- link: z.ZodNullable<z.ZodString>;
141
+ title_en: z.ZodNullable<z.ZodString>;
142
+ content: z.ZodString;
143
+ content_en: z.ZodNullable<z.ZodString>;
144
+ priority: z.ZodNumber;
145
+ event_title: z.ZodNullable<z.ZodString>;
146
+ event_title_en: z.ZodNullable<z.ZodString>;
147
+ event_start_at: z.ZodNullable<z.ZodNumber>;
148
+ event_end_at: z.ZodNullable<z.ZodNumber>;
149
+ is_send_mail_notification: z.ZodNumber;
150
+ mail_from: z.ZodNullable<z.ZodString>;
151
+ options: z.ZodNullable<z.ZodUnknown>;
152
+ created_by: z.ZodString;
153
+ updated_by: z.ZodNullable<z.ZodString>;
154
+ created_at: z.ZodNumber;
155
+ is_template: z.ZodNumber;
156
+ is_public: z.ZodBoolean;
157
+ is_read: z.ZodBoolean;
158
+ is_pinned: z.ZodBoolean;
159
+ is_reacted_good: z.ZodBoolean;
160
+ good_count: z.ZodNumber;
161
+ category: z.ZodObject<{
162
+ uuid: z.ZodString;
163
+ name: z.ZodString;
164
+ name_en: z.ZodNullable<z.ZodString>;
165
+ description: z.ZodNullable<z.ZodString>;
166
+ description_en: z.ZodNullable<z.ZodString>;
167
+ order: z.ZodNumber;
168
+ is_for_guest: z.ZodBoolean;
169
+ created_by: z.ZodString;
170
+ updated_by: z.ZodNullable<z.ZodString>;
171
+ created_at: z.ZodNumber;
172
+ updated_at: z.ZodNumber;
173
+ }, z.core.$strip>;
174
+ files: z.ZodNullable<z.ZodArray<z.ZodObject<{
175
+ uuid: z.ZodString;
176
+ file_name: z.ZodString;
177
+ mime_type: z.ZodString;
178
+ is_thumb_exists: z.ZodBoolean;
179
+ created_by: z.ZodString;
180
+ created_at: z.ZodNumber;
181
+ }, z.core.$strip>>>;
182
+ personal_files: z.ZodNullable<z.ZodArray<z.ZodObject<{
183
+ uuid: z.ZodString;
184
+ file_name: z.ZodString;
185
+ mime_type: z.ZodString;
186
+ is_thumb_exists: z.ZodBoolean;
187
+ created_by: z.ZodString;
188
+ created_at: z.ZodNumber;
189
+ }, z.core.$strip>>>;
190
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
191
+ uuid: z.ZodString;
192
+ file_name: z.ZodString;
193
+ mime_type: z.ZodString;
194
+ is_thumb_exists: z.ZodBoolean;
195
+ created_by: z.ZodString;
196
+ created_at: z.ZodNumber;
197
+ }, z.core.$strip>>>;
30
198
  }, z.core.$strip>>;
199
+ }, z.core.$strip>;
200
+ }, z.core.$strip>;
201
+ export type AlboInformationDTO = z.infer<typeof AlboInformationSchema>;
202
+ export declare const AlboPersonalAuthProfileSchema: z.ZodObject<{
203
+ uuid: z.ZodString;
204
+ name: z.ZodString;
205
+ created_at: z.ZodNumber;
206
+ updated_at: z.ZodNullable<z.ZodNumber>;
207
+ }, z.core.$strip>;
208
+ export type AlboPersonalAuthProfileDTO = z.infer<typeof AlboPersonalAuthProfileSchema>;
209
+ export declare const AlboPersonalGroupSchema: z.ZodObject<{
210
+ group_index: z.ZodString;
211
+ next_group_index: z.ZodString;
212
+ orig_group_index: z.ZodString;
213
+ uuid: z.ZodString;
214
+ name: z.ZodString;
215
+ name_en: z.ZodNullable<z.ZodString>;
216
+ is_authority: z.ZodBoolean;
217
+ order: z.ZodNumber;
218
+ is_active: z.ZodNumber;
219
+ is_shown_in_signup: z.ZodNumber;
220
+ created_at: z.ZodNumber;
221
+ updated_at: z.ZodNumber;
222
+ full_name: z.ZodString;
223
+ display_name: z.ZodString;
224
+ display_name_en: z.ZodString;
225
+ }, z.core.$strip>;
226
+ export type AlboPersonalGroupDTO = z.infer<typeof AlboPersonalGroupSchema>;
227
+ export declare const AlboPersonalUserSchema: z.ZodObject<{
228
+ uuid: z.ZodString;
229
+ personal_id: z.ZodString;
230
+ name: z.ZodString;
231
+ name_kana: z.ZodString;
232
+ name_alphabet: z.ZodString;
233
+ email: z.ZodString;
234
+ locale: z.ZodString;
235
+ option_1: z.ZodNullable<z.ZodString>;
236
+ option_2: z.ZodNullable<z.ZodString>;
237
+ option_3: z.ZodNullable<z.ZodString>;
238
+ option_4: z.ZodNullable<z.ZodString>;
239
+ option_5: z.ZodNullable<z.ZodString>;
240
+ option_6: z.ZodNullable<z.ZodString>;
241
+ option_7: z.ZodNullable<z.ZodString>;
242
+ option_8: z.ZodNullable<z.ZodString>;
243
+ option_9: z.ZodNullable<z.ZodString>;
244
+ option_10: z.ZodNullable<z.ZodString>;
245
+ approval_status: z.ZodNullable<z.ZodString>;
246
+ is_user_enabled: z.ZodBoolean;
247
+ is_login_enabled: z.ZodBoolean;
248
+ is_guest: z.ZodBoolean;
249
+ start_at: z.ZodNumber;
250
+ end_at: z.ZodNumber;
251
+ memo: z.ZodNullable<z.ZodString>;
252
+ admin_memo: z.ZodNullable<z.ZodString>;
253
+ is_not_delete_csv: z.ZodBoolean;
254
+ created_at: z.ZodNumber;
255
+ updated_at: z.ZodNumber;
256
+ user_id: z.ZodString;
257
+ auth_profiles: z.ZodObject<{
258
+ uuid: z.ZodString;
259
+ name: z.ZodString;
260
+ created_at: z.ZodNumber;
261
+ updated_at: z.ZodNullable<z.ZodNumber>;
262
+ }, z.core.$strip>;
263
+ groups: z.ZodArray<z.ZodObject<{
264
+ group_index: z.ZodString;
265
+ next_group_index: z.ZodString;
266
+ orig_group_index: z.ZodString;
267
+ uuid: z.ZodString;
268
+ name: z.ZodString;
269
+ name_en: z.ZodNullable<z.ZodString>;
270
+ is_authority: z.ZodBoolean;
271
+ order: z.ZodNumber;
272
+ is_active: z.ZodNumber;
273
+ is_shown_in_signup: z.ZodNumber;
274
+ created_at: z.ZodNumber;
275
+ updated_at: z.ZodNumber;
276
+ full_name: z.ZodString;
277
+ display_name: z.ZodString;
278
+ display_name_en: z.ZodString;
31
279
  }, z.core.$strip>>;
280
+ has_answer_force_questionnaire: z.ZodBoolean;
281
+ has_force_questionnaire: z.ZodBoolean;
282
+ sub_email_addresses: z.ZodArray<z.ZodString>;
283
+ display_group_names: z.ZodArray<z.ZodString>;
284
+ display_group_names_en: z.ZodArray<z.ZodString>;
285
+ portrait: z.ZodNullable<z.ZodString>;
286
+ permission: z.ZodString;
287
+ permission_unit: z.ZodArray<z.ZodUnknown>;
288
+ has_local_auth: z.ZodBoolean;
289
+ affiliated_groups: z.ZodNullable<z.ZodUnknown>;
290
+ }, z.core.$strip>;
291
+ export type AlboPersonalUserDTO = z.infer<typeof AlboPersonalUserSchema>;
292
+ export declare const AlboPersonalSchema: z.ZodObject<{
293
+ is_successful: z.ZodBoolean;
294
+ code: z.ZodNumber;
295
+ api_version: z.ZodNumber;
296
+ gmt: z.ZodNumber;
297
+ user: z.ZodObject<{
298
+ uuid: z.ZodString;
299
+ personal_id: z.ZodString;
300
+ name: z.ZodString;
301
+ name_kana: z.ZodString;
302
+ name_alphabet: z.ZodString;
303
+ email: z.ZodString;
304
+ locale: z.ZodString;
305
+ option_1: z.ZodNullable<z.ZodString>;
306
+ option_2: z.ZodNullable<z.ZodString>;
307
+ option_3: z.ZodNullable<z.ZodString>;
308
+ option_4: z.ZodNullable<z.ZodString>;
309
+ option_5: z.ZodNullable<z.ZodString>;
310
+ option_6: z.ZodNullable<z.ZodString>;
311
+ option_7: z.ZodNullable<z.ZodString>;
312
+ option_8: z.ZodNullable<z.ZodString>;
313
+ option_9: z.ZodNullable<z.ZodString>;
314
+ option_10: z.ZodNullable<z.ZodString>;
315
+ approval_status: z.ZodNullable<z.ZodString>;
316
+ is_user_enabled: z.ZodBoolean;
317
+ is_login_enabled: z.ZodBoolean;
318
+ is_guest: z.ZodBoolean;
319
+ start_at: z.ZodNumber;
320
+ end_at: z.ZodNumber;
321
+ memo: z.ZodNullable<z.ZodString>;
322
+ admin_memo: z.ZodNullable<z.ZodString>;
323
+ is_not_delete_csv: z.ZodBoolean;
324
+ created_at: z.ZodNumber;
325
+ updated_at: z.ZodNumber;
326
+ user_id: z.ZodString;
327
+ auth_profiles: z.ZodObject<{
328
+ uuid: z.ZodString;
329
+ name: z.ZodString;
330
+ created_at: z.ZodNumber;
331
+ updated_at: z.ZodNullable<z.ZodNumber>;
332
+ }, z.core.$strip>;
333
+ groups: z.ZodArray<z.ZodObject<{
334
+ group_index: z.ZodString;
335
+ next_group_index: z.ZodString;
336
+ orig_group_index: z.ZodString;
337
+ uuid: z.ZodString;
338
+ name: z.ZodString;
339
+ name_en: z.ZodNullable<z.ZodString>;
340
+ is_authority: z.ZodBoolean;
341
+ order: z.ZodNumber;
342
+ is_active: z.ZodNumber;
343
+ is_shown_in_signup: z.ZodNumber;
344
+ created_at: z.ZodNumber;
345
+ updated_at: z.ZodNumber;
346
+ full_name: z.ZodString;
347
+ display_name: z.ZodString;
348
+ display_name_en: z.ZodString;
349
+ }, z.core.$strip>>;
350
+ has_answer_force_questionnaire: z.ZodBoolean;
351
+ has_force_questionnaire: z.ZodBoolean;
352
+ sub_email_addresses: z.ZodArray<z.ZodString>;
353
+ display_group_names: z.ZodArray<z.ZodString>;
354
+ display_group_names_en: z.ZodArray<z.ZodString>;
355
+ portrait: z.ZodNullable<z.ZodString>;
356
+ permission: z.ZodString;
357
+ permission_unit: z.ZodArray<z.ZodUnknown>;
358
+ has_local_auth: z.ZodBoolean;
359
+ affiliated_groups: z.ZodNullable<z.ZodUnknown>;
360
+ }, z.core.$strip>;
361
+ result: z.ZodObject<{
362
+ login: z.ZodString;
363
+ message: z.ZodString;
364
+ login_message: z.ZodNullable<z.ZodString>;
365
+ }, z.core.$strip>;
32
366
  }, z.core.$strip>;
33
- export type CubicsPtNewsDTO = z.infer<typeof CubicsPtNewsSchema>;
367
+ export type AlboPersonalDTO = z.infer<typeof AlboPersonalSchema>;
34
368
  //# sourceMappingURL=albo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"albo.d.ts","sourceRoot":"","sources":["../../../../src/albo/types/albo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,qBAAqB;;;;;;;;;iBAIhC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAG7B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"albo.d.ts","sourceRoot":"","sources":["../../../../src/albo/types/albo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;iBAOjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;iBAa7B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;iBAYxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,yBAAyB;;;;;;;iBAOpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgCpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYhC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,6BAA6B;;;;;iBAKxC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEvF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;iBAgBlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0CjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW7B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1,16 +1,168 @@
1
1
  import { z } from "zod";
2
- export const CubicsPtNewsEntrySchema = z.object({
3
- category: z.string().nullable(),
4
- status: z.string().nullable(),
5
- title: z.string(),
6
- link: z.string().nullable(),
2
+ export const AlboCalendarItemSchema = z.object({
3
+ calendar_source_uuid: z.string(),
4
+ summary: z.string(),
5
+ description: z.string().nullable(),
6
+ start_at: z.number(),
7
+ end_at: z.number(),
8
+ created_at: z.number(),
9
+ });
10
+ export const AlboCalendarSchema = z.object({
11
+ is_successful: z.boolean(),
12
+ code: z.number(),
13
+ api_version: z.number(),
14
+ gmt: z.number(),
15
+ user: z.unknown().nullable(),
16
+ result: z.object({
17
+ page_total: z.number(),
18
+ page_size: z.number(),
19
+ item_count: z.number(),
20
+ source_name: z.string(),
21
+ items: z.array(AlboCalendarItemSchema),
22
+ }),
23
+ });
24
+ export const AlboInformationCategorySchema = z.object({
25
+ uuid: z.string(),
26
+ name: z.string(),
27
+ name_en: z.string().nullable(),
28
+ description: z.string().nullable(),
29
+ description_en: z.string().nullable(),
30
+ order: z.number(),
31
+ is_for_guest: z.boolean(),
32
+ created_by: z.string(),
33
+ updated_by: z.string().nullable(),
34
+ created_at: z.number(),
35
+ updated_at: z.number(),
36
+ });
37
+ export const AlboInformationFileSchema = z.object({
38
+ uuid: z.string(),
39
+ file_name: z.string(),
40
+ mime_type: z.string(),
41
+ is_thumb_exists: z.boolean(),
42
+ created_by: z.string(),
43
+ created_at: z.number(),
7
44
  });
8
- export const CubicsPtNewsTabSchema = z.object({
9
- id: z.string(),
45
+ export const AlboInformationItemSchema = z.object({
46
+ uuid: z.string(),
47
+ publish_from: z.string(),
48
+ publish_from_en: z.string().nullable(),
49
+ publish_department_en: z.string().nullable(),
50
+ publish_start_at: z.number(),
51
+ publish_end_at: z.number(),
10
52
  title: z.string(),
11
- entries: z.array(CubicsPtNewsEntrySchema),
53
+ title_en: z.string().nullable(),
54
+ content: z.string(),
55
+ content_en: z.string().nullable(),
56
+ priority: z.number(),
57
+ event_title: z.string().nullable(),
58
+ event_title_en: z.string().nullable(),
59
+ event_start_at: z.number().nullable(),
60
+ event_end_at: z.number().nullable(),
61
+ is_send_mail_notification: z.number(),
62
+ mail_from: z.string().nullable(),
63
+ options: z.unknown().nullable(),
64
+ created_by: z.string(),
65
+ updated_by: z.string().nullable(),
66
+ created_at: z.number(),
67
+ is_template: z.number(),
68
+ is_public: z.boolean(),
69
+ is_read: z.boolean(),
70
+ is_pinned: z.boolean(),
71
+ is_reacted_good: z.boolean(),
72
+ good_count: z.number(),
73
+ category: AlboInformationCategorySchema,
74
+ files: z.array(AlboInformationFileSchema).nullable(),
75
+ personal_files: z.array(AlboInformationFileSchema).nullable(),
76
+ images: z.array(AlboInformationFileSchema).nullable(),
77
+ });
78
+ export const AlboInformationSchema = z.object({
79
+ is_successful: z.boolean(),
80
+ code: z.number(),
81
+ api_version: z.number(),
82
+ gmt: z.number(),
83
+ user: z.unknown().nullable(),
84
+ result: z.object({
85
+ page_total: z.number(),
86
+ page_size: z.number(),
87
+ item_count: z.number(),
88
+ items: z.array(AlboInformationItemSchema),
89
+ }),
90
+ });
91
+ export const AlboPersonalAuthProfileSchema = z.object({
92
+ uuid: z.string(),
93
+ name: z.string(),
94
+ created_at: z.number(),
95
+ updated_at: z.number().nullable(),
96
+ });
97
+ export const AlboPersonalGroupSchema = z.object({
98
+ group_index: z.string(),
99
+ next_group_index: z.string(),
100
+ orig_group_index: z.string(),
101
+ uuid: z.string(),
102
+ name: z.string(),
103
+ name_en: z.string().nullable(),
104
+ is_authority: z.boolean(),
105
+ order: z.number(),
106
+ is_active: z.number(),
107
+ is_shown_in_signup: z.number(),
108
+ created_at: z.number(),
109
+ updated_at: z.number(),
110
+ full_name: z.string(),
111
+ display_name: z.string(),
112
+ display_name_en: z.string(),
113
+ });
114
+ export const AlboPersonalUserSchema = z.object({
115
+ uuid: z.string(),
116
+ personal_id: z.string(),
117
+ name: z.string(),
118
+ name_kana: z.string(),
119
+ name_alphabet: z.string(),
120
+ email: z.string(),
121
+ locale: z.string(),
122
+ option_1: z.string().nullable(),
123
+ option_2: z.string().nullable(),
124
+ option_3: z.string().nullable(),
125
+ option_4: z.string().nullable(),
126
+ option_5: z.string().nullable(),
127
+ option_6: z.string().nullable(),
128
+ option_7: z.string().nullable(),
129
+ option_8: z.string().nullable(),
130
+ option_9: z.string().nullable(),
131
+ option_10: z.string().nullable(),
132
+ approval_status: z.string().nullable(),
133
+ is_user_enabled: z.boolean(),
134
+ is_login_enabled: z.boolean(),
135
+ is_guest: z.boolean(),
136
+ start_at: z.number(),
137
+ end_at: z.number(),
138
+ memo: z.string().nullable(),
139
+ admin_memo: z.string().nullable(),
140
+ is_not_delete_csv: z.boolean(),
141
+ created_at: z.number(),
142
+ updated_at: z.number(),
143
+ user_id: z.string(),
144
+ auth_profiles: AlboPersonalAuthProfileSchema,
145
+ groups: z.array(AlboPersonalGroupSchema),
146
+ has_answer_force_questionnaire: z.boolean(),
147
+ has_force_questionnaire: z.boolean(),
148
+ sub_email_addresses: z.array(z.string()),
149
+ display_group_names: z.array(z.string()),
150
+ display_group_names_en: z.array(z.string()),
151
+ portrait: z.string().nullable(),
152
+ permission: z.string(),
153
+ permission_unit: z.array(z.unknown()),
154
+ has_local_auth: z.boolean(),
155
+ affiliated_groups: z.unknown().nullable(),
12
156
  });
13
- export const CubicsPtNewsSchema = z.object({
14
- selectedTabId: z.string().nullable(),
15
- tabs: z.array(CubicsPtNewsTabSchema),
157
+ export const AlboPersonalSchema = z.object({
158
+ is_successful: z.boolean(),
159
+ code: z.number(),
160
+ api_version: z.number(),
161
+ gmt: z.number(),
162
+ user: AlboPersonalUserSchema,
163
+ result: z.object({
164
+ login: z.string(),
165
+ message: z.string(),
166
+ login_message: z.string().nullable(),
167
+ }),
16
168
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chukyo-umebo/web_parser",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },