@timardex/cluemart-server-shared 1.1.16 → 1.1.18
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/{chunk-7GXZS3LI.mjs → chunk-TDAUQKK7.mjs} +333 -238
- package/dist/chunk-TDAUQKK7.mjs.map +1 -0
- package/dist/index.cjs +334 -238
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +32 -9
- package/dist/index.d.ts +32 -9
- package/dist/index.mjs +332 -237
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +332 -236
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +32 -9
- package/dist/mongoose/index.d.ts +32 -9
- package/dist/mongoose/index.mjs +3 -1
- package/dist/service/index.cjs +332 -238
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +3 -3
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-7GXZS3LI.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, CouponType,
|
|
2
|
+
import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, CouponType, CouponDataType, CouponReward, CouponParticipantUserType, ProductCoupon } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-Wn7yfc3v.mjs';
|
|
5
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 '../Chat-Wn7yfc3v.mjs';
|
|
@@ -62,9 +62,10 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
|
|
|
62
62
|
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
63
63
|
resourceId: ObjectId;
|
|
64
64
|
};
|
|
65
|
-
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
65
|
+
type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
66
66
|
_id: ObjectId;
|
|
67
67
|
affiliate: ObjectId;
|
|
68
|
+
coupon: ObjectId;
|
|
68
69
|
events: ObjectId[];
|
|
69
70
|
game: ObjectId;
|
|
70
71
|
partner: ObjectId;
|
|
@@ -87,9 +88,10 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
|
|
|
87
88
|
};
|
|
88
89
|
};
|
|
89
90
|
};
|
|
90
|
-
declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
91
|
+
declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
91
92
|
_id: ObjectId;
|
|
92
93
|
affiliate: ObjectId;
|
|
94
|
+
coupon: ObjectId;
|
|
93
95
|
events: ObjectId[];
|
|
94
96
|
game: ObjectId;
|
|
95
97
|
partner: ObjectId;
|
|
@@ -294,18 +296,39 @@ declare const SchoolModel: mongoose__default.Model<SchoolDocument, {}, {}, {}, m
|
|
|
294
296
|
type SchemaCouponParticipantUserType = Omit<CouponParticipantUserType, "userId"> & {
|
|
295
297
|
userId: ObjectId;
|
|
296
298
|
};
|
|
297
|
-
type
|
|
299
|
+
type SchemaCouponRewardType = Omit<CouponReward, "productId" | "vendorId"> & {
|
|
300
|
+
productId: ObjectId;
|
|
301
|
+
vendorId: ObjectId;
|
|
302
|
+
};
|
|
303
|
+
type SchemaCouponDataType = Omit<CouponDataType, "participantUsers" | "couponRewards"> & {
|
|
304
|
+
couponRewards?: SchemaCouponRewardType[];
|
|
298
305
|
participantUsers: SchemaCouponParticipantUserType[] | null;
|
|
299
306
|
};
|
|
300
|
-
type
|
|
301
|
-
|
|
307
|
+
type SchemaProductCouponType = Omit<ProductCoupon, "couponDocumentId" | "couponId"> & {
|
|
308
|
+
couponDocumentId: ObjectId;
|
|
309
|
+
couponId: ObjectId;
|
|
310
|
+
};
|
|
311
|
+
type CouponDocument = Omit<CouponType, "couponData"> & {
|
|
312
|
+
couponData: SchemaCouponDataType[];
|
|
302
313
|
};
|
|
303
|
-
declare const
|
|
304
|
-
|
|
314
|
+
declare const productCouponSchema: mongoose__default.Schema<SchemaProductCouponType, mongoose__default.Model<SchemaProductCouponType, any, any, any, mongoose__default.Document<unknown, any, SchemaProductCouponType, any, {}> & Omit<ProductCoupon, "couponDocumentId" | "couponId"> & {
|
|
315
|
+
couponDocumentId: ObjectId;
|
|
316
|
+
couponId: ObjectId;
|
|
317
|
+
} & {
|
|
318
|
+
_id: mongoose__default.Types.ObjectId;
|
|
319
|
+
} & {
|
|
320
|
+
__v: number;
|
|
321
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaProductCouponType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaProductCouponType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaProductCouponType> & {
|
|
322
|
+
_id: mongoose__default.Types.ObjectId;
|
|
323
|
+
} & {
|
|
324
|
+
__v: number;
|
|
325
|
+
}>;
|
|
326
|
+
declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, CouponDocument, {}, {}> & Omit<CouponType, "couponData"> & {
|
|
327
|
+
couponData: SchemaCouponDataType[];
|
|
305
328
|
} & Required<{
|
|
306
329
|
_id: string;
|
|
307
330
|
}> & {
|
|
308
331
|
__v: number;
|
|
309
332
|
}, any>;
|
|
310
333
|
|
|
311
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, ChatReportModel, type CouponDocument, CouponModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, refundPolicySchema, vendorProductTypeSchema };
|
|
334
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, ChatReportModel, type CouponDocument, CouponModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, productCouponSchema, refundPolicySchema, vendorProductTypeSchema };
|
package/dist/mongoose/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, CouponType,
|
|
2
|
+
import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, CouponType, CouponDataType, CouponReward, CouponParticipantUserType, ProductCoupon } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-Wn7yfc3v.js';
|
|
5
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 '../Chat-Wn7yfc3v.js';
|
|
@@ -62,9 +62,10 @@ declare const ResourceActivityModel: mongoose__default.Model<ResourceActivityTyp
|
|
|
62
62
|
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
63
63
|
resourceId: ObjectId;
|
|
64
64
|
};
|
|
65
|
-
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
65
|
+
type SchemaUserType = Omit<UserType, "vendor" | "coupon" | "events" | "partner" | "userActivity" | "_id" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
66
66
|
_id: ObjectId;
|
|
67
67
|
affiliate: ObjectId;
|
|
68
|
+
coupon: ObjectId;
|
|
68
69
|
events: ObjectId[];
|
|
69
70
|
game: ObjectId;
|
|
70
71
|
partner: ObjectId;
|
|
@@ -87,9 +88,10 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
|
|
|
87
88
|
};
|
|
88
89
|
};
|
|
89
90
|
};
|
|
90
|
-
declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
91
|
+
declare const UserModel: mongoose__default.Model<SchemaUserType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "coupon" | "events" | "partner" | "userActivity" | "game" | "school" | "affiliate" | "permissions"> & {
|
|
91
92
|
_id: ObjectId;
|
|
92
93
|
affiliate: ObjectId;
|
|
94
|
+
coupon: ObjectId;
|
|
93
95
|
events: ObjectId[];
|
|
94
96
|
game: ObjectId;
|
|
95
97
|
partner: ObjectId;
|
|
@@ -294,18 +296,39 @@ declare const SchoolModel: mongoose__default.Model<SchoolDocument, {}, {}, {}, m
|
|
|
294
296
|
type SchemaCouponParticipantUserType = Omit<CouponParticipantUserType, "userId"> & {
|
|
295
297
|
userId: ObjectId;
|
|
296
298
|
};
|
|
297
|
-
type
|
|
299
|
+
type SchemaCouponRewardType = Omit<CouponReward, "productId" | "vendorId"> & {
|
|
300
|
+
productId: ObjectId;
|
|
301
|
+
vendorId: ObjectId;
|
|
302
|
+
};
|
|
303
|
+
type SchemaCouponDataType = Omit<CouponDataType, "participantUsers" | "couponRewards"> & {
|
|
304
|
+
couponRewards?: SchemaCouponRewardType[];
|
|
298
305
|
participantUsers: SchemaCouponParticipantUserType[] | null;
|
|
299
306
|
};
|
|
300
|
-
type
|
|
301
|
-
|
|
307
|
+
type SchemaProductCouponType = Omit<ProductCoupon, "couponDocumentId" | "couponId"> & {
|
|
308
|
+
couponDocumentId: ObjectId;
|
|
309
|
+
couponId: ObjectId;
|
|
310
|
+
};
|
|
311
|
+
type CouponDocument = Omit<CouponType, "couponData"> & {
|
|
312
|
+
couponData: SchemaCouponDataType[];
|
|
302
313
|
};
|
|
303
|
-
declare const
|
|
304
|
-
|
|
314
|
+
declare const productCouponSchema: mongoose__default.Schema<SchemaProductCouponType, mongoose__default.Model<SchemaProductCouponType, any, any, any, mongoose__default.Document<unknown, any, SchemaProductCouponType, any, {}> & Omit<ProductCoupon, "couponDocumentId" | "couponId"> & {
|
|
315
|
+
couponDocumentId: ObjectId;
|
|
316
|
+
couponId: ObjectId;
|
|
317
|
+
} & {
|
|
318
|
+
_id: mongoose__default.Types.ObjectId;
|
|
319
|
+
} & {
|
|
320
|
+
__v: number;
|
|
321
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaProductCouponType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaProductCouponType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaProductCouponType> & {
|
|
322
|
+
_id: mongoose__default.Types.ObjectId;
|
|
323
|
+
} & {
|
|
324
|
+
__v: number;
|
|
325
|
+
}>;
|
|
326
|
+
declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, CouponDocument, {}, {}> & Omit<CouponType, "couponData"> & {
|
|
327
|
+
couponData: SchemaCouponDataType[];
|
|
305
328
|
} & Required<{
|
|
306
329
|
_id: string;
|
|
307
330
|
}> & {
|
|
308
331
|
__v: number;
|
|
309
332
|
}, any>;
|
|
310
333
|
|
|
311
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, ChatReportModel, type CouponDocument, CouponModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, refundPolicySchema, vendorProductTypeSchema };
|
|
334
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, ChatReportModel, type CouponDocument, CouponModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, productCouponSchema, refundPolicySchema, vendorProductTypeSchema };
|
package/dist/mongoose/index.mjs
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
dateTimeSchema,
|
|
34
34
|
locationGeoSchema,
|
|
35
35
|
locationsSchema,
|
|
36
|
+
productCouponSchema,
|
|
36
37
|
refundPolicySchema,
|
|
37
38
|
relatedPostSchema,
|
|
38
39
|
relationDatesSchema,
|
|
@@ -41,7 +42,7 @@ import {
|
|
|
41
42
|
termsAgreementSchema,
|
|
42
43
|
userLicenseSchema,
|
|
43
44
|
vendorProductTypeSchema
|
|
44
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-TDAUQKK7.mjs";
|
|
45
46
|
export {
|
|
46
47
|
APP_SETTINGS_ID,
|
|
47
48
|
AdModel,
|
|
@@ -77,6 +78,7 @@ export {
|
|
|
77
78
|
dateTimeSchema,
|
|
78
79
|
locationGeoSchema,
|
|
79
80
|
locationsSchema,
|
|
81
|
+
productCouponSchema,
|
|
80
82
|
refundPolicySchema,
|
|
81
83
|
relatedPostSchema,
|
|
82
84
|
relationDatesSchema,
|