@fesmex/models 0.1.9 → 0.1.13

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.
Files changed (32) hide show
  1. package/dist/customers/models/Customers.js +1 -1
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.js +0 -1
  4. package/dist/inventory/models/Article.d.ts +1 -108
  5. package/dist/inventory/models/Article.js +1 -1
  6. package/dist/inventory/models/ArticleClasses.d.ts +1 -24
  7. package/dist/inventory/models/ArticleClasses.js +1 -1
  8. package/dist/inventory/models/ArticleGroups.d.ts +1 -24
  9. package/dist/inventory/models/ArticleGroups.js +1 -1
  10. package/dist/inventory/models/ArticlePrices.d.ts +1 -204
  11. package/dist/inventory/models/ArticlePrices.js +1 -1
  12. package/dist/inventory/models/Currencies.d.ts +1 -30
  13. package/dist/inventory/models/Currencies.js +1 -1
  14. package/dist/inventory/models/InventoryStocks.d.ts +1 -144
  15. package/dist/inventory/models/InventoryStocks.js +1 -1
  16. package/dist/inventory/models/PriceLists.d.ts +1 -36
  17. package/dist/inventory/models/PriceLists.js +1 -1
  18. package/dist/inventory/models/Warehouses.d.ts +1 -42
  19. package/dist/inventory/models/Warehouses.js +1 -1
  20. package/dist/orders/models/Orders.d.ts +1 -90
  21. package/dist/orders/models/Orders.js +1 -1
  22. package/dist/quotes/models/Quote.d.ts +1 -191
  23. package/dist/quotes/models/Quote.js +1 -1
  24. package/dist/quotes/models/QuoteArticle.d.ts +1 -95
  25. package/dist/quotes/models/QuoteArticle.js +1 -1
  26. package/dist/quotes/models/QuoteArticleExtra.d.ts +1 -53
  27. package/dist/quotes/models/QuoteArticleExtra.js +1 -1
  28. package/dist/quotes/models/QuoteContact.d.ts +1 -48
  29. package/dist/quotes/models/QuoteContact.js +1 -1
  30. package/dist/quotes/models/QuoteTerm.d.ts +1 -53
  31. package/dist/quotes/models/QuoteTerm.js +1 -1
  32. package/package.json +3 -2
@@ -1,43 +1,2 @@
1
- import { Schema } from "mongoose";
2
- declare const _default: import("mongoose").Model<{
3
- created_at: Date;
4
- name: string;
5
- code: string;
6
- updated_at?: Date;
7
- location?: string;
8
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
9
- created_at: Date;
10
- name: string;
11
- code: string;
12
- updated_at?: Date;
13
- location?: string;
14
- }> & {
15
- created_at: Date;
16
- name: string;
17
- code: string;
18
- updated_at?: Date;
19
- location?: string;
20
- } & {
21
- _id: import("mongoose").Types.ObjectId;
22
- }, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
23
- created_at: Date;
24
- name: string;
25
- code: string;
26
- updated_at?: Date;
27
- location?: string;
28
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
29
- created_at: Date;
30
- name: string;
31
- code: string;
32
- updated_at?: Date;
33
- location?: string;
34
- }>> & import("mongoose").FlatRecord<{
35
- created_at: Date;
36
- name: string;
37
- code: string;
38
- updated_at?: Date;
39
- location?: string;
40
- }> & {
41
- _id: import("mongoose").Types.ObjectId;
42
- }>>;
1
+ declare const _default: import("mongoose").Model<any, {}, {}, {}, any, any>;
43
2
  export default _default;
@@ -8,4 +8,4 @@ const warehouseSchema = new mongoose_1.Schema({
8
8
  created_at: { type: Date, default: Date.now },
9
9
  updated_at: { type: Date },
10
10
  });
