cyc-type-def 6.0.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 +25 -8
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +24 -8
- package/package.json +1 -1
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,9 +416,32 @@ 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) {
|
|
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();
|
|
421
445
|
this.id = id;
|
|
422
446
|
this.name = name;
|
|
423
447
|
this.status = status;
|
|
@@ -523,14 +547,6 @@ var Column = class {
|
|
|
523
547
|
}
|
|
524
548
|
};
|
|
525
549
|
|
|
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
550
|
// src/classes/AppUser.ts
|
|
535
551
|
var AppUser = class {
|
|
536
552
|
constructor(id, name, phoneNum, permission) {
|
|
@@ -698,6 +714,7 @@ function compareCG(a, b) {
|
|
|
698
714
|
ClickAction,
|
|
699
715
|
Cluster,
|
|
700
716
|
Column,
|
|
717
|
+
DateEvent,
|
|
701
718
|
DatePrecision,
|
|
702
719
|
DialogAction,
|
|
703
720
|
DisplayAttendance,
|
package/dist/index.d.cts
CHANGED
|
@@ -53,12 +53,13 @@ interface MsjStudBatch extends Base {
|
|
|
53
53
|
regUuid?: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
datetime
|
|
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",
|
|
@@ -73,11 +74,11 @@ declare class Sheep implements Base {
|
|
|
73
74
|
status: string;
|
|
74
75
|
discipler?: string;
|
|
75
76
|
/** first approach/contact (JieChu) */
|
|
76
|
-
firstApproach
|
|
77
|
+
firstApproach: DateEvent;
|
|
77
78
|
/** first CG/SERVICE */
|
|
78
|
-
firstAtt
|
|
79
|
+
firstAtt: DateEvent;
|
|
79
80
|
/** accept Christ */
|
|
80
|
-
acceptChrist
|
|
81
|
+
acceptChrist: DateEvent;
|
|
81
82
|
name: string;
|
|
82
83
|
age?: number;
|
|
83
84
|
birthday?: number;
|
|
@@ -584,4 +585,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
|
|
|
584
585
|
|
|
585
586
|
declare function compareCG(a: CG, b: CG): number;
|
|
586
587
|
|
|
587
|
-
export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column,
|
|
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,13 @@ interface MsjStudBatch extends Base {
|
|
|
53
53
|
regUuid?: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
datetime
|
|
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",
|
|
@@ -73,11 +74,11 @@ declare class Sheep implements Base {
|
|
|
73
74
|
status: string;
|
|
74
75
|
discipler?: string;
|
|
75
76
|
/** first approach/contact (JieChu) */
|
|
76
|
-
firstApproach
|
|
77
|
+
firstApproach: DateEvent;
|
|
77
78
|
/** first CG/SERVICE */
|
|
78
|
-
firstAtt
|
|
79
|
+
firstAtt: DateEvent;
|
|
79
80
|
/** accept Christ */
|
|
80
|
-
acceptChrist
|
|
81
|
+
acceptChrist: DateEvent;
|
|
81
82
|
name: string;
|
|
82
83
|
age?: number;
|
|
83
84
|
birthday?: number;
|
|
@@ -584,4 +585,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
|
|
|
584
585
|
|
|
585
586
|
declare function compareCG(a: CG, b: CG): number;
|
|
586
587
|
|
|
587
|
-
export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, type BaseDialogInput, CG, type Claim, ClaimStatus, ClaimType, Click, ClickAction, Cluster, Column,
|
|
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;
|
|
@@ -462,14 +485,6 @@ var Column = class {
|
|
|
462
485
|
}
|
|
463
486
|
};
|
|
464
487
|
|
|
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
488
|
// src/classes/AppUser.ts
|
|
474
489
|
var AppUser = class {
|
|
475
490
|
constructor(id, name, phoneNum, permission) {
|
|
@@ -636,6 +651,7 @@ export {
|
|
|
636
651
|
ClickAction,
|
|
637
652
|
Cluster,
|
|
638
653
|
Column,
|
|
654
|
+
DateEvent,
|
|
639
655
|
DatePrecision,
|
|
640
656
|
DialogAction,
|
|
641
657
|
DisplayAttendance,
|