@timardex/cluemart-server-shared 4.2.1 → 5.1.0

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.
@@ -1,10 +1,10 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, AiImportedMarket, EnumImportedMarketDeactivationReason, EnumAiImportRunStatus, AiImportUsage, ScrapeSite, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, DateTimeType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType } from '@timardex/cluemart-shared';
2
+ import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, EnumAiImportRunStatus, AiImportUsage, ScrapeSite, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventInfoType, StallType, RefundPolicy, DateTimeType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from '../index-BptxBl9x.mjs';
5
5
  export { C as ChatModel, N as NotificationModel, S as SchemaChatMessageReactionType, a as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, d as SchemaChatType, e as SchemaCreateBulkNotificationInput, f as SchemaNotificationType, g as SchemaParticipantType } from '../index-BptxBl9x.mjs';
6
- import { S as SchemaAssociateType, a as SchemaOwnerType } from '../Affiliate-Bilg9mgw.mjs';
7
- export { A as AffiliateModel, b as AssociateTypeSchema, C as CategorySchema, c as ContactDetailsSchema, O as OwnerTypeSchema, R as RelationModel, d as RelationTypeSchema, e as ResourceImageTypeSchema, f as SchemaAffiliateResourceType, g as SchemaAffiliateReward, h as SchemaRelatedPostType, i as SchemaRelationType, j as SchemaStripeSubscription, k as SchemaUserActivityEvent, l as SchemaUserAssociatedResourcesType, m as SchemaUserType, n as SocialMediaTypeSchema, U as UserModel, o as baseResourceFields, p as dateTimeSchema, q as locationGeoSchema, r as locationsSchema, s as relatedPostSchema, t as relationDatesSchema, u as socialShareResourceSchema, v as termsAgreementSchema, w as userLicenseSchema } from '../Affiliate-Bilg9mgw.mjs';
6
+ import { S as SchemaAssociateType, a as SchemaOwnerType } from '../Affiliate-C1bp5oR3.mjs';
7
+ export { A as AffiliateModel, b as AiImportedMarketModel, c as AssociateTypeSchema, C as CategorySchema, d as ContactDetailsSchema, E as EventModel, G as GoogleImportedMarketModel, O as OwnerTypeSchema, R as RelationModel, e as RelationTypeSchema, f as ResourceImageTypeSchema, g as SchemaAffiliateResourceType, h as SchemaAffiliateReward, i as SchemaAiImportedMarket, j as SchemaEventType, k as SchemaGoogleImportedMarket, l as SchemaRelatedPostType, m as SchemaRelationType, n as SchemaStripeSubscription, o as SchemaUserActivityEvent, p as SchemaUserAssociatedResourcesType, q as SchemaUserType, r as SocialMediaTypeSchema, U as UserModel, s as baseResourceFields, t as dateTimeSchema, u as locationGeoSchema, v as locationsSchema, w as relatedPostSchema, x as relationDatesSchema, y as socialShareResourceSchema, z as termsAgreementSchema, B as userLicenseSchema } from '../Affiliate-C1bp5oR3.mjs';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
@@ -99,116 +99,6 @@ declare const ChatReportModel: mongoose__default.Model<SchemaChatReportType, {},
99
99
  __v: number;
100
100
  }, any>;
101
101
 
