@timardex/cluemart-server-shared 1.0.280 → 1.0.284
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-C_g6TdeG.d.ts +396 -0
- package/dist/Affiliate-CmS0A1gU.d.mts +396 -0
- package/dist/{Chat-DYkhie3G.d.mts → Chat-Bnqec74U.d.mts} +4 -4
- package/dist/{Chat-DYkhie3G.d.ts → Chat-Bnqec74U.d.ts} +4 -4
- package/dist/{chunk-EH7TOKEH.mjs → chunk-4FWW5CDC.mjs} +13 -1
- package/dist/chunk-4FWW5CDC.mjs.map +1 -0
- package/dist/index.cjs +106 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +236 -150
- package/dist/index.d.ts +236 -150
- package/dist/index.mjs +91 -0
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +11 -0
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +40 -387
- package/dist/mongoose/index.d.ts +40 -387
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +470 -374
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +91 -5
- package/dist/service/index.d.ts +91 -5
- package/dist/service/index.mjs +83 -1
- 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/package.json +2 -2
- package/dist/Relation-6t3Gn4pM.d.ts +0 -47
- package/dist/Relation-BjYghDE9.d.mts +0 -47
- package/dist/chunk-EH7TOKEH.mjs.map +0 -1
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
|
|
2
|
+
import { RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, SocialShareResourceType, RelationType, AffiliateRewardType, AffiliateResourceType, AffiliateType } from '@timardex/cluemart-shared';
|
|
3
|
+
import mongoose__default from 'mongoose';
|
|
4
|
+
import { O as ObjectId } from './Chat-Bnqec74U.mjs';
|
|
5
|
+
|
|
6
|
+
type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
|
|
7
|
+
postId: ObjectId;
|
|
8
|
+
};
|
|
9
|
+
type SchemaOwnerType = Omit<OwnerType, "userId"> & {
|
|
10
|
+
userId: ObjectId;
|
|
11
|
+
};
|
|
12
|
+
declare const OwnerTypeSchema: mongoose__default.Schema<SchemaOwnerType, mongoose__default.Model<SchemaOwnerType, any, any, any, mongoose__default.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
|
|
13
|
+
userId: ObjectId;
|
|
14
|
+
} & {
|
|
15
|
+
_id: mongoose__default.Types.ObjectId;
|
|
16
|
+
} & {
|
|
17
|
+
__v: number;
|
|
18
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaOwnerType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaOwnerType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaOwnerType> & {
|
|
19
|
+
_id: mongoose__default.Types.ObjectId;
|
|
20
|
+
} & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}>;
|
|
23
|
+
declare const SocialMediaTypeSchema: mongoose__default.Schema<SocialMediaType, mongoose__default.Model<SocialMediaType, any, any, any, mongoose__default.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
24
|
+
_id: mongoose__default.Types.ObjectId;
|
|
25
|
+
} & {
|
|
26
|
+
__v: number;
|
|
27
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SocialMediaType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SocialMediaType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SocialMediaType> & {
|
|
28
|
+
_id: mongoose__default.Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}>;
|
|
32
|
+
declare const ResourceImageTypeSchema: mongoose__default.Schema<ResourceImageType, mongoose__default.Model<ResourceImageType, any, any, any, mongoose__default.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
33
|
+
_id: mongoose__default.Types.ObjectId;
|
|
34
|
+
} & {
|
|
35
|
+
__v: number;
|
|
36
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, ResourceImageType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<ResourceImageType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<ResourceImageType> & {
|
|
37
|
+
_id: mongoose__default.Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
40
|
+
}>;
|
|
41
|
+
declare const CategorySchema: mongoose__default.Schema<Category, mongoose__default.Model<Category, any, any, any, mongoose__default.Document<unknown, any, Category, any, {}> & Category & {
|
|
42
|
+
_id: mongoose__default.Types.ObjectId;
|
|
43
|
+
} & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, Category, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<Category>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<Category> & {
|
|
46
|
+
_id: mongoose__default.Types.ObjectId;
|
|
47
|
+
} & {
|
|
48
|
+
__v: number;
|
|
49
|
+
}>;
|
|
50
|
+
declare const userLicenseSchema: mongoose__default.Schema<UserLicenceType, mongoose__default.Model<UserLicenceType, any, any, any, mongoose__default.Document<unknown, any, UserLicenceType, any, {}> & UserLicenceType & {
|
|
51
|
+
_id: mongoose__default.Types.ObjectId;
|
|
52
|
+
} & {
|
|
53
|
+
__v: number;
|
|
54
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, UserLicenceType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<UserLicenceType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<UserLicenceType> & {
|
|
55
|
+
_id: mongoose__default.Types.ObjectId;
|
|
56
|
+
} & {
|
|
57
|
+
__v: number;
|
|
58
|
+
}>;
|
|
59
|
+
declare const associatesSchema: mongoose__default.Schema<AssociateType, mongoose__default.Model<AssociateType, any, any, any, mongoose__default.Document<unknown, any, AssociateType, any, {}> & AssociateType & {
|
|
60
|
+
_id: mongoose__default.Types.ObjectId;
|
|
61
|
+
} & {
|
|
62
|
+
__v: number;
|
|
63
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, AssociateType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<AssociateType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<AssociateType> & {
|
|
64
|
+
_id: mongoose__default.Types.ObjectId;
|
|
65
|
+
} & {
|
|
66
|
+
__v: number;
|
|
67
|
+
}>;
|
|
68
|
+
declare const ContactDetailsSchema: mongoose__default.Schema<ResourceContactDetailsType, mongoose__default.Model<ResourceContactDetailsType, any, any, any, mongoose__default.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
69
|
+
_id: mongoose__default.Types.ObjectId;
|
|
70
|
+
} & {
|
|
71
|
+
__v: number;
|
|
72
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, ResourceContactDetailsType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<ResourceContactDetailsType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<ResourceContactDetailsType> & {
|
|
73
|
+
_id: mongoose__default.Types.ObjectId;
|
|
74
|
+
} & {
|
|
75
|
+
__v: number;
|
|
76
|
+
}>;
|
|
77
|
+
declare const termsAgreementSchema: mongoose__default.Schema<TermsAgreement, mongoose__default.Model<TermsAgreement, any, any, any, mongoose__default.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
78
|
+
termVersion: string;
|
|
79
|
+
} & {
|
|
80
|
+
_id: mongoose__default.Types.ObjectId;
|
|
81
|
+
} & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, TermsAgreement, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<TermsAgreement>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<TermsAgreement> & {
|
|
84
|
+
_id: mongoose__default.Types.ObjectId;
|
|
85
|
+
} & {
|
|
86
|
+
__v: number;
|
|
87
|
+
}>;
|
|
88
|
+
declare const resourceRelationsSchema: mongoose__default.Schema<{
|
|
89
|
+
relationId: ObjectId;
|
|
90
|
+
relationDates: RelationDate[];
|
|
91
|
+
}, mongoose__default.Model<{
|
|
92
|
+
relationId: ObjectId;
|
|
93
|
+
relationDates: RelationDate[];
|
|
94
|
+
}, any, any, any, mongoose__default.Document<unknown, any, {
|
|
95
|
+
relationId: ObjectId;
|
|
96
|
+
relationDates: RelationDate[];
|
|
97
|
+
}, any, {}> & {
|
|
98
|
+
relationId: ObjectId;
|
|
99
|
+
relationDates: RelationDate[];
|
|
100
|
+
} & {
|
|
101
|
+
_id: mongoose__default.Types.ObjectId;
|
|
102
|
+
} & {
|
|
103
|
+
__v: number;
|
|
104
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, {
|
|
105
|
+
relationId: ObjectId;
|
|
106
|
+
relationDates: RelationDate[];
|
|
107
|
+
}, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<{
|
|
108
|
+
relationId: ObjectId;
|
|
109
|
+
relationDates: RelationDate[];
|
|
110
|
+
}>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<{
|
|
111
|
+
relationId: ObjectId;
|
|
112
|
+
relationDates: RelationDate[];
|
|
113
|
+
}> & {
|
|
114
|
+
_id: mongoose__default.Types.ObjectId;
|
|
115
|
+
} & {
|
|
116
|
+
__v: number;
|
|
117
|
+
}>;
|
|
118
|
+
declare const dateTimeSchema: mongoose__default.Schema<DateTimeType, mongoose__default.Model<DateTimeType, any, any, any, mongoose__default.Document<unknown, any, DateTimeType, any, {}> & DateTimeType & {
|
|
119
|
+
_id: mongoose__default.Types.ObjectId;
|
|
120
|
+
} & {
|
|
121
|
+
__v: number;
|
|
122
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, DateTimeType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<DateTimeType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<DateTimeType> & {
|
|
123
|
+
_id: mongoose__default.Types.ObjectId;
|
|
124
|
+
} & {
|
|
125
|
+
__v: number;
|
|
126
|
+
}>;
|
|
127
|
+
declare const locationGeoSchema: mongoose__default.Schema<LocationGeoType, mongoose__default.Model<LocationGeoType, any, any, any, mongoose__default.Document<unknown, any, LocationGeoType, any, {}> & LocationGeoType & {
|
|
128
|
+
_id: mongoose__default.Types.ObjectId;
|
|
129
|
+
} & {
|
|
130
|
+
__v: number;
|
|
131
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, LocationGeoType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<LocationGeoType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<LocationGeoType> & {
|
|
132
|
+
_id: mongoose__default.Types.ObjectId;
|
|
133
|
+
} & {
|
|
134
|
+
__v: number;
|
|
135
|
+
}>;
|
|
136
|
+
declare const locationsSchema: mongoose__default.Schema<LocationType, mongoose__default.Model<LocationType, any, any, any, mongoose__default.Document<unknown, any, LocationType, any, {}> & LocationType & {
|
|
137
|
+
_id: mongoose__default.Types.ObjectId;
|
|
138
|
+
} & {
|
|
139
|
+
__v: number;
|
|
140
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, LocationType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<LocationType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<LocationType> & {
|
|
141
|
+
_id: mongoose__default.Types.ObjectId;
|
|
142
|
+
} & {
|
|
143
|
+
__v: number;
|
|
144
|
+
}>;
|
|
145
|
+
declare const relatedPostSchema: mongoose__default.Schema<SchemaRelatedPostType, mongoose__default.Model<SchemaRelatedPostType, any, any, any, mongoose__default.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
|
|
146
|
+
postId: ObjectId;
|
|
147
|
+
} & {
|
|
148
|
+
_id: mongoose__default.Types.ObjectId;
|
|
149
|
+
} & {
|
|
150
|
+
__v: number;
|
|
151
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaRelatedPostType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaRelatedPostType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaRelatedPostType> & {
|
|
152
|
+
_id: mongoose__default.Types.ObjectId;
|
|
153
|
+
} & {
|
|
154
|
+
__v: number;
|
|
155
|
+
}>;
|
|
156
|
+
declare const baseResourceFields: {
|
|
157
|
+
active: {
|
|
158
|
+
default: boolean;
|
|
159
|
+
required: boolean;
|
|
160
|
+
type: BooleanConstructor;
|
|
161
|
+
};
|
|
162
|
+
adIds: {
|
|
163
|
+
ref: string;
|
|
164
|
+
required: boolean;
|
|
165
|
+
type: (typeof mongoose__default.Schema.Types.ObjectId)[];
|
|
166
|
+
};
|
|
167
|
+
associates: {
|
|
168
|
+
required: boolean;
|
|
169
|
+
type: mongoose__default.Schema<AssociateType, mongoose__default.Model<AssociateType, any, any, any, mongoose__default.Document<unknown, any, AssociateType, any, {}> & AssociateType & {
|
|
170
|
+
_id: mongoose__default.Types.ObjectId;
|
|
171
|
+
} & {
|
|
172
|
+
__v: number;
|
|
173
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, AssociateType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<AssociateType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<AssociateType> & {
|
|
174
|
+
_id: mongoose__default.Types.ObjectId;
|
|
175
|
+
} & {
|
|
176
|
+
__v: number;
|
|
177
|
+
}>[];
|
|
178
|
+
};
|
|
179
|
+
contactDetails: {
|
|
180
|
+
required: boolean;
|
|
181
|
+
type: mongoose__default.Schema<ResourceContactDetailsType, mongoose__default.Model<ResourceContactDetailsType, any, any, any, mongoose__default.Document<unknown, any, ResourceContactDetailsType, any, {}> & ResourceContactDetailsType & {
|
|
182
|
+
_id: mongoose__default.Types.ObjectId;
|
|
183
|
+
} & {
|
|
184
|
+
__v: number;
|
|
185
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, ResourceContactDetailsType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<ResourceContactDetailsType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<ResourceContactDetailsType> & {
|
|
186
|
+
_id: mongoose__default.Types.ObjectId;
|
|
187
|
+
} & {
|
|
188
|
+
__v: number;
|
|
189
|
+
}>;
|
|
190
|
+
};
|
|
191
|
+
cover: {
|
|
192
|
+
required: boolean;
|
|
193
|
+
type: mongoose__default.Schema<ResourceImageType, mongoose__default.Model<ResourceImageType, any, any, any, mongoose__default.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
194
|
+
_id: mongoose__default.Types.ObjectId;
|
|
195
|
+
} & {
|
|
196
|
+
__v: number;
|
|
197
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, ResourceImageType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<ResourceImageType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<ResourceImageType> & {
|
|
198
|
+
_id: mongoose__default.Types.ObjectId;
|
|
199
|
+
} & {
|
|
200
|
+
__v: number;
|
|
201
|
+
}>;
|
|
202
|
+
};
|
|
203
|
+
deletedAt: {
|
|
204
|
+
default: null;
|
|
205
|
+
required: boolean;
|
|
206
|
+
type: DateConstructor;
|
|
207
|
+
};
|
|
208
|
+
description: {
|
|
209
|
+
required: boolean;
|
|
210
|
+
type: StringConstructor;
|
|
211
|
+
};
|
|
212
|
+
images: {
|
|
213
|
+
required: boolean;
|
|
214
|
+
type: mongoose__default.Schema<ResourceImageType, mongoose__default.Model<ResourceImageType, any, any, any, mongoose__default.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
215
|
+
_id: mongoose__default.Types.ObjectId;
|
|
216
|
+
} & {
|
|
217
|
+
__v: number;
|
|
218
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, ResourceImageType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<ResourceImageType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<ResourceImageType> & {
|
|
219
|
+
_id: mongoose__default.Types.ObjectId;
|
|
220
|
+
} & {
|
|
221
|
+
__v: number;
|
|
222
|
+
}>[];
|
|
223
|
+
};
|
|
224
|
+
logo: {
|
|
225
|
+
required: boolean;
|
|
226
|
+
type: mongoose__default.Schema<ResourceImageType, mongoose__default.Model<ResourceImageType, any, any, any, mongoose__default.Document<unknown, any, ResourceImageType, any, {}> & ResourceImageType & {
|
|
227
|
+
_id: mongoose__default.Types.ObjectId;
|
|
228
|
+
} & {
|
|
229
|
+
__v: number;
|
|
230
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, ResourceImageType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<ResourceImageType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<ResourceImageType> & {
|
|
231
|
+
_id: mongoose__default.Types.ObjectId;
|
|
232
|
+
} & {
|
|
233
|
+
__v: number;
|
|
234
|
+
}>;
|
|
235
|
+
};
|
|
236
|
+
name: {
|
|
237
|
+
required: boolean;
|
|
238
|
+
type: StringConstructor;
|
|
239
|
+
};
|
|
240
|
+
owner: {
|
|
241
|
+
required: boolean;
|
|
242
|
+
type: mongoose__default.Schema<SchemaOwnerType, mongoose__default.Model<SchemaOwnerType, any, any, any, mongoose__default.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
|
|
243
|
+
userId: ObjectId;
|
|
244
|
+
} & {
|
|
245
|
+
_id: mongoose__default.Types.ObjectId;
|
|
246
|
+
} & {
|
|
247
|
+
__v: number;
|
|
248
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaOwnerType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaOwnerType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaOwnerType> & {
|
|
249
|
+
_id: mongoose__default.Types.ObjectId;
|
|
250
|
+
} & {
|
|
251
|
+
__v: number;
|
|
252
|
+
}>;
|
|
253
|
+
};
|
|
254
|
+
posterUsage: {
|
|
255
|
+
required: boolean;
|
|
256
|
+
type: mongoose__default.Schema<PosterUsageType, mongoose__default.Model<PosterUsageType, any, any, any, mongoose__default.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
|
|
257
|
+
_id: mongoose__default.Types.ObjectId;
|
|
258
|
+
} & {
|
|
259
|
+
__v: number;
|
|
260
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, PosterUsageType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<PosterUsageType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<PosterUsageType> & {
|
|
261
|
+
_id: mongoose__default.Types.ObjectId;
|
|
262
|
+
} & {
|
|
263
|
+
__v: number;
|
|
264
|
+
}>;
|
|
265
|
+
};
|
|
266
|
+
promoCodes: {
|
|
267
|
+
required: boolean;
|
|
268
|
+
type: StringConstructor[];
|
|
269
|
+
};
|
|
270
|
+
rating: {
|
|
271
|
+
required: boolean;
|
|
272
|
+
type: NumberConstructor;
|
|
273
|
+
};
|
|
274
|
+
region: {
|
|
275
|
+
required: boolean;
|
|
276
|
+
type: StringConstructor;
|
|
277
|
+
};
|
|
278
|
+
relatedPost: {
|
|
279
|
+
required: boolean;
|
|
280
|
+
type: mongoose__default.Schema<SchemaRelatedPostType, mongoose__default.Model<SchemaRelatedPostType, any, any, any, mongoose__default.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
|
|
281
|
+
postId: ObjectId;
|
|
282
|
+
} & {
|
|
283
|
+
_id: mongoose__default.Types.ObjectId;
|
|
284
|
+
} & {
|
|
285
|
+
__v: number;
|
|
286
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaRelatedPostType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaRelatedPostType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaRelatedPostType> & {
|
|
287
|
+
_id: mongoose__default.Types.ObjectId;
|
|
288
|
+
} & {
|
|
289
|
+
__v: number;
|
|
290
|
+
}>;
|
|
291
|
+
};
|
|
292
|
+
reviewCount: {
|
|
293
|
+
required: boolean;
|
|
294
|
+
type: NumberConstructor;
|
|
295
|
+
};
|
|
296
|
+
slug: {
|
|
297
|
+
required: boolean;
|
|
298
|
+
type: StringConstructor;
|
|
299
|
+
};
|
|
300
|
+
socialMedia: {
|
|
301
|
+
required: boolean;
|
|
302
|
+
type: mongoose__default.Schema<SocialMediaType, mongoose__default.Model<SocialMediaType, any, any, any, mongoose__default.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
|
|
303
|
+
_id: mongoose__default.Types.ObjectId;
|
|
304
|
+
} & {
|
|
305
|
+
__v: number;
|
|
306
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SocialMediaType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SocialMediaType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SocialMediaType> & {
|
|
307
|
+
_id: mongoose__default.Types.ObjectId;
|
|
308
|
+
} & {
|
|
309
|
+
__v: number;
|
|
310
|
+
}>[];
|
|
311
|
+
};
|
|
312
|
+
termsAgreement: {
|
|
313
|
+
required: boolean;
|
|
314
|
+
type: mongoose__default.Schema<TermsAgreement, mongoose__default.Model<TermsAgreement, any, any, any, mongoose__default.Document<unknown, any, TermsAgreement, any, {}> & _timardex_cluemart_shared.DeviceInfo & {
|
|
315
|
+
termVersion: string;
|
|
316
|
+
} & {
|
|
317
|
+
_id: mongoose__default.Types.ObjectId;
|
|
318
|
+
} & {
|
|
319
|
+
__v: number;
|
|
320
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, TermsAgreement, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<TermsAgreement>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<TermsAgreement> & {
|
|
321
|
+
_id: mongoose__default.Types.ObjectId;
|
|
322
|
+
} & {
|
|
323
|
+
__v: number;
|
|
324
|
+
}>;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
declare const socialShareResourceSchema: mongoose__default.Schema<SocialShareResourceType, mongoose__default.Model<SocialShareResourceType, any, any, any, mongoose__default.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
|
|
328
|
+
_id: mongoose__default.Types.ObjectId;
|
|
329
|
+
} & {
|
|
330
|
+
__v: number;
|
|
331
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SocialShareResourceType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SocialShareResourceType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SocialShareResourceType> & {
|
|
332
|
+
_id: mongoose__default.Types.ObjectId;
|
|
333
|
+
} & {
|
|
334
|
+
__v: number;
|
|
335
|
+
}>;
|
|
336
|
+
|
|
337
|
+
declare const relationDatesSchema: mongoose__default.Schema<RelationDate, mongoose__default.Model<RelationDate, any, any, any, mongoose__default.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
|
|
338
|
+
_id: mongoose__default.Types.ObjectId;
|
|
339
|
+
} & {
|
|
340
|
+
__v: number;
|
|
341
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, RelationDate, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<RelationDate>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<RelationDate> & {
|
|
342
|
+
_id: mongoose__default.Types.ObjectId;
|
|
343
|
+
} & {
|
|
344
|
+
__v: number;
|
|
345
|
+
}>;
|
|
346
|
+
type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
|
|
347
|
+
eventId: ObjectId;
|
|
348
|
+
vendorId: ObjectId;
|
|
349
|
+
chatId: ObjectId;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* This is the schema for the relation type.
|
|
353
|
+
* It is used to define the structure of the relation type in the database.
|
|
354
|
+
* The schema is used by Mongoose to create a model for the relation type.
|
|
355
|
+
*/
|
|
356
|
+
declare const RelationTypeSchema: mongoose__default.Schema<SchemaRelationType, mongoose__default.Model<SchemaRelationType, any, any, any, mongoose__default.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
|
|
357
|
+
eventId: ObjectId;
|
|
358
|
+
vendorId: ObjectId;
|
|
359
|
+
chatId: ObjectId;
|
|
360
|
+
} & Required<{
|
|
361
|
+
_id: string;
|
|
362
|
+
}> & {
|
|
363
|
+
__v: number;
|
|
364
|
+
}, any>, {}, {}, {}, {}, mongoose__default.DefaultSchemaOptions, SchemaRelationType, mongoose__default.Document<unknown, {}, mongoose__default.FlatRecord<SchemaRelationType>, {}, mongoose__default.ResolveSchemaOptions<mongoose__default.DefaultSchemaOptions>> & mongoose__default.FlatRecord<SchemaRelationType> & Required<{
|
|
365
|
+
_id: string;
|
|
366
|
+
}> & {
|
|
367
|
+
__v: number;
|
|
368
|
+
}>;
|
|
369
|
+
declare const RelationModel: mongoose__default.Model<SchemaRelationType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
|
|
370
|
+
eventId: ObjectId;
|
|
371
|
+
vendorId: ObjectId;
|
|
372
|
+
chatId: ObjectId;
|
|
373
|
+
} & Required<{
|
|
374
|
+
_id: string;
|
|
375
|
+
}> & {
|
|
376
|
+
__v: number;
|
|
377
|
+
}, any>;
|
|
378
|
+
|
|
379
|
+
type SchemaAffiliateReward = AffiliateRewardType;
|
|
380
|
+
type SchemaAffiliateResourceType = Omit<AffiliateResourceType, "resourceId"> & {
|
|
381
|
+
resourceId: ObjectId;
|
|
382
|
+
};
|
|
383
|
+
type AffiliateDocument = Omit<AffiliateType, "_id" | "owner" | "affiliateResources"> & {
|
|
384
|
+
affiliateResources: SchemaAffiliateResourceType[];
|
|
385
|
+
owner: SchemaOwnerType;
|
|
386
|
+
};
|
|
387
|
+
declare const AffiliateModel: mongoose__default.Model<AffiliateDocument, {}, {}, {}, mongoose__default.Document<unknown, {}, AffiliateDocument, {}, {}> & Omit<AffiliateType, "_id" | "owner" | "affiliateResources"> & {
|
|
388
|
+
affiliateResources: SchemaAffiliateResourceType[];
|
|
389
|
+
owner: SchemaOwnerType;
|
|
390
|
+
} & {
|
|
391
|
+
_id: mongoose__default.Types.ObjectId;
|
|
392
|
+
} & {
|
|
393
|
+
__v: number;
|
|
394
|
+
}, any>;
|
|
395
|
+
|
|
396
|
+
export { AffiliateModel as A, CategorySchema as C, OwnerTypeSchema as O, ResourceImageTypeSchema as R, type SchemaOwnerType as S, type SchemaRelatedPostType as a, SocialMediaTypeSchema as b, associatesSchema as c, ContactDetailsSchema as d, dateTimeSchema as e, locationsSchema as f, relatedPostSchema as g, baseResourceFields as h, relationDatesSchema as i, type SchemaRelationType as j, RelationTypeSchema as k, locationGeoSchema as l, RelationModel as m, type SchemaAffiliateReward as n, type SchemaAffiliateResourceType as o, resourceRelationsSchema as r, socialShareResourceSchema as s, termsAgreementSchema as t, userLicenseSchema as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType } from '@timardex/cluemart-shared';
|
|
2
|
-
import
|
|
2
|
+
import mongoose__default from 'mongoose';
|
|
3
3
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
4
4
|
import express from 'express';
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "user
|
|
|
9
9
|
type SchemaNotificationType = Omit<NotificationType, "userId"> & {
|
|
10
10
|
userId: ObjectId;
|
|
11
11
|
};
|
|
12
|
-
declare const NotificationModel:
|
|
12
|
+
declare const NotificationModel: mongoose__default.Model<SchemaNotificationType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
|
|
13
13
|
userId: ObjectId;
|
|
14
14
|
} & Required<{
|
|
15
15
|
_id: string;
|
|
@@ -17,7 +17,7 @@ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {},
|
|
|
17
17
|
__v: number;
|
|
18
18
|
}, any>;
|
|
19
19
|
|
|
20
|
-
type ObjectId =
|
|
20
|
+
type ObjectId = mongoose__default.Types.ObjectId;
|
|
21
21
|
declare enum EnumPubSubEvents {
|
|
22
22
|
GET_CHAT_MESSAGE = "GET_CHAT_MESSAGE",
|
|
23
23
|
GET_NOTIFICATIONS = "GET_NOTIFICATIONS",
|
|
@@ -72,7 +72,7 @@ type SchemaChatType = Omit<ChatType, "participants" | "messages"> & {
|
|
|
72
72
|
participants: SchemaParticipantType[];
|
|
73
73
|
messages: SchemaChatMessageType[];
|
|
74
74
|
};
|
|
75
|
-
declare const ChatModel:
|
|
75
|
+
declare const ChatModel: mongoose__default.Model<SchemaChatType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages"> & {
|
|
76
76
|
participants: SchemaParticipantType[];
|
|
77
77
|
messages: SchemaChatMessageType[];
|
|
78
78
|
} & Required<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType } from '@timardex/cluemart-shared';
|
|
2
|
-
import
|
|
2
|
+
import mongoose__default from 'mongoose';
|
|
3
3
|
import { NotificationCount } from '@timardex/cluemart-shared/types';
|
|
4
4
|
import express from 'express';
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ type SchemaCreateBulkNotificationInput = Omit<CreateBulkNotificationInput, "user
|
|
|
9
9
|
type SchemaNotificationType = Omit<NotificationType, "userId"> & {
|
|
10
10
|
userId: ObjectId;
|
|
11
11
|
};
|
|
12
|
-
declare const NotificationModel:
|
|
12
|
+
declare const NotificationModel: mongoose__default.Model<SchemaNotificationType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaNotificationType, {}, {}> & Omit<NotificationType, "userId"> & {
|
|
13
13
|
userId: ObjectId;
|
|
14
14
|
} & Required<{
|
|
15
15
|
_id: string;
|
|
@@ -17,7 +17,7 @@ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {},
|
|
|
17
17
|
__v: number;
|
|
18
18
|
}, any>;
|
|
19
19
|
|
|
20
|
-
type ObjectId =
|
|
20
|
+
type ObjectId = mongoose__default.Types.ObjectId;
|
|
21
21
|
declare enum EnumPubSubEvents {
|
|
22
22
|
GET_CHAT_MESSAGE = "GET_CHAT_MESSAGE",
|
|
23
23
|
GET_NOTIFICATIONS = "GET_NOTIFICATIONS",
|
|
@@ -72,7 +72,7 @@ type SchemaChatType = Omit<ChatType, "participants" | "messages"> & {
|
|
|
72
72
|
participants: SchemaParticipantType[];
|
|
73
73
|
messages: SchemaChatMessageType[];
|
|
74
74
|
};
|
|
75
|
-
declare const ChatModel:
|
|
75
|
+
declare const ChatModel: mongoose__default.Model<SchemaChatType, {}, {}, {}, mongoose__default.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages"> & {
|
|
76
76
|
participants: SchemaParticipantType[];
|
|
77
77
|
messages: SchemaChatMessageType[];
|
|
78
78
|
} & Required<{
|
|
@@ -3610,6 +3610,7 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
|
3610
3610
|
})(EnumGameType || {});
|
|
3611
3611
|
var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
|
|
3612
3612
|
EnumAffiliateRewardType2["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS"] = "ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS";
|
|
3613
|
+
EnumAffiliateRewardType2["ACTIVE_VENDOR_BONUS_REWARD"] = "ACTIVE_VENDOR_BONUS_REWARD";
|
|
3613
3614
|
EnumAffiliateRewardType2["ACTIVE_VENDOR_PRO_SUBSCRIPTION"] = "ACTIVE_VENDOR_PRO_SUBSCRIPTION";
|
|
3614
3615
|
EnumAffiliateRewardType2["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION"] = "ACTIVE_VENDOR_STANDARD_SUBSCRIPTION";
|
|
3615
3616
|
EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
|
|
@@ -7419,6 +7420,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = gql`
|
|
|
7419
7420
|
var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
7420
7421
|
fragment AffiliateResourceFields on AffiliateResourceType {
|
|
7421
7422
|
resourceActive
|
|
7423
|
+
resourceDeletedAt
|
|
7422
7424
|
resourceId
|
|
7423
7425
|
resourceName
|
|
7424
7426
|
resourceType
|
|
@@ -7458,6 +7460,9 @@ var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
|
7458
7460
|
fragment AffiliateFields on AffiliateType {
|
|
7459
7461
|
_id
|
|
7460
7462
|
active
|
|
7463
|
+
affiliateBonusRewards {
|
|
7464
|
+
...AffiliateRewardFields
|
|
7465
|
+
}
|
|
7461
7466
|
affiliateCode
|
|
7462
7467
|
affiliateDetails {
|
|
7463
7468
|
...AffiliateDetailsFields
|
|
@@ -9209,6 +9214,7 @@ var affiliateRewardSchema = new MongooseSchema25(
|
|
|
9209
9214
|
var affiliateResourceSchema = new MongooseSchema25(
|
|
9210
9215
|
{
|
|
9211
9216
|
resourceActive: { default: true, required: true, type: Boolean },
|
|
9217
|
+
resourceDeletedAt: { default: null, required: false, type: Date },
|
|
9212
9218
|
resourceId: {
|
|
9213
9219
|
required: true,
|
|
9214
9220
|
type: mongoose25.Schema.Types.ObjectId
|
|
@@ -9256,6 +9262,11 @@ var affiliateDetailsSchema = new MongooseSchema25(
|
|
|
9256
9262
|
var schema17 = new MongooseSchema25(
|
|
9257
9263
|
{
|
|
9258
9264
|
active: { default: false, required: true, type: Boolean },
|
|
9265
|
+
affiliateBonusRewards: {
|
|
9266
|
+
default: [],
|
|
9267
|
+
required: false,
|
|
9268
|
+
type: [affiliateRewardSchema]
|
|
9269
|
+
},
|
|
9259
9270
|
affiliateCode: { required: true, type: String },
|
|
9260
9271
|
affiliateDetails: { required: false, type: affiliateDetailsSchema },
|
|
9261
9272
|
affiliateResources: {
|
|
@@ -9296,6 +9307,7 @@ export {
|
|
|
9296
9307
|
dateFormat,
|
|
9297
9308
|
timeFormat,
|
|
9298
9309
|
EnumAdStatus,
|
|
9310
|
+
EnumAffiliateRewardType,
|
|
9299
9311
|
AdModel,
|
|
9300
9312
|
ChatModel,
|
|
9301
9313
|
ChatReportModel,
|
|
@@ -9338,4 +9350,4 @@ export {
|
|
|
9338
9350
|
SchoolModel,
|
|
9339
9351
|
AffiliateModel
|
|
9340
9352
|
};
|
|
9341
|
-
//# sourceMappingURL=chunk-
|
|
9353
|
+
//# sourceMappingURL=chunk-4FWW5CDC.mjs.map
|