@stndrds/schema 0.1.0-alpha.15 → 0.1.0-alpha.16

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.mjs CHANGED
@@ -7,6 +7,10 @@ import {
7
7
  DuplicateError,
8
8
  FileNotFoundError,
9
9
  FileService,
10
+ FlowBuilder,
11
+ FlowPageBuilder,
12
+ FlowRowBuilder,
13
+ FlowService,
10
14
  ForbiddenError,
11
15
  GeocodingService,
12
16
  GlobalSearchService,
@@ -70,6 +74,7 @@ import {
70
74
  extractAttributeNames,
71
75
  file,
72
76
  fileConfigSchema,
77
+ flow,
73
78
  generateId,
74
79
  generatePrefixedId,
75
80
  getAttributeConfigSchema,
@@ -125,7 +130,7 @@ import {
125
130
  verifyNativeObjectsSync,
126
131
  verifyNativeViewsSync,
127
132
  view
128
- } from "./chunk-NOVHQ7B2.mjs";
133
+ } from "./chunk-JDUTFH3J.mjs";
129
134
  import {
130
135
  ALL_SYSTEM_RESOURCES,
131
136
  DEFAULT_ROLES,
@@ -232,6 +237,17 @@ function isNoValueOperator(operator) {
232
237
  return NO_VALUE_OPERATORS.includes(operator);
233
238
  }
234
239
 
240
+ // src/types/flows.ts
241
+ function isFlowDefinition(obj) {
242
+ return typeof obj === "object" && obj !== null && "slots" in obj && "pages" in obj && "relations" in obj && "status" in obj;
243
+ }
244
+ function isFlowPublished(flow2) {
245
+ return flow2.status === "published";
246
+ }
247
+ function isSystemFlow(flow2) {
248
+ return flow2.system === true;
249
+ }
250
+
235
251
  // src/types/views.ts
236
252
  function isFormTab(tab) {
237
253
  return tab.type === "form";
@@ -394,6 +410,10 @@ export {
394
410
  DuplicateError,
395
411
  FileNotFoundError,
396
412
  FileService,
413
+ FlowBuilder,
414
+ FlowPageBuilder,
415
+ FlowRowBuilder,
416
+ FlowService,
397
417
  ForbiddenError,
398
418
  GeocodingService,
399
419
  GlobalSearchService,
@@ -461,6 +481,7 @@ export {
461
481
  extractAttributeNames,
462
482
  file,
463
483
  fileConfigSchema,
484
+ flow,
464
485
  generateId,
465
486
  generatePrefixedId,
466
487
  getAttributeConfigSchema,
@@ -471,6 +492,8 @@ export {
471
492
  isAdvancedFilterState,
472
493
  isCustomTab,
473
494
  isDefaultRole,
495
+ isFlowDefinition,
496
+ isFlowPublished,
474
497
  isForbiddenError,
475
498
  isFormTab,
476
499
  isLabelExpression,
@@ -479,6 +502,7 @@ export {
479
502
  isProtectedResourceError,
480
503
  isRecordComplete,
481
504
  isSchemaError,
505
+ isSystemFlow,
482
506
  isTableTab,
483
507
  isValidationError,
484
508
  location,