@timardex/cluemart-server-shared 2.3.0 → 2.5.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.
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, AdDailyPriceType, AdBookingType, EnumAdShowOn, AdSettingsType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, DateTimeType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType } from '@timardex/cluemart-shared';
2
+ import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, AdSettingsType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, DateTimeType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from '../index-CmtBYjpi.mjs';
5
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-CmtBYjpi.mjs';
@@ -36,22 +36,25 @@ declare const AdBookingModel: mongoose__default.Model<AdBookingType, {}, {}, {},
36
36
  __v: number;
37
37
  }, any>;
38
38
 
39
- type AdImpressionEntry = {
40
- _id: string;
41
- adId: string;
42
- dayKey: string;
43
- placement: EnumAdShowOn.FRONT_PAGE | EnumAdShowOn.MARKET_SEARCH;
44
- recordedAt: Date;
45
- viewerSlotKey: string;
46
- };
47
- declare const AdImpressionModel: mongoose__default.Model<AdImpressionEntry, {}, {}, {}, mongoose__default.Document<unknown, {}, AdImpressionEntry, {}, {}> & AdImpressionEntry & Required<{
39
+ declare const AdMetricsModel: mongoose__default.Model<AdMetricsType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdMetricsType, {}, {}> & AdMetricsType & Required<{
48
40
  _id: string;
49
41
  }> & {
50
42
  __v: number;
51
43
  }, any>;
52
44
 
45
+ type AdSettingsDocument = AdSettingsType & {
46
+ minAppearancesPerHour?: number;
47
+ paidSlotsPerPlacement?: number;
48
+ reservedSlotsPerPlacement?: number;
49
+ rotationSeconds?: number;
50
+ };
53
51
  declare const DEFAULT_AD_SETTINGS: AdSettingsType;
54
- declare const AdSettingsModel: mongoose__default.Model<AdSettingsType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdSettingsType, {}, {}> & AdSettingsType & Required<{
52
+ declare const AdSettingsModel: mongoose__default.Model<AdSettingsDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, AdSettingsDocument, {}, {}> & AdSettingsType & {
53
+ minAppearancesPerHour?: number;
54
+ paidSlotsPerPlacement?: number;
55
+ reservedSlotsPerPlacement?: number;
56
+ rotationSeconds?: number;
57
+ } & Required<{
55
58
  _id: "default";
56
59
  }> & {
57
60
  __v: number;
@@ -411,4 +414,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
411
414
  __v: number;
412
415
  }, any>;
413
416
 
414
- export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, type AdImpressionEntry, AdImpressionModel, AdModel, AdSettingsModel, AppSettingModel, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, DEFAULT_AD_SETTINGS, EventDateArchiveModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaAppSettingsType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventDateArchiveType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaImpersonationAuditType, type SchemaImpersonationSessionType, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
417
+ export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdSettingsModel, AppSettingModel, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, DEFAULT_AD_SETTINGS, EventDateArchiveModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaAppSettingsType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventDateArchiveType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaImpersonationAuditType, type SchemaImpersonationSessionType, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, AdDailyPriceType, AdBookingType, EnumAdShowOn, AdSettingsType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, DateTimeType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType } from '@timardex/cluemart-shared';
2
+ import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, AdSettingsType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, DateTimeType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType, EnumResourceType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from '../index-CmtBYjpi.js';
5
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-CmtBYjpi.js';
@@ -36,22 +36,25 @@ declare const AdBookingModel: mongoose__default.Model<AdBookingType, {}, {}, {},
36
36
  __v: number;
37
37
  }, any>;
38
38
 
39
- type AdImpressionEntry = {
40
- _id: string;
41
- adId: string;
42
- dayKey: string;
43
- placement: EnumAdShowOn.FRONT_PAGE | EnumAdShowOn.MARKET_SEARCH;
44
- recordedAt: Date;
45
- viewerSlotKey: string;
46
- };
47
- declare const AdImpressionModel: mongoose__default.Model<AdImpressionEntry, {}, {}, {}, mongoose__default.Document<unknown, {}, AdImpressionEntry, {}, {}> & AdImpressionEntry & Required<{
39
+ declare const AdMetricsModel: mongoose__default.Model<AdMetricsType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdMetricsType, {}, {}> & AdMetricsType & Required<{
48
40
  _id: string;
49
41
  }> & {
50
42
  __v: number;
51
43
  }, any>;
52
44
 
45
+ type AdSettingsDocument = AdSettingsType & {
46
+ minAppearancesPerHour?: number;
47
+ paidSlotsPerPlacement?: number;
48
+ reservedSlotsPerPlacement?: number;
49
+ rotationSeconds?: number;
50
+ };
53
51
  declare const DEFAULT_AD_SETTINGS: AdSettingsType;
54
- declare const AdSettingsModel: mongoose__default.Model<AdSettingsType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdSettingsType, {}, {}> & AdSettingsType & Required<{
52
+ declare const AdSettingsModel: mongoose__default.Model<AdSettingsDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, AdSettingsDocument, {}, {}> & AdSettingsType & {
53
+ minAppearancesPerHour?: number;
54
+ paidSlotsPerPlacement?: number;
55
+ reservedSlotsPerPlacement?: number;
56
+ rotationSeconds?: number;
57
+ } & Required<{
55
58
  _id: "default";
56
59
  }> & {
57
60
  __v: number;
@@ -411,4 +414,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
411
414
  __v: number;
412
415
  }, any>;
413
416
 
414
- export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, type AdImpressionEntry, AdImpressionModel, AdModel, AdSettingsModel, AppSettingModel, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, DEFAULT_AD_SETTINGS, EventDateArchiveModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaAppSettingsType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventDateArchiveType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaImpersonationAuditType, type SchemaImpersonationSessionType, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
417
+ export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AdSettingsModel, AppSettingModel, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, DEFAULT_AD_SETTINGS, EventDateArchiveModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, ImpersonationAuditModel, ImpersonationSessionModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaAppSettingsType, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventDateArchiveType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaImpersonationAuditType, type SchemaImpersonationSessionType, SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, StallTypeSchema, UnregisteredVendorModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, buildInitialBillingCatalogEntries, getBillingCatalogDefinition, refundPolicySchema, schemaAdresource, vendorProductTypeSchema };
@@ -3,7 +3,7 @@ import {
3
3
  APP_SETTINGS_ID,
4
4
  AdBillingCatalogModel,
5
5
  AdBookingModel,
6
- AdImpressionModel,
6
+ AdMetricsModel,
7
7
  AdModel,
8
8
  AdSettingsModel,
9
9
  AffiliateModel,
@@ -54,13 +54,13 @@ import {
54
54
  termsAgreementSchema,
55
55
  userLicenseSchema,
56
56
  vendorProductTypeSchema
57
- } from "../chunk-XGBC5DCX.mjs";
57
+ } from "../chunk-T5TP2XMR.mjs";
58
58
  export {
59
59
  AD_BILLING_CATALOG_COLLECTION_NAME,
60
60
  APP_SETTINGS_ID,
61
61
  AdBillingCatalogModel,
62
62
  AdBookingModel,
63
- AdImpressionModel,
63
+ AdMetricsModel,
64
64
  AdModel,
65
65
  AdSettingsModel,
66
66
  AffiliateModel,