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