@grapadigital/shared-schemas 1.0.3 → 1.0.5
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 +1 -1
- package/dist/index.js +19 -0
- package/dist/schemas/campaign.schema.d.ts +19 -2
- package/dist/schemas/campaign.schema.js +190 -0
- package/dist/schemas/client.schema.d.ts +9 -0
- package/dist/schemas/client.schema.js +60 -0
- package/dist/schemas/content.schema.d.ts +15 -2
- package/dist/schemas/content.schema.js +183 -0
- package/dist/schemas/influencer.schema.d.ts +19 -2
- package/dist/schemas/influencer.schema.js +198 -0
- package/dist/schemas/payment.schema.d.ts +19 -2
- package/dist/schemas/payment.schema.js +129 -0
- package/dist/schemas/profile.schema.d.ts +5 -0
- package/dist/schemas/profile.schema.js +57 -0
- package/dist/schemas/recruitment.schema.d.ts +43 -2
- package/dist/schemas/recruitment.schema.js +316 -0
- package/package.json +3 -3
- package/src/index.ts +1 -1
- package/tsconfig.build.json +2 -2
- package/tsconfig.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./schemas/campaign.schema"), exports);
|
|
18
|
+
__exportStar(require("./schemas/client.schema"), exports);
|
|
19
|
+
__exportStar(require("./schemas/payment.schema"), exports);
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema, Types } from "mongoose";
|
|
26
27
|
export type CampaignDocument = HydratedDocument<Campaign>;
|
|
27
28
|
export declare class ComercialCard {
|
|
@@ -30,8 +31,12 @@ export declare class ComercialCard {
|
|
|
30
31
|
}
|
|
31
32
|
export declare const ComercialCardSchema: MongooseSchema<ComercialCard, import("mongoose").Model<ComercialCard, any, any, any, import("mongoose").Document<unknown, any, ComercialCard> & ComercialCard & {
|
|
32
33
|
_id: Types.ObjectId;
|
|
34
|
+
} & {
|
|
35
|
+
__v: number;
|
|
33
36
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ComercialCard, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ComercialCard>> & import("mongoose").FlatRecord<ComercialCard> & {
|
|
34
37
|
_id: Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
35
40
|
}>;
|
|
36
41
|
export declare class Responsible {
|
|
37
42
|
name: string;
|
|
@@ -40,8 +45,12 @@ export declare class Responsible {
|
|
|
40
45
|
}
|
|
41
46
|
export declare const ResponsibleSchema: MongooseSchema<Responsible, import("mongoose").Model<Responsible, any, any, any, import("mongoose").Document<unknown, any, Responsible> & Responsible & {
|
|
42
47
|
_id: Types.ObjectId;
|
|
48
|
+
} & {
|
|
49
|
+
__v: number;
|
|
43
50
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Responsible, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Responsible>> & import("mongoose").FlatRecord<Responsible> & {
|
|
44
51
|
_id: Types.ObjectId;
|
|
52
|
+
} & {
|
|
53
|
+
__v: number;
|
|
45
54
|
}>;
|
|
46
55
|
export declare class Responsibles {
|
|
47
56
|
service: Responsible;
|
|
@@ -49,8 +58,12 @@ export declare class Responsibles {
|
|
|
49
58
|
}
|
|
50
59
|
export declare const ResponsiblesSchema: MongooseSchema<Responsibles, import("mongoose").Model<Responsibles, any, any, any, import("mongoose").Document<unknown, any, Responsibles> & Responsibles & {
|
|
51
60
|
_id: Types.ObjectId;
|
|
61
|
+
} & {
|
|
62
|
+
__v: number;
|
|
52
63
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Responsibles, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Responsibles>> & import("mongoose").FlatRecord<Responsibles> & {
|
|
53
64
|
_id: Types.ObjectId;
|
|
65
|
+
} & {
|
|
66
|
+
__v: number;
|
|
54
67
|
}>;
|
|
55
68
|
export declare class Campaign {
|
|
56
69
|
_id?: Types.ObjectId;
|
|
@@ -83,6 +96,10 @@ export declare class Campaign {
|
|
|
83
96
|
}
|
|
84
97
|
export declare const CampaignSchema: MongooseSchema<Campaign, import("mongoose").Model<Campaign, any, any, any, import("mongoose").Document<unknown, any, Campaign> & Campaign & Required<{
|
|
85
98
|
_id: Types.ObjectId;
|
|
86
|
-
}
|
|
99
|
+
}> & {
|
|
100
|
+
__v: number;
|
|
101
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Campaign, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Campaign>> & import("mongoose").FlatRecord<Campaign> & Required<{
|
|
87
102
|
_id: Types.ObjectId;
|
|
88
|
-
}
|
|
103
|
+
}> & {
|
|
104
|
+
__v: number;
|
|
105
|
+
}>;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CampaignSchema = exports.Campaign = exports.ResponsiblesSchema = exports.Responsibles = exports.ResponsibleSchema = exports.Responsible = exports.ComercialCardSchema = exports.ComercialCard = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let ComercialCard = class ComercialCard {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], ComercialCard.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ComercialCard.prototype, "title", void 0);
|
|
25
|
+
ComercialCard = __decorate([
|
|
26
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
27
|
+
], ComercialCard);
|
|
28
|
+
exports.ComercialCard = ComercialCard;
|
|
29
|
+
exports.ComercialCardSchema = mongoose_1.SchemaFactory.createForClass(ComercialCard);
|
|
30
|
+
let Responsible = class Responsible {
|
|
31
|
+
};
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, mongoose_1.Prop)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Responsible.prototype, "name", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, mongoose_1.Prop)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Responsible.prototype, "team", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, mongoose_1.Prop)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Responsible.prototype, "email", void 0);
|
|
44
|
+
Responsible = __decorate([
|
|
45
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
46
|
+
], Responsible);
|
|
47
|
+
exports.Responsible = Responsible;
|
|
48
|
+
exports.ResponsibleSchema = mongoose_1.SchemaFactory.createForClass(Responsible);
|
|
49
|
+
let Responsibles = class Responsibles {
|
|
50
|
+
};
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, mongoose_1.Prop)({ type: exports.ResponsibleSchema }),
|
|
53
|
+
__metadata("design:type", Responsible)
|
|
54
|
+
], Responsibles.prototype, "service", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, mongoose_1.Prop)({ type: exports.ResponsibleSchema, required: false }),
|
|
57
|
+
__metadata("design:type", Responsible)
|
|
58
|
+
], Responsibles.prototype, "comercial", void 0);
|
|
59
|
+
Responsibles = __decorate([
|
|
60
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
61
|
+
], Responsibles);
|
|
62
|
+
exports.Responsibles = Responsibles;
|
|
63
|
+
exports.ResponsiblesSchema = mongoose_1.SchemaFactory.createForClass(Responsibles);
|
|
64
|
+
let Campaign = class Campaign {
|
|
65
|
+
};
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
68
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
69
|
+
], Campaign.prototype, "_id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, mongoose_1.Prop)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Campaign.prototype, "title", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Campaign.prototype, "thumbnail", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, mongoose_1.Prop)(),
|
|
80
|
+
__metadata("design:type", Date)
|
|
81
|
+
], Campaign.prototype, "startDate", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, mongoose_1.Prop)(),
|
|
84
|
+
__metadata("design:type", Date)
|
|
85
|
+
], Campaign.prototype, "endDate", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], Campaign.prototype, "nps", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, mongoose_1.Prop)({
|
|
92
|
+
type: String,
|
|
93
|
+
enum: ["config", "inProgress", "paused", "finished", "archived"],
|
|
94
|
+
default: "config",
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], Campaign.prototype, "status", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, mongoose_1.Prop)({ type: String, enum: ["partner", "exclusive"] }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], Campaign.prototype, "type", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
104
|
+
__metadata("design:type", Array)
|
|
105
|
+
], Campaign.prototype, "socialnetworks", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, mongoose_1.Prop)({ default: 0, required: false }),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], Campaign.prototype, "recruitedInfluencers", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, mongoose_1.Prop)({ default: 0, required: false }),
|
|
112
|
+
__metadata("design:type", Number)
|
|
113
|
+
], Campaign.prototype, "hiredInfluencers", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, mongoose_1.Prop)({ default: 0, required: false }),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], Campaign.prototype, "producedContent", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, mongoose_1.Prop)({ default: 0, required: false }),
|
|
120
|
+
__metadata("design:type", Number)
|
|
121
|
+
], Campaign.prototype, "hiredContent", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: "Client" }),
|
|
124
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
125
|
+
], Campaign.prototype, "client", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, mongoose_1.Prop)([
|
|
128
|
+
{
|
|
129
|
+
type: mongoose_2.Schema.Types.ObjectId,
|
|
130
|
+
ref: "Recruitment",
|
|
131
|
+
required: false,
|
|
132
|
+
},
|
|
133
|
+
]),
|
|
134
|
+
__metadata("design:type", Array)
|
|
135
|
+
], Campaign.prototype, "recruitments", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, mongoose_1.Prop)([
|
|
138
|
+
{ type: mongoose_2.Schema.Types.ObjectId, ref: "Content", required: false },
|
|
139
|
+
]),
|
|
140
|
+
__metadata("design:type", Array)
|
|
141
|
+
], Campaign.prototype, "contents", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, mongoose_1.Prop)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], Campaign.prototype, "cluster", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], Campaign.prototype, "shopping", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], Campaign.prototype, "project", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, mongoose_1.Prop)({ type: exports.ComercialCardSchema, required: false }),
|
|
156
|
+
__metadata("design:type", ComercialCard)
|
|
157
|
+
], Campaign.prototype, "comercialCard", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, mongoose_1.Prop)({ type: exports.ResponsiblesSchema }),
|
|
160
|
+
__metadata("design:type", Responsibles)
|
|
161
|
+
], Campaign.prototype, "responsibles", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], Campaign.prototype, "brandUsername", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
168
|
+
__metadata("design:type", String)
|
|
169
|
+
], Campaign.prototype, "hashtag", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
172
|
+
__metadata("design:type", String)
|
|
173
|
+
], Campaign.prototype, "BILink", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
176
|
+
__metadata("design:type", String)
|
|
177
|
+
], Campaign.prototype, "BISheets", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, mongoose_1.Prop)({ default: Date.now }),
|
|
180
|
+
__metadata("design:type", Date)
|
|
181
|
+
], Campaign.prototype, "createdAt", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, mongoose_1.Prop)({ default: Date.now }),
|
|
184
|
+
__metadata("design:type", Date)
|
|
185
|
+
], Campaign.prototype, "updatedAt", void 0);
|
|
186
|
+
Campaign = __decorate([
|
|
187
|
+
(0, mongoose_1.Schema)({ timestamps: true })
|
|
188
|
+
], Campaign);
|
|
189
|
+
exports.Campaign = Campaign;
|
|
190
|
+
exports.CampaignSchema = mongoose_1.SchemaFactory.createForClass(Campaign);
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from "mongoose";
|
|
26
27
|
export type ClientDocument = HydratedDocument<Client>;
|
|
27
28
|
export declare class Cluster {
|
|
@@ -30,8 +31,12 @@ export declare class Cluster {
|
|
|
30
31
|
}
|
|
31
32
|
export declare const ClusterSchema: MongooseSchema<Cluster, import("mongoose").Model<Cluster, any, any, any, import("mongoose").Document<unknown, any, Cluster> & Cluster & {
|
|
32
33
|
_id: import("mongoose").Types.ObjectId;
|
|
34
|
+
} & {
|
|
35
|
+
__v: number;
|
|
33
36
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Cluster, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Cluster>> & import("mongoose").FlatRecord<Cluster> & {
|
|
34
37
|
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
35
40
|
}>;
|
|
36
41
|
export declare class Client {
|
|
37
42
|
name: string;
|
|
@@ -43,6 +48,10 @@ export declare class Client {
|
|
|
43
48
|
}
|
|
44
49
|
export declare const ClientSchema: MongooseSchema<Client, import("mongoose").Model<Client, any, any, any, import("mongoose").Document<unknown, any, Client> & Client & {
|
|
45
50
|
_id: import("mongoose").Types.ObjectId;
|
|
51
|
+
} & {
|
|
52
|
+
__v: number;
|
|
46
53
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Client, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Client>> & import("mongoose").FlatRecord<Client> & {
|
|
47
54
|
_id: import("mongoose").Types.ObjectId;
|
|
55
|
+
} & {
|
|
56
|
+
__v: number;
|
|
48
57
|
}>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ClientSchema = exports.Client = exports.ClusterSchema = exports.Cluster = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let Cluster = class Cluster {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Cluster.prototype, "key", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Cluster.prototype, "label", void 0);
|
|
25
|
+
Cluster = __decorate([
|
|
26
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
27
|
+
], Cluster);
|
|
28
|
+
exports.Cluster = Cluster;
|
|
29
|
+
exports.ClusterSchema = mongoose_1.SchemaFactory.createForClass(Cluster);
|
|
30
|
+
let Client = class Client {
|
|
31
|
+
};
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, mongoose_1.Prop)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Client.prototype, "name", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, mongoose_1.Prop)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Client.prototype, "document", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, mongoose_1.Prop)({ type: [exports.ClusterSchema], default: [] }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], Client.prototype, "clusters", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, mongoose_1.Prop)([{ type: mongoose_2.Schema.Types.ObjectId, ref: "Campaign" }]),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], Client.prototype, "campaigns", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, mongoose_1.Prop)({ default: Date.now }),
|
|
50
|
+
__metadata("design:type", Date)
|
|
51
|
+
], Client.prototype, "createdAt", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, mongoose_1.Prop)({ default: Date.now }),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], Client.prototype, "updatedAt", void 0);
|
|
56
|
+
Client = __decorate([
|
|
57
|
+
(0, mongoose_1.Schema)({ timestamps: true })
|
|
58
|
+
], Client);
|
|
59
|
+
exports.Client = Client;
|
|
60
|
+
exports.ClientSchema = mongoose_1.SchemaFactory.createForClass(Client);
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
26
27
|
export type ContentDocument = HydratedDocument<Content>;
|
|
27
28
|
export declare class Metrics {
|
|
@@ -41,8 +42,12 @@ export declare class Metrics {
|
|
|
41
42
|
}
|
|
42
43
|
export declare const MetricsSchema: MongooseSchema<Metrics, import("mongoose").Model<Metrics, any, any, any, import("mongoose").Document<unknown, any, Metrics> & Metrics & {
|
|
43
44
|
_id: import("mongoose").Types.ObjectId;
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
44
47
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Metrics, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Metrics>> & import("mongoose").FlatRecord<Metrics> & {
|
|
45
48
|
_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
} & {
|
|
50
|
+
__v: number;
|
|
46
51
|
}>;
|
|
47
52
|
export declare class Estimates {
|
|
48
53
|
impressionCount?: number;
|
|
@@ -52,8 +57,12 @@ export declare class Estimates {
|
|
|
52
57
|
}
|
|
53
58
|
export declare const EstimatesSchema: MongooseSchema<Estimates, import("mongoose").Model<Estimates, any, any, any, import("mongoose").Document<unknown, any, Estimates> & Estimates & {
|
|
54
59
|
_id: import("mongoose").Types.ObjectId;
|
|
60
|
+
} & {
|
|
61
|
+
__v: number;
|
|
55
62
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Estimates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Estimates>> & import("mongoose").FlatRecord<Estimates> & {
|
|
56
63
|
_id: import("mongoose").Types.ObjectId;
|
|
64
|
+
} & {
|
|
65
|
+
__v: number;
|
|
57
66
|
}>;
|
|
58
67
|
export declare class Content {
|
|
59
68
|
_id: MongooseSchema.Types.ObjectId;
|
|
@@ -79,6 +88,10 @@ export declare class Content {
|
|
|
79
88
|
}
|
|
80
89
|
export declare const ContentSchema: MongooseSchema<Content, import("mongoose").Model<Content, any, any, any, import("mongoose").Document<unknown, any, Content> & Content & Required<{
|
|
81
90
|
_id: MongooseSchema.Types.ObjectId;
|
|
82
|
-
}
|
|
91
|
+
}> & {
|
|
92
|
+
__v: number;
|
|
93
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Content, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Content>> & import("mongoose").FlatRecord<Content> & Required<{
|
|
83
94
|
_id: MongooseSchema.Types.ObjectId;
|
|
84
|
-
}
|
|
95
|
+
}> & {
|
|
96
|
+
__v: number;
|
|
97
|
+
}>;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContentSchema = exports.Content = exports.EstimatesSchema = exports.Estimates = exports.MetricsSchema = exports.Metrics = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let Metrics = class Metrics {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], Metrics.prototype, "impressionCount", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Metrics.prototype, "reachCount", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], Metrics.prototype, "likeCount", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], Metrics.prototype, "commentCount", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], Metrics.prototype, "savedCount", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], Metrics.prototype, "sharesCount", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], Metrics.prototype, "storyCount", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], Metrics.prototype, "tapBackCount", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], Metrics.prototype, "clickCount", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Metrics.prototype, "replyCount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], Metrics.prototype, "emv", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], Metrics.prototype, "engagementCount", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], Metrics.prototype, "engagementRate", void 0);
|
|
69
|
+
Metrics = __decorate([
|
|
70
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
71
|
+
], Metrics);
|
|
72
|
+
exports.Metrics = Metrics;
|
|
73
|
+
exports.MetricsSchema = mongoose_1.SchemaFactory.createForClass(Metrics);
|
|
74
|
+
let Estimates = class Estimates {
|
|
75
|
+
};
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], Estimates.prototype, "impressionCount", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], Estimates.prototype, "reachCount", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
|
+
], Estimates.prototype, "engagementCount", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], Estimates.prototype, "engagementRate", void 0);
|
|
92
|
+
Estimates = __decorate([
|
|
93
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
94
|
+
], Estimates);
|
|
95
|
+
exports.Estimates = Estimates;
|
|
96
|
+
exports.EstimatesSchema = mongoose_1.SchemaFactory.createForClass(Estimates);
|
|
97
|
+
let Content = class Content {
|
|
98
|
+
};
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true }),
|
|
101
|
+
__metadata("design:type", mongoose_2.Schema.Types.ObjectId)
|
|
102
|
+
], Content.prototype, "_id", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, mongoose_1.Prop)(),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], Content.prototype, "caption", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, mongoose_1.Prop)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], Content.prototype, "thumbnailUrl", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, mongoose_1.Prop)(),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], Content.prototype, "link", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, mongoose_1.Prop)(),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], Content.prototype, "mediaUrl", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, mongoose_1.Prop)({ type: String, enum: ['reel', 'image', 'carousel', 'story', 'video'] }),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], Content.prototype, "type", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, mongoose_1.Prop)({ type: String, enum: ['withTag', 'withoutTag', 'brandExposure'] }),
|
|
125
|
+
__metadata("design:type", String)
|
|
126
|
+
], Content.prototype, "tagType", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, mongoose_1.Prop)({ type: String, enum: ['instagram', 'tiktok', 'youtube'] }),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], Content.prototype, "socialnetwork", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, mongoose_1.Prop)({ type: String, enum: ['approved', 'repproved', 'deleted'] }),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], Content.prototype, "status", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Profile' }),
|
|
137
|
+
__metadata("design:type", mongoose_2.Schema.Types.ObjectId)
|
|
138
|
+
], Content.prototype, "profile", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Campaign' }),
|
|
141
|
+
__metadata("design:type", mongoose_2.Schema.Types.ObjectId)
|
|
142
|
+
], Content.prototype, "campaign", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, mongoose_1.Prop)(),
|
|
145
|
+
__metadata("design:type", Date)
|
|
146
|
+
], Content.prototype, "postedAt", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, mongoose_1.Prop)(),
|
|
149
|
+
__metadata("design:type", Boolean)
|
|
150
|
+
], Content.prototype, "isCollab", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, mongoose_1.Prop)([{ type: mongoose_2.Schema.Types.ObjectId, ref: 'Profile' }]),
|
|
153
|
+
__metadata("design:type", Array)
|
|
154
|
+
], Content.prototype, "collabs", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
(0, mongoose_1.Prop)({ type: exports.MetricsSchema, required: false }),
|
|
157
|
+
__metadata("design:type", Metrics)
|
|
158
|
+
], Content.prototype, "metrics", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, mongoose_1.Prop)({ type: exports.MetricsSchema }),
|
|
161
|
+
__metadata("design:type", Estimates)
|
|
162
|
+
], Content.prototype, "estimates", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
(0, mongoose_1.Prop)(),
|
|
165
|
+
__metadata("design:type", Boolean)
|
|
166
|
+
], Content.prototype, "partnerActivationPost", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, mongoose_1.Prop)(),
|
|
169
|
+
__metadata("design:type", String)
|
|
170
|
+
], Content.prototype, "googleSheetRow", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
(0, mongoose_1.Prop)({ default: Date.now }),
|
|
173
|
+
__metadata("design:type", Date)
|
|
174
|
+
], Content.prototype, "createdAt", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, mongoose_1.Prop)({ default: Date.now }),
|
|
177
|
+
__metadata("design:type", Date)
|
|
178
|
+
], Content.prototype, "updatedAt", void 0);
|
|
179
|
+
Content = __decorate([
|
|
180
|
+
(0, mongoose_1.Schema)({ timestamps: true })
|
|
181
|
+
], Content);
|
|
182
|
+
exports.Content = Content;
|
|
183
|
+
exports.ContentSchema = mongoose_1.SchemaFactory.createForClass(Content);
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { HydratedDocument, Schema as MongooseSchema } from "mongoose";
|
|
26
27
|
export type InfluencerDocument = HydratedDocument<Influencer>;
|
|
27
28
|
export declare class Address {
|
|
@@ -34,8 +35,12 @@ export declare class Address {
|
|
|
34
35
|
}
|
|
35
36
|
export declare const AddressSchema: MongooseSchema<Address, import("mongoose").Model<Address, any, any, any, import("mongoose").Document<unknown, any, Address> & Address & {
|
|
36
37
|
_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
} & {
|
|
39
|
+
__v: number;
|
|
37
40
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Address, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Address>> & import("mongoose").FlatRecord<Address> & {
|
|
38
41
|
_id: import("mongoose").Types.ObjectId;
|
|
42
|
+
} & {
|
|
43
|
+
__v: number;
|
|
39
44
|
}>;
|
|
40
45
|
export declare class Payment {
|
|
41
46
|
legalName: string;
|
|
@@ -50,8 +55,12 @@ export declare class Payment {
|
|
|
50
55
|
}
|
|
51
56
|
export declare const PaymentSchema: MongooseSchema<Payment, import("mongoose").Model<Payment, any, any, any, import("mongoose").Document<unknown, any, Payment> & Payment & {
|
|
52
57
|
_id: import("mongoose").Types.ObjectId;
|
|
58
|
+
} & {
|
|
59
|
+
__v: number;
|
|
53
60
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Payment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Payment>> & import("mongoose").FlatRecord<Payment> & {
|
|
54
61
|
_id: import("mongoose").Types.ObjectId;
|
|
62
|
+
} & {
|
|
63
|
+
__v: number;
|
|
55
64
|
}>;
|
|
56
65
|
export declare class Advisor {
|
|
57
66
|
firstName: string;
|
|
@@ -62,8 +71,12 @@ export declare class Advisor {
|
|
|
62
71
|
}
|
|
63
72
|
export declare const AdvisorSchema: MongooseSchema<Advisor, import("mongoose").Model<Advisor, any, any, any, import("mongoose").Document<unknown, any, Advisor> & Advisor & {
|
|
64
73
|
_id: import("mongoose").Types.ObjectId;
|
|
74
|
+
} & {
|
|
75
|
+
__v: number;
|
|
65
76
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Advisor, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Advisor>> & import("mongoose").FlatRecord<Advisor> & {
|
|
66
77
|
_id: import("mongoose").Types.ObjectId;
|
|
78
|
+
} & {
|
|
79
|
+
__v: number;
|
|
67
80
|
}>;
|
|
68
81
|
export declare class Influencer {
|
|
69
82
|
_id: MongooseSchema.Types.ObjectId;
|
|
@@ -88,6 +101,10 @@ export declare class Influencer {
|
|
|
88
101
|
}
|
|
89
102
|
export declare const InfluencerSchema: MongooseSchema<Influencer, import("mongoose").Model<Influencer, any, any, any, import("mongoose").Document<unknown, any, Influencer> & Influencer & Required<{
|
|
90
103
|
_id: MongooseSchema.Types.ObjectId;
|
|
91
|
-
}
|
|
104
|
+
}> & {
|
|
105
|
+
__v: number;
|
|
106
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Influencer, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Influencer>> & import("mongoose").FlatRecord<Influencer> & Required<{
|
|
92
107
|
_id: MongooseSchema.Types.ObjectId;
|
|
93
|
-
}
|
|
108
|
+
}> & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}>;
|