Skip to content

Commit

Permalink
feat(): scope extended with SIREN/SIRET(s) & accountingFolderRef (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossb0b authored Jul 28, 2023
1 parent bfa4e37 commit 3152750
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
12 changes: 12 additions & 0 deletions docs/json-schema/scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions src/schema/scope.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3152750

Please sign in to comment.