woodsportal-client-sdk 1.1.4-dev.60 → 1.1.4-dev.62

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
@@ -315,12 +315,15 @@ type CachePurgeListQuery = {
315
315
  parentObjectTypeId?: string;
316
316
  parentObjectRecordId?: string;
317
317
  isPrimaryCompany?: boolean;
318
+ stageId?: string;
319
+ after?: string;
318
320
  };
319
321
  type CachePurgeTarget = {
320
322
  domain: CachePurgeDomain;
321
323
  objectTypeId?: string;
322
324
  objectTypeIds?: string[];
323
325
  recordIds?: string[];
326
+ engagementItemIds?: string[];
324
327
  fileIds?: string[];
325
328
  views?: CachePurgeView[];
326
329
  listQuery?: CachePurgeListQuery;
@@ -331,6 +334,8 @@ type CachePurgeRequest = {
331
334
  confirmPortalWide?: boolean;
332
335
  includeShortOnHard?: boolean;
333
336
  includeContactAccess?: boolean;
337
+ postCrmWrite?: boolean;
338
+ warmListDelayMs?: number;
334
339
  targets: CachePurgeTarget[];
335
340
  };
336
341
  type CachePurgeJobStatus = "warming" | "completed" | "failed";
@@ -358,15 +363,19 @@ type CrmCachePurgeOptions = {
358
363
  views?: CachePurgeView[];
359
364
  recordIds?: string[];
360
365
  fileIds?: string[];
366
+ postCrmWrite?: boolean;
367
+ warmListDelayMs?: number;
368
+ engagementItemIds?: string[];
361
369
  waitForWarm?: boolean;
362
370
  idempotencyKey?: string;
363
371
  };
364
372
 
365
- declare function buildCrmListPurgeTarget(objectTypeId: string, listQuery?: CachePurgeListQuery): CachePurgeTarget;
373
+ declare function buildCrmListPurgeTarget(objectTypeId: string, listQuery?: CachePurgeListQuery, recordIds?: string[]): CachePurgeTarget;
366
374
  declare function buildCrmSinglePurgeTarget(objectTypeId: string, recordIds: string[], listQuery?: CachePurgeListQuery): CachePurgeTarget;
367
375
  declare function buildEngagementPurgeTarget(objectTypeId: string, recordIds: string[], views: Extract<CachePurgeView, "notes" | "emails" | "files">[], options?: {
368
376
  fileIds?: string[];
369
377
  listQuery?: CachePurgeListQuery;
378
+ engagementItemIds?: string[];
370
379
  }): CachePurgeTarget;
371
380
  declare function buildUserSessionPurgeTarget(): CachePurgeTarget;
372
381
  declare function buildPortalConfigPurgeTarget(objectTypeIds: string[]): CachePurgeTarget;
@@ -377,11 +386,17 @@ declare function buildCachePurgeRequest(targets: CachePurgeTarget[], options?: {
377
386
  includeContactAccess?: boolean;
378
387
  includeShortOnHard?: boolean;
379
388
  confirmPortalWide?: boolean;
389
+ postCrmWrite?: boolean;
390
+ warmListDelayMs?: number;
380
391
  }): CachePurgeRequest;
381
392
 
382
393
  declare function createCachePurgeJob(request: CachePurgeRequest, options?: CreateCachePurgeJobOptions): Promise<PurgeResult>;
383
394
 
384
395
  declare function purgeCrmObjectDataCache(options: CrmCachePurgeOptions): Promise<boolean>;
396
+ declare function purgeCrmListCacheAfterCrmWrite(options: CrmCachePurgeOptions): Promise<PurgeResult>;
397
+ declare function purgeCrmDetailAndListAfterCrmWrite(options: CrmCachePurgeOptions & {
398
+ recordIds: string[];
399
+ }): Promise<PurgeResult>;
385
400
  declare function purgeCrmListCache(options: CrmCachePurgeOptions): Promise<PurgeResult>;
386
401
  declare function purgeCrmRecordCache(options: CrmCachePurgeOptions & {
387
402
  recordIds: string[];
@@ -390,10 +405,29 @@ declare function purgeEngagementCaches(options: CrmCachePurgeOptions & {
390
405
  recordIds: string[];
391
406
  views: ("notes" | "emails" | "files")[];
392
407
  }): Promise<PurgeResult>;
408
+ declare function purgeEngagementCachesAfterCrmWrite(options: CrmCachePurgeOptions & {
409
+ recordIds: string[];
410
+ views: ("notes" | "emails")[];
411
+ engagementItemIds?: string[];
412
+ }): Promise<PurgeResult>;
393
413
  declare function purgeCrmCombined(options: CrmCachePurgeOptions & {
394
414
  targets: CachePurgeTarget[];
395
415
  }): Promise<PurgeResult>;
396
416
 
417
+ declare function extractHubspotRecordIdFromWriteResponse(response: unknown): string | undefined;
418
+
419
+ declare function extractEngagementItemIdFromWriteResponse(response: unknown): string | undefined;
420
+
421
+ declare function toCachePurgeListQuery(raw: Record<string, unknown> | null | undefined): CachePurgeListQuery;
422
+ type ResolveCrmListPurgeQueryOptions = {
423
+ componentName?: string;
424
+ hubspotObjectTypeId?: string;
425
+ tableQueryParams?: Record<string, unknown> | null;
426
+ multiObjectsQueryParams?: Record<string, Record<string, unknown>>;
427
+ writeContext?: Record<string, string>;
428
+ };
429
+ declare function resolveCrmListPurgeQuery(options: ResolveCrmListPurgeQueryOptions): CachePurgeListQuery;
430
+
397
431
  declare const Client: {
398
432
  authentication: {
399
433
  preLogin: (data: PreLoginPayload) => Promise<unknown>;
@@ -563,4 +597,4 @@ declare const routeParam: {
563
597
  };
564
598
  };
565
599
 
566
- export { type CachePurgeDomain, type CachePurgeListQuery, type CachePurgeMode, type CachePurgeRequest, type CachePurgeTarget, type CachePurgeView, type ChangePasswordPayload, type Config, type CreateCachePurgeJobOptions, type CrmCachePurgeOptions, DEFAULT_HUBSPOT_TIMEZONE, type ForgetPasswordPayload, type HttpClientConfig, type HubSpotActivityDateTimeParts, type LoginPayload, type MutationOptions, type PreLoginPayload, type PurgeResult, type ResetPasswordPayload, type ResetPasswordVerifyTokenPayload, type VerifyEmailPayload, api, breadcrumbsDetails, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, index as clint, createCachePurgeJob, formatGmtOffset, formatHubSpotActivityDateTime, formatHubSpotActivityDateTimeParts, getCurrentTimeZone, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, normalizeToTimestamp, purgeCrmCombined, purgeCrmListCache, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, routeParam, store, url };
600
+ export { type CachePurgeDomain, type CachePurgeListQuery, type CachePurgeMode, type CachePurgeRequest, type CachePurgeTarget, type CachePurgeView, type ChangePasswordPayload, type Config, type CreateCachePurgeJobOptions, type CrmCachePurgeOptions, DEFAULT_HUBSPOT_TIMEZONE, type ForgetPasswordPayload, type HttpClientConfig, type HubSpotActivityDateTimeParts, type LoginPayload, type MutationOptions, type PreLoginPayload, type PurgeResult, type ResetPasswordPayload, type ResetPasswordVerifyTokenPayload, type VerifyEmailPayload, api, breadcrumbsDetails, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, index as clint, createCachePurgeJob, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, formatGmtOffset, formatHubSpotActivityDateTime, formatHubSpotActivityDateTimeParts, getCurrentTimeZone, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, normalizeToTimestamp, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, routeParam, store, toCachePurgeListQuery, url };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { DEFAULT_HUBSPOT_TIMEZONE, api, breadcrumbsDetails, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, client_exports as clint, createCachePurgeJob, formatGmtOffset, formatHubSpotActivityDateTime, formatHubSpotActivityDateTimeParts, getCurrentTimeZone, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, normalizeToTimestamp, purgeCrmCombined, purgeCrmListCache, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, routeParam, store, url } from './chunk-IVNXDHLP.js';
1
+ export { DEFAULT_HUBSPOT_TIMEZONE, api, breadcrumbsDetails, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, client_exports as clint, createCachePurgeJob, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, formatGmtOffset, formatHubSpotActivityDateTime, formatHubSpotActivityDateTimeParts, getCurrentTimeZone, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, normalizeToTimestamp, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, routeParam, store, toCachePurgeListQuery, url } from './chunk-XWIYW67P.js';
2
2
  import './chunk-2SYUOWTT.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "woodsportal-client-sdk",
3
- "version": "1.1.4-dev.60",
3
+ "version": "1.1.4-dev.62",
4
4
  "description": "Official TypeScript/JavaScript SDK for WoodsPortal API - Authentication, user management, pipelines, and more",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",