@bluecopa/react 0.1.92 → 0.1.94
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/dist/hooks/useExecuteNow.d.ts +15 -0
- package/dist/hooks/useExecuteNow.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +79 -66
- package/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
2
|
+
import { ExecuteNowResponse } from '@bluecopa/core';
|
|
3
|
+
export interface ExecuteNowVariables {
|
|
4
|
+
triggerId: string;
|
|
5
|
+
/** Optional: run a specific schedule; omit to run the trigger. */
|
|
6
|
+
scheduleName?: string;
|
|
7
|
+
/** Optional: pass the sheetId to invalidate only that sheet's trigger list. */
|
|
8
|
+
sheetId?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Triggers an immediate ("run now") execution of a process trigger.
|
|
12
|
+
* Invalidates the process trigger list for the affected sheet on success.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useExecuteNow(options?: UseMutationOptions<ExecuteNowResponse, Error, ExecuteNowVariables>): UseMutationResult<ExecuteNowResponse, Error, ExecuteNowVariables>;
|
|
15
|
+
//# sourceMappingURL=useExecuteNow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExecuteNow.d.ts","sourceRoot":"","sources":["../../src/hooks/useExecuteNow.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,OAAO,GAAE,kBAAkB,CACzB,kBAAkB,EAClB,KAAK,EACL,mBAAmB,CACf,GACL,iBAAiB,CAAC,kBAAkB,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAgBnE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export * from './hooks/useDeleteProcessTrigger';
|
|
|
66
66
|
export * from './hooks/usePauseSchedule';
|
|
67
67
|
export * from './hooks/useResumeSchedule';
|
|
68
68
|
export * from './hooks/useGetScheduleStatus';
|
|
69
|
+
export * from './hooks/useExecuteNow';
|
|
69
70
|
export * from './hooks/useGetAllInboxItems';
|
|
70
71
|
export * from './hooks/useMarkItemAsRead';
|
|
71
72
|
export * from './hooks/useMarkItemAsUnread';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,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Ac,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,2BAA2B,CAAC;AAG1C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useQuery as s, useMutation as o, useQueryClient as g } from "@tanstack/
|
|
|
2
2
|
import * as O from "@tanstack/react-query";
|
|
3
3
|
import { copaApi as u, copaGetConfig as k } from "@bluecopa/core";
|
|
4
4
|
export * from "@bluecopa/core";
|
|
5
|
-
import { ReactQueryDevtools as
|
|
5
|
+
import { ReactQueryDevtools as pn } from "@tanstack/react-query-devtools";
|
|
6
6
|
const S = {
|
|
7
7
|
enabled: !0,
|
|
8
8
|
staleTime: 1e3 * 60 * 5,
|
|
@@ -160,7 +160,7 @@ function H(e = {}) {
|
|
|
160
160
|
...e
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function N(e, n = {}) {
|
|
164
164
|
const t = !!e, r = c(async () => {
|
|
165
165
|
if (!e)
|
|
166
166
|
throw new Error("Dataset ID is required");
|
|
@@ -175,7 +175,7 @@ function L(e, n = {}) {
|
|
|
175
175
|
});
|
|
176
176
|
return s(a);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function L() {
|
|
179
179
|
const e = c(async () => (console.log("Fetching dataset data..."), await u.dataset.getAllDatasets())), n = l({
|
|
180
180
|
queryKey: ["datasetData"],
|
|
181
181
|
queryFn: e,
|
|
@@ -786,7 +786,19 @@ function _e(e, n, t = {}) {
|
|
|
786
786
|
...t
|
|
787
787
|
});
|
|
788
788
|
}
|
|
789
|
-
function He(e = {}
|
|
789
|
+
function He(e = {}) {
|
|
790
|
+
const n = g();
|
|
791
|
+
return o({
|
|
792
|
+
mutationFn: async ({ triggerId: t, scheduleName: r }) => await u.process.executeNow(t, r),
|
|
793
|
+
onSuccess: (t, r) => {
|
|
794
|
+
n.invalidateQueries({
|
|
795
|
+
queryKey: r.sheetId ? ["processTriggers", r.sheetId] : ["processTriggers"]
|
|
796
|
+
});
|
|
797
|
+
},
|
|
798
|
+
...e
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
function Ne(e = {}, n = {}) {
|
|
790
802
|
return s({
|
|
791
803
|
queryKey: ["inboxItems", "all", e.page, e.perPage],
|
|
792
804
|
queryFn: async () => await u.inboxItems.getAllInboxItems(e),
|
|
@@ -799,26 +811,26 @@ function Le(e = {}) {
|
|
|
799
811
|
...e
|
|
800
812
|
});
|
|
801
813
|
}
|
|
802
|
-
function
|
|
814
|
+
function Ve(e = {}) {
|
|
803
815
|
return o({
|
|
804
816
|
mutationFn: async (n) => await u.inboxItems.markItemAsUnread(n),
|
|
805
817
|
...e
|
|
806
818
|
});
|
|
807
819
|
}
|
|
808
|
-
function
|
|
820
|
+
function ze(e = {}) {
|
|
809
821
|
return o({
|
|
810
822
|
mutationFn: async (n) => await u.inboxItems.createInboxItemPerUser(n),
|
|
811
823
|
...e
|
|
812
824
|
});
|
|
813
825
|
}
|
|
814
|
-
function
|
|
826
|
+
function Ye(e, n = {}) {
|
|
815
827
|
return s({
|
|
816
828
|
queryKey: ["emailConversations", e == null ? void 0 : e.page, e == null ? void 0 : e.pageSize, e == null ? void 0 : e.tag, e == null ? void 0 : e.orderByCreatedDate],
|
|
817
829
|
queryFn: async () => await u.emailEngine.getAllConversations(e),
|
|
818
830
|
...n
|
|
819
831
|
});
|
|
820
832
|
}
|
|
821
|
-
function
|
|
833
|
+
function $e(e, n = {}) {
|
|
822
834
|
return s({
|
|
823
835
|
queryKey: ["emailConversation", e],
|
|
824
836
|
queryFn: async () => await u.emailEngine.getConversation({
|
|
@@ -828,7 +840,7 @@ function Ye(e, n = {}) {
|
|
|
828
840
|
...n
|
|
829
841
|
});
|
|
830
842
|
}
|
|
831
|
-
function
|
|
843
|
+
function Je(e = {}) {
|
|
832
844
|
const n = g();
|
|
833
845
|
return o({
|
|
834
846
|
mutationFn: async (t) => await u.emailEngine.createConversation(t),
|
|
@@ -838,7 +850,7 @@ function $e(e = {}) {
|
|
|
838
850
|
...e
|
|
839
851
|
});
|
|
840
852
|
}
|
|
841
|
-
function
|
|
853
|
+
function Xe(e = {}) {
|
|
842
854
|
const n = g();
|
|
843
855
|
return o({
|
|
844
856
|
mutationFn: async (t) => await u.emailEngine.replyToConversation(t),
|
|
@@ -850,7 +862,7 @@ function Je(e = {}) {
|
|
|
850
862
|
...e
|
|
851
863
|
});
|
|
852
864
|
}
|
|
853
|
-
function
|
|
865
|
+
function Ze(e, n = {}) {
|
|
854
866
|
return s({
|
|
855
867
|
queryKey: [
|
|
856
868
|
"emailMessagesBySender",
|
|
@@ -865,13 +877,13 @@ function Xe(e, n = {}) {
|
|
|
865
877
|
...n
|
|
866
878
|
});
|
|
867
879
|
}
|
|
868
|
-
function
|
|
880
|
+
function je(e = {}) {
|
|
869
881
|
return o({
|
|
870
882
|
mutationFn: async (n) => await u.emailEngine.searchMessages(n),
|
|
871
883
|
...e
|
|
872
884
|
});
|
|
873
885
|
}
|
|
874
|
-
function
|
|
886
|
+
function en(e = {}) {
|
|
875
887
|
const n = c(async () => await u.tcn.getAuthUrl()), t = l({
|
|
876
888
|
queryKey: ["tcn", "authUrl"],
|
|
877
889
|
queryFn: n,
|
|
@@ -880,67 +892,67 @@ function je(e = {}) {
|
|
|
880
892
|
});
|
|
881
893
|
return s(t);
|
|
882
894
|
}
|
|
883
|
-
function
|
|
895
|
+
function nn(e = {}) {
|
|
884
896
|
return o({
|
|
885
897
|
mutationFn: async ({ code: n }) => await u.tcn.exchangeCode(n),
|
|
886
898
|
...e
|
|
887
899
|
});
|
|
888
900
|
}
|
|
889
|
-
function
|
|
901
|
+
function tn(e = {}) {
|
|
890
902
|
return o({
|
|
891
903
|
mutationFn: async ({ refresh_token: n }) => await u.tcn.refreshToken(n),
|
|
892
904
|
...e
|
|
893
905
|
});
|
|
894
906
|
}
|
|
895
|
-
function
|
|
907
|
+
function rn(e = {}) {
|
|
896
908
|
return o({
|
|
897
909
|
mutationFn: async ({ token: n }) => await u.tcn.getCurrentAgent(n),
|
|
898
910
|
...e
|
|
899
911
|
});
|
|
900
912
|
}
|
|
901
|
-
function
|
|
913
|
+
function un(e = {}) {
|
|
902
914
|
return o({
|
|
903
915
|
mutationFn: async ({ token: n, huntGroupSid: t }) => await u.tcn.getAgentSkills(n, t),
|
|
904
916
|
...e
|
|
905
917
|
});
|
|
906
918
|
}
|
|
907
|
-
function
|
|
919
|
+
function an(e = {}) {
|
|
908
920
|
return o({
|
|
909
921
|
mutationFn: async ({ token: n, huntGroupSid: t, skills: r }) => await u.tcn.createSession(n, t, r),
|
|
910
922
|
...e
|
|
911
923
|
});
|
|
912
924
|
}
|
|
913
|
-
function
|
|
925
|
+
function on(e = {}) {
|
|
914
926
|
return o({
|
|
915
927
|
mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.keepAlive(n, t),
|
|
916
928
|
...e
|
|
917
929
|
});
|
|
918
930
|
}
|
|
919
|
-
function
|
|
931
|
+
function sn(e = {}) {
|
|
920
932
|
return o({
|
|
921
933
|
mutationFn: async ({ token: n }) => await u.tcn.agentGetStatus(n),
|
|
922
934
|
...e
|
|
923
935
|
});
|
|
924
936
|
}
|
|
925
|
-
function
|
|
937
|
+
function cn(e = {}) {
|
|
926
938
|
return o({
|
|
927
939
|
mutationFn: async ({ token: n, huntGroupSid: t }) => await u.tcn.getHuntGroupAgentSettings(n, t),
|
|
928
940
|
...e
|
|
929
941
|
});
|
|
930
942
|
}
|
|
931
|
-
function
|
|
943
|
+
function ln(e = {}) {
|
|
932
944
|
return o({
|
|
933
945
|
mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.dialManualPrepare(n, t),
|
|
934
946
|
...e
|
|
935
947
|
});
|
|
936
948
|
}
|
|
937
|
-
function
|
|
949
|
+
function yn(e = {}) {
|
|
938
950
|
return o({
|
|
939
951
|
mutationFn: async ({ token: n, call: t }) => await u.tcn.processManualDial(n, t),
|
|
940
952
|
...e
|
|
941
953
|
});
|
|
942
954
|
}
|
|
943
|
-
function
|
|
955
|
+
function gn(e = {}) {
|
|
944
956
|
return o({
|
|
945
957
|
mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: r, simpleCallData: a }) => await u.tcn.manualDialStart(
|
|
946
958
|
n,
|
|
@@ -951,90 +963,91 @@ function yn(e = {}) {
|
|
|
951
963
|
...e
|
|
952
964
|
});
|
|
953
965
|
}
|
|
954
|
-
function
|
|
966
|
+
function wn(e = {}) {
|
|
955
967
|
return o({
|
|
956
968
|
mutationFn: async ({ token: n, sessionSid: t, reason: r }) => await u.tcn.agentDisconnect(n, t, r),
|
|
957
969
|
...e
|
|
958
970
|
});
|
|
959
971
|
}
|
|
960
|
-
function
|
|
972
|
+
function dn(e = {}) {
|
|
961
973
|
return o({
|
|
962
974
|
mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.agentPause(n, t),
|
|
963
975
|
...e
|
|
964
976
|
});
|
|
965
977
|
}
|
|
966
|
-
function
|
|
978
|
+
function fn(e = {}) {
|
|
967
979
|
return o({
|
|
968
980
|
mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.agentSetReady(n, t),
|
|
969
981
|
...e
|
|
970
982
|
});
|
|
971
983
|
}
|
|
972
|
-
function
|
|
984
|
+
function mn(e = {}) {
|
|
973
985
|
return o({
|
|
974
986
|
mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.agentGetConnectedParty(n, t),
|
|
975
987
|
...e
|
|
976
988
|
});
|
|
977
989
|
}
|
|
978
|
-
function
|
|
990
|
+
function qn(e = {}) {
|
|
979
991
|
return o({
|
|
980
992
|
mutationFn: async ({ token: n, callSid: t }) => await u.tcn.getCallData(n, t),
|
|
981
993
|
...e
|
|
982
994
|
});
|
|
983
995
|
}
|
|
984
|
-
function
|
|
996
|
+
function Fn(e = {}) {
|
|
985
997
|
return o({
|
|
986
998
|
mutationFn: async ({ token: n, sessionSid: t, holdType: r }) => await u.tcn.agentPutCallOnHold(n, t, r),
|
|
987
999
|
...e
|
|
988
1000
|
});
|
|
989
1001
|
}
|
|
990
|
-
function
|
|
1002
|
+
function bn(e = {}) {
|
|
991
1003
|
return o({
|
|
992
1004
|
mutationFn: async ({ token: n, sessionSid: t, holdType: r }) => await u.tcn.agentGetCallFromHold(n, t, r),
|
|
993
1005
|
...e
|
|
994
1006
|
});
|
|
995
1007
|
}
|
|
996
|
-
function
|
|
1008
|
+
function hn(e = {}) {
|
|
997
1009
|
return o({
|
|
998
1010
|
mutationFn: async ({ token: n, templateNumber: t, groupSid: r }) => await u.tcn.ftpManualDialReport(n, t, r),
|
|
999
1011
|
...e
|
|
1000
1012
|
});
|
|
1001
1013
|
}
|
|
1002
|
-
function
|
|
1014
|
+
function Dn(e = {}) {
|
|
1003
1015
|
return o({
|
|
1004
1016
|
mutationFn: async (n) => await u.templates.renderTemplate(n),
|
|
1005
1017
|
...e
|
|
1006
1018
|
});
|
|
1007
1019
|
}
|
|
1008
1020
|
export {
|
|
1009
|
-
|
|
1021
|
+
pn as ReactQueryDevtools,
|
|
1010
1022
|
C as WorkflowStatus,
|
|
1011
1023
|
O as reactQuery,
|
|
1012
1024
|
_ as useCheckSubscriptionStatus,
|
|
1013
1025
|
Re as useCreateAuditLog,
|
|
1014
|
-
|
|
1015
|
-
|
|
1026
|
+
Je as useCreateConversation,
|
|
1027
|
+
ze as useCreateInboxItemPerUser,
|
|
1016
1028
|
Ke as useCreateOrUpdateForm,
|
|
1017
1029
|
H as useCreateStatementRun,
|
|
1018
1030
|
U as useCreateThread,
|
|
1019
|
-
|
|
1031
|
+
N as useDataset,
|
|
1020
1032
|
G as useDatasetSample,
|
|
1021
1033
|
x as useDeleteComment,
|
|
1022
1034
|
xe as useDeleteProcessTrigger,
|
|
1023
1035
|
le as useDeleteRow,
|
|
1024
1036
|
qe as useDocumentPermissions,
|
|
1037
|
+
He as useExecuteNow,
|
|
1025
1038
|
be as useFileDownload,
|
|
1026
1039
|
Fe as useFileUpload,
|
|
1027
|
-
|
|
1028
|
-
|
|
1040
|
+
Ze as useFilterMessagesBySenderId,
|
|
1041
|
+
Ye as useGetAllConversations,
|
|
1029
1042
|
Ge as useGetAllHttpTriggers,
|
|
1030
|
-
|
|
1043
|
+
Ne as useGetAllInboxItems,
|
|
1031
1044
|
Pe as useGetAllRecon,
|
|
1032
1045
|
Oe as useGetAllTemplatedPipelines,
|
|
1033
1046
|
Ae as useGetAllUsers,
|
|
1034
1047
|
Be as useGetAuditLogs,
|
|
1035
1048
|
M as useGetCommentsByThreadId,
|
|
1036
|
-
|
|
1037
|
-
|
|
1049
|
+
$e as useGetConversation,
|
|
1050
|
+
L as useGetDatasets,
|
|
1038
1051
|
z as useGetFileByFolderIdAndName,
|
|
1039
1052
|
V as useGetFileUrlByFileId,
|
|
1040
1053
|
Ce as useGetFormById,
|
|
@@ -1059,7 +1072,7 @@ export {
|
|
|
1059
1072
|
ae as useInputTable,
|
|
1060
1073
|
ie as useInsertRow,
|
|
1061
1074
|
Le as useMarkItemAsRead,
|
|
1062
|
-
|
|
1075
|
+
Ve as useMarkItemAsUnread,
|
|
1063
1076
|
Ue as useMarkTaskDone,
|
|
1064
1077
|
A as useMetric,
|
|
1065
1078
|
Ie as usePauseSchedule,
|
|
@@ -1067,8 +1080,8 @@ export {
|
|
|
1067
1080
|
ke as usePublishWorkbook,
|
|
1068
1081
|
Me as useReassignTask,
|
|
1069
1082
|
ve as useRegisterProcessTrigger,
|
|
1070
|
-
|
|
1071
|
-
|
|
1083
|
+
Dn as useRenderTemplate,
|
|
1084
|
+
Xe as useReplyToConversation,
|
|
1072
1085
|
Qe as useResumeSchedule,
|
|
1073
1086
|
se as useRows,
|
|
1074
1087
|
ye as useRunDefinition,
|
|
@@ -1076,28 +1089,28 @@ export {
|
|
|
1076
1089
|
Se as useRunRecon,
|
|
1077
1090
|
we as useRunSampleDefinition,
|
|
1078
1091
|
Te as useSaveWorkbook,
|
|
1079
|
-
|
|
1092
|
+
je as useSearchMessages,
|
|
1080
1093
|
I as useSubscribeUser,
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1094
|
+
wn as useTcnAgentDisconnect,
|
|
1095
|
+
bn as useTcnAgentGetCallFromHold,
|
|
1096
|
+
sn as useTcnAgentGetStatus,
|
|
1097
|
+
dn as useTcnAgentPause,
|
|
1098
|
+
Fn as useTcnAgentPutCallOnHold,
|
|
1099
|
+
fn as useTcnAgentSetReady,
|
|
1100
|
+
un as useTcnAgentSkills,
|
|
1101
|
+
en as useTcnAuthUrl,
|
|
1102
|
+
qn as useTcnCallData,
|
|
1103
|
+
mn as useTcnConnectedParty,
|
|
1104
|
+
an as useTcnCreateSession,
|
|
1105
|
+
rn as useTcnCurrentAgent,
|
|
1106
|
+
ln as useTcnDialManualPrepare,
|
|
1107
|
+
nn as useTcnExchangeCode,
|
|
1108
|
+
hn as useTcnFtpManualDialReport,
|
|
1109
|
+
cn as useTcnHuntGroupSettings,
|
|
1110
|
+
on as useTcnKeepAlive,
|
|
1111
|
+
gn as useTcnManualDialStart,
|
|
1112
|
+
yn as useTcnProcessManualDial,
|
|
1113
|
+
tn as useTcnRefreshToken,
|
|
1101
1114
|
de as useTriggerHttpWorkflow,
|
|
1102
1115
|
fe as useTriggerWorkflow,
|
|
1103
1116
|
Q as useUnsubscribeUser,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluecopa/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.94",
|
|
4
4
|
"description": "Bluecopa react library with TanStack Query integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"react-dom": ">=18.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@bluecopa/core": "0.1.
|
|
30
|
+
"@bluecopa/core": "0.1.92",
|
|
31
31
|
"@tanstack/react-query": "5.59.0",
|
|
32
32
|
"@tanstack/react-query-devtools": "5.59.0"
|
|
33
33
|
},
|