11
- exports.default = (0, mongoose_1.model)("Warehouse", warehouseSchema, "warehouses");
11
+ exports.default = mongoose_1.models.Warehouse || (0, mongoose_1.model)("Warehouse", warehouseSchema, "warehouses");
@@ -1,4 +1,3 @@
1
- import { Schema } from "mongoose";
2
1
  export declare enum OrderStatus {
3
2
  PENDING = "pending",
4
3
  CONFIRMED = "confirmed",
@@ -6,93 +5,5 @@ export declare enum OrderStatus {
6
5
  CANCELLED = "cancelled",
7
6
  COMPLETED = "completed"
8
7
  }
9
- declare const _default: import("mongoose").Model<{
10
- created_at: Date;
11
- status: OrderStatus;
12
- total: number;
13
- customer_id: import("mongoose").Types.ObjectId;
14
- items: import("mongoose").Types.DocumentArray<{
15
- article_id: import("mongoose").Types.ObjectId;
16
- quantity: number;
17
- unit_price: number;
18
- total: number;
19
- }>;
20
- updated_at?: Date;
21
- notes?: string;
22
- tracking_number?: string;
23
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
24
- created_at: Date;
25
- status: OrderStatus;
26
- total: number;
27
- customer_id: import("mongoose").Types.ObjectId;
28
- items: import("mongoose").Types.DocumentArray<{
29
- article_id: import("mongoose").Types.ObjectId;
30
- quantity: number;
31
- unit_price: number;
32
- total: number;
33
- }>;
34
- updated_at?: Date;
35
- notes?: string;
36
- tracking_number?: string;
37
- }> & {
38
- created_at: Date;
39
- status: OrderStatus;
40
- total: number;
41
- customer_id: import("mongoose").Types.ObjectId;
42
- items: import("mongoose").Types.DocumentArray<{
43
- article_id: import("mongoose").Types.ObjectId;
44
- quantity: number;
45
- unit_price: number;
46
- total: number;
47
- }>;
48
- updated_at?: Date;
49
- notes?: string;
50
- tracking_number?: string;
51
- } & {
52
- _id: import("mongoose").Types.ObjectId;
53
- }, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
54
- created_at: Date;
55
- status: OrderStatus;
56
- total: number;
57
- customer_id: import("mongoose").Types.ObjectId;
58
- items: import("mongoose").Types.DocumentArray<{
59
- article_id: import("mongoose").Types.ObjectId;
60
- quantity: number;
61
- unit_price: number;
62
- total: number;
63
- }>;
64
- updated_at?: Date;
65
- notes?: string;
66
- tracking_number?: string;
67
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
68
- created_at: Date;
69
- status: OrderStatus;
70
- total: number;
71
- customer_id: import("mongoose").Types.ObjectId;
72
- items: import("mongoose").Types.DocumentArray<{
73
- article_id: import("mongoose").Types.ObjectId;
74
- quantity: number;
75
- unit_price: number;
76
- total: number;
77
- }>;
78
- updated_at?: Date;
79
- notes?: string;
80
- tracking_number?: string;
81
- }>> & import("mongoose").FlatRecord<{
82
- created_at: Date;
83
- status: OrderStatus;
84
- total: number;
85
- customer_id: import("mongoose").Types.ObjectId;
86
- items: import("mongoose").Types.DocumentArray<{
87
- article_id: import("mongoose").Types.ObjectId;
88
- quantity: number;
89
- unit_price: number;
90
- total: number;
91
- }>;
92
- updated_at?: Date;
93
- notes?: string;
94
- tracking_number?: string;
95
- }> & {
96
- _id: import("mongoose").Types.ObjectId;
97
- }>>;
8
+ declare const _default: import("mongoose").Model<any, {}, {}, {}, any, any>;
98
9
  export default _default;
@@ -30,4 +30,4 @@ const orderSchema = new mongoose_1.Schema({
30
30
  created_at: { type: Date, default: Date.now },
31
31
  updated_at: { type: Date },
32
32
  });
