cyc-type-def 5.8.0 → 6.0.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 CHANGED
@@ -32,6 +32,7 @@ __export(index_exports, {
32
32
  ClickAction: () => ClickAction,
33
33
  Cluster: () => Cluster,
34
34
  Column: () => Column,
35
+ DatePrecision: () => DatePrecision,
35
36
  DialogAction: () => DialogAction,
36
37
  DisplayAttendance: () => DisplayAttendance,
37
38
  FollowUpStatus: () => FollowUpStatus,
@@ -510,21 +511,11 @@ var AssignedCG = class {
510
511
  }
511
512
  };
512
513
 
513
- // src/classes/AppUser.ts
514
- var AppUser = class {
515
- constructor(id, name, phoneNum, permission) {
516
- this.id = id;
517
- this.name = name;
518
- this.phoneNum = phoneNum;
519
- this.permission = permission;
520
- }
521
- };
522
-
523
- // src/classes/Click.ts
514
+ // src/classes/helper/Click.ts
524
515
  var Click = class {
525
516
  };
526
517
 
527
- // src/classes/Column.ts
518
+ // src/classes/helper/Column.ts
528
519
  var Column = class {
529
520
  constructor(name) {
530
521
  this.visible = false;
@@ -532,6 +523,24 @@ var Column = class {
532
523
  }
533
524
  };
534
525
 
526
+ // src/classes/helper/DateEvent.ts
527
+ var DatePrecision = /* @__PURE__ */ ((DatePrecision2) => {
528
+ DatePrecision2["YEAR"] = "YEAR";
529
+ DatePrecision2["MONTH"] = "MONTH";
530
+ DatePrecision2["DAY"] = "DAY";
531
+ return DatePrecision2;
532
+ })(DatePrecision || {});
533
+
534
+ // src/classes/AppUser.ts
535
+ var AppUser = class {
536
+ constructor(id, name, phoneNum, permission) {
537
+ this.id = id;
538
+ this.name = name;
539
+ this.phoneNum = phoneNum;
540
+ this.permission = permission;
541
+ }
542
+ };
543
+
535
544
  // src/constants/click.constant.ts
536
545
  var ClickAction = /* @__PURE__ */ ((ClickAction2) => {
537
546
  ClickAction2[ClickAction2["P_WeeklyAttendance"] = 0] = "P_WeeklyAttendance";
@@ -689,6 +698,7 @@ function compareCG(a, b) {
689
698
  ClickAction,
690
699
  Cluster,
691
700
  Column,
701
+ DatePrecision,
692
702
  DialogAction,
693
703
  DisplayAttendance,
694
704
  FollowUpStatus,
package/dist/index.d.cts CHANGED
@@ -53,12 +53,31 @@ interface MsjStudBatch extends Base {
53
53
  regUuid?: string;
54
54
  }
55
55
 
56
+ interface DateEvent {
57
+ datetime: number;
58
+ precision: DatePrecision;
59
+ eventName: string;
60
+ invitedBy: string;
61
+ remark?: string;
62
+ }
63
+ declare enum DatePrecision {
64
+ YEAR = "YEAR",
65
+ MONTH = "MONTH",
66
+ DAY = "DAY"
67
+ }
68
+
56
69
  declare class Sheep implements Base {
57
70
  st: string;
58
71
  cluster: string;
59
72
  cg: string;
60
73
  status: string;
61
74
  discipler?: string;
75
+ /** first approach/contact (JieChu) */
76
+ firstApproach?: DateEvent;
77
+ /** first CG/SERVICE */
78
+ firstAtt?: DateEvent;
79
+ /** accept Christ */
80
+ acceptChrist?: DateEvent;
62
81
  name: string;
63
82
  age?: number;
64
83
  birthday?: number;
@@ -423,6 +442,47 @@ interface Claim extends Base {
423
442
  status: string;
424
443
  }
425
444
 
445
+ declare enum ClickAction {
446
+ P_WeeklyAttendance = 0,
447
+ P_AttendanceReport = 1,
448
+ P_CGNameList = 2,
449
+ F_CopyAttendance = 3,
450
+ F_CheckAttendanceHistory = 4,
451
+ F_AttendanceReminder = 5,
452
+ F_ExportWeekAttendance = 6,
453
+ F_ClickEditSheep = 7,
454
+ F_EditSheep = 8,
455
+ F_VerticalViewAttendance = 9,
456
+ F_ExportAttRpt = 10,
457
+ F_ExportVerticalView = 11,
458
+ P_BIRTHDAY = 12,
459
+ P_CLAIM = 13,
460
+ P_SETTING = 14,
461
+ P_MSJ_STUDENT_RECORD = 15,
462
+ P_MSJ_Progress = 16,
463
+ P_Stats = 17,
464
+ P_Stats_Baptism = 18,
465
+ P_Calendar = 19,
466
+ P_Group = 20
467
+ }
468
+
469
+ declare class Click {
470
+ action: ClickAction;
471
+ timeStamp: number;
472
+ userId?: string;
473
+ remark?: string;
474
+ }
475
+
476
+ declare class Column {
477
+ visible: boolean;
478
+ name: string;
479
+ constructor(name: string);
480
+ }
481
+
482
+ interface Device extends Base {
483
+ version?: number;
484
+ }
485
+
426
486
  /** Navigation List Item */
427
487
  interface AppPage {
428
488
  /** Title shown in navigation list */
@@ -476,47 +536,6 @@ interface BaseDialogInput {
476
536
  action: DialogAction;
477
537
  }
478
538
 
479
- declare enum ClickAction {
480
- P_WeeklyAttendance = 0,
481
- P_AttendanceReport = 1,
482
- P_CGNameList = 2,
483
- F_CopyAttendance = 3,
484
- F_CheckAttendanceHistory = 4,
485
- F_AttendanceReminder = 5,
486
- F_ExportWeekAttendance = 6,
487
- F_ClickEditSheep = 7,
488
- F_EditSheep = 8,
489
- F_VerticalViewAttendance = 9,
490
- F_ExportAttRpt = 10,
491
- F_ExportVerticalView = 11,
492
- P_BIRTHDAY = 12,
493
- P_CLAIM = 13,
494
- P_SETTING = 14,
495
- P_MSJ_STUDENT_RECORD = 15,
496
- P_MSJ_Progress = 16,
497
- P_Stats = 17,
498
- P_Stats_Baptism = 18,
499
- P_Calendar = 19,
500
- P_Group = 20
501
- }
502
-
503
- declare class Click {
504
- action: ClickAction;
505
- timeStamp: number;
506
- userId?: string;
507
- remark?: string;
508
- }
509
-
510
- declare class Column {
511
- visible: boolean;
512
- name: string;
513
- constructor(name: string);
514
- }
515
-
516
- interface Device extends Base {
517
- version?: number;
518
- }
519
-
520
539
  declare const METHOD: {
521
540
  SKY: string;
522
541
  GROUND: string;
@@ -565,4 +584,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
565
584
 
566
585
  declare function compareCG(a: CG, b: CG): number;
567
586
 
568
- export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column, type Device, DialogAction, DisplayAttendance, FollowUpStatus, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, MsjJoinStatus, MsjJoinStatusInfo, type MsjStudBatch, type MsjStudClass, PERMISSION, type PastoralTeam, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
587
+ export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column, type 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, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
package/dist/index.d.ts CHANGED
@@ -53,12 +53,31 @@ interface MsjStudBatch extends Base {
53
53
  regUuid?: string;
54
54
  }
55
55
 
56
+ interface DateEvent {
57
+ datetime: number;
58
+ precision: DatePrecision;
59
+ eventName: string;
60
+ invitedBy: string;
61
+ remark?: string;
62
+ }
63
+ declare enum DatePrecision {
64
+ YEAR = "YEAR",
65
+ MONTH = "MONTH",
66
+ DAY = "DAY"
67
+ }
68
+
56
69
  declare class Sheep implements Base {
57
70
  st: string;
58
71
  cluster: string;
59
72
  cg: string;
60
73
  status: string;
61
74
  discipler?: string;
75
+ /** first approach/contact (JieChu) */
76
+ firstApproach?: DateEvent;
77
+ /** first CG/SERVICE */
78
+ firstAtt?: DateEvent;
79
+ /** accept Christ */
80
+ acceptChrist?: DateEvent;
62
81
  name: string;
63
82
  age?: number;
64
83
  birthday?: number;
@@ -423,6 +442,47 @@ interface Claim extends Base {
423
442
  status: string;
424
443
  }
425
444
 
445
+ declare enum ClickAction {
446
+ P_WeeklyAttendance = 0,
447
+ P_AttendanceReport = 1,
448
+ P_CGNameList = 2,
449
+ F_CopyAttendance = 3,
450
+ F_CheckAttendanceHistory = 4,
451
+ F_AttendanceReminder = 5,
452
+ F_ExportWeekAttendance = 6,
453
+ F_ClickEditSheep = 7,
454
+ F_EditSheep = 8,
455
+ F_VerticalViewAttendance = 9,
456
+ F_ExportAttRpt = 10,
457
+ F_ExportVerticalView = 11,
458
+ P_BIRTHDAY = 12,
459
+ P_CLAIM = 13,
460
+ P_SETTING = 14,
461
+ P_MSJ_STUDENT_RECORD = 15,
462
+ P_MSJ_Progress = 16,
463
+ P_Stats = 17,
464
+ P_Stats_Baptism = 18,
465
+ P_Calendar = 19,
466
+ P_Group = 20
467
+ }
468
+
469
+ declare class Click {
470
+ action: ClickAction;
471
+ timeStamp: number;
472
+ userId?: string;
473
+ remark?: string;
474
+ }
475
+
476
+ declare class Column {
477
+ visible: boolean;
478
+ name: string;
479
+ constructor(name: string);
480
+ }
481
+
482
+ interface Device extends Base {
483
+ version?: number;
484
+ }
485
+
426
486
  /** Navigation List Item */
427
487
  interface AppPage {
428
488
  /** Title shown in navigation list */
@@ -476,47 +536,6 @@ interface BaseDialogInput {
476
536
  action: DialogAction;
477
537
  }
478
538
 
479
- declare enum ClickAction {
480
- P_WeeklyAttendance = 0,
481
- P_AttendanceReport = 1,
482
- P_CGNameList = 2,
483
- F_CopyAttendance = 3,
484
- F_CheckAttendanceHistory = 4,
485
- F_AttendanceReminder = 5,
486
- F_ExportWeekAttendance = 6,
487
- F_ClickEditSheep = 7,
488
- F_EditSheep = 8,
489
- F_VerticalViewAttendance = 9,
490
- F_ExportAttRpt = 10,
491
- F_ExportVerticalView = 11,
492
- P_BIRTHDAY = 12,
493
- P_CLAIM = 13,
494
- P_SETTING = 14,
495
- P_MSJ_STUDENT_RECORD = 15,
496
- P_MSJ_Progress = 16,
497
- P_Stats = 17,
498
- P_Stats_Baptism = 18,
499
- P_Calendar = 19,
500
- P_Group = 20
501
- }
502
-
503
- declare class Click {
504
- action: ClickAction;
505
- timeStamp: number;
506
- userId?: string;
507
- remark?: string;
508
- }
509
-
510
- declare class Column {
511
- visible: boolean;
512
- name: string;
513
- constructor(name: string);
514
- }
515
-
516
- interface Device extends Base {
517
- version?: number;
518
- }
519
-
520
539
  declare const METHOD: {
521
540
  SKY: string;
522
541
  GROUND: string;
@@ -565,4 +584,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
565
584
 
566
585
  declare function compareCG(a: CG, b: CG): number;
567
586
 
568
- export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column, type Device, DialogAction, DisplayAttendance, FollowUpStatus, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, MsjJoinStatus, MsjJoinStatusInfo, type MsjStudBatch, type MsjStudClass, PERMISSION, type PastoralTeam, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
587
+ export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column, type 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, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
package/dist/index.js CHANGED
@@ -450,21 +450,11 @@ var AssignedCG = class {
450
450
  }
451
451
  };
452
452
 
453
- // src/classes/AppUser.ts
454
- var AppUser = class {
455
- constructor(id, name, phoneNum, permission) {
456
- this.id = id;
457
- this.name = name;
458
- this.phoneNum = phoneNum;
459
- this.permission = permission;
460
- }
461
- };
462
-
463
- // src/classes/Click.ts
453
+ // src/classes/helper/Click.ts
464
454
  var Click = class {
465
455
  };
466
456
 
467
- // src/classes/Column.ts
457
+ // src/classes/helper/Column.ts
468
458
  var Column = class {
469
459
  constructor(name) {
470
460
  this.visible = false;
@@ -472,6 +462,24 @@ var Column = class {
472
462
  }
473
463
  };
474
464
 
465
+ // src/classes/helper/DateEvent.ts
466
+ var DatePrecision = /* @__PURE__ */ ((DatePrecision2) => {
467
+ DatePrecision2["YEAR"] = "YEAR";
468
+ DatePrecision2["MONTH"] = "MONTH";
469
+ DatePrecision2["DAY"] = "DAY";
470
+ return DatePrecision2;
471
+ })(DatePrecision || {});
472
+
473
+ // src/classes/AppUser.ts
474
+ var AppUser = class {
475
+ constructor(id, name, phoneNum, permission) {
476
+ this.id = id;
477
+ this.name = name;
478
+ this.phoneNum = phoneNum;
479
+ this.permission = permission;
480
+ }
481
+ };
482
+
475
483
  // src/constants/click.constant.ts
476
484
  var ClickAction = /* @__PURE__ */ ((ClickAction2) => {
477
485
  ClickAction2[ClickAction2["P_WeeklyAttendance"] = 0] = "P_WeeklyAttendance";
@@ -628,6 +636,7 @@ export {
628
636
  ClickAction,
629
637
  Cluster,
630
638
  Column,
639
+ DatePrecision,
631
640
  DialogAction,
632
641
  DisplayAttendance,
633
642
  FollowUpStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyc-type-def",
3
- "version": "5.8.0",
3
+ "version": "6.0.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",