@geode/opengeodeweb-front 10.22.0 → 10.22.1-rc.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 (82) hide show
  1. package/app/components/CrsSelector.vue +7 -4
  2. package/app/components/ExtensionSelector.vue +2 -4
  3. package/app/components/FileSelector.vue +1 -1
  4. package/app/components/Inspector/InspectionButton.vue +10 -7
  5. package/app/components/MissingFilesSelector.vue +8 -9
  6. package/app/components/ObjectSelector.vue +9 -5
  7. package/app/components/PackagesVersions.vue +1 -2
  8. package/app/components/RemoteRenderingView.vue +3 -4
  9. package/app/components/Screenshot.vue +8 -4
  10. package/app/components/ViewToolbar.vue +6 -2
  11. package/app/components/Viewer/Options/AttributeSelector.vue +2 -2
  12. package/app/components/Viewer/Options/TextureItem.vue +9 -10
  13. package/app/composables/hover_highlight.js +2 -2
  14. package/app/composables/project_manager.js +3 -6
  15. package/app/composables/use_overlapping_picker.js +6 -3
  16. package/app/stores/app.js +10 -7
  17. package/app/stores/back.js +13 -11
  18. package/app/stores/camera_manager.js +3 -3
  19. package/app/stores/cloud.js +21 -18
  20. package/app/stores/data.js +6 -2
  21. package/app/stores/hybrid_viewer.js +13 -10
  22. package/app/stores/viewer.js +18 -16
  23. package/app/utils/extension.js +1 -1
  24. package/app/utils/import_workflow.js +4 -3
  25. package/app/utils/local/microservices.js +7 -7
  26. package/app/utils/local/path.js +68 -13
  27. package/internal/stores/data_style/mesh/cells/cell.js +19 -6
  28. package/internal/stores/data_style/mesh/cells/color.js +6 -3
  29. package/internal/stores/data_style/mesh/cells/textures.js +6 -3
  30. package/internal/stores/data_style/mesh/cells/vertex.js +10 -6
  31. package/internal/stores/data_style/mesh/cells/visibility.js +6 -3
  32. package/internal/stores/data_style/mesh/edges/color.js +6 -3
  33. package/internal/stores/data_style/mesh/edges/edge.js +13 -6
  34. package/internal/stores/data_style/mesh/edges/vertex.js +10 -6
  35. package/internal/stores/data_style/mesh/edges/visibility.js +6 -3
  36. package/internal/stores/data_style/mesh/edges/width.js +6 -3
  37. package/internal/stores/data_style/mesh/index.js +12 -4
  38. package/internal/stores/data_style/mesh/points/color.js +6 -3
  39. package/internal/stores/data_style/mesh/points/size.js +6 -3
  40. package/internal/stores/data_style/mesh/points/vertex.js +11 -6
  41. package/internal/stores/data_style/mesh/points/visibility.js +6 -3
  42. package/internal/stores/data_style/mesh/polygons/color.js +6 -3
  43. package/internal/stores/data_style/mesh/polygons/polygon.js +9 -6
  44. package/internal/stores/data_style/mesh/polygons/textures.js +6 -3
  45. package/internal/stores/data_style/mesh/polygons/vertex.js +10 -6
  46. package/internal/stores/data_style/mesh/polygons/visibility.js +6 -3
  47. package/internal/stores/data_style/mesh/polyhedra/color.js +6 -3
  48. package/internal/stores/data_style/mesh/polyhedra/polyhedron.js +14 -6
  49. package/internal/stores/data_style/mesh/polyhedra/vertex.js +14 -6
  50. package/internal/stores/data_style/mesh/polyhedra/visibility.js +6 -3
  51. package/internal/stores/data_style/model/common.js +24 -22
  52. package/internal/stores/data_style/model/edges/visibility.js +3 -3
  53. package/internal/stores/data_style/model/points/size.js +6 -3
  54. package/internal/stores/data_style/model/points/visibility.js +3 -3
  55. package/internal/stores/data_style/model/visibility.js +3 -2
  56. package/internal/stores/hybrid_viewer.js +27 -33
  57. package/internal/stores/hybrid_viewer_camera.js +9 -6
  58. package/internal/stores/hybrid_viewer_constants.js +21 -0
  59. package/internal/stores/hybrid_viewer_highlight.js +2 -1
  60. package/internal/utils/api_fetch.js +2 -1
  61. package/internal/utils/viewer_call.js +2 -2
  62. package/package.json +3 -3
  63. package/server/api/extensions/run.post.js +4 -2
  64. package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +12 -8
  65. package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +12 -8
  66. package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +3 -2
  67. package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +12 -8
  68. package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +12 -8
  69. package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +12 -8
  70. package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +6 -13
  71. package/tests/integration/stores/data_style/model/corners.nuxt.test.js +6 -13
  72. package/tests/integration/stores/data_style/model/edges.nuxt.test.js +3 -2
  73. package/tests/integration/stores/data_style/model/index.nuxt.test.js +3 -2
  74. package/tests/integration/stores/data_style/model/lines.nuxt.test.js +6 -13
  75. package/tests/integration/stores/data_style/model/points.nuxt.test.js +6 -4
  76. package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +6 -13
  77. package/tests/integration/stores/viewer.nuxt.test.js +1 -2
  78. package/tests/unit/components/CrsSelector.nuxt.test.js +1 -1
  79. package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +1 -1
  80. package/tests/unit/components/MissingFilesSelector.nuxt.test.js +1 -1
  81. package/tests/unit/composables/api_fetch.nuxt.test.js +5 -6
  82. package/tests/vitest.config.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "10.22.0",
