@nomalism-com/types 0.19.155 → 0.19.156

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 (53) hide show
  1. package/dist/index.min.js +1 -1
  2. package/dist/main.d.ts +45 -1
  3. package/dist/modules/stock/attribute/interfaces.d.ts +51 -0
  4. package/dist/modules/stock/attribute/route.schema.d.ts +5 -0
  5. package/dist/modules/stock/attributeValue/interfaces.d.ts +36 -0
  6. package/dist/modules/stock/attributeValue/route.schema.d.ts +5 -0
  7. package/dist/modules/stock/color/interfaces.d.ts +36 -0
  8. package/dist/modules/stock/color/route.schema.d.ts +5 -0
  9. package/dist/modules/stock/composition/interfaces.d.ts +36 -0
  10. package/dist/modules/stock/composition/route.schema.d.ts +5 -0
  11. package/dist/modules/stock/compositionMaterial/interfaces.d.ts +32 -0
  12. package/dist/modules/stock/compositionMaterial/route.schema.d.ts +5 -0
  13. package/dist/modules/stock/maintenance/interface.d.ts +37 -0
  14. package/dist/modules/stock/maintenance/route.schema.d.ts +5 -0
  15. package/dist/modules/stock/maintenanceAssoc/interface.d.ts +35 -0
  16. package/dist/modules/stock/maintenanceAssoc/route.schema.d.ts +5 -0
  17. package/dist/modules/stock/maintenancePreset/interfaces.d.ts +28 -0
  18. package/dist/modules/stock/maintenancePreset/route.schema.d.ts +5 -0
  19. package/dist/modules/stock/maintenancePresetAssoc/interfaces.d.ts +31 -0
  20. package/dist/modules/stock/maintenancePresetAssoc/route.schema.d.ts +4 -0
  21. package/dist/modules/stock/maintenanceType/interface.d.ts +32 -0
  22. package/dist/modules/stock/maintenanceType/route.schema.d.ts +5 -0
  23. package/dist/modules/stock/primaryColor/interface.d.ts +32 -0
  24. package/dist/modules/stock/primaryColor/route.schema.d.ts +5 -0
  25. package/dist/modules/stock/product/interface.d.ts +13 -1
  26. package/dist/modules/stock/productAttribute/interface.d.ts +36 -0
  27. package/dist/modules/stock/productAttribute/route.schema.d.ts +5 -0
  28. package/dist/modules/stock/productCategory/interface.d.ts +32 -0
  29. package/dist/modules/stock/productCategory/route.schema.d.ts +5 -0
  30. package/dist/modules/stock/productColor/interface.d.ts +36 -0
  31. package/dist/modules/stock/productColor/route.schema.d.ts +5 -0
  32. package/dist/modules/stock/productName/interface.d.ts +32 -0
  33. package/dist/modules/stock/productName/route.schema.d.ts +5 -0
  34. package/dist/modules/stock/productNamePreset/interface.d.ts +32 -0
  35. package/dist/modules/stock/productNamePreset/route.schema.d.ts +5 -0
  36. package/dist/modules/stock/productPart/interface.d.ts +40 -0
  37. package/dist/modules/stock/productPart/route.schema.d.ts +5 -0
  38. package/dist/modules/stock/productSubCategory/interface.d.ts +38 -0
  39. package/dist/modules/stock/productSubCategory/route.schema.d.ts +5 -0
  40. package/dist/modules/stock/productUse/interface.d.ts +32 -0
  41. package/dist/modules/stock/productUse/route.schema.d.ts +5 -0
  42. package/dist/modules/stock/productUseAssoc/interface.d.ts +34 -0
  43. package/dist/modules/stock/productUseAssoc/route.schema.d.ts +5 -0
  44. package/dist/modules/stock/similarProduct/interface.d.ts +38 -0
  45. package/dist/modules/stock/similarProduct/route.schema.d.ts +5 -0
  46. package/dist/modules/stock/typeOfInventory/interface.d.ts +34 -0
  47. package/dist/modules/stock/typeOfInventory/route.schema.d.ts +5 -0
  48. package/dist/modules/supply/cabideProduct/interface.d.ts +19 -3
  49. package/dist/modules/user/purchaseConditions/interface.d.ts +9 -6
  50. package/dist/modules/user/purchaseConditions/route.schema.d.ts +1 -1
  51. package/dist/shared/entities/index.d.ts +20 -0
  52. package/dist/shared/entities/stock.d.ts +201 -0
  53. package/package.json +1 -1
