@timardex/cluemart-server-shared 3.0.2 → 4.0.1

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,5 +1,5 @@
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, 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, GoogleImportedMarket, AiImportedMarket, 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';
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';
@@ -104,18 +104,59 @@ type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claime
104
104
  claimedByUserId?: mongoose__default.Types.ObjectId;
105
105
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
106
106
  searchName?: string;
107
+ /** Indexed earliest `dateTime` start instant for chronological pagination. */
108
+ earliestStartDate?: Date | null;
107
109
  };
108
110
  declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
109
111
  eventId?: mongoose__default.Types.ObjectId;
110
112
  claimedByUserId?: mongoose__default.Types.ObjectId;
111
113
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
112
114
  searchName?: string;
115
+ /** Indexed earliest `dateTime` start instant for chronological pagination. */
116
+ earliestStartDate?: Date | null;
113
117
  } & Required<{
114
118
  _id: string;
115
119
  }> & {
116
120
  __v: number;
117
121
  }, any>;
118
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
+ };
132
+ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
133
+ eventId?: mongoose__default.Types.ObjectId;
134
+ claimedByUserId?: mongoose__default.Types.ObjectId;
135
+ reviewedByUserId?: mongoose__default.Types.ObjectId;
136
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
137
+ searchName?: string;
138
+ /** Indexed earliest `dateTime` start instant for chronological pagination. */
139
+ earliestStartDate?: Date | null;
140
+ } & Required<{
141
+ _id: string;
142
+ }> & {
143
+ __v: number;
144
+ }, any>;
145
+
146
+ declare const SCRAPE_SITES_CONFIG_KEY = "scrapeSites";
147
+ type SchemaScrapeSiteItem = Omit<ScrapeSite, "_id" | "createdAt" | "updatedAt">;
148
+ type SchemaScrapeSiteConfig = {
149
+ key: string;
150
+ sites: Array<SchemaScrapeSiteItem & {
151
+ _id: mongoose__default.Types.ObjectId;
152
+ }>;
153
+ };
154
+ declare const ScrapeSiteConfigModel: mongoose__default.Model<SchemaScrapeSiteConfig, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaScrapeSiteConfig, {}, {}> & SchemaScrapeSiteConfig & {
155
+ _id: mongoose__default.Types.ObjectId;
156
+ } & {
157
+ __v: number;
158
+ }, any>;
159
+
119
160
  type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
120
161
  userId: ObjectId;
121
162
  };
@@ -434,4 +475,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
434
475
  __v: number;
435
476
  }, any>;
436
477
 
437
- export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdPurchaseModel, AppSettingModel, AuthHandoffTokenModel, type AuthHandoffTokenType, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, EventDateArchiveModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, 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, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
478
+ export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdPurchaseModel, 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_KEY, 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 };
@@ -1,5 +1,5 @@
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, 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, GoogleImportedMarket, AiImportedMarket, 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';
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';
@@ -104,18 +104,59 @@ type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claime
104
104
  claimedByUserId?: mongoose__default.Types.ObjectId;
105
105
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
106
106
  searchName?: string;
107
+ /** Indexed earliest `dateTime` start instant for chronological pagination. */
108
+ earliestStartDate?: Date | null;
107
109
  };
108
110
  declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
109
111
  eventId?: mongoose__default.Types.ObjectId;
110
112
  claimedByUserId?: mongoose__default.Types.ObjectId;
111
113
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
112
114
  searchName?: string;
115
+ /** Indexed earliest `dateTime` start instant for chronological pagination. */
116
+ earliestStartDate?: Date | null;
113
117
  } & Required<{
114
118
  _id: string;
115
119
  }> & {
116
120
  __v: number;
117
121
  }, any>;
