cyc-type-def 7.0.0 → 7.1.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/dist/index.cjs +8 -26
- package/dist/index.d.cts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +7 -26
- 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) */
|
|
@@ -583,32 +585,6 @@ var FollowUpStatus = class {
|
|
|
583
585
|
|
|
584
586
|
// src/classes/pastoral-team/CG.ts
|
|
585
587
|
var CG = class {
|
|
586
|
-
name;
|
|
587
|
-
/** small team id */
|
|
588
|
-
st;
|
|
589
|
-
//
|
|
590
|
-
/** cluster id */
|
|
591
|
-
cluster;
|
|
592
|
-
cglCnt;
|
|
593
|
-
sglCnt;
|
|
594
|
-
cglName;
|
|
595
|
-
/** row index in attendance report (1-based) */
|
|
596
|
-
rptRowIdx;
|
|
597
|
-
// base attributes
|
|
598
|
-
id;
|
|
599
|
-
deleted;
|
|
600
|
-
createdAt;
|
|
601
|
-
createdBy;
|
|
602
|
-
updatedAt;
|
|
603
|
-
updatedBy;
|
|
604
|
-
remark;
|
|
605
|
-
constructor(id, name, st, cluster, deleted) {
|
|
606
|
-
this.id = id;
|
|
607
|
-
this.name = name;
|
|
608
|
-
this.st = st;
|
|
609
|
-
this.cluster = cluster;
|
|
610
|
-
this.deleted = deleted;
|
|
611
|
-
}
|
|
612
588
|
};
|
|
613
589
|
|
|
614
590
|
// src/classes/pastoral-team/Cluster.ts
|
|
@@ -658,6 +634,11 @@ var AssignedCG = class {
|
|
|
658
634
|
}
|
|
659
635
|
};
|
|
660
636
|
|
|
637
|
+
// src/classes/history/History.ts
|
|
638
|
+
function generateId(history) {
|
|
639
|
+
history.id = history.idRef + "@" + history.idPeriod;
|
|
640
|
+
}
|
|
641
|
+
|
|
661
642
|
// src/classes/helper/Click.ts
|
|
662
643
|
var Click = class {
|
|
663
644
|
action;
|
|
@@ -911,6 +892,7 @@ function compareCG(a, b) {
|
|
|
911
892
|
cgNum,
|
|
912
893
|
compareCG,
|
|
913
894
|
formatDateDDMMYY,
|
|
895
|
+
generateId,
|
|
914
896
|
getDayMonthSortKey,
|
|
915
897
|
isDateInRangeIgnoreYear,
|
|
916
898
|
monthStr,
|
package/dist/index.d.cts
CHANGED
|
@@ -8,7 +8,7 @@ interface Base {
|
|
|
8
8
|
remark?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
interface CG extends Base {
|
|
12
12
|
name: string;
|
|
13
13
|
/** small team id */
|
|
14
14
|
st: string;
|
|
@@ -19,14 +19,8 @@ declare class CG implements Base {
|
|
|
19
19
|
cglName?: string;
|
|
20
20
|
/** row index in attendance report (1-based) */
|
|
21
21
|
rptRowIdx?: number;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
createdAt?: number;
|
|
25
|
-
createdBy?: string;
|
|
26
|
-
updatedAt?: number;
|
|
27
|
-
updatedBy?: string;
|
|
28
|
-
remark?: string;
|
|
29
|
-
constructor(id: string, name: string, st: string, cluster: string, deleted: boolean);
|
|
22
|
+
}
|
|
23
|
+
declare class CG implements CG {
|
|
30
24
|
}
|
|
31
25
|
|
|
32
26
|
interface MsjStudClass {
|
|
@@ -88,6 +82,7 @@ declare class Sheep implements Base {
|
|
|
88
82
|
gender?: string;
|
|
89
83
|
nric?: string;
|
|
90
84
|
address?: string;
|
|
85
|
+
email?: string;
|
|
91
86
|
attCnt: number;
|
|
92
87
|
/** Attendance count in recent 15 weeks (tentatively) */
|
|
93
88
|
recentAttCnt?: number;
|
|
@@ -446,6 +441,14 @@ interface Claim extends Base {
|
|
|
446
441
|
status: string;
|
|
447
442
|
}
|
|
448
443
|
|
|
444
|
+
type History<T extends Base> = T & {
|
|
445
|
+
/** id of the current period */
|
|
446
|
+
idPeriod: string;
|
|
447
|
+
/** original id of the object */
|
|
448
|
+
idRef: string;
|
|
449
|
+
};
|
|
450
|
+
declare function generateId(history: History<Base>): void;
|
|
451
|
+
|
|
449
452
|
declare enum ClickAction {
|
|
450
453
|
P_WeeklyAttendance = 0,
|
|
451
454
|
P_AttendanceReport = 1,
|
|
@@ -610,4 +613,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
|
|
|
610
613
|
|
|
611
614
|
declare function compareCG(a: CG, b: CG): number;
|
|
612
615
|
|
|
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 };
|
|
616
|
+
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
|
@@ -8,7 +8,7 @@ interface Base {
|
|
|
8
8
|
remark?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
interface CG extends Base {
|
|
12
12
|
name: string;
|
|
13
13
|
/** small team id */
|
|
14
14
|
st: string;
|
|
@@ -19,14 +19,8 @@ declare class CG implements Base {
|
|
|
19
19
|
cglName?: string;
|
|
20
20
|
/** row index in attendance report (1-based) */
|
|
21
21
|
rptRowIdx?: number;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
createdAt?: number;
|
|
25
|
-
createdBy?: string;
|
|
26
|
-
updatedAt?: number;
|
|
27
|
-
updatedBy?: string;
|
|
28
|
-
remark?: string;
|
|
29
|
-
constructor(id: string, name: string, st: string, cluster: string, deleted: boolean);
|
|
22
|
+
}
|
|
23
|
+
declare class CG implements CG {
|
|
30
24
|
}
|
|
31
25
|
|
|
32
26
|
interface MsjStudClass {
|
|
@@ -88,6 +82,7 @@ declare class Sheep implements Base {
|
|
|
88
82
|
gender?: string;
|
|
89
83
|
nric?: string;
|
|
90
84
|
address?: string;
|
|
85
|
+
email?: string;
|
|
91
86
|
attCnt: number;
|
|
92
87
|
/** Attendance count in recent 15 weeks (tentatively) */
|
|
93
88
|
recentAttCnt?: number;
|
|
@@ -446,6 +441,14 @@ interface Claim extends Base {
|
|
|
446
441
|
status: string;
|
|
447
442
|
}
|
|
448
443
|
|
|
444
|
+
type History<T extends Base> = T & {
|
|
445
|
+
/** id of the current period */
|
|
446
|
+
idPeriod: string;
|
|
447
|
+
/** original id of the object */
|
|
448
|
+
idRef: string;
|
|
449
|
+
};
|
|
450
|
+
declare function generateId(history: History<Base>): void;
|
|
451
|
+
|
|
449
452
|
declare enum ClickAction {
|
|
450
453
|
P_WeeklyAttendance = 0,
|
|
451
454
|
P_AttendanceReport = 1,
|
|
@@ -610,4 +613,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
|
|
|
610
613
|
|
|
611
614
|
declare function compareCG(a: CG, b: CG): number;
|
|
612
615
|
|
|
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 };
|
|
616
|
+
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) */
|
|
@@ -520,32 +521,6 @@ var FollowUpStatus = class {
|
|
|
520
521
|
|
|
521
522
|
// src/classes/pastoral-team/CG.ts
|
|
522
523
|
var CG = class {
|
|
523
|
-
name;
|
|
524
|
-
/** small team id */
|
|
525
|
-
st;
|
|
526
|
-
//
|
|
527
|
-
/** cluster id */
|
|
528
|
-
cluster;
|
|
529
|
-
cglCnt;
|
|
530
|
-
sglCnt;
|
|
531
|
-
cglName;
|
|
532
|
-
/** row index in attendance report (1-based) */
|
|
533
|
-
rptRowIdx;
|
|
534
|
-
// base attributes
|
|
535
|
-
id;
|
|
536
|
-
deleted;
|
|
537
|
-
createdAt;
|
|
538
|
-
createdBy;
|
|
539
|
-
updatedAt;
|
|
540
|
-
updatedBy;
|
|
541
|
-
remark;
|
|
542
|
-
constructor(id, name, st, cluster, deleted) {
|
|
543
|
-
this.id = id;
|
|
544
|
-
this.name = name;
|
|
545
|
-
this.st = st;
|
|
546
|
-
this.cluster = cluster;
|
|
547
|
-
this.deleted = deleted;
|
|
548
|
-
}
|
|
549
524
|
};
|
|
550
525
|
|
|
551
526
|
// src/classes/pastoral-team/Cluster.ts
|
|
@@ -595,6 +570,11 @@ var AssignedCG = class {
|
|
|
595
570
|
}
|
|
596
571
|
};
|
|
597
572
|
|
|
573
|
+
// src/classes/history/History.ts
|
|
574
|
+
function generateId(history) {
|
|
575
|
+
history.id = history.idRef + "@" + history.idPeriod;
|
|
576
|
+
}
|
|
577
|
+
|
|
598
578
|
// src/classes/helper/Click.ts
|
|
599
579
|
var Click = class {
|
|
600
580
|
action;
|
|
@@ -847,6 +827,7 @@ export {
|
|
|
847
827
|
cgNum,
|
|
848
828
|
compareCG,
|
|
849
829
|
formatDateDDMMYY,
|
|
830
|
+
generateId,
|
|
850
831
|
getDayMonthSortKey,
|
|
851
832
|
isDateInRangeIgnoreYear,
|
|
852
833
|
monthStr,
|