@narrative.io/data-collaboration-sdk-ts 2.91.0 → 2.93.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/build/base-api.d.ts +0 -1
- package/build/base-api.js +0 -14
- 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/build/base-api.d.ts
CHANGED
package/build/base-api.js
CHANGED
|
@@ -23,7 +23,6 @@ export class BaseApi {
|
|
|
23
23
|
headers: this.constructHeaders(),
|
|
24
24
|
responseAs: config.responseAs ?? "json",
|
|
25
25
|
});
|
|
26
|
-
this.drawLogo();
|
|
27
26
|
if (this.verbose) {
|
|
28
27
|
console.info(`Using environment: ${this.environment}`);
|
|
29
28
|
console.info(`Using API key: ${this.apiKey ?? "undefined"}`);
|
|
@@ -179,17 +178,4 @@ export class BaseApi {
|
|
|
179
178
|
}
|
|
180
179
|
return queryParameters.length > 0 ? `?${queryParameters.join("&")}` : "";
|
|
181
180
|
}
|
|
182
|
-
drawLogo() {
|
|
183
|
-
console.log(" ___ ___ ___ ___ ___ ___ ");
|
|
184
|
-
console.log(" /\\ \\ /\\ \\ /\\ \\ /\\ \\ /\\ \\ ___ /\\__\\ ");
|
|
185
|
-
console.log(" \\:\\ \\ /::\\ \\ /::\\ \\ /::\\ \\ /::\\ \\ ___ ___ /\\ \\ /:/ _/_ ");
|
|
186
|
-
console.log(" \\:\\ \\ /:/\\:\\ \\ /:/\\:\\__\\ /:/\\:\\__\\ /:/\\:\\ \\ /\\__\\ /\\__\\ \\:\\ \\ /:/ /\\__\\ ");
|
|
187
|
-
console.log(" _____\\:\\ \\ /:/ /::\\ \\ /:/ /:/ / /:/ /:/ / /:/ /::\\ \\ /:/ / /:/__/ \\:\\ \\ /:/ /:/ _/_ ");
|
|
188
|
-
console.log(" /::::::::\\__\\ /:/_/:/\\:\\__\\ /:/_/:/__/___ /:/_/:/__/___ /:/_/:/\\:\\__\\ /:/__/ /::\\ \\ ___ \\:\\__\\ /:/_/:/ /\\__\\");
|
|
189
|
-
console.log(" \\:\\~~\\~~\\/__/ \\:\\/:/ \\/__/ \\:\\/:::::/ / \\:\\/:::::/ / \\:\\/:/ \\/__/ /::\\ \\ \\/\\:\\ \\__ /\\ \\ |:| | \\:\\/:/ /:/ /");
|
|
190
|
-
console.log(" \\:\\ \\ \\::/__/ \\::/~~/~~~~ \\::/~~/~~~~ \\::/__/ /:/\\:\\ \\ ~~\\:\\/\\__\\ \\:\\ \\|:| | \\::/_/:/ / ");
|
|
191
|
-
console.log(" \\:\\ \\ \\:\\ \\ \\:\\~~\\ \\:\\~~\\ \\:\\ \\ \\/__\\:\\ \\ \\::/ / \\:\\__|:|__| \\:\\/:/ / ");
|
|
192
|
-
console.log(" \\:\\__\\ \\:\\__\\ \\:\\__\\ \\:\\__\\ \\:\\__\\ \\:\\__\\ /:/ / \\::::/__/ \\::/ / ");
|
|
193
|
-
console.log(" \\/__/ \\/__/ \\/__/ \\/__/ \\/__/ \\/__/ \\/__/ ~~~~ \\/__/ ");
|
|
194
|
-
}
|
|
195
181
|
}
|
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.93.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": {
|