@grapadigital/shared-schemas 1.0.242 → 1.1.1
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 +9 -34
- package/dist/schemas/action.schema.js +81 -64
- package/dist/schemas/assignment.schema.d.ts +3 -28
- package/dist/schemas/assignment.schema.js +44 -44
- package/dist/schemas/attachment.schema.d.ts +13 -0
- package/dist/schemas/attachment.schema.js +28 -0
- package/dist/schemas/benchmark.schema.d.ts +3 -28
- package/dist/schemas/benchmark.schema.js +11 -6
- package/dist/schemas/campaign.schema.d.ts +2 -27
- package/dist/schemas/campaign.schema.js +4 -4
- package/dist/schemas/client.schema.d.ts +18 -79
- package/dist/schemas/client.schema.js +73 -71
- package/dist/schemas/comment.schema.d.ts +5 -30
- package/dist/schemas/comment.schema.js +42 -37
- package/dist/schemas/commission.schema.d.ts +5 -30
- package/dist/schemas/commission.schema.js +10 -10
- package/dist/schemas/content-capture-process.schema.d.ts +6 -31
- package/dist/schemas/content-capture-process.schema.js +24 -17
- package/dist/schemas/content-draft.schema.d.ts +2 -27
- package/dist/schemas/content-draft.schema.js +5 -5
- package/dist/schemas/content.schema.d.ts +6 -31
- package/dist/schemas/content.schema.js +84 -74
- package/dist/schemas/contract.schema.d.ts +3 -28
- package/dist/schemas/contract.schema.js +5 -5
- package/dist/schemas/creative.schema.d.ts +6 -31
- package/dist/schemas/creative.schema.js +22 -31
- package/dist/schemas/export-comments-job.schema.d.ts +2 -27
- package/dist/schemas/export-comments-job.schema.js +6 -6
- package/dist/schemas/group.schema.d.ts +1 -26
- package/dist/schemas/group.schema.js +5 -5
- package/dist/schemas/influencer.schema.d.ts +6 -31
- package/dist/schemas/influencer.schema.js +16 -18
- package/dist/schemas/invoice.schema.d.ts +4 -29
- package/dist/schemas/invoice.schema.js +42 -32
- package/dist/schemas/job.schema.d.ts +2 -27
- package/dist/schemas/job.schema.js +14 -14
- package/dist/schemas/lead.schema.d.ts +1 -26
- package/dist/schemas/lead.schema.js +67 -64
- package/dist/schemas/log.schema.d.ts +1 -26
- package/dist/schemas/log.schema.js +24 -24
- package/dist/schemas/note.schema.d.ts +1 -26
- package/dist/schemas/note.schema.js +9 -9
- package/dist/schemas/notifications.schema.d.ts +1 -26
- package/dist/schemas/notifications.schema.js +8 -8
- package/dist/schemas/organization.schema.d.ts +2 -26
- package/dist/schemas/organization.schema.js +8 -4
- package/dist/schemas/party.schema.d.ts +1 -26
- package/dist/schemas/party.schema.js +11 -11
- package/dist/schemas/payment.schema.d.ts +12 -49
- package/dist/schemas/payment.schema.js +66 -69
- package/dist/schemas/profile.schema.d.ts +3 -28
- package/dist/schemas/profile.schema.js +6 -6
- package/dist/schemas/project.schema.d.ts +4 -29
- package/dist/schemas/project.schema.js +13 -13
- package/dist/schemas/prospect.schema.d.ts +3 -28
- package/dist/schemas/prospect.schema.js +9 -9
- package/dist/schemas/recruitment.schema.d.ts +5 -30
- package/dist/schemas/recruitment.schema.js +36 -36
- package/dist/schemas/responsible.schema.d.ts +0 -26
- package/dist/schemas/responsible.schema.js +6 -6
- package/dist/schemas/sale.schema.d.ts +31 -46
- package/dist/schemas/sale.schema.js +66 -62
- package/dist/schemas/script.schema.d.ts +6 -31
- package/dist/schemas/script.schema.js +21 -30
- package/dist/schemas/snapshot.schema.d.ts +3 -28
- package/dist/schemas/snapshot.schema.js +6 -6
- package/dist/schemas/store-visit.schema.d.ts +2 -27
- package/dist/schemas/store-visit.schema.js +21 -17
- package/dist/schemas/store.schema.d.ts +3 -28
- package/dist/schemas/store.schema.js +8 -8
- package/dist/schemas/supplier.schema.d.ts +2 -27
- package/dist/schemas/supplier.schema.js +3 -3
- package/dist/schemas/tag.schema.d.ts +1 -26
- package/dist/schemas/tag.schema.js +5 -5
- package/dist/schemas/task.schema.d.ts +9 -34
- package/dist/schemas/task.schema.js +67 -67
- package/dist/schemas/token.schema.d.ts +1 -26
- package/dist/schemas/token.schema.js +3 -3
- package/dist/schemas/trigger.schema.d.ts +2 -27
- package/dist/schemas/trigger.schema.js +5 -5
- package/dist/schemas/user.schema.d.ts +2 -27
- package/dist/schemas/user.schema.js +7 -7
- package/dist/schemas/webhook.schema.d.ts +1 -26
- 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 +22 -10
- 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
|
@@ -9,10 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PaymentModel = exports.PaymentSchema = exports.Payment = exports.
|
|
12
|
+
exports.PaymentModel = exports.PaymentSchema = exports.Payment = exports.CanceledSchema = exports.Canceled = exports.PaidSchema = exports.Paid = exports.QueuedSchema = exports.Queued = exports.ReceivedSchema = exports.Received = exports.RequestedSchema = exports.Requested = exports.PendingSchema = exports.Pending = exports.ReviewSchema = exports.Review = exports.AttachmentSchema = exports.Attachment = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
const note_schema_1 = require("./note.schema");
|
|
16
|
+
const attachment_schema_1 = require("./attachment.schema");
|
|
17
|
+
Object.defineProperty(exports, "Attachment", { enumerable: true, get: function () { return attachment_schema_1.Attachment; } });
|
|
18
|
+
Object.defineProperty(exports, "AttachmentSchema", { enumerable: true, get: function () { return attachment_schema_1.AttachmentSchema; } });
|
|
16
19
|
let Requester = class Requester {
|
|
17
20
|
};
|
|
18
21
|
__decorate([
|
|
@@ -33,6 +36,7 @@ Requester = __decorate([
|
|
|
33
36
|
const RequesterSchema = mongoose_1.SchemaFactory.createForClass(Requester);
|
|
34
37
|
let Review = class Review {
|
|
35
38
|
};
|
|
39
|
+
exports.Review = Review;
|
|
36
40
|
__decorate([
|
|
37
41
|
(0, mongoose_1.Prop)(),
|
|
38
42
|
__metadata("design:type", Date)
|
|
@@ -41,13 +45,13 @@ __decorate([
|
|
|
41
45
|
(0, mongoose_1.Prop)(),
|
|
42
46
|
__metadata("design:type", Date)
|
|
43
47
|
], Review.prototype, "revisedIssueDate", void 0);
|
|
44
|
-
Review = __decorate([
|
|
48
|
+
exports.Review = Review = __decorate([
|
|
45
49
|
(0, mongoose_1.Schema)({ _id: false })
|
|
46
50
|
], Review);
|
|
47
|
-
exports.Review = Review;
|
|
48
51
|
exports.ReviewSchema = mongoose_1.SchemaFactory.createForClass(Review);
|
|
49
52
|
let Pending = class Pending {
|
|
50
53
|
};
|
|
54
|
+
exports.Pending = Pending;
|
|
51
55
|
__decorate([
|
|
52
56
|
(0, mongoose_1.Prop)({ type: RequesterSchema, required: true }),
|
|
53
57
|
__metadata("design:type", Requester)
|
|
@@ -70,8 +74,8 @@ __decorate([
|
|
|
70
74
|
"conta_simples",
|
|
71
75
|
"motoboy_bruno",
|
|
72
76
|
"motoboy_others",
|
|
73
|
-
"commission"
|
|
74
|
-
]
|
|
77
|
+
"commission",
|
|
78
|
+
],
|
|
75
79
|
}),
|
|
76
80
|
__metadata("design:type", String)
|
|
77
81
|
], Pending.prototype, "type", void 0);
|
|
@@ -79,42 +83,36 @@ __decorate([
|
|
|
79
83
|
(0, mongoose_1.Prop)({
|
|
80
84
|
type: String,
|
|
81
85
|
enum: [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
"Envio SP",
|
|
87
|
+
"Envio Outros",
|
|
88
|
+
"Passagem",
|
|
89
|
+
"Hospedagem",
|
|
90
|
+
"Compras",
|
|
91
|
+
"Logistica Time",
|
|
92
|
+
"Outros",
|
|
89
93
|
],
|
|
90
|
-
required: false
|
|
94
|
+
required: false,
|
|
91
95
|
}),
|
|
92
96
|
__metadata("design:type", String)
|
|
93
97
|
], Pending.prototype, "purpose", void 0);
|
|
94
98
|
__decorate([
|
|
95
99
|
(0, mongoose_1.Prop)({
|
|
96
100
|
type: String,
|
|
97
|
-
enum: [
|
|
98
|
-
|
|
99
|
-
'Running',
|
|
100
|
-
'Football',
|
|
101
|
-
'Training',
|
|
102
|
-
'Omni'
|
|
103
|
-
],
|
|
104
|
-
required: false
|
|
101
|
+
enum: ["Originals", "Running", "Football", "Training", "Omni"],
|
|
102
|
+
required: false,
|
|
105
103
|
}),
|
|
106
104
|
__metadata("design:type", String)
|
|
107
105
|
], Pending.prototype, "adidasCategory", void 0);
|
|
108
106
|
__decorate([
|
|
109
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
107
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Influencer" }),
|
|
110
108
|
__metadata("design:type", Object)
|
|
111
109
|
], Pending.prototype, "influencer", void 0);
|
|
112
110
|
__decorate([
|
|
113
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
111
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Supplier" }),
|
|
114
112
|
__metadata("design:type", Object)
|
|
115
113
|
], Pending.prototype, "supplier", void 0);
|
|
116
114
|
__decorate([
|
|
117
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
115
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Recruitment" }),
|
|
118
116
|
__metadata("design:type", Object)
|
|
119
117
|
], Pending.prototype, "recruitment", void 0);
|
|
120
118
|
__decorate([
|
|
@@ -130,32 +128,31 @@ __decorate([
|
|
|
130
128
|
__metadata("design:type", Number)
|
|
131
129
|
], Pending.prototype, "installmentNumber", void 0);
|
|
132
130
|
__decorate([
|
|
133
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
131
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Sale", required: false }),
|
|
134
132
|
__metadata("design:type", Object)
|
|
135
133
|
], Pending.prototype, "sale", void 0);
|
|
136
134
|
__decorate([
|
|
137
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
135
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Action" }),
|
|
138
136
|
__metadata("design:type", Object)
|
|
139
137
|
], Pending.prototype, "action", void 0);
|
|
140
138
|
__decorate([
|
|
141
|
-
(0, mongoose_1.Prop)({ type: [mongoose_2.Schema.Types.ObjectId], ref:
|
|
139
|
+
(0, mongoose_1.Prop)({ type: [mongoose_2.Schema.Types.ObjectId], ref: "Commission", required: false, default: [] }),
|
|
142
140
|
__metadata("design:type", Array)
|
|
143
141
|
], Pending.prototype, "commissions", void 0);
|
|
144
|
-
Pending = __decorate([
|
|
142
|
+
exports.Pending = Pending = __decorate([
|
|
145
143
|
(0, mongoose_1.Schema)({ _id: false })
|
|
146
144
|
], Pending);
|
|
147
|
-
exports.Pending = Pending;
|
|
148
145
|
exports.PendingSchema = mongoose_1.SchemaFactory.createForClass(Pending);
|
|
149
146
|
let Requested = class Requested {
|
|
150
147
|
};
|
|
148
|
+
exports.Requested = Requested;
|
|
151
149
|
__decorate([
|
|
152
150
|
(0, mongoose_1.Prop)(),
|
|
153
151
|
__metadata("design:type", Date)
|
|
154
152
|
], Requested.prototype, "date", void 0);
|
|
155
|
-
Requested = __decorate([
|
|
153
|
+
exports.Requested = Requested = __decorate([
|
|
156
154
|
(0, mongoose_1.Schema)({ _id: false })
|
|
157
155
|
], Requested);
|
|
158
|
-
exports.Requested = Requested;
|
|
159
156
|
exports.RequestedSchema = mongoose_1.SchemaFactory.createForClass(Requested);
|
|
160
157
|
let ReceivedNote = class ReceivedNote {
|
|
161
158
|
};
|
|
@@ -173,6 +170,7 @@ ReceivedNote = __decorate([
|
|
|
173
170
|
const ReceivedNoteSchema = mongoose_1.SchemaFactory.createForClass(ReceivedNote);
|
|
174
171
|
let Received = class Received {
|
|
175
172
|
};
|
|
173
|
+
exports.Received = Received;
|
|
176
174
|
__decorate([
|
|
177
175
|
(0, mongoose_1.Prop)(),
|
|
178
176
|
__metadata("design:type", Boolean)
|
|
@@ -193,13 +191,13 @@ __decorate([
|
|
|
193
191
|
(0, mongoose_1.Prop)({ type: [ReceivedNoteSchema], default: [] }),
|
|
194
192
|
__metadata("design:type", Array)
|
|
195
193
|
], Received.prototype, "resendNotes", void 0);
|
|
196
|
-
Received = __decorate([
|
|
194
|
+
exports.Received = Received = __decorate([
|
|
197
195
|
(0, mongoose_1.Schema)({ _id: false })
|
|
198
196
|
], Received);
|
|
199
|
-
exports.Received = Received;
|
|
200
197
|
exports.ReceivedSchema = mongoose_1.SchemaFactory.createForClass(Received);
|
|
201
198
|
let Queued = class Queued {
|
|
202
199
|
};
|
|
200
|
+
exports.Queued = Queued;
|
|
203
201
|
__decorate([
|
|
204
202
|
(0, mongoose_1.Prop)(),
|
|
205
203
|
__metadata("design:type", Date)
|
|
@@ -212,24 +210,24 @@ __decorate([
|
|
|
212
210
|
(0, mongoose_1.Prop)(),
|
|
213
211
|
__metadata("design:type", String)
|
|
214
212
|
], Queued.prototype, "code", void 0);
|
|
215
|
-
Queued = __decorate([
|
|
213
|
+
exports.Queued = Queued = __decorate([
|
|
216
214
|
(0, mongoose_1.Schema)({ _id: false })
|
|
217
215
|
], Queued);
|
|
218
|
-
exports.Queued = Queued;
|
|
219
216
|
exports.QueuedSchema = mongoose_1.SchemaFactory.createForClass(Queued);
|
|
220
217
|
let Paid = class Paid {
|
|
221
218
|
};
|
|
219
|
+
exports.Paid = Paid;
|
|
222
220
|
__decorate([
|
|
223
221
|
(0, mongoose_1.Prop)(),
|
|
224
222
|
__metadata("design:type", Date)
|
|
225
223
|
], Paid.prototype, "date", void 0);
|
|
226
|
-
Paid = __decorate([
|
|
224
|
+
exports.Paid = Paid = __decorate([
|
|
227
225
|
(0, mongoose_1.Schema)({ _id: false })
|
|
228
226
|
], Paid);
|
|
229
|
-
exports.Paid = Paid;
|
|
230
227
|
exports.PaidSchema = mongoose_1.SchemaFactory.createForClass(Paid);
|
|
231
228
|
let Canceled = class Canceled {
|
|
232
229
|
};
|
|
230
|
+
exports.Canceled = Canceled;
|
|
233
231
|
__decorate([
|
|
234
232
|
(0, mongoose_1.Prop)(),
|
|
235
233
|
__metadata("design:type", String)
|
|
@@ -238,28 +236,13 @@ __decorate([
|
|
|
238
236
|
(0, mongoose_1.Prop)(),
|
|
239
237
|
__metadata("design:type", String)
|
|
240
238
|
], Canceled.prototype, "details", void 0);
|
|
241
|
-
Canceled = __decorate([
|
|
239
|
+
exports.Canceled = Canceled = __decorate([
|
|
242
240
|
(0, mongoose_1.Schema)({ _id: false })
|
|
243
241
|
], Canceled);
|
|
244
|
-
exports.Canceled = Canceled;
|
|
245
242
|
exports.CanceledSchema = mongoose_1.SchemaFactory.createForClass(Canceled);
|
|
246
|
-
let Attachment = class Attachment {
|
|
247
|
-
};
|
|
248
|
-
__decorate([
|
|
249
|
-
(0, mongoose_1.Prop)(),
|
|
250
|
-
__metadata("design:type", String)
|
|
251
|
-
], Attachment.prototype, "name", void 0);
|
|
252
|
-
__decorate([
|
|
253
|
-
(0, mongoose_1.Prop)(),
|
|
254
|
-
__metadata("design:type", String)
|
|
255
|
-
], Attachment.prototype, "url", void 0);
|
|
256
|
-
Attachment = __decorate([
|
|
257
|
-
(0, mongoose_1.Schema)({ _id: false })
|
|
258
|
-
], Attachment);
|
|
259
|
-
exports.Attachment = Attachment;
|
|
260
|
-
exports.AttachmentSchema = mongoose_1.SchemaFactory.createForClass(Attachment);
|
|
261
243
|
let Payment = class Payment {
|
|
262
244
|
};
|
|
245
|
+
exports.Payment = Payment;
|
|
263
246
|
__decorate([
|
|
264
247
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
265
248
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
@@ -271,15 +254,25 @@ __decorate([
|
|
|
271
254
|
__decorate([
|
|
272
255
|
(0, mongoose_1.Prop)({
|
|
273
256
|
type: String,
|
|
274
|
-
enum: [
|
|
257
|
+
enum: [
|
|
258
|
+
"pending",
|
|
259
|
+
"review",
|
|
260
|
+
"awaiting",
|
|
261
|
+
"requested",
|
|
262
|
+
"received",
|
|
263
|
+
"queued",
|
|
264
|
+
"paid",
|
|
265
|
+
"client",
|
|
266
|
+
"canceled",
|
|
267
|
+
],
|
|
275
268
|
}),
|
|
276
269
|
__metadata("design:type", String)
|
|
277
270
|
], Payment.prototype, "phase", void 0);
|
|
278
271
|
__decorate([
|
|
279
272
|
(0, mongoose_1.Prop)({
|
|
280
|
-
type: [Attachment],
|
|
273
|
+
type: [attachment_schema_1.Attachment],
|
|
281
274
|
required: false,
|
|
282
|
-
default: []
|
|
275
|
+
default: [],
|
|
283
276
|
}),
|
|
284
277
|
__metadata("design:type", Array)
|
|
285
278
|
], Payment.prototype, "attachments", void 0);
|
|
@@ -335,20 +328,24 @@ __decorate([
|
|
|
335
328
|
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
336
329
|
__metadata("design:type", Date)
|
|
337
330
|
], Payment.prototype, "updatedAt", void 0);
|
|
338
|
-
Payment = __decorate([
|
|
331
|
+
exports.Payment = Payment = __decorate([
|
|
339
332
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
340
333
|
], Payment);
|
|
341
|
-
exports.Payment = Payment;
|
|
342
334
|
exports.PaymentSchema = mongoose_1.SchemaFactory.createForClass(Payment);
|
|
343
|
-
exports.PaymentSchema.index({
|
|
344
|
-
exports.PaymentSchema.index({
|
|
345
|
-
exports.PaymentSchema.index({
|
|
346
|
-
exports.PaymentSchema.index({
|
|
347
|
-
exports.PaymentSchema.index({
|
|
348
|
-
exports.PaymentSchema.index({
|
|
349
|
-
exports.PaymentSchema.index({
|
|
350
|
-
exports.PaymentSchema.index({
|
|
335
|
+
exports.PaymentSchema.index({ "pending.sale": 1 });
|
|
336
|
+
exports.PaymentSchema.index({ "pending.sale": 1, "pending.installmentNumber": 1 });
|
|
337
|
+
exports.PaymentSchema.index({ "pending.influencer": 1 });
|
|
338
|
+
exports.PaymentSchema.index({ "pending.recruitment": 1 });
|
|
339
|
+
exports.PaymentSchema.index({ "pending.action": 1 });
|
|
340
|
+
exports.PaymentSchema.index({ "pending.supplier": 1 });
|
|
341
|
+
exports.PaymentSchema.index({ "pending.recruitment": 1, "pending.type": 1 });
|
|
342
|
+
exports.PaymentSchema.index({
|
|
343
|
+
"pending.influencer": 1,
|
|
344
|
+
"pending.recruitment": 1,
|
|
345
|
+
"pending.action": 1,
|
|
346
|
+
"pending.type": 1,
|
|
347
|
+
});
|
|
351
348
|
exports.PaymentSchema.index({ organization: 1, phase: 1 });
|
|
352
|
-
exports.PaymentSchema.index({ organization: 1,
|
|
349
|
+
exports.PaymentSchema.index({ organization: 1, "queued.issueDate": 1 });
|
|
353
350
|
exports.PaymentSchema.index({ omieId: 1 }, { sparse: true });
|
|
354
|
-
exports.PaymentModel = (0, mongoose_2.model)(
|
|
351
|
+
exports.PaymentModel = (0, mongoose_2.model)("Payment", exports.PaymentSchema);
|
|
@@ -1,31 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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';
|
|
27
|
-
import { Influencer } from './influencer.schema';
|
|
28
|
-
import { Client } from './client.schema';
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
2
|
+
import { Influencer } from "./influencer.schema";
|
|
3
|
+
import { Client } from "./client.schema";
|
|
29
4
|
export type ProfileDocument = HydratedDocument<Profile>;
|
|
30
5
|
export declare const PROFILE_OPTIN_STATUS_VALUES: readonly ["active", "inactive"];
|
|
31
6
|
export type ProfileOptinStatus = (typeof PROFILE_OPTIN_STATUS_VALUES)[number];
|
|
@@ -12,9 +12,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ProfileModel = exports.ProfileSchema = exports.Profile = exports.PROFILE_OPTIN_STATUS_VALUES = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
|
-
exports.PROFILE_OPTIN_STATUS_VALUES = [
|
|
15
|
+
exports.PROFILE_OPTIN_STATUS_VALUES = ["active", "inactive"];
|
|
16
16
|
let Profile = class Profile {
|
|
17
17
|
};
|
|
18
|
+
exports.Profile = Profile;
|
|
18
19
|
__decorate([
|
|
19
20
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
20
21
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
@@ -64,11 +65,11 @@ __decorate([
|
|
|
64
65
|
__metadata("design:type", String)
|
|
65
66
|
], Profile.prototype, "type", void 0);
|
|
66
67
|
__decorate([
|
|
67
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
68
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Influencer" }),
|
|
68
69
|
__metadata("design:type", Object)
|
|
69
70
|
], Profile.prototype, "influencer", void 0);
|
|
70
71
|
__decorate([
|
|
71
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
72
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Client", required: false }),
|
|
72
73
|
__metadata("design:type", Object)
|
|
73
74
|
], Profile.prototype, "client", void 0);
|
|
74
75
|
__decorate([
|
|
@@ -79,13 +80,12 @@ __decorate([
|
|
|
79
80
|
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
80
81
|
__metadata("design:type", Date)
|
|
81
82
|
], Profile.prototype, "updatedAt", void 0);
|
|
82
|
-
Profile = __decorate([
|
|
83
|
+
exports.Profile = Profile = __decorate([
|
|
83
84
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
84
85
|
], Profile);
|
|
85
|
-
exports.Profile = Profile;
|
|
86
86
|
exports.ProfileSchema = mongoose_1.SchemaFactory.createForClass(Profile);
|
|
87
87
|
exports.ProfileSchema.index({ influencer: 1 });
|
|
88
88
|
exports.ProfileSchema.index({ client: 1 }, { sparse: true });
|
|
89
89
|
exports.ProfileSchema.index({ username: 1 });
|
|
90
90
|
exports.ProfileSchema.index({ username: 1, influencer: 1 });
|
|
91
|
-
exports.ProfileModel = (0, mongoose_2.model)(
|
|
91
|
+
exports.ProfileModel = (0, mongoose_2.model)("Profile", exports.ProfileSchema);
|
|
@@ -1,32 +1,7 @@
|
|
|
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 ProjectDocument = HydratedDocument<Project>;
|
|
28
3
|
export declare class FormatItem {
|
|
29
|
-
format:
|
|
4
|
+
format: "reel" | "carousel" | "image" | "story" | "video";
|
|
30
5
|
qty: number;
|
|
31
6
|
value: number;
|
|
32
7
|
impressionCount: number;
|
|
@@ -46,7 +21,7 @@ export declare const FormatItemSchema: import("mongoose").Schema<FormatItem, imp
|
|
|
46
21
|
export declare class ProjectProfile {
|
|
47
22
|
username: string;
|
|
48
23
|
followers: number;
|
|
49
|
-
socialnetwork:
|
|
24
|
+
socialnetwork: "instagram" | "tiktok" | "youtube";
|
|
50
25
|
quantity: number;
|
|
51
26
|
imageUsageRight: number;
|
|
52
27
|
boostRight: number;
|
|
@@ -77,7 +52,7 @@ export declare const ProjectProductionCostSchema: import("mongoose").Schema<Proj
|
|
|
77
52
|
} & {
|
|
78
53
|
__v: number;
|
|
79
54
|
}>;
|
|
80
|
-
export type ProjectPhase =
|
|
55
|
+
export type ProjectPhase = "prospect" | "pending" | "planning" | "inProgress" | "inApproval" | "done" | "cold";
|
|
81
56
|
export declare class Project {
|
|
82
57
|
title: string;
|
|
83
58
|
commissionPercentage: number;
|
|
@@ -14,8 +14,9 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
let FormatItem = class FormatItem {
|
|
16
16
|
};
|
|
17
|
+
exports.FormatItem = FormatItem;
|
|
17
18
|
__decorate([
|
|
18
|
-
(0, mongoose_1.Prop)({ required: true, enum: [
|
|
19
|
+
(0, mongoose_1.Prop)({ required: true, enum: ["reel", "carousel", "image", "story", "video"] }),
|
|
19
20
|
__metadata("design:type", String)
|
|
20
21
|
], FormatItem.prototype, "format", void 0);
|
|
21
22
|
__decorate([
|
|
@@ -42,13 +43,13 @@ __decorate([
|
|
|
42
43
|
(0, mongoose_1.Prop)({ required: true, type: Number }),
|
|
43
44
|
__metadata("design:type", Number)
|
|
44
45
|
], FormatItem.prototype, "engagementCount", void 0);
|
|
45
|
-
FormatItem = __decorate([
|
|
46
|
+
exports.FormatItem = FormatItem = __decorate([
|
|
46
47
|
(0, mongoose_1.Schema)({ _id: false })
|
|
47
48
|
], FormatItem);
|
|
48
|
-
exports.FormatItem = FormatItem;
|
|
49
49
|
exports.FormatItemSchema = mongoose_1.SchemaFactory.createForClass(FormatItem);
|
|
50
50
|
let ProjectProfile = class ProjectProfile {
|
|
51
51
|
};
|
|
52
|
+
exports.ProjectProfile = ProjectProfile;
|
|
52
53
|
__decorate([
|
|
53
54
|
(0, mongoose_1.Prop)({ required: true }),
|
|
54
55
|
__metadata("design:type", String)
|
|
@@ -58,7 +59,7 @@ __decorate([
|
|
|
58
59
|
__metadata("design:type", Number)
|
|
59
60
|
], ProjectProfile.prototype, "followers", void 0);
|
|
60
61
|
__decorate([
|
|
61
|
-
(0, mongoose_1.Prop)({ required: true, enum: [
|
|
62
|
+
(0, mongoose_1.Prop)({ required: true, enum: ["instagram", "tiktok", "youtube"] }),
|
|
62
63
|
__metadata("design:type", String)
|
|
63
64
|
], ProjectProfile.prototype, "socialnetwork", void 0);
|
|
64
65
|
__decorate([
|
|
@@ -77,13 +78,13 @@ __decorate([
|
|
|
77
78
|
(0, mongoose_1.Prop)({ type: [exports.FormatItemSchema], default: [] }),
|
|
78
79
|
__metadata("design:type", Array)
|
|
79
80
|
], ProjectProfile.prototype, "formats", void 0);
|
|
80
|
-
ProjectProfile = __decorate([
|
|
81
|
+
exports.ProjectProfile = ProjectProfile = __decorate([
|
|
81
82
|
(0, mongoose_1.Schema)({ _id: false })
|
|
82
83
|
], ProjectProfile);
|
|
83
|
-
exports.ProjectProfile = ProjectProfile;
|
|
84
84
|
exports.ProjectProfileSchema = mongoose_1.SchemaFactory.createForClass(ProjectProfile);
|
|
85
85
|
let ProjectProductionCost = class ProjectProductionCost {
|
|
86
86
|
};
|
|
87
|
+
exports.ProjectProductionCost = ProjectProductionCost;
|
|
87
88
|
__decorate([
|
|
88
89
|
(0, mongoose_1.Prop)({ required: true }),
|
|
89
90
|
__metadata("design:type", String)
|
|
@@ -104,13 +105,13 @@ __decorate([
|
|
|
104
105
|
(0, mongoose_1.Prop)({ required: false }),
|
|
105
106
|
__metadata("design:type", String)
|
|
106
107
|
], ProjectProductionCost.prototype, "expectedDate", void 0);
|
|
107
|
-
ProjectProductionCost = __decorate([
|
|
108
|
+
exports.ProjectProductionCost = ProjectProductionCost = __decorate([
|
|
108
109
|
(0, mongoose_1.Schema)({ _id: false })
|
|
109
110
|
], ProjectProductionCost);
|
|
110
|
-
exports.ProjectProductionCost = ProjectProductionCost;
|
|
111
111
|
exports.ProjectProductionCostSchema = mongoose_1.SchemaFactory.createForClass(ProjectProductionCost);
|
|
112
112
|
let Project = class Project {
|
|
113
113
|
};
|
|
114
|
+
exports.Project = Project;
|
|
114
115
|
__decorate([
|
|
115
116
|
(0, mongoose_1.Prop)({ required: true }),
|
|
116
117
|
__metadata("design:type", String)
|
|
@@ -130,8 +131,8 @@ __decorate([
|
|
|
130
131
|
__decorate([
|
|
131
132
|
(0, mongoose_1.Prop)({
|
|
132
133
|
required: false,
|
|
133
|
-
enum: [
|
|
134
|
-
default:
|
|
134
|
+
enum: ["prospect", "pending", "planning", "inProgress", "inApproval", "done", "cold"],
|
|
135
|
+
default: "prospect",
|
|
135
136
|
}),
|
|
136
137
|
__metadata("design:type", String)
|
|
137
138
|
], Project.prototype, "phase", void 0);
|
|
@@ -143,9 +144,8 @@ __decorate([
|
|
|
143
144
|
(0, mongoose_1.Prop)({ type: [exports.ProjectProductionCostSchema], default: [] }),
|
|
144
145
|
__metadata("design:type", Array)
|
|
145
146
|
], Project.prototype, "productionCosts", void 0);
|
|
146
|
-
Project = __decorate([
|
|
147
|
+
exports.Project = Project = __decorate([
|
|
147
148
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
148
149
|
], Project);
|
|
149
|
-
exports.Project = Project;
|
|
150
150
|
exports.ProjectSchema = mongoose_1.SchemaFactory.createForClass(Project);
|
|
151
|
-
exports.ProjectModel = (0, mongoose_2.model)(
|
|
151
|
+
exports.ProjectModel = (0, mongoose_2.model)("Project", exports.ProjectSchema);
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
27
|
-
import { Responsible } from './responsible.schema';
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
2
|
+
import { Responsible } from "./responsible.schema";
|
|
28
3
|
export type ProspectDocument = HydratedDocument<Prospect>;
|
|
29
4
|
export declare class ProspectNote {
|
|
30
5
|
text: string;
|
|
@@ -45,7 +20,7 @@ export declare class Prospect {
|
|
|
45
20
|
organization: Types.ObjectId;
|
|
46
21
|
name: string;
|
|
47
22
|
value?: number;
|
|
48
|
-
status:
|
|
23
|
+
status: "open" | "won" | "lost";
|
|
49
24
|
hot: boolean;
|
|
50
25
|
responsible: Responsible[];
|
|
51
26
|
lastContactAt: Date;
|
|
@@ -16,6 +16,7 @@ const mongoose_2 = require("mongoose");
|
|
|
16
16
|
const responsible_schema_1 = require("./responsible.schema");
|
|
17
17
|
let ProspectNote = class ProspectNote {
|
|
18
18
|
};
|
|
19
|
+
exports.ProspectNote = ProspectNote;
|
|
19
20
|
__decorate([
|
|
20
21
|
(0, mongoose_1.Prop)({ required: true }),
|
|
21
22
|
__metadata("design:type", String)
|
|
@@ -28,20 +29,20 @@ __decorate([
|
|
|
28
29
|
(0, mongoose_1.Prop)({ required: true, default: Date.now }),
|
|
29
30
|
__metadata("design:type", Date)
|
|
30
31
|
], ProspectNote.prototype, "createdAt", void 0);
|
|
31
|
-
ProspectNote = __decorate([
|
|
32
|
+
exports.ProspectNote = ProspectNote = __decorate([
|
|
32
33
|
(0, mongoose_1.Schema)({ _id: false })
|
|
33
34
|
], ProspectNote);
|
|
34
|
-
exports.ProspectNote = ProspectNote;
|
|
35
35
|
exports.ProspectNoteSchema = mongoose_1.SchemaFactory.createForClass(ProspectNote);
|
|
36
36
|
let Prospect = class Prospect {
|
|
37
37
|
};
|
|
38
|
+
exports.Prospect = Prospect;
|
|
38
39
|
__decorate([
|
|
39
|
-
(0, swagger_1.ApiProperty)({ example:
|
|
40
|
+
(0, swagger_1.ApiProperty)({ example: "64bfc3a78d3f1e2a12345678" }),
|
|
40
41
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
41
42
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
42
43
|
], Prospect.prototype, "_id", void 0);
|
|
43
44
|
__decorate([
|
|
44
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
45
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Organization", required: true }),
|
|
45
46
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
46
47
|
], Prospect.prototype, "organization", void 0);
|
|
47
48
|
__decorate([
|
|
@@ -53,7 +54,7 @@ __decorate([
|
|
|
53
54
|
__metadata("design:type", Number)
|
|
54
55
|
], Prospect.prototype, "value", void 0);
|
|
55
56
|
__decorate([
|
|
56
|
-
(0, mongoose_1.Prop)({ type: String, enum: [
|
|
57
|
+
(0, mongoose_1.Prop)({ type: String, enum: ["open", "won", "lost"], required: true }),
|
|
57
58
|
__metadata("design:type", String)
|
|
58
59
|
], Prospect.prototype, "status", void 0);
|
|
59
60
|
__decorate([
|
|
@@ -77,11 +78,10 @@ __decorate([
|
|
|
77
78
|
(0, mongoose_1.Prop)({ type: [exports.ProspectNoteSchema], default: [] }),
|
|
78
79
|
__metadata("design:type", Array)
|
|
79
80
|
], Prospect.prototype, "notes", void 0);
|
|
80
|
-
Prospect = __decorate([
|
|
81
|
+
exports.Prospect = Prospect = __decorate([
|
|
81
82
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
82
83
|
], Prospect);
|
|
83
|
-
exports.Prospect = Prospect;
|
|
84
84
|
exports.ProspectSchema = mongoose_1.SchemaFactory.createForClass(Prospect);
|
|
85
85
|
exports.ProspectSchema.index({ organization: 1, status: 1, lastContactAt: 1 });
|
|
86
|
-
exports.ProspectSchema.index({
|
|
87
|
-
exports.ProspectModel = (0, mongoose_2.model)(
|
|
86
|
+
exports.ProspectSchema.index({ "responsible.email": 1 });
|
|
87
|
+
exports.ProspectModel = (0, mongoose_2.model)("Prospect", exports.ProspectSchema);
|