@timardex/cluemart-server-shared 1.1.39 → 2.0.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, BillingCatalogPriceHistoryEntry, BillingCatalogEntryType, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType } from '@timardex/cluemart-shared';
2
+ import { AdType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
- import { O as ObjectId } from '../index-zC8a3adw.mjs';
5
- export { C as ChatModel, N as NotificationModel, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../index-zC8a3adw.mjs';
6
- import { S as SchemaOwnerType } from '../Affiliate-BLh0EcNI.mjs';
7
- export { A as AffiliateModel, C as CategorySchema, c as ContactDetailsSchema, O as OwnerTypeSchema, k as RelationModel, j as RelationTypeSchema, R as ResourceImageTypeSchema, q as SchemaAffiliateResourceType, p as SchemaAffiliateReward, a as SchemaRelatedPostType, i as SchemaRelationType, o as SchemaStripeSubscription, m as SchemaUserActivityEvent, n as SchemaUserType, b as SocialMediaTypeSchema, U as UserModel, g as baseResourceFields, d as dateTimeSchema, l as locationGeoSchema, e as locationsSchema, f as relatedPostSchema, h as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-BLh0EcNI.mjs';
4
+ import { O as ObjectId } from '../index-Bq-lT7a2.mjs';
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-Bq-lT7a2.mjs';
6
+ import { S as SchemaOwnerType } from '../Affiliate-CMJdECzs.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, q as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-CMJdECzs.mjs';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
@@ -72,10 +72,14 @@ declare const ChatReportModel: mongoose__default.Model<SchemaChatReportType, {},
72
72
  type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
73
73
  eventId?: mongoose__default.Types.ObjectId;
74
74
  claimedByUserId?: mongoose__default.Types.ObjectId;
75
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
76
+ searchName?: string;
75
77
  };
76
78
  declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
77
79
  eventId?: mongoose__default.Types.ObjectId;
78
80
  claimedByUserId?: mongoose__default.Types.ObjectId;
81
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
82
+ searchName?: string;
79
83
  } & Required<{
80
84
  _id: string;
81
85
  }> & {
@@ -114,20 +118,28 @@ declare const vendorProductTypeSchema: mongoose__default.Schema<VendorProductLis
114
118
  _id: string;
115
119
  }> & {
116
120
  __v: number;
117
- }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, VendorProductList, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<VendorProductList>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<VendorProductList> & Required<{
121
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, VendorProductList, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<VendorProductList>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<VendorProductList> & Required<{
118
122
  _id: string;
119
123
  }> & {
120
124
  __v: number;
121
125
  }>;
122
126
  type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "unregisteredVendorId"> & {
123
127
  adIds?: ObjectId[];
128
+ /** Mirror of `categories[].name` for $text search (see vendorSearch). */
129
+ categoriesNames?: string[];
124
130
  owner: SchemaOwnerType;
131
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
132
+ searchName?: string;
125
133
  vendorInfoId: ObjectId;
126
134
  unregisteredVendorId?: ObjectId | null;
127
135
  };
128
136
  declare const VendorModel: mongoose__default.Model<SchemaVendorType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
129
137
  adIds?: ObjectId[];
138
+ /** Mirror of `categories[].name` for $text search (see vendorSearch). */
139
+ categoriesNames?: string[];
130
140
  owner: SchemaOwnerType;
141
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
142
+ searchName?: string;
131
143
  vendorInfoId: ObjectId;
132
144
  unregisteredVendorId?: ObjectId | null;
133
145
  } & Required<{
@@ -173,11 +185,15 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
173
185
  adIds?: ObjectId[];
174
186
  eventInfoId: ObjectId;
175
187
  owner: SchemaOwnerType;
188
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
189
+ searchName?: string;
176
190
  };
177
191
  declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
178
192
  adIds?: ObjectId[];
179
193
  eventInfoId: ObjectId;
180
194
  owner: SchemaOwnerType;
195
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
196
+ searchName?: string;
181
197
  } & Required<{
182
198
  _id: string;
183
199
  }> & {
@@ -188,7 +204,7 @@ declare const StallTypeSchema: mongoose__default.Schema<StallType, mongoose__def
188
204
  _id: mongoose__default.Types.ObjectId;
189
205
  } & {
190
206
  __v: number;
191
- }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, StallType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<StallType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<StallType> & {
207
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, StallType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<StallType>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<StallType> & {
192
208
  _id: mongoose__default.Types.ObjectId;
193
209
  } & {
194
210
  __v: number;
@@ -197,7 +213,7 @@ declare const refundPolicySchema: mongoose__default.Schema<RefundPolicy, mongoos
197
213
  _id: mongoose__default.Types.ObjectId;
198
214
  } & {
199
215
  __v: number;
200
- }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RefundPolicy, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RefundPolicy>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<RefundPolicy> & {
216
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RefundPolicy, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RefundPolicy>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<RefundPolicy> & {
201
217
  _id: mongoose__default.Types.ObjectId;
202
218
  } & {
203
219
  __v: number;
@@ -216,10 +232,14 @@ declare const EventInfoModel: mongoose__default.Model<SchemaEventInfoType, {}, {
216
232
  type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
217
233
  adIds?: ObjectId[];
218
234
  owner: SchemaOwnerType;
235
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
236
+ searchName?: string;
219
237
  };
220
238
  declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
221
239
  adIds?: ObjectId[];
222
240
  owner: SchemaOwnerType;
241
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
242
+ searchName?: string;
223
243
  } & Required<{
224
244
  _id: string;
225
245
  }> & {
@@ -1,10 +1,10 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, BillingCatalogPriceHistoryEntry, BillingCatalogEntryType, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType } from '@timardex/cluemart-shared';
2
+ import { AdType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
- import { O as ObjectId } from '../index-zC8a3adw.js';
5
- export { C as ChatModel, N as NotificationModel, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../index-zC8a3adw.js';
6
- import { S as SchemaOwnerType } from '../Affiliate-CBp0M850.js';
7
- export { A as AffiliateModel, C as CategorySchema, c as ContactDetailsSchema, O as OwnerTypeSchema, k as RelationModel, j as RelationTypeSchema, R as ResourceImageTypeSchema, q as SchemaAffiliateResourceType, p as SchemaAffiliateReward, a as SchemaRelatedPostType, i as SchemaRelationType, o as SchemaStripeSubscription, m as SchemaUserActivityEvent, n as SchemaUserType, b as SocialMediaTypeSchema, U as UserModel, g as baseResourceFields, d as dateTimeSchema, l as locationGeoSchema, e as locationsSchema, f as relatedPostSchema, h as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-CBp0M850.js';
4
+ import { O as ObjectId } from '../index-Bq-lT7a2.js';
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-Bq-lT7a2.js';
6
+ import { S as SchemaOwnerType } from '../Affiliate-VLZdlt5K.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, q as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-VLZdlt5K.js';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
@@ -72,10 +72,14 @@ declare const ChatReportModel: mongoose__default.Model<SchemaChatReportType, {},
72
72
  type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
73
73
  eventId?: mongoose__default.Types.ObjectId;
74
74
  claimedByUserId?: mongoose__default.Types.ObjectId;
75
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
76
+ searchName?: string;
75
77
  };
76
78
  declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
77
79
  eventId?: mongoose__default.Types.ObjectId;
78
80
  claimedByUserId?: mongoose__default.Types.ObjectId;
81
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
82
+ searchName?: string;
79
83
  } & Required<{
80
84
  _id: string;
81
85
  }> & {
@@ -114,20 +118,28 @@ declare const vendorProductTypeSchema: mongoose__default.Schema<VendorProductLis
114
118
  _id: string;
115
119
  }> & {
116
120
  __v: number;
117
- }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, VendorProductList, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<VendorProductList>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<VendorProductList> & Required<{
121
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, VendorProductList, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<VendorProductList>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<VendorProductList> & Required<{
118
122
  _id: string;
119
123
  }> & {
120
124
  __v: number;
121
125
  }>;
122
126
  type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "unregisteredVendorId"> & {
123
127
  adIds?: ObjectId[];
128
+ /** Mirror of `categories[].name` for $text search (see vendorSearch). */
129
+ categoriesNames?: string[];
124
130
  owner: SchemaOwnerType;
131
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
132
+ searchName?: string;
125
133
  vendorInfoId: ObjectId;
126
134
  unregisteredVendorId?: ObjectId | null;
127
135
  };
128
136
  declare const VendorModel: mongoose__default.Model<SchemaVendorType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
129
137
  adIds?: ObjectId[];
138
+ /** Mirror of `categories[].name` for $text search (see vendorSearch). */
139
+ categoriesNames?: string[];
130
140
  owner: SchemaOwnerType;
141
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
142
+ searchName?: string;
131
143
  vendorInfoId: ObjectId;
132
144
  unregisteredVendorId?: ObjectId | null;
133
145
  } & Required<{
@@ -173,11 +185,15 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
173
185
  adIds?: ObjectId[];
174
186
  eventInfoId: ObjectId;
175
187
  owner: SchemaOwnerType;
188
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
189
+ searchName?: string;
176
190
  };
177
191
  declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
178
192
  adIds?: ObjectId[];
179
193
  eventInfoId: ObjectId;
180
194
  owner: SchemaOwnerType;
195
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
196
+ searchName?: string;
181
197
  } & Required<{
182
198
  _id: string;
183
199
  }> & {
@@ -188,7 +204,7 @@ declare const StallTypeSchema: mongoose__default.Schema<StallType, mongoose__def
188
204
  _id: mongoose__default.Types.ObjectId;
189
205
  } & {
190
206
  __v: number;
191
- }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, StallType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<StallType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<StallType> & {
207
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, StallType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<StallType>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<StallType> & {
192
208
  _id: mongoose__default.Types.ObjectId;
193
209
  } & {
194
210
  __v: number;
@@ -197,7 +213,7 @@ declare const refundPolicySchema: mongoose__default.Schema<RefundPolicy, mongoos
197
213
  _id: mongoose__default.Types.ObjectId;
198
214
  } & {
199
215
  __v: number;
200
- }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RefundPolicy, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RefundPolicy>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<RefundPolicy> & {
216
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RefundPolicy, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RefundPolicy>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<RefundPolicy> & {
201
217
  _id: mongoose__default.Types.ObjectId;
202
218
  } & {
203
219
  __v: number;
@@ -216,10 +232,14 @@ declare const EventInfoModel: mongoose__default.Model<SchemaEventInfoType, {}, {
216
232
  type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
217
233
  adIds?: ObjectId[];
218
234
  owner: SchemaOwnerType;
235
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
236
+ searchName?: string;
219
237
  };
220
238
  declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
221
239
  adIds?: ObjectId[];
222
240
  owner: SchemaOwnerType;
241
+ /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
242
+ searchName?: string;
223
243
  } & Required<{
224
244
  _id: string;
225
245
  }> & {
@@ -45,7 +45,8 @@ import {
45
45
  termsAgreementSchema,
46
46
  userLicenseSchema,
47
47
  vendorProductTypeSchema
48
- } from "../chunk-6RUQHYTK.mjs";
48
+ } from "../chunk-EGUFWI7R.mjs";
49
+ import "../chunk-3QS3WKRC.mjs";
49
50
  export {
50
51
  APP_SETTINGS_ID,
51
52
  AdModel,