@grapadigital/shared-schemas 1.0.97 → 1.0.99
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 +14 -15
- package/dist/index.js +30 -31
- package/dist/schemas/action.schema.d.ts +109 -84
- package/dist/schemas/action.schema.js +181 -181
- package/dist/schemas/campaign.schema.d.ts +57 -32
- package/dist/schemas/campaign.schema.js +42 -42
- package/dist/schemas/client.schema.d.ts +66 -41
- package/dist/schemas/client.schema.js +42 -42
- package/dist/schemas/content.schema.d.ts +111 -86
- package/dist/schemas/content.schema.js +187 -187
- package/dist/schemas/influencer.schema.d.ts +71 -46
- package/dist/schemas/influencer.schema.js +60 -60
- package/dist/schemas/invoice.schema.d.ts +99 -68
- package/dist/schemas/invoice.schema.js +198 -174
- package/dist/schemas/log.schema.d.ts +68 -43
- package/dist/schemas/log.schema.js +89 -89
- package/dist/schemas/payment.schema.d.ts +194 -89
- package/dist/schemas/payment.schema.js +304 -154
- package/dist/schemas/profile.schema.d.ts +61 -36
- package/dist/schemas/profile.schema.js +58 -58
- package/dist/schemas/recruitment.schema.d.ts +210 -185
- package/dist/schemas/recruitment.schema.js +317 -317
- package/dist/schemas/sale.schema.d.ts +137 -115
- package/dist/schemas/sale.schema.js +355 -365
- package/dist/schemas/supplier.schema.d.ts +52 -27
- package/dist/schemas/supplier.schema.js +20 -20
- package/dist/schemas/token.schema.d.ts +60 -35
- package/dist/schemas/token.schema.js +58 -58
- package/dist/schemas/user.schema.d.ts +113 -88
- package/dist/schemas/user.schema.js +159 -159
- package/dist/schemas/webhook.schema.d.ts +101 -76
- package/dist/schemas/webhook.schema.js +125 -125
- package/package.json +1 -1
- package/src/index.ts +0 -1
- package/src/schemas/action.schema.ts +14 -15
- package/src/schemas/invoice.schema.ts +19 -6
- package/src/schemas/payment.schema.ts +145 -66
- package/src/schemas/sale.schema.ts +25 -23
- package/src/schemas/payment_new.schema.ts +0 -134
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
export * from './schemas/action.schema';
|
|
2
|
-
export * from './schemas/client.schema';
|
|
3
|
-
export * from './schemas/content.schema';
|
|
4
|
-
export * from './schemas/influencer.schema';
|
|
5
|
-
export * from './schemas/supplier.schema';
|
|
6
|
-
export * from './schemas/campaign.schema';
|
|
7
|
-
export * from './schemas/payment.schema';
|
|
8
|
-
export * from './schemas/
|
|
9
|
-
export * from './schemas/
|
|
10
|
-
export * from './schemas/
|
|
11
|
-
export * from './schemas/
|
|
12
|
-
export * from './schemas/
|
|
13
|
-
export * from './schemas/
|
|
14
|
-
export * from './schemas/
|
|
15
|
-
export * from './schemas/log.schema';
|
|
1
|
+
export * from './schemas/action.schema';
|
|
2
|
+
export * from './schemas/client.schema';
|
|
3
|
+
export * from './schemas/content.schema';
|
|
4
|
+
export * from './schemas/influencer.schema';
|
|
5
|
+
export * from './schemas/supplier.schema';
|
|
6
|
+
export * from './schemas/campaign.schema';
|
|
7
|
+
export * from './schemas/payment.schema';
|
|
8
|
+
export * from './schemas/profile.schema';
|
|
9
|
+
export * from './schemas/recruitment.schema';
|
|
10
|
+
export * from './schemas/token.schema';
|
|
11
|
+
export * from './schemas/webhook.schema';
|
|
12
|
+
export * from './schemas/sale.schema';
|
|
13
|
+
export * from './schemas/invoice.schema';
|
|
14
|
+
export * from './schemas/log.schema';
|
package/dist/index.js
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
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/action.schema"), exports);
|
|
18
|
-
__exportStar(require("./schemas/client.schema"), exports);
|
|
19
|
-
__exportStar(require("./schemas/content.schema"), exports);
|
|
20
|
-
__exportStar(require("./schemas/influencer.schema"), exports);
|
|
21
|
-
__exportStar(require("./schemas/supplier.schema"), exports);
|
|
22
|
-
__exportStar(require("./schemas/campaign.schema"), exports);
|
|
23
|
-
__exportStar(require("./schemas/payment.schema"), exports);
|
|
24
|
-
__exportStar(require("./schemas/
|
|
25
|
-
__exportStar(require("./schemas/
|
|
26
|
-
__exportStar(require("./schemas/
|
|
27
|
-
__exportStar(require("./schemas/
|
|
28
|
-
__exportStar(require("./schemas/
|
|
29
|
-
__exportStar(require("./schemas/
|
|
30
|
-
__exportStar(require("./schemas/
|
|
31
|
-
__exportStar(require("./schemas/log.schema"), exports);
|
|
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/action.schema"), exports);
|
|
18
|
+
__exportStar(require("./schemas/client.schema"), exports);
|
|
19
|
+
__exportStar(require("./schemas/content.schema"), exports);
|
|
20
|
+
__exportStar(require("./schemas/influencer.schema"), exports);
|
|
21
|
+
__exportStar(require("./schemas/supplier.schema"), exports);
|
|
22
|
+
__exportStar(require("./schemas/campaign.schema"), exports);
|
|
23
|
+
__exportStar(require("./schemas/payment.schema"), exports);
|
|
24
|
+
__exportStar(require("./schemas/profile.schema"), exports);
|
|
25
|
+
__exportStar(require("./schemas/recruitment.schema"), exports);
|
|
26
|
+
__exportStar(require("./schemas/token.schema"), exports);
|
|
27
|
+
__exportStar(require("./schemas/webhook.schema"), exports);
|
|
28
|
+
__exportStar(require("./schemas/sale.schema"), exports);
|
|
29
|
+
__exportStar(require("./schemas/invoice.schema"), exports);
|
|
30
|
+
__exportStar(require("./schemas/log.schema"), exports);
|
|
@@ -1,84 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/session" />
|
|
19
|
+
/// <reference types="mongoose/types/types" />
|
|
20
|
+
/// <reference types="mongoose/types/utility" />
|
|
21
|
+
/// <reference types="mongoose/types/validation" />
|
|
22
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
27
|
+
import { Recruitment } from './recruitment.schema';
|
|
28
|
+
import { Content } from './content.schema';
|
|
29
|
+
import { Client } from './client.schema';
|
|
30
|
+
import { Sale } from './sale.schema';
|
|
31
|
+
export type ActionDocument = HydratedDocument<Action>;
|
|
32
|
+
export declare class Responsible {
|
|
33
|
+
name: string;
|
|
34
|
+
team: string;
|
|
35
|
+
email: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const ResponsibleSchema: MongooseSchema<Responsible, import("mongoose").Model<Responsible, any, any, any, import("mongoose").Document<unknown, any, Responsible, any, {}> & Responsible & {
|
|
38
|
+
_id: Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Responsible, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Responsible>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Responsible> & {
|
|
42
|
+
_id: Types.ObjectId;
|
|
43
|
+
} & {
|
|
44
|
+
__v: number;
|
|
45
|
+
}>;
|
|
46
|
+
export declare class Responsibles {
|
|
47
|
+
service: Responsible;
|
|
48
|
+
comercial?: Responsible;
|
|
49
|
+
}
|
|
50
|
+
export declare const ResponsiblesSchema: MongooseSchema<Responsibles, import("mongoose").Model<Responsibles, any, any, any, import("mongoose").Document<unknown, any, Responsibles, any, {}> & Responsibles & {
|
|
51
|
+
_id: Types.ObjectId;
|
|
52
|
+
} & {
|
|
53
|
+
__v: number;
|
|
54
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Responsibles, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Responsibles>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Responsibles> & {
|
|
55
|
+
_id: Types.ObjectId;
|
|
56
|
+
} & {
|
|
57
|
+
__v: number;
|
|
58
|
+
}>;
|
|
59
|
+
export declare class Action {
|
|
60
|
+
_id?: Types.ObjectId;
|
|
61
|
+
title: string;
|
|
62
|
+
thumbnail?: string;
|
|
63
|
+
startDate: Date;
|
|
64
|
+
endDate: Date;
|
|
65
|
+
nps?: number;
|
|
66
|
+
status: 'config' | 'inProgress' | 'finished' | 'finished' | 'archived';
|
|
67
|
+
type: 'partner' | 'exclusive';
|
|
68
|
+
socialnetworks?: string[];
|
|
69
|
+
recruitedInfluencers?: number;
|
|
70
|
+
hiredInfluencers?: number;
|
|
71
|
+
producedContent?: number;
|
|
72
|
+
hiredContent?: number;
|
|
73
|
+
client: Types.ObjectId | Client;
|
|
74
|
+
recruitments?: Types.ObjectId[] | Recruitment[];
|
|
75
|
+
contents?: Types.ObjectId[] | Content[];
|
|
76
|
+
cluster: string;
|
|
77
|
+
shopping?: string;
|
|
78
|
+
project?: string;
|
|
79
|
+
sale: Types.ObjectId | Sale;
|
|
80
|
+
responsibles: Responsibles;
|
|
81
|
+
brandUsername?: string;
|
|
82
|
+
hashtag?: string;
|
|
83
|
+
BILink?: string;
|
|
84
|
+
BISheets?: string;
|
|
85
|
+
createdAt?: Date;
|
|
86
|
+
updatedAt?: Date;
|
|
87
|
+
}
|
|
88
|
+
export declare const ActionSchema: MongooseSchema<Action, import("mongoose").Model<Action, any, any, any, import("mongoose").Document<unknown, any, Action, any, {}> & Action & Required<{
|
|
89
|
+
_id: Types.ObjectId;
|
|
90
|
+
}> & {
|
|
91
|
+
__v: number;
|
|
92
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Action, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Action>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Action> & Required<{
|
|
93
|
+
_id: Types.ObjectId;
|
|
94
|
+
}> & {
|
|
95
|
+
__v: number;
|
|
96
|
+
}>;
|
|
97
|
+
export declare const ActionModel: import("mongoose").Model<Action, {}, {}, {}, import("mongoose").Document<unknown, {}, Action, {}, import("mongoose").DefaultSchemaOptions> & Action & Required<{
|
|
98
|
+
_id: Types.ObjectId;
|
|
99
|
+
}> & {
|
|
100
|
+
__v: number;
|
|
101
|
+
}, MongooseSchema<Action, import("mongoose").Model<Action, any, any, any, import("mongoose").Document<unknown, any, Action, any, {}> & Action & Required<{
|
|
102
|
+
_id: Types.ObjectId;
|
|
103
|
+
}> & {
|
|
104
|
+
__v: number;
|
|
105
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Action, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Action>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Action> & Required<{
|
|
106
|
+
_id: Types.ObjectId;
|
|
107
|
+
}> & {
|
|
108
|
+
__v: number;
|
|
109
|
+
}>>;
|