102
- type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
103
- eventId?: mongoose__default.Types.ObjectId;
104
- claimedByUserId?: mongoose__default.Types.ObjectId;
105
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
106
- searchName?: string;
107
- /** Indexed earliest `dateTime` start instant for chronological pagination. */
108
- earliestStartDate?: Date | null;
109
- };
110
- declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
111
- eventId?: mongoose__default.Types.ObjectId;
112
- claimedByUserId?: mongoose__default.Types.ObjectId;
113
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
114
- searchName?: string;
115
- /** Indexed earliest `dateTime` start instant for chronological pagination. */
116
- earliestStartDate?: Date | null;
117
- } & Required<{
118
- _id: string;
119
- }> & {
120
- __v: number;
121
- }, any>;
122
-
123
- type SchemaAiImportedMarket = Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
124
- eventId?: mongoose__default.Types.ObjectId;
125
- claimedByUserId?: mongoose__default.Types.ObjectId;
126
- reviewedByUserId?: mongoose__default.Types.ObjectId;
127
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
128
- searchName?: string;
129
- /** Indexed earliest `dateTime` start instant for chronological pagination. */
130
- earliestStartDate?: Date | null;
131
- /** Set to the run timestamp each time the market appears on its source. */
132
- lastSeenAt?: Date | null;
133
- /** Consecutive successful runs where the market did not appear. */
134
- missedRuns?: number;
135
- /** Hash of the raw model description used to skip unchanged re-rewrites. */
136
- descriptionSourceHash?: string | null;
137
- /** Why an active market was deactivated (null while active). */
138
- deactivatedReason?: EnumImportedMarketDeactivationReason | null;
139
- /** sourceKey of an existing AI market this one may duplicate (soft flag). */
140
- duplicateHint?: string | null;
141
- /** Fields still missing before the market can be approved. */
142
- missingFields?: string[];
143
- /**
144
- * Set when an admin edits a queued candidate. The importer stops overwriting
145
- * such a document's content on re-scrape (it only refreshes bookkeeping), so a
146
- * reviewer's fix is never replaced by the source data; approval clears it.
147
- */
148
- reviewerEditedAt?: Date | null;
149
- /**
150
- * True while the published listing's city is unknown: approval fell back to
151
- * the region because the document never carried one. The duplicate matcher
152
- * treats such a listing as matching any city, which the publication key alone
153
- * cannot express, so approvals of the same name + region are serialised.
154
- * Rewritten by every approval (with the key), so a value left on an
155
- * unpublished document is stale but self-correcting.
156
- */
157
- publicationCityUnknown?: boolean | null;
158
- /**
159
- * Normalized `region::name::city` key held only while the market is the
160
- * published listing for that market. A unique partial index on it makes
161
- * "one published listing per market" a durable constraint (see below).
162
- */
163
- publicationKey?: string | null;
164
- };
165
- declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
166
- eventId?: mongoose__default.Types.ObjectId;
167
- claimedByUserId?: mongoose__default.Types.ObjectId;
168
- reviewedByUserId?: mongoose__default.Types.ObjectId;
169
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
170
- searchName?: string;
171
- /** Indexed earliest `dateTime` start instant for chronological pagination. */
172
- earliestStartDate?: Date | null;
173
- /** Set to the run timestamp each time the market appears on its source. */
174
- lastSeenAt?: Date | null;
175
- /** Consecutive successful runs where the market did not appear. */
176
- missedRuns?: number;
177
- /** Hash of the raw model description used to skip unchanged re-rewrites. */
178
- descriptionSourceHash?: string | null;
179
- /** Why an active market was deactivated (null while active). */
180
- deactivatedReason?: EnumImportedMarketDeactivationReason | null;
181
- /** sourceKey of an existing AI market this one may duplicate (soft flag). */
182
- duplicateHint?: string | null;
183
- /** Fields still missing before the market can be approved. */
184
- missingFields?: string[];
185
- /**
186
- * Set when an admin edits a queued candidate. The importer stops overwriting
187
- * such a document's content on re-scrape (it only refreshes bookkeeping), so a
188
- * reviewer's fix is never replaced by the source data; approval clears it.
189
- */
190
- reviewerEditedAt?: Date | null;
191
- /**
192
- * True while the published listing's city is unknown: approval fell back to
193
- * the region because the document never carried one. The duplicate matcher
194
- * treats such a listing as matching any city, which the publication key alone
195
- * cannot express, so approvals of the same name + region are serialised.
196
- * Rewritten by every approval (with the key), so a value left on an
197
- * unpublished document is stale but self-correcting.
198
- */
199
- publicationCityUnknown?: boolean | null;
200
- /**
201
- * Normalized `region::name::city` key held only while the market is the
202
- * published listing for that market. A unique partial index on it makes
203
- * "one published listing per market" a durable constraint (see below).
204
- */
205
- publicationKey?: string | null;
206
- } & Required<{
207
- _id: string;
208
- }> & {
209
- __v: number;
210
- }, any>;
211
-
212
102
  type AiImportRunStatus = EnumAiImportRunStatus;
213
103
  type AiImportSiteResult = {
214
104
  error?: string | null;
@@ -386,27 +276,6 @@ declare const UnregisteredVendorModel: mongoose__default.Model<SchemaUnregistere
386
276
  __v: number;
387
277
  }, any>;
388
278
 
389
- type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "ownerLicenceType" | "adIds" | "associates"> & {
390
- adIds?: ObjectId[];
391
- associates?: SchemaAssociateType[] | null;
392
- eventInfoId: ObjectId;
393
- owner: SchemaOwnerType;
394
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
395
- searchName?: string;
396
- };
397
- declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "associates" | "eventInfoId" | "owner" | "ownerLicenceType"> & {
398
- adIds?: ObjectId[];
399
- associates?: SchemaAssociateType[] | null;
400
- eventInfoId: ObjectId;
401
- owner: SchemaOwnerType;
402
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
403
- searchName?: string;
404
- } & Required<{
405
- _id: string;
406
- }> & {
407
- __v: number;
408
- }, any>;
409
-
410
279
  declare const StallTypeSchema: mongoose__default.Schema<StallType, mongoose__default.Model<StallType, any, any, any, mongoose__default.Document<unknown, any, StallType, any, {}> & StallType & {
411
280
  _id: mongoose__default.Types.ObjectId;
412
281
  } & {
@@ -613,4 +482,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
613
482
  __v: number;
614
483
  }, any>;
615
484
 
616
- export { AD_BILLING_CATALOG_COLLECTION_NAME, AI_IMPORT_RUN_LOCK_KEY, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdPurchaseModel, AiImportRunLockModel, AiImportRunModel, type AiImportRunStatus, type AiImportSiteResult, AiImportedMarketModel, AppSettingModel, AuthHandoffTokenModel, type AuthHandoffTokenType, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, EventDateArchiveModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, SCRAPE_SITES_CONFIG_ID, type SchemaAiImportRun, type SchemaAiImportedMarket, type SchemaAppSettingsType, SchemaAssociateType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventDateArchiveType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaImpersonationAuditType, type SchemaImpersonationSessionType, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, ScrapeSiteConfigModel, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
485
+ export { AD_BILLING_CATALOG_COLLECTION_NAME, AI_IMPORT_RUN_LOCK_KEY, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdPurchaseModel, AiImportRunLockModel, AiImportRunModel, type AiImportRunStatus, type AiImportSiteResult, AppSettingModel, AuthHandoffTokenModel, type AuthHandoffTokenType, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, EventDateArchiveModel, EventInfoModel, GameModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, SCRAPE_SITES_CONFIG_ID, type SchemaAiImportRun, type SchemaAppSettingsType, SchemaAssociateType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventDateArchiveType, type SchemaEventInfoType, type SchemaGameType, type SchemaImpersonationAuditType, type SchemaImpersonationSessionType, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, ScrapeSiteConfigModel, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
@@ -1,10 +1,10 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, AiImportedMarket, EnumImportedMarketDeactivationReason, EnumAiImportRunStatus, AiImportUsage, ScrapeSite, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, DateTimeType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType } from '@timardex/cluemart-shared';
2
+ import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, EnumAiImportRunStatus, AiImportUsage, ScrapeSite, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventInfoType, StallType, RefundPolicy, DateTimeType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from '../index-BptxBl9x.js';
5
5
  export { C as ChatModel, N as NotificationModel, S as SchemaChatMessageReactionType, a as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, d as SchemaChatType, e as SchemaCreateBulkNotificationInput, f as SchemaNotificationType, g as SchemaParticipantType } from '../index-BptxBl9x.js';
6
- import { S as SchemaAssociateType, a as SchemaOwnerType } from '../Affiliate-CfG8ctIo.js';
7
- export { A as AffiliateModel, b as AssociateTypeSchema, C as CategorySchema, c as ContactDetailsSchema, O as OwnerTypeSchema, R as RelationModel, d as RelationTypeSchema, e as ResourceImageTypeSchema, f as SchemaAffiliateResourceType, g as SchemaAffiliateReward, h as SchemaRelatedPostType, i as SchemaRelationType, j as SchemaStripeSubscription, k as SchemaUserActivityEvent, l as SchemaUserAssociatedResourcesType, m as SchemaUserType, n as SocialMediaTypeSchema, U as UserModel, o as baseResourceFields, p as dateTimeSchema, q as locationGeoSchema, r as locationsSchema, s as relatedPostSchema, t as relationDatesSchema, u as socialShareResourceSchema, v as termsAgreementSchema, w as userLicenseSchema } from '../Affiliate-CfG8ctIo.js';
6
+ import { S as SchemaAssociateType, a as SchemaOwnerType } from '../Affiliate-DXLwbX9Z.js';
7
+ export { A as AffiliateModel, b as AiImportedMarketModel, c as AssociateTypeSchema, C as CategorySchema, d as ContactDetailsSchema, E as EventModel, G as GoogleImportedMarketModel, O as OwnerTypeSchema, R as RelationModel, e as RelationTypeSchema, f as ResourceImageTypeSchema, g as SchemaAffiliateResourceType, h as SchemaAffiliateReward, i as SchemaAiImportedMarket, j as SchemaEventType, k as SchemaGoogleImportedMarket, l as SchemaRelatedPostType, m as SchemaRelationType, n as SchemaStripeSubscription, o as SchemaUserActivityEvent, p as SchemaUserAssociatedResourcesType, q as SchemaUserType, r as SocialMediaTypeSchema, U as UserModel, s as baseResourceFields, t as dateTimeSchema, u as locationGeoSchema, v as locationsSchema, w as relatedPostSchema, x as relationDatesSchema, y as socialShareResourceSchema, z as termsAgreementSchema, B as userLicenseSchema } from '../Affiliate-DXLwbX9Z.js';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
@@ -99,116 +99,6 @@ declare const ChatReportModel: mongoose__default.Model<SchemaChatReportType, {},
99
99
  __v: number;
100
100
  }, any>;
