@silexpert/core 1.3.15 → 1.3.17
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/cjs/api/resources/Ai.d.ts +6 -0
- package/dist/cjs/api/resources/Ai.d.ts.map +1 -0
- package/dist/cjs/api/resources/Ai.js +11 -0
- package/dist/cjs/api/resources/Ai.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/AIPrompt.d.ts +13 -0
- package/dist/cjs/types/Enum/AIPrompt.d.ts.map +1 -0
- package/dist/cjs/types/Enum/AIPrompt.js +43 -0
- package/dist/cjs/types/Enum/AIPrompt.js.map +1 -0
- package/dist/cjs/types/Enum/CerfaType.d.ts +3 -3
- package/dist/cjs/types/Enum/CerfaType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CerfaType.js.map +1 -1
- package/dist/cjs/types/Enum/Role.d.ts +2 -1
- package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Role.js +1 -0
- package/dist/cjs/types/Enum/Role.js.map +1 -1
- package/dist/cjs/types/Enum/RoleDetail.d.ts +10 -0
- package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RoleDetail.js +10 -0
- package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.js +2 -2
- package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts +4 -0
- package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.js +24 -0
- package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.js.map +1 -0
- package/dist/cjs/types/Interface/api/commercial/QueryGetStats.d.ts +0 -2
- package/dist/cjs/types/Interface/api/commercial/QueryGetStats.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercial/QueryGetStats.js +0 -14
- package/dist/cjs/types/Interface/api/commercial/QueryGetStats.js.map +1 -1
- package/dist/cjs/types/Interface/models/IAIQuestion.d.ts +15 -0
- package/dist/cjs/types/Interface/models/IAIQuestion.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IAIQuestion.js +3 -0
- package/dist/cjs/types/Interface/models/IAIQuestion.js.map +1 -0
- package/dist/cjs/types/Interface/models/IPayment.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.js +1 -1
- package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js +4 -4
- package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/dist/mjs/api/resources/Ai.d.ts +6 -0
- package/dist/mjs/api/resources/Ai.d.ts.map +1 -0
- package/dist/mjs/api/resources/Ai.js +7 -0
- package/dist/mjs/api/resources/Ai.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/AIPrompt.d.ts +13 -0
- package/dist/mjs/types/Enum/AIPrompt.d.ts.map +1 -0
- package/dist/mjs/types/Enum/AIPrompt.js +40 -0
- package/dist/mjs/types/Enum/AIPrompt.js.map +1 -0
- package/dist/mjs/types/Enum/CerfaType.d.ts +3 -3
- package/dist/mjs/types/Enum/CerfaType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CerfaType.js.map +1 -1
- package/dist/mjs/types/Enum/Role.d.ts +2 -1
- package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Role.js +1 -0
- package/dist/mjs/types/Enum/Role.js.map +1 -1
- package/dist/mjs/types/Enum/RoleDetail.d.ts +10 -0
- package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RoleDetail.js +10 -0
- package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.js +2 -2
- package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts +4 -0
- package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.js +21 -0
- package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.js.map +1 -0
- package/dist/mjs/types/Interface/api/commercial/QueryGetStats.d.ts +0 -2
- package/dist/mjs/types/Interface/api/commercial/QueryGetStats.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercial/QueryGetStats.js +1 -17
- package/dist/mjs/types/Interface/api/commercial/QueryGetStats.js.map +1 -1
- package/dist/mjs/types/Interface/models/IAIQuestion.d.ts +15 -0
- package/dist/mjs/types/Interface/models/IAIQuestion.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IAIQuestion.js +2 -0
- package/dist/mjs/types/Interface/models/IAIQuestion.js.map +1 -0
- package/dist/mjs/types/Interface/models/IPayment.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/mjs/types/index.d.ts +3 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.js +1 -1
- package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js +4 -4
- package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Ai.ts +8 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/AIPrompt.ts +44 -0
- package/ts/types/Enum/CerfaType.ts +3 -3
- package/ts/types/Enum/Role.ts +1 -0
- package/ts/types/Enum/RoleDetail.ts +10 -0
- package/ts/types/Enum/TaskResponseType.ts +2 -2
- package/ts/types/Interface/api/ai/AskQuestionCollaborator.ts +9 -0
- package/ts/types/Interface/api/commercial/QueryGetStats.ts +1 -13
- package/ts/types/Interface/models/IAIQuestion.ts +17 -0
- package/ts/types/Interface/models/IPayment.ts +1 -0
- package/ts/types/index.ts +3 -1
- package/ts/utils/commercialManagement/document.ts +1 -1
- package/ts/utils/commercialManagement/internationalization/choices.ts +4 -4
- package/ts/utils/commercialManagement/templates/body.ts +1 -1
- package/dist/cjs/types/Enum/OCRPrompt.d.ts +0 -12
- package/dist/cjs/types/Enum/OCRPrompt.d.ts.map +0 -1
- package/dist/cjs/types/Enum/OCRPrompt.js +0 -24
- package/dist/cjs/types/Enum/OCRPrompt.js.map +0 -1
- package/dist/mjs/types/Enum/OCRPrompt.d.ts +0 -12
- package/dist/mjs/types/Enum/OCRPrompt.d.ts.map +0 -1
- package/dist/mjs/types/Enum/OCRPrompt.js +0 -21
- package/dist/mjs/types/Enum/OCRPrompt.js.map +0 -1
- package/ts/types/Enum/OCRPrompt.ts +0 -25
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OCRPrompt.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/OCRPrompt.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC5B;AAED,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,CAahD,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OCRPrompt = exports.OCRPromptKey = void 0;
|
|
4
|
-
var OCRPromptKey;
|
|
5
|
-
(function (OCRPromptKey) {
|
|
6
|
-
OCRPromptKey["BANK_STATEMENT"] = "bank_statement";
|
|
7
|
-
OCRPromptKey["INVOICE"] = "invoice";
|
|
8
|
-
OCRPromptKey["INVOICE_CSV"] = "invoice_csv";
|
|
9
|
-
})(OCRPromptKey || (exports.OCRPromptKey = OCRPromptKey = {}));
|
|
10
|
-
exports.OCRPrompt = {
|
|
11
|
-
[OCRPromptKey.BANK_STATEMENT]: {
|
|
12
|
-
userPrompt: 'Here are some lines from a bank statement (this might be a french one "relevé de comptes"), I need you to extract all the transactions from it.',
|
|
13
|
-
systemPrompt: 'Extract transactions from this bank statement in a json format like this: [{"dateValue": string (format like this YYYY-MM-DD), "label": string | null, "debit": number, "credit": number}, ...]',
|
|
14
|
-
},
|
|
15
|
-
[OCRPromptKey.INVOICE]: {
|
|
16
|
-
userPrompt: 'Can you give me the info of this document in json format? (all the articles with their prices)',
|
|
17
|
-
systemPrompt: 'Convert this into a sensible structured json response. The output should be strictly be json with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice',
|
|
18
|
-
},
|
|
19
|
-
[OCRPromptKey.INVOICE_CSV]: {
|
|
20
|
-
userPrompt: 'Can you give me the info of this document in csv format? (all the articles with their prices)',
|
|
21
|
-
systemPrompt: 'Convert this into a sensible structured csv response (date, label, débit, crédit). The output should be strictly be csv with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice'
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=OCRPrompt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OCRPrompt.js","sourceRoot":"","sources":["../../../../ts/types/Enum/OCRPrompt.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,mCAAmB,CAAA;IACnB,2CAA2B,CAAA;AAC7B,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAOY,QAAA,SAAS,GAAwC;IAC5D,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE;QAC7B,UAAU,EAAE,iJAAiJ;QAC7J,YAAY,EAAE,iMAAiM;KAChN;IACD,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;QACtB,UAAU,EAAE,gGAAgG;QAC5G,YAAY,EAAE,4NAA4N;KAC3O;IACD,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE;QAC1B,UAAU,EAAE,+FAA+F;QAC3G,YAAY,EAAE,uPAAuP;KACtQ;CACO,CAAC","sourcesContent":["export enum OCRPromptKey {\n BANK_STATEMENT = 'bank_statement',\n INVOICE = 'invoice',\n INVOICE_CSV = 'invoice_csv',\n}\n\ninterface OCRPromptInfo {\n userPrompt: string;\n systemPrompt: string;\n}\n\nexport const OCRPrompt: Record<OCRPromptKey, OCRPromptInfo> = {\n [OCRPromptKey.BANK_STATEMENT]: {\n userPrompt: 'Here are some lines from a bank statement (this might be a french one \"relevé de comptes\"), I need you to extract all the transactions from it.',\n systemPrompt: 'Extract transactions from this bank statement in a json format like this: [{\"dateValue\": string (format like this YYYY-MM-DD), \"label\": string | null, \"debit\": number, \"credit\": number}, ...]',\n },\n [OCRPromptKey.INVOICE]: {\n userPrompt: 'Can you give me the info of this document in json format? (all the articles with their prices)',\n systemPrompt: 'Convert this into a sensible structured json response. The output should be strictly be json with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice',\n },\n [OCRPromptKey.INVOICE_CSV]: {\n userPrompt: 'Can you give me the info of this document in csv format? (all the articles with their prices)',\n systemPrompt: 'Convert this into a sensible structured csv response (date, label, débit, crédit). The output should be strictly be csv with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice'\n }\n} as const;"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum OCRPromptKey {
|
|
2
|
-
BANK_STATEMENT = "bank_statement",
|
|
3
|
-
INVOICE = "invoice",
|
|
4
|
-
INVOICE_CSV = "invoice_csv"
|
|
5
|
-
}
|
|
6
|
-
interface OCRPromptInfo {
|
|
7
|
-
userPrompt: string;
|
|
8
|
-
systemPrompt: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const OCRPrompt: Record<OCRPromptKey, OCRPromptInfo>;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=OCRPrompt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OCRPrompt.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/OCRPrompt.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC5B;AAED,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,CAahD,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export var OCRPromptKey;
|
|
2
|
-
(function (OCRPromptKey) {
|
|
3
|
-
OCRPromptKey["BANK_STATEMENT"] = "bank_statement";
|
|
4
|
-
OCRPromptKey["INVOICE"] = "invoice";
|
|
5
|
-
OCRPromptKey["INVOICE_CSV"] = "invoice_csv";
|
|
6
|
-
})(OCRPromptKey || (OCRPromptKey = {}));
|
|
7
|
-
export const OCRPrompt = {
|
|
8
|
-
[OCRPromptKey.BANK_STATEMENT]: {
|
|
9
|
-
userPrompt: 'Here are some lines from a bank statement (this might be a french one "relevé de comptes"), I need you to extract all the transactions from it.',
|
|
10
|
-
systemPrompt: 'Extract transactions from this bank statement in a json format like this: [{"dateValue": string (format like this YYYY-MM-DD), "label": string | null, "debit": number, "credit": number}, ...]',
|
|
11
|
-
},
|
|
12
|
-
[OCRPromptKey.INVOICE]: {
|
|
13
|
-
userPrompt: 'Can you give me the info of this document in json format? (all the articles with their prices)',
|
|
14
|
-
systemPrompt: 'Convert this into a sensible structured json response. The output should be strictly be json with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice',
|
|
15
|
-
},
|
|
16
|
-
[OCRPromptKey.INVOICE_CSV]: {
|
|
17
|
-
userPrompt: 'Can you give me the info of this document in csv format? (all the articles with their prices)',
|
|
18
|
-
systemPrompt: 'Convert this into a sensible structured csv response (date, label, débit, crédit). The output should be strictly be csv with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice'
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=OCRPrompt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OCRPrompt.js","sourceRoot":"","sources":["../../../../ts/types/Enum/OCRPrompt.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,mCAAmB,CAAA;IACnB,2CAA2B,CAAA;AAC7B,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAOD,MAAM,CAAC,MAAM,SAAS,GAAwC;IAC5D,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE;QAC7B,UAAU,EAAE,iJAAiJ;QAC7J,YAAY,EAAE,iMAAiM;KAChN;IACD,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;QACtB,UAAU,EAAE,gGAAgG;QAC5G,YAAY,EAAE,4NAA4N;KAC3O;IACD,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE;QAC1B,UAAU,EAAE,+FAA+F;QAC3G,YAAY,EAAE,uPAAuP;KACtQ;CACO,CAAC","sourcesContent":["export enum OCRPromptKey {\n BANK_STATEMENT = 'bank_statement',\n INVOICE = 'invoice',\n INVOICE_CSV = 'invoice_csv',\n}\n\ninterface OCRPromptInfo {\n userPrompt: string;\n systemPrompt: string;\n}\n\nexport const OCRPrompt: Record<OCRPromptKey, OCRPromptInfo> = {\n [OCRPromptKey.BANK_STATEMENT]: {\n userPrompt: 'Here are some lines from a bank statement (this might be a french one \"relevé de comptes\"), I need you to extract all the transactions from it.',\n systemPrompt: 'Extract transactions from this bank statement in a json format like this: [{\"dateValue\": string (format like this YYYY-MM-DD), \"label\": string | null, \"debit\": number, \"credit\": number}, ...]',\n },\n [OCRPromptKey.INVOICE]: {\n userPrompt: 'Can you give me the info of this document in json format? (all the articles with their prices)',\n systemPrompt: 'Convert this into a sensible structured json response. The output should be strictly be json with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice',\n },\n [OCRPromptKey.INVOICE_CSV]: {\n userPrompt: 'Can you give me the info of this document in csv format? (all the articles with their prices)',\n systemPrompt: 'Convert this into a sensible structured csv response (date, label, débit, crédit). The output should be strictly be csv with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice'\n }\n} as const;"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export enum OCRPromptKey {
|
|
2
|
-
BANK_STATEMENT = 'bank_statement',
|
|
3
|
-
INVOICE = 'invoice',
|
|
4
|
-
INVOICE_CSV = 'invoice_csv',
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
interface OCRPromptInfo {
|
|
8
|
-
userPrompt: string;
|
|
9
|
-
systemPrompt: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export const OCRPrompt: Record<OCRPromptKey, OCRPromptInfo> = {
|
|
13
|
-
[OCRPromptKey.BANK_STATEMENT]: {
|
|
14
|
-
userPrompt: 'Here are some lines from a bank statement (this might be a french one "relevé de comptes"), I need you to extract all the transactions from it.',
|
|
15
|
-
systemPrompt: 'Extract transactions from this bank statement in a json format like this: [{"dateValue": string (format like this YYYY-MM-DD), "label": string | null, "debit": number, "credit": number}, ...]',
|
|
16
|
-
},
|
|
17
|
-
[OCRPromptKey.INVOICE]: {
|
|
18
|
-
userPrompt: 'Can you give me the info of this document in json format? (all the articles with their prices)',
|
|
19
|
-
systemPrompt: 'Convert this into a sensible structured json response. The output should be strictly be json with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice',
|
|
20
|
-
},
|
|
21
|
-
[OCRPromptKey.INVOICE_CSV]: {
|
|
22
|
-
userPrompt: 'Can you give me the info of this document in csv format? (all the articles with their prices)',
|
|
23
|
-
systemPrompt: 'Convert this into a sensible structured csv response (date, label, débit, crédit). The output should be strictly be csv with no extra commentary if you find a image in the document this is an invoice and you should return the info of the invoice'
|
|
24
|
-
}
|
|
25
|
-
} as const;
|