cyc-type-def 2.2.2 → 3.0.1
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 +11 -0
- package/dist/index.d.cts +71 -1
- package/dist/index.d.ts +71 -1
- package/dist/index.js +10 -0
- package/package.json +1 -1
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["BIRTHDAY"] = "Birthday";
|
|
557
|
+
ClaimType2["REFRESHMENT"] = "Refreshment";
|
|
558
|
+
ClaimType2["OUTREACH"] = "Outreach";
|
|
559
|
+
ClaimType2["VENUE"] = "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
|
@@ -316,6 +316,76 @@ declare class AssignedCG {
|
|
|
316
316
|
constructor(cg: string);
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
declare enum ClaimType {
|
|
320
|
+
BIRTHDAY = "Birthday",
|
|
321
|
+
REFRESHMENT = "Refreshment",
|
|
322
|
+
OUTREACH = "Outreach",
|
|
323
|
+
VENUE = "Venue"
|
|
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
|
+
|
|
319
389
|
/** Navigation List Item */
|
|
320
390
|
interface AppPage {
|
|
321
391
|
/** Title shown in navigation list */
|
|
@@ -408,4 +478,4 @@ declare const PERMISSION: {
|
|
|
408
478
|
|
|
409
479
|
declare const LIST_STATUS: string[];
|
|
410
480
|
|
|
411
|
-
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
|
@@ -316,6 +316,76 @@ declare class AssignedCG {
|
|
|
316
316
|
constructor(cg: string);
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
declare enum ClaimType {
|
|
320
|
+
BIRTHDAY = "Birthday",
|
|
321
|
+
REFRESHMENT = "Refreshment",
|
|
322
|
+
OUTREACH = "Outreach",
|
|
323
|
+
VENUE = "Venue"
|
|
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
|
+
|
|
319
389
|
/** Navigation List Item */
|
|
320
390
|
interface AppPage {
|
|
321
391
|
/** Title shown in navigation list */
|
|
@@ -408,4 +478,4 @@ declare const PERMISSION: {
|
|
|
408
478
|
|
|
409
479
|
declare const LIST_STATUS: string[];
|
|
410
480
|
|
|
411
|
-
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["BIRTHDAY"] = "Birthday";
|
|
509
|
+
ClaimType2["REFRESHMENT"] = "Refreshment";
|
|
510
|
+
ClaimType2["OUTREACH"] = "Outreach";
|
|
511
|
+
ClaimType2["VENUE"] = "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,
|