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

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,6 +3,7 @@ import {
3
3
  AttributeInUseError,
4
4
  AttributeNotFoundError,
5
5
  AuditService,
6
+ AuthMethodSchema,
6
7
  BaseRepository,
7
8
  BaseService,
8
9
  ConditionExecutor,
@@ -10,16 +11,31 @@ import {
10
11
  ConditionNodeSchema,
11
12
  ConditionOperatorSchema,
12
13
  ConditionRuleSchema,
14
+ CreateShareInputSchema,
13
15
  CustomTabConfig,
14
16
  DEFAULT_LABEL_FALLBACK,
15
17
  DEFAULT_THEME,
16
18
  DEFAULT_VALIDATION_MESSAGES,
19
+ DRIVING_LICENSE,
17
20
  DirectTableTabConfig,
21
+ DocumentExecutor,
22
+ DocumentGenerationNotConfiguredError,
23
+ DocumentGenerationService,
24
+ DocumentGenerationTemplateNotFoundError,
25
+ DocumentNodeSchema,
26
+ DocumentProcessingHook,
27
+ DocumentProcessingService,
28
+ DocumentRenderError,
29
+ DocumentRendererService,
30
+ DocumentService,
31
+ DocumentTemplateService,
32
+ DocumentsTabConfig,
18
33
  DuplicateError,
19
34
  EMPTY_VALUE_PLACEHOLDER,
20
35
  EndExecutor,
21
36
  EndNodeSchema,
22
37
  ExecutorRegistry,
38
+ FRENCH_ID_CARD,
23
39
  FileNotFoundError,
24
40
  FileService,
25
41
  FlowRowFieldSchema,
@@ -30,11 +46,19 @@ import {
30
46
  FormFieldRefSchema,
31
47
  FormNodeSchema,
32
48
  FormulaResolverService,
49
+ GENERIC_DOCUMENT,
33
50
  GeocodingService,
34
51
  GlobalSearchService,
52
+ GrantExpiredError,
53
+ GrantNotFoundError,
54
+ GrantRevokedError,
35
55
  GroupBuilder,
36
56
  InvalidPathError,
37
57
  InverseTableTabConfig,
58
+ InvitationAlreadyAcceptedError,
59
+ InvitationExpiredError,
60
+ InvitationNotFoundError,
61
+ InvitationRevokedError,
38
62
  MaxDepthExceededError,
39
63
  NodePositionSchema,
40
64
  NoopCacheAdapter,
@@ -47,11 +71,9 @@ import {
47
71
  ObjectNotFoundError,
48
72
  ObjectReferencedError,
49
73
  ObjectSchemaService,
50
- ParticipantAuthConfigSchema,
51
- ParticipantTemplateSchema,
52
- ParticipationTokenService,
74
+ PASSPORT,
75
+ PROOF_OF_ADDRESS,
53
76
  PermissionService,
54
- PinCodeService,
55
77
  PolicyRegistry,
56
78
  PolicyViolationError,
57
79
  ProtectedResourceError,
@@ -71,14 +93,19 @@ import {
71
93
  RollupScheduler,
72
94
  RollupService,
73
95
  SHORTCUT_TO_FILTER_OPERATOR,
96
+ SIGNABLE_CONTRACT,
74
97
  SYSTEM_ATTRIBUTES,
75
98
  SYSTEM_FIELD_NAMES,
99
+ SYSTEM_TEMPLATES,
100
+ SYSTEM_TEMPLATE_IDS,
76
101
  SchemaContextAwareRepository,
77
102
  SchemaError,
78
103
  SchemaErrorCode,
104
+ ShareStatusSchema,
79
105
  SlotModeSchema,
80
106
  StartExecutor,
81
107
  StartNodeSchema,
108
+ StorageDownloadNotSupportedError,
82
109
  SyncError,
83
110
  TabBuilder,
84
111
  TenantAwareRepository,
@@ -86,6 +113,7 @@ import {
86
113
  TenantContextError,
87
114
  ThemeColorsSchema,
88
115
  ThemeLogoSchema,
116
+ TokenRevokedError,
89
117
  UserProfileNotFoundError,
90
118
  UserProfileService,
91
119
  UserService,
@@ -93,6 +121,7 @@ import {
93
121
  ViewBuilder,
94
122
  ViewService,
95
123
  ViewportSchema,
124
+ WorkflowAccessGrantService,
96
125
  WorkflowBuilder,
97
126
  WorkflowConditionBuilder,
98
127
  WorkflowConfigSchema,
@@ -101,12 +130,13 @@ import {
101
130
  WorkflowFormBuilder,
102
131
  WorkflowFormRowBuilder,
103
132
  WorkflowInstanceService,
133
+ WorkflowInvitationService,
134
+ WorkflowJwtService,
104
135
  WorkflowLayoutSchema,
105
136
  WorkflowNodeSchema,
106
- WorkflowParticipantBuilder,
107
- WorkflowParticipationService,
108
137
  WorkflowRelationService,
109
138
  WorkflowService,
139
+ WorkflowShareSchema,
110
140
  WorkflowSimpleFormBuilder,
111
141
  WorkflowSlotSchema,
112
142
  WorkflowStartBuilder,
@@ -122,9 +152,7 @@ import {
122
152
  buildPolicyContext,
123
153
  cacheKeys,
124
154
  cacheTtl,
125
- canAuthenticate,
126
- canExecuteNode,
127
- canParticipate,
155
+ canAccessNode,
128
156
  canResumeInstance,
129
157
  checkPermission,
130
158
  checkRecordAccess,
@@ -177,6 +205,8 @@ import {
177
205
  dateConfigSchema,
178
206
  defaultPolicyRegistry,
179
207
  defaultTtl,
208
+ document,
209
+ documentConfigSchema,
180
210
  enrichRecordsWithFormulas,
181
211
  enrichValuesForDisplay,
182
212
  enrichValuesWithSelectLabels,
@@ -208,12 +238,11 @@ import {
208
238
  generateCssVariables,
209
239
  generateId,
210
240
  generatePrefixedId,
241
+ generateTemplateName,
211
242
  getAttributeConfigSchema,
212
243
  getContext,
213
244
  getContextValue,
214
245
  getDefaultExecutorRegistry,
215
- getDefaultPinCodeService,
216
- getDefaultTokenService,
217
246
  getMissingRequiredAttributes,
218
247
  getNodeOutputs,
219
248
  getPathDepth,
@@ -224,6 +253,7 @@ import {
224
253
  getSchemaFromContext,
225
254
  getSyncPreview,
226
255
  getSystemAttributeList,
256
+ getSystemTemplate,
227
257
  getTargetAttributeName,
228
258
  getTenantId,
229
259
  getUserId,
@@ -234,34 +264,39 @@ import {
234
264
  hasSchemaContext,
235
265
  hashOptions,
236
266
  inValues,
237
- initializePinCodeService,
238
- initializeTokenService,
239
267
  isAdvancedFormNode,
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-4NLKDJWD.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,6 +683,7 @@ export {
634
683
  AttributeInUseError,
635
684
  AttributeNotFoundError,
636
685
  AuditService,
686
+ AuthMethodSchema,
637
687
  BaseRepository,
638
688
  BaseService,
639
689
  ConditionExecutor,
@@ -641,6 +691,7 @@ export {
641
691
  ConditionNodeSchema,
642
692
  ConditionOperatorSchema,
643
693
  ConditionRuleSchema,
694
+ CreateShareInputSchema,
644
695
  CustomTabConfig,
645
696
  DEFAULT_LABEL_FALLBACK,
646
697
  DEFAULT_ROLES,
@@ -649,12 +700,26 @@ export {
649
700
  DEFAULT_ROLE_PERMISSIONS,
650
701
  DEFAULT_THEME,
651
702
  DEFAULT_VALIDATION_MESSAGES,
703
+ DRIVING_LICENSE,
652
704
  DirectTableTabConfig,
705
+ DocumentExecutor,
706
+ DocumentGenerationNotConfiguredError,
707
+ DocumentGenerationService,
708
+ DocumentGenerationTemplateNotFoundError,
709
+ DocumentNodeSchema,
710
+ DocumentProcessingHook,
711
+ DocumentProcessingService,
712
+ DocumentRenderError,
713
+ DocumentRendererService,
714
+ DocumentService,
715
+ DocumentTemplateService,
716
+ DocumentsTabConfig,
653
717
  DuplicateError,
654
718
  EMPTY_VALUE_PLACEHOLDER,
655
719
  EndExecutor,
656
720
  EndNodeSchema,
657
721
  ExecutorRegistry,
722
+ FRENCH_ID_CARD,
658
723
  FileNotFoundError,
659
724
  FileService,
660
725
  FlowRowFieldSchema,
@@ -665,11 +730,19 @@ export {
665
730
  FormFieldRefSchema,
666
731
  FormNodeSchema,
667
732
  FormulaResolverService,
733
+ GENERIC_DOCUMENT,
668
734
  GeocodingService,
669
735
  GlobalSearchService,
736
+ GrantExpiredError,
737
+ GrantNotFoundError,
738
+ GrantRevokedError,
670
739
  GroupBuilder,
671
740
  InvalidPathError,
672
741
  InverseTableTabConfig,
742
+ InvitationAlreadyAcceptedError,
743
+ InvitationExpiredError,
744
+ InvitationNotFoundError,
745
+ InvitationRevokedError,
673
746
  MaxDepthExceededError,
674
747
  NOTES,
675
748
  NO_VALUE_OPERATORS,
@@ -685,11 +758,9 @@ export {
685
758
  ObjectNotFoundError,
686
759
  ObjectReferencedError,
687
760
  ObjectSchemaService,
688
- ParticipantAuthConfigSchema,
689
- ParticipantTemplateSchema,
690
- ParticipationTokenService,
761
+ PASSPORT,
762
+ PROOF_OF_ADDRESS,
691
763
  PermissionService,
692
- PinCodeService,
693
764
  PolicyRegistry,
694
765
  PolicyViolationError,
695
766
  ProtectedResourceError,
@@ -709,16 +780,21 @@ export {
709
780
  RollupScheduler,
710
781
  RollupService,
711
782
  SHORTCUT_TO_FILTER_OPERATOR,
783
+ SIGNABLE_CONTRACT,
712
784
  SYSTEM_ATTRIBUTES,
713
785
  SYSTEM_FIELD_NAMES,
714
786
  SYSTEM_RESOURCES,
715
787
  SYSTEM_RESOURCE_LABELS,
788
+ SYSTEM_TEMPLATES,
789
+ SYSTEM_TEMPLATE_IDS,
716
790
  SchemaContextAwareRepository,
717
791
  SchemaError,
718
792
  SchemaErrorCode,
793
+ ShareStatusSchema,
719
794
  SlotModeSchema,
720
795
  StartExecutor,
721
796
  StartNodeSchema,
797
+ StorageDownloadNotSupportedError,
722
798
  SyncError,
723
799
  TabBuilder,
724
800
  TenantAwareRepository,
@@ -726,6 +802,7 @@ export {
726
802
  TenantContextError,
727
803
  ThemeColorsSchema,
728
804
  ThemeLogoSchema,
805
+ TokenRevokedError,
729
806
  UserProfileNotFoundError,
730
807
  UserProfileService,
731
808
  UserService,
@@ -733,6 +810,7 @@ export {
733
810
  ViewBuilder,
734
811
  ViewService,
735
812
  ViewportSchema,
813
+ WorkflowAccessGrantService,
736
814
  WorkflowBuilder,
737
815
  WorkflowConditionBuilder,
738
816
  WorkflowConfigSchema,
@@ -741,12 +819,13 @@ export {
741
819
  WorkflowFormBuilder,
742
820
  WorkflowFormRowBuilder,
743
821
  WorkflowInstanceService,
822
+ WorkflowInvitationService,
823
+ WorkflowJwtService,
744
824
  WorkflowLayoutSchema,
745
825
  WorkflowNodeSchema,
746
- WorkflowParticipantBuilder,
747
- WorkflowParticipationService,
748
826
  WorkflowRelationService,
749
827
  WorkflowService,
828
+ WorkflowShareSchema,
750
829
  WorkflowSimpleFormBuilder,
751
830
  WorkflowSlotSchema,
752
831
  WorkflowStartBuilder,
@@ -762,9 +841,7 @@ export {
762
841
  buildPolicyContext,
763
842
  cacheKeys,
764
843
  cacheTtl,
765
- canAuthenticate,
766
- canExecuteNode,
767
- canParticipate,
844
+ canAccessNode,
768
845
  canResumeInstance,
769
846
  checkPermission,
770
847
  checkRecordAccess,
@@ -817,6 +894,8 @@ export {
817
894
  dateConfigSchema,
818
895
  defaultPolicyRegistry,
819
896
  defaultTtl,
897
+ document,
898
+ documentConfigSchema,
820
899
  enrichRecordsWithFormulas,
821
900
  enrichValuesForDisplay,
822
901
  enrichValuesWithSelectLabels,
@@ -848,12 +927,11 @@ export {
848
927
  generateCssVariables,
849
928
  generateId,
850
929
  generatePrefixedId,
930
+ generateTemplateName,
851
931
  getAttributeConfigSchema,
852
932
  getContext,
853
933
  getContextValue,
854
934
  getDefaultExecutorRegistry,
855
- getDefaultPinCodeService,
856
- getDefaultTokenService,
857
935
  getMissingRequiredAttributes,
858
936
  getNodeOutputs,
859
937
  getPathDepth,
@@ -864,6 +942,7 @@ export {
864
942
  getSchemaFromContext,
865
943
  getSyncPreview,
866
944
  getSystemAttributeList,
945
+ getSystemTemplate,
867
946
  getTargetAttributeName,
868
947
  getTenantId,
869
948
  getUserId,
@@ -874,8 +953,6 @@ export {
874
953
  hasSchemaContext,
875
954
  hashOptions,
876
955
  inValues,
877
- initializePinCodeService,
878
- initializeTokenService,
879
956
  isActivityTab,
880
957
  isAdvancedFilterState,
881
958
  isAdvancedFormNode,
@@ -885,6 +962,9 @@ export {
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,