From 3152750fff051d921eb2c64ad3b6579f1ab6a275 Mon Sep 17 00:00:00 2001 From: Nicolas Hallaert <39910164+Rossb0b@users.noreply.github.com> Date: Fri, 28 Jul 2023 16:32:35 +0200 Subject: [PATCH] feat(): scope extended with SIREN/SIRET(s) & accountingFolderRef (#69) --- README.md | 3 +++ docs/json-schema/scope.md | 12 ++++++++++++ src/schema/scope.json | 12 ++++++++++++ src/types/index.ts | 3 +++ 4 files changed, 30 insertions(+) diff --git a/README.md b/README.md index 89e62d1e..b97bf92f 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,10 @@ An Event fully constituted is composed by a `name`, an `operation` and multiple export interface Scope { schemaId: number; firmId?: number | null; + firmSIRET?: number | null; accountingFolderId?: number | null; + accountingFolderSIRET?: number | null; + accountingFolderRef?: string | null; persPhysiqueId?: number | null; } diff --git a/docs/json-schema/scope.md b/docs/json-schema/scope.md index 3b5f5740..388c9b59 100644 --- a/docs/json-schema/scope.md +++ b/docs/json-schema/scope.md @@ -11,10 +11,22 @@ "type": "number", "nullable": true }, + "firmSIRET": { + "type": "number", + "nullable": true + }, "accountingFolderId": { "type": "number", "nullable": true }, + "accountingFolderSIRET": { + "type": "number", + "nullable": true + }, + "accountingFolderRef": { + "type": "string", + "nullable": true + }, "persPhysiqueId": { "type": "number", "nullable": true diff --git a/src/schema/scope.json b/src/schema/scope.json index 7bbf6015..8e0dbe7a 100644 --- a/src/schema/scope.json +++ b/src/schema/scope.json @@ -9,10 +9,22 @@ "type": "number", "nullable": true }, + "firmSIRET": { + "type": "number", + "nullable": true + }, "accountingFolderId": { "type": "number", "nullable": true }, + "accountingFolderSIRET": { + "type": "number", + "nullable": true + }, + "accountingFolderRef": { + "type": "string", + "nullable": true + }, "persPhysiqueId": { "type": "number", "nullable": true diff --git a/src/types/index.ts b/src/types/index.ts index d047151c..011f5d2e 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -4,7 +4,10 @@ import { Events } from "./events"; export interface Scope { schemaId: number; firmId?: number | null; + firmSIRET?: number | null; accountingFolderId?: number | null; + accountingFolderSIRET?: number | null; + accountingFolderRef?: string | null; persPhysiqueId?: number | null; }