cyc-type-def 1.0.1 → 1.0.3

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.d.mts CHANGED
@@ -22,6 +22,28 @@ declare class CG implements Base {
22
22
  constructor(id: string, name: string, st: string, cluster: string, deleted: boolean);
23
23
  }
24
24
 
25
+ interface MsjStudClass {
26
+ idClass?: string;
27
+ attended: boolean;
28
+ classNo: number;
29
+ replaced?: boolean;
30
+ absReason?: string;
31
+ markBy?: string;
32
+ markAt?: number;
33
+ provedAbsent?: boolean;
34
+ isWatchedRecording?: boolean;
35
+ markByName?: string;
36
+ }
37
+
38
+ interface MsjStudBatch extends Base {
39
+ idSheep: string;
40
+ idBatch: string;
41
+ completed?: boolean;
42
+ proceed?: boolean;
43
+ attendance?: MsjStudClass[];
44
+ status?: string;
45
+ }
46
+
25
47
  declare class Sheep implements Base {
26
48
  name: string;
27
49
  st: string;
@@ -44,6 +66,8 @@ declare class Sheep implements Base {
44
66
  updatedBy?: string;
45
67
  remark?: string;
46
68
  arrFlwUpCnt?: number[];
69
+ msj?: Map<String, MsjStudBatch>;
70
+ msjRecords?: Map<String, MsjStudBatch[]>;
47
71
  constructor(id: string, name: string, status: string, cg: string, st: string, cluster: string, deleted: boolean, show: boolean, attCnt: number);
48
72
  }
49
73
 
@@ -234,28 +258,6 @@ interface MsjClassTime extends Base {
234
258
  backtracked?: boolean;
235
259
  }
236
260
 
237
- interface MsjStudClass {
238
- idClass?: string;
239
- attended: boolean;
240
- classNo: number;
241
- replaced?: boolean;
242
- absReason?: string;
243
- markBy?: string;
244
- markAt?: number;
245
- provedAbsent?: boolean;
246
- isWatchedRecording?: boolean;
247
- markByName?: string;
248
- }
249
-
250
- interface MsjStudBatch extends Base {
251
- idSheep: string;
252
- idBatch: string;
253
- completed?: boolean;
254
- proceed?: boolean;
255
- attendance?: MsjStudClass[];
256
- status?: string;
257
- }
258
-
259
261
  declare class FollowUpStatus {
260
262
  id: string;
261
263
  method: string;
@@ -351,6 +353,16 @@ declare class Click {
351
353
  userId?: string;
352
354
  }
353
355
 
356
+ declare class Column {
357
+ visible: boolean;
358
+ name: string;
359
+ constructor(name: string);
360
+ }
361
+
362
+ interface Device extends Base {
363
+ version?: number;
364
+ }
365
+
354
366
  declare const METHOD: {
355
367
  SKY: string;
356
368
  GROUND: string;
@@ -368,31 +380,7 @@ declare const PERMISSION: {
368
380
  PASTORAL_ADMIN: string;
369
381
  ST_ADMIN: string;
370
382
  };
371
- declare const PERMISSION_TYPE: {
372
- USER_MANAGEMENT: string[];
373
- WEEKLY_ATT: string[];
374
- ATT_RPT: string[];
375
- TITLE: string[];
376
- CLICKS: string[];
377
- monthlyReport: string[];
378
- read: string[];
379
- msjStudentRecord: string[];
380
- msjProgress: string[];
381
- msjToAttend: string[];
382
- addSheep: string[];
383
- addCG: string[];
384
- oprAddSheep: string[];
385
- };
386
383
 
387
384
  declare const LIST_STATUS: string[];
388
385
 
389
- declare function greet(name: string): string;
390
- declare function sum(a: number, b: number): number;
391
-
392
- interface User {
393
- id: string;
394
- name: string;
395
- email: string;
396
- }
397
-
398
- export { type AppPage, AppUser, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, CG, Click, ClickAction, Cluster, DisplayAttendance, FollowUpStatus, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, type MsjStudBatch, type MsjStudClass, PERMISSION, PERMISSION_TYPE, type PastoralTeam, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, type User, greet, sum };
386
+ export { type AppPage, AppUser, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, CG, Click, ClickAction, Cluster, Column, type Device, DisplayAttendance, FollowUpStatus, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, type MsjStudBatch, type MsjStudClass, PERMISSION, type PastoralTeam, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance };
package/dist/index.d.ts CHANGED
@@ -22,6 +22,28 @@ declare class CG implements Base {
22
22
  constructor(id: string, name: string, st: string, cluster: string, deleted: boolean);
23
23
  }
24
24
 
25
+ interface MsjStudClass {
26
+ idClass?: string;
27
+ attended: boolean;
28
+ classNo: number;
29
+ replaced?: boolean;
30
+ absReason?: string;
31
+ markBy?: string;
32
+ markAt?: number;
33
+ provedAbsent?: boolean;
34
+ isWatchedRecording?: boolean;
35
+ markByName?: string;
36
+ }
37
+
38
+ interface MsjStudBatch extends Base {
39
+ idSheep: string;
40
+ idBatch: string;
41
+ completed?: boolean;
42
+ proceed?: boolean;
43
+ attendance?: MsjStudClass[];
44
+ status?: string;
45
+ }
46
+
25
47
  declare class Sheep implements Base {
26
48
  name: string;
27
49
  st: string;
@@ -44,6 +66,8 @@ declare class Sheep implements Base {
44
66
  updatedBy?: string;
45
67
  remark?: string;
46
68
  arrFlwUpCnt?: number[];
69
+ msj?: Map<String, MsjStudBatch>;
70
+ msjRecords?: Map<String, MsjStudBatch[]>;
47
71
  constructor(id: string, name: string, status: string, cg: string, st: string, cluster: string, deleted: boolean, show: boolean, attCnt: number);
48
72
  }
49
73
 
@@ -234,28 +258,6 @@ interface MsjClassTime extends Base {
234
258
  backtracked?: boolean;
235
259
  }
236
260
 
237
- interface MsjStudClass {
238
- idClass?: string;
239
- attended: boolean;
240
- classNo: number;
241
- replaced?: boolean;
242
- absReason?: string;
243
- markBy?: string;
244
- markAt?: number;
245
- provedAbsent?: boolean;
246
- isWatchedRecording?: boolean;
247
- markByName?: string;
248
- }
249
-
250
- interface MsjStudBatch extends Base {
251
- idSheep: string;
252
- idBatch: string;
253
- completed?: boolean;
254
- proceed?: boolean;
255
- attendance?: MsjStudClass[];
256
- status?: string;
257
- }
258
-
259
261
  declare class FollowUpStatus {
260
262
  id: string;
261
263
  method: string;
@@ -351,6 +353,16 @@ declare class Click {
351
353
  userId?: string;
352
354
  }
353
355
 
356
+ declare class Column {
357
+ visible: boolean;
358
+ name: string;
359
+ constructor(name: string);
360
+ }
361
+
362
+ interface Device extends Base {
363
+ version?: number;
364
+ }
365
+
354
366
  declare const METHOD: {
355
367
  SKY: string;
356
368
  GROUND: string;
@@ -368,31 +380,7 @@ declare const PERMISSION: {
368
380
  PASTORAL_ADMIN: string;
369
381
  ST_ADMIN: string;
370
382
  };
371
- declare const PERMISSION_TYPE: {
372
- USER_MANAGEMENT: string[];
373
- WEEKLY_ATT: string[];
374
- ATT_RPT: string[];
375
- TITLE: string[];
376
- CLICKS: string[];
377
- monthlyReport: string[];
378
- read: string[];
379
- msjStudentRecord: string[];
380
- msjProgress: string[];
381
- msjToAttend: string[];
382
- addSheep: string[];
383
- addCG: string[];
384
- oprAddSheep: string[];
385
- };
386
383
 
387
384
  declare const LIST_STATUS: string[];
388
385
 
389
- declare function greet(name: string): string;
390
- declare function sum(a: number, b: number): number;
391
-
392
- interface User {
393
- id: string;
394
- name: string;
395
- email: string;
396
- }
397
-
398
- export { type AppPage, AppUser, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, CG, Click, ClickAction, Cluster, DisplayAttendance, FollowUpStatus, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, type MsjStudBatch, type MsjStudClass, PERMISSION, PERMISSION_TYPE, type PastoralTeam, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance, type User, greet, sum };
386
+ export { type AppPage, AppUser, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, CG, Click, ClickAction, Cluster, Column, type Device, DisplayAttendance, FollowUpStatus, LIST_STATUS, METHOD, type MsjClassBatch, type MsjClassTime, type MsjClassType, type MsjStudBatch, type MsjStudClass, PERMISSION, type PastoralTeam, ReportSheep, Session, SessionAttendance, Sheep, SmallTeam, Title, TitleAttendance };
package/dist/index.js CHANGED
@@ -28,21 +28,19 @@ __export(index_exports, {
28
28
  Click: () => Click,
29
29
  ClickAction: () => ClickAction,
30
30
  Cluster: () => Cluster,
31
+ Column: () => Column,
31
32
  DisplayAttendance: () => DisplayAttendance,
32
33
  FollowUpStatus: () => FollowUpStatus,
33
34
  LIST_STATUS: () => LIST_STATUS,
34
35
  METHOD: () => METHOD,
35
36
  PERMISSION: () => PERMISSION,
36
- PERMISSION_TYPE: () => PERMISSION_TYPE,
37
37
  ReportSheep: () => ReportSheep,
38
38
  Session: () => Session,
39
39
  SessionAttendance: () => SessionAttendance,
40
40
  Sheep: () => Sheep,
41
41
  SmallTeam: () => SmallTeam,
42
42
  Title: () => Title,
43
- TitleAttendance: () => TitleAttendance,
44
- greet: () => greet,
45
- sum: () => sum
43
+ TitleAttendance: () => TitleAttendance
46
44
  });
47
45
  module.exports = __toCommonJS(index_exports);
48
46
 
@@ -505,6 +503,14 @@ var AppUser = class {
505
503
  var Click = class {
506
504
  };
507
505
 
506
+ // src/classes/Column.ts
507
+ var Column = class {
508
+ constructor(name) {
509
+ this.visible = false;
510
+ this.name = name;
511
+ }
512
+ };
513
+
508
514
  // src/constants/click.constant.ts
509
515
  var ClickAction = /* @__PURE__ */ ((ClickAction2) => {
510
516
  ClickAction2[ClickAction2["P_WeeklyAttendance"] = 0] = "P_WeeklyAttendance";
@@ -532,72 +538,6 @@ var PERMISSION = {
532
538
  PASTORAL_ADMIN: "Pastoral Admin",
533
539
  ST_ADMIN: "Small Team Admin"
534
540
  };
535
- var PERMISSION_TYPE = {
536
- USER_MANAGEMENT: [PERMISSION.SUPER_USER],
537
- WEEKLY_ATT: [
538
- PERMISSION.SUPER_USER,
539
- PERMISSION.TL,
540
- PERMISSION.SCGL,
541
- PERMISSION.PASTORAL_ADMIN
542
- ],
543
- ATT_RPT: [
544
- PERMISSION.SUPER_USER,
545
- PERMISSION.TL,
546
- PERMISSION.SCGL,
547
- PERMISSION.CGL,
548
- PERMISSION.PASTORAL_ADMIN
549
- ],
550
- TITLE: [PERMISSION.SUPER_USER],
551
- CLICKS: [PERMISSION.SUPER_USER],
552
- // SHEEP_LIST: [PERMISSION.TL],
553
- // view specific permissions
554
- monthlyReport: [
555
- PERMISSION.SUPER_USER,
556
- PERMISSION.PASTORAL_ADMIN,
557
- PERMISSION.TL
558
- ],
559
- read: [
560
- PERMISSION.SUPER_USER,
561
- PERMISSION.PASTORAL_ADMIN,
562
- PERMISSION.TL,
563
- PERMISSION.SCGL,
564
- PERMISSION.CGL
565
- ],
566
- msjStudentRecord: [PERMISSION.SUPER_USER, PERMISSION.PASTORAL_ADMIN],
567
- msjProgress: [
568
- PERMISSION.SUPER_USER,
569
- PERMISSION.TL,
570
- PERMISSION.SCGL,
571
- PERMISSION.CGL,
572
- PERMISSION.PASTORAL_ADMIN
573
- ],
574
- msjToAttend: [
575
- PERMISSION.SUPER_USER,
576
- PERMISSION.TL,
577
- PERMISSION.SCGL,
578
- PERMISSION.CGL,
579
- PERMISSION.PASTORAL_ADMIN
580
- ],
581
- addSheep: [
582
- PERMISSION.SUPER_USER,
583
- PERMISSION.PASTORAL_ADMIN,
584
- PERMISSION.ST_ADMIN,
585
- PERMISSION.TL,
586
- PERMISSION.SCGL,
587
- PERMISSION.CGL
588
- ],
589
- addCG: [PERMISSION.SUPER_USER, PERMISSION.PASTORAL_ADMIN],
590
- // action specific permission
591
- oprAddSheep: [PERMISSION.SUPER_USER, PERMISSION.PASTORAL_ADMIN]
592
- };
593
-
594
- // src/utils.ts
595
- function greet(name) {
596
- return `Hello, ${name}!`;
597
- }
598
- function sum(a, b) {
599
- return a + b;
600
- }
601
541
  // Annotate the CommonJS export names for ESM import in node:
602
542
  0 && (module.exports = {
603
543
  AppUser,
@@ -608,19 +548,17 @@ function sum(a, b) {
608
548
  Click,
609
549
  ClickAction,
610
550
  Cluster,
551
+ Column,
611
552
  DisplayAttendance,
612
553
  FollowUpStatus,
613
554
  LIST_STATUS,
614
555
  METHOD,
615
556
  PERMISSION,
616
- PERMISSION_TYPE,
617
557
  ReportSheep,
618
558
  Session,
619
559
  SessionAttendance,
620
560
  Sheep,
621
561
  SmallTeam,
622
562
  Title,
623
- TitleAttendance,
624
- greet,
625
- sum
563
+ TitleAttendance
626
564
  });
package/dist/index.mjs CHANGED
@@ -457,6 +457,14 @@ var AppUser = class {
457
457
  var Click = class {
458
458
  };
459
459
 
460
+ // src/classes/Column.ts
461
+ var Column = class {
462
+ constructor(name) {
463
+ this.visible = false;
464
+ this.name = name;
465
+ }
466
+ };
467
+
460
468
  // src/constants/click.constant.ts
461
469
  var ClickAction = /* @__PURE__ */ ((ClickAction2) => {
462
470
  ClickAction2[ClickAction2["P_WeeklyAttendance"] = 0] = "P_WeeklyAttendance";
@@ -484,72 +492,6 @@ var PERMISSION = {
484
492
  PASTORAL_ADMIN: "Pastoral Admin",
485
493
  ST_ADMIN: "Small Team Admin"
486
494
  };
487
- var PERMISSION_TYPE = {
488
- USER_MANAGEMENT: [PERMISSION.SUPER_USER],
489
- WEEKLY_ATT: [
490
- PERMISSION.SUPER_USER,
491
- PERMISSION.TL,
492
- PERMISSION.SCGL,
493
- PERMISSION.PASTORAL_ADMIN
494
- ],
495
- ATT_RPT: [
496
- PERMISSION.SUPER_USER,
497
- PERMISSION.TL,
498
- PERMISSION.SCGL,
499
- PERMISSION.CGL,
500
- PERMISSION.PASTORAL_ADMIN
501
- ],
502
- TITLE: [PERMISSION.SUPER_USER],
503
- CLICKS: [PERMISSION.SUPER_USER],
504
- // SHEEP_LIST: [PERMISSION.TL],
505
- // view specific permissions
506
- monthlyReport: [
507
- PERMISSION.SUPER_USER,
508
- PERMISSION.PASTORAL_ADMIN,
509
- PERMISSION.TL
510
- ],
511
- read: [
512
- PERMISSION.SUPER_USER,
513
- PERMISSION.PASTORAL_ADMIN,
514
- PERMISSION.TL,
515
- PERMISSION.SCGL,
516
- PERMISSION.CGL
517
- ],
518
- msjStudentRecord: [PERMISSION.SUPER_USER, PERMISSION.PASTORAL_ADMIN],
519
- msjProgress: [
520
- PERMISSION.SUPER_USER,
521
- PERMISSION.TL,
522
- PERMISSION.SCGL,
523
- PERMISSION.CGL,
524
- PERMISSION.PASTORAL_ADMIN
525
- ],
526
- msjToAttend: [
527
- PERMISSION.SUPER_USER,
528
- PERMISSION.TL,
529
- PERMISSION.SCGL,
530
- PERMISSION.CGL,
531
- PERMISSION.PASTORAL_ADMIN
532
- ],
533
- addSheep: [
534
- PERMISSION.SUPER_USER,
535
- PERMISSION.PASTORAL_ADMIN,
536
- PERMISSION.ST_ADMIN,
537
- PERMISSION.TL,
538
- PERMISSION.SCGL,
539
- PERMISSION.CGL
540
- ],
541
- addCG: [PERMISSION.SUPER_USER, PERMISSION.PASTORAL_ADMIN],
542
- // action specific permission
543
- oprAddSheep: [PERMISSION.SUPER_USER, PERMISSION.PASTORAL_ADMIN]
544
- };
545
-
546
- // src/utils.ts
547
- function greet(name) {
548
- return `Hello, ${name}!`;
549
- }
550
- function sum(a, b) {
551
- return a + b;
552
- }
553
495
  export {
554
496
  AppUser,
555
497
  AttSheep,
@@ -559,19 +501,17 @@ export {
559
501
  Click,
560
502
  ClickAction,
561
503
  Cluster,
504
+ Column,
562
505
  DisplayAttendance,
563
506
  FollowUpStatus,
564
507
  LIST_STATUS,
565
508
  METHOD,
566
509
  PERMISSION,
567
- PERMISSION_TYPE,
568
510
  ReportSheep,
569
511
  Session,
570
512
  SessionAttendance,
571
513
  Sheep,
572
514
  SmallTeam,
573
515
  Title,
574
- TitleAttendance,
575
- greet,
576
- sum
516
+ TitleAttendance
577
517
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyc-type-def",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [