@legalplace/models-v3-types 3.10.0 → 4.0.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/.eslintrc +3 -0
- package/.gitlab-ci.yml +1 -1
- package/CHANGELOG.md +23 -0
- package/README +1 -1
- package/index.ts +7 -3
- package/package.json +10 -5
- package/tsconfig.json +1 -1
package/.eslintrc
ADDED
package/.gitlab-ci.yml
CHANGED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# 4.0.0 (2023-02-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* bunch of fixes and package alignments api[#7559](https://git.legalplace.eu/legalplace/monorepo/issues/7559) ([7e2828f](https://git.legalplace.eu/legalplace/monorepo/commits/7e2828feda10ffdf07cacd1cc661122830faaeeb))
|
|
12
|
+
* fix package.json api[#7559](https://git.legalplace.eu/legalplace/monorepo/issues/7559) ([de84bd8](https://git.legalplace.eu/legalplace/monorepo/commits/de84bd891dcc57e310bff282c9bfec17333d6862))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* adding models-v3-types package to monorepo api[#7559](https://git.legalplace.eu/legalplace/monorepo/issues/7559) ([f987580](https://git.legalplace.eu/legalplace/monorepo/commits/f987580e808e1fc04bfb8b58db8c336b1394f618))
|
|
18
|
+
* adding support for browser history pagination and slugs api[#7559](https://git.legalplace.eu/legalplace/monorepo/issues/7559) ([9e471ca](https://git.legalplace.eu/legalplace/monorepo/commits/9e471cadbc08df9507e0b5d9c816dd6d0bd05ed7))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### BREAKING CHANGES
|
|
22
|
+
|
|
23
|
+
* Pagination handling changed to support slugs, store init and destrying changed too.
|
package/README
CHANGED
package/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Type definitions for model v3
|
|
2
2
|
// TypeScript Version: 2.1
|
|
3
|
-
import type { ROLE } from "@legalplace/typeorm-constants"
|
|
3
|
+
import type { ROLE } from "@legalplace/typeorm-constants";
|
|
4
|
+
|
|
4
5
|
type CONDITION_TYPE =
|
|
5
6
|
| "selected"
|
|
6
7
|
| "not-selected"
|
|
@@ -126,7 +127,7 @@ export interface ModelV3<ConstumizationMeta = CustomizationMetaDefault> {
|
|
|
126
127
|
meta?: ConstumizationMeta;
|
|
127
128
|
dataStorage?: {
|
|
128
129
|
extendedDuration?: boolean;
|
|
129
|
-
}
|
|
130
|
+
};
|
|
130
131
|
};
|
|
131
132
|
}
|
|
132
133
|
|
|
@@ -219,6 +220,10 @@ export interface SectionV3 {
|
|
|
219
220
|
* Tags
|
|
220
221
|
*/
|
|
221
222
|
tags?: string[];
|
|
223
|
+
/**
|
|
224
|
+
* Slug
|
|
225
|
+
*/
|
|
226
|
+
slug?: string;
|
|
222
227
|
}
|
|
223
228
|
|
|
224
229
|
export interface OptionV3 {
|
|
@@ -418,7 +423,6 @@ export interface VariableV3 {
|
|
|
418
423
|
| "hour"
|
|
419
424
|
| "email"
|
|
420
425
|
| "user_email"
|
|
421
|
-
| "phone_number"
|
|
422
426
|
| "mask";
|
|
423
427
|
/**
|
|
424
428
|
* Variable's grantLevel
|
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/models-v3-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"main": "",
|
|
5
5
|
"types": "index",
|
|
6
6
|
"author": "Moncef Hammou <moncef@legalplace.fr>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "tsc",
|
|
10
9
|
"write-schema": "typescript-json-schema tsconfig.json ModelV3 -o schema.json"
|
|
11
10
|
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@legalplace/typeorm-constants": "^2.43.0"
|
|
13
|
+
},
|
|
12
14
|
"devDependencies": {
|
|
13
|
-
"
|
|
14
|
-
"@legalplace/
|
|
15
|
-
|
|
15
|
+
"@legalplace/eslint-config": "^2.2.0",
|
|
16
|
+
"@legalplace/prettier-config": "^2.1.3",
|
|
17
|
+
"typescript-json-schema": "^0.43.0"
|
|
18
|
+
},
|
|
19
|
+
"prettier": "@legalplace/prettier-config",
|
|
20
|
+
"gitHead": "b1dc121743e12b48abd21b580ff8aab4543d74c7"
|
|
16
21
|
}
|
package/tsconfig.json
CHANGED