@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
|
@@ -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];
|
|
@@ -51,7 +26,7 @@ export declare const ProfileSchema: MongooseSchema<Profile, import("mongoose").M
|
|
|
51
26
|
_id: Types.ObjectId;
|
|
52
27
|
}> & {
|
|
53
28
|
__v: number;
|
|
54
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Profile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Profile>, {}, import("mongoose").
|
|
29
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Profile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Profile>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Profile> & Required<{
|
|
55
30
|
_id: Types.ObjectId;
|
|
56
31
|
}> & {
|
|
57
32
|
__v: number;
|
|
@@ -64,7 +39,7 @@ export declare const ProfileModel: import("mongoose").Model<Profile, {}, {}, {},
|
|
|
64
39
|
_id: Types.ObjectId;
|
|
65
40
|
}> & {
|
|
66
41
|
__v: number;
|
|
67
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Profile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Profile>, {}, import("mongoose").
|
|
42
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Profile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Profile>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Profile> & Required<{
|
|
68
43
|
_id: Types.ObjectId;
|
|
69
44
|
}> & {
|
|
70
45
|
__v: 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;
|
|
@@ -38,7 +13,7 @@ export declare const FormatItemSchema: import("mongoose").Schema<FormatItem, imp
|
|
|
38
13
|
_id: import("mongoose").Types.ObjectId;
|
|
39
14
|
} & {
|
|
40
15
|
__v: number;
|
|
41
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FormatItem, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FormatItem>, {}, import("mongoose").
|
|
16
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FormatItem, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FormatItem>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<FormatItem> & {
|
|
42
17
|
_id: import("mongoose").Types.ObjectId;
|
|
43
18
|
} & {
|
|
44
19
|
__v: 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;
|
|
@@ -56,7 +31,7 @@ export declare const ProjectProfileSchema: import("mongoose").Schema<ProjectProf
|
|
|
56
31
|
_id: import("mongoose").Types.ObjectId;
|
|
57
32
|
} & {
|
|
58
33
|
__v: number;
|
|
59
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ProjectProfile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ProjectProfile>, {}, import("mongoose").
|
|
34
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ProjectProfile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ProjectProfile>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ProjectProfile> & {
|
|
60
35
|
_id: import("mongoose").Types.ObjectId;
|
|
61
36
|
} & {
|
|
62
37
|
__v: number;
|
|
@@ -72,12 +47,12 @@ export declare const ProjectProductionCostSchema: import("mongoose").Schema<Proj
|
|
|
72
47
|
_id: import("mongoose").Types.ObjectId;
|
|
73
48
|
} & {
|
|
74
49
|
__v: number;
|
|
75
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ProjectProductionCost, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ProjectProductionCost>, {}, import("mongoose").
|
|
50
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ProjectProductionCost, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ProjectProductionCost>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ProjectProductionCost> & {
|
|
76
51
|
_id: import("mongoose").Types.ObjectId;
|
|
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;
|
|
@@ -91,7 +66,7 @@ export declare const ProjectSchema: import("mongoose").Schema<Project, import("m
|
|
|
91
66
|
_id: import("mongoose").Types.ObjectId;
|
|
92
67
|
} & {
|
|
93
68
|
__v: number;
|
|
94
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Project, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Project>, {}, import("mongoose").
|
|
69
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Project, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Project>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Project> & {
|
|
95
70
|
_id: import("mongoose").Types.ObjectId;
|
|
96
71
|
} & {
|
|
97
72
|
__v: number;
|
|
@@ -104,7 +79,7 @@ export declare const ProjectModel: import("mongoose").Model<Project, {}, {}, {},
|
|
|
104
79
|
_id: import("mongoose").Types.ObjectId;
|
|
105
80
|
} & {
|
|
106
81
|
__v: number;
|
|
107
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Project, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Project>, {}, import("mongoose").
|
|
82
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Project, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Project>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Project> & {
|
|
108
83
|
_id: import("mongoose").Types.ObjectId;
|
|
109
84
|
} & {
|
|
110
85
|
__v: 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;
|
|
@@ -35,7 +10,7 @@ export declare const ProspectNoteSchema: MongooseSchema<ProspectNote, import("mo
|
|
|
35
10
|
_id: Types.ObjectId;
|
|
36
11
|
} & {
|
|
37
12
|
__v: number;
|
|
38
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ProspectNote, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ProspectNote>, {}, import("mongoose").
|
|
13
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ProspectNote, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ProspectNote>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ProspectNote> & {
|
|
39
14
|
_id: Types.ObjectId;
|
|
40
15
|
} & {
|
|
41
16
|
__v: number;
|
|
@@ -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;
|
|
@@ -56,7 +31,7 @@ export declare const ProspectSchema: MongooseSchema<Prospect, import("mongoose")
|
|
|
56
31
|
_id: Types.ObjectId;
|
|
57
32
|
}> & {
|
|
58
33
|
__v: number;
|
|
59
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Prospect, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Prospect>, {}, import("mongoose").
|
|
34
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Prospect, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Prospect>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Prospect> & Required<{
|
|
60
35
|
_id: Types.ObjectId;
|
|
61
36
|
}> & {
|
|
62
37
|
__v: number;
|
|
@@ -69,7 +44,7 @@ export declare const ProspectModel: import("mongoose").Model<Prospect, {}, {}, {
|
|
|
69
44
|
_id: Types.ObjectId;
|
|
70
45
|
}> & {
|
|
71
46
|
__v: number;
|
|
72
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Prospect, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Prospect>, {}, import("mongoose").
|
|
47
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Prospect, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Prospect>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Prospect> & Required<{
|
|
73
48
|
_id: Types.ObjectId;
|
|
74
49
|
}> & {
|
|
75
50
|
__v: number;
|
|
@@ -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);
|
|
@@ -1,32 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { Action } from './action.schema';
|
|
28
|
-
import type { Influencer } from './influencer.schema';
|
|
29
|
-
import { Profile } from './profile.schema';
|
|
1
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
2
|
+
import { Action } from "./action.schema";
|
|
3
|
+
import type { Influencer } from "./influencer.schema";
|
|
4
|
+
import { Profile } from "./profile.schema";
|
|
30
5
|
export type RecruitmentDocument = HydratedDocument<Recruitment>;
|
|
31
6
|
export declare class Delivery {
|
|
32
7
|
reels?: number;
|
|
@@ -43,7 +18,7 @@ export declare const DeliverySchema: MongooseSchema<Delivery, import("mongoose")
|
|
|
43
18
|
_id: Types.ObjectId;
|
|
44
19
|
} & {
|
|
45
20
|
__v: number;
|
|
46
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Delivery, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Delivery>, {}, import("mongoose").
|
|
21
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Delivery, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Delivery>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Delivery> & {
|
|
47
22
|
_id: Types.ObjectId;
|
|
48
23
|
} & {
|
|
49
24
|
__v: number;
|
|
@@ -56,7 +31,7 @@ export declare const RightSchema: MongooseSchema<Right, import("mongoose").Model
|
|
|
56
31
|
_id: Types.ObjectId;
|
|
57
32
|
} & {
|
|
58
33
|
__v: number;
|
|
59
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Right, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Right>, {}, import("mongoose").
|
|
34
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Right, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Right>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Right> & {
|
|
60
35
|
_id: Types.ObjectId;
|
|
61
36
|
} & {
|
|
62
37
|
__v: number;
|
|
@@ -70,7 +45,7 @@ export declare const RightsSchema: MongooseSchema<Rights, import("mongoose").Mod
|
|
|
70
45
|
_id: Types.ObjectId;
|
|
71
46
|
} & {
|
|
72
47
|
__v: number;
|
|
73
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Rights, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Rights>, {}, import("mongoose").
|
|
48
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Rights, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Rights>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Rights> & {
|
|
74
49
|
_id: Types.ObjectId;
|
|
75
50
|
} & {
|
|
76
51
|
__v: number;
|
|
@@ -83,7 +58,7 @@ export declare const InstallmentInfoSchema: MongooseSchema<InstallmentInfo, impo
|
|
|
83
58
|
_id: Types.ObjectId;
|
|
84
59
|
} & {
|
|
85
60
|
__v: number;
|
|
86
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InstallmentInfo, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<InstallmentInfo>, {}, import("mongoose").
|
|
61
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, InstallmentInfo, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<InstallmentInfo>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<InstallmentInfo> & {
|
|
87
62
|
_id: Types.ObjectId;
|
|
88
63
|
} & {
|
|
89
64
|
__v: number;
|
|
@@ -103,7 +78,7 @@ export declare const ExchangeSchema: MongooseSchema<Exchange, import("mongoose")
|
|
|
103
78
|
_id: Types.ObjectId;
|
|
104
79
|
} & {
|
|
105
80
|
__v: number;
|
|
106
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Exchange, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Exchange>, {}, import("mongoose").
|
|
81
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Exchange, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Exchange>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Exchange> & {
|
|
107
82
|
_id: Types.ObjectId;
|
|
108
83
|
} & {
|
|
109
84
|
__v: number;
|
|
@@ -116,7 +91,7 @@ export declare const CollabSchema: MongooseSchema<Collab, import("mongoose").Mod
|
|
|
116
91
|
_id: Types.ObjectId;
|
|
117
92
|
} & {
|
|
118
93
|
__v: number;
|
|
119
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Collab, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Collab>, {}, import("mongoose").
|
|
94
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Collab, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Collab>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Collab> & {
|
|
120
95
|
_id: Types.ObjectId;
|
|
121
96
|
} & {
|
|
122
97
|
__v: number;
|
|
@@ -128,7 +103,7 @@ export declare const OptInSchema: MongooseSchema<OptIn, import("mongoose").Model
|
|
|
128
103
|
_id: Types.ObjectId;
|
|
129
104
|
} & {
|
|
130
105
|
__v: number;
|
|
131
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OptIn, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OptIn>, {}, import("mongoose").
|
|
106
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OptIn, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OptIn>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<OptIn> & {
|
|
132
107
|
_id: Types.ObjectId;
|
|
133
108
|
} & {
|
|
134
109
|
__v: number;
|
|
@@ -143,7 +118,7 @@ export declare const ScopeEstimateMetricsSchema: MongooseSchema<ScopeEstimateMet
|
|
|
143
118
|
_id: Types.ObjectId;
|
|
144
119
|
} & {
|
|
145
120
|
__v: number;
|
|
146
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimateMetrics, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimateMetrics>, {}, import("mongoose").
|
|
121
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimateMetrics, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimateMetrics>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScopeEstimateMetrics> & {
|
|
147
122
|
_id: Types.ObjectId;
|
|
148
123
|
} & {
|
|
149
124
|
__v: number;
|
|
@@ -159,7 +134,7 @@ export declare const ScopeEstimateBreakdownSchema: MongooseSchema<ScopeEstimateB
|
|
|
159
134
|
_id: Types.ObjectId;
|
|
160
135
|
} & {
|
|
161
136
|
__v: number;
|
|
162
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimateBreakdown, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimateBreakdown>, {}, import("mongoose").
|
|
137
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimateBreakdown, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimateBreakdown>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScopeEstimateBreakdown> & {
|
|
163
138
|
_id: Types.ObjectId;
|
|
164
139
|
} & {
|
|
165
140
|
__v: number;
|
|
@@ -176,7 +151,7 @@ export declare const ScopeEstimatesSchema: MongooseSchema<ScopeEstimates, import
|
|
|
176
151
|
_id: Types.ObjectId;
|
|
177
152
|
} & {
|
|
178
153
|
__v: number;
|
|
179
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimates>, {}, import("mongoose").
|
|
154
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScopeEstimates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ScopeEstimates>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<ScopeEstimates> & {
|
|
180
155
|
_id: Types.ObjectId;
|
|
181
156
|
} & {
|
|
182
157
|
__v: number;
|
|
@@ -202,7 +177,7 @@ export declare const ScopeSchema: MongooseSchema<Scope, import("mongoose").Model
|
|
|
202
177
|
_id: Types.ObjectId;
|
|
203
178
|
} & {
|
|
204
179
|
__v: number;
|
|
205
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Scope, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Scope>, {}, import("mongoose").
|
|
180
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Scope, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Scope>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Scope> & {
|
|
206
181
|
_id: Types.ObjectId;
|
|
207
182
|
} & {
|
|
208
183
|
__v: number;
|
|
@@ -215,7 +190,7 @@ export declare const RecruitmentProfileSchema: MongooseSchema<RecruitmentProfile
|
|
|
215
190
|
_id: Types.ObjectId;
|
|
216
191
|
} & {
|
|
217
192
|
__v: number;
|
|
218
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, RecruitmentProfile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<RecruitmentProfile>, {}, import("mongoose").
|
|
193
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, RecruitmentProfile, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<RecruitmentProfile>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<RecruitmentProfile> & {
|
|
219
194
|
_id: Types.ObjectId;
|
|
220
195
|
} & {
|
|
221
196
|
__v: number;
|
|
@@ -224,7 +199,7 @@ export declare class Recruitment {
|
|
|
224
199
|
_id?: Types.ObjectId;
|
|
225
200
|
username: string;
|
|
226
201
|
picture: string;
|
|
227
|
-
status:
|
|
202
|
+
status: "selected" | "inContact" | "inApproval" | "recruited" | "removed";
|
|
228
203
|
action: Types.ObjectId | Action;
|
|
229
204
|
influencer: Types.ObjectId | Influencer;
|
|
230
205
|
profiles: RecruitmentProfile[];
|
|
@@ -237,7 +212,7 @@ export declare const RecruitmentSchema: MongooseSchema<Recruitment, import("mong
|
|
|
237
212
|
_id: Types.ObjectId;
|
|
238
213
|
}> & {
|
|
239
214
|
__v: number;
|
|
240
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>, {}, import("mongoose").
|
|
215
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Recruitment> & Required<{
|
|
241
216
|
_id: Types.ObjectId;
|
|
242
217
|
}> & {
|
|
243
218
|
__v: number;
|
|
@@ -250,7 +225,7 @@ export declare const RecruitmentModel: import("mongoose").Model<Recruitment, {},
|
|
|
250
225
|
_id: Types.ObjectId;
|
|
251
226
|
}> & {
|
|
252
227
|
__v: number;
|
|
253
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>, {}, import("mongoose").
|
|
228
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Recruitment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Recruitment>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<Recruitment> & Required<{
|
|
254
229
|
_id: Types.ObjectId;
|
|
255
230
|
}> & {
|
|
256
231
|
__v: number;
|