@nimee/shared-types 1.0.326 → 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.
@@ -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";
@@ -144,6 +144,7 @@ export interface IEventModel {
144
144
  feeCollectionType: IFeeCollectionType;
145
145
  nimiFeeType: IFeeCollectionType;
146
146
  isPublic: boolean;
147
+ isMarketplaceOwnerDisable?: boolean;
147
148
  chartName?: string;
148
149
  seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
149
150
  segmentsBehavior?: IEventSegmentsBehavior;
@@ -164,3 +165,12 @@ export interface IEventModel {
164
165
  incomeTypeId?: number;
165
166
  incomeTypeName?: string;
166
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.326",
3
+ "version": "1.0.328",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -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";
@@ -127,6 +127,7 @@ export interface IEventModel {
127
127
  feeCollectionType: IFeeCollectionType;
128
128
  nimiFeeType: IFeeCollectionType;
129
129
  isPublic: boolean;
130
+ isMarketplaceOwnerDisable?: boolean; // marketplace owner hides the event from cross-marketplace listings
130
131
  chartName?: string;
131
132
  seasonTicketEventDiscounts?: ISeasonTicketEventDiscount[];
132
133
  segmentsBehavior?: IEventSegmentsBehavior;
@@ -147,3 +148,14 @@ export interface IEventModel {
147
148
  incomeTypeId?: number;
148
149
  incomeTypeName?: string;
149
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
+ };