@orchestrator-ui/orchestrator-ui-components 6.5.0 → 6.7.0
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.
- package/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-lint.log +3 -6
- package/.turbo/turbo-test.log +6 -6
- package/CHANGELOG.md +28 -0
- package/dist/index.d.ts +837 -255
- package/dist/index.js +2738 -2371
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/WfoAgent/WfoAgent/WfoAgent.tsx +48 -39
- package/src/components/WfoAvailabilityCheck/WfoAvailabilityCheck.tsx +27 -0
- package/src/components/WfoAvailabilityCheck/index.ts +1 -0
- package/src/components/WfoBackendUnavailable/WfoBackendUnavailable.tsx +109 -0
- package/src/components/WfoBackendUnavailable/index.ts +1 -0
- package/src/components/WfoInlineEdit/WfoInlineEdit.tsx +5 -1
- package/src/components/WfoInlineNoteEdit/WfoSubscriptionDetailNoteEdit.tsx +1 -1
- package/src/components/WfoLogoSpinner/WfoLogoSpinner.tsx +2 -2
- package/src/components/WfoMetadata/WfoMetadataDescriptionField.tsx +3 -1
- package/src/components/WfoPydanticForm/WfoPydanticForm.tsx +7 -1
- package/src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx +15 -6
- package/src/components/WfoPydanticForm/fields/WfoReactSelect/styles.ts +5 -1
- package/src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx +9 -2
- package/src/components/WfoSubscription/WfoCustomerDescriptionsField.tsx +1 -1
- package/src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActions.tsx +138 -46
- package/src/components/WfoSubscription/WfoSubscriptionActions/WfoSubscriptionActionsMenuItem.tsx +27 -33
- package/src/components/WfoSubscription/WfoSubscriptionActions/styles.ts +3 -1
- package/src/components/WfoSubscription/WfoTargetTypeIcon.tsx +37 -6
- package/src/components/WfoSubscriptionsList/WfoSubscriptionsList.tsx +1 -0
- package/src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx +1 -0
- package/src/components/index.ts +2 -0
- package/src/configuration/version.ts +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useBackendAvailability.ts +72 -0
- package/src/messages/en-GB.json +39 -0
- package/src/messages/nl-NL.json +2 -0
- package/src/rtk/api.ts +5 -3
- package/src/rtk/endpoints/availability.ts +41 -0
- package/src/rtk/endpoints/index.ts +1 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BaseQueryTypes, orchestratorApi } from '@/rtk';
|
|
2
|
+
|
|
3
|
+
type AvailabilityCheckResponse = Record<string, unknown>;
|
|
4
|
+
|
|
5
|
+
const availabilityApi = orchestratorApi.injectEndpoints({
|
|
6
|
+
endpoints: (build) => ({
|
|
7
|
+
checkSearchAvailability: build.query<AvailabilityCheckResponse, void>({
|
|
8
|
+
query: () => ({
|
|
9
|
+
url: 'search/definitions',
|
|
10
|
+
method: 'GET',
|
|
11
|
+
headers: {
|
|
12
|
+
'Content-Type': 'application/json',
|
|
13
|
+
},
|
|
14
|
+
}),
|
|
15
|
+
extraOptions: {
|
|
16
|
+
baseQueryType: BaseQueryTypes.fetch,
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
checkAgentAvailability: build.query<AvailabilityCheckResponse, void>({
|
|
20
|
+
query: () => ({
|
|
21
|
+
url: '/agent/',
|
|
22
|
+
method: 'POST',
|
|
23
|
+
headers: {
|
|
24
|
+
'Content-Type': 'application/json',
|
|
25
|
+
},
|
|
26
|
+
body: JSON.stringify({
|
|
27
|
+
messages: [],
|
|
28
|
+
}),
|
|
29
|
+
}),
|
|
30
|
+
extraOptions: {
|
|
31
|
+
baseQueryType: BaseQueryTypes.fetch,
|
|
32
|
+
apiName: 'agent',
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const {
|
|
39
|
+
useCheckSearchAvailabilityQuery,
|
|
40
|
+
useCheckAgentAvailabilityQuery,
|
|
41
|
+
} = availabilityApi;
|