@timardex/cluemart-server-shared 1.1.16 → 1.1.17

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, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorProductList, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, CouponType, ProductCouponType, CouponParticipantUserType } 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, 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';
@@ -294,18 +294,39 @@ declare const SchoolModel: mongoose__default.Model<SchoolDocument, {}, {}, {}, m
294
294
  type SchemaCouponParticipantUserType = Omit<CouponParticipantUserType, "userId"> & {
295
295
  userId: ObjectId;
296
296
  };
297
- type SchemaProductCouponType = Omit<ProductCouponType, "participantUsers"> & {
297
+ type SchemaCouponRewardType = Omit<CouponReward, "productId" | "vendorId"> & {
298
+ productId: ObjectId;
299
+ vendorId: ObjectId;
300
+ };
301
+ type SchemaCouponDataType = Omit<CouponDataType, "participantUsers" | "couponRewards"> & {
302
+ couponRewards?: SchemaCouponRewardType[];
298
303
  participantUsers: SchemaCouponParticipantUserType[] | null;
299
304
  };
300
- type CouponDocument = Omit<CouponType, "productCoupons"> & {
301
- productCoupons: SchemaProductCouponType[];
305
+ type SchemaProductCouponType = Omit<ProductCoupon, "couponDocumentId" | "couponId"> & {
306
+ couponDocumentId: ObjectId;
307
+ couponId: ObjectId;
308
+ };
309
+ type CouponDocument = Omit<CouponType, "couponData"> & {
310
+ couponData: SchemaCouponDataType[];
302
311
  };
303
- declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, CouponDocument, {}, {}> & Omit<CouponType, "productCoupons"> & {
304
- productCoupons: SchemaProductCouponType[];
312
+ 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"> & {
313
+ couponDocumentId: ObjectId;
314
+ couponId: ObjectId;
315
+ } & {
316
+ _id: mongoose__default.Types.ObjectId;
317
+ } & {
318
+ __v: number;
319
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaProductCouponType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaProductCouponType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaProductCouponType> & {
320
+ _id: mongoose__default.Types.ObjectId;
321
+ } & {
322
+ __v: number;
323
+ }>;
324
+ declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, CouponDocument, {}, {}> & Omit<CouponType, "couponData"> & {
325
+ couponData: SchemaCouponDataType[];
305
326
  } & Required<{
306
327
  _id: string;
307
328
  }> & {
308
329
  __v: number;
309
330
  }, any>;
310
331
 
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 };
332
+ 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 };
@@ -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, ProductCouponType, CouponParticipantUserType } 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, 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';
@@ -294,18 +294,39 @@ declare const SchoolModel: mongoose__default.Model<SchoolDocument, {}, {}, {}, m
294
294
  type SchemaCouponParticipantUserType = Omit<CouponParticipantUserType, "userId"> & {
295
295
  userId: ObjectId;
296
296
  };
297
- type SchemaProductCouponType = Omit<ProductCouponType, "participantUsers"> & {
297
+ type SchemaCouponRewardType = Omit<CouponReward, "productId" | "vendorId"> & {
298
+ productId: ObjectId;
299
+ vendorId: ObjectId;
300
+ };
301
+ type SchemaCouponDataType = Omit<CouponDataType, "participantUsers" | "couponRewards"> & {
302
+ couponRewards?: SchemaCouponRewardType[];
298
303
  participantUsers: SchemaCouponParticipantUserType[] | null;
299
304
  };
300
- type CouponDocument = Omit<CouponType, "productCoupons"> & {
301
- productCoupons: SchemaProductCouponType[];
305
+ type SchemaProductCouponType = Omit<ProductCoupon, "couponDocumentId" | "couponId"> & {
306
+ couponDocumentId: ObjectId;
307
+ couponId: ObjectId;
308
+ };
309
+ type CouponDocument = Omit<CouponType, "couponData"> & {
310
+ couponData: SchemaCouponDataType[];
302
311
  };
303
- declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, CouponDocument, {}, {}> & Omit<CouponType, "productCoupons"> & {
304
- productCoupons: SchemaProductCouponType[];
312
+ 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"> & {
313
+ couponDocumentId: ObjectId;
314
+ couponId: ObjectId;
315
+ } & {
316
+ _id: mongoose__default.Types.ObjectId;
317
+ } & {
318
+ __v: number;
319
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaProductCouponType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaProductCouponType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaProductCouponType> & {
320
+ _id: mongoose__default.Types.ObjectId;
321
+ } & {
322
+ __v: number;
323
+ }>;
324
+ declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, CouponDocument, {}, {}> & Omit<CouponType, "couponData"> & {
325
+ couponData: SchemaCouponDataType[];
305
326
  } & Required<{
306
327
  _id: string;
307
328
  }> & {
308
329
  __v: number;
309
330
  }, any>;
310
331
 
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 };
332
+ 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 };
@@ -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-7GXZS3LI.mjs";
45
+ } from "../chunk-K4C5YKZE.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,