@fesmex/models 0.1.5 → 0.1.7
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/quotes/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { default as Quote } from "./models/Quote";
|
|
1
|
+
export { default as Quote, QuoteStatus, Status, CreatedMethod } from "./models/Quote";
|
|
2
2
|
export { default as QuoteArticle } from "./models/QuoteArticle";
|
|
3
3
|
export { default as QuoteArticleExtra } from "./models/QuoteArticleExtra";
|
|
4
4
|
export { default as QuoteContact } from "./models/QuoteContact";
|
|
5
|
+
export { default as QuoteTerm } from "./models/QuoteTerm";
|
package/dist/quotes/index.js
CHANGED
|
@@ -3,12 +3,17 @@ 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.QuoteContact = exports.QuoteArticleExtra = exports.QuoteArticle = exports.Quote = void 0;
|
|
6
|
+
exports.QuoteTerm = exports.QuoteContact = exports.QuoteArticleExtra = exports.QuoteArticle = exports.CreatedMethod = exports.Status = exports.QuoteStatus = exports.Quote = void 0;
|
|
7
7
|
var Quote_1 = require("./models/Quote");
|
|
8
8
|
Object.defineProperty(exports, "Quote", { enumerable: true, get: function () { return __importDefault(Quote_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "QuoteStatus", { enumerable: true, get: function () { return Quote_1.QuoteStatus; } });
|
|
10
|
+
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return Quote_1.Status; } });
|
|
11
|
+
Object.defineProperty(exports, "CreatedMethod", { enumerable: true, get: function () { return Quote_1.CreatedMethod; } });
|
|
9
12
|
var QuoteArticle_1 = require("./models/QuoteArticle");
|
|
10
13
|
Object.defineProperty(exports, "QuoteArticle", { enumerable: true, get: function () { return __importDefault(QuoteArticle_1).default; } });
|
|
11
14
|
var QuoteArticleExtra_1 = require("./models/QuoteArticleExtra");
|
|
12
15
|
Object.defineProperty(exports, "QuoteArticleExtra", { enumerable: true, get: function () { return __importDefault(QuoteArticleExtra_1).default; } });
|
|
13
16
|
var QuoteContact_1 = require("./models/QuoteContact");
|
|
14
17
|
Object.defineProperty(exports, "QuoteContact", { enumerable: true, get: function () { return __importDefault(QuoteContact_1).default; } });
|
|
18
|
+
var QuoteTerm_1 = require("./models/QuoteTerm");
|
|
19
|
+
Object.defineProperty(exports, "QuoteTerm", { enumerable: true, get: function () { return __importDefault(QuoteTerm_1).default; } });
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Schema } from "mongoose";
|
|
2
|
+
declare const _default: import("mongoose").Model<{
|
|
3
|
+
content: string;
|
|
4
|
+
is_active: boolean;
|
|
5
|
+
created_by?: string;
|
|
6
|
+
updated_by?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
category?: string;
|
|
9
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
10
|
+
content: string;
|
|
11
|
+
is_active: boolean;
|
|
12
|
+
created_by?: string;
|
|
13
|
+
updated_by?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
category?: string;
|
|
16
|
+
}> & {
|
|
17
|
+
content: string;
|
|
18
|
+
is_active: boolean;
|
|
19
|
+
created_by?: string;
|
|
20
|
+
updated_by?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
category?: string;
|
|
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
|
+
content: string;
|
|
32
|
+
is_active: boolean;
|
|
33
|
+
created_by?: string;
|
|
34
|
+
updated_by?: string;
|
|
35
|
+
title?: string;
|
|
36
|
+
category?: string;
|
|
37
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
38
|
+
content: string;
|
|
39
|
+
is_active: boolean;
|
|
40
|
+
created_by?: string;
|
|
41
|
+
updated_by?: string;
|
|
42
|
+
title?: string;
|
|
43
|
+
category?: string;
|
|
44
|
+
}>> & import("mongoose").FlatRecord<{
|
|
45
|
+
content: string;
|
|
46
|
+
is_active: boolean;
|
|
47
|
+
created_by?: string;
|
|
48
|
+
updated_by?: string;
|
|
49
|
+
title?: string;
|
|
50
|
+
category?: string;
|
|
51
|
+
}> & {
|
|
52
|
+
_id: import("mongoose").Types.ObjectId;
|
|
53
|
+
}>>;
|
|
54
|
+
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 quoteTermSchema = new mongoose_1.Schema({
|
|
5
|
+
title: String,
|
|
6
|
+
content: { type: String, required: true },
|
|
7
|
+
category: String,
|
|
8
|
+
is_active: { type: Boolean, default: true },
|
|
9
|
+
created_by: String,
|
|
10
|
+
updated_by: String,
|
|
11
|
+
}, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
|
|
12
|
+
exports.default = (0, mongoose_1.model)("QuoteTerm", quoteTermSchema, "quote_terms");
|
package/dist/users/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default as Users } from "./models/Users";
|
|
1
|
+
export { default as Users, UserRole, UserStatus } from "./models/Users";
|
|
2
|
+
export type { UserType } from "./models/Users";
|
package/dist/users/index.js
CHANGED
|
@@ -3,6 +3,8 @@ 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.Users = void 0;
|
|
6
|
+
exports.UserStatus = exports.UserRole = exports.Users = void 0;
|
|
7
7
|
var Users_1 = require("./models/Users");
|
|
8
8
|
Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return __importDefault(Users_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return Users_1.UserRole; } });
|
|
10
|
+
Object.defineProperty(exports, "UserStatus", { enumerable: true, get: function () { return Users_1.UserStatus; } });
|