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