@nomalism-com/types 0.21.20 → 0.21.21

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