boondmanager-mcp-server 2.17.0 → 2.19.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/README.md +60 -2
- package/dist/config/transport-kind.d.ts +8 -0
- package/dist/config/transport-kind.d.ts.map +1 -0
- package/dist/config/transport-kind.js +13 -0
- package/dist/config/transport-kind.js.map +1 -0
- package/dist/constants.d.ts +7 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +7 -0
- package/dist/constants.js.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +62 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +141 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/services/format/summary.d.ts +7 -0
- package/dist/services/format/summary.d.ts.map +1 -1
- package/dist/services/format/summary.js +24 -2
- package/dist/services/format/summary.js.map +1 -1
- package/dist/services/http/transport.d.ts +16 -4
- package/dist/services/http/transport.d.ts.map +1 -1
- package/dist/services/http/transport.js +15 -4
- package/dist/services/http/transport.js.map +1 -1
- package/dist/services/upload-relay.d.ts +88 -0
- package/dist/services/upload-relay.d.ts.map +1 -0
- package/dist/services/upload-relay.js +325 -0
- package/dist/services/upload-relay.js.map +1 -0
- package/dist/services/upload-source.d.ts +31 -0
- package/dist/services/upload-source.d.ts.map +1 -0
- package/dist/services/upload-source.js +180 -0
- package/dist/services/upload-source.js.map +1 -0
- package/dist/tools/candidates.d.ts +7 -0
- package/dist/tools/candidates.d.ts.map +1 -1
- package/dist/tools/candidates.js +96 -1
- package/dist/tools/candidates.js.map +1 -1
- package/dist/tools/crud-factory.d.ts.map +1 -1
- package/dist/tools/crud-factory.js +4 -3
- package/dist/tools/crud-factory.js.map +1 -1
- package/dist/tools/description-builders.d.ts.map +1 -1
- package/dist/tools/description-builders.js +1 -1
- package/dist/tools/description-builders.js.map +1 -1
- package/dist/tools/documents.d.ts.map +1 -1
- package/dist/tools/documents.js +122 -8
- package/dist/tools/documents.js.map +1 -1
- package/dist/tools/usage-guidance.d.ts.map +1 -1
- package/dist/tools/usage-guidance.js +17 -3
- package/dist/tools/usage-guidance.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
Serveur MCP (Model Context Protocol) pour l'API BoondManager, permettant a Claude (Desktop, Cowork, Code) de rechercher, consulter, creer et modifier des enregistrements dans votre instance BoondManager.
|
|
33
33
|
|
|
34
|
-
**
|
|
34
|
+
**238 outils** couvrant **42 domaines** de l'API BoondManager. Voir [TOOLS.md](./TOOLS.md) pour le catalogue auto-généré (outils + prompts + ressources).
|
|
35
35
|
|
|
36
36
|
> **Sorties structurées.** En plus du texte lisible, les outils `search`, `create`, `update` et `delete` renvoient un `structuredContent` conforme à un `outputSchema` MCP : `search` → `{ total?, count, items[] }` (résumés compacts, pas les ressources JSON:API complètes), `create`/`update` → `{ id?, type? }`, `delete` → `{ id, deleted, reason? }`. Les clients MCP qui exploitent les sorties structurées obtiennent une référence d'entité fiable pour chaîner les appels. Les outils `get` restent en texte seul (leur texte est déjà du JSON exploitable).
|
|
37
37
|
|
|
@@ -110,7 +110,7 @@ Serveur MCP (Model Context Protocol) pour l'API BoondManager, permettant a Claud
|
|
|
110
110
|
| **Logs d'audit** | 2 | search, get |
|
|
111
111
|
| **Notifications** | 2 | search, get |
|
|
112
112
|
| **Fils de discussion** | 2 | search, get |
|
|
113
|
-
| **Documents / CV** |
|
|
113
|
+
| **Documents / CV** | 4 | get (telechargement), create (upload par URL, fichier local, slot de relais ou base64 + parsing CV), upload_slot (relais SharePoint), delete |
|
|
114
114
|
| **Application** | 2 | dictionnaire, utilisateur courant |
|
|
115
115
|
|
|
116
116
|
### Detail des onglets par entite
|
|
@@ -608,6 +608,64 @@ L'API BoondManager n'expose qu'un seul endpoint `/application/dictionary` qui re
|
|
|
608
608
|
|----------|--------|-------------|
|
|
609
609
|
| `BOOND_DICTIONARY_TTL_MS` | `3600000` (1 h) | Durée de vie du cache du dictionnaire, en millisecondes. Une valeur non numérique ou ≤ 0 retombe sur le défaut. |
|
|
610
610
|
|
|
611
|
+
### Téléversement de documents locaux
|
|
612
|
+
|
|
613
|
+
`boond_documents_create` accepte trois sources, exactement une par appel :
|
|
614
|
+
|
|
615
|
+
| Source | Transport | Activation | Limite |
|
|
616
|
+
| --- | --- | --- | --- |
|
|
617
|
+
| `fileUrl` | tous | toujours | — (BoondManager télécharge l'URL) |
|
|
618
|
+
| `filePath` | **stdio uniquement** | `BOOND_MCP_UPLOAD_DIRS` | `BOOND_MCP_UPLOAD_MAX_BYTES` (20 Mo) |
|
|
619
|
+
| `fileContent` (base64) + `fileName` | tous | toujours | 2 Mo |
|
|
620
|
+
|
|
621
|
+
| Variable | Défaut | Description |
|
|
622
|
+
| ---------------------------- | ----------- | ---------------------------------------------------------------------------------------------------- |
|
|
623
|
+
| `BOOND_MCP_UPLOAD_DIRS` | _(aucune)_ | Répertoires dont les fichiers peuvent être téléversés (chemins absolus, CSV). Absente = `filePath` désactivé. |
|
|
624
|
+
| `BOOND_MCP_UPLOAD_MAX_BYTES` | `20971520` | Taille maximale d'un fichier local, en octets. |
|
|
625
|
+
|
|
626
|
+
```bash
|
|
627
|
+
export BOOND_MCP_UPLOAD_DIRS="$HOME/Documents/Boond,$HOME/Downloads"
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
Garde-fous : chemin absolu obligatoire, confinement vérifié après résolution des liens symboliques (`..` et symlinks sortants refusés), fichier régulier uniquement, type déterminé par les premiers octets (PDF, DOCX/XLSX/PPTX, ODT/ODS, DOC/XLS/PPT, RTF, PNG, JPEG, GIF, WebP) et non par l'extension. N'autorisez que des répertoires dédiés : tout fichier accepté qui s'y trouve peut être envoyé dans BoondManager à la demande du modèle.
|
|
631
|
+
|
|
632
|
+
### Relais d'upload pour les pièces jointes de conversation (SharePoint)
|
|
633
|
+
|
|
634
|
+
Une pièce jointe glissée dans une conversation se trouve dans l'environnement d'exécution de code du client (bac à sable), pas sur le poste du serveur : `filePath` ne la voit pas, et le modèle ne peut pas la retranscrire de façon fiable en base64. Le relais la fait transiter **hors de la sortie du modèle** :
|
|
635
|
+
|
|
636
|
+
1. `boond_documents_upload_slot({ fileName })` crée, dans une bibliothèque SharePoint dédiée, un dossier de transit et une session d'upload Microsoft Graph pré-authentifiée (15 min, un fichier, un usage) ;
|
|
637
|
+
2. le bac à sable dépose le fichier en une requête `PUT` (`curl`, commande fournie) ;
|
|
638
|
+
3. `boond_documents_create({ parentType, parentId, uploadSlot })` vérifie le fichier (taille, premiers octets), transmet à BoondManager son URL de lecture temporaire Graph via le mécanisme `fileUrl`, puis le **supprime définitivement** (`permanentDelete`, sans corbeille ; repli sur une suppression simple si le locataire la refuse). Les slots expirés sont purgés à l'ouverture suivante.
|
|
639
|
+
|
|
640
|
+
Les identifiants Entra ID restent côté serveur ; le client ne voit que des URL limitées à un fichier.
|
|
641
|
+
|
|
642
|
+
| Variable | Défaut | Description |
|
|
643
|
+
| --- | --- | --- |
|
|
644
|
+
| `BOOND_MCP_UPLOAD_RELAY` | _(aucune)_ | `sharepoint` pour activer le relais. Absente = `boond_documents_upload_slot` refusé. |
|
|
645
|
+
| `BOOND_MCP_SHAREPOINT_TENANT_ID` | — | ID de l'annuaire (locataire) Entra ID. |
|
|
646
|
+
| `BOOND_MCP_SHAREPOINT_CLIENT_ID` | — | ID d'application de l'inscription Entra ID. |
|
|
647
|
+
| `BOOND_MCP_SHAREPOINT_CLIENT_SECRET` | — | Secret client (à renouveler avant expiration). |
|
|
648
|
+
| `BOOND_MCP_SHAREPOINT_SITE` | — | Site de transit : `https://<tenant>.sharepoint.com/sites/<site>`. |
|
|
649
|
+
| `BOOND_MCP_SHAREPOINT_LIBRARY` | `Documents` | Nom de la bibliothèque de transit. |
|
|
650
|
+
|
|
651
|
+
Mise en place, avec le minimum de droits :
|
|
652
|
+
|
|
653
|
+
- un site SharePoint et une bibliothèque dédiés, réservés aux propriétaires, exclus de la recherche et de la synchronisation hors connexion, sans stratégie de rétention Purview (sinon les fichiers supprimés sont conservés) ;
|
|
654
|
+
- une inscription d'application Entra ID (locataire unique) avec la permission d'application Graph **`Sites.Selected`** et le consentement administrateur, puis le rôle `write` accordé sur ce seul site :
|
|
655
|
+
|
|
656
|
+
```powershell
|
|
657
|
+
Connect-MgGraph -Scopes "Sites.FullControl.All"
|
|
658
|
+
$site = Get-MgSite -SiteId "<tenant>.sharepoint.com:/sites/<site>"
|
|
659
|
+
New-MgSitePermission -SiteId $site.Id -BodyParameter @{
|
|
660
|
+
roles = @("write")
|
|
661
|
+
grantedToIdentities = @(@{ application = @{ id = "<client-id>"; displayName = "boond-mcp-relay" } })
|
|
662
|
+
}
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
- côté client, autoriser `<tenant>.sharepoint.com` dans la liste blanche réseau de l'exécution de code.
|
|
666
|
+
|
|
667
|
+
Compromis assumé : l'URL de lecture que reçoit BoondManager est pré-authentifiée pendant sa courte durée de vie (quelques minutes, fixée par Microsoft) ; elle est imprévisible et le fichier est supprimé dès que BoondManager l'a récupéré.
|
|
668
|
+
|
|
611
669
|
### Restriction d'accès (profils / domaines / lecture seule)
|
|
612
670
|
|
|
613
671
|
Vous pouvez restreindre **ce que l'IA voit et peut faire**, entièrement par
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type TransportKind = "stdio" | "http";
|
|
2
|
+
/**
|
|
3
|
+
* The transport selected by `MCP_TRANSPORT`. Lives in `config/` rather than
|
|
4
|
+
* `index.ts` so that tools whose behaviour depends on where the server runs
|
|
5
|
+
* (local-file uploads are stdio-only) read the same rule the entry point does.
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolveTransport(env?: NodeJS.ProcessEnv): TransportKind;
|
|
8
|
+
//# sourceMappingURL=transport-kind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport-kind.d.ts","sourceRoot":"","sources":["../../src/config/transport-kind.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,aAAa,CAIpF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { readString } from "./env.js";
|
|
2
|
+
/**
|
|
3
|
+
* The transport selected by `MCP_TRANSPORT`. Lives in `config/` rather than
|
|
4
|
+
* `index.ts` so that tools whose behaviour depends on where the server runs
|
|
5
|
+
* (local-file uploads are stdio-only) read the same rule the entry point does.
|
|
6
|
+
*/
|
|
7
|
+
export function resolveTransport(env = process.env) {
|
|
8
|
+
const raw = (readString("MCP_TRANSPORT", env) ?? "").toLowerCase().trim();
|
|
9
|
+
if (raw === "http" || raw === "streamable-http" || raw === "streamablehttp")
|
|
10
|
+
return "http";
|
|
11
|
+
return "stdio";
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=transport-kind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport-kind.js","sourceRoot":"","sources":["../../src/config/transport-kind.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAyB,OAAO,CAAC,GAAG;IACnE,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC,eAAe,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAC1E,IAAI,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,iBAAiB,IAAI,GAAG,KAAK,gBAAgB;QAAE,OAAO,MAAM,CAAC;IAC3F,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -7,6 +7,13 @@ export declare const DEFAULT_MAX_RESULTS = 500;
|
|
|
7
7
|
export declare const TOOLS_IGNORING_PAGINATION: ReadonlySet<string>;
|
|
8
8
|
export declare const MAX_SEARCH_PAGE = 100;
|
|
9
9
|
export declare const MAX_DOCUMENT_BYTES: number;
|
|
10
|
+
/** Default ceiling for a local file uploaded via `filePath` (`BOOND_MCP_UPLOAD_MAX_BYTES`). */
|
|
11
|
+
export declare const DEFAULT_UPLOAD_MAX_BYTES: number;
|
|
12
|
+
/**
|
|
13
|
+
* Ceiling for base64 content passed inline (`fileContent`). Kept low on
|
|
14
|
+
* purpose: every byte costs ~1.33 base64 characters in the model's output.
|
|
15
|
+
*/
|
|
16
|
+
export declare const INLINE_UPLOAD_MAX_BYTES: number;
|
|
10
17
|
/**
|
|
11
18
|
* Ceiling for a document returned as MCP `image` content (issue #263). Hosts
|
|
12
19
|
* hand `image` content to the model's vision input, so the bytes land in the
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,oCAAoC,CAAC;AAClE,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,aAAa,MAAM,CAAC;AAUjC,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEpD,CAAC;AACF,eAAO,MAAM,mBAAmB,MAAgB,CAAC;AA6BjD,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,MAAM,CAKxD,CAAC;AAKH,eAAO,MAAM,eAAe,MAAM,CAAC;AAMnC,eAAO,MAAM,kBAAkB,QAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,oCAAoC,CAAC;AAClE,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,aAAa,MAAM,CAAC;AAUjC,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEpD,CAAC;AACF,eAAO,MAAM,mBAAmB,MAAgB,CAAC;AA6BjD,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,MAAM,CAKxD,CAAC;AAKH,eAAO,MAAM,eAAe,MAAM,CAAC;AAMnC,eAAO,MAAM,kBAAkB,QAAkB,CAAC;AAElD,+FAA+F;AAC/F,eAAO,MAAM,wBAAwB,QAAmB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAkB,CAAC;AAEvD;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAkB,CAAC;AAS/C,eAAO,MAAM,kBAAkB,QAAa,CAAC;AAK7C,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAK9C,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,yBAAyB,OAAQ,CAAC;AAM/C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAGhD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDZ,CAAC;AAOX,eAAO,MAAM,kBAAkB,gjBA6CrB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAG7D,eAAO,MAAM,WAAW;;;;;;;;;;CA4Cd,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -57,6 +57,13 @@ export const MAX_SEARCH_PAGE = 100;
|
|
|
57
57
|
// anything beyond this is refused with a clear message instead of silently
|
|
58
58
|
// flooding the conversation.
|
|
59
59
|
export const MAX_DOCUMENT_BYTES = 5 * 1024 * 1024;
|
|
60
|
+
/** Default ceiling for a local file uploaded via `filePath` (`BOOND_MCP_UPLOAD_MAX_BYTES`). */
|
|
61
|
+
export const DEFAULT_UPLOAD_MAX_BYTES = 20 * 1024 * 1024;
|
|
62
|
+
/**
|
|
63
|
+
* Ceiling for base64 content passed inline (`fileContent`). Kept low on
|
|
64
|
+
* purpose: every byte costs ~1.33 base64 characters in the model's output.
|
|
65
|
+
*/
|
|
66
|
+
export const INLINE_UPLOAD_MAX_BYTES = 2 * 1024 * 1024;
|
|
60
67
|
/**
|
|
61
68
|
* Ceiling for a document returned as MCP `image` content (issue #263). Hosts
|
|
62
69
|
* hand `image` content to the model's vision input, so the bytes land in the
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,MAAM,CAAC,MAAM,gBAAgB,GAAG,iCAAiC,CAAC;AAClE,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AACrC,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AACpC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC;AAEjC,4EAA4E;AAC5E,gFAAgF;AAChF,0EAA0E;AAC1E,6EAA6E;AAC7E,gFAAgF;AAChF,8EAA8E;AAC9E,mEAAmE;AACnE,iFAAiF;AACjF,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,UAAU,EAAE,GAAG;CAChB,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAEjD,4EAA4E;AAC5E,yEAAyE;AACzE,2BAA2B;AAC3B,EAAE;AACF,yDAAyD;AACzD,yDAAyD;AACzD,yDAAyD;AACzD,wDAAwD;AACxD,EAAE;AACF,wEAAwE;AACxE,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,+EAA+E;AAC/E,gFAAgF;AAChF,EAAE;AACF,4EAA4E;AAC5E,uE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C,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAU;IAChG,SAAS,EAAE;QACT,aAAa;QACb,UAAU;QACV,SAAS;QACT,eAAe;QACf,UAAU;QACV,QAAQ;QACR,UAAU;QACV,WAAW;QACX,mBAAmB;KACX;IACV,aAAa,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,CAAU;IAC5F,QAAQ,EAAE;QACR,aAAa;QACb,SAAS;QACT,YAAY;QACZ,uBAAuB;QACvB,QAAQ;QACR,WAAW;QACX,cAAc;KACN;IACV,0EAA0E;IAC1E,yEAAyE;IACzE,6EAA6E;IAC7E,0EAA0E;IAC1E,QAAQ,EAAE,CAAC,aAAa,EAAE,SAAS,CAAU;IAC7C,MAAM,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,UAAU,CAAU;IACvD,2EAA2E;IAC3E,SAAS,EAAE,CAAC,aAAa,CAAU;CAC3B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,13 +7,7 @@ import { initClient, initClientWithAuth, oauthContextAuth, hasEnvCredentials } f
|
|
|
7
7
|
import { createMcpServer, REGISTERED_DOMAINS } from "./server.js";
|
|
8
8
|
import { runUpdateNotification } from "./services/update-checker.js";
|
|
9
9
|
import { resolveHttpOptions, startHttpTransport } from "./transports/http.js";
|
|
10
|
-
import {
|
|
11
|
-
function resolveTransport() {
|
|
12
|
-
const raw = (readString("MCP_TRANSPORT") ?? "").toLowerCase().trim();
|
|
13
|
-
if (raw === "http" || raw === "streamable-http" || raw === "streamablehttp")
|
|
14
|
-
return "http";
|
|
15
|
-
return "stdio";
|
|
16
|
-
}
|
|
10
|
+
import { resolveTransport } from "./config/transport-kind.js";
|
|
17
11
|
function readLocalPackageMeta() {
|
|
18
12
|
try {
|
|
19
13
|
const here = dirname(fileURLToPath(import.meta.url));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACjH,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACjH,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,SAAS,oBAAoB;IAC3B,IAAI,CAAC;QACH,MAAM,IAAI,GA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AAG,KAAe,CAAC,OAAO,CAAC,CAAC;QACtE,OAAO,CAAC,KAAK,CAAC,2EAA2E,CAAC,CAAC;IAC7F,CAAC;IAED,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;IACtE,OAAO,CAAC,KAAK,CAAC,eAAe,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9D,mBAAmB,EAAE,CAAC;AACxB,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC9E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -425,6 +425,13 @@ export declare const CandidateUpdateSchema: z.ZodObject<{
|
|
|
425
425
|
state: z.ZodOptional<z.ZodPreprocess<z.ZodCoercedNumber<unknown>, unknown>>;
|
|
426
426
|
mainSkills: z.ZodOptional<z.ZodString>;
|
|
427
427
|
note: z.ZodOptional<z.ZodString>;
|
|
428
|
+
address: z.ZodOptional<z.ZodString>;
|
|
429
|
+
postcode: z.ZodOptional<z.ZodString>;
|
|
430
|
+
town: z.ZodOptional<z.ZodString>;
|
|
431
|
+
availability: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
mobilityAreas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
433
|
+
globalEvaluation: z.ZodOptional<z.ZodString>;
|
|
434
|
+
informationComments: z.ZodOptional<z.ZodString>;
|
|
428
435
|
}, z.core.$strict>;
|
|
429
436
|
export declare const ResourceCreateSchema: z.ZodObject<{
|
|
430
437
|
firstName: z.ZodString;
|
|
@@ -478,6 +485,46 @@ export declare const ResourceTechnicalDataUpdateSchema: z.ZodObject<{
|
|
|
478
485
|
}, z.core.$strict>>>;
|
|
479
486
|
diplomas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
480
487
|
}, z.core.$strict>;
|
|
488
|
+
export declare const CandidateTechnicalDataUpdateSchema: z.ZodObject<{
|
|
489
|
+
id: z.ZodString;
|
|
490
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
491
|
+
replace: "replace";
|
|
492
|
+
merge: "merge";
|
|
493
|
+
}>>;
|
|
494
|
+
title: z.ZodOptional<z.ZodString>;
|
|
495
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
496
|
+
skills: z.ZodOptional<z.ZodString>;
|
|
497
|
+
experience: z.ZodOptional<z.ZodNumber>;
|
|
498
|
+
training: z.ZodOptional<z.ZodString>;
|
|
499
|
+
expertiseAreas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
500
|
+
activityAreas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
501
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
502
|
+
tool: z.ZodString;
|
|
503
|
+
level: z.ZodNumber;
|
|
504
|
+
}, z.core.$strict>>>;
|
|
505
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
506
|
+
language: z.ZodString;
|
|
507
|
+
level: z.ZodEnum<{
|
|
508
|
+
scolaire: "scolaire";
|
|
509
|
+
intermediaire: "intermediaire";
|
|
510
|
+
courant: "courant";
|
|
511
|
+
bilingue: "bilingue";
|
|
512
|
+
maternel: "maternel";
|
|
513
|
+
}>;
|
|
514
|
+
}, z.core.$strict>>>;
|
|
515
|
+
diplomas: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
516
|
+
}, z.core.$strict>;
|
|
517
|
+
export declare const CandidateAdministrativeUpdateSchema: z.ZodObject<{
|
|
518
|
+
id: z.ZodString;
|
|
519
|
+
nationality: z.ZodOptional<z.ZodString>;
|
|
520
|
+
desiredSalary: z.ZodOptional<z.ZodObject<{
|
|
521
|
+
min: z.ZodNumber;
|
|
522
|
+
max: z.ZodNumber;
|
|
523
|
+
}, z.core.$strict>>;
|
|
524
|
+
actualSalary: z.ZodOptional<z.ZodNumber>;
|
|
525
|
+
desiredContract: z.ZodOptional<z.ZodNumber>;
|
|
526
|
+
administrativeComments: z.ZodOptional<z.ZodString>;
|
|
527
|
+
}, z.core.$strict>;
|
|
481
528
|
export declare const ReferenceCreateSchema: z.ZodObject<{
|
|
482
529
|
resourceId: z.ZodString;
|
|
483
530
|
title: z.ZodString;
|
|
@@ -799,6 +846,8 @@ export declare const InvoiceCreateSchema: z.ZodObject<{
|
|
|
799
846
|
state: z.ZodOptional<z.ZodPreprocess<z.ZodCoercedNumber<unknown>, unknown>>;
|
|
800
847
|
invoiceDate: z.ZodOptional<z.ZodString>;
|
|
801
848
|
expectedPaymentDate: z.ZodOptional<z.ZodString>;
|
|
849
|
+
performedPaymentDate: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
|
|
850
|
+
paymentMethod: z.ZodOptional<z.ZodNumber>;
|
|
802
851
|
amountExcludingTax: z.ZodOptional<z.ZodNumber>;
|
|
803
852
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
804
853
|
invoiceRecords: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -811,6 +860,8 @@ export declare const InvoiceUpdateSchema: z.ZodObject<{
|
|
|
811
860
|
state: z.ZodOptional<z.ZodPreprocess<z.ZodCoercedNumber<unknown>, unknown>>;
|
|
812
861
|
invoiceDate: z.ZodOptional<z.ZodString>;
|
|
813
862
|
expectedPaymentDate: z.ZodOptional<z.ZodString>;
|
|
863
|
+
performedPaymentDate: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>>;
|
|
864
|
+
paymentMethod: z.ZodOptional<z.ZodNumber>;
|
|
814
865
|
amountExcludingTax: z.ZodOptional<z.ZodNumber>;
|
|
815
866
|
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
816
867
|
invoiceRecords: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -1915,9 +1966,16 @@ export declare const DocumentCreateSchema: z.ZodObject<{
|
|
|
1915
1966
|
appentity: "appentity";
|
|
1916
1967
|
}>;
|
|
1917
1968
|
parentId: z.ZodNumber;
|
|
1918
|
-
fileUrl: z.ZodString
|
|
1969
|
+
fileUrl: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
fileContent: z.ZodOptional<z.ZodString>;
|
|
1972
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
1973
|
+
uploadSlot: z.ZodOptional<z.ZodString>;
|
|
1919
1974
|
parsing: z.ZodOptional<z.ZodBoolean>;
|
|
1920
1975
|
}, z.core.$strict>;
|
|
1976
|
+
export declare const DocumentUploadSlotSchema: z.ZodObject<{
|
|
1977
|
+
fileName: z.ZodString;
|
|
1978
|
+
}, z.core.$strict>;
|
|
1921
1979
|
export type SearchInput = z.infer<typeof SearchSchema>;
|
|
1922
1980
|
export type ResourceSearchInput = z.infer<typeof ResourceSearchSchema>;
|
|
1923
1981
|
export type CandidateSearchInput = z.infer<typeof CandidateSearchSchema>;
|
|
@@ -1933,10 +1991,13 @@ export type TimesheetSearchInput = z.infer<typeof TimesheetSearchSchema>;
|
|
|
1933
1991
|
export type TimesheetGetInput = z.infer<typeof TimesheetGetSchema>;
|
|
1934
1992
|
export type DictionaryGetInput = z.infer<typeof DictionaryGetSchema>;
|
|
1935
1993
|
export type ResourceTechnicalDataUpdateInput = z.infer<typeof ResourceTechnicalDataUpdateSchema>;
|
|
1994
|
+
export type CandidateTechnicalDataUpdateInput = z.infer<typeof CandidateTechnicalDataUpdateSchema>;
|
|
1995
|
+
export type CandidateAdministrativeUpdateInput = z.infer<typeof CandidateAdministrativeUpdateSchema>;
|
|
1936
1996
|
export type ReferenceCreateInput = z.infer<typeof ReferenceCreateSchema>;
|
|
1937
1997
|
export type ReferenceUpdateInput = z.infer<typeof ReferenceUpdateSchema>;
|
|
1938
1998
|
export type ReferenceIdInput = z.infer<typeof ReferenceIdSchema>;
|
|
1939
1999
|
export type DocumentCreateInput = z.infer<typeof DocumentCreateSchema>;
|
|
2000
|
+
export type DocumentUploadSlotInput = z.infer<typeof DocumentUploadSlotSchema>;
|
|
1940
2001
|
export type ReportingCompaniesInput = z.infer<typeof ReportingCompaniesSchema>;
|
|
1941
2002
|
export type ReportingProjectsInput = z.infer<typeof ReportingProjectsSchema>;
|
|
1942
2003
|
export type ReportingResourcesInput = z.infer<typeof ReportingResourcesSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,WAAW,wCAMrB,CAAC;AAcJ,eAAO,MAAM,SAAS,2BAQ4C,CAAC;AACnE,eAAO,MAAM,aAAa,2BAMuE,CAAC;AAClG,eAAO,MAAM,SAAS,4BAAuF,CAAC;AAC9G,eAAO,MAAM,UAAU;;;GAAyE,CAAC;AAEjG,+DAA+D;AAC/D,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX,mFAAmF;AACnF,eAAO,MAAM,qBAAqB;;;;;;;;;CAIxB,CAAC;AAuBX,eAAO,MAAM,YAAY;;;;;kBAKd,CAAC;AAkHZ,uEAAuE;AACvE,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAOjB,CAAC;AAEX,2EAA2E;AAC3E,eAAO,MAAM,YAAY;;;;IAGoC,CAAC;AAE9D,wFAAwF;AACxF,eAAO,MAAM,sBAAsB;;;;;;;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,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACvE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { DEFAULT_PAGE_SIZE, MAX_PAGE_SIZE, MAX_SEARCH_PAGE } from "../constants.js";
|
|
2
|
+
import { DEFAULT_PAGE_SIZE, INLINE_UPLOAD_MAX_BYTES, MAX_PAGE_SIZE, MAX_SEARCH_PAGE } from "../constants.js";
|
|
3
3
|
import { appendOverridesToDescription, resolveLabel } from "../config/dictionary-overrides.js";
|
|
4
4
|
// Client-side projection, shared by every search schema. Declared before
|
|
5
5
|
// `SearchSchema` because that schema embeds it (a `const` referenced during
|
|
@@ -10,7 +10,7 @@ import { appendOverridesToDescription, resolveLabel } from "../config/dictionary
|
|
|
10
10
|
export const fieldsField = z
|
|
11
11
|
.array(z.string())
|
|
12
12
|
.optional()
|
|
13
|
-
.describe("Projection : attributs
|
|
13
|
+
.describe("Projection : attributs ou relations (type#id) par résultat (ex: ['title','dependsOn']). " +
|
|
14
14
|
"Absent = résumé standard. Noms inconnus ignorés.");
|
|
15
15
|
// ---- Reusable filter field helpers ----
|
|
16
16
|
// IMPORTANT: input field names below MUST match the BoondManager API query parameter names
|
|
@@ -541,6 +541,24 @@ export const CandidateUpdateSchema = z
|
|
|
541
541
|
state: stateField("candidate", "État du candidat"),
|
|
542
542
|
mainSkills: z.string().optional().describe("Compétences principales"),
|
|
543
543
|
note: z.string().optional().describe("Notes"),
|
|
544
|
+
address: z.string().optional().describe("Adresse (rue et numéro)"),
|
|
545
|
+
postcode: z.string().optional().describe("Code postal"),
|
|
546
|
+
town: z.string().optional().describe("Ville, telle que stockée par l'onglet Information (`town`)"),
|
|
547
|
+
availability: z
|
|
548
|
+
.number()
|
|
549
|
+
.int()
|
|
550
|
+
.optional()
|
|
551
|
+
.describe("Disponibilité : ID numérique du dictionnaire `setting.availability`"),
|
|
552
|
+
mobilityAreas: z
|
|
553
|
+
.array(z.string())
|
|
554
|
+
.optional()
|
|
555
|
+
.describe("Zones de mobilité : IDs du dictionnaire `setting.mobilityArea` (ex: 'mondeeuropebelgique'). " +
|
|
556
|
+
"Remplace la liste existante : relire l'onglet Information et fusionner avant d'appeler."),
|
|
557
|
+
globalEvaluation: z
|
|
558
|
+
.string()
|
|
559
|
+
.optional()
|
|
560
|
+
.describe("Évaluation globale : ID du dictionnaire `setting.evaluation` (ex: 'a', 'b', 'c', 'd')"),
|
|
561
|
+
informationComments: z.string().optional().describe("Commentaires de l'onglet Information"),
|
|
544
562
|
})
|
|
545
563
|
.strict();
|
|
546
564
|
// ---- Resource schemas ----
|
|
@@ -610,6 +628,64 @@ export const ResourceTechnicalDataUpdateSchema = z
|
|
|
610
628
|
.describe("Diplômes (texte libre, ex: 'DUT Informatique - IUT Bordeaux (2016)')."),
|
|
611
629
|
})
|
|
612
630
|
.strict();
|
|
631
|
+
// ---- Candidate technical-data (DT) write schema ----
|
|
632
|
+
// Same payload as the resource DT (PUT /candidates/{id}/technical-data, type=candidate).
|
|
633
|
+
// Scalars experience/training and the area lists take dictionary IDs, not free text.
|
|
634
|
+
export const CandidateTechnicalDataUpdateSchema = z
|
|
635
|
+
.object({
|
|
636
|
+
id: EntityIdSchema.describe("ID du candidat dont le dossier technique est mis à jour."),
|
|
637
|
+
mode: z
|
|
638
|
+
.enum(["merge", "replace"])
|
|
639
|
+
.default("merge")
|
|
640
|
+
.describe("'merge' (défaut) enrichit le DT sans rien écraser. 'replace' remplace intégralement chaque champ fourni."),
|
|
641
|
+
title: z.string().optional().describe("Titre / poste."),
|
|
642
|
+
summary: z.string().optional().describe("Résumé / synthèse du parcours (Profile Summary)."),
|
|
643
|
+
skills: z.string().optional().describe("Compétences libres, séparées par virgule."),
|
|
644
|
+
experience: z
|
|
645
|
+
.number()
|
|
646
|
+
.int()
|
|
647
|
+
.min(0)
|
|
648
|
+
.optional()
|
|
649
|
+
.describe("Tranche d'expérience : ID numérique du dictionnaire `setting.experience`."),
|
|
650
|
+
training: z.string().optional().describe("Niveau de formation : ID du dictionnaire `setting.training`."),
|
|
651
|
+
expertiseAreas: z
|
|
652
|
+
.array(z.string())
|
|
653
|
+
.optional()
|
|
654
|
+
.describe("Domaines d'expertise : IDs du dictionnaire `setting.expertiseArea`."),
|
|
655
|
+
activityAreas: z
|
|
656
|
+
.array(z.string())
|
|
657
|
+
.optional()
|
|
658
|
+
.describe("Secteurs / profils : IDs du dictionnaire `setting.activityArea` (options des groupes)."),
|
|
659
|
+
tools: z.array(technicalDataToolItemSchema).optional().describe("Outils maîtrisés avec niveau (1-4)."),
|
|
660
|
+
languages: z.array(technicalDataLanguageItemSchema).optional().describe("Langues parlées avec niveau."),
|
|
661
|
+
diplomas: z
|
|
662
|
+
.array(z.string())
|
|
663
|
+
.optional()
|
|
664
|
+
.describe("Diplômes (texte libre, ex: '2021 - Ingénieur Civil - UCLouvain')."),
|
|
665
|
+
})
|
|
666
|
+
.strict();
|
|
667
|
+
// ---- Candidate administrative write schema ----
|
|
668
|
+
// PUT /candidates/{id}/administrative, type=candidate. Attribute names mirror the GET payload.
|
|
669
|
+
const salaryRangeSchema = z
|
|
670
|
+
.object({
|
|
671
|
+
min: z.number().min(0).describe("Borne basse"),
|
|
672
|
+
max: z.number().min(0).describe("Borne haute"),
|
|
673
|
+
})
|
|
674
|
+
.strict();
|
|
675
|
+
export const CandidateAdministrativeUpdateSchema = z
|
|
676
|
+
.object({
|
|
677
|
+
id: EntityIdSchema.describe("ID du candidat."),
|
|
678
|
+
nationality: z.string().optional().describe("Nationalité (texte, ex: 'Belgique')."),
|
|
679
|
+
desiredSalary: salaryRangeSchema.optional().describe("Salaire souhaité (fourchette min / max)."),
|
|
680
|
+
actualSalary: z.number().min(0).optional().describe("Salaire actuel."),
|
|
681
|
+
desiredContract: z
|
|
682
|
+
.number()
|
|
683
|
+
.int()
|
|
684
|
+
.optional()
|
|
685
|
+
.describe("Contrat souhaité : ID du dictionnaire `setting.typeOf.contract` (-1 = non renseigné)."),
|
|
686
|
+
administrativeComments: z.string().optional().describe("Commentaires administratifs."),
|
|
687
|
+
})
|
|
688
|
+
.strict();
|
|
613
689
|
// ---- Reference (DT experience) schemas ----
|
|
614
690
|
// Validated live against the BoondManager API on 2026-05-20: references are NOT a
|
|
615
691
|
// standalone REST entity. They're sub-objects embedded in the resource's DT (the
|
|
@@ -996,13 +1072,29 @@ export const ProjectUpdateSchema = z
|
|
|
996
1072
|
})
|
|
997
1073
|
.strict();
|
|
998
1074
|
// ---- Invoice schemas ----
|
|
1075
|
+
// API pattern is `^|YYYY-MM-DD$`: an empty string clears the date.
|
|
1076
|
+
const performedPaymentDateField = z
|
|
1077
|
+
.union([z.string().regex(/^\d{4}-\d{2}-\d{2}$/), z.literal("")])
|
|
1078
|
+
.optional()
|
|
1079
|
+
.describe("Date de règlement effectif (YYYY-MM-DD, `\"\"` pour l'effacer). À envoyer dans le même appel que le passage de `state` à l'état « payée » : sans elle, BoondManager date le règlement du jour du changement d'état. Si la date est encore écrasée, rappeler `boond_invoices_update` avec ce seul champ.");
|
|
1080
|
+
const invoicePaymentMethodField = z
|
|
1081
|
+
.number()
|
|
1082
|
+
.int()
|
|
1083
|
+
.min(-1)
|
|
1084
|
+
.optional()
|
|
1085
|
+
.describe("Mode de règlement : ID de `boond://dictionary/paymentMethods`");
|
|
999
1086
|
export const InvoiceCreateSchema = z
|
|
1000
1087
|
.object({
|
|
1001
1088
|
reference: z.string().optional().describe("Référence de la facture"),
|
|
1002
1089
|
orderId: EntityIdSchema.optional().describe("ID du bon de commande associé"),
|
|
1003
1090
|
state: stateField("invoice", "État de la facture : ID de `boond://dictionary/states/invoices` (ex: 0 = Création, 1 = Transmis au client)"),
|
|
1004
1091
|
invoiceDate: z.string().optional().describe("Date de facturation (YYYY-MM-DD)"),
|
|
1005
|
-
expectedPaymentDate: z
|
|
1092
|
+
expectedPaymentDate: z
|
|
1093
|
+
.string()
|
|
1094
|
+
.optional()
|
|
1095
|
+
.describe("Date d'échéance (YYYY-MM-DD) — pas la date de règlement, voir `performedPaymentDate`"),
|
|
1096
|
+
performedPaymentDate: performedPaymentDateField,
|
|
1097
|
+
paymentMethod: invoicePaymentMethodField,
|
|
1006
1098
|
amountExcludingTax: z.number().optional().describe("Montant HT"),
|
|
1007
1099
|
taxRate: z.number().optional().describe("Taux de TVA (%)"),
|
|
1008
1100
|
invoiceRecords: z.array(z.record(z.string(), z.unknown())).optional().describe("Lignes de facture Boond"),
|
|
@@ -1016,7 +1108,12 @@ export const InvoiceUpdateSchema = z
|
|
|
1016
1108
|
reference: z.string().optional().describe("Référence de la facture"),
|
|
1017
1109
|
state: stateField("invoice", "État de la facture : ID de `boond://dictionary/states/invoices` (ex: 0 = Création, 1 = Transmis au client)"),
|
|
1018
1110
|
invoiceDate: z.string().optional().describe("Date de facturation (YYYY-MM-DD)"),
|
|
1019
|
-
expectedPaymentDate: z
|
|
1111
|
+
expectedPaymentDate: z
|
|
1112
|
+
.string()
|
|
1113
|
+
.optional()
|
|
1114
|
+
.describe("Date d'échéance (YYYY-MM-DD) — pas la date de règlement, voir `performedPaymentDate`"),
|
|
1115
|
+
performedPaymentDate: performedPaymentDateField,
|
|
1116
|
+
paymentMethod: invoicePaymentMethodField,
|
|
1020
1117
|
amountExcludingTax: z.number().optional().describe("Montant HT"),
|
|
1021
1118
|
taxRate: z.number().optional().describe("Taux de TVA (%)"),
|
|
1022
1119
|
invoiceRecords: z.array(z.record(z.string(), z.unknown())).optional().describe("Lignes de facture Boond"),
|
|
@@ -2081,9 +2178,12 @@ export const DictionaryGetSchema = z
|
|
|
2081
2178
|
.strict();
|
|
2082
2179
|
// ---- Documents ----
|
|
2083
2180
|
// Source: https://doc.boondmanager.com/api-externe/raml-build/resources/documents/search.raml
|
|
2084
|
-
//
|
|
2085
|
-
//
|
|
2086
|
-
//
|
|
2181
|
+
// Trois sources, exactement une par appel (vérifié par le handler, un JSON
|
|
2182
|
+
// Schema ne sait pas l'exprimer lisiblement) : `fileUrl` (BoondManager
|
|
2183
|
+
// télécharge lui-même), `filePath` (fichier local, stdio uniquement, désactivé
|
|
2184
|
+
// tant que `BOOND_MCP_UPLOAD_DIRS` n'est pas défini) et `fileContent` + `fileName`
|
|
2185
|
+
// (base64 inline, plafonné), `uploadSlot` (fichier déposé sur un slot du relais,
|
|
2186
|
+
// `services/upload-relay.ts`). Garde-fous : `services/upload-source.ts`.
|
|
2087
2187
|
export const DocumentParentTypes = [
|
|
2088
2188
|
"action",
|
|
2089
2189
|
"resourceResume",
|
|
@@ -2119,11 +2219,45 @@ export const DocumentCreateSchema = z
|
|
|
2119
2219
|
fileUrl: z
|
|
2120
2220
|
.string()
|
|
2121
2221
|
.url()
|
|
2222
|
+
.optional()
|
|
2122
2223
|
.describe("URL (https) du fichier à téléverser — BoondManager télécharge le fichier depuis cette URL."),
|
|
2224
|
+
filePath: z
|
|
2225
|
+
.string()
|
|
2226
|
+
.min(1)
|
|
2227
|
+
.max(4096)
|
|
2228
|
+
.optional()
|
|
2229
|
+
.describe("Chemin absolu d'un fichier local, lu par le serveur MCP (transport stdio uniquement, sous un répertoire " +
|
|
2230
|
+
"de BOOND_MCP_UPLOAD_DIRS)."),
|
|
2231
|
+
fileContent: z
|
|
2232
|
+
.string()
|
|
2233
|
+
.min(1)
|
|
2234
|
+
.max(Math.ceil(INLINE_UPLOAD_MAX_BYTES / 3) * 4 + 256)
|
|
2235
|
+
.optional()
|
|
2236
|
+
.describe("Contenu du fichier en base64 (préfixe data: URI accepté), petits fichiers uniquement. Exige fileName."),
|
|
2237
|
+
fileName: z
|
|
2238
|
+
.string()
|
|
2239
|
+
.min(1)
|
|
2240
|
+
.max(255)
|
|
2241
|
+
.optional()
|
|
2242
|
+
.describe("Nom du fichier avec son extension (ex. cv.pdf), requis avec fileContent."),
|
|
2243
|
+
uploadSlot: z
|
|
2244
|
+
.string()
|
|
2245
|
+
.uuid()
|
|
2246
|
+
.optional()
|
|
2247
|
+
.describe("Identifiant d'un slot créé par boond_documents_upload_slot, une fois le fichier déposé."),
|
|
2123
2248
|
parsing: z
|
|
2124
2249
|
.boolean()
|
|
2125
2250
|
.optional()
|
|
2126
2251
|
.describe("Lancer le parsing IA du CV après upload (uniquement pour parentType=candidateResume)."),
|
|
2127
2252
|
})
|
|
2128
2253
|
.strict();
|
|
2254
|
+
export const DocumentUploadSlotSchema = z
|
|
2255
|
+
.object({
|
|
2256
|
+
fileName: z
|
|
2257
|
+
.string()
|
|
2258
|
+
.min(1)
|
|
2259
|
+
.max(255)
|
|
2260
|
+
.describe("Nom du fichier à déposer, avec son extension (ex. cv.pdf). Il deviendra le nom du document dans Boond."),
|
|
2261
|
+
})
|
|
2262
|
+
.strict();
|
|
2129
2263
|
//# sourceMappingURL=index.js.map
|