@timardex/cluemart-server-shared 1.1.39 → 2.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.
- package/dist/{Affiliate-CBp0M850.d.ts → Affiliate-CMJdECzs.d.mts} +28 -28
- package/dist/{Affiliate-BLh0EcNI.d.mts → Affiliate-VLZdlt5K.d.ts} +28 -28
- package/dist/chunk-IICIHY26.mjs +2258 -0
- package/dist/chunk-IICIHY26.mjs.map +1 -0
- package/dist/{index-zC8a3adw.d.mts → index-Bq-lT7a2.d.mts} +2 -2
- package/dist/{index-zC8a3adw.d.ts → index-Bq-lT7a2.d.ts} +2 -2
- package/dist/index.cjs +1985 -8424
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +49 -29
- package/dist/index.d.ts +49 -29
- package/dist/index.mjs +2053 -8391
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +206 -5320
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +28 -8
- package/dist/mongoose/index.d.ts +28 -8
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +1970 -8371
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +2 -2
- package/dist/service/index.d.ts +2 -2
- package/dist/service/index.mjs +145 -1344
- package/dist/service/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +5 -2
- package/dist/chunk-6RUQHYTK.mjs +0 -7435
- package/dist/chunk-6RUQHYTK.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType,
|
|
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-
|
|
5
|
-
export { C as ChatModel, N as NotificationModel,
|
|
6
|
-
import { S as SchemaOwnerType } from '../Affiliate-
|
|
7
|
-
export { A as AffiliateModel, C as CategorySchema,
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
}> & {
|
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,
|
|
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-
|
|
5
|
-
export { C as ChatModel, N as NotificationModel,
|
|
6
|
-
import { S as SchemaOwnerType } from '../Affiliate-
|
|
7
|
-
export { A as AffiliateModel, C as CategorySchema,
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
}> & {
|