cardus 0.0.82 → 0.0.84

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.js CHANGED
@@ -219,7 +219,7 @@ class IntegrationManager {
219
219
  let taric = null;
220
220
  try {
221
221
  if (detail.bulto.nombre_producto) {
222
- taric = yield llmAPIService.getTaricCode('chatgpt', detail.bulto.nombre_producto);
222
+ taric = yield llmAPIService.getTaricCodeFromContentDescription(detail.bulto.nombre_producto);
223
223
  }
224
224
  }
225
225
  catch (e) {
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const shipmentTypes = {
4
4
  NORMAL: 1,
5
+ ODOO: 4,
5
6
  EXCEL: 7,
6
7
  RECTIFICATIVO: 8,
7
8
  PRESTASHOP_MODULE: 15,
@@ -22,7 +23,9 @@ const shipmentTypes = {
22
23
  JOOM: 119,
23
24
  HOLDED: 120,
24
25
  ETSY: 121,
25
- NORMAL_V2: 122
26
+ NORMAL_V2: 122,
27
+ TEMU: 123,
28
+ JUMPSELLER: 125
26
29
  };
27
30
  const integrationTypes = {
28
31
  EXCEL: 1,
@@ -37,5 +40,7 @@ const integrationTypes = {
37
40
  JOOM: 12,
38
41
  ETSY: 13,
39
42
  ODOO: 14,
40
- APIV2: 15
43
+ APIV2: 15,
44
+ TEMU: 16,
45
+ JUMPSELLER: 18
41
46
  };
package/index.ts CHANGED
@@ -309,8 +309,7 @@ export class IntegrationManager {
309
309
 
310
310
  try {
311
311
  if (detail.bulto.nombre_producto) {
312
- taric = await llmAPIService.getTaricCode(
313
- 'chatgpt',
312
+ taric = await llmAPIService.getTaricCodeFromContentDescription(
314
313
  detail.bulto.nombre_producto
315
314
  );
316
315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -38,6 +38,7 @@ export type Shipment = {
38
38
 
39
39
  const shipmentTypes = {
40
40
  NORMAL: 1,
41
+ ODOO: 4,
41
42
  EXCEL: 7,
42
43
  RECTIFICATIVO: 8,
43
44
  PRESTASHOP_MODULE: 15,
@@ -58,7 +59,9 @@ const shipmentTypes = {
58
59
  JOOM: 119,
59
60
  HOLDED: 120,
60
61
  ETSY: 121,
61
- NORMAL_V2: 122
62
+ NORMAL_V2: 122,
63
+ TEMU: 123,
64
+ JUMPSELLER: 125
62
65
  };
63
66
 
64
67
  const integrationTypes = {
@@ -74,7 +77,9 @@ const integrationTypes = {
74
77
  JOOM: 12,
75
78
  ETSY: 13,
76
79
  ODOO: 14,
77
- APIV2: 15
80
+ APIV2: 15,
81
+ TEMU: 16,
82
+ JUMPSELLER: 18
78
83
  };
79
84
 
80
85
  export type ShipmentType = (typeof shipmentTypes)[keyof typeof shipmentTypes];
@@ -243,8 +248,7 @@ export type IntegrationsService = {
243
248
  };
244
249
 
245
250
  export type LlmAPIService = {
246
- getTaricCode: (
247
- provider: string,
251
+ getTaricCodeFromContentDescription: (
248
252
  producto: string
249
253
  ) => Promise<string | undefined>;
250
254
  };