@objectstack/plugin-approvals 17.0.0-rc.3 → 17.0.0-rc.4
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/CHANGELOG.md +278 -8
- package/dist/index.d.mts +176 -95
- package/dist/index.d.ts +176 -95
- package/dist/index.js +157 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +155 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -10
package/dist/index.d.mts
CHANGED
|
@@ -29,11 +29,11 @@ declare const SysApprovalRequest: Omit<{
|
|
|
29
29
|
isSystem: boolean;
|
|
30
30
|
datasource: string;
|
|
31
31
|
fields: Record<string, {
|
|
32
|
-
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
32
|
+
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
|
|
33
33
|
required: boolean;
|
|
34
34
|
searchable: boolean;
|
|
35
35
|
multiple: boolean;
|
|
36
|
-
unique: boolean | "global";
|
|
36
|
+
unique: boolean | "global" | "organization";
|
|
37
37
|
deleteBehavior: "set_null" | "cascade" | "restrict";
|
|
38
38
|
hidden: boolean;
|
|
39
39
|
readonly: boolean;
|
|
@@ -312,10 +312,10 @@ declare const SysApprovalRequest: Omit<{
|
|
|
312
312
|
} | undefined;
|
|
313
313
|
indexes?: {
|
|
314
314
|
fields: string[];
|
|
315
|
-
|
|
316
|
-
unique: boolean | "global";
|
|
315
|
+
unique: boolean | "global" | "organization";
|
|
317
316
|
name?: string | undefined;
|
|
318
|
-
|
|
317
|
+
type?: undefined;
|
|
318
|
+
partial?: undefined;
|
|
319
319
|
}[] | undefined;
|
|
320
320
|
fieldGroups?: {
|
|
321
321
|
key: string;
|
|
@@ -329,7 +329,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
329
329
|
}[] | undefined;
|
|
330
330
|
tenancy?: {
|
|
331
331
|
enabled: boolean;
|
|
332
|
-
tenantField
|
|
332
|
+
tenantField?: string | undefined;
|
|
333
333
|
} | undefined;
|
|
334
334
|
access?: {
|
|
335
335
|
default: "public" | "private";
|
|
@@ -444,14 +444,14 @@ declare const SysApprovalRequest: Omit<{
|
|
|
444
444
|
provider: "api";
|
|
445
445
|
read?: {
|
|
446
446
|
url: string;
|
|
447
|
-
method: "
|
|
447
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
448
448
|
headers?: Record<string, string> | undefined;
|
|
449
449
|
params?: Record<string, unknown> | undefined;
|
|
450
450
|
body?: unknown;
|
|
451
451
|
} | undefined;
|
|
452
452
|
write?: {
|
|
453
453
|
url: string;
|
|
454
|
-
method: "
|
|
454
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
455
455
|
headers?: Record<string, string> | undefined;
|
|
456
456
|
params?: Record<string, unknown> | undefined;
|
|
457
457
|
body?: unknown;
|
|
@@ -620,7 +620,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
620
620
|
params?: {
|
|
621
621
|
[x: string]: unknown;
|
|
622
622
|
name: string;
|
|
623
|
-
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
623
|
+
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
|
|
624
624
|
label?: string | undefined;
|
|
625
625
|
help?: string | undefined;
|
|
626
626
|
required?: boolean | undefined;
|
|
@@ -759,7 +759,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
759
759
|
field?: string | undefined;
|
|
760
760
|
objectOverride?: string | undefined;
|
|
761
761
|
label?: string | undefined;
|
|
762
|
-
type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
762
|
+
type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
|
|
763
763
|
options?: {
|
|
764
764
|
label: string;
|
|
765
765
|
value: string;
|
|
@@ -781,7 +781,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
781
781
|
generatedBy?: string | undefined;
|
|
782
782
|
} | undefined;
|
|
783
783
|
} | undefined;
|
|
784
|
-
requiresFeature?: "
|
|
784
|
+
requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
|
|
785
785
|
}, "requiresFeature">[] | undefined;
|
|
786
786
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
787
787
|
order?: number | undefined;
|
|
@@ -809,7 +809,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
809
809
|
generatedBy?: string | undefined;
|
|
810
810
|
} | undefined;
|
|
811
811
|
} | undefined;
|
|
812
|
-
requiresFeature?: "
|
|
812
|
+
requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
|
|
813
813
|
disabled?: boolean | {
|
|
814
814
|
dialect: "cel" | "cron" | "template";
|
|
815
815
|
source?: string | undefined;
|
|
@@ -839,7 +839,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
839
839
|
bodyShape?: "flat" | {
|
|
840
840
|
wrap: string;
|
|
841
841
|
} | undefined;
|
|
842
|
-
method?: "POST" | "
|
|
842
|
+
method?: "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
|
|
843
843
|
bodyExtra?: Record<string, unknown> | undefined;
|
|
844
844
|
mode?: "custom" | "delete" | "edit" | "create" | undefined;
|
|
845
845
|
opensInNewTab?: boolean | undefined;
|
|
@@ -1032,7 +1032,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
1032
1032
|
} | undefined;
|
|
1033
1033
|
readonly scale?: number | undefined;
|
|
1034
1034
|
readonly searchable?: boolean | undefined;
|
|
1035
|
-
readonly unique?: boolean | "global" | undefined;
|
|
1035
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
1036
1036
|
readonly defaultValue?: unknown;
|
|
1037
1037
|
readonly maxLength?: number | undefined;
|
|
1038
1038
|
readonly minLength?: number | undefined;
|
|
@@ -1179,7 +1179,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
1179
1179
|
} | undefined;
|
|
1180
1180
|
readonly scale?: number | undefined;
|
|
1181
1181
|
readonly searchable?: boolean | undefined;
|
|
1182
|
-
readonly unique?: boolean | "global" | undefined;
|
|
1182
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
1183
1183
|
readonly defaultValue?: unknown;
|
|
1184
1184
|
readonly maxLength?: number | undefined;
|
|
1185
1185
|
readonly minLength?: number | undefined;
|
|
@@ -1317,7 +1317,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
1317
1317
|
} | undefined;
|
|
1318
1318
|
readonly scale?: number | undefined;
|
|
1319
1319
|
readonly searchable?: boolean | undefined;
|
|
1320
|
-
readonly unique?: boolean | "global" | undefined;
|
|
1320
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
1321
1321
|
readonly defaultValue?: unknown;
|
|
1322
1322
|
readonly maxLength?: number | undefined;
|
|
1323
1323
|
readonly minLength?: number | undefined;
|
|
@@ -1455,7 +1455,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
1455
1455
|
} | undefined;
|
|
1456
1456
|
readonly scale?: number | undefined;
|
|
1457
1457
|
readonly searchable?: boolean | undefined;
|
|
1458
|
-
readonly unique?: boolean | "global" | undefined;
|
|
1458
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
1459
1459
|
readonly defaultValue?: unknown;
|
|
1460
1460
|
readonly maxLength?: number | undefined;
|
|
1461
1461
|
readonly minLength?: number | undefined;
|
|
@@ -1601,7 +1601,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
1601
1601
|
} | undefined;
|
|
1602
1602
|
readonly scale?: number | undefined;
|
|
1603
1603
|
readonly searchable?: boolean | undefined;
|
|
1604
|
-
readonly unique?: boolean | "global" | undefined;
|
|
1604
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
1605
1605
|
readonly defaultValue?: unknown;
|
|
1606
1606
|
readonly maxLength?: number | undefined;
|
|
1607
1607
|
readonly minLength?: number | undefined;
|
|
@@ -1739,7 +1739,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
1739
1739
|
} | undefined;
|
|
1740
1740
|
readonly scale?: number | undefined;
|
|
1741
1741
|
readonly searchable?: boolean | undefined;
|
|
1742
|
-
readonly unique?: boolean | "global" | undefined;
|
|
1742
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
1743
1743
|
readonly defaultValue?: unknown;
|
|
1744
1744
|
readonly maxLength?: number | undefined;
|
|
1745
1745
|
readonly minLength?: number | undefined;
|
|
@@ -1877,7 +1877,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
1877
1877
|
} | undefined;
|
|
1878
1878
|
readonly scale?: number | undefined;
|
|
1879
1879
|
readonly searchable?: boolean | undefined;
|
|
1880
|
-
readonly unique?: boolean | "global" | undefined;
|
|
1880
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
1881
1881
|
readonly defaultValue?: unknown;
|
|
1882
1882
|
readonly maxLength?: number | undefined;
|
|
1883
1883
|
readonly minLength?: number | undefined;
|
|
@@ -2015,7 +2015,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
2015
2015
|
} | undefined;
|
|
2016
2016
|
readonly scale?: number | undefined;
|
|
2017
2017
|
readonly searchable?: boolean | undefined;
|
|
2018
|
-
readonly unique?: boolean | "global" | undefined;
|
|
2018
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
2019
2019
|
readonly defaultValue?: unknown;
|
|
2020
2020
|
readonly maxLength?: number | undefined;
|
|
2021
2021
|
readonly minLength?: number | undefined;
|
|
@@ -2153,7 +2153,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
2153
2153
|
} | undefined;
|
|
2154
2154
|
readonly scale?: number | undefined;
|
|
2155
2155
|
readonly searchable?: boolean | undefined;
|
|
2156
|
-
readonly unique?: boolean | "global" | undefined;
|
|
2156
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
2157
2157
|
readonly defaultValue?: unknown;
|
|
2158
2158
|
readonly maxLength?: number | undefined;
|
|
2159
2159
|
readonly minLength?: number | undefined;
|
|
@@ -2291,7 +2291,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
2291
2291
|
} | undefined;
|
|
2292
2292
|
readonly scale?: number | undefined;
|
|
2293
2293
|
readonly searchable?: boolean | undefined;
|
|
2294
|
-
readonly unique?: boolean | "global" | undefined;
|
|
2294
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
2295
2295
|
readonly defaultValue?: unknown;
|
|
2296
2296
|
readonly maxLength?: number | undefined;
|
|
2297
2297
|
readonly minLength?: number | undefined;
|
|
@@ -2429,7 +2429,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
2429
2429
|
} | undefined;
|
|
2430
2430
|
readonly scale?: number | undefined;
|
|
2431
2431
|
readonly searchable?: boolean | undefined;
|
|
2432
|
-
readonly unique?: boolean | "global" | undefined;
|
|
2432
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
2433
2433
|
readonly defaultValue?: unknown;
|
|
2434
2434
|
readonly maxLength?: number | undefined;
|
|
2435
2435
|
readonly minLength?: number | undefined;
|
|
@@ -2567,7 +2567,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
2567
2567
|
} | undefined;
|
|
2568
2568
|
readonly scale?: number | undefined;
|
|
2569
2569
|
readonly searchable?: boolean | undefined;
|
|
2570
|
-
readonly unique?: boolean | "global" | undefined;
|
|
2570
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
2571
2571
|
readonly defaultValue?: unknown;
|
|
2572
2572
|
readonly maxLength?: number | undefined;
|
|
2573
2573
|
readonly minLength?: number | undefined;
|
|
@@ -2705,7 +2705,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
2705
2705
|
} | undefined;
|
|
2706
2706
|
readonly scale?: number | undefined;
|
|
2707
2707
|
readonly searchable?: boolean | undefined;
|
|
2708
|
-
readonly unique?: boolean | "global" | undefined;
|
|
2708
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
2709
2709
|
readonly defaultValue?: unknown;
|
|
2710
2710
|
readonly maxLength?: number | undefined;
|
|
2711
2711
|
readonly minLength?: number | undefined;
|
|
@@ -2843,7 +2843,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
2843
2843
|
} | undefined;
|
|
2844
2844
|
readonly scale?: number | undefined;
|
|
2845
2845
|
readonly searchable?: boolean | undefined;
|
|
2846
|
-
readonly unique?: boolean | "global" | undefined;
|
|
2846
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
2847
2847
|
readonly defaultValue?: unknown;
|
|
2848
2848
|
readonly maxLength?: number | undefined;
|
|
2849
2849
|
readonly minLength?: number | undefined;
|
|
@@ -2981,7 +2981,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
2981
2981
|
} | undefined;
|
|
2982
2982
|
readonly scale?: number | undefined;
|
|
2983
2983
|
readonly searchable?: boolean | undefined;
|
|
2984
|
-
readonly unique?: boolean | "global" | undefined;
|
|
2984
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
2985
2985
|
readonly defaultValue?: unknown;
|
|
2986
2986
|
readonly maxLength?: number | undefined;
|
|
2987
2987
|
readonly minLength?: number | undefined;
|
|
@@ -3119,7 +3119,7 @@ declare const SysApprovalRequest: Omit<{
|
|
|
3119
3119
|
} | undefined;
|
|
3120
3120
|
readonly scale?: number | undefined;
|
|
3121
3121
|
readonly searchable?: boolean | undefined;
|
|
3122
|
-
readonly unique?: boolean | "global" | undefined;
|
|
3122
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
3123
3123
|
readonly defaultValue?: unknown;
|
|
3124
3124
|
readonly maxLength?: number | undefined;
|
|
3125
3125
|
readonly minLength?: number | undefined;
|
|
@@ -3376,11 +3376,11 @@ declare const SysApprovalAction: Omit<{
|
|
|
3376
3376
|
isSystem: boolean;
|
|
3377
3377
|
datasource: string;
|
|
3378
3378
|
fields: Record<string, {
|
|
3379
|
-
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
3379
|
+
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
|
|
3380
3380
|
required: boolean;
|
|
3381
3381
|
searchable: boolean;
|
|
3382
3382
|
multiple: boolean;
|
|
3383
|
-
unique: boolean | "global";
|
|
3383
|
+
unique: boolean | "global" | "organization";
|
|
3384
3384
|
deleteBehavior: "set_null" | "cascade" | "restrict";
|
|
3385
3385
|
hidden: boolean;
|
|
3386
3386
|
readonly: boolean;
|
|
@@ -3659,10 +3659,10 @@ declare const SysApprovalAction: Omit<{
|
|
|
3659
3659
|
} | undefined;
|
|
3660
3660
|
indexes?: {
|
|
3661
3661
|
fields: string[];
|
|
3662
|
-
|
|
3663
|
-
unique: boolean | "global";
|
|
3662
|
+
unique: boolean | "global" | "organization";
|
|
3664
3663
|
name?: string | undefined;
|
|
3665
|
-
|
|
3664
|
+
type?: undefined;
|
|
3665
|
+
partial?: undefined;
|
|
3666
3666
|
}[] | undefined;
|
|
3667
3667
|
fieldGroups?: {
|
|
3668
3668
|
key: string;
|
|
@@ -3676,7 +3676,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
3676
3676
|
}[] | undefined;
|
|
3677
3677
|
tenancy?: {
|
|
3678
3678
|
enabled: boolean;
|
|
3679
|
-
tenantField
|
|
3679
|
+
tenantField?: string | undefined;
|
|
3680
3680
|
} | undefined;
|
|
3681
3681
|
access?: {
|
|
3682
3682
|
default: "public" | "private";
|
|
@@ -3791,14 +3791,14 @@ declare const SysApprovalAction: Omit<{
|
|
|
3791
3791
|
provider: "api";
|
|
3792
3792
|
read?: {
|
|
3793
3793
|
url: string;
|
|
3794
|
-
method: "
|
|
3794
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3795
3795
|
headers?: Record<string, string> | undefined;
|
|
3796
3796
|
params?: Record<string, unknown> | undefined;
|
|
3797
3797
|
body?: unknown;
|
|
3798
3798
|
} | undefined;
|
|
3799
3799
|
write?: {
|
|
3800
3800
|
url: string;
|
|
3801
|
-
method: "
|
|
3801
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3802
3802
|
headers?: Record<string, string> | undefined;
|
|
3803
3803
|
params?: Record<string, unknown> | undefined;
|
|
3804
3804
|
body?: unknown;
|
|
@@ -3967,7 +3967,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
3967
3967
|
params?: {
|
|
3968
3968
|
[x: string]: unknown;
|
|
3969
3969
|
name: string;
|
|
3970
|
-
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
3970
|
+
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
|
|
3971
3971
|
label?: string | undefined;
|
|
3972
3972
|
help?: string | undefined;
|
|
3973
3973
|
required?: boolean | undefined;
|
|
@@ -4106,7 +4106,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4106
4106
|
field?: string | undefined;
|
|
4107
4107
|
objectOverride?: string | undefined;
|
|
4108
4108
|
label?: string | undefined;
|
|
4109
|
-
type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
4109
|
+
type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
|
|
4110
4110
|
options?: {
|
|
4111
4111
|
label: string;
|
|
4112
4112
|
value: string;
|
|
@@ -4128,7 +4128,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4128
4128
|
generatedBy?: string | undefined;
|
|
4129
4129
|
} | undefined;
|
|
4130
4130
|
} | undefined;
|
|
4131
|
-
requiresFeature?: "
|
|
4131
|
+
requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
|
|
4132
4132
|
}, "requiresFeature">[] | undefined;
|
|
4133
4133
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
4134
4134
|
order?: number | undefined;
|
|
@@ -4156,7 +4156,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4156
4156
|
generatedBy?: string | undefined;
|
|
4157
4157
|
} | undefined;
|
|
4158
4158
|
} | undefined;
|
|
4159
|
-
requiresFeature?: "
|
|
4159
|
+
requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
|
|
4160
4160
|
disabled?: boolean | {
|
|
4161
4161
|
dialect: "cel" | "cron" | "template";
|
|
4162
4162
|
source?: string | undefined;
|
|
@@ -4186,7 +4186,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4186
4186
|
bodyShape?: "flat" | {
|
|
4187
4187
|
wrap: string;
|
|
4188
4188
|
} | undefined;
|
|
4189
|
-
method?: "POST" | "
|
|
4189
|
+
method?: "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
|
|
4190
4190
|
bodyExtra?: Record<string, unknown> | undefined;
|
|
4191
4191
|
mode?: "custom" | "delete" | "edit" | "create" | undefined;
|
|
4192
4192
|
opensInNewTab?: boolean | undefined;
|
|
@@ -4354,7 +4354,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4354
4354
|
} | undefined;
|
|
4355
4355
|
readonly scale?: number | undefined;
|
|
4356
4356
|
readonly searchable?: boolean | undefined;
|
|
4357
|
-
readonly unique?: boolean | "global" | undefined;
|
|
4357
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
4358
4358
|
readonly defaultValue?: unknown;
|
|
4359
4359
|
readonly maxLength?: number | undefined;
|
|
4360
4360
|
readonly minLength?: number | undefined;
|
|
@@ -4509,7 +4509,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4509
4509
|
} | undefined;
|
|
4510
4510
|
readonly scale?: number | undefined;
|
|
4511
4511
|
readonly searchable?: boolean | undefined;
|
|
4512
|
-
readonly unique?: boolean | "global" | undefined;
|
|
4512
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
4513
4513
|
readonly defaultValue?: unknown;
|
|
4514
4514
|
readonly maxLength?: number | undefined;
|
|
4515
4515
|
readonly minLength?: number | undefined;
|
|
@@ -4647,7 +4647,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4647
4647
|
} | undefined;
|
|
4648
4648
|
readonly scale?: number | undefined;
|
|
4649
4649
|
readonly searchable?: boolean | undefined;
|
|
4650
|
-
readonly unique?: boolean | "global" | undefined;
|
|
4650
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
4651
4651
|
readonly defaultValue?: unknown;
|
|
4652
4652
|
readonly maxLength?: number | undefined;
|
|
4653
4653
|
readonly minLength?: number | undefined;
|
|
@@ -4785,7 +4785,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4785
4785
|
} | undefined;
|
|
4786
4786
|
readonly scale?: number | undefined;
|
|
4787
4787
|
readonly searchable?: boolean | undefined;
|
|
4788
|
-
readonly unique?: boolean | "global" | undefined;
|
|
4788
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
4789
4789
|
readonly defaultValue?: unknown;
|
|
4790
4790
|
readonly maxLength?: number | undefined;
|
|
4791
4791
|
readonly minLength?: number | undefined;
|
|
@@ -4931,7 +4931,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
4931
4931
|
} | undefined;
|
|
4932
4932
|
readonly scale?: number | undefined;
|
|
4933
4933
|
readonly searchable?: boolean | undefined;
|
|
4934
|
-
readonly unique?: boolean | "global" | undefined;
|
|
4934
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
4935
4935
|
readonly defaultValue?: unknown;
|
|
4936
4936
|
readonly maxLength?: number | undefined;
|
|
4937
4937
|
readonly minLength?: number | undefined;
|
|
@@ -5069,7 +5069,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
5069
5069
|
} | undefined;
|
|
5070
5070
|
readonly scale?: number | undefined;
|
|
5071
5071
|
readonly searchable?: boolean | undefined;
|
|
5072
|
-
readonly unique?: boolean | "global" | undefined;
|
|
5072
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
5073
5073
|
readonly defaultValue?: unknown;
|
|
5074
5074
|
readonly maxLength?: number | undefined;
|
|
5075
5075
|
readonly minLength?: number | undefined;
|
|
@@ -5225,7 +5225,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
5225
5225
|
} | undefined;
|
|
5226
5226
|
readonly scale?: number | undefined;
|
|
5227
5227
|
readonly searchable?: boolean | undefined;
|
|
5228
|
-
readonly unique?: boolean | "global" | undefined;
|
|
5228
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
5229
5229
|
readonly defaultValue?: unknown;
|
|
5230
5230
|
readonly maxLength?: number | undefined;
|
|
5231
5231
|
readonly minLength?: number | undefined;
|
|
@@ -5363,7 +5363,7 @@ declare const SysApprovalAction: Omit<{
|
|
|
5363
5363
|
} | undefined;
|
|
5364
5364
|
readonly scale?: number | undefined;
|
|
5365
5365
|
readonly searchable?: boolean | undefined;
|
|
5366
|
-
readonly unique?: boolean | "global" | undefined;
|
|
5366
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
5367
5367
|
readonly defaultValue?: unknown;
|
|
5368
5368
|
readonly maxLength?: number | undefined;
|
|
5369
5369
|
readonly minLength?: number | undefined;
|
|
@@ -5468,11 +5468,11 @@ declare const SysApprovalApprover: Omit<{
|
|
|
5468
5468
|
isSystem: boolean;
|
|
5469
5469
|
datasource: string;
|
|
5470
5470
|
fields: Record<string, {
|
|
5471
|
-
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
5471
|
+
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
|
|
5472
5472
|
required: boolean;
|
|
5473
5473
|
searchable: boolean;
|
|
5474
5474
|
multiple: boolean;
|
|
5475
|
-
unique: boolean | "global";
|
|
5475
|
+
unique: boolean | "global" | "organization";
|
|
5476
5476
|
deleteBehavior: "set_null" | "cascade" | "restrict";
|
|
5477
5477
|
hidden: boolean;
|
|
5478
5478
|
readonly: boolean;
|
|
@@ -5751,10 +5751,10 @@ declare const SysApprovalApprover: Omit<{
|
|
|
5751
5751
|
} | undefined;
|
|
5752
5752
|
indexes?: {
|
|
5753
5753
|
fields: string[];
|
|
5754
|
-
|
|
5755
|
-
unique: boolean | "global";
|
|
5754
|
+
unique: boolean | "global" | "organization";
|
|
5756
5755
|
name?: string | undefined;
|
|
5757
|
-
|
|
5756
|
+
type?: undefined;
|
|
5757
|
+
partial?: undefined;
|
|
5758
5758
|
}[] | undefined;
|
|
5759
5759
|
fieldGroups?: {
|
|
5760
5760
|
key: string;
|
|
@@ -5768,7 +5768,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
5768
5768
|
}[] | undefined;
|
|
5769
5769
|
tenancy?: {
|
|
5770
5770
|
enabled: boolean;
|
|
5771
|
-
tenantField
|
|
5771
|
+
tenantField?: string | undefined;
|
|
5772
5772
|
} | undefined;
|
|
5773
5773
|
access?: {
|
|
5774
5774
|
default: "public" | "private";
|
|
@@ -5883,14 +5883,14 @@ declare const SysApprovalApprover: Omit<{
|
|
|
5883
5883
|
provider: "api";
|
|
5884
5884
|
read?: {
|
|
5885
5885
|
url: string;
|
|
5886
|
-
method: "
|
|
5886
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
5887
5887
|
headers?: Record<string, string> | undefined;
|
|
5888
5888
|
params?: Record<string, unknown> | undefined;
|
|
5889
5889
|
body?: unknown;
|
|
5890
5890
|
} | undefined;
|
|
5891
5891
|
write?: {
|
|
5892
5892
|
url: string;
|
|
5893
|
-
method: "
|
|
5893
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
5894
5894
|
headers?: Record<string, string> | undefined;
|
|
5895
5895
|
params?: Record<string, unknown> | undefined;
|
|
5896
5896
|
body?: unknown;
|
|
@@ -6059,7 +6059,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
6059
6059
|
params?: {
|
|
6060
6060
|
[x: string]: unknown;
|
|
6061
6061
|
name: string;
|
|
6062
|
-
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
6062
|
+
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
|
|
6063
6063
|
label?: string | undefined;
|
|
6064
6064
|
help?: string | undefined;
|
|
6065
6065
|
required?: boolean | undefined;
|
|
@@ -6198,7 +6198,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
6198
6198
|
field?: string | undefined;
|
|
6199
6199
|
objectOverride?: string | undefined;
|
|
6200
6200
|
label?: string | undefined;
|
|
6201
|
-
type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
6201
|
+
type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
|
|
6202
6202
|
options?: {
|
|
6203
6203
|
label: string;
|
|
6204
6204
|
value: string;
|
|
@@ -6220,7 +6220,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
6220
6220
|
generatedBy?: string | undefined;
|
|
6221
6221
|
} | undefined;
|
|
6222
6222
|
} | undefined;
|
|
6223
|
-
requiresFeature?: "
|
|
6223
|
+
requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
|
|
6224
6224
|
}, "requiresFeature">[] | undefined;
|
|
6225
6225
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
6226
6226
|
order?: number | undefined;
|
|
@@ -6248,7 +6248,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
6248
6248
|
generatedBy?: string | undefined;
|
|
6249
6249
|
} | undefined;
|
|
6250
6250
|
} | undefined;
|
|
6251
|
-
requiresFeature?: "
|
|
6251
|
+
requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
|
|
6252
6252
|
disabled?: boolean | {
|
|
6253
6253
|
dialect: "cel" | "cron" | "template";
|
|
6254
6254
|
source?: string | undefined;
|
|
@@ -6278,7 +6278,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
6278
6278
|
bodyShape?: "flat" | {
|
|
6279
6279
|
wrap: string;
|
|
6280
6280
|
} | undefined;
|
|
6281
|
-
method?: "POST" | "
|
|
6281
|
+
method?: "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
|
|
6282
6282
|
bodyExtra?: Record<string, unknown> | undefined;
|
|
6283
6283
|
mode?: "custom" | "delete" | "edit" | "create" | undefined;
|
|
6284
6284
|
opensInNewTab?: boolean | undefined;
|
|
@@ -6378,7 +6378,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
6378
6378
|
} | undefined;
|
|
6379
6379
|
readonly scale?: number | undefined;
|
|
6380
6380
|
readonly searchable?: boolean | undefined;
|
|
6381
|
-
readonly unique?: boolean | "global" | undefined;
|
|
6381
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
6382
6382
|
readonly defaultValue?: unknown;
|
|
6383
6383
|
readonly maxLength?: number | undefined;
|
|
6384
6384
|
readonly minLength?: number | undefined;
|
|
@@ -6533,7 +6533,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
6533
6533
|
} | undefined;
|
|
6534
6534
|
readonly scale?: number | undefined;
|
|
6535
6535
|
readonly searchable?: boolean | undefined;
|
|
6536
|
-
readonly unique?: boolean | "global" | undefined;
|
|
6536
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
6537
6537
|
readonly defaultValue?: unknown;
|
|
6538
6538
|
readonly maxLength?: number | undefined;
|
|
6539
6539
|
readonly minLength?: number | undefined;
|
|
@@ -6671,7 +6671,7 @@ declare const SysApprovalApprover: Omit<{
|
|
|
6671
6671
|
} | undefined;
|
|
6672
6672
|
readonly scale?: number | undefined;
|
|
6673
6673
|
readonly searchable?: boolean | undefined;
|
|
6674
|
-
readonly unique?: boolean | "global" | undefined;
|
|
6674
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
6675
6675
|
readonly defaultValue?: unknown;
|
|
6676
6676
|
readonly maxLength?: number | undefined;
|
|
6677
6677
|
readonly minLength?: number | undefined;
|
|
@@ -6779,11 +6779,11 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
6779
6779
|
isSystem: boolean;
|
|
6780
6780
|
datasource: string;
|
|
6781
6781
|
fields: Record<string, {
|
|
6782
|
-
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
6782
|
+
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
|
|
6783
6783
|
required: boolean;
|
|
6784
6784
|
searchable: boolean;
|
|
6785
6785
|
multiple: boolean;
|
|
6786
|
-
unique: boolean | "global";
|
|
6786
|
+
unique: boolean | "global" | "organization";
|
|
6787
6787
|
deleteBehavior: "set_null" | "cascade" | "restrict";
|
|
6788
6788
|
hidden: boolean;
|
|
6789
6789
|
readonly: boolean;
|
|
@@ -7062,10 +7062,10 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7062
7062
|
} | undefined;
|
|
7063
7063
|
indexes?: {
|
|
7064
7064
|
fields: string[];
|
|
7065
|
-
|
|
7066
|
-
unique: boolean | "global";
|
|
7065
|
+
unique: boolean | "global" | "organization";
|
|
7067
7066
|
name?: string | undefined;
|
|
7068
|
-
|
|
7067
|
+
type?: undefined;
|
|
7068
|
+
partial?: undefined;
|
|
7069
7069
|
}[] | undefined;
|
|
7070
7070
|
fieldGroups?: {
|
|
7071
7071
|
key: string;
|
|
@@ -7079,7 +7079,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7079
7079
|
}[] | undefined;
|
|
7080
7080
|
tenancy?: {
|
|
7081
7081
|
enabled: boolean;
|
|
7082
|
-
tenantField
|
|
7082
|
+
tenantField?: string | undefined;
|
|
7083
7083
|
} | undefined;
|
|
7084
7084
|
access?: {
|
|
7085
7085
|
default: "public" | "private";
|
|
@@ -7194,14 +7194,14 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7194
7194
|
provider: "api";
|
|
7195
7195
|
read?: {
|
|
7196
7196
|
url: string;
|
|
7197
|
-
method: "
|
|
7197
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
7198
7198
|
headers?: Record<string, string> | undefined;
|
|
7199
7199
|
params?: Record<string, unknown> | undefined;
|
|
7200
7200
|
body?: unknown;
|
|
7201
7201
|
} | undefined;
|
|
7202
7202
|
write?: {
|
|
7203
7203
|
url: string;
|
|
7204
|
-
method: "
|
|
7204
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
7205
7205
|
headers?: Record<string, string> | undefined;
|
|
7206
7206
|
params?: Record<string, unknown> | undefined;
|
|
7207
7207
|
body?: unknown;
|
|
@@ -7370,7 +7370,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7370
7370
|
params?: {
|
|
7371
7371
|
[x: string]: unknown;
|
|
7372
7372
|
name: string;
|
|
7373
|
-
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
7373
|
+
type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
|
|
7374
7374
|
label?: string | undefined;
|
|
7375
7375
|
help?: string | undefined;
|
|
7376
7376
|
required?: boolean | undefined;
|
|
@@ -7509,7 +7509,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7509
7509
|
field?: string | undefined;
|
|
7510
7510
|
objectOverride?: string | undefined;
|
|
7511
7511
|
label?: string | undefined;
|
|
7512
|
-
type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "
|
|
7512
|
+
type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
|
|
7513
7513
|
options?: {
|
|
7514
7514
|
label: string;
|
|
7515
7515
|
value: string;
|
|
@@ -7531,7 +7531,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7531
7531
|
generatedBy?: string | undefined;
|
|
7532
7532
|
} | undefined;
|
|
7533
7533
|
} | undefined;
|
|
7534
|
-
requiresFeature?: "
|
|
7534
|
+
requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
|
|
7535
7535
|
}, "requiresFeature">[] | undefined;
|
|
7536
7536
|
variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
|
|
7537
7537
|
order?: number | undefined;
|
|
@@ -7559,7 +7559,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7559
7559
|
generatedBy?: string | undefined;
|
|
7560
7560
|
} | undefined;
|
|
7561
7561
|
} | undefined;
|
|
7562
|
-
requiresFeature?: "
|
|
7562
|
+
requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
|
|
7563
7563
|
disabled?: boolean | {
|
|
7564
7564
|
dialect: "cel" | "cron" | "template";
|
|
7565
7565
|
source?: string | undefined;
|
|
@@ -7589,7 +7589,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7589
7589
|
bodyShape?: "flat" | {
|
|
7590
7590
|
wrap: string;
|
|
7591
7591
|
} | undefined;
|
|
7592
|
-
method?: "POST" | "
|
|
7592
|
+
method?: "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
|
|
7593
7593
|
bodyExtra?: Record<string, unknown> | undefined;
|
|
7594
7594
|
mode?: "custom" | "delete" | "edit" | "create" | undefined;
|
|
7595
7595
|
opensInNewTab?: boolean | undefined;
|
|
@@ -7710,7 +7710,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7710
7710
|
} | undefined;
|
|
7711
7711
|
readonly scale?: number | undefined;
|
|
7712
7712
|
readonly searchable?: boolean | undefined;
|
|
7713
|
-
readonly unique?: boolean | "global" | undefined;
|
|
7713
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
7714
7714
|
readonly defaultValue?: unknown;
|
|
7715
7715
|
readonly maxLength?: number | undefined;
|
|
7716
7716
|
readonly minLength?: number | undefined;
|
|
@@ -7866,7 +7866,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
7866
7866
|
} | undefined;
|
|
7867
7867
|
readonly scale?: number | undefined;
|
|
7868
7868
|
readonly searchable?: boolean | undefined;
|
|
7869
|
-
readonly unique?: boolean | "global" | undefined;
|
|
7869
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
7870
7870
|
readonly defaultValue?: unknown;
|
|
7871
7871
|
readonly maxLength?: number | undefined;
|
|
7872
7872
|
readonly minLength?: number | undefined;
|
|
@@ -8004,7 +8004,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
8004
8004
|
} | undefined;
|
|
8005
8005
|
readonly scale?: number | undefined;
|
|
8006
8006
|
readonly searchable?: boolean | undefined;
|
|
8007
|
-
readonly unique?: boolean | "global" | undefined;
|
|
8007
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
8008
8008
|
readonly defaultValue?: unknown;
|
|
8009
8009
|
readonly maxLength?: number | undefined;
|
|
8010
8010
|
readonly minLength?: number | undefined;
|
|
@@ -8142,7 +8142,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
8142
8142
|
} | undefined;
|
|
8143
8143
|
readonly scale?: number | undefined;
|
|
8144
8144
|
readonly searchable?: boolean | undefined;
|
|
8145
|
-
readonly unique?: boolean | "global" | undefined;
|
|
8145
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
8146
8146
|
readonly defaultValue?: unknown;
|
|
8147
8147
|
readonly maxLength?: number | undefined;
|
|
8148
8148
|
readonly minLength?: number | undefined;
|
|
@@ -8289,7 +8289,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
8289
8289
|
} | undefined;
|
|
8290
8290
|
readonly scale?: number | undefined;
|
|
8291
8291
|
readonly searchable?: boolean | undefined;
|
|
8292
|
-
readonly unique?: boolean | "global" | undefined;
|
|
8292
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
8293
8293
|
readonly defaultValue?: unknown;
|
|
8294
8294
|
readonly maxLength?: number | undefined;
|
|
8295
8295
|
readonly minLength?: number | undefined;
|
|
@@ -8427,7 +8427,7 @@ declare const SysApprovalDelegation: Omit<{
|
|
|
8427
8427
|
} | undefined;
|
|
8428
8428
|
readonly scale?: number | undefined;
|
|
8429
8429
|
readonly searchable?: boolean | undefined;
|
|
8430
|
-
readonly unique?: boolean | "global" | undefined;
|
|
8430
|
+
readonly unique?: boolean | "global" | "organization" | undefined;
|
|
8431
8431
|
readonly defaultValue?: unknown;
|
|
8432
8432
|
readonly maxLength?: number | undefined;
|
|
8433
8433
|
readonly minLength?: number | undefined;
|
|
@@ -8556,7 +8556,7 @@ interface ApprovalResumeSurface {
|
|
|
8556
8556
|
getFlow?(name: string): Promise<any | null>;
|
|
8557
8557
|
/**
|
|
8558
8558
|
* Terminally cancel a suspended run (ADR-0044). Used when a recall lands
|
|
8559
|
-
* during a revision window — the run is paused at the revise
|
|
8559
|
+
* during a revision window — the run is paused at the revise-window node,
|
|
8560
8560
|
* which has no reject edge to resume down.
|
|
8561
8561
|
*/
|
|
8562
8562
|
cancelRun?(runId: string, reason?: string): Promise<unknown>;
|
|
@@ -9058,6 +9058,39 @@ declare class ApprovalService implements IApprovalService {
|
|
|
9058
9058
|
* failure and reports it loudly.
|
|
9059
9059
|
*/
|
|
9060
9060
|
private assertRunResumable;
|
|
9061
|
+
/**
|
|
9062
|
+
* The run named by a recorded outcome cannot be advanced at all, because no
|
|
9063
|
+
* automation engine in THIS process implements the capability it needs
|
|
9064
|
+
* (#4420). Returns the reason, or `undefined` when the capability is there
|
|
9065
|
+
* and the caller should proceed.
|
|
9066
|
+
*
|
|
9067
|
+
* **Why this is not simply "not our problem".** Approvals is legitimately
|
|
9068
|
+
* usable with no engine attached, and {@link assertRunResumable} deliberately
|
|
9069
|
+
* stays out of the way for that reason. But "no engine is attached" and "no
|
|
9070
|
+
* run is waiting" are different facts, and only the second is benign: a
|
|
9071
|
+
* `flow_run_id` on the row is the request's OWN declaration that a run is
|
|
9072
|
+
* parked on this decision. Deciding it in a process that cannot resume it
|
|
9073
|
+
* reproduces #4420's reported half-state exactly — a durable decision, a
|
|
9074
|
+
* mirrored status field frozen mid-workflow, a flow parked forever — while
|
|
9075
|
+
* the caller is answered HTTP 200. The engine-less composition is the one
|
|
9076
|
+
* path the #4420 fix left silent, because every guard it added hangs off an
|
|
9077
|
+
* engine that is not there.
|
|
9078
|
+
*
|
|
9079
|
+
* **So the outcome stands, but it is never silent.** Rolling the decision
|
|
9080
|
+
* back is not on the table (a human really did decide, and the row is
|
|
9081
|
+
* already durable), and refusing every such call would break the standalone
|
|
9082
|
+
* compositions the pre-flight protects. What is owed is the report: `error`
|
|
9083
|
+
* level per AGENTS.md's durability rule — persisted state and runtime state
|
|
9084
|
+
* disagree and nothing looks broken from the outside — plus a `resumeError`
|
|
9085
|
+
* on the response, so `resumed: false` carries its reason instead of leaving
|
|
9086
|
+
* the caller to guess whether a resume was even attempted.
|
|
9087
|
+
*
|
|
9088
|
+
* Reuses the registered `RESUME_FAILED` code (ADR-0112 ledger) and
|
|
9089
|
+
* {@link serviceResume}'s message shape: the fact being reported — an
|
|
9090
|
+
* outcome recorded whose run did not advance — is the same one, and this
|
|
9091
|
+
* needs no new vocabulary of its own.
|
|
9092
|
+
*/
|
|
9093
|
+
private missingRunCapability;
|
|
9061
9094
|
/**
|
|
9062
9095
|
* Resume the run behind an outcome that has ALREADY been written down, and
|
|
9063
9096
|
* fail loudly when it cannot be (#4420).
|
|
@@ -9069,7 +9102,10 @@ declare class ApprovalService implements IApprovalService {
|
|
|
9069
9102
|
* everything it catches never reaches a write.
|
|
9070
9103
|
*
|
|
9071
9104
|
* `RESUME_IN_PROGRESS` is the exception — a concurrent resume is already
|
|
9072
|
-
* advancing the run, so the outcome stands and only `resumed` is false.
|
|
9105
|
+
* advancing the run, so the outcome stands and only `resumed` is false. So
|
|
9106
|
+
* is a composition with no engine at all ({@link missingRunCapability}),
|
|
9107
|
+
* which cannot throw without breaking every standalone deployment — it
|
|
9108
|
+
* reports through `resumeError` instead.
|
|
9073
9109
|
*
|
|
9074
9110
|
* @param what - how the recorded outcome reads in the error, e.g.
|
|
9075
9111
|
* `"the approve decision"`.
|
|
@@ -9099,7 +9135,7 @@ declare class ApprovalService implements IApprovalService {
|
|
|
9099
9135
|
*
|
|
9100
9136
|
* ADR-0044: also valid on the LATEST `returned` request of its run — the
|
|
9101
9137
|
* submitter abandons the revision window instead of resubmitting. The run
|
|
9102
|
-
* is then paused at the revise
|
|
9138
|
+
* is then paused at the revise-window node (no reject edge), so it is
|
|
9103
9139
|
* terminally cancelled via {@link ApprovalResumeSurface.cancelRun} rather
|
|
9104
9140
|
* than resumed.
|
|
9105
9141
|
*/
|
|
@@ -9108,7 +9144,7 @@ declare class ApprovalService implements IApprovalService {
|
|
|
9108
9144
|
* ADR-0044 send back for revision. Finalises the pending request as
|
|
9109
9145
|
* `returned` (a third terminal state — approver-initiated rework, distinct
|
|
9110
9146
|
* from submitter-initiated `recalled`) and resumes the owning flow run down
|
|
9111
|
-
* its `revise` edge to
|
|
9147
|
+
* its `revise` edge to the revise window: the record lock (keyed on `pending`)
|
|
9112
9148
|
* releases, the submitter reworks the data, then {@link resubmit}s.
|
|
9113
9149
|
*
|
|
9114
9150
|
* Requires the approval node to declare a `revise` out-edge — validated
|
|
@@ -9121,7 +9157,7 @@ declare class ApprovalService implements IApprovalService {
|
|
|
9121
9157
|
/**
|
|
9122
9158
|
* ADR-0044 resubmit after rework. Valid on the LATEST `returned` request of
|
|
9123
9159
|
* its run, submitter-only. Audits `resubmit` on the returned (round-N)
|
|
9124
|
-
* request and resumes the run from the revise
|
|
9160
|
+
* request and resumes the run from the revise-window node; traversal walks
|
|
9125
9161
|
* the declared back-edge into the approval node, whose executor opens the
|
|
9126
9162
|
* round-N+1 request — fresh approver slate, record re-locks.
|
|
9127
9163
|
*/
|
|
@@ -9131,6 +9167,21 @@ declare class ApprovalService implements IApprovalService {
|
|
|
9131
9167
|
* out-edge before send-back is allowed — the engine's branch-label fallback
|
|
9132
9168
|
* (no matching label ⇒ ALL out-edges) must never be reachable from a user
|
|
9133
9169
|
* action.
|
|
9170
|
+
*
|
|
9171
|
+
* Since #3823 it also checks WHAT that edge targets: the revise window must
|
|
9172
|
+
* be an `approval_revise` node, the pause this service owns. ADR-0044 D3
|
|
9173
|
+
* pointed the edge at an ordinary `wait`, which is `resumeAuthority: 'any'`,
|
|
9174
|
+
* so a raw engine resume walked the resubmit back-edge with no submitter
|
|
9175
|
+
* check, no `resubmit` audit row, and — with a pending request colliding on
|
|
9176
|
+
* the record — destroyed the run by consuming the suspension before the
|
|
9177
|
+
* re-entry failed. Refused HERE, before any mutation, for the same reason the
|
|
9178
|
+
* missing-edge check is: a run must never be parked in a revise window that
|
|
9179
|
+
* something other than {@link resubmit} can advance.
|
|
9180
|
+
*
|
|
9181
|
+
* Also refused at authoring time — `flow-approval-revise-target-not-service-owned`
|
|
9182
|
+
* in `@objectstack/lint` gates `os build` / `os validate` / `os lint` and the
|
|
9183
|
+
* runtime metadata publish path — so a flow reaching this check at all is one
|
|
9184
|
+
* published before that gate existed.
|
|
9134
9185
|
*/
|
|
9135
9186
|
private assertReviseEdge;
|
|
9136
9187
|
/**
|
|
@@ -9543,15 +9594,45 @@ interface ApprovalAutomationSurface {
|
|
|
9543
9594
|
branchLabel?: string;
|
|
9544
9595
|
}): Promise<unknown>;
|
|
9545
9596
|
}
|
|
9546
|
-
interface MinimalLogger {
|
|
9597
|
+
interface MinimalLogger$1 {
|
|
9547
9598
|
info?: (msg: any, ...rest: any[]) => void;
|
|
9548
9599
|
warn?: (msg: any, ...rest: any[]) => void;
|
|
9549
9600
|
}
|
|
9550
9601
|
/**
|
|
9551
|
-
* Register the `approval` node executor on the automation engine
|
|
9552
|
-
*
|
|
9602
|
+
* Register the `approval` node executor on the automation engine, plus the
|
|
9603
|
+
* `approval_revise` window the ADR-0044 send-back parks on. Idempotent at the
|
|
9604
|
+
* engine level (re-registering replaces). Safe to skip when no automation
|
|
9553
9605
|
* service is present.
|
|
9606
|
+
*
|
|
9607
|
+
* The two register together deliberately (#3823): send-back resumes the run
|
|
9608
|
+
* down the `revise` edge onto the revise-window node, and `sendBack` refuses a
|
|
9609
|
+
* flow whose revise edge targets anything else — so an engine holding the
|
|
9610
|
+
* `approval` node without the revise window would accept approvals whose
|
|
9611
|
+
* send-back can never run.
|
|
9612
|
+
*/
|
|
9613
|
+
declare function registerApprovalNode(automation: ApprovalAutomationSurface, service: ApprovalService, logger?: MinimalLogger$1): void;
|
|
9614
|
+
|
|
9615
|
+
interface MinimalLogger {
|
|
9616
|
+
info?: (msg: any, ...rest: any[]) => void;
|
|
9617
|
+
warn?: (msg: any, ...rest: any[]) => void;
|
|
9618
|
+
}
|
|
9619
|
+
/**
|
|
9620
|
+
* Correlation prefix for a revise-window suspension — what the suspended-run
|
|
9621
|
+
* record carries so an operator (or `listSuspendedRuns`) can tell a revise
|
|
9622
|
+
* window from a timer or signal wait at a glance.
|
|
9623
|
+
*
|
|
9624
|
+
* Deliberately NOT one of the engine's linked-run prefixes (`subflow:` /
|
|
9625
|
+
* `map:`): those mean "this run is waiting on another run", and the resume gate
|
|
9626
|
+
* follows them to judge the child's node. A revise window waits on a person.
|
|
9627
|
+
*/
|
|
9628
|
+
declare const APPROVAL_REVISE_CORRELATION_PREFIX = "approval_revise:";
|
|
9629
|
+
/**
|
|
9630
|
+
* Register the `approval_revise` node executor. Called from
|
|
9631
|
+
* {@link registerApprovalNode} rather than wired separately on purpose: a
|
|
9632
|
+
* deployment that has the `approval` node must have this one too, or every
|
|
9633
|
+
* send-back in it is refused at runtime — there is no half of this feature
|
|
9634
|
+
* worth installing.
|
|
9554
9635
|
*/
|
|
9555
|
-
declare function
|
|
9636
|
+
declare function registerApprovalReviseNode(automation: ApprovalAutomationSurface, logger?: MinimalLogger): void;
|
|
9556
9637
|
|
|
9557
|
-
export { type ApprovalAutomationSurface, type ApprovalClock, type ApprovalEngine, type ApprovalNodeAutoOutcome, type ApprovalResumeSurface, ApprovalService, type ApprovalServiceOptions, type ApprovalsPluginOptions, ApprovalsServicePlugin, type ApproverExpressionContext, type StrandedApprovalRequest, SysApprovalAction, SysApprovalApprover, SysApprovalDelegation, SysApprovalRequest, registerApprovalNode };
|
|
9638
|
+
export { APPROVAL_REVISE_CORRELATION_PREFIX, type ApprovalAutomationSurface, type ApprovalClock, type ApprovalEngine, type ApprovalNodeAutoOutcome, type ApprovalResumeSurface, ApprovalService, type ApprovalServiceOptions, type ApprovalsPluginOptions, ApprovalsServicePlugin, type ApproverExpressionContext, type StrandedApprovalRequest, SysApprovalAction, SysApprovalApprover, SysApprovalDelegation, SysApprovalRequest, registerApprovalNode, registerApprovalReviseNode };
|