@nimee/shared-types 1.0.324 → 1.0.328
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/event/event.d.ts +12 -1
- package/package.json +1 -1
- package/src/event/event.ts +15 -1
package/dist/event/event.d.ts
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference types="mongoose/types/schematypes" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
-
import { IAccountModel, IRoleTypeEnum } from "../account";
|
|
26
|
+
import { IAccountModel, IMarketPlace, IRoleTypeEnum } from "../account";
|
|
27
27
|
import { IFeeCollectionType } from "../payment";
|
|
28
28
|
import { IPaymentCouponTypeEnum } from "../payment/coupon";
|
|
29
29
|
import mongoose from "mongoose";
|
|
@@ -133,6 +133,7 @@ export interface IEventModel {
|
|
|
133
133
|
seatsEventKey?: string;
|
|
134
134
|
isSeatsEvent?: boolean;
|
|
135
135
|
seatsIoOrphanSeatsMode?: "off" | "lenient" | "strict";
|
|
136
|
+
maxSeatsPerUser?: number | null;
|
|
136
137
|
isOnlyForMembers?: boolean;
|
|
137
138
|
otpGateMode?: IOtpGateMode;
|
|
138
139
|
isWellnessEvent?: boolean;
|
|
@@ -143,6 +144,7 @@ export interface IEventModel {
|
|
|
143
144
|
feeCollectionType: IFeeCollectionType;
|
|
144
145
|
nimiFeeType: IFeeCollectionType;
|
|
145
146
|
isPublic: boolean;
|
|
147
|
+
isMarketplaceOwnerDisable?: boolean;
|
|
146
148
|
chartName?: string;
|
|
147
149
|
seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
|
|
148
150
|
segmentsBehavior?: IEventSegmentsBehavior;
|
|
@@ -163,3 +165,12 @@ export interface IEventModel {
|
|
|
163
165
|
incomeTypeId?: number;
|
|
164
166
|
incomeTypeName?: string;
|
|
165
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Cross-marketplace listings populate the marketplace so the client can build an
|
|
170
|
+
* absolute event link. Only these fields are selected; every other endpoint
|
|
171
|
+
* keeps sending the bare id string on `IEventModel.marketplace`.
|
|
172
|
+
*/
|
|
173
|
+
export type IPopulatedEventMarketplace = Pick<IMarketPlace, "_id" | "name" | "baseAppURL">;
|
|
174
|
+
export type IFeaturedPublicEvent = Omit<IEventModel, "marketplace"> & {
|
|
175
|
+
marketplace?: IPopulatedEventMarketplace;
|
|
176
|
+
};
|
package/package.json
CHANGED
package/src/event/event.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAccountModel, IRoleTypeEnum } from "../account";
|
|
1
|
+
import { IAccountModel, IMarketPlace, IRoleTypeEnum } from "../account";
|
|
2
2
|
import { IFeeCollectionType } from "../payment";
|
|
3
3
|
import { IPaymentCouponTypeEnum } from "../payment/coupon";
|
|
4
4
|
import mongoose from "mongoose";
|
|
@@ -115,6 +115,8 @@ export interface IEventModel {
|
|
|
115
115
|
// Orphan-seat prevention mode for seats.io events (model + API schema define it; contract
|
|
116
116
|
// parity per repo guideline).
|
|
117
117
|
seatsIoOrphanSeatsMode?: "off" | "lenient" | "strict";
|
|
118
|
+
// Max seats a single buyer may select on a seats.io chart; null/unset = unlimited.
|
|
119
|
+
maxSeatsPerUser?: number | null;
|
|
118
120
|
isOnlyForMembers?: boolean;
|
|
119
121
|
otpGateMode?: IOtpGateMode;
|
|
120
122
|
isWellnessEvent?: boolean;
|
|
@@ -125,6 +127,7 @@ export interface IEventModel {
|
|
|
125
127
|
feeCollectionType: IFeeCollectionType;
|
|
126
128
|
nimiFeeType: IFeeCollectionType;
|
|
127
129
|
isPublic: boolean;
|
|
130
|
+
isMarketplaceOwnerDisable?: boolean; // marketplace owner hides the event from cross-marketplace listings
|
|
128
131
|
chartName?: string;
|
|
129
132
|
seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
|
|
130
133
|
segmentsBehavior?: IEventSegmentsBehavior;
|
|
@@ -145,3 +148,14 @@ export interface IEventModel {
|
|
|
145
148
|
incomeTypeId?: number;
|
|
146
149
|
incomeTypeName?: string;
|
|
147
150
|
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Cross-marketplace listings populate the marketplace so the client can build an
|
|
154
|
+
* absolute event link. Only these fields are selected; every other endpoint
|
|
155
|
+
* keeps sending the bare id string on `IEventModel.marketplace`.
|
|
156
|
+
*/
|
|
157
|
+
export type IPopulatedEventMarketplace = Pick<IMarketPlace, "_id" | "name" | "baseAppURL">;
|
|
158
|
+
|
|
159
|
+
export type IFeaturedPublicEvent = Omit<IEventModel, "marketplace"> & {
|
|
160
|
+
marketplace?: IPopulatedEventMarketplace;
|
|
161
|
+
};
|