@timardex/cluemart-server-shared 2.5.0 → 2.5.1
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/{chunk-T5TP2XMR.mjs → chunk-X76LYIOC.mjs} +232 -247
- package/dist/chunk-X76LYIOC.mjs.map +1 -0
- package/dist/index.cjs +239 -256
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +12 -20
- package/dist/index.d.ts +12 -20
- package/dist/index.mjs +238 -253
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +232 -249
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +12 -20
- package/dist/mongoose/index.d.ts +12 -20
- package/dist/mongoose/index.mjs +1 -5
- package/dist/service/index.cjs +238 -247
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-T5TP2XMR.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType,
|
|
2
|
+
import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, 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';
|
|
@@ -42,24 +42,6 @@ declare const AdMetricsModel: mongoose__default.Model<AdMetricsType, {}, {}, {},
|
|
|
42
42
|
__v: number;
|
|
43
43
|
}, any>;
|
|
44
44
|
|
|
45
|
-
type AdSettingsDocument = AdSettingsType & {
|
|
46
|
-
minAppearancesPerHour?: number;
|
|
47
|
-
paidSlotsPerPlacement?: number;
|
|
48
|
-
reservedSlotsPerPlacement?: number;
|
|
49
|
-
rotationSeconds?: number;
|
|
50
|
-
};
|
|
51
|
-
declare const DEFAULT_AD_SETTINGS: AdSettingsType;
|
|
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<{
|
|
58
|
-
_id: "default";
|
|
59
|
-
}> & {
|
|
60
|
-
__v: number;
|
|
61
|
-
}, any>;
|
|
62
|
-
|
|
63
45
|
declare const BILLING_CATALOG_COLLECTION_NAME = "billingCatalog";
|
|
64
46
|
type SchemaBillingCatalogPriceHistoryEntry = Omit<BillingCatalogPriceHistoryEntry, "changedBy"> & {
|
|
65
47
|
changedBy?: ObjectId | null;
|
|
@@ -322,7 +304,12 @@ declare const PostModel: mongoose__default.Model<PostType, {}, {}, {}, mongoose_
|
|
|
322
304
|
declare const APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
|
|
323
305
|
type SchemaAppSettingsType = AppSettingsType & {
|
|
324
306
|
adSettings: {
|
|
307
|
+
approvalRequired: boolean;
|
|
308
|
+
minAppearancesPerHour?: number;
|
|
325
309
|
mobileDisplayEnabled: boolean;
|
|
310
|
+
paidSlotsPerPlacement?: number;
|
|
311
|
+
reservedSlotsPerPlacement?: number;
|
|
312
|
+
rotationSeconds?: number;
|
|
326
313
|
webDisplayEnabled: boolean;
|
|
327
314
|
};
|
|
328
315
|
};
|
|
@@ -335,7 +322,12 @@ declare const AppSettingModel: mongoose__default.Model<SchemaAppSettingsType, {}
|
|
|
335
322
|
updatedAt: Date | null;
|
|
336
323
|
} & {
|
|
337
324
|
adSettings: {
|
|
325
|
+
approvalRequired: boolean;
|
|
326
|
+
minAppearancesPerHour?: number;
|
|
338
327
|
mobileDisplayEnabled: boolean;
|
|
328
|
+
paidSlotsPerPlacement?: number;
|
|
329
|
+
reservedSlotsPerPlacement?: number;
|
|
330
|
+
rotationSeconds?: number;
|
|
339
331
|
webDisplayEnabled: boolean;
|
|
340
332
|
};
|
|
341
333
|
} & Required<{
|
|
@@ -414,4 +406,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
|
|
|
414
406
|
__v: number;
|
|
415
407
|
}, any>;
|
|
416
408
|
|
|
417
|
-
export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel,
|
|
409
|
+
export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AppSettingModel, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, 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 };
|
package/dist/mongoose/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,
|
|
2
|
+
import { AdType, AdDailyPriceType, AdBookingType, AdMetricsType, 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';
|
|
@@ -42,24 +42,6 @@ declare const AdMetricsModel: mongoose__default.Model<AdMetricsType, {}, {}, {},
|
|
|
42
42
|
__v: number;
|
|
43
43
|
}, any>;
|
|
44
44
|
|
|
45
|
-
type AdSettingsDocument = AdSettingsType & {
|
|
46
|
-
minAppearancesPerHour?: number;
|
|
47
|
-
paidSlotsPerPlacement?: number;
|
|
48
|
-
reservedSlotsPerPlacement?: number;
|
|
49
|
-
rotationSeconds?: number;
|
|
50
|
-
};
|
|
51
|
-
declare const DEFAULT_AD_SETTINGS: AdSettingsType;
|
|
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<{
|
|
58
|
-
_id: "default";
|
|
59
|
-
}> & {
|
|
60
|
-
__v: number;
|
|
61
|
-
}, any>;
|
|
62
|
-
|
|
63
45
|
declare const BILLING_CATALOG_COLLECTION_NAME = "billingCatalog";
|
|
64
46
|
type SchemaBillingCatalogPriceHistoryEntry = Omit<BillingCatalogPriceHistoryEntry, "changedBy"> & {
|
|
65
47
|
changedBy?: ObjectId | null;
|
|
@@ -322,7 +304,12 @@ declare const PostModel: mongoose__default.Model<PostType, {}, {}, {}, mongoose_
|
|
|
322
304
|
declare const APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
|
|
323
305
|
type SchemaAppSettingsType = AppSettingsType & {
|
|
324
306
|
adSettings: {
|
|
307
|
+
approvalRequired: boolean;
|
|
308
|
+
minAppearancesPerHour?: number;
|
|
325
309
|
mobileDisplayEnabled: boolean;
|
|
310
|
+
paidSlotsPerPlacement?: number;
|
|
311
|
+
reservedSlotsPerPlacement?: number;
|
|
312
|
+
rotationSeconds?: number;
|
|
326
313
|
webDisplayEnabled: boolean;
|
|
327
314
|
};
|
|
328
315
|
};
|
|
@@ -335,7 +322,12 @@ declare const AppSettingModel: mongoose__default.Model<SchemaAppSettingsType, {}
|
|
|
335
322
|
updatedAt: Date | null;
|
|
336
323
|
} & {
|
|
337
324
|
adSettings: {
|
|
325
|
+
approvalRequired: boolean;
|
|
326
|
+
minAppearancesPerHour?: number;
|
|
338
327
|
mobileDisplayEnabled: boolean;
|
|
328
|
+
paidSlotsPerPlacement?: number;
|
|
329
|
+
reservedSlotsPerPlacement?: number;
|
|
330
|
+
rotationSeconds?: number;
|
|
339
331
|
webDisplayEnabled: boolean;
|
|
340
332
|
};
|
|
341
333
|
} & Required<{
|
|
@@ -414,4 +406,4 @@ declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonati
|
|
|
414
406
|
__v: number;
|
|
415
407
|
}, any>;
|
|
416
408
|
|
|
417
|
-
export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel,
|
|
409
|
+
export { AD_BILLING_CATALOG_COLLECTION_NAME, APP_SETTINGS_ID, AdBillingCatalogModel, AdBookingModel, AdMetricsModel, AdModel, AppSettingModel, BILLING_CATALOG_COLLECTION_NAME, BillingCatalogModel, ChatReportModel, type CouponDocument, CouponModel, 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 };
|
package/dist/mongoose/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
AdBookingModel,
|
|
6
6
|
AdMetricsModel,
|
|
7
7
|
AdModel,
|
|
8
|
-
AdSettingsModel,
|
|
9
8
|
AffiliateModel,
|
|
10
9
|
AppSettingModel,
|
|
11
10
|
BILLING_CATALOG_COLLECTION_NAME,
|
|
@@ -15,7 +14,6 @@ import {
|
|
|
15
14
|
ChatReportModel,
|
|
16
15
|
ContactDetailsSchema,
|
|
17
16
|
CouponModel,
|
|
18
|
-
DEFAULT_AD_SETTINGS,
|
|
19
17
|
EventDateArchiveModel,
|
|
20
18
|
EventInfoModel,
|
|
21
19
|
EventModel,
|
|
@@ -54,7 +52,7 @@ import {
|
|
|
54
52
|
termsAgreementSchema,
|
|
55
53
|
userLicenseSchema,
|
|
56
54
|
vendorProductTypeSchema
|
|
57
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-X76LYIOC.mjs";
|
|
58
56
|
export {
|
|
59
57
|
AD_BILLING_CATALOG_COLLECTION_NAME,
|
|
60
58
|
APP_SETTINGS_ID,
|
|
@@ -62,7 +60,6 @@ export {
|
|
|
62
60
|
AdBookingModel,
|
|
63
61
|
AdMetricsModel,
|
|
64
62
|
AdModel,
|
|
65
|
-
AdSettingsModel,
|
|
66
63
|
AffiliateModel,
|
|
67
64
|
AppSettingModel,
|
|
68
65
|
BILLING_CATALOG_COLLECTION_NAME,
|
|
@@ -72,7 +69,6 @@ export {
|
|
|
72
69
|
ChatReportModel,
|
|
73
70
|
ContactDetailsSchema,
|
|
74
71
|
CouponModel,
|
|
75
|
-
DEFAULT_AD_SETTINGS,
|
|
76
72
|
EventDateArchiveModel,
|
|
77
73
|
EventInfoModel,
|
|
78
74
|
EventModel,
|