@connectedxm/client 7.4.2 → 7.4.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
@@ -186,7 +186,10 @@ declare enum AccountAttributeType {
186
186
  text = "text",
187
187
  number = "number",
188
188
  date = "date",
189
- boolean = "boolean"
189
+ boolean = "boolean",
190
+ select = "select",
191
+ search = "search",
192
+ location = "location"
190
193
  }
191
194
  interface BaseAccountAttribute {
192
195
  name: string;
@@ -2116,6 +2119,9 @@ interface OrganizationConfig {
2116
2119
  editable: boolean;
2117
2120
  required: boolean;
2118
2121
  public: boolean;
2122
+ options: string[];
2123
+ locationOption: LocationQuestionOption;
2124
+ searchListId: string | null;
2119
2125
  }[];
2120
2126
  OPTIONS: Record<string, any> | null;
2121
2127
  }
package/dist/index.js CHANGED
@@ -8097,6 +8097,9 @@ var AccountAttributeType = /* @__PURE__ */ ((AccountAttributeType2) => {
8097
8097
  AccountAttributeType2["number"] = "number";
8098
8098
  AccountAttributeType2["date"] = "date";
8099
8099
  AccountAttributeType2["boolean"] = "boolean";
8100
+ AccountAttributeType2["select"] = "select";
8101
+ AccountAttributeType2["search"] = "search";
8102
+ AccountAttributeType2["location"] = "location";
8100
8103
  return AccountAttributeType2;
8101
8104
  })(AccountAttributeType || {});
8102
8105
  var isSelf = (account) => {
@@ -10804,8 +10807,9 @@ var UpdateSelf = async ({
10804
10807
  `/self`,
10805
10808
  params
10806
10809
  );
10807
- if (queryClient && data.status !== "ok") {
10808
- queryClient.refetchQueries({ queryKey: SELF_QUERY_KEY() });
10810
+ if (queryClient && data.status === "ok") {
10811
+ queryClient.invalidateQueries({ queryKey: SELF_QUERY_KEY() });
10812
+ queryClient.invalidateQueries({ queryKey: SELF_PROFILE_QUERY_KEY() });
10809
10813
  }
10810
10814
  return data;
10811
10815
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "7.4.2",
3
+ "version": "7.4.4",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",