cyc-type-def 3.0.2 → 3.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.cjs CHANGED
@@ -26,6 +26,7 @@ __export(index_exports, {
26
26
  Attendance: () => Attendance,
27
27
  BackupAttendance: () => BackupAttendance,
28
28
  CG: () => CG,
29
+ ClaimStatus: () => ClaimStatus,
29
30
  ClaimType: () => ClaimType,
30
31
  Click: () => Click,
31
32
  ClickAction: () => ClickAction,
@@ -559,6 +560,13 @@ var ClaimType = /* @__PURE__ */ ((ClaimType2) => {
559
560
  ClaimType2["VENUE"] = "Venue";
560
561
  return ClaimType2;
561
562
  })(ClaimType || {});
563
+ var ClaimStatus = /* @__PURE__ */ ((ClaimStatus2) => {
564
+ ClaimStatus2["PENDING"] = "Pending";
565
+ ClaimStatus2["RECEIPT_COLLECTED"] = "Receipt Collected";
566
+ ClaimStatus2["SUBMITTED"] = "Submitted";
567
+ ClaimStatus2["DISTRIBUTED"] = "Distributed";
568
+ return ClaimStatus2;
569
+ })(ClaimStatus || {});
562
570
  // Annotate the CommonJS export names for ESM import in node:
563
571
  0 && (module.exports = {
564
572
  AppUser,
@@ -567,6 +575,7 @@ var ClaimType = /* @__PURE__ */ ((ClaimType2) => {
567
575
  Attendance,
568
576
  BackupAttendance,
569
577
  CG,
578
+ ClaimStatus,
570
579
  ClaimType,
571
580
  Click,
572
581
  ClickAction,
package/dist/index.d.cts CHANGED
@@ -322,6 +322,21 @@ declare enum ClaimType {
322
322
  OUTREACH = "Outreach",
323
323
  VENUE = "Venue"
324
324
  }
325
+ declare enum ClaimStatus {
326
+ /**
327
+ * Pending: claim record added in system, waiting for receipt collection
328
+ */
329
+ PENDING = "Pending",
330
+ /**
331
+ * Receipt Collected: receipt has been collected by admin, waiting for submission to church finance team
332
+ */
333
+ RECEIPT_COLLECTED = "Receipt Collected",
334
+ /**
335
+ * Submitted: claim has been submitted to church finance team for processing
336
+ */
337
+ SUBMITTED = "Submitted",
338
+ DISTRIBUTED = "Distributed"
339
+ }
325
340
 
326
341
  interface Claim extends Base {
327
342
  /**
@@ -336,15 +351,15 @@ interface Claim extends Base {
336
351
  /**
337
352
  * date of CG as a Unix timestamp in milliseconds.
338
353
  */
339
- cgDate: number;
340
- venue: string;
354
+ cgDate?: number;
355
+ venue?: string;
341
356
  /**
342
357
  * birthday star (for birthday claim)
343
358
  *
344
359
  * just key in the name will do, although when it is multiple stars
345
360
  */
346
361
  birthdayStar?: string;
347
- amount: number;
362
+ amount?: number;
348
363
  attendance: DisplayAttendance;
349
364
  /**
350
365
  * Sheep ID of the person who made the claim.
@@ -359,19 +374,19 @@ interface Claim extends Base {
359
374
  /**
360
375
  * payable bank account
361
376
  */
362
- bankAcc: string;
377
+ bankAcc?: string;
363
378
  /**
364
379
  * payable bank name
365
380
  */
366
- bankName: string;
381
+ bankName?: string;
367
382
  /**
368
383
  * payable bank account holder name
369
384
  */
370
- bankHolder: string;
385
+ bankHolder?: string;
371
386
  /**
372
387
  * might have multiple receipts
373
388
  */
374
- receiptUrl: string[];
389
+ receiptUrl?: string[];
375
390
  /**
376
391
  * claim submission date as a Unix timestamp in milliseconds.
377
392
  */
@@ -389,7 +404,14 @@ interface Claim extends Base {
389
404
  *
390
405
  * making it an array to contain multiple slips, just in case.
391
406
  */
392
- transferProofUrl: string[];
407
+ transferProofUrl?: string[];
408
+ /**
409
+ * is receipt collected by admin or not
410
+ *
411
+ * init as false
412
+ */
413
+ receiptCollected: boolean;
414
+ status: string;
393
415
  }
394
416
 
395
417
  /** Navigation List Item */
@@ -484,4 +506,4 @@ declare const PERMISSION: {
484
506
 
485
507
  declare const LIST_STATUS: string[];
486
508
 
487
- 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 };
509
+ export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, CG, type Claim, ClaimStatus, 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
@@ -322,6 +322,21 @@ declare enum ClaimType {
322
322
  OUTREACH = "Outreach",
323
323
  VENUE = "Venue"
324
324
  }
325
+ declare enum ClaimStatus {
326
+ /**
327
+ * Pending: claim record added in system, waiting for receipt collection
328
+ */
329
+ PENDING = "Pending",
330
+ /**
331
+ * Receipt Collected: receipt has been collected by admin, waiting for submission to church finance team
332
+ */
333
+ RECEIPT_COLLECTED = "Receipt Collected",
334
+ /**
335
+ * Submitted: claim has been submitted to church finance team for processing
336
+ */
337
+ SUBMITTED = "Submitted",
338
+ DISTRIBUTED = "Distributed"
339
+ }
325
340
 
326
341
  interface Claim extends Base {
327
342
  /**
@@ -336,15 +351,15 @@ interface Claim extends Base {
336
351
  /**
337
352
  * date of CG as a Unix timestamp in milliseconds.
338
353
  */
339
- cgDate: number;
340
- venue: string;
354
+ cgDate?: number;
355
+ venue?: string;
341
356
  /**
342
357
  * birthday star (for birthday claim)
343
358
  *
344
359
  * just key in the name will do, although when it is multiple stars
345
360
  */
346
361
  birthdayStar?: string;
347
- amount: number;
362
+ amount?: number;
348
363
  attendance: DisplayAttendance;
349
364
  /**
350
365
  * Sheep ID of the person who made the claim.
@@ -359,19 +374,19 @@ interface Claim extends Base {
359
374
  /**
360
375
  * payable bank account
361
376
  */
362
- bankAcc: string;
377
+ bankAcc?: string;
363
378
  /**
364
379
  * payable bank name
365
380
  */
366
- bankName: string;
381
+ bankName?: string;
367
382
  /**
368
383
  * payable bank account holder name
369
384
  */
370
- bankHolder: string;
385
+ bankHolder?: string;
371
386
  /**
372
387
  * might have multiple receipts
373
388
  */
374
- receiptUrl: string[];
389
+ receiptUrl?: string[];
375
390
  /**
376
391
  * claim submission date as a Unix timestamp in milliseconds.
377
392
  */
@@ -389,7 +404,14 @@ interface Claim extends Base {
389
404
  *
390
405
  * making it an array to contain multiple slips, just in case.
391
406
  */
392
- transferProofUrl: string[];
407
+ transferProofUrl?: string[];
408
+ /**
409
+ * is receipt collected by admin or not
410
+ *
411
+ * init as false
412
+ */
413
+ receiptCollected: boolean;
414
+ status: string;
393
415
  }
394
416
 
395
417
  /** Navigation List Item */
@@ -484,4 +506,4 @@ declare const PERMISSION: {
484
506
 
485
507
  declare const LIST_STATUS: string[];
486
508
 
487
- 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 };
509
+ export { type AppPage, AppUser, AssignedCG, AttSheep, Attendance, BackupAttendance, type Base, type BaseDialog, CG, type Claim, ClaimStatus, 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
@@ -511,6 +511,13 @@ var ClaimType = /* @__PURE__ */ ((ClaimType2) => {
511
511
  ClaimType2["VENUE"] = "Venue";
512
512
  return ClaimType2;
513
513
  })(ClaimType || {});
514
+ var ClaimStatus = /* @__PURE__ */ ((ClaimStatus2) => {
515
+ ClaimStatus2["PENDING"] = "Pending";
516
+ ClaimStatus2["RECEIPT_COLLECTED"] = "Receipt Collected";
517
+ ClaimStatus2["SUBMITTED"] = "Submitted";
518
+ ClaimStatus2["DISTRIBUTED"] = "Distributed";
519
+ return ClaimStatus2;
520
+ })(ClaimStatus || {});
514
521
  export {
515
522
  AppUser,
516
523
  AssignedCG,
@@ -518,6 +525,7 @@ export {
518
525
  Attendance,
519
526
  BackupAttendance,
520
527
  CG,
528
+ ClaimStatus,
521
529
  ClaimType,
522
530
  Click,
523
531
  ClickAction,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyc-type-def",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",