attio 0.0.1-experimental.20240909 → 0.0.1-experimental.20240911.2

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.
Files changed (317) hide show
  1. package/attio.js +1 -0
  2. package/client.d.ts +1 -0
  3. package/global.d.ts +19 -0
  4. package/lib/api/add-connection-definition.js +0 -1
  5. package/lib/api/complete-bundle-upload.js +0 -1
  6. package/lib/api/complete-prod-bundle-upload.js +0 -1
  7. package/lib/api/create-app.js +0 -1
  8. package/lib/api/create-dev-version.js +0 -1
  9. package/lib/api/create-developer-account.js +0 -1
  10. package/lib/api/create-version.js +0 -1
  11. package/lib/api/fetch-versions.js +0 -1
  12. package/lib/api/generate-invite-link.js +0 -1
  13. package/lib/api/handle-error.js +0 -1
  14. package/lib/api/is-app-slug-valid.js +0 -1
  15. package/lib/api/make-headers.js +0 -1
  16. package/lib/api/publish-version.js +0 -1
  17. package/lib/api/remove-connection-definition.js +0 -1
  18. package/lib/api/start-upload.js +0 -1
  19. package/lib/attio.js +0 -1
  20. package/lib/build/client/create-client-build-config.js +0 -1
  21. package/lib/build/client/generate-client-entry.js +0 -1
  22. package/lib/build/get-module-hash.js +0 -1
  23. package/lib/build/proxy-server-modules-plugin.js +0 -1
  24. package/lib/build/server/create-server-build-config.js +0 -1
  25. package/lib/build/server/generate-server-entry.js +0 -1
  26. package/lib/build.js +0 -1
  27. package/lib/client/components/action.d.ts +10 -0
  28. package/lib/client/components/combobox.d.ts +9 -0
  29. package/lib/client/components/dialog.d.ts +10 -0
  30. package/lib/client/components/index.d.ts +6 -0
  31. package/lib/client/components/multistep.d.ts +17 -0
  32. package/lib/client/components/section.d.ts +8 -0
  33. package/lib/client/components/text-block.d.ts +8 -0
  34. package/lib/client/forms/array.d.ts +12 -0
  35. package/lib/client/forms/build.d.ts +48 -0
  36. package/lib/client/forms/index.d.ts +4 -0
  37. package/lib/client/forms/number.d.ts +14 -0
  38. package/lib/client/forms/path.d.ts +34 -0
  39. package/lib/client/forms/string.d.ts +15 -0
  40. package/lib/client/hooks/index.d.ts +4 -0
  41. package/lib/client/hooks/use-graphql.d.ts +4 -0
  42. package/lib/client/hooks/use-loader.d.ts +13 -0
  43. package/lib/client/hooks/use-query.d.ts +5 -0
  44. package/lib/client/hooks/use-record.d.ts +9 -0
  45. package/lib/client/index.d.ts +8 -0
  46. package/lib/client/object-slug.d.ts +3 -0
  47. package/lib/client/util/prettify.d.ts +3 -0
  48. package/lib/commands/build.js +0 -1
  49. package/lib/commands/connection/add.js +0 -1
  50. package/lib/commands/connection/index.js +0 -1
  51. package/lib/commands/connection/remove.js +0 -1
  52. package/lib/commands/create.js +0 -1
  53. package/lib/commands/dev.js +0 -1
  54. package/lib/commands/version/create.js +0 -1
  55. package/lib/commands/version/index.js +0 -1
  56. package/lib/commands/version/invite.js +0 -1
  57. package/lib/commands/version/list.js +0 -1
  58. package/lib/commands/version/publish.js +0 -1
  59. package/lib/components/BuildError.js +0 -1
  60. package/lib/components/BuildLog.js +0 -1
  61. package/lib/components/Disclaimer.js +0 -1
  62. package/lib/components/InitialInstructions.js +0 -1
  63. package/lib/components/Logo.js +0 -1
  64. package/lib/components/MultiSelect.js +0 -1
  65. package/lib/components/ScrollBox.js +0 -1
  66. package/lib/components/ScrollBox.store.js +0 -1
  67. package/lib/components/ScrollBox.util.js +0 -1
  68. package/lib/components/Select.js +0 -1
  69. package/lib/components/Table.js +0 -1
  70. package/lib/components/TypeScriptErrors.js +0 -1
  71. package/lib/env.js +0 -1
  72. package/lib/hooks/useFullScreen.js +0 -1
  73. package/lib/hooks/useTerminalTitle.js +0 -1
  74. package/lib/machines/actors.js +0 -1
  75. package/lib/machines/add-connection-machine.js +0 -1
  76. package/lib/machines/build-machine.js +0 -1
  77. package/lib/machines/build-orchestrator.js +0 -1
  78. package/lib/machines/create-machine.js +0 -1
  79. package/lib/machines/create-version-machine.js +0 -1
  80. package/lib/machines/dev-machine.js +0 -1
  81. package/lib/machines/generate-invite-machine.js +0 -1
  82. package/lib/machines/js-machine.js +0 -1
  83. package/lib/machines/list-versions-machine.js +0 -1
  84. package/lib/machines/publish-version-machine.js +0 -1
  85. package/lib/machines/remove-connection-machine.js +0 -1
  86. package/lib/machines/ts-machine.js +0 -1
  87. package/lib/schema.js +0 -1
  88. package/lib/server/index.d.ts +1 -0
  89. package/lib/templates/javascript/package.json +0 -1
  90. package/lib/templates/javascript/src/app/record/counter-action.jsx +1 -1
  91. package/lib/templates/typescript/package.json +0 -1
  92. package/lib/templates/typescript/src/app/record/counter-action.tsx +1 -1
  93. package/lib/templates/typescript/tsconfig.json +2 -2
  94. package/lib/tsconfig.tsbuildinfo +1 -0
  95. package/lib/util/app-config.js +0 -1
  96. package/lib/util/copy-with-replace.js +0 -1
  97. package/lib/util/create-directory.js +0 -1
  98. package/lib/util/load-developer-config.js +0 -1
  99. package/lib/util/load-env.js +0 -1
  100. package/lib/util/slugify-extension.js +0 -1
  101. package/lib/util/typescript.js +0 -1
  102. package/lib/util/validate-slug.js +0 -1
  103. package/package.json +9 -63
  104. package/server.d.ts +1 -0
  105. package/lib/api/add-connection-definition.d.ts +0 -26
  106. package/lib/api/add-connection-definition.d.ts.map +0 -1
  107. package/lib/api/add-connection-definition.js.map +0 -1
  108. package/lib/api/complete-bundle-upload.d.ts +0 -8
  109. package/lib/api/complete-bundle-upload.d.ts.map +0 -1
  110. package/lib/api/complete-bundle-upload.js.map +0 -1
  111. package/lib/api/complete-prod-bundle-upload.d.ts +0 -9
  112. package/lib/api/complete-prod-bundle-upload.d.ts.map +0 -1
  113. package/lib/api/complete-prod-bundle-upload.js.map +0 -1
  114. package/lib/api/create-app.d.ts +0 -14
  115. package/lib/api/create-app.d.ts.map +0 -1
  116. package/lib/api/create-app.js.map +0 -1
  117. package/lib/api/create-dev-version.d.ts +0 -28
  118. package/lib/api/create-dev-version.d.ts.map +0 -1
  119. package/lib/api/create-dev-version.js.map +0 -1
  120. package/lib/api/create-developer-account.d.ts +0 -12
  121. package/lib/api/create-developer-account.d.ts.map +0 -1
  122. package/lib/api/create-developer-account.js.map +0 -1
  123. package/lib/api/create-version.d.ts +0 -33
  124. package/lib/api/create-version.d.ts.map +0 -1
  125. package/lib/api/create-version.js.map +0 -1
  126. package/lib/api/fetch-versions.d.ts +0 -47
  127. package/lib/api/fetch-versions.d.ts.map +0 -1
  128. package/lib/api/fetch-versions.js.map +0 -1
  129. package/lib/api/generate-invite-link.d.ts +0 -18
  130. package/lib/api/generate-invite-link.d.ts.map +0 -1
  131. package/lib/api/generate-invite-link.js.map +0 -1
  132. package/lib/api/handle-error.d.ts +0 -3
  133. package/lib/api/handle-error.d.ts.map +0 -1
  134. package/lib/api/handle-error.js.map +0 -1
  135. package/lib/api/is-app-slug-valid.d.ts +0 -6
  136. package/lib/api/is-app-slug-valid.d.ts.map +0 -1
  137. package/lib/api/is-app-slug-valid.js.map +0 -1
  138. package/lib/api/make-headers.d.ts +0 -6
  139. package/lib/api/make-headers.d.ts.map +0 -1
  140. package/lib/api/make-headers.js.map +0 -1
  141. package/lib/api/publish-version.d.ts +0 -18
  142. package/lib/api/publish-version.d.ts.map +0 -1
  143. package/lib/api/publish-version.js.map +0 -1
  144. package/lib/api/remove-connection-definition.d.ts +0 -6
  145. package/lib/api/remove-connection-definition.d.ts.map +0 -1
  146. package/lib/api/remove-connection-definition.js.map +0 -1
  147. package/lib/api/start-upload.d.ts +0 -12
  148. package/lib/api/start-upload.d.ts.map +0 -1
  149. package/lib/api/start-upload.js.map +0 -1
  150. package/lib/attio.d.ts +0 -3
  151. package/lib/attio.d.ts.map +0 -1
  152. package/lib/attio.js.map +0 -1
  153. package/lib/build/client/create-client-build-config.d.ts +0 -6
  154. package/lib/build/client/create-client-build-config.d.ts.map +0 -1
  155. package/lib/build/client/create-client-build-config.js.map +0 -1
  156. package/lib/build/client/generate-client-entry.d.ts +0 -6
  157. package/lib/build/client/generate-client-entry.d.ts.map +0 -1
  158. package/lib/build/client/generate-client-entry.js.map +0 -1
  159. package/lib/build/get-module-hash.d.ts +0 -2
  160. package/lib/build/get-module-hash.d.ts.map +0 -1
  161. package/lib/build/get-module-hash.js.map +0 -1
  162. package/lib/build/proxy-server-modules-plugin.d.ts +0 -5
  163. package/lib/build/proxy-server-modules-plugin.d.ts.map +0 -1
  164. package/lib/build/proxy-server-modules-plugin.js.map +0 -1
  165. package/lib/build/server/create-server-build-config.d.ts +0 -3
  166. package/lib/build/server/create-server-build-config.d.ts.map +0 -1
  167. package/lib/build/server/create-server-build-config.js.map +0 -1
  168. package/lib/build/server/generate-server-entry.d.ts +0 -5
  169. package/lib/build/server/generate-server-entry.d.ts.map +0 -1
  170. package/lib/build/server/generate-server-entry.js.map +0 -1
  171. package/lib/build.d.ts +0 -156
  172. package/lib/build.d.ts.map +0 -1
  173. package/lib/build.js.map +0 -1
  174. package/lib/commands/build.d.ts +0 -4
  175. package/lib/commands/build.d.ts.map +0 -1
  176. package/lib/commands/build.js.map +0 -1
  177. package/lib/commands/connection/add.d.ts +0 -37
  178. package/lib/commands/connection/add.d.ts.map +0 -1
  179. package/lib/commands/connection/add.js.map +0 -1
  180. package/lib/commands/connection/index.d.ts +0 -2
  181. package/lib/commands/connection/index.d.ts.map +0 -1
  182. package/lib/commands/connection/index.js.map +0 -1
  183. package/lib/commands/connection/remove.d.ts +0 -16
  184. package/lib/commands/connection/remove.d.ts.map +0 -1
  185. package/lib/commands/connection/remove.js.map +0 -1
  186. package/lib/commands/create.d.ts +0 -31
  187. package/lib/commands/create.d.ts.map +0 -1
  188. package/lib/commands/create.js.map +0 -1
  189. package/lib/commands/dev.d.ts +0 -16
  190. package/lib/commands/dev.d.ts.map +0 -1
  191. package/lib/commands/dev.js.map +0 -1
  192. package/lib/commands/version/create.d.ts +0 -16
  193. package/lib/commands/version/create.d.ts.map +0 -1
  194. package/lib/commands/version/create.js.map +0 -1
  195. package/lib/commands/version/index.d.ts +0 -2
  196. package/lib/commands/version/index.d.ts.map +0 -1
  197. package/lib/commands/version/index.js.map +0 -1
  198. package/lib/commands/version/invite.d.ts +0 -18
  199. package/lib/commands/version/invite.d.ts.map +0 -1
  200. package/lib/commands/version/invite.js.map +0 -1
  201. package/lib/commands/version/list.d.ts +0 -17
  202. package/lib/commands/version/list.d.ts.map +0 -1
  203. package/lib/commands/version/list.js.map +0 -1
  204. package/lib/commands/version/publish.d.ts +0 -18
  205. package/lib/commands/version/publish.d.ts.map +0 -1
  206. package/lib/commands/version/publish.js.map +0 -1
  207. package/lib/components/BuildError.d.ts +0 -4
  208. package/lib/components/BuildError.d.ts.map +0 -1
  209. package/lib/components/BuildError.js.map +0 -1
  210. package/lib/components/BuildLog.d.ts +0 -7
  211. package/lib/components/BuildLog.d.ts.map +0 -1
  212. package/lib/components/BuildLog.js.map +0 -1
  213. package/lib/components/Disclaimer.d.ts +0 -3
  214. package/lib/components/Disclaimer.d.ts.map +0 -1
  215. package/lib/components/Disclaimer.js.map +0 -1
  216. package/lib/components/InitialInstructions.d.ts +0 -5
  217. package/lib/components/InitialInstructions.d.ts.map +0 -1
  218. package/lib/components/InitialInstructions.js.map +0 -1
  219. package/lib/components/Logo.d.ts +0 -3
  220. package/lib/components/Logo.d.ts.map +0 -1
  221. package/lib/components/Logo.js.map +0 -1
  222. package/lib/components/MultiSelect.d.ts +0 -13
  223. package/lib/components/MultiSelect.d.ts.map +0 -1
  224. package/lib/components/MultiSelect.js.map +0 -1
  225. package/lib/components/ScrollBox.d.ts +0 -4
  226. package/lib/components/ScrollBox.d.ts.map +0 -1
  227. package/lib/components/ScrollBox.js.map +0 -1
  228. package/lib/components/ScrollBox.store.d.ts +0 -15
  229. package/lib/components/ScrollBox.store.d.ts.map +0 -1
  230. package/lib/components/ScrollBox.store.js.map +0 -1
  231. package/lib/components/ScrollBox.util.d.ts +0 -4
  232. package/lib/components/ScrollBox.util.d.ts.map +0 -1
  233. package/lib/components/ScrollBox.util.js.map +0 -1
  234. package/lib/components/Select.d.ts +0 -13
  235. package/lib/components/Select.d.ts.map +0 -1
  236. package/lib/components/Select.js.map +0 -1
  237. package/lib/components/Table.d.ts +0 -5
  238. package/lib/components/Table.d.ts.map +0 -1
  239. package/lib/components/Table.js.map +0 -1
  240. package/lib/components/TypeScriptErrors.d.ts +0 -4
  241. package/lib/components/TypeScriptErrors.d.ts.map +0 -1
  242. package/lib/components/TypeScriptErrors.js.map +0 -1
  243. package/lib/env.d.ts +0 -5
  244. package/lib/env.d.ts.map +0 -1
  245. package/lib/env.js.map +0 -1
  246. package/lib/hooks/useFullScreen.d.ts +0 -3
  247. package/lib/hooks/useFullScreen.d.ts.map +0 -1
  248. package/lib/hooks/useFullScreen.js.map +0 -1
  249. package/lib/hooks/useTerminalTitle.d.ts +0 -2
  250. package/lib/hooks/useTerminalTitle.d.ts.map +0 -1
  251. package/lib/hooks/useTerminalTitle.js.map +0 -1
  252. package/lib/machines/actors.d.ts +0 -3
  253. package/lib/machines/actors.d.ts.map +0 -1
  254. package/lib/machines/actors.js.map +0 -1
  255. package/lib/machines/add-connection-machine.d.ts +0 -290
  256. package/lib/machines/add-connection-machine.d.ts.map +0 -1
  257. package/lib/machines/add-connection-machine.js.map +0 -1
  258. package/lib/machines/build-machine.d.ts +0 -673
  259. package/lib/machines/build-machine.d.ts.map +0 -1
  260. package/lib/machines/build-machine.js.map +0 -1
  261. package/lib/machines/build-orchestrator.d.ts +0 -16
  262. package/lib/machines/build-orchestrator.d.ts.map +0 -1
  263. package/lib/machines/build-orchestrator.js.map +0 -1
  264. package/lib/machines/create-machine.d.ts +0 -240
  265. package/lib/machines/create-machine.d.ts.map +0 -1
  266. package/lib/machines/create-machine.js.map +0 -1
  267. package/lib/machines/create-version-machine.d.ts +0 -872
  268. package/lib/machines/create-version-machine.d.ts.map +0 -1
  269. package/lib/machines/create-version-machine.js.map +0 -1
  270. package/lib/machines/dev-machine.d.ts +0 -971
  271. package/lib/machines/dev-machine.d.ts.map +0 -1
  272. package/lib/machines/dev-machine.js.map +0 -1
  273. package/lib/machines/generate-invite-machine.d.ts +0 -168
  274. package/lib/machines/generate-invite-machine.d.ts.map +0 -1
  275. package/lib/machines/generate-invite-machine.js.map +0 -1
  276. package/lib/machines/js-machine.d.ts +0 -142
  277. package/lib/machines/js-machine.d.ts.map +0 -1
  278. package/lib/machines/js-machine.js.map +0 -1
  279. package/lib/machines/list-versions-machine.d.ts +0 -119
  280. package/lib/machines/list-versions-machine.d.ts.map +0 -1
  281. package/lib/machines/list-versions-machine.js.map +0 -1
  282. package/lib/machines/publish-version-machine.d.ts +0 -159
  283. package/lib/machines/publish-version-machine.d.ts.map +0 -1
  284. package/lib/machines/publish-version-machine.js.map +0 -1
  285. package/lib/machines/remove-connection-machine.d.ts +0 -103
  286. package/lib/machines/remove-connection-machine.d.ts.map +0 -1
  287. package/lib/machines/remove-connection-machine.js.map +0 -1
  288. package/lib/machines/ts-machine.d.ts +0 -81
  289. package/lib/machines/ts-machine.d.ts.map +0 -1
  290. package/lib/machines/ts-machine.js.map +0 -1
  291. package/lib/schema.d.ts +0 -46
  292. package/lib/schema.d.ts.map +0 -1
  293. package/lib/schema.js.map +0 -1
  294. package/lib/util/app-config.d.ts +0 -11
  295. package/lib/util/app-config.d.ts.map +0 -1
  296. package/lib/util/app-config.js.map +0 -1
  297. package/lib/util/copy-with-replace.d.ts +0 -2
  298. package/lib/util/copy-with-replace.d.ts.map +0 -1
  299. package/lib/util/copy-with-replace.js.map +0 -1
  300. package/lib/util/create-directory.d.ts +0 -2
  301. package/lib/util/create-directory.d.ts.map +0 -1
  302. package/lib/util/create-directory.js.map +0 -1
  303. package/lib/util/load-developer-config.d.ts +0 -41
  304. package/lib/util/load-developer-config.d.ts.map +0 -1
  305. package/lib/util/load-developer-config.js.map +0 -1
  306. package/lib/util/load-env.d.ts +0 -3
  307. package/lib/util/load-env.d.ts.map +0 -1
  308. package/lib/util/load-env.js.map +0 -1
  309. package/lib/util/slugify-extension.d.ts +0 -2
  310. package/lib/util/slugify-extension.d.ts.map +0 -1
  311. package/lib/util/slugify-extension.js.map +0 -1
  312. package/lib/util/typescript.d.ts +0 -41
  313. package/lib/util/typescript.d.ts.map +0 -1
  314. package/lib/util/typescript.js.map +0 -1
  315. package/lib/util/validate-slug.d.ts +0 -3
  316. package/lib/util/validate-slug.d.ts.map +0 -1
  317. package/lib/util/validate-slug.js.map +0 -1
