@cat-factory/contracts 0.251.0 → 0.252.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/form-fields.d.ts +26 -0
- package/dist/form-fields.d.ts.map +1 -1
- package/dist/form-fields.js +56 -0
- package/dist/form-fields.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/initiative-preset.d.ts +10 -0
- package/dist/initiative-preset.d.ts.map +1 -1
- package/dist/initiative-preset.js +13 -1
- package/dist/initiative-preset.js.map +1 -1
- package/dist/public-api.d.ts +21 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +22 -0
- package/dist/public-api.js.map +1 -1
- package/dist/public-task-types.d.ts +182 -0
- package/dist/public-task-types.d.ts.map +1 -0
- package/dist/public-task-types.js +191 -0
- package/dist/public-task-types.js.map +1 -0
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/public-api.d.ts +66 -0
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/public-api.js +11 -0
- package/dist/routes/public-api.js.map +1 -1
- package/dist/routes/task-types.d.ts +233 -0
- package/dist/routes/task-types.d.ts.map +1 -0
- package/dist/routes/task-types.js +55 -0
- package/dist/routes/task-types.js.map +1 -0
- package/dist/routes/workspaces.d.ts +4 -0
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +34 -2
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/snapshot.js +34 -2
- package/dist/snapshot.js.map +1 -1
- package/dist/task-types.d.ts +161 -0
- package/dist/task-types.d.ts.map +1 -1
- package/dist/task-types.js +16 -0
- package/dist/task-types.js.map +1 -1
- package/package.json +1 -1
package/dist/task-types.d.ts
CHANGED
|
@@ -145,4 +145,165 @@ export declare const customTaskTypeSchema: v.ObjectSchema<{
|
|
|
145
145
|
readonly formPanel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>, undefined>;
|
|
146
146
|
}, undefined>;
|
|
147
147
|
export type CustomTaskType = v.InferOutput<typeof customTaskTypeSchema>;
|
|
148
|
+
/**
|
|
149
|
+
* One row of the workspace's operation-suppression screen: a registered custom task type and
|
|
150
|
+
* whether THIS board hides it (`backend/docs/reusable-operations.md`).
|
|
151
|
+
*
|
|
152
|
+
* The list is its own read rather than a slice of the snapshot, for the same reason the
|
|
153
|
+
* foundational-service suppression list is: a suppressed id is BY CONSTRUCTION absent from the
|
|
154
|
+
* projected `customTaskTypes`, so nothing in the board's own catalog could offer the way back.
|
|
155
|
+
*/
|
|
156
|
+
export declare const taskTypeSuppressionSchema: v.ObjectSchema<{
|
|
157
|
+
readonly taskType: v.ObjectSchema<{
|
|
158
|
+
/** The namespaced task type id (`<ns>:<name>`, e.g. `acme:incident`). */
|
|
159
|
+
readonly taskType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>;
|
|
160
|
+
/** Card badge + create-form presentation. */
|
|
161
|
+
readonly presentation: v.ObjectSchema<{
|
|
162
|
+
/** Human label, e.g. `Incident`. */
|
|
163
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
164
|
+
/** Icon id (e.g. an `i-lucide-*` name). */
|
|
165
|
+
readonly icon: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
166
|
+
/** Accent colour (CSS hex/keyword). */
|
|
167
|
+
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
168
|
+
/** One-line description shown in the create-task type picker. */
|
|
169
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
170
|
+
/**
|
|
171
|
+
* Optional grouping caption for the create-task type picker (e.g. `API delivery`), mirroring
|
|
172
|
+
* `agentPresentationSchema.category`, which already drives the pipeline builder's palette. An
|
|
173
|
+
* org registering twenty reusable operations needs the picker to group them; types sharing a
|
|
174
|
+
* category render under one caption, and an uncategorized type renders flat after them.
|
|
175
|
+
*/
|
|
176
|
+
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>, undefined>;
|
|
177
|
+
}, undefined>;
|
|
178
|
+
/** Data-driven create-form fields (optional; none ⇒ title + description only). */
|
|
179
|
+
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
180
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
181
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
182
|
+
readonly help: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 300, undefined>]>, undefined>;
|
|
183
|
+
readonly placeholder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
184
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
185
|
+
readonly options: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
186
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
187
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
188
|
+
}, undefined>, undefined>, undefined>;
|
|
189
|
+
readonly default: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
190
|
+
readonly defaultValues: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>, undefined>;
|
|
191
|
+
readonly showWhen: v.OptionalSchema<v.ObjectSchema<{
|
|
192
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
193
|
+
readonly equals: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
194
|
+
readonly includes: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
195
|
+
}, undefined>, undefined>;
|
|
196
|
+
readonly maxLength: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2000, undefined>]>, undefined>;
|
|
197
|
+
readonly min: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
198
|
+
readonly max: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
199
|
+
/** The control type; absent is treated as `text`. */
|
|
200
|
+
readonly type: v.OptionalSchema<v.PicklistSchema<["text", "textarea", "number", "select", "checkbox", "checkbox-group", "path"], undefined>, undefined>;
|
|
201
|
+
}, undefined>, undefined>, undefined>;
|
|
202
|
+
/**
|
|
203
|
+
* The pipeline a task of this type defaults to when the creator pins none — pairs with a
|
|
204
|
+
* pipeline the deployment also registered (validated at boot). Absent ⇒ the workspace's
|
|
205
|
+
* positional default, exactly like an unmapped built-in type.
|
|
206
|
+
*/
|
|
207
|
+
readonly defaultPipelineId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
208
|
+
/**
|
|
209
|
+
* The STANDING CONTEXT a task of this type carries: best-practice fragment ids unioned onto
|
|
210
|
+
* every new task's own `fragmentIds` at creation, beside whatever it inherits from its service.
|
|
211
|
+
* This is what makes a reusable operation consistent: an org's API guidelines and auth
|
|
212
|
+
* requirements reach every "introduce an API" run without per-task picking.
|
|
213
|
+
*
|
|
214
|
+
* Only the id SET freezes at creation (matching `serviceFragmentIds` semantics); the BODIES
|
|
215
|
+
* live-resolve per run against the merged builtin ⊕ account ⊕ workspace catalog, so editing a
|
|
216
|
+
* guideline reaches every future run of an already-created task. Ids resolve against the
|
|
217
|
+
* universal code pool AND the tenant tiers, which is why boot validation WARNS rather than
|
|
218
|
+
* refuses on an id it cannot see (a workspace-tier id is structurally invisible at boot).
|
|
219
|
+
*/
|
|
220
|
+
readonly defaultFragmentIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
221
|
+
/**
|
|
222
|
+
* Optional id of a bespoke create-form section component (`<ns>:<name>`) the deployment
|
|
223
|
+
* contributes to the frontend `taskTypeFormPanels` slot, shown INSTEAD of the descriptor
|
|
224
|
+
* `fields` above. Unpaired ⇒ the descriptor fields render (degrade, never crash).
|
|
225
|
+
*/
|
|
226
|
+
readonly formPanel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>, undefined>;
|
|
227
|
+
}, undefined>;
|
|
228
|
+
readonly suppressed: v.BooleanSchema<undefined>;
|
|
229
|
+
}, undefined>;
|
|
230
|
+
export type TaskTypeSuppression = v.InferOutput<typeof taskTypeSuppressionSchema>;
|
|
231
|
+
/** The whole suppression screen: every registered operation, in registration order. */
|
|
232
|
+
export declare const taskTypeSuppressionListSchema: v.ObjectSchema<{
|
|
233
|
+
readonly taskTypes: v.ArraySchema<v.ObjectSchema<{
|
|
234
|
+
readonly taskType: v.ObjectSchema<{
|
|
235
|
+
/** The namespaced task type id (`<ns>:<name>`, e.g. `acme:incident`). */
|
|
236
|
+
readonly taskType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>;
|
|
237
|
+
/** Card badge + create-form presentation. */
|
|
238
|
+
readonly presentation: v.ObjectSchema<{
|
|
239
|
+
/** Human label, e.g. `Incident`. */
|
|
240
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
241
|
+
/** Icon id (e.g. an `i-lucide-*` name). */
|
|
242
|
+
readonly icon: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
243
|
+
/** Accent colour (CSS hex/keyword). */
|
|
244
|
+
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
245
|
+
/** One-line description shown in the create-task type picker. */
|
|
246
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
247
|
+
/**
|
|
248
|
+
* Optional grouping caption for the create-task type picker (e.g. `API delivery`), mirroring
|
|
249
|
+
* `agentPresentationSchema.category`, which already drives the pipeline builder's palette. An
|
|
250
|
+
* org registering twenty reusable operations needs the picker to group them; types sharing a
|
|
251
|
+
* category render under one caption, and an uncategorized type renders flat after them.
|
|
252
|
+
*/
|
|
253
|
+
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>, undefined>;
|
|
254
|
+
}, undefined>;
|
|
255
|
+
/** Data-driven create-form fields (optional; none ⇒ title + description only). */
|
|
256
|
+
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
257
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
258
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
259
|
+
readonly help: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 300, undefined>]>, undefined>;
|
|
260
|
+
readonly placeholder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
261
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
262
|
+
readonly options: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
263
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
264
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
265
|
+
}, undefined>, undefined>, undefined>;
|
|
266
|
+
readonly default: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
267
|
+
readonly defaultValues: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>, undefined>;
|
|
268
|
+
readonly showWhen: v.OptionalSchema<v.ObjectSchema<{
|
|
269
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
270
|
+
readonly equals: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
|
|
271
|
+
readonly includes: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
272
|
+
}, undefined>, undefined>;
|
|
273
|
+
readonly maxLength: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 2000, undefined>]>, undefined>;
|
|
274
|
+
readonly min: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
275
|
+
readonly max: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
276
|
+
/** The control type; absent is treated as `text`. */
|
|
277
|
+
readonly type: v.OptionalSchema<v.PicklistSchema<["text", "textarea", "number", "select", "checkbox", "checkbox-group", "path"], undefined>, undefined>;
|
|
278
|
+
}, undefined>, undefined>, undefined>;
|
|
279
|
+
/**
|
|
280
|
+
* The pipeline a task of this type defaults to when the creator pins none — pairs with a
|
|
281
|
+
* pipeline the deployment also registered (validated at boot). Absent ⇒ the workspace's
|
|
282
|
+
* positional default, exactly like an unmapped built-in type.
|
|
283
|
+
*/
|
|
284
|
+
readonly defaultPipelineId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
285
|
+
/**
|
|
286
|
+
* The STANDING CONTEXT a task of this type carries: best-practice fragment ids unioned onto
|
|
287
|
+
* every new task's own `fragmentIds` at creation, beside whatever it inherits from its service.
|
|
288
|
+
* This is what makes a reusable operation consistent: an org's API guidelines and auth
|
|
289
|
+
* requirements reach every "introduce an API" run without per-task picking.
|
|
290
|
+
*
|
|
291
|
+
* Only the id SET freezes at creation (matching `serviceFragmentIds` semantics); the BODIES
|
|
292
|
+
* live-resolve per run against the merged builtin ⊕ account ⊕ workspace catalog, so editing a
|
|
293
|
+
* guideline reaches every future run of an already-created task. Ids resolve against the
|
|
294
|
+
* universal code pool AND the tenant tiers, which is why boot validation WARNS rather than
|
|
295
|
+
* refuses on an id it cannot see (a workspace-tier id is structurally invisible at boot).
|
|
296
|
+
*/
|
|
297
|
+
readonly defaultFragmentIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
298
|
+
/**
|
|
299
|
+
* Optional id of a bespoke create-form section component (`<ns>:<name>`) the deployment
|
|
300
|
+
* contributes to the frontend `taskTypeFormPanels` slot, shown INSTEAD of the descriptor
|
|
301
|
+
* `fields` above. Unpaired ⇒ the descriptor fields render (degrade, never crash).
|
|
302
|
+
*/
|
|
303
|
+
readonly formPanel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>, undefined>;
|
|
304
|
+
}, undefined>;
|
|
305
|
+
readonly suppressed: v.BooleanSchema<undefined>;
|
|
306
|
+
}, undefined>, undefined>;
|
|
307
|
+
}, undefined>;
|
|
308
|
+
export type TaskTypeSuppressionList = v.InferOutput<typeof taskTypeSuppressionListSchema>;
|
|
148
309
|
//# sourceMappingURL=task-types.d.ts.map
|
package/dist/task-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-types.d.ts","sourceRoot":"","sources":["../src/task-types.ts"],"names":[],"mappings":"AAAA,OAAO,K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AAiE;;YAEjE;;;;;eAKG;;;QAsDH,kFAAkF;;;;;;;;;;;;;;;;;;;;;YAflF,qDAAqD;;;QAiBrD;;;;WAIG;;QAEH;;;;;;;;;;;WAWG;;QAEH;;;;WAIG;;;;aAgBH,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF,uFAAuF;AACvF,eAAO,MAAM,6BAA6B;;;YAjDxC,yEAAyE;;YAEzE,6CAA6C;;gBAjE7C,oCAAoC;;gBAEpC,2CAA2C;;gBAE3C,uCAAuC;;gBAEvC,iEAAiE;;gBAEjE;;;;;mBAKG;;;YAsDH,kFAAkF;;;;;;;;;;;;;;;;;;;;;gBAflF,qDAAqD;;;YAiBrD;;;;eAIG;;YAEH;;;;;;;;;;;eAWG;;YAEH;;;;eAIG;;;;;aAsBH,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
|
package/dist/task-types.js
CHANGED
|
@@ -104,4 +104,20 @@ export const customTaskTypeSchema = v.object({
|
|
|
104
104
|
*/
|
|
105
105
|
formPanel: v.optional(namespacedIdSchema),
|
|
106
106
|
});
|
|
107
|
+
/**
|
|
108
|
+
* One row of the workspace's operation-suppression screen: a registered custom task type and
|
|
109
|
+
* whether THIS board hides it (`backend/docs/reusable-operations.md`).
|
|
110
|
+
*
|
|
111
|
+
* The list is its own read rather than a slice of the snapshot, for the same reason the
|
|
112
|
+
* foundational-service suppression list is: a suppressed id is BY CONSTRUCTION absent from the
|
|
113
|
+
* projected `customTaskTypes`, so nothing in the board's own catalog could offer the way back.
|
|
114
|
+
*/
|
|
115
|
+
export const taskTypeSuppressionSchema = v.object({
|
|
116
|
+
taskType: customTaskTypeSchema,
|
|
117
|
+
suppressed: v.boolean(),
|
|
118
|
+
});
|
|
119
|
+
/** The whole suppression screen: every registered operation, in registration order. */
|
|
120
|
+
export const taskTypeSuppressionListSchema = v.object({
|
|
121
|
+
taskTypes: v.array(taskTypeSuppressionSchema),
|
|
122
|
+
});
|
|
107
123
|
//# sourceMappingURL=task-types.js.map
|
package/dist/task-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-types.js","sourceRoot":"","sources":["../src/task-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAE5B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEpD,8EAA8E;AAC9E,4FAA4F;AAC5F,8FAA8F;AAC9F,6FAA6F;AAC7F,8FAA8F;AAC9F,mFAAmF;AACnF,2FAA2F;AAC3F,iDAAiD;AACjD,EAAE;AACF,8FAA8F;AAC9F,6FAA6F;AAC7F,wFAAwF;AACxF,0EAA0E;AAC1E,8EAA8E;AAE9E,wGAAwG;AACxG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,oCAAoC;IACpC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACpE,2CAA2C;IAC3C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC1D,uCAAuC;IACvC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC1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