@grapadigital/shared-schemas 1.0.92 → 1.0.94
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.
|
@@ -51,12 +51,10 @@ export declare const ReviewSchema: MongooseSchema<Review, import("mongoose").Mod
|
|
|
51
51
|
export declare class Pending {
|
|
52
52
|
requester: Requester;
|
|
53
53
|
type: 'influencer' | 'advisor' | 'supplier' | 'employee_refund' | 'influencer_refund' | 'logistics_control' | 'transfer_between_accounts';
|
|
54
|
-
purpose?: '
|
|
55
|
-
adidasCategory?: '
|
|
54
|
+
purpose?: 'Envio SP' | 'Envio Outros' | 'Passagem' | 'Hospedagem' | 'Compras' | 'Logistica Time' | 'Conta Simples';
|
|
55
|
+
adidasCategory?: 'Originals' | 'Running' | 'Football' | 'Training' | 'Omni';
|
|
56
56
|
influencer?: Types.ObjectId | Influencer;
|
|
57
57
|
supplier?: Types.ObjectId | Supplier;
|
|
58
|
-
beneficiary?: Types.ObjectId | Influencer | Supplier;
|
|
59
|
-
beneficiaryModel?: 'Influencer' | 'Supplier';
|
|
60
58
|
recruitment?: Types.ObjectId | Recruitment;
|
|
61
59
|
value: number;
|
|
62
60
|
description: string;
|
|
@@ -70,12 +70,13 @@ __decorate([
|
|
|
70
70
|
(0, mongoose_1.Prop)({
|
|
71
71
|
type: String,
|
|
72
72
|
enum: [
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
73
|
+
'Envio SP',
|
|
74
|
+
'Envio Outros',
|
|
75
|
+
'Passagem',
|
|
76
|
+
'Hospedagem',
|
|
77
|
+
'Compras',
|
|
78
|
+
'Logistica Time',
|
|
79
|
+
'Conta Simples'
|
|
79
80
|
],
|
|
80
81
|
required: false
|
|
81
82
|
}),
|
|
@@ -85,10 +86,11 @@ __decorate([
|
|
|
85
86
|
(0, mongoose_1.Prop)({
|
|
86
87
|
type: String,
|
|
87
88
|
enum: [
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
89
|
+
'Originals',
|
|
90
|
+
'Running',
|
|
91
|
+
'Football',
|
|
92
|
+
'Training',
|
|
93
|
+
'Omni'
|
|
92
94
|
],
|
|
93
95
|
required: false
|
|
94
96
|
}),
|
|
@@ -102,14 +104,6 @@ __decorate([
|
|
|
102
104
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Supplier' }),
|
|
103
105
|
__metadata("design:type", Object)
|
|
104
106
|
], Pending.prototype, "supplier", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, refPath: 'beneficiaryModel' }),
|
|
107
|
-
__metadata("design:type", Object)
|
|
108
|
-
], Pending.prototype, "beneficiary", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, mongoose_1.Prop)({ type: String, enum: ['Influencer', 'Supplier'], required: false }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], Pending.prototype, "beneficiaryModel", void 0);
|
|
113
107
|
__decorate([
|
|
114
108
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Recruitment' }),
|
|
115
109
|
__metadata("design:type", Object)
|
package/package.json
CHANGED
|
@@ -45,28 +45,30 @@ export class Pending {
|
|
|
45
45
|
@Prop({
|
|
46
46
|
type: String,
|
|
47
47
|
enum: [
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
48
|
+
'Envio SP',
|
|
49
|
+
'Envio Outros',
|
|
50
|
+
'Passagem',
|
|
51
|
+
'Hospedagem',
|
|
52
|
+
'Compras',
|
|
53
|
+
'Logistica Time',
|
|
54
|
+
'Conta Simples'
|
|
54
55
|
],
|
|
55
56
|
required: false
|
|
56
57
|
})
|
|
57
|
-
purpose?: '
|
|
58
|
+
purpose?: 'Envio SP' | 'Envio Outros' | 'Passagem' | 'Hospedagem' | 'Compras' | 'Logistica Time' | 'Conta Simples';
|
|
58
59
|
|
|
59
60
|
@Prop({
|
|
60
61
|
type: String,
|
|
61
62
|
enum: [
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
63
|
+
'Originals',
|
|
64
|
+
'Running',
|
|
65
|
+
'Football',
|
|
66
|
+
'Training',
|
|
67
|
+
'Omni'
|
|
66
68
|
],
|
|
67
69
|
required: false
|
|
68
70
|
})
|
|
69
|
-
adidasCategory?: '
|
|
71
|
+
adidasCategory?: 'Originals' | 'Running' | 'Football' | 'Training' | 'Omni';
|
|
70
72
|
|
|
71
73
|
@Prop({ type: MongooseSchema.Types.ObjectId, ref: 'Influencer'})
|
|
72
74
|
influencer?: Types.ObjectId | Influencer;
|
|
@@ -74,12 +76,6 @@ export class Pending {
|
|
|
74
76
|
@Prop({ type: MongooseSchema.Types.ObjectId, ref: 'Supplier'})
|
|
75
77
|
supplier?: Types.ObjectId | Supplier;
|
|
76
78
|
|
|
77
|
-
@Prop({ type: MongooseSchema.Types.ObjectId, refPath: 'beneficiaryModel' })
|
|
78
|
-
beneficiary?: Types.ObjectId | Influencer | Supplier;
|
|
79
|
-
|
|
80
|
-
@Prop({ type: String, enum: ['Influencer', 'Supplier'], required: false })
|
|
81
|
-
beneficiaryModel?: 'Influencer' | 'Supplier';
|
|
82
|
-
|
|
83
79
|
@Prop({ type: MongooseSchema.Types.ObjectId, ref: 'Recruitment' })
|
|
84
80
|
recruitment?: Types.ObjectId | Recruitment;
|
|
85
81
|
|