woodsportal-client-sdk 1.1.4-dev.42 → 1.1.4-dev.44

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getParamDetails, useUpdateLink, useTable, getRouteDetails, actions, actions5, actions2, actions3, getParam, decodeToBase64, generatePath, getPath, getRouteMenu, breadcrumbStage, isMessingParentLastItem, isMessingParent, generateUrl, resetAllStore } from './chunk-MFA4HYJU.js';
1
+ import { getParamDetails, useUpdateLink, useTable, getRouteDetails, actions, actions6, actions3, actions4, getParam, decodeToBase64, generatePath, getPath, getRouteMenu, breadcrumbStage, isMessingParentLastItem, isMessingParent, generateUrl, resetAllStore, actions2 } from './chunk-A5LK4PTO.js';
2
2
  import { ensureValidRefresh, HUBSPOT_DATA, PORTAL_ID, DEV_PORTAL_ID, HUB_ID, setRefreshCallback, getAccessToken, setRefreshToken, setAccessToken, isAuthenticateApp, isExpiresAccessToken, getRefreshToken, DEV_API_URL, setPortal, setSubscriptionType, setLoggedInDetails, clearAccessToken } from './chunk-YLZA5S7A.js';
3
3
  import { __export, isCookieExpired, removeAllCookie } from './chunk-NB7AINV4.js';
4
4
  import axios from 'axios';
@@ -1143,7 +1143,7 @@ function list3(options) {
1143
1143
  };
1144
1144
  }
1145
1145
  function sideBarList(options) {
1146
- const { setMultiObjectData } = actions5;
1146
+ const { setMultiObjectData } = actions6;
1147
1147
  const { mutate, isLoading } = createMutation(
1148
1148
  async (payload) => {
1149
1149
  const response = await Client.object.sideBarList(payload);
@@ -1188,7 +1188,7 @@ function objectFormOptions(options) {
1188
1188
  }
1189
1189
  function create(options) {
1190
1190
  const { setTablePrependData } = actions;
1191
- const { setMultiObjectPrependData } = actions5;
1191
+ const { setMultiObjectPrependData } = actions6;
1192
1192
  const { mutate, isLoading } = createMutation(
1193
1193
  async (props) => {
1194
1194
  if (props?.componentName === "sidebarTable") await setMultiObjectPrependData("loading", props);
@@ -1269,7 +1269,7 @@ function update(options) {
1269
1269
 
1270
1270
  // src/apis/note.ts
1271
1271
  function list4(options) {
1272
- const { setNotes } = actions2;
1272
+ const { setNotes } = actions3;
1273
1273
  const { mutate, isLoading } = createMutation(
1274
1274
  async (payload) => {
1275
1275
  const response = await Client.note.list(payload);
@@ -1285,7 +1285,7 @@ function list4(options) {
1285
1285
  };
1286
1286
  }
1287
1287
  function create2(options) {
1288
- const { setPrependNote } = actions2;
1288
+ const { setPrependNote } = actions3;
1289
1289
  const { mutate, isLoading } = createMutation(
1290
1290
  async (props) => {
1291
1291
  await setPrependNote("loading");
@@ -1302,7 +1302,7 @@ function create2(options) {
1302
1302
  };
1303
1303
  }
1304
1304
  function update2(options) {
1305
- const { updatePrependNote } = actions2;
1305
+ const { updatePrependNote } = actions3;
1306
1306
  const { mutate, isLoading } = createMutation(
1307
1307
  async (payload) => {
1308
1308
  const response = await Client.note.update(payload);
@@ -1320,7 +1320,7 @@ function update2(options) {
1320
1320
 
1321
1321
  // src/apis/email.ts
1322
1322
  function list5(options) {
1323
- const { setEmails } = actions3;
1323
+ const { setEmails } = actions4;
1324
1324
  const { mutate, isLoading } = createMutation(
1325
1325
  async (payload) => {
1326
1326
  const response = await Client.email.list(payload);
@@ -1336,7 +1336,7 @@ function list5(options) {
1336
1336
  };
1337
1337
  }
1338
1338
  function create3(options) {
1339
- const { setPrependEmail } = actions3;
1339
+ const { setPrependEmail } = actions4;
1340
1340
  const { mutate, isLoading } = createMutation(
1341
1341
  async (props) => {
1342
1342
  await setPrependEmail("loading");
@@ -1353,7 +1353,7 @@ function create3(options) {
1353
1353
  };
1354
1354
  }
1355
1355
  function update3(options) {
1356
- const { updatePrependEmail } = actions3;
1356
+ const { updatePrependEmail } = actions4;
1357
1357
  const { mutate, isLoading } = createMutation(
1358
1358
  async (payload) => {
1359
1359
  const response = await Client.email.update(payload);
@@ -1388,6 +1388,7 @@ function attachmentUpload(options) {
1388
1388
  const { mutate, isLoading } = createMutation(
1389
1389
  async (payload) => {
1390
1390
  const response = payload?.type === "email" ? await Client.email.attachment(payload) : await Client.note.attachment(payload);
1391
+ actions2.setAttachment(response);
1391
1392
  return response;
1392
1393
  },
1393
1394
  options