@@ -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;
@@ -31,6 +55,26 @@ export type Color = {
31
55
  updated_by: string;
32
56
  origin_id: string | null;
33
57
  };
58
+ export type Composition = {
59
+ id: string;
60
+ product_part_id: string;
61
+ composition_material_id: string;
62
+ value: number;
63
+ origin_id: string | null;
64
+ created_at: Date;
65
+ updated_at: Date;
66
+ created_by: string;
67
+ updated_by: string;
68
+ };
69
+ export type CompositionMaterial = {
70
+ id: string;
71
+ name: string;
72
+ origin_id: string | null;
73
+ created_at: Date;
74
+ updated_at: Date;
75
+ created_by: string;
76
+ updated_by: string;
77
+ };
34
78
  export type Location = {
35
79
  id: string;
36
80
  type_of_location_id: string;
@@ -49,6 +93,55 @@ export type Location = {
49
93
  created_by: string;
50
94
  updated_by: string;
51
95
  };
96
+ export type MaintenanceType = {
97
+ id: string;
98
+ name: string;
99
+ origin_id: string | null;
100
+ created_at: Date;
101
+ updated_at: Date;
102
+ created_by: string;
103
+ updated_by: string;
104
+ };
105
+ export type Maintenance = {
106
+ id: string;
107
+ name: string;
108
+ multimedia_id: string | null;
109
+ maintenance_type_id: string;
110
+ origin_id: string | null;
111
+ created_at: Date;
112
+ updated_at: Date;
113
+ created_by: string;
114
+ updated_by: string;
115
+ };
116
+ export type MaintenanceAssoc = {
117
+ id: string;
118
+ product_part_id: string;
119
+ maintenance_id: string;
120
+ origin_id: string | null;
121
+ created_at: Date;
122
+ updated_at: Date;
123
+ created_by: string;
124
+ updated_by: string;
125
+ };
126
+ export type MaintenancePreset = {
127
+ id: string;
128
+ name: string;
129
+ origin_id: string | null;
130
+ created_at: Date;
131
+ updated_at: Date;
132
+ created_by: string;
133
+ updated_by: string;
134
+ };
135
+ export type MaintenancePresetAssoc = {
136
+ id: string;
137
+ preset_id: string;
138
+ maintenance_id: string;
139
+ origin_id: string | null;
140
+ created_at: Date;
141
+ updated_at: Date;
142
+ created_by: string;
143
+ updated_by: string;
144
+ };
52
145
  export type PreSale = {
53
146
  id: string;
54
147
  counter: number;
@@ -69,6 +162,15 @@ export type PreSaleProduct = {
69
162
  created_by: string;
70
163
  updated_by: string;
71
164
  };
165
+ export type PrimaryColor = {
166
+ id: string;
167
+ name: string;
168
+ created_at: Date;
169
+ updated_at: Date;
170
+ origin_id: string | null;
171
+ created_by: string;
172
+ updated_by: string;
173
+ };
72
174
  export type Product = {
73
175
  id: string;
74
176
  reference: number;
@@ -169,6 +271,15 @@ export type ProductPrices = {
169
271
  created_by: string;
170
272
  updated_by: string;
171
273
  };
274
+ export type ProductName = {
275
+ id: string;
276
+ name: string;
277
+ origin_id: string | null;
278
+ created_at: Date;
279
+ updated_at: Date;
280
+ created_by: string;
281
+ updated_by: string;
282
+ };
172
283
  export type ProductAttribute = {
173
284
  id: string;
174
285
  value: string;
@@ -180,6 +291,26 @@ export type ProductAttribute = {
180
291
  created_by: string;
181
292
  updated_by: string;
182
293
  };
294
+ export type ProductCategory = {
295
+ id: string;
296
+ name: string;
297
+ created_at: Date;
298
+ updated_at: Date;
299
+ origin_id: string | null;
300
+ created_by: string;
301
+ updated_by: string;
302
+ };
303
+ export type ProductColor = {
304
+ id: string;
305
+ product_id: string;
306
+ color_id: string;
307
+ multimedia_id: string | null;
308
+ origin_id: string | null;
309
+ created_at: Date;
310
+ updated_at: Date;
311
+ created_by: string;
312
+ updated_by: string;
313
+ };
183
314
  export type ProductImage = {
184
315
  id: string;
185
316
  product_id: string;
@@ -191,6 +322,47 @@ export type ProductImage = {
191
322
  created_by: string;
192
323
  updated_by: string;
193
324
  };
325
+ export type ProductPart = {
326
+ id: string;
327
+ name: string;
328
+ product_id: string;
329
+ origin_id: string | null;
330
+ created_at: Date;
331
+ updated_at: Date;
332
+ created_by: string;
333
+ updated_by: string;
334
+ };
335
+ export type ProductSubCategory = {
336
+ id: string;
337
+ name: string;
338
+ product_category_id: string;
339
+ created_at: Date;
340
+ updated_at: Date;
341
+ origin_id: string | null;
342
+ created_by: string;
343
+ updated_by: string;
344
+ external_id: string | null;
345
+ };
346
+ export type ProductUse = {
347
+ id: string;
348
+ name: string;
349
+ origin_id: string | null;
350
+ multimedia_id: string | null;
351
+ created_at: Date;
352
+ updated_at: Date;
353
+ created_by: string;
354
+ updated_by: string;
355
+ };
356
+ export type ProductUseAssoc = {
357
+ id: string;
358
+ product_use_id: string;
359
+ product_id: string;
360
+ origin_id: string | null;
361
+ created_at: Date;
362
+ updated_at: Date;
363
+ created_by: string;
364
+ updated_by: string;
365
+ };
194
366
  export type UnitOfMeasure = {
195
367
  id: string;
196
368
  name: string;
@@ -233,6 +405,26 @@ export type PromotionAssoc = {
233
405
  created_by: string;
234
406
  updated_by: string;
235
407
  };
408
+ export type SimilarProduct = {
409
+ id: string;
410
+ product_id: string;
411
+ similar_product_id: string;
412
+ origin_id: string | null;
413
+ created_at: Date;
414
+ updated_at: Date;
415
+ created_by: string;
416
+ updated_by: string;
417
+ };
418
+ export type TypeOfInventory = {
419
+ id: string;
420
+ name: string;
421
+ saft_code: string;
422
+ created_at: Date;
423
+ updated_at: Date;
424
+ origin_id: string | null;
425
+ created_by: string;
426
+ updated_by: string;
427
+ };
236
428
  export type TypeOfLocation = {
237
429
  id: string;
238
430
  name: string;
@@ -265,6 +457,15 @@ export type VatTaxZone = {
265
457
  country_id: string;
266
458
  external_id: string | null;
267
459
  };
460
+ export type ProductNamePreset = {
461
+ id: string;
462
+ name: string;
463
+ created_at: Date;
464
+ updated_at: Date;
465
+ origin_id: string | null;
466
+ created_by: string;
467
+ updated_by: string;
468
+ };
268
469
  export type Counter = {
269
470
  document_type: number;
270
471
  year: number;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.19.155",
12
+ "version": "0.19.156",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [