@timardex/cluemart-server-shared 4.0.8 → 4.2.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.
@@ -3,8 +3,8 @@ import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, BillingCatalogE
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 SchemaOwnerType } from '../Affiliate-CpoM9_Bb.mjs';
7
- export { A as AffiliateModel, C as CategorySchema, a as ContactDetailsSchema, O as OwnerTypeSchema, R as RelationModel, b as RelationTypeSchema, c as ResourceImageTypeSchema, d as SchemaAffiliateResourceType, e as SchemaAffiliateReward, f as SchemaRelatedPostType, g as SchemaRelationType, h as SchemaStripeSubscription, i as SchemaUserActivityEvent, j as SchemaUserType, k as SocialMediaTypeSchema, U as UserModel, l as baseResourceFields, m as dateTimeSchema, n as locationGeoSchema, o as locationsSchema, r as relatedPostSchema, p as relationDatesSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-CpoM9_Bb.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';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
@@ -140,6 +140,27 @@ type SchemaAiImportedMarket = Omit<AiImportedMarket, "eventId" | "claimedByUserI
140
140
  duplicateHint?: string | null;
141
141
  /** Fields still missing before the market can be approved. */
142
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;
143
164
  };
144
165
  declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
145
166
  eventId?: mongoose__default.Types.ObjectId;
@@ -161,6 +182,27 @@ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMar
161
182
  duplicateHint?: string | null;
162
183
  /** Fields still missing before the market can be approved. */
163
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;
164
206
  } & Required<{
165
207
  _id: string;
166
208
  }> & {
@@ -284,8 +326,9 @@ declare const vendorProductTypeSchema: mongoose__default.Schema<VendorProductLis
284
326
  }> & {
285
327
  __v: number;
286
328
  }>;
287
- type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "unregisteredVendorId"> & {
329
+ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "ownerLicenceType" | "adIds" | "associates" | "unregisteredVendorId"> & {
288
330
  adIds?: ObjectId[];
331
+ associates?: SchemaAssociateType[] | null;
289
332
  /** Mirror of `categories[].name` for $text search (see vendorSearch). */
290
333
  categoriesNames?: string[];
291
334
  owner: SchemaOwnerType;
@@ -294,8 +337,9 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
294
337
  vendorInfoId: ObjectId;
295
338
  unregisteredVendorId?: ObjectId | null;
296
339
  };
297
- declare const VendorModel: mongoose__default.Model<SchemaVendorType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
340
+ declare const VendorModel: mongoose__default.Model<SchemaVendorType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "associates" | "owner" | "ownerLicenceType" | "vendorInfoId" | "unregisteredVendorId"> & {
298
341
  adIds?: ObjectId[];
342
+ associates?: SchemaAssociateType[] | null;
299
343
  /** Mirror of `categories[].name` for $text search (see vendorSearch). */
300
344
  categoriesNames?: string[];
301
345
  owner: SchemaOwnerType;
@@ -342,15 +386,17 @@ declare const UnregisteredVendorModel: mongoose__default.Model<SchemaUnregistere
342
386
  __v: number;
343
387
  }, any>;
344
388
 
345
- type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
389
+ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "ownerLicenceType" | "adIds" | "associates"> & {
346
390
  adIds?: ObjectId[];
391
+ associates?: SchemaAssociateType[] | null;
347
392
  eventInfoId: ObjectId;
348
393
  owner: SchemaOwnerType;
349
394
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
350
395
  searchName?: string;
351
396
  };
352
- declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
397
+ declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "associates" | "eventInfoId" | "owner" | "ownerLicenceType"> & {
353
398
  adIds?: ObjectId[];
399
+ associates?: SchemaAssociateType[] | null;
354
400
  eventInfoId: ObjectId;
355
401
  owner: SchemaOwnerType;
356
402
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
@@ -400,14 +446,16 @@ declare const EventDateArchiveModel: mongoose__default.Model<SchemaEventDateArch
400
446
  __v: number;
401
447
  }, any>;
402
448
 
403
- type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
449
+ type SchemaPartnerType = Omit<PartnerType, "owner" | "ownerLicenceType" | "adIds" | "associates"> & {
404
450
  adIds?: ObjectId[];
451
+ associates?: SchemaAssociateType[] | null;
405
452
  owner: SchemaOwnerType;
406
453
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
407
454
  searchName?: string;
408
455
  };
409
- declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
456
+ declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "associates" | "owner" | "ownerLicenceType"> & {
410
457
  adIds?: ObjectId[];
458
+ associates?: SchemaAssociateType[] | null;
411
459
  owner: SchemaOwnerType;
412
460
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
413
461
  searchName?: string;
@@ -565,4 +613,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
565
613
  __v: number;
566
614
  }, any>;
567
615
 
568
- 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, 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 };
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 };
@@ -3,8 +3,8 @@ import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, BillingCatalogE
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 SchemaOwnerType } from '../Affiliate-YoKkDGxN.js';
7
- export { A as AffiliateModel, C as CategorySchema, a as ContactDetailsSchema, O as OwnerTypeSchema, R as RelationModel, b as RelationTypeSchema, c as ResourceImageTypeSchema, d as SchemaAffiliateResourceType, e as SchemaAffiliateReward, f as SchemaRelatedPostType, g as SchemaRelationType, h as SchemaStripeSubscription, i as SchemaUserActivityEvent, j as SchemaUserType, k as SocialMediaTypeSchema, U as UserModel, l as baseResourceFields, m as dateTimeSchema, n as locationGeoSchema, o as locationsSchema, r as relatedPostSchema, p as relationDatesSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-YoKkDGxN.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';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
@@ -140,6 +140,27 @@ type SchemaAiImportedMarket = Omit<AiImportedMarket, "eventId" | "claimedByUserI
140
140
  duplicateHint?: string | null;
141
141
  /** Fields still missing before the market can be approved. */
142
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;
143
164
  };
