@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
package/dist/clients/index.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
export { default as ClientContact } from "./models/ClientsContact";
|
|
2
|
-
export type { ClientContactType } from "./models/ClientsContact";
|
|
3
1
|
export { default as Client } from "./models/Clients";
|
|
4
2
|
export type { ClientType } from "./models/Clients";
|
|
3
|
+
export { default as ClientContact } from "./models/ClientsContact";
|
|
4
|
+
export type { ClientContactType } from "./models/ClientsContact";
|
|
5
|
+
export { default as ClientAddress } from "./models/ClientsAddress";
|
|
6
|
+
export type { ClientAddressType } from "./models/ClientsAddress";
|
|
7
|
+
export { default as ClientPaymentMethod } from "./models/ClientsPaymentMethod";
|
|
8
|
+
export type { ClientPaymentMethodType } from "./models/ClientsPaymentMethod";
|
|
9
|
+
export { default as ClientPaymentTerm } from "./models/ClientsPaymentTerm";
|
|
10
|
+
export type { ClientPaymentTermType } from "./models/ClientsPaymentTerm";
|
|
11
|
+
export { default as ClientPriceList } from "./models/ClientsPriceList";
|
|
12
|
+
export type { ClientPriceListType } from "./models/ClientsPriceList";
|
|
13
|
+
export { default as ClientSalesEmployee } from "./models/ClientsSalesEmployee";
|
|
14
|
+
export type { ClientSalesEmployeeType } from "./models/ClientsSalesEmployee";
|
package/dist/clients/index.js
CHANGED
|
@@ -3,8 +3,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
var ClientsContact_1 = require("./models/ClientsContact");
|
|
8
|
-
Object.defineProperty(exports, "ClientContact", { enumerable: true, get: function () { return __importDefault(ClientsContact_1).default; } });
|
|
6
|
+
exports.ClientSalesEmployee = exports.ClientPriceList = exports.ClientPaymentTerm = exports.ClientPaymentMethod = exports.ClientAddress = exports.ClientContact = exports.Client = void 0;
|
|
9
7
|
var Clients_1 = require("./models/Clients");
|
|
10
8
|
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return __importDefault(Clients_1).default; } });
|
|
9
|
+
var ClientsContact_1 = require("./models/ClientsContact");
|
|
10
|
+
Object.defineProperty(exports, "ClientContact", { enumerable: true, get: function () { return __importDefault(ClientsContact_1).default; } });
|
|
11
|
+
var ClientsAddress_1 = require("./models/ClientsAddress");
|
|
12
|
+
Object.defineProperty(exports, "ClientAddress", { enumerable: true, get: function () { return __importDefault(ClientsAddress_1).default; } });
|
|
13
|
+
var ClientsPaymentMethod_1 = require("./models/ClientsPaymentMethod");
|
|
14
|
+
Object.defineProperty(exports, "ClientPaymentMethod", { enumerable: true, get: function () { return __importDefault(ClientsPaymentMethod_1).default; } });
|
|
15
|
+
var ClientsPaymentTerm_1 = require("./models/ClientsPaymentTerm");
|
|
16
|
+
Object.defineProperty(exports, "ClientPaymentTerm", { enumerable: true, get: function () { return __importDefault(ClientsPaymentTerm_1).default; } });
|
|
17
|
+
var ClientsPriceList_1 = require("./models/ClientsPriceList");
|
|
18
|
+
Object.defineProperty(exports, "ClientPriceList", { enumerable: true, get: function () { return __importDefault(ClientsPriceList_1).default; } });
|
|
19
|
+
var ClientsSalesEmployee_1 = require("./models/ClientsSalesEmployee");
|
|
20
|
+
Object.defineProperty(exports, "ClientSalesEmployee", { enumerable: true, get: function () { return __importDefault(ClientsSalesEmployee_1).default; } });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
export interface ClientAddressType {
|
|
3
|
+
client_id: Types.ObjectId;
|
|
4
|
+
address_name?: string | null;
|
|
5
|
+
street?: string | null;
|
|
6
|
+
neighborhood?: string | null;
|
|
7
|
+
postal_code?: string | null;
|
|
8
|
+
city?: string | null;
|
|
9
|
+
state?: string | null;
|
|
10
|
+
country?: string | null;
|
|
11
|
+
created_at?: Date;
|
|
12
|
+
updated_at?: Date;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import("mongoose").Model<ClientAddressType, {}, {}, {}, import("mongoose").Document<unknown, {}, ClientAddressType> & ClientAddressType & {
|
|
15
|
+
_id: Types.ObjectId;
|
|
16
|
+
}, any>;
|
|
17
|
+
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 clientAddressSchema = new mongoose_1.Schema({
|
|
5
|
+
client_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "Client",
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
11
|
+
address_name: { type: String },
|
|
12
|
+
street: { type: String },
|
|
13
|
+
neighborhood: { type: String },
|
|
14
|
+
postal_code: { type: String },
|
|
15
|
+
city: { type: String },
|
|
16
|
+
state: { type: String },
|
|
17
|
+
country: { type: String },
|
|
18
|
+
}, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
|
|
19
|
+
exports.default = (0, mongoose_1.model)("ClientAddress", clientAddressSchema, "client_addresses");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
export interface ClientPaymentMethodType {
|
|
3
|
+
client_id: Types.ObjectId;
|
|
4
|
+
code?: string | null;
|
|
5
|
+
description?: string | null;
|
|
6
|
+
created_at?: Date;
|
|
7
|
+
updated_at?: Date;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("mongoose").Model<ClientPaymentMethodType, {}, {}, {}, import("mongoose").Document<unknown, {}, ClientPaymentMethodType> & ClientPaymentMethodType & {
|
|
10
|
+
_id: Types.ObjectId;
|
|
11
|
+
}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const clientPaymentMethodSchema = new mongoose_1.Schema({
|
|
5
|
+
client_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "Client",
|
|
8
|
+
required: true,
|
|
9
|
+
unique: true,
|
|
10
|
+
},
|
|
11
|
+
code: { type: String },
|
|
12
|
+
description: { type: String },
|
|
13
|
+
}, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
|
|
14
|
+
exports.default = (0, mongoose_1.model)("ClientPaymentMethod", clientPaymentMethodSchema, "client_payment_methods");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
export interface ClientPaymentTermType {
|
|
3
|
+
client_id: Types.ObjectId;
|
|
4
|
+
code?: string | null;
|
|
5
|
+
name?: string | null;
|
|
6
|
+
created_at?: Date;
|
|
7
|
+
updated_at?: Date;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("mongoose").Model<ClientPaymentTermType, {}, {}, {}, import("mongoose").Document<unknown, {}, ClientPaymentTermType> & ClientPaymentTermType & {
|
|
10
|
+
_id: Types.ObjectId;
|
|
11
|
+
}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const clientPaymentTermSchema = new mongoose_1.Schema({
|
|
5
|
+
client_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "Client",
|
|
8
|
+
required: true,
|
|
9
|
+
unique: true,
|
|
10
|
+
},
|
|
11
|
+
code: { type: String },
|
|
12
|
+
name: { type: String },
|
|
13
|
+
}, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
|
|
14
|
+
exports.default = (0, mongoose_1.model)("ClientPaymentTerm", clientPaymentTermSchema, "client_payment_terms");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
export interface ClientPriceListType {
|
|
3
|
+
client_id: Types.ObjectId;
|
|
4
|
+
number?: string | null;
|
|
5
|
+
name?: string | null;
|
|
6
|
+
created_at?: Date;
|
|
7
|
+
updated_at?: Date;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("mongoose").Model<ClientPriceListType, {}, {}, {}, import("mongoose").Document<unknown, {}, ClientPriceListType> & ClientPriceListType & {
|
|
10
|
+
_id: Types.ObjectId;
|
|
11
|
+
}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const clientPriceListSchema = new mongoose_1.Schema({
|
|
5
|
+
client_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "Client",
|
|
8
|
+
required: true,
|
|
9
|
+
unique: true,
|
|
10
|
+
},
|
|
11
|
+
number: { type: String },
|
|
12
|
+
name: { type: String },
|
|
13
|
+
}, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
|
|
14
|
+
exports.default = (0, mongoose_1.model)("ClientPriceList", clientPriceListSchema, "client_price_lists");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Types } from "mongoose";
|
|
2
|
+
export interface ClientSalesEmployeeType {
|
|
3
|
+
client_id: Types.ObjectId;
|
|
4
|
+
employee_code?: string | null;
|
|
5
|
+
employee_name?: string | null;
|
|
6
|
+
created_at?: Date;
|
|
7
|
+
updated_at?: Date;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("mongoose").Model<ClientSalesEmployeeType, {}, {}, {}, import("mongoose").Document<unknown, {}, ClientSalesEmployeeType> & ClientSalesEmployeeType & {
|
|
10
|
+
_id: Types.ObjectId;
|
|
11
|
+
}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const clientSalesEmployeeSchema = new mongoose_1.Schema({
|
|
5
|
+
client_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "Client",
|
|
8
|
+
required: true,
|
|
9
|
+
unique: true,
|
|
10
|
+
},
|
|
11
|
+
employee_code: { type: String },
|
|
12
|
+
employee_name: { type: String },
|
|
13
|
+
}, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
|
|
14
|
+
exports.default = (0, mongoose_1.model)("ClientSalesEmployee", clientSalesEmployeeSchema, "client_sales_employees");
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./clients"), exports);
|
|
18
|
+
__exportStar(require("./inventory"), exports);
|
|
19
|
+
__exportStar(require("./quotes"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as Article } from "./models/Article";
|
|
2
|
+
export { default as ArticleGroup } from "./models/ArticleGroups";
|
|
3
|
+
export { default as ArticleClass } from "./models/ArticleClasses";
|
|
4
|
+
export { default as ArticlePrice } from "./models/ArticlePrices";
|
|
5
|
+
export { default as Currency } from "./models/Currencies";
|
|
6
|
+
export { default as Warehouse } from "./models/Warehouses";
|
|
7
|
+
export { default as InventoryStock } from "./models/InventoryStocks";
|
|
8
|
+
export { default as PriceList } from "./models/PriceLists";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PriceList = exports.InventoryStock = exports.Warehouse = exports.Currency = exports.ArticlePrice = exports.ArticleClass = exports.ArticleGroup = exports.Article = void 0;
|
|
7
|
+
var Article_1 = require("./models/Article");
|
|
8
|
+
Object.defineProperty(exports, "Article", { enumerable: true, get: function () { return __importDefault(Article_1).default; } });
|
|
9
|
+
var ArticleGroups_1 = require("./models/ArticleGroups");
|
|
10
|
+
Object.defineProperty(exports, "ArticleGroup", { enumerable: true, get: function () { return __importDefault(ArticleGroups_1).default; } });
|
|
11
|
+
var ArticleClasses_1 = require("./models/ArticleClasses");
|
|
12
|
+
Object.defineProperty(exports, "ArticleClass", { enumerable: true, get: function () { return __importDefault(ArticleClasses_1).default; } });
|
|
13
|
+
var ArticlePrices_1 = require("./models/ArticlePrices");
|
|
14
|
+
Object.defineProperty(exports, "ArticlePrice", { enumerable: true, get: function () { return __importDefault(ArticlePrices_1).default; } });
|
|
15
|
+
var Currencies_1 = require("./models/Currencies");
|
|
16
|
+
Object.defineProperty(exports, "Currency", { enumerable: true, get: function () { return __importDefault(Currencies_1).default; } });
|
|
17
|
+
var Warehouses_1 = require("./models/Warehouses");
|
|
18
|
+
Object.defineProperty(exports, "Warehouse", { enumerable: true, get: function () { return __importDefault(Warehouses_1).default; } });
|
|
19
|
+
var InventoryStocks_1 = require("./models/InventoryStocks");
|
|
20
|
+
Object.defineProperty(exports, "InventoryStock", { enumerable: true, get: function () { return __importDefault(InventoryStocks_1).default; } });
|
|
21
|
+
var PriceLists_1 = require("./models/PriceLists");
|
|
22
|
+
Object.defineProperty(exports, "PriceList", { enumerable: true, get: function () { return __importDefault(PriceLists_1).default; } });
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
declare const _default: import("mongoose").Model<{
|
|
3
|
+
created_at: Date;
|
|
4
|
+
description: string;
|
|
5
|
+
article_number: string;
|
|
6
|
+
unit: string;
|
|
7
|
+
group_id: {
|
|
8
|
+
prototype?: Types.ObjectId;
|
|
9
|
+
cacheHexString?: unknown;
|
|
10
|
+
generate?: {};
|
|
11
|
+
createFromTime?: {};
|
|
12
|
+
createFromHexString?: {};
|
|
13
|
+
createFromBase64?: {};
|
|
14
|
+
isValid?: {};
|
|
15
|
+
};
|
|
16
|
+
updated_at?: Date;
|
|
17
|
+
model?: string;
|
|
18
|
+
brand?: string;
|
|
19
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
20
|
+
created_at: Date;
|
|
21
|
+
description: string;
|
|
22
|
+
article_number: string;
|
|
23
|
+
unit: string;
|
|
24
|
+
group_id: {
|
|
25
|
+
prototype?: Types.ObjectId;
|
|
26
|
+
cacheHexString?: unknown;
|
|
27
|
+
generate?: {};
|
|
28
|
+
createFromTime?: {};
|
|
29
|
+
createFromHexString?: {};
|
|
30
|
+
createFromBase64?: {};
|
|
31
|
+
isValid?: {};
|
|
32
|
+
};
|
|
33
|
+
updated_at?: Date;
|
|
34
|
+
model?: string;
|
|
35
|
+
brand?: string;
|
|
36
|
+
}> & {
|
|
37
|
+
created_at: Date;
|
|
38
|
+
description: string;
|
|
39
|
+
article_number: string;
|
|
40
|
+
unit: string;
|
|
41
|
+
group_id: {
|
|
42
|
+
prototype?: Types.ObjectId;
|
|
43
|
+
cacheHexString?: unknown;
|
|
44
|
+
generate?: {};
|
|
45
|
+
createFromTime?: {};
|
|
46
|
+
createFromHexString?: {};
|
|
47
|
+
createFromBase64?: {};
|
|
48
|
+
isValid?: {};
|
|
49
|
+
};
|
|
50
|
+
updated_at?: Date;
|
|
51
|
+
model?: string;
|
|
52
|
+
brand?: string;
|
|
53
|
+
} & {
|
|
54
|
+
_id: Types.ObjectId;
|
|
55
|
+
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
56
|
+
created_at: Date;
|
|
57
|
+
description: string;
|
|
58
|
+
article_number: string;
|
|
59
|
+
unit: string;
|
|
60
|
+
group_id: {
|
|
61
|
+
prototype?: Types.ObjectId;
|
|
62
|
+
cacheHexString?: unknown;
|
|
63
|
+
generate?: {};
|
|
64
|
+
createFromTime?: {};
|
|
65
|
+
createFromHexString?: {};
|
|
66
|
+
createFromBase64?: {};
|
|
67
|
+
isValid?: {};
|
|
68
|
+
};
|
|
69
|
+
updated_at?: Date;
|
|
70
|
+
model?: string;
|
|
71
|
+
brand?: string;
|
|
72
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
73
|
+
created_at: Date;
|
|
74
|
+
description: string;
|
|
75
|
+
article_number: string;
|
|
76
|
+
unit: string;
|
|
77
|
+
group_id: {
|
|
78
|
+
prototype?: Types.ObjectId;
|
|
79
|
+
cacheHexString?: unknown;
|
|
80
|
+
generate?: {};
|
|
81
|
+
createFromTime?: {};
|
|
82
|
+
createFromHexString?: {};
|
|
83
|
+
createFromBase64?: {};
|
|
84
|
+
isValid?: {};
|
|
85
|
+
};
|
|
86
|
+
updated_at?: Date;
|
|
87
|
+
model?: string;
|
|
88
|
+
brand?: string;
|
|
89
|
+
}>> & import("mongoose").FlatRecord<{
|
|
90
|
+
created_at: Date;
|
|
91
|
+
description: string;
|
|
92
|
+
article_number: string;
|
|
93
|
+
unit: string;
|
|
94
|
+
group_id: {
|
|
95
|
+
prototype?: Types.ObjectId;
|
|
96
|
+
cacheHexString?: unknown;
|
|
97
|
+
generate?: {};
|
|
98
|
+
createFromTime?: {};
|
|
99
|
+
createFromHexString?: {};
|
|
100
|
+
createFromBase64?: {};
|
|
101
|
+
isValid?: {};
|
|
102
|
+
};
|
|
103
|
+
updated_at?: Date;
|
|
104
|
+
model?: string;
|
|
105
|
+
brand?: string;
|
|
106
|
+
}> & {
|
|
107
|
+
_id: Types.ObjectId;
|
|
108
|
+
}>>;
|
|
109
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const articleSchema = new mongoose_1.Schema({
|
|
5
|
+
article_number: { type: String, required: true, unique: true }, // SAP ItemCode
|
|
6
|
+
description: { type: String, required: true },
|
|
7
|
+
unit: { type: String, required: true },
|
|
8
|
+
brand: { type: String },
|
|
9
|
+
model: { type: String },
|
|
10
|
+
group_id: { type: mongoose_1.Types.ObjectId, ref: "ArticleGroup", required: true },
|
|
11
|
+
created_at: { type: Date, default: Date.now },
|
|
12
|
+
updated_at: { type: Date },
|
|
13
|
+
});
|
|
14
|
+
exports.default = (0, mongoose_1.model)("Article", articleSchema, "articles");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
declare const _default: import("mongoose").Model<{
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}> & {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
} & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
17
|
+
name: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
}>> & import("mongoose").FlatRecord<{
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
}> & {
|
|
23
|
+
_id: import("mongoose").Types.ObjectId;
|
|
24
|
+
}>>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const articleClassSchema = new mongoose_1.Schema({
|
|
5
|
+
name: { type: String, required: true },
|
|
6
|
+
description: { type: String },
|
|
7
|
+
});
|
|
8
|
+
exports.default = (0, mongoose_1.model)("ArticleClass", articleClassSchema, "article_classes");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
declare const _default: import("mongoose").Model<{
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}> & {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
} & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
17
|
+
name: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
}>> & import("mongoose").FlatRecord<{
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
}> & {
|
|
23
|
+
_id: import("mongoose").Types.ObjectId;
|
|
24
|
+
}>>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const articleGroupSchema = new mongoose_1.Schema({
|
|
5
|
+
name: { type: String, required: true },
|
|
6
|
+
description: { type: String },
|
|
7
|
+
});
|
|
8
|
+
exports.default = (0, mongoose_1.model)("ArticleGroup", articleGroupSchema, "article_groups");
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
declare const _default: import("mongoose").Model<{
|
|
3
|
+
created_at: Date;
|
|
4
|
+
article_id: {
|
|
5
|
+
prototype?: Types.ObjectId;
|
|
6
|
+
cacheHexString?: unknown;
|
|
7
|
+
generate?: {};
|
|
8
|
+
createFromTime?: {};
|
|
9
|
+
createFromHexString?: {};
|
|
10
|
+
createFromBase64?: {};
|
|
11
|
+
isValid?: {};
|
|
12
|
+
};
|
|
13
|
+
price_list_id: {
|
|
14
|
+
prototype?: Types.ObjectId;
|
|
15
|
+
cacheHexString?: unknown;
|
|
16
|
+
generate?: {};
|
|
17
|
+
createFromTime?: {};
|
|
18
|
+
createFromHexString?: {};
|
|
19
|
+
createFromBase64?: {};
|
|
20
|
+
isValid?: {};
|
|
21
|
+
};
|
|
22
|
+
currency_id: {
|
|
23
|
+
prototype?: Types.ObjectId;
|
|
24
|
+
cacheHexString?: unknown;
|
|
25
|
+
generate?: {};
|
|
26
|
+
createFromTime?: {};
|
|
27
|
+
createFromHexString?: {};
|
|
28
|
+
createFromBase64?: {};
|
|
29
|
+
isValid?: {};
|
|
30
|
+
};
|
|
31
|
+
price: number;
|
|
32
|
+
updated_at?: Date;
|
|
33
|
+
valid_from?: Date;
|
|
34
|
+
valid_to?: Date;
|
|
35
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
36
|
+
created_at: Date;
|
|
37
|
+
article_id: {
|
|
38
|
+
prototype?: Types.ObjectId;
|
|
39
|
+
cacheHexString?: unknown;
|
|
40
|
+
generate?: {};
|
|
41
|
+
createFromTime?: {};
|
|
42
|
+
createFromHexString?: {};
|
|
43
|
+
createFromBase64?: {};
|
|
44
|
+
isValid?: {};
|
|
45
|
+
};
|
|
46
|
+
price_list_id: {
|
|
47
|
+
prototype?: Types.ObjectId;
|
|
48
|
+
cacheHexString?: unknown;
|
|
49
|
+
generate?: {};
|
|
50
|
+
createFromTime?: {};
|
|
51
|
+
createFromHexString?: {};
|
|
52
|
+
createFromBase64?: {};
|
|
53
|
+
isValid?: {};
|
|
54
|
+
};
|
|
55
|
+
currency_id: {
|
|
56
|
+
prototype?: Types.ObjectId;
|
|
57
|
+
cacheHexString?: unknown;
|
|
58
|
+
generate?: {};
|
|
59
|
+
createFromTime?: {};
|
|
60
|
+
createFromHexString?: {};
|
|
61
|
+
createFromBase64?: {};
|
|
62
|
+
isValid?: {};
|
|
63
|
+
};
|
|
64
|
+
price: number;
|
|
65
|
+
updated_at?: Date;
|
|
66
|
+
valid_from?: Date;
|
|
67
|
+
valid_to?: Date;
|
|
68
|
+
}> & {
|
|
69
|
+
created_at: Date;
|
|
70
|
+
article_id: {
|
|
71
|
+
prototype?: Types.ObjectId;
|
|
72
|
+
cacheHexString?: unknown;
|
|
73
|
+
generate?: {};
|
|
74
|
+
createFromTime?: {};
|
|
75
|
+
createFromHexString?: {};
|
|
76
|
+
createFromBase64?: {};
|
|
77
|
+
isValid?: {};
|
|
78
|
+
};
|
|
79
|
+
price_list_id: {
|
|
80
|
+
prototype?: Types.ObjectId;
|
|
81
|
+
cacheHexString?: unknown;
|
|
82
|
+
generate?: {};
|
|
83
|
+
createFromTime?: {};
|
|
84
|
+
createFromHexString?: {};
|
|
85
|
+
createFromBase64?: {};
|
|
86
|
+
isValid?: {};
|
|
87
|
+
};
|
|
88
|
+
currency_id: {
|
|
89
|
+
prototype?: Types.ObjectId;
|
|
90
|
+
cacheHexString?: unknown;
|
|
91
|
+
generate?: {};
|
|
92
|
+
createFromTime?: {};
|
|
93
|
+
createFromHexString?: {};
|
|
94
|
+
createFromBase64?: {};
|
|
95
|
+
isValid?: {};
|
|
96
|
+
};
|
|
97
|
+
price: number;
|
|
98
|
+
updated_at?: Date;
|
|
99
|
+
valid_from?: Date;
|
|
100
|
+
valid_to?: Date;
|
|
101
|
+
} & {
|
|
102
|
+
_id: Types.ObjectId;
|
|
103
|
+
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
104
|
+
created_at: Date;
|
|
105
|
+
article_id: {
|
|
106
|
+
prototype?: Types.ObjectId;
|
|
107
|
+
cacheHexString?: unknown;
|
|
108
|
+
generate?: {};
|
|
109
|
+
createFromTime?: {};
|
|
110
|
+
createFromHexString?: {};
|
|
111
|
+
createFromBase64?: {};
|
|
112
|
+
isValid?: {};
|
|
113
|
+
};
|
|
114
|
+
price_list_id: {
|
|
115
|
+
prototype?: Types.ObjectId;
|
|
116
|
+
cacheHexString?: unknown;
|
|
117
|
+
generate?: {};
|
|
118
|
+
createFromTime?: {};
|
|
119
|
+
createFromHexString?: {};
|
|
120
|
+
createFromBase64?: {};
|
|
121
|
+
isValid?: {};
|
|
122
|
+
};
|
|
123
|
+
currency_id: {
|
|
124
|
+
prototype?: Types.ObjectId;
|
|
125
|
+
cacheHexString?: unknown;
|
|
126
|
+
generate?: {};
|
|
127
|
+
createFromTime?: {};
|
|
128
|
+
createFromHexString?: {};
|
|
129
|
+
createFromBase64?: {};
|
|
130
|
+
isValid?: {};
|
|
131
|
+
};
|
|
132
|
+
price: number;
|
|
133
|
+
updated_at?: Date;
|
|
134
|
+
valid_from?: Date;
|
|
135
|
+
valid_to?: Date;
|
|
136
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
137
|
+
created_at: Date;
|
|
138
|
+
article_id: {
|
|
139
|
+
prototype?: Types.ObjectId;
|
|
140
|
+
cacheHexString?: unknown;
|
|
141
|
+
generate?: {};
|
|
142
|
+
createFromTime?: {};
|
|
143
|
+
createFromHexString?: {};
|
|
144
|
+
createFromBase64?: {};
|
|
145
|
+
isValid?: {};
|
|
146
|
+
};
|
|
147
|
+
price_list_id: {
|
|
148
|
+
prototype?: Types.ObjectId;
|
|
149
|
+
cacheHexString?: unknown;
|
|
150
|
+
generate?: {};
|
|
151
|
+
createFromTime?: {};
|
|
152
|
+
createFromHexString?: {};
|
|
153
|
+
createFromBase64?: {};
|
|
154
|
+
isValid?: {};
|
|
155
|
+
};
|
|
156
|
+
currency_id: {
|
|
157
|
+
prototype?: Types.ObjectId;
|
|
158
|
+
cacheHexString?: unknown;
|
|
159
|
+
generate?: {};
|
|
160
|
+
createFromTime?: {};
|
|
161
|
+
createFromHexString?: {};
|
|
162
|
+
createFromBase64?: {};
|
|
163
|
+
isValid?: {};
|
|
164
|
+
};
|
|
165
|
+
price: number;
|
|
166
|
+
updated_at?: Date;
|
|
167
|
+
valid_from?: Date;
|
|
168
|
+
valid_to?: Date;
|
|
169
|
+
}>> & import("mongoose").FlatRecord<{
|
|
170
|
+
created_at: Date;
|
|
171
|
+
article_id: {
|
|
172
|
+
prototype?: Types.ObjectId;
|
|
173
|
+
cacheHexString?: unknown;
|
|
174
|
+
generate?: {};
|
|
175
|
+
createFromTime?: {};
|
|
176
|
+
createFromHexString?: {};
|
|
177
|
+
createFromBase64?: {};
|
|
178
|
+
isValid?: {};
|
|
179
|
+
};
|
|
180
|
+
price_list_id: {
|
|
181
|
+
prototype?: Types.ObjectId;
|
|
182
|
+
cacheHexString?: unknown;
|
|
183
|
+
generate?: {};
|
|
184
|
+
createFromTime?: {};
|
|
185
|
+
createFromHexString?: {};
|
|
186
|
+
createFromBase64?: {};
|
|
187
|
+
isValid?: {};
|
|
188
|
+
};
|
|
189
|
+
currency_id: {
|
|
190
|
+
prototype?: Types.ObjectId;
|
|
191
|
+
cacheHexString?: unknown;
|
|
192
|
+
generate?: {};
|
|
193
|
+
createFromTime?: {};
|
|
194
|
+
createFromHexString?: {};
|
|
195
|
+
createFromBase64?: {};
|
|
196
|
+
isValid?: {};
|
|
197
|
+
};
|
|
198
|
+
price: number;
|
|
199
|
+
updated_at?: Date;
|
|
200
|
+
valid_from?: Date;
|
|
201
|
+
valid_to?: Date;
|
|
202
|
+
}> & {
|
|
203
|
+
_id: Types.ObjectId;
|
|
204
|
+
}>>;
|
|
205
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const articlePriceSchema = new mongoose_1.Schema({
|
|
5
|
+
article_id: { type: mongoose_1.Types.ObjectId, ref: "Article", required: true },
|
|
6
|
+
price_list_id: { type: mongoose_1.Types.ObjectId, ref: "PriceList", required: true },
|
|
7
|
+
currency_id: { type: mongoose_1.Types.ObjectId, ref: "Currency", required: true },
|
|
8
|
+
price: { type: Number, required: true },
|
|
9
|
+
valid_from: { type: Date },
|
|
10
|
+
valid_to: { type: Date },
|
|
11
|
+
created_at: { type: Date, default: Date.now },
|
|
12
|
+
updated_at: { type: Date },
|
|
13
|
+
});
|
|
14
|
+
exports.default = (0, mongoose_1.model)("ArticlePrice", articlePriceSchema, "article_prices");
|