@connectedxm/client 6.5.1 → 6.5.3
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/index.d.ts +4 -4
- package/dist/index.js +16 -12
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -1387,8 +1387,6 @@ interface BaseLead {
|
|
|
1387
1387
|
id: string;
|
|
1388
1388
|
firstName: string | null;
|
|
1389
1389
|
lastName: string | null;
|
|
1390
|
-
company: string | null;
|
|
1391
|
-
title: string | null;
|
|
1392
1390
|
shareAccount: {
|
|
1393
1391
|
id: string;
|
|
1394
1392
|
image: BaseImage | null;
|
|
@@ -1408,6 +1406,10 @@ interface Lead extends BaseLead {
|
|
|
1408
1406
|
note: string | null;
|
|
1409
1407
|
eventId: string | null;
|
|
1410
1408
|
event: BaseEvent | null;
|
|
1409
|
+
attributes: {
|
|
1410
|
+
name: string;
|
|
1411
|
+
value: string;
|
|
1412
|
+
}[];
|
|
1411
1413
|
updatedAt: string;
|
|
1412
1414
|
}
|
|
1413
1415
|
declare const isTypeLead: (lead: BaseLead | Lead) => lead is Lead;
|
|
@@ -2001,8 +2003,6 @@ interface OrganizationConfig {
|
|
|
2001
2003
|
CUSTOM: OrganizationOAuth[];
|
|
2002
2004
|
FIELDS: {
|
|
2003
2005
|
PHONE: boolean;
|
|
2004
|
-
TITLE: boolean;
|
|
2005
|
-
COMPANY: boolean;
|
|
2006
2006
|
INTERNAL_REF_ID: boolean;
|
|
2007
2007
|
};
|
|
2008
2008
|
};
|
package/dist/index.js
CHANGED
|
@@ -7967,21 +7967,25 @@ var useConnectedMutation = (mutation, options) => {
|
|
|
7967
7967
|
} = useConnected();
|
|
7968
7968
|
const queryClient = useQueryClient2();
|
|
7969
7969
|
return useMutation({
|
|
7970
|
-
mutationFn: (data) => mutation(
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7970
|
+
mutationFn: (data, context) => mutation(
|
|
7971
|
+
{
|
|
7972
|
+
queryClient,
|
|
7973
|
+
clientApiParams: {
|
|
7974
|
+
apiUrl,
|
|
7975
|
+
getToken,
|
|
7976
|
+
organizationId,
|
|
7977
|
+
getExecuteAs,
|
|
7978
|
+
locale
|
|
7979
|
+
},
|
|
7980
|
+
...data
|
|
7978
7981
|
},
|
|
7979
|
-
|
|
7980
|
-
|
|
7982
|
+
context
|
|
7983
|
+
),
|
|
7981
7984
|
...options,
|
|
7982
|
-
onError: (error, variables, context) => {
|
|
7985
|
+
onError: (error, variables, onMutateResult, context) => {
|
|
7983
7986
|
if (onMutationError) onMutationError(error, variables, context);
|
|
7984
|
-
if (options?.onError)
|
|
7987
|
+
if (options?.onError)
|
|
7988
|
+
options.onError(error, variables, onMutateResult, context);
|
|
7985
7989
|
}
|
|
7986
7990
|
});
|
|
7987
7991
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectedxm/client",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.3",
|
|
4
4
|
"description": "Client API javascript SDK",
|
|
5
5
|
"author": "ConnectedXM Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"upgrade": "ncu -i --format group"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"axios": "^1.
|
|
27
|
-
"immer": "^10.1.
|
|
26
|
+
"axios": "^1.12.2",
|
|
27
|
+
"immer": "^10.1.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@tanstack/react-query": "^5.0.0",
|
|
@@ -47,21 +47,21 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@swc/core": "^1.13.
|
|
51
|
-
"@tanstack/react-query": "^5.
|
|
52
|
-
"@types/react": "^19.
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
54
|
-
"@typescript-eslint/parser": "^8.
|
|
55
|
-
"eslint": "^9.
|
|
50
|
+
"@swc/core": "^1.13.5",
|
|
51
|
+
"@tanstack/react-query": "^5.90.5",
|
|
52
|
+
"@types/react": "^19.2.2",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
54
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
55
|
+
"eslint": "^9.38.0",
|
|
56
56
|
"eslint-plugin-react": "^7.37.5",
|
|
57
57
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
-
"react": "^19.
|
|
58
|
+
"react": "^19.2.0",
|
|
59
59
|
"react-use-websocket": "^4.13.0",
|
|
60
60
|
"tsup": "^8.5.0",
|
|
61
|
-
"typescript": "^5.
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
62
|
"vitest": "^3.2.4"
|
|
63
63
|
},
|
|
64
64
|
"optionalDependencies": {
|
|
65
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
65
|
+
"@rollup/rollup-linux-x64-gnu": "4.52.5"
|
|
66
66
|
}
|
|
67
67
|
}
|