cyc-type-def 5.8.0 → 6.0.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 CHANGED
@@ -32,6 +32,8 @@ __export(index_exports, {
32
32
  ClickAction: () => ClickAction,
33
33
  Cluster: () => Cluster,
34
34
  Column: () => Column,
35
+ DateEvent: () => DateEvent,
36
+ DatePrecision: () => DatePrecision,
35
37
  DialogAction: () => DialogAction,
36
38
  DisplayAttendance: () => DisplayAttendance,
37
39
  FollowUpStatus: () => FollowUpStatus,
@@ -414,9 +416,32 @@ var Title = class {
414
416
  }
415
417
  };
416
418
 
419
+ // src/classes/helper/DateEvent.ts
420
+ var DateEvent = class {
421
+ constructor(datetime) {
422
+ if (datetime) this.datetime = datetime;
423
+ this.precision = "DAY" /* DAY */;
424
+ this.eventName = "";
425
+ this.invitedBy = "";
426
+ }
427
+ };
428
+ var DatePrecision = /* @__PURE__ */ ((DatePrecision2) => {
429
+ DatePrecision2["YEAR"] = "YEAR";
430
+ DatePrecision2["MONTH"] = "MONTH";
431
+ DatePrecision2["DAY"] = "DAY";
432
+ return DatePrecision2;
433
+ })(DatePrecision || {});
434
+
417
435
  // src/classes/pastoral-team/Sheep.ts
418
436
  var Sheep = class {
419
437
  constructor(id, name, status, cg, st, cluster, deleted, show, attCnt) {
438
+ // history record (spiritual journey/milestone)
439
+ /** first approach/contact (JieChu) */
440
+ this.firstApproach = new DateEvent();
441
+ /** first CG/SERVICE */
442
+ this.firstAtt = new DateEvent();
443
+ /** accept Christ */
444
+ this.acceptChrist = new DateEvent();
420
445
  this.id = id;
421
446
  this.name = name;
422
447
  this.status = status;
@@ -510,21 +535,11 @@ var AssignedCG = class {
510
535
  }
511
536
  };
512
537
 
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
538
+ // src/classes/helper/Click.ts
524
539
  var Click = class {
525
540
  };
526
541
 
527
- // src/classes/Column.ts
542
+ // src/classes/helper/Column.ts
528
543
  var Column = class {
529
544
  constructor(name) {
530
545
  this.visible = false;
@@ -532,6 +547,16 @@ var Column = class {
532
547
  }
533
548
  };
534
549
 
550
+ // src/classes/AppUser.ts
551
+ var AppUser = class {
552
+ constructor(id, name, phoneNum, permission) {
553
+ this.id = id;
554
+ this.name = name;
555
+ this.phoneNum = phoneNum;
556
+ this.permission = permission;
557
+ }
558
+ };
559
+
535
560
  // src/constants/click.constant.ts
536
561
  var ClickAction = /* @__PURE__ */ ((ClickAction2) => {
537
562
  ClickAction2[ClickAction2["P_WeeklyAttendance"] = 0] = "P_WeeklyAttendance";
@@ -689,6 +714,8 @@ function compareCG(a, b) {
689
714
  ClickAction,
690
715
  Cluster,
691
716
  Column,
717
+ DateEvent,
718
+ DatePrecision,
692
719
  DialogAction,
693
720
  DisplayAttendance,
694
721
  FollowUpStatus,
package/dist/index.d.cts CHANGED
@@ -53,12 +53,32 @@ interface MsjStudBatch extends Base {
53
53
  regUuid?: string;
54
54
  }
55
55
 
56
+ declare class DateEvent {
57
+ datetime?: number;
58
+ precision: DatePrecision;
59
+ eventName: string;
60
+ invitedBy: string;
61
+ remark?: string;
62
+ constructor(datetime?: number);
63
+ }
64
+ declare enum DatePrecision {
65
+ YEAR = "YEAR",
66
+ MONTH = "MONTH",
67
+ DAY = "DAY"
68
+ }
69
+
56
70
  declare class Sheep implements Base {
57
71
  st: string;
58
72
  cluster: string;
59
73
  cg: string;
60
74
  status: string;
61
75
  discipler?: string;
76
+ /** first approach/contact (JieChu) */
77
+ firstApproach: DateEvent;
78
+ /** first CG/SERVICE */
79
+ firstAtt: DateEvent;
80
+ /** accept Christ */
81
+ acceptChrist: DateEvent;
62
82
  name: string;
63
83
  age?: number;
64
84
  birthday?: number;
@@ -423,6 +443,47 @@ interface Claim extends Base {
423
443
  status: string;
424
444
  }
425
445
 
446
+ declare enum ClickAction {
447
+ P_WeeklyAttendance = 0,
448
+ P_AttendanceReport = 1,
449
+ P_CGNameList = 2,
450
+ F_CopyAttendance = 3,
451
+ F_CheckAttendanceHistory = 4,
452
+ F_AttendanceReminder = 5,
453
+ F_ExportWeekAttendance = 6,
454
+ F_ClickEditSheep = 7,
455
+ F_EditSheep = 8,
456
+ F_VerticalViewAttendance = 9,
457
+ F_ExportAttRpt = 10,
458
+ F_ExportVerticalView = 11,
459
+ P_BIRTHDAY = 12,
460
+ P_CLAIM = 13,
461
+ P_SETTING = 14,
462
+ P_MSJ_STUDENT_RECORD = 15,
463
+ P_MSJ_Progress = 16,
464
+ P_Stats = 17,
465
+ P_Stats_Baptism = 18,
466
+ P_Calendar = 19,
467
+ P_Group = 20
468
+ }
469
+
470
+ declare class Click {
471
+ action: ClickAction;
472
+ timeStamp: number;
473
+ userId?: string;
474
+ remark?: string;
475
+ }
476
+
477
+ declare class Column {
478
+ visible: boolean;
479
+ name: string;
480
+ constructor(name: string);
481
+ }
482
+
483
+ interface Device extends Base {
484
+ version?: number;
485
+ }
486
+
426
487
  /** Navigation List Item */
427
488
  interface AppPage {
428
489
  /** Title shown in navigation list */
@@ -476,47 +537,6 @@ interface BaseDialogInput {
476
537
  action: DialogAction;
477
538
  }
478
539
 
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
540
  declare const METHOD: {
521
541
  SKY: string;
522
542
  GROUND: string;
@@ -565,4 +585,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
565
585
 
566
586
  declare function compareCG(a: CG, b: CG): number;
567
587
 
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 };
588
+ 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, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
package/dist/index.d.ts CHANGED
@@ -53,12 +53,32 @@ interface MsjStudBatch extends Base {
53
53
  regUuid?: string;
54
54
  }
55
55
 
56
+ declare class DateEvent {
57
+ datetime?: number;
58
+ precision: DatePrecision;
59
+ eventName: string;
60
+ invitedBy: string;
61
+ remark?: string;
62
+ constructor(datetime?: number);
63
+ }
64
+ declare enum DatePrecision {
65
+ YEAR = "YEAR",
66
+ MONTH = "MONTH",
67
+ DAY = "DAY"
68
+ }
69
+
56
70
  declare class Sheep implements Base {
57
71
  st: string;
58
72
  cluster: string;
59
73
  cg: string;
60
74
  status: string;
61
75
  discipler?: string;
76
+ /** first approach/contact (JieChu) */
77
+ firstApproach: DateEvent;
78
+ /** first CG/SERVICE */
79
+ firstAtt: DateEvent;
80
+ /** accept Christ */
81
+ acceptChrist: DateEvent;
62
82
  name: string;
63
83
  age?: number;
64
84
  birthday?: number;
@@ -423,6 +443,47 @@ interface Claim extends Base {
423
443
  status: string;
424
444
  }
425
445
 
446
+ declare enum ClickAction {
447
+ P_WeeklyAttendance = 0,
448
+ P_AttendanceReport = 1,
449
+ P_CGNameList = 2,
450
+ F_CopyAttendance = 3,
451
+ F_CheckAttendanceHistory = 4,
452
+ F_AttendanceReminder = 5,
453
+ F_ExportWeekAttendance = 6,
454
+ F_ClickEditSheep = 7,
455
+ F_EditSheep = 8,
456
+ F_VerticalViewAttendance = 9,
457
+ F_ExportAttRpt = 10,
458
+ F_ExportVerticalView = 11,
459
+ P_BIRTHDAY = 12,
460
+ P_CLAIM = 13,
461
+ P_SETTING = 14,
462
+ P_MSJ_STUDENT_RECORD = 15,
463
+ P_MSJ_Progress = 16,
464
+ P_Stats = 17,
465
+ P_Stats_Baptism = 18,
466
+ P_Calendar = 19,
467
+ P_Group = 20
468
+ }
469
+
470
+ declare class Click {
471
+ action: ClickAction;
472
+ timeStamp: number;
473
+ userId?: string;
474
+ remark?: string;
475
+ }
476
+
477
+ declare class Column {
478
+ visible: boolean;
479
+ name: string;
480
+ constructor(name: string);
481
+ }
482
+
483
+ interface Device extends Base {
484
+ version?: number;
485
+ }
486
+
426
487
  /** Navigation List Item */
427
488
  interface AppPage {
428
489
  /** Title shown in navigation list */
@@ -476,47 +537,6 @@ interface BaseDialogInput {
476
537
  action: DialogAction;
477
538
  }
478
539
 
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
540
  declare const METHOD: {
521
541
  SKY: string;
522
542
  GROUND: string;
@@ -565,4 +585,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
565
585
 
566
586
  declare function compareCG(a: CG, b: CG): number;
567
587
 
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 };
588
+ 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, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, cgNum, compareCG, formatDateDDMMYY, getDayMonthSortKey, isDateInRangeIgnoreYear, monthStr, parseYYMMDD, yearStr };
package/dist/index.js CHANGED
@@ -354,9 +354,32 @@ var Title = class {
354
354
  }
355
355
  };
356
356
 
357
+ // src/classes/helper/DateEvent.ts
358
+ var DateEvent = class {
359
+ constructor(datetime) {
360
+ if (datetime) this.datetime = datetime;
361
+ this.precision = "DAY" /* DAY */;
362
+ this.eventName = "";
363
+ this.invitedBy = "";
364
+ }
365
+ };
366
+ var DatePrecision = /* @__PURE__ */ ((DatePrecision2) => {
367
+ DatePrecision2["YEAR"] = "YEAR";
368
+ DatePrecision2["MONTH"] = "MONTH";
369
+ DatePrecision2["DAY"] = "DAY";
370
+ return DatePrecision2;
371
+ })(DatePrecision || {});
372
+
357
373
  // src/classes/pastoral-team/Sheep.ts
358
374
  var Sheep = class {
359
375
  constructor(id, name, status, cg, st, cluster, deleted, show, attCnt) {
376
+ // history record (spiritual journey/milestone)
377
+ /** first approach/contact (JieChu) */
378
+ this.firstApproach = new DateEvent();
379
+ /** first CG/SERVICE */
380
+ this.firstAtt = new DateEvent();
381
+ /** accept Christ */
382
+ this.acceptChrist = new DateEvent();
360
383
  this.id = id;
361
384
  this.name = name;
362
385
  this.status = status;
@@ -450,21 +473,11 @@ var AssignedCG = class {
450
473
  }
451
474
  };
452
475
 
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
476
+ // src/classes/helper/Click.ts
464
477
  var Click = class {
465
478
  };
466
479
 
467
- // src/classes/Column.ts
480
+ // src/classes/helper/Column.ts
468
481
  var Column = class {
469
482
  constructor(name) {
470
483
  this.visible = false;
@@ -472,6 +485,16 @@ var Column = class {
472
485
  }
473
486
  };
474
487
 
488
+ // src/classes/AppUser.ts
489
+ var AppUser = class {
490
+ constructor(id, name, phoneNum, permission) {
491
+ this.id = id;
492
+ this.name = name;
493
+ this.phoneNum = phoneNum;
494
+ this.permission = permission;
495
+ }
496
+ };
497
+
475
498
  // src/constants/click.constant.ts
476
499
  var ClickAction = /* @__PURE__ */ ((ClickAction2) => {
477
500
  ClickAction2[ClickAction2["P_WeeklyAttendance"] = 0] = "P_WeeklyAttendance";
@@ -628,6 +651,8 @@ export {
628
651
  ClickAction,
629
652
  Cluster,
630
653
  Column,
654
+ DateEvent,
655
+ DatePrecision,
631
656
  DialogAction,
632
657
  DisplayAttendance,
633
658
  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.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",