fac-shared-db 1.2.0 → 1.4.0
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/build/models/AcaoMarcada.d.ts +127 -0
- package/build/models/AcaoMarcada.js +1 -1
- package/build/models/AcoesConfig.d.ts +64 -0
- package/build/models/AcoesConfig.js +1 -1
- package/build/models/Blacklist.d.ts +73 -0
- package/build/models/Blacklist.js +3 -3
- package/build/models/Caixa2Item.d.ts +55 -0
- package/build/models/Caixa2Item.js +1 -1
- package/build/models/KeyValue.d.ts +28 -0
- package/build/models/KeyValue.js +1 -1
- package/build/models/MensagemRecrutamento.d.ts +56 -0
- package/build/models/MensagemRecrutamento.js +1 -1
- package/build/models/index.d.ts +6 -6
- package/build/models/index.js +6 -6
- package/package.json +1 -1
|
@@ -29,6 +29,133 @@ export interface IAcaoMarcada extends Document {
|
|
|
29
29
|
/** Data/hora da ação como Date (para queries eficientes no MongoDB) */
|
|
30
30
|
dataHoraAcao: Date;
|
|
31
31
|
}
|
|
32
|
+
export declare const AcaoMarcadaSchema: mongoose.Schema<IAcaoMarcada, mongoose.Model<IAcaoMarcada, any, any, any, any, any, IAcaoMarcada>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
33
|
+
id: string;
|
|
34
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
35
|
+
_id: mongoose.Types.ObjectId;
|
|
36
|
+
}> & {
|
|
37
|
+
__v: number;
|
|
38
|
+
}, "id"> & {
|
|
39
|
+
id: string;
|
|
40
|
+
}, {
|
|
41
|
+
_id?: mongoose.SchemaDefinitionProperty<mongoose.Types.ObjectId, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
42
|
+
id: string;
|
|
43
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
44
|
+
_id: mongoose.Types.ObjectId;
|
|
45
|
+
}> & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}, "id"> & {
|
|
48
|
+
id: string;
|
|
49
|
+
}> | undefined;
|
|
50
|
+
data?: mongoose.SchemaDefinitionProperty<string, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
51
|
+
id: string;
|
|
52
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
53
|
+
_id: mongoose.Types.ObjectId;
|
|
54
|
+
}> & {
|
|
55
|
+
__v: number;
|
|
56
|
+
}, "id"> & {
|
|
57
|
+
id: string;
|
|
58
|
+
}> | undefined;
|
|
59
|
+
hora?: mongoose.SchemaDefinitionProperty<string, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
60
|
+
id: string;
|
|
61
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
62
|
+
_id: mongoose.Types.ObjectId;
|
|
63
|
+
}> & {
|
|
64
|
+
__v: number;
|
|
65
|
+
}, "id"> & {
|
|
66
|
+
id: string;
|
|
67
|
+
}> | undefined;
|
|
68
|
+
maxMembros?: mongoose.SchemaDefinitionProperty<number, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
69
|
+
id: string;
|
|
70
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
71
|
+
_id: mongoose.Types.ObjectId;
|
|
72
|
+
}> & {
|
|
73
|
+
__v: number;
|
|
74
|
+
}, "id"> & {
|
|
75
|
+
id: string;
|
|
76
|
+
}> | undefined;
|
|
77
|
+
participantes?: mongoose.SchemaDefinitionProperty<string[], IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
78
|
+
id: string;
|
|
79
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
80
|
+
_id: mongoose.Types.ObjectId;
|
|
81
|
+
}> & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}, "id"> & {
|
|
84
|
+
id: string;
|
|
85
|
+
}> | undefined;
|
|
86
|
+
escalados?: mongoose.SchemaDefinitionProperty<string[], IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
87
|
+
id: string;
|
|
88
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
89
|
+
_id: mongoose.Types.ObjectId;
|
|
90
|
+
}> & {
|
|
91
|
+
__v: number;
|
|
92
|
+
}, "id"> & {
|
|
93
|
+
id: string;
|
|
94
|
+
}> | undefined;
|
|
95
|
+
criadoPor?: mongoose.SchemaDefinitionProperty<string, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
96
|
+
id: string;
|
|
97
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
98
|
+
_id: mongoose.Types.ObjectId;
|
|
99
|
+
}> & {
|
|
100
|
+
__v: number;
|
|
101
|
+
}, "id"> & {
|
|
102
|
+
id: string;
|
|
103
|
+
}> | undefined;
|
|
104
|
+
resultado?: mongoose.SchemaDefinitionProperty<"ganhou" | "perdeu" | "pendente", IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
105
|
+
id: string;
|
|
106
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
107
|
+
_id: mongoose.Types.ObjectId;
|
|
108
|
+
}> & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}, "id"> & {
|
|
111
|
+
id: string;
|
|
112
|
+
}> | undefined;
|
|
113
|
+
mensagemId?: mongoose.SchemaDefinitionProperty<string, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
114
|
+
id: string;
|
|
115
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
116
|
+
_id: mongoose.Types.ObjectId;
|
|
117
|
+
}> & {
|
|
118
|
+
__v: number;
|
|
119
|
+
}, "id"> & {
|
|
120
|
+
id: string;
|
|
121
|
+
}> | undefined;
|
|
122
|
+
nome?: mongoose.SchemaDefinitionProperty<string, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
123
|
+
id: string;
|
|
124
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
125
|
+
_id: mongoose.Types.ObjectId;
|
|
126
|
+
}> & {
|
|
127
|
+
__v: number;
|
|
128
|
+
}, "id"> & {
|
|
129
|
+
id: string;
|
|
130
|
+
}> | undefined;
|
|
131
|
+
criadoEm?: mongoose.SchemaDefinitionProperty<Date, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
132
|
+
id: string;
|
|
133
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
134
|
+
_id: mongoose.Types.ObjectId;
|
|
135
|
+
}> & {
|
|
136
|
+
__v: number;
|
|
137
|
+
}, "id"> & {
|
|
138
|
+
id: string;
|
|
139
|
+
}> | undefined;
|
|
140
|
+
finalizadoEm?: mongoose.SchemaDefinitionProperty<Date | undefined, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
141
|
+
id: string;
|
|
142
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
143
|
+
_id: mongoose.Types.ObjectId;
|
|
144
|
+
}> & {
|
|
145
|
+
__v: number;
|
|
146
|
+
}, "id"> & {
|
|
147
|
+
id: string;
|
|
148
|
+
}> | undefined;
|
|
149
|
+
dataHoraAcao?: mongoose.SchemaDefinitionProperty<Date, IAcaoMarcada, mongoose.Document<unknown, {}, IAcaoMarcada, {
|
|
150
|
+
id: string;
|
|
151
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcaoMarcada & Required<{
|
|
152
|
+
_id: mongoose.Types.ObjectId;
|
|
153
|
+
}> & {
|
|
154
|
+
__v: number;
|
|
155
|
+
}, "id"> & {
|
|
156
|
+
id: string;
|
|
157
|
+
}> | undefined;
|
|
158
|
+
}, IAcaoMarcada>;
|
|
32
159
|
export declare const AcaoMarcadaModel: mongoose.Model<IAcaoMarcada, {}, {}, {}, mongoose.Document<unknown, {}, IAcaoMarcada, {}, mongoose.DefaultSchemaOptions> & IAcaoMarcada & Required<{
|
|
33
160
|
_id: mongoose.Types.ObjectId;
|
|
34
161
|
}> & {
|
|
@@ -21,6 +21,70 @@ export interface IAcoesConfig extends Document {
|
|
|
21
21
|
/** Data (YYYY-MM-DD) do último envio automático do calendário */
|
|
22
22
|
calendarioUltimoEnvio: string;
|
|
23
23
|
}
|
|
24
|
+
export declare const AcoesConfigSchema: mongoose.Schema<IAcoesConfig, mongoose.Model<IAcoesConfig, any, any, any, any, any, IAcoesConfig>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IAcoesConfig, mongoose.Document<unknown, {}, IAcoesConfig, {
|
|
25
|
+
id: string;
|
|
26
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcoesConfig & Required<{
|
|
27
|
+
_id: mongoose.Types.ObjectId;
|
|
28
|
+
}> & {
|
|
29
|
+
__v: number;
|
|
30
|
+
}, "id"> & {
|
|
31
|
+
id: string;
|
|
32
|
+
}, {
|
|
33
|
+
_id?: mongoose.SchemaDefinitionProperty<mongoose.Types.ObjectId, IAcoesConfig, mongoose.Document<unknown, {}, IAcoesConfig, {
|
|
34
|
+
id: string;
|
|
35
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcoesConfig & Required<{
|
|
36
|
+
_id: mongoose.Types.ObjectId;
|
|
37
|
+
}> & {
|
|
38
|
+
__v: number;
|
|
39
|
+
}, "id"> & {
|
|
40
|
+
id: string;
|
|
41
|
+
}> | undefined;
|
|
42
|
+
configId?: mongoose.SchemaDefinitionProperty<string, IAcoesConfig, mongoose.Document<unknown, {}, IAcoesConfig, {
|
|
43
|
+
id: string;
|
|
44
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcoesConfig & Required<{
|
|
45
|
+
_id: mongoose.Types.ObjectId;
|
|
46
|
+
}> & {
|
|
47
|
+
__v: number;
|
|
48
|
+
}, "id"> & {
|
|
49
|
+
id: string;
|
|
50
|
+
}> | undefined;
|
|
51
|
+
acoesDisponiveis?: mongoose.SchemaDefinitionProperty<{
|
|
52
|
+
chave: string;
|
|
53
|
+
nome: string;
|
|
54
|
+
maxParticipantes: number;
|
|
55
|
+
}[], IAcoesConfig, mongoose.Document<unknown, {}, IAcoesConfig, {
|
|
56
|
+
id: string;
|
|
57
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcoesConfig & Required<{
|
|
58
|
+
_id: mongoose.Types.ObjectId;
|
|
59
|
+
}> & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, "id"> & {
|
|
62
|
+
id: string;
|
|
63
|
+
}> | undefined;
|
|
64
|
+
calendarioSemanal?: mongoose.SchemaDefinitionProperty<{
|
|
65
|
+
dia: number;
|
|
66
|
+
acaoChave: string;
|
|
67
|
+
hora: string;
|
|
68
|
+
escalados: number;
|
|
69
|
+
}[], IAcoesConfig, mongoose.Document<unknown, {}, IAcoesConfig, {
|
|
70
|
+
id: string;
|
|
71
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcoesConfig & Required<{
|
|
72
|
+
_id: mongoose.Types.ObjectId;
|
|
73
|
+
}> & {
|
|
74
|
+
__v: number;
|
|
75
|
+
}, "id"> & {
|
|
76
|
+
id: string;
|
|
77
|
+
}> | undefined;
|
|
78
|
+
calendarioUltimoEnvio?: mongoose.SchemaDefinitionProperty<string, IAcoesConfig, mongoose.Document<unknown, {}, IAcoesConfig, {
|
|
79
|
+
id: string;
|
|
80
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IAcoesConfig & Required<{
|
|
81
|
+
_id: mongoose.Types.ObjectId;
|
|
82
|
+
}> & {
|
|
83
|
+
__v: number;
|
|
84
|
+
}, "id"> & {
|
|
85
|
+
id: string;
|
|
86
|
+
}> | undefined;
|
|
87
|
+
}, IAcoesConfig>;
|
|
24
88
|
export declare const AcoesConfigModel: mongoose.Model<IAcoesConfig, {}, {}, {}, mongoose.Document<unknown, {}, IAcoesConfig, {}, mongoose.DefaultSchemaOptions> & IAcoesConfig & Required<{
|
|
25
89
|
_id: mongoose.Types.ObjectId;
|
|
26
90
|
}> & {
|
|
@@ -7,6 +7,79 @@ export interface IBlacklist extends Document {
|
|
|
7
7
|
criadoEm: Date;
|
|
8
8
|
atualizadoEm: Date;
|
|
9
9
|
}
|
|
10
|
+
export declare const BlacklistSchema: mongoose.Schema<IBlacklist, mongoose.Model<IBlacklist, any, any, any, any, any, IBlacklist>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IBlacklist, mongoose.Document<unknown, {}, IBlacklist, {
|
|
11
|
+
id: string;
|
|
12
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IBlacklist & Required<{
|
|
13
|
+
_id: mongoose.Types.ObjectId;
|
|
14
|
+
}> & {
|
|
15
|
+
__v: number;
|
|
16
|
+
}, "id"> & {
|
|
17
|
+
id: string;
|
|
18
|
+
}, {
|
|
19
|
+
_id?: mongoose.SchemaDefinitionProperty<mongoose.Types.ObjectId, IBlacklist, mongoose.Document<unknown, {}, IBlacklist, {
|
|
20
|
+
id: string;
|
|
21
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IBlacklist & Required<{
|
|
22
|
+
_id: mongoose.Types.ObjectId;
|
|
23
|
+
}> & {
|
|
24
|
+
__v: number;
|
|
25
|
+
}, "id"> & {
|
|
26
|
+
id: string;
|
|
27
|
+
}> | undefined;
|
|
28
|
+
criadoEm?: mongoose.SchemaDefinitionProperty<Date, IBlacklist, mongoose.Document<unknown, {}, IBlacklist, {
|
|
29
|
+
id: string;
|
|
30
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IBlacklist & Required<{
|
|
31
|
+
_id: mongoose.Types.ObjectId;
|
|
32
|
+
}> & {
|
|
33
|
+
__v: number;
|
|
34
|
+
}, "id"> & {
|
|
35
|
+
id: string;
|
|
36
|
+
}> | undefined;
|
|
37
|
+
playerId?: mongoose.SchemaDefinitionProperty<string, IBlacklist, mongoose.Document<unknown, {}, IBlacklist, {
|
|
38
|
+
id: string;
|
|
39
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IBlacklist & Required<{
|
|
40
|
+
_id: mongoose.Types.ObjectId;
|
|
41
|
+
}> & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}, "id"> & {
|
|
44
|
+
id: string;
|
|
45
|
+
}> | undefined;
|
|
46
|
+
organizacao?: mongoose.SchemaDefinitionProperty<string | undefined, IBlacklist, mongoose.Document<unknown, {}, IBlacklist, {
|
|
47
|
+
id: string;
|
|
48
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IBlacklist & Required<{
|
|
49
|
+
_id: mongoose.Types.ObjectId;
|
|
50
|
+
}> & {
|
|
51
|
+
__v: number;
|
|
52
|
+
}, "id"> & {
|
|
53
|
+
id: string;
|
|
54
|
+
}> | undefined;
|
|
55
|
+
cargo?: mongoose.SchemaDefinitionProperty<string | undefined, IBlacklist, mongoose.Document<unknown, {}, IBlacklist, {
|
|
56
|
+
id: string;
|
|
57
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IBlacklist & Required<{
|
|
58
|
+
_id: mongoose.Types.ObjectId;
|
|
59
|
+
}> & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, "id"> & {
|
|
62
|
+
id: string;
|
|
63
|
+
}> | undefined;
|
|
64
|
+
vencimento?: mongoose.SchemaDefinitionProperty<Date, IBlacklist, mongoose.Document<unknown, {}, IBlacklist, {
|
|
65
|
+
id: string;
|
|
66
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IBlacklist & Required<{
|
|
67
|
+
_id: mongoose.Types.ObjectId;
|
|
68
|
+
}> & {
|
|
69
|
+
__v: number;
|
|
70
|
+
}, "id"> & {
|
|
71
|
+
id: string;
|
|
72
|
+
}> | undefined;
|
|
73
|
+
atualizadoEm?: mongoose.SchemaDefinitionProperty<Date, IBlacklist, mongoose.Document<unknown, {}, IBlacklist, {
|
|
74
|
+
id: string;
|
|
75
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IBlacklist & Required<{
|
|
76
|
+
_id: mongoose.Types.ObjectId;
|
|
77
|
+
}> & {
|
|
78
|
+
__v: number;
|
|
79
|
+
}, "id"> & {
|
|
80
|
+
id: string;
|
|
81
|
+
}> | undefined;
|
|
82
|
+
}, IBlacklist>;
|
|
10
83
|
export declare const BlacklistModel: mongoose.Model<IBlacklist, {}, {}, {}, mongoose.Document<unknown, {}, IBlacklist, {}, mongoose.DefaultSchemaOptions> & IBlacklist & Required<{
|
|
11
84
|
_id: mongoose.Types.ObjectId;
|
|
12
85
|
}> & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import mongoose, { Schema } from "mongoose";
|
|
2
|
-
const BlacklistSchema = new Schema({
|
|
2
|
+
export const BlacklistSchema = new Schema({
|
|
3
3
|
playerId: { type: String, required: true, unique: true },
|
|
4
4
|
organizacao: { type: String },
|
|
5
5
|
cargo: { type: String },
|
|
6
6
|
vencimento: { type: Date, required: true, index: { expireAfterSeconds: 0 } },
|
|
7
7
|
criadoEm: { type: Date, default: Date.now },
|
|
8
8
|
atualizadoEm: { type: Date, default: Date.now },
|
|
9
|
-
});
|
|
10
|
-
export const BlacklistModel = mongoose.model("Blacklist", BlacklistSchema
|
|
9
|
+
}, { collection: "blacklist" });
|
|
10
|
+
export const BlacklistModel = mongoose.model("Blacklist", BlacklistSchema);
|
|
@@ -5,6 +5,61 @@ export interface ICaixa2Item extends Document {
|
|
|
5
5
|
minAdv: number;
|
|
6
6
|
maxAdv: number;
|
|
7
7
|
}
|
|
8
|
+
export declare const Caixa2ItemSchema: mongoose.Schema<ICaixa2Item, mongoose.Model<ICaixa2Item, any, any, any, any, any, ICaixa2Item>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ICaixa2Item, mongoose.Document<unknown, {}, ICaixa2Item, {
|
|
9
|
+
id: string;
|
|
10
|
+
}, mongoose.DefaultSchemaOptions> & Omit<ICaixa2Item & Required<{
|
|
11
|
+
_id: mongoose.Types.ObjectId;
|
|
12
|
+
}> & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}, "id"> & {
|
|
15
|
+
id: string;
|
|
16
|
+
}, {
|
|
17
|
+
_id?: mongoose.SchemaDefinitionProperty<mongoose.Types.ObjectId, ICaixa2Item, mongoose.Document<unknown, {}, ICaixa2Item, {
|
|
18
|
+
id: string;
|
|
19
|
+
}, mongoose.DefaultSchemaOptions> & Omit<ICaixa2Item & Required<{
|
|
20
|
+
_id: mongoose.Types.ObjectId;
|
|
21
|
+
}> & {
|
|
22
|
+
__v: number;
|
|
23
|
+
}, "id"> & {
|
|
24
|
+
id: string;
|
|
25
|
+
}> | undefined;
|
|
26
|
+
nome?: mongoose.SchemaDefinitionProperty<string, ICaixa2Item, mongoose.Document<unknown, {}, ICaixa2Item, {
|
|
27
|
+
id: string;
|
|
28
|
+
}, mongoose.DefaultSchemaOptions> & Omit<ICaixa2Item & Required<{
|
|
29
|
+
_id: mongoose.Types.ObjectId;
|
|
30
|
+
}> & {
|
|
31
|
+
__v: number;
|
|
32
|
+
}, "id"> & {
|
|
33
|
+
id: string;
|
|
34
|
+
}> | undefined;
|
|
35
|
+
emoji?: mongoose.SchemaDefinitionProperty<string, ICaixa2Item, mongoose.Document<unknown, {}, ICaixa2Item, {
|
|
36
|
+
id: string;
|
|
37
|
+
}, mongoose.DefaultSchemaOptions> & Omit<ICaixa2Item & Required<{
|
|
38
|
+
_id: mongoose.Types.ObjectId;
|
|
39
|
+
}> & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}, "id"> & {
|
|
42
|
+
id: string;
|
|
43
|
+
}> | undefined;
|
|
44
|
+
minAdv?: mongoose.SchemaDefinitionProperty<number, ICaixa2Item, mongoose.Document<unknown, {}, ICaixa2Item, {
|
|
45
|
+
id: string;
|
|
46
|
+
}, mongoose.DefaultSchemaOptions> & Omit<ICaixa2Item & Required<{
|
|
47
|
+
_id: mongoose.Types.ObjectId;
|
|
48
|
+
}> & {
|
|
49
|
+
__v: number;
|
|
50
|
+
}, "id"> & {
|
|
51
|
+
id: string;
|
|
52
|
+
}> | undefined;
|
|
53
|
+
maxAdv?: mongoose.SchemaDefinitionProperty<number, ICaixa2Item, mongoose.Document<unknown, {}, ICaixa2Item, {
|
|
54
|
+
id: string;
|
|
55
|
+
}, mongoose.DefaultSchemaOptions> & Omit<ICaixa2Item & Required<{
|
|
56
|
+
_id: mongoose.Types.ObjectId;
|
|
57
|
+
}> & {
|
|
58
|
+
__v: number;
|
|
59
|
+
}, "id"> & {
|
|
60
|
+
id: string;
|
|
61
|
+
}> | undefined;
|
|
62
|
+
}, ICaixa2Item>;
|
|
8
63
|
export declare const Caixa2ItemModel: mongoose.Model<ICaixa2Item, {}, {}, {}, mongoose.Document<unknown, {}, ICaixa2Item, {}, mongoose.DefaultSchemaOptions> & ICaixa2Item & Required<{
|
|
9
64
|
_id: mongoose.Types.ObjectId;
|
|
10
65
|
}> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import mongoose, { Schema } from "mongoose";
|
|
2
|
-
const Caixa2ItemSchema = new Schema({
|
|
2
|
+
export const Caixa2ItemSchema = new Schema({
|
|
3
3
|
nome: { type: String, required: true, unique: true },
|
|
4
4
|
emoji: { type: String, required: true },
|
|
5
5
|
minAdv: { type: Number, required: true },
|
|
@@ -4,6 +4,34 @@ export interface IKeyValue {
|
|
|
4
4
|
key: string;
|
|
5
5
|
value: unknown;
|
|
6
6
|
}
|
|
7
|
+
export declare const KeyValueSchema: mongoose.Schema<IKeyValue, mongoose.Model<IKeyValue, any, any, any, any, any, IKeyValue>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IKeyValue, mongoose.Document<unknown, {}, IKeyValue, {
|
|
8
|
+
id: string;
|
|
9
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IKeyValue & {
|
|
10
|
+
_id: mongoose.Types.ObjectId;
|
|
11
|
+
} & {
|
|
12
|
+
__v: number;
|
|
13
|
+
}, "id"> & {
|
|
14
|
+
id: string;
|
|
15
|
+
}, {
|
|
16
|
+
key?: mongoose.SchemaDefinitionProperty<string, IKeyValue, mongoose.Document<unknown, {}, IKeyValue, {
|
|
17
|
+
id: string;
|
|
18
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IKeyValue & {
|
|
19
|
+
_id: mongoose.Types.ObjectId;
|
|
20
|
+
} & {
|
|
21
|
+
__v: number;
|
|
22
|
+
}, "id"> & {
|
|
23
|
+
id: string;
|
|
24
|
+
}> | undefined;
|
|
25
|
+
value?: mongoose.SchemaDefinitionProperty<unknown, IKeyValue, mongoose.Document<unknown, {}, IKeyValue, {
|
|
26
|
+
id: string;
|
|
27
|
+
}, mongoose.DefaultSchemaOptions> & Omit<IKeyValue & {
|
|
28
|
+
_id: mongoose.Types.ObjectId;
|
|
29
|
+
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}, "id"> & {
|
|
32
|
+
id: string;
|
|
33
|
+
}> | undefined;
|
|
34
|
+
}, IKeyValue>;
|
|
7
35
|
export declare const KeyValueModel: mongoose.Model<IKeyValue, {}, {}, {}, mongoose.Document<unknown, {}, IKeyValue, {}, mongoose.DefaultSchemaOptions> & IKeyValue & {
|
|
8
36
|
_id: mongoose.Types.ObjectId;
|
|
9
37
|
} & {
|
package/build/models/KeyValue.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
1
2
|
export interface IMensagemRecrutamento {
|
|
2
3
|
/** Chave fixa do documento (singleton) */
|
|
3
4
|
_id: string;
|
|
@@ -6,6 +7,61 @@ export interface IMensagemRecrutamento {
|
|
|
6
7
|
mensagemId: string;
|
|
7
8
|
atualizadoEm: Date;
|
|
8
9
|
}
|
|
10
|
+
export declare const MensagemRecrutamentoSchema: Schema<IMensagemRecrutamento, import("mongoose").Model<IMensagemRecrutamento, any, any, any, any, any, IMensagemRecrutamento>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IMensagemRecrutamento, import("mongoose").Document<unknown, {}, IMensagemRecrutamento, {
|
|
11
|
+
id: string;
|
|
12
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<IMensagemRecrutamento & Required<{
|
|
13
|
+
_id: string;
|
|
14
|
+
}> & {
|
|
15
|
+
__v: number;
|
|
16
|
+
}, "id"> & {
|
|
17
|
+
id: string;
|
|
18
|
+
}, {
|
|
19
|
+
_id?: import("mongoose").SchemaDefinitionProperty<string, IMensagemRecrutamento, import("mongoose").Document<unknown, {}, IMensagemRecrutamento, {
|
|
20
|
+
id: string;
|
|
21
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<IMensagemRecrutamento & Required<{
|
|
22
|
+
_id: string;
|
|
23
|
+
}> & {
|
|
24
|
+
__v: number;
|
|
25
|
+
}, "id"> & {
|
|
26
|
+
id: string;
|
|
27
|
+
}> | undefined;
|
|
28
|
+
conteudo?: import("mongoose").SchemaDefinitionProperty<string, IMensagemRecrutamento, import("mongoose").Document<unknown, {}, IMensagemRecrutamento, {
|
|
29
|
+
id: string;
|
|
30
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<IMensagemRecrutamento & Required<{
|
|
31
|
+
_id: string;
|
|
32
|
+
}> & {
|
|
33
|
+
__v: number;
|
|
34
|
+
}, "id"> & {
|
|
35
|
+
id: string;
|
|
36
|
+
}> | undefined;
|
|
37
|
+
autorId?: import("mongoose").SchemaDefinitionProperty<string, IMensagemRecrutamento, import("mongoose").Document<unknown, {}, IMensagemRecrutamento, {
|
|
38
|
+
id: string;
|
|
39
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<IMensagemRecrutamento & Required<{
|
|
40
|
+
_id: string;
|
|
41
|
+
}> & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}, "id"> & {
|
|
44
|
+
id: string;
|
|
45
|
+
}> | undefined;
|
|
46
|
+
mensagemId?: import("mongoose").SchemaDefinitionProperty<string, IMensagemRecrutamento, import("mongoose").Document<unknown, {}, IMensagemRecrutamento, {
|
|
47
|
+
id: string;
|
|
48
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<IMensagemRecrutamento & Required<{
|
|
49
|
+
_id: string;
|
|
50
|
+
}> & {
|
|
51
|
+
__v: number;
|
|
52
|
+
}, "id"> & {
|
|
53
|
+
id: string;
|
|
54
|
+
}> | undefined;
|
|
55
|
+
atualizadoEm?: import("mongoose").SchemaDefinitionProperty<Date, IMensagemRecrutamento, import("mongoose").Document<unknown, {}, IMensagemRecrutamento, {
|
|
56
|
+
id: string;
|
|
57
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<IMensagemRecrutamento & Required<{
|
|
58
|
+
_id: string;
|
|
59
|
+
}> & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}, "id"> & {
|
|
62
|
+
id: string;
|
|
63
|
+
}> | undefined;
|
|
64
|
+
}, IMensagemRecrutamento>;
|
|
9
65
|
export declare const MensagemRecrutamentoModel: import("mongoose").Model<IMensagemRecrutamento, {}, {}, {}, import("mongoose").Document<unknown, {}, IMensagemRecrutamento, {}, import("mongoose").DefaultSchemaOptions> & IMensagemRecrutamento & Required<{
|
|
10
66
|
_id: string;
|
|
11
67
|
}> & {
|
package/build/models/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AcaoMarcadaModel } from "./AcaoMarcada.js";
|
|
1
|
+
export { AcaoMarcadaModel, AcaoMarcadaSchema } from "./AcaoMarcada.js";
|
|
2
2
|
export type { IAcaoMarcada } from "./AcaoMarcada.js";
|
|
3
|
-
export { AcoesConfigModel } from "./AcoesConfig.js";
|
|
3
|
+
export { AcoesConfigModel, AcoesConfigSchema } from "./AcoesConfig.js";
|
|
4
4
|
export type { IAcoesConfig } from "./AcoesConfig.js";
|
|
5
5
|
export { AdvertenciaModel } from "./Advertencia.js";
|
|
6
6
|
export type { IAdvertencia, TipoAdvertencia } from "./Advertencia.js";
|
|
@@ -8,11 +8,11 @@ export { AntiGrabberConfigModel } from "./AntiGrabberConfig.js";
|
|
|
8
8
|
export type { IAntiGrabberConfig } from "./AntiGrabberConfig.js";
|
|
9
9
|
export { BindsRoupaConfigModel } from "./BindsRoupaConfig.js";
|
|
10
10
|
export type { IBindsRoupaConfig } from "./BindsRoupaConfig.js";
|
|
11
|
-
export { BlacklistModel } from "./Blacklist.js";
|
|
11
|
+
export { BlacklistModel, BlacklistSchema } from "./Blacklist.js";
|
|
12
12
|
export type { IBlacklist } from "./Blacklist.js";
|
|
13
13
|
export { BotConfigModel } from "./BotConfig.js";
|
|
14
14
|
export type { CargoHierarchyConfigEntry, IBotConfig } from "./BotConfig.js";
|
|
15
|
-
export { Caixa2ItemModel } from "./Caixa2Item.js";
|
|
15
|
+
export { Caixa2ItemModel, Caixa2ItemSchema } from "./Caixa2Item.js";
|
|
16
16
|
export type { ICaixa2Item } from "./Caixa2Item.js";
|
|
17
17
|
export { CanalConfigModel } from "./CanalConfig.js";
|
|
18
18
|
export type { ICanalConfig } from "./CanalConfig.js";
|
|
@@ -28,7 +28,7 @@ export { FeatureTogglesConfigModel, FeatureTogglesConfigSchema } from "./Feature
|
|
|
28
28
|
export type { IFeatureTogglesConfig } from "./FeatureTogglesConfig.js";
|
|
29
29
|
export { MembroCadastroModel } from "./MembroCadastro.js";
|
|
30
30
|
export type { IMembroCadastro } from "./MembroCadastro.js";
|
|
31
|
-
export { MensagemRecrutamentoModel } from "./MensagemRecrutamento.js";
|
|
31
|
+
export { MensagemRecrutamentoModel, MensagemRecrutamentoSchema } from "./MensagemRecrutamento.js";
|
|
32
32
|
export type { IMensagemRecrutamento } from "./MensagemRecrutamento.js";
|
|
33
33
|
export { MensagemRotacaoModel } from "./MensagemRotacao.js";
|
|
34
34
|
export type { IMensagemRotacao } from "./MensagemRotacao.js";
|
|
@@ -50,7 +50,7 @@ export { VendaModel } from "./Venda.js";
|
|
|
50
50
|
export type { IVenda } from "./Venda.js";
|
|
51
51
|
export { VendaConfigModel } from "./VendaConfig.js";
|
|
52
52
|
export type { IVendaConfig } from "./VendaConfig.js";
|
|
53
|
-
export { KeyValueModel } from "./KeyValue.js";
|
|
53
|
+
export { KeyValueModel, KeyValueSchema } from "./KeyValue.js";
|
|
54
54
|
export type { IKeyValue } from "./KeyValue.js";
|
|
55
55
|
export { HistoryModel } from "./History.js";
|
|
56
56
|
export type { IHistory } from "./History.js";
|
package/build/models/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { AcaoMarcadaModel } from "./AcaoMarcada.js";
|
|
2
|
-
export { AcoesConfigModel } from "./AcoesConfig.js";
|
|
1
|
+
export { AcaoMarcadaModel, AcaoMarcadaSchema } from "./AcaoMarcada.js";
|
|
2
|
+
export { AcoesConfigModel, AcoesConfigSchema } from "./AcoesConfig.js";
|
|
3
3
|
export { AdvertenciaModel } from "./Advertencia.js";
|
|
4
4
|
export { AntiGrabberConfigModel } from "./AntiGrabberConfig.js";
|
|
5
5
|
export { BindsRoupaConfigModel } from "./BindsRoupaConfig.js";
|
|
6
|
-
export { BlacklistModel } from "./Blacklist.js";
|
|
6
|
+
export { BlacklistModel, BlacklistSchema } from "./Blacklist.js";
|
|
7
7
|
export { BotConfigModel } from "./BotConfig.js";
|
|
8
|
-
export { Caixa2ItemModel } from "./Caixa2Item.js";
|
|
8
|
+
export { Caixa2ItemModel, Caixa2ItemSchema } from "./Caixa2Item.js";
|
|
9
9
|
export { CanalConfigModel } from "./CanalConfig.js";
|
|
10
10
|
export { CargoConfigModel } from "./CargoConfig.js";
|
|
11
11
|
export { CraftConfigModel } from "./CraftConfig.js";
|
|
@@ -13,7 +13,7 @@ export { FarmModel } from "./Farm.js";
|
|
|
13
13
|
export { FarmValidacaoStateModel } from "./FarmValidacaoState.js";
|
|
14
14
|
export { FeatureTogglesConfigModel, FeatureTogglesConfigSchema } from "./FeatureTogglesConfig.js";
|
|
15
15
|
export { MembroCadastroModel } from "./MembroCadastro.js";
|
|
16
|
-
export { MensagemRecrutamentoModel } from "./MensagemRecrutamento.js";
|
|
16
|
+
export { MensagemRecrutamentoModel, MensagemRecrutamentoSchema } from "./MensagemRecrutamento.js";
|
|
17
17
|
export { MensagemRotacaoModel } from "./MensagemRotacao.js";
|
|
18
18
|
export { ServidorModel, ServidorSchema } from "./Servidor.js";
|
|
19
19
|
export { MarcarAcaoGuildConfigModel, MarcarAcaoGuildConfigSchema } from "./MarcarAcaoGuildConfig.js";
|
|
@@ -24,5 +24,5 @@ export { SolicitacaoUpModel } from "./SolicitacaoUp.js";
|
|
|
24
24
|
export { UpRegistroModel } from "./UpRegistro.js";
|
|
25
25
|
export { VendaModel } from "./Venda.js";
|
|
26
26
|
export { VendaConfigModel } from "./VendaConfig.js";
|
|
27
|
-
export { KeyValueModel } from "./KeyValue.js";
|
|
27
|
+
export { KeyValueModel, KeyValueSchema } from "./KeyValue.js";
|
|
28
28
|
export { HistoryModel } from "./History.js";
|