@things-factory/calendar 10.1.254 → 10.1.256
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-server/index.d.ts +1 -0
- package/dist-server/index.js +1 -0
- package/dist-server/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/dist-server/work-doors.d.ts +1 -0
- package/dist-server/work-doors.js +11 -0
- package/dist-server/work-doors.js.map +1 -0
- package/package.json +3 -3
- package/tests/open-doors.test.ts +5 -3
- package/translations/en.json +2 -1
- package/translations/es.json +2 -1
- package/translations/ja.json +2 -1
- package/translations/ko.json +2 -1
- package/translations/ms.json +2 -1
- package/translations/zh.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
4
|
+
/*
|
|
5
|
+
* The work this module does through its doors that a report of one's week takes in by itself (ADR-0185 decision 6,
|
|
6
|
+
* Q5): The working-day calendars kept - holidays and days off; the events one attends come in as events. Each name is a translation key of this module.
|
|
7
|
+
*/
|
|
8
|
+
(0, auth_base_1.registerWorkDoors)([
|
|
9
|
+
{ work: 'work.calendar.keeping', fields: ['createCalendar', 'updateCalendar', 'updateMultipleCalendar', 'deleteCalendars', 'updateCalendarDaysOff', 'savePublicHolidays'] }
|
|
10
|
+
]);
|
|
11
|
+
//# sourceMappingURL=work-doors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-doors.js","sourceRoot":"","sources":["../server/work-doors.ts"],"names":[],"mappings":";;AAAA,yDAA6D;AAE7D;;;GAGG;AACH,IAAA,6BAAiB,EAAC;IAChB,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,oBAAoB,CAAC,EAAE;CAC5K,CAAC,CAAA","sourcesContent":["import { registerWorkDoors } from '@things-factory/auth-base'\n\n/*\n * The work this module does through its doors that a report of one's week takes in by itself (ADR-0185 decision 6,\n * Q5): The working-day calendars kept - holidays and days off; the events one attends come in as events. Each name is a translation key of this module.\n */\nregisterWorkDoors([\n { work: 'work.calendar.keeping', fields: ['createCalendar', 'updateCalendar', 'updateMultipleCalendar', 'deleteCalendars', 'updateCalendarDaysOff', 'savePublicHolidays'] }\n])\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/calendar",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.256",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@operato/graphql": "^10.0.0",
|
|
34
34
|
"@operato/popup": "^10.0.0",
|
|
35
35
|
"@operato/shell": "^10.0.0",
|
|
36
|
-
"@things-factory/auth-base": "^10.1.
|
|
36
|
+
"@things-factory/auth-base": "^10.1.256",
|
|
37
37
|
"@things-factory/shell": "^10.1.254",
|
|
38
38
|
"cron-parser": "^4.3.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "2fd641697190ce6e87bcf454a60b2321553e8110"
|
|
41
41
|
}
|
package/tests/open-doors.test.ts
CHANGED
|
@@ -9,7 +9,9 @@ import { gatesOf, openFields } from '../../../test/helpers/open-doors'
|
|
|
9
9
|
|
|
10
10
|
/** Open on purpose or not decided yet, each with its reason. */
|
|
11
11
|
const OPEN: Record<string, string> = {
|
|
12
|
-
myEvents: "the caller's own events - the body keeps only events the caller is named on or responsible for, in their domain"
|
|
12
|
+
myEvents: "the caller's own events - the body keeps only events the caller is named on or responsible for, in their domain",
|
|
13
|
+
daysOff: "the domain's public holidays and days off with their names - every member's to know, nothing private (ADR-0179)",
|
|
14
|
+
workingDays: "the domain's working days, the weekdays less its days off - every member's to know, nothing private (ADR-0179)"
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
let gates: Awaited<ReturnType<typeof gatesOf>>
|
|
@@ -33,6 +35,6 @@ it('every declared root field asks for its axis of calendar and admits the domai
|
|
|
33
35
|
|
|
34
36
|
it('the walk reaches every root field', () => {
|
|
35
37
|
/* If the resolver list shrank, the checks above would pass by having nothing to look at. */
|
|
36
|
-
expect(Object.keys(gates.Query)).toHaveLength(
|
|
37
|
-
expect(Object.keys(gates.Mutation)).toHaveLength(
|
|
38
|
+
expect(Object.keys(gates.Query)).toHaveLength(11)
|
|
39
|
+
expect(Object.keys(gates.Mutation)).toHaveLength(18)
|
|
38
40
|
})
|
package/translations/en.json
CHANGED
|
@@ -61,5 +61,6 @@
|
|
|
61
61
|
"error.working-days-range-too-long": "At most {max} days at once",
|
|
62
62
|
"error.public-holidays-year-invalid": "Check the year '{value}'",
|
|
63
63
|
"error.public-holidays-day-outside-year": "{day} is not in {year}",
|
|
64
|
-
"error.public-holidays-name-required": "{day} needs the holiday's name"
|
|
64
|
+
"error.public-holidays-name-required": "{day} needs the holiday's name",
|
|
65
|
+
"work.calendar.keeping": "Working days and holidays"
|
|
65
66
|
}
|
package/translations/es.json
CHANGED
|
@@ -61,5 +61,6 @@
|
|
|
61
61
|
"error.working-days-range-too-long": "Como máximo {max} días a la vez",
|
|
62
62
|
"error.public-holidays-year-invalid": "Revise el año '{value}'",
|
|
63
63
|
"error.public-holidays-day-outside-year": "{day} no está en {year}",
|
|
64
|
-
"error.public-holidays-name-required": "{day} necesita el nombre del festivo"
|
|
64
|
+
"error.public-holidays-name-required": "{day} necesita el nombre del festivo",
|
|
65
|
+
"work.calendar.keeping": "Días laborables y festivos"
|
|
65
66
|
}
|
package/translations/ja.json
CHANGED
|
@@ -61,5 +61,6 @@
|
|
|
61
61
|
"error.working-days-range-too-long": "一度に{max}日まで照会します",
|
|
62
62
|
"error.public-holidays-year-invalid": "年 '{value}' を確認してください",
|
|
63
63
|
"error.public-holidays-day-outside-year": "{day}は{year}年の日ではありません",
|
|
64
|
-
"error.public-holidays-name-required": "{day}の祝日名がありません"
|
|
64
|
+
"error.public-holidays-name-required": "{day}の祝日名がありません",
|
|
65
|
+
"work.calendar.keeping": "勤務日・休日の管理"
|
|
65
66
|
}
|
package/translations/ko.json
CHANGED
|
@@ -61,5 +61,6 @@
|
|
|
61
61
|
"error.working-days-range-too-long": "한 번에 {max}일까지 조회합니다",
|
|
62
62
|
"error.public-holidays-year-invalid": "연도 '{value}'을(를) 확인하세요",
|
|
63
63
|
"error.public-holidays-day-outside-year": "{day}은(는) {year}년의 날이 아닙니다",
|
|
64
|
-
"error.public-holidays-name-required": "{day}의 공휴일 이름이 없습니다"
|
|
64
|
+
"error.public-holidays-name-required": "{day}의 공휴일 이름이 없습니다",
|
|
65
|
+
"work.calendar.keeping": "근무일 · 휴일 관리"
|
|
65
66
|
}
|
package/translations/ms.json
CHANGED
|
@@ -61,5 +61,6 @@
|
|
|
61
61
|
"error.working-days-range-too-long": "Paling banyak {max} hari sekali",
|
|
62
62
|
"error.public-holidays-year-invalid": "Semak tahun '{value}'",
|
|
63
63
|
"error.public-holidays-day-outside-year": "{day} bukan dalam {year}",
|
|
64
|
-
"error.public-holidays-name-required": "{day} memerlukan nama cuti"
|
|
64
|
+
"error.public-holidays-name-required": "{day} memerlukan nama cuti",
|
|
65
|
+
"work.calendar.keeping": "Hari bekerja dan cuti umum"
|
|
65
66
|
}
|
package/translations/zh.json
CHANGED
|
@@ -61,5 +61,6 @@
|
|
|
61
61
|
"error.working-days-range-too-long": "一次最多查询{max}天",
|
|
62
62
|
"error.public-holidays-year-invalid": "请检查年份'{value}'",
|
|
63
63
|
"error.public-holidays-day-outside-year": "{day}不在{year}年",
|
|
64
|
-
"error.public-holidays-name-required": "{day}缺少节假日名称"
|
|
64
|
+
"error.public-holidays-name-required": "{day}缺少节假日名称",
|
|
65
|
+
"work.calendar.keeping": "工作日与假日管理"
|
|
65
66
|
}
|