144
165
  declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
145
166
  eventId?: mongoose__default.Types.ObjectId;
@@ -161,6 +182,27 @@ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMar
161
182
  duplicateHint?: string | null;
162
183
  /** Fields still missing before the market can be approved. */
163
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;
164
206
  } & Required<{
165
207
  _id: string;
166
208
  }> & {
@@ -284,8 +326,9 @@ declare const vendorProductTypeSchema: mongoose__default.Schema<VendorProductLis
284
326
  }> & {
285
327
  __v: number;
286
328
  }>;
287
- type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "unregisteredVendorId"> & {
329
+ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "ownerLicenceType" | "adIds" | "associates" | "unregisteredVendorId"> & {
288
330
  adIds?: ObjectId[];
331
+ associates?: SchemaAssociateType[] | null;
289
332
  /** Mirror of `categories[].name` for $text search (see vendorSearch). */
290
333
  categoriesNames?: string[];
291
334
  owner: SchemaOwnerType;
@@ -294,8 +337,9 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
294
337
  vendorInfoId: ObjectId;
295
338
  unregisteredVendorId?: ObjectId | null;
296
339
  };
297
- declare const VendorModel: mongoose__default.Model<SchemaVendorType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
340
+ declare const VendorModel: mongoose__default.Model<SchemaVendorType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "associates" | "owner" | "ownerLicenceType" | "vendorInfoId" | "unregisteredVendorId"> & {
298
341
  adIds?: ObjectId[];
342
+ associates?: SchemaAssociateType[] | null;
299
343
  /** Mirror of `categories[].name` for $text search (see vendorSearch). */
300
344
  categoriesNames?: string[];
301
345
  owner: SchemaOwnerType;
@@ -342,15 +386,17 @@ declare const UnregisteredVendorModel: mongoose__default.Model<SchemaUnregistere
342
386
  __v: number;
343
387
  }, any>;
344
388
 
345
- type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
389
+ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "ownerLicenceType" | "adIds" | "associates"> & {
346
390
  adIds?: ObjectId[];
391
+ associates?: SchemaAssociateType[] | null;
347
392
  eventInfoId: ObjectId;
348
393
  owner: SchemaOwnerType;
349
394
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
350
395
  searchName?: string;
351
396
  };
352
- declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
397
+ declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "associates" | "eventInfoId" | "owner" | "ownerLicenceType"> & {
353
398
  adIds?: ObjectId[];
399
+ associates?: SchemaAssociateType[] | null;
354
400
  eventInfoId: ObjectId;
355
401
  owner: SchemaOwnerType;
356
402
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
@@ -400,14 +446,16 @@ declare const EventDateArchiveModel: mongoose__default.Model<SchemaEventDateArch
400
446
  __v: number;
401
447
  }, any>;
402
448
 
403
- type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
449
+ type SchemaPartnerType = Omit<PartnerType, "owner" | "ownerLicenceType" | "adIds" | "associates"> & {
404
450
  adIds?: ObjectId[];
451
+ associates?: SchemaAssociateType[] | null;
405
452
  owner: SchemaOwnerType;
406
453
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
407
454
  searchName?: string;
408
455
  };
409
- declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
456
+ declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "associates" | "owner" | "ownerLicenceType"> & {
410
457
  adIds?: ObjectId[];
458
+ associates?: SchemaAssociateType[] | null;
411
459
  owner: SchemaOwnerType;
412
460
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
413
461
  searchName?: string;
@@ -565,4 +613,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
565
613
  __v: number;
566
614
  }, any>;
567
615
 
568
- 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, 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 };
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 };
@@ -12,6 +12,7 @@ import {
12
12
  AiImportRunModel,
13
13
  AiImportedMarketModel,
14
14
  AppSettingModel,
15
+ AssociateTypeSchema,
15
16
  AuthHandoffTokenModel,
16
17
  BILLING_CATALOG_COLLECTION_NAME,
17
18
  BillingCatalogModel,
@@ -60,7 +61,7 @@ import {
60
61
  termsAgreementSchema,
61
62
  userLicenseSchema,
62
63
  vendorProductTypeSchema
63
- } from "../chunk-TSKI3WB2.mjs";
64
+ } from "../chunk-ABW2L2HY.mjs";
64
65
  export {
65
66
  AD_BILLING_CATALOG_COLLECTION_NAME,
66
67
  AI_IMPORT_RUN_LOCK_KEY,
@@ -75,6 +76,7 @@ export {
75
76
  AiImportRunModel,
76
77
  AiImportedMarketModel,
77
78
  AppSettingModel,
79
+ AssociateTypeSchema,
78
80
  AuthHandoffTokenModel,
79
81
  BILLING_CATALOG_COLLECTION_NAME,
80
82
  BillingCatalogModel,