3
+ "version": "10.22.1-rc.2",
4
4
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
6
6
  "bugs": {
@@ -34,8 +34,8 @@
34
34
  "build": ""
35
35
  },
36
36
  "dependencies": {
37
- "@geode/opengeodeweb-back": "latest",
38
- "@geode/opengeodeweb-viewer": "latest",
37
+ "@geode/opengeodeweb-back": "next",
38
+ "@geode/opengeodeweb-viewer": "next",
39
39
  "@google-cloud/run": "3.2.0",
40
40
  "@kitware/vtk.js": "33.3.0",
41
41
  "@mdi/font": "7.4.47",
@@ -57,12 +57,14 @@ export default defineEventHandler(async (event) => {
57
57
  });
58
58
  }
59
59
 
60
- const frontendFilePath = extensionFrontendPath(
61
- projectFolderPath,
60
+ const frontendFilePath = await extensionFrontendPath(
61
+ unzippedExtensionPath,
62
62
  frontendFile,
63
63
  path.resolve(),
64
64
  id,
65
65
  );
66
+
67
+ console.log("runExtensions", { frontendFilePath });
66
68
  const frontendContent = await fs.promises.readFile(frontendFilePath, "utf8");
67
69
 
68
70
  const backendExecutablePath = path.join(unzippedExtensionPath, backendExecutable);
@@ -40,9 +40,10 @@ describe("mesh cells", () => {
40
40
  const result = dataStyleStore.setMeshCellsVisibility(id, visibility);
41
41
  expect(result).toBeInstanceOf(Promise);
42
42
  await result;
43
+ const schema = mesh_cells_schemas.visibility;
44
+ const params = { id, visibility };
43
45
  expect(spy).toHaveBeenCalledWith(
44
- mesh_cells_schemas.visibility,
45
- { id, visibility },
46
+ { schema, params },
46
47
  {
47
48
  response_function: expect.any(Function),
48
49
  },
@@ -61,9 +62,10 @@ describe("mesh cells", () => {
61
62
  const result = dataStyleStore.setMeshCellsColor(id, color);
62
63
  expect(result).toBeInstanceOf(Promise);
63
64
  await result;
65
+ const schema = mesh_cells_schemas.color;
66
+ const params = { id, color };
64
67
  expect(spy).toHaveBeenCalledWith(
65
- mesh_cells_schemas.color,
66
- { id, color },
68
+ { schema, params },
67
69
  {
68
70
  response_function: expect.any(Function),
69
71
  },
@@ -81,9 +83,10 @@ describe("mesh cells", () => {
81
83
  const result = dataStyleStore.setMeshCellsVertexAttributeName(id, vertex_attribute.name);
82
84
  expect(result).toBeInstanceOf(Promise);
83
85
  await result;
86
+ const schema = mesh_cells_schemas.attribute.vertex.name;
87
+ const params = { id, ...vertex_attribute };
84
88
  expect(spy).toHaveBeenCalledWith(
85
- mesh_cells_schemas.attribute.vertex.name,
86
- { id, ...vertex_attribute },
89
+ { schema, params },
87
90
  {
88
91
  response_function: expect.any(Function),
89
92
  },
@@ -101,9 +104,10 @@ describe("mesh cells", () => {
101
104
  const result = dataStyleStore.setMeshCellsCellAttributeName(id, cell_attribute.name);
102
105
  expect(result).toBeInstanceOf(Promise);
103
106
  await result;
107
+ const schema = mesh_cells_schemas.attribute.cell.name;
108
+ const params = { id, ...cell_attribute };
104
109
  expect(spy).toHaveBeenCalledWith(
105
- mesh_cells_schemas.attribute.cell.name,
106
- { id, ...cell_attribute },
110
+ { schema, params },
107
111
  {
108
112
  response_function: expect.any(Function),
109
113
  },
@@ -38,9 +38,10 @@ describe("mesh edges", () => {
38
38
  const result = dataStyleStore.setMeshEdgesVisibility(id, visibility);
39
39
  expect(result).toBeInstanceOf(Promise);
40
40
  await result;
41
+ const schema = mesh_edges_schemas.visibility;
42
+ const params = { id, visibility };
41
43
  expect(spy).toHaveBeenCalledWith(
42
- mesh_edges_schemas.visibility,
43
- { id, visibility },
44
+ { schema, params },
44
45
  {
45
46
  response_function: expect.any(Function),
46
47
  },
@@ -57,9 +58,10 @@ describe("mesh edges", () => {
57
58
  const result = dataStyleStore.setMeshEdgesColor(id, color);
58
59
  expect(result).toBeInstanceOf(Promise);
59
60
  await result;
61
+ const schema = mesh_edges_schemas.color;
62
+ const params = { id, color };
60
63
  expect(spy).toHaveBeenCalledWith(
61
- mesh_edges_schemas.color,
62
- { id, color },
64
+ { schema, params },
63
65
  {
64
66
  response_function: expect.any(Function),
65
67
  },
@@ -74,9 +76,10 @@ describe("mesh edges", () => {
74
76
 
75
77
  const spy = vi.spyOn(viewerStore, "request");
76
78
  await dataStyleStore.setMeshEdgesVertexAttributeName(id, vertex_attribute.name);
79
+ const schema = mesh_edges_schemas.attribute.vertex.name;
80
+ const params = { id, ...vertex_attribute };
77
81
  expect(spy).toHaveBeenCalledWith(
78
- mesh_edges_schemas.attribute.vertex.name,
79
- { id, ...vertex_attribute },
82
+ { schema, params },
80
83
  {
81
84
  response_function: expect.any(Function),
82
85
  },
@@ -91,9 +94,10 @@ describe("mesh edges", () => {
91
94
 
92
95
  const spy = vi.spyOn(viewerStore, "request");
93
96
  await dataStyleStore.setMeshEdgesEdgeAttributeName(id, edge_attribute.name);
97
+ const schema = mesh_edges_schemas.attribute.edge.name;
98
+ const params = { id, ...edge_attribute };
94
99
  expect(spy).toHaveBeenCalledWith(
95
- mesh_edges_schemas.attribute.edge.name,
96
- { id, ...edge_attribute },
100
+ { schema, params },
97
101
  {
98
102
  response_function: expect.any(Function),
99
103
  },
@@ -36,9 +36,10 @@ describe("mesh", () => {
36
36
  const result = dataStyleStore.setMeshVisibility(id, visibility);
37
37
  expect(result).toBeInstanceOf(Promise);
38
38
  await result;
39
+ const schema = mesh_schemas.visibility;
40
+ const params = { id, visibility };
39
41
  expect(spy).toHaveBeenCalledWith(
40
- mesh_schemas.visibility,
41
- { id, visibility },
42
+ { schema, params },
42
43
  {
43
44
  response_function: expect.any(Function),
44
45
  },
@@ -37,9 +37,10 @@ describe("mesh points", () => {
37
37
  const result = dataStyleStore.setMeshPointsVisibility(id, visibility);
38
38
  expect(result).toBeInstanceOf(Promise);
39
39
  await result;
40
+ const schema = mesh_points_schemas.visibility;
41
+ const params = { id, visibility };
40
42
  expect(spy).toHaveBeenCalledWith(
41
- mesh_points_schemas.visibility,
42
- { id, visibility },
43
+ { schema, params },
43
44
  {
44
45
  response_function: expect.any(Function),
45
46
  },
@@ -58,9 +59,10 @@ describe("mesh points", () => {
58
59
  const result = dataStyleStore.setMeshPointsColor(id, color);
59
60
  expect(result).toBeInstanceOf(Promise);
60
61
  await result;
62
+ const schema = mesh_points_schemas.color;
63
+ const params = { id, color };
61
64
  expect(spy).toHaveBeenCalledWith(
62
- mesh_points_schemas.color,
63
- { id, color },
65
+ { schema, params },
64
66
  {
65
67
  response_function: expect.any(Function),
66
68
  },
@@ -104,9 +106,10 @@ describe("mesh points", () => {
104
106
  const result = dataStyleStore.setMeshPointsSize(id, size);
105
107
  expect(result).toBeInstanceOf(Promise);
106
108
  await result;
109
+ const schema = mesh_points_schemas.size;
110
+ const params = { id, size };
107
111
  expect(spy).toHaveBeenCalledWith(
108
- mesh_points_schemas.size,
109
- { id, size },
112
+ { schema, params },
110
113
  {
111
114
  response_function: expect.any(Function),
112
115
  },
@@ -123,9 +126,10 @@ describe("mesh points", () => {
123
126
 
124
127
  const spy = vi.spyOn(viewerStore, "request");
125
128
  await dataStyleStore.setMeshPointsVertexAttributeName(id, vertex_attribute.name);
129
+ const schema = mesh_points_schemas.attribute.vertex.name;
130
+ const params = { id, ...vertex_attribute };
126
131
  expect(spy).toHaveBeenCalledWith(
127
- mesh_points_schemas.attribute.vertex.name,
128
- { id, ...vertex_attribute },
132
+ { schema, params },
129
133
  {
130
134
  response_function: expect.any(Function),
131
135
  },
@@ -38,9 +38,10 @@ describe("mesh polygons", () => {
38
38
  const result = dataStyleStore.setMeshPolygonsVisibility(id, visibility);
39
39
  expect(result).toBeInstanceOf(Promise);
40
40
  await result;
41
+ const schema = mesh_polygons_schemas.visibility;
42
+ const params = { id, visibility };
41
43
  expect(spy).toHaveBeenCalledWith(
42
- mesh_polygons_schemas.visibility,
43
- { id, visibility },
44
+ { schema, params },
44
45
  {
45
46
  response_function: expect.any(Function),
46
47
  },
@@ -59,9 +60,10 @@ describe("mesh polygons", () => {
59
60
  const result = dataStyleStore.setMeshPolygonsColor(id, color);
60
61
  expect(result).toBeInstanceOf(Promise);
61
62
  await result;
63
+ const schema = mesh_polygons_schemas.color;
64
+ const params = { id, color };
62
65
  expect(spy).toHaveBeenCalledWith(
63
- mesh_polygons_schemas.color,
64
- { id, color },
66
+ { schema, params },
65
67
  {
66
68
  response_function: expect.any(Function),
67
69
  },
@@ -79,9 +81,10 @@ describe("mesh polygons", () => {
79
81
  const result = dataStyleStore.setMeshPolygonsVertexAttributeName(id, vertex_attribute.name);
80
82
  expect(result).toBeInstanceOf(Promise);
81
83
  await result;
84
+ const schema = mesh_polygons_schemas.attribute.vertex.name;
85
+ const params = { id, ...vertex_attribute };
82
86
  expect(spy).toHaveBeenCalledWith(
83
- mesh_polygons_schemas.attribute.vertex.name,
84
- { id, ...vertex_attribute },
87
+ { schema, params },
85
88
  {
86
89
  response_function: expect.any(Function),
87
90
  },
@@ -99,9 +102,10 @@ describe("mesh polygons", () => {
99
102
  const result = dataStyleStore.setMeshPolygonsPolygonAttributeName(id, polygon_attribute.name);
100
103
  expect(result).toBeInstanceOf(Promise);
101
104
  await result;
105
+ const schema = mesh_polygons_schemas.attribute.polygon.name;
106
+ const params = { id, ...polygon_attribute };
102
107
  expect(spy).toHaveBeenCalledWith(
103
- mesh_polygons_schemas.attribute.polygon.name,
104
- { id, ...polygon_attribute },
108
+ { schema, params },
105
109
  {
106
110
  response_function: expect.any(Function),
107
111
  },
@@ -38,9 +38,10 @@ describe("mesh polyhedra", () => {
38
38
  const result = dataStyleStore.setMeshPolyhedraVisibility(id, visibility);
39
39
  expect(result).toBeInstanceOf(Promise);
40
40
  await result;
41
+ const schema = mesh_polyhedra_schemas.visibility;
42
+ const params = { id, visibility };
41
43
  expect(spy).toHaveBeenCalledWith(
42
- mesh_polyhedra_schemas.visibility,
43
- { id, visibility },
44
+ { schema, params },
44
45
  {
45
46
  response_function: expect.any(Function),
46
47
  },
@@ -57,9 +58,10 @@ describe("mesh polyhedra", () => {
57
58
  const result = dataStyleStore.setMeshPolyhedraColor(id, color);
58
59
  expect(result).toBeInstanceOf(Promise);
59
60
  await result;
61
+ const schema = mesh_polyhedra_schemas.color;
62
+ const params = { id, color };
60
63
  expect(spy).toHaveBeenCalledWith(
61
- mesh_polyhedra_schemas.color,
62
- { id, color },
64
+ { schema, params },
63
65
  {
64
66
  response_function: expect.any(Function),
65
67
  },
@@ -110,9 +112,10 @@ describe("mesh polyhedra", () => {
110
112
 
111
113
  const spy = vi.spyOn(viewerStore, "request");
112
114
  await dataStyleStore.setMeshPolyhedraVertexAttributeName(id, vertex_attribute.name);
115
+ const schema = mesh_polyhedra_schemas.attribute.vertex.name;
116
+ const params = { id, ...vertex_attribute };
113
117
  expect(spy).toHaveBeenCalledWith(
114
- mesh_polyhedra_schemas.attribute.vertex.name,
115
- { id, ...vertex_attribute },
118
+ { schema, params },
116
119
  {
117
120
  response_function: expect.any(Function),
118
121
  },
@@ -127,9 +130,10 @@ describe("mesh polyhedra", () => {
127
130
 
128
131
  const spy = vi.spyOn(viewerStore, "request");
129
132
  await dataStyleStore.setMeshPolyhedraPolyhedronAttributeName(id, polyhedron_attribute.name);
133
+ const schema = mesh_polyhedra_schemas.attribute.polyhedron.name;
134
+ const params = { id, ...polyhedron_attribute };
130
135
  expect(spy).toHaveBeenCalledWith(
131
- mesh_polyhedra_schemas.attribute.polyhedron.name,
132
- { id, ...polyhedron_attribute },
136
+ { schema, params },
133
137
  {
134
138
  response_function: expect.any(Function),
135
139
  },
@@ -50,13 +50,10 @@ describe("model blocks", () => {
50
50
  expect(result).toBeInstanceOf(Promise);
51
51
  await result;
52
52
  await sleep(SLEEP_MS);
53
+ const schema = model_blocks_schemas.visibility;
54
+ const params = { id, block_ids: block_viewer_ids, visibility };
53
55
  expect(spy).toHaveBeenCalledWith(
54
- model_blocks_schemas.visibility,
55
- {
56
- id,
57
- block_ids: block_viewer_ids,
58
- visibility,
59
- },
56
+ { schema, params },
60
57
  {
61
58
  response_function: expect.any(Function),
62
59
  },
@@ -79,14 +76,10 @@ describe("model blocks", () => {
79
76
  const spy = vi.spyOn(viewerStore, "request");
80
77
  await dataStyleStore.setModelBlocksColor(id, block_ids, color);
81
78
  await sleep(SLEEP_MS);
79
+ const schema = model_blocks_schemas.color;
80
+ const params = { id, block_ids: block_viewer_ids, color, color_mode: "constant" };
82
81
  expect(spy).toHaveBeenCalledWith(
83
- model_blocks_schemas.color,
84
- {
85
- id,
86
- block_ids: block_viewer_ids,
87
- color,
88
- color_mode: "constant",
89
- },
82
+ { schema, params },
90
83
  {
91
84
  response_function: expect.any(Function),
92
85
  },
@@ -50,13 +50,10 @@ describe("model corners", () => {
50
50
  expect(result).toBeInstanceOf(Promise);
51
51
  await result;
52
52
  await sleep(SLEEP_MS);
53
+ const schema = model_corners_schemas.visibility;
54
+ const params = { id, block_ids: corner_viewer_ids, visibility };
53
55
  expect(spy).toHaveBeenCalledWith(
54
- model_corners_schemas.visibility,
55
- {
56
- id,
57
- block_ids: corner_viewer_ids,
58
- visibility,
59
- },
56
+ { schema, params },
60
57
  {
61
58
  response_function: expect.any(Function),
62
59
  },
@@ -82,14 +79,10 @@ describe("model corners", () => {
82
79
  expect(result).toBeInstanceOf(Promise);
83
80
  await result;
84
81
  await sleep(SLEEP_MS);
82
+ const schema = model_corners_schemas.color;
83
+ const params = { id, block_ids: corner_viewer_ids, color, color_mode: "constant" };
85
84
  expect(spy).toHaveBeenCalledWith(
86
- model_corners_schemas.color,
87
- {
88
- id,
89
- block_ids: corner_viewer_ids,
90
- color,
91
- color_mode: "constant",
92
- },
85
+ { schema, params },
93
86
  {
94
87
  response_function: expect.any(Function),
95
88
  },
@@ -46,9 +46,10 @@ describe("model edges", () => {
46
46
  expect(result).toBeInstanceOf(Promise);
47
47
  await result;
48
48
  await sleep(SLEEP_MS);
49
+ const schema = model_edges_schemas.visibility;
50
+ const params = { id, visibility };
49
51
  expect(spy).toHaveBeenCalledWith(
50
- model_edges_schemas.visibility,
51
- { id, visibility },
52
+ { schema, params },
52
53
  {
53
54
  response_function: expect.any(Function),
54
55
  },
@@ -46,9 +46,10 @@ describe("model", () => {
46
46
  expect(result).toBeInstanceOf(Promise);
47
47
  await result;
48
48
  await sleep(SLEEP_MS);
49
+ const schema = model_schemas.visibility;
50
+ const params = { id, visibility };
49
51
  expect(spy).toHaveBeenCalledWith(
50
- model_schemas.visibility,
51
- { id, visibility },
52
+ { schema, params },
52
53
  {
53
54
  response_function: expect.any(Function),
54
55
  },
@@ -51,13 +51,10 @@ describe("model lines", () => {
51
51
  expect(result).toBeInstanceOf(Promise);
52
52
  await result;
53
53
  await sleep(SLEEP_MS);
54
+ const schema = model_lines_schemas.visibility;
55
+ const params = { id, block_ids: lines_viewer_ids, visibility };
54
56
  expect(spy).toHaveBeenCalledWith(
55
- model_lines_schemas.visibility,
56
- {
57
- id,
58
- block_ids: lines_viewer_ids,
59
- visibility,
60
- },
57
+ { schema, params },
61
58
  {
62
59
  response_function: expect.any(Function),
63
60
  },
@@ -83,14 +80,10 @@ describe("model lines", () => {
83
80
  expect(result).toBeInstanceOf(Promise);
84
81
  await result;
85
82
  await sleep(SLEEP_MS);
83
+ const schema = model_lines_schemas.color;
84
+ const params = { id, block_ids: lines_viewer_ids, color, color_mode: "constant" };
86
85
  expect(spy).toHaveBeenCalledWith(
87
- model_lines_schemas.color,
88
- {
89
- id,
90
- block_ids: lines_viewer_ids,
91
- color,
92
- color_mode: "constant",
93
- },
86
+ { schema, params },
94
87
  {
95
88
  response_function: expect.any(Function),
96
89
  },
@@ -46,9 +46,10 @@ describe("model points", () => {
46
46
  expect(result).toBeInstanceOf(Promise);
47
47
  await result;
48
48
  await sleep(SLEEP_MS);
49
+ const schema = model_points_schemas.visibility;
50
+ const params = { id, visibility };
49
51
  expect(spy).toHaveBeenCalledWith(
50
- model_points_schemas.visibility,
51
- { id, visibility },
52
+ { schema, params },
52
53
  {
53
54
  response_function: expect.any(Function),
54
55
  },
@@ -69,9 +70,10 @@ describe("model points", () => {
69
70
  expect(result).toBeInstanceOf(Promise);
70
71
  await result;
71
72
  await sleep(SLEEP_MS);
73
+ const schema = model_points_schemas.size;
74
+ const params = { id, size };
72
75
  expect(spy).toHaveBeenCalledWith(
73
- model_points_schemas.size,
74
- { id, size },
76
+ { schema, params },
75
77
  {
76
78
  response_function: expect.any(Function),
77
79
  },
@@ -49,13 +49,10 @@ describe("model surfaces", () => {
49
49
  expect(result).toBeInstanceOf(Promise);
50
50
  await result;
51
51
  await sleep(SLEEP_MS);
52
+ const schema = model_surfaces_schemas.visibility;
53
+ const params = { id, block_ids: surface_viewer_ids, visibility };
52
54
  expect(spy).toHaveBeenCalledWith(
53
- model_surfaces_schemas.visibility,
54
- {
55
- id,
56
- block_ids: surface_viewer_ids,
57
- visibility,
58
- },
55
+ { schema, params },
59
56
  {
60
57
  response_function: expect.any(Function),
61
58
  },
@@ -81,14 +78,10 @@ describe("model surfaces", () => {
81
78
  expect(result).toBeInstanceOf(Promise);
82
79
  await result;
83
80
  await sleep(SLEEP_MS);
81
+ const schema = model_surfaces_schemas.color;
82
+ const params = { id, block_ids: surface_viewer_ids, color, color_mode: "constant" };
84
83
  expect(spy).toHaveBeenCalledWith(
85
- model_surfaces_schemas.color,
86
- {
87
- id,
88
- block_ids: surface_viewer_ids,
89
- color,
90
- color_mode: "constant",
91
- },
84
+ { schema, params },
92
85
  {
93
86
  response_function: expect.any(Function),
94
87
  },
@@ -56,10 +56,9 @@ describe("viewer Store", () => {
56
56
  const schema = opengeodeweb_viewer_schemas.opengeodeweb_viewer.viewer.render;
57
57
  const viewerStore = useViewerStore();
58
58
  const timeout = 1;
59
- const params = {};
60
59
  expect(() =>
61
60
  viewerStore
62
- .request(schema, params, {}, timeout)
61
+ .request({ schema, timeout })
63
62
  .rejects.toThrow(`${schema.$id}: Timed out after ${timeout}ms, ${schema} ${params}`),
64
63
  ).toBeDefined();
65
64
  },
@@ -30,7 +30,7 @@ describe("crs selector", () => {
30
30
  ];
31
31
 
32
32
  // Mock backStore.request instead of registerEndpoint
33
- backStore.request = vi.fn((schema, params, callbacks) => {
33
+ backStore.request = vi.fn((request, callbacks) => {
34
34
  callbacks.response_function({ crs_list });
35
35
  return Promise.resolve({ crs_list });
36
36
  });
@@ -31,7 +31,7 @@ describe("inspector inspection button", () => {
31
31
  },
32
32
  ],
33
33
  };
34
- backStore.request = vi.fn((_schema, _params, callbacks) => {
34
+ backStore.request = vi.fn((request, callbacks) => {
35
35
  callbacks?.response_function?.({ inspection_result });
36
36
  return Promise.resolve({ inspection_result });
37
37
  });
@@ -23,7 +23,7 @@ describe("missing files selector", () => {
23
23
  backStore.base_url = "/";
24
24
 
25
25
  test("select file", async () => {
26
- backStore.request = vi.fn((schema, params, callbacks) => {
26
+ backStore.request = vi.fn((request, callbacks) => {
27
27
  callbacks?.response_function?.({
28
28
  has_missing_files: true,
29
29
  mandatory_files: ["fake_file.txt"],
@@ -48,14 +48,13 @@ describe("backStore.request()", () => {
48
48
  additionalProperties: false,
49
49
  };
50
50
  const params = { test: "hello" };
51
- expect(() => backStore.request(invalid_schema, params)).toThrow("data/test must be number");
51
+ expect(() => backStore.request({ schema: invalid_schema, params })).toThrow(
52
+ "data/test must be number",
53
+ );
52
54
  });
53
55
 
54
56
  test("invalid params", () => {
55
- const params = {};
56
- expect(() => backStore.request(schema, params)).toThrow(
57
- "data must have required property 'test'",
58
- );
57
+ expect(() => backStore.request({ schema })).toThrow("data must have required property 'test'");
59
58
  });
60
59
 
61
60
  test("request with callbacks", async () => {
@@ -70,7 +69,7 @@ describe("backStore.request()", () => {
70
69
  method: schema.methods[FIRST_INDEX],
71
70
  handler: () => ({ result: "success" }),
72
71
  });
73
- await backStore.request(schema, params, callbacks);
72
+ await backStore.request({ schema, params }, callbacks);
74
73
  expect(errorCalled).toBe(false);
75
74
  });
76
75
  });
@@ -45,7 +45,6 @@ export default defineConfig({
45
45
  include: ["tests/integration/**/*.test.js"],
46
46
  globals: true,
47
47
  environment: "nuxt",
48
- fileParallelism: false,
49
48
  testTimeout: TIMEOUTS.integration,
50
49
  setupFiles: [path.resolve(__dirname, "./setup_indexeddb.js")],
51
50
  server: {