@stndrds/schema 0.1.0-alpha.54 → 0.1.0-alpha.56

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,23 +3,40 @@ import {
3
3
  AttributeInUseError,
4
4
  AttributeNotFoundError,
5
5
  AuditService,
6
+ AuthMethodSchema,
6
7
  BaseRepository,
7
8
  BaseService,
9
+ ConcurrentModificationError,
8
10
  ConditionExecutor,
9
11
  ConditionGroupSchema,
10
12
  ConditionNodeSchema,
11
13
  ConditionOperatorSchema,
12
14
  ConditionRuleSchema,
15
+ CreateShareInputSchema,
13
16
  CustomTabConfig,
14
17
  DEFAULT_LABEL_FALLBACK,
15
18
  DEFAULT_THEME,
16
19
  DEFAULT_VALIDATION_MESSAGES,
20
+ DRIVING_LICENSE,
17
21
  DirectTableTabConfig,
22
+ DocumentExecutor,
23
+ DocumentGenerationNotConfiguredError,
24
+ DocumentGenerationService,
25
+ DocumentGenerationTemplateNotFoundError,
26
+ DocumentNodeSchema,
27
+ DocumentProcessingHook,
28
+ DocumentProcessingService,
29
+ DocumentRenderError,
30
+ DocumentRendererService,
31
+ DocumentService,
32
+ DocumentTemplateService,
33
+ DocumentsTabConfig,
18
34
  DuplicateError,
19
35
  EMPTY_VALUE_PLACEHOLDER,
20
36
  EndExecutor,
21
37
  EndNodeSchema,
22
38
  ExecutorRegistry,
39
+ FRENCH_ID_CARD,
23
40
  FileNotFoundError,
24
41
  FileService,
25
42
  FlowRowFieldSchema,
@@ -30,11 +47,19 @@ import {
30
47
  FormFieldRefSchema,
31
48
  FormNodeSchema,
32
49
  FormulaResolverService,
50
+ GENERIC_DOCUMENT,
33
51
  GeocodingService,
34
52
  GlobalSearchService,
53
+ GrantExpiredError,
54
+ GrantNotFoundError,
55
+ GrantRevokedError,
35
56
  GroupBuilder,
36
57
  InvalidPathError,
37
58
  InverseTableTabConfig,
59
+ InvitationAlreadyAcceptedError,
60
+ InvitationExpiredError,
61
+ InvitationNotFoundError,
62
+ InvitationRevokedError,
38
63
  MaxDepthExceededError,
39
64
  NodePositionSchema,
40
65
  NoopCacheAdapter,
@@ -47,11 +72,9 @@ import {
47
72
  ObjectNotFoundError,
48
73
  ObjectReferencedError,
49
74
  ObjectSchemaService,
50
- ParticipantAuthConfigSchema,
51
- ParticipantTemplateSchema,
52
- ParticipationTokenService,
75
+ PASSPORT,
76
+ PROOF_OF_ADDRESS,
53
77
  PermissionService,
54
- PinCodeService,
55
78
  PolicyRegistry,
56
79
  PolicyViolationError,
57
80
  ProtectedResourceError,
@@ -71,21 +94,25 @@ import {
71
94
  RollupScheduler,
72
95
  RollupService,
73
96
  SHORTCUT_TO_FILTER_OPERATOR,
97
+ SIGNABLE_CONTRACT,
74
98
  SYSTEM_ATTRIBUTES,
75
99
  SYSTEM_FIELD_NAMES,
100
+ SYSTEM_TEMPLATES,
101
+ SYSTEM_TEMPLATE_IDS,
76
102
  SchemaContextAwareRepository,
77
103
  SchemaError,
78
104
  SchemaErrorCode,
105
+ ShareStatusSchema,
79
106
  SlotModeSchema,
80
107
  StartExecutor,
81
108
  StartNodeSchema,
109
+ StorageDownloadNotSupportedError,
82
110
  SyncError,
83
111
  TabBuilder,
84
- TenantAwareRepository,
85
- TenantAwareService,
86
112
  TenantContextError,
87
113
  ThemeColorsSchema,
88
114
  ThemeLogoSchema,
115
+ TokenRevokedError,
89
116
  UserProfileNotFoundError,
90
117
  UserProfileService,
91
118
  UserService,
@@ -93,6 +120,7 @@ import {
93
120
  ViewBuilder,
94
121
  ViewService,
95
122
  ViewportSchema,
123
+ WorkflowAccessGrantService,
96
124
  WorkflowBuilder,
97
125
  WorkflowConditionBuilder,
98
126
  WorkflowConfigSchema,
@@ -101,12 +129,13 @@ import {
101
129
  WorkflowFormBuilder,
102
130
  WorkflowFormRowBuilder,
103
131
  WorkflowInstanceService,
132
+ WorkflowInvitationService,
133
+ WorkflowJwtService,
104
134
  WorkflowLayoutSchema,
105
135
  WorkflowNodeSchema,
106
- WorkflowParticipantBuilder,
107
- WorkflowParticipationService,
108
136
  WorkflowRelationService,
109
137
  WorkflowService,
138
+ WorkflowShareSchema,
110
139
  WorkflowSimpleFormBuilder,
111
140
  WorkflowSlotSchema,
112
141
  WorkflowStartBuilder,
@@ -122,9 +151,7 @@ import {
122
151
  buildPolicyContext,
123
152
  cacheKeys,
124
153
  cacheTtl,
125
- canAuthenticate,
126
- canExecuteNode,
127
- canParticipate,
154
+ canAccessNode,
128
155
  canResumeInstance,
129
156
  checkPermission,
130
157
  checkRecordAccess,
@@ -177,6 +204,8 @@ import {
177
204
  dateConfigSchema,
178
205
  defaultPolicyRegistry,
179
206
  defaultTtl,
207
+ document,
208
+ documentConfigSchema,
180
209
  enrichRecordsWithFormulas,
181
210
  enrichValuesForDisplay,
182
211
  enrichValuesWithSelectLabels,
@@ -208,12 +237,11 @@ import {
208
237
  generateCssVariables,
209
238
  generateId,
210
239
  generatePrefixedId,
240
+ generateTemplateName,
211
241
  getAttributeConfigSchema,
212
242
  getContext,
213
243
  getContextValue,
214
244
  getDefaultExecutorRegistry,
215
- getDefaultPinCodeService,
216
- getDefaultTokenService,
217
245
  getMissingRequiredAttributes,
218
246
  getNodeOutputs,
219
247
  getPathDepth,
@@ -224,6 +252,7 @@ import {
224
252
  getSchemaFromContext,
225
253
  getSyncPreview,
226
254
  getSystemAttributeList,
255
+ getSystemTemplate,
227
256
  getTargetAttributeName,
228
257
  getTenantId,
229
258
  getUserId,
@@ -234,34 +263,40 @@ import {
234
263
  hasSchemaContext,
235
264
  hashOptions,
236
265
  inValues,
237
- initializePinCodeService,
238
- initializeTokenService,
239
266
  isAdvancedFormNode,
267
+ isConcurrentModificationError,
240
268
  isConditionGroup,
241
269
  isConditionNode,
242
270
  isConditionRule,
271
+ isDocumentNode,
243
272
  isEmpty,
244
273
  isEndNode,
245
274
  isForbiddenError,
246
275
  isFormNode,
276
+ isGrantExpired,
277
+ isGrantRevoked,
278
+ isGrantValid,
247
279
  isInstanceEvent,
248
280
  isInstanceTerminal,
249
281
  isInstanceWaiting,
282
+ isInvitationAccepted,
283
+ isInvitationExpired,
284
+ isInvitationOrGrantEvent,
285
+ isInvitationValid,
250
286
  isLabelExpression,
251
287
  isNodeEvent,
252
288
  isNotEmpty,
253
289
  isNotFoundError,
254
- isParticipationEvent,
255
- isPinCodeAuth,
256
290
  isProtectedResourceError,
257
291
  isRecordComplete,
258
292
  isSchemaError,
259
- isSignedLinkAuth,
260
293
  isSimpleFormNode,
261
294
  isStartNode,
262
295
  isSystemAttribute,
263
296
  isSystemAttributeObject,
297
+ isSystemTemplate,
264
298
  isSystemWorkflow,
299
+ isTokenRevoked,
265
300
  isUniversalRelation,
266
301
  isValidationError,
267
302
  isWorkflowDefinition,
@@ -303,6 +338,7 @@ import {
303
338
  select,
304
339
  selectConfigSchema,
305
340
  setContextValue,
341
+ slugify,
306
342
  status,
307
343
  statusConfigSchema,
308
344
  success,
@@ -330,7 +366,7 @@ import {
330
366
  wait,
331
367
  withTenantContext,
332
368
  workflow
333
- } from "./chunk-FDM6XJIG.mjs";
369
+ } from "./chunk-LOOGQL6M.mjs";
334
370
  import {
335
371
  ALL_SYSTEM_RESOURCES,
336
372
  DEFAULT_ROLES,
@@ -343,6 +379,14 @@ import {
343
379
  } from "./chunk-V5QXU2OK.mjs";
344
380
  import "./chunk-Y6FXYEAI.mjs";
345
381
 
382
+ // src/types/document-generation.ts
383
+ function isPdfTemplateSource(source) {
384
+ return source.type === "pdf";
385
+ }
386
+ function isDocxTemplateSource(source) {
387
+ return source.type === "docx";
388
+ }
389
+
346
390
  // src/types/filters.ts
347
391
  function isAdvancedFilterState(state) {
348
392
  return "groups" in state;
@@ -433,7 +477,9 @@ var OPERATORS_BY_TYPE = {
433
477
  "is_not_empty"
434
478
  ],
435
479
  // Rollup: typically numeric aggregations
436
- rollup: ["eq", "neq", "lt", "gt", "lte", "gte", "is_empty", "is_not_empty"]
480
+ rollup: ["eq", "neq", "lt", "gt", "lte", "gte", "is_empty", "is_not_empty"],
481
+ // Document: similar to relation/file
482
+ document: ["any_of", "none_of", "contains", "not_contains", "is_empty", "is_not_empty"]
437
483
  };
438
484
  var NO_VALUE_OPERATORS = [
439
485
  "is_empty",
@@ -481,6 +527,9 @@ function isNotesTab(tab) {
481
527
  function isFlowsTab(tab) {
482
528
  return tab.type === "flows";
483
529
  }
530
+ function isDocumentsTab(tab) {
531
+ return tab.type === "documents";
532
+ }
484
533
 
485
534
  // src/native/notes.ts
486
535
  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(
@@ -634,13 +683,16 @@ export {
634
683
  AttributeInUseError,
635
684
  AttributeNotFoundError,
636
685
  AuditService,
686
+ AuthMethodSchema,
637
687
  BaseRepository,
638
688
  BaseService,
689
+ ConcurrentModificationError,
639
690
  ConditionExecutor,
640
691
  ConditionGroupSchema,
641
692
  ConditionNodeSchema,
642
693
  ConditionOperatorSchema,
643
694
  ConditionRuleSchema,
695
+ CreateShareInputSchema,
644
696
  CustomTabConfig,
645
697
  DEFAULT_LABEL_FALLBACK,
646
698
  DEFAULT_ROLES,
@@ -649,12 +701,26 @@ export {
649
701
  DEFAULT_ROLE_PERMISSIONS,
650
702
  DEFAULT_THEME,
651
703
  DEFAULT_VALIDATION_MESSAGES,
704
+ DRIVING_LICENSE,
652
705
  DirectTableTabConfig,
706
+ DocumentExecutor,
707
+ DocumentGenerationNotConfiguredError,
708
+ DocumentGenerationService,
709
+ DocumentGenerationTemplateNotFoundError,
710
+ DocumentNodeSchema,
711
+ DocumentProcessingHook,
712
+ DocumentProcessingService,
713
+ DocumentRenderError,
714
+ DocumentRendererService,
715
+ DocumentService,
716
+ DocumentTemplateService,
717
+ DocumentsTabConfig,
653
718
  DuplicateError,
654
719
  EMPTY_VALUE_PLACEHOLDER,
655
720
  EndExecutor,
656
721
  EndNodeSchema,
657
722
  ExecutorRegistry,
723
+ FRENCH_ID_CARD,
658
724
  FileNotFoundError,
659
725
  FileService,
660
726
  FlowRowFieldSchema,
@@ -665,11 +731,19 @@ export {
665
731
  FormFieldRefSchema,
666
732
  FormNodeSchema,
667
733
  FormulaResolverService,
734
+ GENERIC_DOCUMENT,
668
735
  GeocodingService,
669
736
  GlobalSearchService,
737
+ GrantExpiredError,
738
+ GrantNotFoundError,
739
+ GrantRevokedError,
670
740
  GroupBuilder,
671
741
  InvalidPathError,
672
742
  InverseTableTabConfig,
743
+ InvitationAlreadyAcceptedError,
744
+ InvitationExpiredError,
745
+ InvitationNotFoundError,
746
+ InvitationRevokedError,
673
747
  MaxDepthExceededError,
674
748
  NOTES,
675
749
  NO_VALUE_OPERATORS,
@@ -685,11 +759,9 @@ export {
685
759
  ObjectNotFoundError,
686
760
  ObjectReferencedError,
687
761
  ObjectSchemaService,
688
- ParticipantAuthConfigSchema,
689
- ParticipantTemplateSchema,
690
- ParticipationTokenService,
762
+ PASSPORT,
763
+ PROOF_OF_ADDRESS,
691
764
  PermissionService,
692
- PinCodeService,
693
765
  PolicyRegistry,
694
766
  PolicyViolationError,
695
767
  ProtectedResourceError,
@@ -709,23 +781,27 @@ export {
709
781
  RollupScheduler,
710
782
  RollupService,
711
783
  SHORTCUT_TO_FILTER_OPERATOR,
784
+ SIGNABLE_CONTRACT,
712
785
  SYSTEM_ATTRIBUTES,
713
786
  SYSTEM_FIELD_NAMES,
714
787
  SYSTEM_RESOURCES,
715
788
  SYSTEM_RESOURCE_LABELS,
789
+ SYSTEM_TEMPLATES,
790
+ SYSTEM_TEMPLATE_IDS,
716
791
  SchemaContextAwareRepository,
717
792
  SchemaError,
718
793
  SchemaErrorCode,
794
+ ShareStatusSchema,
719
795
  SlotModeSchema,
720
796
  StartExecutor,
721
797
  StartNodeSchema,
798
+ StorageDownloadNotSupportedError,
722
799
  SyncError,
723
800
  TabBuilder,
724
- TenantAwareRepository,
725
- TenantAwareService,
726
801
  TenantContextError,
727
802
  ThemeColorsSchema,
728
803
  ThemeLogoSchema,
804
+ TokenRevokedError,
729
805
  UserProfileNotFoundError,
730
806
  UserProfileService,
731
807
  UserService,
@@ -733,6 +809,7 @@ export {
733
809
  ViewBuilder,
734
810
  ViewService,
735
811
  ViewportSchema,
812
+ WorkflowAccessGrantService,
736
813
  WorkflowBuilder,
737
814
  WorkflowConditionBuilder,
738
815
  WorkflowConfigSchema,
@@ -741,12 +818,13 @@ export {
741
818
  WorkflowFormBuilder,
742
819
  WorkflowFormRowBuilder,
743
820
  WorkflowInstanceService,
821
+ WorkflowInvitationService,
822
+ WorkflowJwtService,
744
823
  WorkflowLayoutSchema,
745
824
  WorkflowNodeSchema,
746
- WorkflowParticipantBuilder,
747
- WorkflowParticipationService,
748
825
  WorkflowRelationService,
749
826
  WorkflowService,
827
+ WorkflowShareSchema,
750
828
  WorkflowSimpleFormBuilder,
751
829
  WorkflowSlotSchema,
752
830
  WorkflowStartBuilder,
@@ -762,9 +840,7 @@ export {
762
840
  buildPolicyContext,
763
841
  cacheKeys,
764
842
  cacheTtl,
765
- canAuthenticate,
766
- canExecuteNode,
767
- canParticipate,
843
+ canAccessNode,
768
844
  canResumeInstance,
769
845
  checkPermission,
770
846
  checkRecordAccess,
@@ -817,6 +893,8 @@ export {
817
893
  dateConfigSchema,
818
894
  defaultPolicyRegistry,
819
895
  defaultTtl,
896
+ document,
897
+ documentConfigSchema,
820
898
  enrichRecordsWithFormulas,
821
899
  enrichValuesForDisplay,
822
900
  enrichValuesWithSelectLabels,
@@ -848,12 +926,11 @@ export {
848
926
  generateCssVariables,
849
927
  generateId,
850
928
  generatePrefixedId,
929
+ generateTemplateName,
851
930
  getAttributeConfigSchema,
852
931
  getContext,
853
932
  getContextValue,
854
933
  getDefaultExecutorRegistry,
855
- getDefaultPinCodeService,
856
- getDefaultTokenService,
857
934
  getMissingRequiredAttributes,
858
935
  getNodeOutputs,
859
936
  getPathDepth,
@@ -864,6 +941,7 @@ export {
864
941
  getSchemaFromContext,
865
942
  getSyncPreview,
866
943
  getSystemAttributeList,
944
+ getSystemTemplate,
867
945
  getTargetAttributeName,
868
946
  getTenantId,
869
947
  getUserId,
@@ -874,17 +952,19 @@ export {
874
952
  hasSchemaContext,
875
953
  hashOptions,
876
954
  inValues,
877
- initializePinCodeService,
878
- initializeTokenService,
879
955
  isActivityTab,
880
956
  isAdvancedFilterState,
881
957
  isAdvancedFormNode,
958
+ isConcurrentModificationError,
882
959
  isConditionGroup,
883
960
  isConditionNode,
884
961
  isConditionRule,
885
962
  isCustomTab,
886
963
  isDefaultRole,
887
964
  isDirectTableTab,
965
+ isDocumentNode,
966
+ isDocumentsTab,
967
+ isDocxTemplateSource,
888
968
  isEmpty,
889
969
  isEndNode,
890
970
  isFlowDefinition,
@@ -893,29 +973,36 @@ export {
893
973
  isForbiddenError,
894
974
  isFormNode,
895
975
  isFormTab,
976
+ isGrantExpired,
977
+ isGrantRevoked,
978
+ isGrantValid,
896
979
  isInstanceEvent,
897
980
  isInstanceTerminal,
898
981
  isInstanceWaiting,
899
982
  isInverseTableTab,
983
+ isInvitationAccepted,
984
+ isInvitationExpired,
985
+ isInvitationOrGrantEvent,
986
+ isInvitationValid,
900
987
  isLabelExpression,
901
988
  isNoValueOperator,
902
989
  isNodeEvent,
903
990
  isNotEmpty,
904
991
  isNotFoundError,
905
992
  isNotesTab,
906
- isParticipationEvent,
907
- isPinCodeAuth,
993
+ isPdfTemplateSource,
908
994
  isProtectedResourceError,
909
995
  isRecordComplete,
910
996
  isSchemaError,
911
- isSignedLinkAuth,
912
997
  isSimpleFormNode,
913
998
  isStartNode,
914
999
  isSystemAttribute,
915
1000
  isSystemAttributeObject,
916
1001
  isSystemFlow,
1002
+ isSystemTemplate,
917
1003
  isSystemWorkflow,
918
1004
  isTableTab,
1005
+ isTokenRevoked,
919
1006
  isUniversalRelation,
920
1007
  isValidationError,
921
1008
  isWorkflowDefinition,
@@ -957,6 +1044,7 @@ export {
957
1044
  select,
958
1045
  selectConfigSchema,
959
1046
  setContextValue,
1047
+ slugify,
960
1048
  status,
961
1049
  statusConfigSchema,
962
1050
  success,