cyc-type-def 7.0.0 → 7.1.0
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/index.cjs +8 -0
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -53,6 +53,7 @@ __export(index_exports, {
|
|
|
53
53
|
cgNum: () => cgNum,
|
|
54
54
|
compareCG: () => compareCG,
|
|
55
55
|
formatDateDDMMYY: () => formatDateDDMMYY,
|
|
56
|
+
generateId: () => generateId,
|
|
56
57
|
getDayMonthSortKey: () => getDayMonthSortKey,
|
|
57
58
|
isDateInRangeIgnoreYear: () => isDateInRangeIgnoreYear,
|
|
58
59
|
monthStr: () => monthStr,
|
|
@@ -476,6 +477,7 @@ var Sheep = class _Sheep {
|
|
|
476
477
|
nric;
|
|
477
478
|
address;
|
|
478
479
|
// in future might break to details like address line 1, state etc.
|
|
480
|
+
email;
|
|
479
481
|
// attendance
|
|
480
482
|
attCnt;
|
|
481
483
|
/** Attendance count in recent 15 weeks (tentatively) */
|
|
@@ -658,6 +660,11 @@ var AssignedCG = class {
|
|
|
658
660
|
}
|
|
659
661
|
};
|
|
660
662
|
|
|
663
|
+
// src/classes/history/History.ts
|
|
664
|
+
function generateId(history) {
|
|
665
|
+
history.id = history.idRef + "@" + history.idPeriod;
|
|
666
|
+
}
|
|
667
|
+
|
|
661
668
|
// src/classes/helper/Click.ts
|
|
662
669
|
var Click = class {
|
|
663
670
|
action;
|
|
@@ -911,6 +918,7 @@ function compareCG(a, b) {
|
|
|
911
918
|
cgNum,
|
|
912
919
|
compareCG,
|
|
913
920
|
formatDateDDMMYY,
|
|
921
|
+
generateId,
|
|
914
922
|
getDayMonthSortKey,
|
|
915
923
|
isDateInRangeIgnoreYear,
|
|
916
924
|
monthStr,
|
package/dist/index.d.cts
CHANGED
|
@@ -88,6 +88,7 @@ declare class Sheep implements Base {
|
|
|
88
88
|
gender?: string;
|
|
89
89
|
nric?: string;
|
|
90
90
|
address?: string;
|
|
91
|
+
email?: string;
|
|
91
92
|
attCnt: number;
|
|
92
93
|
/** Attendance count in recent 15 weeks (tentatively) */
|
|
93
94
|
recentAttCnt?: number;
|
|
@@ -446,6 +447,14 @@ interface Claim extends Base {
|
|
|
446
447
|
status: string;
|
|
447
448
|
}
|
|
448
449
|
|
|
450
|
+
type History<T extends Base> = T & {
|
|
451
|
+
/** id of the current period */
|
|
452
|
+
idPeriod: string;
|
|
453
|
+
/** original id of the object */
|
|
454
|
+
idRef: string;
|
|
455
|
+
};
|
|
456
|
+
declare function generateId(history: History<Base>): void;
|
|
457
|
+
|
|
449
458
|
declare enum ClickAction {
|
|
450
459
|
P_WeeklyAttendance = 0,
|
|
451
460
|
P_AttendanceReport = 1,
|
|
@@ -610,4 +619,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
|
|
|
610
619
|
|
|
611
620
|
declare function compareCG(a: CG, b: CG): number;
|
|
612
621
|
|
|
613
|
-
export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column, DateEvent, DatePrecision, type Device, DialogAction, DisplayAttendance, FollowUpStatus, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, MsjJoinStatus, MsjJoinStatusInfo, type MsjStudBatch, type MsjStudClass, PERMISSION, type PastoralTeam, Period, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
|
|
622
|
+
export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column, DateEvent, DatePrecision, type Device, DialogAction, DisplayAttendance, FollowUpStatus, type History, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, MsjJoinStatus, MsjJoinStatusInfo, type MsjStudBatch, type MsjStudClass, PERMISSION, type PastoralTeam, Period, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, generateId, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ declare class Sheep implements Base {
|
|
|
88
88
|
gender?: string;
|
|
89
89
|
nric?: string;
|
|
90
90
|
address?: string;
|
|
91
|
+
email?: string;
|
|
91
92
|
attCnt: number;
|
|
92
93
|
/** Attendance count in recent 15 weeks (tentatively) */
|
|
93
94
|
recentAttCnt?: number;
|
|
@@ -446,6 +447,14 @@ interface Claim extends Base {
|
|
|
446
447
|
status: string;
|
|
447
448
|
}
|
|
448
449
|
|
|
450
|
+
type History<T extends Base> = T & {
|
|
451
|
+
/** id of the current period */
|
|
452
|
+
idPeriod: string;
|
|
453
|
+
/** original id of the object */
|
|
454
|
+
idRef: string;
|
|
455
|
+
};
|
|
456
|
+
declare function generateId(history: History<Base>): void;
|
|
457
|
+
|
|
449
458
|
declare enum ClickAction {
|
|
450
459
|
P_WeeklyAttendance = 0,
|
|
451
460
|
P_AttendanceReport = 1,
|
|
@@ -610,4 +619,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
|
|
|
610
619
|
|
|
611
620
|
declare function compareCG(a: CG, b: CG): number;
|
|
612
621
|
|
|
613
|
-
export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column, DateEvent, DatePrecision, type Device, DialogAction, DisplayAttendance, FollowUpStatus, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, MsjJoinStatus, MsjJoinStatusInfo, type MsjStudBatch, type MsjStudClass, PERMISSION, type PastoralTeam, Period, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
|
|
622
|
+
export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column, DateEvent, DatePrecision, type Device, DialogAction, DisplayAttendance, FollowUpStatus, type History, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, MsjJoinStatus, MsjJoinStatusInfo, type MsjStudBatch, type MsjStudClass, PERMISSION, type PastoralTeam, Period, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, generateId, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
|
package/dist/index.js
CHANGED
|
@@ -413,6 +413,7 @@ var Sheep = class _Sheep {
|
|
|
413
413
|
nric;
|
|
414
414
|
address;
|
|
415
415
|
// in future might break to details like address line 1, state etc.
|
|
416
|
+
email;
|
|
416
417
|
// attendance
|
|
417
418
|
attCnt;
|
|
418
419
|
/** Attendance count in recent 15 weeks (tentatively) */
|
|
@@ -595,6 +596,11 @@ var AssignedCG = class {
|
|
|
595
596
|
}
|
|
596
597
|
};
|
|
597
598
|
|
|
599
|
+
// src/classes/history/History.ts
|
|
600
|
+
function generateId(history) {
|
|
601
|
+
history.id = history.idRef + "@" + history.idPeriod;
|
|
602
|
+
}
|
|
603
|
+
|
|
598
604
|
// src/classes/helper/Click.ts
|
|
599
605
|
var Click = class {
|
|
600
606
|
action;
|
|
@@ -847,6 +853,7 @@ export {
|
|
|
847
853
|
cgNum,
|
|
848
854
|
compareCG,
|
|
849
855
|
formatDateDDMMYY,
|
|
856
|
+
generateId,
|
|
850
857
|
getDayMonthSortKey,
|
|
851
858
|
isDateInRangeIgnoreYear,
|
|
852
859
|
monthStr,
|