@timardex/cluemart-server-shared 5.0.0 → 5.1.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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, ChatType, ParticipantType, ChatMessageType, NotificationType, CreateBulkNotificationInput, EnumUserRole, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, OwnerType, AssociateType, EnumAssociateStatus, Category, ResourceContactDetailsType, ResourceImageType, RelatedPostType, SocialMediaType, PosterUsageType, SocialShareResourceType, TermsAgreement, DateTimeType, LocationGeoType, LocationType, UserLicenceType, GoogleImportedMarket, AiImportedMarket, EnumImportedMarketDeactivationReason, EnumAiImportRunStatus, AiImportUsage, ScrapeSite, PushTokenType, RelationType, RelationDate, ResourceActivityType, StripeSubscription, UserActivityEvent, UserType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, AffiliateType, AffiliateResourceType, AffiliateRewardType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType, PromoCodeType, EnumAffiliateRewardType, EnumPointType, UserOverallPointsEntry, DateTimeWithPriceType, EnumNotificationResourceType, EnumNotificationType, LicenceExpiryDate } from '@timardex/cluemart-shared';
2
+ import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, ChatType, ParticipantType, ChatMessageType, NotificationType, CreateBulkNotificationInput, EnumUserRole, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, OwnerType, AssociateType, EnumAssociateStatus, Category, ResourceContactDetailsType, ResourceImageType, RelatedPostType, SocialMediaType, PosterUsageType, SocialShareResourceType, TermsAgreement, DateTimeType, LocationGeoType, LocationType, UserLicenceType, GoogleImportedMarket, EnumImportedMarketDeactivationReason, AiImportedMarket, EnumAiImportRunStatus, AiImportUsage, ScrapeSite, PushTokenType, RelationType, RelationDate, ResourceActivityType, StripeSubscription, UserActivityEvent, UserType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, AffiliateType, AffiliateResourceType, AffiliateRewardType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType, PromoCodeType, EnumAffiliateRewardType, EnumPointType, UserOverallPointsEntry, DateTimeWithPriceType, EnumNotificationResourceType, EnumNotificationType, LicenceExpiryDate } from '@timardex/cluemart-shared';
3
3
  export { updateSingleDateTimeStatus } from '@timardex/cluemart-shared';
4
4
  import * as mongoose from 'mongoose';
5
5
  import mongoose__default from 'mongoose';
@@ -522,6 +522,14 @@ declare const baseResourceFields: {
522
522
  type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
523
523
  eventId?: mongoose__default.Types.ObjectId;
524
524
  claimedByUserId?: mongoose__default.Types.ObjectId;
525
+ /**
526
+ * Why an inactive market was switched off: `STALE` when the source reported the
527
+ * place as no longer operational (only the crawler may switch it back on),
528
+ * `ADMIN` when an admin did it (the crawler must leave it alone). Absent on
529
+ * markets deactivated before the reason existed, which are treated as
530
+ * admin-owned — the conservative default.
531
+ */
532
+ deactivatedReason?: EnumImportedMarketDeactivationReason | null;
525
533
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
526
534
  searchName?: string;
527
535
  /** Indexed earliest `dateTime` start instant for chronological pagination. */
@@ -530,6 +538,14 @@ type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claime
530
538
  declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
531
539
  eventId?: mongoose__default.Types.ObjectId;
532
540
  claimedByUserId?: mongoose__default.Types.ObjectId;
541
+ /**
542
+ * Why an inactive market was switched off: `STALE` when the source reported the
543
+ * place as no longer operational (only the crawler may switch it back on),
544
+ * `ADMIN` when an admin did it (the crawler must leave it alone). Absent on
545
+ * markets deactivated before the reason existed, which are treated as
546
+ * admin-owned — the conservative default.
547
+ */
548
+ deactivatedReason?: EnumImportedMarketDeactivationReason | null;
533
549
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
534
550
  searchName?: string;
535
551
  /** Indexed earliest `dateTime` start instant for chronological pagination. */
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, ChatType, ParticipantType, ChatMessageType, NotificationType, CreateBulkNotificationInput, EnumUserRole, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, OwnerType, AssociateType, EnumAssociateStatus, Category, ResourceContactDetailsType, ResourceImageType, RelatedPostType, SocialMediaType, PosterUsageType, SocialShareResourceType, TermsAgreement, DateTimeType, LocationGeoType, LocationType, UserLicenceType, GoogleImportedMarket, AiImportedMarket, EnumImportedMarketDeactivationReason, EnumAiImportRunStatus, AiImportUsage, ScrapeSite, PushTokenType, RelationType, RelationDate, ResourceActivityType, StripeSubscription, UserActivityEvent, UserType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, AffiliateType, AffiliateResourceType, AffiliateRewardType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType, PromoCodeType, EnumAffiliateRewardType, EnumPointType, UserOverallPointsEntry, DateTimeWithPriceType, EnumNotificationResourceType, EnumNotificationType, LicenceExpiryDate } from '@timardex/cluemart-shared';
2
+ import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, ChatType, ParticipantType, ChatMessageType, NotificationType, CreateBulkNotificationInput, EnumUserRole, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, OwnerType, AssociateType, EnumAssociateStatus, Category, ResourceContactDetailsType, ResourceImageType, RelatedPostType, SocialMediaType, PosterUsageType, SocialShareResourceType, TermsAgreement, DateTimeType, LocationGeoType, LocationType, UserLicenceType, GoogleImportedMarket, EnumImportedMarketDeactivationReason, AiImportedMarket, EnumAiImportRunStatus, AiImportUsage, ScrapeSite, PushTokenType, RelationType, RelationDate, ResourceActivityType, StripeSubscription, UserActivityEvent, UserType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, AffiliateType, AffiliateResourceType, AffiliateRewardType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType, PromoCodeType, EnumAffiliateRewardType, EnumPointType, UserOverallPointsEntry, DateTimeWithPriceType, EnumNotificationResourceType, EnumNotificationType, LicenceExpiryDate } from '@timardex/cluemart-shared';
3
3
  export { updateSingleDateTimeStatus } from '@timardex/cluemart-shared';
