@timardex/cluemart-server-shared 1.1.38 → 2.0.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-CZKOOaz_.d.ts → Affiliate-CMJdECzs.d.mts} +43 -30
- package/dist/{Affiliate-xCVhO2Cy.d.mts → Affiliate-VLZdlt5K.d.ts} +43 -30
- package/dist/chunk-3QS3WKRC.mjs +31 -0
- package/dist/chunk-3QS3WKRC.mjs.map +1 -0
- package/dist/{chunk-DJHOLZ3J.mjs → chunk-EGUFWI7R.mjs} +2336 -417
- package/dist/chunk-EGUFWI7R.mjs.map +1 -0
- package/dist/{Chat-Wn7yfc3v.d.mts → index-Bq-lT7a2.d.mts} +35 -35
- package/dist/{Chat-Wn7yfc3v.d.ts → index-Bq-lT7a2.d.ts} +35 -35
- package/dist/index.cjs +2379 -424
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +159 -84
- package/dist/index.d.ts +159 -84
- package/dist/index.mjs +2394 -421
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +2341 -421
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +69 -9
- package/dist/mongoose/index.d.ts +69 -9
- package/dist/mongoose/index.mjs +10 -1
- package/dist/service/index.cjs +2320 -431
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +12 -10
- package/dist/service/index.d.ts +12 -10
- package/dist/service/index.mjs +52 -16
- package/dist/service/index.mjs.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 -0
- package/package.json +2 -2
- package/dist/chunk-DJHOLZ3J.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType,
|
|
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';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
|
-
import { O as ObjectId } from '../
|
|
5
|
-
export { C as ChatModel, N as NotificationModel,
|
|
6
|
-
import { S as SchemaOwnerType } from '../Affiliate-
|
|
7
|
-
export { A as AffiliateModel, C as CategorySchema,
|
|
4
|
+
import { O as ObjectId } from '../index-Bq-lT7a2.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-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';
|
|
8
8
|
import '@timardex/cluemart-shared/types';
|
|
9
9
|
import 'express';
|
|
10
10
|
|
|
@@ -14,6 +14,46 @@ declare const AdModel: mongoose__default.Model<AdType, {}, {}, {}, mongoose__def
|
|
|
14
14
|
__v: number;
|
|
15
15
|
}, any>;
|
|
16
16
|
|
|
17
|
+
declare const BILLING_CATALOG_COLLECTION_NAME = "billingCatalog";
|
|
18
|
+
type SchemaBillingCatalogPriceHistoryEntry = Omit<BillingCatalogPriceHistoryEntry, "changedBy"> & {
|
|
19
|
+
changedBy?: ObjectId | null;
|
|
20
|
+
};
|
|
21
|
+
type SchemaBillingCatalogEntry = Omit<BillingCatalogEntryType, "_id" | "priceHistory" | "updatedBy"> & {
|
|
22
|
+
_id: ObjectId;
|
|
23
|
+
priceHistory: SchemaBillingCatalogPriceHistoryEntry[];
|
|
24
|
+
updatedBy?: ObjectId | null;
|
|
25
|
+
};
|
|
26
|
+
declare const BillingCatalogModel: mongoose__default.Model<SchemaBillingCatalogEntry, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaBillingCatalogEntry, {}, {}> & Omit<BillingCatalogEntryType, "_id" | "priceHistory" | "updatedBy"> & {
|
|
27
|
+
_id: ObjectId;
|
|
28
|
+
priceHistory: SchemaBillingCatalogPriceHistoryEntry[];
|
|
29
|
+
updatedBy?: ObjectId | null;
|
|
30
|
+
} & Required<{
|
|
31
|
+
_id: mongoose__default.Types.ObjectId;
|
|
32
|
+
}> & {
|
|
33
|
+
__v: number;
|
|
34
|
+
}, any>;
|
|
35
|
+
/**
|
|
36
|
+
* Produces the four records used for an idempotent `$setOnInsert` catalogue
|
|
37
|
+
* initialisation. Stripe identifiers deliberately start empty and are attached
|
|
38
|
+
* only after Stripe successfully creates the matching Product and Price.
|
|
39
|
+
*/
|
|
40
|
+
declare function buildInitialBillingCatalogEntries(now?: Date): {
|
|
41
|
+
active: boolean;
|
|
42
|
+
billingPeriod: EnumBillingPeriod;
|
|
43
|
+
currency: "nzd";
|
|
44
|
+
effectiveFrom: Date;
|
|
45
|
+
key: _timardex_cluemart_shared.BillingCatalogKey;
|
|
46
|
+
licenceType: EnumUserLicence.PRO_PLUS_VENDOR | EnumUserLicence.PRO_VENDOR;
|
|
47
|
+
priceHistory: never[];
|
|
48
|
+
revision: number;
|
|
49
|
+
stripePriceId: null;
|
|
50
|
+
stripeProductId: null;
|
|
51
|
+
taxInclusive: boolean;
|
|
52
|
+
unitAmount: number;
|
|
53
|
+
updatedBy: null;
|
|
54
|
+
}[];
|
|
55
|
+
declare function getBillingCatalogDefinition(key: (typeof BILLING_CATALOG_KEYS)[number]): _timardex_cluemart_shared.BillingCatalogDefinition;
|
|
56
|
+
|
|
17
57
|
type SchemaChatReportType = Omit<ReportChatUser, "reporterUserId" | "reportedUserId" | "chatId"> & {
|
|
18
58
|
reporterUserId: ObjectId;
|
|
19
59
|
reportedUserId: ObjectId;
|
|
@@ -32,10 +72,14 @@ declare const ChatReportModel: mongoose__default.Model<SchemaChatReportType, {},
|
|
|
32
72
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
33
73
|
eventId?: mongoose__default.Types.ObjectId;
|
|
34
74
|
claimedByUserId?: mongoose__default.Types.ObjectId;
|
|
75
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
76
|
+
searchName?: string;
|
|
35
77
|
};
|
|
36
78
|
declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
37
79
|
eventId?: mongoose__default.Types.ObjectId;
|
|
38
80
|
claimedByUserId?: mongoose__default.Types.ObjectId;
|
|
81
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
82
|
+
searchName?: string;
|
|
39
83
|
} & Required<{
|
|
40
84
|
_id: string;
|
|
41
85
|
}> & {
|
|
@@ -74,20 +118,28 @@ declare const vendorProductTypeSchema: mongoose__default.Schema<VendorProductLis
|
|
|
74
118
|
_id: string;
|
|
75
119
|
}> & {
|
|
76
120
|
__v: number;
|
|
77
|
-
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, VendorProductList, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<VendorProductList>, {}, mongoose__default.
|
|
121
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, VendorProductList, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<VendorProductList>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<VendorProductList> & Required<{
|
|
78
122
|
_id: string;
|
|
79
123
|
}> & {
|
|
80
124
|
__v: number;
|
|
81
125
|
}>;
|
|
82
126
|
type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "unregisteredVendorId"> & {
|
|
83
127
|
adIds?: ObjectId[];
|
|
128
|
+
/** Mirror of `categories[].name` for $text search (see vendorSearch). */
|
|
129
|
+
categoriesNames?: string[];
|
|
84
130
|
owner: SchemaOwnerType;
|
|
131
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
132
|
+
searchName?: string;
|
|
85
133
|
vendorInfoId: ObjectId;
|
|
86
134
|
unregisteredVendorId?: ObjectId | null;
|
|
87
135
|
};
|
|
88
136
|
declare const VendorModel: mongoose__default.Model<SchemaVendorType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
|
|
89
137
|
adIds?: ObjectId[];
|
|
138
|
+
/** Mirror of `categories[].name` for $text search (see vendorSearch). */
|
|
139
|
+
categoriesNames?: string[];
|
|
90
140
|
owner: SchemaOwnerType;
|
|
141
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
142
|
+
searchName?: string;
|
|
91
143
|
vendorInfoId: ObjectId;
|
|
92
144
|
unregisteredVendorId?: ObjectId | null;
|
|
93
145
|
} & Required<{
|
|
@@ -133,11 +185,15 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
|
133
185
|
adIds?: ObjectId[];
|
|
134
186
|
eventInfoId: ObjectId;
|
|
135
187
|
owner: SchemaOwnerType;
|
|
188
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
189
|
+
searchName?: string;
|
|
136
190
|
};
|
|
137
191
|
declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
|
|
138
192
|
adIds?: ObjectId[];
|
|
139
193
|
eventInfoId: ObjectId;
|
|
140
194
|
owner: SchemaOwnerType;
|
|
195
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
196
|
+
searchName?: string;
|
|
141
197
|
} & Required<{
|
|
142
198
|
_id: string;
|
|
143
199
|
}> & {
|
|
@@ -148,7 +204,7 @@ declare const StallTypeSchema: mongoose__default.Schema<StallType, mongoose__def
|
|
|
148
204
|
_id: mongoose__default.Types.ObjectId;
|
|
149
205
|
} & {
|
|
150
206
|
__v: number;
|
|
151
|
-
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, StallType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<StallType>, {}, mongoose__default.
|
|
207
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, StallType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<StallType>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<StallType> & {
|
|
152
208
|
_id: mongoose__default.Types.ObjectId;
|
|
153
209
|
} & {
|
|
154
210
|
__v: number;
|
|
@@ -157,7 +213,7 @@ declare const refundPolicySchema: mongoose__default.Schema<RefundPolicy, mongoos
|
|
|
157
213
|
_id: mongoose__default.Types.ObjectId;
|
|
158
214
|
} & {
|
|
159
215
|
__v: number;
|
|
160
|
-
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RefundPolicy, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RefundPolicy>, {}, mongoose__default.
|
|
216
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RefundPolicy, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RefundPolicy>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<RefundPolicy> & {
|
|
161
217
|
_id: mongoose__default.Types.ObjectId;
|
|
162
218
|
} & {
|
|
163
219
|
__v: number;
|
|
@@ -176,10 +232,14 @@ declare const EventInfoModel: mongoose__default.Model<SchemaEventInfoType, {}, {
|
|
|
176
232
|
type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
|
|
177
233
|
adIds?: ObjectId[];
|
|
178
234
|
owner: SchemaOwnerType;
|
|
235
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
236
|
+
searchName?: string;
|
|
179
237
|
};
|
|
180
238
|
declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
|
|
181
239
|
adIds?: ObjectId[];
|
|
182
240
|
owner: SchemaOwnerType;
|
|
241
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
242
|
+
searchName?: string;
|
|
183
243
|
} & Required<{
|
|
184
244
|
_id: string;
|
|
185
245
|
}> & {
|
|
@@ -257,4 +317,4 @@ declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, m
|
|
|
257
317
|
__v: number;
|
|
258
318
|
}, any>;
|
|
259
319
|
|
|
260
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, ChatReportModel, type CouponDocument, CouponModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, 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, refundPolicySchema, vendorProductTypeSchema };
|
|
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 };
|
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, ReportChatUser, GoogleImportedMarket, PushTokenType, ResourceActivityType,
|
|
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';
|
|
3
3
|
import mongoose__default from 'mongoose';
|
|
4
|
-
import { O as ObjectId } from '../
|
|
5
|
-
export { C as ChatModel, N as NotificationModel,
|
|
6
|
-
import { S as SchemaOwnerType } from '../Affiliate-
|
|
7
|
-
export { A as AffiliateModel, C as CategorySchema,
|
|
4
|
+
import { O as ObjectId } from '../index-Bq-lT7a2.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-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';
|
|
8
8
|
import '@timardex/cluemart-shared/types';
|
|
9
9
|
import 'express';
|
|
10
10
|
|
|
@@ -14,6 +14,46 @@ declare const AdModel: mongoose__default.Model<AdType, {}, {}, {}, mongoose__def
|
|
|
14
14
|
__v: number;
|
|
15
15
|
}, any>;
|
|
16
16
|
|
|
17
|
+
declare const BILLING_CATALOG_COLLECTION_NAME = "billingCatalog";
|
|
18
|
+
type SchemaBillingCatalogPriceHistoryEntry = Omit<BillingCatalogPriceHistoryEntry, "changedBy"> & {
|
|
19
|
+
changedBy?: ObjectId | null;
|
|
20
|
+
};
|
|
21
|
+
type SchemaBillingCatalogEntry = Omit<BillingCatalogEntryType, "_id" | "priceHistory" | "updatedBy"> & {
|
|
22
|
+
_id: ObjectId;
|
|
23
|
+
priceHistory: SchemaBillingCatalogPriceHistoryEntry[];
|
|
24
|
+
updatedBy?: ObjectId | null;
|
|
25
|
+
};
|
|
26
|
+
declare const BillingCatalogModel: mongoose__default.Model<SchemaBillingCatalogEntry, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaBillingCatalogEntry, {}, {}> & Omit<BillingCatalogEntryType, "_id" | "priceHistory" | "updatedBy"> & {
|
|
27
|
+
_id: ObjectId;
|
|
28
|
+
priceHistory: SchemaBillingCatalogPriceHistoryEntry[];
|
|
29
|
+
updatedBy?: ObjectId | null;
|
|
30
|
+
} & Required<{
|
|
31
|
+
_id: mongoose__default.Types.ObjectId;
|
|
32
|
+
}> & {
|
|
33
|
+
__v: number;
|
|
34
|
+
}, any>;
|
|
35
|
+
/**
|
|
36
|
+
* Produces the four records used for an idempotent `$setOnInsert` catalogue
|
|
37
|
+
* initialisation. Stripe identifiers deliberately start empty and are attached
|
|
38
|
+
* only after Stripe successfully creates the matching Product and Price.
|
|
39
|
+
*/
|
|
40
|
+
declare function buildInitialBillingCatalogEntries(now?: Date): {
|
|
41
|
+
active: boolean;
|
|
42
|
+
billingPeriod: EnumBillingPeriod;
|
|
43
|
+
currency: "nzd";
|
|
44
|
+
effectiveFrom: Date;
|
|
45
|
+
key: _timardex_cluemart_shared.BillingCatalogKey;
|
|
46
|
+
licenceType: EnumUserLicence.PRO_PLUS_VENDOR | EnumUserLicence.PRO_VENDOR;
|
|
47
|
+
priceHistory: never[];
|
|
48
|
+
revision: number;
|
|
49
|
+
stripePriceId: null;
|
|
50
|
+
stripeProductId: null;
|
|
51
|
+
taxInclusive: boolean;
|
|
52
|
+
unitAmount: number;
|
|
53
|
+
updatedBy: null;
|
|
54
|
+
}[];
|
|
55
|
+
declare function getBillingCatalogDefinition(key: (typeof BILLING_CATALOG_KEYS)[number]): _timardex_cluemart_shared.BillingCatalogDefinition;
|
|
56
|
+
|
|
17
57
|
type SchemaChatReportType = Omit<ReportChatUser, "reporterUserId" | "reportedUserId" | "chatId"> & {
|
|
18
58
|
reporterUserId: ObjectId;
|
|
19
59
|
reportedUserId: ObjectId;
|
|
@@ -32,10 +72,14 @@ declare const ChatReportModel: mongoose__default.Model<SchemaChatReportType, {},
|
|
|
32
72
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
33
73
|
eventId?: mongoose__default.Types.ObjectId;
|
|
34
74
|
claimedByUserId?: mongoose__default.Types.ObjectId;
|
|
75
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
76
|
+
searchName?: string;
|
|
35
77
|
};
|
|
36
78
|
declare const GoogleImportedMarketModel: mongoose__default.Model<SchemaGoogleImportedMarket, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaGoogleImportedMarket, {}, {}> & Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
37
79
|
eventId?: mongoose__default.Types.ObjectId;
|
|
38
80
|
claimedByUserId?: mongoose__default.Types.ObjectId;
|
|
81
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
82
|
+
searchName?: string;
|
|
39
83
|
} & Required<{
|
|
40
84
|
_id: string;
|
|
41
85
|
}> & {
|
|
@@ -74,20 +118,28 @@ declare const vendorProductTypeSchema: mongoose__default.Schema<VendorProductLis
|
|
|
74
118
|
_id: string;
|
|
75
119
|
}> & {
|
|
76
120
|
__v: number;
|
|
77
|
-
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, VendorProductList, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<VendorProductList>, {}, mongoose__default.
|
|
121
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, VendorProductList, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<VendorProductList>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<VendorProductList> & Required<{
|
|
78
122
|
_id: string;
|
|
79
123
|
}> & {
|
|
80
124
|
__v: number;
|
|
81
125
|
}>;
|
|
82
126
|
type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "unregisteredVendorId"> & {
|
|
83
127
|
adIds?: ObjectId[];
|
|
128
|
+
/** Mirror of `categories[].name` for $text search (see vendorSearch). */
|
|
129
|
+
categoriesNames?: string[];
|
|
84
130
|
owner: SchemaOwnerType;
|
|
131
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
132
|
+
searchName?: string;
|
|
85
133
|
vendorInfoId: ObjectId;
|
|
86
134
|
unregisteredVendorId?: ObjectId | null;
|
|
87
135
|
};
|
|
88
136
|
declare const VendorModel: mongoose__default.Model<SchemaVendorType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
|
|
89
137
|
adIds?: ObjectId[];
|
|
138
|
+
/** Mirror of `categories[].name` for $text search (see vendorSearch). */
|
|
139
|
+
categoriesNames?: string[];
|
|
90
140
|
owner: SchemaOwnerType;
|
|
141
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
142
|
+
searchName?: string;
|
|
91
143
|
vendorInfoId: ObjectId;
|
|
92
144
|
unregisteredVendorId?: ObjectId | null;
|
|
93
145
|
} & Required<{
|
|
@@ -133,11 +185,15 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
|
133
185
|
adIds?: ObjectId[];
|
|
134
186
|
eventInfoId: ObjectId;
|
|
135
187
|
owner: SchemaOwnerType;
|
|
188
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
189
|
+
searchName?: string;
|
|
136
190
|
};
|
|
137
191
|
declare const EventModel: mongoose__default.Model<SchemaEventType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
|
|
138
192
|
adIds?: ObjectId[];
|
|
139
193
|
eventInfoId: ObjectId;
|
|
140
194
|
owner: SchemaOwnerType;
|
|
195
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
196
|
+
searchName?: string;
|
|
141
197
|
} & Required<{
|
|
142
198
|
_id: string;
|
|
143
199
|
}> & {
|
|
@@ -148,7 +204,7 @@ declare const StallTypeSchema: mongoose__default.Schema<StallType, mongoose__def
|
|
|
148
204
|
_id: mongoose__default.Types.ObjectId;
|
|
149
205
|
} & {
|
|
150
206
|
__v: number;
|
|
151
|
-
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, StallType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<StallType>, {}, mongoose__default.
|
|
207
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, StallType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<StallType>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<StallType> & {
|
|
152
208
|
_id: mongoose__default.Types.ObjectId;
|
|
153
209
|
} & {
|
|
154
210
|
__v: number;
|
|
@@ -157,7 +213,7 @@ declare const refundPolicySchema: mongoose__default.Schema<RefundPolicy, mongoos
|
|
|
157
213
|
_id: mongoose__default.Types.ObjectId;
|
|
158
214
|
} & {
|
|
159
215
|
__v: number;
|
|
160
|
-
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RefundPolicy, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RefundPolicy>, {}, mongoose__default.
|
|
216
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RefundPolicy, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RefundPolicy>, {}, mongoose__default.DefaultSchemaOptions> & mongoose__default.FlatRecord<RefundPolicy> & {
|
|
161
217
|
_id: mongoose__default.Types.ObjectId;
|
|
162
218
|
} & {
|
|
163
219
|
__v: number;
|
|
@@ -176,10 +232,14 @@ declare const EventInfoModel: mongoose__default.Model<SchemaEventInfoType, {}, {
|
|
|
176
232
|
type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
|
|
177
233
|
adIds?: ObjectId[];
|
|
178
234
|
owner: SchemaOwnerType;
|
|
235
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
236
|
+
searchName?: string;
|
|
179
237
|
};
|
|
180
238
|
declare const PartnerModel: mongoose__default.Model<SchemaPartnerType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
|
|
181
239
|
adIds?: ObjectId[];
|
|
182
240
|
owner: SchemaOwnerType;
|
|
241
|
+
/** Lowercase `name` mirror for prefix type-ahead (see searchNamePlugin). */
|
|
242
|
+
searchName?: string;
|
|
183
243
|
} & Required<{
|
|
184
244
|
_id: string;
|
|
185
245
|
}> & {
|
|
@@ -257,4 +317,4 @@ declare const CouponModel: mongoose__default.Model<CouponDocument, {}, {}, {}, m
|
|
|
257
317
|
__v: number;
|
|
258
318
|
}, any>;
|
|
259
319
|
|
|
260
|
-
export { APP_SETTINGS_ID, AdModel, AppSettingModel, ChatReportModel, type CouponDocument, CouponModel, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, 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, refundPolicySchema, vendorProductTypeSchema };
|
|
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 };
|
package/dist/mongoose/index.mjs
CHANGED
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
AdModel,
|
|
4
4
|
AffiliateModel,
|
|
5
5
|
AppSettingModel,
|
|
6
|
+
BILLING_CATALOG_COLLECTION_NAME,
|
|
7
|
+
BillingCatalogModel,
|
|
6
8
|
CategorySchema,
|
|
7
9
|
ChatModel,
|
|
8
10
|
ChatReportModel,
|
|
@@ -30,7 +32,9 @@ import {
|
|
|
30
32
|
VendorModel,
|
|
31
33
|
VerificationTokenModel,
|
|
32
34
|
baseResourceFields,
|
|
35
|
+
buildInitialBillingCatalogEntries,
|
|
33
36
|
dateTimeSchema,
|
|
37
|
+
getBillingCatalogDefinition,
|
|
34
38
|
locationGeoSchema,
|
|
35
39
|
locationsSchema,
|
|
36
40
|
refundPolicySchema,
|
|
@@ -41,12 +45,15 @@ import {
|
|
|
41
45
|
termsAgreementSchema,
|
|
42
46
|
userLicenseSchema,
|
|
43
47
|
vendorProductTypeSchema
|
|
44
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-EGUFWI7R.mjs";
|
|
49
|
+
import "../chunk-3QS3WKRC.mjs";
|
|
45
50
|
export {
|
|
46
51
|
APP_SETTINGS_ID,
|
|
47
52
|
AdModel,
|
|
48
53
|
AffiliateModel,
|
|
49
54
|
AppSettingModel,
|
|
55
|
+
BILLING_CATALOG_COLLECTION_NAME,
|
|
56
|
+
BillingCatalogModel,
|
|
50
57
|
CategorySchema,
|
|
51
58
|
ChatModel,
|
|
52
59
|
ChatReportModel,
|
|
@@ -74,7 +81,9 @@ export {
|
|
|
74
81
|
VendorModel,
|
|
75
82
|
VerificationTokenModel,
|
|
76
83
|
baseResourceFields,
|
|
84
|
+
buildInitialBillingCatalogEntries,
|
|
77
85
|
dateTimeSchema,
|
|
86
|
+
getBillingCatalogDefinition,
|
|
78
87
|
locationGeoSchema,
|
|
79
88
|
locationsSchema,
|
|
80
89
|
refundPolicySchema,
|