@timardex/cluemart-server-shared 1.0.294 → 1.0.296

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.
@@ -3,8 +3,8 @@ import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceAc
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from '../Chat-Bnqec74U.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-Bnqec74U.mjs';
6
- import { S as SchemaOwnerType } from '../Affiliate-6XcZ131C.mjs';
7
- export { A as AffiliateModel, C as CategorySchema, d as ContactDetailsSchema, O as OwnerTypeSchema, m as RelationModel, k as RelationTypeSchema, R as ResourceImageTypeSchema, o as SchemaAffiliateResourceType, n as SchemaAffiliateReward, a as SchemaRelatedPostType, j as SchemaRelationType, b as SocialMediaTypeSchema, c as associatesSchema, h as baseResourceFields, e as dateTimeSchema, l as locationGeoSchema, f as locationsSchema, g as relatedPostSchema, i as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-6XcZ131C.mjs';
6
+ import { S as SchemaOwnerType } from '../Affiliate-DaZKnzMu.mjs';
7
+ export { A as AffiliateModel, C as CategorySchema, d as ContactDetailsSchema, O as OwnerTypeSchema, m as RelationModel, k as RelationTypeSchema, R as ResourceImageTypeSchema, o as SchemaAffiliateResourceType, n as SchemaAffiliateReward, a as SchemaRelatedPostType, j as SchemaRelationType, b as SocialMediaTypeSchema, c as associatesSchema, h as baseResourceFields, e as dateTimeSchema, l as locationGeoSchema, f as locationsSchema, g as relatedPostSchema, i as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-DaZKnzMu.mjs';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
@@ -232,6 +232,7 @@ declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {
232
232
  type SchemaPostType = PostType;
233
233
  declare const PostModel: mongoose__default.Model<PostType, {}, {}, {}, mongoose__default.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
234
234
  _id: string;
235
+ approvedAt?: Date | null;
235
236
  content: PostContentType[];
236
237
  createdAt: Date;
237
238
  deletedAt: Date | null;
@@ -3,8 +3,8 @@ import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceAc
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from '../Chat-Bnqec74U.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-Bnqec74U.js';
6
- import { S as SchemaOwnerType } from '../Affiliate-DCvdeKW7.js';
7
- export { A as AffiliateModel, C as CategorySchema, d as ContactDetailsSchema, O as OwnerTypeSchema, m as RelationModel, k as RelationTypeSchema, R as ResourceImageTypeSchema, o as SchemaAffiliateResourceType, n as SchemaAffiliateReward, a as SchemaRelatedPostType, j as SchemaRelationType, b as SocialMediaTypeSchema, c as associatesSchema, h as baseResourceFields, e as dateTimeSchema, l as locationGeoSchema, f as locationsSchema, g as relatedPostSchema, i as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-DCvdeKW7.js';
6
+ import { S as SchemaOwnerType } from '../Affiliate-DGmeZnDs.js';
7
+ export { A as AffiliateModel, C as CategorySchema, d as ContactDetailsSchema, O as OwnerTypeSchema, m as RelationModel, k as RelationTypeSchema, R as ResourceImageTypeSchema, o as SchemaAffiliateResourceType, n as SchemaAffiliateReward, a as SchemaRelatedPostType, j as SchemaRelationType, b as SocialMediaTypeSchema, c as associatesSchema, h as baseResourceFields, e as dateTimeSchema, l as locationGeoSchema, f as locationsSchema, g as relatedPostSchema, i as relationDatesSchema, r as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-DGmeZnDs.js';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
@@ -232,6 +232,7 @@ declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {
232
232
  type SchemaPostType = PostType;
233
233
  declare const PostModel: mongoose__default.Model<PostType, {}, {}, {}, mongoose__default.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
234
234
  _id: string;
235
+ approvedAt?: Date | null;
235
236
  content: PostContentType[];
236
237
  createdAt: Date;
237
238
  deletedAt: Date | null;
@@ -40,7 +40,7 @@ import {
40
40
  socialShareResourceSchema,
41
41
  termsAgreementSchema,
42
42
  userLicenseSchema
43
- } from "../chunk-KRA6LV7T.mjs";
43
+ } from "../chunk-B4EXJ5IH.mjs";
44
44
  export {
45
45
  APP_SETTINGS_ID,
46
46
  AdModel,
@@ -5188,6 +5188,7 @@ var EVENT_LIST_ITEM = gql`
5188
5188
  fragment EventListItemFields on EventListItemType {
5189
5189
  _id
5190
5190
  active
5191
+ approvedAt
5191
5192
  claimed
5192
5193
  cover {
5193
5194
  ...ResourceImageFields
@@ -5291,6 +5292,7 @@ var EVENT = gql`
5291
5292
  ...AssociatesFields
5292
5293
  }
5293
5294
  adIds
5295
+ approvedAt
5294
5296
  cover {
5295
5297
  ...ResourceImageFields
5296
5298
  }
@@ -5478,6 +5480,7 @@ var VENDOR = gql`
5478
5480
  ...AssociatesFields
5479
5481
  }
5480
5482
  adIds
5483
+ approvedAt
5481
5484
  availability {
5482
5485
  corporate
5483
5486
  private
@@ -5723,6 +5726,7 @@ var PARTNER = gql`
5723
5726
  ...AssociatesFields
5724
5727
  }
5725
5728
  adIds
5729
+ approvedAt
5726
5730
  cover {
5727
5731
  ...ResourceImageFields
5728
5732
  }
@@ -5958,6 +5962,7 @@ var POST_FIELDS_FRAGMENT = gql`
5958
5962
  fragment PostFields on PostType {
5959
5963
  _id
5960
5964
  active
5965
+ approvedAt
5961
5966
  caption
5962
5967
  content {
5963
5968
  ...PostContentFields
@@ -7403,6 +7408,7 @@ var SCHOOL = gql`
7403
7408
  fragment SchoolFields on SchoolType {
7404
7409
  _id
7405
7410
  active
7411
+ approvedAt
7406
7412
  campaigns {
7407
7413
  ...SchoolCampaignFields
7408
7414
  }
@@ -7565,6 +7571,7 @@ var AFFILIATE_FIELDS_FRAGMENT = gql`
7565
7571
  affiliateResources {
7566
7572
  ...AffiliateResourceFields
7567
7573
  }
7574
+ approvedAt
7568
7575
  createdAt
7569
7576
  deletedAt
7570
7577
  redeemHistory {
@@ -8299,6 +8306,7 @@ var baseResourceFields = {
8299
8306
  required: false,
8300
8307
  type: [import_mongoose6.default.Schema.Types.ObjectId]
8301
8308
  },
8309
+ approvedAt: { default: null, required: false, type: Date },
8302
8310
  associates: {
8303
8311
  required: false,
8304
8312
  type: [associatesSchema]
@@ -8345,6 +8353,7 @@ var schema3 = new MongooseSchema7(
8345
8353
  active: { default: false, required: true, type: Boolean },
8346
8354
  address: { required: true, type: String },
8347
8355
  addressComponents: { required: false, type: [addressComponentSchema] },
8356
+ approvedAt: { default: null, required: false, type: Date },
8348
8357
  businessStatus: { required: false, type: String },
8349
8358
  claimed: { default: false, required: true, type: Boolean },
8350
8359
  claimedAt: { default: null, required: false, type: Date },
@@ -9030,6 +9039,7 @@ var resourceSchema = new MongooseSchema18(
9030
9039
  var schema14 = new MongooseSchema18(
9031
9040
  {
9032
9041
  active: { default: false, required: true, type: Boolean },
9042
+ approvedAt: { default: null, required: false, type: Date },
9033
9043
  caption: { required: true, type: String },
9034
9044
  content: {
9035
9045
  default: [],
@@ -9266,6 +9276,7 @@ var schema16 = new MongooseSchema24(
9266
9276
  {
9267
9277
  // New schools are active by default
9268
9278
  active: { default: false, required: true, type: Boolean },
9279
+ approvedAt: { default: null, required: false, type: Date },
9269
9280
  campaigns: { required: false, type: [campaignsSchema] },
9270
9281
  contactDetails: { required: false, type: ContactDetailsSchema },
9271
9282
  deletedAt: { default: null, required: false, type: Date },
@@ -9394,6 +9405,7 @@ var schema17 = new MongooseSchema25(
9394
9405
  required: false,
9395
9406
  type: [affiliateResourceSchema]
9396
9407
  },
9408
+ approvedAt: { default: null, required: false, type: Date },
9397
9409
  deletedAt: { default: null, required: false, type: Date },
9398
9410
  overallPoints: { default: 0, required: true, type: Number },
9399
9411
  owner: {