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

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,14 @@ type CachePurgeListQuery = {
315
315
  parentObjectTypeId?: string;
316
316
  parentObjectRecordId?: string;
317
317
  isPrimaryCompany?: boolean;
318
+ after?: string;
318
319
  };
319
320
  type CachePurgeTarget = {
320
321
  domain: CachePurgeDomain;
321
322
  objectTypeId?: string;
322
323
  objectTypeIds?: string[];
323
324
  recordIds?: string[];
325
+ engagementItemIds?: string[];
324
326
  fileIds?: string[];
325
327
  views?: CachePurgeView[];
326
328
  listQuery?: CachePurgeListQuery;
@@ -331,6 +333,8 @@ type CachePurgeRequest = {
331
333
  confirmPortalWide?: boolean;
332
334
  includeShortOnHard?: boolean;
333
335
  includeContactAccess?: boolean;
336
+ postCrmWrite?: boolean;
337
+ warmListDelayMs?: number;
334
338
  targets: CachePurgeTarget[];
335
339
  };
336
340
  type CachePurgeJobStatus = "warming" | "completed" | "failed";
@@ -358,15 +362,19 @@ type CrmCachePurgeOptions = {
358
362
  views?: CachePurgeView[];
359
363
  recordIds?: string[];
360
364
  fileIds?: string[];
365
+ postCrmWrite?: boolean;
366
+ warmListDelayMs?: number;
367
+ engagementItemIds?: string[];
361
368
  waitForWarm?: boolean;
362
369
  idempotencyKey?: string;
363
370
  };
364
371
 
365
- declare function buildCrmListPurgeTarget(objectTypeId: string, listQuery?: CachePurgeListQuery): CachePurgeTarget;
372
+ declare function buildCrmListPurgeTarget(objectTypeId: string, listQuery?: CachePurgeListQuery, recordIds?: string[]): CachePurgeTarget;
366
373
  declare function buildCrmSinglePurgeTarget(objectTypeId: string, recordIds: string[], listQuery?: CachePurgeListQuery): CachePurgeTarget;
367
374
  declare function buildEngagementPurgeTarget(objectTypeId: string, recordIds: string[], views: Extract<CachePurgeView, "notes" | "emails" | "files">[], options?: {
368
375
  fileIds?: string[];
369
376
  listQuery?: CachePurgeListQuery;
377
+ engagementItemIds?: string[];
370
378
  }): CachePurgeTarget;
371
379
  declare function buildUserSessionPurgeTarget(): CachePurgeTarget;
372
380
  declare function buildPortalConfigPurgeTarget(objectTypeIds: string[]): CachePurgeTarget;
@@ -377,11 +385,17 @@ declare function buildCachePurgeRequest(targets: CachePurgeTarget[], options?: {
377
385
  includeContactAccess?: boolean;
378
386
  includeShortOnHard?: boolean;
379
387
  confirmPortalWide?: boolean;
388
+ postCrmWrite?: boolean;
389
+ warmListDelayMs?: number;
380
390
  }): CachePurgeRequest;
381
391
 
382
392
  declare function createCachePurgeJob(request: CachePurgeRequest, options?: CreateCachePurgeJobOptions): Promise<PurgeResult>;
383
393
 
384
394
  declare function purgeCrmObjectDataCache(options: CrmCachePurgeOptions): Promise<boolean>;
395
+ declare function purgeCrmListCacheAfterCrmWrite(options: CrmCachePurgeOptions): Promise<PurgeResult>;
396
+ declare function purgeCrmDetailAndListAfterCrmWrite(options: CrmCachePurgeOptions & {
397
+ recordIds: string[];
398
+ }): Promise<PurgeResult>;
385
399
  declare function purgeCrmListCache(options: CrmCachePurgeOptions): Promise<PurgeResult>;
386
400
  declare function purgeCrmRecordCache(options: CrmCachePurgeOptions & {
387
401
  recordIds: string[];
@@ -390,10 +404,29 @@ declare function purgeEngagementCaches(options: CrmCachePurgeOptions & {
390
404
  recordIds: string[];
391
405
  views: ("notes" | "emails" | "files")[];
392
406
  }): Promise<PurgeResult>;
407
+ declare function purgeEngagementCachesAfterCrmWrite(options: CrmCachePurgeOptions & {
408
+ recordIds: string[];
409
+ views: ("notes" | "emails")[];
410
+ engagementItemIds?: string[];
411
+ }): Promise<PurgeResult>;
393
412
  declare function purgeCrmCombined(options: CrmCachePurgeOptions & {
394
413
  targets: CachePurgeTarget[];
395
414
  }): Promise<PurgeResult>;
396
415
 
416
+ declare function extractHubspotRecordIdFromWriteResponse(response: unknown): string | undefined;
417
+
418
+ declare function extractEngagementItemIdFromWriteResponse(response: unknown): string | undefined;
419
+
420
+ declare function toCachePurgeListQuery(raw: Record<string, unknown> | null | undefined): CachePurgeListQuery;
421
+ type ResolveCrmListPurgeQueryOptions = {
422
+ componentName?: string;
423
+ hubspotObjectTypeId?: string;
424
+ tableQueryParams?: Record<string, unknown> | null;
425
+ multiObjectsQueryParams?: Record<string, Record<string, unknown>>;
426
+ writeContext?: Record<string, string>;
427
+ };
428
+ declare function resolveCrmListPurgeQuery(options: ResolveCrmListPurgeQueryOptions): CachePurgeListQuery;
429
+
397
430
  declare const Client: {
398
431
  authentication: {
399
432
  preLogin: (data: PreLoginPayload) => Promise<unknown>;
@@ -563,4 +596,4 @@ declare const routeParam: {
563
596
  };
564
597
  };
565
598
 
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 };
599
+ 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-XQTQ4YHO.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.61",
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",