@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,13 +9,15 @@ 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.SaleModel = exports.SaleSchema = exports.Sale = exports.
|
|
12
|
+
exports.SaleModel = exports.SaleSchema = exports.Sale = exports.SaleLinkSchema = exports.SaleLink = exports.SaleResponsibleSchema = exports.SaleResponsible = exports.Inbox = exports.CommissionInfo = exports.CommissionParticipant = exports.TimelineEntry = exports.Activity = exports.Lost = exports.Formalization = exports.Negotiation = exports.Proposal = 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
16
|
const responsible_schema_1 = require("./responsible.schema");
|
|
17
|
+
const attachment_schema_1 = require("./attachment.schema");
|
|
17
18
|
let Proposal = class Proposal {
|
|
18
19
|
};
|
|
20
|
+
exports.Proposal = Proposal;
|
|
19
21
|
__decorate([
|
|
20
22
|
(0, mongoose_1.Prop)({ required: true }),
|
|
21
23
|
__metadata("design:type", String)
|
|
@@ -31,7 +33,7 @@ __decorate([
|
|
|
31
33
|
__decorate([
|
|
32
34
|
(0, mongoose_1.Prop)({
|
|
33
35
|
type: String,
|
|
34
|
-
enum: [
|
|
36
|
+
enum: ["inbound", "outbound"],
|
|
35
37
|
required: true,
|
|
36
38
|
}),
|
|
37
39
|
__metadata("design:type", String)
|
|
@@ -39,7 +41,7 @@ __decorate([
|
|
|
39
41
|
__decorate([
|
|
40
42
|
(0, mongoose_1.Prop)({
|
|
41
43
|
type: mongoose_2.Schema.Types.ObjectId,
|
|
42
|
-
ref:
|
|
44
|
+
ref: "Profile",
|
|
43
45
|
required: false,
|
|
44
46
|
}),
|
|
45
47
|
__metadata("design:type", Object)
|
|
@@ -47,17 +49,17 @@ __decorate([
|
|
|
47
49
|
__decorate([
|
|
48
50
|
(0, mongoose_1.Prop)({
|
|
49
51
|
type: mongoose_2.Schema.Types.ObjectId,
|
|
50
|
-
ref:
|
|
52
|
+
ref: "Influencer",
|
|
51
53
|
required: false,
|
|
52
54
|
}),
|
|
53
55
|
__metadata("design:type", Object)
|
|
54
56
|
], Proposal.prototype, "influencer", void 0);
|
|
55
|
-
Proposal = __decorate([
|
|
57
|
+
exports.Proposal = Proposal = __decorate([
|
|
56
58
|
(0, mongoose_1.Schema)({ _id: false })
|
|
57
59
|
], Proposal);
|
|
58
|
-
exports.Proposal = Proposal;
|
|
59
60
|
let Negotiation = class Negotiation {
|
|
60
61
|
};
|
|
62
|
+
exports.Negotiation = Negotiation;
|
|
61
63
|
__decorate([
|
|
62
64
|
(0, mongoose_1.Prop)({ required: true }),
|
|
63
65
|
__metadata("design:type", String)
|
|
@@ -154,12 +156,12 @@ __decorate([
|
|
|
154
156
|
(0, mongoose_1.Prop)({ required: true }),
|
|
155
157
|
__metadata("design:type", Boolean)
|
|
156
158
|
], Negotiation.prototype, "isDollarNegotiation", void 0);
|
|
157
|
-
Negotiation = __decorate([
|
|
159
|
+
exports.Negotiation = Negotiation = __decorate([
|
|
158
160
|
(0, mongoose_1.Schema)({ _id: false })
|
|
159
161
|
], Negotiation);
|
|
160
|
-
exports.Negotiation = Negotiation;
|
|
161
162
|
let Formalization = class Formalization {
|
|
162
163
|
};
|
|
164
|
+
exports.Formalization = Formalization;
|
|
163
165
|
__decorate([
|
|
164
166
|
(0, mongoose_1.Prop)({ required: true }),
|
|
165
167
|
__metadata("design:type", String)
|
|
@@ -185,23 +187,23 @@ __decorate([
|
|
|
185
187
|
__metadata("design:type", String)
|
|
186
188
|
], Formalization.prototype, "finalScope", void 0);
|
|
187
189
|
__decorate([
|
|
188
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
190
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Client" }),
|
|
189
191
|
__metadata("design:type", Object)
|
|
190
192
|
], Formalization.prototype, "brand", void 0);
|
|
191
193
|
__decorate([
|
|
192
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
194
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Client", required: false }),
|
|
193
195
|
__metadata("design:type", Object)
|
|
194
196
|
], Formalization.prototype, "agency", void 0);
|
|
195
197
|
__decorate([
|
|
196
198
|
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
197
199
|
__metadata("design:type", Number)
|
|
198
200
|
], Formalization.prototype, "totalInstallments", void 0);
|
|
199
|
-
Formalization = __decorate([
|
|
201
|
+
exports.Formalization = Formalization = __decorate([
|
|
200
202
|
(0, mongoose_1.Schema)({ _id: false })
|
|
201
203
|
], Formalization);
|
|
202
|
-
exports.Formalization = Formalization;
|
|
203
204
|
let Lost = class Lost {
|
|
204
205
|
};
|
|
206
|
+
exports.Lost = Lost;
|
|
205
207
|
__decorate([
|
|
206
208
|
(0, mongoose_1.Prop)({ required: true }),
|
|
207
209
|
__metadata("design:type", String)
|
|
@@ -210,12 +212,12 @@ __decorate([
|
|
|
210
212
|
(0, mongoose_1.Prop)(),
|
|
211
213
|
__metadata("design:type", String)
|
|
212
214
|
], Lost.prototype, "details", void 0);
|
|
213
|
-
Lost = __decorate([
|
|
215
|
+
exports.Lost = Lost = __decorate([
|
|
214
216
|
(0, mongoose_1.Schema)({ _id: false })
|
|
215
217
|
], Lost);
|
|
216
|
-
exports.Lost = Lost;
|
|
217
218
|
let Activity = class Activity {
|
|
218
219
|
};
|
|
220
|
+
exports.Activity = Activity;
|
|
219
221
|
__decorate([
|
|
220
222
|
(0, mongoose_1.Prop)({ required: true }),
|
|
221
223
|
__metadata("design:type", String)
|
|
@@ -232,12 +234,12 @@ __decorate([
|
|
|
232
234
|
(0, mongoose_1.Prop)({ required: true }),
|
|
233
235
|
__metadata("design:type", Date)
|
|
234
236
|
], Activity.prototype, "createdAt", void 0);
|
|
235
|
-
Activity = __decorate([
|
|
237
|
+
exports.Activity = Activity = __decorate([
|
|
236
238
|
(0, mongoose_1.Schema)({ _id: false })
|
|
237
239
|
], Activity);
|
|
238
|
-
exports.Activity = Activity;
|
|
239
240
|
let TimelineEntry = class TimelineEntry {
|
|
240
241
|
};
|
|
242
|
+
exports.TimelineEntry = TimelineEntry;
|
|
241
243
|
__decorate([
|
|
242
244
|
(0, mongoose_1.Prop)({ required: true }),
|
|
243
245
|
__metadata("design:type", String)
|
|
@@ -246,12 +248,12 @@ __decorate([
|
|
|
246
248
|
(0, mongoose_1.Prop)({ required: true }),
|
|
247
249
|
__metadata("design:type", Date)
|
|
248
250
|
], TimelineEntry.prototype, "date", void 0);
|
|
249
|
-
TimelineEntry = __decorate([
|
|
251
|
+
exports.TimelineEntry = TimelineEntry = __decorate([
|
|
250
252
|
(0, mongoose_1.Schema)({ _id: false })
|
|
251
253
|
], TimelineEntry);
|
|
252
|
-
exports.TimelineEntry = TimelineEntry;
|
|
253
254
|
let CommissionParticipant = class CommissionParticipant {
|
|
254
255
|
};
|
|
256
|
+
exports.CommissionParticipant = CommissionParticipant;
|
|
255
257
|
__decorate([
|
|
256
258
|
(0, mongoose_1.Prop)({ required: true }),
|
|
257
259
|
__metadata("design:type", String)
|
|
@@ -268,12 +270,12 @@ __decorate([
|
|
|
268
270
|
(0, mongoose_1.Prop)({ required: true }),
|
|
269
271
|
__metadata("design:type", Number)
|
|
270
272
|
], CommissionParticipant.prototype, "value", void 0);
|
|
271
|
-
CommissionParticipant = __decorate([
|
|
273
|
+
exports.CommissionParticipant = CommissionParticipant = __decorate([
|
|
272
274
|
(0, mongoose_1.Schema)({ _id: false })
|
|
273
275
|
], CommissionParticipant);
|
|
274
|
-
exports.CommissionParticipant = CommissionParticipant;
|
|
275
276
|
let CommissionInfo = class CommissionInfo {
|
|
276
277
|
};
|
|
278
|
+
exports.CommissionInfo = CommissionInfo;
|
|
277
279
|
__decorate([
|
|
278
280
|
(0, mongoose_1.Prop)({ required: true }),
|
|
279
281
|
__metadata("design:type", Number)
|
|
@@ -298,12 +300,12 @@ __decorate([
|
|
|
298
300
|
(0, mongoose_1.Prop)({ type: [CommissionParticipant], required: true }),
|
|
299
301
|
__metadata("design:type", Array)
|
|
300
302
|
], CommissionInfo.prototype, "participants", void 0);
|
|
301
|
-
CommissionInfo = __decorate([
|
|
303
|
+
exports.CommissionInfo = CommissionInfo = __decorate([
|
|
302
304
|
(0, mongoose_1.Schema)({ _id: false })
|
|
303
305
|
], CommissionInfo);
|
|
304
|
-
exports.CommissionInfo = CommissionInfo;
|
|
305
306
|
let Inbox = class Inbox {
|
|
306
307
|
};
|
|
308
|
+
exports.Inbox = Inbox;
|
|
307
309
|
__decorate([
|
|
308
310
|
(0, mongoose_1.Prop)({ required: true, unique: true, sparse: true }),
|
|
309
311
|
__metadata("design:type", String)
|
|
@@ -336,15 +338,15 @@ __decorate([
|
|
|
336
338
|
(0, mongoose_1.Prop)({ required: true }),
|
|
337
339
|
__metadata("design:type", Date)
|
|
338
340
|
], Inbox.prototype, "receivedAt", void 0);
|
|
339
|
-
Inbox = __decorate([
|
|
341
|
+
exports.Inbox = Inbox = __decorate([
|
|
340
342
|
(0, mongoose_1.Schema)({ _id: false })
|
|
341
343
|
], Inbox);
|
|
342
|
-
exports.Inbox = Inbox;
|
|
343
344
|
/**
|
|
344
345
|
* Responsáveis da venda por papel: comercial (proposta), curadoria e planejamento.
|
|
345
346
|
*/
|
|
346
347
|
let SaleResponsible = class SaleResponsible {
|
|
347
348
|
};
|
|
349
|
+
exports.SaleResponsible = SaleResponsible;
|
|
348
350
|
__decorate([
|
|
349
351
|
(0, mongoose_1.Prop)({ type: [responsible_schema_1.ResponsibleSchema], required: false, default: [] }),
|
|
350
352
|
__metadata("design:type", Array)
|
|
@@ -357,31 +359,29 @@ __decorate([
|
|
|
357
359
|
(0, mongoose_1.Prop)({ type: [responsible_schema_1.ResponsibleSchema], required: false, default: [] }),
|
|
358
360
|
__metadata("design:type", Array)
|
|
359
361
|
], SaleResponsible.prototype, "planning", void 0);
|
|
360
|
-
SaleResponsible = __decorate([
|
|
362
|
+
exports.SaleResponsible = SaleResponsible = __decorate([
|
|
361
363
|
(0, mongoose_1.Schema)({ _id: false })
|
|
362
364
|
], SaleResponsible);
|
|
363
|
-
exports.SaleResponsible = SaleResponsible;
|
|
364
365
|
exports.SaleResponsibleSchema = mongoose_1.SchemaFactory.createForClass(SaleResponsible);
|
|
365
|
-
|
|
366
|
+
// Links da venda com rótulo livre (Canva, planilha de curadoria, contrato...).
|
|
367
|
+
let SaleLink = class SaleLink {
|
|
366
368
|
};
|
|
369
|
+
exports.SaleLink = SaleLink;
|
|
367
370
|
__decorate([
|
|
368
|
-
(0, mongoose_1.Prop)({ required:
|
|
369
|
-
__metadata("design:type", String)
|
|
370
|
-
], SaleLinks.prototype, "contract", void 0);
|
|
371
|
-
__decorate([
|
|
372
|
-
(0, mongoose_1.Prop)({ required: false }),
|
|
371
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
373
372
|
__metadata("design:type", String)
|
|
374
|
-
],
|
|
373
|
+
], SaleLink.prototype, "label", void 0);
|
|
375
374
|
__decorate([
|
|
376
|
-
(0, mongoose_1.Prop)({ required:
|
|
375
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
377
376
|
__metadata("design:type", String)
|
|
378
|
-
],
|
|
379
|
-
|
|
377
|
+
], SaleLink.prototype, "url", void 0);
|
|
378
|
+
exports.SaleLink = SaleLink = __decorate([
|
|
380
379
|
(0, mongoose_1.Schema)({ _id: false })
|
|
381
|
-
],
|
|
382
|
-
exports.
|
|
380
|
+
], SaleLink);
|
|
381
|
+
exports.SaleLinkSchema = mongoose_1.SchemaFactory.createForClass(SaleLink);
|
|
383
382
|
let Sale = class Sale {
|
|
384
383
|
};
|
|
384
|
+
exports.Sale = Sale;
|
|
385
385
|
__decorate([
|
|
386
386
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
387
387
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
@@ -394,13 +394,14 @@ __decorate([
|
|
|
394
394
|
(0, mongoose_1.Prop)({
|
|
395
395
|
required: true,
|
|
396
396
|
enum: [
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
397
|
+
"inbox",
|
|
398
|
+
"strategy",
|
|
399
|
+
"proposal",
|
|
400
|
+
"negotiation",
|
|
401
|
+
"commission",
|
|
402
|
+
"formalization",
|
|
403
|
+
"closed",
|
|
404
|
+
"lost",
|
|
404
405
|
],
|
|
405
406
|
}),
|
|
406
407
|
__metadata("design:type", String)
|
|
@@ -409,14 +410,14 @@ __decorate([
|
|
|
409
410
|
(0, mongoose_1.Prop)({
|
|
410
411
|
type: String,
|
|
411
412
|
enum: [
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
413
|
+
"new",
|
|
414
|
+
"organic_expansion",
|
|
415
|
+
"strategic_expansion",
|
|
416
|
+
"renewal",
|
|
417
|
+
"comercial_winback",
|
|
418
|
+
"organic_winback",
|
|
418
419
|
],
|
|
419
|
-
default:
|
|
420
|
+
default: "new",
|
|
420
421
|
}),
|
|
421
422
|
__metadata("design:type", String)
|
|
422
423
|
], Sale.prototype, "type", void 0);
|
|
@@ -468,7 +469,7 @@ __decorate([
|
|
|
468
469
|
(0, mongoose_1.Prop)([
|
|
469
470
|
{
|
|
470
471
|
type: mongoose_2.Schema.Types.ObjectId,
|
|
471
|
-
ref:
|
|
472
|
+
ref: "Profile",
|
|
472
473
|
required: false,
|
|
473
474
|
},
|
|
474
475
|
]),
|
|
@@ -495,20 +496,23 @@ __decorate([
|
|
|
495
496
|
__metadata("design:type", SaleResponsible)
|
|
496
497
|
], Sale.prototype, "responsible", void 0);
|
|
497
498
|
__decorate([
|
|
498
|
-
(0, mongoose_1.Prop)({ type:
|
|
499
|
-
__metadata("design:type",
|
|
499
|
+
(0, mongoose_1.Prop)({ type: [exports.SaleLinkSchema], required: false, default: undefined }),
|
|
500
|
+
__metadata("design:type", Array)
|
|
500
501
|
], Sale.prototype, "links", void 0);
|
|
501
|
-
|
|
502
|
+
__decorate([
|
|
503
|
+
(0, mongoose_1.Prop)({ type: [attachment_schema_1.AttachmentSchema], required: false, default: undefined }),
|
|
504
|
+
__metadata("design:type", Array)
|
|
505
|
+
], Sale.prototype, "attachments", void 0);
|
|
506
|
+
exports.Sale = Sale = __decorate([
|
|
502
507
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
503
508
|
], Sale);
|
|
504
|
-
exports.Sale = Sale;
|
|
505
509
|
exports.SaleSchema = mongoose_1.SchemaFactory.createForClass(Sale);
|
|
506
510
|
exports.SaleSchema.index({ organization: 1, phase: 1 });
|
|
507
511
|
exports.SaleSchema.index({ organization: 1, createdAt: -1 });
|
|
508
|
-
exports.SaleSchema.index({ organization: 1,
|
|
509
|
-
exports.SaleSchema.index({ organization: 1,
|
|
512
|
+
exports.SaleSchema.index({ organization: 1, "formalization.brand": 1 });
|
|
513
|
+
exports.SaleSchema.index({ organization: 1, "formalization.agency": 1 });
|
|
510
514
|
exports.SaleSchema.index({ organization: 1, closedAt: 1, phase: 1 });
|
|
511
|
-
exports.SaleSchema.index({
|
|
512
|
-
exports.SaleSchema.index({
|
|
515
|
+
exports.SaleSchema.index({ "proposal.influencer": 1 });
|
|
516
|
+
exports.SaleSchema.index({ "responsible.proposal.email": 1 });
|
|
513
517
|
exports.SaleSchema.index({ tags: 1 });
|
|
514
|
-
exports.SaleModel = (0, mongoose_2.model)(
|
|
518
|
+
exports.SaleModel = (0, mongoose_2.model)("Sale", exports.SaleSchema);
|
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 { Action } from './action.schema';
|
|
28
|
-
import { Client } from './client.schema';
|
|
29
|
-
import { Profile } from './profile.schema';
|
|
30
|
-
import { TaskFormat } from './task.schema';
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
2
|
+
import { Action } from "./action.schema";
|
|
3
|
+
import { Client } from "./client.schema";
|
|
4
|
+
import { Profile } from "./profile.schema";
|
|
5
|
+
import { TaskFormat } from "./task.schema";
|
|
31
6
|
export type ScriptDocument = HydratedDocument<Script>;
|
|
32
7
|
export declare const SCRIPT_STATUS_VALUES: readonly ["draft", "pending", "approved", "reproved"];
|
|
33
8
|
export type ScriptStatus = (typeof SCRIPT_STATUS_VALUES)[number];
|
|
@@ -68,7 +43,7 @@ export declare class ScriptVersion {
|
|
|
68
43
|
fileUrl?: string | null;
|
|
69
44
|
fileName?: string | null;
|
|
70
45
|
link?: string | null;
|
|
71
|
-
status:
|
|
46
|
+
status: "approved" | "reproved";
|
|
72
47
|
submittedBy?: string;
|
|
73
48
|
submittedAt?: Date;
|
|
74
49
|
decisions: ScriptDecision[];
|
|
@@ -17,19 +17,11 @@ const action_schema_1 = require("./action.schema");
|
|
|
17
17
|
const client_schema_1 = require("./client.schema");
|
|
18
18
|
const profile_schema_1 = require("./profile.schema");
|
|
19
19
|
const task_schema_1 = require("./task.schema");
|
|
20
|
-
exports.SCRIPT_STATUS_VALUES = [
|
|
21
|
-
|
|
22
|
-
'pending',
|
|
23
|
-
'approved',
|
|
24
|
-
'reproved',
|
|
25
|
-
];
|
|
26
|
-
exports.SCRIPT_DECISION_VALUES = [
|
|
27
|
-
'approved',
|
|
28
|
-
'reproved',
|
|
29
|
-
'questioned',
|
|
30
|
-
];
|
|
20
|
+
exports.SCRIPT_STATUS_VALUES = ["draft", "pending", "approved", "reproved"];
|
|
21
|
+
exports.SCRIPT_DECISION_VALUES = ["approved", "reproved", "questioned"];
|
|
31
22
|
let ScriptDecision = class ScriptDecision {
|
|
32
23
|
};
|
|
24
|
+
exports.ScriptDecision = ScriptDecision;
|
|
33
25
|
__decorate([
|
|
34
26
|
(0, swagger_1.ApiProperty)({ enum: exports.SCRIPT_DECISION_VALUES }),
|
|
35
27
|
(0, mongoose_1.Prop)({ type: String, enum: exports.SCRIPT_DECISION_VALUES, required: true }),
|
|
@@ -41,7 +33,7 @@ __decorate([
|
|
|
41
33
|
__metadata("design:type", String)
|
|
42
34
|
], ScriptDecision.prototype, "comment", void 0);
|
|
43
35
|
__decorate([
|
|
44
|
-
(0, swagger_1.ApiProperty)({ description:
|
|
36
|
+
(0, swagger_1.ApiProperty)({ description: "Time do cliente que respondeu, lido do JWT" }),
|
|
45
37
|
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
46
38
|
__metadata("design:type", String)
|
|
47
39
|
], ScriptDecision.prototype, "team", void 0);
|
|
@@ -55,13 +47,13 @@ __decorate([
|
|
|
55
47
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
56
48
|
__metadata("design:type", Date)
|
|
57
49
|
], ScriptDecision.prototype, "respondedAt", void 0);
|
|
58
|
-
ScriptDecision = __decorate([
|
|
50
|
+
exports.ScriptDecision = ScriptDecision = __decorate([
|
|
59
51
|
(0, mongoose_1.Schema)({ _id: false })
|
|
60
52
|
], ScriptDecision);
|
|
61
|
-
exports.ScriptDecision = ScriptDecision;
|
|
62
53
|
exports.ScriptDecisionSchema = mongoose_1.SchemaFactory.createForClass(ScriptDecision);
|
|
63
54
|
let ScriptStaffReply = class ScriptStaffReply {
|
|
64
55
|
};
|
|
56
|
+
exports.ScriptStaffReply = ScriptStaffReply;
|
|
65
57
|
__decorate([
|
|
66
58
|
(0, swagger_1.ApiProperty)(),
|
|
67
59
|
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
@@ -77,13 +69,13 @@ __decorate([
|
|
|
77
69
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
78
70
|
__metadata("design:type", Date)
|
|
79
71
|
], ScriptStaffReply.prototype, "repliedAt", void 0);
|
|
80
|
-
ScriptStaffReply = __decorate([
|
|
72
|
+
exports.ScriptStaffReply = ScriptStaffReply = __decorate([
|
|
81
73
|
(0, mongoose_1.Schema)({ _id: false })
|
|
82
74
|
], ScriptStaffReply);
|
|
83
|
-
exports.ScriptStaffReply = ScriptStaffReply;
|
|
84
75
|
exports.ScriptStaffReplySchema = mongoose_1.SchemaFactory.createForClass(ScriptStaffReply);
|
|
85
76
|
let ScriptVersion = class ScriptVersion {
|
|
86
77
|
};
|
|
78
|
+
exports.ScriptVersion = ScriptVersion;
|
|
87
79
|
__decorate([
|
|
88
80
|
(0, swagger_1.ApiProperty)(),
|
|
89
81
|
(0, mongoose_1.Prop)({ type: Number, required: true }),
|
|
@@ -105,8 +97,8 @@ __decorate([
|
|
|
105
97
|
__metadata("design:type", Object)
|
|
106
98
|
], ScriptVersion.prototype, "link", void 0);
|
|
107
99
|
__decorate([
|
|
108
|
-
(0, swagger_1.ApiProperty)({ enum: [
|
|
109
|
-
(0, mongoose_1.Prop)({ type: String, enum: [
|
|
100
|
+
(0, swagger_1.ApiProperty)({ enum: ["approved", "reproved"] }),
|
|
101
|
+
(0, mongoose_1.Prop)({ type: String, enum: ["approved", "reproved"], required: true }),
|
|
110
102
|
__metadata("design:type", String)
|
|
111
103
|
], ScriptVersion.prototype, "status", void 0);
|
|
112
104
|
__decorate([
|
|
@@ -134,10 +126,9 @@ __decorate([
|
|
|
134
126
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
135
127
|
__metadata("design:type", Date)
|
|
136
128
|
], ScriptVersion.prototype, "archivedAt", void 0);
|
|
137
|
-
ScriptVersion = __decorate([
|
|
129
|
+
exports.ScriptVersion = ScriptVersion = __decorate([
|
|
138
130
|
(0, mongoose_1.Schema)({ _id: false })
|
|
139
131
|
], ScriptVersion);
|
|
140
|
-
exports.ScriptVersion = ScriptVersion;
|
|
141
132
|
exports.ScriptVersionSchema = mongoose_1.SchemaFactory.createForClass(ScriptVersion);
|
|
142
133
|
/**
|
|
143
134
|
* Aprovação de roteiro: um documento por (action, profile, deliverableType,
|
|
@@ -147,6 +138,7 @@ exports.ScriptVersionSchema = mongoose_1.SchemaFactory.createForClass(ScriptVers
|
|
|
147
138
|
*/
|
|
148
139
|
let Script = class Script {
|
|
149
140
|
};
|
|
141
|
+
exports.Script = Script;
|
|
150
142
|
__decorate([
|
|
151
143
|
(0, swagger_1.ApiProperty)(),
|
|
152
144
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
@@ -154,23 +146,23 @@ __decorate([
|
|
|
154
146
|
], Script.prototype, "_id", void 0);
|
|
155
147
|
__decorate([
|
|
156
148
|
(0, swagger_1.ApiProperty)({ type: () => action_schema_1.Action }),
|
|
157
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
149
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Action", required: true }),
|
|
158
150
|
__metadata("design:type", Object)
|
|
159
151
|
], Script.prototype, "action", void 0);
|
|
160
152
|
__decorate([
|
|
161
153
|
(0, swagger_1.ApiProperty)({ type: () => client_schema_1.Client }),
|
|
162
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
154
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Client", required: false }),
|
|
163
155
|
__metadata("design:type", Object)
|
|
164
156
|
], Script.prototype, "client", void 0);
|
|
165
157
|
__decorate([
|
|
166
158
|
(0, swagger_1.ApiProperty)({ type: () => profile_schema_1.Profile }),
|
|
167
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
159
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Profile", required: true }),
|
|
168
160
|
__metadata("design:type", Object)
|
|
169
161
|
], Script.prototype, "profile", void 0);
|
|
170
162
|
__decorate([
|
|
171
163
|
(0, swagger_1.ApiProperty)({
|
|
172
164
|
enum: task_schema_1.TASK_FORMAT_VALUES,
|
|
173
|
-
description:
|
|
165
|
+
description: "Unidade de entrega do escopo (mesmos valores de recruitment.scope.delivery)",
|
|
174
166
|
}),
|
|
175
167
|
(0, mongoose_1.Prop)({ type: String, enum: task_schema_1.TASK_FORMAT_VALUES, required: true }),
|
|
176
168
|
__metadata("design:type", String)
|
|
@@ -200,7 +192,7 @@ __decorate([
|
|
|
200
192
|
__decorate([
|
|
201
193
|
(0, swagger_1.ApiProperty)({
|
|
202
194
|
required: false,
|
|
203
|
-
description:
|
|
195
|
+
description: "Alternativa ao arquivo — staff usa arquivo OU link",
|
|
204
196
|
}),
|
|
205
197
|
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
206
198
|
__metadata("design:type", Object)
|
|
@@ -211,14 +203,14 @@ __decorate([
|
|
|
211
203
|
type: String,
|
|
212
204
|
enum: exports.SCRIPT_STATUS_VALUES,
|
|
213
205
|
required: true,
|
|
214
|
-
default:
|
|
206
|
+
default: "draft",
|
|
215
207
|
}),
|
|
216
208
|
__metadata("design:type", String)
|
|
217
209
|
], Script.prototype, "status", void 0);
|
|
218
210
|
__decorate([
|
|
219
211
|
(0, swagger_1.ApiProperty)({
|
|
220
212
|
type: [String],
|
|
221
|
-
description:
|
|
213
|
+
description: "Snapshot de Client.requiredTeams no momento da criação — vazio = 1 aprovação resolve; com times = todos precisam aprovar",
|
|
222
214
|
}),
|
|
223
215
|
(0, mongoose_1.Prop)({ type: [String], required: false, default: [] }),
|
|
224
216
|
__metadata("design:type", Array)
|
|
@@ -262,13 +254,12 @@ __decorate([
|
|
|
262
254
|
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
263
255
|
__metadata("design:type", Date)
|
|
264
256
|
], Script.prototype, "updatedAt", void 0);
|
|
265
|
-
Script = __decorate([
|
|
257
|
+
exports.Script = Script = __decorate([
|
|
266
258
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
267
259
|
], Script);
|
|
268
|
-
exports.Script = Script;
|
|
269
260
|
exports.ScriptSchema = mongoose_1.SchemaFactory.createForClass(Script);
|
|
270
261
|
exports.ScriptSchema.index({ action: 1, profile: 1, deliverableType: 1, deliverableIndex: 1 }, { unique: true });
|
|
271
262
|
exports.ScriptSchema.index({ action: 1, status: 1 });
|
|
272
263
|
exports.ScriptSchema.index({ client: 1, status: 1 });
|
|
273
264
|
exports.ScriptSchema.index({ organization: 1, status: 1 });
|
|
274
|
-
exports.ScriptModel = (0, mongoose_2.model)(
|
|
265
|
+
exports.ScriptModel = (0, mongoose_2.model)("Script", exports.ScriptSchema);
|
|
@@ -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 { Profile } from './profile.schema';
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
2
|
+
import { Profile } from "./profile.schema";
|
|
28
3
|
export type SnapshotDocument = HydratedDocument<Snapshot>;
|
|
29
4
|
/**
|
|
30
5
|
* Histórico diário de seguidores por perfil, gravado pelo profile-sync-worker
|
|
@@ -39,7 +14,7 @@ export declare class Snapshot {
|
|
|
39
14
|
followers: number;
|
|
40
15
|
date: Date;
|
|
41
16
|
capturedAt: Date;
|
|
42
|
-
source:
|
|
17
|
+
source: "primetag";
|
|
43
18
|
createdAt?: Date;
|
|
44
19
|
updatedAt?: Date;
|
|
45
20
|
}
|
|
@@ -20,12 +20,13 @@ const mongoose_2 = require("mongoose");
|
|
|
20
20
|
*/
|
|
21
21
|
let Snapshot = class Snapshot {
|
|
22
22
|
};
|
|
23
|
+
exports.Snapshot = Snapshot;
|
|
23
24
|
__decorate([
|
|
24
25
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
25
26
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
26
27
|
], Snapshot.prototype, "_id", void 0);
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref:
|
|
29
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Profile", required: true }),
|
|
29
30
|
__metadata("design:type", Object)
|
|
30
31
|
], Snapshot.prototype, "profile", void 0);
|
|
31
32
|
__decorate([
|
|
@@ -45,7 +46,7 @@ __decorate([
|
|
|
45
46
|
__metadata("design:type", Date)
|
|
46
47
|
], Snapshot.prototype, "capturedAt", void 0);
|
|
47
48
|
__decorate([
|
|
48
|
-
(0, mongoose_1.Prop)({ type: String, enum: [
|
|
49
|
+
(0, mongoose_1.Prop)({ type: String, enum: ["primetag"], required: true, default: "primetag" }),
|
|
49
50
|
__metadata("design:type", String)
|
|
50
51
|
], Snapshot.prototype, "source", void 0);
|
|
51
52
|
__decorate([
|
|
@@ -56,10 +57,9 @@ __decorate([
|
|
|
56
57
|
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
57
58
|
__metadata("design:type", Date)
|
|
58
59
|
], Snapshot.prototype, "updatedAt", void 0);
|
|
59
|
-
Snapshot = __decorate([
|
|
60
|
-
(0, mongoose_1.Schema)({ collection:
|
|
60
|
+
exports.Snapshot = Snapshot = __decorate([
|
|
61
|
+
(0, mongoose_1.Schema)({ collection: "snapshots", timestamps: true })
|
|
61
62
|
], Snapshot);
|
|
62
|
-
exports.Snapshot = Snapshot;
|
|
63
63
|
exports.SnapshotSchema = mongoose_1.SchemaFactory.createForClass(Snapshot);
|
|
64
64
|
exports.SnapshotSchema.index({ profile: 1, date: 1 }, { unique: true });
|
|
65
|
-
exports.SnapshotModel = (0, mongoose_2.model)(
|
|
65
|
+
exports.SnapshotModel = (0, mongoose_2.model)("Snapshot", exports.SnapshotSchema);
|
|
@@ -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 { Schema as MongooseSchema, Types } from 'mongoose';
|
|
27
|
-
import { Store } from './store.schema';
|
|
1
|
+
import { Schema as MongooseSchema, Types } from "mongoose";
|
|
2
|
+
import { Store } from "./store.schema";
|
|
28
3
|
export declare const STORE_VISIT_STATUS_VALUES: readonly ["awaiting_confirmation", "confirmed", "awaiting_approval", "approved", "done", "finished"];
|
|
29
4
|
export type StoreVisitStatus = (typeof STORE_VISIT_STATUS_VALUES)[number];
|
|
30
5
|
export declare const STORE_VISIT_PERIOD_VALUES: readonly ["morning", "afternoon", "night"];
|