@timardex/cluemart-server-shared 2.1.0 → 2.1.2

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,19 +1,62 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType } 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, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from '../index-Bq-lT7a2.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-Bq-lT7a2.mjs';
6
- import { S as SchemaOwnerType } from '../Affiliate-CMJdECzs.mjs';
7
- export { A as AffiliateModel, C as CategorySchema, a as ContactDetailsSchema, O as OwnerTypeSchema, R as RelationModel, b as RelationTypeSchema, c as ResourceImageTypeSchema, d as SchemaAffiliateResourceType, e as SchemaAffiliateReward, f as SchemaRelatedPostType, g as SchemaRelationType, h as SchemaStripeSubscription, i as SchemaUserActivityEvent, j as SchemaUserType, k as SocialMediaTypeSchema, U as UserModel, l as baseResourceFields, m as dateTimeSchema, n as locationGeoSchema, o as locationsSchema, r as relatedPostSchema, p as relationDatesSchema, q as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-CMJdECzs.mjs';
6
+ import { S as SchemaOwnerType } from '../Affiliate-B1mxoMeD.mjs';
7
+ export { A as AffiliateModel, C as CategorySchema, a as ContactDetailsSchema, O as OwnerTypeSchema, R as RelationModel, b as RelationTypeSchema, c as ResourceImageTypeSchema, d as SchemaAffiliateResourceType, e as SchemaAffiliateReward, f as SchemaRelatedPostType, g as SchemaRelationType, h as SchemaStripeSubscription, i as SchemaUserActivityEvent, j as SchemaUserType, k as SocialMediaTypeSchema, U as UserModel, l as baseResourceFields, m as dateTimeSchema, n as locationGeoSchema, o as locationsSchema, r as relatedPostSchema, p as relationDatesSchema, q as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-B1mxoMeD.mjs';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
11
+ declare const schemaAdresource: mongoose__default.Schema<_timardex_cluemart_shared.AdResource, mongoose__default.Model<_timardex_cluemart_shared.AdResource, any, any, any, mongoose__default.Document<unknown, any, _timardex_cluemart_shared.AdResource, any, {}> & _timardex_cluemart_shared.AdResource & {
12
+ _id: mongoose__default.Types.ObjectId;
13
+ } & {
14
+ __v: number;
15
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, _timardex_cluemart_shared.AdResource, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<_timardex_cluemart_shared.AdResource>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<_timardex_cluemart_shared.AdResource> & {
16
+ _id: mongoose__default.Types.ObjectId;
17
+ } & {
18
+ __v: number;
19
+ }>;
11
20
  declare const AdModel: mongoose__default.Model<AdType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
12
21
  _id: string;
13
22
  }> & {
14
23
  __v: number;
15
24
  }, any>;
16
25
 
26
+ declare const AD_BILLING_CATALOG_COLLECTION_NAME = "adBillingCatalog";
27
+ declare const AdBillingCatalogModel: mongoose__default.Model<AdDailyPriceType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdDailyPriceType, {}, {}> & AdDailyPriceType & Required<{
28
+ _id: string;
29
+ }> & {
30
+ __v: number;
31
+ }, any>;
32
+
33
+ declare const AdBookingModel: mongoose__default.Model<AdBookingType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdBookingType, {}, {}> & AdBookingType & Required<{
34
+ _id: string;
35
+ }> & {
36
+ __v: number;
37
+ }, any>;
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<{
48
+ _id: string;
49
+ }> & {
50
+ __v: number;
51
+ }, any>;
52
+
53
+ declare const DEFAULT_AD_SETTINGS: AdSettingsType;
54
+ declare const AdSettingsModel: mongoose__default.Model<AdSettingsType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdSettingsType, {}, {}> & AdSettingsType & Required<{
55
+ _id: "default";
56
+ }> & {
57
+ __v: number;
58
+ }, any>;
59
+
17
60
  declare const BILLING_CATALOG_COLLECTION_NAME = "billingCatalog";
18
61
  type SchemaBillingCatalogPriceHistoryEntry = Omit<BillingCatalogPriceHistoryEntry, "changedBy"> & {
19
62
  changedBy?: ObjectId | null;
@@ -317,4 +360,4 @@ declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, m
317
360
  __v: number;
318
361
  }, any>;
319
362
 
320
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, 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, vendorProductTypeSchema };
363
+ 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, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, 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,19 +1,62 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, BillingCatalogEntryType, BillingCatalogPriceHistoryEntry, EnumBillingPeriod, EnumUserLicence, BILLING_CATALOG_KEYS, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType, VendorType, VendorProductList, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, EventInfoType, StallType, RefundPolicy, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType } 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, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameDocType, GameType, SchoolType, CouponType, CouponDataType, CouponParticipantUserType } from '@timardex/cluemart-shared';
3
3
  import mongoose__default from 'mongoose';
