@truedat/cx 8.7.0 → 8.7.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 (73) hide show
  1. package/package.json +3 -3
  2. package/src/configurations/components/Configuration.js +1 -1
  3. package/src/configurations/components/ConfigurationActions.js +2 -2
  4. package/src/configurations/components/ConfigurationCards.js +2 -2
  5. package/src/configurations/components/ConfigurationForm.js +3 -3
  6. package/src/configurations/components/ConfigurationRoutes.js +2 -2
  7. package/src/configurations/components/ConfigurationTokenLoader.js +1 -1
  8. package/src/configurations/components/Configurations.js +1 -1
  9. package/src/configurations/components/DynamicConfigurationForm.js +1 -1
  10. package/src/configurations/components/EditConfiguration.js +1 -1
  11. package/src/configurations/components/__tests__/ConfigurationCards.spec.js +3 -3
  12. package/src/configurations/reducers/__tests__/configuration.spec.js +4 -4
  13. package/src/configurations/reducers/__tests__/configurationLoading.spec.js +4 -4
  14. package/src/configurations/reducers/__tests__/configurationRedirect.spec.js +9 -9
  15. package/src/configurations/reducers/__tests__/configurationToken.spec.js +6 -6
  16. package/src/configurations/reducers/__tests__/configurationTokenLoading.spec.js +3 -3
  17. package/src/configurations/reducers/__tests__/configurations.spec.js +4 -4
  18. package/src/configurations/reducers/__tests__/configurationsLoading.spec.js +4 -4
  19. package/src/configurations/reducers/__tests__/systemConfigurations.spec.js +3 -3
  20. package/src/configurations/reducers/configurations.js +1 -1
  21. package/src/configurations/reducers/systemConfigurations.js +1 -1
  22. package/src/configurations/routines.js +1 -1
  23. package/src/configurations/sagas/__tests__/deleteConfiguration.spec.js +1 -1
  24. package/src/configurations/sagas/__tests__/fetchConfigurations.spec.js +3 -3
  25. package/src/configurations/sagas/__tests__/signConfiguration.spec.js +1 -1
  26. package/src/configurations/sagas/index.js +2 -2
  27. package/src/jobs/components/JobFilters.js +1 -1
  28. package/src/jobs/components/JobFiltersLoader.js +1 -1
  29. package/src/jobs/components/JobSelectedFilters.js +2 -2
  30. package/src/jobs/components/JobsLoader.js +2 -2
  31. package/src/jobs/components/JobsTable.js +1 -1
  32. package/src/jobs/components/__tests__/JobRow.spec.js +2 -2
  33. package/src/jobs/components/__tests__/JobsTable.spec.js +4 -4
  34. package/src/jobs/reducers/__tests__/job.spec.js +2 -2
  35. package/src/jobs/reducers/__tests__/jobActiveFilters.spec.js +11 -11
  36. package/src/jobs/reducers/__tests__/jobCount.spec.js +3 -3
  37. package/src/jobs/reducers/__tests__/jobFilters.spec.js +2 -2
  38. package/src/jobs/reducers/__tests__/jobFiltersLoading.spec.js +2 -2
  39. package/src/jobs/reducers/__tests__/jobQuery.spec.js +4 -4
  40. package/src/jobs/reducers/__tests__/jobSelectedFilter.spec.js +9 -9
  41. package/src/jobs/reducers/__tests__/jobs.spec.js +5 -5
  42. package/src/jobs/reducers/__tests__/jobsPageSize.spec.js +3 -3
  43. package/src/jobs/reducers/jobFilters.js +1 -1
  44. package/src/jobs/reducers/jobSelectedFilter.js +1 -1
  45. package/src/jobs/sagas/__tests__/fetchJob.spec.js +2 -2
  46. package/src/jobs/sagas/__tests__/fetchJobFilters.spec.js +5 -5
  47. package/src/jobs/sagas/__tests__/fetchJobs.spec.js +5 -5
  48. package/src/jobs/sagas/index.js +2 -2
  49. package/src/jobs/selectors/getJobAvailableFilters.js +2 -2
  50. package/src/jobs/selectors/getJobFilterTypes.js +1 -1
  51. package/src/jobs/selectors/getJobSelectedFilterActiveValues.js +1 -1
  52. package/src/jobs/selectors/getJobSelectedFilterValues.js +2 -2
  53. package/src/jobs/selectors/getJobSelectedFilters.js +1 -1
  54. package/src/jobs/selectors/jobColumnsSelector.js +1 -1
  55. package/src/jobs/selectors/jobRowsSelector.js +2 -2
  56. package/src/jobs/selectors/sourceJobColumnsSelector.js +1 -1
  57. package/src/messages/en.js +12 -7
  58. package/src/messages/es.js +12 -7
  59. package/src/messages/index.js +1 -1
  60. package/src/sources/components/NewJob.js +1 -1
  61. package/src/sources/components/SourceActions.js +2 -2
  62. package/src/sources/components/SourceConfiguration.js +1 -1
  63. package/src/sources/components/SourceForm.js +2 -2
  64. package/src/sources/components/SourceSelector.js +8 -8
  65. package/src/sources/components/Sources.js +1 -1
  66. package/src/sources/components/__tests__/SourceDetail.spec.js +1 -1
  67. package/src/sources/components/__tests__/SourceForm.spec.js +3 -3
  68. package/src/sources/components/__tests__/SourceSelector.spec.js +1 -1
  69. package/src/sources/components/__tests__/Sources.spec.js +4 -4
  70. package/src/sources/reducers/__tests__/sourceRedirect.spec.js +8 -8
  71. package/src/sources/reducers/__tests__/sourceUpdateStatus.spec.js +4 -4
  72. package/src/sources/sagas/createSource.js +1 -1
  73. package/src/sources/sagas/updateSource.js +1 -1
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
2
  import { render, waitForLoad } from "@truedat/test/render";
