@narrative.io/data-collaboration-sdk-ts 2.91.0 → 2.92.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/build/attributes/types.d.ts +16 -0
- package/package.json +6 -6
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
export type Attribute = PrimitiveAttribute | ArrayAttribute | ObjectAttribute;
|
|
2
2
|
export type ShallowAttribute = Omit<Attribute, "properties">;
|
|
3
|
+
export type ParticipantsAll = {
|
|
4
|
+
type: "all";
|
|
5
|
+
};
|
|
6
|
+
export type ParticipantsNone = {
|
|
7
|
+
type: "none";
|
|
8
|
+
};
|
|
9
|
+
export type ParticipantsInclusion = {
|
|
10
|
+
type: "inclusion";
|
|
11
|
+
company_ids: number[];
|
|
12
|
+
};
|
|
13
|
+
export type Participants = ParticipantsAll | ParticipantsNone | ParticipantsInclusion;
|
|
14
|
+
export interface AttributeCollaborators {
|
|
15
|
+
view: Participants;
|
|
16
|
+
map: Participants;
|
|
17
|
+
}
|
|
3
18
|
export interface BaseAttribute {
|
|
4
19
|
id: number;
|
|
5
20
|
name: string;
|
|
@@ -8,6 +23,7 @@ export interface BaseAttribute {
|
|
|
8
23
|
type: string;
|
|
9
24
|
validations?: string[];
|
|
10
25
|
metadata?: AttributeMetadata;
|
|
26
|
+
collaborators?: AttributeCollaborators;
|
|
11
27
|
}
|
|
12
28
|
export interface PrimitiveAttribute extends BaseAttribute {
|
|
13
29
|
type: "string" | "boolean" | "double" | "long" | "timestamptz";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narrative.io/data-collaboration-sdk-ts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.92.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"repository": "github:narrative-io/data-collaboration-sdk-ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"author": "",
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/core": "7.28.
|
|
29
|
-
"@babel/preset-env": "7.28.
|
|
28
|
+
"@babel/core": "7.28.6",
|
|
29
|
+
"@babel/preset-env": "7.28.6",
|
|
30
30
|
"@babel/preset-typescript": "7.28.5",
|
|
31
31
|
"@biomejs/biome": "2.3.11",
|
|
32
|
-
"@commitlint/cli": "20.3.
|
|
33
|
-
"@commitlint/config-conventional": "20.3.
|
|
32
|
+
"@commitlint/cli": "20.3.1",
|
|
33
|
+
"@commitlint/config-conventional": "20.3.1",
|
|
34
34
|
"@types/jest": "30.0.0",
|
|
35
35
|
"babel-jest": "30.2.0",
|
|
36
36
|
"jest": "30.2.0",
|
|
37
|
-
"lefthook": "2.0.
|
|
37
|
+
"lefthook": "2.0.15",
|
|
38
38
|
"ts-jest": "29.4.6"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|