@@ -1,872 +0,0 @@
1
- import { AppVersion } from "../api/create-version.js";
2
- import { Config } from "../schema.js";
3
- import { InitialDeveloperConfigError } from "../util/load-developer-config.js";
4
- export declare const connectionTypes: readonly [{
5
- readonly value: "secret";
6
- readonly label: "Secret";
7
- }, {
8
- readonly value: "oauth2-code";
9
- readonly label: "OAuth2";
10
- }];
11
- export declare const audiences: readonly [{
12
- readonly value: "workspace";
13
- readonly label: "Workspace";
14
- }, {
15
- readonly value: "workspace-member";
16
- readonly label: "Workspace Member";
17
- }];
18
- export type ConnectionType = (typeof connectionTypes)[number]["value"];
19
- export type Audience = (typeof audiences)[number]["value"];
20
- interface Context {
21
- error?: string;
22
- configError?: InitialDeveloperConfigError;
23
- version?: AppVersion;
24
- jsContents?: [string, string];
25
- developer: {
26
- slug: string;
27
- token: string;
28
- };
29
- config: Config;
30
- }
31
- type Event = {
32
- type: "App Config Loaded";
33
- config: Config;
34
- } | {
35
- type: "Developer Config Loaded";
36
- token: string;
37
- slug: string;
38
- } | {
39
- type: "No Developer Config";
40
- configError: InitialDeveloperConfigError;
41
- } | {
42
- type: "JavaScript Success";
43
- contents: [string, string];
44
- time: Date;
45
- } | {
46
- type: "Upload Complete";
47
- } | {
48
- type: "JavaScript Error";
49
- } | {
50
- type: "Version Created";
51
- version: AppVersion;
52
- } | {
53
- type: "Error";
54
- error: string;
55
- } | {
56
- type: "Submit";
57
- } | {
58
- type: "Success";
59
- };
60
- export declare const createVersionMachine: import("xstate").StateMachine<Context, {
61
- type: "App Config Loaded";
62
- config: Config;
63
- } | {
64
- type: "Developer Config Loaded";
65
- token: string;
66
- slug: string;
67
- } | {
68
- type: "No Developer Config";
69
- configError: InitialDeveloperConfigError;
70
- } | {
71
- type: "JavaScript Success";
72
- contents: [string, string];
73
- time: Date;
74
- } | {
75
- type: "Upload Complete";
76
- } | {
77
- type: "JavaScript Error";
78
- } | {
79
- type: "Version Created";
80
- version: AppVersion;
81
- } | {
82
- type: "Error";
83
- error: string;
84
- } | {
85
- type: "Submit";
86
- } | {
87
- type: "Success";
88
- }, {
89
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").MachineSnapshot<import("./js-machine.js").Context, {
90
- type: "Build Contexts Prepared";
91
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
92
- } | {
93
- type: "Change";
94
- } | {
95
- type: "Result";
96
- contents: [string, string];
97
- error?: undefined;
98
- time: Date;
99
- } | {
100
- type: "Result";
101
- contents?: undefined;
102
- error: {
103
- errors: {
104
- text: string;
105
- location: {
106
- length: number;
107
- column: number;
108
- file: string;
109
- line: number;
110
- lineText: string;
111
- namespace: string;
112
- suggestion: string;
113
- };
114
- }[];
115
- warnings: {
116
- text: string;
117
- location: {
118
- length: number;
119
- column: number;
120
- file: string;
121
- line: number;
122
- lineText: string;
123
- namespace: string;
124
- suggestion: string;
125
- };
126
- }[];
127
- };
128
- time: Date;
129
- } | {
130
- type: "Log";
131
- message: string;
132
- }, {
133
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
134
- write: boolean;
135
- }>, {
136
- type: "Build Contexts Prepared";
137
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
138
- } | {
139
- type: "Change";
140
- } | {
141
- type: "Result";
142
- contents: [string, string];
143
- error?: undefined;
144
- time: Date;
145
- } | {
146
- type: "Result";
147
- contents?: undefined;
148
- error: {
149
- errors: {
150
- text: string;
151
- location: {
152
- length: number;
153
- column: number;
154
- file: string;
155
- line: number;
156
- lineText: string;
157
- namespace: string;
158
- suggestion: string;
159
- };
160
- }[];
161
- warnings: {
162
- text: string;
163
- location: {
164
- length: number;
165
- column: number;
166
- file: string;
167
- line: number;
168
- lineText: string;
169
- namespace: string;
170
- suggestion: string;
171
- };
172
- }[];
173
- };
174
- time: Date;
175
- } | {
176
- type: "Log";
177
- message: string;
178
- }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
179
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
180
- write: boolean;
181
- }>, {
182
- type: "Build Contexts Prepared";
183
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
184
- } | {
185
- type: "Change";
186
- } | {
187
- type: "Result";
188
- contents: [string, string];
189
- error?: undefined;
190
- time: Date;
191
- } | {
192
- type: "Result";
193
- contents?: undefined;
194
- error: {
195
- errors: {
196
- text: string;
197
- location: {
198
- length: number;
199
- column: number;
200
- file: string;
201
- line: number;
202
- lineText: string;
203
- namespace: string;
204
- suggestion: string;
205
- };
206
- }[];
207
- warnings: {
208
- text: string;
209
- location: {
210
- length: number;
211
- column: number;
212
- file: string;
213
- line: number;
214
- lineText: string;
215
- namespace: string;
216
- suggestion: string;
217
- };
218
- }[];
219
- };
220
- time: Date;
221
- } | {
222
- type: "Log";
223
- message: string;
224
- }, import("xstate").EventObject> | undefined;
225
- }, "Preparing" | {
226
- Watching?: "Success" | "Building" | "Errored" | undefined;
227
- }, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject>, {
228
- type: "Build Contexts Prepared";
229
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
230
- } | {
231
- type: "Change";
232
- } | {
233
- type: "Result";
234
- contents: [string, string];
235
- error?: undefined;
236
- time: Date;
237
- } | {
238
- type: "Result";
239
- contents?: undefined;
240
- error: {
241
- errors: {
242
- text: string;
243
- location: {
244
- length: number;
245
- column: number;
246
- file: string;
247
- line: number;
248
- lineText: string;
249
- namespace: string;
250
- suggestion: string;
251
- };
252
- }[];
253
- warnings: {
254
- text: string;
255
- location: {
256
- length: number;
257
- column: number;
258
- file: string;
259
- line: number;
260
- lineText: string;
261
- namespace: string;
262
- suggestion: string;
263
- };
264
- }[];
265
- };
266
- time: Date;
267
- } | {
268
- type: "Log";
269
- message: string;
270
- }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
271
- version: AppVersion;
272
- developer: {
273
- token: string;
274
- slug: string;
275
- };
276
- jsContents: [string, string];
277
- }>, any, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Pick<Context, "config" | "developer">>, Event, import("xstate").EventObject> | undefined;
278
- javascript?: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("./js-machine.js").Context, {
279
- type: "Build Contexts Prepared";
280
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
281
- } | {
282
- type: "Change";
283
- } | {
284
- type: "Result";
285
- contents: [string, string];
286
- error?: undefined;
287
- time: Date;
288
- } | {
289
- type: "Result";
290
- contents?: undefined;
291
- error: {
292
- errors: {
293
- text: string;
294
- location: {
295
- length: number;
296
- column: number;
297
- file: string;
298
- line: number;
299
- lineText: string;
300
- namespace: string;
301
- suggestion: string;
302
- };
303
- }[];
304
- warnings: {
305
- text: string;
306
- location: {
307
- length: number;
308
- column: number;
309
- file: string;
310
- line: number;
311
- lineText: string;
312
- namespace: string;
313
- suggestion: string;
314
- };
315
- }[];
316
- };
317
- time: Date;
318
- } | {
319
- type: "Log";
320
- message: string;
321
- }, {
322
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
323
- write: boolean;
324
- }>, {
325
- type: "Build Contexts Prepared";
326
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
327
- } | {
328
- type: "Change";
329
- } | {
330
- type: "Result";
331
- contents: [string, string];
332
- error?: undefined;
333
- time: Date;
334
- } | {
335
- type: "Result";
336
- contents?: undefined;
337
- error: {
338
- errors: {
339
- text: string;
340
- location: {
341
- length: number;
342
- column: number;
343
- file: string;
344
- line: number;
345
- lineText: string;
346
- namespace: string;
347
- suggestion: string;
348
- };
349
- }[];
350
- warnings: {
351
- text: string;
352
- location: {
353
- length: number;
354
- column: number;
355
- file: string;
356
- line: number;
357
- lineText: string;
358
- namespace: string;
359
- suggestion: string;
360
- };
361
- }[];
362
- };
363
- time: Date;
364
- } | {
365
- type: "Log";
366
- message: string;
367
- }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
368
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
369
- write: boolean;
370
- }>, {
371
- type: "Build Contexts Prepared";
372
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
373
- } | {
374
- type: "Change";
375
- } | {
376
- type: "Result";
377
- contents: [string, string];
378
- error?: undefined;
379
- time: Date;
380
- } | {
381
- type: "Result";
382
- contents?: undefined;
383
- error: {
384
- errors: {
385
- text: string;
386
- location: {
387
- length: number;
388
- column: number;
389
- file: string;
390
- line: number;
391
- lineText: string;
392
- namespace: string;
393
- suggestion: string;
394
- };
395
- }[];
396
- warnings: {
397
- text: string;
398
- location: {
399
- length: number;
400
- column: number;
401
- file: string;
402
- line: number;
403
- lineText: string;
404
- namespace: string;
405
- suggestion: string;
406
- };
407
- }[];
408
- };
409
- time: Date;
410
- } | {
411
- type: "Log";
412
- message: string;
413
- }, import("xstate").EventObject> | undefined;
414
- }, "Preparing" | {
415
- Watching?: "Success" | "Building" | "Errored" | undefined;
416
- }, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject>, {
417
- type: "Build Contexts Prepared";
418
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
419
- } | {
420
- type: "Change";
421
- } | {
422
- type: "Result";
423
- contents: [string, string];
424
- error?: undefined;
425
- time: Date;
426
- } | {
427
- type: "Result";
428
- contents?: undefined;
429
- error: {
430
- errors: {
431
- text: string;
432
- location: {
433
- length: number;
434
- column: number;
435
- file: string;
436
- line: number;
437
- lineText: string;
438
- namespace: string;
439
- suggestion: string;
440
- };
441
- }[];
442
- warnings: {
443
- text: string;
444
- location: {
445
- length: number;
446
- column: number;
447
- file: string;
448
- line: number;
449
- lineText: string;
450
- namespace: string;
451
- suggestion: string;
452
- };
453
- }[];
454
- };
455
- time: Date;
456
- } | {
457
- type: "Log";
458
- message: string;
459
- }, import("xstate").EventObject> | undefined;
460
- }, import("xstate").Values<{
461
- javascript: {
462
- src: "javascript";
463
- logic: import("xstate").StateMachine<import("./js-machine.js").Context, {
464
- type: "Build Contexts Prepared";
465
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
466
- } | {
467
- type: "Change";
468
- } | {
469
- type: "Result";
470
- contents: [string, string];
471
- error?: undefined;
472
- time: Date;
473
- } | {
474
- type: "Result";
475
- contents?: undefined;
476
- error: {
477
- errors: {
478
- text: string;
479
- location: {
480
- length: number;
481
- column: number;
482
- file: string;
483
- line: number;
484
- lineText: string;
485
- namespace: string;
486
- suggestion: string;
487
- };
488
- }[];
489
- warnings: {
490
- text: string;
491
- location: {
492
- length: number;
493
- column: number;
494
- file: string;
495
- line: number;
496
- lineText: string;
497
- namespace: string;
498
- suggestion: string;
499
- };
500
- }[];
501
- };
502
- time: Date;
503
- } | {
504
- type: "Log";
505
- message: string;
506
- }, {
507
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
508
- write: boolean;
509
- }>, {
510
- type: "Build Contexts Prepared";
511
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
512
- } | {
513
- type: "Change";
514
- } | {
515
- type: "Result";
516
- contents: [string, string];
517
- error?: undefined;
518
- time: Date;
519
- } | {
520
- type: "Result";
521
- contents?: undefined;
522
- error: {
523
- errors: {
524
- text: string;
525
- location: {
526
- length: number;
527
- column: number;
528
- file: string;
529
- line: number;
530
- lineText: string;
531
- namespace: string;
532
- suggestion: string;
533
- };
534
- }[];
535
- warnings: {
536
- text: string;
537
- location: {
538
- length: number;
539
- column: number;
540
- file: string;
541
- line: number;
542
- lineText: string;
543
- namespace: string;
544
- suggestion: string;
545
- };
546
- }[];
547
- };
548
- time: Date;
549
- } | {
550
- type: "Log";
551
- message: string;
552
- }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
553
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
554
- write: boolean;
555
- }>, {
556
- type: "Build Contexts Prepared";
557
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
558
- } | {
559
- type: "Change";
560
- } | {
561
- type: "Result";
562
- contents: [string, string];
563
- error?: undefined;
564
- time: Date;
565
- } | {
566
- type: "Result";
567
- contents?: undefined;
568
- error: {
569
- errors: {
570
- text: string;
571
- location: {
572
- length: number;
573
- column: number;
574
- file: string;
575
- line: number;
576
- lineText: string;
577
- namespace: string;
578
- suggestion: string;
579
- };
580
- }[];
581
- warnings: {
582
- text: string;
583
- location: {
584
- length: number;
585
- column: number;
586
- file: string;
587
- line: number;
588
- lineText: string;
589
- namespace: string;
590
- suggestion: string;
591
- };
592
- }[];
593
- };
594
- time: Date;
595
- } | {
596
- type: "Log";
597
- message: string;
598
- }, import("xstate").EventObject> | undefined;
599
- }, import("xstate").Values<{
600
- prepareBuildContext: {
601
- src: "prepareBuildContext";
602
- logic: import("xstate").CallbackActorLogic<{
603
- type: "Build Contexts Prepared";
604
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
605
- } | {
606
- type: "Change";
607
- } | {
608
- type: "Result";
609
- contents: [string, string];
610
- error?: undefined;
611
- time: Date;
612
- } | {
613
- type: "Result";
614
- contents?: undefined;
615
- error: {
616
- errors: {
617
- text: string;
618
- location: {
619
- length: number;
620
- column: number;
621
- file: string;
622
- line: number;
623
- lineText: string;
624
- namespace: string;
625
- suggestion: string;
626
- };
627
- }[];
628
- warnings: {
629
- text: string;
630
- location: {
631
- length: number;
632
- column: number;
633
- file: string;
634
- line: number;
635
- lineText: string;
636
- namespace: string;
637
- suggestion: string;
638
- };
639
- }[];
640
- };
641
- time: Date;
642
- } | {
643
- type: "Log";
644
- message: string;
645
- }, {
646
- write: boolean;
647
- }, import("xstate").EventObject>;
648
- id: string | undefined;
649
- };
650
- build: {
651
- src: "build";
652
- logic: import("xstate").CallbackActorLogic<{
653
- type: "Build Contexts Prepared";
654
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
655
- } | {
656
- type: "Change";
657
- } | {
658
- type: "Result";
659
- contents: [string, string];
660
- error?: undefined;
661
- time: Date;
662
- } | {
663
- type: "Result";
664
- contents?: undefined;
665
- error: {
666
- errors: {
667
- text: string;
668
- location: {
669
- length: number;
670
- column: number;
671
- file: string;
672
- line: number;
673
- lineText: string;
674
- namespace: string;
675
- suggestion: string;
676
- };
677
- }[];
678
- warnings: {
679
- text: string;
680
- location: {
681
- length: number;
682
- column: number;
683
- file: string;
684
- line: number;
685
- lineText: string;
686
- namespace: string;
687
- suggestion: string;
688
- };
689
- }[];
690
- };
691
- time: Date;
692
- } | {
693
- type: "Log";
694
- message: string;
695
- }, {
696
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
697
- write: boolean;
698
- }, import("xstate").EventObject>;
699
- id: string | undefined;
700
- };
701
- }>, import("xstate").Values<{
702
- clearError: {
703
- type: "clearError";
704
- params: import("xstate").NonReducibleUnknown;
705
- };
706
- raiseErrored: {
707
- type: "raiseErrored";
708
- params: import("xstate").NonReducibleUnknown;
709
- };
710
- raiseSuccess: {
711
- type: "raiseSuccess";
712
- params: {
713
- contents: [string, string];
714
- time: Date;
715
- };
716
- };
717
- setBuildContexts: {
718
- type: "setBuildContexts";
719
- params: {
720
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
721
- };
722
- };
723
- setError: {
724
- type: "setError";
725
- params: {
726
- error: {
727
- errors: {
728
- text: string;
729
- location: {
730
- length: number;
731
- column: number;
732
- file: string;
733
- line: number;
734
- lineText: string;
735
- namespace: string;
736
- suggestion: string;
737
- };
738
- }[];
739
- warnings: {
740
- text: string;
741
- location: {
742
- length: number;
743
- column: number;
744
- file: string;
745
- line: number;
746
- lineText: string;
747
- namespace: string;
748
- suggestion: string;
749
- };
750
- }[];
751
- };
752
- };
753
- };
754
- setTime: {
755
- type: "setTime";
756
- params: {
757
- time: Date;
758
- };
759
- };
760
- }>, {
761
- type: "has errors";
762
- params: {
763
- error?: {
764
- errors: {
765
- text: string;
766
- location: {
767
- length: number;
768
- column: number;
769
- file: string;
770
- line: number;
771
- lineText: string;
772
- namespace: string;
773
- suggestion: string;
774
- };
775
- }[];
776
- warnings: {
777
- text: string;
778
- location: {
779
- length: number;
780
- column: number;
781
- file: string;
782
- line: number;
783
- lineText: string;
784
- namespace: string;
785
- suggestion: string;
786
- };
787
- }[];
788
- } | undefined;
789
- };
790
- }, never, "Preparing" | {
791
- Watching?: "Success" | "Building" | "Errored" | undefined;
792
- }, string, {
793
- parentRef: import("./build-orchestrator.js").JavaScriptOrchestrator;
794
- write: boolean;
795
- }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
796
- id: "javascript";
797
- };
798
- upload: {
799
- src: "upload";
800
- logic: import("xstate").CallbackActorLogic<any, {
801
- version: AppVersion;
802
- developer: {
803
- token: string;
804
- slug: string;
805
- };
806
- jsContents: [string, string];
807
- }, import("xstate").EventObject>;
808
- id: string | undefined;
809
- };
810
- loadDeveloperConfig: {
811
- src: "loadDeveloperConfig";
812
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
813
- id: string | undefined;
814
- };
815
- loadAppConfig: {
816
- src: "loadAppConfig";
817
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
818
- id: string | undefined;
819
- };
820
- createVersion: {
821
- src: "createVersion";
822
- logic: import("xstate").CallbackActorLogic<Event, Pick<Context, "config" | "developer">, import("xstate").EventObject>;
823
- id: string | undefined;
824
- };
825
- }>, import("xstate").Values<{
826
- clearError: {
827
- type: "clearError";
828
- params: import("xstate").NonReducibleUnknown;
829
- };
830
- setError: {
831
- type: "setError";
832
- params: {
833
- error: string;
834
- };
835
- };
836
- setConfigError: {
837
- type: "setConfigError";
838
- params: {
839
- configError: InitialDeveloperConfigError;
840
- };
841
- };
842
- setDeveloperConfig: {
843
- type: "setDeveloperConfig";
844
- params: {
845
- token: string;
846
- slug: string;
847
- };
848
- };
849
- setAppConfig: {
850
- type: "setAppConfig";
851
- params: {
852
- config: Config;
853
- };
854
- };
855
- setJsContents: {
856
- type: "setJsContents";
857
- params: {
858
- contents: [string, string];
859
- time: Date;
860
- };
861
- };
862
- setVersion: {
863
- type: "setVersion";
864
- params: {
865
- version: AppVersion;
866
- };
867
- };
868
- }>, never, never, "Success" | "Error" | "Show config instructions" | "Uploading" | "Loading Developer Config" | "Loading App Config" | "Creating version" | {
869
- JavaScript?: "Building" | "Build Error" | undefined;
870
- }, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
871
- export {};
872
- //# sourceMappingURL=create-version-machine.d.ts.map