attio 0.0.1-experimental.20240909 → 0.0.1-experimental.20240913

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 +3 -8
  21. package/lib/build/client/generate-client-entry.js +29 -3
  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 +3 -8
  25. package/lib/build/server/generate-server-entry.js +61 -28
  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 +1 -2
  81. package/lib/machines/generate-invite-machine.js +0 -1
  82. package/lib/machines/js-machine.js +77 -11
  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,673 +0,0 @@
1
- declare const processes: readonly ["javascript", "typescript"];
2
- type Process = (typeof processes)[number];
3
- interface Context {
4
- successful: Array<Process>;
5
- failed: Array<Process>;
6
- }
7
- export declare const buildMachine: import("xstate").StateMachine<Context, {
8
- type: "JavaScript Error";
9
- } | {
10
- type: "JavaScript Success";
11
- } | {
12
- type: "TypeScript Error";
13
- } | {
14
- type: "TypeScript Success";
15
- }, {
16
- javascript?: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("./js-machine.js").Context, {
17
- type: "Build Contexts Prepared";
18
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
19
- } | {
20
- type: "Change";
21
- } | {
22
- type: "Result";
23
- contents: [string, string];
24
- error?: undefined;
25
- time: Date;
26
- } | {
27
- type: "Result";
28
- contents?: undefined;
29
- error: {
30
- errors: {
31
- text: string;
32
- location: {
33
- length: number;
34
- column: number;
35
- file: string;
36
- line: number;
37
- lineText: string;
38
- namespace: string;
39
- suggestion: string;
40
- };
41
- }[];
42
- warnings: {
43
- text: string;
44
- location: {
45
- length: number;
46
- column: number;
47
- file: string;
48
- line: number;
49
- lineText: string;
50
- namespace: string;
51
- suggestion: string;
52
- };
53
- }[];
54
- };
55
- time: Date;
56
- } | {
57
- type: "Log";
58
- message: string;
59
- }, {
60
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
61
- write: boolean;
62
- }>, {
63
- type: "Build Contexts Prepared";
64
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
65
- } | {
66
- type: "Change";
67
- } | {
68
- type: "Result";
69
- contents: [string, string];
70
- error?: undefined;
71
- time: Date;
72
- } | {
73
- type: "Result";
74
- contents?: undefined;
75
- error: {
76
- errors: {
77
- text: string;
78
- location: {
79
- length: number;
80
- column: number;
81
- file: string;
82
- line: number;
83
- lineText: string;
84
- namespace: string;
85
- suggestion: string;
86
- };
87
- }[];
88
- warnings: {
89
- text: string;
90
- location: {
91
- length: number;
92
- column: number;
93
- file: string;
94
- line: number;
95
- lineText: string;
96
- namespace: string;
97
- suggestion: string;
98
- };
99
- }[];
100
- };
101
- time: Date;
102
- } | {
103
- type: "Log";
104
- message: string;
105
- }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
106
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
107
- write: boolean;
108
- }>, {
109
- type: "Build Contexts Prepared";
110
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
111
- } | {
112
- type: "Change";
113
- } | {
114
- type: "Result";
115
- contents: [string, string];
116
- error?: undefined;
117
- time: Date;
118
- } | {
119
- type: "Result";
120
- contents?: undefined;
121
- error: {
122
- errors: {
123
- text: string;
124
- location: {
125
- length: number;
126
- column: number;
127
- file: string;
128
- line: number;
129
- lineText: string;
130
- namespace: string;
131
- suggestion: string;
132
- };
133
- }[];
134
- warnings: {
135
- text: string;
136
- location: {
137
- length: number;
138
- column: number;
139
- file: string;
140
- line: number;
141
- lineText: string;
142
- namespace: string;
143
- suggestion: string;
144
- };
145
- }[];
146
- };
147
- time: Date;
148
- } | {
149
- type: "Log";
150
- message: string;
151
- }, import("xstate").EventObject> | undefined;
152
- }, "Preparing" | {
153
- Watching?: "Success" | "Building" | "Errored" | undefined;
154
- }, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject>, {
155
- type: "Build Contexts Prepared";
156
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
157
- } | {
158
- type: "Change";
159
- } | {
160
- type: "Result";
161
- contents: [string, string];
162
- error?: undefined;
163
- time: Date;
164
- } | {
165
- type: "Result";
166
- contents?: undefined;
167
- error: {
168
- errors: {
169
- text: string;
170
- location: {
171
- length: number;
172
- column: number;
173
- file: string;
174
- line: number;
175
- lineText: string;
176
- namespace: string;
177
- suggestion: string;
178
- };
179
- }[];
180
- warnings: {
181
- text: string;
182
- location: {
183
- length: number;
184
- column: number;
185
- file: string;
186
- line: number;
187
- lineText: string;
188
- namespace: string;
189
- suggestion: string;
190
- };
191
- }[];
192
- };
193
- time: Date;
194
- } | {
195
- type: "Log";
196
- message: string;
197
- }, import("xstate").EventObject> | undefined;
198
- typescript?: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("./ts-machine.js").Context, {
199
- type: "Change";
200
- } | {
201
- type: "Result";
202
- errors?: {
203
- text: string;
204
- location?: {
205
- file: string;
206
- line: number;
207
- lineText: string;
208
- character: number;
209
- } | undefined;
210
- }[] | undefined;
211
- time: Date;
212
- }, {
213
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | undefined;
214
- }, "Success" | "Errored" | "Validating", string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject>, {
215
- type: "Change";
216
- } | {
217
- type: "Result";
218
- errors?: {
219
- text: string;
220
- location?: {
221
- file: string;
222
- line: number;
223
- lineText: string;
224
- character: number;
225
- } | undefined;
226
- }[] | undefined;
227
- time: Date;
228
- }, import("xstate").EventObject> | undefined;
229
- }, import("xstate").Values<{
230
- javascript: {
231
- src: "javascript";
232
- logic: import("xstate").StateMachine<import("./js-machine.js").Context, {
233
- type: "Build Contexts Prepared";
234
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
235
- } | {
236
- type: "Change";
237
- } | {
238
- type: "Result";
239
- contents: [string, string];
240
- error?: undefined;
241
- time: Date;
242
- } | {
243
- type: "Result";
244
- contents?: undefined;
245
- error: {
246
- errors: {
247
- text: string;
248
- location: {
249
- length: number;
250
- column: number;
251
- file: string;
252
- line: number;
253
- lineText: string;
254
- namespace: string;
255
- suggestion: string;
256
- };
257
- }[];
258
- warnings: {
259
- text: string;
260
- location: {
261
- length: number;
262
- column: number;
263
- file: string;
264
- line: number;
265
- lineText: string;
266
- namespace: string;
267
- suggestion: string;
268
- };
269
- }[];
270
- };
271
- time: Date;
272
- } | {
273
- type: "Log";
274
- message: string;
275
- }, {
276
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
277
- write: boolean;
278
- }>, {
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
- }, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
322
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
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> | undefined;
368
- }, import("xstate").Values<{
369
- prepareBuildContext: {
370
- src: "prepareBuildContext";
371
- logic: import("xstate").CallbackActorLogic<{
372
- type: "Build Contexts Prepared";
373
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
374
- } | {
375
- type: "Change";
376
- } | {
377
- type: "Result";
378
- contents: [string, string];
379
- error?: undefined;
380
- time: Date;
381
- } | {
382
- type: "Result";
383
- contents?: undefined;
384
- error: {
385
- errors: {
386
- text: string;
387
- location: {
388
- length: number;
389
- column: number;
390
- file: string;
391
- line: number;
392
- lineText: string;
393
- namespace: string;
394
- suggestion: string;
395
- };
396
- }[];
397
- warnings: {
398
- text: string;
399
- location: {
400
- length: number;
401
- column: number;
402
- file: string;
403
- line: number;
404
- lineText: string;
405
- namespace: string;
406
- suggestion: string;
407
- };
408
- }[];
409
- };
410
- time: Date;
411
- } | {
412
- type: "Log";
413
- message: string;
414
- }, {
415
- write: boolean;
416
- }, import("xstate").EventObject>;
417
- id: string | undefined;
418
- };
419
- build: {
420
- src: "build";
421
- logic: import("xstate").CallbackActorLogic<{
422
- type: "Build Contexts Prepared";
423
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
424
- } | {
425
- type: "Change";
426
- } | {
427
- type: "Result";
428
- contents: [string, string];
429
- error?: undefined;
430
- time: Date;
431
- } | {
432
- type: "Result";
433
- contents?: undefined;
434
- error: {
435
- errors: {
436
- text: string;
437
- location: {
438
- length: number;
439
- column: number;
440
- file: string;
441
- line: number;
442
- lineText: string;
443
- namespace: string;
444
- suggestion: string;
445
- };
446
- }[];
447
- warnings: {
448
- text: string;
449
- location: {
450
- length: number;
451
- column: number;
452
- file: string;
453
- line: number;
454
- lineText: string;
455
- namespace: string;
456
- suggestion: string;
457
- };
458
- }[];
459
- };
460
- time: Date;
461
- } | {
462
- type: "Log";
463
- message: string;
464
- }, {
465
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
466
- write: boolean;
467
- }, import("xstate").EventObject>;
468
- id: string | undefined;
469
- };
470
- }>, import("xstate").Values<{
471
- clearError: {
472
- type: "clearError";
473
- params: import("xstate").NonReducibleUnknown;
474
- };
475
- raiseErrored: {
476
- type: "raiseErrored";
477
- params: import("xstate").NonReducibleUnknown;
478
- };
479
- raiseSuccess: {
480
- type: "raiseSuccess";
481
- params: {
482
- contents: [string, string];
483
- time: Date;
484
- };
485
- };
486
- setBuildContexts: {
487
- type: "setBuildContexts";
488
- params: {
489
- buildContexts: import("esbuild").BuildContext<import("esbuild").BuildOptions>[];
490
- };
491
- };
492
- setError: {
493
- type: "setError";
494
- params: {
495
- error: {
496
- errors: {
497
- text: string;
498
- location: {
499
- length: number;
500
- column: number;
501
- file: string;
502
- line: number;
503
- lineText: string;
504
- namespace: string;
505
- suggestion: string;
506
- };
507
- }[];
508
- warnings: {
509
- text: string;
510
- location: {
511
- length: number;
512
- column: number;
513
- file: string;
514
- line: number;
515
- lineText: string;
516
- namespace: string;
517
- suggestion: string;
518
- };
519
- }[];
520
- };
521
- };
522
- };
523
- setTime: {
524
- type: "setTime";
525
- params: {
526
- time: Date;
527
- };
528
- };
529
- }>, {
530
- type: "has errors";
531
- params: {
532
- error?: {
533
- errors: {
534
- text: string;
535
- location: {
536
- length: number;
537
- column: number;
538
- file: string;
539
- line: number;
540
- lineText: string;
541
- namespace: string;
542
- suggestion: string;
543
- };
544
- }[];
545
- warnings: {
546
- text: string;
547
- location: {
548
- length: number;
549
- column: number;
550
- file: string;
551
- line: number;
552
- lineText: string;
553
- namespace: string;
554
- suggestion: string;
555
- };
556
- }[];
557
- } | undefined;
558
- };
559
- }, never, "Preparing" | {
560
- Watching?: "Success" | "Building" | "Errored" | undefined;
561
- }, string, {
562
- parentRef: import("./build-orchestrator.js").JavaScriptOrchestrator;
563
- write: boolean;
564
- }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
565
- id: "javascript";
566
- };
567
- typescript: {
568
- src: "typescript";
569
- logic: import("xstate").StateMachine<import("./ts-machine.js").Context, {
570
- type: "Change";
571
- } | {
572
- type: "Result";
573
- errors?: {
574
- text: string;
575
- location?: {
576
- file: string;
577
- line: number;
578
- lineText: string;
579
- character: number;
580
- } | undefined;
581
- }[] | undefined;
582
- time: Date;
583
- }, {
584
- [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | undefined;
585
- }, {
586
- src: "validate";
587
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
588
- id: string | undefined;
589
- }, import("xstate").Values<{
590
- clearError: {
591
- type: "clearError";
592
- params: import("xstate").NonReducibleUnknown;
593
- };
594
- raiseErrored: {
595
- type: "raiseErrored";
596
- params: import("xstate").NonReducibleUnknown;
597
- };
598
- raiseSuccess: {
599
- type: "raiseSuccess";
600
- params: import("xstate").NonReducibleUnknown;
601
- };
602
- setTime: {
603
- type: "setTime";
604
- params: {
605
- time: Date;
606
- };
607
- };
608
- clearTime: {
609
- type: "clearTime";
610
- params: import("xstate").NonReducibleUnknown;
611
- };
612
- setErrors: {
613
- type: "setErrors";
614
- params: {
615
- errors?: {
616
- text: string;
617
- location?: {
618
- file: string;
619
- line: number;
620
- lineText: string;
621
- character: number;
622
- } | undefined;
623
- }[] | undefined;
624
- };
625
- };
626
- }>, {
627
- type: "has errors";
628
- params: {
629
- errors?: {
630
- text: string;
631
- location?: {
632
- file: string;
633
- line: number;
634
- lineText: string;
635
- character: number;
636
- } | undefined;
637
- }[] | undefined;
638
- };
639
- }, never, "Success" | "Errored" | "Validating", string, {
640
- parentRef: import("./build-orchestrator.js").TypeScriptOrchestrator;
641
- }, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
642
- id: "typescript";
643
- };
644
- }>, import("xstate").Values<{
645
- setError: {
646
- type: "setError";
647
- params: {
648
- process: Process;
649
- };
650
- };
651
- setSuccess: {
652
- type: "setSuccess";
653
- params: {
654
- process: Process;
655
- };
656
- };
657
- }>, import("xstate").Values<{
658
- "all done": {
659
- type: "all done";
660
- params: unknown;
661
- };
662
- "all success": {
663
- type: "all success";
664
- params: unknown;
665
- };
666
- }>, never, "Success" | "Errored" | "All Done" | {
667
- Building?: Required<{
668
- JavaScript?: "Building" | "Waiting" | undefined;
669
- TypeScript?: "Validating" | "Waiting" | undefined;
670
- }> | undefined;
671
- }, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
672
- export {};
673
- //# sourceMappingURL=build-machine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build-machine.d.ts","sourceRoot":"","sources":["../../src/machines/build-machine.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,SAAS,uCAAwC,CAAA;AACvD,KAAK,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzC,UAAU,OAAO;IACb,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IAC1B,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;CACzB;AAQD,eAAO,MAAM,YAAY;UALZ,kBAAkB;;UAClB,oBAAoB;;UACpB,kBAAkB;;UAClB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ActorRef } from "xstate";
2
- export interface JavaScriptOrchestrator extends ActorRef<any, {
3
- type: "JavaScript Error";
4
- } | {
5
- type: "JavaScript Success";
6
- contents: [string, string];
7
- time: Date;
8
- }, any> {
9
- }
10
- export interface TypeScriptOrchestrator extends ActorRef<any, {
11
- type: "TypeScript Error";
12
- } | {
13
- type: "TypeScript Success";
14
- }, any> {
15
- }
16
- //# sourceMappingURL=build-orchestrator.d.ts.map