skedyul 1.2.21 → 1.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +464 -631
- package/dist/config/types/env.d.ts +8 -2
- package/dist/config/types/form.d.ts +10 -6
- package/dist/config/types/index.d.ts +0 -1
- package/dist/config/types/model.d.ts +1 -2
- package/dist/config/types/page.d.ts +2 -2
- package/dist/config/types/webhook.d.ts +2 -1
- package/dist/dedicated/server.js +464 -679
- package/dist/esm/index.mjs +464 -631
- package/dist/index.d.ts +1 -2
- package/dist/index.js +464 -631
- package/dist/server/dedicated.d.ts +1 -1
- package/dist/server/handlers/index.d.ts +12 -0
- package/dist/server/handlers/install-handler.d.ts +9 -0
- package/dist/server/handlers/oauth-callback-handler.d.ts +9 -0
- package/dist/server/handlers/provision-handler.d.ts +9 -0
- package/dist/server/handlers/types.d.ts +101 -0
- package/dist/server/handlers/uninstall-handler.d.ts +9 -0
- package/dist/server/handlers/webhook-handler.d.ts +28 -0
- package/dist/server/serverless.d.ts +1 -1
- package/dist/server/tool-handler.d.ts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +464 -679
- package/dist/serverless/server.mjs +464 -657
- package/dist/types/handlers.d.ts +6 -24
- package/dist/types/index.d.ts +3 -3
- package/dist/types/server.d.ts +1 -1
- package/dist/types/shared.d.ts +5 -0
- package/dist/types/tool.d.ts +5 -7
- package/dist/types/webhook.d.ts +14 -6
- package/package.json +1 -1
- package/dist/config/types/compute.d.ts +0 -9
|
@@ -5,7 +5,13 @@
|
|
|
5
5
|
* - 'provision': Developer-configured, shared across all installations
|
|
6
6
|
* - 'install': User-configured during app installation
|
|
7
7
|
*/
|
|
8
|
-
import type {
|
|
8
|
+
import type { Visibility } from './base';
|
|
9
|
+
/**
|
|
10
|
+
* Scope for environment variables.
|
|
11
|
+
* - 'provision': Developer-configured, shared across all installations
|
|
12
|
+
* - 'install': User-configured during app installation
|
|
13
|
+
*/
|
|
14
|
+
export type EnvScope = 'provision' | 'install';
|
|
9
15
|
/**
|
|
10
16
|
* Environment variable definition.
|
|
11
17
|
*/
|
|
@@ -13,7 +19,7 @@ export interface EnvVariable {
|
|
|
13
19
|
/** Human-readable label for the variable */
|
|
14
20
|
label: string;
|
|
15
21
|
/** Scope: 'provision' (developer) or 'install' (user) */
|
|
16
|
-
scope?:
|
|
22
|
+
scope?: EnvScope;
|
|
17
23
|
/** Whether this variable is required */
|
|
18
24
|
required?: boolean;
|
|
19
25
|
/** Visibility setting: 'visible' or 'encrypted' */
|
|
@@ -56,7 +56,7 @@ export interface FormHeader {
|
|
|
56
56
|
/**
|
|
57
57
|
* Action definition for form buttons.
|
|
58
58
|
*/
|
|
59
|
-
export interface
|
|
59
|
+
export interface FormActionDefinition {
|
|
60
60
|
handle: string;
|
|
61
61
|
/** Button label - supports Liquid templates */
|
|
62
62
|
label: string;
|
|
@@ -69,6 +69,10 @@ export interface ActionDefinition {
|
|
|
69
69
|
/** Whether hidden - boolean or Liquid template */
|
|
70
70
|
hidden?: boolean | string;
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Use FormActionDefinition instead.
|
|
74
|
+
*/
|
|
75
|
+
export type ActionDefinition = FormActionDefinition;
|
|
72
76
|
/**
|
|
73
77
|
* Modal form definition for nested forms.
|
|
74
78
|
*/
|
|
@@ -82,7 +86,7 @@ export interface ModalFormDefinition {
|
|
|
82
86
|
/** Inline field definitions (used when template is not specified) */
|
|
83
87
|
fields?: FormComponent[];
|
|
84
88
|
layout?: FormLayoutConfig;
|
|
85
|
-
actions?:
|
|
89
|
+
actions?: FormActionDefinition[];
|
|
86
90
|
}
|
|
87
91
|
/**
|
|
88
92
|
* Input component definition.
|
|
@@ -308,7 +312,7 @@ export interface FormProps {
|
|
|
308
312
|
fields: FormComponent[];
|
|
309
313
|
layout: FormLayoutConfig;
|
|
310
314
|
/** Actions that trigger tool calls */
|
|
311
|
-
actions?:
|
|
315
|
+
actions?: FormActionDefinition[];
|
|
312
316
|
}
|
|
313
317
|
/**
|
|
314
318
|
* Card block header definition.
|
|
@@ -327,9 +331,9 @@ export interface CardBlock {
|
|
|
327
331
|
restructurable?: boolean;
|
|
328
332
|
header?: CardHeader;
|
|
329
333
|
form: FormProps;
|
|
330
|
-
actions?:
|
|
331
|
-
secondaryActions?:
|
|
332
|
-
primaryActions?:
|
|
334
|
+
actions?: FormActionDefinition[];
|
|
335
|
+
secondaryActions?: FormActionDefinition[];
|
|
336
|
+
primaryActions?: FormActionDefinition[];
|
|
333
337
|
}
|
|
334
338
|
/**
|
|
335
339
|
* List block definition.
|
|
@@ -11,7 +11,6 @@ import type { ResourceDependency } from './resource';
|
|
|
11
11
|
* Field data types (lowercase).
|
|
12
12
|
* - 'string': Short text (single line)
|
|
13
13
|
* - 'long_string': Long text (multi-line, stored as text in DB)
|
|
14
|
-
* - 'text': Alias for long_string
|
|
15
14
|
* - 'number': Numeric value
|
|
16
15
|
* - 'boolean': True/false
|
|
17
16
|
* - 'date': Date only (no time)
|
|
@@ -22,7 +21,7 @@ import type { ResourceDependency } from './resource';
|
|
|
22
21
|
* - 'relation': Reference to another model
|
|
23
22
|
* - 'object': JSON object
|
|
24
23
|
*/
|
|
25
|
-
export type FieldType = 'string' | 'long_string' | '
|
|
24
|
+
export type FieldType = 'string' | 'long_string' | 'number' | 'boolean' | 'date' | 'datetime' | 'time' | 'file' | 'image' | 'relation' | 'object';
|
|
26
25
|
/**
|
|
27
26
|
* Behavior when a related record is deleted.
|
|
28
27
|
* - 'none': No action (orphan the reference)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { BaseDefinition, StructuredFilter } from './base';
|
|
8
8
|
import type { ContextDefinition } from './context';
|
|
9
|
-
import type {
|
|
9
|
+
import type { FormActionDefinition, BlockDefinition } from './form';
|
|
10
10
|
import type { NavigationConfig } from './navigation';
|
|
11
11
|
/**
|
|
12
12
|
* Page type.
|
|
@@ -44,7 +44,7 @@ export interface PageDefinition extends BaseDefinition {
|
|
|
44
44
|
/** Page blocks (cards, lists, etc.) */
|
|
45
45
|
blocks: BlockDefinition[];
|
|
46
46
|
/** Page-level actions */
|
|
47
|
-
actions?:
|
|
47
|
+
actions?: FormActionDefinition[];
|
|
48
48
|
/** Context data to load for Liquid templates */
|
|
49
49
|
context?: ContextDefinition;
|
|
50
50
|
/** Filter for list pages - defines which model instances to show */
|
|
@@ -8,7 +8,7 @@ import type { ContextLogger } from '../../server/logger';
|
|
|
8
8
|
/**
|
|
9
9
|
* HTTP methods supported by webhooks.
|
|
10
10
|
*/
|
|
11
|
-
export type HttpMethod = '
|
|
11
|
+
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
12
12
|
/**
|
|
13
13
|
* Incoming webhook request.
|
|
14
14
|
*/
|
|
@@ -56,6 +56,7 @@ export interface WebhookHandlerDefinition {
|
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Webhook registry type.
|
|
59
|
+
* @deprecated Use WebhookRegistry from '../types/webhook' instead.
|
|
59
60
|
*/
|
|
60
61
|
export type Webhooks = Record<string, WebhookHandlerDefinition>;
|
|
61
62
|
/**
|