attio 0.0.1-experimental.20251001 → 0.0.1-experimental.20251002
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/lib/build/client/create-client-build-config.js +7 -1
- package/lib/build/client/generate-client-entry.js +9 -0
- package/lib/build/get-file-exports.js +1 -2
- package/lib/build/proxy-block-modules-plugin.js +68 -0
- package/lib/build/server/create-server-build-config.js +4 -0
- package/lib/build/server/find-workflow-block-server-modules.js +300 -30
- package/lib/build/server/fine-workflow-block.test.js +66 -0
- package/lib/build/server/generate-server-entry.js +40 -27
- package/lib/build/workflow-block-modules.js +1 -0
- package/lib/client/app.d.ts +7 -5
- package/lib/client/app.d.ts.map +1 -1
- package/lib/client/experimental/index.d.ts +3 -0
- package/lib/client/experimental/index.d.ts.map +1 -0
- package/lib/client/experimental/index.js +10 -0
- package/lib/client/experimental/index.js.map +1 -0
- package/lib/client/experimental/settings/get-settings.d.ts +7 -0
- package/lib/client/experimental/settings/get-settings.d.ts.map +1 -0
- package/lib/client/{workflow-block.js → experimental/settings/get-settings.js} +1 -1
- package/lib/client/experimental/settings/get-settings.js.map +1 -0
- package/lib/client/experimental/settings/index.d.ts +5 -0
- package/lib/client/experimental/settings/index.d.ts.map +1 -0
- package/lib/client/experimental/settings/index.js +8 -0
- package/lib/client/experimental/settings/index.js.map +1 -0
- package/lib/client/experimental/settings/set-user-setting.d.ts +7 -0
- package/lib/client/experimental/settings/set-user-setting.d.ts.map +1 -0
- package/lib/client/experimental/settings/set-user-setting.js +3 -0
- package/lib/client/experimental/settings/set-user-setting.js.map +1 -0
- package/lib/client/experimental/settings/set-workspace-setting.d.ts +7 -0
- package/lib/client/experimental/settings/set-workspace-setting.d.ts.map +1 -0
- package/lib/client/experimental/settings/set-workspace-setting.js +3 -0
- package/lib/client/experimental/settings/set-workspace-setting.js.map +1 -0
- package/lib/client/experimental/settings/use-settings.d.ts +7 -0
- package/lib/client/experimental/settings/use-settings.d.ts.map +1 -0
- package/lib/client/experimental/settings/use-settings.js +3 -0
- package/lib/client/experimental/settings/use-settings.js.map +1 -0
- package/lib/client/index.d.ts +3 -1
- package/lib/client/index.d.ts.map +1 -1
- package/lib/client/index.js +1 -0
- package/lib/client/index.js.map +1 -1
- package/lib/client/workflow/index.d.ts +1 -19
- package/lib/client/workflow/index.d.ts.map +1 -1
- package/lib/client/workflow/index.js +2 -1
- package/lib/client/workflow/index.js.map +1 -1
- package/lib/client/workflow/outcome-data-schema/array-node.d.ts +10 -0
- package/lib/client/workflow/outcome-data-schema/array-node.d.ts.map +1 -0
- package/lib/client/workflow/outcome-data-schema/array-node.js +3 -0
- package/lib/client/workflow/outcome-data-schema/array-node.js.map +1 -0
- package/lib/client/workflow/outcome-data-schema/attio-record.d.ts +10 -0
- package/lib/client/workflow/outcome-data-schema/attio-record.d.ts.map +1 -0
- package/lib/client/workflow/outcome-data-schema/attio-record.js +3 -0
- package/lib/client/workflow/outcome-data-schema/attio-record.js.map +1 -0
- package/lib/client/workflow/outcome-data-schema/attio-select.d.ts +10 -0
- package/lib/client/workflow/outcome-data-schema/attio-select.d.ts.map +1 -0
- package/lib/client/workflow/outcome-data-schema/attio-select.js +3 -0
- package/lib/client/workflow/outcome-data-schema/attio-select.js.map +1 -0
- package/lib/client/workflow/outcome-data-schema/boolean-node.d.ts +10 -0
- package/lib/client/workflow/outcome-data-schema/boolean-node.d.ts.map +1 -0
- package/lib/client/workflow/outcome-data-schema/boolean-node.js +3 -0
- package/lib/client/workflow/outcome-data-schema/boolean-node.js.map +1 -0
- package/lib/client/workflow/outcome-data-schema/index.d.ts +8 -0
- package/lib/client/workflow/outcome-data-schema/index.d.ts.map +1 -0
- package/lib/client/workflow/outcome-data-schema/index.js +18 -0
- package/lib/client/workflow/outcome-data-schema/index.js.map +1 -0
- package/lib/client/workflow/outcome-data-schema/number-node.d.ts +10 -0
- package/lib/client/workflow/outcome-data-schema/number-node.d.ts.map +1 -0
- package/lib/client/workflow/outcome-data-schema/number-node.js +3 -0
- package/lib/client/workflow/outcome-data-schema/number-node.js.map +1 -0
- package/lib/client/workflow/outcome-data-schema/string-node.d.ts +10 -0
- package/lib/client/workflow/outcome-data-schema/string-node.d.ts.map +1 -0
- package/lib/client/workflow/outcome-data-schema/string-node.js +3 -0
- package/lib/client/workflow/outcome-data-schema/string-node.js.map +1 -0
- package/lib/client/workflow/outcome-data-schema/struct-node.d.ts +12 -0
- package/lib/client/workflow/outcome-data-schema/struct-node.d.ts.map +1 -0
- package/lib/client/workflow/outcome-data-schema/struct-node.js +3 -0
- package/lib/client/workflow/outcome-data-schema/struct-node.js.map +1 -0
- package/lib/client/workflow/outcome.d.ts +9 -0
- package/lib/client/workflow/outcome.d.ts.map +1 -0
- package/lib/client/workflow/outcome.js +3 -0
- package/lib/client/workflow/outcome.js.map +1 -0
- package/lib/client/workflow/use-configurator.d.ts +17 -0
- package/lib/client/workflow/use-configurator.d.ts.map +1 -1
- package/lib/client/{workflow-block.d.ts → workflow-step-block.d.ts} +6 -2
- package/lib/client/workflow-step-block.d.ts.map +1 -0
- package/lib/client/workflow-step-block.js +3 -0
- package/lib/client/workflow-step-block.js.map +1 -0
- package/lib/client/workflow-trigger-block.d.ts +18 -0
- package/lib/client/workflow-trigger-block.d.ts.map +1 -0
- package/lib/client/workflow-trigger-block.js +3 -0
- package/lib/client/workflow-trigger-block.js.map +1 -0
- package/lib/commands/build.js +9 -1
- package/lib/commands/dev/client-builder.js +9 -3
- package/lib/commands/dev/prepare-build-context.js +17 -27
- package/lib/commands/dev/server-builder.js +3 -2
- package/lib/commands/dev.js +10 -1
- package/lib/commands/version/create.js +9 -1
- package/lib/constants/hidden-attio-directory.js +1 -0
- package/lib/constants/settings-files.js +2 -0
- package/lib/env.js +1 -0
- package/lib/root/index.d.ts +6 -0
- package/lib/root/index.d.ts.map +1 -0
- package/lib/root/index.js +12 -0
- package/lib/root/index.js.map +1 -0
- package/lib/root/settings/app-settings-schema.d.ts +6 -0
- package/lib/root/settings/app-settings-schema.d.ts.map +1 -0
- package/lib/root/settings/app-settings-schema.js +3 -0
- package/lib/root/settings/app-settings-schema.js.map +1 -0
- package/lib/root/settings/app-settings.d.ts +26 -0
- package/lib/root/settings/app-settings.d.ts.map +1 -0
- package/lib/root/settings/app-settings.js +3 -0
- package/lib/root/settings/app-settings.js.map +1 -0
- package/lib/root/settings/index.d.ts +5 -0
- package/lib/root/settings/index.d.ts.map +1 -0
- package/lib/root/settings/index.js +8 -0
- package/lib/root/settings/index.js.map +1 -0
- package/lib/root/settings/node/boolean.d.ts +11 -0
- package/lib/root/settings/node/boolean.d.ts.map +1 -0
- package/lib/root/settings/node/boolean.js +11 -0
- package/lib/root/settings/node/boolean.js.map +1 -0
- package/lib/root/settings/node/index.d.ts +7 -0
- package/lib/root/settings/node/index.d.ts.map +1 -0
- package/lib/root/settings/node/index.js +12 -0
- package/lib/root/settings/node/index.js.map +1 -0
- package/lib/root/settings/node/number.d.ts +11 -0
- package/lib/root/settings/node/number.d.ts.map +1 -0
- package/lib/root/settings/node/number.js +11 -0
- package/lib/root/settings/node/number.js.map +1 -0
- package/lib/root/settings/node/settings.d.ts +4 -0
- package/lib/root/settings/node/settings.d.ts.map +1 -0
- package/lib/root/settings/node/settings.js +10 -0
- package/lib/root/settings/node/settings.js.map +1 -0
- package/lib/root/settings/node/string.d.ts +11 -0
- package/lib/root/settings/node/string.d.ts.map +1 -0
- package/lib/root/settings/node/string.js +11 -0
- package/lib/root/settings/node/string.js.map +1 -0
- package/lib/root/settings/settings-schema.d.ts +7 -0
- package/lib/root/settings/settings-schema.d.ts.map +1 -0
- package/lib/root/settings/settings-schema.js +3 -0
- package/lib/root/settings/settings-schema.js.map +1 -0
- package/lib/root/settings/utils/typeof-setting-node.d.ts +3 -0
- package/lib/root/settings/utils/typeof-setting-node.d.ts.map +1 -0
- package/lib/root/settings/utils/typeof-setting-node.js +3 -0
- package/lib/root/settings/utils/typeof-setting-node.js.map +1 -0
- package/lib/server/experimental/index.d.ts +1 -0
- package/lib/server/experimental/index.d.ts.map +1 -1
- package/lib/server/experimental/index.js +9 -1
- package/lib/server/experimental/index.js.map +1 -1
- package/lib/server/experimental/kv-store.d.ts +10 -0
- package/lib/server/experimental/kv-store.d.ts.map +1 -1
- package/lib/server/experimental/settings/get-settings.d.ts +7 -0
- package/lib/server/experimental/settings/get-settings.d.ts.map +1 -0
- package/lib/server/experimental/settings/get-settings.js +3 -0
- package/lib/server/experimental/settings/get-settings.js.map +1 -0
- package/lib/server/experimental/settings/get-user-setting.d.ts +7 -0
- package/lib/server/experimental/settings/get-user-setting.d.ts.map +1 -0
- package/lib/server/experimental/settings/get-user-setting.js +3 -0
- package/lib/server/experimental/settings/get-user-setting.js.map +1 -0
- package/lib/server/experimental/settings/get-user-settings.d.ts +7 -0
- package/lib/server/experimental/settings/get-user-settings.d.ts.map +1 -0
- package/lib/server/experimental/settings/get-user-settings.js +3 -0
- package/lib/server/experimental/settings/get-user-settings.js.map +1 -0
- package/lib/server/experimental/settings/get-workspace-setting.d.ts +7 -0
- package/lib/server/experimental/settings/get-workspace-setting.d.ts.map +1 -0
- package/lib/server/experimental/settings/get-workspace-setting.js +3 -0
- package/lib/server/experimental/settings/get-workspace-setting.js.map +1 -0
- package/lib/server/experimental/settings/get-workspace-settings.d.ts +7 -0
- package/lib/server/experimental/settings/get-workspace-settings.d.ts.map +1 -0
- package/lib/server/experimental/settings/get-workspace-settings.js +3 -0
- package/lib/server/experimental/settings/get-workspace-settings.js.map +1 -0
- package/lib/server/experimental/settings/index.d.ts +8 -0
- package/lib/server/experimental/settings/index.d.ts.map +1 -0
- package/lib/server/experimental/settings/index.js +18 -0
- package/lib/server/experimental/settings/index.js.map +1 -0
- package/lib/server/experimental/settings/set-user-setting.d.ts +7 -0
- package/lib/server/experimental/settings/set-user-setting.d.ts.map +1 -0
- package/lib/server/experimental/settings/set-user-setting.js +3 -0
- package/lib/server/experimental/settings/set-user-setting.js.map +1 -0
- package/lib/server/experimental/settings/set-workspace-setting.d.ts +7 -0
- package/lib/server/experimental/settings/set-workspace-setting.d.ts.map +1 -0
- package/lib/server/experimental/settings/set-workspace-setting.js +3 -0
- package/lib/server/experimental/settings/set-workspace-setting.js.map +1 -0
- package/lib/shared/schema-utils/index.d.ts +1 -1
- package/lib/shared/schema-utils/index.d.ts.map +1 -1
- package/lib/shared/schema-utils/index.js +3 -0
- package/lib/shared/schema-utils/index.js.map +1 -1
- package/lib/shared/schema-utils/normalize.d.ts +1 -2
- package/lib/shared/schema-utils/normalize.d.ts.map +1 -1
- package/lib/shared/workflow/outcome/attio-record.d.ts +18 -0
- package/lib/shared/workflow/outcome/attio-record.d.ts.map +1 -0
- package/lib/shared/workflow/outcome/attio-record.js +3 -0
- package/lib/shared/workflow/outcome/attio-record.js.map +1 -0
- package/lib/shared/workflow/outcome/attio-select.d.ts +21 -0
- package/lib/shared/workflow/outcome/attio-select.d.ts.map +1 -0
- package/lib/shared/workflow/outcome/attio-select.js +3 -0
- package/lib/shared/workflow/outcome/attio-select.js.map +1 -0
- package/lib/shared/workflow/outcome/boolean-node.d.ts +11 -0
- package/lib/shared/workflow/outcome/boolean-node.d.ts.map +1 -0
- package/lib/shared/workflow/outcome/boolean-node.js +3 -0
- package/lib/shared/workflow/outcome/boolean-node.js.map +1 -0
- package/lib/shared/workflow/outcome/friendly-node.d.ts +8 -0
- package/lib/shared/workflow/outcome/friendly-node.d.ts.map +1 -0
- package/lib/shared/workflow/outcome/friendly-node.js +3 -0
- package/lib/shared/workflow/outcome/friendly-node.js.map +1 -0
- package/lib/shared/workflow/outcome/friendly-value-of.d.ts +19 -0
- package/lib/shared/workflow/outcome/friendly-value-of.d.ts.map +1 -0
- package/lib/shared/workflow/outcome/friendly-value-of.js +3 -0
- package/lib/shared/workflow/outcome/friendly-value-of.js.map +1 -0
- package/lib/shared/workflow/outcome/node.d.ts +32 -0
- package/lib/shared/workflow/outcome/node.d.ts.map +1 -0
- package/lib/shared/workflow/outcome/node.js +3 -0
- package/lib/shared/workflow/outcome/node.js.map +1 -0
- package/lib/shared/workflow/outcome/number-node.d.ts +11 -0
- package/lib/shared/workflow/outcome/number-node.d.ts.map +1 -0
- package/lib/shared/workflow/outcome/number-node.js +3 -0
- package/lib/shared/workflow/outcome/number-node.js.map +1 -0
- package/lib/shared/workflow/outcome/string-node.d.ts +11 -0
- package/lib/shared/workflow/outcome/string-node.d.ts.map +1 -0
- package/lib/shared/workflow/outcome/string-node.js +3 -0
- package/lib/shared/workflow/outcome/string-node.js.map +1 -0
- package/lib/tsconfig.lib.tsbuildinfo +1 -1
- package/lib/util/assert-app-settings.js +13 -0
- package/lib/util/exit-with-missing-app-settings.js +5 -0
- package/lib/util/exit-with-missing-entry-point.js +2 -8
- package/lib/util/generate-gitignore.js +42 -0
- package/lib/util/generate-settings-files.js +71 -0
- package/lib/util/get-package-manager-command.js +9 -0
- package/package.json +8 -1
- package/lib/client/workflow-block.d.ts.map +0 -1
- package/lib/client/workflow-block.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import { glob } from "glob";
|
|
3
|
-
import { combineAsync, complete, errored, isErrored
|
|
4
|
-
import {
|
|
3
|
+
import { combineAsync, complete, errored, isErrored } from "@attio/fetchable-npm";
|
|
4
|
+
import { APP_SETTINGS_FILENAME } from "../../constants/settings-files.js";
|
|
5
|
+
import { USE_APP_TS } from "../../env.js";
|
|
5
6
|
async function findServerFunctionModules(cwd, pattern) {
|
|
6
7
|
try {
|
|
7
8
|
return complete(await glob(`**/*.${pattern}.{js,ts}`, { nodir: true, cwd }));
|
|
@@ -15,18 +16,16 @@ async function findServerFunctionModules(cwd, pattern) {
|
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
export async function generateServerEntry({ srcDirAbsolute, webhooksDirAbsolute, eventDirAbsolute,
|
|
19
|
-
const workflowBlocksAsyncResult = findWorkflowBlockModules(workflowBlocksDirAbsolute).then((result) => mapError(result, (error) => ({ code: "WORKFLOW_BLOCK_SERVER_MODULE_ERROR", cause: error })));
|
|
19
|
+
export async function generateServerEntry({ appDirAbsolute, srcDirAbsolute, webhooksDirAbsolute, eventDirAbsolute, workflowBlockModules, log, }) {
|
|
20
20
|
const pathsResult = await combineAsync({
|
|
21
21
|
serverFunctionConcretePaths: findServerFunctionModules(srcDirAbsolute, "server"),
|
|
22
22
|
webhookConcretePaths: findServerFunctionModules(webhooksDirAbsolute, "webhook"),
|
|
23
23
|
eventConcretePaths: findServerFunctionModules(eventDirAbsolute, "event"),
|
|
24
|
-
workflowBlocks: workflowBlocksAsyncResult,
|
|
25
24
|
});
|
|
26
25
|
if (isErrored(pathsResult)) {
|
|
27
26
|
return pathsResult;
|
|
28
27
|
}
|
|
29
|
-
const { serverFunctionConcretePaths, webhookConcretePaths, eventConcretePaths
|
|
28
|
+
const { serverFunctionConcretePaths, webhookConcretePaths, eventConcretePaths } = pathsResult.value;
|
|
30
29
|
const serverFunctionModules = serverFunctionConcretePaths.map((path) => ({
|
|
31
30
|
path,
|
|
32
31
|
hash: path.replace(/\.(js|ts)$/, ""),
|
|
@@ -42,8 +41,14 @@ export async function generateServerEntry({ srcDirAbsolute, webhooksDirAbsolute,
|
|
|
42
41
|
for (const module of serverFunctionModules) {
|
|
43
42
|
log?.(`🔎 Found server module "${module.path}"`);
|
|
44
43
|
}
|
|
44
|
+
const initSettingsJS = `
|
|
45
|
+
import appSettingsSchema from ${JSON.stringify(path.join(srcDirAbsolute, APP_SETTINGS_FILENAME))}
|
|
46
|
+
|
|
47
|
+
registerSettingsSchema(appSettingsSchema)
|
|
48
|
+
`;
|
|
45
49
|
return complete(`
|
|
46
|
-
|
|
50
|
+
${USE_APP_TS ? initSettingsJS : ""}
|
|
51
|
+
|
|
47
52
|
const modules = new Map()
|
|
48
53
|
const webhookModules = new Map()
|
|
49
54
|
const eventModules = new Map()
|
|
@@ -61,17 +66,25 @@ export async function generateServerEntry({ srcDirAbsolute, webhooksDirAbsolute,
|
|
|
61
66
|
.map((module) => `eventModules.set("${module.id}", () => import(${JSON.stringify(path.join(eventDirAbsolute, module.path))}))`)
|
|
62
67
|
.join("\n")}
|
|
63
68
|
|
|
64
|
-
${
|
|
65
|
-
.map((
|
|
66
|
-
${JSON.stringify(
|
|
67
|
-
|
|
69
|
+
${[...workflowBlockModules.entries()]
|
|
70
|
+
.map(([blockId, handlers]) => `workflowModules.set(
|
|
71
|
+
${JSON.stringify(blockId)},
|
|
72
|
+
{
|
|
73
|
+
${[...Object.entries(handlers)]
|
|
74
|
+
.map(([handler, data]) => data
|
|
75
|
+
? `${JSON.stringify(handler)}: {
|
|
76
|
+
module: () => import(${JSON.stringify(path.join(appDirAbsolute, data.path))}),
|
|
77
|
+
export: ${JSON.stringify(data.export)}
|
|
78
|
+
},`
|
|
79
|
+
: "")
|
|
80
|
+
.join("\n")}
|
|
81
|
+
}
|
|
68
82
|
)`)
|
|
69
83
|
.join("\n")}
|
|
70
84
|
|
|
71
85
|
var stdin_default;
|
|
72
86
|
var stdin_webhooks_default;
|
|
73
87
|
var stdin_events_default;
|
|
74
|
-
var stdin_workflow_block_schemas_default;
|
|
75
88
|
var stdin_workflow_block_handlers_default;
|
|
76
89
|
|
|
77
90
|
function main() {
|
|
@@ -135,30 +148,30 @@ export async function generateServerEntry({ srcDirAbsolute, webhooksDirAbsolute,
|
|
|
135
148
|
return func(...args)
|
|
136
149
|
}
|
|
137
150
|
|
|
138
|
-
|
|
139
|
-
const
|
|
151
|
+
stdin_workflow_block_handlers_default = async function(blockId, handler, args) {
|
|
152
|
+
const modules = workflowModules.get(blockId)
|
|
140
153
|
|
|
141
|
-
if (!
|
|
142
|
-
throw new Error("Workflow block
|
|
154
|
+
if (!modules) {
|
|
155
|
+
throw new Error("Workflow block modules not found")
|
|
143
156
|
}
|
|
144
157
|
|
|
145
|
-
const
|
|
158
|
+
const handlerData = modules[handler]
|
|
146
159
|
|
|
147
|
-
if (!
|
|
148
|
-
throw new Error(\`
|
|
160
|
+
if (!handlerData) {
|
|
161
|
+
throw new Error(\`Workflow block module \${JSON.stringify(handler)} not found\`)
|
|
149
162
|
}
|
|
150
163
|
|
|
151
|
-
|
|
152
|
-
|
|
164
|
+
if (handler === "schema") {
|
|
165
|
+
const schema = (await handlerData.module())[handlerData.export]
|
|
153
166
|
|
|
154
|
-
|
|
155
|
-
|
|
167
|
+
if (!schema) {
|
|
168
|
+
throw new Error(\`"\${handler}\" export not found in module \${JSON.stringify(blockId)}\`)
|
|
169
|
+
}
|
|
156
170
|
|
|
157
|
-
|
|
158
|
-
throw new Error("Workflow block module not found")
|
|
171
|
+
return schema
|
|
159
172
|
}
|
|
160
173
|
|
|
161
|
-
const func = (await module())[
|
|
174
|
+
const func = (await handlerData.module())[handlerData.export]
|
|
162
175
|
|
|
163
176
|
if (!func) {
|
|
164
177
|
throw new Error(\`"\${handler}\" export not found in module \${JSON.stringify(blockId)}\`)
|
|
@@ -168,7 +181,7 @@ export async function generateServerEntry({ srcDirAbsolute, webhooksDirAbsolute,
|
|
|
168
181
|
throw new Error(\`"\${handler}\" export in module \${JSON.stringify(blockId)} is not a function\`)
|
|
169
182
|
}
|
|
170
183
|
|
|
171
|
-
return func(...args)
|
|
184
|
+
return args ? func(...args) : func()
|
|
172
185
|
}
|
|
173
186
|
}
|
|
174
187
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/client/app.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ import type { CallRecordingSummaryTextSelectionAction } from "./call-recording-s
|
|
|
4
4
|
import type { CallRecordingTranscriptTextSelectionAction } from "./call-recording-transcript-text-selection-action";
|
|
5
5
|
import type { RecordAction } from "./record-action";
|
|
6
6
|
import type { RecordWidget } from "./record-widget";
|
|
7
|
-
import type {
|
|
7
|
+
import type { FriendlyStruct } from "./workflow";
|
|
8
|
+
import type { WorkflowStepBlock } from "./workflow-step-block";
|
|
9
|
+
import type { WorkflowTriggerBlock } from "./workflow-trigger-block";
|
|
8
10
|
export declare namespace App {
|
|
9
11
|
namespace Record {
|
|
10
12
|
/**
|
|
@@ -172,11 +174,11 @@ export declare namespace App {
|
|
|
172
174
|
/**
|
|
173
175
|
* @deprecated This part of the SDK is not yet released and may change. Do not use it
|
|
174
176
|
*/
|
|
175
|
-
type StepBlock =
|
|
177
|
+
type StepBlock<TSchema extends FriendlyStruct> = WorkflowStepBlock<TSchema>;
|
|
176
178
|
/**
|
|
177
179
|
* @deprecated This part of the SDK is not yet released and may change. Do not use it
|
|
178
180
|
*/
|
|
179
|
-
type TriggerBlock =
|
|
181
|
+
type TriggerBlock<TSchema extends FriendlyStruct> = WorkflowTriggerBlock<TSchema>;
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
export interface App {
|
|
@@ -219,11 +221,11 @@ export interface App {
|
|
|
219
221
|
/**
|
|
220
222
|
* @deprecated This part of the SDK is not yet released and may change. Do not use it
|
|
221
223
|
*/
|
|
222
|
-
steps?: Array<App.Workflow.StepBlock
|
|
224
|
+
steps?: Array<App.Workflow.StepBlock<FriendlyStruct>>;
|
|
223
225
|
/**
|
|
224
226
|
* @deprecated This part of the SDK is not yet released and may change. Do not use it
|
|
225
227
|
*/
|
|
226
|
-
triggers?: Array<App.Workflow.TriggerBlock
|
|
228
|
+
triggers?: Array<App.Workflow.TriggerBlock<FriendlyStruct>>;
|
|
227
229
|
};
|
|
228
230
|
};
|
|
229
231
|
}
|
package/lib/client/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/client/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAC,uCAAuC,EAAC,MAAM,gDAAgD,CAAA;AAC3G,OAAO,KAAK,EAAC,uCAAuC,EAAC,MAAM,gDAAgD,CAAA;AAC3G,OAAO,KAAK,EAAC,0CAA0C,EAAC,MAAM,mDAAmD,CAAA;AACjH,OAAO,KAAK,EA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A;IAED;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAChB;;WAEG;QACH,QAAQ,CAAC,MAAM,CAAC,EAAE;YACd;;eAEG;YACH,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAA;YAErD;;eAEG;YACH,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,CAAA;SAC9D,CAAA;KACJ,CAAA;CACJ"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** biome-ignore-all lint/style/useNamingConvention: Experimental */
|
|
2
|
+
export { getSettings as experimental_getSettings, setUserSetting as experimental_setUserSetting, setWorkspaceSetting as experimental_setWorkspaceSetting, useSettings as experimental_useSettings, } from "./settings";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/experimental/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EACH,WAAW,IAAI,wBAAwB,EACvC,cAAc,IAAI,2BAA2B,EAC7C,mBAAmB,IAAI,gCAAgC,EACvD,WAAW,IAAI,wBAAwB,GAC1C,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** biome-ignore-all lint/style/useNamingConvention: Experimental */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.experimental_useSettings = exports.experimental_setWorkspaceSetting = exports.experimental_setUserSetting = exports.experimental_getSettings = void 0;
|
|
5
|
+
var settings_1 = require("./settings");
|
|
6
|
+
Object.defineProperty(exports, "experimental_getSettings", { enumerable: true, get: function () { return settings_1.getSettings; } });
|
|
7
|
+
Object.defineProperty(exports, "experimental_setUserSetting", { enumerable: true, get: function () { return settings_1.setUserSetting; } });
|
|
8
|
+
Object.defineProperty(exports, "experimental_setWorkspaceSetting", { enumerable: true, get: function () { return settings_1.setWorkspaceSetting; } });
|
|
9
|
+
Object.defineProperty(exports, "experimental_useSettings", { enumerable: true, get: function () { return settings_1.useSettings; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/experimental/index.ts"],"names":[],"mappings":";AAAA,oEAAoE;;;AAEpE,uCAKmB;AAJf,oHAAA,WAAW,OAA4B;AACvC,uHAAA,cAAc,OAA+B;AAC7C,4HAAA,mBAAmB,OAAoC;AACvD,oHAAA,WAAW,OAA4B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AppSettings } from "../../../root";
|
|
2
|
+
/**
|
|
3
|
+
* Get user and workspace level settings
|
|
4
|
+
* @deprecated This part of the SDK is not yet released and may change. Do not use it yet.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getSettings(): Promise<AppSettings>;
|
|
7
|
+
//# sourceMappingURL=get-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-settings.d.ts","sourceRoot":"","sources":["../../../../src/client/experimental/settings/get-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AAE9C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-settings.js","sourceRoot":"","sources":["../../../../src/client/experimental/settings/get-settings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/experimental/settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./get-settings"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./set-user-setting"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./set-workspace-setting"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./use-settings"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/experimental/settings/index.ts"],"names":[],"mappings":";;;AAAA,yDAA8B;AAC9B,6DAAkC;AAClC,kEAAuC;AACvC,yDAA8B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { UserSettings } from "../../../root";
|
|
2
|
+
/**
|
|
3
|
+
* Get a user level setting
|
|
4
|
+
* @deprecated This part of the SDK is not yet released and may change. Do not use it yet.
|
|
5
|
+
*/
|
|
6
|
+
export declare function setUserSetting<TKey extends keyof UserSettings>(key: TKey, value: UserSettings[TKey]): Promise<undefined>;
|
|
7
|
+
//# sourceMappingURL=set-user-setting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-user-setting.d.ts","sourceRoot":"","sources":["../../../../src/client/experimental/settings/set-user-setting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAA;AAE/C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,IAAI,SAAS,MAAM,YAAY,EAClE,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,GAC1B,OAAO,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-user-setting.js","sourceRoot":"","sources":["../../../../src/client/experimental/settings/set-user-setting.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkspaceSettings } from "../../../root";
|
|
2
|
+
/**
|
|
3
|
+
* Set a workspace level setting
|
|
4
|
+
* @deprecated This part of the SDK is not yet released and may change. Do not use it yet.
|
|
5
|
+
*/
|
|
6
|
+
export declare function setWorkspaceSetting<TKey extends keyof WorkspaceSettings>(key: TKey, value: WorkspaceSettings[TKey]): Promise<undefined>;
|
|
7
|
+
//# sourceMappingURL=set-workspace-setting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-workspace-setting.d.ts","sourceRoot":"","sources":["../../../../src/client/experimental/settings/set-workspace-setting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEpD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,IAAI,SAAS,MAAM,iBAAiB,EAC5E,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAC/B,OAAO,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-workspace-setting.js","sourceRoot":"","sources":["../../../../src/client/experimental/settings/set-workspace-setting.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AppSettings } from "../../../root";
|
|
2
|
+
/**
|
|
3
|
+
* Get user and workspace level settings
|
|
4
|
+
* @deprecated This part of the SDK is not yet released and may change. Do not use it yet.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useSettings(): AppSettings;
|
|
7
|
+
//# sourceMappingURL=use-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-settings.d.ts","sourceRoot":"","sources":["../../../../src/client/experimental/settings/use-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AAE9C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-settings.js","sourceRoot":"","sources":["../../../../src/client/experimental/settings/use-settings.ts"],"names":[],"mappings":""}
|
package/lib/client/index.d.ts
CHANGED
|
@@ -19,10 +19,12 @@ export type { AttioIcon, Icon } from "./icon.js";
|
|
|
19
19
|
export type { Attribute, ObjectSlug, StandardObjectSlug, SystemObjectSlug } from "./object-slug.js";
|
|
20
20
|
export type { RecordAction } from "./record-action.js";
|
|
21
21
|
export type { RecordWidget } from "./record-widget.js";
|
|
22
|
-
export type {
|
|
22
|
+
export type { WorkflowStepBlock } from "./workflow-step-block.js";
|
|
23
|
+
export type { WorkflowTriggerBlock } from "./workflow-trigger-block.js";
|
|
23
24
|
export { type AlertOptions, alert } from "./alert.js";
|
|
24
25
|
export * from "./components/index.js";
|
|
25
26
|
export { type ConfirmOptions, confirm } from "./confirm.js";
|
|
27
|
+
export * from "./experimental/index.js";
|
|
26
28
|
export * as Forms from "./forms/index.js";
|
|
27
29
|
export * from "./forms/path.js";
|
|
28
30
|
export * from "./hooks/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAC,GAAG,EAAC,MAAM,UAAU,CAAA;AACjC,YAAY,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAA;AAC7D,YAAY,EAAC,uCAAuC,EAAC,MAAM,mDAAmD,CAAA;AAC9G,YAAY,EAAC,uCAAuC,EAAC,MAAM,mDAAmD,CAAA;AAC9G,YAAY,EAAC,0CAA0C,EAAC,MAAM,sDAA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pB,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,qBAAqB,MAAM,qBAAqB,CAAA"}
|
package/lib/client/index.js
CHANGED
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "alert", { enumerable: true, get: function () { r
|
|
|
10
10
|
tslib_1.__exportStar(require("./components/index.js"), exports);
|
|
11
11
|
var confirm_js_1 = require("./confirm.js");
|
|
12
12
|
Object.defineProperty(exports, "confirm", { enumerable: true, get: function () { return confirm_js_1.confirm; } });
|
|
13
|
+
tslib_1.__exportStar(require("./experimental/index.js"), exports);
|
|
13
14
|
exports.Forms = tslib_1.__importStar(require("./forms/index.js"));
|
|
14
15
|
tslib_1.__exportStar(require("./forms/path.js"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./hooks/index.js"), exports);
|
package/lib/client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAsBH,uCAAmD;AAAxB,iGAAA,KAAK,OAAA;AAChC,gEAAqC;AACrC,2CAAyD;AAA5B,qGAAA,OAAO,OAAA;AACpC,kEAAuC;AACvC,kEAAyC;AACzC,0DAA+B;AAC/B,2DAAgC;AAChC,6CAAsC;AAA9B,uGAAA,QAAQ,OAAA;AAChB,+CAAmD;AAA/B,wGAAA,QAAQ,OAAA;AAC5B,mDAAwD;AAAnC,4GAAA,UAAU,OAAA;AAC/B,mDAA+D;AAAnC,4GAAA,UAAU,OAAA;AACtC,iDAIwB;AAHpB,0GAAA,SAAS,OAAA;AAIb,4DAA4D;AAC5D,qFAA4D"}
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
import type { FriendlyStruct } from "../../shared/workflow/config/friendly-node";
|
|
2
1
|
export type { FriendlyStruct } from "../../shared/workflow/config/friendly-node";
|
|
3
2
|
export * from "./friendly-value";
|
|
3
|
+
export * as Outcome from "./outcome-data-schema";
|
|
4
4
|
export { useConfigurator } from "./use-configurator";
|
|
5
|
-
export interface Block {
|
|
6
|
-
/**
|
|
7
|
-
* An identifier for the block. This should be unique across all blocks in your app.
|
|
8
|
-
*/
|
|
9
|
-
slug: string;
|
|
10
|
-
/**
|
|
11
|
-
* A readable title for the block.
|
|
12
|
-
*/
|
|
13
|
-
title: string;
|
|
14
|
-
/**
|
|
15
|
-
* Describes the shape of this block's configuration.
|
|
16
|
-
*/
|
|
17
|
-
configSchema: FriendlyStruct;
|
|
18
|
-
/**
|
|
19
|
-
* A React component that renders the block's configurator UI.
|
|
20
|
-
*/
|
|
21
|
-
configurator: React.ReactNode;
|
|
22
|
-
}
|
|
23
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/workflow/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/workflow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,cAAc,EAAC,MAAM,4CAA4C,CAAA;AAC9E,cAAc,kBAAkB,CAAA;AAChC,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useConfigurator = void 0;
|
|
3
|
+
exports.useConfigurator = exports.Outcome = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
tslib_1.__exportStar(require("./friendly-value"), exports);
|
|
6
|
+
exports.Outcome = tslib_1.__importStar(require("./outcome-data-schema"));
|
|
6
7
|
var use_configurator_1 = require("./use-configurator");
|
|
7
8
|
Object.defineProperty(exports, "useConfigurator", { enumerable: true, get: function () { return use_configurator_1.useConfigurator; } });
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/workflow/index.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/workflow/index.ts"],"names":[],"mappings":";;;;AACA,2DAAgC;AAChC,yEAAgD;AAChD,uDAAkD;AAA1C,mHAAA,eAAe,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ArrayNode } from "../../../shared/workflow/outcome/node";
|
|
2
|
+
/**
|
|
3
|
+
* Creates an array schema type.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated This functionality is experimental and may change in the future.
|
|
6
|
+
*/
|
|
7
|
+
export declare function array<TElement>(element: TElement): ArrayNode<TElement, {
|
|
8
|
+
is_optional: false;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=array-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/array-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,uCAAuC,CAAA;AAEpE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,QAAQ,EAClC,OAAO,EAAE,QAAQ,GAClB,SAAS,CAAC,QAAQ,EAAE;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array-node.js","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/array-node.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AttioRecord } from "../../../shared/workflow/outcome/attio-record";
|
|
2
|
+
/**
|
|
3
|
+
* Creates an Attio record attribute schema type.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated This functionality is experimental and may change in the future.
|
|
6
|
+
*/
|
|
7
|
+
export declare function attioRecord(): AttioRecord<{
|
|
8
|
+
is_optional: false;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=attio-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attio-record.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,+CAA+C,CAAA;AAE9E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,WAAW,CAAC;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attio-record.js","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-record.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AttioSelect } from "../../../shared/workflow/outcome/attio-select";
|
|
2
|
+
/**
|
|
3
|
+
* Creates an Attio select attribute schema type.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated This functionality is experimental and may change in the future.
|
|
6
|
+
*/
|
|
7
|
+
export declare function attioSelect(): AttioSelect<{
|
|
8
|
+
is_optional: false;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=attio-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attio-select.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,+CAA+C,CAAA;AAE9E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,WAAW,CAAC;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attio-select.js","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-select.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BooleanNode } from "../../../shared/workflow/outcome/boolean-node";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a boolean schema type.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated This functionality is experimental and may change in the future.
|
|
6
|
+
*/
|
|
7
|
+
export declare function boolean(): BooleanNode<{
|
|
8
|
+
is_optional: false;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=boolean-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/boolean-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,+CAA+C,CAAA;AAE9E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,WAAW,CAAC;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boolean-node.js","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/boolean-node.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { array } from "./array-node";
|
|
2
|
+
export { attioRecord } from "./attio-record";
|
|
3
|
+
export { attioSelect } from "./attio-select";
|
|
4
|
+
export { boolean } from "./boolean-node";
|
|
5
|
+
export { number } from "./number-node";
|
|
6
|
+
export { string } from "./string-node";
|
|
7
|
+
export { struct } from "./struct-node";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,cAAc,CAAA;AAClC,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAA;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.struct = exports.string = exports.number = exports.boolean = exports.attioSelect = exports.attioRecord = exports.array = void 0;
|
|
4
|
+
var array_node_1 = require("./array-node");
|
|
5
|
+
Object.defineProperty(exports, "array", { enumerable: true, get: function () { return array_node_1.array; } });
|
|
6
|
+
var attio_record_1 = require("./attio-record");
|
|
7
|
+
Object.defineProperty(exports, "attioRecord", { enumerable: true, get: function () { return attio_record_1.attioRecord; } });
|
|
8
|
+
var attio_select_1 = require("./attio-select");
|
|
9
|
+
Object.defineProperty(exports, "attioSelect", { enumerable: true, get: function () { return attio_select_1.attioSelect; } });
|
|
10
|
+
var boolean_node_1 = require("./boolean-node");
|
|
11
|
+
Object.defineProperty(exports, "boolean", { enumerable: true, get: function () { return boolean_node_1.boolean; } });
|
|
12
|
+
var number_node_1 = require("./number-node");
|
|
13
|
+
Object.defineProperty(exports, "number", { enumerable: true, get: function () { return number_node_1.number; } });
|
|
14
|
+
var string_node_1 = require("./string-node");
|
|
15
|
+
Object.defineProperty(exports, "string", { enumerable: true, get: function () { return string_node_1.string; } });
|
|
16
|
+
var struct_node_1 = require("./struct-node");
|
|
17
|
+
Object.defineProperty(exports, "struct", { enumerable: true, get: function () { return struct_node_1.struct; } });
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/index.ts"],"names":[],"mappings":";;;AAAA,2CAAkC;AAA1B,mGAAA,KAAK,OAAA;AACb,+CAA0C;AAAlC,2GAAA,WAAW,OAAA;AACnB,+CAA0C;AAAlC,2GAAA,WAAW,OAAA;AACnB,+CAAsC;AAA9B,uGAAA,OAAO,OAAA;AACf,6CAAoC;AAA5B,qGAAA,MAAM,OAAA;AACd,6CAAoC;AAA5B,qGAAA,MAAM,OAAA;AACd,6CAAoC;AAA5B,qGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NumberNode } from "../../../shared/workflow/outcome/number-node";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a number schema type.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated This functionality is experimental and may change in the future.
|
|
6
|
+
*/
|
|
7
|
+
export declare function number(): NumberNode<{
|
|
8
|
+
is_optional: false;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=number-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/number-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAA;AAE5E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,IAAI,UAAU,CAAC;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-node.js","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/number-node.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StringNode } from "../../../shared/workflow/outcome/string-node";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a string schema type.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated This functionality is experimental and may change in the future.
|
|
6
|
+
*/
|
|
7
|
+
export declare function string(): StringNode<{
|
|
8
|
+
is_optional: false;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=string-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/string-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAA;AAE5E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,IAAI,UAAU,CAAC;IAAC,WAAW,EAAE,KAAK,CAAA;CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-node.js","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/string-node.ts"],"names":[],"mappings":""}
|