@nimee/shared-types 1.0.309 → 1.0.311
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/account/account.d.ts +0 -1
- package/dist/account/account.js.map +1 -1
- package/dist/event/event.d.ts +1 -0
- package/dist/payment/endUserSeasonTicket.d.ts +2 -0
- package/dist/payment/endUserSeasonTicket.js.map +1 -1
- package/dist/payment/payment.d.ts +15 -0
- package/dist/user/endUser.d.ts +1 -9
- package/dist/user/user.d.ts +1 -1
- package/package.json +1 -1
- package/src/account/account.ts +0 -1
- package/src/event/event.ts +1 -0
- package/src/payment/endUserSeasonTicket.ts +5 -0
- package/src/payment/payment.ts +14 -0
- package/src/user/endUser.ts +1 -9
- package/src/user/user.ts +1 -1
- package/.claude/settings.local.json +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAMA,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC5B,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,mEAAY,CAAA;IACZ,+DAAU,CAAA;IACV,+DAAU,CAAA;IACV,iEAAW,CAAA;IACX,6DAAS,CAAA;IACT,6DAAS,CAAA;AACX,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B;AACD,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;AACvB,CAAC,EAVW,aAAa,6BAAb,aAAa,QAUxB;AACD,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,kDAA6B,CAAA;IAC7B,kDAA6B,CAAA;IAC7B,sCAAiB,CAAA;IACjB,oCAAe,C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Ae,CAAA;IACf,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;AACvB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAgBD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAMD,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;AACnB,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,gDAA0B,CAAA;IAC1B,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;AACnB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAiND,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;AACrB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
|
package/dist/event/event.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export interface IEventModel {
|
|
|
137
137
|
isWellnessEvent?: boolean;
|
|
138
138
|
trainer?: string;
|
|
139
139
|
is_manual_approve_buyer?: boolean;
|
|
140
|
+
showVoucherRedemption?: boolean;
|
|
140
141
|
isMoneyTransferred?: boolean;
|
|
141
142
|
feeCollectionType: IFeeCollectionType;
|
|
142
143
|
nimiFeeType: IFeeCollectionType;
|
|
@@ -109,6 +109,8 @@ export interface IEndUserSeasonTicketModel {
|
|
|
109
109
|
seasonTicketRequiredFields?: string[];
|
|
110
110
|
familyMemberCount?: number | null;
|
|
111
111
|
familyTotalPrice?: number | null;
|
|
112
|
+
familyAdultCount?: number | null;
|
|
113
|
+
familyChildCount?: number | null;
|
|
112
114
|
imageUrl?: string | null;
|
|
113
115
|
birth_date?: Date | null;
|
|
114
116
|
idOrPassport?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/payment/endUserSeasonTicket.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/payment/endUserSeasonTicket.ts"],"names":[],"mappings":";;;AAuGA,IAAY,uBAYX;AAZD,WAAY,uBAAuB;IACjC,4CAAiB,CAAA;IACjB,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,wEAA6C,CAAA;IAC7C,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;IACjB,0EAA+C,CAAA;IAC/C,0EAA+C,CAAA;IAC/C,gDAAqB,CAAA;AACvB,CAAC,EAZW,uBAAuB,uCAAvB,uBAAuB,QAYlC;AAED,sGAAsG;AACtG,uGAAuG;AACvG,oGAAoG;AACpG,kEAAkE;AACrD,QAAA,2BAA2B,GAA8B;IACpE,uBAAuB,CAAC,MAAM;IAC9B,uBAAuB,CAAC,oBAAoB;IAC5C,uBAAuB,CAAC,MAAM;CAC/B,CAAC;AAEF,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,8BAAe,CAAA;AACjB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"}
|
|
@@ -17,6 +17,19 @@ export interface IDiscountedPricePerTicket {
|
|
|
17
17
|
discountPercent: number;
|
|
18
18
|
};
|
|
19
19
|
name: string;
|
|
20
|
+
voucherRedemption?: string;
|
|
21
|
+
voucherObject?: {
|
|
22
|
+
_id: string;
|
|
23
|
+
sourceName?: string;
|
|
24
|
+
codeMasked?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface IVoucherSourceSnapshot {
|
|
28
|
+
_id: string;
|
|
29
|
+
displayName?: string;
|
|
30
|
+
providerType?: string;
|
|
31
|
+
code?: string;
|
|
32
|
+
confirmNumber?: string;
|
|
20
33
|
}
|
|
21
34
|
export interface IGetPriceResponse {
|
|
22
35
|
finalPriceWithNimiFee: number;
|
|
@@ -26,4 +39,6 @@ export interface IGetPriceResponse {
|
|
|
26
39
|
finalPriceWithNimiFeeForPaymentProvider: number;
|
|
27
40
|
entryPassTicketsUsedForDiscount: number;
|
|
28
41
|
discountedPricePerTicket: IDiscountedPricePerTicket[];
|
|
42
|
+
voucherDiscountAmount?: number;
|
|
43
|
+
voucherSourcesSnapshot?: IVoucherSourceSnapshot[];
|
|
29
44
|
}
|
package/dist/user/endUser.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface IEndUserModel {
|
|
|
46
46
|
fbProfile?: string;
|
|
47
47
|
social_link?: string;
|
|
48
48
|
token?: string;
|
|
49
|
-
forgetPasswordToken?: string;
|
|
49
|
+
forgetPasswordToken?: string | null;
|
|
50
50
|
roles?: Array<string>;
|
|
51
51
|
isEmailVerified?: Boolean;
|
|
52
52
|
isPhoneVerified?: Boolean;
|
|
@@ -66,14 +66,6 @@ export interface IEndUserModel {
|
|
|
66
66
|
externalPurchaseToken?: {
|
|
67
67
|
[paymentProvider: string]: string;
|
|
68
68
|
};
|
|
69
|
-
savedCard?: {
|
|
70
|
-
buyerKey?: string;
|
|
71
|
-
buyerCardMask?: string;
|
|
72
|
-
buyerCardExp?: string;
|
|
73
|
-
buyerName?: string;
|
|
74
|
-
provider?: string;
|
|
75
|
-
savedAt?: Date;
|
|
76
|
-
};
|
|
77
69
|
externalCustomerId?: {
|
|
78
70
|
[paymentProvider: string]: string;
|
|
79
71
|
};
|
package/dist/user/user.d.ts
CHANGED
package/package.json
CHANGED
package/src/account/account.ts
CHANGED
package/src/event/event.ts
CHANGED
|
@@ -117,6 +117,7 @@ export interface IEventModel {
|
|
|
117
117
|
isWellnessEvent?: boolean;
|
|
118
118
|
trainer?: string;
|
|
119
119
|
is_manual_approve_buyer?: boolean;
|
|
120
|
+
showVoucherRedemption?: boolean; // #801 — per-event voucher-redeem display gate (opt-in, default false)
|
|
120
121
|
isMoneyTransferred?: boolean;
|
|
121
122
|
feeCollectionType: IFeeCollectionType;
|
|
122
123
|
nimiFeeType: IFeeCollectionType;
|
|
@@ -90,6 +90,11 @@ export interface IEndUserSeasonTicketModel {
|
|
|
90
90
|
seasonTicketRequiredFields?: string[];
|
|
91
91
|
familyMemberCount?: number | null; // only on parent - total members excluding parent
|
|
92
92
|
familyTotalPrice?: number | null; // only on parent - total recurring charge
|
|
93
|
+
// Family composition requested at purchase. Historically transient (request-only) and read off the
|
|
94
|
+
// request object; now persisted on the parent so the async POS background executor (which re-fetches
|
|
95
|
+
// the row and cannot see the original request) can build the family member rows. Only set on a parent.
|
|
96
|
+
familyAdultCount?: number | null;
|
|
97
|
+
familyChildCount?: number | null;
|
|
93
98
|
imageUrl?: string | null; // profile image for family members (stored on subscription, not endUser)
|
|
94
99
|
birth_date?: Date | null; // birth date for family members (stored on subscription, not endUser)
|
|
95
100
|
idOrPassport?: string | null; // ID/passport. Adults: mirrors endUser.idOrPassport. Children: stored only here (no endUser).
|
package/src/payment/payment.ts
CHANGED
|
@@ -18,6 +18,17 @@ export interface IDiscountedPricePerTicket {
|
|
|
18
18
|
discountPercent: number;
|
|
19
19
|
};
|
|
20
20
|
name: string;
|
|
21
|
+
// #801 — the redemption id covering this ticket (truthy = voucher-covered) + its masked display form (§3.4)
|
|
22
|
+
voucherRedemption?: string;
|
|
23
|
+
voucherObject?: { _id: string; sourceName?: string; codeMasked?: string };
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface IVoucherSourceSnapshot {
|
|
27
|
+
_id: string;
|
|
28
|
+
displayName?: string;
|
|
29
|
+
providerType?: string;
|
|
30
|
+
code?: string;
|
|
31
|
+
confirmNumber?: string;
|
|
21
32
|
}
|
|
22
33
|
|
|
23
34
|
export interface IGetPriceResponse {
|
|
@@ -28,4 +39,7 @@ export interface IGetPriceResponse {
|
|
|
28
39
|
finalPriceWithNimiFeeForPaymentProvider: number;
|
|
29
40
|
entryPassTicketsUsedForDiscount: number;
|
|
30
41
|
discountedPricePerTicket: IDiscountedPricePerTicket[];
|
|
42
|
+
// #801 — order-level denormalized voucher fields (§3.3)
|
|
43
|
+
voucherDiscountAmount?: number;
|
|
44
|
+
voucherSourcesSnapshot?: IVoucherSourceSnapshot[];
|
|
31
45
|
}
|
package/src/user/endUser.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface IEndUserModel {
|
|
|
24
24
|
fbProfile?: string;
|
|
25
25
|
social_link?: string;
|
|
26
26
|
token?: string;
|
|
27
|
-
forgetPasswordToken?: string;
|
|
27
|
+
forgetPasswordToken?: string | null;
|
|
28
28
|
roles?: Array<string>;
|
|
29
29
|
isEmailVerified?: Boolean;
|
|
30
30
|
isPhoneVerified?: Boolean;
|
|
@@ -42,14 +42,6 @@ export interface IEndUserModel {
|
|
|
42
42
|
origin?: string;
|
|
43
43
|
credits?: number;
|
|
44
44
|
externalPurchaseToken?: { [paymentProvider: string]: string };
|
|
45
|
-
savedCard?: {
|
|
46
|
-
buyerKey?: string; // stored only; never serialized to FE
|
|
47
|
-
buyerCardMask?: string;
|
|
48
|
-
buyerCardExp?: string;
|
|
49
|
-
buyerName?: string;
|
|
50
|
-
provider?: string;
|
|
51
|
-
savedAt?: Date;
|
|
52
|
-
};
|
|
53
45
|
externalCustomerId?: { [paymentProvider: string]: string };
|
|
54
46
|
selectedHrc?: string;
|
|
55
47
|
allergies?: string;
|
package/src/user/user.ts
CHANGED