33
- exports.default = (0, mongoose_1.model)("Order", orderSchema, "orders");
33
+ exports.default = mongoose_1.models.Order || (0, mongoose_1.model)("Order", orderSchema, "orders");
@@ -1,4 +1,3 @@
1
- import { Schema } from "mongoose";
2
1
  export declare enum QuoteStatus {
3
2
  OPPORTUNITY = "OPPORTUNITY",
4
3
  QUOTE = "QUOTE",
@@ -15,194 +14,5 @@ export declare enum CreatedMethod {
15
14
  MANUAL = "MANUAL",
16
15
  CSV = "CSV"
17
16
  }
18
- declare const _default: import("mongoose").Model<{
19
- quote_number: number;
20
- quote_revision: number;
21
- company_id: import("mongoose").Types.ObjectId;
22
- terms_ids: import("mongoose").Types.ObjectId[];
23
- status: Status;
24
- quote_status: QuoteStatus;
25
- should_sync: boolean;
26
- created_method: CreatedMethod;
27
- pipedrive_id?: string;
28
- sap_id?: string;
29
- deleted_at?: Date;
30
- deleted_by?: import("mongoose").Types.ObjectId;
31
- date?: Date;
32
- currency_id?: import("mongoose").Types.ObjectId;
33
- quote_ref?: string;
34
- company?: string;
35
- company_pipedrive_id?: string;
36
- contact_id?: import("mongoose").Types.ObjectId;
37
- project_name?: string;
38
- project_lab?: string;
39
- payment_condition?: string;
40
- payment_exp?: string;
41
- iva?: string;
42
- sap_quotation_entry?: number;
43
- sap_order_entry?: number;
44
- pdf_download_link?: string;
45
- notes?: string;
46
- created_by?: import("mongoose").Types.ObjectId;
47
- updated_by?: import("mongoose").Types.ObjectId;
48
- }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
49
- quote_number: number;
50
- quote_revision: number;
51
- company_id: import("mongoose").Types.ObjectId;
52
- terms_ids: import("mongoose").Types.ObjectId[];
53
- status: Status;
54
- quote_status: QuoteStatus;
55
- should_sync: boolean;
56
- created_method: CreatedMethod;
57
- pipedrive_id?: string;
58
- sap_id?: string;
59
- deleted_at?: Date;
60
- deleted_by?: import("mongoose").Types.ObjectId;
61
- date?: Date;
62
- currency_id?: import("mongoose").Types.ObjectId;
63
- quote_ref?: string;
64
- company?: string;
65
- company_pipedrive_id?: string;
66
- contact_id?: import("mongoose").Types.ObjectId;
67
- project_name?: string;
68
- project_lab?: string;
69
- payment_condition?: string;
70
- payment_exp?: string;
71
- iva?: string;
72
- sap_quotation_entry?: number;
73
- sap_order_entry?: number;
74
- pdf_download_link?: string;
75
- notes?: string;
76
- created_by?: import("mongoose").Types.ObjectId;
77
- updated_by?: import("mongoose").Types.ObjectId;
78
- }> & {
79
- quote_number: number;
80
- quote_revision: number;
81
- company_id: import("mongoose").Types.ObjectId;
82
- terms_ids: import("mongoose").Types.ObjectId[];
83
- status: Status;
84
- quote_status: QuoteStatus;
85
- should_sync: boolean;
86
- created_method: CreatedMethod;
87
- pipedrive_id?: string;
88
- sap_id?: string;
89
- deleted_at?: Date;
90
- deleted_by?: import("mongoose").Types.ObjectId;
91
- date?: Date;
92
- currency_id?: import("mongoose").Types.ObjectId;
93
- quote_ref?: string;
94
- company?: string;
95
- company_pipedrive_id?: string;
96
- contact_id?: import("mongoose").Types.ObjectId;
97
- project_name?: string;
98
- project_lab?: string;
99
- payment_condition?: string;
100
- payment_exp?: string;
101
- iva?: string;
102
- sap_quotation_entry?: number;
103
- sap_order_entry?: number;
104
- pdf_download_link?: string;
105
- notes?: string;
106
- created_by?: import("mongoose").Types.ObjectId;
107
- updated_by?: import("mongoose").Types.ObjectId;
108
- } & {
109
- _id: import("mongoose").Types.ObjectId;
110
- }, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
111
- timestamps: {
112
- createdAt: string;
113
- updatedAt: string;
114
- };
115
- }, {
116
- quote_number: number;
117
- quote_revision: number;
118
- company_id: import("mongoose").Types.ObjectId;
119
- terms_ids: import("mongoose").Types.ObjectId[];
120
- status: Status;
121
- quote_status: QuoteStatus;
122
- should_sync: boolean;
123
- created_method: CreatedMethod;
124
- pipedrive_id?: string;
125
- sap_id?: string;
126
- deleted_at?: Date;
127
- deleted_by?: import("mongoose").Types.ObjectId;
128
- date?: Date;
129
- currency_id?: import("mongoose").Types.ObjectId;
130
- quote_ref?: string;
131
- company?: string;
132
- company_pipedrive_id?: string;
133
- contact_id?: import("mongoose").Types.ObjectId;
134
- project_name?: string;
135
- project_lab?: string;
136
- payment_condition?: string;
137
- payment_exp?: string;
138
- iva?: string;
139
- sap_quotation_entry?: number;
140
- sap_order_entry?: number;
141
- pdf_download_link?: string;
142
- notes?: string;
143
- created_by?: import("mongoose").Types.ObjectId;
144
- updated_by?: import("mongoose").Types.ObjectId;
145
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
146
- quote_number: number;
147
- quote_revision: number;
148
- company_id: import("mongoose").Types.ObjectId;
149
- terms_ids: import("mongoose").Types.ObjectId[];
150
- status: Status;
151
- quote_status: QuoteStatus;
152
- should_sync: boolean;
153
- created_method: CreatedMethod;
154
- pipedrive_id?: string;
155
- sap_id?: string;
156
- deleted_at?: Date;
157
- deleted_by?: import("mongoose").Types.ObjectId;
158
- date?: Date;
159
- currency_id?: import("mongoose").Types.ObjectId;
160
- quote_ref?: string;
161
- company?: string;
162
- company_pipedrive_id?: string;
163
- contact_id?: import("mongoose").Types.ObjectId;
164
- project_name?: string;
165
- project_lab?: string;
166
- payment_condition?: string;
167
- payment_exp?: string;
168
- iva?: string;
169
- sap_quotation_entry?: number;
170
- sap_order_entry?: number;
171
- pdf_download_link?: string;
172
- notes?: string;
173
- created_by?: import("mongoose").Types.ObjectId;
174
- updated_by?: import("mongoose").Types.ObjectId;
175
- }>> & import("mongoose").FlatRecord<{
176
- quote_number: number;
177
- quote_revision: number;
178
- company_id: import("mongoose").Types.ObjectId;
179
- terms_ids: import("mongoose").Types.ObjectId[];
180
- status: Status;
181
- quote_status: QuoteStatus;
182
- should_sync: boolean;
183
- created_method: CreatedMethod;
184
- pipedrive_id?: string;
185
- sap_id?: string;
186
- deleted_at?: Date;
187
- deleted_by?: import("mongoose").Types.ObjectId;
188
- date?: Date;
189
- currency_id?: import("mongoose").Types.ObjectId;
190
- quote_ref?: string;
191
- company?: string;
192
- company_pipedrive_id?: string;
193
- contact_id?: import("mongoose").Types.ObjectId;
194
- project_name?: string;
195
- project_lab?: string;
196
- payment_condition?: string;
197
- payment_exp?: string;
198
- iva?: string;
199
- sap_quotation_entry?: number;
200
- sap_order_entry?: number;
201
- pdf_download_link?: string;
202
- notes?: string;
203
- created_by?: import("mongoose").Types.ObjectId;
204
- updated_by?: import("mongoose").Types.ObjectId;
205
- }> & {
206
- _id: import("mongoose").Types.ObjectId;
207
- }>>;
17
+ declare const _default: import("mongoose").Model<any, {}, {}, {}, any, any>;
208
18
  export default _default;
