@diagonal-hq/cli 0.20.3 → 0.20.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/README.md +4 -3
- package/dist/cli.mjs +644 -442
- package/dist/index.d.ts +9 -1
- package/dist/index.js +2 -0
- package/dist/sdk-contract.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -269,7 +269,7 @@ export type WorkspaceFieldDefinition<T extends WorkspaceFieldType = WorkspaceFie
|
|
|
269
269
|
*/
|
|
270
270
|
definition: FieldDefinition<T>;
|
|
271
271
|
/** The value of the field. Write `null` for a field without a value. */
|
|
272
|
-
value: WorkspaceFieldValue<T> | null;
|
|
272
|
+
value: WorkspaceFieldValue<T> | (T extends 'uuid' ? Resolver : never) | null;
|
|
273
273
|
};
|
|
274
274
|
|
|
275
275
|
/**
|
|
@@ -897,7 +897,13 @@ export type LayoutProps = { children?: React.ReactNode };
|
|
|
897
897
|
*/
|
|
898
898
|
export type ResourceReference = string;
|
|
899
899
|
|
|
900
|
+
/** Declares a dependency on a live record selected separately in each workspace. */
|
|
901
|
+
export declare function defineRecordBinding<
|
|
902
|
+
T extends UidOption & { name: string; resource: ResourceReference }
|
|
903
|
+
>(binding: T): T;
|
|
904
|
+
|
|
900
905
|
export type WorkflowRunAs =
|
|
906
|
+
| { binding: DefinitionUid }
|
|
901
907
|
| 'system'
|
|
902
908
|
/** Only for request workflows: the signed-in user who calls the route. */
|
|
903
909
|
| 'session'
|
|
@@ -933,6 +939,7 @@ export type RecordLifecycleTrigger = {
|
|
|
933
939
|
type: 'recordLifecycle';
|
|
934
940
|
resource: ResourceReference;
|
|
935
941
|
hook: 'creating' | 'updating' | 'saving' | 'deleting' | 'restoring';
|
|
942
|
+
filters?: FilterGroup;
|
|
936
943
|
};
|
|
937
944
|
|
|
938
945
|
export type RecordScheduleTrigger = {
|
|
@@ -942,6 +949,7 @@ export type RecordScheduleTrigger = {
|
|
|
942
949
|
dateField: string;
|
|
943
950
|
/** Signed ISO 8601 durations in days, hours, or minutes, for example `'-P1D'` or `'+PT2H'`. */
|
|
944
951
|
offsets: readonly string[];
|
|
952
|
+
filters?: FilterGroup;
|
|
945
953
|
};
|
|
946
954
|
|
|
947
955
|
export type ScheduledTrigger = {
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,8 @@ export const defineConfig = (config) => config;
|
|
|
21
21
|
|
|
22
22
|
export const defineRedirects = (redirects) => redirects;
|
|
23
23
|
|
|
24
|
+
export const defineRecordBinding = (binding) => binding;
|
|
25
|
+
|
|
24
26
|
export const defineWorkspaceField = (field) => field;
|
|
25
27
|
|
|
26
28
|
export const definePermission = (permission) => permission;
|
package/dist/sdk-contract.d.ts
CHANGED
|
@@ -2835,6 +2835,7 @@ type SdkSystemSettingsPage =
|
|
|
2835
2835
|
| 'page-playground'
|
|
2836
2836
|
| 'pages'
|
|
2837
2837
|
| 'projects'
|
|
2838
|
+
| 'record-bindings'
|
|
2838
2839
|
| 'redirects'
|
|
2839
2840
|
| 'resources'
|
|
2840
2841
|
| 'security'
|
|
@@ -2898,6 +2899,7 @@ type SdkWorkspace = {
|
|
|
2898
2899
|
fields: WorkspaceFieldDefinitionCatalog;
|
|
2899
2900
|
/** @deprecated Load-time snapshot. Read live values with `Sdk.hooks.useWorkspaceValues`. */
|
|
2900
2901
|
values: WorkspaceFieldCatalog | null;
|
|
2902
|
+
value_errors?: Record<string, string>;
|
|
2901
2903
|
} | null;
|
|
2902
2904
|
|
|
2903
2905
|
type SdkWorkspaceField = {
|