cyc-type-def 6.0.0 → 6.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 CHANGED
@@ -32,6 +32,7 @@ __export(index_exports, {
32
32
  ClickAction: () => ClickAction,
33
33
  Cluster: () => Cluster,
34
34
  Column: () => Column,
35
+ DateEvent: () => DateEvent,
35
36
  DatePrecision: () => DatePrecision,
36
37
  DialogAction: () => DialogAction,
37
38
  DisplayAttendance: () => DisplayAttendance,
@@ -415,6 +416,22 @@ var Title = class {
415
416
  }
416
417
  };
417
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
+
418
435
  // src/classes/pastoral-team/Sheep.ts
419
436
  var Sheep = class {
420
437
  constructor(id, name, status, cg, st, cluster, deleted, show, attCnt) {
@@ -427,6 +444,12 @@ var Sheep = class {
427
444
  this.deleted = deleted;
428
445
  this.show = show;
429
446
  this.attCnt = attCnt;
447
+ this.init();
448
+ }
449
+ init() {
450
+ this.firstApproach = new DateEvent();
451
+ this.firstAtt = new DateEvent();
452
+ this.acceptChrist = new DateEvent();
430
453
  }
431
454
  };
432
455
 
@@ -523,14 +546,6 @@ var Column = class {
523
546
  }
524
547
  };
525
548
 
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
549
  // src/classes/AppUser.ts
535
550
  var AppUser = class {
536
551
  constructor(id, name, phoneNum, permission) {
@@ -698,6 +713,7 @@ function compareCG(a, b) {
698
713
  ClickAction,
699
714
  Cluster,
700
715
  Column,
716
+ DateEvent,
701
717
  DatePrecision,
702
718
  DialogAction,
703
719
  DisplayAttendance,
package/dist/index.d.cts CHANGED
@@ -53,12 +53,13 @@ interface MsjStudBatch extends Base {
53
53
  regUuid?: string;
54
54
  }
55
55
 
56
- interface DateEvent {
57
- datetime: number;
56
+ declare class DateEvent {
57
+ datetime?: number;
58
58
  precision: DatePrecision;
59
59
  eventName: string;
60
60
  invitedBy: string;
61
61
  remark?: string;
62
+ constructor(datetime?: number);
62
63
  }
63
64
  declare enum DatePrecision {
64
65
  YEAR = "YEAR",
@@ -101,6 +102,7 @@ declare class Sheep implements Base {
101
102
  msj?: Map<String, MsjStudBatch>;
102
103
  msjRecords?: Map<String, MsjStudBatch[]>;
103
104
  constructor(id: string, name: string, status: string, cg: string, st: string, cluster: string, deleted: boolean, show: boolean, attCnt: number);
105
+ init(): void;
104
106
  }
105
107
 
106
108
  interface Session extends Base {
@@ -584,4 +586,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
584
586
 
585
587
  declare function compareCG(a: CG, b: CG): number;
586
588
 
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 };
589
+ 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,13 @@ interface MsjStudBatch extends Base {
53
53
  regUuid?: string;
54
54
  }
55
55
 
56
- interface DateEvent {
57
- datetime: number;
56
+ declare class DateEvent {
57
+ datetime?: number;
58
58
  precision: DatePrecision;
59
59
  eventName: string;
60
60
  invitedBy: string;
61
61
  remark?: string;
62
+ constructor(datetime?: number);
62
63
  }
63
64
  declare enum DatePrecision {
64
65
  YEAR = "YEAR",
@@ -101,6 +102,7 @@ declare class Sheep implements Base {
101
102
  msj?: Map<String, MsjStudBatch>;
102
103
  msjRecords?: Map<String, MsjStudBatch[]>;
103
104
  constructor(id: string, name: string, status: string, cg: string, st: string, cluster: string, deleted: boolean, show: boolean, attCnt: number);
105
+ init(): void;
104
106
  }
105
107
 
106
108
  interface Session extends Base {
@@ -584,4 +586,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
584
586
 
585
587
  declare function compareCG(a: CG, b: CG): number;
586
588
 
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 };
589
+ 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,6 +354,22 @@ 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) {
@@ -366,6 +382,12 @@ var Sheep = class {
366
382
  this.deleted = deleted;
367
383
  this.show = show;
368
384
  this.attCnt = attCnt;
385
+ this.init();
386
+ }
387
+ init() {
388
+ this.firstApproach = new DateEvent();
389
+ this.firstAtt = new DateEvent();
390
+ this.acceptChrist = new DateEvent();
369
391
  }
370
392
  };
371
393
 
@@ -462,14 +484,6 @@ var Column = class {
462
484
  }
463
485
  };
464
486
 
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
487
  // src/classes/AppUser.ts
474
488
  var AppUser = class {
475
489
  constructor(id, name, phoneNum, permission) {
@@ -636,6 +650,7 @@ export {
636
650
  ClickAction,
637
651
  Cluster,
638
652
  Column,
653
+ DateEvent,
639
654
  DatePrecision,
640
655
  DialogAction,
641
656
  DisplayAttendance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyc-type-def",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",