@@ -60,4 +60,4 @@ const quoteSchema = new mongoose_1.Schema({
60
60
  deleted_by: { type: mongoose_1.Schema.Types.ObjectId, ref: "User" },
61
61
  deleted_at: { type: Date },
62
62
  }, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
63
- exports.default = (0, mongoose_1.model)("Quote", quoteSchema, "quotes");
63
+ exports.default = mongoose_1.models.Quote || (0, mongoose_1.model)("Quote", quoteSchema, "quotes");
@@ -1,96 +1,2 @@
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
- }>>;
1
+ declare const _default: import("mongoose").Model<any, {}, {}, {}, any, any>;
96
2
  export default _default;
@@ -16,4 +16,4 @@ const quoteArticleSchema = new mongoose_1.Schema({
16
16
  type: { type: String },
17
17
  extra_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "QuoteArticleExtra" },
18
18
  }, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
19
- exports.default = (0, mongoose_1.model)("QuoteArticle", quoteArticleSchema, "quote_articles");
19
+ exports.default = mongoose_1.models.QuoteArticle || (0, mongoose_1.model)("QuoteArticle", quoteArticleSchema, "quote_articles");
@@ -1,54 +1,2 @@
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
- }>>;
1
+ declare const _default: import("mongoose").Model<any, {}, {}, {}, any, any>;
54
2
  export default _default;
