cyc-type-def 2.2.1 → 3.0.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
@@ -26,6 +26,7 @@ __export(index_exports, {
26
26
  Attendance: () => Attendance,
27
27
  BackupAttendance: () => BackupAttendance,
28
28
  CG: () => CG,
29
+ ClaimType: () => ClaimType,
29
30
  Click: () => Click,
30
31
  ClickAction: () => ClickAction,
31
32
  Cluster: () => Cluster,
@@ -549,6 +550,15 @@ var PERMISSION = {
549
550
  PASTORAL_ADMIN: "Pastoral Admin",
550
551
  ST_ADMIN: "Small Team Admin"
551
552
  };
553
+
554
+ // src/constants/claim.constant.ts
555
+ var ClaimType = /* @__PURE__ */ ((ClaimType2) => {
556
+ ClaimType2[ClaimType2["BIRTHDAY"] = 0] = "BIRTHDAY";
557
+ ClaimType2[ClaimType2["REFRESHMENT"] = 1] = "REFRESHMENT";
558
+ ClaimType2[ClaimType2["OUTREACH"] = 2] = "OUTREACH";
559
+ ClaimType2[ClaimType2["VENUE"] = 3] = "VENUE";
560
+ return ClaimType2;
561
+ })(ClaimType || {});
552
562
  // Annotate the CommonJS export names for ESM import in node:
553
563
  0 && (module.exports = {
554
564
  AppUser,
@@ -557,6 +567,7 @@ var PERMISSION = {
557
567
  Attendance,
558
568
  BackupAttendance,
559
569
  CG,
570
+ ClaimType,
560
571
  Click,
561
572
  ClickAction,
562
573
  Cluster,
package/dist/index.d.cts CHANGED
@@ -9,8 +9,6 @@ interface Base {
9
9
  }
10
10
 
11
11
  declare class CG implements Base {
12
- id: string;
13
- deleted: boolean;
14
12
  name: string;
15
13
  /** small team id */
16
14
  st: string;
@@ -21,6 +19,13 @@ declare class CG implements Base {
21
19
  cglName?: string;
22
20
  /** row index in attendance report (1-based) */
23
21
  rptRowIdx?: number;
22
+ id: string;
23
+ deleted: boolean;
24
+ createdAt?: number;
25
+ createdBy?: string;
26
+ updatedAt?: number;
27
+ updatedBy?: string;
28
+ remark?: string;
24
29
  constructor(id: string, name: string, st: string, cluster: string, deleted: boolean);
25
30
  }
26
31
 
@@ -293,11 +298,16 @@ declare class Cluster implements Base {
293
298
  }
294
299
 
295
300
  declare class SmallTeam implements Base {
296
- id: string;
297
301
  name: string;
298
302
  /** cluster id */
299
303
  cluster: string;
304
+ id: string;
300
305
  deleted: boolean;
306
+ createdAt?: number;
307
+ createdBy?: string;
308
+ updatedAt?: number;
309
+ updatedBy?: string;
310
+ remark?: string;
301
311
  constructor(id: string, name: string, cluster: string, deleted: boolean);
302
312
  }
303
313
 
@@ -306,6 +316,76 @@ declare class AssignedCG {
306
316
  constructor(cg: string);
307
317
  }
308
318
 
319
+ declare enum ClaimType {
320
+ BIRTHDAY = 0,
321
+ REFRESHMENT = 1,
322
+ OUTREACH = 2,
323
+ VENUE = 3
324
+ }
325
+
326
+ interface Claim extends Base {
327
+ /**
328
+ * claim type (Birthday, Refreshment, Outreach, Venue)
329
+ * @see ClaimType
330
+ */
331
+ type: ClaimType;
332
+ /**
333
+ * array of CG ID, since will have multiple CGs
334
+ */
335
+ cgs: string[];
336
+ /**
337
+ * date of CG as a Unix timestamp in milliseconds.
338
+ */
339
+ cgDate: number;
340
+ venue: string;
341
+ /**
342
+ * birthday star (for birthday claim)
343
+ *
344
+ * just key in the name will do, although when it is multiple stars
345
+ */
346
+ birthdayStar: string;
347
+ amount: number;
348
+ attendance: DisplayAttendance;
349
+ /**
350
+ * Sheep ID of the person who made the claim.
351
+ */
352
+ payable: string;
353
+ /**
354
+ * payable bank account
355
+ */
356
+ bankAcc: string;
357
+ /**
358
+ * payable bank name
359
+ */
360
+ bankName: string;
361
+ /**
362
+ * payable bank account holder name
363
+ */
364
+ bankHolder: string;
365
+ /**
366
+ * might have multiple receipts
367
+ */
368
+ receiptUrl: string[];
369
+ /**
370
+ * claim submission date as a Unix timestamp in milliseconds.
371
+ */
372
+ submissionDate?: number;
373
+ /**
374
+ * whether claim has been distributed
375
+ */
376
+ distributed: boolean;
377
+ /**
378
+ * claim distributed datetime as a Unix timestamp in milliseconds.
379
+ */
380
+ distributedDate: number;
381
+ /**
382
+ * transfer slip url
383
+ *
384
+ * making it an array to contain multiple slips, just in case.
385
+ */
386
+ transferProofUrl: string[];
387
+ }
388
+
309
389
  /** Navigation List Item */
310
390
  interface AppPage {
311
391
  /** Title shown in navigation list */
@@ -398,4 +478,4 @@ declare const PERMISSION: {
398
478
 
399
479
  declare const LIST_STATUS: string[];
400
480
 
401
- export { type AppPage, AppUser, AssignedCG, 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 };
481
+ export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, CG, type Claim, ClaimType, 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
@@ -9,8 +9,6 @@ interface Base {
9
9
  }
10
10
 
11
11
  declare class CG implements Base {
12
- id: string;
13
- deleted: boolean;
14
12
  name: string;
15
13
  /** small team id */
16
14
  st: string;
@@ -21,6 +19,13 @@ declare class CG implements Base {
21
19
  cglName?: string;
22
20
  /** row index in attendance report (1-based) */
23
21
  rptRowIdx?: number;
22
+ id: string;
23
+ deleted: boolean;
24
+ createdAt?: number;
25
+ createdBy?: string;
26
+ updatedAt?: number;
27
+ updatedBy?: string;
28
+ remark?: string;
24
29
  constructor(id: string, name: string, st: string, cluster: string, deleted: boolean);
25
30
  }
26
31
 
@@ -293,11 +298,16 @@ declare class Cluster implements Base {
293
298
  }
294
299
 
295
300
  declare class SmallTeam implements Base {
296
- id: string;
297
301
  name: string;
298
302
  /** cluster id */
299
303
  cluster: string;
304
+ id: string;
300
305
  deleted: boolean;
306
+ createdAt?: number;
307
+ createdBy?: string;
308
+ updatedAt?: number;
309
+ updatedBy?: string;
310
+ remark?: string;
301
311
  constructor(id: string, name: string, cluster: string, deleted: boolean);
302
312
  }
303
313
 
@@ -306,6 +316,76 @@ declare class AssignedCG {
306
316
  constructor(cg: string);
307
317
  }
308
318
 
319
+ declare enum ClaimType {
320
+ BIRTHDAY = 0,
321
+ REFRESHMENT = 1,
322
+ OUTREACH = 2,
323
+ VENUE = 3
324
+ }
325
+
326
+ interface Claim extends Base {
327
+ /**
328
+ * claim type (Birthday, Refreshment, Outreach, Venue)
329
+ * @see ClaimType
330
+ */
331
+ type: ClaimType;
332
+ /**
333
+ * array of CG ID, since will have multiple CGs
334
+ */
335
+ cgs: string[];
336
+ /**
337
+ * date of CG as a Unix timestamp in milliseconds.
338
+ */
339
+ cgDate: number;
340
+ venue: string;
341
+ /**
342
+ * birthday star (for birthday claim)
343
+ *
344
+ * just key in the name will do, although when it is multiple stars
345
+ */
346
+ birthdayStar: string;
347
+ amount: number;
348
+ attendance: DisplayAttendance;
349
+ /**
350
+ * Sheep ID of the person who made the claim.
351
+ */
352
+ payable: string;
353
+ /**
354
+ * payable bank account
355
+ */
356
+ bankAcc: string;
357
+ /**
358
+ * payable bank name
359
+ */
360
+ bankName: string;
361
+ /**
362
+ * payable bank account holder name
363
+ */
364
+ bankHolder: string;
365
+ /**
366
+ * might have multiple receipts
367
+ */
368
+ receiptUrl: string[];
369
+ /**
370
+ * claim submission date as a Unix timestamp in milliseconds.
371
+ */
372
+ submissionDate?: number;
373
+ /**
374
+ * whether claim has been distributed
375
+ */
376
+ distributed: boolean;
377
+ /**
378
+ * claim distributed datetime as a Unix timestamp in milliseconds.
379
+ */
380
+ distributedDate: number;
381
+ /**
382
+ * transfer slip url
383
+ *
384
+ * making it an array to contain multiple slips, just in case.
385
+ */
386
+ transferProofUrl: string[];
387
+ }
388
+
309
389
  /** Navigation List Item */
310
390
  interface AppPage {
311
391
  /** Title shown in navigation list */
@@ -398,4 +478,4 @@ declare const PERMISSION: {
398
478
 
399
479
  declare const LIST_STATUS: string[];
400
480
 
401
- export { type AppPage, AppUser, AssignedCG, 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 };
481
+ export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, CG, type Claim, ClaimType, 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
@@ -502,6 +502,15 @@ var PERMISSION = {
502
502
  PASTORAL_ADMIN: "Pastoral Admin",
503
503
  ST_ADMIN: "Small Team Admin"
504
504
  };
505
+
506
+ // src/constants/claim.constant.ts
507
+ var ClaimType = /* @__PURE__ */ ((ClaimType2) => {
508
+ ClaimType2[ClaimType2["BIRTHDAY"] = 0] = "BIRTHDAY";
509
+ ClaimType2[ClaimType2["REFRESHMENT"] = 1] = "REFRESHMENT";
510
+ ClaimType2[ClaimType2["OUTREACH"] = 2] = "OUTREACH";
511
+ ClaimType2[ClaimType2["VENUE"] = 3] = "VENUE";
512
+ return ClaimType2;
513
+ })(ClaimType || {});
505
514
  export {
506
515
  AppUser,
507
516
  AssignedCG,
@@ -509,6 +518,7 @@ export {
509
518
  Attendance,
510
519
  BackupAttendance,
511
520
  CG,
521
+ ClaimType,
512
522
  Click,
513
523
  ClickAction,
514
524
  Cluster,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyc-type-def",
3
- "version": "2.2.1",
3
+ "version": "3.0.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",