@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.
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/integrations.js +1 -0
- package/lib/cjs/integrations.js.map +1 -1
- package/lib/cjs/interaction.js.map +1 -1
- package/lib/cjs/store/store.js.map +1 -1
- package/lib/cjs/store/workflow.js.map +1 -1
- package/lib/cjs/utils/schemas.js +4 -3
- package/lib/cjs/utils/schemas.js.map +1 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/integrations.js +1 -0
- package/lib/esm/integrations.js.map +1 -1
- package/lib/esm/interaction.js.map +1 -1
- package/lib/esm/store/store.js.map +1 -1
- package/lib/esm/store/workflow.js.map +1 -1
- package/lib/esm/utils/schemas.js +3 -2
- package/lib/esm/utils/schemas.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/environment.d.ts +1 -1
- package/lib/types/environment.d.ts.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/integrations.d.ts +6 -1
- package/lib/types/integrations.d.ts.map +1 -1
- package/lib/types/interaction.d.ts +5 -3
- package/lib/types/interaction.d.ts.map +1 -1
- package/lib/types/plugin.d.ts +14 -0
- package/lib/types/plugin.d.ts.map +1 -1
- package/lib/types/prompt.d.ts +3 -3
- package/lib/types/prompt.d.ts.map +1 -1
- package/lib/types/store/object-types.d.ts +1 -1
- package/lib/types/store/object-types.d.ts.map +1 -1
- package/lib/types/store/store.d.ts +4 -0
- package/lib/types/store/store.d.ts.map +1 -1
- package/lib/types/store/workflow.d.ts +20 -3
- package/lib/types/store/workflow.d.ts.map +1 -1
- package/lib/types/training.d.ts +1 -1
- package/lib/types/training.d.ts.map +1 -1
- package/lib/types/utils/schemas.d.ts +2 -2
- package/lib/types/utils/schemas.d.ts.map +1 -1
- package/lib/vertesia-common.js +2 -0
- package/lib/vertesia-common.js.map +1 -0
- package/package.json +8 -4
- package/src/environment.ts +1 -1
- package/src/index.ts +0 -1
- package/src/integrations.ts +6 -0
- package/src/interaction.ts +6 -3
- package/src/plugin.ts +14 -0
- package/src/prompt.ts +3 -3
- package/src/store/object-types.ts +3 -4
- package/src/store/store.ts +8 -3
- package/src/store/workflow.ts +22 -5
- package/src/training.ts +1 -1
- package/src/utils/schemas.ts +5 -3
- package/lib/cjs/utils/advanced-content-processing.js +0 -25
- package/lib/cjs/utils/advanced-content-processing.js.map +0 -1
- package/lib/esm/utils/advanced-content-processing.js +0 -19
- package/lib/esm/utils/advanced-content-processing.js.map +0 -1
- package/lib/types/utils/advanced-content-processing.d.ts +0 -15
- package/lib/types/utils/advanced-content-processing.d.ts.map +0 -1
- 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
|
-
}
|