3
- import { SourceDetail } from "../SourceDetail";
4
3
  import {
5
4
  SOURCE,
6
5
  SOURCE_EDIT,
7
6
  SOURCE_JOBS,
8
7
  SOURCE_JOBS_NEW,
9
8
  } from "@truedat/core/routes";
9
+ import { SourceDetail } from "../SourceDetail";
10
10
 
11
11
  jest.mock("../../../jobs/components/Job", () => () => <div>Job</div>);
12
12
  jest.mock("../../../jobs/components/JobLoader", () => () => (
@@ -104,7 +104,7 @@ describe("<SourceForm />", () => {
104
104
  it("submits", async () => {
105
105
  const rendered = render(
106
106
  <SourceForm {...props} source={undefined} />,
107
- renderOpts
107
+ renderOpts,
108
108
  );
109
109
  await waitForLoad(rendered);
110
110
 
@@ -114,13 +114,13 @@ describe("<SourceForm />", () => {
114
114
  rendered.queryByText(/source.external_id/i).parentNode;
115
115
  await user.type(
116
116
  within(externalIdField).getByRole("textbox"),
117
- "My External Id"
117
+ "My External Id",
118
118
  );
119
119
 
120
120
  const sourceTypeField =
121
121
  rendered.queryByText(/type.selector.label/i).parentNode;
122
122
  await user.click(
123
- within(sourceTypeField).getByRole("option", { name: /app-admin/i })
123
+ within(sourceTypeField).getByRole("option", { name: /app-admin/i }),
124
124
  );
125
125
 
126
126
  await waitForLoad(rendered);
@@ -33,7 +33,7 @@ describe("<Sources />", () => {
33
33
  it("matches the latest snapshot", async () => {
34
34
  const { container, getByRole } = render(
35
35
  <SourceSelector {...props} />,
36
- renderOpts
36
+ renderOpts,
37
37
  );
38
38
  await waitFor(() => {
39
39
  expect(getByRole("option", { name: /aaaa/i })).toBeTruthy();
@@ -38,7 +38,7 @@ describe("<Sources />", () => {
38
38
  const rendered = render(<Sources />, renderOpts);
39
39
  await waitForLoad(rendered);
40
40
  await waitFor(() =>
41
- expect(rendered.getByText(/sources.count/i)).toBeInTheDocument()
41
+ expect(rendered.getByText(/sources.count/i)).toBeInTheDocument(),
42
42
  );
43
43
  expect(rendered.container).toMatchSnapshot();
44
44
  });
@@ -47,20 +47,20 @@ describe("<Sources />", () => {
47
47
  const rendered = render(<Sources />, renderOpts);
48
48
  await waitForLoad(rendered);
49
49
  await waitFor(() =>
50
- expect(rendered.getByText(/sources.count/i)).toBeInTheDocument()
50
+ expect(rendered.getByText(/sources.count/i)).toBeInTheDocument(),
51
51
  );
52
52
  expect(rendered.queryAllByRole("row")).toHaveLength(3); // 2 rows + header
53
53
 
54
54
  const user = userEvent.setup({ delay: null });
55
55
  await user.type(rendered.getByRole("textbox"), source1.externalId);
56
56
  await waitFor(() =>
57
- expect(rendered.getByText(/sources.count/i)).toBeInTheDocument()
57
+ expect(rendered.getByText(/sources.count/i)).toBeInTheDocument(),
58
58
  );
59
59
  expect(rendered.queryAllByRole("row")).toHaveLength(2); // 1 row + header
60
60
 
61
61
  await user.type(rendered.getByRole("textbox"), "x");
62
62
  await waitFor(() =>
63
- expect(rendered.getByText(/sources.count/i)).toBeInTheDocument()
63
+ expect(rendered.getByText(/sources.count/i)).toBeInTheDocument(),
64
64
  );
65
65
  expect(rendered.queryAllByRole("row")).toHaveLength(1); // header only
66
66
  });
@@ -20,7 +20,7 @@ describe("reducers: sourceRedirect", () => {
20
20
 
21
21
  it("should handle the clearRedirect.TRIGGER action", () => {
22
22
  expect(sourceRedirect("foo", { type: clearRedirect.TRIGGER })).toEqual(
23
- initialState
23
+ initialState,
24
24
  );
25
25
  });
26
26
 
@@ -28,38 +28,38 @@ describe("reducers: sourceRedirect", () => {
28
28
  expect(
29
29
  sourceRedirect(
30
30
  "foo",
31
- createJob.success({ data: { external_id: "foo", source_id: id } })
32
- )
31
+ createJob.success({ data: { external_id: "foo", source_id: id } }),
32
+ ),
33
33
  ).toEqual("/sources/42/jobs/foo");
34
34
  });
35
35
 
36
36
  it("should handle the createSource.SUCCESS action", () => {
37
37
  expect(
38
- sourceRedirect("foo", createSource.success({ createSource: { id } }))
38
+ sourceRedirect("foo", createSource.success({ createSource: { id } })),
39
39
  ).toEqual("/sources/42");
40
40
  });
41
41
 
42
42
  it("should handle the deleteSource.SUCCESS action", () => {
43
43
  expect(
44
- sourceRedirect("foo", deleteSource.success({ deleteSource: { id } }))
44
+ sourceRedirect("foo", deleteSource.success({ deleteSource: { id } })),
45
45
  ).toEqual("/sources");
46
46
  });
47
47
 
48
48
  it("should handle the disableSource.SUCCESS action", () => {
49
49
  expect(
50
- sourceRedirect("foo", disableSource.success({ disableSource: { id } }))
50
+ sourceRedirect("foo", disableSource.success({ disableSource: { id } })),
51
51
  ).toEqual("/sources/42");
52
52
  });
53
53
 
54
54
  it("should handle the enableSource.SUCCESS action", () => {
55
55
  expect(
56
- sourceRedirect("foo", enableSource.success({ enableSource: { id } }))
56
+ sourceRedirect("foo", enableSource.success({ enableSource: { id } })),
57
57
  ).toEqual("/sources/42");
58
58
  });
59
59
 
60
60
  it("should handle the updateSource.SUCCESS action", () => {
61
61
  expect(
62
- sourceRedirect("foo", updateSource.success({ updateSource: { id } }))
62
+ sourceRedirect("foo", updateSource.success({ updateSource: { id } })),
63
63
  ).toEqual("/sources/42");
64
64
  });
65
65
 
@@ -12,25 +12,25 @@ describe("reducers: sourceUpdateStatus", () => {
12
12
 
13
13
  it("should handle the updateSource.TRIGGER action", () => {
14
14
  expect(
15
- sourceUpdateStatus(fooState, { type: updateSource.TRIGGER })
15
+ sourceUpdateStatus(fooState, { type: updateSource.TRIGGER }),
16
16
  ).toEqual("updating");
17
17
  });
18
18
 
19
19
  it("should handle the updateSource.SUCCESS action", () => {
20
20
  expect(
21
- sourceUpdateStatus(fooState, { type: updateSource.SUCCESS })
21
+ sourceUpdateStatus(fooState, { type: updateSource.SUCCESS }),
22
22
  ).toEqual("success");
23
23
  });
24
24
 
25
25
  it("should handle the updateSource.FAILURE action", () => {
26
26
  expect(
27
- sourceUpdateStatus(fooState, { type: updateSource.FAILURE })
27
+ sourceUpdateStatus(fooState, { type: updateSource.FAILURE }),
28
28
  ).toEqual("fail");
29
29
  });
30
30
 
31
31
  it("should handle the updateSource.FULFILL action", () => {
32
32
  expect(
33
- sourceUpdateStatus(fooState, { type: updateSource.FULFILL })
33
+ sourceUpdateStatus(fooState, { type: updateSource.FULFILL }),
34
34
  ).toEqual("none");
35
35
  });
36
36
 
@@ -17,7 +17,7 @@ export function* createSourceSaga({ payload }) {
17
17
  _.update,
18
18
  "source.config",
19
19
  JSON.stringify,
20
- payload
20
+ payload,
21
21
  );
22
22
  try {
23
23
  const { data } = yield call(client.mutate, {
@@ -12,7 +12,7 @@ export function* updateSourceSaga({ payload }) {
12
12
  _.update,
13
13
  "source.config",
14
14
  JSON.stringify,
15
- payload
15
+ payload,
16
16
  );
17
17
  try {
18
18
  const { data } = yield call(client.mutate, {