flow-json.mock.ts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { FlowDocumentJSON } from '@flowgram.ai/document'
  6. export const flowJson: FlowDocumentJSON = {
  7. nodes: [
  8. {
  9. type: 'start',
  10. id: 'start',
  11. },
  12. {
  13. type: 'tryCatch',
  14. id: 'tryCatch_f9fa62fa783',
  15. blocks: [
  16. {
  17. id: 'branch_9fa62fa783d',
  18. meta: {
  19. size: {
  20. width: 280,
  21. height: 28,
  22. },
  23. },
  24. },
  25. {
  26. id: 'branch_fa62fa783d7',
  27. meta: {
  28. size: {
  29. width: 280,
  30. height: 28,
  31. },
  32. },
  33. blocks: [
  34. {
  35. type: 'createRecord',
  36. id: 'createRecord_463df50d176',
  37. },
  38. {
  39. type: 'createRecord',
  40. id: 'createRecord_fb7a69ab5b8',
  41. },
  42. ]
  43. },
  44. {
  45. id: 'branch_c57c09b038e',
  46. meta: {
  47. size: {
  48. width: 280,
  49. height: 28,
  50. },
  51. },
  52. },
  53. {
  54. id: 'branch_7c09b038e0b',
  55. meta: {
  56. size: {
  57. width: 280,
  58. height: 28,
  59. },
  60. },
  61. },
  62. ],
  63. },
  64. {
  65. type: 'loop',
  66. id: 'while_4bd4950692a',
  67. blocks: [
  68. {
  69. id: '$loopBranch$while_4bd4950692a',
  70. blocks: [
  71. {
  72. type: 'createRecord',
  73. id: 'createRecord_fb7a69ab5b8',
  74. },
  75. ]
  76. },
  77. ],
  78. },
  79. {
  80. type: 'createRecord',
  81. id: 'createRecord_6f8cad399fb',
  82. },
  83. {
  84. type: 'loop',
  85. id: 'forEach_4eeb9f9cde8',
  86. blocks: [
  87. {
  88. id: '$loopBranch$forEach_4eeb9f9cde8',
  89. },
  90. ],
  91. },
  92. {
  93. type: 'dynamicSplit',
  94. id: 'exclusiveSplit_d2bdee4eb90',
  95. blocks: [
  96. {
  97. id: 'branch_008864cf1f9',
  98. meta: {
  99. size: {
  100. width: 280,
  101. height: 28,
  102. },
  103. },
  104. },
  105. {
  106. id: 'branch_08864cf1f9d',
  107. meta: {
  108. size: {
  109. width: 280,
  110. height: 28,
  111. },
  112. },
  113. },
  114. ],
  115. },
  116. {
  117. type: 'createRecord',
  118. id: 'createRecord_c192e8f6d8d',
  119. },
  120. {
  121. type: 'approval',
  122. id: 'approval_fc79f9fa62f',
  123. blocks: [
  124. {
  125. id: 'branch_c9c9f0a61f0',
  126. meta: {
  127. size: {
  128. width: 280,
  129. height: 28,
  130. },
  131. },
  132. },
  133. {
  134. id: 'branch_9c9f0a61f00',
  135. meta: {
  136. size: {
  137. width: 280,
  138. height: 28,
  139. },
  140. },
  141. },
  142. ],
  143. },
  144. {
  145. type: 'dynamicSplit',
  146. id: 'parallelSplit_2e05c1fc79f',
  147. blocks: [
  148. {
  149. id: 'branch_8864cf1f9d3',
  150. meta: {
  151. size: {
  152. width: 280,
  153. height: 28,
  154. },
  155. },
  156. },
  157. {
  158. id: 'branch_864cf1f9d39',
  159. meta: {
  160. size: {
  161. width: 280,
  162. height: 28,
  163. },
  164. },
  165. },
  166. {
  167. id: 'branch_64cf1f9d393',
  168. meta: {
  169. size: {
  170. width: 280,
  171. height: 28,
  172. },
  173. },
  174. },
  175. {
  176. id: 'branch_4cf1f9d3938',
  177. meta: {
  178. size: {
  179. width: 280,
  180. height: 28,
  181. },
  182. },
  183. },
  184. {
  185. id: 'branch_cf1f9d39381',
  186. meta: {
  187. size: {
  188. width: 280,
  189. height: 28,
  190. },
  191. },
  192. },
  193. ],
  194. },
  195. {
  196. type: 'dynamicSplit',
  197. id: 'exclusiveSplit_d1c021e4362',
  198. blocks: [
  199. {
  200. id: 'branch_a61f008864c',
  201. meta: {
  202. size: {
  203. width: 280,
  204. height: 28,
  205. },
  206. },
  207. },
  208. {
  209. id: 'branch_61f008864cf',
  210. meta: {
  211. size: {
  212. width: 280,
  213. height: 28,
  214. },
  215. },
  216. },
  217. ],
  218. },
  219. {
  220. type: 'dynamicSplit',
  221. id: 'exclusiveSplit_de37a4886e7',
  222. blocks: [
  223. {
  224. id: 'branch_1f008864cf1',
  225. meta: {
  226. size: {
  227. width: 280,
  228. height: 28,
  229. },
  230. },
  231. },
  232. {
  233. id: 'branch_f008864cf1f',
  234. meta: {
  235. size: {
  236. width: 280,
  237. height: 28,
  238. },
  239. },
  240. },
  241. ],
  242. },
  243. {
  244. type: 'createRecord',
  245. id: 'createRecord_25ab93c8764',
  246. },
  247. {
  248. type: 'dynamicSplit',
  249. id: 'exclusiveSplit_15ef1db02e0',
  250. blocks: [
  251. {
  252. id: 'branch_c9f0a61f008',
  253. meta: {
  254. size: {
  255. width: 280,
  256. height: 28,
  257. },
  258. },
  259. },
  260. {
  261. id: 'branch_9f0a61f0088',
  262. meta: {
  263. size: {
  264. width: 280,
  265. height: 28,
  266. },
  267. },
  268. },
  269. {
  270. id: 'branch_f0a61f00886',
  271. meta: {
  272. size: {
  273. width: 280,
  274. height: 28,
  275. },
  276. },
  277. },
  278. {
  279. id: 'branch_0a61f008864',
  280. meta: {
  281. size: {
  282. width: 280,
  283. height: 28,
  284. },
  285. },
  286. },
  287. ],
  288. },
  289. {
  290. type: 'createRecord',
  291. id: 'createRecord_fc2f1d9ed41',
  292. },
  293. {
  294. type: 'kunlun_all_all_lark_openapi_im_chats',
  295. id: 'kunlun_all_all_lark_openapi_im_chats_5dd05c93e4e',
  296. },
  297. {
  298. type: 'kunlun_all_all_byted_bmq_action',
  299. id: 'kunlun_all_all_byted_bmq_action_f41ff46de8a',
  300. },
  301. {
  302. type: 'kunlun_all_all_lark_openapi_doc_manage',
  303. id: 'kunlun_all_all_lark_openapi_doc_manage_b789635bc6b',
  304. },
  305. {
  306. type: 'kunlun_all_all_lark_open_spreadsheet',
  307. id: 'kunlun_all_all_lark_open_spreadsheet_e8a7c39384d',
  308. },
  309. {
  310. type: 'end',
  311. id: 'end',
  312. },
  313. ],
  314. }