@milaboratories/pl-model-middle-layer 1.8.45 → 1.9.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.
@@ -47,11 +47,8 @@ function BlockPackMeta(longString, binary) {
47
47
  supportedPlatforms: zod.z.array(BlockPlatform).optional(),
48
48
  });
49
49
  }
50
- // prettier-ignore
51
50
  const BlockPackMetaDescriptionRaw = BlockPackMeta(content_types.DescriptionContentText, content_types.DescriptionContentBinary);
52
- // prettier-ignore
53
51
  const BlockPackMetaEmbeddedBase64 = BlockPackMeta(zod.z.string(), content_types.ContentExplicitBase64);
54
- // prettier-ignore
55
52
  const BlockPackMetaEmbeddedBytes = BlockPackMeta(zod.z.string(), content_types.ContentExplicitBytes);
56
53
 
57
54
  exports.BlockPackMeta = BlockPackMeta;
@@ -1 +1 @@
1
- {"version":3,"file":"block_meta.cjs","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from './content_types';\n\nexport const BlockPlatform = z.enum([\n 'windows-x64',\n 'windows-aarch64',\n 'macosx-x64',\n 'macosx-aarch64',\n 'linux-x64',\n 'linux-aarch64',\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n }).passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n });\n}\n\n// prettier-ignore\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64,\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes,\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":["z","DescriptionContentText","DescriptionContentBinary","ContentExplicitBase64","ContentExplicitBytes"],"mappings":";;;;;AAQO,MAAM,aAAa,GAAGA,KAAC,CAAC,IAAI,CAAC;IAClC,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,eAAe;AAChB,CAAA;AAGK,SAAU,aAAa,CAG3B,UAA0B,EAAE,MAAkB,EAAA;IAC9C,OAAOA,KAAC,CAAC,MAAM,CAAC;AACd,QAAA,KAAK,EAAEA,KAAC,CAAC,MAAM,EAAE;AACjB,QAAA,WAAW,EAAEA,KAAC,CAAC,MAAM,EAAE;AACvB,QAAA,eAAe,EAAE,UAAU,CAAC,QAAQ,EAAE;AACtC,QAAA,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE;AAChC,QAAA,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;QACvB,GAA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a,CACrDH,KAAC,CAAC,MAAM,EAAE,EACVI,kCAAoB;;;;;;;;"}
1
+ {"version":3,"file":"block_meta.cjs","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from './content_types';\n\nexport const BlockPlatform = z.enum([\n 'windows-x64',\n 'windows-aarch64',\n 'macosx-x64',\n 'macosx-aarch64',\n 'linux-x64',\n 'linux-aarch64',\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n }).passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n });\n}\n\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64,\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes,\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":["z","DescriptionContentText","DescriptionContentBinary","ContentExplicitBase64","ContentExplicitBytes"],"mappings":";;;;;AAQO,MAAM,aAAa,GAAGA,KAAC,CAAC,IAAI,CAAC;IAClC,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,eAAe;AAChB,CAAA;AAGK,SAAU,aAAa,CAG3B,UAA0B,EAAE,MAAkB,EAAA;IAC9C,OAAOA,KAAC,CAAC,MAAM,CAAC;AACd,QAAA,KAAK,EAAEA,KAAC,CAAC,MAAM,EAAE;AACjB,QAAA,WAAW,EAAEA,KAAC,CAAC,MAAM,EAAE;AACvB,QAAA,eAAe,EAAE,UAAU,CAAC,QAAQ,EAAE;AACtC,QAAA,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE;AAChC,QAAA,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;QACvB,GAAG,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACjC,OAAO,EAAEA,KAAC,CAAC,KAAK,CAAC,CAACA,KAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;AACnE,QAAA,IAAI,EAAEA,KAAC,CAAC,KAAK,CAACA,KAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;AACpC,QAAA,YAAY,EAAEA,KAAC,CAAC,MAAM,CAAC;AACrB,YAAA,IAAI,EAAEA,KAAC,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBN,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -45,11 +45,8 @@ function BlockPackMeta(longString, binary) {
45
45
  supportedPlatforms: z.array(BlockPlatform).optional(),
46
46
  });
47
47
  }
