@fesmex/models 0.1.2 → 0.1.4
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/clients/index.d.ts +12 -2
- package/dist/clients/index.js +13 -3
- package/dist/clients/models/ClientsAddress.d.ts +17 -0
- package/dist/clients/models/ClientsAddress.js +19 -0
- package/dist/clients/models/ClientsPaymentMethod.d.ts +12 -0
- package/dist/clients/models/ClientsPaymentMethod.js +14 -0
- package/dist/clients/models/ClientsPaymentTerm.d.ts +12 -0
- package/dist/clients/models/ClientsPaymentTerm.js +14 -0
- package/dist/clients/models/ClientsPriceList.d.ts +12 -0
- package/dist/clients/models/ClientsPriceList.js +14 -0
- package/dist/clients/models/ClientsSalesEmployee.d.ts +12 -0
- package/dist/clients/models/ClientsSalesEmployee.js +14 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/inventory/index.d.ts +8 -0
- package/dist/inventory/index.js +22 -0
- package/dist/inventory/models/Article.d.ts +109 -0
- package/dist/inventory/models/Article.js +14 -0
- package/dist/inventory/models/ArticleClasses.d.ts +25 -0
- package/dist/inventory/models/ArticleClasses.js +8 -0
- package/dist/inventory/models/ArticleGroups.d.ts +25 -0
- package/dist/inventory/models/ArticleGroups.js +8 -0
- package/dist/inventory/models/ArticlePrices.d.ts +205 -0
- package/dist/inventory/models/ArticlePrices.js +14 -0
- package/dist/inventory/models/Currencies.d.ts +31 -0
- package/dist/inventory/models/Currencies.js +9 -0
- package/dist/inventory/models/InventoryStocks.d.ts +145 -0
- package/dist/inventory/models/InventoryStocks.js +12 -0
- package/dist/inventory/models/PriceLists.d.ts +37 -0
- package/dist/inventory/models/PriceLists.js +10 -0
- package/dist/inventory/models/Warehouses.d.ts +43 -0
- package/dist/inventory/models/Warehouses.js +11 -0
- package/dist/quotes/index.d.ts +4 -0
- package/dist/quotes/index.js +14 -0
- package/dist/quotes/models/Quote.d.ts +208 -0
- package/dist/quotes/models/Quote.js +63 -0
- package/dist/quotes/models/QuoteArticle.d.ts +96 -0
- package/dist/quotes/models/QuoteArticle.js +19 -0
- package/dist/quotes/models/QuoteArticleExtra.d.ts +54 -0
- package/dist/quotes/models/QuoteArticleExtra.js +16 -0
- package/dist/quotes/models/QuoteContact.d.ts +49 -0
- package/dist/quotes/models/QuoteContact.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
declare const _default: import("mongoose").Model<{
|
|
3
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
type?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
article_number?: string;
|
|
7
|
+
article_id?: import("mongoose").Types.ObjectId;
|
|
8
|
+
price?: number;
|
|
9
|
+
delivery?: string;
|
|
10
|
+
quantity?: number;
|
|
11
|
+
unit_price?: number;
|
|
12
|
+
original_price?: number;
|
|
13
|
+
total?: number;
|
|
14
|
+
utility?: number;
|
|
15
|
+
extra_id?: import("mongoose").Types.ObjectId;
|
|
16
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
17
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
18
|
+
type?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
article_number?: string;
|
|
21
|
+
article_id?: import("mongoose").Types.ObjectId;
|
|
22
|
+
price?: number;
|
|
23
|
+
delivery?: string;
|
|
24
|
+
quantity?: number;
|
|
25
|
+
unit_price?: number;
|
|
26
|
+
original_price?: number;
|
|
27
|
+
total?: number;
|
|
28
|
+
utility?: number;
|
|
29
|
+
extra_id?: import("mongoose").Types.ObjectId;
|
|
30
|
+
}> & {
|
|
31
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
32
|
+
type?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
article_number?: string;
|
|
35
|
+
article_id?: import("mongoose").Types.ObjectId;
|
|
36
|
+
price?: number;
|
|
37
|
+
delivery?: string;
|
|
38
|
+
quantity?: number;
|
|
39
|
+
unit_price?: number;
|
|
40
|
+
original_price?: number;
|
|
41
|
+
total?: number;
|
|
42
|
+
utility?: number;
|
|
43
|
+
extra_id?: import("mongoose").Types.ObjectId;
|
|
44
|
+
} & {
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
47
|
+
timestamps: {
|
|
48
|
+
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
53
|
+
type?: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
article_number?: string;
|
|
56
|
+
article_id?: import("mongoose").Types.ObjectId;
|
|
57
|
+
price?: number;
|
|
58
|
+
delivery?: string;
|
|
59
|
+
quantity?: number;
|
|
60
|
+
unit_price?: number;
|
|
61
|
+
original_price?: number;
|
|
62
|
+
total?: number;
|
|
63
|
+
utility?: number;
|
|
64
|
+
extra_id?: import("mongoose").Types.ObjectId;
|
|
65
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
66
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
67
|
+
type?: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
article_number?: string;
|
|
70
|
+
article_id?: import("mongoose").Types.ObjectId;
|
|
71
|
+
price?: number;
|
|
72
|
+
delivery?: string;
|
|
73
|
+
quantity?: number;
|
|
74
|
+
unit_price?: number;
|
|
75
|
+
original_price?: number;
|
|
76
|
+
total?: number;
|
|
77
|
+
utility?: number;
|
|
78
|
+
extra_id?: import("mongoose").Types.ObjectId;
|
|
79
|
+
}>> & import("mongoose").FlatRecord<{
|
|
80
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
81
|
+
type?: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
article_number?: string;
|
|
84
|
+
article_id?: import("mongoose").Types.ObjectId;
|
|
85
|
+
price?: number;
|
|
86
|
+
delivery?: string;
|
|
87
|
+
quantity?: number;
|
|
88
|
+
unit_price?: number;
|
|
89
|
+
original_price?: number;
|
|
90
|
+
total?: number;
|
|
91
|
+
utility?: number;
|
|
92
|
+
extra_id?: import("mongoose").Types.ObjectId;
|
|
93
|
+
}> & {
|
|
94
|
+
_id: import("mongoose").Types.ObjectId;
|
|
95
|
+
}>>;
|
|
96
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const quoteArticleSchema = new mongoose_1.Schema({
|
|
5
|
+
quote_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "Quote", required: true },
|
|
6
|
+
article_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "Article" },
|
|
7
|
+
article_number: { type: String },
|
|
8
|
+
description: { type: String },
|
|
9
|
+
delivery: { type: String },
|
|
10
|
+
quantity: { type: Number },
|
|
11
|
+
price: { type: Number },
|
|
12
|
+
unit_price: { type: Number },
|
|
13
|
+
original_price: { type: Number },
|
|
14
|
+
total: { type: Number },
|
|
15
|
+
utility: { type: Number },
|
|
16
|
+
type: { type: String },
|
|
17
|
+
extra_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "QuoteArticleExtra" },
|
|
18
|
+
}, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
|
|
19
|
+
exports.default = (0, mongoose_1.model)("QuoteArticle", quoteArticleSchema, "quote_articles");
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
declare const _default: import("mongoose").Model<{
|
|
3
|
+
quote_article_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
multiplier?: number;
|
|
5
|
+
usa_freight?: number;
|
|
6
|
+
usa_expenses?: number;
|
|
7
|
+
duty?: number;
|
|
8
|
+
mex_freight?: number;
|
|
9
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
10
|
+
quote_article_id: import("mongoose").Types.ObjectId;
|
|
11
|
+
multiplier?: number;
|
|
12
|
+
usa_freight?: number;
|
|
13
|
+
usa_expenses?: number;
|
|
14
|
+
duty?: number;
|
|
15
|
+
mex_freight?: number;
|
|
16
|
+
}> & {
|
|
17
|
+
quote_article_id: import("mongoose").Types.ObjectId;
|
|
18
|
+
multiplier?: number;
|
|
19
|
+
usa_freight?: number;
|
|
20
|
+
usa_expenses?: number;
|
|
21
|
+
duty?: number;
|
|
22
|
+
mex_freight?: number;
|
|
23
|
+
} & {
|
|
24
|
+
_id: import("mongoose").Types.ObjectId;
|
|
25
|
+
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
26
|
+
timestamps: {
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: string;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
quote_article_id: import("mongoose").Types.ObjectId;
|
|
32
|
+
multiplier?: number;
|
|
33
|
+
usa_freight?: number;
|
|
34
|
+
usa_expenses?: number;
|
|
35
|
+
duty?: number;
|
|
36
|
+
mex_freight?: number;
|
|
37
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
38
|
+
quote_article_id: import("mongoose").Types.ObjectId;
|
|
39
|
+
multiplier?: number;
|
|
40
|
+
usa_freight?: number;
|
|
41
|
+
usa_expenses?: number;
|
|
42
|
+
duty?: number;
|
|
43
|
+
mex_freight?: number;
|
|
44
|
+
}>> & import("mongoose").FlatRecord<{
|
|
45
|
+
quote_article_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
multiplier?: number;
|
|
47
|
+
usa_freight?: number;
|
|
48
|
+
usa_expenses?: number;
|
|
49
|
+
duty?: number;
|
|
50
|
+
mex_freight?: number;
|
|
51
|
+
}> & {
|
|
52
|
+
_id: import("mongoose").Types.ObjectId;
|
|
53
|
+
}>>;
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const quoteArticleExtraSchema = new mongoose_1.Schema({
|
|
5
|
+
quote_article_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "QuoteArticle",
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
multiplier: Number,
|
|
11
|
+
usa_freight: Number,
|
|
12
|
+
usa_expenses: Number,
|
|
13
|
+
duty: Number,
|
|
14
|
+
mex_freight: Number,
|
|
15
|
+
}, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
|
|
16
|
+
exports.default = (0, mongoose_1.model)("QuoteArticleExtra", quoteArticleExtraSchema, "quote_article_extras");
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
declare const _default: import("mongoose").Model<{
|
|
3
|
+
created_at: Date;
|
|
4
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
5
|
+
email?: string;
|
|
6
|
+
pipedrive_id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
mobile?: string;
|
|
9
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
10
|
+
created_at: Date;
|
|
11
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
email?: string;
|
|
13
|
+
pipedrive_id?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
mobile?: string;
|
|
16
|
+
}> & {
|
|
17
|
+
created_at: Date;
|
|
18
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
19
|
+
email?: string;
|
|
20
|
+
pipedrive_id?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
mobile?: string;
|
|
23
|
+
} & {
|
|
24
|
+
_id: import("mongoose").Types.ObjectId;
|
|
25
|
+
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
26
|
+
created_at: Date;
|
|
27
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
28
|
+
email?: string;
|
|
29
|
+
pipedrive_id?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
mobile?: string;
|
|
32
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
33
|
+
created_at: Date;
|
|
34
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
35
|
+
email?: string;
|
|
36
|
+
pipedrive_id?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
mobile?: string;
|
|
39
|
+
}>> & import("mongoose").FlatRecord<{
|
|
40
|
+
created_at: Date;
|
|
41
|
+
quote_id: import("mongoose").Types.ObjectId;
|
|
42
|
+
email?: string;
|
|
43
|
+
pipedrive_id?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
mobile?: string;
|
|
46
|
+
}> & {
|
|
47
|
+
_id: import("mongoose").Types.ObjectId;
|
|
48
|
+
}>>;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const quoteContactSchema = new mongoose_1.Schema({
|
|
5
|
+
quote_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "Quote", required: true },
|
|
6
|
+
name: String,
|
|
7
|
+
email: String,
|
|
8
|
+
mobile: String,
|
|
9
|
+
pipedrive_id: String,
|
|
10
|
+
created_at: { type: Date, default: Date.now },
|
|
11
|
+
});
|
|
12
|
+
exports.default = (0, mongoose_1.model)("QuoteContact", quoteContactSchema, "quote_contacts");
|