@narrative.io/data-collaboration-sdk-ts 0.0.13 → 0.0.14
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Attribute {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
enum?: string[] | number[];
|
|
8
|
+
validations?: string[];
|
|
9
|
+
properties?: Record<string, {
|
|
10
|
+
type: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
validations?: string[];
|
|
13
|
+
enum?: string[];
|
|
14
|
+
items?: unknown;
|
|
15
|
+
}>;
|
|
16
|
+
required?: string[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/build/index.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ import { type Environment, type Config, type ApiRecords } from './types';
|
|
|
6
6
|
import { type DatasetTableSummaryAPIResponse, type Dataset, type DatasetTableSummary } from './datasets/types';
|
|
7
7
|
import { type HealthCheckResult } from './health/types';
|
|
8
8
|
import { type SampleRecords } from './rosetta-stone/types';
|
|
9
|
+
import { AttributeApi } from './attributes';
|
|
9
10
|
declare class NarrativeApi extends BaseApi {
|
|
10
11
|
}
|
|
11
|
-
interface NarrativeApi extends BaseApi, HealthCheckApi, DatasetApi, RosettaStoneApi {
|
|
12
|
+
interface NarrativeApi extends BaseApi, HealthCheckApi, DatasetApi, RosettaStoneApi, AttributeApi {
|
|
12
13
|
}
|
|
13
|
-
export { NarrativeApi, type Environment, type Config, type ApiRecords, type Dataset, type HealthCheckResult, type SampleRecords, type DatasetTableSummary, type DatasetTableSummaryAPIResponse };
|
|
14
|
+
export { NarrativeApi, AttributeApi, type Environment, type Config, type ApiRecords, type Dataset, type HealthCheckResult, type SampleRecords, type DatasetTableSummary, type DatasetTableSummaryAPIResponse };
|
package/build/index.js
CHANGED
|
@@ -3,7 +3,8 @@ import { DatasetApi } from './datasets';
|
|
|
3
3
|
import { HealthCheckApi } from './health';
|
|
4
4
|
import { RosettaStoneApi } from './rosetta-stone';
|
|
5
5
|
import { applyMixins } from './utils';
|
|
6
|
+
import { AttributeApi } from './attributes';
|
|
6
7
|
class NarrativeApi extends BaseApi {
|
|
7
8
|
}
|
|
8
|
-
applyMixins(NarrativeApi, [BaseApi, HealthCheckApi, DatasetApi, RosettaStoneApi]);
|
|
9
|
-
export { NarrativeApi };
|
|
9
|
+
applyMixins(NarrativeApi, [BaseApi, HealthCheckApi, DatasetApi, RosettaStoneApi, AttributeApi]);
|
|
10
|
+
export { NarrativeApi, AttributeApi };
|