101
101
 
102
- type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
103
- eventId?: mongoose__default.Types.ObjectId;
104
- claimedByUserId?: mongoose__default.Types.ObjectId;
105
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
106
- searchName?: string;
107
- /** Indexed earliest `dateTime` start instant for chronological pagination. */
108
- earliestStartDate?: Date | null;
109
- };
110
- declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
111
- eventId?: mongoose__default.Types.ObjectId;
112
- claimedByUserId?: mongoose__default.Types.ObjectId;
113
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
114
- searchName?: string;
115
- /** Indexed earliest `dateTime` start instant for chronological pagination. */
116
- earliestStartDate?: Date | null;
117
- } & Required<{
118
- _id: string;
119
- }> & {
120
- __v: number;
121
- }, any>;
122
-
123
- type SchemaAiImportedMarket = Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
124
- eventId?: mongoose__default.Types.ObjectId;
125
- claimedByUserId?: mongoose__default.Types.ObjectId;
126
- reviewedByUserId?: mongoose__default.Types.ObjectId;
127
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
128
- searchName?: string;
129
- /** Indexed earliest `dateTime` start instant for chronological pagination. */
130
- earliestStartDate?: Date | null;
131
- /** Set to the run timestamp each time the market appears on its source. */
132
- lastSeenAt?: Date | null;
133
- /** Consecutive successful runs where the market did not appear. */
134
- missedRuns?: number;
135
- /** Hash of the raw model description used to skip unchanged re-rewrites. */
136
- descriptionSourceHash?: string | null;
137
- /** Why an active market was deactivated (null while active). */
138
- deactivatedReason?: EnumImportedMarketDeactivationReason | null;
139
- /** sourceKey of an existing AI market this one may duplicate (soft flag). */
140
- duplicateHint?: string | null;
141
- /** Fields still missing before the market can be approved. */
142
- missingFields?: string[];
143
- /**
144
- * Set when an admin edits a queued candidate. The importer stops overwriting
145
- * such a document's content on re-scrape (it only refreshes bookkeeping), so a
146
- * reviewer's fix is never replaced by the source data; approval clears it.
147
- */
148
- reviewerEditedAt?: Date | null;
149
- /**
150
- * True while the published listing's city is unknown: approval fell back to
151
- * the region because the document never carried one. The duplicate matcher
152
- * treats such a listing as matching any city, which the publication key alone
153
- * cannot express, so approvals of the same name + region are serialised.
154
- * Rewritten by every approval (with the key), so a value left on an
155
- * unpublished document is stale but self-correcting.
156
- */
157
- publicationCityUnknown?: boolean | null;
158
- /**
159
- * Normalized `region::name::city` key held only while the market is the
160
- * published listing for that market. A unique partial index on it makes
161
- * "one published listing per market" a durable constraint (see below).
162
- */
163
- publicationKey?: string | null;
164
- };
165
- declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
166
- eventId?: mongoose__default.Types.ObjectId;
167
- claimedByUserId?: mongoose__default.Types.ObjectId;
168
- reviewedByUserId?: mongoose__default.Types.ObjectId;
169
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
170
- searchName?: string;
171
- /** Indexed earliest `dateTime` start instant for chronological pagination. */
172
- earliestStartDate?: Date | null;
173
- /** Set to the run timestamp each time the market appears on its source. */
174
- lastSeenAt?: Date | null;
175
- /** Consecutive successful runs where the market did not appear. */
176
- missedRuns?: number;
177
- /** Hash of the raw model description used to skip unchanged re-rewrites. */
178
- descriptionSourceHash?: string | null;
179
- /** Why an active market was deactivated (null while active). */
180
- deactivatedReason?: EnumImportedMarketDeactivationReason | null;
181
- /** sourceKey of an existing AI market this one may duplicate (soft flag). */
182
- duplicateHint?: string | null;
183
- /** Fields still missing before the market can be approved. */
184
- missingFields?: string[];
185
- /**
186
- * Set when an admin edits a queued candidate. The importer stops overwriting
187
- * such a document's content on re-scrape (it only refreshes bookkeeping), so a
188
- * reviewer's fix is never replaced by the source data; approval clears it.
189
- */
190
- reviewerEditedAt?: Date | null;
191
- /**
192
- * True while the published listing's city is unknown: approval fell back to
193
- * the region because the document never carried one. The duplicate matcher
194
- * treats such a listing as matching any city, which the publication key alone
195
- * cannot express, so approvals of the same name + region are serialised.
196
- * Rewritten by every approval (with the key), so a value left on an
197
- * unpublished document is stale but self-correcting.
198
- */
199
- publicationCityUnknown?: boolean | null;
200
- /**
201
- * Normalized `region::name::city` key held only while the market is the
202
- * published listing for that market. A unique partial index on it makes
203
- * "one published listing per market" a durable constraint (see below).
204
- */
205
- publicationKey?: string | null;
206
- } & Required<{
207
- _id: string;
208
- }> & {
209
- __v: number;
210
- }, any>;
211
-
212
102
  type AiImportRunStatus = EnumAiImportRunStatus;
