@grapadigital/shared-schemas 1.0.67 → 1.0.69
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.
|
@@ -35,22 +35,6 @@ declare class Requester {
|
|
|
35
35
|
email: string;
|
|
36
36
|
team: string;
|
|
37
37
|
}
|
|
38
|
-
export declare class Review {
|
|
39
|
-
type: 'influencer' | 'advisor' | 'supplier' | 'employee';
|
|
40
|
-
beneficiary: Types.ObjectId | Influencer | Supplier;
|
|
41
|
-
value: number;
|
|
42
|
-
description: string;
|
|
43
|
-
emissionNotes: string;
|
|
44
|
-
}
|
|
45
|
-
export declare const ReviewSchema: MongooseSchema<Review, import("mongoose").Model<Review, any, any, any, import("mongoose").Document<unknown, any, Review> & Review & {
|
|
46
|
-
_id: Types.ObjectId;
|
|
47
|
-
} & {
|
|
48
|
-
__v: number;
|
|
49
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Review, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Review>> & import("mongoose").FlatRecord<Review> & {
|
|
50
|
-
_id: Types.ObjectId;
|
|
51
|
-
} & {
|
|
52
|
-
__v: number;
|
|
53
|
-
}>;
|
|
54
38
|
export declare class Processing {
|
|
55
39
|
emissionNotes: string;
|
|
56
40
|
revisedDueDate: Date;
|
|
@@ -147,7 +131,12 @@ export declare class PaymentNew {
|
|
|
147
131
|
_id?: Types.ObjectId;
|
|
148
132
|
title: string;
|
|
149
133
|
requester: Requester;
|
|
150
|
-
|
|
134
|
+
type: 'influencer' | 'advisor' | 'supplier' | 'employee';
|
|
135
|
+
influencer: Types.ObjectId | Influencer;
|
|
136
|
+
supplier: Types.ObjectId | Supplier;
|
|
137
|
+
value: number;
|
|
138
|
+
description: string;
|
|
139
|
+
emissionNotes: string;
|
|
151
140
|
processing?: Processing;
|
|
152
141
|
approval?: Approval;
|
|
153
142
|
requested?: Requested;
|
|
@@ -157,7 +146,7 @@ export declare class PaymentNew {
|
|
|
157
146
|
notes?: Note[];
|
|
158
147
|
installmentNumber: number;
|
|
159
148
|
additionalComments?: string;
|
|
160
|
-
phase: '
|
|
149
|
+
phase: 'pending' | 'review' | 'approval' | 'awaiting' | 'requested' | 'queued' | 'paid' | 'client' | 'canceled';
|
|
161
150
|
sale: Types.ObjectId | Sale;
|
|
162
151
|
action: Types.ObjectId | Action;
|
|
163
152
|
recruitment: Types.ObjectId | Recruitment;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PaymentNewModel = exports.PaymentNewSchema = exports.PaymentNew = exports.NoteSchema = exports.Note = exports.CanceledSchema = exports.Canceled = exports.PaidSchema = exports.Paid = exports.QueuedSchema = exports.Queued = exports.RequestedSchema = exports.Requested = exports.ApprovalSchema = exports.Approval = exports.ProcessingSchema = exports.Processing =
|
|
12
|
+
exports.PaymentNewModel = exports.PaymentNewSchema = exports.PaymentNew = exports.NoteSchema = exports.Note = exports.CanceledSchema = exports.Canceled = exports.PaidSchema = exports.Paid = exports.QueuedSchema = exports.Queued = exports.RequestedSchema = exports.Requested = exports.ApprovalSchema = exports.Approval = exports.ProcessingSchema = exports.Processing = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
let Requester = class Requester {
|
|
@@ -30,33 +30,6 @@ Requester = __decorate([
|
|
|
30
30
|
(0, mongoose_1.Schema)({ _id: false })
|
|
31
31
|
], Requester);
|
|
32
32
|
const RequesterSchema = mongoose_1.SchemaFactory.createForClass(Requester);
|
|
33
|
-
let Review = class Review {
|
|
34
|
-
};
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, mongoose_1.Prop)({ type: String, enum: ['influencer', 'advisor', 'supplier', 'employee'] }),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], Review.prototype, "type", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, refPath: 'review.type' }),
|
|
41
|
-
__metadata("design:type", Object)
|
|
42
|
-
], Review.prototype, "beneficiary", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, mongoose_1.Prop)(),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], Review.prototype, "value", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, mongoose_1.Prop)(),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], Review.prototype, "description", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, mongoose_1.Prop)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], Review.prototype, "emissionNotes", void 0);
|
|
55
|
-
Review = __decorate([
|
|
56
|
-
(0, mongoose_1.Schema)({ _id: false })
|
|
57
|
-
], Review);
|
|
58
|
-
exports.Review = Review;
|
|
59
|
-
exports.ReviewSchema = mongoose_1.SchemaFactory.createForClass(Review);
|
|
60
33
|
let Processing = class Processing {
|
|
61
34
|
};
|
|
62
35
|
__decorate([
|
|
@@ -181,9 +154,29 @@ __decorate([
|
|
|
181
154
|
__metadata("design:type", Requester)
|
|
182
155
|
], PaymentNew.prototype, "requester", void 0);
|
|
183
156
|
__decorate([
|
|
184
|
-
(0, mongoose_1.Prop)({ type:
|
|
185
|
-
__metadata("design:type",
|
|
186
|
-
], PaymentNew.prototype, "
|
|
157
|
+
(0, mongoose_1.Prop)({ type: String, enum: ['influencer', 'advisor', 'supplier', 'employee'] }),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], PaymentNew.prototype, "type", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
162
|
+
__metadata("design:type", Object)
|
|
163
|
+
], PaymentNew.prototype, "influencer", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
166
|
+
__metadata("design:type", Object)
|
|
167
|
+
], PaymentNew.prototype, "supplier", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, mongoose_1.Prop)(),
|
|
170
|
+
__metadata("design:type", Number)
|
|
171
|
+
], PaymentNew.prototype, "value", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, mongoose_1.Prop)(),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], PaymentNew.prototype, "description", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, mongoose_1.Prop)(),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], PaymentNew.prototype, "emissionNotes", void 0);
|
|
187
180
|
__decorate([
|
|
188
181
|
(0, mongoose_1.Prop)({ type: exports.ProcessingSchema, required: false }),
|
|
189
182
|
__metadata("design:type", Processing)
|
|
@@ -224,8 +217,8 @@ __decorate([
|
|
|
224
217
|
(0, mongoose_1.Prop)({
|
|
225
218
|
type: String,
|
|
226
219
|
enum: [
|
|
220
|
+
'pending',
|
|
227
221
|
'review',
|
|
228
|
-
'processing',
|
|
229
222
|
'approval',
|
|
230
223
|
'awaiting',
|
|
231
224
|
'requested',
|
package/package.json
CHANGED
|
@@ -16,20 +16,6 @@ class Requester {
|
|
|
16
16
|
}
|
|
17
17
|
const RequesterSchema = SchemaFactory.createForClass(Requester);
|
|
18
18
|
|
|
19
|
-
@Schema({ _id: false })
|
|
20
|
-
export class Review {
|
|
21
|
-
@Prop({ type: String, enum: ['influencer', 'advisor', 'supplier', 'employee'] })
|
|
22
|
-
type: 'influencer' | 'advisor' | 'supplier' | 'employee';
|
|
23
|
-
|
|
24
|
-
@Prop({ type: MongooseSchema.Types.ObjectId, refPath: 'review.type' })
|
|
25
|
-
beneficiary: Types.ObjectId | Influencer | Supplier;
|
|
26
|
-
|
|
27
|
-
@Prop() value: number;
|
|
28
|
-
@Prop() description: string;
|
|
29
|
-
@Prop() emissionNotes: string;
|
|
30
|
-
}
|
|
31
|
-
export const ReviewSchema = SchemaFactory.createForClass(Review);
|
|
32
|
-
|
|
33
19
|
@Schema({ _id: false })
|
|
34
20
|
export class Processing {
|
|
35
21
|
@Prop() emissionNotes: string;
|
|
@@ -86,8 +72,18 @@ export class PaymentNew {
|
|
|
86
72
|
@Prop({ type: RequesterSchema, required: true })
|
|
87
73
|
requester: Requester;
|
|
88
74
|
|
|
89
|
-
@Prop({ type:
|
|
90
|
-
|
|
75
|
+
@Prop({ type: String, enum: ['influencer', 'advisor', 'supplier', 'employee'] })
|
|
76
|
+
type: 'influencer' | 'advisor' | 'supplier' | 'employee';
|
|
77
|
+
|
|
78
|
+
@Prop({ type: MongooseSchema.Types.ObjectId })
|
|
79
|
+
influencer: Types.ObjectId | Influencer;
|
|
80
|
+
|
|
81
|
+
@Prop({ type: MongooseSchema.Types.ObjectId })
|
|
82
|
+
supplier: Types.ObjectId | Supplier;
|
|
83
|
+
|
|
84
|
+
@Prop() value: number;
|
|
85
|
+
@Prop() description: string;
|
|
86
|
+
@Prop() emissionNotes: string;
|
|
91
87
|
|
|
92
88
|
@Prop({ type: ProcessingSchema, required: false })
|
|
93
89
|
processing?: Processing;
|
|
@@ -118,8 +114,8 @@ export class PaymentNew {
|
|
|
118
114
|
@Prop({
|
|
119
115
|
type: String,
|
|
120
116
|
enum: [
|
|
117
|
+
'pending',
|
|
121
118
|
'review',
|
|
122
|
-
'processing',
|
|
123
119
|
'approval',
|
|
124
120
|
'awaiting',
|
|
125
121
|
'requested',
|
|
@@ -130,8 +126,8 @@ export class PaymentNew {
|
|
|
130
126
|
],
|
|
131
127
|
})
|
|
132
128
|
phase:
|
|
129
|
+
| 'pending'
|
|
133
130
|
| 'review'
|
|
134
|
-
| 'processing'
|
|
135
131
|
| 'approval'
|
|
136
132
|
| 'awaiting'
|
|
137
133
|
| 'requested'
|