@timardex/cluemart-server-shared 5.0.0 → 5.3.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/{Affiliate-CisCDggv.d.ts → Affiliate-BRwzOt3b.d.ts} +19 -3
- package/dist/{Affiliate-DfBYlDtn.d.mts → Affiliate-DmLBN3lW.d.mts} +19 -3
- package/dist/{chunk-VM4B5D2I.mjs → chunk-JYBS6IOE.mjs} +13 -4
- package/dist/chunk-JYBS6IOE.mjs.map +1 -0
- package/dist/index.cjs +278 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +137 -11
- package/dist/index.d.ts +137 -11
- package/dist/index.mjs +282 -107
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +8 -0
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +28 -2
- package/dist/mongoose/index.d.ts +28 -2
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +278 -104
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +96 -12
- package/dist/service/index.d.ts +96 -12
- package/dist/service/index.mjs +271 -105
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-VM4B5D2I.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { OwnerType, AssociateType, EnumAssociateStatus, Category, ResourceContactDetailsType, ResourceImageType, RelatedPostType, SocialMediaType, PosterUsageType, SocialShareResourceType, TermsAgreement, DateTimeType, LocationGeoType, LocationType, UserLicenceType, GoogleImportedMarket,
|
|
2
|
+
import { OwnerType, AssociateType, EnumAssociateStatus, Category, ResourceContactDetailsType, ResourceImageType, RelatedPostType, SocialMediaType, PosterUsageType, SocialShareResourceType, TermsAgreement, DateTimeType, LocationGeoType, LocationType, UserLicenceType, GoogleImportedMarket, EnumImportedMarketDeactivationReason, AiImportedMarket, RelationType, RelationDate, StripeSubscription, EnumBillingPeriod, EnumUserLicence, UserActivityEvent, UserType, EventType, AffiliateType, AffiliateResourceType, AffiliateRewardType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from './index-BptxBl9x.js';
|
|
5
5
|
|
|
@@ -24,7 +24,7 @@ declare const OwnerTypeSchema: mongoose__default.Schema<SchemaOwnerType, mongoos
|
|
|
24
24
|
} & {
|
|
25
25
|
__v: number;
|
|
26
26
|
}>;
|
|
27
|
-
declare const AssociateTypeSchema: mongoose__default.Schema<SchemaAssociateType, mongoose__default.Model<SchemaAssociateType, any, any, any, mongoose__default.Document<unknown, any, SchemaAssociateType, any, {}> & Omit<AssociateType, "
|
|
27
|
+
declare const AssociateTypeSchema: mongoose__default.Schema<SchemaAssociateType, mongoose__default.Model<SchemaAssociateType, any, any, any, mongoose__default.Document<unknown, any, SchemaAssociateType, any, {}> & Omit<AssociateType, "userId" | "status"> & {
|
|
28
28
|
status: EnumAssociateStatus;
|
|
29
29
|
userId: ObjectId;
|
|
30
30
|
} & {
|
|
@@ -158,7 +158,7 @@ declare const baseResourceFields: {
|
|
|
158
158
|
associates: {
|
|
159
159
|
default: never[];
|
|
160
160
|
required: boolean;
|
|
161
|
-
type: mongoose__default.Schema<SchemaAssociateType, mongoose__default.Model<SchemaAssociateType, any, any, any, mongoose__default.Document<unknown, any, SchemaAssociateType, any, {}> & Omit<AssociateType, "
|
|
161
|
+
type: mongoose__default.Schema<SchemaAssociateType, mongoose__default.Model<SchemaAssociateType, any, any, any, mongoose__default.Document<unknown, any, SchemaAssociateType, any, {}> & Omit<AssociateType, "userId" | "status"> & {
|
|
162
162
|
status: EnumAssociateStatus;
|
|
163
163
|
userId: ObjectId;
|
|
164
164
|
} & {
|
|
@@ -335,6 +335,14 @@ declare const baseResourceFields: {
|
|
|
335
335
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
336
336
|
eventId?: mongoose__default.Types.ObjectId;
|
|
337
337
|
claimedByUserId?: mongoose__default.Types.ObjectId;
|
|
338
|
+
/**
|
|
339
|
+
* Why an inactive market was switched off: `STALE` when the source reported the
|
|
340
|
+
* place as no longer operational (only the crawler may switch it back on),
|
|
341
|
+
* `ADMIN` when an admin did it (the crawler must leave it alone). Absent on
|
|
342
|
+
* markets deactivated before the reason existed, which are treated as
|
|
343
|
+
* admin-owned — the conservative default.
|
|
344
|
+
*/
|
|
345
|
+
deactivatedReason?: EnumImportedMarketDeactivationReason | null;
|
|
338
346
|
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
339
347
|
searchName?: string;
|
|
340
348
|
/** Indexed earliest `dateTime` start instant for chronological pagination. */
|
|
@@ -343,6 +351,14 @@ type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claime
|
|
|
343
351
|
declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
344
352
|
eventId?: mongoose__default.Types.ObjectId;
|
|
345
353
|
claimedByUserId?: mongoose__default.Types.ObjectId;
|
|
354
|
+
/**
|
|
355
|
+
* Why an inactive market was switched off: `STALE` when the source reported the
|
|
356
|
+
* place as no longer operational (only the crawler may switch it back on),
|
|
357
|
+
* `ADMIN` when an admin did it (the crawler must leave it alone). Absent on
|
|
358
|
+
* markets deactivated before the reason existed, which are treated as
|
|
359
|
+
* admin-owned — the conservative default.
|
|
360
|
+
*/
|
|
361
|
+
deactivatedReason?: EnumImportedMarketDeactivationReason | null;
|
|
346
362
|
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
347
363
|
searchName?: string;
|
|
348
364
|
/** Indexed earliest `dateTime` start instant for chronological pagination. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { OwnerType, AssociateType, EnumAssociateStatus, Category, ResourceContactDetailsType, ResourceImageType, RelatedPostType, SocialMediaType, PosterUsageType, SocialShareResourceType, TermsAgreement, DateTimeType, LocationGeoType, LocationType, UserLicenceType, GoogleImportedMarket,
|
|
2
|
+
import { OwnerType, AssociateType, EnumAssociateStatus, Category, ResourceContactDetailsType, ResourceImageType, RelatedPostType, SocialMediaType, PosterUsageType, SocialShareResourceType, TermsAgreement, DateTimeType, LocationGeoType, LocationType, UserLicenceType, GoogleImportedMarket, EnumImportedMarketDeactivationReason, AiImportedMarket, RelationType, RelationDate, StripeSubscription, EnumBillingPeriod, EnumUserLicence, UserActivityEvent, UserType, EventType, AffiliateType, AffiliateResourceType, AffiliateRewardType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from './index-BptxBl9x.mjs';
|
|
5
5
|
|
|
@@ -24,7 +24,7 @@ declare const OwnerTypeSchema: mongoose__default.Schema<SchemaOwnerType, mongoos
|
|
|
24
24
|
} & {
|
|
25
25
|
__v: number;
|
|
26
26
|
}>;
|
|
27
|
-
declare const AssociateTypeSchema: mongoose__default.Schema<SchemaAssociateType, mongoose__default.Model<SchemaAssociateType, any, any, any, mongoose__default.Document<unknown, any, SchemaAssociateType, any, {}> & Omit<AssociateType, "
|
|
27
|
+
declare const AssociateTypeSchema: mongoose__default.Schema<SchemaAssociateType, mongoose__default.Model<SchemaAssociateType, any, any, any, mongoose__default.Document<unknown, any, SchemaAssociateType, any, {}> & Omit<AssociateType, "userId" | "status"> & {
|
|
28
28
|
status: EnumAssociateStatus;
|
|
29
29
|
userId: ObjectId;
|
|
30
30
|
} & {
|
|
@@ -158,7 +158,7 @@ declare const baseResourceFields: {
|
|
|
158
158
|
associates: {
|
|
159
159
|
default: never[];
|
|
160
160
|
required: boolean;
|
|
161
|
-
type: mongoose__default.Schema<SchemaAssociateType, mongoose__default.Model<SchemaAssociateType, any, any, any, mongoose__default.Document<unknown, any, SchemaAssociateType, any, {}> & Omit<AssociateType, "
|
|
161
|
+
type: mongoose__default.Schema<SchemaAssociateType, mongoose__default.Model<SchemaAssociateType, any, any, any, mongoose__default.Document<unknown, any, SchemaAssociateType, any, {}> & Omit<AssociateType, "userId" | "status"> & {
|
|
162
162
|
status: EnumAssociateStatus;
|
|
163
163
|
userId: ObjectId;
|
|
164
164
|
} & {
|
|
@@ -335,6 +335,14 @@ declare const baseResourceFields: {
|
|
|
335
335
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
336
336
|
eventId?: mongoose__default.Types.ObjectId;
|
|
337
337
|
claimedByUserId?: mongoose__default.Types.ObjectId;
|
|
338
|
+
/**
|
|
339
|
+
* Why an inactive market was switched off: `STALE` when the source reported the
|
|
340
|
+
* place as no longer operational (only the crawler may switch it back on),
|
|
341
|
+
* `ADMIN` when an admin did it (the crawler must leave it alone). Absent on
|
|
342
|
+
* markets deactivated before the reason existed, which are treated as
|
|
343
|
+
* admin-owned — the conservative default.
|
|
344
|
+
*/
|
|
345
|
+
deactivatedReason?: EnumImportedMarketDeactivationReason | null;
|
|
338
346
|
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
339
347
|
searchName?: string;
|
|
340
348
|
/** Indexed earliest `dateTime` start instant for chronological pagination. */
|
|
@@ -343,6 +351,14 @@ type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claime
|
|
|
343
351
|
declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
344
352
|
eventId?: mongoose__default.Types.ObjectId;
|
|
345
353
|
claimedByUserId?: mongoose__default.Types.ObjectId;
|
|
354
|
+
/**
|
|
355
|
+
* Why an inactive market was switched off: `STALE` when the source reported the
|
|
356
|
+
* place as no longer operational (only the crawler may switch it back on),
|
|
357
|
+
* `ADMIN` when an admin did it (the crawler must leave it alone). Absent on
|
|
358
|
+
* markets deactivated before the reason existed, which are treated as
|
|
359
|
+
* admin-owned — the conservative default.
|
|
360
|
+
*/
|
|
361
|
+
deactivatedReason?: EnumImportedMarketDeactivationReason | null;
|
|
346
362
|
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
347
363
|
searchName?: string;
|
|
348
364
|
/** Indexed earliest `dateTime` start instant for chronological pagination. */
|
|
@@ -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(
|
|
1153
|
+
enum: Object.values(EnumImportedMarketDeactivationReason2),
|
|
1148
1154
|
required: false,
|
|
1149
1155
|
type: String
|
|
1150
1156
|
},
|
|
@@ -2096,8 +2102,11 @@ var schema17 = new MongooseSchema18(
|
|
|
2096
2102
|
categories: { required: true, type: [CategorySchema] },
|
|
2097
2103
|
categoriesNames: { default: [], required: false, type: [String] },
|
|
2098
2104
|
claimed: { default: true, required: false, type: Boolean },
|
|
2105
|
+
downgradeNotifiedAt: { default: null, required: false, type: Date },
|
|
2099
2106
|
downgradeSnapshot: { required: false, type: downgradeSnapshotSchema },
|
|
2107
|
+
featuresDowngraded: { default: false, required: false, type: Boolean },
|
|
2100
2108
|
foodTruck: { required: true, type: Boolean },
|
|
2109
|
+
licenceEpoch: { default: 0, required: false, type: Number },
|
|
2101
2110
|
products: { required: false, type: productWrapperSchema },
|
|
2102
2111
|
shareRelation: { required: false, type: socialShareResourceSchema },
|
|
2103
2112
|
unregisteredVendorId: {
|
|
@@ -3047,4 +3056,4 @@ export {
|
|
|
3047
3056
|
ImpersonationSessionModel,
|
|
3048
3057
|
ImpersonationAuditModel
|
|
3049
3058
|
};
|
|
3050
|
-
//# sourceMappingURL=chunk-
|
|
3059
|
+
//# sourceMappingURL=chunk-JYBS6IOE.mjs.map
|