48
- // prettier-ignore
49
48
  const BlockPackMetaDescriptionRaw = BlockPackMeta(DescriptionContentText, DescriptionContentBinary);
50
- // prettier-ignore
51
49
  const BlockPackMetaEmbeddedBase64 = BlockPackMeta(z.string(), ContentExplicitBase64);
52
- // prettier-ignore
53
50
  const BlockPackMetaEmbeddedBytes = BlockPackMeta(z.string(), ContentExplicitBytes);
54
51
 
55
52
  export { BlockPackMeta, BlockPackMetaDescriptionRaw, BlockPackMetaEmbeddedBase64, BlockPackMetaEmbeddedBytes, BlockPlatform };
@@ -1 +1 @@
1
- {"version":3,"file":"block_meta.js","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from './content_types';\n\nexport const BlockPlatform = z.enum([\n 'windows-x64',\n 'windows-aarch64',\n 'macosx-x64',\n 'macosx-aarch64',\n 'linux-x64',\n 'linux-aarch64',\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n }).passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n });\n}\n\n// prettier-ignore\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64,\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes,\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":[],"mappings":";;;AAQO,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;IAClC,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,eAAe;AAChB,CAAA;AAGK,SAAU,aAAa,CAG3B,UAA0B,EAAE,MAAkB,EAAA;IAC9C,OAAO,CAAC,CAAC,MAAM,CAAC;AACd,QAAA,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;AACjB,QAAA,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;AACvB,QAAA,eAAe,EAAE,UAAU,CAAC,QAAQ,EAAE;AACtC,QAAA,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE;AAChC,QAAA,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;QACvB,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AAC,MAAM,EAAE,EACV,oBAAoB;;;;"}
1
+ {"version":3,"file":"block_meta.js","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText,\n} from './content_types';\n\nexport const BlockPlatform = z.enum([\n 'windows-x64',\n 'windows-aarch64',\n 'macosx-x64',\n 'macosx-aarch64',\n 'linux-x64',\n 'linux-aarch64',\n]);\nexport type BlockPlatform = z.infer<typeof BlockPlatform>;\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny,\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional(),\n }).passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional(),\n /**\n * Supported operating systems.\n * If not provided, the block is supported on all operating systems.\n */\n supportedPlatforms: z.array(BlockPlatform).optional(),\n });\n}\n\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary,\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64,\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes,\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":[],"mappings":";;;AAQO,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;IAClC,aAAa;IACb,iBAAiB;IACjB,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,eAAe;AAChB,CAAA;AAGK,SAAU,aAAa,CAG3B,UAA0B,EAAE,MAAkB,EAAA;IAC9C,OAAO,CAAC,CAAC,MAAM,CAAC;AACd,QAAA,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;AACjB,QAAA,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;AACvB,QAAA,eAAe,EAAE,UAAU,CAAC,QAAQ,EAAE;AACtC,QAAA,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE;AAChC,QAAA,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;QACvB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACjC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;AACnE,QAAA,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;AACpC,QAAA,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;AACrB,YAAA,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;AAChB,YAAA,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;AACrB,YAAA,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;SACxB,CAAC,CAAC,WAAW,EAAE;AAChB;;;AAGG;AACH,QAAA,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;AACzC;;AAEG;AACH,QAAA,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;AAClC;;AAEG;QACH,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;AAC9C;;;AAGG;QACH,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;AACtD,KAAA,CAAC;AACJ;AAEO,MAAM,2BAA2B,GAAG,aAAa,CACtD,sBAAsB,EACtB,wBAAwB;AAInB,MAAM,2BAA2B,GAAG,aAAa,CACtD,CAAC,CAAC,MAAM,EAAE,EACV,qBAAqB;AAIhB,MAAM,0BAA0B,GAAG,aAAa,CACrD,CAAC,CAAC,MAAM,EAAE,EACV,oBAAoB;;;;"}
@@ -19,7 +19,7 @@ export type ProjectOverview = {
19
19
  * - blocks reordering
20
20
  * - block renaming
21
21
  * - block-pack update
22
- * */
22
+ */
23
23
  authorMarker?: AuthorMarker;
24
24
  /** Overview information for each block */
25
25
  blocks: BlockStateOverview[];
@@ -32,95 +32,105 @@ export type BlockStateOverview = {
32
32
  id: string;
33
33
  /**
34
34
  * Blocks label visible to the user.
35
- * Udefined when block-pack for this block is not yet materialized.
35
+ * Undefined when block-pack for this block is not yet materialized.
36
36
  *
37
37
  * @deprecated use title
38
- * */
38
+ */
39
39
  label: string | undefined;
40
40
  /**
41
- * Block title
42
- * Udefined when block-pack for this block is not yet materialized.
41
+ * Block title.
42
+ * Undefined when block-pack for this block is not yet materialized.
43
43
  */
44
44
  title: string | undefined;
45
+ /**
46
+ * Block subtitle, shown below the title.
47
+ * Undefined when block-pack for this block is not yet materialized.
48
+ */
49
+ subtitle: string | undefined;
50
+ /**
51
+ * Tags for search functionality.
52
+ * Undefined when block-pack for this block is not yet materialized.
53
+ */
54
+ tags: string[] | undefined;
45
55
  /** Block rendering mode */
46
56
  renderingMode: BlockRenderingMode;
47
57
  /**
48
58
  * True if block have missing references, e.g. referenced block was deleted
49
59
  * or moved downstream.
50
- * */
60
+ */
51
61
  missingReference: boolean;
52
62
  /**
53
63
  * Means that current heavy results (or results being calculated at the
54
64
  * moment) are not in sync with current arguments. This takes into account
55
65
  * stale state of all upstream blocks as well. Initial state also considered
56
66
  * stale.
57
- * */
67
+ */
58
68
  stale: boolean;
59
69
  /**
60
70
  * True if any of the outputs have errors. Errors may appear even before
61
71
  * calculations are finished.
62
- * */
72
+ */
63
73
  outputErrors: boolean;
64
74
  /**
65
75
  * If outputs have errors, this field will contain the error message extracted
66
76
  * from the outputs map.
67
- * */
77
+ */
68
78
  outputsError?: string;
69
79
  /**
70
80
  * If exports context have errors, this field will contain the error message
71
81
  * extracted from the exports context resource.
72
- * */
82
+ */
73
83
  exportsError?: string;
74
84
  /** Generalized block calculation status */
75
85
  calculationStatus: BlockCalculationStatus;
76
86
  /**
77
87
  * All upstream blocks of this block. In other words all dependencies of this
78
88
  * block, including transitive dependencies.
79
- * */
89
+ */
80
90
  upstreams: string[];
81
91
  /**
82
92
  * All downstream blocks of this block. In other words all blocks that depends
83
93
  * on outputs of this block, accounting for transitive dependencies.
84
- * */
94
+ */
85
95
  downstreams: string[];
86
96
  /**
87
97
  * Block sections. May be unavailable, if block-pack for this block is not
88
98
  * yet materialized.
89
- * */
99
+ */
90
100
  sections: BlockSection[] | undefined;
91
101
  /**
92
102
  * True if inputs of current block are suitable for block execution.
93
103
  * May be unavailable, if block-pack for this block is not yet materialized.
94
- * */
104
+ */
95
105
  inputsValid: boolean | undefined;
96
106
  /**
97
107
  * True if current block can be executed. This takes into account can run of
98
108
  * all upstream blocks as well.
99
- * */
109
+ */
100
110
  canRun: boolean;
101
111
  /**
102
112
  * SDK version the block was compiled with.
103
- * Udefined when block-pack for this block is not yet materialized.
104
- * */
113
+ * Undefined when block-pack for this block is not yet materialized.
114
+ */
105
115
  sdkVersion: string | undefined;
106
116
  /**
107
117
  * Feature flags the block was compiled with.
108
- * Udefined when block-pack for this block is not yet materialized.
109
- * */
118
+ * Undefined when block-pack for this block is not yet materialized.
119
+ */
110
120
  featureFlags: BlockCodeFeatureFlags | undefined;
111
121
  /**
112
122
  * True if block is incompatible with the runtime.
113
123
  * Other properties of this block overview will be filled with best effort.
114
124
  * This block should not be openable; the only available action for it is deletion.
115
125
  * Undefined when block-pack for this block is not yet materialized.
116
- * */
126
+ */
117
127
  isIncompatibleWithRuntime: boolean | undefined;
118
128
  /** Information on where the block pack for this block came from */
119
129
  currentBlockPack: BlockPackSpec | undefined;
120
130
  /**
121
131
  * If block pack update is available this field will contain latest specs to
122
132
  * perform the update
123
- * */
133
+ */
124
134
  updatedBlockPack: BlockPackSpec | undefined;
125
135
  /** Current block settings */
126
136
  settings: BlockSettings;
@@ -1 +1 @@
1
- {"version":3,"file":"project_overview.d.ts","sourceRoot":"","sources":["../src/project_overview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC9I,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,oEAAoE;AACpE,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpF,4EAA4E;AAC5E,MAAM,MAAM,eAAe,GAAG;IAC5B,+DAA+D;IAC/D,IAAI,EAAE,WAAW,CAAC;IAElB,0BAA0B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CAA4C;IAC5C,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-middle-layer",
3
- "version": "1.8.45",
3
+ "version": "1.9.0",
4
4
  "description": "Common model between middle layer and non-block UI code",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -20,16 +20,16 @@
20
20
  "remeda": "^2.28.0",
21
21
  "zod": "~3.23.8",
22
22
  "utility-types": "^3.11.0",
23
- "@milaboratories/pl-model-common": "1.21.10"
23
+ "@milaboratories/pl-model-common": "1.22.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "eslint": "^9.25.1",
27
27
  "typescript": "~5.6.3",
28
28
  "@types/node": "~24.5.2",
29
- "@milaboratories/ts-configs": "1.0.6",
30
- "@platforma-sdk/eslint-config": "1.1.0",
31
- "@milaboratories/build-configs": "1.0.9",
32
- "@milaboratories/ts-builder": "1.0.6"
29
+ "@milaboratories/build-configs": "1.2.1",
30
+ "@milaboratories/ts-builder": "1.2.1",
31
+ "@platforma-sdk/eslint-config": "1.2.0",
32
+ "@milaboratories/ts-configs": "1.2.0"
33
33
  },
34
34
  "scripts": {
35
35
  "type-check": "ts-builder types --target node",
@@ -56,21 +56,18 @@ export function BlockPackMeta<
56
56
  });
57
57
  }
58
58
 
59
- // prettier-ignore
60
59
  export const BlockPackMetaDescriptionRaw = BlockPackMeta(
61
60
  DescriptionContentText,
62
61
  DescriptionContentBinary,
63
62
  );
64
63
  export type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;
65
64
 
66
- // prettier-ignore
67
65
  export const BlockPackMetaEmbeddedBase64 = BlockPackMeta(
68
66
  z.string(),
69
67
  ContentExplicitBase64,
70
68
  );
71
69
  export type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;
72
70
 
73
- // prettier-ignore
74
71
  export const BlockPackMetaEmbeddedBytes = BlockPackMeta(
75
72
  z.string(),
76
73
  ContentExplicitBytes,
@@ -24,7 +24,7 @@ export type ProjectOverview = {
24
24
  * - blocks reordering
25
25
  * - block renaming
26
26
  * - block-pack update
27
- * */
27
+ */
28
28
  authorMarker?: AuthorMarker;
29
29
 
30
30
  /** Overview information for each block */
@@ -41,25 +41,37 @@ export type BlockStateOverview = {
41
41
 
42
42
  /**
43
43
  * Blocks label visible to the user.
44
- * Udefined when block-pack for this block is not yet materialized.
44
+ * Undefined when block-pack for this block is not yet materialized.
45
45
  *
46
46
  * @deprecated use title
47
- * */
47
+ */
48
48
  label: string | undefined;
49
49
 
50
50
  /**
51
- * Block title
52
- * Udefined when block-pack for this block is not yet materialized.
51
+ * Block title.
52
+ * Undefined when block-pack for this block is not yet materialized.
53
53
  */
54
54
  title: string | undefined;
55
55
 
56
+ /**
57
+ * Block subtitle, shown below the title.
58
+ * Undefined when block-pack for this block is not yet materialized.
59
+ */
60
+ subtitle: string | undefined;
61
+
62
+ /**
63
+ * Tags for search functionality.
64
+ * Undefined when block-pack for this block is not yet materialized.
65
+ */
66
+ tags: string[] | undefined;
67
+
56
68
  /** Block rendering mode */
57
69
  renderingMode: BlockRenderingMode;
58
70
 
59
71
  /**
60
72
  * True if block have missing references, e.g. referenced block was deleted
61
73
  * or moved downstream.
62
- * */
74
+ */
63
75
  missingReference: boolean;
64
76
 
65
77
  /**
@@ -67,25 +79,25 @@ export type BlockStateOverview = {
67
79
  * moment) are not in sync with current arguments. This takes into account
68
80
  * stale state of all upstream blocks as well. Initial state also considered
69
81
  * stale.
70
- * */
82
+ */
71
83
  stale: boolean;
72
84
 
73
85
  /**
74
86
  * True if any of the outputs have errors. Errors may appear even before
75
87
  * calculations are finished.
76
- * */
88
+ */
77
89
  outputErrors: boolean;
78
90
 
79
91
  /**
80
92
  * If outputs have errors, this field will contain the error message extracted
81
93
  * from the outputs map.
82
- * */
94
+ */
83
95
  outputsError?: string;
84
96
 
85
97
  /**
86
98
  * If exports context have errors, this field will contain the error message
87
99
  * extracted from the exports context resource.
88
- * */
100
+ */
89
101
  exportsError?: string;
90
102
 
91
103
  /** Generalized block calculation status */
@@ -94,43 +106,43 @@ export type BlockStateOverview = {
94
106
  /**
95
107
  * All upstream blocks of this block. In other words all dependencies of this
96
108
  * block, including transitive dependencies.
97
- * */
109
+ */
98
110
  upstreams: string[];
99
111
 
100
112
  /**
101
113
  * All downstream blocks of this block. In other words all blocks that depends
102
114
  * on outputs of this block, accounting for transitive dependencies.
103
- * */
115
+ */
104
116
  downstreams: string[];
105
117
 
106
118
  /**
107
119
  * Block sections. May be unavailable, if block-pack for this block is not
108
120
  * yet materialized.
109
- * */
121
+ */
110
122
  sections: BlockSection[] | undefined;
111
123
 
112
124
  /**
113
125
  * True if inputs of current block are suitable for block execution.
114
126
  * May be unavailable, if block-pack for this block is not yet materialized.
115
- * */
127
+ */
116
128
  inputsValid: boolean | undefined;
117
129
 
118
130
  /**
119
131
  * True if current block can be executed. This takes into account can run of
120
132
  * all upstream blocks as well.
121
- * */
133
+ */
122
134
  canRun: boolean;
123
135
 
124
136
  /**
125
137
  * SDK version the block was compiled with.
126
- * Udefined when block-pack for this block is not yet materialized.
127
- * */
138
+ * Undefined when block-pack for this block is not yet materialized.
139
+ */
128
140
  sdkVersion: string | undefined;
129
141
 
130
142
  /**
131
143
  * Feature flags the block was compiled with.
132
- * Udefined when block-pack for this block is not yet materialized.
133
- * */
144
+ * Undefined when block-pack for this block is not yet materialized.
145
+ */
134
146
  featureFlags: BlockCodeFeatureFlags | undefined;
135
147
 
136
148
  /**
@@ -138,7 +150,7 @@ export type BlockStateOverview = {
138
150
  * Other properties of this block overview will be filled with best effort.
139
151
  * This block should not be openable; the only available action for it is deletion.
140
152
  * Undefined when block-pack for this block is not yet materialized.
141
- * */
153
+ */
142
154
  isIncompatibleWithRuntime: boolean | undefined;
143
155
 
144
156
  /** Information on where the block pack for this block came from */
@@ -147,7 +159,7 @@ export type BlockStateOverview = {
147
159
  /**
148
160
  * If block pack update is available this field will contain latest specs to
149
161
  * perform the update
150
- * */
162
+ */
151
163
  updatedBlockPack: BlockPackSpec | undefined;
152
164
 
153
165
  /** Current block settings */