@nomalism-com/types 0.21.20 → 0.21.22
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/index.min.js +1 -1
- package/dist/main.d.ts +45 -1
- package/dist/modules/stock/attribute/interfaces.d.ts +51 -0
- package/dist/modules/stock/attribute/route.schema.d.ts +5 -0
- package/dist/modules/stock/attributeValue/interfaces.d.ts +36 -0
- package/dist/modules/stock/attributeValue/route.schema.d.ts +5 -0
- package/dist/modules/stock/chat/interfaces.d.ts +2 -2
- package/dist/modules/stock/color/interfaces.d.ts +36 -0
- package/dist/modules/stock/color/route.schema.d.ts +5 -0
- package/dist/modules/stock/composition/interfaces.d.ts +36 -0
- package/dist/modules/stock/composition/route.schema.d.ts +5 -0
- package/dist/modules/stock/compositionMaterial/interfaces.d.ts +32 -0
- package/dist/modules/stock/compositionMaterial/route.schema.d.ts +5 -0
- package/dist/modules/stock/maintenance/interface.d.ts +37 -0
- package/dist/modules/stock/maintenance/route.schema.d.ts +5 -0
- package/dist/modules/stock/maintenanceAssoc/interface.d.ts +35 -0
- package/dist/modules/stock/maintenanceAssoc/route.schema.d.ts +5 -0
- package/dist/modules/stock/maintenancePreset/interfaces.d.ts +28 -0
- package/dist/modules/stock/maintenancePreset/route.schema.d.ts +5 -0
- package/dist/modules/stock/maintenancePresetAssoc/interfaces.d.ts +31 -0
- package/dist/modules/stock/maintenancePresetAssoc/route.schema.d.ts +4 -0
- package/dist/modules/stock/maintenanceType/interface.d.ts +32 -0
- package/dist/modules/stock/maintenanceType/route.schema.d.ts +5 -0
- package/dist/modules/stock/primaryColor/interface.d.ts +32 -0
- package/dist/modules/stock/primaryColor/route.schema.d.ts +5 -0
- package/dist/modules/stock/product/interface.d.ts +13 -1
- package/dist/modules/stock/productAttribute/interface.d.ts +36 -0
- package/dist/modules/stock/productAttribute/route.schema.d.ts +5 -0
- package/dist/modules/stock/productCategory/interface.d.ts +32 -0
- package/dist/modules/stock/productCategory/route.schema.d.ts +5 -0
- package/dist/modules/stock/productColor/interface.d.ts +36 -0
- package/dist/modules/stock/productColor/route.schema.d.ts +5 -0
- package/dist/modules/stock/productName/interface.d.ts +32 -0
- package/dist/modules/stock/productName/route.schema.d.ts +5 -0
- package/dist/modules/stock/productNamePreset/interface.d.ts +32 -0
- package/dist/modules/stock/productNamePreset/route.schema.d.ts +5 -0
- package/dist/modules/stock/productPart/interface.d.ts +40 -0
- package/dist/modules/stock/productPart/route.schema.d.ts +5 -0
- package/dist/modules/stock/productSubCategory/interface.d.ts +38 -0
- package/dist/modules/stock/productSubCategory/route.schema.d.ts +5 -0
- package/dist/modules/stock/productUse/interface.d.ts +32 -0
- package/dist/modules/stock/productUse/route.schema.d.ts +5 -0
- package/dist/modules/stock/productUseAssoc/interface.d.ts +34 -0
- package/dist/modules/stock/productUseAssoc/route.schema.d.ts +5 -0
- package/dist/modules/stock/similarProduct/interface.d.ts +38 -0
- package/dist/modules/stock/similarProduct/route.schema.d.ts +5 -0
- package/dist/modules/stock/typeOfInventory/interface.d.ts +34 -0
- package/dist/modules/stock/typeOfInventory/route.schema.d.ts +5 -0
- package/dist/modules/supply/cabideProduct/interface.d.ts +19 -3
- package/dist/modules/user/purchaseConditions/interface.d.ts +9 -6
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +1 -1
- package/dist/shared/entities/index.d.ts +20 -0
- package/dist/shared/entities/stock.d.ts +201 -0
- package/package.json +3 -3
|
@@ -5,12 +5,16 @@ import * as DocumentManagement from "./documentManagement";
|
|
|
5
5
|
import * as View from "./view";
|
|
6
6
|
import * as Print from "./print";
|
|
7
7
|
import * as Tickets from "./tickets";
|
|
8
|
+
export import Attribute = Stock.Attribute;
|
|
9
|
+
export import AttributeValue = Stock.AttributeValue;
|
|
8
10
|
export import BankData = User.BankData;
|
|
9
11
|
export import Clients = User.Clients;
|
|
10
12
|
export import ClientType = User.ClientType;
|
|
11
13
|
export import Chat = Stock.Chat;
|
|
12
14
|
export import Color = Stock.Color;
|
|
13
15
|
export import Commissioner = User.Commissioner;
|
|
16
|
+
export import Composition = Stock.Composition;
|
|
17
|
+
export import CompositionMaterial = Stock.CompositionMaterial;
|
|
14
18
|
export import Counter = Stock.Counter;
|
|
15
19
|
export import Country = User.Country;
|
|
16
20
|
export import DocumentHeader = Stock.DocumentHeader;
|
|
@@ -23,15 +27,29 @@ export import Favorites = User.Favorites;
|
|
|
23
27
|
export import GroupPermissions = User.GroupPermissions;
|
|
24
28
|
export import Language = User.Language;
|
|
25
29
|
export import Location = Stock.Location;
|
|
30
|
+
export import Maintenance = Stock.Maintenance;
|
|
31
|
+
export import MaintenanceAssoc = Stock.MaintenanceAssoc;
|
|
32
|
+
export import MaintenancePreset = Stock.MaintenancePreset;
|
|
33
|
+
export import MaintenancePresetAssoc = Stock.MaintenancePresetAssoc;
|
|
34
|
+
export import MaintenanceType = Stock.MaintenanceType;
|
|
26
35
|
export import Multimedia = DocumentManagement.Multimedia;
|
|
27
36
|
export import Observation = Integration.Observation;
|
|
28
37
|
export import ObservationType = Integration.ObservationType;
|
|
29
38
|
export import Payment = Stock.Payment;
|
|
30
39
|
export import PaymentConditions = User.PaymentConditions;
|
|
31
40
|
export import Permissions = User.Permissions;
|
|
41
|
+
export import PrimaryColor = Stock.PrimaryColor;
|
|
42
|
+
export import ProductNamePreset = Stock.ProductNamePreset;
|
|
32
43
|
export import Product = Stock.Product;
|
|
33
44
|
export import ProductAttribute = Stock.ProductAttribute;
|
|
45
|
+
export import ProductCategory = Stock.ProductCategory;
|
|
46
|
+
export import ProductColor = Stock.ProductColor;
|
|
34
47
|
export import ProductImage = Stock.ProductImage;
|
|
48
|
+
export import ProductPart = Stock.ProductPart;
|
|
49
|
+
export import ProductSubCategory = Stock.ProductSubCategory;
|
|
50
|
+
export import ProductName = Stock.ProductName;
|
|
51
|
+
export import ProductUse = Stock.ProductUse;
|
|
52
|
+
export import ProductUseAssoc = Stock.ProductUseAssoc;
|
|
35
53
|
export import Promotion = Stock.Promotion;
|
|
36
54
|
export import PromotionAssoc = Stock.PromotionAssoc;
|
|
37
55
|
export import Providers = User.Providers;
|
|
@@ -40,9 +58,11 @@ export import PurchaseConditions = User.PurchaseConditions;
|
|
|
40
58
|
export import ReasonForExemption = User.ReasonForExemption;
|
|
41
59
|
export import SegmentsArea = User.SegmentsArea;
|
|
42
60
|
export import Shippings = User.Shippings;
|
|
61
|
+
export import SimilarProduct = Stock.SimilarProduct;
|
|
43
62
|
export import SocialMedia = User.SocialMedia;
|
|
44
63
|
export import StoreOperator = User.StoreOperator;
|
|
45
64
|
export import Swift = User.Swift;
|
|
65
|
+
export import TypeOfInventory = Stock.TypeOfInventory;
|
|
46
66
|
export import TypeOfLocation = Stock.TypeOfLocation;
|
|
47
67
|
export import UnitOfMeasure = Stock.UnitOfMeasure;
|
|
48
68
|
export import UserPermissions = User.UserPermissions;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IConflict } from "../../modules/document/propostaSheets/interface";
|
|
2
|
+
import { IAttributeDatatype } from "../../modules/stock/attribute/interfaces";
|
|
2
3
|
import { ICabideType } from "../../modules/supply/cabide/interface";
|
|
3
4
|
import { IDocumentTypeUserType, IDocumentTypeCodeType } from "../../modules/supply/documentType/interfaces";
|
|
4
5
|
import { IBatchType, IPaymentOrigin } from "../../modules/supply/payment/interface";
|
|
@@ -9,6 +10,29 @@ import { IData, IDataDocumentoPago, IDataPagamento, IPromotions } from "../../mo
|
|
|
9
10
|
import { IPhcDocumentType } from "../../modules/supply/clientCurrentAccount/interfaces";
|
|
10
11
|
import { ISavedEmPickingData } from "../../modules/stock/savedEmPicking/interfaces";
|
|
11
12
|
import { IDocumentLineNoteType } from "../../modules/supply/documentLineNote/interfaces";
|
|
13
|
+
export type Attribute = {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
datatype: IAttributeDatatype;
|
|
17
|
+
is_mandatory: boolean;
|
|
18
|
+
product_category_id: string;
|
|
19
|
+
order: number;
|
|
20
|
+
origin_id: string | null;
|
|
21
|
+
created_at: Date;
|
|
22
|
+
updated_at: Date;
|
|
23
|
+
created_by: string;
|
|
24
|
+
updated_by: string;
|
|
25
|
+
};
|
|
26
|
+
export type AttributeValue = {
|
|
27
|
+
id: string;
|
|
28
|
+
attribute_id: string;
|
|
29
|
+
value: string;
|
|
30
|
+
origin_id: string | null;
|
|
31
|
+
created_at: Date;
|
|
32
|
+
updated_at: Date;
|
|
33
|
+
created_by: string;
|
|
34
|
+
updated_by: string;
|
|
35
|
+
};
|
|
12
36
|
export type Chat = {
|
|
13
37
|
id: string;
|
|
14
38
|
document_header_id: string;
|
|
@@ -34,6 +58,26 @@ export type Color = {
|
|
|
34
58
|
updated_by: string;
|
|
35
59
|
origin_id: string | null;
|
|
36
60
|
};
|
|
61
|
+
export type Composition = {
|
|
62
|
+
id: string;
|
|
63
|
+
product_part_id: string;
|
|
64
|
+
composition_material_id: string;
|
|
65
|
+
value: number;
|
|
66
|
+
origin_id: string | null;
|
|
67
|
+
created_at: Date;
|
|
68
|
+
updated_at: Date;
|
|
69
|
+
created_by: string;
|
|
70
|
+
updated_by: string;
|
|
71
|
+
};
|
|
72
|
+
export type CompositionMaterial = {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
origin_id: string | null;
|
|
76
|
+
created_at: Date;
|
|
77
|
+
updated_at: Date;
|
|
78
|
+
created_by: string;
|
|
79
|
+
updated_by: string;
|
|
80
|
+
};
|
|
37
81
|
export type Location = {
|
|
38
82
|
id: string;
|
|
39
83
|
type_of_location_id: string;
|
|
@@ -52,6 +96,55 @@ export type Location = {
|
|
|
52
96
|
created_by: string;
|
|
53
97
|
updated_by: string;
|
|
54
98
|
};
|
|
99
|
+
export type MaintenanceType = {
|
|
100
|
+
id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
origin_id: string | null;
|
|
103
|
+
created_at: Date;
|
|
104
|
+
updated_at: Date;
|
|
105
|
+
created_by: string;
|
|
106
|
+
updated_by: string;
|
|
107
|
+
};
|
|
108
|
+
export type Maintenance = {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
multimedia_id: string | null;
|
|
112
|
+
maintenance_type_id: string;
|
|
113
|
+
origin_id: string | null;
|
|
114
|
+
created_at: Date;
|
|
115
|
+
updated_at: Date;
|
|
116
|
+
created_by: string;
|
|
117
|
+
updated_by: string;
|
|
118
|
+
};
|
|
119
|
+
export type MaintenanceAssoc = {
|
|
120
|
+
id: string;
|
|
121
|
+
product_part_id: string;
|
|
122
|
+
maintenance_id: string;
|
|
123
|
+
origin_id: string | null;
|
|
124
|
+
created_at: Date;
|
|
125
|
+
updated_at: Date;
|
|
126
|
+
created_by: string;
|
|
127
|
+
updated_by: string;
|
|
128
|
+
};
|
|
129
|
+
export type MaintenancePreset = {
|
|
130
|
+
id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
origin_id: string | null;
|
|
133
|
+
created_at: Date;
|
|
134
|
+
updated_at: Date;
|
|
135
|
+
created_by: string;
|
|
136
|
+
updated_by: string;
|
|
137
|
+
};
|
|
138
|
+
export type MaintenancePresetAssoc = {
|
|
139
|
+
id: string;
|
|
140
|
+
preset_id: string;
|
|
141
|
+
maintenance_id: string;
|
|
142
|
+
origin_id: string | null;
|
|
143
|
+
created_at: Date;
|
|
144
|
+
updated_at: Date;
|
|
145
|
+
created_by: string;
|
|
146
|
+
updated_by: string;
|
|
147
|
+
};
|
|
55
148
|
export type PreSale = {
|
|
56
149
|
id: string;
|
|
57
150
|
counter: number;
|
|
@@ -72,6 +165,15 @@ export type PreSaleProduct = {
|
|
|
72
165
|
created_by: string;
|
|
73
166
|
updated_by: string;
|
|
74
167
|
};
|
|
168
|
+
export type PrimaryColor = {
|
|
169
|
+
id: string;
|
|
170
|
+
name: string;
|
|
171
|
+
created_at: Date;
|
|
172
|
+
updated_at: Date;
|
|
173
|
+
origin_id: string | null;
|
|
174
|
+
created_by: string;
|
|
175
|
+
updated_by: string;
|
|
176
|
+
};
|
|
75
177
|
export type Product = {
|
|
76
178
|
id: string;
|
|
77
179
|
reference: number;
|
|
@@ -172,6 +274,15 @@ export type ProductPrices = {
|
|
|
172
274
|
created_by: string;
|
|
173
275
|
updated_by: string;
|
|
174
276
|
};
|
|
277
|
+
export type ProductName = {
|
|
278
|
+
id: string;
|
|
279
|
+
name: string;
|
|
280
|
+
origin_id: string | null;
|
|
281
|
+
created_at: Date;
|
|
282
|
+
updated_at: Date;
|
|
283
|
+
created_by: string;
|
|
284
|
+
updated_by: string;
|
|
285
|
+
};
|
|
175
286
|
export type ProductAttribute = {
|
|
176
287
|
id: string;
|
|
177
288
|
value: string;
|
|
@@ -183,6 +294,26 @@ export type ProductAttribute = {
|
|
|
183
294
|
created_by: string;
|
|
184
295
|
updated_by: string;
|
|
185
296
|
};
|
|
297
|
+
export type ProductCategory = {
|
|
298
|
+
id: string;
|
|
299
|
+
name: string;
|
|
300
|
+
created_at: Date;
|
|
301
|
+
updated_at: Date;
|
|
302
|
+
origin_id: string | null;
|
|
303
|
+
created_by: string;
|
|
304
|
+
updated_by: string;
|
|
305
|
+
};
|
|
306
|
+
export type ProductColor = {
|
|
307
|
+
id: string;
|
|
308
|
+
product_id: string;
|
|
309
|
+
color_id: string;
|
|
310
|
+
multimedia_id: string | null;
|
|
311
|
+
origin_id: string | null;
|
|
312
|
+
created_at: Date;
|
|
313
|
+
updated_at: Date;
|
|
314
|
+
created_by: string;
|
|
315
|
+
updated_by: string;
|
|
316
|
+
};
|
|
186
317
|
export type ProductImage = {
|
|
187
318
|
id: string;
|
|
188
319
|
product_id: string;
|
|
@@ -194,6 +325,47 @@ export type ProductImage = {
|
|
|
194
325
|
created_by: string;
|
|
195
326
|
updated_by: string;
|
|
196
327
|
};
|
|
328
|
+
export type ProductPart = {
|
|
329
|
+
id: string;
|
|
330
|
+
name: string;
|
|
331
|
+
product_id: string;
|
|
332
|
+
origin_id: string | null;
|
|
333
|
+
created_at: Date;
|
|
334
|
+
updated_at: Date;
|
|
335
|
+
created_by: string;
|
|
336
|
+
updated_by: string;
|
|
337
|
+
};
|
|
338
|
+
export type ProductSubCategory = {
|
|
339
|
+
id: string;
|
|
340
|
+
name: string;
|
|
341
|
+
product_category_id: string;
|
|
342
|
+
created_at: Date;
|
|
343
|
+
updated_at: Date;
|
|
344
|
+
origin_id: string | null;
|
|
345
|
+
created_by: string;
|
|
346
|
+
updated_by: string;
|
|
347
|
+
external_id: string | null;
|
|
348
|
+
};
|
|
349
|
+
export type ProductUse = {
|
|
350
|
+
id: string;
|
|
351
|
+
name: string;
|
|
352
|
+
origin_id: string | null;
|
|
353
|
+
multimedia_id: string | null;
|
|
354
|
+
created_at: Date;
|
|
355
|
+
updated_at: Date;
|
|
356
|
+
created_by: string;
|
|
357
|
+
updated_by: string;
|
|
358
|
+
};
|
|
359
|
+
export type ProductUseAssoc = {
|
|
360
|
+
id: string;
|
|
361
|
+
product_use_id: string;
|
|
362
|
+
product_id: string;
|
|
363
|
+
origin_id: string | null;
|
|
364
|
+
created_at: Date;
|
|
365
|
+
updated_at: Date;
|
|
366
|
+
created_by: string;
|
|
367
|
+
updated_by: string;
|
|
368
|
+
};
|
|
197
369
|
export type UnitOfMeasure = {
|
|
198
370
|
id: string;
|
|
199
371
|
name: string;
|
|
@@ -236,6 +408,26 @@ export type PromotionAssoc = {
|
|
|
236
408
|
created_by: string;
|
|
237
409
|
updated_by: string;
|
|
238
410
|
};
|
|
411
|
+
export type SimilarProduct = {
|
|
412
|
+
id: string;
|
|
413
|
+
product_id: string;
|
|
414
|
+
similar_product_id: string;
|
|
415
|
+
origin_id: string | null;
|
|
416
|
+
created_at: Date;
|
|
417
|
+
updated_at: Date;
|
|
418
|
+
created_by: string;
|
|
419
|
+
updated_by: string;
|
|
420
|
+
};
|
|
421
|
+
export type TypeOfInventory = {
|
|
422
|
+
id: string;
|
|
423
|
+
name: string;
|
|
424
|
+
saft_code: string;
|
|
425
|
+
created_at: Date;
|
|
426
|
+
updated_at: Date;
|
|
427
|
+
origin_id: string | null;
|
|
428
|
+
created_by: string;
|
|
429
|
+
updated_by: string;
|
|
430
|
+
};
|
|
239
431
|
export type TypeOfLocation = {
|
|
240
432
|
id: string;
|
|
241
433
|
name: string;
|
|
@@ -268,6 +460,15 @@ export type VatTaxZone = {
|
|
|
268
460
|
country_id: string;
|
|
269
461
|
external_id: string | null;
|
|
270
462
|
};
|
|
463
|
+
export type ProductNamePreset = {
|
|
464
|
+
id: string;
|
|
465
|
+
name: string;
|
|
466
|
+
created_at: Date;
|
|
467
|
+
updated_at: Date;
|
|
468
|
+
origin_id: string | null;
|
|
469
|
+
created_by: string;
|
|
470
|
+
updated_by: string;
|
|
471
|
+
};
|
|
271
472
|
export type Counter = {
|
|
272
473
|
document_type: number;
|
|
273
474
|
year: number;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.21.
|
|
12
|
+
"version": "0.21.22",
|
|
13
13
|
"main": "./dist/index.min.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
41
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
42
42
|
"@types/node": "^20.14.10",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
44
|
-
"@typescript-eslint/parser": "^7.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
44
|
+
"@typescript-eslint/parser": "^7.16.0",
|
|
45
45
|
"eslint": "^8.57.0",
|
|
46
46
|
"rollup": "^4.18.1",
|
|
47
47
|
"tslib": "^2.6.3"
|