fixed-layout-specs.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 fixLayout1: FlowDocumentJSON = {
  7. nodes: [
  8. {
  9. type: 'start',
  10. meta: {
  11. isStart: true,
  12. },
  13. id: 'start',
  14. },
  15. {
  16. type: 'getRecords',
  17. id: 'getRecords_07e97c55832',
  18. },
  19. {
  20. type: 'loop',
  21. id: 'forEach_260a8f85ff2',
  22. blocks: [
  23. {
  24. type: 'createRecord',
  25. id: 'createRecord_8f85ff2c11d',
  26. },
  27. {
  28. type: 'dynamicSplit',
  29. id: 'exclusiveSplit_ff2c11d0fb4',
  30. blocks: [
  31. {
  32. id: 'branch_f2c11d0fb42',
  33. },
  34. {
  35. id: 'branch_2c11d0fb42c',
  36. },
  37. ],
  38. },
  39. ],
  40. },
  41. {
  42. type: 'dynamicSplit',
  43. id: 'exclusiveSplit_88dbf2c60ae',
  44. meta: {
  45. defaultExpanded: true,
  46. },
  47. blocks: [
  48. {
  49. id: 'branch_8dbf2c60aee',
  50. blocks: [
  51. {
  52. type: 'dynamicSplit',
  53. id: 'exclusiveSplit_a59afaadc9a',
  54. blocks: [
  55. {
  56. id: 'branch_59afaadc9ac',
  57. },
  58. {
  59. id: 'branch_9afaadc9acd',
  60. blocks: [
  61. {
  62. type: 'deleteRecords',
  63. id: 'deleteRecords_c32807e97c5',
  64. },
  65. ]
  66. },
  67. ],
  68. },
  69. ]
  70. },
  71. {
  72. id: 'branch_dbf2c60aee4',
  73. blocks: [
  74. {
  75. type: 'updateRecords',
  76. id: 'updateRecords_7ed2a172c32',
  77. },
  78. ]
  79. },
  80. ],
  81. },
  82. {
  83. type: 'end',
  84. id: 'end',
  85. },
  86. ],
  87. };