woodsportal-client-sdk 1.1.5-dev.0 → 4.0.0-dev.0

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 (55) hide show
  1. package/CHANGELOG.md +109 -0
  2. package/README.md +171 -77
  3. package/dist/adapters/angular/index.d.ts +58 -5
  4. package/dist/adapters/angular/index.js +8 -7
  5. package/dist/adapters/angular/index.js.map +1 -1
  6. package/dist/adapters/react/index.d.ts +58 -5
  7. package/dist/adapters/react/index.js +7 -6
  8. package/dist/adapters/react/index.js.map +1 -1
  9. package/dist/adapters/vue/index.d.ts +58 -5
  10. package/dist/adapters/vue/index.js +8 -7
  11. package/dist/adapters/vue/index.js.map +1 -1
  12. package/dist/auth-utils-VT7HSLMA.js +3 -0
  13. package/dist/{auth-utils-A4WPJMPK.js.map → auth-utils-VT7HSLMA.js.map} +1 -1
  14. package/dist/authentication-BfYhAeMs.d.ts +463 -0
  15. package/dist/cache-purge-G5WkHckd.d.ts +236 -0
  16. package/dist/chunk-3FUHGFAQ.js +167 -0
  17. package/dist/chunk-3FUHGFAQ.js.map +1 -0
  18. package/dist/chunk-4ZV3MQIB.js +2000 -0
  19. package/dist/chunk-4ZV3MQIB.js.map +1 -0
  20. package/dist/{chunk-Y5MRAAGK.js → chunk-AYTO6ND7.js} +3 -3
  21. package/dist/chunk-AYTO6ND7.js.map +1 -0
  22. package/dist/chunk-G2KECOVQ.js +504 -0
  23. package/dist/chunk-G2KECOVQ.js.map +1 -0
  24. package/dist/chunk-H57IQHVF.js +20 -0
  25. package/dist/chunk-H57IQHVF.js.map +1 -0
  26. package/dist/chunk-KBXI2JBA.js +1200 -0
  27. package/dist/chunk-KBXI2JBA.js.map +1 -0
  28. package/dist/chunk-KCZFT6OM.js +416 -0
  29. package/dist/chunk-KCZFT6OM.js.map +1 -0
  30. package/dist/chunk-SSS4DNXP.js +304 -0
  31. package/dist/chunk-SSS4DNXP.js.map +1 -0
  32. package/dist/entries/auth.d.ts +68 -0
  33. package/dist/entries/auth.js +13 -0
  34. package/dist/entries/auth.js.map +1 -0
  35. package/dist/entries/crm.d.ts +208 -0
  36. package/dist/entries/crm.js +24 -0
  37. package/dist/entries/crm.js.map +1 -0
  38. package/dist/index-CCwMopD8.d.ts +38 -0
  39. package/dist/index.d.ts +405 -406
  40. package/dist/index.js +23 -1720
  41. package/dist/index.js.map +1 -1
  42. package/dist/use-sync-DpazhM4d.d.ts +60 -0
  43. package/dist/use-uploader-2F1zc7Cl.d.ts +23 -0
  44. package/package.json +53 -8
  45. package/dist/auth-utils-A4WPJMPK.js +0 -4
  46. package/dist/chunk-J7MDPY5P.js +0 -54
  47. package/dist/chunk-J7MDPY5P.js.map +0 -1
  48. package/dist/chunk-NB7AINV4.js +0 -35
  49. package/dist/chunk-NB7AINV4.js.map +0 -1
  50. package/dist/chunk-RDCT25UV.js +0 -1066
  51. package/dist/chunk-RDCT25UV.js.map +0 -1
  52. package/dist/chunk-Y5MRAAGK.js.map +0 -1
  53. package/dist/chunk-YLZA5S7A.js +0 -102
  54. package/dist/chunk-YLZA5S7A.js.map +0 -1
  55. package/dist/use-sync-LbURBOs_.d.ts +0 -29
package/dist/index.d.ts CHANGED
@@ -1,284 +1,157 @@
1
- interface Config {
2
- hubId: string;
3
- devPortalId: string;
4
- portalId: string;
5
- devApiUrl: string;
6
- }
7
- interface MutationOptions<TSuccess, TError = unknown> {
8
- onSuccess?: (data: TSuccess, payload: any) => void | Promise<void>;
9
- onError?: (error: TError, payload: any) => void;
10
- onLoadingChange?: (loading: boolean) => void;
11
- }
12
- interface PreLoginPayload {
13
- username: string;
14
- }
15
- interface LoginPayload {
16
- username: string;
17
- password: string;
18
- }
19
- interface VerifyEmailPayload {
20
- token: string;
21
- }
22
- interface ResetPasswordVerifyTokenPayload {
23
- token: string;
24
- }
25
- interface ResetPasswordPayload {
26
- newPassword: string;
27
- confirmPassword: string;
28
- }
29
- interface ForgetPasswordPayload {
30
- email: string;
31
- }
32
- interface ChangePasswordPayload {
33
- currentPassword: string;
34
- newPassword: string;
35
- confirmPassword: string;
36
- }
1
+ import { T as TableUiState, a as TableState, U as UserState, N as NoteState, E as EmailState, S as SyncState } from './use-sync-DpazhM4d.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, C as CachePurgeTarget, A as CachePurgeRequest, B as CachePurgeListQuery, D as CachePurgeView, E as CreateCachePurgeJobOptions, P as PurgeResult, F as CrmCachePurgeOptions } from './cache-purge-G5WkHckd.js';
3
+ export { G as CachePurgeDomain, H as CachePurgeMode } from './cache-purge-G5WkHckd.js';
4
+ import { p as preLogin, l as login, c as clientSession, a as logout, v as verifyEmail, r as registerExistingUser, f as forgetPassword, b as resetPassword, d as resetPasswordVerifyToken, e as verifyEmailResend, g as resendEmail, h as changePassword, m as me, i as profile, j as profileUpdate, k as verifyOtp, s as sendMfaOtp, n as pendingPasskeyOptions, o as pendingPasskeyVerify, q as getMfaStatus, t as setMfaPreferences, u as startPhoneVerify, w as confirmPhoneVerify, x as totpEnrollStart, y as totpEnrollVerify, z as totpDisable, A as webauthnRegisterOptions, B as webauthnRegisterVerify, C as webauthnAuthOptions, D as webauthnAuthVerify, E as listWebauthnCredentials, F as deleteWebauthnCredential, G as passkeyLoginOptions, H as passkeyLoginVerify, I as getSecurityOverview, J as getSecurityLoginActivity, K as getSecuritySessions, L as revokeSecuritySession, M as revokeOtherSecuritySessions, N as getSsoDetails, O as generateSsoUrl, P as ssoCallback, Q as getRefreshToken, R as getAuthRefreshToken, S as getAccessToken, T as isAuthenticated, U as isAuthenticateApp, V as isAccessTokenExpired, W as isExpiresAccessToken, X as LoggerConfig, Y as TwoFaVerificationRequest, Z as MfaOtpSendRequest, _ as MfaPendingPasskeyOptionsRequest, $ as MfaPendingPasskeyVerifyRequest, a0 as MfaStatusQuery, a1 as MfaPreferenceRequest, a2 as PhoneVerifyStartRequest, a3 as PhoneVerifyConfirmRequest, a4 as TotpEnrollVerifyRequest, a5 as TotpDisableRequest, a6 as WebAuthnVerifyRequest, a7 as PasskeyLoginOptionsRequest, a8 as PasskeyLoginVerifyRequest, a9 as SecurityOverviewQuery, aa as SecurityLoginActivityQuery, ab as SecuritySessionsQuery, ac as RevokeSecuritySessionPayload } from './authentication-BfYhAeMs.js';
5
+ export { ad as ActiveSession, ae as HttpClientConfig, af as LogLevel, ag as LoginHistoryRow, ah as LoginResponseData, ai as MfaEnrollmentStatus, aj as MfaMethod, ak as MfaMethodOption, al as PaginationResponse, am as SecurityOverview, an as StorageKeyConfig, ao as getFieldErrors, ap as getFormErrors, aq as initializeHttpClient } from './authentication-BfYhAeMs.js';
6
+ import { P as PreLoginPayload, L as LoginPayload, V as VerifyEmailPayload, R as ResetPasswordVerifyTokenPayload, a as ResetPasswordPayload, F as ForgetPasswordPayload, C as ChangePasswordPayload } from './index-CCwMopD8.js';
7
+ export { b as Config, M as MutationOptions } from './index-CCwMopD8.js';
37
8
 
