@objectstack/plugin-approvals 10.0.0 → 10.3.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/plugin-approvals@10.0.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
2
+ > @objectstack/plugin-approvals@10.3.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
3
3
  > tsup --config ../../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,13 +10,13 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM dist/index.mjs 119.84 KB
14
- ESM dist/index.mjs.map 215.22 KB
15
- ESM ⚡️ Build success in 190ms
16
13
  CJS dist/index.js 121.50 KB
17
14
  CJS dist/index.js.map 216.42 KB
18
- CJS ⚡️ Build success in 201ms
15
+ CJS ⚡️ Build success in 239ms
16
+ ESM dist/index.mjs 119.84 KB
17
+ ESM dist/index.mjs.map 215.22 KB
18
+ ESM ⚡️ Build success in 255ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 24235ms
21
- DTS dist/index.d.mts 368.13 KB
22
- DTS dist/index.d.ts 368.13 KB
20
+ DTS ⚡️ Build success in 19349ms
21
+ DTS dist/index.d.mts 370.82 KB
22
+ DTS dist/index.d.ts 370.82 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # @objectstack/plugin-approvals
2
2
 
3
+ ## 10.3.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @objectstack/spec@10.3.0
8
+ - @objectstack/core@10.3.0
9
+ - @objectstack/metadata-core@10.3.0
10
+ - @objectstack/formula@10.3.0
11
+ - @objectstack/platform-objects@10.3.0
12
+
13
+ ## 10.2.0
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [b496498]
18
+ - @objectstack/spec@10.2.0
19
+ - @objectstack/core@10.2.0
20
+ - @objectstack/formula@10.2.0
21
+ - @objectstack/metadata-core@10.2.0
22
+ - @objectstack/platform-objects@10.2.0
23
+
24
+ ## 10.1.0
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [49da36e]
29
+ - Updated dependencies [ac79f16]
30
+ - @objectstack/spec@10.1.0
31
+ - @objectstack/core@10.1.0
32
+ - @objectstack/formula@10.1.0
33
+ - @objectstack/metadata-core@10.1.0
34
+ - @objectstack/platform-objects@10.1.0
35
+
3
36
  ## 10.0.0
4
37
 
5
38
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -239,6 +239,7 @@ declare const SysApprovalRequest: Omit<{
239
239
  generatedBy?: string | undefined;
240
240
  } | undefined;
241
241
  } | undefined;
242
+ requiredPermissions?: string[] | undefined;
242
243
  system?: boolean | undefined;
243
244
  inlineHelpText?: string | undefined;
244
245
  caseSensitive?: boolean | undefined;
@@ -314,6 +315,10 @@ declare const SysApprovalRequest: Omit<{
314
315
  tenantField: string;
315
316
  crossTenantAccess: boolean;
316
317
  } | undefined;
