@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.
- package/dist/{Affiliate-Bilg9mgw.d.mts → Affiliate-C1bp5oR3.d.mts} +151 -4
- package/dist/{Affiliate-CfG8ctIo.d.ts → Affiliate-DXLwbX9Z.d.ts} +151 -4
- package/dist/{chunk-HHATQITH.mjs → chunk-MYZL22GL.mjs} +18 -4
- package/dist/chunk-MYZL22GL.mjs.map +1 -0
- package/dist/index.cjs +171 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +118 -13
- package/dist/index.d.ts +118 -13
- package/dist/index.mjs +88 -12
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +13 -0
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +4 -135
- package/dist/mongoose/index.d.ts +4 -135
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +171 -93
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +103 -14
- package/dist/service/index.d.ts +103 -14
- package/dist/service/index.mjs +72 -10
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-HHATQITH.mjs.map +0 -1
|
@@ -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,
|
|
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-
|
|
7
|
-
export { A as AffiliateModel, b as AssociateTypeSchema, C as CategorySchema,
|
|
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,
|
|
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 };
|
package/dist/mongoose/index.d.ts
CHANGED
|
@@ -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,
|
|
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-
|
|
7
|
-
export { A as AffiliateModel, b as AssociateTypeSchema, C as CategorySchema,
|
|
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,
|
|
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 };
|
package/dist/mongoose/index.mjs
CHANGED