38
- declare function preLogin(options?: MutationOptions<any, any>): {
39
- mutate: (payload?: PreLoginPayload | undefined) => Promise<any>;
40
- login: (payload?: PreLoginPayload | undefined) => Promise<any>;
41
- isLoading: () => boolean;
42
- };
43
- declare function login(options?: MutationOptions<any, any>): {
44
- mutate: (payload?: LoginPayload | undefined) => Promise<any>;
45
- login: (payload?: LoginPayload | undefined) => Promise<any>;
46
- isLoading: () => boolean;
47
- };
48
- declare function verifyEmail(options?: MutationOptions<any, any>): {
49
- mutate: (payload?: VerifyEmailPayload | undefined) => Promise<any>;
50
- verifyEmail: (payload?: VerifyEmailPayload | undefined) => Promise<any>;
51
- isLoading: () => boolean;
52
- };
53
- declare function resetPasswordVerifyToken(options?: MutationOptions<any, any>): {
54
- mutate: (payload?: ResetPasswordVerifyTokenPayload | undefined) => Promise<any>;
55
- resetPasswordVerifyToken: (payload?: ResetPasswordVerifyTokenPayload | undefined) => Promise<any>;
56
- isLoading: () => boolean;
57
- };
58
- declare function resetPassword(options?: MutationOptions<any, any>): {
59
- mutate: (payload?: ResetPasswordPayload | undefined) => Promise<any>;
60
- resetPassword: (payload?: ResetPasswordPayload | undefined) => Promise<any>;
61
- isLoading: () => boolean;
62
- };
63
- declare function forgetPassword(options?: MutationOptions<any, any>): {
64
- mutate: (payload?: ForgetPasswordPayload | undefined) => Promise<any>;
65
- forgetPassword: (payload?: ForgetPasswordPayload | undefined) => Promise<any>;
66
- isLoading: () => boolean;
67
- };
68
- declare function logout(options?: MutationOptions<any, any>): {
69
- mutate: (payload?: unknown) => Promise<any>;
70
- logout: (payload?: unknown) => Promise<any>;
71
- isLoading: () => boolean;
72
- };
73
- declare function registerExistingUser(options?: MutationOptions<any, any>): {
74
- mutate: (payload?: any) => Promise<any>;
75
- registerExistingUser: (payload?: any) => Promise<any>;
76
- isLoading: () => boolean;
77
- };
78
- declare function verifyEmailResend(options?: MutationOptions<any, any>): {
79
- mutate: (payload?: any) => Promise<any>;
80
- verifyEmailResend: (payload?: any) => Promise<any>;
81
- isLoading: () => boolean;
82
- };
83
- declare function resendEmail(options?: MutationOptions<any, any>): {
84
- mutate: (payload?: any) => Promise<any>;
85
- resendEmail: (payload?: any) => Promise<any>;
86
- isLoading: () => boolean;
87
- };
88
-
89
- declare function getSsoDetails(options?: MutationOptions<any, any>): {
90
- mutate: (payload?: unknown) => Promise<any>;
91
- getSsoDetails: (payload?: unknown) => Promise<any>;
92
- isLoading: () => boolean;
93
- };
94
- declare function generateSsoUrl(options?: MutationOptions<any, any>): {
95
- mutate: (payload?: PreLoginPayload | undefined) => Promise<any>;
96
- generateSsoUrl: (payload?: PreLoginPayload | undefined) => Promise<any>;
97
- isLoading: () => boolean;
98
- };
99
- declare function ssoCallback(options?: MutationOptions<any, any>): {
100
- mutate: (payload?: PreLoginPayload | undefined) => Promise<any>;
101
- ssoCallback: (payload?: PreLoginPayload | undefined) => Promise<any>;
102
- isLoading: () => boolean;
103
- };
104
-
105
- declare function me(options?: MutationOptions<any, any>): {
106
- mutate: (payload?: unknown) => Promise<any>;
107
- me: (payload?: unknown) => Promise<any>;
108
- isLoading: () => boolean;
109
- };
110
- declare function profile(options?: MutationOptions<any, any>): {
111
- mutate: (payload?: any) => Promise<any>;
112
- profile: (payload?: any) => Promise<any>;
113
- isLoading: () => boolean;
114
- };
115
- declare function changePassword(options?: MutationOptions<any, any>): {
116
- mutate: (payload?: ChangePasswordPayload | undefined) => Promise<any>;
117
- changePassword: (payload?: ChangePasswordPayload | undefined) => Promise<any>;
118
- isLoading: () => boolean;
119
- };
120
-
121
- declare function list$5(options?: MutationOptions<any, any>): {
122
- mutate: (payload?: any) => Promise<any>;
123
- getPipelines: (payload?: any) => Promise<any>;
124
- isLoading: () => boolean;
125
- };
126
-
127
- declare function list$4(options?: MutationOptions<any, any>): {
128
- mutate: (payload?: any) => Promise<any>;
129
- getStages: (payload?: any) => Promise<any>;
130
- isLoading: () => boolean;
131
- };
132
-
133
- declare function list$3(options?: MutationOptions<any, any>): {
134
- mutate: (payload?: any) => Promise<any>;
135
- getObjects: (payload?: any) => Promise<any>;
136
- isLoading: () => boolean;
137
- };
138
- declare function sideBarList(options?: MutationOptions<any, any>): {
139
- mutate: (payload?: any) => Promise<any>;
140
- getSideBarObjects: (payload?: any) => Promise<any>;
141
- isLoading: () => boolean;
142
- };
143
- declare function form(options?: MutationOptions<any, any>): {
144
- mutate: (payload?: any) => Promise<any>;
145
- getObjectsForm: (payload?: any) => Promise<any>;
146
- isLoading: () => boolean;
147
- };
148
- declare function objectFormOptions(options?: MutationOptions<any, any>): {
149
- mutate: (payload?: any) => Promise<any>;
150
- objectFormOptions: (payload?: any) => Promise<any>;
151
- isLoading: () => boolean;
152
- };
153
- declare function create$2(options?: MutationOptions<any, any>): {
154
- mutate: (payload?: any) => Promise<any>;
155
- createObject: (payload?: any) => Promise<any>;
156
- isLoading: () => boolean;
157
- };
158
- declare function createExisting(options?: MutationOptions<any, any>): {
159
- mutate: (payload?: any) => Promise<any>;
160
- createExistingObject: (payload?: any) => Promise<any>;
161
- isLoading: () => boolean;
162
- };
163
- declare function removeExisting(options?: MutationOptions<any, any>): {
164
- mutate: (payload?: any) => Promise<any>;
165
- removeExisting: (payload?: any) => Promise<any>;
166
- isLoading: () => boolean;
167
- };
168
- declare function details$1(options?: MutationOptions<any, any>): {
169
- mutate: (payload?: any) => Promise<any>;
170
- getObjectsDetails: (payload?: any) => Promise<any>;
171
- isLoading: () => boolean;
172
- };
173
- declare function update$2(options?: MutationOptions<any, any>): {
174
- mutate: (payload?: any) => Promise<any>;
175
- updateObjectsDetails: (payload?: any) => Promise<any>;
176
- isLoading: () => boolean;
177
- };
178
-
179
- declare function list$2(options?: MutationOptions<any, any>): {
180
- mutate: (payload?: any) => Promise<any>;
181
- getNotes: (payload?: any) => Promise<any>;
182
- isLoading: () => boolean;
183
- };
184
- declare function create$1(options?: MutationOptions<any, any>): {
185
- mutate: (payload?: any) => Promise<any>;
186
- createNote: (payload?: any) => Promise<any>;
187
- isLoading: () => boolean;
188
- };
189
- declare function update$1(options?: MutationOptions<any, any>): {
190
- mutate: (payload?: any) => Promise<any>;
191
- updateNote: (payload?: any) => Promise<any>;
192
- isLoading: () => boolean;
193
- };
194
-
195
- declare function list$1(options?: MutationOptions<any, any>): {
196
- mutate: (payload?: any) => Promise<any>;
197
- getEmails: (payload?: any) => Promise<any>;
198
- isLoading: () => boolean;
199
- };
200
- declare function create(options?: MutationOptions<any, any>): {
201
- mutate: (payload?: any) => Promise<any>;
202
- createEmail: (payload?: any) => Promise<any>;
203
- isLoading: () => boolean;
204
- };
205
- declare function update(options?: MutationOptions<any, any>): {
206
- mutate: (payload?: any) => Promise<any>;
207
- updateEmail: (payload?: any) => Promise<any>;
208
- isLoading: () => boolean;
209
- };
210
-
211
- declare function imageUpload(options?: MutationOptions<any, any>): {
212
- mutate: (payload?: any) => Promise<any>;
213
- imageUpload: (payload?: any) => Promise<any>;
214
- isLoading: () => boolean;
215
- };
216
- declare function attachmentUpload(options?: MutationOptions<any, any>): {
217
- mutate: (payload?: any) => Promise<any>;
218
- attachmentUpload: (payload?: any) => Promise<any>;
219
- isLoading: () => boolean;
220
- };
221
-
222
- declare function list(options?: MutationOptions<any, any>): {
223
- mutate: (payload?: any) => Promise<any>;
224
- getFiles: (payload?: any) => Promise<any>;
225
- isLoading: () => boolean;
226
- };
227
- declare function details(options?: MutationOptions<any, any>): {
228
- mutate: (payload?: any) => Promise<any>;
229
- getFile: (payload?: any) => Promise<any>;
230
- isLoading: () => boolean;
231
- };
232
- declare function addFolder(options?: MutationOptions<any, any>): {
233
- mutate: (payload?: any) => Promise<any>;
234
- addFolder: (payload?: any) => Promise<any>;
235
- isLoading: () => boolean;
236
- };
237
- declare function addFile(options?: MutationOptions<any, any>): {
238
- mutate: (payload?: any) => Promise<any>;
239
- addFile: (payload?: any) => Promise<any>;
240
- isLoading: () => boolean;
241
- };
242
-
243
- declare function purge(options?: MutationOptions<unknown, unknown>): {
244
- mutate: (payload?: Record<string, unknown> | undefined) => Promise<unknown>;
245
- purgeCache: (payload?: Record<string, unknown> | undefined) => Promise<unknown>;
246
- isLoading: () => boolean;
247
- };
248
- declare function purgeStatus(purgeJobId: string, options?: MutationOptions<unknown, unknown>): {
249
- mutate: (payload?: string | undefined) => Promise<unknown>;
250
- getPurgeStatus: () => Promise<unknown>;
251
- isLoading: () => boolean;
252
- };
253
-
254
- declare function getRefreshToken(): string | null;
255
-
256
- interface HttpClientConfig {
257
- baseURL?: string;
258
- timeout?: number;
259
- headers?: Record<string, string>;
260
- skipCurrentPublicPath?: () => boolean;
261
- routes?: {
262
- unauthorized?: string;
263
- login?: string;
9
+ declare const api: {
10
+ auth: {
11
+ preLogin: typeof preLogin;
12
+ login: typeof login;
13
+ clientSession: typeof clientSession;
14
+ logout: typeof logout;
15
+ verifyEmail: typeof verifyEmail;
16
+ registerExistingUser: typeof registerExistingUser;
17
+ forgetPassword: typeof forgetPassword;
18
+ resetPassword: typeof resetPassword;
19
+ resetPasswordVerifyToken: typeof resetPasswordVerifyToken;
20
+ verifyEmailResend: typeof verifyEmailResend;
21
+ resendEmail: typeof resendEmail;
22
+ changePassword: typeof changePassword;
23
+ me: typeof me;
24
+ profile: typeof profile;
25
+ updateProfile: typeof profileUpdate;
26
+ mfa: {
27
+ verifyOtp: typeof verifyOtp;
28
+ sendOtp: typeof sendMfaOtp;
29
+ pendingPasskeyOptions: typeof pendingPasskeyOptions;
30
+ pendingPasskeyVerify: typeof pendingPasskeyVerify;
31
+ getStatus: typeof getMfaStatus;
32
+ setPreferences: typeof setMfaPreferences;
33
+ startPhoneVerify: typeof startPhoneVerify;
34
+ confirmPhoneVerify: typeof confirmPhoneVerify;
35
+ totpEnrollStart: typeof totpEnrollStart;
36
+ totpEnrollVerify: typeof totpEnrollVerify;
37
+ totpDisable: typeof totpDisable;
38
+ webauthnRegisterOptions: typeof webauthnRegisterOptions;
39
+ webauthnRegisterVerify: typeof webauthnRegisterVerify;
40
+ webauthnAuthOptions: typeof webauthnAuthOptions;
41
+ webauthnAuthVerify: typeof webauthnAuthVerify;
42
+ listWebauthnCredentials: typeof listWebauthnCredentials;
43
+ deleteWebauthnCredential: typeof deleteWebauthnCredential;
44
+ passkeyLoginOptions: typeof passkeyLoginOptions;
45
+ passkeyLoginVerify: typeof passkeyLoginVerify;
46
+ };
47
+ security: {
48
+ getOverview: typeof getSecurityOverview;
49
+ getLoginActivity: typeof getSecurityLoginActivity;
50
+ getSessions: typeof getSecuritySessions;
51
+ revokeSession: typeof revokeSecuritySession;
52
+ revokeOtherSessions: typeof revokeOtherSecuritySessions;
53
+ };
54
+ sso: {
55
+ getDetails: typeof getSsoDetails;
56
+ generateUrl: typeof generateSsoUrl;
57
+ callback: typeof ssoCallback;
58
+ };
59
+ session: {
60
+ getRefreshToken: typeof getRefreshToken;
61
+ refreshAccessToken: typeof getAuthRefreshToken;
62
+ getAccessToken: typeof getAccessToken;
63
+ isAuthenticated: typeof isAuthenticated;
64
+ isAuthenticateApp: typeof isAuthenticateApp;
65
+ isAccessTokenExpired: typeof isAccessTokenExpired;
66
+ isExpiresAccessToken: typeof isExpiresAccessToken;
67
+ isCookieExpired: (key: string) => boolean;
68
+ };
264
69
  };
265
- hubId?: string;
266
- devPortalId?: string;
267
- onLogout?: () => void | Promise<void>;
268
- }
269
- declare function initializeHttpClient(clientConfig: HttpClientConfig): void;
270
- declare function getFormErrors(error: unknown): string | null;
271
- declare function getFieldErrors(error: unknown): any;
272
- declare function getAuthRefreshToken(refreshToken: string | null): Promise<{
273
- token: string | null;
274
- success: boolean;
275
- }>;
276
-
277
- declare function getAccessToken(): string | null;
278
- declare function isExpiresAccessToken(): boolean;
279
- declare function isAuthenticateApp(): boolean;
280
-
281
- declare function useTable(): any;
70
+ crm: {
71
+ pipelines: {
72
+ list: typeof list;
73
+ };
74
+ stages: {
75
+ list: typeof list$1;
76
+ };
77
+ objects: {
78
+ list: typeof list$2;
79
+ listSidebar: typeof sideBarList;
80
+ getForm: typeof form;
81
+ getFormOptions: typeof objectFormOptions;
82
+ getDetails: typeof details;
83
+ updateDetails: typeof update;
84
+ create: typeof create;
85
+ createExisting: typeof createExisting;
86
+ removeExisting: typeof removeExisting;
87
+ };
88
+ notes: {
89
+ list: typeof list$3;
90
+ create: typeof create$1;
91
+ update: typeof update$1;
92
+ };
93
+ emails: {
94
+ list: typeof list$4;
95
+ create: typeof create$2;
96
+ update: typeof update$2;
97
+ };
98
+ files: {
99
+ list: typeof list$5;
100
+ getDetails: typeof details$1;
101
+ download: typeof download;
102
+ addFolder: typeof addFolder;
103
+ addFile: typeof addFile;
104
+ };
105
+ uploads: {
106
+ uploadImage: typeof imageUpload;
107
+ uploadAttachment: typeof attachmentUpload;
108
+ };
109
+ cache: {
110
+ purge: typeof purge;
111
+ getPurgeStatus: typeof purgeStatus;
112
+ };
113
+ };
114
+ navigation: {
115
+ url: {
116
+ makeLink: () => {
117
+ makeLink: (props: any) => string;
118
+ };
119
+ updateLink: () => {
120
+ updateLink: (props: any, displayName?: string) => Promise<void>;
121
+ getLinkParams: (displayName?: string) => {
122
+ [k: string]: any;
123
+ } | null;
124
+ filterParams: (displayName?: string) => {
125
+ [k: string]: any;
126
+ } | null;
127
+ };
128
+ };
129
+ route: {
130
+ getDetails: () => {
131
+ routeDetails: any;
132
+ };
133
+ getParamDetails: (props?: any, isDetailsPage?: boolean) => {
134
+ breadcrumbs: any;
135
+ paramsObject: any;
136
+ params: any;
137
+ parentAccessLabel: boolean;
138
+ };
139
+ };
140
+ breadcrumbs: {
141
+ getList: () => any;
142
+ getTableTitle: (componentName: string, title: string, ticketTableTitle: string) => {
143
+ associatedtableTitleSingular: any;
144
+ tableTitle: any;
145
+ singularTableTitle: any;
146
+ };
147
+ getFormTitle: (type: string, title: string, activeTab: string) => {
148
+ objectName: any;
149
+ puralObjectName: any;
150
+ dialogTitle: any;
151
+ };
152
+ };
153
+ };
154
+ };
282
155
 
283
156
  declare const DEFAULT_HUBSPOT_TIMEZONE = "Asia/Kolkata";
284
157
  declare function getCurrentTimeZone(): string;
@@ -293,45 +166,104 @@ type HubSpotActivityDateTimeParts = {
293
166
  declare function formatHubSpotActivityDateTimeParts(timestamp: unknown, timeZone?: string): HubSpotActivityDateTimeParts | null;
294
167
  declare function formatHubSpotActivityDateTime(timestamp: unknown, timeZone?: string): string;
295
168
 
169
+ declare function buildCrmListPurgeTarget(objectTypeId: string, listQuery?: CachePurgeListQuery, recordIds?: string[]): CachePurgeTarget;
170
+ declare function buildCrmSinglePurgeTarget(objectTypeId: string, recordIds: string[], listQuery?: CachePurgeListQuery): CachePurgeTarget;
171
+ declare function buildEngagementPurgeTarget(objectTypeId: string, recordIds: string[], views: Extract<CachePurgeView, 'notes' | 'emails' | 'files'>[], options?: {
172
+ fileIds?: string[];
173
+ listQuery?: CachePurgeListQuery;
174
+ engagementItemIds?: string[];
175
+ }): CachePurgeTarget;
176
+ declare function buildUserSessionPurgeTarget(): CachePurgeTarget;
177
+ declare function buildPortalConfigPurgeTarget(objectTypeIds: string[]): CachePurgeTarget;
178
+ declare function mergePurgeTargets(...targets: CachePurgeTarget[]): CachePurgeTarget[];
179
+ declare function buildCachePurgeRequest(targets: CachePurgeTarget[], options?: {
180
+ mode?: 'soft' | 'hard';
181
+ warm?: boolean;
182
+ includeContactAccess?: boolean;
183
+ includeShortOnHard?: boolean;
184
+ confirmPortalWide?: boolean;
185
+ postCrmWrite?: boolean;
186
+ warmListDelayMs?: number;
187
+ }): CachePurgeRequest;
188
+
189
+ declare function createCachePurgeJob(request: CachePurgeRequest, options?: CreateCachePurgeJobOptions): Promise<PurgeResult>;
190
+
191
+ declare function purgeCrmObjectDataCache(options: CrmCachePurgeOptions): Promise<boolean>;
192
+ declare function purgeCrmListCacheAfterCrmWrite(options: CrmCachePurgeOptions): Promise<PurgeResult>;
193
+ declare function purgeCrmDetailAndListAfterCrmWrite(options: CrmCachePurgeOptions & {
194
+ recordIds: string[];
195
+ }): Promise<PurgeResult>;
196
+ declare function purgeCrmListCache(options: CrmCachePurgeOptions): Promise<PurgeResult>;
197
+ declare function purgeCrmRecordCache(options: CrmCachePurgeOptions & {
198
+ recordIds: string[];
199
+ }): Promise<PurgeResult>;
200
+ declare function purgeEngagementCaches(options: CrmCachePurgeOptions & {
201
+ recordIds: string[];
202
+ views: ('notes' | 'emails' | 'files')[];
203
+ }): Promise<PurgeResult>;
204
+ declare function purgeEngagementCachesAfterCrmWrite(options: CrmCachePurgeOptions & {
205
+ recordIds: string[];
206
+ views: ('notes' | 'emails')[];
207
+ engagementItemIds?: string[];
208
+ }): Promise<PurgeResult>;
209
+ declare function purgeCrmCombined(options: CrmCachePurgeOptions & {
210
+ targets: CachePurgeTarget[];
211
+ }): Promise<PurgeResult>;
212
+
213
+ declare function extractHubspotRecordIdFromWriteResponse(response: unknown): string | undefined;
214
+
215
+ declare function extractEngagementItemIdFromWriteResponse(response: unknown): string | undefined;
216
+
217
+ declare function toCachePurgeListQuery(raw: Record<string, unknown> | null | undefined): CachePurgeListQuery;
218
+ type ResolveCrmListPurgeQueryOptions = {
219
+ componentName?: string;
220
+ hubspotObjectTypeId?: string;
221
+ tableQueryParams?: Record<string, unknown> | null;
222
+ multiObjectsQueryParams?: Record<string, Record<string, unknown>>;
223
+ writeContext?: Record<string, string>;
224
+ };
225
+ declare function resolveCrmListPurgeQuery(options: ResolveCrmListPurgeQueryOptions): CachePurgeListQuery;
226
+
227
+ type HttpErrorKind = 'service_unavailable' | 'network' | 'timeout' | 'auth' | 'client' | 'server' | 'unknown';
228
+ declare const SERVICE_UNAVAILABLE_MESSAGE = "Service temporarily unavailable. Please try again in a few minutes.";
229
+ declare function classifyHttpError(error: unknown): HttpErrorKind;
230
+ declare function isServiceUnavailableError(error: unknown): boolean;
231
+ declare function getHttpErrorMessage(error: unknown): string;
232
+
233
+ declare function configureLogger(config?: LoggerConfig): void;
234
+
296
235
  declare const Client: {
297
- authentication: {
298
- preLogin: (data: PreLoginPayload) => Promise<unknown>;
299
- login: (data: LoginPayload) => Promise<unknown>;
300
- verifyEmail: (data: VerifyEmailPayload) => Promise<unknown>;
301
- resetPasswordVerifyToken: (data: ResetPasswordVerifyTokenPayload) => Promise<unknown>;
302
- resetPassword: (data: ResetPasswordPayload) => Promise<unknown>;
303
- forgetPassword: (data: ForgetPasswordPayload) => Promise<unknown>;
304
- registerExistingUser: (data: any) => Promise<unknown>;
305
- verifyEmailResend: (data: any) => Promise<unknown>;
306
- resendEmail: (data: any) => Promise<unknown>;
307
- logout: () => Promise<unknown>;
308
- };
309
- sso: {
310
- getSsoDetails: () => Promise<unknown>;
311
- generateSsoUrl: (payload: any) => Promise<unknown>;
312
- ssoCallback: (payload: any) => Promise<unknown>;
313
- };
314
- user: {
315
- me: () => Promise<unknown>;
316
- profile: (payload: any) => Promise<unknown>;
317
- changePassword: (data: ChangePasswordPayload) => Promise<unknown>;
318
- };
319
- pipeline: {
320
- list: (payload?: any, param?: any) => Promise<unknown>;
236
+ cache: {
237
+ purge: (body: Record<string, unknown>, headers?: Record<string, string>) => Promise<unknown>;
238
+ purgeStatus: (purgeJobId: string) => Promise<unknown>;
321
239
  };
322
- stage: {
323
- list: (props?: any) => Promise<unknown>;
240
+ mfa: {
241
+ verifyOtp: (data: TwoFaVerificationRequest) => Promise<unknown>;
242
+ sendPendingOtp: (data: MfaOtpSendRequest) => Promise<unknown>;
243
+ pendingPasskeyOptions: (data: MfaPendingPasskeyOptionsRequest) => Promise<unknown>;
244
+ pendingPasskeyVerify: (data: MfaPendingPasskeyVerifyRequest) => Promise<unknown>;
245
+ getStatus: (query?: MfaStatusQuery) => Promise<unknown>;
246
+ setPreferences: (data: MfaPreferenceRequest, query?: MfaStatusQuery) => Promise<unknown>;
247
+ startPhoneVerify: (data: PhoneVerifyStartRequest) => Promise<unknown>;
248
+ confirmPhoneVerify: (data: PhoneVerifyConfirmRequest) => Promise<unknown>;
249
+ totpEnrollStart: (query?: MfaStatusQuery) => Promise<unknown>;
250
+ totpEnrollVerify: (data: TotpEnrollVerifyRequest) => Promise<unknown>;
251
+ totpDisable: (data: TotpDisableRequest) => Promise<unknown>;
252
+ webauthnRegisterOptions: (query?: MfaStatusQuery) => Promise<unknown>;
253
+ webauthnRegisterVerify: (data: WebAuthnVerifyRequest) => Promise<unknown>;
254
+ webauthnAuthOptions: (query?: MfaStatusQuery) => Promise<unknown>;
255
+ webauthnAuthVerify: (data: WebAuthnVerifyRequest) => Promise<unknown>;
256
+ listWebauthnCredentials: (query?: MfaStatusQuery) => Promise<unknown>;
257
+ deleteWebauthnCredential: (credentialRecordId: string | number, query?: MfaStatusQuery) => Promise<unknown>;
258
+ passkeyLoginOptions: (data: PasskeyLoginOptionsRequest) => Promise<unknown>;
259
+ passkeyLoginVerify: (data: PasskeyLoginVerifyRequest) => Promise<unknown>;
324
260
  };
325
- object: {
326
- list: (payload?: any, param?: any) => Promise<unknown>;
327
- sideBarList: (payload?: any) => Promise<unknown>;
328
- form: (payload?: any) => Promise<unknown>;
329
- objectFormOptions: (payload?: any) => Promise<unknown>;
330
- create: (props?: any) => Promise<unknown>;
331
- createExisting: (props?: any) => Promise<unknown>;
332
- removeExisting: (props?: any) => Promise<unknown>;
333
- details: (props?: any) => Promise<unknown>;
334
- update: (props?: any) => Promise<unknown>;
261
+ security: {
262
+ getOverview: (query?: SecurityOverviewQuery) => Promise<unknown>;
263
+ getLoginActivity: (query?: SecurityLoginActivityQuery) => Promise<unknown>;
264
+ getSessions: (query?: SecuritySessionsQuery) => Promise<unknown>;
265
+ revokeSession: (payload: RevokeSecuritySessionPayload) => Promise<unknown>;
266
+ revokeOtherSessions: (refreshToken?: string) => Promise<unknown>;
335
267
  };
336
268
  note: {
337
269
  list: (props?: any) => Promise<unknown>;
@@ -347,117 +279,184 @@ declare const Client: {
347
279
  image: (props?: any) => Promise<unknown>;
348
280
  attachment: (props?: any) => Promise<unknown>;
349
281
  };
350
- cache: {
351
- purge: (body: Record<string, unknown>, headers?: Record<string, string>) => Promise<unknown>;
352
- purgeStatus: (purgeJobId: string) => Promise<unknown>;
353
- };
354
282
  file: {
355
283
  list: (props?: any) => Promise<unknown>;
356
284
  details: (props?: any) => Promise<unknown>;
285
+ download: (props?: any) => Promise<unknown>;
357
286
  addFolder: (props?: any) => Promise<unknown>;
358
287
  addFile: (props?: any) => Promise<unknown>;
359
288
  };
289
+ pipeline: {
290
+ list: (payload?: any, param?: any) => Promise<unknown>;
291
+ };
292
+ stage: {
293
+ list: (props?: any) => Promise<unknown>;
294
+ };
295
+ object: {
296
+ list: (payload?: any, param?: any) => Promise<unknown>;
297
+ sideBarList: (payload?: any) => Promise<unknown>;
298
+ form: (payload?: any) => Promise<unknown>;
299
+ objectFormOptions: (payload?: any) => Promise<unknown>;
300
+ create: (props?: any) => Promise<unknown>;
301
+ createExisting: (props?: any) => Promise<unknown>;
302
+ removeExisting: (props?: any) => Promise<unknown>;
303
+ details: (props?: any) => Promise<unknown>;
304
+ update: (props?: any) => Promise<unknown>;
305
+ };
306
+ authentication: {
307
+ preLogin: (data: PreLoginPayload) => Promise<unknown>;
308
+ login: (data: LoginPayload) => Promise<unknown>;
309
+ verifyOtp: (data: TwoFaVerificationRequest) => Promise<unknown>;
310
+ verifyEmail: (data: VerifyEmailPayload) => Promise<unknown>;
311
+ resetPasswordVerifyToken: (data: ResetPasswordVerifyTokenPayload) => Promise<unknown>;
312
+ resetPassword: (data: ResetPasswordPayload) => Promise<unknown>;
313
+ forgetPassword: (data: ForgetPasswordPayload) => Promise<unknown>;
314
+ registerExistingUser: (data: any) => Promise<unknown>;
315
+ verifyEmailResend: (data: any) => Promise<unknown>;
316
+ resendEmail: (data: any) => Promise<unknown>;
317
+ logout: () => Promise<unknown>;
318
+ clientSession: (payload: {
319
+ accessToken: string;
320
+ refreshToken?: string;
321
+ }) => Promise<unknown>;
322
+ };
323
+ sso: {
324
+ getSsoDetails: () => Promise<unknown>;
325
+ generateSsoUrl: (payload: any) => Promise<unknown>;
326
+ ssoCallback: (payload: any) => Promise<unknown>;
327
+ };
328
+ user: {
329
+ me: () => Promise<unknown>;
330
+ profile: (payload: any) => Promise<unknown>;
331
+ profileUpdate: (props: any) => Promise<unknown>;
332
+ changePassword: (data: ChangePasswordPayload) => Promise<unknown>;
333
+ };
360
334
  };
361
335
 
362
- declare const index_Client: typeof Client;
363
- declare namespace index {
364
- export { index_Client as Client };
365
- }
366
-
367
- declare const api: {
368
- preLogin: typeof preLogin;
369
- login: typeof login;
370
- verifyEmail: typeof verifyEmail;
371
- resetPasswordVerifyToken: typeof resetPasswordVerifyToken;
372
- resetPassword: typeof resetPassword;
373
- registerExistingUser: typeof registerExistingUser;
374
- verifyEmailResend: typeof verifyEmailResend;
375
- resendEmail: typeof resendEmail;
376
- getSsoDetails: typeof getSsoDetails;
377
- generateSsoUrl: typeof generateSsoUrl;
378
- ssoCallback: typeof ssoCallback;
379
- forgetPassword: typeof forgetPassword;
380
- logout: typeof logout;
381
- me: typeof me;
382
- profile: typeof profile;
383
- changePassword: typeof changePassword;
384
- pipelines: typeof list$5;
385
- stages: typeof list$4;
386
- objects: typeof list$3;
387
- sideBarObjects: typeof sideBarList;
388
- objectsForm: typeof form;
389
- createObject: typeof create$2;
390
- createExistingObject: typeof createExisting;
391
- removeExistingObject: typeof removeExisting;
392
- objectsDetails: typeof details$1;
393
- updateObjectsDetails: typeof update$2;
394
- objectFormOptions: typeof objectFormOptions;
395
- notes: typeof list$2;
396
- createNote: typeof create$1;
397
- updateNote: typeof update$1;
398
- emails: typeof list$1;
399
- createEmail: typeof create;
400
- updateEmail: typeof update;
401
- imageUpload: typeof imageUpload;
402
- attachmentUpload: typeof attachmentUpload;
403
- files: typeof list;
404
- file: typeof details;
405
- addFolder: typeof addFolder;
406
- addFile: typeof addFile;
407
- purgeCache: typeof purge;
408
- cachePurgeStatus: typeof purgeStatus;
409
- getRefreshToken: typeof getRefreshToken;
410
- getAuthRefreshToken: typeof getAuthRefreshToken;
411
- isCookieExpired: (key: string) => boolean;
412
- isExpiresAccessToken: typeof isExpiresAccessToken;
413
- isAuthenticateApp: typeof isAuthenticateApp;
414
- getAccessToken: typeof getAccessToken;
336
+ declare const config: {
337
+ readonly hubId: any;
338
+ readonly devPortalId: any;
339
+ readonly portalId: any;
340
+ readonly devApiUrl: any;
341
+ };
342
+ declare const setConfig: {
343
+ setDevPortalId(portalId: string): void;
415
344
  };
345
+
416
346
  declare const store: {
417
347
  storage: {
418
348
  set: (key: string, value: unknown) => void;
419
349
  get: <T>(key: string) => T | null;
420
350
  remove: (key: string) => void;
421
351
  };
422
- useTable: typeof useTable;
423
- };
424
- declare const breadcrumbsDetails: {
425
- getBreadcrumbs: () => any;
426
- getTableTitle: (componentName: string, title: string, ticketTableTitle: string) => {
427
- associatedtableTitleSingular: any;
428
- tableTitle: any;
429
- singularTableTitle: any;
352
+ tableUi: {
353
+ store: {
354
+ getState(): TableUiState;
355
+ setState(partial: Partial<TableUiState>): void;
356
+ subscribe(listener: (state: TableUiState) => void): () => boolean;
357
+ };
358
+ actions: {
359
+ setTableUniqueId(v: string | null): void;
360
+ setSort(v: string): void;
361
+ setLimit(v: number): void;
362
+ setAfter(v: string): void;
363
+ setPage(v: number | string): void;
364
+ setNextPage(v: number | string): void;
365
+ setStageId(v: number | string): void;
366
+ setTotalItems(v: number): void;
367
+ setNumOfPages(v: number): void;
368
+ setCurrentPage(v: number): void;
369
+ setSearch(v: string): void;
370
+ setFilterPropertyName(v: string): void;
371
+ setFilterOperator(v: string): void;
372
+ setFilterValue(v: string): void;
373
+ setIsPrimaryCompany(v: boolean | null): void;
374
+ setTableFilterData(v: Record<string, unknown>): void;
375
+ setTableDefPermissions(v: Record<string, unknown>): void;
376
+ setView(mView: string | null): void;
377
+ changePipeline(mView: string | null): void;
378
+ setSelectedPipeline(pipelines: any[], pipeLineId?: string): void;
379
+ resetTableParam(): void;
380
+ getTableParam(companyAsMediator?: boolean, currentPageOverride?: number): {
381
+ after: string | number;
382
+ } | {
383
+ after?: string | undefined;
384
+ limit: number;
385
+ page: string | number;
386
+ };
387
+ setGridData(type: string, deals: any[]): Promise<any[]>;
388
+ setDefaultPipeline(data: any, hubspotObjectTypeId: string): any;
389
+ };
430
390
  };
431
- getFormTitle: (type: string, title: string, activeTab: string) => {
432
- objectName: any;
433
- puralObjectName: any;
434
- dialogTitle: any;
391
+ table: {
392
+ store: {
393
+ getState(): TableState;
394
+ setState(partial: Partial<TableState>): void;
395
+ subscribe(listener: (state: TableState) => void): () => boolean;
396
+ };
397
+ actions: {
398
+ setObjectsQueryParams(params: any): void;
399
+ setMultiObjectsQueryParams(hubspotObjectTypeId: string, params: any): void;
400
+ setObjectsData(response: any, context?: {
401
+ stageId?: string | number;
402
+ }): Promise<void>;
403
+ setTableData(response: any, payload: any): void;
404
+ modifiedObjectsData(results: any): void;
405
+ clearTablePrependData(): void;
406
+ setTablePrependData(response: any, props?: any): Promise<void>;
407
+ };
435
408
  };
436
- };
437
- declare const url: {
438
- useMakeLink: () => {
439
- makeLink: (props: any) => string;
409
+ user: {
410
+ store: {
411
+ getState(): UserState;
412
+ setState(partial: Partial<UserState>): void;
413
+ subscribe(listener: (state: UserState) => void): () => boolean;
414
+ };
415
+ actions: {
416
+ setProfile(response: any): void;
417
+ };
440
418
  };
441
- useUpdateLink: () => {
442
- updateLink: (props: any, displayName?: string) => Promise<void>;
443
- getLinkParams: (displayName?: string) => {
444
- [k: string]: any;
445
- } | null;
446
- filterParams: (displayName?: string) => {
447
- [k: string]: any;
448
- } | null;
419
+ note: {
420
+ store: {
421
+ getState(): NoteState;
422
+ setState(partial: Partial<NoteState>): void;
423
+ subscribe(listener: (state: NoteState) => void): () => boolean;
424
+ };
425
+ actions: {
426
+ setListQueryParams(params: any): void;
427
+ setNotes(response: any, payload: any): void;
428
+ setPrependNote(response: any): Promise<void>;
429
+ clearPrependNotes(): void;
430
+ updatePrependNote(response: any): Promise<any>;
431
+ };
449
432
  };
450
- };
451
- declare const routeParam: {
452
- getRouteDetails: () => {
453
- routeDetails: any;
433
+ email: {
434
+ store: {
435
+ getState(): EmailState;
436
+ setState(partial: Partial<EmailState>): void;
437
+ subscribe(listener: (state: EmailState) => void): () => boolean;
438
+ };
439
+ actions: {
440
+ setListQueryParams(params: any): void;
441
+ setEmails(response: any, payload: any): void;
442
+ setPrependEmail(response: any): Promise<void>;
443
+ clearPrependEmails(): void;
444
+ updatePrependEmail(response: any): Promise<any>;
445
+ };
454
446
  };
455
- getParamDetails: (props?: any, isDetailsPage?: boolean) => {
456
- breadcrumbs: any;
457
- paramsObject: any;
458
- params: any;
459
- parentAccessLabel: boolean;
447
+ sync: {
448
+ store: {
449
+ getState(): SyncState;
450
+ setState(partial: Partial<SyncState>): void;
451
+ subscribe(listener: (state: SyncState) => void): () => boolean;
452
+ };
453
+ actions: {
454
+ setIsSyncLoading(status: boolean): void;
455
+ setSync(status: boolean): void;
456
+ setApiSync(status: boolean): void;
457
+ setSyncDisable(status: boolean): void;
458
+ };
460
459
  };
461
460
  };
462
461
 
463
- export { type ChangePasswordPayload, type Config, DEFAULT_HUBSPOT_TIMEZONE, type ForgetPasswordPayload, type HttpClientConfig, type HubSpotActivityDateTimeParts, type LoginPayload, type MutationOptions, type PreLoginPayload, type ResetPasswordPayload, type ResetPasswordVerifyTokenPayload, type VerifyEmailPayload, api, breadcrumbsDetails, index as clint, formatGmtOffset, formatHubSpotActivityDateTime, formatHubSpotActivityDateTimeParts, getCurrentTimeZone, getFieldErrors, getFormErrors, initializeHttpClient, normalizeToTimestamp, routeParam, store, url };
462
+ export { CachePurgeListQuery, CachePurgeRequest, CachePurgeTarget, CachePurgeView, ChangePasswordPayload, Client, CreateCachePurgeJobOptions, CrmCachePurgeOptions, DEFAULT_HUBSPOT_TIMEZONE, ForgetPasswordPayload, type HttpErrorKind, type HubSpotActivityDateTimeParts, LoggerConfig, LoginPayload, PreLoginPayload, PurgeResult, ResetPasswordPayload, ResetPasswordVerifyTokenPayload, SERVICE_UNAVAILABLE_MESSAGE, TwoFaVerificationRequest, VerifyEmailPayload, api, buildCachePurgeRequest, buildCrmListPurgeTarget, buildCrmSinglePurgeTarget, buildEngagementPurgeTarget, buildPortalConfigPurgeTarget, buildUserSessionPurgeTarget, classifyHttpError, configureLogger, createCachePurgeJob, extractEngagementItemIdFromWriteResponse, extractHubspotRecordIdFromWriteResponse, formatGmtOffset, formatHubSpotActivityDateTime, formatHubSpotActivityDateTimeParts, getCurrentTimeZone, getHttpErrorMessage, config as hubContext, isServiceUnavailableError, mergePurgeTargets, normalizeToTimestamp, purgeCrmCombined, purgeCrmDetailAndListAfterCrmWrite, purgeCrmListCache, purgeCrmListCacheAfterCrmWrite, purgeCrmObjectDataCache, purgeCrmRecordCache, purgeEngagementCaches, purgeEngagementCachesAfterCrmWrite, resolveCrmListPurgeQuery, setConfig as setHubContext, store, toCachePurgeListQuery };