4
4
  import * as mongoose from 'mongoose';
5
5
  import mongoose__default from 'mongoose';
@@ -522,6 +522,14 @@ declare const baseResourceFields: {
522
522
  type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
523
523
  eventId?: mongoose__default.Types.ObjectId;
524
524
  claimedByUserId?: mongoose__default.Types.ObjectId;
525
+ /**
526
+ * Why an inactive market was switched off: `STALE` when the source reported the
527
+ * place as no longer operational (only the crawler may switch it back on),
528
+ * `ADMIN` when an admin did it (the crawler must leave it alone). Absent on
529
+ * markets deactivated before the reason existed, which are treated as
530
+ * admin-owned — the conservative default.
531
+ */
532
+ deactivatedReason?: EnumImportedMarketDeactivationReason | null;
525
533
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
526
534
  searchName?: string;
527
535
  /** Indexed earliest `dateTime` start instant for chronological pagination. */
@@ -530,6 +538,14 @@ type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claime
530
538
  declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
531
539
  eventId?: mongoose__default.Types.ObjectId;
532
540
  claimedByUserId?: mongoose__default.Types.ObjectId;
541
+ /**
542
+ * Why an inactive market was switched off: `STALE` when the source reported the
543
+ * place as no longer operational (only the crawler may switch it back on),
544
+ * `ADMIN` when an admin did it (the crawler must leave it alone). Absent on
545
+ * markets deactivated before the reason existed, which are treated as
546
+ * admin-owned — the conservative default.
547
+ */
548
+ deactivatedReason?: EnumImportedMarketDeactivationReason | null;
533
549
  /** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
534
550
  searchName?: string;
535
551
  /** Indexed earliest `dateTime` start instant for chronological pagination. */
package/dist/index.mjs CHANGED
@@ -930,7 +930,8 @@ var baseResourceFields = {
930
930
 
931
931
  // src/mongoose/GoogleImportedMarket.ts
932
932
  import {
933
- EnumEventType
933
+ EnumEventType,
934
+ EnumImportedMarketDeactivationReason
934
935
  } from "@timardex/cluemart-shared";
935
936
  import mongoose10 from "mongoose";
936
937
 
@@ -1057,6 +1058,11 @@ var schema7 = new MongooseSchema6(
1057
1058
  type: ResourceImageTypeSchema
1058
1059
  },
1059
1060
  dateTime: [dateTimeSchema],
1061
+ deactivatedReason: {
1062
+ enum: Object.values(EnumImportedMarketDeactivationReason),
1063
+ required: false,
1064
+ type: String
1065
+ },
1060
1066
  deletedAt: { default: null, required: false, type: Date },
1061
1067
  description: { required: true, type: String },
1062
1068
  earliestStartDate: { default: null, required: false, type: Date },
@@ -1111,7 +1117,7 @@ var GoogleImportedMarketModel = mongoose10.models.GoogleImportedMarket || mongoo
1111
1117
  // src/mongoose/AiImportedMarket.ts
1112
1118
  import {
1113
1119
  EnumEventType as EnumEventType2,
1114
- EnumImportedMarketDeactivationReason,
1120
+ EnumImportedMarketDeactivationReason as EnumImportedMarketDeactivationReason2,
1115
1121
  EnumImportedMarketReviewStatus
1116
1122
  } from "@timardex/cluemart-shared";
1117
1123
  import mongoose11 from "mongoose";
@@ -1144,7 +1150,7 @@ var schema8 = new MongooseSchema7(
1144
1150
  },
1145
1151
  dateTime: [dateTimeSchema],
1146
1152
  deactivatedReason: {
1147
- enum: Object.values(EnumImportedMarketDeactivationReason),
1153
+ enum: Object.values(EnumImportedMarketDeactivationReason2),
1148
1154
  required: false,
1149
1155
  type: String
1150
1156
  },