@grapadigital/shared-schemas 1.0.117 → 1.0.119
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.
|
@@ -53,8 +53,8 @@ export declare const CompanySchema: import("mongoose").Schema<Company, import("m
|
|
|
53
53
|
__v: number;
|
|
54
54
|
}>;
|
|
55
55
|
export declare class CommissionRange {
|
|
56
|
-
startValue: number
|
|
57
|
-
endValue: number
|
|
56
|
+
startValue: number;
|
|
57
|
+
endValue: number;
|
|
58
58
|
percent: number;
|
|
59
59
|
}
|
|
60
60
|
export declare const CommissionRangeSchema: import("mongoose").Schema<CommissionRange, import("mongoose").Model<CommissionRange, any, any, any, import("mongoose").Document<unknown, any, CommissionRange, any, {}> & CommissionRange & {
|
|
@@ -47,11 +47,11 @@ let CommissionRange = class CommissionRange {
|
|
|
47
47
|
};
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, mongoose_1.Prop)({ required: false }),
|
|
50
|
-
__metadata("design:type",
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
51
|
], CommissionRange.prototype, "startValue", void 0);
|
|
52
52
|
__decorate([
|
|
53
53
|
(0, mongoose_1.Prop)({ required: false }),
|
|
54
|
-
__metadata("design:type",
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
55
|
], CommissionRange.prototype, "endValue", void 0);
|
|
56
56
|
__decorate([
|
|
57
57
|
(0, mongoose_1.Prop)({ required: true }),
|
|
@@ -60,7 +60,7 @@ export declare class Pending {
|
|
|
60
60
|
description: string;
|
|
61
61
|
installmentNumber: number;
|
|
62
62
|
sale: Types.ObjectId | Sale;
|
|
63
|
-
action
|
|
63
|
+
action?: Types.ObjectId | Action;
|
|
64
64
|
}
|
|
65
65
|
export declare const PendingSchema: MongooseSchema<Pending, import("mongoose").Model<Pending, any, any, any, import("mongoose").Document<unknown, any, Pending, any, {}> & Pending & {
|
|
66
66
|
_id: Types.ObjectId;
|
package/package.json
CHANGED
|
@@ -29,10 +29,10 @@ export const CompanySchema = SchemaFactory.createForClass(Company);
|
|
|
29
29
|
@Schema({ _id: false })
|
|
30
30
|
export class CommissionRange {
|
|
31
31
|
@Prop({ required: false })
|
|
32
|
-
startValue: number
|
|
32
|
+
startValue: number;
|
|
33
33
|
|
|
34
34
|
@Prop({ required: false })
|
|
35
|
-
endValue: number
|
|
35
|
+
endValue: number;
|
|
36
36
|
|
|
37
37
|
@Prop({ required: true })
|
|
38
38
|
percent: number;
|
|
@@ -130,7 +130,7 @@ export class Pending {
|
|
|
130
130
|
|
|
131
131
|
@ApiProperty({ type: () => Action })
|
|
132
132
|
@Prop({ type: MongooseSchema.Types.ObjectId, ref: 'Action' })
|
|
133
|
-
action
|
|
133
|
+
action?: Types.ObjectId | Action;
|
|
134
134
|
}
|
|
135
135
|
export const PendingSchema = SchemaFactory.createForClass(Pending);
|
|
136
136
|
|