@@ -13,4 +13,4 @@ const quoteArticleExtraSchema = new mongoose_1.Schema({
13
13
  duty: Number,
14
14
  mex_freight: Number,
15
15
  }, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
16
- exports.default = (0, mongoose_1.model)("QuoteArticleExtra", quoteArticleExtraSchema, "quote_article_extras");
16
+ exports.default = mongoose_1.models.QuoteArticleExtra || (0, mongoose_1.model)("QuoteArticleExtra", quoteArticleExtraSchema, "quote_article_extras");
@@ -1,49 +1,2 @@
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
- }>>;
1
+ declare const _default: import("mongoose").Model<any, {}, {}, {}, any, any>;
49
2
  export default _default;
@@ -9,4 +9,4 @@ const quoteContactSchema = new mongoose_1.Schema({
9
9
  pipedrive_id: String,
10
10
  created_at: { type: Date, default: Date.now },
11
11
  });
12
- exports.default = (0, mongoose_1.model)("QuoteContact", quoteContactSchema, "quote_contacts");
12
+ exports.default = mongoose_1.models.QuoteContact || (0, mongoose_1.model)("QuoteContact", quoteContactSchema, "quote_contacts");
@@ -1,54 +1,2 @@
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
- }>>;
1
+ declare const _default: import("mongoose").Model<any, {}, {}, {}, any, any>;
54
2
  export default _default;
@@ -9,4 +9,4 @@ const quoteTermSchema = new mongoose_1.Schema({
9
9
  created_by: String,
10
10
  updated_by: String,
11
11
  }, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" } });
12
- exports.default = (0, mongoose_1.model)("QuoteTerm", quoteTermSchema, "quote_terms");
12
+ exports.default = mongoose_1.models.QuoteTerm || (0, mongoose_1.model)("QuoteTerm", quoteTermSchema, "quote_terms");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fesmex/models",
3
- "version": "0.1.9",
3
+ "version": "0.1.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -18,5 +18,6 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "bcryptjs": "^3.0.3"
21
- }
21
+ },
22
+ "packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"
22
23
  }