woodsportal-client-sdk 1.1.4-dev.64 → 1.1.4-dev.65

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.
@@ -1,6 +1,6 @@
1
1
  import { bindStoreWithActions } from '../../chunk-HBHT637F.js';
2
- import { createAdapterHooks } from '../../chunk-K3YKUUNS.js';
3
- import '../../chunk-C76BHDO4.js';
2
+ import { createAdapterHooks } from '../../chunk-GMM4A727.js';
3
+ import '../../chunk-FBCBJGCE.js';
4
4
  import '../../chunk-S2NB4AXQ.js';
5
5
  import { inject, DestroyRef, signal } from '@angular/core';
6
6
 
@@ -1,5 +1,5 @@
1
- import { createAdapterHooks } from '../../chunk-K3YKUUNS.js';
2
- import '../../chunk-C76BHDO4.js';
1
+ import { createAdapterHooks } from '../../chunk-GMM4A727.js';
2
+ import '../../chunk-FBCBJGCE.js';
3
3
  import '../../chunk-S2NB4AXQ.js';
4
4
  import { useSyncExternalStore } from 'react';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { bindStoreWithActions } from '../../chunk-HBHT637F.js';
2
- import { createAdapterHooks } from '../../chunk-K3YKUUNS.js';
3
- import '../../chunk-C76BHDO4.js';
2
+ import { createAdapterHooks } from '../../chunk-GMM4A727.js';
3
+ import '../../chunk-FBCBJGCE.js';
4
4
  import '../../chunk-S2NB4AXQ.js';
5
5
  import { reactive, onScopeDispose } from 'vue';
6
6
 
@@ -154,6 +154,7 @@ var API_ENDPOINTS = {
154
154
  // User
155
155
  ME: "/api/${hubId}/${portalId}/auth/me?include=crmProfile",
156
156
  PROFILE: "/api/${hubId}/${portalId}/profiles",
157
+ PROFILE_UPDATE: "/api/${hubId}/${portalId}/profiles",
157
158
  CHANGE_PASSWORD: "/api/auth/change-password",
158
159
  // Pipeline
159
160
  PIPELINES: "/api/${hubId}/${portalId}/hubspot-object-pipelines/${hubspotObjectTypeId}",
@@ -2424,6 +2425,7 @@ var Client = {
2424
2425
  user: {
2425
2426
  me: () => HttpClient.get(generateApiUrl({ route: API_ENDPOINTS.ME })),
2426
2427
  profile: (payload) => HttpClient.get(generateApiUrl({ route: API_ENDPOINTS.PROFILE, queryParams: payload })),
2428
+ profileUpdate: (props) => HttpClient.put(generateApiUrl({ route: API_ENDPOINTS.PROFILE_UPDATE, queryParams: props?.queryParams || {} }), props?.payload || {}),
2427
2429
  changePassword: (data) => HttpClient.post(API_ENDPOINTS.CHANGE_PASSWORD, data)
2428
2430
  },
2429
2431
  pipeline: {
@@ -3500,6 +3502,20 @@ function profile(options) {
3500
3502
  isLoading
3501
3503
  };
3502
3504
  }
3505
+ function profileUpdate(options) {
3506
+ const { mutate, isLoading } = createMutation(
3507
+ async (paylaod) => {
3508
+ const response = await Client.user.profileUpdate(paylaod);
3509
+ return response;
3510
+ },
3511
+ options
3512
+ );
3513
+ return {
3514
+ mutate,
3515
+ profileUpdate: mutate,
3516
+ isLoading
3517
+ };
3518
+ }
3503
3519
  function changePassword(options) {
3504
3520
  const { mutate, isLoading } = createMutation(
3505
3521
  async (payload) => {
@@ -4302,6 +4318,7 @@ var api = {
4302
4318
  logout,
4303
4319
  me,
4304
4320
  profile,
4321
+ profileUpdate,
4305
4322
  changePassword,
4306
4323
  sendMfaOtp,
4307
4324
  pendingPasskeyOptions,
@@ -4378,5 +4395,5 @@ var routeParam = {
4378
4395
  };
4379
4396
 
4380
4397
  export { DEFAULT_HUBSPOT_TIMEZONE, actions, actions3 as actions2, actions4 as actions3, actions5 as actions4, actions6 as actions5, actions8 as actions6, actions9 as actions7, api, breadcrumbsDetails, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, client_exports, createCachePurgeJob, emailStore, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, formatGmtOffset, formatHubSpotActivityDateTime, formatHubSpotActivityDateTimeParts, getCurrentTimeZone, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, multiObjectStore, normalizeToTimestamp, noteStore, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, routeParam, store, syncStore, tableStore2 as tableStore, toCachePurgeListQuery, uploaderStore, url, userStore };
4381
- //# sourceMappingURL=chunk-C76BHDO4.js.map
4382
- //# sourceMappingURL=chunk-C76BHDO4.js.map
4398
+ //# sourceMappingURL=chunk-FBCBJGCE.js.map
4399
+ //# sourceMappingURL=chunk-FBCBJGCE.js.map