cyc-type-def 7.1.2 → 7.1.4

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
@@ -25,7 +25,6 @@ __export(index_exports, {
25
25
  AttSheep: () => AttSheep,
26
26
  Attendance: () => Attendance,
27
27
  BackupAttendance: () => BackupAttendance,
28
- Base: () => Base,
29
28
  CG: () => CG,
30
29
  ClaimStatus: () => ClaimStatus,
31
30
  ClaimType: () => ClaimType,
@@ -677,10 +676,6 @@ var AppUser = class {
677
676
  }
678
677
  };
679
678
 
680
- // src/classes/Base.ts
681
- var Base = class {
682
- };
683
-
684
679
  // src/classes/Period.ts
685
680
  var Period = class {
686
681
  constructor(period) {
@@ -869,7 +864,6 @@ function compareCG(a, b) {
869
864
  AttSheep,
870
865
  Attendance,
871
866
  BackupAttendance,
872
- Base,
873
867
  CG,
874
868
  ClaimStatus,
875
869
  ClaimType,
package/dist/index.d.cts CHANGED
@@ -7,8 +7,6 @@ interface Base {
7
7
  updatedBy?: string;
8
8
  remark?: string;
9
9
  }
10
- declare class Base implements Base {
11
- }
12
10
 
13
11
  interface CG extends Base {
14
12
  name: string;
@@ -538,11 +536,9 @@ declare enum DialogAction {
538
536
  DEL = "delete"
539
537
  }
540
538
 
541
- interface BaseDialog {
542
- close(): void;
543
- }
544
- interface BaseDialogInput {
539
+ interface BaseDialogInput<T extends Base = Base> {
545
540
  action: DialogAction;
541
+ entity?: T;
546
542
  }
547
543
 
548
544
  interface Period extends Base {
@@ -615,4 +611,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
615
611
 
616
612
  declare function compareCG(a: CG, b: CG): number;
617
613
 
618
- export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, 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 };
614
+ export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, 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
@@ -7,8 +7,6 @@ interface Base {
7
7
  updatedBy?: string;
8
8
  remark?: string;
9
9
  }
10
- declare class Base implements Base {
11
- }
12
10
 
13
11
  interface CG extends Base {
14
12
  name: string;
@@ -538,11 +536,9 @@ declare enum DialogAction {
538
536
  DEL = "delete"
539
537
  }
540
538
 
541
- interface BaseDialog {
542
- close(): void;
543
- }
544
- interface BaseDialogInput {
539
+ interface BaseDialogInput<T extends Base = Base> {
545
540
  action: DialogAction;
541
+ entity?: T;
546
542
  }
547
543
 
548
544
  interface Period extends Base {
@@ -615,4 +611,4 @@ declare function getDayMonthSortKey(timestamp: number): number;
615
611
 
616
612
  declare function compareCG(a: CG, b: CG): number;
617
613
 
618
- export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, 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 };
614
+ export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, 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
@@ -612,10 +612,6 @@ var AppUser = class {
612
612
  }
613
613
  };
614
614
 
615
- // src/classes/Base.ts
616
- var Base = class {
617
- };
618
-
619
615
  // src/classes/Period.ts
620
616
  var Period = class {
621
617
  constructor(period) {
@@ -803,7 +799,6 @@ export {
803
799
  AttSheep,
804
800
  Attendance,
805
801
  BackupAttendance,
806
- Base,
807
802
  CG,
808
803
  ClaimStatus,
809
804
  ClaimType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyc-type-def",
3
- "version": "7.1.2",
3
+ "version": "7.1.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",