318
+ access?: {
319
+ default: "public" | "private";
320
+ } | undefined;
321
+ requiredPermissions?: string[] | undefined;
317
322
  softDelete?: {
318
323
  enabled: boolean;
319
324
  field: string;
@@ -680,7 +685,7 @@ declare const SysApprovalRequest: Omit<{
680
685
  clone: boolean;
681
686
  apiMethods?: ("search" | "create" | "import" | "delete" | "list" | "get" | "update" | "upsert" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
682
687
  } | undefined;
683
- sharingModel?: "full" | "read" | "private" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
688
+ sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
684
689
  publicSharing?: {
685
690
  enabled: boolean;
686
691
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -767,6 +772,7 @@ declare const SysApprovalRequest: Omit<{
767
772
  generatedBy?: string | undefined;
768
773
  } | undefined;
769
774
  } | undefined;
775
+ requiredPermissions?: string[] | undefined;
770
776
  shortcut?: string | undefined;
771
777
  bulkEnabled?: boolean | undefined;
772
778
  ai?: {
@@ -926,6 +932,7 @@ declare const SysApprovalRequest: Omit<{
926
932
  readonly dependencies?: string[] | undefined;
927
933
  readonly externalId?: boolean | undefined;
928
934
  readonly defaultValue?: unknown;
935
+ readonly requiredPermissions?: string[] | undefined;
929
936
  readonly group?: string | undefined;
930
937
  readonly hidden?: boolean | undefined;
931
938
  readonly system?: boolean | undefined;
@@ -1100,6 +1107,7 @@ declare const SysApprovalRequest: Omit<{
1100
1107
  readonly dependencies?: string[] | undefined;
1101
1108
  readonly externalId?: boolean | undefined;
1102
1109
  readonly defaultValue?: unknown;
1110
+ readonly requiredPermissions?: string[] | undefined;
1103
1111
  readonly group?: string | undefined;
1104
1112
  readonly hidden?: boolean | undefined;
1105
1113
  readonly system?: boolean | undefined;
@@ -1274,6 +1282,7 @@ declare const SysApprovalRequest: Omit<{
1274
1282
  readonly dependencies?: string[] | undefined;
1275
1283
  readonly externalId?: boolean | undefined;
1276
1284
  readonly defaultValue?: unknown;
1285
+ readonly requiredPermissions?: string[] | undefined;
1277
1286
  readonly group?: string | undefined;
1278
1287
  readonly hidden?: boolean | undefined;
1279
1288
  readonly system?: boolean | undefined;
@@ -1448,6 +1457,7 @@ declare const SysApprovalRequest: Omit<{
1448
1457
  readonly dependencies?: string[] | undefined;
1449
1458
  readonly externalId?: boolean | undefined;
1450
1459
  readonly defaultValue?: unknown;
1460
+ readonly requiredPermissions?: string[] | undefined;
1451
1461
  readonly group?: string | undefined;
1452
1462
  readonly hidden?: boolean | undefined;
1453
1463
  readonly system?: boolean | undefined;
@@ -1622,6 +1632,7 @@ declare const SysApprovalRequest: Omit<{
1622
1632
  readonly dependencies?: string[] | undefined;
1623
1633
  readonly externalId?: boolean | undefined;
1624
1634
  readonly defaultValue?: unknown;
1635
+ readonly requiredPermissions?: string[] | undefined;
1625
1636
  readonly group?: string | undefined;
1626
1637
  readonly hidden?: boolean | undefined;
1627
1638
  readonly system?: boolean | undefined;
@@ -1796,6 +1807,7 @@ declare const SysApprovalRequest: Omit<{
1796
1807
  readonly dependencies?: string[] | undefined;
1797
1808
  readonly externalId?: boolean | undefined;
1798
1809
  readonly defaultValue?: unknown;
1810
+ readonly requiredPermissions?: string[] | undefined;
1799
1811
  readonly group?: string | undefined;
1800
1812
  readonly hidden?: boolean | undefined;
1801
1813
  readonly system?: boolean | undefined;
@@ -1970,6 +1982,7 @@ declare const SysApprovalRequest: Omit<{
1970
1982
  readonly dependencies?: string[] | undefined;
1971
1983
  readonly externalId?: boolean | undefined;
1972
1984
  readonly defaultValue?: unknown;
1985
+ readonly requiredPermissions?: string[] | undefined;
1973
1986
  readonly group?: string | undefined;
1974
1987
  readonly hidden?: boolean | undefined;
1975
1988
  readonly system?: boolean | undefined;
@@ -2144,6 +2157,7 @@ declare const SysApprovalRequest: Omit<{
2144
2157
  readonly dependencies?: string[] | undefined;
2145
2158
  readonly externalId?: boolean | undefined;
2146
2159
  readonly defaultValue?: unknown;
2160
+ readonly requiredPermissions?: string[] | undefined;
2147
2161
  readonly group?: string | undefined;
2148
2162
  readonly hidden?: boolean | undefined;
2149
2163
  readonly system?: boolean | undefined;
@@ -2318,6 +2332,7 @@ declare const SysApprovalRequest: Omit<{
2318
2332
  readonly dependencies?: string[] | undefined;
2319
2333
  readonly externalId?: boolean | undefined;
2320
2334
  readonly defaultValue?: unknown;
2335
+ readonly requiredPermissions?: string[] | undefined;
2321
2336
  readonly group?: string | undefined;
2322
2337
  readonly hidden?: boolean | undefined;
2323
2338
  readonly system?: boolean | undefined;
@@ -2492,6 +2507,7 @@ declare const SysApprovalRequest: Omit<{
2492
2507
  readonly dependencies?: string[] | undefined;
2493
2508
  readonly externalId?: boolean | undefined;
2494
2509
  readonly defaultValue?: unknown;
2510
+ readonly requiredPermissions?: string[] | undefined;
2495
2511
  readonly group?: string | undefined;
2496
2512
  readonly hidden?: boolean | undefined;
2497
2513
  readonly system?: boolean | undefined;
@@ -2666,6 +2682,7 @@ declare const SysApprovalRequest: Omit<{
2666
2682
  readonly dependencies?: string[] | undefined;
2667
2683
  readonly externalId?: boolean | undefined;
2668
2684
  readonly defaultValue?: unknown;
2685
+ readonly requiredPermissions?: string[] | undefined;
2669
2686
  readonly group?: string | undefined;
2670
2687
  readonly hidden?: boolean | undefined;
2671
2688
  readonly system?: boolean | undefined;
@@ -2840,6 +2857,7 @@ declare const SysApprovalRequest: Omit<{
2840
2857
  readonly dependencies?: string[] | undefined;
2841
2858
  readonly externalId?: boolean | undefined;
2842
2859
  readonly defaultValue?: unknown;
2860
+ readonly requiredPermissions?: string[] | undefined;
2843
2861
  readonly group?: string | undefined;
2844
2862
  readonly hidden?: boolean | undefined;
2845
2863
  readonly system?: boolean | undefined;
@@ -3014,6 +3032,7 @@ declare const SysApprovalRequest: Omit<{
3014
3032
  readonly dependencies?: string[] | undefined;
3015
3033
  readonly externalId?: boolean | undefined;
3016
3034
  readonly defaultValue?: unknown;
3035
+ readonly requiredPermissions?: string[] | undefined;
3017
3036
  readonly group?: string | undefined;
3018
3037
  readonly hidden?: boolean | undefined;
3019
3038
  readonly system?: boolean | undefined;
@@ -3188,6 +3207,7 @@ declare const SysApprovalRequest: Omit<{
3188
3207
  readonly dependencies?: string[] | undefined;
3189
3208
  readonly externalId?: boolean | undefined;
3190
3209
  readonly defaultValue?: unknown;
3210
+ readonly requiredPermissions?: string[] | undefined;
3191
3211
  readonly group?: string | undefined;
3192
3212
  readonly hidden?: boolean | undefined;
3193
3213
  readonly system?: boolean | undefined;
@@ -3362,6 +3382,7 @@ declare const SysApprovalRequest: Omit<{
3362
3382
  readonly dependencies?: string[] | undefined;
3363
3383
  readonly externalId?: boolean | undefined;
3364
3384
  readonly defaultValue?: unknown;
3385
+ readonly requiredPermissions?: string[] | undefined;
3365
3386
  readonly group?: string | undefined;
3366
3387
  readonly hidden?: boolean | undefined;
3367
3388
  readonly system?: boolean | undefined;
@@ -3536,6 +3557,7 @@ declare const SysApprovalRequest: Omit<{
3536
3557
  readonly dependencies?: string[] | undefined;
3537
3558
  readonly externalId?: boolean | undefined;
3538
3559
  readonly defaultValue?: unknown;
3560
+ readonly requiredPermissions?: string[] | undefined;
3539
3561
  readonly group?: string | undefined;
3540
3562
  readonly hidden?: boolean | undefined;
3541
3563
  readonly system?: boolean | undefined;
@@ -3710,6 +3732,7 @@ declare const SysApprovalRequest: Omit<{
3710
3732
  readonly dependencies?: string[] | undefined;
3711
3733
  readonly externalId?: boolean | undefined;
3712
3734
  readonly defaultValue?: unknown;
3735
+ readonly requiredPermissions?: string[] | undefined;
3713
3736
  readonly group?: string | undefined;
3714
3737
  readonly hidden?: boolean | undefined;
3715
3738
  readonly system?: boolean | undefined;
@@ -3884,6 +3907,7 @@ declare const SysApprovalRequest: Omit<{
3884
3907
  readonly dependencies?: string[] | undefined;
3885
3908
  readonly externalId?: boolean | undefined;
3886
3909
  readonly defaultValue?: unknown;
3910
+ readonly requiredPermissions?: string[] | undefined;
3887
3911
  readonly group?: string | undefined;
3888
3912
  readonly hidden?: boolean | undefined;
3889
3913
  readonly system?: boolean | undefined;
@@ -4278,6 +4302,7 @@ declare const SysApprovalAction: Omit<{
4278
4302
  generatedBy?: string | undefined;
4279
4303
  } | undefined;
4280
4304
  } | undefined;
4305
+ requiredPermissions?: string[] | undefined;
4281
4306
  system?: boolean | undefined;
4282
4307
  inlineHelpText?: string | undefined;
4283
4308
  caseSensitive?: boolean | undefined;
@@ -4353,6 +4378,10 @@ declare const SysApprovalAction: Omit<{
4353
4378
  tenantField: string;
4354
4379
  crossTenantAccess: boolean;
4355
4380
  } | undefined;
4381
+ access?: {
4382
+ default: "public" | "private";
4383
+ } | undefined;
4384
+ requiredPermissions?: string[] | undefined;
4356
4385
  softDelete?: {
4357
4386
  enabled: boolean;
4358
4387
  field: string;
@@ -4719,7 +4748,7 @@ declare const SysApprovalAction: Omit<{
4719
4748
  clone: boolean;
4720
4749
  apiMethods?: ("search" | "create" | "import" | "delete" | "list" | "get" | "update" | "upsert" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
4721
4750
  } | undefined;
4722
- sharingModel?: "full" | "read" | "private" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
4751
+ sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
4723
4752
  publicSharing?: {
4724
4753
  enabled: boolean;
4725
4754
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -4806,6 +4835,7 @@ declare const SysApprovalAction: Omit<{
4806
4835
  generatedBy?: string | undefined;
4807
4836
  } | undefined;
4808
4837
  } | undefined;
4838
+ requiredPermissions?: string[] | undefined;
4809
4839
  shortcut?: string | undefined;
4810
4840
  bulkEnabled?: boolean | undefined;
4811
4841
  ai?: {
@@ -4939,6 +4969,7 @@ declare const SysApprovalAction: Omit<{
4939
4969
  readonly dependencies?: string[] | undefined;
4940
4970
  readonly externalId?: boolean | undefined;
4941
4971
  readonly defaultValue?: unknown;
4972
+ readonly requiredPermissions?: string[] | undefined;
4942
4973
  readonly group?: string | undefined;
4943
4974
  readonly hidden?: boolean | undefined;
4944
4975
  readonly system?: boolean | undefined;
@@ -5113,6 +5144,7 @@ declare const SysApprovalAction: Omit<{
5113
5144
  readonly dependencies?: string[] | undefined;
5114
5145
  readonly externalId?: boolean | undefined;
5115
5146
  readonly defaultValue?: unknown;
5147
+ readonly requiredPermissions?: string[] | undefined;
5116
5148
  readonly group?: string | undefined;
5117
5149
  readonly hidden?: boolean | undefined;
5118
5150
  readonly system?: boolean | undefined;
@@ -5287,6 +5319,7 @@ declare const SysApprovalAction: Omit<{
5287
5319
  readonly dependencies?: string[] | undefined;
5288
5320
  readonly externalId?: boolean | undefined;
5289
5321
  readonly defaultValue?: unknown;
5322
+ readonly requiredPermissions?: string[] | undefined;
5290
5323
  readonly group?: string | undefined;
5291
5324
  readonly hidden?: boolean | undefined;
5292
5325
  readonly system?: boolean | undefined;
@@ -5461,6 +5494,7 @@ declare const SysApprovalAction: Omit<{
5461
5494
  readonly dependencies?: string[] | undefined;
5462
5495
  readonly externalId?: boolean | undefined;
5463
5496
  readonly defaultValue?: unknown;
5497
+ readonly requiredPermissions?: string[] | undefined;
5464
5498
  readonly group?: string | undefined;
5465
5499
  readonly hidden?: boolean | undefined;
5466
5500
  readonly system?: boolean | undefined;
@@ -5635,6 +5669,7 @@ declare const SysApprovalAction: Omit<{
5635
5669
  readonly dependencies?: string[] | undefined;
5636
5670
  readonly externalId?: boolean | undefined;
5637
5671
  readonly defaultValue?: unknown;
5672
+ readonly requiredPermissions?: string[] | undefined;
5638
5673
  readonly group?: string | undefined;
5639
5674
  readonly hidden?: boolean | undefined;
5640
5675
  readonly system?: boolean | undefined;
@@ -5809,6 +5844,7 @@ declare const SysApprovalAction: Omit<{
5809
5844
  readonly dependencies?: string[] | undefined;
5810
5845
  readonly externalId?: boolean | undefined;
5811
5846
  readonly defaultValue?: unknown;
5847
+ readonly requiredPermissions?: string[] | undefined;
5812
5848
  readonly group?: string | undefined;
5813
5849
  readonly hidden?: boolean | undefined;
5814
5850
  readonly system?: boolean | undefined;
@@ -5983,6 +6019,7 @@ declare const SysApprovalAction: Omit<{
5983
6019
  readonly dependencies?: string[] | undefined;
5984
6020
  readonly externalId?: boolean | undefined;
5985
6021
  readonly defaultValue?: unknown;
6022
+ readonly requiredPermissions?: string[] | undefined;
5986
6023
  readonly group?: string | undefined;
5987
6024
  readonly hidden?: boolean | undefined;
5988
6025
  readonly system?: boolean | undefined;
@@ -6157,6 +6194,7 @@ declare const SysApprovalAction: Omit<{
6157
6194
  readonly dependencies?: string[] | undefined;
6158
6195
  readonly externalId?: boolean | undefined;
6159
6196
  readonly defaultValue?: unknown;
6197
+ readonly requiredPermissions?: string[] | undefined;
6160
6198
  readonly group?: string | undefined;
6161
6199
  readonly hidden?: boolean | undefined;
6162
6200
  readonly system?: boolean | undefined;
@@ -6331,6 +6369,7 @@ declare const SysApprovalAction: Omit<{
6331
6369
  readonly dependencies?: string[] | undefined;
6332
6370
  readonly externalId?: boolean | undefined;
6333
6371
  readonly defaultValue?: unknown;
6372
+ readonly requiredPermissions?: string[] | undefined;
6334
6373
  readonly group?: string | undefined;
6335
6374
  readonly hidden?: boolean | undefined;
6336
6375
  readonly system?: boolean | undefined;
@@ -6732,6 +6771,7 @@ declare const SysApprovalApprover: Omit<{
6732
6771
  generatedBy?: string | undefined;
6733
6772
  } | undefined;
6734
6773
  } | undefined;
6774
+ requiredPermissions?: string[] | undefined;
6735
6775
  system?: boolean | undefined;
6736
6776
  inlineHelpText?: string | undefined;
6737
6777
  caseSensitive?: boolean | undefined;
@@ -6807,6 +6847,10 @@ declare const SysApprovalApprover: Omit<{
6807
6847
  tenantField: string;
6808
6848
  crossTenantAccess: boolean;
6809
6849
  } | undefined;
6850
+ access?: {
6851
+ default: "public" | "private";
6852
+ } | undefined;
6853
+ requiredPermissions?: string[] | undefined;
6810
6854
  softDelete?: {
6811
6855
  enabled: boolean;
6812
6856
  field: string;
@@ -7173,7 +7217,7 @@ declare const SysApprovalApprover: Omit<{
7173
7217
  clone: boolean;
7174
7218
  apiMethods?: ("search" | "create" | "import" | "delete" | "list" | "get" | "update" | "upsert" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
7175
7219
  } | undefined;
7176
- sharingModel?: "full" | "read" | "private" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
7220
+ sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
7177
7221
  publicSharing?: {
7178
7222
  enabled: boolean;
7179
7223
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -7260,6 +7304,7 @@ declare const SysApprovalApprover: Omit<{
7260
7304
  generatedBy?: string | undefined;
7261
7305
  } | undefined;
7262
7306
  } | undefined;
7307
+ requiredPermissions?: string[] | undefined;
7263
7308
  shortcut?: string | undefined;
7264
7309
  bulkEnabled?: boolean | undefined;
7265
7310
  ai?: {
@@ -7326,6 +7371,7 @@ declare const SysApprovalApprover: Omit<{
7326
7371
  readonly dependencies?: string[] | undefined;
7327
7372
  readonly externalId?: boolean | undefined;
7328
7373
  readonly defaultValue?: unknown;
7374
+ readonly requiredPermissions?: string[] | undefined;
7329
7375
  readonly group?: string | undefined;
7330
7376
  readonly hidden?: boolean | undefined;
7331
7377
  readonly system?: boolean | undefined;
@@ -7500,6 +7546,7 @@ declare const SysApprovalApprover: Omit<{
7500
7546
  readonly dependencies?: string[] | undefined;
7501
7547
  readonly externalId?: boolean | undefined;
7502
7548
  readonly defaultValue?: unknown;
7549
+ readonly requiredPermissions?: string[] | undefined;
7503
7550
  readonly group?: string | undefined;
7504
7551
  readonly hidden?: boolean | undefined;
7505
7552
  readonly system?: boolean | undefined;
@@ -7674,6 +7721,7 @@ declare const SysApprovalApprover: Omit<{
7674
7721
  readonly dependencies?: string[] | undefined;
7675
7722
  readonly externalId?: boolean | undefined;
7676
7723
  readonly defaultValue?: unknown;
7724
+ readonly requiredPermissions?: string[] | undefined;
7677
7725
  readonly group?: string | undefined;
7678
7726
  readonly hidden?: boolean | undefined;
7679
7727
  readonly system?: boolean | undefined;
@@ -7848,6 +7896,7 @@ declare const SysApprovalApprover: Omit<{
7848
7896
  readonly dependencies?: string[] | undefined;
7849
7897
  readonly externalId?: boolean | undefined;
7850
7898
  readonly defaultValue?: unknown;
7899
+ readonly requiredPermissions?: string[] | undefined;
7851
7900
  readonly group?: string | undefined;
7852
7901
  readonly hidden?: boolean | undefined;
7853
7902
  readonly system?: boolean | undefined;
@@ -8022,6 +8071,7 @@ declare const SysApprovalApprover: Omit<{
8022
8071
  readonly dependencies?: string[] | undefined;
8023
8072
  readonly externalId?: boolean | undefined;
8024
8073
  readonly defaultValue?: unknown;
8074
+ readonly requiredPermissions?: string[] | undefined;
8025
8075
  readonly group?: string | undefined;
8026
8076
  readonly hidden?: boolean | undefined;
8027
8077
  readonly system?: boolean | undefined;
package/dist/index.d.ts CHANGED
@@ -239,6 +239,7 @@ declare const SysApprovalRequest: Omit<{
239
239
  generatedBy?: string | undefined;
240
240
  } | undefined;
241
241
  } | undefined;
242
+ requiredPermissions?: string[] | undefined;
242
243
  system?: boolean | undefined;
243
244
  inlineHelpText?: string | undefined;
244
245
  caseSensitive?: boolean | undefined;
@@ -314,6 +315,10 @@ declare const SysApprovalRequest: Omit<{
314
315
  tenantField: string;
315
316
  crossTenantAccess: boolean;
316
317
  } | undefined;
318
+ access?: {
319
+ default: "public" | "private";
320
+ } | undefined;
321
+ requiredPermissions?: string[] | undefined;
317
322
  softDelete?: {
318
323
  enabled: boolean;
319
324
  field: string;
@@ -680,7 +685,7 @@ declare const SysApprovalRequest: Omit<{
680
685
  clone: boolean;
681
686
  apiMethods?: ("search" | "create" | "import" | "delete" | "list" | "get" | "update" | "upsert" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
682
687
  } | undefined;
683
- sharingModel?: "full" | "read" | "private" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
688
+ sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
684
689
  publicSharing?: {
685
690
  enabled: boolean;
686
691
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -767,6 +772,7 @@ declare const SysApprovalRequest: Omit<{
767
772
  generatedBy?: string | undefined;
768
773
  } | undefined;
769
774
  } | undefined;
775
+ requiredPermissions?: string[] | undefined;
770
776
  shortcut?: string | undefined;
771
777
  bulkEnabled?: boolean | undefined;
772
778
  ai?: {
@@ -926,6 +932,7 @@ declare const SysApprovalRequest: Omit<{
926
932
  readonly dependencies?: string[] | undefined;
927
933
  readonly externalId?: boolean | undefined;
928
934
  readonly defaultValue?: unknown;
935
+ readonly requiredPermissions?: string[] | undefined;
929
936
  readonly group?: string | undefined;
930
937
  readonly hidden?: boolean | undefined;
931
938
  readonly system?: boolean | undefined;
@@ -1100,6 +1107,7 @@ declare const SysApprovalRequest: Omit<{
1100
1107
  readonly dependencies?: string[] | undefined;
1101
1108
  readonly externalId?: boolean | undefined;
1102
1109
  readonly defaultValue?: unknown;
1110
+ readonly requiredPermissions?: string[] | undefined;
1103
1111
  readonly group?: string | undefined;
1104
1112
  readonly hidden?: boolean | undefined;
1105
1113
  readonly system?: boolean | undefined;
@@ -1274,6 +1282,7 @@ declare const SysApprovalRequest: Omit<{
1274
1282
  readonly dependencies?: string[] | undefined;
1275
1283
  readonly externalId?: boolean | undefined;
1276
1284
  readonly defaultValue?: unknown;
1285
+ readonly requiredPermissions?: string[] | undefined;
1277
1286
  readonly group?: string | undefined;
1278
1287
  readonly hidden?: boolean | undefined;
1279
1288
  readonly system?: boolean | undefined;
@@ -1448,6 +1457,7 @@ declare const SysApprovalRequest: Omit<{
1448
1457
  readonly dependencies?: string[] | undefined;
1449
1458
  readonly externalId?: boolean | undefined;
1450
1459
  readonly defaultValue?: unknown;
1460
+ readonly requiredPermissions?: string[] | undefined;
1451
1461
  readonly group?: string | undefined;
1452
1462
  readonly hidden?: boolean | undefined;
1453
1463
  readonly system?: boolean | undefined;
@@ -1622,6 +1632,7 @@ declare const SysApprovalRequest: Omit<{
1622
1632
  readonly dependencies?: string[] | undefined;
1623
1633
  readonly externalId?: boolean | undefined;
1624
1634
  readonly defaultValue?: unknown;
1635
+ readonly requiredPermissions?: string[] | undefined;
1625
1636
  readonly group?: string | undefined;
1626
1637
  readonly hidden?: boolean | undefined;
1627
1638
  readonly system?: boolean | undefined;
@@ -1796,6 +1807,7 @@ declare const SysApprovalRequest: Omit<{
1796
1807
  readonly dependencies?: string[] | undefined;
1797
1808
  readonly externalId?: boolean | undefined;
1798
1809
  readonly defaultValue?: unknown;
1810
+ readonly requiredPermissions?: string[] | undefined;
1799
1811
  readonly group?: string | undefined;
1800
1812
  readonly hidden?: boolean | undefined;
1801
1813
  readonly system?: boolean | undefined;
@@ -1970,6 +1982,7 @@ declare const SysApprovalRequest: Omit<{
1970
1982
  readonly dependencies?: string[] | undefined;
1971
1983
  readonly externalId?: boolean | undefined;
1972
1984
  readonly defaultValue?: unknown;
1985
+ readonly requiredPermissions?: string[] | undefined;
1973
1986
  readonly group?: string | undefined;
1974
1987
  readonly hidden?: boolean | undefined;
1975
1988
  readonly system?: boolean | undefined;
@@ -2144,6 +2157,7 @@ declare const SysApprovalRequest: Omit<{
2144
2157
  readonly dependencies?: string[] | undefined;
2145
2158
  readonly externalId?: boolean | undefined;
2146
2159
  readonly defaultValue?: unknown;
2160
+ readonly requiredPermissions?: string[] | undefined;
2147
2161
  readonly group?: string | undefined;
2148
2162
  readonly hidden?: boolean | undefined;
2149
2163
  readonly system?: boolean | undefined;
@@ -2318,6 +2332,7 @@ declare const SysApprovalRequest: Omit<{
2318
2332
  readonly dependencies?: string[] | undefined;
2319
2333
  readonly externalId?: boolean | undefined;
2320
2334
  readonly defaultValue?: unknown;
2335
+ readonly requiredPermissions?: string[] | undefined;
2321
2336
  readonly group?: string | undefined;
2322
2337
  readonly hidden?: boolean | undefined;
2323
2338
  readonly system?: boolean | undefined;
@@ -2492,6 +2507,7 @@ declare const SysApprovalRequest: Omit<{
2492
2507
  readonly dependencies?: string[] | undefined;
2493
2508
  readonly externalId?: boolean | undefined;
2494
2509
  readonly defaultValue?: unknown;
2510
+ readonly requiredPermissions?: string[] | undefined;
2495
2511
  readonly group?: string | undefined;
2496
2512
  readonly hidden?: boolean | undefined;
2497
2513
  readonly system?: boolean | undefined;
@@ -2666,6 +2682,7 @@ declare const SysApprovalRequest: Omit<{
2666
2682
  readonly dependencies?: string[] | undefined;
2667
2683
  readonly externalId?: boolean | undefined;
2668
2684
  readonly defaultValue?: unknown;
2685
+ readonly requiredPermissions?: string[] | undefined;
2669
2686
  readonly group?: string | undefined;
2670
2687
  readonly hidden?: boolean | undefined;
2671
2688
  readonly system?: boolean | undefined;
@@ -2840,6 +2857,7 @@ declare const SysApprovalRequest: Omit<{
2840
2857
  readonly dependencies?: string[] | undefined;
2841
2858
  readonly externalId?: boolean | undefined;
2842
2859
  readonly defaultValue?: unknown;
2860
+ readonly requiredPermissions?: string[] | undefined;
2843
2861
  readonly group?: string | undefined;
2844
2862
  readonly hidden?: boolean | undefined;
2845
2863
  readonly system?: boolean | undefined;
@@ -3014,6 +3032,7 @@ declare const SysApprovalRequest: Omit<{
3014
3032
  readonly dependencies?: string[] | undefined;
3015
3033
  readonly externalId?: boolean | undefined;
3016
3034
  readonly defaultValue?: unknown;
3035
+ readonly requiredPermissions?: string[] | undefined;
3017
3036
  readonly group?: string | undefined;
3018
3037
  readonly hidden?: boolean | undefined;
3019
3038
  readonly system?: boolean | undefined;
@@ -3188,6 +3207,7 @@ declare const SysApprovalRequest: Omit<{
3188
3207
  readonly dependencies?: string[] | undefined;
3189
3208
  readonly externalId?: boolean | undefined;
3190
3209
  readonly defaultValue?: unknown;
3210
+ readonly requiredPermissions?: string[] | undefined;
3191
3211
  readonly group?: string | undefined;
3192
3212
  readonly hidden?: boolean | undefined;
3193
3213
  readonly system?: boolean | undefined;
@@ -3362,6 +3382,7 @@ declare const SysApprovalRequest: Omit<{
3362
3382
  readonly dependencies?: string[] | undefined;
3363
3383
  readonly externalId?: boolean | undefined;
3364
3384
  readonly defaultValue?: unknown;
3385
+ readonly requiredPermissions?: string[] | undefined;
3365
3386
  readonly group?: string | undefined;
3366
3387
  readonly hidden?: boolean | undefined;
3367
3388
  readonly system?: boolean | undefined;
@@ -3536,6 +3557,7 @@ declare const SysApprovalRequest: Omit<{
3536
3557
  readonly dependencies?: string[] | undefined;
3537
3558
  readonly externalId?: boolean | undefined;
3538
3559
  readonly defaultValue?: unknown;
3560
+ readonly requiredPermissions?: string[] | undefined;
3539
3561
  readonly group?: string | undefined;
3540
3562
  readonly hidden?: boolean | undefined;
3541
3563
  readonly system?: boolean | undefined;
@@ -3710,6 +3732,7 @@ declare const SysApprovalRequest: Omit<{
3710
3732
  readonly dependencies?: string[] | undefined;
3711
3733
  readonly externalId?: boolean | undefined;
3712
3734
  readonly defaultValue?: unknown;
3735
+ readonly requiredPermissions?: string[] | undefined;
3713
3736
  readonly group?: string | undefined;
3714
3737
  readonly hidden?: boolean | undefined;
3715
3738
  readonly system?: boolean | undefined;
@@ -3884,6 +3907,7 @@ declare const SysApprovalRequest: Omit<{
3884
3907
  readonly dependencies?: string[] | undefined;
3885
3908
  readonly externalId?: boolean | undefined;
3886
3909
  readonly defaultValue?: unknown;
3910
+ readonly requiredPermissions?: string[] | undefined;
3887
3911
  readonly group?: string | undefined;
3888
3912
  readonly hidden?: boolean | undefined;
3889
3913
  readonly system?: boolean | undefined;
@@ -4278,6 +4302,7 @@ declare const SysApprovalAction: Omit<{
4278
4302
  generatedBy?: string | undefined;
4279
4303
  } | undefined;
4280
4304
  } | undefined;
4305
+ requiredPermissions?: string[] | undefined;
4281
4306
  system?: boolean | undefined;
4282
4307
  inlineHelpText?: string | undefined;
4283
4308
  caseSensitive?: boolean | undefined;
@@ -4353,6 +4378,10 @@ declare const SysApprovalAction: Omit<{
4353
4378
  tenantField: string;
4354
4379
  crossTenantAccess: boolean;
4355
4380
  } | undefined;
4381
+ access?: {
4382
+ default: "public" | "private";
4383
+ } | undefined;
4384
+ requiredPermissions?: string[] | undefined;
4356
4385
  softDelete?: {
4357
4386
  enabled: boolean;
4358
4387
  field: string;
@@ -4719,7 +4748,7 @@ declare const SysApprovalAction: Omit<{
4719
4748
  clone: boolean;
4720
4749
  apiMethods?: ("search" | "create" | "import" | "delete" | "list" | "get" | "update" | "upsert" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
4721
4750
  } | undefined;
4722
- sharingModel?: "full" | "read" | "private" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
4751
+ sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
4723
4752
  publicSharing?: {
4724
4753
  enabled: boolean;
4725
4754
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -4806,6 +4835,7 @@ declare const SysApprovalAction: Omit<{
4806
4835
  generatedBy?: string | undefined;
4807
4836
  } | undefined;
4808
4837
  } | undefined;
4838
+ requiredPermissions?: string[] | undefined;
4809
4839
  shortcut?: string | undefined;
4810
4840
  bulkEnabled?: boolean | undefined;
4811
4841
  ai?: {
@@ -4939,6 +4969,7 @@ declare const SysApprovalAction: Omit<{
4939
4969
  readonly dependencies?: string[] | undefined;
4940
4970
  readonly externalId?: boolean | undefined;
4941
4971
  readonly defaultValue?: unknown;
4972
+ readonly requiredPermissions?: string[] | undefined;
4942
4973
  readonly group?: string | undefined;
4943
4974
  readonly hidden?: boolean | undefined;
4944
4975
  readonly system?: boolean | undefined;
@@ -5113,6 +5144,7 @@ declare const SysApprovalAction: Omit<{
5113
5144
  readonly dependencies?: string[] | undefined;
5114
5145
  readonly externalId?: boolean | undefined;
5115
5146
  readonly defaultValue?: unknown;
5147
+ readonly requiredPermissions?: string[] | undefined;
5116
5148
  readonly group?: string | undefined;
5117
5149
  readonly hidden?: boolean | undefined;
5118
5150
  readonly system?: boolean | undefined;
@@ -5287,6 +5319,7 @@ declare const SysApprovalAction: Omit<{
5287
5319
  readonly dependencies?: string[] | undefined;
5288
5320
  readonly externalId?: boolean | undefined;
5289
5321
  readonly defaultValue?: unknown;
5322
+ readonly requiredPermissions?: string[] | undefined;
5290
5323
  readonly group?: string | undefined;
5291
5324
  readonly hidden?: boolean | undefined;
5292
5325
  readonly system?: boolean | undefined;
@@ -5461,6 +5494,7 @@ declare const SysApprovalAction: Omit<{
5461
5494
  readonly dependencies?: string[] | undefined;
5462
5495
  readonly externalId?: boolean | undefined;
5463
5496
  readonly defaultValue?: unknown;
5497
+ readonly requiredPermissions?: string[] | undefined;
5464
5498
  readonly group?: string | undefined;
5465
5499
  readonly hidden?: boolean | undefined;
5466
5500
  readonly system?: boolean | undefined;
@@ -5635,6 +5669,7 @@ declare const SysApprovalAction: Omit<{
5635
5669
  readonly dependencies?: string[] | undefined;
5636
5670
  readonly externalId?: boolean | undefined;
5637
5671
  readonly defaultValue?: unknown;
5672
+ readonly requiredPermissions?: string[] | undefined;
5638
5673
  readonly group?: string | undefined;
5639
5674
  readonly hidden?: boolean | undefined;
5640
5675
  readonly system?: boolean | undefined;
@@ -5809,6 +5844,7 @@ declare const SysApprovalAction: Omit<{
5809
5844
  readonly dependencies?: string[] | undefined;
5810
5845
  readonly externalId?: boolean | undefined;
5811
5846
  readonly defaultValue?: unknown;
5847
+ readonly requiredPermissions?: string[] | undefined;
5812
5848
  readonly group?: string | undefined;
5813
5849
  readonly hidden?: boolean | undefined;
5814
5850
  readonly system?: boolean | undefined;
@@ -5983,6 +6019,7 @@ declare const SysApprovalAction: Omit<{
5983
6019
  readonly dependencies?: string[] | undefined;
5984
6020
  readonly externalId?: boolean | undefined;
5985
6021
  readonly defaultValue?: unknown;
6022
+ readonly requiredPermissions?: string[] | undefined;
5986
6023
  readonly group?: string | undefined;
5987
6024
  readonly hidden?: boolean | undefined;
5988
6025
  readonly system?: boolean | undefined;
@@ -6157,6 +6194,7 @@ declare const SysApprovalAction: Omit<{
6157
6194
  readonly dependencies?: string[] | undefined;
6158
6195
  readonly externalId?: boolean | undefined;
6159
6196
  readonly defaultValue?: unknown;
6197
+ readonly requiredPermissions?: string[] | undefined;
6160
6198
  readonly group?: string | undefined;
6161
6199
  readonly hidden?: boolean | undefined;
6162
6200
  readonly system?: boolean | undefined;
@@ -6331,6 +6369,7 @@ declare const SysApprovalAction: Omit<{
6331
6369
  readonly dependencies?: string[] | undefined;
6332
6370
  readonly externalId?: boolean | undefined;
6333
6371
  readonly defaultValue?: unknown;
6372
+ readonly requiredPermissions?: string[] | undefined;
6334
6373
  readonly group?: string | undefined;
6335
6374
  readonly hidden?: boolean | undefined;
6336
6375
  readonly system?: boolean | undefined;
@@ -6732,6 +6771,7 @@ declare const SysApprovalApprover: Omit<{
6732
6771
  generatedBy?: string | undefined;
6733
6772
  } | undefined;
6734
6773
  } | undefined;
6774
+ requiredPermissions?: string[] | undefined;
6735
6775
  system?: boolean | undefined;
6736
6776
  inlineHelpText?: string | undefined;
6737
6777
  caseSensitive?: boolean | undefined;
@@ -6807,6 +6847,10 @@ declare const SysApprovalApprover: Omit<{
6807
6847
  tenantField: string;
6808
6848
  crossTenantAccess: boolean;
6809
6849
  } | undefined;
6850
+ access?: {
6851
+ default: "public" | "private";
6852
+ } | undefined;
6853
+ requiredPermissions?: string[] | undefined;
6810
6854
  softDelete?: {
6811
6855
  enabled: boolean;
6812
6856
  field: string;
@@ -7173,7 +7217,7 @@ declare const SysApprovalApprover: Omit<{
7173
7217
  clone: boolean;
7174
7218
  apiMethods?: ("search" | "create" | "import" | "delete" | "list" | "get" | "update" | "upsert" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
7175
7219
  } | undefined;
7176
- sharingModel?: "full" | "read" | "private" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
7220
+ sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
7177
7221
  publicSharing?: {
7178
7222
  enabled: boolean;
7179
7223
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -7260,6 +7304,7 @@ declare const SysApprovalApprover: Omit<{
7260
7304
  generatedBy?: string | undefined;
7261
7305
  } | undefined;
7262
7306
  } | undefined;
7307
+ requiredPermissions?: string[] | undefined;
7263
7308
  shortcut?: string | undefined;
7264
7309
  bulkEnabled?: boolean | undefined;
7265
7310
  ai?: {
@@ -7326,6 +7371,7 @@ declare const SysApprovalApprover: Omit<{
7326
7371
  readonly dependencies?: string[] | undefined;
7327
7372
  readonly externalId?: boolean | undefined;
7328
7373
  readonly defaultValue?: unknown;
7374
+ readonly requiredPermissions?: string[] | undefined;
7329
7375
  readonly group?: string | undefined;
7330
7376
  readonly hidden?: boolean | undefined;
7331
7377
  readonly system?: boolean | undefined;
@@ -7500,6 +7546,7 @@ declare const SysApprovalApprover: Omit<{
7500
7546
  readonly dependencies?: string[] | undefined;
7501
7547
  readonly externalId?: boolean | undefined;
7502
7548
  readonly defaultValue?: unknown;
7549
+ readonly requiredPermissions?: string[] | undefined;
7503
7550
  readonly group?: string | undefined;
7504
7551
  readonly hidden?: boolean | undefined;
7505
7552
  readonly system?: boolean | undefined;
@@ -7674,6 +7721,7 @@ declare const SysApprovalApprover: Omit<{
7674
7721
  readonly dependencies?: string[] | undefined;
7675
7722
  readonly externalId?: boolean | undefined;
7676
7723
  readonly defaultValue?: unknown;
7724
+ readonly requiredPermissions?: string[] | undefined;
7677
7725
  readonly group?: string | undefined;
7678
7726
  readonly hidden?: boolean | undefined;
7679
7727
  readonly system?: boolean | undefined;
@@ -7848,6 +7896,7 @@ declare const SysApprovalApprover: Omit<{
7848
7896
  readonly dependencies?: string[] | undefined;
7849
7897
  readonly externalId?: boolean | undefined;
7850
7898
  readonly defaultValue?: unknown;
7899
+ readonly requiredPermissions?: string[] | undefined;
7851
7900
  readonly group?: string | undefined;
7852
7901
  readonly hidden?: boolean | undefined;
7853
7902
  readonly system?: boolean | undefined;
@@ -8022,6 +8071,7 @@ declare const SysApprovalApprover: Omit<{
8022
8071
  readonly dependencies?: string[] | undefined;
8023
8072
  readonly externalId?: boolean | undefined;
8024
8073
  readonly defaultValue?: unknown;
8074
+ readonly requiredPermissions?: string[] | undefined;
8025
8075
  readonly group?: string | undefined;
8026
8076
  readonly hidden?: boolean | undefined;
8027
8077
  readonly system?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/plugin-approvals",
3
- "version": "10.0.0",
3
+ "version": "10.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Multi-step approval engine for ObjectStack — sys_approval_process + sys_approval_request + sys_approval_action + IApprovalService.",
6
6
  "main": "dist/index.js",
@@ -13,17 +13,17 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "@objectstack/core": "10.0.0",
17
- "@objectstack/formula": "10.0.0",
18
- "@objectstack/metadata-core": "10.0.0",
19
- "@objectstack/platform-objects": "10.0.0",
20
- "@objectstack/spec": "10.0.0"
16
+ "@objectstack/core": "10.3.0",
17
+ "@objectstack/formula": "10.3.0",
18
+ "@objectstack/metadata-core": "10.3.0",
19
+ "@objectstack/platform-objects": "10.3.0",
20
+ "@objectstack/spec": "10.3.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^26.0.0",
24
24
  "typescript": "^6.0.3",
25
25
  "vitest": "^4.1.9",
26
- "@objectstack/service-automation": "10.0.0"
26
+ "@objectstack/service-automation": "10.3.0"
27
27
  },
28
28
  "keywords": [
29
29
  "objectstack",