@grapadigital/shared-schemas 1.0.241 → 1.1.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/dist/index.d.ts +42 -42
- package/dist/schemas/action.schema.d.ts +13 -38
- package/dist/schemas/action.schema.js +81 -64
- package/dist/schemas/assignment.schema.d.ts +6 -31
- package/dist/schemas/assignment.schema.js +44 -44
- package/dist/schemas/benchmark.schema.d.ts +5 -30
- package/dist/schemas/benchmark.schema.js +11 -6
- package/dist/schemas/campaign.schema.d.ts +4 -29
- package/dist/schemas/campaign.schema.js +4 -4
- package/dist/schemas/client.schema.d.ts +30 -91
- package/dist/schemas/client.schema.js +73 -71
- package/dist/schemas/comment.schema.d.ts +9 -34
- package/dist/schemas/comment.schema.js +42 -37
- package/dist/schemas/commission.schema.d.ts +7 -32
- package/dist/schemas/commission.schema.js +10 -10
- package/dist/schemas/content-capture-process.schema.d.ts +12 -37
- package/dist/schemas/content-capture-process.schema.js +24 -17
- package/dist/schemas/content-draft.schema.d.ts +4 -29
- package/dist/schemas/content-draft.schema.js +5 -5
- package/dist/schemas/content.schema.d.ts +20 -45
- package/dist/schemas/content.schema.js +84 -74
- package/dist/schemas/contract.schema.d.ts +5 -30
- package/dist/schemas/contract.schema.js +5 -5
- package/dist/schemas/creative.schema.d.ts +11 -36
- package/dist/schemas/creative.schema.js +22 -31
- package/dist/schemas/export-comments-job.schema.d.ts +4 -29
- package/dist/schemas/export-comments-job.schema.js +6 -6
- package/dist/schemas/group.schema.d.ts +2 -27
- package/dist/schemas/group.schema.js +5 -5
- package/dist/schemas/influencer.schema.d.ts +12 -37
- package/dist/schemas/influencer.schema.js +16 -18
- package/dist/schemas/invoice.schema.d.ts +6 -31
- package/dist/schemas/invoice.schema.js +42 -32
- package/dist/schemas/job.schema.d.ts +4 -29
- package/dist/schemas/job.schema.js +14 -14
- package/dist/schemas/lead.schema.d.ts +15 -40
- package/dist/schemas/lead.schema.js +67 -64
- package/dist/schemas/log.schema.d.ts +3 -28
- package/dist/schemas/log.schema.js +24 -24
- package/dist/schemas/note.schema.d.ts +3 -28
- package/dist/schemas/note.schema.js +9 -9
- package/dist/schemas/notifications.schema.d.ts +3 -28
- package/dist/schemas/notifications.schema.js +8 -8
- package/dist/schemas/organization.schema.d.ts +2 -27
- package/dist/schemas/organization.schema.js +4 -4
- package/dist/schemas/party.schema.d.ts +6 -31
- package/dist/schemas/party.schema.js +11 -11
- package/dist/schemas/payment.schema.d.ts +20 -45
- package/dist/schemas/payment.schema.js +63 -54
- package/dist/schemas/profile.schema.d.ts +5 -30
- package/dist/schemas/profile.schema.js +6 -6
- package/dist/schemas/project.schema.d.ts +9 -34
- package/dist/schemas/project.schema.js +13 -13
- package/dist/schemas/prospect.schema.d.ts +6 -31
- package/dist/schemas/prospect.schema.js +9 -9
- package/dist/schemas/recruitment.schema.d.ts +19 -44
- package/dist/schemas/recruitment.schema.js +36 -36
- package/dist/schemas/responsible.schema.d.ts +1 -27
- package/dist/schemas/responsible.schema.js +6 -6
- package/dist/schemas/sale.schema.d.ts +19 -44
- package/dist/schemas/sale.schema.js +43 -51
- package/dist/schemas/script.schema.d.ts +11 -36
- package/dist/schemas/script.schema.js +21 -30
- package/dist/schemas/snapshot.schema.d.ts +5 -30
- package/dist/schemas/snapshot.schema.js +6 -6
- package/dist/schemas/store-visit.schema.d.ts +3 -28
- package/dist/schemas/store-visit.schema.js +21 -17
- package/dist/schemas/store.schema.d.ts +5 -30
- package/dist/schemas/store.schema.js +8 -8
- package/dist/schemas/supplier.schema.d.ts +4 -29
- package/dist/schemas/supplier.schema.js +3 -3
- package/dist/schemas/tag.schema.d.ts +2 -27
- package/dist/schemas/tag.schema.js +5 -5
- package/dist/schemas/task.schema.d.ts +11 -36
- package/dist/schemas/task.schema.js +67 -67
- package/dist/schemas/token.schema.d.ts +3 -28
- package/dist/schemas/token.schema.js +3 -3
- package/dist/schemas/trigger.schema.d.ts +3 -28
- package/dist/schemas/trigger.schema.js +5 -5
- package/dist/schemas/user.schema.d.ts +3 -28
- package/dist/schemas/user.schema.js +7 -7
- package/dist/schemas/webhook.schema.d.ts +6 -31
- package/dist/schemas/webhook.schema.js +10 -10
- package/dist/utils/merge-metrics-breakdown.util.d.ts +1 -1
- package/dist/utils/merge-metrics-breakdown.util.js +7 -2
- package/dist/utils/normalize-content-link.util.js +7 -7
- package/package.json +29 -16
- package/.eslintrc.json +0 -28
- package/.prettierrc +0 -4
- package/dist/schemas/profile-followers-snapshot.schema.d.ts +0 -67
- package/dist/schemas/profile-followers-snapshot.schema.js +0 -65
- package/dist/schemas/schedule.schema.d.ts +0 -73
- package/dist/schemas/schedule.schema.js +0 -116
- package/dist/utils/cost-per-impact.util.d.ts +0 -37
- package/dist/utils/cost-per-impact.util.js +0 -72
- package/dist/utils/influencer-contract.util.d.ts +0 -32
- package/dist/utils/influencer-contract.util.js +0 -77
- package/docs/code-review.md +0 -27
- package/docs/constitution.md +0 -75
- package/docs/specs/GD-692.md +0 -112
- package/docs/specs/GD-761.md +0 -94
- package/index.d.ts +0 -3
- package/src/index.ts +0 -42
- package/src/schemas/action.schema.ts +0 -328
- package/src/schemas/assignment.schema.ts +0 -154
- package/src/schemas/benchmark.schema.ts +0 -39
- package/src/schemas/campaign.schema.ts +0 -38
- package/src/schemas/client.schema.ts +0 -319
- package/src/schemas/comment.schema.ts +0 -216
- package/src/schemas/commission.schema.ts +0 -108
- package/src/schemas/content-capture-process.schema.ts +0 -195
- package/src/schemas/content-draft.schema.ts +0 -49
- package/src/schemas/content.schema.ts +0 -688
- package/src/schemas/contract.schema.ts +0 -44
- package/src/schemas/creative.schema.ts +0 -256
- package/src/schemas/export-comments-job.schema.ts +0 -59
- package/src/schemas/group.schema.ts +0 -23
- package/src/schemas/influencer.schema.ts +0 -184
- package/src/schemas/invoice.schema.ts +0 -164
- package/src/schemas/job.schema.ts +0 -111
- package/src/schemas/lead.schema.ts +0 -372
- package/src/schemas/log.schema.ts +0 -91
- package/src/schemas/note.schema.ts +0 -34
- package/src/schemas/notifications.schema.ts +0 -61
- package/src/schemas/organization.schema.ts +0 -29
- package/src/schemas/party.schema.ts +0 -65
- package/src/schemas/payment.schema.ts +0 -275
- package/src/schemas/profile.schema.ts +0 -77
- package/src/schemas/project.schema.ts +0 -116
- package/src/schemas/prospect.schema.ts +0 -62
- package/src/schemas/recruitment.schema.ts +0 -277
- package/src/schemas/responsible.schema.ts +0 -27
- package/src/schemas/sale.schema.ts +0 -297
- package/src/schemas/script.schema.ts +0 -235
- package/src/schemas/snapshot.schema.ts +0 -55
- package/src/schemas/store-visit.schema.ts +0 -68
- package/src/schemas/store.schema.ts +0 -52
- package/src/schemas/supplier.schema.ts +0 -12
- package/src/schemas/tag.schema.ts +0 -26
- package/src/schemas/task.schema.ts +0 -205
- package/src/schemas/token.schema.ts +0 -42
- package/src/schemas/trigger.schema.ts +0 -48
- package/src/schemas/user.schema.ts +0 -59
- package/src/schemas/webhook.schema.ts +0 -81
- package/src/utils/merge-metrics-breakdown.util.ts +0 -51
- package/src/utils/normalize-content-link.util.ts +0 -31
- package/tsconfig.build.json +0 -5
- package/tsconfig.json +0 -29
|
@@ -14,49 +14,53 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
// Lead = briefing de campanha preenchido pelo cliente numa página pública (GD-616).
|
|
16
16
|
// O acesso público é sempre pelo accessToken, nunca pelo _id.
|
|
17
|
-
exports.LEAD_STATUS_VALUES = [
|
|
18
|
-
exports.LEAD_PRESENTATION_FORMAT_VALUES = [
|
|
17
|
+
exports.LEAD_STATUS_VALUES = ["draft", "submitted"];
|
|
18
|
+
exports.LEAD_PRESENTATION_FORMAT_VALUES = ["online", "in_person", "email_only"];
|
|
19
19
|
exports.LEAD_PAYMENT_TERM_VALUES = [30, 60, 90, 120];
|
|
20
|
-
exports.LEAD_BILLING_MODEL_VALUES = [
|
|
21
|
-
'transfer',
|
|
22
|
-
'double_taxation',
|
|
23
|
-
'direct_payment',
|
|
24
|
-
];
|
|
20
|
+
exports.LEAD_BILLING_MODEL_VALUES = ["transfer", "double_taxation", "direct_payment"];
|
|
25
21
|
exports.LEAD_DELIVERABLE_VALUES = [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
"content_strategy",
|
|
23
|
+
"ppt_presentation",
|
|
24
|
+
"curation_sheet",
|
|
25
|
+
"production_sheet",
|
|
30
26
|
];
|
|
31
|
-
exports.LEAD_GOAL_VALUES = [
|
|
32
|
-
exports.LEAD_CHANNEL_VALUES = [
|
|
27
|
+
exports.LEAD_GOAL_VALUES = ["awareness", "consideration", "intent"];
|
|
28
|
+
exports.LEAD_CHANNEL_VALUES = ["online", "offline"];
|
|
33
29
|
exports.LEAD_RIGHT_VALUES = [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
"influencer_collab",
|
|
31
|
+
"brand_collab",
|
|
32
|
+
"client_boost",
|
|
33
|
+
"influencer_boost",
|
|
34
|
+
"segment_exclusivity",
|
|
35
|
+
"image_rights",
|
|
36
|
+
"dark_post",
|
|
37
|
+
"offline",
|
|
38
|
+
];
|
|
39
|
+
exports.LEAD_FOLLOWER_TIER_VALUES = [
|
|
40
|
+
"heroes",
|
|
41
|
+
"macros",
|
|
42
|
+
"medios",
|
|
43
|
+
"micros",
|
|
44
|
+
"nanos",
|
|
45
|
+
"nda",
|
|
42
46
|
];
|
|
43
|
-
exports.LEAD_FOLLOWER_TIER_VALUES = ['heroes', 'macros', 'medios', 'micros', 'nanos', 'nda'];
|
|
44
47
|
exports.LEAD_SECTION_KEYS = [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
"general",
|
|
49
|
+
"confidentiality",
|
|
50
|
+
"budget",
|
|
51
|
+
"competition",
|
|
52
|
+
"deliverables",
|
|
53
|
+
"strategicContext",
|
|
54
|
+
"objectives",
|
|
55
|
+
"deliveryScope",
|
|
56
|
+
"audience",
|
|
57
|
+
"curation",
|
|
58
|
+
"logistics",
|
|
59
|
+
"contentGuidelines",
|
|
57
60
|
];
|
|
58
61
|
let LeadGeneral = class LeadGeneral {
|
|
59
62
|
};
|
|
63
|
+
exports.LeadGeneral = LeadGeneral;
|
|
60
64
|
__decorate([
|
|
61
65
|
(0, mongoose_1.Prop)({ trim: true }),
|
|
62
66
|
__metadata("design:type", String)
|
|
@@ -101,13 +105,13 @@ __decorate([
|
|
|
101
105
|
(0, mongoose_1.Prop)({ trim: true, lowercase: true }),
|
|
102
106
|
__metadata("design:type", String)
|
|
103
107
|
], LeadGeneral.prototype, "contactEmail", void 0);
|
|
104
|
-
LeadGeneral = __decorate([
|
|
108
|
+
exports.LeadGeneral = LeadGeneral = __decorate([
|
|
105
109
|
(0, mongoose_1.Schema)({ _id: false })
|
|
106
110
|
], LeadGeneral);
|
|
107
|
-
exports.LeadGeneral = LeadGeneral;
|
|
108
111
|
exports.LeadGeneralSchema = mongoose_1.SchemaFactory.createForClass(LeadGeneral);
|
|
109
112
|
let LeadConfidentiality = class LeadConfidentiality {
|
|
110
113
|
};
|
|
114
|
+
exports.LeadConfidentiality = LeadConfidentiality;
|
|
111
115
|
__decorate([
|
|
112
116
|
(0, mongoose_1.Prop)(),
|
|
113
117
|
__metadata("design:type", Boolean)
|
|
@@ -116,13 +120,13 @@ __decorate([
|
|
|
116
120
|
(0, mongoose_1.Prop)(),
|
|
117
121
|
__metadata("design:type", String)
|
|
118
122
|
], LeadConfidentiality.prototype, "restrictionDetails", void 0);
|
|
119
|
-
LeadConfidentiality = __decorate([
|
|
123
|
+
exports.LeadConfidentiality = LeadConfidentiality = __decorate([
|
|
120
124
|
(0, mongoose_1.Schema)({ _id: false })
|
|
121
125
|
], LeadConfidentiality);
|
|
122
|
-
exports.LeadConfidentiality = LeadConfidentiality;
|
|
123
126
|
exports.LeadConfidentialitySchema = mongoose_1.SchemaFactory.createForClass(LeadConfidentiality);
|
|
124
127
|
let LeadBudget = class LeadBudget {
|
|
125
128
|
};
|
|
129
|
+
exports.LeadBudget = LeadBudget;
|
|
126
130
|
__decorate([
|
|
127
131
|
(0, mongoose_1.Prop)(),
|
|
128
132
|
__metadata("design:type", Number)
|
|
@@ -143,13 +147,13 @@ __decorate([
|
|
|
143
147
|
(0, mongoose_1.Prop)(),
|
|
144
148
|
__metadata("design:type", Number)
|
|
145
149
|
], LeadBudget.prototype, "campaignDurationMonths", void 0);
|
|
146
|
-
LeadBudget = __decorate([
|
|
150
|
+
exports.LeadBudget = LeadBudget = __decorate([
|
|
147
151
|
(0, mongoose_1.Schema)({ _id: false })
|
|
148
152
|
], LeadBudget);
|
|
149
|
-
exports.LeadBudget = LeadBudget;
|
|
150
153
|
exports.LeadBudgetSchema = mongoose_1.SchemaFactory.createForClass(LeadBudget);
|
|
151
154
|
let LeadCompetition = class LeadCompetition {
|
|
152
155
|
};
|
|
156
|
+
exports.LeadCompetition = LeadCompetition;
|
|
153
157
|
__decorate([
|
|
154
158
|
(0, mongoose_1.Prop)(),
|
|
155
159
|
__metadata("design:type", Boolean)
|
|
@@ -158,24 +162,24 @@ __decorate([
|
|
|
158
162
|
(0, mongoose_1.Prop)(),
|
|
159
163
|
__metadata("design:type", Boolean)
|
|
160
164
|
], LeadCompetition.prototype, "involveAreaLeaders", void 0);
|
|
161
|
-
LeadCompetition = __decorate([
|
|
165
|
+
exports.LeadCompetition = LeadCompetition = __decorate([
|
|
162
166
|
(0, mongoose_1.Schema)({ _id: false })
|
|
163
167
|
], LeadCompetition);
|
|
164
|
-
exports.LeadCompetition = LeadCompetition;
|
|
165
168
|
exports.LeadCompetitionSchema = mongoose_1.SchemaFactory.createForClass(LeadCompetition);
|
|
166
169
|
let LeadDeliverables = class LeadDeliverables {
|
|
167
170
|
};
|
|
171
|
+
exports.LeadDeliverables = LeadDeliverables;
|
|
168
172
|
__decorate([
|
|
169
173
|
(0, mongoose_1.Prop)({ type: [String], enum: exports.LEAD_DELIVERABLE_VALUES, default: undefined }),
|
|
170
174
|
__metadata("design:type", Array)
|
|
171
175
|
], LeadDeliverables.prototype, "types", void 0);
|
|
172
|
-
LeadDeliverables = __decorate([
|
|
176
|
+
exports.LeadDeliverables = LeadDeliverables = __decorate([
|
|
173
177
|
(0, mongoose_1.Schema)({ _id: false })
|
|
174
178
|
], LeadDeliverables);
|
|
175
|
-
exports.LeadDeliverables = LeadDeliverables;
|
|
176
179
|
exports.LeadDeliverablesSchema = mongoose_1.SchemaFactory.createForClass(LeadDeliverables);
|
|
177
180
|
let LeadStrategicContext = class LeadStrategicContext {
|
|
178
181
|
};
|
|
182
|
+
exports.LeadStrategicContext = LeadStrategicContext;
|
|
179
183
|
__decorate([
|
|
180
184
|
(0, mongoose_1.Prop)(),
|
|
181
185
|
__metadata("design:type", String)
|
|
@@ -208,13 +212,13 @@ __decorate([
|
|
|
208
212
|
(0, mongoose_1.Prop)(),
|
|
209
213
|
__metadata("design:type", String)
|
|
210
214
|
], LeadStrategicContext.prototype, "tone", void 0);
|
|
211
|
-
LeadStrategicContext = __decorate([
|
|
215
|
+
exports.LeadStrategicContext = LeadStrategicContext = __decorate([
|
|
212
216
|
(0, mongoose_1.Schema)({ _id: false })
|
|
213
217
|
], LeadStrategicContext);
|
|
214
|
-
exports.LeadStrategicContext = LeadStrategicContext;
|
|
215
218
|
exports.LeadStrategicContextSchema = mongoose_1.SchemaFactory.createForClass(LeadStrategicContext);
|
|
216
219
|
let LeadObjectives = class LeadObjectives {
|
|
217
220
|
};
|
|
221
|
+
exports.LeadObjectives = LeadObjectives;
|
|
218
222
|
__decorate([
|
|
219
223
|
(0, mongoose_1.Prop)({ type: [String], enum: exports.LEAD_GOAL_VALUES, default: undefined }),
|
|
220
224
|
__metadata("design:type", Array)
|
|
@@ -223,13 +227,13 @@ __decorate([
|
|
|
223
227
|
(0, mongoose_1.Prop)({ type: String, enum: exports.LEAD_GOAL_VALUES }),
|
|
224
228
|
__metadata("design:type", String)
|
|
225
229
|
], LeadObjectives.prototype, "primaryGoal", void 0);
|
|
226
|
-
LeadObjectives = __decorate([
|
|
230
|
+
exports.LeadObjectives = LeadObjectives = __decorate([
|
|
227
231
|
(0, mongoose_1.Schema)({ _id: false })
|
|
228
232
|
], LeadObjectives);
|
|
229
|
-
exports.LeadObjectives = LeadObjectives;
|
|
230
233
|
exports.LeadObjectivesSchema = mongoose_1.SchemaFactory.createForClass(LeadObjectives);
|
|
231
234
|
let LeadDeliveryScope = class LeadDeliveryScope {
|
|
232
235
|
};
|
|
236
|
+
exports.LeadDeliveryScope = LeadDeliveryScope;
|
|
233
237
|
__decorate([
|
|
234
238
|
(0, mongoose_1.Prop)({ type: [String], enum: exports.LEAD_CHANNEL_VALUES, default: undefined }),
|
|
235
239
|
__metadata("design:type", Array)
|
|
@@ -258,13 +262,13 @@ __decorate([
|
|
|
258
262
|
(0, mongoose_1.Prop)(),
|
|
259
263
|
__metadata("design:type", String)
|
|
260
264
|
], LeadDeliveryScope.prototype, "offlineFormats", void 0);
|
|
261
|
-
LeadDeliveryScope = __decorate([
|
|
265
|
+
exports.LeadDeliveryScope = LeadDeliveryScope = __decorate([
|
|
262
266
|
(0, mongoose_1.Schema)({ _id: false })
|
|
263
267
|
], LeadDeliveryScope);
|
|
264
|
-
exports.LeadDeliveryScope = LeadDeliveryScope;
|
|
265
268
|
exports.LeadDeliveryScopeSchema = mongoose_1.SchemaFactory.createForClass(LeadDeliveryScope);
|
|
266
269
|
let LeadAudience = class LeadAudience {
|
|
267
270
|
};
|
|
271
|
+
exports.LeadAudience = LeadAudience;
|
|
268
272
|
__decorate([
|
|
269
273
|
(0, mongoose_1.Prop)(),
|
|
270
274
|
__metadata("design:type", String)
|
|
@@ -281,13 +285,13 @@ __decorate([
|
|
|
281
285
|
(0, mongoose_1.Prop)(),
|
|
282
286
|
__metadata("design:type", String)
|
|
283
287
|
], LeadAudience.prototype, "attitudinalProfile", void 0);
|
|
284
|
-
LeadAudience = __decorate([
|
|
288
|
+
exports.LeadAudience = LeadAudience = __decorate([
|
|
285
289
|
(0, mongoose_1.Schema)({ _id: false })
|
|
286
290
|
], LeadAudience);
|
|
287
|
-
exports.LeadAudience = LeadAudience;
|
|
288
291
|
exports.LeadAudienceSchema = mongoose_1.SchemaFactory.createForClass(LeadAudience);
|
|
289
292
|
let LeadCuration = class LeadCuration {
|
|
290
293
|
};
|
|
294
|
+
exports.LeadCuration = LeadCuration;
|
|
291
295
|
__decorate([
|
|
292
296
|
(0, mongoose_1.Prop)(),
|
|
293
297
|
__metadata("design:type", String)
|
|
@@ -324,13 +328,13 @@ __decorate([
|
|
|
324
328
|
(0, mongoose_1.Prop)(),
|
|
325
329
|
__metadata("design:type", String)
|
|
326
330
|
], LeadCuration.prototype, "requirements", void 0);
|
|
327
|
-
LeadCuration = __decorate([
|
|
331
|
+
exports.LeadCuration = LeadCuration = __decorate([
|
|
328
332
|
(0, mongoose_1.Schema)({ _id: false })
|
|
329
333
|
], LeadCuration);
|
|
330
|
-
exports.LeadCuration = LeadCuration;
|
|
331
334
|
exports.LeadCurationSchema = mongoose_1.SchemaFactory.createForClass(LeadCuration);
|
|
332
335
|
let LeadLogistics = class LeadLogistics {
|
|
333
336
|
};
|
|
337
|
+
exports.LeadLogistics = LeadLogistics;
|
|
334
338
|
__decorate([
|
|
335
339
|
(0, mongoose_1.Prop)(),
|
|
336
340
|
__metadata("design:type", String)
|
|
@@ -343,13 +347,13 @@ __decorate([
|
|
|
343
347
|
(0, mongoose_1.Prop)(),
|
|
344
348
|
__metadata("design:type", String)
|
|
345
349
|
], LeadLogistics.prototype, "otherLogistics", void 0);
|
|
346
|
-
LeadLogistics = __decorate([
|
|
350
|
+
exports.LeadLogistics = LeadLogistics = __decorate([
|
|
347
351
|
(0, mongoose_1.Schema)({ _id: false })
|
|
348
352
|
], LeadLogistics);
|
|
349
|
-
exports.LeadLogistics = LeadLogistics;
|
|
350
353
|
exports.LeadLogisticsSchema = mongoose_1.SchemaFactory.createForClass(LeadLogistics);
|
|
351
354
|
let LeadContentGuidelines = class LeadContentGuidelines {
|
|
352
355
|
};
|
|
356
|
+
exports.LeadContentGuidelines = LeadContentGuidelines;
|
|
353
357
|
__decorate([
|
|
354
358
|
(0, mongoose_1.Prop)(),
|
|
355
359
|
__metadata("design:type", String)
|
|
@@ -382,23 +386,23 @@ __decorate([
|
|
|
382
386
|
(0, mongoose_1.Prop)(),
|
|
383
387
|
__metadata("design:type", String)
|
|
384
388
|
], LeadContentGuidelines.prototype, "additionalDirections", void 0);
|
|
385
|
-
LeadContentGuidelines = __decorate([
|
|
389
|
+
exports.LeadContentGuidelines = LeadContentGuidelines = __decorate([
|
|
386
390
|
(0, mongoose_1.Schema)({ _id: false })
|
|
387
391
|
], LeadContentGuidelines);
|
|
388
|
-
exports.LeadContentGuidelines = LeadContentGuidelines;
|
|
389
392
|
exports.LeadContentGuidelinesSchema = mongoose_1.SchemaFactory.createForClass(LeadContentGuidelines);
|
|
390
393
|
let Lead = class Lead {
|
|
391
394
|
};
|
|
395
|
+
exports.Lead = Lead;
|
|
392
396
|
__decorate([
|
|
393
397
|
(0, mongoose_1.Prop)({ required: true, unique: true, select: false }),
|
|
394
398
|
__metadata("design:type", String)
|
|
395
399
|
], Lead.prototype, "accessToken", void 0);
|
|
396
400
|
__decorate([
|
|
397
|
-
(0, mongoose_1.Prop)({ type: String, enum: exports.LEAD_STATUS_VALUES, default:
|
|
401
|
+
(0, mongoose_1.Prop)({ type: String, enum: exports.LEAD_STATUS_VALUES, default: "draft", index: true }),
|
|
398
402
|
__metadata("design:type", String)
|
|
399
403
|
], Lead.prototype, "status", void 0);
|
|
400
404
|
__decorate([
|
|
401
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Types.ObjectId, ref:
|
|
405
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Types.ObjectId, ref: "Organization", required: true }),
|
|
402
406
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
403
407
|
], Lead.prototype, "organization", void 0);
|
|
404
408
|
__decorate([
|
|
@@ -461,9 +465,8 @@ __decorate([
|
|
|
461
465
|
(0, mongoose_1.Prop)({ type: exports.LeadContentGuidelinesSchema, default: {} }),
|
|
462
466
|
__metadata("design:type", LeadContentGuidelines)
|
|
463
467
|
], Lead.prototype, "contentGuidelines", void 0);
|
|
464
|
-
Lead = __decorate([
|
|
465
|
-
(0, mongoose_1.Schema)({ timestamps: true, collection:
|
|
468
|
+
exports.Lead = Lead = __decorate([
|
|
469
|
+
(0, mongoose_1.Schema)({ timestamps: true, collection: "leads" })
|
|
466
470
|
], Lead);
|
|
467
|
-
exports.Lead = Lead;
|
|
468
471
|
exports.LeadSchema = mongoose_1.SchemaFactory.createForClass(Lead);
|
|
469
|
-
exports.LeadModel = (0, mongoose_2.model)(
|
|
472
|
+
exports.LeadModel = (0, mongoose_2.model)("Lead", exports.LeadSchema);
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/session" />
|
|
19
|
-
/// <reference types="mongoose/types/types" />
|
|
20
|
-
/// <reference types="mongoose/types/utility" />
|
|
21
|
-
/// <reference types="mongoose/types/validation" />
|
|
22
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
-
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
27
2
|
export type LogDocument = HydratedDocument<Log>;
|
|
28
3
|
export declare const LOG_REFERENCE_VALUES: readonly ["action", "recruitment", "content", "contract", "sale", "invoice", "payment", "assignment", "commission", "hub-access"];
|
|
29
4
|
export type LogReference = (typeof LOG_REFERENCE_VALUES)[number];
|
|
@@ -60,7 +35,7 @@ export declare const LogSchema: MongooseSchema<Log, import("mongoose").Model<Log
|
|
|
60
35
|
_id: Types.ObjectId;
|
|
61
36
|
}> & {
|
|
62
37
|
__v: number;
|
|
63
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Log, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Log>, {}, import("mongoose").
|
|
38
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Log, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Log>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Log> & Required<{
|
|
64
39
|
_id: Types.ObjectId;
|
|
65
40
|
}> & {
|
|
66
41
|
__v: number;
|
|
@@ -73,7 +48,7 @@ export declare const LogModel: import("mongoose").Model<Log, {}, {}, {}, import(
|
|
|
73
48
|
_id: Types.ObjectId;
|
|
74
49
|
}> & {
|
|
75
50
|
__v: number;
|
|
76
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Log, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Log>, {}, import("mongoose").
|
|
51
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Log, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Log>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Log> & Required<{
|
|
77
52
|
_id: Types.ObjectId;
|
|
78
53
|
}> & {
|
|
79
54
|
__v: number;
|
|
@@ -14,24 +14,24 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const mongoose_2 = require("mongoose");
|
|
16
16
|
exports.LOG_REFERENCE_VALUES = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
"action",
|
|
18
|
+
"recruitment",
|
|
19
|
+
"content",
|
|
20
|
+
"contract",
|
|
21
|
+
"sale",
|
|
22
|
+
"invoice",
|
|
23
|
+
"payment",
|
|
24
|
+
"assignment",
|
|
25
|
+
"commission",
|
|
26
|
+
"hub-access",
|
|
27
27
|
];
|
|
28
28
|
exports.LOG_TYPE_VALUES = [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
"created",
|
|
30
|
+
"updated",
|
|
31
|
+
"deleted",
|
|
32
|
+
"email",
|
|
33
|
+
"client-selected",
|
|
34
|
+
"access-blocked",
|
|
35
35
|
];
|
|
36
36
|
let UpdatedBy = class UpdatedBy {
|
|
37
37
|
};
|
|
@@ -52,22 +52,23 @@ UpdatedBy = __decorate([
|
|
|
52
52
|
], UpdatedBy);
|
|
53
53
|
let LogTarget = class LogTarget {
|
|
54
54
|
};
|
|
55
|
+
exports.LogTarget = LogTarget;
|
|
55
56
|
__decorate([
|
|
56
|
-
(0, swagger_1.ApiProperty)({ example:
|
|
57
|
+
(0, swagger_1.ApiProperty)({ example: "FmWcCgBLTwOR2YIEZ5toRdoRpGC3" }),
|
|
57
58
|
(0, mongoose_1.Prop)({ required: true }),
|
|
58
59
|
__metadata("design:type", String)
|
|
59
60
|
], LogTarget.prototype, "uid", void 0);
|
|
60
61
|
__decorate([
|
|
61
|
-
(0, swagger_1.ApiProperty)({ example:
|
|
62
|
+
(0, swagger_1.ApiProperty)({ example: "pessoa@cliente.com.br" }),
|
|
62
63
|
(0, mongoose_1.Prop)({ required: true }),
|
|
63
64
|
__metadata("design:type", String)
|
|
64
65
|
], LogTarget.prototype, "email", void 0);
|
|
65
|
-
LogTarget = __decorate([
|
|
66
|
+
exports.LogTarget = LogTarget = __decorate([
|
|
66
67
|
(0, mongoose_1.Schema)({ _id: false })
|
|
67
68
|
], LogTarget);
|
|
68
|
-
exports.LogTarget = LogTarget;
|
|
69
69
|
let Log = class Log {
|
|
70
70
|
};
|
|
71
|
+
exports.Log = Log;
|
|
71
72
|
__decorate([
|
|
72
73
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
73
74
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
@@ -107,12 +108,11 @@ __decorate([
|
|
|
107
108
|
(0, mongoose_1.Prop)({ type: LogTarget, default: null }),
|
|
108
109
|
__metadata("design:type", Object)
|
|
109
110
|
], Log.prototype, "target", void 0);
|
|
110
|
-
Log = __decorate([
|
|
111
|
+
exports.Log = Log = __decorate([
|
|
111
112
|
(0, mongoose_1.Schema)()
|
|
112
113
|
], Log);
|
|
113
|
-
exports.Log = Log;
|
|
114
114
|
exports.LogSchema = mongoose_1.SchemaFactory.createForClass(Log);
|
|
115
115
|
exports.LogSchema.index({ referenceId: 1, reference: 1 });
|
|
116
116
|
exports.LogSchema.index({ reference: 1, updatedAt: -1 });
|
|
117
|
-
exports.LogSchema.index({ reference: 1,
|
|
118
|
-
exports.LogModel = (0, mongoose_2.model)(
|
|
117
|
+
exports.LogSchema.index({ reference: 1, "target.uid": 1, updatedAt: -1 });
|
|
118
|
+
exports.LogModel = (0, mongoose_2.model)("Log", exports.LogSchema);
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/session" />
|
|
19
|
-
/// <reference types="mongoose/types/types" />
|
|
20
|
-
/// <reference types="mongoose/types/utility" />
|
|
21
|
-
/// <reference types="mongoose/types/validation" />
|
|
22
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
-
import { Types } from 'mongoose';
|
|
1
|
+
import { Types } from "mongoose";
|
|
27
2
|
export declare class NoteMention {
|
|
28
3
|
userId: Types.ObjectId;
|
|
29
4
|
username: string;
|
|
@@ -32,7 +7,7 @@ export declare const NoteMentionSchema: import("mongoose").Schema<NoteMention, i
|
|
|
32
7
|
_id: Types.ObjectId;
|
|
33
8
|
} & {
|
|
34
9
|
__v: number;
|
|
35
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, NoteMention, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<NoteMention>, {}, import("mongoose").
|
|
10
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, NoteMention, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<NoteMention>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<NoteMention> & {
|
|
36
11
|
_id: Types.ObjectId;
|
|
37
12
|
} & {
|
|
38
13
|
__v: number;
|
|
@@ -47,7 +22,7 @@ export declare const NoteSchema: import("mongoose").Schema<Note, import("mongoos
|
|
|
47
22
|
_id: Types.ObjectId;
|
|
48
23
|
} & {
|
|
49
24
|
__v: number;
|
|
50
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Note, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Note>, {}, import("mongoose").
|
|
25
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Note, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Note>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Note> & {
|
|
51
26
|
_id: Types.ObjectId;
|
|
52
27
|
} & {
|
|
53
28
|
__v: number;
|
|
@@ -15,35 +15,36 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
15
15
|
const mongoose_2 = require("mongoose");
|
|
16
16
|
let NoteMention = class NoteMention {
|
|
17
17
|
};
|
|
18
|
+
exports.NoteMention = NoteMention;
|
|
18
19
|
__decorate([
|
|
19
|
-
(0, swagger_1.ApiProperty)({ example:
|
|
20
|
+
(0, swagger_1.ApiProperty)({ example: "65f1a2b3c4d5e6f7a8b9c0d2" }),
|
|
20
21
|
(0, mongoose_1.Prop)({ type: mongoose_2.Types.ObjectId, required: true }),
|
|
21
22
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
22
23
|
], NoteMention.prototype, "userId", void 0);
|
|
23
24
|
__decorate([
|
|
24
|
-
(0, swagger_1.ApiProperty)({ example:
|
|
25
|
+
(0, swagger_1.ApiProperty)({ example: "jose.junior" }),
|
|
25
26
|
(0, mongoose_1.Prop)({ required: true, trim: true }),
|
|
26
27
|
__metadata("design:type", String)
|
|
27
28
|
], NoteMention.prototype, "username", void 0);
|
|
28
|
-
NoteMention = __decorate([
|
|
29
|
+
exports.NoteMention = NoteMention = __decorate([
|
|
29
30
|
(0, mongoose_1.Schema)({ _id: false })
|
|
30
31
|
], NoteMention);
|
|
31
|
-
exports.NoteMention = NoteMention;
|
|
32
32
|
exports.NoteMentionSchema = mongoose_1.SchemaFactory.createForClass(NoteMention);
|
|
33
33
|
let Note = class Note {
|
|
34
34
|
};
|
|
35
|
+
exports.Note = Note;
|
|
35
36
|
__decorate([
|
|
36
|
-
(0, swagger_1.ApiProperty)({ example:
|
|
37
|
+
(0, swagger_1.ApiProperty)({ example: "Emitir NF até dia 10" }),
|
|
37
38
|
(0, mongoose_1.Prop)({ required: true }),
|
|
38
39
|
__metadata("design:type", String)
|
|
39
40
|
], Note.prototype, "text", void 0);
|
|
40
41
|
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({ example:
|
|
42
|
+
(0, swagger_1.ApiProperty)({ example: "João Silva" }),
|
|
42
43
|
(0, mongoose_1.Prop)({ required: true }),
|
|
43
44
|
__metadata("design:type", String)
|
|
44
45
|
], Note.prototype, "owner", void 0);
|
|
45
46
|
__decorate([
|
|
46
|
-
(0, swagger_1.ApiProperty)({ example:
|
|
47
|
+
(0, swagger_1.ApiProperty)({ example: "2025-08-28T15:00:00.000Z" }),
|
|
47
48
|
(0, mongoose_1.Prop)({ required: true }),
|
|
48
49
|
__metadata("design:type", Date)
|
|
49
50
|
], Note.prototype, "createdAt", void 0);
|
|
@@ -52,8 +53,7 @@ __decorate([
|
|
|
52
53
|
(0, mongoose_1.Prop)({ type: [exports.NoteMentionSchema], default: [] }),
|
|
53
54
|
__metadata("design:type", Array)
|
|
54
55
|
], Note.prototype, "mentioneds", void 0);
|
|
55
|
-
Note = __decorate([
|
|
56
|
+
exports.Note = Note = __decorate([
|
|
56
57
|
(0, mongoose_1.Schema)({ _id: false })
|
|
57
58
|
], Note);
|
|
58
|
-
exports.Note = Note;
|
|
59
59
|
exports.NoteSchema = mongoose_1.SchemaFactory.createForClass(Note);
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/session" />
|
|
19
|
-
/// <reference types="mongoose/types/types" />
|
|
20
|
-
/// <reference types="mongoose/types/utility" />
|
|
21
|
-
/// <reference types="mongoose/types/validation" />
|
|
22
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
-
import { HydratedDocument } from 'mongoose';
|
|
1
|
+
import { HydratedDocument } from "mongoose";
|
|
27
2
|
export type NotificationDocument = HydratedDocument<Notification>;
|
|
28
3
|
export declare class NotificationRecipient {
|
|
29
4
|
name?: string;
|
|
@@ -49,7 +24,7 @@ export declare const NotificationSchema: import("mongoose").Schema<Notification,
|
|
|
49
24
|
_id: import("mongoose").Types.ObjectId;
|
|
50
25
|
} & {
|
|
51
26
|
__v: number;
|
|
52
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Notification, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Notification>, {}, import("mongoose").
|
|
27
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Notification, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Notification>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Notification> & {
|
|
53
28
|
_id: import("mongoose").Types.ObjectId;
|
|
54
29
|
} & {
|
|
55
30
|
__v: number;
|
|
@@ -62,7 +37,7 @@ export declare const NotificationModel: import("mongoose").Model<Notification, {
|
|
|
62
37
|
_id: import("mongoose").Types.ObjectId;
|
|
63
38
|
} & {
|
|
64
39
|
__v: number;
|
|
65
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Notification, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Notification>, {}, import("mongoose").
|
|
40
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Notification, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Notification>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Notification> & {
|
|
66
41
|
_id: import("mongoose").Types.ObjectId;
|
|
67
42
|
} & {
|
|
68
43
|
__v: number;
|
|
@@ -14,6 +14,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
let NotificationRecipient = class NotificationRecipient {
|
|
16
16
|
};
|
|
17
|
+
exports.NotificationRecipient = NotificationRecipient;
|
|
17
18
|
__decorate([
|
|
18
19
|
(0, mongoose_1.Prop)({ type: String }),
|
|
19
20
|
__metadata("design:type", String)
|
|
@@ -26,12 +27,12 @@ __decorate([
|
|
|
26
27
|
(0, mongoose_1.Prop)({ type: String }),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], NotificationRecipient.prototype, "email", void 0);
|
|
29
|
-
NotificationRecipient = __decorate([
|
|
30
|
+
exports.NotificationRecipient = NotificationRecipient = __decorate([
|
|
30
31
|
(0, mongoose_1.Schema)({ _id: false })
|
|
31
32
|
], NotificationRecipient);
|
|
32
|
-
exports.NotificationRecipient = NotificationRecipient;
|
|
33
33
|
let NotificationEntity = class NotificationEntity {
|
|
34
34
|
};
|
|
35
|
+
exports.NotificationEntity = NotificationEntity;
|
|
35
36
|
__decorate([
|
|
36
37
|
(0, mongoose_1.Prop)({ type: String }),
|
|
37
38
|
__metadata("design:type", String)
|
|
@@ -44,12 +45,12 @@ __decorate([
|
|
|
44
45
|
(0, mongoose_1.Prop)({ type: String }),
|
|
45
46
|
__metadata("design:type", String)
|
|
46
47
|
], NotificationEntity.prototype, "_id", void 0);
|
|
47
|
-
NotificationEntity = __decorate([
|
|
48
|
+
exports.NotificationEntity = NotificationEntity = __decorate([
|
|
48
49
|
(0, mongoose_1.Schema)({ _id: false })
|
|
49
50
|
], NotificationEntity);
|
|
50
|
-
exports.NotificationEntity = NotificationEntity;
|
|
51
51
|
let Notification = class Notification {
|
|
52
52
|
};
|
|
53
|
+
exports.Notification = Notification;
|
|
53
54
|
__decorate([
|
|
54
55
|
(0, mongoose_1.Prop)({ type: NotificationRecipient, required: true }),
|
|
55
56
|
__metadata("design:type", NotificationRecipient)
|
|
@@ -82,9 +83,8 @@ __decorate([
|
|
|
82
83
|
(0, mongoose_1.Prop)({ type: Date, default: Date.now }),
|
|
83
84
|
__metadata("design:type", Date)
|
|
84
85
|
], Notification.prototype, "createdAt", void 0);
|
|
85
|
-
Notification = __decorate([
|
|
86
|
-
(0, mongoose_1.Schema)({ timestamps: true, collection:
|
|
86
|
+
exports.Notification = Notification = __decorate([
|
|
87
|
+
(0, mongoose_1.Schema)({ timestamps: true, collection: "notifications" })
|
|
87
88
|
], Notification);
|
|
88
|
-
exports.Notification = Notification;
|
|
89
89
|
exports.NotificationSchema = mongoose_1.SchemaFactory.createForClass(Notification);
|
|
90
|
-
exports.NotificationModel = (0, mongoose_2.model)(
|
|
90
|
+
exports.NotificationModel = (0, mongoose_2.model)("Notification", exports.NotificationSchema);
|