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.
- package/dist/adapters/angular/index.js +3 -3
- package/dist/adapters/native/index.js +4 -4
- package/dist/adapters/react/index.js +4 -4
- package/dist/adapters/vue/index.js +3 -3
- package/dist/{cache-purge-rOALAcjJ.d.ts → cache-purge-h90c5Dpm.d.ts} +9 -2
- package/dist/{chunk-4CTXRWIN.js → chunk-2ZDMREF4.js} +4 -4
- package/dist/{chunk-4CTXRWIN.js.map → chunk-2ZDMREF4.js.map} +1 -1
- package/dist/{chunk-PLY23VRX.js → chunk-5IQC6UHI.js} +46 -13
- package/dist/chunk-5IQC6UHI.js.map +1 -0
- package/dist/{chunk-K6LWWPXZ.js → chunk-DZF5LIXW.js} +106 -31
- package/dist/chunk-DZF5LIXW.js.map +1 -0
- package/dist/{chunk-PP2GUXEW.js → chunk-FCXVZLKO.js} +3 -3
- package/dist/{chunk-PP2GUXEW.js.map → chunk-FCXVZLKO.js.map} +1 -1
- package/dist/{chunk-5JFESDQH.js → chunk-FZMDGSOP.js} +3 -3
- package/dist/{chunk-5JFESDQH.js.map → chunk-FZMDGSOP.js.map} +1 -1
- package/dist/{chunk-POWLSRWC.js → chunk-JHJGYIPC.js} +4 -4
- package/dist/{chunk-POWLSRWC.js.map → chunk-JHJGYIPC.js.map} +1 -1
- package/dist/{chunk-YEFSBGK2.js → chunk-OXPA3PYS.js} +7 -4
- package/dist/chunk-OXPA3PYS.js.map +1 -0
- package/dist/{chunk-2ZHONRVH.js → chunk-UR6J7NHR.js} +25 -5
- package/dist/chunk-UR6J7NHR.js.map +1 -0
- package/dist/{cross-tab-session-I2FKYSBE.js → cross-tab-session-AH27QKXW.js} +5 -5
- package/dist/{cross-tab-session-I2FKYSBE.js.map → cross-tab-session-AH27QKXW.js.map} +1 -1
- package/dist/entries/auth.d.ts +8 -4
- package/dist/entries/auth.js +4 -4
- package/dist/entries/crm.d.ts +4 -3
- package/dist/entries/crm.js +6 -6
- package/dist/{index-B-IGDI9L.d.ts → index-CWYPrDBp.d.ts} +6 -1
- package/dist/index.d.ts +24 -7
- package/dist/index.js +10 -10
- package/dist/{route-guard-contract-KaQaafb7.d.ts → route-guard-contract-BXNkJFf2.d.ts} +18 -2
- package/package.json +1 -1
- package/dist/chunk-2ZHONRVH.js.map +0 -1
- package/dist/chunk-K6LWWPXZ.js.map +0 -1
- package/dist/chunk-PLY23VRX.js.map +0 -1
- 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,MAAM,EAAE,MAAA,EAAQ,SAAA,EAAU,GAAI,cAAA,CAAyB,OAAO,OAAA,KAAiB;AAC3E,IAAA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AA,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-
|
|
1
|
+
export { applyCrossTabSessionRevocation, installCrossTabSessionListener, resetCrossTabSessionSyncForTests, signalSessionChanged } from './chunk-JHJGYIPC.js';
|
|
2
2
|
import './chunk-55MIERLJ.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
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-
|
|
11
|
-
//# sourceMappingURL=cross-tab-session-
|
|
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-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"cross-tab-session-AH27QKXW.js"}
|
package/dist/entries/auth.d.ts
CHANGED
|
@@ -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
|
|
2
|
-
export {
|
|
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-
|
|
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;
|
package/dist/entries/auth.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { authApi } from '../chunk-
|
|
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-
|
|
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-
|
|
5
|
-
import '../chunk-
|
|
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';
|
package/dist/entries/crm.d.ts
CHANGED
|
@@ -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,
|
|
3
|
-
export { C as CachePurgeDomain,
|
|
4
|
-
import '../index-
|
|
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;
|
package/dist/entries/crm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { crmApi } from '../chunk-
|
|
2
|
-
export { isPipelineBoardObjectType, shouldShowPipelineSelector, supportsBoardView } from '../chunk-
|
|
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-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore } from '../chunk-
|
|
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-
|
|
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,
|
|
3
|
-
export { C as CachePurgeDomain,
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
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-
|
|
7
|
-
export { c as Config, M as MutationOptions } from './index-
|
|
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-
|
|
2
|
-
import { authApi } from './chunk-
|
|
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-
|
|
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-
|
|
6
|
-
export { isPipelineBoardObjectType, shouldShowPipelineSelector, supportsBoardView } from './chunk-
|
|
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-
|
|
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-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import { actions8, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore, hydrateUserStoreFromSession } from './chunk-
|
|
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-
|
|
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-
|
|
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 {
|
|
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.
|
|
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,OAAA,KAAiB;AAC3E,IAAA,MAAM,eAAA,GAAkB,uBAAuB,OAAO,CAAA;AAEtD,IAAA,MAAM,WAAgB,MAAM,MAAA,CAAO,QAAA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,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"]}
|