@timardex/cluemart-server-shared 1.0.161 → 1.0.163
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/Relation-BQhULTU-.d.mts +47 -0
- package/dist/Relation-Dvgd2CFi.d.ts +47 -0
- package/dist/{chunk-YJEFAISD.mjs → chunk-RGSAG3WZ.mjs} +4 -2
- package/dist/{chunk-YJEFAISD.mjs.map → chunk-RGSAG3WZ.mjs.map} +1 -1
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +2 -1
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +3 -44
- package/dist/mongoose/index.d.ts +3 -44
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +17 -1
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +9 -2
- package/dist/service/index.d.ts +9 -2
- package/dist/service/index.mjs +16 -1
- package/dist/service/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { RelationDate, RelationType } from '@timardex/cluemart-shared';
|
|
2
|
+
import mongoose from 'mongoose';
|
|
3
|
+
import { O as ObjectId } from './Chat-Ctmtatmi.mjs';
|
|
4
|
+
|
|
5
|
+
declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
|
|
6
|
+
_id: mongoose.Types.ObjectId;
|
|
7
|
+
} & {
|
|
8
|
+
__v: number;
|
|
9
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RelationDate, mongoose.Document<unknown, {}, mongoose.FlatRecord<RelationDate>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RelationDate> & {
|
|
10
|
+
_id: mongoose.Types.ObjectId;
|
|
11
|
+
} & {
|
|
12
|
+
__v: number;
|
|
13
|
+
}>;
|
|
14
|
+
type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
|
|
15
|
+
eventId: ObjectId;
|
|
16
|
+
vendorId: ObjectId;
|
|
17
|
+
chatId: ObjectId;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* This is the schema for the relation type.
|
|
21
|
+
* It is used to define the structure of the relation type in the database.
|
|
22
|
+
* The schema is used by Mongoose to create a model for the relation type.
|
|
23
|
+
*/
|
|
24
|
+
declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
|
|
25
|
+
eventId: ObjectId;
|
|
26
|
+
vendorId: ObjectId;
|
|
27
|
+
chatId: ObjectId;
|
|
28
|
+
} & Required<{
|
|
29
|
+
_id: string;
|
|
30
|
+
}> & {
|
|
31
|
+
__v: number;
|
|
32
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelationType> & Required<{
|
|
33
|
+
_id: string;
|
|
34
|
+
}> & {
|
|
35
|
+
__v: number;
|
|
36
|
+
}>;
|
|
37
|
+
declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
|
|
38
|
+
eventId: ObjectId;
|
|
39
|
+
vendorId: ObjectId;
|
|
40
|
+
chatId: ObjectId;
|
|
41
|
+
} & Required<{
|
|
42
|
+
_id: string;
|
|
43
|
+
}> & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}, any>;
|
|
46
|
+
|
|
47
|
+
export { RelationTypeSchema as R, type SchemaRelationType as S, RelationModel as a, relationDatesSchema as r };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { RelationDate, RelationType } from '@timardex/cluemart-shared';
|
|
2
|
+
import mongoose from 'mongoose';
|
|
3
|
+
import { O as ObjectId } from './Chat-Ctmtatmi.js';
|
|
4
|
+
|
|
5
|
+
declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
|
|
6
|
+
_id: mongoose.Types.ObjectId;
|
|
7
|
+
} & {
|
|
8
|
+
__v: number;
|
|
9
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RelationDate, mongoose.Document<unknown, {}, mongoose.FlatRecord<RelationDate>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<RelationDate> & {
|
|
10
|
+
_id: mongoose.Types.ObjectId;
|
|
11
|
+
} & {
|
|
12
|
+
__v: number;
|
|
13
|
+
}>;
|
|
14
|
+
type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
|
|
15
|
+
eventId: ObjectId;
|
|
16
|
+
vendorId: ObjectId;
|
|
17
|
+
chatId: ObjectId;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* This is the schema for the relation type.
|
|
21
|
+
* It is used to define the structure of the relation type in the database.
|
|
22
|
+
* The schema is used by Mongoose to create a model for the relation type.
|
|
23
|
+
*/
|
|
24
|
+
declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
|
|
25
|
+
eventId: ObjectId;
|
|
26
|
+
vendorId: ObjectId;
|
|
27
|
+
chatId: ObjectId;
|
|
28
|
+
} & Required<{
|
|
29
|
+
_id: string;
|
|
30
|
+
}> & {
|
|
31
|
+
__v: number;
|
|
32
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelationType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelationType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelationType> & Required<{
|
|
33
|
+
_id: string;
|
|
34
|
+
}> & {
|
|
35
|
+
__v: number;
|
|
36
|
+
}>;
|
|
37
|
+
declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
|
|
38
|
+
eventId: ObjectId;
|
|
39
|
+
vendorId: ObjectId;
|
|
40
|
+
chatId: ObjectId;
|
|
41
|
+
} & Required<{
|
|
42
|
+
_id: string;
|
|
43
|
+
}> & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}, any>;
|
|
46
|
+
|
|
47
|
+
export { RelationTypeSchema as R, type SchemaRelationType as S, RelationModel as a, relationDatesSchema as r };
|
|
@@ -12251,7 +12251,8 @@ var schema11 = new MongooseSchema15(
|
|
|
12251
12251
|
required: false,
|
|
12252
12252
|
type: [resourceRelationsSchema]
|
|
12253
12253
|
},
|
|
12254
|
-
tags: { required: true, type: [String] }
|
|
12254
|
+
tags: { required: true, type: [String] },
|
|
12255
|
+
unregisteredVendorIds: { default: [], required: false, type: [String] }
|
|
12255
12256
|
},
|
|
12256
12257
|
{ timestamps: true }
|
|
12257
12258
|
);
|
|
@@ -12569,6 +12570,7 @@ var schema15 = new MongooseSchema23(
|
|
|
12569
12570
|
var SchoolModel = mongoose23.models.School || mongoose23.model("School", schema15);
|
|
12570
12571
|
|
|
12571
12572
|
export {
|
|
12573
|
+
EnumInviteStatus,
|
|
12572
12574
|
EnumChatType,
|
|
12573
12575
|
EnumResourceType,
|
|
12574
12576
|
EnumUserLicence,
|
|
@@ -12635,4 +12637,4 @@ react/cjs/react.development.js:
|
|
|
12635
12637
|
* LICENSE file in the root directory of this source tree.
|
|
12636
12638
|
*)
|
|
12637
12639
|
*/
|
|
12638
|
-
//# sourceMappingURL=chunk-
|
|
12640
|
+
//# sourceMappingURL=chunk-RGSAG3WZ.mjs.map
|