@timardex/cluemart-server-shared 2.2.1 → 2.2.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.
- package/dist/{Affiliate-i11rkfv5.d.mts → Affiliate-6AEy-gNx.d.mts} +1 -1
- package/dist/{Affiliate-BSF7Wm6O.d.ts → Affiliate-D40kRxO_.d.ts} +1 -1
- package/dist/{chunk-ZKHRT2PV.mjs → chunk-TIGQ6F5T.mjs} +60 -2
- package/dist/chunk-TIGQ6F5T.mjs.map +1 -0
- package/dist/{chunk-6PNG5BI5.mjs → chunk-TMPPPLIW.mjs} +1 -1
- package/dist/chunk-TMPPPLIW.mjs.map +1 -0
- package/dist/{index-Bq-lT7a2.d.mts → index-CmtBYjpi.d.mts} +4 -0
- package/dist/{index-Bq-lT7a2.d.ts → index-CmtBYjpi.d.ts} +4 -0
- package/dist/index.cjs +183 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +38 -11
- package/dist/index.d.ts +38 -11
- package/dist/index.mjs +82 -91
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +60 -0
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +36 -6
- package/dist/mongoose/index.d.ts +36 -6
- package/dist/mongoose/index.mjs +5 -1
- package/dist/service/index.cjs +178 -188
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +5 -12
- package/dist/service/index.d.ts +5 -12
- package/dist/service/index.mjs +9 -76
- package/dist/service/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-6PNG5BI5.mjs.map +0 -1
- package/dist/chunk-ZKHRT2PV.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
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 } 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';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
|
-
import { O as ObjectId } from '../index-
|
|
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-
|
|
6
|
-
import { S as SchemaOwnerType } from '../Affiliate-
|
|
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, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-
|
|
4
|
+
import { O as ObjectId } from '../index-CmtBYjpi.mjs';
|
|
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';
|
|
6
|
+
import { S as SchemaOwnerType } from '../Affiliate-6AEy-gNx.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, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-6AEy-gNx.mjs';
|
|
8
8
|
import '@timardex/cluemart-shared/types';
|
|
9
9
|
import 'express';
|
|
10
10
|
|
|
@@ -381,4 +381,34 @@ declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, m
|
|
|
381
381
|
__v: number;
|
|
382
382
|
}, any>;
|
|
383
383
|
|
|
384
|
-
|
|
384
|
+
type SchemaImpersonationSessionType = {
|
|
385
|
+
/** The SUPER_ADMIN who is impersonating. */
|
|
386
|
+
impersonatorUserId: ObjectId;
|
|
387
|
+
/** The resource owner being impersonated. */
|
|
388
|
+
impersonatedUserId: ObjectId;
|
|
389
|
+
/** Hashed impersonation refresh token (stored here, not on the User doc). */
|
|
390
|
+
refreshToken: string;
|
|
391
|
+
expiresAt: Date;
|
|
392
|
+
};
|
|
393
|
+
declare const ImpersonationSessionModel: mongoose__default.Model<SchemaImpersonationSessionType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaImpersonationSessionType, {}, {}> & SchemaImpersonationSessionType & {
|
|
394
|
+
_id: mongoose__default.Types.ObjectId;
|
|
395
|
+
} & {
|
|
396
|
+
__v: number;
|
|
397
|
+
}, any>;
|
|
398
|
+
type SchemaImpersonationAuditType = {
|
|
399
|
+
action: "start" | "end";
|
|
400
|
+
/** Reason for an `end` record (manual, logout, reuse_revoked, expired). */
|
|
401
|
+
endReason?: string | null;
|
|
402
|
+
impersonatedUserId: ObjectId;
|
|
403
|
+
impersonatorUserId: ObjectId;
|
|
404
|
+
resourceId?: ObjectId | null;
|
|
405
|
+
resourceType?: EnumResourceType | null;
|
|
406
|
+
sessionId: ObjectId;
|
|
407
|
+
};
|
|
408
|
+
declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonationAuditType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaImpersonationAuditType, {}, {}> & SchemaImpersonationAuditType & {
|
|
409
|
+
_id: mongoose__default.Types.ObjectId;
|
|
410
|
+
} & {
|
|
411
|
+
__v: number;
|
|
412
|
+
}, any>;
|
|
413
|
+
|
|
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 };
|
package/dist/mongoose/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 } 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';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
|
-
import { O as ObjectId } from '../index-
|
|
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-
|
|
6
|
-
import { S as SchemaOwnerType } from '../Affiliate-
|
|
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, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-
|
|
4
|
+
import { O as ObjectId } from '../index-CmtBYjpi.js';
|
|
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';
|
|
6
|
+
import { S as SchemaOwnerType } from '../Affiliate-D40kRxO_.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, s as socialShareResourceSchema, t as termsAgreementSchema, u as userLicenseSchema } from '../Affiliate-D40kRxO_.js';
|
|
8
8
|
import '@timardex/cluemart-shared/types';
|
|
9
9
|
import 'express';
|
|
10
10
|
|
|
@@ -381,4 +381,34 @@ declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, m
|
|
|
381
381
|
__v: number;
|
|
382
382
|
}, any>;
|
|
383
383
|
|
|
384
|
-
|
|
384
|
+
type SchemaImpersonationSessionType = {
|
|
385
|
+
/** The SUPER_ADMIN who is impersonating. */
|
|
386
|
+
impersonatorUserId: ObjectId;
|
|
387
|
+
/** The resource owner being impersonated. */
|
|
388
|
+
impersonatedUserId: ObjectId;
|
|
389
|
+
/** Hashed impersonation refresh token (stored here, not on the User doc). */
|
|
390
|
+
refreshToken: string;
|
|
391
|
+
expiresAt: Date;
|
|
392
|
+
};
|
|
393
|
+
declare const ImpersonationSessionModel: mongoose__default.Model<SchemaImpersonationSessionType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaImpersonationSessionType, {}, {}> & SchemaImpersonationSessionType & {
|
|
394
|
+
_id: mongoose__default.Types.ObjectId;
|
|
395
|
+
} & {
|
|
396
|
+
__v: number;
|
|
397
|
+
}, any>;
|
|
398
|
+
type SchemaImpersonationAuditType = {
|
|
399
|
+
action: "start" | "end";
|
|
400
|
+
/** Reason for an `end` record (manual, logout, reuse_revoked, expired). */
|
|
401
|
+
endReason?: string | null;
|
|
402
|
+
impersonatedUserId: ObjectId;
|
|
403
|
+
impersonatorUserId: ObjectId;
|
|
404
|
+
resourceId?: ObjectId | null;
|
|
405
|
+
resourceType?: EnumResourceType | null;
|
|
406
|
+
sessionId: ObjectId;
|
|
407
|
+
};
|
|
408
|
+
declare const ImpersonationAuditModel: mongoose__default.Model<SchemaImpersonationAuditType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaImpersonationAuditType, {}, {}> & SchemaImpersonationAuditType & {
|
|
409
|
+
_id: mongoose__default.Types.ObjectId;
|
|
410
|
+
} & {
|
|
411
|
+
__v: number;
|
|
412
|
+
}, any>;
|
|
413
|
+
|
|
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 };
|
package/dist/mongoose/index.mjs
CHANGED
|
@@ -21,6 +21,8 @@ import {
|
|
|
21
21
|
EventModel,
|
|
22
22
|
GameModel,
|
|
23
23
|
GoogleImportedMarketModel,
|
|
24
|
+
ImpersonationAuditModel,
|
|
25
|
+
ImpersonationSessionModel,
|
|
24
26
|
NotificationModel,
|
|
25
27
|
OwnerTypeSchema,
|
|
26
28
|
PartnerModel,
|
|
@@ -52,7 +54,7 @@ import {
|
|
|
52
54
|
termsAgreementSchema,
|
|
53
55
|
userLicenseSchema,
|
|
54
56
|
vendorProductTypeSchema
|
|
55
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-TIGQ6F5T.mjs";
|
|
56
58
|
export {
|
|
57
59
|
AD_BILLING_CATALOG_COLLECTION_NAME,
|
|
58
60
|
APP_SETTINGS_ID,
|
|
@@ -76,6 +78,8 @@ export {
|
|
|
76
78
|
EventModel,
|
|
77
79
|
GameModel,
|
|
78
80
|
GoogleImportedMarketModel,
|
|
81
|
+
ImpersonationAuditModel,
|
|
82
|
+
ImpersonationSessionModel,
|
|
79
83
|
NotificationModel,
|
|
80
84
|
OwnerTypeSchema,
|
|
81
85
|
PartnerModel,
|