118
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
+ };
132
+ declare const AiImportedMarketModel: mongoose__default.Model<SchemaAiImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaAiImportedMarket, {}, {}> & Omit<AiImportedMarket, "eventId" | "claimedByUserId" | "reviewedByUserId"> & {
133
+ eventId?: mongoose__default.Types.ObjectId;
134
+ claimedByUserId?: mongoose__default.Types.ObjectId;
135
+ reviewedByUserId?: mongoose__default.Types.ObjectId;
136
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
137
+ searchName?: string;
138
+ /** Indexed earliest `dateTime` start instant for chronological pagination. */
139
+ earliestStartDate?: Date | null;
140
+ } & Required<{
141
+ _id: string;
142
+ }> & {
143
+ __v: number;
144
+ }, any>;
145
+
146
+ declare const SCRAPE_SITES_CONFIG_KEY = "scrapeSites";
147
+ type SchemaScrapeSiteItem = Omit<ScrapeSite, "_id" | "createdAt" | "updatedAt">;
148
+ type SchemaScrapeSiteConfig = {
149
+ key: string;
150
+ sites: Array<SchemaScrapeSiteItem & {
151
+ _id: mongoose__default.Types.ObjectId;
152
+ }>;
153
+ };
154
+ declare const ScrapeSiteConfigModel: mongoose__default.Model<SchemaScrapeSiteConfig, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaScrapeSiteConfig, {}, {}> & SchemaScrapeSiteConfig & {
155
+ _id: mongoose__default.Types.ObjectId;
156
+ } & {
157
+ __v: number;
158
+ }, any>;
159
+
119
160
  type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
120
161
  userId: ObjectId;
121
162
  };
@@ -434,4 +475,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
434
475
  __v: number;
435
476
  }, any>;
436
477
 
437
- export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdPurchaseModel, AppSettingModel, AuthHandoffTokenModel, type AuthHandoffTokenType, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, EventDateArchiveModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, 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, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
478
+ export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdPurchaseModel, 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_KEY, 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 };
@@ -7,6 +7,7 @@ import {
7
7
  AdModel,
8
8
  AdPurchaseModel,
9
9
  AffiliateModel,
10
+ AiImportedMarketModel,
10
11
  AppSettingModel,
11
12
  AuthHandoffTokenModel,
12
13
  BILLING_CATALOG_COLLECTION_NAME,
@@ -32,7 +33,9 @@ import {
32
33
  RelationTypeSchema,
33
34
  ResourceActivityModel,
34
35
  ResourceImageTypeSchema,
36
+ SCRAPE_SITES_CONFIG_KEY,
35
37
  SchoolModel,
38
+ ScrapeSiteConfigModel,
36
39
  SocialMediaTypeSchema,
37
40
  StallTypeSchema,
38
41
  UnregisteredVendorModel,
@@ -54,7 +57,7 @@ import {
54
57
  termsAgreementSchema,
55
58
  userLicenseSchema,
56
59
  vendorProductTypeSchema
57
- } from "../chunk-7JWQ7WKJ.mjs";
60
+ } from "../chunk-J7ZINA3I.mjs";
58
61
  export {
59
62
  AD_BILLING_CATALOG_COLLECTION_NAME,
60
63
  APP_SETTINGS_ID,
@@ -64,6 +67,7 @@ export {
64
67
  AdModel,
65
68
  AdPurchaseModel,
66
69
  AffiliateModel,
70
+ AiImportedMarketModel,
67
71
  AppSettingModel,
68
72
  AuthHandoffTokenModel,
69
73
  BILLING_CATALOG_COLLECTION_NAME,
@@ -89,7 +93,9 @@ export {
89
93
  RelationTypeSchema,
90
94
  ResourceActivityModel,
91
95
  ResourceImageTypeSchema,
96
+ SCRAPE_SITES_CONFIG_KEY,
92
97
  SchoolModel,
98
+ ScrapeSiteConfigModel,
93
99
  SocialMediaTypeSchema,
94
100
  StallTypeSchema,
95
101
  UnregisteredVendorModel,