@timardex/cluemart-server-shared 1.0.132 → 1.0.134
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-OBW4LAAG.mjs → chunk-AMB6NVKD.mjs} +220 -100
- package/dist/chunk-AMB6NVKD.mjs.map +1 -0
- package/dist/index.cjs +226 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +102 -60
- package/dist/index.d.ts +102 -60
- package/dist/index.mjs +224 -104
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +220 -98
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +102 -60
- package/dist/mongoose/index.d.ts +102 -60
- package/dist/mongoose/index.mjs +5 -1
- package/dist/service/index.cjs +218 -100
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-OBW4LAAG.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
-
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType,
|
|
2
|
+
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-DjrJ0LKo.mjs';
|
|
5
5
|
export { C as ChatModel, N as NotificationModel, P as ParticipantSchema, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DjrJ0LKo.mjs';
|
|
@@ -87,6 +87,15 @@ declare const associatesSchema: mongoose.Schema<AssociateType, mongoose.Model<As
|
|
|
87
87
|
} & {
|
|
88
88
|
__v: number;
|
|
89
89
|
}>;
|
|
90
|
+
declare const ContactDetailsSchema: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
91
|
+
_id: mongoose.Types.ObjectId;
|
|
92
|
+
} & {
|
|
93
|
+
__v: number;
|
|
94
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
95
|
+
_id: mongoose.Types.ObjectId;
|
|
96
|
+
} & {
|
|
97
|
+
__v: number;
|
|
98
|
+
}>;
|
|
90
99
|
declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
91
100
|
termVersion: string;
|
|
92
101
|
} & {
|
|
@@ -178,15 +187,18 @@ declare const baseResourceFields: {
|
|
|
178
187
|
__v: number;
|
|
179
188
|
}>[];
|
|
180
189
|
};
|
|
181
|
-
contactDetails:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
contactDetails: {
|
|
191
|
+
required: boolean;
|
|
192
|
+
type: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
193
|
+
_id: mongoose.Types.ObjectId;
|
|
194
|
+
} & {
|
|
195
|
+
__v: number;
|
|
196
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
197
|
+
_id: mongoose.Types.ObjectId;
|
|
198
|
+
} & {
|
|
199
|
+
__v: number;
|
|
200
|
+
}>;
|
|
201
|
+
};
|
|
190
202
|
cover: {
|
|
191
203
|
required: boolean;
|
|
192
204
|
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
@@ -208,24 +220,30 @@ declare const baseResourceFields: {
|
|
|
208
220
|
required: boolean;
|
|
209
221
|
type: StringConstructor;
|
|
210
222
|
};
|
|
211
|
-
images:
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
223
|
+
images: {
|
|
224
|
+
required: boolean;
|
|
225
|
+
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
226
|
+
_id: mongoose.Types.ObjectId;
|
|
227
|
+
} & {
|
|
228
|
+
__v: number;
|
|
229
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
230
|
+
_id: mongoose.Types.ObjectId;
|
|
231
|
+
} & {
|
|
232
|
+
__v: number;
|
|
233
|
+
}>[];
|
|
234
|
+
};
|
|
235
|
+
logo: {
|
|
236
|
+
required: boolean;
|
|
237
|
+
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
238
|
+
_id: mongoose.Types.ObjectId;
|
|
239
|
+
} & {
|
|
240
|
+
__v: number;
|
|
241
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
242
|
+
_id: mongoose.Types.ObjectId;
|
|
243
|
+
} & {
|
|
244
|
+
__v: number;
|
|
245
|
+
}>;
|
|
246
|
+
};
|
|
229
247
|
name: {
|
|
230
248
|
required: boolean;
|
|
231
249
|
type: StringConstructor;
|
|
@@ -244,15 +262,18 @@ declare const baseResourceFields: {
|
|
|
244
262
|
__v: number;
|
|
245
263
|
}>;
|
|
246
264
|
};
|
|
247
|
-
posterUsage:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
265
|
+
posterUsage: {
|
|
266
|
+
required: boolean;
|
|
267
|
+
type: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
|
|
268
|
+
_id: mongoose.Types.ObjectId;
|
|
269
|
+
} & {
|
|
270
|
+
__v: number;
|
|
271
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
|
|
272
|
+
_id: mongoose.Types.ObjectId;
|
|
273
|
+
} & {
|
|
274
|
+
__v: number;
|
|
275
|
+
}>;
|
|
276
|
+
};
|
|
256
277
|
promoCodes: {
|
|
257
278
|
required: boolean;
|
|
258
279
|
type: StringConstructor[];
|
|
@@ -269,26 +290,32 @@ declare const baseResourceFields: {
|
|
|
269
290
|
required: boolean;
|
|
270
291
|
type: NumberConstructor;
|
|
271
292
|
};
|
|
272
|
-
socialMedia:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
293
|
+
socialMedia: {
|
|
294
|
+
required: boolean;
|
|
295
|
+
type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
296
|
+
_id: mongoose.Types.ObjectId;
|
|
297
|
+
} & {
|
|
298
|
+
__v: number;
|
|
299
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
|
|
300
|
+
_id: mongoose.Types.ObjectId;
|
|
301
|
+
} & {
|
|
302
|
+
__v: number;
|
|
303
|
+
}>[];
|
|
304
|
+
};
|
|
305
|
+
termsAgreement: {
|
|
306
|
+
required: boolean;
|
|
307
|
+
type: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
308
|
+
termVersion: string;
|
|
309
|
+
} & {
|
|
310
|
+
_id: mongoose.Types.ObjectId;
|
|
311
|
+
} & {
|
|
312
|
+
__v: number;
|
|
313
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
|
|
314
|
+
_id: mongoose.Types.ObjectId;
|
|
315
|
+
} & {
|
|
316
|
+
__v: number;
|
|
317
|
+
}>;
|
|
318
|
+
};
|
|
292
319
|
};
|
|
293
320
|
|
|
294
321
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
@@ -374,11 +401,12 @@ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}
|
|
|
374
401
|
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
375
402
|
resourceId: ObjectId;
|
|
376
403
|
};
|
|
377
|
-
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game"> & {
|
|
404
|
+
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school"> & {
|
|
378
405
|
_id: ObjectId;
|
|
379
406
|
events: ObjectId[];
|
|
380
407
|
game: ObjectId;
|
|
381
408
|
partner: ObjectId;
|
|
409
|
+
school: ObjectId;
|
|
382
410
|
vendor: ObjectId;
|
|
383
411
|
userActivity: {
|
|
384
412
|
favourites: {
|
|
@@ -397,11 +425,12 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
|
|
|
397
425
|
};
|
|
398
426
|
};
|
|
399
427
|
};
|
|
400
|
-
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game"> & {
|
|
428
|
+
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school"> & {
|
|
401
429
|
_id: ObjectId;
|
|
402
430
|
events: ObjectId[];
|
|
403
431
|
game: ObjectId;
|
|
404
432
|
partner: ObjectId;
|
|
433
|
+
school: ObjectId;
|
|
405
434
|
vendor: ObjectId;
|
|
406
435
|
userActivity: {
|
|
407
436
|
favourites: {
|
|
@@ -550,4 +579,17 @@ declare const GameModel: mongoose.Model<GameDocType, {}, {}, {}, mongoose.Docume
|
|
|
550
579
|
__v: number;
|
|
551
580
|
}, any>;
|
|
552
581
|
|
|
553
|
-
|
|
582
|
+
declare const SchoolModel: mongoose.Model<SchoolType, {}, {}, {}, mongoose.Document<unknown, {}, SchoolType, {}, {}> & Omit<_timardex_cluemart_shared.SchoolFormData, "logoUpload"> & {
|
|
583
|
+
_id: string;
|
|
584
|
+
createdAt: Date;
|
|
585
|
+
deletedAt: Date | null;
|
|
586
|
+
overallPoints: number | null;
|
|
587
|
+
owner: _timardex_cluemart_shared.OwnerType | null;
|
|
588
|
+
updatedAt: Date | null;
|
|
589
|
+
} & Required<{
|
|
590
|
+
_id: string;
|
|
591
|
+
}> & {
|
|
592
|
+
__v: number;
|
|
593
|
+
}, any>;
|
|
594
|
+
|
|
595
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
|
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, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType,
|
|
2
|
+
import { AdType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
|
|
3
3
|
import mongoose from 'mongoose';
|
|
4
4
|
import { O as ObjectId } from '../Chat-DjrJ0LKo.js';
|
|
5
5
|
export { C as ChatModel, N as NotificationModel, P as ParticipantSchema, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DjrJ0LKo.js';
|
|
@@ -87,6 +87,15 @@ declare const associatesSchema: mongoose.Schema<AssociateType, mongoose.Model<As
|
|
|
87
87
|
} & {
|
|
88
88
|
__v: number;
|
|
89
89
|
}>;
|
|
90
|
+
declare const ContactDetailsSchema: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
91
|
+
_id: mongoose.Types.ObjectId;
|
|
92
|
+
} & {
|
|
93
|
+
__v: number;
|
|
94
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
95
|
+
_id: mongoose.Types.ObjectId;
|
|
96
|
+
} & {
|
|
97
|
+
__v: number;
|
|
98
|
+
}>;
|
|
90
99
|
declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
91
100
|
termVersion: string;
|
|
92
101
|
} & {
|
|
@@ -178,15 +187,18 @@ declare const baseResourceFields: {
|
|
|
178
187
|
__v: number;
|
|
179
188
|
}>[];
|
|
180
189
|
};
|
|
181
|
-
contactDetails:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
contactDetails: {
|
|
191
|
+
required: boolean;
|
|
192
|
+
type: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
193
|
+
_id: mongoose.Types.ObjectId;
|
|
194
|
+
} & {
|
|
195
|
+
__v: number;
|
|
196
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
197
|
+
_id: mongoose.Types.ObjectId;
|
|
198
|
+
} & {
|
|
199
|
+
__v: number;
|
|
200
|
+
}>;
|
|
201
|
+
};
|
|
190
202
|
cover: {
|
|
191
203
|
required: boolean;
|
|
192
204
|
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
@@ -208,24 +220,30 @@ declare const baseResourceFields: {
|
|
|
208
220
|
required: boolean;
|
|
209
221
|
type: StringConstructor;
|
|
210
222
|
};
|
|
211
|
-
images:
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
223
|
+
images: {
|
|
224
|
+
required: boolean;
|
|
225
|
+
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
226
|
+
_id: mongoose.Types.ObjectId;
|
|
227
|
+
} & {
|
|
228
|
+
__v: number;
|
|
229
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
230
|
+
_id: mongoose.Types.ObjectId;
|
|
231
|
+
} & {
|
|
232
|
+
__v: number;
|
|
233
|
+
}>[];
|
|
234
|
+
};
|
|
235
|
+
logo: {
|
|
236
|
+
required: boolean;
|
|
237
|
+
type: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
238
|
+
_id: mongoose.Types.ObjectId;
|
|
239
|
+
} & {
|
|
240
|
+
__v: number;
|
|
241
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
242
|
+
_id: mongoose.Types.ObjectId;
|
|
243
|
+
} & {
|
|
244
|
+
__v: number;
|
|
245
|
+
}>;
|
|
246
|
+
};
|
|
229
247
|
name: {
|
|
230
248
|
required: boolean;
|
|
231
249
|
type: StringConstructor;
|
|
@@ -244,15 +262,18 @@ declare const baseResourceFields: {
|
|
|
244
262
|
__v: number;
|
|
245
263
|
}>;
|
|
246
264
|
};
|
|
247
|
-
posterUsage:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
265
|
+
posterUsage: {
|
|
266
|
+
required: boolean;
|
|
267
|
+
type: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
|
|
268
|
+
_id: mongoose.Types.ObjectId;
|
|
269
|
+
} & {
|
|
270
|
+
__v: number;
|
|
271
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
|
|
272
|
+
_id: mongoose.Types.ObjectId;
|
|
273
|
+
} & {
|
|
274
|
+
__v: number;
|
|
275
|
+
}>;
|
|
276
|
+
};
|
|
256
277
|
promoCodes: {
|
|
257
278
|
required: boolean;
|
|
258
279
|
type: StringConstructor[];
|
|
@@ -269,26 +290,32 @@ declare const baseResourceFields: {
|
|
|
269
290
|
required: boolean;
|
|
270
291
|
type: NumberConstructor;
|
|
271
292
|
};
|
|
272
|
-
socialMedia:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
293
|
+
socialMedia: {
|
|
294
|
+
required: boolean;
|
|
295
|
+
type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
296
|
+
_id: mongoose.Types.ObjectId;
|
|
297
|
+
} & {
|
|
298
|
+
__v: number;
|
|
299
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
|
|
300
|
+
_id: mongoose.Types.ObjectId;
|
|
301
|
+
} & {
|
|
302
|
+
__v: number;
|
|
303
|
+
}>[];
|
|
304
|
+
};
|
|
305
|
+
termsAgreement: {
|
|
306
|
+
required: boolean;
|
|
307
|
+
type: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
308
|
+
termVersion: string;
|
|
309
|
+
} & {
|
|
310
|
+
_id: mongoose.Types.ObjectId;
|
|
311
|
+
} & {
|
|
312
|
+
__v: number;
|
|
313
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
|
|
314
|
+
_id: mongoose.Types.ObjectId;
|
|
315
|
+
} & {
|
|
316
|
+
__v: number;
|
|
317
|
+
}>;
|
|
318
|
+
};
|
|
292
319
|
};
|
|
293
320
|
|
|
294
321
|
type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
|
|
@@ -374,11 +401,12 @@ declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}
|
|
|
374
401
|
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
375
402
|
resourceId: ObjectId;
|
|
376
403
|
};
|
|
377
|
-
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game"> & {
|
|
404
|
+
type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActivity" | "_id" | "game" | "school"> & {
|
|
378
405
|
_id: ObjectId;
|
|
379
406
|
events: ObjectId[];
|
|
380
407
|
game: ObjectId;
|
|
381
408
|
partner: ObjectId;
|
|
409
|
+
school: ObjectId;
|
|
382
410
|
vendor: ObjectId;
|
|
383
411
|
userActivity: {
|
|
384
412
|
favourites: {
|
|
@@ -397,11 +425,12 @@ type SchemaUserType = Omit<UserType, "vendor" | "events" | "partner" | "userActi
|
|
|
397
425
|
};
|
|
398
426
|
};
|
|
399
427
|
};
|
|
400
|
-
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game"> & {
|
|
428
|
+
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "partner" | "userActivity" | "game" | "school"> & {
|
|
401
429
|
_id: ObjectId;
|
|
402
430
|
events: ObjectId[];
|
|
403
431
|
game: ObjectId;
|
|
404
432
|
partner: ObjectId;
|
|
433
|
+
school: ObjectId;
|
|
405
434
|
vendor: ObjectId;
|
|
406
435
|
userActivity: {
|
|
407
436
|
favourites: {
|
|
@@ -550,4 +579,17 @@ declare const GameModel: mongoose.Model<GameDocType, {}, {}, {}, mongoose.Docume
|
|
|
550
579
|
__v: number;
|
|
551
580
|
}, any>;
|
|
552
581
|
|
|
553
|
-
|
|
582
|
+
declare const SchoolModel: mongoose.Model<SchoolType, {}, {}, {}, mongoose.Document<unknown, {}, SchoolType, {}, {}> & Omit<_timardex_cluemart_shared.SchoolFormData, "logoUpload"> & {
|
|
583
|
+
_id: string;
|
|
584
|
+
createdAt: Date;
|
|
585
|
+
deletedAt: Date | null;
|
|
586
|
+
overallPoints: number | null;
|
|
587
|
+
owner: _timardex_cluemart_shared.OwnerType | null;
|
|
588
|
+
updatedAt: Date | null;
|
|
589
|
+
} & Required<{
|
|
590
|
+
_id: string;
|
|
591
|
+
}> & {
|
|
592
|
+
__v: number;
|
|
593
|
+
}, any>;
|
|
594
|
+
|
|
595
|
+
export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relationDatesSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
|
package/dist/mongoose/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
CategorySchema,
|
|
6
6
|
ChatModel,
|
|
7
7
|
ChatReportModel,
|
|
8
|
+
ContactDetailsSchema,
|
|
8
9
|
EventInfoModel,
|
|
9
10
|
EventModel,
|
|
10
11
|
GameModel,
|
|
@@ -19,6 +20,7 @@ import {
|
|
|
19
20
|
RelationTypeSchema,
|
|
20
21
|
ResourceActivityModel,
|
|
21
22
|
ResourceImageTypeSchema,
|
|
23
|
+
SchoolModel,
|
|
22
24
|
SocialMediaTypeSchema,
|
|
23
25
|
StallTypeSchema,
|
|
24
26
|
UserModel,
|
|
@@ -35,7 +37,7 @@ import {
|
|
|
35
37
|
resourceRelationsSchema,
|
|
36
38
|
termsAgreementSchema,
|
|
37
39
|
userLicenseSchema
|
|
38
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-AMB6NVKD.mjs";
|
|
39
41
|
import "../chunk-3QS3WKRC.mjs";
|
|
40
42
|
export {
|
|
41
43
|
APP_SETTINGS_ID,
|
|
@@ -44,6 +46,7 @@ export {
|
|
|
44
46
|
CategorySchema,
|
|
45
47
|
ChatModel,
|
|
46
48
|
ChatReportModel,
|
|
49
|
+
ContactDetailsSchema,
|
|
47
50
|
EventInfoModel,
|
|
48
51
|
EventModel,
|
|
49
52
|
GameModel,
|
|
@@ -58,6 +61,7 @@ export {
|
|
|
58
61
|
RelationTypeSchema,
|
|
59
62
|
ResourceActivityModel,
|
|
60
63
|
ResourceImageTypeSchema,
|
|
64
|
+
SchoolModel,
|
|
61
65
|
SocialMediaTypeSchema,
|
|
62
66
|
StallTypeSchema,
|
|
63
67
|
UserModel,
|