@vertesia/common 0.55.0 → 0.56.0

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 (62) hide show
  1. package/lib/cjs/index.js +0 -1
  2. package/lib/cjs/index.js.map +1 -1
  3. package/lib/cjs/integrations.js +1 -0
  4. package/lib/cjs/integrations.js.map +1 -1
  5. package/lib/cjs/interaction.js.map +1 -1
  6. package/lib/cjs/store/store.js.map +1 -1
  7. package/lib/cjs/store/workflow.js.map +1 -1
  8. package/lib/cjs/utils/schemas.js +4 -3
  9. package/lib/cjs/utils/schemas.js.map +1 -1
  10. package/lib/esm/index.js +0 -1
  11. package/lib/esm/index.js.map +1 -1
  12. package/lib/esm/integrations.js +1 -0
  13. package/lib/esm/integrations.js.map +1 -1
  14. package/lib/esm/interaction.js.map +1 -1
  15. package/lib/esm/store/store.js.map +1 -1
  16. package/lib/esm/store/workflow.js.map +1 -1
  17. package/lib/esm/utils/schemas.js +3 -2
  18. package/lib/esm/utils/schemas.js.map +1 -1
  19. package/lib/tsconfig.tsbuildinfo +1 -1
  20. package/lib/types/environment.d.ts +1 -1
  21. package/lib/types/environment.d.ts.map +1 -1
  22. package/lib/types/index.d.ts +0 -1
  23. package/lib/types/index.d.ts.map +1 -1
  24. package/lib/types/integrations.d.ts +6 -1
  25. package/lib/types/integrations.d.ts.map +1 -1
  26. package/lib/types/interaction.d.ts +5 -3
  27. package/lib/types/interaction.d.ts.map +1 -1
  28. package/lib/types/plugin.d.ts +14 -0
  29. package/lib/types/plugin.d.ts.map +1 -1
  30. package/lib/types/prompt.d.ts +3 -3
  31. package/lib/types/prompt.d.ts.map +1 -1
  32. package/lib/types/store/object-types.d.ts +1 -1
  33. package/lib/types/store/object-types.d.ts.map +1 -1
  34. package/lib/types/store/store.d.ts +4 -0
  35. package/lib/types/store/store.d.ts.map +1 -1
  36. package/lib/types/store/workflow.d.ts +20 -3
  37. package/lib/types/store/workflow.d.ts.map +1 -1
  38. package/lib/types/training.d.ts +1 -1
  39. package/lib/types/training.d.ts.map +1 -1
  40. package/lib/types/utils/schemas.d.ts +2 -2
  41. package/lib/types/utils/schemas.d.ts.map +1 -1
  42. package/lib/vertesia-common.js +2 -0
  43. package/lib/vertesia-common.js.map +1 -0
  44. package/package.json +8 -4
  45. package/src/environment.ts +1 -1
  46. package/src/index.ts +0 -1
  47. package/src/integrations.ts +6 -0
  48. package/src/interaction.ts +6 -3
  49. package/src/plugin.ts +14 -0
  50. package/src/prompt.ts +3 -3
  51. package/src/store/object-types.ts +3 -4
  52. package/src/store/store.ts +8 -3
  53. package/src/store/workflow.ts +22 -5
  54. package/src/training.ts +1 -1
  55. package/src/utils/schemas.ts +5 -3
  56. package/lib/cjs/utils/advanced-content-processing.js +0 -25
  57. package/lib/cjs/utils/advanced-content-processing.js.map +0 -1
  58. package/lib/esm/utils/advanced-content-processing.js +0 -19
  59. package/lib/esm/utils/advanced-content-processing.js.map +0 -1
  60. package/lib/types/utils/advanced-content-processing.d.ts +0 -15
  61. package/lib/types/utils/advanced-content-processing.d.ts.map +0 -1
  62. package/src/utils/advanced-content-processing.ts +0 -32
@@ -1,15 +0,0 @@
1
- export interface AdvancedProcessingObjectFileParams {
2
- objectId: string;
3
- fileId: string;
4
- prefix?: string;
5
- contentType?: string;
6
- path?: any;
7
- }
8
- /**
9
- *
10
- * Advanced content processing only
11
- * generate a file path based on object ID and file role
12
- *
13
- * @returns
14
- */
15
- export declare function getPathForAdvancedProcessingFile({ objectId, prefix, fileId, contentType }: AdvancedProcessingObjectFileParams): string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"advanced-content-processing.d.ts","sourceRoot":"","sources":["../../../src/utils/advanced-content-processing.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kCAAkC;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,GAAG,CAAC;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,kCAAkC,UAW7H"}
@@ -1,32 +0,0 @@
1
- import mime from 'mime';
2
-
3
-
4
- const ADVANCED_PROCESSING_PREFIX = 'magic-pdf';
5
-
6
- export interface AdvancedProcessingObjectFileParams {
7
- objectId: string;
8
- fileId: string;
9
- prefix?: string;
10
- contentType?: string;
11
- path?: any;
12
- }
13
-
14
- /**
15
- *
16
- * Advanced content processing only
17
- * generate a file path based on object ID and file role
18
- *
19
- * @returns
20
- */
21
- export function getPathForAdvancedProcessingFile({ objectId, prefix, fileId, contentType }: AdvancedProcessingObjectFileParams) {
22
-
23
- const extension = contentType ? `.${mime.getExtension(contentType)}` : '';
24
- const p = prefix ? `${prefix}/` : '';
25
-
26
- let path = `${ADVANCED_PROCESSING_PREFIX}/${objectId}/${p}${fileId}`;
27
- if (!path.endsWith(extension)) {
28
- path += extension;
29
- }
30
-
31
- return path;
32
- }