@legalplace/models-v3-types 5.4.0 → 5.5.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/CHANGELOG.md +22 -0
- package/index.ts +8 -19
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.5.0](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/models-v3-types@5.4.1...@legalplace/models-v3-types@5.5.0) (2024-02-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add disable condition to variable type ([70ef253](https://git.legalplace.eu/legalplace/monorepo/commits/70ef25303c9e04d3d742ebb6b7e10858809271ff)), closes [api#10622](https://git.legalplace.eu/api/issues/10622)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [5.4.1](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/models-v3-types@5.4.0...@legalplace/models-v3-types@5.4.1) (2024-02-20)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* remove const and enums from model v3 types ([a8e16ef](https://git.legalplace.eu/legalplace/monorepo/commits/a8e16efff1bb261e9bb8fa8671b1e305608fe6c2)), closes [api#10618](https://git.legalplace.eu/api/issues/10618)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [5.4.0](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/models-v3-types@5.3.0...@legalplace/models-v3-types@5.4.0) (2024-02-20)
|
|
7
29
|
|
|
8
30
|
|
package/index.ts
CHANGED
|
@@ -565,13 +565,18 @@ export interface VariableV3 {
|
|
|
565
565
|
/**
|
|
566
566
|
* Autocomplete dataset
|
|
567
567
|
*/
|
|
568
|
-
autocompleteDataset?:
|
|
568
|
+
autocompleteDataset?: AutocompleteDatasetType;
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* Linked variables (used in autocomplete)
|
|
572
572
|
*/
|
|
573
573
|
linkedVariables?: Record<string, number>;
|
|
574
574
|
|
|
575
|
+
/**
|
|
576
|
+
* User side variable disabled condition
|
|
577
|
+
*/
|
|
578
|
+
disabled?: boolean;
|
|
579
|
+
|
|
575
580
|
/**
|
|
576
581
|
* Termsheet
|
|
577
582
|
*/
|
|
@@ -654,9 +659,7 @@ export interface FDFBoxesV3 {
|
|
|
654
659
|
/**
|
|
655
660
|
* Autocomplete datasets
|
|
656
661
|
*/
|
|
657
|
-
export
|
|
658
|
-
DATAGOUV_ADDRESSES = "datagouv_addresses",
|
|
659
|
-
}
|
|
662
|
+
export type AutocompleteDatasetType = "datagouv_addresses";
|
|
660
663
|
|
|
661
664
|
/**
|
|
662
665
|
* Autocomplete linkedvariables
|
|
@@ -664,18 +667,4 @@ export enum AutocompleteDatasetEnum {
|
|
|
664
667
|
export type AutocompleteLinkedVariableType =
|
|
665
668
|
| "postcode"
|
|
666
669
|
| "city"
|
|
667
|
-
| "
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Autocomplete linked variable config
|
|
671
|
-
*/
|
|
672
|
-
export const AutocompleteLinkedVariablesConfig: Record<
|
|
673
|
-
AutocompleteDatasetEnum,
|
|
674
|
-
AutocompleteLinkedVariableType[]
|
|
675
|
-
> = {
|
|
676
|
-
[AutocompleteDatasetEnum.DATAGOUV_ADDRESSES]: [
|
|
677
|
-
"postcode",
|
|
678
|
-
"city",
|
|
679
|
-
"countrycode",
|
|
680
|
-
],
|
|
681
|
-
};
|
|
670
|
+
| "communal_code";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/models-v3-types",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"main": "",
|
|
5
5
|
"types": "index",
|
|
6
6
|
"author": "Moncef Hammou <moncef@legalplace.fr>",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"write-schema": "typescript-json-schema tsconfig.json ModelV3 -o schema.json"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@legalplace/typeorm-constants": "^3.24.
|
|
12
|
+
"@legalplace/typeorm-constants": "^3.24.4"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@legalplace/eslint-config": "^2.2.0",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"typescript-json-schema": "^0.43.0"
|
|
18
18
|
},
|
|
19
19
|
"prettier": "@legalplace/prettier-config",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "772540a6470e6a517c06fbdb346c889c0dd962ac"
|
|
21
21
|
}
|