@connectedxm/client 6.5.2 → 6.5.4

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 CHANGED
@@ -163,6 +163,7 @@ interface BaseAccount {
163
163
  firstName: string | null;
164
164
  lastName: string | null;
165
165
  image: BaseImage | null;
166
+ needsProfileCompletion: boolean;
166
167
  accountTiers: BaseAccountTier[];
167
168
  subscriptions: {
168
169
  subscriptionProduct: {
@@ -611,6 +612,7 @@ interface BasePassType {
611
612
  maxCouponQuantity: number | null;
612
613
  sortOrder: number;
613
614
  overrideStartDate: string | null;
615
+ requiredPassTypeId: string | null;
614
616
  taxCode: string | null;
615
617
  taxIncluded: boolean;
616
618
  }
@@ -618,6 +620,7 @@ interface PassType extends BasePassType {
618
620
  visibility: TicketVisibility;
619
621
  active: boolean;
620
622
  event: BaseEvent;
623
+ requiredPassType: BasePassType | null;
621
624
  }
622
625
  interface BasePassTypePriceSchedule {
623
626
  id: string;
@@ -2003,8 +2006,6 @@ interface OrganizationConfig {
2003
2006
  CUSTOM: OrganizationOAuth[];
2004
2007
  FIELDS: {
2005
2008
  PHONE: boolean;
2006
- TITLE: boolean;
2007
- COMPANY: boolean;
2008
2009
  INTERNAL_REF_ID: boolean;
2009
2010
  };
2010
2011
  };
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
- queryClient,
7972
- clientApiParams: {
7973
- apiUrl,
7974
- getToken,
7975
- organizationId,
7976
- getExecuteAs,
7977
- locale
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
- ...data
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) options.onError(error, variables, context);
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.2",
3
+ "version": "6.5.4",
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.11.0",
27
- "immer": "^10.1.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.2",
51
- "@tanstack/react-query": "^5.83.0",
52
- "@types/react": "^19.1.8",
53
- "@typescript-eslint/eslint-plugin": "^8.38.0",
54
- "@typescript-eslint/parser": "^8.38.0",
55
- "eslint": "^9.31.0",
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.1.0",
58
+ "react": "^19.2.0",
59
59
  "react-use-websocket": "^4.13.0",
60
60
  "tsup": "^8.5.0",
61
- "typescript": "^5.8.3",
61
+ "typescript": "^5.9.3",
62
62
  "vitest": "^3.2.4"
63
63
  },
64
64
  "optionalDependencies": {
65
- "@rollup/rollup-linux-x64-gnu": "4.45.1"
65
+ "@rollup/rollup-linux-x64-gnu": "4.52.5"
66
66
  }
67
67
  }