@stndrds/schema 0.1.0-alpha.38 → 0.1.0-alpha.40

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
@@ -3,25 +3,37 @@ import {
3
3
  AttributeInUseError,
4
4
  AttributeNotFoundError,
5
5
  AuditService,
6
+ ConditionExecutor,
7
+ ConditionGroupSchema,
8
+ ConditionNodeSchema,
9
+ ConditionOperatorSchema,
10
+ ConditionRuleSchema,
6
11
  CustomTabConfig,
7
12
  DEFAULT_LABEL_FALLBACK,
13
+ DEFAULT_THEME,
8
14
  DEFAULT_VALIDATION_MESSAGES,
9
15
  DirectTableTabConfig,
10
16
  DuplicateError,
11
17
  EMPTY_VALUE_PLACEHOLDER,
18
+ EndExecutor,
19
+ EndNodeSchema,
20
+ ExecutorRegistry,
12
21
  FileNotFoundError,
13
22
  FileService,
14
- FlowBuilder,
15
- FlowPageBuilder,
16
- FlowRowBuilder,
17
- FlowService,
23
+ FlowRowFieldSchema,
24
+ FlowRowSchema,
25
+ FlowsTabConfig,
18
26
  ForbiddenError,
27
+ FormExecutor,
28
+ FormFieldRefSchema,
29
+ FormNodeSchema,
19
30
  GeocodingService,
20
31
  GlobalSearchService,
21
32
  GroupBuilder,
22
33
  InvalidPathError,
23
34
  InverseTableTabConfig,
24
35
  MaxDepthExceededError,
36
+ NodePositionSchema,
25
37
  NoopCacheAdapter,
26
38
  NoopGeocodingAdapter,
27
39
  NoopHookRegistry,
@@ -32,7 +44,11 @@ import {
32
44
  ObjectNotFoundError,
33
45
  ObjectReferencedError,
34
46
  ObjectSchemaService,
47
+ ParticipantAuthConfigSchema,
48
+ ParticipantTemplateSchema,
49
+ ParticipationTokenService,
35
50
  PermissionService,
51
+ PinCodeService,
36
52
  PolicyRegistry,
37
53
  PolicyViolationError,
38
54
  ProtectedResourceError,
@@ -55,32 +71,66 @@ import {
55
71
  SYSTEM_FIELD_NAMES,
56
72
  SchemaError,
57
73
  SchemaErrorCode,
74
+ SlotModeSchema,
75
+ StartExecutor,
76
+ StartNodeSchema,
58
77
  SyncError,
59
78
  TabBuilder,
60
79
  TenantAwareRepository,
61
80
  TenantAwareService,
62
81
  TenantContextError,
82
+ ThemeColorsSchema,
83
+ ThemeLogoSchema,
63
84
  UserProfileNotFoundError,
64
85
  UserProfileService,
65
86
  UserService,
66
87
  ValidationError,
67
88
  ViewBuilder,
68
89
  ViewService,
90
+ ViewportSchema,
91
+ WorkflowBuilder,
92
+ WorkflowConditionBuilder,
93
+ WorkflowConfigSchema,
94
+ WorkflowDefinitionSchema,
95
+ WorkflowEndBuilder,
96
+ WorkflowFormBuilder,
97
+ WorkflowFormRowBuilder,
98
+ WorkflowInstanceService,
99
+ WorkflowLayoutSchema,
100
+ WorkflowNodeSchema,
101
+ WorkflowParticipantBuilder,
102
+ WorkflowParticipationService,
103
+ WorkflowRelationService,
104
+ WorkflowService,
105
+ WorkflowSimpleFormBuilder,
106
+ WorkflowSlotSchema,
107
+ WorkflowStartBuilder,
108
+ WorkflowStatusSchema,
109
+ WorkflowThemeSchema,
110
+ and,
69
111
  asTenantId,
70
112
  asUserId,
71
113
  attributeConfigSchemas,
72
114
  buildAuditChanges,
73
115
  cacheKeys,
74
116
  cacheTtl,
117
+ canAuthenticate,
118
+ canExecuteNode,
119
+ canParticipate,
120
+ canResumeInstance,
75
121
  checkbox,
76
122
  checkboxConfigSchema,
123
+ complete,
124
+ computeLabelWithRelations,
77
125
  computeRecordStatus,
78
126
  createAttributeValidator,
79
127
  createCheckboxValidator,
80
128
  createCurrencyValidator,
81
129
  createDateValidator,
130
+ createDefaultExecutorRegistry,
82
131
  createDefaultState,
83
132
  createDraftValidator,
133
+ createEmptyContext,
84
134
  createFileValidator,
85
135
  createFormAttributeValidator,
86
136
  createFormulaValidator,
@@ -98,6 +148,7 @@ import {
98
148
  createRollupValidator,
99
149
  createSelectValidator,
100
150
  createSingleRelationValidator,
151
+ createStartTransition,
101
152
  createStatusValidator,
102
153
  createTextAreaValidator,
103
154
  createTextValidator,
@@ -107,31 +158,43 @@ import {
107
158
  date,
108
159
  dateConfigSchema,
109
160
  defaultPolicyRegistry,
161
+ enrichValuesForDisplay,
110
162
  enrichValuesWithSelectLabels,
163
+ eq,
164
+ error,
165
+ evaluate,
166
+ evaluateCondition,
111
167
  evaluateFormula,
112
168
  evaluateFormulaAttribute,
113
169
  evaluateFormulaAttributeWithRelations,
114
170
  evaluateFormulaWithRelations,
115
171
  evaluateFormulaWithResult,
172
+ evaluateWithTrace,
116
173
  extractAttributeNames,
117
174
  extractFormulaVariables,
175
+ extractRelationIds,
118
176
  extractRelationNames,
119
177
  extractRelationReferences,
120
178
  file,
121
179
  fileConfigSchema,
122
180
  flattenRelationsForEval,
123
- flow,
124
181
  formatAttributeValue,
125
182
  formatFormulaResult,
126
183
  formatRecord,
127
184
  formatRecords,
128
185
  formula,
129
186
  formulaConfigSchema,
187
+ generateCssVariables,
130
188
  generateId,
131
189
  generatePrefixedId,
132
190
  getAttributeConfigSchema,
133
191
  getContext,
192
+ getContextValue,
193
+ getDefaultExecutorRegistry,
194
+ getDefaultPinCodeService,
195
+ getDefaultTokenService,
134
196
  getMissingRequiredAttributes,
197
+ getNodeOutputs,
135
198
  getPathDepth,
136
199
  getRelationPath,
137
200
  getSyncPreview,
@@ -143,24 +206,51 @@ import {
143
206
  group,
144
207
  hasContext,
145
208
  hasRelationReferences,
209
+ inValues,
210
+ initializePinCodeService,
211
+ initializeTokenService,
212
+ isAdvancedFormNode,
213
+ isConditionGroup,
214
+ isConditionNode,
215
+ isConditionRule,
216
+ isEmpty,
217
+ isEndNode,
146
218
  isForbiddenError,
219
+ isFormNode,
220
+ isInstanceEvent,
221
+ isInstanceTerminal,
222
+ isInstanceWaiting,
147
223
  isLabelExpression,
224
+ isNodeEvent,
225
+ isNotEmpty,
148
226
  isNotFoundError,
227
+ isParticipationEvent,
228
+ isPinCodeAuth,
149
229
  isProtectedResourceError,
150
230
  isRecordComplete,
151
231
  isSchemaError,
232
+ isSignedLinkAuth,
233
+ isSimpleFormNode,
234
+ isStartNode,
152
235
  isSystemAttribute,
153
236
  isSystemAttributeObject,
237
+ isSystemWorkflow,
154
238
  isUniversalRelation,
155
239
  isValidationError,
240
+ isWorkflowDefinition,
241
+ isWorkflowPublished,
156
242
  location,
157
243
  locationConfigSchema,
244
+ mergeFormToSlot,
245
+ mergeWithDefaults,
158
246
  multiselect,
159
247
  multiselectConfigSchema,
248
+ neq,
160
249
  notesPolicy,
161
250
  number,
162
251
  numberConfigSchema,
163
252
  object,
253
+ or,
164
254
  parseAttributeConfig,
165
255
  parsePath,
166
256
  pathHasManyCardinality,
@@ -182,8 +272,10 @@ import {
182
272
  safeParseAttributeConfig,
183
273
  select,
184
274
  selectConfigSchema,
275
+ setContextValue,
185
276
  status,
186
277
  statusConfigSchema,
278
+ success,
187
279
  syncAll,
188
280
  syncNativeObjects,
189
281
  syncNativeViews,
@@ -205,8 +297,10 @@ import {
205
297
  verifyNativeObjectsSync,
206
298
  verifyNativeViewsSync,
207
299
  view,
208
- withTenantContext
209
- } from "./chunk-6NQPARLS.mjs";
300
+ wait,
301
+ withTenantContext,
302
+ workflow
303
+ } from "./chunk-2C24E4Q2.mjs";
210
304
  import {
211
305
  ALL_SYSTEM_RESOURCES,
212
306
  DEFAULT_ROLES,
@@ -325,11 +419,11 @@ function isNoValueOperator(operator) {
325
419
  function isFlowDefinition(obj) {
326
420
  return typeof obj === "object" && obj !== null && "slots" in obj && "pages" in obj && "relations" in obj && "status" in obj;
327
421
  }
328
- function isFlowPublished(flow2) {
329
- return flow2.status === "published";
422
+ function isFlowPublished(flow) {
423
+ return flow.status === "published";
330
424
  }
331
- function isSystemFlow(flow2) {
332
- return flow2.system === true;
425
+ function isSystemFlow(flow) {
426
+ return flow.system === true;
333
427
  }
334
428
 
335
429
  // src/types/views.ts
@@ -354,6 +448,9 @@ function isActivityTab(tab) {
354
448
  function isNotesTab(tab) {
355
449
  return tab.type === "notes";
356
450
  }
451
+ function isFlowsTab(tab) {
452
+ return tab.type === "flows";
453
+ }
357
454
 
358
455
  // src/native/notes.ts
359
456
  var NOTES = object({ name: "notes", label: "Note" }).pluralLabel("Notes").icon("file-text").description("Notes that can be linked to any record or used globally").system().labelExpression("{{ title }}").attribute(text({ name: "title", label: "Title" }).placeholder("Untitled").required()).attribute(richtext({ name: "content", label: "Content" }).required()).attribute(
@@ -507,23 +604,34 @@ export {
507
604
  AttributeInUseError,
508
605
  AttributeNotFoundError,
509
606
  AuditService,
607
+ ConditionExecutor,
608
+ ConditionGroupSchema,
609
+ ConditionNodeSchema,
610
+ ConditionOperatorSchema,
611
+ ConditionRuleSchema,
510
612
  CustomTabConfig,
511
613
  DEFAULT_LABEL_FALLBACK,
512
614
  DEFAULT_ROLES,
513
615
  DEFAULT_ROLE_DESCRIPTIONS,
514
616
  DEFAULT_ROLE_LABELS,
515
617
  DEFAULT_ROLE_PERMISSIONS,
618
+ DEFAULT_THEME,
516
619
  DEFAULT_VALIDATION_MESSAGES,
517
620
  DirectTableTabConfig,
518
621
  DuplicateError,
519
622
  EMPTY_VALUE_PLACEHOLDER,
623
+ EndExecutor,
624
+ EndNodeSchema,
625
+ ExecutorRegistry,
520
626
  FileNotFoundError,
521
627
  FileService,
522
- FlowBuilder,
523
- FlowPageBuilder,
524
- FlowRowBuilder,
525
- FlowService,
628
+ FlowRowFieldSchema,
629
+ FlowRowSchema,
630
+ FlowsTabConfig,
526
631
  ForbiddenError,
632
+ FormExecutor,
633
+ FormFieldRefSchema,
634
+ FormNodeSchema,
527
635
  GeocodingService,
528
636
  GlobalSearchService,
529
637
  GroupBuilder,
@@ -532,6 +640,7 @@ export {
532
640
  MaxDepthExceededError,
533
641
  NOTES,
534
642
  NO_VALUE_OPERATORS,
643
+ NodePositionSchema,
535
644
  NoopCacheAdapter,
536
645
  NoopGeocodingAdapter,
537
646
  NoopHookRegistry,
@@ -543,7 +652,11 @@ export {
543
652
  ObjectNotFoundError,
544
653
  ObjectReferencedError,
545
654
  ObjectSchemaService,
655
+ ParticipantAuthConfigSchema,
656
+ ParticipantTemplateSchema,
657
+ ParticipationTokenService,
546
658
  PermissionService,
659
+ PinCodeService,
547
660
  PolicyRegistry,
548
661
  PolicyViolationError,
549
662
  ProtectedResourceError,
@@ -568,32 +681,66 @@ export {
568
681
  SYSTEM_RESOURCE_LABELS,
569
682
  SchemaError,
570
683
  SchemaErrorCode,
684
+ SlotModeSchema,
685
+ StartExecutor,
686
+ StartNodeSchema,
571
687
  SyncError,
572
688
  TabBuilder,
573
689
  TenantAwareRepository,
574
690
  TenantAwareService,
575
691
  TenantContextError,
692
+ ThemeColorsSchema,
693
+ ThemeLogoSchema,
576
694
  UserProfileNotFoundError,
577
695
  UserProfileService,
578
696
  UserService,
579
697
  ValidationError,
580
698
  ViewBuilder,
581
699
  ViewService,
700
+ ViewportSchema,
701
+ WorkflowBuilder,
702
+ WorkflowConditionBuilder,
703
+ WorkflowConfigSchema,
704
+ WorkflowDefinitionSchema,
705
+ WorkflowEndBuilder,
706
+ WorkflowFormBuilder,
707
+ WorkflowFormRowBuilder,
708
+ WorkflowInstanceService,
709
+ WorkflowLayoutSchema,
710
+ WorkflowNodeSchema,
711
+ WorkflowParticipantBuilder,
712
+ WorkflowParticipationService,
713
+ WorkflowRelationService,
714
+ WorkflowService,
715
+ WorkflowSimpleFormBuilder,
716
+ WorkflowSlotSchema,
717
+ WorkflowStartBuilder,
718
+ WorkflowStatusSchema,
719
+ WorkflowThemeSchema,
720
+ and,
582
721
  asTenantId,
583
722
  asUserId,
584
723
  attributeConfigSchemas,
585
724
  buildAuditChanges,
586
725
  cacheKeys,
587
726
  cacheTtl,
727
+ canAuthenticate,
728
+ canExecuteNode,
729
+ canParticipate,
730
+ canResumeInstance,
588
731
  checkbox,
589
732
  checkboxConfigSchema,
733
+ complete,
734
+ computeLabelWithRelations,
590
735
  computeRecordStatus,
591
736
  createAttributeValidator,
592
737
  createCheckboxValidator,
593
738
  createCurrencyValidator,
594
739
  createDateValidator,
740
+ createDefaultExecutorRegistry,
595
741
  createDefaultState,
596
742
  createDraftValidator,
743
+ createEmptyContext,
597
744
  createFileValidator,
598
745
  createFormAttributeValidator,
599
746
  createFormulaValidator,
@@ -611,6 +758,7 @@ export {
611
758
  createRollupValidator,
612
759
  createSelectValidator,
613
760
  createSingleRelationValidator,
761
+ createStartTransition,
614
762
  createStatusValidator,
615
763
  createTextAreaValidator,
616
764
  createTextValidator,
@@ -620,31 +768,43 @@ export {
620
768
  date,
621
769
  dateConfigSchema,
622
770
  defaultPolicyRegistry,
771
+ enrichValuesForDisplay,
623
772
  enrichValuesWithSelectLabels,
773
+ eq,
774
+ error,
775
+ evaluate,
776
+ evaluateCondition,
624
777
  evaluateFormula,
625
778
  evaluateFormulaAttribute,
626
779
  evaluateFormulaAttributeWithRelations,
627
780
  evaluateFormulaWithRelations,
628
781
  evaluateFormulaWithResult,
782
+ evaluateWithTrace,
629
783
  extractAttributeNames,
630
784
  extractFormulaVariables,
785
+ extractRelationIds,
631
786
  extractRelationNames,
632
787
  extractRelationReferences,
633
788
  file,
634
789
  fileConfigSchema,
635
790
  flattenRelationsForEval,
636
- flow,
637
791
  formatAttributeValue,
638
792
  formatFormulaResult,
639
793
  formatRecord,
640
794
  formatRecords,
641
795
  formula,
642
796
  formulaConfigSchema,
797
+ generateCssVariables,
643
798
  generateId,
644
799
  generatePrefixedId,
645
800
  getAttributeConfigSchema,
646
801
  getContext,
802
+ getContextValue,
803
+ getDefaultExecutorRegistry,
804
+ getDefaultPinCodeService,
805
+ getDefaultTokenService,
647
806
  getMissingRequiredAttributes,
807
+ getNodeOutputs,
648
808
  getPathDepth,
649
809
  getRelationPath,
650
810
  getSyncPreview,
@@ -656,37 +816,65 @@ export {
656
816
  group,
657
817
  hasContext,
658
818
  hasRelationReferences,
819
+ inValues,
820
+ initializePinCodeService,
821
+ initializeTokenService,
659
822
  isActivityTab,
660
823
  isAdvancedFilterState,
824
+ isAdvancedFormNode,
825
+ isConditionGroup,
826
+ isConditionNode,
827
+ isConditionRule,
661
828
  isCustomTab,
662
829
  isDefaultRole,
663
830
  isDirectTableTab,
831
+ isEmpty,
832
+ isEndNode,
664
833
  isFlowDefinition,
665
834
  isFlowPublished,
835
+ isFlowsTab,
666
836
  isForbiddenError,
837
+ isFormNode,
667
838
  isFormTab,
839
+ isInstanceEvent,
840
+ isInstanceTerminal,
841
+ isInstanceWaiting,
668
842
  isInverseTableTab,
669
843
  isLabelExpression,
670
844
  isNoValueOperator,
845
+ isNodeEvent,
846
+ isNotEmpty,
671
847
  isNotFoundError,
672
848
  isNotesTab,
849
+ isParticipationEvent,
850
+ isPinCodeAuth,
673
851
  isProtectedResourceError,
674
852
  isRecordComplete,
675
853
  isSchemaError,
854
+ isSignedLinkAuth,
855
+ isSimpleFormNode,
856
+ isStartNode,
676
857
  isSystemAttribute,
677
858
  isSystemAttributeObject,
678
859
  isSystemFlow,
860
+ isSystemWorkflow,
679
861
  isTableTab,
680
862
  isUniversalRelation,
681
863
  isValidationError,
864
+ isWorkflowDefinition,
865
+ isWorkflowPublished,
682
866
  location,
683
867
  locationConfigSchema,
868
+ mergeFormToSlot,
869
+ mergeWithDefaults,
684
870
  multiselect,
685
871
  multiselectConfigSchema,
872
+ neq,
686
873
  notesPolicy,
687
874
  number,
688
875
  numberConfigSchema,
689
876
  object,
877
+ or,
690
878
  parseAttributeConfig,
691
879
  parsePath,
692
880
  pathHasManyCardinality,
@@ -708,8 +896,10 @@ export {
708
896
  safeParseAttributeConfig,
709
897
  select,
710
898
  selectConfigSchema,
899
+ setContextValue,
711
900
  status,
712
901
  statusConfigSchema,
902
+ success,
713
903
  syncAll,
714
904
  syncNativeObjects,
715
905
  syncNativeViews,
@@ -734,5 +924,7 @@ export {
734
924
  verifyNativeViewsSync,
735
925
  view,
736
926
  viewRegistry,
737
- withTenantContext
927
+ wait,
928
+ withTenantContext,
929
+ workflow
738
930
  };