@timardex/cluemart-server-shared 1.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/chunk-XNN5GVG3.mjs +62 -0
- package/dist/chunk-XNN5GVG3.mjs.map +1 -0
- package/dist/index.cjs +1144 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +485 -0
- package/dist/index.d.ts +485 -0
- package/dist/index.mjs +1119 -0
- package/dist/index.mjs.map +1 -0
- package/dist/mongoose/index.cjs +959 -0
- package/dist/mongoose/index.cjs.map +1 -0
- package/dist/mongoose/index.d.mts +451 -0
- package/dist/mongoose/index.d.ts +451 -0
- package/dist/mongoose/index.mjs +885 -0
- package/dist/mongoose/index.mjs.map +1 -0
- package/dist/service/index.cjs +279 -0
- package/dist/service/index.cjs.map +1 -0
- package/dist/service/index.d.mts +25 -0
- package/dist/service/index.d.ts +25 -0
- package/dist/service/index.mjs +189 -0
- package/dist/service/index.mjs.map +1 -0
- package/dist/types-DWXC8az-.d.mts +20 -0
- package/dist/types-DWXC8az-.d.ts +20 -0
- package/package.json +62 -0
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
+
import { AdType, ChatMessageType, ParticipantType, ChatType, OwnerType, SocialMediaType, ResourceImageType, Category, PartnerType, TermsAgreement, ResourceContactDetailsType, PosterUsageType, RelationDate, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType } from '@timardex/cluemart-shared';
|
|
3
|
+
import mongoose from 'mongoose';
|
|
4
|
+
import { O as ObjectId } from '../types-DWXC8az-.js';
|
|
5
|
+
export { N as NotificationModel, S as SchemaCreateBulkNotificationInput, a as SchemaNotificationType } from '../types-DWXC8az-.js';
|
|
6
|
+
import { EnumOSPlatform } from '@timardex/cluemart-shared/enums';
|
|
7
|
+
|
|
8
|
+
declare const AdModel: mongoose.Model<AdType, {}, {}, {}, mongoose.Document<unknown, {}, AdType, {}, {}> & AdType & Required<{
|
|
9
|
+
_id: string;
|
|
10
|
+
}> & {
|
|
11
|
+
__v: number;
|
|
12
|
+
}, any>;
|
|
13
|
+
|
|
14
|
+
type SchemaChatMessageType = Omit<ChatMessageType, "senderId"> & {
|
|
15
|
+
senderId: ObjectId;
|
|
16
|
+
};
|
|
17
|
+
type SchemaParticipantType = Omit<ParticipantType, "userId"> & {
|
|
18
|
+
userId: ObjectId;
|
|
19
|
+
};
|
|
20
|
+
type SchemaChatType = Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
|
|
21
|
+
participants: SchemaParticipantType[];
|
|
22
|
+
messages: SchemaChatMessageType[];
|
|
23
|
+
resourceInfo: {
|
|
24
|
+
eventId: ObjectId;
|
|
25
|
+
vendorId: ObjectId;
|
|
26
|
+
} | null;
|
|
27
|
+
};
|
|
28
|
+
declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
|
|
29
|
+
userId: ObjectId;
|
|
30
|
+
} & {
|
|
31
|
+
_id: mongoose.Types.ObjectId;
|
|
32
|
+
} & {
|
|
33
|
+
__v: number;
|
|
34
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
|
|
35
|
+
_id: mongoose.Types.ObjectId;
|
|
36
|
+
} & {
|
|
37
|
+
__v: number;
|
|
38
|
+
}>;
|
|
39
|
+
declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages" | "resourceInfo"> & {
|
|
40
|
+
participants: SchemaParticipantType[];
|
|
41
|
+
messages: SchemaChatMessageType[];
|
|
42
|
+
resourceInfo: {
|
|
43
|
+
eventId: ObjectId;
|
|
44
|
+
vendorId: ObjectId;
|
|
45
|
+
} | null;
|
|
46
|
+
} & Required<{
|
|
47
|
+
_id: string;
|
|
48
|
+
}> & {
|
|
49
|
+
__v: number;
|
|
50
|
+
}, any>;
|
|
51
|
+
|
|
52
|
+
type SchemaOwnerType = Omit<OwnerType, "userId"> & {
|
|
53
|
+
userId: ObjectId;
|
|
54
|
+
};
|
|
55
|
+
declare const SocialMediaTypeSchema: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
56
|
+
_id: mongoose.Types.ObjectId;
|
|
57
|
+
} & {
|
|
58
|
+
__v: number;
|
|
59
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
|
|
60
|
+
_id: mongoose.Types.ObjectId;
|
|
61
|
+
} & {
|
|
62
|
+
__v: number;
|
|
63
|
+
}>;
|
|
64
|
+
declare const ResourceImageTypeSchema: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
65
|
+
_id: mongoose.Types.ObjectId;
|
|
66
|
+
} & {
|
|
67
|
+
__v: number;
|
|
68
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
69
|
+
_id: mongoose.Types.ObjectId;
|
|
70
|
+
} & {
|
|
71
|
+
__v: number;
|
|
72
|
+
}>;
|
|
73
|
+
declare const CategorySchema: mongoose.Schema<Category, mongoose.Model<Category, any, any, any, mongoose.Document<unknown, any, Category, any, {}> & Category & {
|
|
74
|
+
_id: mongoose.Types.ObjectId;
|
|
75
|
+
} & {
|
|
76
|
+
__v: number;
|
|
77
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Category, mongoose.Document<unknown, {}, mongoose.FlatRecord<Category>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<Category> & {
|
|
78
|
+
_id: mongoose.Types.ObjectId;
|
|
79
|
+
} & {
|
|
80
|
+
__v: number;
|
|
81
|
+
}>;
|
|
82
|
+
declare const partnersSchema: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
|
|
83
|
+
_id: mongoose.Types.ObjectId;
|
|
84
|
+
} & {
|
|
85
|
+
__v: number;
|
|
86
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
|
|
87
|
+
_id: mongoose.Types.ObjectId;
|
|
88
|
+
} & {
|
|
89
|
+
__v: number;
|
|
90
|
+
}>;
|
|
91
|
+
declare const termsAgreementSchema: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
92
|
+
termVersion: string;
|
|
93
|
+
} & {
|
|
94
|
+
_id: mongoose.Types.ObjectId;
|
|
95
|
+
} & {
|
|
96
|
+
__v: number;
|
|
97
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
|
|
98
|
+
_id: mongoose.Types.ObjectId;
|
|
99
|
+
} & {
|
|
100
|
+
__v: number;
|
|
101
|
+
}>;
|
|
102
|
+
declare const baseResourceFields: {
|
|
103
|
+
active: {
|
|
104
|
+
default: boolean;
|
|
105
|
+
required: boolean;
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
};
|
|
108
|
+
adIds: {
|
|
109
|
+
ref: string;
|
|
110
|
+
required: boolean;
|
|
111
|
+
type: (typeof mongoose.Schema.Types.ObjectId)[];
|
|
112
|
+
};
|
|
113
|
+
contactDetails: mongoose.Schema<ResourceContactDetailsType, mongoose.Model<ResourceContactDetailsType, any, any, any, mongoose.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
114
|
+
_id: mongoose.Types.ObjectId;
|
|
115
|
+
} & {
|
|
116
|
+
__v: number;
|
|
117
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceContactDetailsType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceContactDetailsType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceContactDetailsType> & {
|
|
118
|
+
_id: mongoose.Types.ObjectId;
|
|
119
|
+
} & {
|
|
120
|
+
__v: number;
|
|
121
|
+
}>;
|
|
122
|
+
cover: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
123
|
+
_id: mongoose.Types.ObjectId;
|
|
124
|
+
} & {
|
|
125
|
+
__v: number;
|
|
126
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
127
|
+
_id: mongoose.Types.ObjectId;
|
|
128
|
+
} & {
|
|
129
|
+
__v: number;
|
|
130
|
+
}>;
|
|
131
|
+
deletedAt: {
|
|
132
|
+
default: null;
|
|
133
|
+
required: boolean;
|
|
134
|
+
type: DateConstructor;
|
|
135
|
+
};
|
|
136
|
+
description: {
|
|
137
|
+
required: boolean;
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
};
|
|
140
|
+
images: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
141
|
+
_id: mongoose.Types.ObjectId;
|
|
142
|
+
} & {
|
|
143
|
+
__v: number;
|
|
144
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
145
|
+
_id: mongoose.Types.ObjectId;
|
|
146
|
+
} & {
|
|
147
|
+
__v: number;
|
|
148
|
+
}>[];
|
|
149
|
+
logo: mongoose.Schema<ResourceImageType, mongoose.Model<ResourceImageType, any, any, any, mongoose.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
150
|
+
_id: mongoose.Types.ObjectId;
|
|
151
|
+
} & {
|
|
152
|
+
__v: number;
|
|
153
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ResourceImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<ResourceImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ResourceImageType> & {
|
|
154
|
+
_id: mongoose.Types.ObjectId;
|
|
155
|
+
} & {
|
|
156
|
+
__v: number;
|
|
157
|
+
}>;
|
|
158
|
+
name: {
|
|
159
|
+
required: boolean;
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
};
|
|
162
|
+
owner: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
|
|
163
|
+
userId: ObjectId;
|
|
164
|
+
} & {
|
|
165
|
+
_id: mongoose.Types.ObjectId;
|
|
166
|
+
} & {
|
|
167
|
+
__v: number;
|
|
168
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
|
|
169
|
+
_id: mongoose.Types.ObjectId;
|
|
170
|
+
} & {
|
|
171
|
+
__v: number;
|
|
172
|
+
}>;
|
|
173
|
+
partners: {
|
|
174
|
+
required: boolean;
|
|
175
|
+
type: mongoose.Schema<PartnerType, mongoose.Model<PartnerType, any, any, any, mongoose.Document<unknown, any, PartnerType, any, {}> & PartnerType & {
|
|
176
|
+
_id: mongoose.Types.ObjectId;
|
|
177
|
+
} & {
|
|
178
|
+
__v: number;
|
|
179
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PartnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PartnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PartnerType> & {
|
|
180
|
+
_id: mongoose.Types.ObjectId;
|
|
181
|
+
} & {
|
|
182
|
+
__v: number;
|
|
183
|
+
}>[];
|
|
184
|
+
};
|
|
185
|
+
posterUsage: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
|
|
186
|
+
_id: mongoose.Types.ObjectId;
|
|
187
|
+
} & {
|
|
188
|
+
__v: number;
|
|
189
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, PosterUsageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<PosterUsageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<PosterUsageType> & {
|
|
190
|
+
_id: mongoose.Types.ObjectId;
|
|
191
|
+
} & {
|
|
192
|
+
__v: number;
|
|
193
|
+
}>;
|
|
194
|
+
promoCodes: {
|
|
195
|
+
required: boolean;
|
|
196
|
+
type: StringConstructor[];
|
|
197
|
+
};
|
|
198
|
+
region: {
|
|
199
|
+
required: boolean;
|
|
200
|
+
type: StringConstructor;
|
|
201
|
+
};
|
|
202
|
+
relations: {
|
|
203
|
+
default: never[];
|
|
204
|
+
required: boolean;
|
|
205
|
+
type: mongoose.Schema<{
|
|
206
|
+
relationId: ObjectId;
|
|
207
|
+
relationDates: RelationDate[];
|
|
208
|
+
}, mongoose.Model<{
|
|
209
|
+
relationId: ObjectId;
|
|
210
|
+
relationDates: RelationDate[];
|
|
211
|
+
}, any, any, any, mongoose.Document<unknown, any, {
|
|
212
|
+
relationId: ObjectId;
|
|
213
|
+
relationDates: RelationDate[];
|
|
214
|
+
}, any, {}> & {
|
|
215
|
+
relationId: ObjectId;
|
|
216
|
+
relationDates: RelationDate[];
|
|
217
|
+
} & {
|
|
218
|
+
_id: mongoose.Types.ObjectId;
|
|
219
|
+
} & {
|
|
220
|
+
__v: number;
|
|
221
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
222
|
+
relationId: ObjectId;
|
|
223
|
+
relationDates: RelationDate[];
|
|
224
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
225
|
+
relationId: ObjectId;
|
|
226
|
+
relationDates: RelationDate[];
|
|
227
|
+
}>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
|
|
228
|
+
relationId: ObjectId;
|
|
229
|
+
relationDates: RelationDate[];
|
|
230
|
+
}> & {
|
|
231
|
+
_id: mongoose.Types.ObjectId;
|
|
232
|
+
} & {
|
|
233
|
+
__v: number;
|
|
234
|
+
}>[];
|
|
235
|
+
};
|
|
236
|
+
socialMedia: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
237
|
+
_id: mongoose.Types.ObjectId;
|
|
238
|
+
} & {
|
|
239
|
+
__v: number;
|
|
240
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialMediaType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialMediaType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialMediaType> & {
|
|
241
|
+
_id: mongoose.Types.ObjectId;
|
|
242
|
+
} & {
|
|
243
|
+
__v: number;
|
|
244
|
+
}>[];
|
|
245
|
+
termsAgreement: mongoose.Schema<TermsAgreement, mongoose.Model<TermsAgreement, any, any, any, mongoose.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
246
|
+
termVersion: string;
|
|
247
|
+
} & {
|
|
248
|
+
_id: mongoose.Types.ObjectId;
|
|
249
|
+
} & {
|
|
250
|
+
__v: number;
|
|
251
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, TermsAgreement, mongoose.Document<unknown, {}, mongoose.FlatRecord<TermsAgreement>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<TermsAgreement> & {
|
|
252
|
+
_id: mongoose.Types.ObjectId;
|
|
253
|
+
} & {
|
|
254
|
+
__v: number;
|
|
255
|
+
}>;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
type PushTokenType = {
|
|
259
|
+
_id: string;
|
|
260
|
+
createdAt: Date;
|
|
261
|
+
platform: EnumOSPlatform;
|
|
262
|
+
token: string;
|
|
263
|
+
updatedAt: Date;
|
|
264
|
+
userId: string;
|
|
265
|
+
};
|
|
266
|
+
type SchemaPushTokenType = Omit<PushTokenType, "userId"> & {
|
|
267
|
+
userId: ObjectId;
|
|
268
|
+
};
|
|
269
|
+
declare const PushTokenModel: mongoose.Model<SchemaPushTokenType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPushTokenType, {}, {}> & Omit<PushTokenType, "userId"> & {
|
|
270
|
+
userId: ObjectId;
|
|
271
|
+
} & Required<{
|
|
272
|
+
_id: string;
|
|
273
|
+
}> & {
|
|
274
|
+
__v: number;
|
|
275
|
+
}, any>;
|
|
276
|
+
|
|
277
|
+
declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
|
|
278
|
+
_id: mongoose.Types.ObjectId;
|
|
279
|
+
} & {
|
|
280
|
+
__v: number;
|
|
281
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RelationDate, mongoose.Document<unknown, {}, mongoose.FlatRecord<RelationDate>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RelationDate> & {
|
|
282
|
+
_id: mongoose.Types.ObjectId;
|
|
283
|
+
} & {
|
|
284
|
+
__v: number;
|
|
285
|
+
}>;
|
|
286
|
+
type SchemaRelationType = Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
|
|
287
|
+
chatId: ObjectId;
|
|
288
|
+
eventId: ObjectId;
|
|
289
|
+
vendorId: ObjectId;
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* This is the schema for the relation type.
|
|
293
|
+
* It is used to define the structure of the relation type in the database.
|
|
294
|
+
* The schema is used by Mongoose to create a model for the relation type.
|
|
295
|
+
*/
|
|
296
|
+
declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
|
|
297
|
+
chatId: ObjectId;
|
|
298
|
+
eventId: ObjectId;
|
|
299
|
+
vendorId: ObjectId;
|
|
300
|
+
} & Required<{
|
|
301
|
+
_id: string;
|
|
302
|
+
}> & {
|
|
303
|
+
__v: number;
|
|
304
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelationType> & Required<{
|
|
305
|
+
_id: string;
|
|
306
|
+
}> & {
|
|
307
|
+
__v: number;
|
|
308
|
+
}>;
|
|
309
|
+
declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
|
|
310
|
+
chatId: ObjectId;
|
|
311
|
+
eventId: ObjectId;
|
|
312
|
+
vendorId: ObjectId;
|
|
313
|
+
} & Required<{
|
|
314
|
+
_id: string;
|
|
315
|
+
}> & {
|
|
316
|
+
__v: number;
|
|
317
|
+
}, any>;
|
|
318
|
+
|
|
319
|
+
declare const ResourceActivityModel: mongoose.Model<ResourceActivityType, {}, {}, {}, mongoose.Document<unknown, {}, ResourceActivityType, {}, {}> & ResourceActivityType & Required<{
|
|
320
|
+
_id: string;
|
|
321
|
+
}> & {
|
|
322
|
+
__v: number;
|
|
323
|
+
}, any>;
|
|
324
|
+
|
|
325
|
+
declare const TesterModel: mongoose.Model<TesterType, {}, {}, {}, mongoose.Document<unknown, {}, TesterType, {}, {}> & TesterType & Required<{
|
|
326
|
+
_id: string;
|
|
327
|
+
}> & {
|
|
328
|
+
__v: number;
|
|
329
|
+
}, any>;
|
|
330
|
+
|
|
331
|
+
type SchemaUserActivityEvent = Omit<UserActivityEvent, "resourceId"> & {
|
|
332
|
+
resourceId: ObjectId;
|
|
333
|
+
};
|
|
334
|
+
type SchemaUserType = Omit<UserType, "vendor" | "events" | "userActivity" | "_id"> & {
|
|
335
|
+
_id: ObjectId;
|
|
336
|
+
vendor: ObjectId;
|
|
337
|
+
events: ObjectId[];
|
|
338
|
+
userActivity: {
|
|
339
|
+
favourites: {
|
|
340
|
+
events: ObjectId[];
|
|
341
|
+
vendors: ObjectId[];
|
|
342
|
+
};
|
|
343
|
+
interested: {
|
|
344
|
+
events: SchemaUserActivityEvent[];
|
|
345
|
+
};
|
|
346
|
+
going: {
|
|
347
|
+
events: SchemaUserActivityEvent[];
|
|
348
|
+
};
|
|
349
|
+
present: {
|
|
350
|
+
events: SchemaUserActivityEvent[];
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
declare const UserModel: mongoose.Model<SchemaUserType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaUserType, {}, {}> & Omit<UserType, "_id" | "vendor" | "events" | "userActivity"> & {
|
|
355
|
+
_id: ObjectId;
|
|
356
|
+
vendor: ObjectId;
|
|
357
|
+
events: ObjectId[];
|
|
358
|
+
userActivity: {
|
|
359
|
+
favourites: {
|
|
360
|
+
events: ObjectId[];
|
|
361
|
+
vendors: ObjectId[];
|
|
362
|
+
};
|
|
363
|
+
interested: {
|
|
364
|
+
events: SchemaUserActivityEvent[];
|
|
365
|
+
};
|
|
366
|
+
going: {
|
|
367
|
+
events: SchemaUserActivityEvent[];
|
|
368
|
+
};
|
|
369
|
+
present: {
|
|
370
|
+
events: SchemaUserActivityEvent[];
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
} & Required<{
|
|
374
|
+
_id: mongoose.Schema.Types.ObjectId;
|
|
375
|
+
}> & {
|
|
376
|
+
__v: number;
|
|
377
|
+
}, any>;
|
|
378
|
+
|
|
379
|
+
interface VerificationTokenType {
|
|
380
|
+
email: string;
|
|
381
|
+
verificationToken: string;
|
|
382
|
+
createdAt: Date;
|
|
383
|
+
}
|
|
384
|
+
declare const VerificationTokenModel: mongoose.Model<VerificationTokenType, {}, {}, {}, mongoose.Document<unknown, {}, VerificationTokenType, {}, {}> & VerificationTokenType & {
|
|
385
|
+
_id: mongoose.Types.ObjectId;
|
|
386
|
+
} & {
|
|
387
|
+
__v: number;
|
|
388
|
+
}, any>;
|
|
389
|
+
|
|
390
|
+
type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds"> & {
|
|
391
|
+
adIds?: ObjectId[];
|
|
392
|
+
owner: SchemaOwnerType;
|
|
393
|
+
vendorInfoId: ObjectId;
|
|
394
|
+
};
|
|
395
|
+
declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds"> & {
|
|
396
|
+
adIds?: ObjectId[];
|
|
397
|
+
owner: SchemaOwnerType;
|
|
398
|
+
vendorInfoId: ObjectId;
|
|
399
|
+
} & Required<{
|
|
400
|
+
_id: string;
|
|
401
|
+
}> & {
|
|
402
|
+
__v: number;
|
|
403
|
+
}, any>;
|
|
404
|
+
|
|
405
|
+
type SchemaVendorInfoType = Omit<VendorInfoType, "vendorId"> & {
|
|
406
|
+
vendorId: ObjectId;
|
|
407
|
+
};
|
|
408
|
+
declare const VendorInfoModel: mongoose.Model<SchemaVendorInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorInfoType, {}, {}> & Omit<VendorInfoType, "vendorId"> & {
|
|
409
|
+
vendorId: ObjectId;
|
|
410
|
+
} & Required<{
|
|
411
|
+
_id: string;
|
|
412
|
+
}> & {
|
|
413
|
+
__v: number;
|
|
414
|
+
}, any>;
|
|
415
|
+
|
|
416
|
+
type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
|
|
417
|
+
adIds?: ObjectId[];
|
|
418
|
+
eventInfoId: ObjectId;
|
|
419
|
+
owner: SchemaOwnerType;
|
|
420
|
+
};
|
|
421
|
+
declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
|
|
422
|
+
adIds?: ObjectId[];
|
|
423
|
+
eventInfoId: ObjectId;
|
|
424
|
+
owner: SchemaOwnerType;
|
|
425
|
+
} & Required<{
|
|
426
|
+
_id: string;
|
|
427
|
+
}> & {
|
|
428
|
+
__v: number;
|
|
429
|
+
}, any>;
|
|
430
|
+
|
|
431
|
+
declare const StallTypeSchema: mongoose.Schema<StallType, mongoose.Model<StallType, any, any, any, mongoose.Document<unknown, any, StallType, any, {}> & StallType & {
|
|
432
|
+
_id: mongoose.Types.ObjectId;
|
|
433
|
+
} & {
|
|
434
|
+
__v: number;
|
|
435
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, StallType, mongoose.Document<unknown, {}, mongoose.FlatRecord<StallType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<StallType> & {
|
|
436
|
+
_id: mongoose.Types.ObjectId;
|
|
437
|
+
} & {
|
|
438
|
+
__v: number;
|
|
439
|
+
}>;
|
|
440
|
+
type SchemaEventInfoType = Omit<EventInfoType, "eventId"> & {
|
|
441
|
+
eventId: ObjectId;
|
|
442
|
+
};
|
|
443
|
+
declare const EventInfoModel: mongoose.Model<SchemaEventInfoType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventInfoType, {}, {}> & Omit<EventInfoType, "eventId"> & {
|
|
444
|
+
eventId: ObjectId;
|
|
445
|
+
} & Required<{
|
|
446
|
+
_id: string;
|
|
447
|
+
}> & {
|
|
448
|
+
__v: number;
|
|
449
|
+
}, any>;
|
|
450
|
+
|
|
451
|
+
export { AdModel, CategorySchema, ChatModel, EventInfoModel, EventModel, ParticipantSchema, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageType, type SchemaChatType, type SchemaEventInfoType, type SchemaEventType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, baseResourceFields, partnersSchema, relationDatesSchema, termsAgreementSchema };
|