woodsportal-client-sdk 1.1.5-dev.0 → 4.0.0-dev.1
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/CHANGELOG.md +109 -0
- package/README.md +171 -77
- package/dist/adapters/angular/index.d.ts +68 -5
- package/dist/adapters/angular/index.js +8 -7
- package/dist/adapters/angular/index.js.map +1 -1
- package/dist/adapters/react/index.d.ts +68 -5
- package/dist/adapters/react/index.js +7 -6
- package/dist/adapters/react/index.js.map +1 -1
- package/dist/adapters/vue/index.d.ts +68 -5
- package/dist/adapters/vue/index.js +8 -7
- package/dist/adapters/vue/index.js.map +1 -1
- package/dist/auth-utils-VT7HSLMA.js +3 -0
- package/dist/{auth-utils-A4WPJMPK.js.map → auth-utils-VT7HSLMA.js.map} +1 -1
- package/dist/authentication-BfYhAeMs.d.ts +463 -0
- package/dist/cache-purge-G5WkHckd.d.ts +236 -0
- package/dist/chunk-3FUHGFAQ.js +167 -0
- package/dist/chunk-3FUHGFAQ.js.map +1 -0
- package/dist/chunk-4CEUGRRD.js +2034 -0
- package/dist/chunk-4CEUGRRD.js.map +1 -0
- package/dist/chunk-4CTHZLKL.js +20 -0
- package/dist/chunk-4CTHZLKL.js.map +1 -0
- package/dist/chunk-5TLHHOP5.js +1424 -0
- package/dist/chunk-5TLHHOP5.js.map +1 -0
- package/dist/chunk-7KE6XWM5.js +95 -0
- package/dist/chunk-7KE6XWM5.js.map +1 -0
- package/dist/{chunk-Y5MRAAGK.js → chunk-AYTO6ND7.js} +3 -3
- package/dist/chunk-AYTO6ND7.js.map +1 -0
- package/dist/chunk-DZKNBN72.js +399 -0
- package/dist/chunk-DZKNBN72.js.map +1 -0
- package/dist/chunk-F7B4FHUQ.js +504 -0
- package/dist/chunk-F7B4FHUQ.js.map +1 -0
- package/dist/entries/auth.d.ts +68 -0
- package/dist/entries/auth.js +13 -0
- package/dist/entries/auth.js.map +1 -0
- package/dist/entries/crm.d.ts +218 -0
- package/dist/entries/crm.js +24 -0
- package/dist/entries/crm.js.map +1 -0
- package/dist/index-CCwMopD8.d.ts +38 -0
- package/dist/index.d.ts +415 -406
- package/dist/index.js +23 -1720
- package/dist/index.js.map +1 -1
- package/dist/use-sync-DpazhM4d.d.ts +60 -0
- package/dist/use-uploader-2F1zc7Cl.d.ts +23 -0
- package/package.json +53 -8
- package/dist/auth-utils-A4WPJMPK.js +0 -4
- package/dist/chunk-J7MDPY5P.js +0 -54
- package/dist/chunk-J7MDPY5P.js.map +0 -1
- package/dist/chunk-NB7AINV4.js +0 -35
- package/dist/chunk-NB7AINV4.js.map +0 -1
- package/dist/chunk-RDCT25UV.js +0 -1066
- package/dist/chunk-RDCT25UV.js.map +0 -1
- package/dist/chunk-Y5MRAAGK.js.map +0 -1
- package/dist/chunk-YLZA5S7A.js +0 -102
- package/dist/chunk-YLZA5S7A.js.map +0 -1
- package/dist/use-sync-LbURBOs_.d.ts +0 -29
package/dist/index.d.ts
CHANGED
|
@@ -1,284 +1,157 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
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
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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
|
-
|
|
323
|
-
|
|
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
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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,194 @@ 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
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
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
|
+
buildListTableParams(options?: {
|
|
388
|
+
companyAsMediator?: boolean;
|
|
389
|
+
currentPageOverride?: number;
|
|
390
|
+
}): {
|
|
391
|
+
after: string | number;
|
|
392
|
+
} | {
|
|
393
|
+
after?: string | undefined;
|
|
394
|
+
limit: number;
|
|
395
|
+
page: string | number;
|
|
396
|
+
};
|
|
397
|
+
setGridData(type: string, deals: any[]): Promise<any[]>;
|
|
398
|
+
setDefaultPipeline(data: any, hubspotObjectTypeId: string): any;
|
|
399
|
+
};
|
|
430
400
|
};
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
401
|
+
table: {
|
|
402
|
+
store: {
|
|
403
|
+
getState(): TableState;
|
|
404
|
+
setState(partial: Partial<TableState>): void;
|
|
405
|
+
subscribe(listener: (state: TableState) => void): () => boolean;
|
|
406
|
+
};
|
|
407
|
+
actions: {
|
|
408
|
+
setObjectsQueryParams(params: any): void;
|
|
409
|
+
setMultiObjectsQueryParams(hubspotObjectTypeId: string, params: any): void;
|
|
410
|
+
setObjectsData(response: any, context?: {
|
|
411
|
+
stageId?: string | number;
|
|
412
|
+
}): Promise<void>;
|
|
413
|
+
setTableData(response: any, payload: any): void;
|
|
414
|
+
modifiedObjectsData(results: any): void;
|
|
415
|
+
clearTablePrependData(): void;
|
|
416
|
+
setTablePrependData(response: any, props?: any): Promise<void>;
|
|
417
|
+
};
|
|
435
418
|
};
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
419
|
+
user: {
|
|
420
|
+
store: {
|
|
421
|
+
getState(): UserState;
|
|
422
|
+
setState(partial: Partial<UserState>): void;
|
|
423
|
+
subscribe(listener: (state: UserState) => void): () => boolean;
|
|
424
|
+
};
|
|
425
|
+
actions: {
|
|
426
|
+
setProfile(response: any): void;
|
|
427
|
+
};
|
|
440
428
|
};
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
429
|
+
note: {
|
|
430
|
+
store: {
|
|
431
|
+
getState(): NoteState;
|
|
432
|
+
setState(partial: Partial<NoteState>): void;
|
|
433
|
+
subscribe(listener: (state: NoteState) => void): () => boolean;
|
|
434
|
+
};
|
|
435
|
+
actions: {
|
|
436
|
+
setListQueryParams(params: any): void;
|
|
437
|
+
setNotes(response: any, payload: any): void;
|
|
438
|
+
setPrependNote(response: any): Promise<void>;
|
|
439
|
+
clearPrependNotes(): void;
|
|
440
|
+
updatePrependNote(response: any): Promise<any>;
|
|
441
|
+
};
|
|
449
442
|
};
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
443
|
+
email: {
|
|
444
|
+
store: {
|
|
445
|
+
getState(): EmailState;
|
|
446
|
+
setState(partial: Partial<EmailState>): void;
|
|
447
|
+
subscribe(listener: (state: EmailState) => void): () => boolean;
|
|
448
|
+
};
|
|
449
|
+
actions: {
|
|
450
|
+
setListQueryParams(params: any): void;
|
|
451
|
+
setEmails(response: any, payload: any): void;
|
|
452
|
+
setPrependEmail(response: any): Promise<void>;
|
|
453
|
+
clearPrependEmails(): void;
|
|
454
|
+
updatePrependEmail(response: any): Promise<any>;
|
|
455
|
+
};
|
|
454
456
|
};
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
457
|
+
sync: {
|
|
458
|
+
store: {
|
|
459
|
+
getState(): SyncState;
|
|
460
|
+
setState(partial: Partial<SyncState>): void;
|
|
461
|
+
subscribe(listener: (state: SyncState) => void): () => boolean;
|
|
462
|
+
};
|
|
463
|
+
actions: {
|
|
464
|
+
setIsSyncLoading(status: boolean): void;
|
|
465
|
+
setSync(status: boolean): void;
|
|
466
|
+
setApiSync(status: boolean): void;
|
|
467
|
+
setSyncDisable(status: boolean): void;
|
|
468
|
+
};
|
|
460
469
|
};
|
|
461
470
|
};
|
|
462
471
|
|
|
463
|
-
export {
|
|
472
|
+
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 };
|