4
4
  import { O as ObjectId } from '../index-Bq-lT7a2.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-Bq-lT7a2.js';
6
- import { S as SchemaOwnerType } from '../Affiliate-VLZdlt5K.js';
7
- export { A as AffiliateModel, C as CategorySchema, a as ContactDetailsSchema, O as OwnerTypeSchema, R as RelationModel, b as RelationTypeSchema, c as ResourceImageTypeSchema, d as SchemaAffiliateResourceType, e as SchemaAffiliateReward, f as SchemaRelatedPostType, g as SchemaRelationType, h as SchemaStripeSubscription, i as SchemaUserActivityEvent, j as SchemaUserType, k as SocialMediaTypeSchema, U as UserModel, l as baseResourceFields, m as dateTimeSchema, n as locationGeoSchema, o as locationsSchema, r as relatedPostSchema, p as relationDatesSchema, q as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-VLZdlt5K.js';
6
+ import { S as SchemaOwnerType } from '../Affiliate-Dlf_OLIh.js';
7
+ export { A as AffiliateModel, C as CategorySchema, a as ContactDetailsSchema, O as OwnerTypeSchema, R as RelationModel, b as RelationTypeSchema, c as ResourceImageTypeSchema, d as SchemaAffiliateResourceType, e as SchemaAffiliateReward, f as SchemaRelatedPostType, g as SchemaRelationType, h as SchemaStripeSubscription, i as SchemaUserActivityEvent, j as SchemaUserType, k as SocialMediaTypeSchema, U as UserModel, l as baseResourceFields, m as dateTimeSchema, n as locationGeoSchema, o as locationsSchema, r as relatedPostSchema, p as relationDatesSchema, q as resourceRelationsSchema, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-Dlf_OLIh.js';
8
8
  import '@timardex/cluemart-shared/types';
9
9
  import 'express';
10
10
 
11
+ declare const schemaAdresource: mongoose__default.Schema<_timardex_cluemart_shared.AdResource, mongoose__default.Model<_timardex_cluemart_shared.AdResource, any, any, any, mongoose__default.Document<unknown, any, _timardex_cluemart_shared.AdResource, any, {}> & _timardex_cluemart_shared.AdResource & {
12
+ _id: mongoose__default.Types.ObjectId;
13
+ } & {
14
+ __v: number;
15
+ }, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, _timardex_cluemart_shared.AdResource, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<_timardex_cluemart_shared.AdResource>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<_timardex_cluemart_shared.AdResource> & {
16
+ _id: mongoose__default.Types.ObjectId;
17
+ } & {
18
+ __v: number;
19
+ }>;
11
20
  declare const AdModel: mongoose__default.Model<AdType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
12
21
  _id: string;
13
22
  }> & {
14
23
  __v: number;
15
24
  }, any>;
16
25
 
26
+ declare const AD_BILLING_CATALOG_COLLECTION_NAME = "adBillingCatalog";
27
+ declare const AdBillingCatalogModel: mongoose__default.Model<AdDailyPriceType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdDailyPriceType, {}, {}> & AdDailyPriceType & Required<{
28
+ _id: string;
29
+ }> & {
30
+ __v: number;
31
+ }, any>;
32
+
33
+ declare const AdBookingModel: mongoose__default.Model<AdBookingType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdBookingType, {}, {}> & AdBookingType & Required<{
34
+ _id: string;
35
+ }> & {
36
+ __v: number;
37
+ }, any>;
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<{
48
+ _id: string;
49
+ }> & {
50
+ __v: number;
51
+ }, any>;
52
+
53
+ declare const DEFAULT_AD_SETTINGS: AdSettingsType;
54
+ declare const AdSettingsModel: mongoose__default.Model<AdSettingsType, {}, {}, {}, mongoose__default.Document<unknown, {}, AdSettingsType, {}, {}> & AdSettingsType & Required<{
55
+ _id: "default";
56
+ }> & {
57
+ __v: number;
58
+ }, any>;
59
+
17
60
  declare const BILLING_CATALOG_COLLECTION_NAME = "billingCatalog";
18
61
  type SchemaBillingCatalogPriceHistoryEntry = Omit<BillingCatalogPriceHistoryEntry, "changedBy"> & {
19
62
  changedBy?: ObjectId | null;
@@ -317,4 +360,4 @@ declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, m
317
360
  __v: number;
318
361
  }, any>;
319
362
 
320
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, 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, vendorProductTypeSchema };
363
+ 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, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, type SchemaBillingCatalogEntry, type SchemaBillingCatalogPriceHistoryEntry, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, 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,6 +1,11 @@
1
1
  import {
2
+ AD_BILLING_CATALOG_COLLECTION_NAME,
2
3
  APP_SETTINGS_ID,
4
+ AdBillingCatalogModel,
5
+ AdBookingModel,
6
+ AdImpressionModel,
3
7
  AdModel,
8
+ AdSettingsModel,
4
9
  AffiliateModel,
5
10
  AppSettingModel,
6
11
  BILLING_CATALOG_COLLECTION_NAME,
@@ -10,6 +15,7 @@ import {
10
15
  ChatReportModel,
11
16
  ContactDetailsSchema,
12
17
  CouponModel,
18
+ DEFAULT_AD_SETTINGS,
13
19
  EventInfoModel,
14
20
  EventModel,
15
21
  GameModel,
@@ -41,14 +47,20 @@ import {
41
47
  relatedPostSchema,
42
48
  relationDatesSchema,
43
49
  resourceRelationsSchema,
50
+ schemaAdresource,
44
51
  socialShareResourceSchema,
45
52
  termsAgreementSchema,
46
53
  userLicenseSchema,
47
54
  vendorProductTypeSchema
48
- } from "../chunk-BEUTBR4H.mjs";
55
+ } from "../chunk-MEEBCSMJ.mjs";
49
56
  export {
57
+ AD_BILLING_CATALOG_COLLECTION_NAME,
50
58
  APP_SETTINGS_ID,
59
+ AdBillingCatalogModel,
60
+ AdBookingModel,
61
+ AdImpressionModel,
51
62
  AdModel,
63
+ AdSettingsModel,
52
64
  AffiliateModel,
53
65
  AppSettingModel,
54
66
  BILLING_CATALOG_COLLECTION_NAME,
@@ -58,6 +70,7 @@ export {
58
70
  ChatReportModel,
59
71
  ContactDetailsSchema,
60
72
  CouponModel,
73
+ DEFAULT_AD_SETTINGS,
61
74
  EventInfoModel,
62
75
  EventModel,
63
76
  GameModel,
@@ -89,6 +102,7 @@ export {
89
102
  relatedPostSchema,
90
103
  relationDatesSchema,
91
104
  resourceRelationsSchema,
105
+ schemaAdresource,
92
106
  socialShareResourceSchema,
93
107
  termsAgreementSchema,
94
108
  userLicenseSchema,