@grapadigital/shared-schemas 1.0.4 → 1.0.6
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/schemas/campaign.schema.d.ts +19 -2
- package/dist/schemas/client.schema.d.ts +9 -0
- package/dist/schemas/content.schema.d.ts +15 -2
- package/dist/schemas/influencer.schema.d.ts +19 -2
- package/dist/schemas/payment.schema.d.ts +19 -2
- package/dist/schemas/profile.schema.d.ts +5 -0
- package/dist/schemas/recruitment.schema.d.ts +43 -2
- package/package.json +3 -3
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
26
27
|
export type CampaignDocument = HydratedDocument<Campaign>;
|
|
27
28
|
export declare class ComercialCard {
|
|
@@ -30,8 +31,12 @@ export declare class ComercialCard {
|
|
|
30
31
|
}
|
|
31
32
|
export declare const ComercialCardSchema: MongooseSchema<ComercialCard, import("mongoose").Model<ComercialCard, any, any, any, import("mongoose").Document<unknown, any, ComercialCard> & ComercialCard & {
|
|
32
33
|
_id: Types.ObjectId;
|
|
34
|
+
} & {
|
|
35
|
+
__v: number;
|
|
33
36
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ComercialCard, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ComercialCard>> & import("mongoose").FlatRecord<ComercialCard> & {
|
|
34
37
|
_id: Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
35
40
|
}>;
|
|
36
41
|
export declare class Responsible {
|
|
37
42
|
name: string;
|
|
@@ -40,8 +45,12 @@ export declare class Responsible {
|
|
|
40
45
|
}
|
|
41
46
|
export declare const ResponsibleSchema: MongooseSchema<Responsible, import("mongoose").Model<Responsible, any, any, any, import("mongoose").Document<unknown, any, Responsible> & Responsible & {
|
|
42
47
|
_id: Types.ObjectId;
|
|
48
|
+
} & {
|
|
49
|
+
__v: number;
|
|
43
50
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Responsible, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Responsible>> & import("mongoose").FlatRecord<Responsible> & {
|
|
44
51
|
_id: Types.ObjectId;
|
|
52
|
+
} & {
|
|
53
|
+
__v: number;
|
|
45
54
|
}>;
|
|
46
55
|
export declare class Responsibles {
|
|
47
56
|
service: Responsible;
|
|
@@ -49,8 +58,12 @@ export declare class Responsibles {
|
|
|
49
58
|
}
|
|
50
59
|
export declare const ResponsiblesSchema: MongooseSchema<Responsibles, import("mongoose").Model<Responsibles, any, any, any, import("mongoose").Document<unknown, any, Responsibles> & Responsibles & {
|
|
51
60
|
_id: Types.ObjectId;
|
|
61
|
+
} & {
|
|
62
|
+
__v: number;
|
|
52
63
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Responsibles, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Responsibles>> & import("mongoose").FlatRecord<Responsibles> & {
|
|
53
64
|
_id: Types.ObjectId;
|
|
65
|
+
} & {
|
|
66
|
+
__v: number;
|
|
54
67
|
}>;
|
|
55
68
|
export declare class Campaign {
|
|
56
69
|
_id?: Types.ObjectId;
|
|
@@ -83,6 +96,10 @@ export declare class Campaign {
|
|
|
83
96
|
}
|
|
84
97
|
export declare const CampaignSchema: MongooseSchema<Campaign, import("mongoose").Model<Campaign, any, any, any, import("mongoose").Document<unknown, any, Campaign> & Campaign & Required<{
|
|
85
98
|
_id: Types.ObjectId;
|
|
86
|
-
}
|
|
99
|
+
}> & {
|
|
100
|
+
__v: number;
|
|
101
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Campaign, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Campaign>> & import("mongoose").FlatRecord<Campaign> & Required<{
|
|
87
102
|
_id: Types.ObjectId;
|
|
88
|
-
}
|
|
103
|
+
}> & {
|
|
104
|
+
__v: number;
|
|
105
|
+
}>;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from "mongoose";
|
|
26
27
|
export type ClientDocument = HydratedDocument<Client>;
|
|
27
28
|
export declare class Cluster {
|
|
@@ -30,8 +31,12 @@ export declare class Cluster {
|
|
|
30
31
|
}
|
|
31
32
|
export declare const ClusterSchema: MongooseSchema<Cluster, import("mongoose").Model<Cluster, any, any, any, import("mongoose").Document<unknown, any, Cluster> & Cluster & {
|
|
32
33
|
_id: import("mongoose").Types.ObjectId;
|
|
34
|
+
} & {
|
|
35
|
+
__v: number;
|
|
33
36
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Cluster, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Cluster>> & import("mongoose").FlatRecord<Cluster> & {
|
|
34
37
|
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
35
40
|
}>;
|
|
36
41
|
export declare class Client {
|
|
37
42
|
name: string;
|
|
@@ -43,6 +48,10 @@ export declare class Client {
|
|
|
43
48
|
}
|
|
44
49
|
export declare const ClientSchema: MongooseSchema<Client, import("mongoose").Model<Client, any, any, any, import("mongoose").Document<unknown, any, Client> & Client & {
|
|
45
50
|
_id: import("mongoose").Types.ObjectId;
|
|
51
|
+
} & {
|
|
52
|
+
__v: number;
|
|
46
53
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Client, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Client>> & import("mongoose").FlatRecord<Client> & {
|
|
47
54
|
_id: import("mongoose").Types.ObjectId;
|
|
55
|
+
} & {
|
|
56
|
+
__v: number;
|
|
48
57
|
}>;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
26
27
|
export type ContentDocument = HydratedDocument<Content>;
|
|
27
28
|
export declare class Metrics {
|
|
@@ -41,8 +42,12 @@ export declare class Metrics {
|
|
|
41
42
|
}
|
|
42
43
|
export declare const MetricsSchema: MongooseSchema<Metrics, import("mongoose").Model<Metrics, any, any, any, import("mongoose").Document<unknown, any, Metrics> & Metrics & {
|
|
43
44
|
_id: import("mongoose").Types.ObjectId;
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
44
47
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Metrics, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Metrics>> & import("mongoose").FlatRecord<Metrics> & {
|
|
45
48
|
_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
} & {
|
|
50
|
+
__v: number;
|
|
46
51
|
}>;
|
|
47
52
|
export declare class Estimates {
|
|
48
53
|
impressionCount?: number;
|
|
@@ -52,8 +57,12 @@ export declare class Estimates {
|
|
|
52
57
|
}
|
|
53
58
|
export declare const EstimatesSchema: MongooseSchema<Estimates, import("mongoose").Model<Estimates, any, any, any, import("mongoose").Document<unknown, any, Estimates> & Estimates & {
|
|
54
59
|
_id: import("mongoose").Types.ObjectId;
|
|
60
|
+
} & {
|
|
61
|
+
__v: number;
|
|
55
62
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Estimates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Estimates>> & import("mongoose").FlatRecord<Estimates> & {
|
|
56
63
|
_id: import("mongoose").Types.ObjectId;
|
|
64
|
+
} & {
|
|
65
|
+
__v: number;
|
|
57
66
|
}>;
|
|
58
67
|
export declare class Content {
|
|
59
68
|
_id: MongooseSchema.Types.ObjectId;
|
|
@@ -79,6 +88,10 @@ export declare class Content {
|
|
|
79
88
|
}
|
|
80
89
|
export declare const ContentSchema: MongooseSchema<Content, import("mongoose").Model<Content, any, any, any, import("mongoose").Document<unknown, any, Content> & Content & Required<{
|
|
81
90
|
_id: MongooseSchema.Types.ObjectId;
|
|
82
|
-
}
|
|
91
|
+
}> & {
|
|
92
|
+
__v: number;
|
|
93
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Content, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Content>> & import("mongoose").FlatRecord<Content> & Required<{
|
|
83
94
|
_id: MongooseSchema.Types.ObjectId;
|
|
84
|
-
}
|
|
95
|
+
}> & {
|
|
96
|
+
__v: number;
|
|
97
|
+
}>;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from "mongoose";
|
|
26
27
|
export type InfluencerDocument = HydratedDocument<Influencer>;
|
|
27
28
|
export declare class Address {
|
|
@@ -34,8 +35,12 @@ export declare class Address {
|
|
|
34
35
|
}
|
|
35
36
|
export declare const AddressSchema: MongooseSchema<Address, import("mongoose").Model<Address, any, any, any, import("mongoose").Document<unknown, any, Address> & Address & {
|
|
36
37
|
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
37
40
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Address, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Address>> & import("mongoose").FlatRecord<Address> & {
|
|
38
41
|
_id: import("mongoose").Types.ObjectId;
|
|
42
|
+
} & {
|
|
43
|
+
__v: number;
|
|
39
44
|
}>;
|
|
40
45
|
export declare class Payment {
|
|
41
46
|
legalName: string;
|
|
@@ -50,8 +55,12 @@ export declare class Payment {
|
|
|
50
55
|
}
|
|
51
56
|
export declare const PaymentSchema: MongooseSchema<Payment, import("mongoose").Model<Payment, any, any, any, import("mongoose").Document<unknown, any, Payment> & Payment & {
|
|
52
57
|
_id: import("mongoose").Types.ObjectId;
|
|
58
|
+
} & {
|
|
59
|
+
__v: number;
|
|
53
60
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Payment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Payment>> & import("mongoose").FlatRecord<Payment> & {
|
|
54
61
|
_id: import("mongoose").Types.ObjectId;
|
|
62
|
+
} & {
|
|
63
|
+
__v: number;
|
|
55
64
|
}>;
|
|
56
65
|
export declare class Advisor {
|
|
57
66
|
firstName: string;
|
|
@@ -62,8 +71,12 @@ export declare class Advisor {
|
|
|
62
71
|
}
|
|
63
72
|
export declare const AdvisorSchema: MongooseSchema<Advisor, import("mongoose").Model<Advisor, any, any, any, import("mongoose").Document<unknown, any, Advisor> & Advisor & {
|
|
64
73
|
_id: import("mongoose").Types.ObjectId;
|
|
74
|
+
} & {
|
|
75
|
+
__v: number;
|
|
65
76
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Advisor, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Advisor>> & import("mongoose").FlatRecord<Advisor> & {
|
|
66
77
|
_id: import("mongoose").Types.ObjectId;
|
|
78
|
+
} & {
|
|
79
|
+
__v: number;
|
|
67
80
|
}>;
|
|
68
81
|
export declare class Influencer {
|
|
69
82
|
_id: MongooseSchema.Types.ObjectId;
|
|
@@ -88,6 +101,10 @@ export declare class Influencer {
|
|
|
88
101
|
}
|
|
89
102
|
export declare const InfluencerSchema: MongooseSchema<Influencer, import("mongoose").Model<Influencer, any, any, any, import("mongoose").Document<unknown, any, Influencer> & Influencer & Required<{
|
|
90
103
|
_id: MongooseSchema.Types.ObjectId;
|
|
91
|
-
}
|
|
104
|
+
}> & {
|
|
105
|
+
__v: number;
|
|
106
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Influencer, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Influencer>> & import("mongoose").FlatRecord<Influencer> & Required<{
|
|
92
107
|
_id: MongooseSchema.Types.ObjectId;
|
|
93
|
-
}
|
|
108
|
+
}> & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}>;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from "mongoose";
|
|
26
27
|
export type PaymentDocument = HydratedDocument<Payment>;
|
|
27
28
|
export declare class Requester {
|
|
@@ -31,8 +32,12 @@ export declare class Requester {
|
|
|
31
32
|
}
|
|
32
33
|
export declare const RequesterSchema: MongooseSchema<Requester, import("mongoose").Model<Requester, any, any, any, import("mongoose").Document<unknown, any, Requester> & Requester & {
|
|
33
34
|
_id: import("mongoose").Types.ObjectId;
|
|
35
|
+
} & {
|
|
36
|
+
__v: number;
|
|
34
37
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Requester, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Requester>> & import("mongoose").FlatRecord<Requester> & {
|
|
35
38
|
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
36
41
|
}>;
|
|
37
42
|
export declare class PipefyCard {
|
|
38
43
|
id: string;
|
|
@@ -40,8 +45,12 @@ export declare class PipefyCard {
|
|
|
40
45
|
}
|
|
41
46
|
export declare const PipefyCardSchema: MongooseSchema<PipefyCard, import("mongoose").Model<PipefyCard, any, any, any, import("mongoose").Document<unknown, any, PipefyCard> & PipefyCard & {
|
|
42
47
|
_id: import("mongoose").Types.ObjectId;
|
|
48
|
+
} & {
|
|
49
|
+
__v: number;
|
|
43
50
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PipefyCard, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<PipefyCard>> & import("mongoose").FlatRecord<PipefyCard> & {
|
|
44
51
|
_id: import("mongoose").Types.ObjectId;
|
|
52
|
+
} & {
|
|
53
|
+
__v: number;
|
|
45
54
|
}>;
|
|
46
55
|
export declare class PendingChanges {
|
|
47
56
|
dueDate: Date;
|
|
@@ -50,8 +59,12 @@ export declare class PendingChanges {
|
|
|
50
59
|
}
|
|
51
60
|
export declare const PendingChangesSchema: MongooseSchema<PendingChanges, import("mongoose").Model<PendingChanges, any, any, any, import("mongoose").Document<unknown, any, PendingChanges> & PendingChanges & {
|
|
52
61
|
_id: import("mongoose").Types.ObjectId;
|
|
62
|
+
} & {
|
|
63
|
+
__v: number;
|
|
53
64
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, PendingChanges, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<PendingChanges>> & import("mongoose").FlatRecord<PendingChanges> & {
|
|
54
65
|
_id: import("mongoose").Types.ObjectId;
|
|
66
|
+
} & {
|
|
67
|
+
__v: number;
|
|
55
68
|
}>;
|
|
56
69
|
export declare class Payment {
|
|
57
70
|
_id: MongooseSchema.Types.ObjectId;
|
|
@@ -70,6 +83,10 @@ export declare class Payment {
|
|
|
70
83
|
}
|
|
71
84
|
export declare const PaymentSchema: MongooseSchema<Payment, import("mongoose").Model<Payment, any, any, any, import("mongoose").Document<unknown, any, Payment> & Payment & Required<{
|
|
72
85
|
_id: MongooseSchema.Types.ObjectId;
|
|
73
|
-
}
|
|
86
|
+
}> & {
|
|
87
|
+
__v: number;
|
|
88
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Payment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Payment>> & import("mongoose").FlatRecord<Payment> & Required<{
|
|
74
89
|
_id: MongooseSchema.Types.ObjectId;
|
|
75
|
-
}
|
|
90
|
+
}> & {
|
|
91
|
+
__v: number;
|
|
92
|
+
}>;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from "mongoose";
|
|
26
27
|
export type ProfileDocument = HydratedDocument<Profile>;
|
|
27
28
|
export interface Metrics {
|
|
@@ -45,6 +46,10 @@ export declare class Profile {
|
|
|
45
46
|
}
|
|
46
47
|
export declare const ProfileSchema: MongooseSchema<Profile, import("mongoose").Model<Profile, any, any, any, import("mongoose").Document<unknown, any, Profile> & Profile & {
|
|
47
48
|
_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
} & {
|
|
50
|
+
__v: number;
|
|
48
51
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Profile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Profile>> & import("mongoose").FlatRecord<Profile> & {
|
|
49
52
|
_id: import("mongoose").Types.ObjectId;
|
|
53
|
+
} & {
|
|
54
|
+
__v: number;
|
|
50
55
|
}>;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
26
27
|
export type RecruitmentDocument = HydratedDocument<Recruitment>;
|
|
27
28
|
export declare class Delivery {
|
|
@@ -35,8 +36,12 @@ export declare class Delivery {
|
|
|
35
36
|
}
|
|
36
37
|
export declare const DeliverySchema: MongooseSchema<Delivery, import("mongoose").Model<Delivery, any, any, any, import("mongoose").Document<unknown, any, Delivery> & Delivery & {
|
|
37
38
|
_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
38
41
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Delivery, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Delivery>> & import("mongoose").FlatRecord<Delivery> & {
|
|
39
42
|
_id: import("mongoose").Types.ObjectId;
|
|
43
|
+
} & {
|
|
44
|
+
__v: number;
|
|
40
45
|
}>;
|
|
41
46
|
export declare class Right {
|
|
42
47
|
granted: boolean;
|
|
@@ -44,8 +49,12 @@ export declare class Right {
|
|
|
44
49
|
}
|
|
45
50
|
export declare const RightSchema: MongooseSchema<Right, import("mongoose").Model<Right, any, any, any, import("mongoose").Document<unknown, any, Right> & Right & {
|
|
46
51
|
_id: import("mongoose").Types.ObjectId;
|
|
52
|
+
} & {
|
|
53
|
+
__v: number;
|
|
47
54
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Right, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Right>> & import("mongoose").FlatRecord<Right> & {
|
|
48
55
|
_id: import("mongoose").Types.ObjectId;
|
|
56
|
+
} & {
|
|
57
|
+
__v: number;
|
|
49
58
|
}>;
|
|
50
59
|
export declare class Rights {
|
|
51
60
|
repost: Right;
|
|
@@ -54,8 +63,12 @@ export declare class Rights {
|
|
|
54
63
|
}
|
|
55
64
|
export declare const RightsSchema: MongooseSchema<Rights, import("mongoose").Model<Rights, any, any, any, import("mongoose").Document<unknown, any, Rights> & Rights & {
|
|
56
65
|
_id: import("mongoose").Types.ObjectId;
|
|
66
|
+
} & {
|
|
67
|
+
__v: number;
|
|
57
68
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Rights, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Rights>> & import("mongoose").FlatRecord<Rights> & {
|
|
58
69
|
_id: import("mongoose").Types.ObjectId;
|
|
70
|
+
} & {
|
|
71
|
+
__v: number;
|
|
59
72
|
}>;
|
|
60
73
|
export declare class InstallmentInfo {
|
|
61
74
|
number: number;
|
|
@@ -63,8 +76,12 @@ export declare class InstallmentInfo {
|
|
|
63
76
|
}
|
|
64
77
|
export declare const InstallmentInfoSchema: MongooseSchema<InstallmentInfo, import("mongoose").Model<InstallmentInfo, any, any, any, import("mongoose").Document<unknown, any, InstallmentInfo> & InstallmentInfo & {
|
|
65
78
|
_id: import("mongoose").Types.ObjectId;
|
|
79
|
+
} & {
|
|
80
|
+
__v: number;
|
|
66
81
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InstallmentInfo, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<InstallmentInfo>> & import("mongoose").FlatRecord<InstallmentInfo> & {
|
|
67
82
|
_id: import("mongoose").Types.ObjectId;
|
|
83
|
+
} & {
|
|
84
|
+
__v: number;
|
|
68
85
|
}>;
|
|
69
86
|
export declare class Payment {
|
|
70
87
|
hasPayment: boolean;
|
|
@@ -76,8 +93,12 @@ export declare class Payment {
|
|
|
76
93
|
}
|
|
77
94
|
export declare const PaymentSchema: MongooseSchema<Payment, import("mongoose").Model<Payment, any, any, any, import("mongoose").Document<unknown, any, Payment> & Payment & {
|
|
78
95
|
_id: import("mongoose").Types.ObjectId;
|
|
96
|
+
} & {
|
|
97
|
+
__v: number;
|
|
79
98
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Payment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Payment>> & import("mongoose").FlatRecord<Payment> & {
|
|
80
99
|
_id: import("mongoose").Types.ObjectId;
|
|
100
|
+
} & {
|
|
101
|
+
__v: number;
|
|
81
102
|
}>;
|
|
82
103
|
export declare class AdvisorPayment {
|
|
83
104
|
hasPayment: boolean;
|
|
@@ -89,8 +110,12 @@ export declare class AdvisorPayment {
|
|
|
89
110
|
}
|
|
90
111
|
export declare const AdvisorPaymentSchema: MongooseSchema<AdvisorPayment, import("mongoose").Model<AdvisorPayment, any, any, any, import("mongoose").Document<unknown, any, AdvisorPayment> & AdvisorPayment & {
|
|
91
112
|
_id: import("mongoose").Types.ObjectId;
|
|
113
|
+
} & {
|
|
114
|
+
__v: number;
|
|
92
115
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, AdvisorPayment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<AdvisorPayment>> & import("mongoose").FlatRecord<AdvisorPayment> & {
|
|
93
116
|
_id: import("mongoose").Types.ObjectId;
|
|
117
|
+
} & {
|
|
118
|
+
__v: number;
|
|
94
119
|
}>;
|
|
95
120
|
export declare class Exchange {
|
|
96
121
|
hasExchange: boolean;
|
|
@@ -98,8 +123,12 @@ export declare class Exchange {
|
|
|
98
123
|
}
|
|
99
124
|
export declare const ExchangeSchema: MongooseSchema<Exchange, import("mongoose").Model<Exchange, any, any, any, import("mongoose").Document<unknown, any, Exchange> & Exchange & {
|
|
100
125
|
_id: import("mongoose").Types.ObjectId;
|
|
126
|
+
} & {
|
|
127
|
+
__v: number;
|
|
101
128
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Exchange, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Exchange>> & import("mongoose").FlatRecord<Exchange> & {
|
|
102
129
|
_id: import("mongoose").Types.ObjectId;
|
|
130
|
+
} & {
|
|
131
|
+
__v: number;
|
|
103
132
|
}>;
|
|
104
133
|
export declare class Collab {
|
|
105
134
|
hasCollab: boolean;
|
|
@@ -107,8 +136,12 @@ export declare class Collab {
|
|
|
107
136
|
}
|
|
108
137
|
export declare const CollabSchema: MongooseSchema<Collab, import("mongoose").Model<Collab, any, any, any, import("mongoose").Document<unknown, any, Collab> & Collab & {
|
|
109
138
|
_id: import("mongoose").Types.ObjectId;
|
|
139
|
+
} & {
|
|
140
|
+
__v: number;
|
|
110
141
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Collab, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Collab>> & import("mongoose").FlatRecord<Collab> & {
|
|
111
142
|
_id: import("mongoose").Types.ObjectId;
|
|
143
|
+
} & {
|
|
144
|
+
__v: number;
|
|
112
145
|
}>;
|
|
113
146
|
export declare class Scope {
|
|
114
147
|
delivery: Delivery;
|
|
@@ -126,8 +159,12 @@ export declare class Scope {
|
|
|
126
159
|
}
|
|
127
160
|
export declare const ScopeSchema: MongooseSchema<Scope, import("mongoose").Model<Scope, any, any, any, import("mongoose").Document<unknown, any, Scope> & Scope & {
|
|
128
161
|
_id: import("mongoose").Types.ObjectId;
|
|
162
|
+
} & {
|
|
163
|
+
__v: number;
|
|
129
164
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Scope, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Scope>> & import("mongoose").FlatRecord<Scope> & {
|
|
130
165
|
_id: import("mongoose").Types.ObjectId;
|
|
166
|
+
} & {
|
|
167
|
+
__v: number;
|
|
131
168
|
}>;
|
|
132
169
|
export declare class Recruitment {
|
|
133
170
|
_id: MongooseSchema.Types.ObjectId;
|
|
@@ -148,6 +185,10 @@ export declare class Recruitment {
|
|
|
148
185
|
}
|
|
149
186
|
export declare const RecruitmentSchema: MongooseSchema<Recruitment, import("mongoose").Model<Recruitment, any, any, any, import("mongoose").Document<unknown, any, Recruitment> & Recruitment & Required<{
|
|
150
187
|
_id: MongooseSchema.Types.ObjectId;
|
|
151
|
-
}
|
|
188
|
+
}> & {
|
|
189
|
+
__v: number;
|
|
190
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>> & import("mongoose").FlatRecord<Recruitment> & Required<{
|
|
152
191
|
_id: MongooseSchema.Types.ObjectId;
|
|
153
|
-
}
|
|
192
|
+
}> & {
|
|
193
|
+
__v: number;
|
|
194
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grapadigital/shared-schemas",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Shared Mongoose Schemas",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"prepublishOnly": "npm run build"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nestjs/mongoose": "^
|
|
12
|
+
"@nestjs/mongoose": "^11.0.1",
|
|
13
13
|
"@typescript-eslint/eslint-plugin": "^8.24.0",
|
|
14
14
|
"@typescript-eslint/parser": "^8.24.0",
|
|
15
15
|
"eslint": "^9.20.1",
|
|
16
16
|
"eslint-config-prettier": "^10.0.1",
|
|
17
17
|
"eslint-plugin-prettier": "^5.2.3",
|
|
18
|
-
"mongoose": "^
|
|
18
|
+
"mongoose": "^8.10.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"typescript": "^4.9.0"
|