@deepnote/blocks 4.0.0 → 4.1.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/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -14864,6 +14864,31 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
14864
14864
|
} | undefined;
|
|
14865
14865
|
}>;
|
|
14866
14866
|
type DeepnoteFile = z.infer<typeof deepnoteFileSchema>;
|
|
14867
|
+
/**
|
|
14868
|
+
* Minimal input type accepted by `computeSnapshotHash`.
|
|
14869
|
+
*
|
|
14870
|
+
* Covers only the fields the function actually reads, so callers don't need
|
|
14871
|
+
* to construct a full `DeepnoteFile`. `DeepnoteFile` is assignable to this
|
|
14872
|
+
* type, so existing call-sites remain unchanged.
|
|
14873
|
+
*/
|
|
14874
|
+
interface SnapshotHashInput {
|
|
14875
|
+
version: string;
|
|
14876
|
+
environment?: {
|
|
14877
|
+
hash?: string;
|
|
14878
|
+
};
|
|
14879
|
+
project: {
|
|
14880
|
+
integrations?: Array<{
|
|
14881
|
+
id: string;
|
|
14882
|
+
type: string;
|
|
14883
|
+
}>;
|
|
14884
|
+
notebooks: Array<{
|
|
14885
|
+
blocks: Array<{
|
|
14886
|
+
id: string;
|
|
14887
|
+
contentHash?: string;
|
|
14888
|
+
}>;
|
|
14889
|
+
}>;
|
|
14890
|
+
};
|
|
14891
|
+
}
|
|
14867
14892
|
declare const deepnoteSnapshotSchema: z.ZodObject<{
|
|
14868
14893
|
project: z.ZodObject<{
|
|
14869
14894
|
id: z.ZodString;
|
|
@@ -23560,4 +23585,4 @@ interface ButtonExecutionContext {
|
|
|
23560
23585
|
//#region src/python-code.d.ts
|
|
23561
23586
|
declare function createPythonCode(block: DeepnoteBlock, executionContext?: ButtonExecutionContext): string;
|
|
23562
23587
|
//#endregion
|
|
23563
|
-
export { type DeepnoteBlock, DeepnoteError, type DeepnoteFile, type DeepnoteSnapshot, EncodingError, type Environment, type ExecutableBlock, type Execution, type ExecutionError, type ExecutionSummary, INPUT_BLOCK_TYPES, InvalidValueError, ParseError, ProhibitedYamlFeatureError, SchemaValidationError, type TableState, UnsupportedBlockTypeError, YamlParseError, convertToEnvironmentVariableName, createMarkdown, createPythonCode, decodeUtf8NoBom, deepnoteBlockSchema, deepnoteFileSchema, deepnoteSnapshotSchema, deserializeDeepnoteFile, environmentSchema, executionErrorSchema, executionSchema, executionSummarySchema, getSqlEnvVarName, isExecutableBlock, isExecutableBlockType, parseYaml, stripMarkdown };
|
|
23588
|
+
export { type DeepnoteBlock, DeepnoteError, type DeepnoteFile, type DeepnoteSnapshot, EncodingError, type Environment, type ExecutableBlock, type Execution, type ExecutionError, type ExecutionSummary, INPUT_BLOCK_TYPES, InvalidValueError, ParseError, ProhibitedYamlFeatureError, SchemaValidationError, type SnapshotHashInput, type TableState, UnsupportedBlockTypeError, YamlParseError, convertToEnvironmentVariableName, createMarkdown, createPythonCode, decodeUtf8NoBom, deepnoteBlockSchema, deepnoteFileSchema, deepnoteSnapshotSchema, deserializeDeepnoteFile, environmentSchema, executionErrorSchema, executionSchema, executionSummarySchema, getSqlEnvVarName, isExecutableBlock, isExecutableBlockType, parseYaml, stripMarkdown };
|
package/dist/index.d.ts
CHANGED
|
@@ -14864,6 +14864,31 @@ declare const deepnoteFileSchema: z.ZodObject<{
|
|
|
14864
14864
|
} | undefined;
|
|
14865
14865
|
}>;
|
|
14866
14866
|
type DeepnoteFile = z.infer<typeof deepnoteFileSchema>;
|
|
14867
|
+
/**
|
|
14868
|
+
* Minimal input type accepted by `computeSnapshotHash`.
|
|
14869
|
+
*
|
|
14870
|
+
* Covers only the fields the function actually reads, so callers don't need
|
|
14871
|
+
* to construct a full `DeepnoteFile`. `DeepnoteFile` is assignable to this
|
|
14872
|
+
* type, so existing call-sites remain unchanged.
|
|
14873
|
+
*/
|
|
14874
|
+
interface SnapshotHashInput {
|
|
14875
|
+
version: string;
|
|
14876
|
+
environment?: {
|
|
14877
|
+
hash?: string;
|
|
14878
|
+
};
|
|
14879
|
+
project: {
|
|
14880
|
+
integrations?: Array<{
|
|
14881
|
+
id: string;
|
|
14882
|
+
type: string;
|
|
14883
|
+
}>;
|
|
14884
|
+
notebooks: Array<{
|
|
14885
|
+
blocks: Array<{
|
|
14886
|
+
id: string;
|
|
14887
|
+
contentHash?: string;
|
|
14888
|
+
}>;
|
|
14889
|
+
}>;
|
|
14890
|
+
};
|
|
14891
|
+
}
|
|
14867
14892
|
declare const deepnoteSnapshotSchema: z.ZodObject<{
|
|
14868
14893
|
project: z.ZodObject<{
|
|
14869
14894
|
id: z.ZodString;
|
|
@@ -23560,4 +23585,4 @@ interface ButtonExecutionContext {
|
|
|
23560
23585
|
//#region src/python-code.d.ts
|
|
23561
23586
|
declare function createPythonCode(block: DeepnoteBlock, executionContext?: ButtonExecutionContext): string;
|
|
23562
23587
|
//#endregion
|
|
23563
|
-
export { type DeepnoteBlock, DeepnoteError, type DeepnoteFile, type DeepnoteSnapshot, EncodingError, type Environment, type ExecutableBlock, type Execution, type ExecutionError, type ExecutionSummary, INPUT_BLOCK_TYPES, InvalidValueError, ParseError, ProhibitedYamlFeatureError, SchemaValidationError, type TableState, UnsupportedBlockTypeError, YamlParseError, convertToEnvironmentVariableName, createMarkdown, createPythonCode, decodeUtf8NoBom, deepnoteBlockSchema, deepnoteFileSchema, deepnoteSnapshotSchema, deserializeDeepnoteFile, environmentSchema, executionErrorSchema, executionSchema, executionSummarySchema, getSqlEnvVarName, isExecutableBlock, isExecutableBlockType, parseYaml, stripMarkdown };
|
|
23588
|
+
export { type DeepnoteBlock, DeepnoteError, type DeepnoteFile, type DeepnoteSnapshot, EncodingError, type Environment, type ExecutableBlock, type Execution, type ExecutionError, type ExecutionSummary, INPUT_BLOCK_TYPES, InvalidValueError, ParseError, ProhibitedYamlFeatureError, SchemaValidationError, type SnapshotHashInput, type TableState, UnsupportedBlockTypeError, YamlParseError, convertToEnvironmentVariableName, createMarkdown, createPythonCode, decodeUtf8NoBom, deepnoteBlockSchema, deepnoteFileSchema, deepnoteSnapshotSchema, deserializeDeepnoteFile, environmentSchema, executionErrorSchema, executionSchema, executionSummarySchema, getSqlEnvVarName, isExecutableBlock, isExecutableBlockType, parseYaml, stripMarkdown };
|