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.
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 +68 -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 +68 -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 +68 -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-4CEUGRRD.js +2034 -0
  19. package/dist/chunk-4CEUGRRD.js.map +1 -0
  20. package/dist/chunk-4CTHZLKL.js +20 -0
  21. package/dist/chunk-4CTHZLKL.js.map +1 -0
  22. package/dist/chunk-5TLHHOP5.js +1424 -0
  23. package/dist/chunk-5TLHHOP5.js.map +1 -0
  24. package/dist/chunk-7KE6XWM5.js +95 -0
  25. package/dist/chunk-7KE6XWM5.js.map +1 -0
  26. package/dist/{chunk-Y5MRAAGK.js → chunk-AYTO6ND7.js} +3 -3
  27. package/dist/chunk-AYTO6ND7.js.map +1 -0
  28. package/dist/chunk-DZKNBN72.js +399 -0
  29. package/dist/chunk-DZKNBN72.js.map +1 -0
  30. package/dist/chunk-F7B4FHUQ.js +504 -0
  31. package/dist/chunk-F7B4FHUQ.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 +218 -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 +415 -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
@@ -0,0 +1,13 @@
1
+ import { authApi } from '../chunk-F7B4FHUQ.js';
2
+ export { getFieldErrors, getFormErrors, initializeHttpClient } from '../chunk-4CEUGRRD.js';
3
+ import '../chunk-5TLHHOP5.js';
4
+ import '../chunk-3FUHGFAQ.js';
5
+
6
+ // src/main/entries/auth.ts
7
+ var api = {
8
+ auth: authApi
9
+ };
10
+
11
+ export { api };
12
+ //# sourceMappingURL=auth.js.map
13
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/main/entries/auth.ts"],"names":[],"mappings":";;;;;;AA6BO,IAAM,GAAA,GAAM;AAAA,EACf,IAAA,EAAM;AACV","file":"auth.js","sourcesContent":["/**\n * Auth-only subpath export — login, MFA, security, SSO, token helpers.\n * Does not import CRM feature modules.\n */\nimport { authApi } from '../api/nested-auth-api'\nimport { initializeHttpClient, getFormErrors, getFieldErrors } from '../core/http/http-client'\n\nexport { initializeHttpClient, getFormErrors, getFieldErrors }\nexport type { HttpClientConfig } from '../core/http/http-client'\n\nexport type {\n PreLoginPayload,\n LoginPayload,\n VerifyEmailPayload,\n ResetPasswordVerifyTokenPayload,\n ResetPasswordPayload,\n ForgetPasswordPayload,\n ChangePasswordPayload,\n MfaMethod,\n MfaMethodOption,\n LoginResponseData,\n TwoFaVerificationRequest,\n MfaEnrollmentStatus,\n SecurityOverview,\n LoginHistoryRow,\n ActiveSession,\n PaginationResponse\n} from '../core/types'\n\nexport const api = {\n auth: authApi\n}\n"]}
@@ -0,0 +1,218 @@
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 } from '../cache-purge-G5WkHckd.js';
3
+ export { G as CachePurgeDomain, B as CachePurgeListQuery, H as CachePurgeMode, A as CachePurgeRequest, C as CachePurgeTarget, D as CachePurgeView, E as CreateCachePurgeJobOptions, F as CrmCachePurgeOptions, P as PurgeResult } from '../cache-purge-G5WkHckd.js';
4
+ import '../index-CCwMopD8.js';
5
+
6
+ declare const api: {
7
+ crm: {
8
+ pipelines: {
9
+ list: typeof list;
10
+ };
11
+ stages: {
12
+ list: typeof list$1;
13
+ };
14
+ objects: {
15
+ list: typeof list$2;
16
+ listSidebar: typeof sideBarList;
17
+ getForm: typeof form;
18
+ getFormOptions: typeof objectFormOptions;
19
+ getDetails: typeof details;
20
+ updateDetails: typeof update;
21
+ create: typeof create;
22
+ createExisting: typeof createExisting;
23
+ removeExisting: typeof removeExisting;
24
+ };
25
+ notes: {
26
+ list: typeof list$3;
27
+ create: typeof create$1;
28
+ update: typeof update$1;
29
+ };
30
+ emails: {
31
+ list: typeof list$4;
32
+ create: typeof create$2;
33
+ update: typeof update$2;
34
+ };
35
+ files: {
36
+ list: typeof list$5;
37
+ getDetails: typeof details$1;
38
+ download: typeof download;
39
+ addFolder: typeof addFolder;
40
+ addFile: typeof addFile;
41
+ };
42
+ uploads: {
43
+ uploadImage: typeof imageUpload;
44
+ uploadAttachment: typeof attachmentUpload;
45
+ };
46
+ cache: {
47
+ purge: typeof purge;
48
+ getPurgeStatus: typeof purgeStatus;
49
+ };
50
+ };
51
+ navigation: {
52
+ url: {
53
+ makeLink: () => {
54
+ makeLink: (props: any) => string;
55
+ };
56
+ updateLink: () => {
57
+ updateLink: (props: any, displayName?: string) => Promise<void>;
58
+ getLinkParams: (displayName?: string) => {
59
+ [k: string]: any;
60
+ } | null;
61
+ filterParams: (displayName?: string) => {
62
+ [k: string]: any;
63
+ } | null;
64
+ };
65
+ };
66
+ route: {
67
+ getDetails: () => {
68
+ routeDetails: any;
69
+ };
70
+ getParamDetails: (props?: any, isDetailsPage?: boolean) => {
71
+ breadcrumbs: any;
72
+ paramsObject: any;
73
+ params: any;
74
+ parentAccessLabel: boolean;
75
+ };
76
+ };
77
+ breadcrumbs: {
78
+ getList: () => any;
79
+ getTableTitle: (componentName: string, title: string, ticketTableTitle: string) => {
80
+ associatedtableTitleSingular: any;
81
+ tableTitle: any;
82
+ singularTableTitle: any;
83
+ };
84
+ getFormTitle: (type: string, title: string, activeTab: string) => {
85
+ objectName: any;
86
+ puralObjectName: any;
87
+ dialogTitle: any;
88
+ };
89
+ };
90
+ };
91
+ };
92
+ declare const store: {
93
+ storage: {
94
+ set: (key: string, value: unknown) => void;
95
+ get: <T>(key: string) => T | null;
96
+ remove: (key: string) => void;
97
+ };
98
+ tableUi: {
99
+ store: {
100
+ getState(): TableUiState;
101
+ setState(partial: Partial<TableUiState>): void;
102
+ subscribe(listener: (state: TableUiState) => void): () => boolean;
103
+ };
104
+ actions: {
105
+ setTableUniqueId(v: string | null): void;
106
+ setSort(v: string): void;
107
+ setLimit(v: number): void;
108
+ setAfter(v: string): void;
109
+ setPage(v: number | string): void;
110
+ setNextPage(v: number | string): void;
111
+ setStageId(v: number | string): void;
112
+ setTotalItems(v: number): void;
113
+ setNumOfPages(v: number): void;
114
+ setCurrentPage(v: number): void;
115
+ setSearch(v: string): void;
116
+ setFilterPropertyName(v: string): void;
117
+ setFilterOperator(v: string): void;
118
+ setFilterValue(v: string): void;
119
+ setIsPrimaryCompany(v: boolean | null): void;
120
+ setTableFilterData(v: Record<string, unknown>): void;
121
+ setTableDefPermissions(v: Record<string, unknown>): void;
122
+ setView(mView: string | null): void;
123
+ changePipeline(mView: string | null): void;
124
+ setSelectedPipeline(pipelines: any[], pipeLineId?: string): void;
125
+ resetTableParam(): void;
126
+ getTableParam(companyAsMediator?: boolean, currentPageOverride?: number): {
127
+ after: string | number;
128
+ } | {
129
+ after?: string | undefined;
130
+ limit: number;
131
+ page: string | number;
132
+ };
133
+ buildListTableParams(options?: {
134
+ companyAsMediator?: boolean;
135
+ currentPageOverride?: number;
136
+ }): {
137
+ after: string | number;
138
+ } | {
139
+ after?: string | undefined;
140
+ limit: number;
141
+ page: string | number;
142
+ };
143
+ setGridData(type: string, deals: any[]): Promise<any[]>;
144
+ setDefaultPipeline(data: any, hubspotObjectTypeId: string): any;
145
+ };
146
+ };
147
+ table: {
148
+ store: {
149
+ getState(): TableState;
150
+ setState(partial: Partial<TableState>): void;
151
+ subscribe(listener: (state: TableState) => void): () => boolean;
152
+ };
153
+ actions: {
154
+ setObjectsQueryParams(params: any): void;
155
+ setMultiObjectsQueryParams(hubspotObjectTypeId: string, params: any): void;
156
+ setObjectsData(response: any, context?: {
157
+ stageId?: string | number;
158
+ }): Promise<void>;
159
+ setTableData(response: any, payload: any): void;
160
+ modifiedObjectsData(results: any): void;
161
+ clearTablePrependData(): void;
162
+ setTablePrependData(response: any, props?: any): Promise<void>;
163
+ };
164
+ };
165
+ user: {
166
+ store: {
167
+ getState(): UserState;
168
+ setState(partial: Partial<UserState>): void;
169
+ subscribe(listener: (state: UserState) => void): () => boolean;
170
+ };
171
+ actions: {
172
+ setProfile(response: any): void;
173
+ };
174
+ };
175
+ note: {
176
+ store: {
177
+ getState(): NoteState;
178
+ setState(partial: Partial<NoteState>): void;
179
+ subscribe(listener: (state: NoteState) => void): () => boolean;
180
+ };
181
+ actions: {
182
+ setListQueryParams(params: any): void;
183
+ setNotes(response: any, payload: any): void;
184
+ setPrependNote(response: any): Promise<void>;
185
+ clearPrependNotes(): void;
186
+ updatePrependNote(response: any): Promise<any>;
187
+ };
188
+ };
189
+ email: {
190
+ store: {
191
+ getState(): EmailState;
192
+ setState(partial: Partial<EmailState>): void;
193
+ subscribe(listener: (state: EmailState) => void): () => boolean;
194
+ };
195
+ actions: {
196
+ setListQueryParams(params: any): void;
197
+ setEmails(response: any, payload: any): void;
198
+ setPrependEmail(response: any): Promise<void>;
199
+ clearPrependEmails(): void;
200
+ updatePrependEmail(response: any): Promise<any>;
201
+ };
202
+ };
203
+ sync: {
204
+ store: {
205
+ getState(): SyncState;
206
+ setState(partial: Partial<SyncState>): void;
207
+ subscribe(listener: (state: SyncState) => void): () => boolean;
208
+ };
209
+ actions: {
210
+ setIsSyncLoading(status: boolean): void;
211
+ setSync(status: boolean): void;
212
+ setApiSync(status: boolean): void;
213
+ setSyncDisable(status: boolean): void;
214
+ };
215
+ };
216
+ };
217
+
218
+ export { api, store };
@@ -0,0 +1,24 @@
1
+ import { crmApi } from '../chunk-DZKNBN72.js';
2
+ import { navigationApi, storage } from '../chunk-4CEUGRRD.js';
3
+ import '../chunk-7KE6XWM5.js';
4
+ import { actions7, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore, tableUiActions, tableUiStore } from '../chunk-5TLHHOP5.js';
5
+ import '../chunk-3FUHGFAQ.js';
6
+
7
+ // src/main/entries/crm.ts
8
+ var api = {
9
+ crm: crmApi,
10
+ navigation: navigationApi
11
+ };
12
+ var store = {
13
+ storage,
14
+ tableUi: { store: tableUiStore, actions: tableUiActions },
15
+ table: { store: tableStore, actions: actions2 },
16
+ user: { store: userStore, actions: actions6 },
17
+ note: { store: noteStore, actions: actions4 },
18
+ email: { store: emailStore, actions: actions5 },
19
+ sync: { store: syncStore, actions: actions7 }
20
+ };
21
+
22
+ export { api, store };
23
+ //# sourceMappingURL=crm.js.map
24
+ //# sourceMappingURL=crm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/main/entries/crm.ts"],"names":["actions"],"mappings":";;;;;;;AAqBO,IAAM,GAAA,GAAM;AAAA,EACf,GAAA,EAAK,MAAA;AAAA,EACL,UAAA,EAAY;AAChB;AAEO,IAAM,KAAA,GAAQ;AAAA,EACjB,OAAA;AAAA,EACA,OAAA,EAAS,EAAE,KAAA,EAAO,YAAA,EAAc,SAAS,cAAA,EAAe;AAAA,EACxD,KAAA,EAAO,EAAE,KAAA,EAAO,UAAA,WAAYA,QAAA,EAAsB;AAAA,EAClD,IAAA,EAAM,EAAE,KAAA,EAAO,SAAA,EAAW,SAASA,QAAAA,EAAY;AAAA,EAC/C,IAAA,EAAM,EAAE,KAAA,EAAO,SAAA,EAAW,SAASA,QAAAA,EAAY;AAAA,EAC/C,KAAA,EAAO,EAAE,KAAA,EAAO,UAAA,EAAY,SAASA,QAAAA,EAAa;AAAA,EAClD,IAAA,EAAM,EAAE,KAAA,EAAO,SAAA,EAAW,SAASA,QAAAA;AACvC","file":"crm.js","sourcesContent":["/**\n * CRM subpath export — pipelines, objects, notes, emails, files, cache purge, navigation, state.\n */\nimport { crmApi } from '../api/nested-crm-api'\nimport { navigationApi } from '../api/navigation-api'\nimport {\n tableStore,\n tableActions,\n tableUiStore,\n tableUiActions,\n userStore,\n userActions,\n noteStore,\n noteActions,\n emailStore,\n emailActions,\n syncStore,\n syncActions\n} from '../state'\nimport { storage } from '../core/utils/localStorage'\n\nexport const api = {\n crm: crmApi,\n navigation: navigationApi\n}\n\nexport const store = {\n storage,\n tableUi: { store: tableUiStore, actions: tableUiActions },\n table: { store: tableStore, actions: tableActions },\n user: { store: userStore, actions: userActions },\n note: { store: noteStore, actions: noteActions },\n email: { store: emailStore, actions: emailActions },\n sync: { store: syncStore, actions: syncActions }\n}\n\nexport type { CrmCachePurgeOptions } from '../core/types/cache-purge'\nexport type {\n CachePurgeRequest,\n CachePurgeTarget,\n CachePurgeListQuery,\n CachePurgeView,\n CachePurgeDomain,\n CachePurgeMode,\n PurgeResult,\n CreateCachePurgeJobOptions\n} from '../core/types/cache-purge'\n"]}
@@ -0,0 +1,38 @@
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
+ }
37
+
38
+ export type { ChangePasswordPayload as C, ForgetPasswordPayload as F, LoginPayload as L, MutationOptions as M, PreLoginPayload as P, ResetPasswordVerifyTokenPayload as R, VerifyEmailPayload as V, ResetPasswordPayload as a, Config as b };