213
103
  type AiImportSiteResult = {
214
104
  error?: string | null;
@@ -386,27 +276,6 @@ declare const UnregisteredVendorModel: mongoose__default.Model<SchemaUnregistere
386
276
  __v: number;
387
277
  }, any>;
388
278
 
389
- type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "ownerLicenceType" | "adIds" | "associates"> & {
390
- adIds?: ObjectId[];
391
- associates?: SchemaAssociateType[] | null;
392
- eventInfoId: ObjectId;
393
- owner: SchemaOwnerType;
394
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
395
- searchName?: string;
396
- };
397
- declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "associates" | "eventInfoId" | "owner" | "ownerLicenceType"> & {
398
- adIds?: ObjectId[];
399
- associates?: SchemaAssociateType[] | null;
400
- eventInfoId: ObjectId;
401
- owner: SchemaOwnerType;
402
- /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
403
- searchName?: string;
404
- } & Required<{
405
- _id: string;
406
- }> & {
407
- __v: number;
408
- }, any>;
409
-
410
279
  declare const StallTypeSchema: mongoose__default.Schema<StallType, mongoose__default.Model<StallType, any, any, any, mongoose__default.Document<unknown, any, StallType, any, {}> & StallType & {
411
280
  _id: mongoose__default.Types.ObjectId;
412
281
  } & {
@@ -613,4 +482,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
613
482
  __v: number;
614
483
  }, any>;
615
484
 
616
- export { AD_BILLING_CATALOG_COLLECTION_NAME, AI_IMPORT_RUN_LOCK_KEY, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdPurchaseModel, AiImportRunLockModel, AiImportRunModel, type AiImportRunStatus, type AiImportSiteResult, AiImportedMarketModel, AppSettingModel, AuthHandoffTokenModel, type AuthHandoffTokenType, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, EventDateArchiveModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, SCRAPE_SITES_CONFIG_ID, type SchemaAiImportRun, type SchemaAiImportedMarket, type SchemaAppSettingsType, SchemaAssociateType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventDateArchiveType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaImpersonationAuditType, type SchemaImpersonationSessionType, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, ScrapeSiteConfigModel, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
485
+ export { AD_BILLING_CATALOG_COLLECTION_NAME, AI_IMPORT_RUN_LOCK_KEY, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdPurchaseModel, AiImportRunLockModel, AiImportRunModel, type AiImportRunStatus, type AiImportSiteResult, AppSettingModel, AuthHandoffTokenModel, type AuthHandoffTokenType, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, EventDateArchiveModel, EventInfoModel, GameModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, SCRAPE_SITES_CONFIG_ID, type SchemaAiImportRun, type SchemaAppSettingsType, SchemaAssociateType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventDateArchiveType, type SchemaEventInfoType, type SchemaGameType, type SchemaImpersonationAuditType, type SchemaImpersonationSessionType, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, ScrapeSiteConfigModel, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
@@ -61,7 +61,7 @@ import {
61
61
  termsAgreementSchema,
62
62
  userLicenseSchema,
63
63
  vendorProductTypeSchema
64
- } from "../chunk-HHATQITH.mjs";
64
+ } from "../chunk-MYZL22GL.mjs";
65
65
  export {
66
66
  AD_BILLING_CATALOG_COLLECTION_NAME,
67
67
  AI_IMPORT_RUN_LOCK_KEY,