cyc-type-def 3.0.1 → 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,36 +351,42 @@ 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.
351
366
  */
352
- payable: string;
367
+ payableSheepId: string;
368
+ /**
369
+ * Name of the person who made the claim.
370
+ *
371
+ * Denormalization of payableSheepId for easier reference.
372
+ */
373
+ payableName: string;
353
374
  /**
354
375
  * payable bank account
355
376
  */
356
- bankAcc: string;
377
+ bankAcc?: string;
357
378
  /**
358
379
  * payable bank name
359
380
  */
360
- bankName: string;
381
+ bankName?: string;
361
382
  /**
362
383
  * payable bank account holder name
363
384
  */
364
- bankHolder: string;
385
+ bankHolder?: string;
365
386
  /**
366
387
  * might have multiple receipts
367
388
  */
368
- receiptUrl: string[];
389
+ receiptUrl?: string[];
369
390
  /**
370
391
  * claim submission date as a Unix timestamp in milliseconds.
371
392
  */
@@ -383,7 +404,14 @@ interface Claim extends Base {
383
404
  *
384
405
  * making it an array to contain multiple slips, just in case.
385
406
  */
386
- 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;
387
415
  }
388
416
 
389
417
  /** Navigation List Item */
@@ -478,4 +506,4 @@ declare const PERMISSION: {
478
506
 
479
507
  declare const LIST_STATUS: string[];
480
508
 
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 };
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,36 +351,42 @@ 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.
351
366
  */
352
- payable: string;
367
+ payableSheepId: string;
368
+ /**
369
+ * Name of the person who made the claim.
370
+ *
371
+ * Denormalization of payableSheepId for easier reference.
372
+ */
373
+ payableName: string;
353
374
  /**
354
375
  * payable bank account
355
376
  */
356
- bankAcc: string;
377
+ bankAcc?: string;
357
378
  /**
358
379
  * payable bank name
359
380
  */
360
- bankName: string;
381
+ bankName?: string;
361
382
  /**
362
383
  * payable bank account holder name
363
384
  */
364
- bankHolder: string;
385
+ bankHolder?: string;
365
386
  /**
366
387
  * might have multiple receipts
367
388
  */
368
- receiptUrl: string[];
389
+ receiptUrl?: string[];
369
390
  /**
370
391
  * claim submission date as a Unix timestamp in milliseconds.
371
392
  */
@@ -383,7 +404,14 @@ interface Claim extends Base {
383
404
  *
384
405
  * making it an array to contain multiple slips, just in case.
385
406
  */
386
- 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;
387
415
  }
388
416
 
389
417
  /** Navigation List Item */
@@ -478,4 +506,4 @@ declare const PERMISSION: {
478
506
 
479
507
  declare const LIST_STATUS: string[];
480
508
 
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 };
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.1",
3
+ "version": "3.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",