@timardex/cluemart-server-shared 1.0.160 → 1.0.162
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-AY3HRVNJ.mjs → chunk-N2SOT77G.mjs} +12 -1
- package/dist/{chunk-AY3HRVNJ.mjs.map → chunk-N2SOT77G.mjs.map} +1 -1
- package/dist/index.cjs +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +24 -0
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +10 -0
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +5 -44
- package/dist/mongoose/index.d.ts +5 -44
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +25 -0
- 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 +2 -2
|
@@ -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 };
|
|
@@ -12350,6 +12350,16 @@ var MongooseSchema18 = mongoose18.Schema;
|
|
|
12350
12350
|
var APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
|
|
12351
12351
|
var AppSettingSchema = new MongooseSchema18(
|
|
12352
12352
|
{
|
|
12353
|
+
activeSchoolsStudentCountTotal: {
|
|
12354
|
+
default: 0,
|
|
12355
|
+
required: true,
|
|
12356
|
+
type: Number
|
|
12357
|
+
},
|
|
12358
|
+
activeSchoolsStudentCountUpdatedAt: {
|
|
12359
|
+
default: Date.now,
|
|
12360
|
+
required: true,
|
|
12361
|
+
type: Date
|
|
12362
|
+
},
|
|
12353
12363
|
appVersion: { default: "1.0.1", required: true, type: String },
|
|
12354
12364
|
isOfflineMode: { default: false, required: true, type: Boolean },
|
|
12355
12365
|
key: {
|
|
@@ -12559,6 +12569,7 @@ var schema15 = new MongooseSchema23(
|
|
|
12559
12569
|
var SchoolModel = mongoose23.models.School || mongoose23.model("School", schema15);
|
|
12560
12570
|
|
|
12561
12571
|
export {
|
|
12572
|
+
EnumInviteStatus,
|
|
12562
12573
|
EnumChatType,
|
|
12563
12574
|
EnumResourceType,
|
|
12564
12575
|
EnumUserLicence,
|
|
@@ -12625,4 +12636,4 @@ react/cjs/react.development.js:
|
|
|
12625
12636
|
* LICENSE file in the root directory of this source tree.
|
|
12626
12637
|
*)
|
|
12627
12638
|
*/
|
|
12628
|
-
//# sourceMappingURL=chunk-
|
|
12639
|
+
//# sourceMappingURL=chunk-N2SOT77G.mjs.map
|