woodsportal-client-sdk 4.0.9-dev.1 → 4.0.9-dev.3

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.
Files changed (36) hide show
  1. package/dist/adapters/angular/index.js +3 -3
  2. package/dist/adapters/native/index.js +4 -4
  3. package/dist/adapters/react/index.js +4 -4
  4. package/dist/adapters/vue/index.js +3 -3
  5. package/dist/{cache-purge-rOALAcjJ.d.ts → cache-purge-h90c5Dpm.d.ts} +9 -2
  6. package/dist/{chunk-4CTXRWIN.js → chunk-2ZDMREF4.js} +4 -4
  7. package/dist/{chunk-4CTXRWIN.js.map → chunk-2ZDMREF4.js.map} +1 -1
  8. package/dist/{chunk-PLY23VRX.js → chunk-5IQC6UHI.js} +46 -13
  9. package/dist/chunk-5IQC6UHI.js.map +1 -0
  10. package/dist/{chunk-K6LWWPXZ.js → chunk-DZF5LIXW.js} +106 -31
  11. package/dist/chunk-DZF5LIXW.js.map +1 -0
  12. package/dist/{chunk-PP2GUXEW.js → chunk-FCXVZLKO.js} +3 -3
  13. package/dist/{chunk-PP2GUXEW.js.map → chunk-FCXVZLKO.js.map} +1 -1
  14. package/dist/{chunk-5JFESDQH.js → chunk-FZMDGSOP.js} +3 -3
  15. package/dist/{chunk-5JFESDQH.js.map → chunk-FZMDGSOP.js.map} +1 -1
  16. package/dist/{chunk-POWLSRWC.js → chunk-JHJGYIPC.js} +4 -4
  17. package/dist/{chunk-POWLSRWC.js.map → chunk-JHJGYIPC.js.map} +1 -1
  18. package/dist/{chunk-YEFSBGK2.js → chunk-OXPA3PYS.js} +7 -4
  19. package/dist/chunk-OXPA3PYS.js.map +1 -0
  20. package/dist/{chunk-2ZHONRVH.js → chunk-UR6J7NHR.js} +25 -5
  21. package/dist/chunk-UR6J7NHR.js.map +1 -0
  22. package/dist/{cross-tab-session-I2FKYSBE.js → cross-tab-session-AH27QKXW.js} +5 -5
  23. package/dist/{cross-tab-session-I2FKYSBE.js.map → cross-tab-session-AH27QKXW.js.map} +1 -1
  24. package/dist/entries/auth.d.ts +8 -4
  25. package/dist/entries/auth.js +4 -4
  26. package/dist/entries/crm.d.ts +4 -3
  27. package/dist/entries/crm.js +6 -6
  28. package/dist/{index-B-IGDI9L.d.ts → index-CWYPrDBp.d.ts} +6 -1
  29. package/dist/index.d.ts +24 -7
  30. package/dist/index.js +10 -10
  31. package/dist/{route-guard-contract-KaQaafb7.d.ts → route-guard-contract-BXNkJFf2.d.ts} +18 -2
  32. package/package.json +1 -1
  33. package/dist/chunk-2ZHONRVH.js.map +0 -1
  34. package/dist/chunk-K6LWWPXZ.js.map +0 -1
  35. package/dist/chunk-PLY23VRX.js.map +0 -1
  36. package/dist/chunk-YEFSBGK2.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/main/features/crm/api/pipeline.ts","../src/main/features/crm/api/stage.ts","../src/main/features/crm/api/object.ts","../src/main/features/crm/api/note.ts","../src/main/features/crm/api/email.ts","../src/main/features/crm/api/uploader.ts","../src/main/features/crm/api/file.ts","../src/main/features/crm/api/cache.ts","../src/main/api/nested-crm-api.ts","../src/main/core/constants/pipeline-ui.ts"],"names":["list","actions","create","update","details"],"mappings":";;;;;;AAKO,SAAS,KAAK,OAAA,EAAqC;AACtD,EAAA,MAAM,EAAE,MAAA,EAAQ,SAAA,EAAU,GAAI,cAAA,CAAyB,OAAO,OAAA,KAAiB;AAC3E,IAAA,MAAM,eAAA,GAAkB,uBAAuB,OAAO,CAAA;AAEtD,IAAA,MAAM,WAAgB,MAAM,MAAA,CAAO,QAAA,CAAS,IAAA,CAAK,SAAS,eAAe,CAAA;AACzE,IAAA,OAAO,QAAA;AAAA,EACX,GAAG,OAAO,CAAA;AAEV,EAAA,OAAO;AAAA,IACH,MAAA;AAAA,IACA,IAAA,EAAM,MAAA;AAAA,IACN,YAAA,EAAc,MAAA;AAAA,IACd;AAAA,GACJ;AACJ;;;ACfO,SAASA,MAAK,OAAA,EAAqC;AACtD,EAAA,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AAAA,EACA,KAAA,EAAO;AAAA,IACH,IAAA,EAAMH,KAAAA;AAAA,IACN,UAAA,EAAYI,QAAAA;AAAA,IACZ,QAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,GACJ;AAAA,EACA,OAAA,EAAS;AAAA,IACL,WAAA,EAAa,WAAA;AAAA,IACb,gBAAA,EAAkB;AAAA,GACtB;AAAA,EACA,KAAA,EAAO;AAAA,IACH,KAAA;AAAA,IACA,cAAA,EAAgB;AAAA;AAExB;;;AC3DO,SAAS,0BAA0B,YAAA,EAAkD;AACxF,EAAA,OAAO,4BAA4B,YAAY,CAAA;AACnD;AAGO,SAAS,kBAAkB,YAAA,EAAkD;AAChF,EAAA,OAAO,4BAA4B,YAAY,CAAA;AACnD;AAMO,SAAS,0BAAA,CAA2B,cAAyC,aAAA,EAAgC;AAChH,EAAA,IAAI,iBAAiB,CAAA,EAAG;AACpB,IAAA,OAAO,KAAA;AAAA,EACX;AACA,EAAA,IAAI,2BAAA,CAA4B,YAAY,CAAA,EAAG;AAC3C,IAAA,OAAO,aAAA,GAAgB,CAAA;AAAA,EAC3B;AACA,EAAA,OAAO,aAAA,GAAgB,CAAA;AAC3B","file":"chunk-UR6J7NHR.js","sourcesContent":["import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { resolveListTableParams } from '../helpers/normalize-table-list-params'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const listTableParams = resolveListTableParams(payload)\n\n const response: any = await Client.pipeline.list(payload, listTableParams)\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getPipelines: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.stage.list(payload)\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getStages: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { getClientType } from '../../../core/http/client-type'\nimport { resolveListTableParams } from '../helpers/normalize-table-list-params'\nimport { actions as tableActions } from '../../../state/crm/use-table'\nimport { actions as multiObjectActions } from '../../../state/crm/use-multi-object'\nimport { actions as formActions } from '../../../state/crm/use-form'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { setObjectsData, setTableData } = tableActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const listTableParams = resolveListTableParams(payload)\n\n const response: any = await Client.object.list(payload, listTableParams)\n\n await setObjectsData(response, {\n stageId: listTableParams.stageId as string | number | undefined\n })\n await setTableData(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getObjects: mutate,\n isLoading\n }\n}\n\nexport function existingList(options?: MutationOptions<any, any>) {\n const { setObjectsData, setTableData } = tableActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const listTableParams = resolveListTableParams(payload)\n\n const response: any = await Client.object.existingList(payload, listTableParams)\n\n await setObjectsData(response, {\n stageId: listTableParams.stageId as string | number | undefined\n })\n await setTableData(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n existingList: mutate,\n listExisting: mutate,\n getExistingObjects: mutate,\n isLoading\n }\n}\n\nexport function sideBarList(options?: MutationOptions<any, any>) {\n const { setMultiObjectData } = multiObjectActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.sideBarList(payload)\n setMultiObjectData(response, payload)\n return response\n }, options)\n\n return {\n mutate,\n listSidebar: mutate,\n getSideBarObjects: mutate,\n isLoading\n }\n}\n\nexport function form(options?: MutationOptions<any, any>) {\n const { setFormData } = formActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.form(payload)\n\n setFormData(response)\n\n return response\n }, options)\n\n return {\n mutate,\n getForm: mutate,\n getObjectsForm: mutate,\n isLoading\n }\n}\n\nexport function objectFormOptions(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.objectFormOptions(payload)\n\n return response\n }, options)\n\n return {\n mutate,\n getFormOptions: mutate,\n objectFormOptions: mutate,\n isLoading\n }\n}\n\nexport function create(options?: MutationOptions<any, any>) {\n const { setTablePrependData, clearLatestTablePrependData } = tableActions\n const { setMultiObjectPrependData, clearLatestMultiObjectPrependData } = multiObjectActions\n const isMobileClient = getClientType() === 'mobile'\n\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n if (!isMobileClient && props?.componentName === 'sidebarTable') await setMultiObjectPrependData('loading', props)\n if (!isMobileClient && props?.componentName != 'sidebarTable' && props?.componentName != 'sidebarAssociation') {\n await setTablePrependData('loading', props)\n }\n\n const response: any = await Client.object.create(props)\n\n if (!isMobileClient && props?.componentName === 'sidebarTable') await setMultiObjectPrependData(response, props)\n if (!isMobileClient && props?.componentName != 'sidebarTable' && props?.componentName != 'sidebarAssociation') {\n await setTablePrependData(response, props)\n }\n\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n if (!isMobileClient && payload?.componentName === 'sidebarTable') {\n clearLatestMultiObjectPrependData(payload?.hubspotObjectTypeId)\n }\n if (!isMobileClient && payload?.componentName != 'sidebarTable' && payload?.componentName != 'sidebarAssociation') {\n clearLatestTablePrependData()\n }\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n create: mutate,\n createObject: mutate,\n isLoading\n }\n}\n\nexport function createExisting(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (props: any) => {\n const response: any = await Client.object.createExisting(props)\n\n return response\n }, options)\n\n return {\n mutate,\n createExisting: mutate,\n createExistingObject: mutate,\n isLoading\n }\n}\n\nexport function removeExisting(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (props: any) => {\n const response: any = await Client.object.removeExisting(props)\n\n return response\n }, options)\n\n return {\n mutate,\n removeExisting: mutate,\n removeExistingObject: mutate,\n isLoading\n }\n}\n\nexport function details(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.details(payload)\n\n return response\n }, options)\n\n return {\n mutate,\n getDetails: mutate,\n getObjectsDetails: mutate,\n isLoading\n }\n}\n\nexport function update(options?: MutationOptions<any, any>) {\n const { updateTablePrependData } = tableActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.update(payload)\n\n return updateTablePrependData(response, payload)\n }, options)\n\n return {\n mutate,\n updateDetails: mutate,\n updateObjectsDetails: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { actions as noteActions } from '../../../state/crm/use-note'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { setNotes } = noteActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.note.list(payload)\n\n setNotes(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getNotes: mutate,\n isLoading\n }\n}\n\nexport function create(options?: MutationOptions<any, any>) {\n const { setPrependNote, clearLatestPrependNote } = noteActions\n\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n await setPrependNote('loading')\n const response: any = await Client.note.create(props)\n await setPrependNote(response)\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n clearLatestPrependNote()\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n create: mutate,\n createNote: mutate,\n isLoading\n }\n}\n\nexport function update(options?: MutationOptions<any, any>) {\n const { updatePrependNote } = noteActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n // let params: any = makeParam()\n // let mParams: any = { cache: !!params?.cache, isPrimaryCompany: params?.isPrimaryCompany, limit: params?.limit || 5 }\n\n // if (getAuthSubscriptionType() === 'FREE') {\n // mParams.after = params?.after || \"\";\n // } else {\n // mParams.limit = params?.limit || \"\";\n // mParams.page = params?.page || \"\";\n // }\n\n const response: any = await Client.note.update(payload)\n\n return updatePrependNote(response)\n }, options)\n\n return {\n mutate,\n update: mutate,\n updateNote: mutate,\n isLoading\n }\n}\n\n// const makeParam = () => {\n// let params: any = {};\n// const tab = filterParams(\"tabs.notes\")\n// const baseParams: any = {\n// objectId: objectId,\n// id: id,\n// portalId: portalId,\n// cache: (sync || apiSync) ? false : true,\n// isPrimaryCompany: tab?.isPrimaryCompany ? true : false,\n// };\n\n// if (getAuthSubscriptionType() === \"FREE\") {\n// params = {\n// ...baseParams,\n// ...({ after: isFristTimeLoadData && tab?.page ? tab?.page : page }),\n// };\n// } else {\n// params = {\n// ...baseParams,\n// ...({\n// limit: limit,\n// page: isFristTimeLoadData && tab?.page ? tab?.page : page,\n// }),\n// };\n// }\n// return params\n// }\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { actions as emailActions } from '../../../state/crm/use-email'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { setEmails } = emailActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.email.list(payload)\n\n setEmails(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getEmails: mutate,\n isLoading\n }\n}\n\nexport function create(options?: MutationOptions<any, any>) {\n const { setPrependEmail, clearLatestPrependEmail } = emailActions\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n await setPrependEmail('loading')\n const response: any = await Client.email.create(props)\n await setPrependEmail(response)\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n clearLatestPrependEmail()\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n create: mutate,\n createEmail: mutate,\n isLoading\n }\n}\n\nexport function update(options?: MutationOptions<any, any>) {\n const { updatePrependEmail } = emailActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.email.update(payload)\n\n return updatePrependEmail(response)\n }, options)\n\n return {\n mutate,\n update: mutate,\n updateEmail: mutate,\n isLoading\n }\n}\n\n// const makeParam = () => {\n// let params: any = {};\n// const tab = filterParams(\"tabs.notes\")\n// const baseParams: any = {\n// objectId: objectId,\n// id: id,\n// portalId: portalId,\n// cache: (sync || apiSync) ? false : true,\n// isPrimaryCompany: tab?.isPrimaryCompany ? true : false,\n// };\n\n// if (getAuthSubscriptionType() === \"FREE\") {\n// params = {\n// ...baseParams,\n// ...({ after: isFristTimeLoadData && tab?.page ? tab?.page : page }),\n// };\n// } else {\n// params = {\n// ...baseParams,\n// ...({\n// limit: limit,\n// page: isFristTimeLoadData && tab?.page ? tab?.page : page,\n// }),\n// };\n// }\n// return params\n// }\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { actions as uploaderActions } from '../../../state/crm/use-uploader'\n\nexport function imageUpload(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = payload?.type === 'email' ? await Client.email.image(payload) : await Client.note.image(payload)\n\n return response\n }, options)\n\n return {\n mutate,\n uploadImage: mutate,\n imageUpload: mutate,\n isLoading\n }\n}\n\nexport function attachmentUpload(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = payload?.type === 'email' ? await Client.email.attachment(payload) : await Client.note.attachment(payload)\n\n uploaderActions.setAttachment(response)\n\n return response\n }, options)\n\n return {\n mutate,\n uploadAttachment: mutate,\n attachmentUpload: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { actions as fileActions } from '../../../state/crm/use-file'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { setFiles } = fileActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.file.list(payload)\n\n setFiles(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getFiles: mutate,\n isLoading\n }\n}\n\nexport function details(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.file.details(payload)\n\n return response\n }, options)\n\n return {\n mutate,\n getDetails: mutate,\n getFile: mutate,\n isLoading\n }\n}\n\nexport function addFolder(options?: MutationOptions<any, any>) {\n const { updateTreeWithCreate, clearLatestTreeLoadingNode } = fileActions\n\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n const parentFolderId = props?.queryParams?.parentFolderId\n await updateTreeWithCreate(parentFolderId, 'loading')\n const response: any = await Client.file.addFolder(props)\n await updateTreeWithCreate(parentFolderId, response, 'folder')\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n clearLatestTreeLoadingNode(payload?.queryParams?.parentFolderId)\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n addFolder: mutate,\n isLoading\n }\n}\n\nexport function addFile(options?: MutationOptions<any, any>) {\n const { updateTreeWithCreate, clearLatestTreeLoadingNode } = fileActions\n\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n const parentFolderId = props?.queryParams?.parentFolderId\n await updateTreeWithCreate(parentFolderId, 'loading')\n const response: any = await Client.file.addFile(props)\n await updateTreeWithCreate(parentFolderId, response, 'file')\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n clearLatestTreeLoadingNode(payload?.queryParams?.parentFolderId)\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n addFile: mutate,\n isLoading\n }\n}\n\nexport function download(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.file.download(payload)\n return response\n }, options)\n\n return {\n mutate,\n download: mutate,\n downloadFile: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\n\n/** Soft refresh CRM list cache (prefer over GET cache=false when purge API is enabled). */\nexport function purge(options?: MutationOptions<unknown, unknown>) {\n const { mutate, isLoading } = createMutation<Record<string, unknown>, unknown>(async (payload?: Record<string, unknown>) => {\n const safePayload = payload ?? {}\n const idempotencyKey = typeof safePayload.idempotencyKey === 'string' ? safePayload.idempotencyKey : undefined\n const headers = idempotencyKey ? { 'Idempotency-Key': idempotencyKey } : undefined\n const { idempotencyKey: _ignored, ...body } = safePayload\n return Client.cache.purge(body, headers)\n }, options)\n\n return { mutate, purge: mutate, purgeCache: mutate, isLoading }\n}\n\nexport function purgeStatus(purgeJobId: string, options?: MutationOptions<unknown, unknown>) {\n const { mutate, isLoading } = createMutation<string, unknown>(async (jobId?: string) => Client.cache.purgeStatus(jobId ?? purgeJobId), options)\n\n return {\n mutate,\n getPurgeStatus: mutate,\n isLoading\n }\n}\n","import { list as pipelinesList } from '../features/crm/api/pipeline'\nimport { list as stagesList } from '../features/crm/api/stage'\nimport {\n list as objectsList,\n existingList as objectsExistingList,\n sideBarList as objectsListSidebar,\n form as objectsGetForm,\n create as objectsCreate,\n createExisting as objectsCreateExisting,\n removeExisting as objectsRemoveExisting,\n details as objectsGetDetails,\n update as objectsUpdateDetails,\n objectFormOptions as objectsGetFormOptions\n} from '../features/crm/api/object'\nimport { list as notesList, create as notesCreate, update as notesUpdate } from '../features/crm/api/note'\nimport { list as emailsList, create as emailsCreate, update as emailsUpdate } from '../features/crm/api/email'\nimport { imageUpload, attachmentUpload } from '../features/crm/api/uploader'\nimport { list as filesList, addFolder, addFile, details as filesGetDetails, download as filesDownload } from '../features/crm/api/file'\nimport { purge as cachePurge, purgeStatus as cacheGetPurgeStatus } from '../features/crm/api/cache'\n\n/** Canonical nested CRM API (SDK 3.0). */\nexport const crmApi = {\n pipelines: { list: pipelinesList },\n stages: { list: stagesList },\n objects: {\n list: objectsList,\n existingList: objectsExistingList,\n listSidebar: objectsListSidebar,\n getForm: objectsGetForm,\n getFormOptions: objectsGetFormOptions,\n getDetails: objectsGetDetails,\n updateDetails: objectsUpdateDetails,\n create: objectsCreate,\n createExisting: objectsCreateExisting,\n removeExisting: objectsRemoveExisting\n },\n notes: {\n list: notesList,\n create: notesCreate,\n update: notesUpdate\n },\n emails: {\n list: emailsList,\n create: emailsCreate,\n update: emailsUpdate\n },\n files: {\n list: filesList,\n getDetails: filesGetDetails,\n download: filesDownload,\n addFolder,\n addFile\n },\n uploads: {\n uploadImage: imageUpload,\n uploadAttachment: attachmentUpload\n },\n cache: {\n purge: cachePurge,\n getPurgeStatus: cacheGetPurgeStatus\n }\n}\n","import { isPipelineBoardObjectTypeId } from './hubspot-object-type-ids'\n\nexport function isPipelineBoardObjectType(objectTypeId: string | undefined | null): boolean {\n return isPipelineBoardObjectTypeId(objectTypeId)\n}\n\n/** LIST/BOARD toggle and board rendering — same object set as single-pipeline hide rule. */\nexport function supportsBoardView(objectTypeId: string | undefined | null): boolean {\n return isPipelineBoardObjectTypeId(objectTypeId)\n}\n\n/**\n * Whether to render the pipeline dropdown in the table header.\n * Board objects: hide when only one pipeline (auto-selected). Others: show when any pipeline exists.\n */\nexport function shouldShowPipelineSelector(objectTypeId: string | undefined | null, pipelineCount: number): boolean {\n if (pipelineCount <= 0) {\n return false\n }\n if (isPipelineBoardObjectTypeId(objectTypeId)) {\n return pipelineCount > 1\n }\n return pipelineCount > 0\n}\n"]}
@@ -1,11 +1,11 @@
1
- export { applyCrossTabSessionRevocation, installCrossTabSessionListener, resetCrossTabSessionSyncForTests, signalSessionChanged } from './chunk-POWLSRWC.js';
1
+ export { applyCrossTabSessionRevocation, installCrossTabSessionListener, resetCrossTabSessionSyncForTests, signalSessionChanged } from './chunk-JHJGYIPC.js';
2
2
  import './chunk-55MIERLJ.js';
3
- import './chunk-5JFESDQH.js';
4
- import './chunk-YEFSBGK2.js';
3
+ import './chunk-FZMDGSOP.js';
4
+ import './chunk-OXPA3PYS.js';
5
5
  import './chunk-TH2E4MXG.js';
6
6
  import './chunk-KPHAQNS2.js';
7
7
  import './chunk-DB6W3CJT.js';
8
8
  import './chunk-UDAPRD7Z.js';
9
9
  import './chunk-COHBSTHF.js';
10
- //# sourceMappingURL=cross-tab-session-I2FKYSBE.js.map
11
- //# sourceMappingURL=cross-tab-session-I2FKYSBE.js.map
10
+ //# sourceMappingURL=cross-tab-session-AH27QKXW.js.map
11
+ //# sourceMappingURL=cross-tab-session-AH27QKXW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"cross-tab-session-I2FKYSBE.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"cross-tab-session-AH27QKXW.js"}
@@ -1,6 +1,6 @@
1
- import { p as preLogin, l as login, c as clientSession, h as handoff, a as logout, r as register, v as verifyEmail, b as registerExistingUser, f as forgetPassword, d as verifyForgotPasswordOtp, e as resetPassword, g as resetPasswordVerifyToken, i as verifyEmailResend, j as resendEmail, k as changePassword, m as me, n as profile, o as profileUpdate, q as verifyOtp, s as sendMfaOtp, t as pendingPasskeyOptions, u as pendingPasskeyVerify, w as getMfaStatus, x as setMfaPreferences, y as startPhoneVerify, z as confirmPhoneVerify, A as totpEnrollStart, B as totpEnrollVerify, C as totpDisable, D as phoneUnverify, E as backupCodesRegenerate, F as mfaOptOut, G as webauthnRegisterOptions, H as webauthnRegisterVerify, I as webauthnAuthOptions, J as webauthnAuthVerify, K as listWebauthnCredentials, L as deleteWebauthnCredential, M as passkeyLoginOptions, N as passkeyLoginVerify, O as getSecurityOverview, P as getSecurityLoginActivity, Q as getSecuritySessions, R as revokeSecuritySession, S as revokeOtherSecuritySessions, T as getLoginBootstrap, U as getSsoDetails, V as generateSsoUrl, W as ssoCallback, X as getRefreshToken, Y as refreshSession, Z as getAuthRefreshToken, _ as getAccessToken, $ as setAccessToken, a0 as clearAccessToken, a1 as isAuthenticated, a2 as isAuthenticateApp, a3 as isAccessTokenExpired, a4 as isExpiresAccessToken, a5 as hasRefreshSession, a6 as hasValidAccessToken, a7 as didLastRefreshFail, a8 as isSessionRefreshExhausted, a9 as isRefreshInFlight, aa as resetSessionAuthState, ab as clearSessionRefreshExhaustedState, ac as hydrateSessionRefreshState, ad as SessionContractInput } from '../route-guard-contract-KaQaafb7.js';
2
- export { ae as API_ERROR_CATEGORY_FALLBACK, af as API_ERROR_DISPLAY_CONFIG, ag as ActiveSession, ah as ApiErrorDisplayConfig, ai as ApiErrorPayload, aj as ApiErrorVariant, ak as AuthErrorAction, al as AuthErrorCode, am as AuthErrorCodeValue, an as AuthFunnelState, ao as AuthInterceptorPolicyConfig, ap as AuthPolicyRoutes, aq as AuthRouteAction, ar as EditorPreviewMockHandler, as as EditorPreviewMockResult, at as HttpClientConfig, au as HttpErrorKind, av as HydrateMfaPendingAccessTokenInput, aw as LoginBootstrapMfaPolicy, ax as LoginBootstrapPortal, ay as LoginBootstrapResponse, az as LoginBootstrapSsoProvider, aA as LoginHistoryRow, aB as LoginResponseData, aC as MfaBootRecoveryResult, aD as MfaEnrollmentStatus, aE as MfaMethod, aF as MfaMethodOption, aG as MfaPendingAccessToken, aH as MfaPortalScopeContext, aI as MfaStorageLane, aJ as PaginationResponse, aK as ResolveApiErrorDisplayOptions, aL as ResolvedApiErrorDisplay, aM as SERVICE_UNAVAILABLE_MESSAGE, aN as SecurityOverview, aO as SessionRefreshDeferredError, aP as SessionRefreshFailedError, aQ as StoredAuthError, aR as TwoFaVerificationRequest, aS as UnauthorizedPageCopy, aT as WOODSPORTAL_API_ACTIVE_ERROR_CODES, aU as WoodsportalRequestConfig, aV as buildErrorDescription, aW as classifyHttpError, aX as clearMfaPendingAccessToken, aY as getApiErrorFromUnknown, aZ as getFieldErrors, a_ as getFormErrors, a$ as getHttpErrorMessage, b0 as getUnauthorizedPageCopy, b1 as hasAuthenticatedAccess, b2 as hasValidAccess, b3 as hydrateMfaPendingAccessToken, b4 as initializeHttpClient, b5 as isFullyAuthenticated, b6 as isMfaPendingAccessSession, b7 as isMfaPendingSession, b8 as isOptionalAuthFailureUrl, b9 as isServiceUnavailableError, ba as isSessionProbeUrl, bb as isSessionRefreshDeferredError, bc as isSessionRefreshFailedError, bd as parseApiErrorPayload, be as persistAuthError, bf as readMfaPendingAccessToken, bg as readPersistedAuthError, bh as recoverMfaGateOnBoot, bi as resolveApiErrorDisplay, bj as resolveAuthErrorAction, bk as resolveAuthRouteAction, bl as setEditorPreviewMockHandler, bm as setSessionLifecycleListener, bn as startVisibilityRefreshScheduler, bo as stopVisibilityRefreshScheduler, bp as storeMfaPendingAccessToken } from '../route-guard-contract-KaQaafb7.js';
3
- export { C as ChangePasswordPayload, F as ForgetPasswordPayload, L as LoginPayload, P as PreLoginPayload, R as ResetPasswordPayload, a as ResetPasswordVerifyTokenPayload, V as VerifyEmailPayload } from '../index-B-IGDI9L.js';
1
+ import { p as preLogin, l as login, c as clientSession, h as handoff, a as logout, r as register, v as verifyEmail, b as registerExistingUser, f as forgetPassword, d as verifyForgotPasswordOtp, e as resetPassword, g as resetPasswordVerifyToken, i as verifyEmailResend, j as resendEmail, s as signInLinkSend, k as signInLinkVerify, m as signInLinkValidateToken, n as changePassword, o as me, q as profile, t as profileUpdate, u as verifyOtp, w as sendMfaOtp, x as pendingPasskeyOptions, y as pendingPasskeyVerify, z as getMfaStatus, A as setMfaPreferences, B as startPhoneVerify, C as confirmPhoneVerify, D as totpEnrollStart, E as totpEnrollVerify, F as totpDisable, G as phoneUnverify, H as backupCodesRegenerate, I as mfaOptOut, J as webauthnRegisterOptions, K as webauthnRegisterVerify, L as webauthnAuthOptions, M as webauthnAuthVerify, N as listWebauthnCredentials, O as deleteWebauthnCredential, P as passkeyLoginOptions, Q as passkeyLoginVerify, R as getSecurityOverview, S as getSecurityLoginActivity, T as getSecuritySessions, U as revokeSecuritySession, V as revokeOtherSecuritySessions, W as getLoginBootstrap, X as getSsoDetails, Y as generateSsoUrl, Z as ssoCallback, _ as getRefreshToken, $ as refreshSession, a0 as getAuthRefreshToken, a1 as getAccessToken, a2 as setAccessToken, a3 as clearAccessToken, a4 as isAuthenticated, a5 as isAuthenticateApp, a6 as isAccessTokenExpired, a7 as isExpiresAccessToken, a8 as hasRefreshSession, a9 as hasValidAccessToken, aa as didLastRefreshFail, ab as isSessionRefreshExhausted, ac as isRefreshInFlight, ad as resetSessionAuthState, ae as clearSessionRefreshExhaustedState, af as hydrateSessionRefreshState, ag as SessionContractInput } from '../route-guard-contract-BXNkJFf2.js';
2
+ export { ah as API_ERROR_CATEGORY_FALLBACK, ai as API_ERROR_DISPLAY_CONFIG, aj as ActiveSession, ak as ApiErrorDisplayConfig, al as ApiErrorPayload, am as ApiErrorVariant, an as AuthErrorAction, ao as AuthErrorCode, ap as AuthErrorCodeValue, aq as AuthFunnelState, ar as AuthInterceptorPolicyConfig, as as AuthPolicyRoutes, at as AuthRouteAction, au as EditorPreviewMockHandler, av as EditorPreviewMockResult, aw as HttpClientConfig, ax as HttpErrorKind, ay as HydrateMfaPendingAccessTokenInput, az as LoginBootstrapMfaPolicy, aA as LoginBootstrapPortal, aB as LoginBootstrapResponse, aC as LoginBootstrapSsoProvider, aD as LoginHistoryRow, aE as LoginResponseData, aF as MfaBootRecoveryResult, aG as MfaEnrollmentStatus, aH as MfaMethod, aI as MfaMethodOption, aJ as MfaPendingAccessToken, aK as MfaPortalScopeContext, aL as MfaStorageLane, aM as PaginationResponse, aN as ResolveApiErrorDisplayOptions, aO as ResolvedApiErrorDisplay, aP as SERVICE_UNAVAILABLE_MESSAGE, aQ as SecurityOverview, aR as SessionRefreshDeferredError, aS as SessionRefreshFailedError, aT as StoredAuthError, aU as TwoFaVerificationRequest, aV as UnauthorizedPageCopy, aW as WOODSPORTAL_API_ACTIVE_ERROR_CODES, aX as WoodsportalRequestConfig, aY as buildErrorDescription, aZ as classifyHttpError, a_ as clearMfaPendingAccessToken, a$ as getApiErrorFromUnknown, b0 as getFieldErrors, b1 as getFormErrors, b2 as getHttpErrorMessage, b3 as getUnauthorizedPageCopy, b4 as hasAuthenticatedAccess, b5 as hasValidAccess, b6 as hydrateMfaPendingAccessToken, b7 as initializeHttpClient, b8 as isFullyAuthenticated, b9 as isMfaPendingAccessSession, ba as isMfaPendingSession, bb as isOptionalAuthFailureUrl, bc as isServiceUnavailableError, bd as isSessionProbeUrl, be as isSessionRefreshDeferredError, bf as isSessionRefreshFailedError, bg as parseApiErrorPayload, bh as persistAuthError, bi as readMfaPendingAccessToken, bj as readPersistedAuthError, bk as recoverMfaGateOnBoot, bl as resolveApiErrorDisplay, bm as resolveAuthErrorAction, bn as resolveAuthRouteAction, bo as setEditorPreviewMockHandler, bp as setSessionLifecycleListener, bq as startVisibilityRefreshScheduler, br as stopVisibilityRefreshScheduler, bs as storeMfaPendingAccessToken } from '../route-guard-contract-BXNkJFf2.js';
3
+ export { C as ChangePasswordPayload, F as ForgetPasswordPayload, L as LoginPayload, P as PreLoginPayload, R as ResetPasswordPayload, a as ResetPasswordVerifyTokenPayload, V as VerifyEmailPayload } from '../index-CWYPrDBp.js';
4
4
  import 'axios';
5
5
 
6
6
  declare const api: {
@@ -19,6 +19,11 @@ declare const api: {
19
19
  resetPasswordVerifyToken: typeof resetPasswordVerifyToken;
20
20
  verifyEmailResend: typeof verifyEmailResend;
21
21
  resendEmail: typeof resendEmail;
22
+ signInLink: {
23
+ send: typeof signInLinkSend;
24
+ verify: typeof signInLinkVerify;
25
+ validateToken: typeof signInLinkValidateToken;
26
+ };
22
27
  changePassword: typeof changePassword;
23
28
  me: typeof me;
24
29
  profile: typeof profile;
@@ -38,7 +43,6 @@ declare const api: {
38
43
  phoneUnverify: typeof phoneUnverify;
39
44
  backupCodesRegenerate: typeof backupCodesRegenerate;
40
45
  optOut: typeof mfaOptOut;
41
- mfaOptOut: typeof mfaOptOut;
42
46
  webauthnRegisterOptions: typeof webauthnRegisterOptions;
43
47
  webauthnRegisterVerify: typeof webauthnRegisterVerify;
44
48
  webauthnAuthOptions: typeof webauthnAuthOptions;
@@ -1,8 +1,8 @@
1
- import { authApi } from '../chunk-PLY23VRX.js';
2
- export { API_ERROR_CATEGORY_FALLBACK, API_ERROR_DISPLAY_CONFIG, WOODSPORTAL_API_ACTIVE_ERROR_CODES, buildErrorDescription, getApiErrorFromUnknown, hasAuthenticatedAccess, hasValidAccess, isFullyAuthenticated, isMfaPendingSession, recoverMfaGateOnBoot, resolveApiErrorDisplay, resolveAuthRouteAction } from '../chunk-PLY23VRX.js';
1
+ import { authApi } from '../chunk-5IQC6UHI.js';
2
+ export { API_ERROR_CATEGORY_FALLBACK, API_ERROR_DISPLAY_CONFIG, WOODSPORTAL_API_ACTIVE_ERROR_CODES, buildErrorDescription, getApiErrorFromUnknown, hasAuthenticatedAccess, hasValidAccess, isFullyAuthenticated, isMfaPendingSession, recoverMfaGateOnBoot, resolveApiErrorDisplay, resolveAuthRouteAction } from '../chunk-5IQC6UHI.js';
3
3
  export { isOptionalAuthFailureUrl, isSessionProbeUrl, persistAuthError, readPersistedAuthError, resolveAuthErrorAction } from '../chunk-JG3TEXWP.js';
4
- export { getFieldErrors, getFormErrors, initializeHttpClient, setEditorPreviewMockHandler, startVisibilityRefreshScheduler, stopVisibilityRefreshScheduler } from '../chunk-K6LWWPXZ.js';
5
- import '../chunk-YEFSBGK2.js';
4
+ export { getFieldErrors, getFormErrors, initializeHttpClient, setEditorPreviewMockHandler, startVisibilityRefreshScheduler, stopVisibilityRefreshScheduler } from '../chunk-DZF5LIXW.js';
5
+ import '../chunk-OXPA3PYS.js';
6
6
  export { SERVICE_UNAVAILABLE_MESSAGE, SessionRefreshDeferredError, SessionRefreshFailedError, classifyHttpError, clearMfaPendingAccessToken, getHttpErrorMessage, hydrateMfaPendingAccessToken, isMfaPendingAccessSession, isServiceUnavailableError, isSessionRefreshDeferredError, isSessionRefreshFailedError, readMfaPendingAccessToken, setSessionLifecycleListener, storeMfaPendingAccessToken } from '../chunk-TH2E4MXG.js';
7
7
  import '../chunk-KPHAQNS2.js';
8
8
  import '../chunk-DB6W3CJT.js';
@@ -1,7 +1,7 @@
1
1
  import { a as TableUiState, T as TableState, U as UserState, N as NoteState, E as EmailState, S as SyncState } from '../use-sync-Bc3XBQBA.js';
2
- import { l as list, a as list$1, b as list$2, s as sideBarList, f as form, o as objectFormOptions, d as details, u as update, c as create, e as createExisting, r as removeExisting, g as list$3, h as create$1, i as update$1, j as list$4, k as create$2, m as update$2, n as list$5, p as details$1, q as download, t as addFolder, v as addFile, w as imageUpload, x as attachmentUpload, y as purge, z as purgeStatus } from '../cache-purge-rOALAcjJ.js';
3
- export { C as CachePurgeDomain, A as CachePurgeListQuery, B as CachePurgeMode, D as CachePurgeRequest, E as CachePurgeTarget, F as CachePurgeView, G as CreateCachePurgeJobOptions, H as CrmCachePurgeOptions, I as HUBSPOT_DEALS_OBJECT_TYPE_ID, J as HUBSPOT_TICKETS_OBJECT_TYPE_ID, P as PIPELINE_BOARD_OBJECT_TYPE_IDS, K as PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS, L as PurgeResult, M as isPipelineBoardObjectType, N as isPipelineBoardObjectTypeId, O as shouldShowPipelineSelector, Q as supportsBoardView } from '../cache-purge-rOALAcjJ.js';
4
- import '../index-B-IGDI9L.js';
2
+ import { l as list, a as list$1, b as list$2, e as existingList, s as sideBarList, f as form, o as objectFormOptions, d as details, u as update, c as create, g as createExisting, r as removeExisting, h as list$3, i as create$1, j as update$1, k as list$4, m as create$2, n as update$2, p as list$5, q as details$1, t as download, v as addFolder, w as addFile, x as imageUpload, y as attachmentUpload, z as purge, A as purgeStatus } from '../cache-purge-h90c5Dpm.js';
3
+ export { C as CachePurgeDomain, B as CachePurgeListQuery, D as CachePurgeMode, E as CachePurgeRequest, F as CachePurgeTarget, G as CachePurgeView, H as CreateCachePurgeJobOptions, I as CrmCachePurgeOptions, J as HUBSPOT_DEALS_OBJECT_TYPE_ID, K as HUBSPOT_TICKETS_OBJECT_TYPE_ID, P as PIPELINE_BOARD_OBJECT_TYPE_IDS, L as PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS, M as PurgeResult, N as isPipelineBoardObjectType, O as isPipelineBoardObjectTypeId, Q as shouldShowPipelineSelector, R as supportsBoardView } from '../cache-purge-h90c5Dpm.js';
4
+ import '../index-CWYPrDBp.js';
5
5
 
6
6
  declare const api: {
7
7
  crm: {
@@ -13,6 +13,7 @@ declare const api: {
13
13
  };
14
14
  objects: {
15
15
  list: typeof list$2;
16
+ existingList: typeof existingList;
16
17
  listSidebar: typeof sideBarList;
17
18
  getForm: typeof form;
18
19
  getFormOptions: typeof objectFormOptions;
@@ -1,10 +1,10 @@
1
- import { crmApi } from '../chunk-2ZHONRVH.js';
2
- export { isPipelineBoardObjectType, shouldShowPipelineSelector, supportsBoardView } from '../chunk-2ZHONRVH.js';
1
+ import { crmApi } from '../chunk-UR6J7NHR.js';
2
+ export { isPipelineBoardObjectType, shouldShowPipelineSelector, supportsBoardView } from '../chunk-UR6J7NHR.js';
3
3
  import '../chunk-55MIERLJ.js';
4
- import { navigationApi } from '../chunk-K6LWWPXZ.js';
5
- import '../chunk-5JFESDQH.js';
6
- import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore } from '../chunk-YEFSBGK2.js';
7
- export { HUBSPOT_DEALS_OBJECT_TYPE_ID, HUBSPOT_TICKETS_OBJECT_TYPE_ID, PIPELINE_BOARD_OBJECT_TYPE_IDS, PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS, isPipelineBoardObjectTypeId } from '../chunk-YEFSBGK2.js';
4
+ import { navigationApi } from '../chunk-DZF5LIXW.js';
5
+ import '../chunk-FZMDGSOP.js';
6
+ import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore } from '../chunk-OXPA3PYS.js';
7
+ export { HUBSPOT_DEALS_OBJECT_TYPE_ID, HUBSPOT_TICKETS_OBJECT_TYPE_ID, PIPELINE_BOARD_OBJECT_TYPE_IDS, PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS, isPipelineBoardObjectTypeId } from '../chunk-OXPA3PYS.js';
8
8
  import { storage } from '../chunk-TH2E4MXG.js';
9
9
  import '../chunk-KPHAQNS2.js';
10
10
  import '../chunk-DB6W3CJT.js';
@@ -42,10 +42,15 @@ interface ForgetPasswordOtpVerifyResponse {
42
42
  interface ForgetPasswordPayload {
43
43
  email: string;
44
44
  }
45
+ interface SignInLinkSendPayload {
46
+ email: string;
47
+ hubId?: number;
48
+ portalId?: number;
49
+ }
45
50
  interface ChangePasswordPayload {
46
51
  currentPassword: string;
47
52
  newPassword: string;
48
53
  confirmPassword: string;
49
54
  }
50
55
 
51
- export type { ChangePasswordPayload as C, ForgetPasswordPayload as F, LoginPayload as L, MutationOptions as M, PreLoginPayload as P, ResetPasswordPayload as R, VerifyEmailPayload as V, ResetPasswordVerifyTokenPayload as a, ForgetPasswordOtpVerifyPayload as b, Config as c, ForgetPasswordOtpVerifyResponse as d };
56
+ export type { ChangePasswordPayload as C, ForgetPasswordPayload as F, LoginPayload as L, MutationOptions as M, PreLoginPayload as P, ResetPasswordPayload as R, SignInLinkSendPayload as S, VerifyEmailPayload as V, ResetPasswordVerifyTokenPayload as a, ForgetPasswordOtpVerifyPayload as b, Config as c, ForgetPasswordOtpVerifyResponse as d };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { a as TableUiState, T as TableState, U as UserState, N as NoteState, E as EmailState, S as SyncState } from './use-sync-Bc3XBQBA.js';
2
- import { l as list, a as list$1, b as list$2, s as sideBarList, f as form, o as objectFormOptions, d as details, u as update, c as create, e as createExisting, r as removeExisting, g as list$3, h as create$1, i as update$1, j as list$4, k as create$2, m as update$2, n as list$5, p as details$1, q as download, t as addFolder, v as addFile, w as imageUpload, x as attachmentUpload, y as purge, z as purgeStatus, E as CachePurgeTarget, D as CachePurgeRequest, A as CachePurgeListQuery, F as CachePurgeView, G as CreateCachePurgeJobOptions, L as PurgeResult, H as CrmCachePurgeOptions } from './cache-purge-rOALAcjJ.js';
3
- export { C as CachePurgeDomain, B as CachePurgeMode, I as HUBSPOT_DEALS_OBJECT_TYPE_ID, J as HUBSPOT_TICKETS_OBJECT_TYPE_ID, P as PIPELINE_BOARD_OBJECT_TYPE_IDS, K as PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS, M as isPipelineBoardObjectType, N as isPipelineBoardObjectTypeId, O as shouldShowPipelineSelector, Q as supportsBoardView } from './cache-purge-rOALAcjJ.js';
4
- import { aL as ResolvedApiErrorDisplay, bq as ApiContentVariant, br as ApiErrorSeverity, aK as ResolveApiErrorDisplayOptions, p as preLogin, l as login, c as clientSession, h as handoff, a as logout, r as register, v as verifyEmail, b as registerExistingUser, f as forgetPassword, d as verifyForgotPasswordOtp, e as resetPassword, g as resetPasswordVerifyToken, i as verifyEmailResend, j as resendEmail, k as changePassword, m as me, n as profile, o as profileUpdate, q as verifyOtp, s as sendMfaOtp, t as pendingPasskeyOptions, u as pendingPasskeyVerify, w as getMfaStatus, x as setMfaPreferences, y as startPhoneVerify, z as confirmPhoneVerify, A as totpEnrollStart, B as totpEnrollVerify, C as totpDisable, D as phoneUnverify, E as backupCodesRegenerate, F as mfaOptOut, G as webauthnRegisterOptions, H as webauthnRegisterVerify, I as webauthnAuthOptions, J as webauthnAuthVerify, K as listWebauthnCredentials, L as deleteWebauthnCredential, M as passkeyLoginOptions, N as passkeyLoginVerify, O as getSecurityOverview, P as getSecurityLoginActivity, Q as getSecuritySessions, R as revokeSecuritySession, S as revokeOtherSecuritySessions, T as getLoginBootstrap, U as getSsoDetails, V as generateSsoUrl, W as ssoCallback, X as getRefreshToken, Y as refreshSession, Z as getAuthRefreshToken, _ as getAccessToken, $ as setAccessToken, a0 as clearAccessToken, a1 as isAuthenticated, a2 as isAuthenticateApp, a3 as isAccessTokenExpired, a4 as isExpiresAccessToken, a5 as hasRefreshSession, a6 as hasValidAccessToken, a7 as didLastRefreshFail, a8 as isSessionRefreshExhausted, a9 as isRefreshInFlight, aa as resetSessionAuthState, ab as clearSessionRefreshExhaustedState, ac as hydrateSessionRefreshState, ad as SessionContractInput, at as HttpClientConfig, bs as LoggerConfig, aR as TwoFaVerificationRequest, bt as MfaOtpSendRequest, bu as MfaPendingPasskeyOptionsRequest, bv as MfaPendingPasskeyVerifyRequest, bw as MfaStatusQuery, bx as MfaPreferenceRequest, by as PhoneVerifyStartRequest, bz as PhoneVerifyConfirmRequest, bA as TotpEnrollVerifyRequest, bB as TotpDisableRequest, bC as PhoneUnverifyRequest, bD as BackupCodesRegenerateRequest, bE as MfaBackupCodesResponse, bF as MfaOptOutRequest, bG as WebAuthnVerifyRequest, bH as PasskeyLoginOptionsRequest, bI as PasskeyLoginVerifyRequest, bJ as SecurityOverviewQuery, bK as SecurityLoginActivityQuery, bL as SecuritySessionsQuery, bM as RevokeSecuritySessionPayload } from './route-guard-contract-KaQaafb7.js';
5
- export { ae as API_ERROR_CATEGORY_FALLBACK, af as API_ERROR_DISPLAY_CONFIG, ag as ActiveSession, ah as ApiErrorDisplayConfig, ai as ApiErrorPayload, aj as ApiErrorVariant, ak as AuthErrorAction, al as AuthErrorCode, am as AuthErrorCodeValue, an as AuthFunnelState, ao as AuthInterceptorPolicyConfig, ap as AuthPolicyRoutes, aq as AuthRouteAction, au as HttpErrorKind, av as HydrateMfaPendingAccessTokenInput, bN as LogLevel, bO as LogMeta, aA as LoginHistoryRow, aB as LoginResponseData, aC as MfaBootRecoveryResult, aD as MfaEnrollmentStatus, aE as MfaMethod, aF as MfaMethodOption, aG as MfaPendingAccessToken, aH as MfaPortalScopeContext, aI as MfaStorageLane, aJ as PaginationResponse, aM as SERVICE_UNAVAILABLE_MESSAGE, aN as SecurityOverview, aO as SessionRefreshDeferredError, aP as SessionRefreshFailedError, bP as StorageKeyConfig, aQ as StoredAuthError, aS as UnauthorizedPageCopy, aT as WOODSPORTAL_API_ACTIVE_ERROR_CODES, aU as WoodsportalRequestConfig, aV as buildErrorDescription, aW as classifyHttpError, aX as clearMfaPendingAccessToken, bQ as configureStorageKeys, aY as getApiErrorFromUnknown, aZ as getFieldErrors, a_ as getFormErrors, a$ as getHttpErrorMessage, bR as getStorageKeys, b0 as getUnauthorizedPageCopy, b1 as hasAuthenticatedAccess, b2 as hasValidAccess, b3 as hydrateMfaPendingAccessToken, b4 as initializeHttpClient, b5 as isFullyAuthenticated, b6 as isMfaPendingAccessSession, b7 as isMfaPendingSession, b8 as isOptionalAuthFailureUrl, b9 as isServiceUnavailableError, ba as isSessionProbeUrl, bb as isSessionRefreshDeferredError, bc as isSessionRefreshFailedError, bd as parseApiErrorPayload, be as persistAuthError, bf as readMfaPendingAccessToken, bg as readPersistedAuthError, bh as recoverMfaGateOnBoot, bS as resetStorageKeysForTests, bi as resolveApiErrorDisplay, bj as resolveAuthErrorAction, bk as resolveAuthRouteAction, bm as setSessionLifecycleListener, bn as startVisibilityRefreshScheduler, bo as stopVisibilityRefreshScheduler, bp as storeMfaPendingAccessToken } from './route-guard-contract-KaQaafb7.js';
6
- import { P as PreLoginPayload, L as LoginPayload, V as VerifyEmailPayload, a as ResetPasswordVerifyTokenPayload, R as ResetPasswordPayload, F as ForgetPasswordPayload, b as ForgetPasswordOtpVerifyPayload, C as ChangePasswordPayload } from './index-B-IGDI9L.js';
7
- export { c as Config, M as MutationOptions } from './index-B-IGDI9L.js';
2
+ import { l as list, a as list$1, b as list$2, e as existingList, s as sideBarList, f as form, o as objectFormOptions, d as details, u as update, c as create, g as createExisting, r as removeExisting, h as list$3, i as create$1, j as update$1, k as list$4, m as create$2, n as update$2, p as list$5, q as details$1, t as download, v as addFolder, w as addFile, x as imageUpload, y as attachmentUpload, z as purge, A as purgeStatus, F as CachePurgeTarget, E as CachePurgeRequest, B as CachePurgeListQuery, G as CachePurgeView, H as CreateCachePurgeJobOptions, M as PurgeResult, I as CrmCachePurgeOptions } from './cache-purge-h90c5Dpm.js';
3
+ export { C as CachePurgeDomain, D as CachePurgeMode, J as HUBSPOT_DEALS_OBJECT_TYPE_ID, K as HUBSPOT_TICKETS_OBJECT_TYPE_ID, P as PIPELINE_BOARD_OBJECT_TYPE_IDS, L as PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS, N as isPipelineBoardObjectType, O as isPipelineBoardObjectTypeId, Q as shouldShowPipelineSelector, R as supportsBoardView } from './cache-purge-h90c5Dpm.js';
4
+ import { aO as ResolvedApiErrorDisplay, bt as ApiContentVariant, bu as ApiErrorSeverity, aN as ResolveApiErrorDisplayOptions, p as preLogin, l as login, c as clientSession, h as handoff, a as logout, r as register, v as verifyEmail, b as registerExistingUser, f as forgetPassword, d as verifyForgotPasswordOtp, e as resetPassword, g as resetPasswordVerifyToken, i as verifyEmailResend, j as resendEmail, s as signInLinkSend, k as signInLinkVerify, m as signInLinkValidateToken, n as changePassword, o as me, q as profile, t as profileUpdate, u as verifyOtp, w as sendMfaOtp, x as pendingPasskeyOptions, y as pendingPasskeyVerify, z as getMfaStatus, A as setMfaPreferences, B as startPhoneVerify, C as confirmPhoneVerify, D as totpEnrollStart, E as totpEnrollVerify, F as totpDisable, G as phoneUnverify, H as backupCodesRegenerate, I as mfaOptOut, J as webauthnRegisterOptions, K as webauthnRegisterVerify, L as webauthnAuthOptions, M as webauthnAuthVerify, N as listWebauthnCredentials, O as deleteWebauthnCredential, P as passkeyLoginOptions, Q as passkeyLoginVerify, R as getSecurityOverview, S as getSecurityLoginActivity, T as getSecuritySessions, U as revokeSecuritySession, V as revokeOtherSecuritySessions, W as getLoginBootstrap, X as getSsoDetails, Y as generateSsoUrl, Z as ssoCallback, _ as getRefreshToken, $ as refreshSession, a0 as getAuthRefreshToken, a1 as getAccessToken, a2 as setAccessToken, a3 as clearAccessToken, a4 as isAuthenticated, a5 as isAuthenticateApp, a6 as isAccessTokenExpired, a7 as isExpiresAccessToken, a8 as hasRefreshSession, a9 as hasValidAccessToken, aa as didLastRefreshFail, ab as isSessionRefreshExhausted, ac as isRefreshInFlight, ad as resetSessionAuthState, ae as clearSessionRefreshExhaustedState, af as hydrateSessionRefreshState, ag as SessionContractInput, aw as HttpClientConfig, bv as LoggerConfig, aU as TwoFaVerificationRequest, bw as MfaOtpSendRequest, bx as MfaPendingPasskeyOptionsRequest, by as MfaPendingPasskeyVerifyRequest, bz as MfaStatusQuery, bA as MfaPreferenceRequest, bB as PhoneVerifyStartRequest, bC as PhoneVerifyConfirmRequest, bD as TotpEnrollVerifyRequest, bE as TotpDisableRequest, bF as PhoneUnverifyRequest, bG as BackupCodesRegenerateRequest, bH as MfaBackupCodesResponse, bI as MfaOptOutRequest, bJ as WebAuthnVerifyRequest, bK as PasskeyLoginOptionsRequest, bL as PasskeyLoginVerifyRequest, bM as SecurityOverviewQuery, bN as SecurityLoginActivityQuery, bO as SecuritySessionsQuery, bP as RevokeSecuritySessionPayload } from './route-guard-contract-BXNkJFf2.js';
5
+ export { ah as API_ERROR_CATEGORY_FALLBACK, ai as API_ERROR_DISPLAY_CONFIG, aj as ActiveSession, ak as ApiErrorDisplayConfig, al as ApiErrorPayload, am as ApiErrorVariant, an as AuthErrorAction, ao as AuthErrorCode, ap as AuthErrorCodeValue, aq as AuthFunnelState, ar as AuthInterceptorPolicyConfig, as as AuthPolicyRoutes, at as AuthRouteAction, ax as HttpErrorKind, ay as HydrateMfaPendingAccessTokenInput, bQ as LogLevel, bR as LogMeta, aD as LoginHistoryRow, aE as LoginResponseData, aF as MfaBootRecoveryResult, aG as MfaEnrollmentStatus, aH as MfaMethod, aI as MfaMethodOption, aJ as MfaPendingAccessToken, aK as MfaPortalScopeContext, aL as MfaStorageLane, aM as PaginationResponse, aP as SERVICE_UNAVAILABLE_MESSAGE, aQ as SecurityOverview, aR as SessionRefreshDeferredError, aS as SessionRefreshFailedError, bS as StorageKeyConfig, aT as StoredAuthError, aV as UnauthorizedPageCopy, aW as WOODSPORTAL_API_ACTIVE_ERROR_CODES, aX as WoodsportalRequestConfig, aY as buildErrorDescription, aZ as classifyHttpError, a_ as clearMfaPendingAccessToken, bT as configureStorageKeys, a$ as getApiErrorFromUnknown, b0 as getFieldErrors, b1 as getFormErrors, b2 as getHttpErrorMessage, bU as getStorageKeys, b3 as getUnauthorizedPageCopy, b4 as hasAuthenticatedAccess, b5 as hasValidAccess, b6 as hydrateMfaPendingAccessToken, b7 as initializeHttpClient, b8 as isFullyAuthenticated, b9 as isMfaPendingAccessSession, ba as isMfaPendingSession, bb as isOptionalAuthFailureUrl, bc as isServiceUnavailableError, bd as isSessionProbeUrl, be as isSessionRefreshDeferredError, bf as isSessionRefreshFailedError, bg as parseApiErrorPayload, bh as persistAuthError, bi as readMfaPendingAccessToken, bj as readPersistedAuthError, bk as recoverMfaGateOnBoot, bV as resetStorageKeysForTests, bl as resolveApiErrorDisplay, bm as resolveAuthErrorAction, bn as resolveAuthRouteAction, bp as setSessionLifecycleListener, bq as startVisibilityRefreshScheduler, br as stopVisibilityRefreshScheduler, bs as storeMfaPendingAccessToken } from './route-guard-contract-BXNkJFf2.js';
6
+ import { P as PreLoginPayload, L as LoginPayload, V as VerifyEmailPayload, a as ResetPasswordVerifyTokenPayload, R as ResetPasswordPayload, F as ForgetPasswordPayload, b as ForgetPasswordOtpVerifyPayload, C as ChangePasswordPayload } from './index-CWYPrDBp.js';
7
+ export { c as Config, M as MutationOptions } from './index-CWYPrDBp.js';
8
8
  import 'axios';
9
9
 
10
10
  declare const WP_UI_THEME = "wp.ui.theme";
@@ -143,6 +143,11 @@ declare const api: {
143
143
  resetPasswordVerifyToken: typeof resetPasswordVerifyToken;
144
144
  verifyEmailResend: typeof verifyEmailResend;
145
145
  resendEmail: typeof resendEmail;
146
+ signInLink: {
147
+ send: typeof signInLinkSend;
148
+ verify: typeof signInLinkVerify;
149
+ validateToken: typeof signInLinkValidateToken;
150
+ };
146
151
  changePassword: typeof changePassword;
147
152
  me: typeof me;
148
153
  profile: typeof profile;
@@ -162,7 +167,6 @@ declare const api: {
162
167
  phoneUnverify: typeof phoneUnverify;
163
168
  backupCodesRegenerate: typeof backupCodesRegenerate;
164
169
  optOut: typeof mfaOptOut;
165
- mfaOptOut: typeof mfaOptOut;
166
170
  webauthnRegisterOptions: typeof webauthnRegisterOptions;
167
171
  webauthnRegisterVerify: typeof webauthnRegisterVerify;
168
172
  webauthnAuthOptions: typeof webauthnAuthOptions;
@@ -220,6 +224,7 @@ declare const api: {
220
224
  };
221
225
  objects: {
222
226
  list: typeof list$2;
227
+ existingList: typeof existingList;
223
228
  listSidebar: typeof sideBarList;
224
229
  getForm: typeof form;
225
230
  getFormOptions: typeof objectFormOptions;
@@ -462,6 +467,7 @@ declare const Client: {
462
467
  };
463
468
  object: {
464
469
  list: (payload?: any, listTableParams?: any) => Promise<unknown>;
470
+ existingList: (payload?: any, listTableParams?: any) => Promise<unknown>;
465
471
  sideBarList: (payload?: any) => Promise<unknown>;
466
472
  form: (payload?: any) => Promise<unknown>;
467
473
  objectFormOptions: (payload?: any) => Promise<unknown>;
@@ -501,6 +507,17 @@ declare const Client: {
501
507
  hubId?: number;
502
508
  portalId?: number;
503
509
  }) => Promise<unknown>;
510
+ signInLink: {
511
+ send: (data: {
512
+ email: string;
513
+ hubId?: number;
514
+ portalId?: number;
515
+ }) => Promise<unknown>;
516
+ verify: (data: {
517
+ token: string;
518
+ }) => Promise<unknown>;
519
+ validateToken: (token: string) => Promise<unknown>;
520
+ };
504
521
  };
505
522
  sso: {
506
523
  getSsoDetails: () => Promise<unknown>;
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- export { applyCrossTabSessionRevocation, clearClientSdkSession, installCrossTabSessionListener, resetSessionStores, signalSessionChanged } from './chunk-POWLSRWC.js';
2
- import { authApi } from './chunk-PLY23VRX.js';
3
- export { API_ERROR_CATEGORY_FALLBACK, API_ERROR_DISPLAY_CONFIG, WOODSPORTAL_API_ACTIVE_ERROR_CODES, buildErrorDescription, getApiErrorFromUnknown, hasAuthenticatedAccess, hasValidAccess, isExpectedApiError, isFullyAuthenticated, isMfaPendingSession, recoverMfaGateOnBoot, resolveApiContentState, resolveApiErrorDisplay, resolveAuthRouteAction } from './chunk-PLY23VRX.js';
1
+ export { applyCrossTabSessionRevocation, clearClientSdkSession, installCrossTabSessionListener, resetSessionStores, signalSessionChanged } from './chunk-JHJGYIPC.js';
2
+ import { authApi } from './chunk-5IQC6UHI.js';
3
+ export { API_ERROR_CATEGORY_FALLBACK, API_ERROR_DISPLAY_CONFIG, WOODSPORTAL_API_ACTIVE_ERROR_CODES, buildErrorDescription, getApiErrorFromUnknown, hasAuthenticatedAccess, hasValidAccess, isExpectedApiError, isFullyAuthenticated, isMfaPendingSession, recoverMfaGateOnBoot, resolveApiContentState, resolveApiErrorDisplay, resolveAuthRouteAction } from './chunk-5IQC6UHI.js';
4
4
  export { isOptionalAuthFailureUrl, isSessionProbeUrl, persistAuthError, readPersistedAuthError, resolveAuthErrorAction } from './chunk-JG3TEXWP.js';
5
- import { crmApi } from './chunk-2ZHONRVH.js';
6
- export { isPipelineBoardObjectType, shouldShowPipelineSelector, supportsBoardView } from './chunk-2ZHONRVH.js';
5
+ import { crmApi } from './chunk-UR6J7NHR.js';
6
+ export { isPipelineBoardObjectType, shouldShowPipelineSelector, supportsBoardView } from './chunk-UR6J7NHR.js';
7
7
  import './chunk-55MIERLJ.js';
8
- import { navigationApi, HttpClient, API_ENDPOINTS, generateApiUrl, initializeHttpClient } from './chunk-K6LWWPXZ.js';
9
- export { Client, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, createCachePurgeJob, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, startVisibilityRefreshScheduler, stopVisibilityRefreshScheduler, toCachePurgeListQuery } from './chunk-K6LWWPXZ.js';
10
- import './chunk-5JFESDQH.js';
11
- import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore, hydrateUserStoreFromSession } from './chunk-YEFSBGK2.js';
12
- export { HUBSPOT_DEALS_OBJECT_TYPE_ID, HUBSPOT_TICKETS_OBJECT_TYPE_ID, PIPELINE_BOARD_OBJECT_TYPE_IDS, PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS, isPipelineBoardObjectTypeId } from './chunk-YEFSBGK2.js';
8
+ import { navigationApi, HttpClient, API_ENDPOINTS, generateApiUrl, initializeHttpClient } from './chunk-DZF5LIXW.js';
9
+ export { Client, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, createCachePurgeJob, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, getFieldErrors, getFormErrors, initializeHttpClient, mergePurgeTargets, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, startVisibilityRefreshScheduler, stopVisibilityRefreshScheduler, toCachePurgeListQuery } from './chunk-DZF5LIXW.js';
10
+ import './chunk-FZMDGSOP.js';
11
+ import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore, hydrateUserStoreFromSession } from './chunk-OXPA3PYS.js';
12
+ export { HUBSPOT_DEALS_OBJECT_TYPE_ID, HUBSPOT_TICKETS_OBJECT_TYPE_ID, PIPELINE_BOARD_OBJECT_TYPE_IDS, PIPELINE_REQUIRED_MANAGED_OBJECT_TYPE_IDS, isPipelineBoardObjectTypeId } from './chunk-OXPA3PYS.js';
13
13
  import { storage, hydrateSessionRefreshState, hydrateMfaPendingAccessToken, storAccessToken } from './chunk-TH2E4MXG.js';
14
14
  export { SERVICE_UNAVAILABLE_MESSAGE, SessionRefreshDeferredError, SessionRefreshFailedError, classifyHttpError, clearMfaPendingAccessToken, configureLogger, getHttpErrorMessage, config as hubContext, hydrateMfaPendingAccessToken, isMfaPendingAccessSession, isServiceUnavailableError, isSessionRefreshDeferredError, isSessionRefreshFailedError, readMfaPendingAccessToken, setConfig as setHubContext, setSessionLifecycleListener, storeMfaPendingAccessToken } from './chunk-TH2E4MXG.js';
15
15
  import { setClientType } from './chunk-KPHAQNS2.js';
@@ -1,5 +1,5 @@
1
1
  import { InternalAxiosRequestConfig } from 'axios';
2
- import { M as MutationOptions, P as PreLoginPayload, C as ChangePasswordPayload, L as LoginPayload, V as VerifyEmailPayload, F as ForgetPasswordPayload, d as ForgetPasswordOtpVerifyResponse, b as ForgetPasswordOtpVerifyPayload, R as ResetPasswordPayload, a as ResetPasswordVerifyTokenPayload } from './index-B-IGDI9L.js';
2
+ import { M as MutationOptions, P as PreLoginPayload, C as ChangePasswordPayload, L as LoginPayload, V as VerifyEmailPayload, F as ForgetPasswordPayload, d as ForgetPasswordOtpVerifyResponse, b as ForgetPasswordOtpVerifyPayload, R as ResetPasswordPayload, a as ResetPasswordVerifyTokenPayload, S as SignInLinkSendPayload } from './index-CWYPrDBp.js';
3
3
 
4
4
  type SessionContractInput = {
5
5
  hasAccessToken: () => boolean;
@@ -302,6 +302,7 @@ interface LoginBootstrapResponse {
302
302
  portal?: LoginBootstrapPortal;
303
303
  mfaPolicy?: LoginBootstrapMfaPolicy;
304
304
  ssoProviders?: LoginBootstrapSsoProvider[];
305
+ signInLinkEnabled?: boolean;
305
306
  }
306
307
  interface TotpEnrollVerifyRequest {
307
308
  code: string;
@@ -710,6 +711,21 @@ declare function resendEmail(options?: MutationOptions<any, any>): {
710
711
  resendEmail: (payload?: any) => Promise<any>;
711
712
  isLoading: () => boolean;
712
713
  };
714
+ declare function signInLinkSend(options?: MutationOptions<any, any>): {
715
+ mutate: (payload?: SignInLinkSendPayload | undefined) => Promise<any>;
716
+ send: (payload?: SignInLinkSendPayload | undefined) => Promise<any>;
717
+ isLoading: () => boolean;
718
+ };
719
+ declare function signInLinkVerify(options?: MutationOptions<LoginResponseData, any>): {
720
+ mutate: (payload?: VerifyEmailPayload | undefined) => Promise<LoginResponseData>;
721
+ verify: (payload?: VerifyEmailPayload | undefined) => Promise<LoginResponseData>;
722
+ isLoading: () => boolean;
723
+ };
724
+ declare function signInLinkValidateToken(options?: MutationOptions<any, any>): {
725
+ mutate: (payload?: VerifyEmailPayload | undefined) => Promise<any>;
726
+ validateToken: (payload?: VerifyEmailPayload | undefined) => Promise<any>;
727
+ isLoading: () => boolean;
728
+ };
713
729
 
714
730
  type HttpErrorKind = 'service_unavailable' | 'network' | 'timeout' | 'auth' | 'client' | 'server' | 'unknown';
715
731
  declare const SERVICE_UNAVAILABLE_MESSAGE = "Service temporarily unavailable. Please try again in a few minutes.";
@@ -834,4 +850,4 @@ type ResolveAuthRouteActionInput = {
834
850
  };
835
851
  declare function resolveAuthRouteAction(input: ResolveAuthRouteActionInput): AuthRouteAction;
836
852
 
837
- export { setAccessToken as $, totpEnrollStart as A, totpEnrollVerify as B, totpDisable as C, phoneUnverify as D, backupCodesRegenerate as E, mfaOptOut as F, webauthnRegisterOptions as G, webauthnRegisterVerify as H, webauthnAuthOptions as I, webauthnAuthVerify as J, listWebauthnCredentials as K, deleteWebauthnCredential as L, passkeyLoginOptions as M, passkeyLoginVerify as N, getSecurityOverview as O, getSecurityLoginActivity as P, getSecuritySessions as Q, revokeSecuritySession as R, revokeOtherSecuritySessions as S, getLoginBootstrap as T, getSsoDetails as U, generateSsoUrl as V, ssoCallback as W, getRefreshToken as X, refreshSession as Y, getAuthRefreshToken as Z, getAccessToken as _, logout as a, getHttpErrorMessage as a$, clearAccessToken as a0, isAuthenticated as a1, isAuthenticateApp as a2, isAccessTokenExpired as a3, isExpiresAccessToken as a4, hasRefreshSession as a5, hasValidAccessToken as a6, didLastRefreshFail as a7, isSessionRefreshExhausted as a8, isRefreshInFlight as a9, type LoginHistoryRow as aA, type LoginResponseData as aB, type MfaBootRecoveryResult as aC, type MfaEnrollmentStatus as aD, type MfaMethod as aE, type MfaMethodOption as aF, type MfaPendingAccessToken as aG, type MfaPortalScopeContext as aH, type MfaStorageLane as aI, type PaginationResponse as aJ, type ResolveApiErrorDisplayOptions as aK, type ResolvedApiErrorDisplay as aL, SERVICE_UNAVAILABLE_MESSAGE as aM, type SecurityOverview as aN, SessionRefreshDeferredError as aO, SessionRefreshFailedError as aP, type StoredAuthError as aQ, type TwoFaVerificationRequest as aR, type UnauthorizedPageCopy as aS, WOODSPORTAL_API_ACTIVE_ERROR_CODES as aT, type WoodsportalRequestConfig as aU, buildErrorDescription as aV, classifyHttpError as aW, clearMfaPendingAccessToken as aX, getApiErrorFromUnknown as aY, getFieldErrors as aZ, getFormErrors as a_, resetSessionAuthState as aa, clearSessionRefreshExhaustedState as ab, hydrateSessionRefreshState as ac, type SessionContractInput as ad, API_ERROR_CATEGORY_FALLBACK as ae, API_ERROR_DISPLAY_CONFIG as af, type ActiveSession as ag, type ApiErrorDisplayConfig as ah, type ApiErrorPayload as ai, type ApiErrorVariant as aj, type AuthErrorAction as ak, AuthErrorCode as al, type AuthErrorCodeValue as am, type AuthFunnelState as an, type AuthInterceptorPolicyConfig as ao, type AuthPolicyRoutes as ap, type AuthRouteAction as aq, type EditorPreviewMockHandler as ar, type EditorPreviewMockResult as as, type HttpClientConfig as at, type HttpErrorKind as au, type HydrateMfaPendingAccessTokenInput as av, type LoginBootstrapMfaPolicy as aw, type LoginBootstrapPortal as ax, type LoginBootstrapResponse as ay, type LoginBootstrapSsoProvider as az, registerExistingUser as b, getUnauthorizedPageCopy as b0, hasAuthenticatedAccess as b1, hasValidAccess as b2, hydrateMfaPendingAccessToken as b3, initializeHttpClient as b4, isFullyAuthenticated as b5, isMfaPendingAccessSession as b6, isMfaPendingSession as b7, isOptionalAuthFailureUrl as b8, isServiceUnavailableError as b9, type TotpEnrollVerifyRequest as bA, type TotpDisableRequest as bB, type PhoneUnverifyRequest as bC, type BackupCodesRegenerateRequest as bD, type MfaBackupCodesResponse as bE, type MfaOptOutRequest as bF, type WebAuthnVerifyRequest as bG, type PasskeyLoginOptionsRequest as bH, type PasskeyLoginVerifyRequest as bI, type SecurityOverviewQuery as bJ, type SecurityLoginActivityQuery as bK, type SecuritySessionsQuery as bL, type RevokeSecuritySessionPayload as bM, type LogLevel as bN, type LogMeta as bO, type StorageKeyConfig as bP, configureStorageKeys as bQ, getStorageKeys as bR, resetStorageKeysForTests as bS, isSessionProbeUrl as ba, isSessionRefreshDeferredError as bb, isSessionRefreshFailedError as bc, parseApiErrorPayload as bd, persistAuthError as be, readMfaPendingAccessToken as bf, readPersistedAuthError as bg, recoverMfaGateOnBoot as bh, resolveApiErrorDisplay as bi, resolveAuthErrorAction as bj, resolveAuthRouteAction as bk, setEditorPreviewMockHandler as bl, setSessionLifecycleListener as bm, startVisibilityRefreshScheduler as bn, stopVisibilityRefreshScheduler as bo, storeMfaPendingAccessToken as bp, type ApiContentVariant as bq, type ApiErrorSeverity as br, type LoggerConfig as bs, type MfaOtpSendRequest as bt, type MfaPendingPasskeyOptionsRequest as bu, type MfaPendingPasskeyVerifyRequest as bv, type MfaStatusQuery as bw, type MfaPreferenceRequest as bx, type PhoneVerifyStartRequest as by, type PhoneVerifyConfirmRequest as bz, clientSession as c, verifyForgotPasswordOtp as d, resetPassword as e, forgetPassword as f, resetPasswordVerifyToken as g, handoff as h, verifyEmailResend as i, resendEmail as j, changePassword as k, login as l, me as m, profile as n, profileUpdate as o, preLogin as p, verifyOtp as q, register as r, sendMfaOtp as s, pendingPasskeyOptions as t, pendingPasskeyVerify as u, verifyEmail as v, getMfaStatus as w, setMfaPreferences as x, startPhoneVerify as y, confirmPhoneVerify as z };
853
+ export { refreshSession as $, setMfaPreferences as A, startPhoneVerify as B, confirmPhoneVerify as C, totpEnrollStart as D, totpEnrollVerify as E, totpDisable as F, phoneUnverify as G, backupCodesRegenerate as H, mfaOptOut as I, webauthnRegisterOptions as J, webauthnRegisterVerify as K, webauthnAuthOptions as L, webauthnAuthVerify as M, listWebauthnCredentials as N, deleteWebauthnCredential as O, passkeyLoginOptions as P, passkeyLoginVerify as Q, getSecurityOverview as R, getSecurityLoginActivity as S, getSecuritySessions as T, revokeSecuritySession as U, revokeOtherSecuritySessions as V, getLoginBootstrap as W, getSsoDetails as X, generateSsoUrl as Y, ssoCallback as Z, getRefreshToken as _, logout as a, getApiErrorFromUnknown as a$, getAuthRefreshToken as a0, getAccessToken as a1, setAccessToken as a2, clearAccessToken as a3, isAuthenticated as a4, isAuthenticateApp as a5, isAccessTokenExpired as a6, isExpiresAccessToken as a7, hasRefreshSession as a8, hasValidAccessToken as a9, type LoginBootstrapPortal as aA, type LoginBootstrapResponse as aB, type LoginBootstrapSsoProvider as aC, type LoginHistoryRow as aD, type LoginResponseData as aE, type MfaBootRecoveryResult as aF, type MfaEnrollmentStatus as aG, type MfaMethod as aH, type MfaMethodOption as aI, type MfaPendingAccessToken as aJ, type MfaPortalScopeContext as aK, type MfaStorageLane as aL, type PaginationResponse as aM, type ResolveApiErrorDisplayOptions as aN, type ResolvedApiErrorDisplay as aO, SERVICE_UNAVAILABLE_MESSAGE as aP, type SecurityOverview as aQ, SessionRefreshDeferredError as aR, SessionRefreshFailedError as aS, type StoredAuthError as aT, type TwoFaVerificationRequest as aU, type UnauthorizedPageCopy as aV, WOODSPORTAL_API_ACTIVE_ERROR_CODES as aW, type WoodsportalRequestConfig as aX, buildErrorDescription as aY, classifyHttpError as aZ, clearMfaPendingAccessToken as a_, didLastRefreshFail as aa, isSessionRefreshExhausted as ab, isRefreshInFlight as ac, resetSessionAuthState as ad, clearSessionRefreshExhaustedState as ae, hydrateSessionRefreshState as af, type SessionContractInput as ag, API_ERROR_CATEGORY_FALLBACK as ah, API_ERROR_DISPLAY_CONFIG as ai, type ActiveSession as aj, type ApiErrorDisplayConfig as ak, type ApiErrorPayload as al, type ApiErrorVariant as am, type AuthErrorAction as an, AuthErrorCode as ao, type AuthErrorCodeValue as ap, type AuthFunnelState as aq, type AuthInterceptorPolicyConfig as ar, type AuthPolicyRoutes as as, type AuthRouteAction as at, type EditorPreviewMockHandler as au, type EditorPreviewMockResult as av, type HttpClientConfig as aw, type HttpErrorKind as ax, type HydrateMfaPendingAccessTokenInput as ay, type LoginBootstrapMfaPolicy as az, registerExistingUser as b, getFieldErrors as b0, getFormErrors as b1, getHttpErrorMessage as b2, getUnauthorizedPageCopy as b3, hasAuthenticatedAccess as b4, hasValidAccess as b5, hydrateMfaPendingAccessToken as b6, initializeHttpClient as b7, isFullyAuthenticated as b8, isMfaPendingAccessSession as b9, type MfaPreferenceRequest as bA, type PhoneVerifyStartRequest as bB, type PhoneVerifyConfirmRequest as bC, type TotpEnrollVerifyRequest as bD, type TotpDisableRequest as bE, type PhoneUnverifyRequest as bF, type BackupCodesRegenerateRequest as bG, type MfaBackupCodesResponse as bH, type MfaOptOutRequest as bI, type WebAuthnVerifyRequest as bJ, type PasskeyLoginOptionsRequest as bK, type PasskeyLoginVerifyRequest as bL, type SecurityOverviewQuery as bM, type SecurityLoginActivityQuery as bN, type SecuritySessionsQuery as bO, type RevokeSecuritySessionPayload as bP, type LogLevel as bQ, type LogMeta as bR, type StorageKeyConfig as bS, configureStorageKeys as bT, getStorageKeys as bU, resetStorageKeysForTests as bV, isMfaPendingSession as ba, isOptionalAuthFailureUrl as bb, isServiceUnavailableError as bc, isSessionProbeUrl as bd, isSessionRefreshDeferredError as be, isSessionRefreshFailedError as bf, parseApiErrorPayload as bg, persistAuthError as bh, readMfaPendingAccessToken as bi, readPersistedAuthError as bj, recoverMfaGateOnBoot as bk, resolveApiErrorDisplay as bl, resolveAuthErrorAction as bm, resolveAuthRouteAction as bn, setEditorPreviewMockHandler as bo, setSessionLifecycleListener as bp, startVisibilityRefreshScheduler as bq, stopVisibilityRefreshScheduler as br, storeMfaPendingAccessToken as bs, type ApiContentVariant as bt, type ApiErrorSeverity as bu, type LoggerConfig as bv, type MfaOtpSendRequest as bw, type MfaPendingPasskeyOptionsRequest as bx, type MfaPendingPasskeyVerifyRequest as by, type MfaStatusQuery as bz, clientSession as c, verifyForgotPasswordOtp as d, resetPassword as e, forgetPassword as f, resetPasswordVerifyToken as g, handoff as h, verifyEmailResend as i, resendEmail as j, signInLinkVerify as k, login as l, signInLinkValidateToken as m, changePassword as n, me as o, preLogin as p, profile as q, register as r, signInLinkSend as s, profileUpdate as t, verifyOtp as u, verifyEmail as v, sendMfaOtp as w, pendingPasskeyOptions as x, pendingPasskeyVerify as y, getMfaStatus as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "woodsportal-client-sdk",
3
- "version": "4.0.9-dev.1",
3
+ "version": "4.0.9-dev.3",
4
4
  "packageManager": "pnpm@10.12.1",
5
5
  "description": "Official TypeScript/JavaScript SDK for WoodsPortal API - Authentication, user management, pipelines, and more",
6
6
  "type": "module",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/main/features/crm/api/pipeline.ts","../src/main/features/crm/api/stage.ts","../src/main/features/crm/api/object.ts","../src/main/features/crm/api/note.ts","../src/main/features/crm/api/email.ts","../src/main/features/crm/api/uploader.ts","../src/main/features/crm/api/file.ts","../src/main/features/crm/api/cache.ts","../src/main/api/nested-crm-api.ts","../src/main/core/constants/pipeline-ui.ts"],"names":["list","actions","create","update","details"],"mappings":";;;;;;AAKO,SAAS,KAAK,OAAA,EAAqC;AACtD,EAAA,MAAM,EAAE,MAAA,EAAQ,SAAA,EAAU,GAAI,cAAA,CAAyB,OAAO,O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DO,SAAS,0BAA0B,YAAA,EAAkD;AACxF,EAAA,OAAO,4BAA4B,YAAY,CAAA;AACnD;AAGO,SAAS,kBAAkB,YAAA,EAAkD;AAChF,EAAA,OAAO,4BAA4B,YAAY,CAAA;AACnD;AAMO,SAAS,0BAAA,CAA2B,cAAyC,aAAA,EAAgC;AAChH,EAAA,IAAI,iBAAiB,CAAA,EAAG;AACpB,IAAA,OAAO,KAAA;AAAA,EACX;AACA,EAAA,IAAI,2BAAA,CAA4B,YAAY,CAAA,EAAG;AAC3C,IAAA,OAAO,aAAA,GAAgB,CAAA;AAAA,EAC3B;AACA,EAAA,OAAO,aAAA,GAAgB,CAAA;AAC3B","file":"chunk-2ZHONRVH.js","sourcesContent":["import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { resolveListTableParams } from '../helpers/normalize-table-list-params'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const listTableParams = resolveListTableParams(payload)\n\n const response: any = await Client.pipeline.list(payload, listTableParams)\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getPipelines: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.stage.list(payload)\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getStages: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { getClientType } from '../../../core/http/client-type'\nimport { resolveListTableParams } from '../helpers/normalize-table-list-params'\nimport { actions as tableActions } from '../../../state/crm/use-table'\nimport { actions as multiObjectActions } from '../../../state/crm/use-multi-object'\nimport { actions as formActions } from '../../../state/crm/use-form'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { setObjectsData, setTableData } = tableActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const listTableParams = resolveListTableParams(payload)\n\n const response: any = await Client.object.list(payload, listTableParams)\n\n await setObjectsData(response, {\n stageId: listTableParams.stageId as string | number | undefined\n })\n await setTableData(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getObjects: mutate,\n isLoading\n }\n}\n\nexport function sideBarList(options?: MutationOptions<any, any>) {\n const { setMultiObjectData } = multiObjectActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.sideBarList(payload)\n setMultiObjectData(response, payload)\n return response\n }, options)\n\n return {\n mutate,\n listSidebar: mutate,\n getSideBarObjects: mutate,\n isLoading\n }\n}\n\nexport function form(options?: MutationOptions<any, any>) {\n const { setFormData } = formActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.form(payload)\n\n setFormData(response)\n\n return response\n }, options)\n\n return {\n mutate,\n getForm: mutate,\n getObjectsForm: mutate,\n isLoading\n }\n}\n\nexport function objectFormOptions(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.objectFormOptions(payload)\n\n return response\n }, options)\n\n return {\n mutate,\n getFormOptions: mutate,\n objectFormOptions: mutate,\n isLoading\n }\n}\n\nexport function create(options?: MutationOptions<any, any>) {\n const { setTablePrependData, clearLatestTablePrependData } = tableActions\n const { setMultiObjectPrependData, clearLatestMultiObjectPrependData } = multiObjectActions\n const isMobileClient = getClientType() === 'mobile'\n\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n if (!isMobileClient && props?.componentName === 'sidebarTable') await setMultiObjectPrependData('loading', props)\n if (!isMobileClient && props?.componentName != 'sidebarTable' && props?.componentName != 'sidebarAssociation') {\n await setTablePrependData('loading', props)\n }\n\n const response: any = await Client.object.create(props)\n\n if (!isMobileClient && props?.componentName === 'sidebarTable') await setMultiObjectPrependData(response, props)\n if (!isMobileClient && props?.componentName != 'sidebarTable' && props?.componentName != 'sidebarAssociation') {\n await setTablePrependData(response, props)\n }\n\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n if (!isMobileClient && payload?.componentName === 'sidebarTable') {\n clearLatestMultiObjectPrependData(payload?.hubspotObjectTypeId)\n }\n if (!isMobileClient && payload?.componentName != 'sidebarTable' && payload?.componentName != 'sidebarAssociation') {\n clearLatestTablePrependData()\n }\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n create: mutate,\n createObject: mutate,\n isLoading\n }\n}\n\nexport function createExisting(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (props: any) => {\n const response: any = await Client.object.createExisting(props)\n\n return response\n }, options)\n\n return {\n mutate,\n createExisting: mutate,\n createExistingObject: mutate,\n isLoading\n }\n}\n\nexport function removeExisting(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (props: any) => {\n const response: any = await Client.object.removeExisting(props)\n\n return response\n }, options)\n\n return {\n mutate,\n removeExisting: mutate,\n removeExistingObject: mutate,\n isLoading\n }\n}\n\nexport function details(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.details(payload)\n\n return response\n }, options)\n\n return {\n mutate,\n getDetails: mutate,\n getObjectsDetails: mutate,\n isLoading\n }\n}\n\nexport function update(options?: MutationOptions<any, any>) {\n const { updateTablePrependData } = tableActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.object.update(payload)\n\n return updateTablePrependData(response, payload)\n }, options)\n\n return {\n mutate,\n updateDetails: mutate,\n updateObjectsDetails: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { actions as noteActions } from '../../../state/crm/use-note'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { setNotes } = noteActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.note.list(payload)\n\n setNotes(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getNotes: mutate,\n isLoading\n }\n}\n\nexport function create(options?: MutationOptions<any, any>) {\n const { setPrependNote, clearLatestPrependNote } = noteActions\n\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n await setPrependNote('loading')\n const response: any = await Client.note.create(props)\n await setPrependNote(response)\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n clearLatestPrependNote()\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n create: mutate,\n createNote: mutate,\n isLoading\n }\n}\n\nexport function update(options?: MutationOptions<any, any>) {\n const { updatePrependNote } = noteActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n // let params: any = makeParam()\n // let mParams: any = { cache: !!params?.cache, isPrimaryCompany: params?.isPrimaryCompany, limit: params?.limit || 5 }\n\n // if (getAuthSubscriptionType() === 'FREE') {\n // mParams.after = params?.after || \"\";\n // } else {\n // mParams.limit = params?.limit || \"\";\n // mParams.page = params?.page || \"\";\n // }\n\n const response: any = await Client.note.update(payload)\n\n return updatePrependNote(response)\n }, options)\n\n return {\n mutate,\n update: mutate,\n updateNote: mutate,\n isLoading\n }\n}\n\n// const makeParam = () => {\n// let params: any = {};\n// const tab = filterParams(\"tabs.notes\")\n// const baseParams: any = {\n// objectId: objectId,\n// id: id,\n// portalId: portalId,\n// cache: (sync || apiSync) ? false : true,\n// isPrimaryCompany: tab?.isPrimaryCompany ? true : false,\n// };\n\n// if (getAuthSubscriptionType() === \"FREE\") {\n// params = {\n// ...baseParams,\n// ...({ after: isFristTimeLoadData && tab?.page ? tab?.page : page }),\n// };\n// } else {\n// params = {\n// ...baseParams,\n// ...({\n// limit: limit,\n// page: isFristTimeLoadData && tab?.page ? tab?.page : page,\n// }),\n// };\n// }\n// return params\n// }\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { actions as emailActions } from '../../../state/crm/use-email'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { setEmails } = emailActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.email.list(payload)\n\n setEmails(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getEmails: mutate,\n isLoading\n }\n}\n\nexport function create(options?: MutationOptions<any, any>) {\n const { setPrependEmail, clearLatestPrependEmail } = emailActions\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n await setPrependEmail('loading')\n const response: any = await Client.email.create(props)\n await setPrependEmail(response)\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n clearLatestPrependEmail()\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n create: mutate,\n createEmail: mutate,\n isLoading\n }\n}\n\nexport function update(options?: MutationOptions<any, any>) {\n const { updatePrependEmail } = emailActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.email.update(payload)\n\n return updatePrependEmail(response)\n }, options)\n\n return {\n mutate,\n update: mutate,\n updateEmail: mutate,\n isLoading\n }\n}\n\n// const makeParam = () => {\n// let params: any = {};\n// const tab = filterParams(\"tabs.notes\")\n// const baseParams: any = {\n// objectId: objectId,\n// id: id,\n// portalId: portalId,\n// cache: (sync || apiSync) ? false : true,\n// isPrimaryCompany: tab?.isPrimaryCompany ? true : false,\n// };\n\n// if (getAuthSubscriptionType() === \"FREE\") {\n// params = {\n// ...baseParams,\n// ...({ after: isFristTimeLoadData && tab?.page ? tab?.page : page }),\n// };\n// } else {\n// params = {\n// ...baseParams,\n// ...({\n// limit: limit,\n// page: isFristTimeLoadData && tab?.page ? tab?.page : page,\n// }),\n// };\n// }\n// return params\n// }\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { actions as uploaderActions } from '../../../state/crm/use-uploader'\n\nexport function imageUpload(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = payload?.type === 'email' ? await Client.email.image(payload) : await Client.note.image(payload)\n\n return response\n }, options)\n\n return {\n mutate,\n uploadImage: mutate,\n imageUpload: mutate,\n isLoading\n }\n}\n\nexport function attachmentUpload(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = payload?.type === 'email' ? await Client.email.attachment(payload) : await Client.note.attachment(payload)\n\n uploaderActions.setAttachment(response)\n\n return response\n }, options)\n\n return {\n mutate,\n uploadAttachment: mutate,\n attachmentUpload: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\nimport { actions as fileActions } from '../../../state/crm/use-file'\n\nexport function list(options?: MutationOptions<any, any>) {\n const { setFiles } = fileActions\n\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.file.list(payload)\n\n setFiles(response, payload)\n\n return response\n }, options)\n\n return {\n mutate,\n list: mutate,\n getFiles: mutate,\n isLoading\n }\n}\n\nexport function details(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.file.details(payload)\n\n return response\n }, options)\n\n return {\n mutate,\n getDetails: mutate,\n getFile: mutate,\n isLoading\n }\n}\n\nexport function addFolder(options?: MutationOptions<any, any>) {\n const { updateTreeWithCreate, clearLatestTreeLoadingNode } = fileActions\n\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n const parentFolderId = props?.queryParams?.parentFolderId\n await updateTreeWithCreate(parentFolderId, 'loading')\n const response: any = await Client.file.addFolder(props)\n await updateTreeWithCreate(parentFolderId, response, 'folder')\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n clearLatestTreeLoadingNode(payload?.queryParams?.parentFolderId)\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n addFolder: mutate,\n isLoading\n }\n}\n\nexport function addFile(options?: MutationOptions<any, any>) {\n const { updateTreeWithCreate, clearLatestTreeLoadingNode } = fileActions\n\n const { mutate, isLoading } = createMutation<any, any>(\n async (props: any) => {\n const parentFolderId = props?.queryParams?.parentFolderId\n await updateTreeWithCreate(parentFolderId, 'loading')\n const response: any = await Client.file.addFile(props)\n await updateTreeWithCreate(parentFolderId, response, 'file')\n return response\n },\n {\n ...options,\n onError: (error, payload) => {\n clearLatestTreeLoadingNode(payload?.queryParams?.parentFolderId)\n options?.onError?.(error, payload)\n }\n }\n )\n\n return {\n mutate,\n addFile: mutate,\n isLoading\n }\n}\n\nexport function download(options?: MutationOptions<any, any>) {\n const { mutate, isLoading } = createMutation<any, any>(async (payload: any) => {\n const response: any = await Client.file.download(payload)\n return response\n }, options)\n\n return {\n mutate,\n download: mutate,\n downloadFile: mutate,\n isLoading\n }\n}\n","import { Client } from '../../../core/http/client-assembler'\nimport type { MutationOptions } from '../../../core/types'\nimport { createMutation } from '../../../core/mutation/createMutation'\n\n/** Soft refresh CRM list cache (prefer over GET cache=false when purge API is enabled). */\nexport function purge(options?: MutationOptions<unknown, unknown>) {\n const { mutate, isLoading } = createMutation<Record<string, unknown>, unknown>(async (payload?: Record<string, unknown>) => {\n const safePayload = payload ?? {}\n const idempotencyKey = typeof safePayload.idempotencyKey === 'string' ? safePayload.idempotencyKey : undefined\n const headers = idempotencyKey ? { 'Idempotency-Key': idempotencyKey } : undefined\n const { idempotencyKey: _ignored, ...body } = safePayload\n return Client.cache.purge(body, headers)\n }, options)\n\n return { mutate, purge: mutate, purgeCache: mutate, isLoading }\n}\n\nexport function purgeStatus(purgeJobId: string, options?: MutationOptions<unknown, unknown>) {\n const { mutate, isLoading } = createMutation<string, unknown>(async (jobId?: string) => Client.cache.purgeStatus(jobId ?? purgeJobId), options)\n\n return {\n mutate,\n getPurgeStatus: mutate,\n isLoading\n }\n}\n","import { list as pipelinesList } from '../features/crm/api/pipeline'\nimport { list as stagesList } from '../features/crm/api/stage'\nimport {\n list as objectsList,\n sideBarList as objectsListSidebar,\n form as objectsGetForm,\n create as objectsCreate,\n createExisting as objectsCreateExisting,\n removeExisting as objectsRemoveExisting,\n details as objectsGetDetails,\n update as objectsUpdateDetails,\n objectFormOptions as objectsGetFormOptions\n} from '../features/crm/api/object'\nimport { list as notesList, create as notesCreate, update as notesUpdate } from '../features/crm/api/note'\nimport { list as emailsList, create as emailsCreate, update as emailsUpdate } from '../features/crm/api/email'\nimport { imageUpload, attachmentUpload } from '../features/crm/api/uploader'\nimport { list as filesList, addFolder, addFile, details as filesGetDetails, download as filesDownload } from '../features/crm/api/file'\nimport { purge as cachePurge, purgeStatus as cacheGetPurgeStatus } from '../features/crm/api/cache'\n\n/** Canonical nested CRM API (SDK 3.0). */\nexport const crmApi = {\n pipelines: { list: pipelinesList },\n stages: { list: stagesList },\n objects: {\n list: objectsList,\n listSidebar: objectsListSidebar,\n getForm: objectsGetForm,\n getFormOptions: objectsGetFormOptions,\n getDetails: objectsGetDetails,\n updateDetails: objectsUpdateDetails,\n create: objectsCreate,\n createExisting: objectsCreateExisting,\n removeExisting: objectsRemoveExisting\n },\n notes: {\n list: notesList,\n create: notesCreate,\n update: notesUpdate\n },\n emails: {\n list: emailsList,\n create: emailsCreate,\n update: emailsUpdate\n },\n files: {\n list: filesList,\n getDetails: filesGetDetails,\n download: filesDownload,\n addFolder,\n addFile\n },\n uploads: {\n uploadImage: imageUpload,\n uploadAttachment: attachmentUpload\n },\n cache: {\n purge: cachePurge,\n getPurgeStatus: cacheGetPurgeStatus\n }\n}\n","import { isPipelineBoardObjectTypeId } from './hubspot-object-type-ids'\n\nexport function isPipelineBoardObjectType(objectTypeId: string | undefined | null): boolean {\n return isPipelineBoardObjectTypeId(objectTypeId)\n}\n\n/** LIST/BOARD toggle and board rendering — same object set as single-pipeline hide rule. */\nexport function supportsBoardView(objectTypeId: string | undefined | null): boolean {\n return isPipelineBoardObjectTypeId(objectTypeId)\n}\n\n/**\n * Whether to render the pipeline dropdown in the table header.\n * Board objects: hide when only one pipeline (auto-selected). Others: show when any pipeline exists.\n */\nexport function shouldShowPipelineSelector(objectTypeId: string | undefined | null, pipelineCount: number): boolean {\n if (pipelineCount <= 0) {\n return false\n }\n if (isPipelineBoardObjectTypeId(objectTypeId)) {\n return pipelineCount > 1\n }\n return pipelineCount > 0\n}\n"]}