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
@@ -0,0 +1,208 @@
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
+ setGridData(type: string, deals: any[]): Promise<any[]>;
134
+ setDefaultPipeline(data: any, hubspotObjectTypeId: string): any;
135
+ };
136
+ };
137
+ table: {
138
+ store: {
139
+ getState(): TableState;
140
+ setState(partial: Partial<TableState>): void;
141
+ subscribe(listener: (state: TableState) => void): () => boolean;
142
+ };
143
+ actions: {
144
+ setObjectsQueryParams(params: any): void;
145
+ setMultiObjectsQueryParams(hubspotObjectTypeId: string, params: any): void;
146
+ setObjectsData(response: any, context?: {
147
+ stageId?: string | number;
148
+ }): Promise<void>;
149
+ setTableData(response: any, payload: any): void;
150
+ modifiedObjectsData(results: any): void;
151
+ clearTablePrependData(): void;
152
+ setTablePrependData(response: any, props?: any): Promise<void>;
153
+ };
154
+ };
155
+ user: {
156
+ store: {
157
+ getState(): UserState;
158
+ setState(partial: Partial<UserState>): void;
159
+ subscribe(listener: (state: UserState) => void): () => boolean;
160
+ };
161
+ actions: {
162
+ setProfile(response: any): void;
163
+ };
164
+ };
165
+ note: {
166
+ store: {
167
+ getState(): NoteState;
168
+ setState(partial: Partial<NoteState>): void;
169
+ subscribe(listener: (state: NoteState) => void): () => boolean;
170
+ };
171
+ actions: {
172
+ setListQueryParams(params: any): void;
173
+ setNotes(response: any, payload: any): void;
174
+ setPrependNote(response: any): Promise<void>;
175
+ clearPrependNotes(): void;
176
+ updatePrependNote(response: any): Promise<any>;
177
+ };
178
+ };
179
+ email: {
180
+ store: {
181
+ getState(): EmailState;
182
+ setState(partial: Partial<EmailState>): void;
183
+ subscribe(listener: (state: EmailState) => void): () => boolean;
184
+ };
185
+ actions: {
186
+ setListQueryParams(params: any): void;
187
+ setEmails(response: any, payload: any): void;
188
+ setPrependEmail(response: any): Promise<void>;
189
+ clearPrependEmails(): void;
190
+ updatePrependEmail(response: any): Promise<any>;
191
+ };
192
+ };
193
+ sync: {
194
+ store: {
195
+ getState(): SyncState;
196
+ setState(partial: Partial<SyncState>): void;
197
+ subscribe(listener: (state: SyncState) => void): () => boolean;
198
+ };
199
+ actions: {
200
+ setIsSyncLoading(status: boolean): void;
201
+ setSync(status: boolean): void;
202
+ setApiSync(status: boolean): void;
203
+ setSyncDisable(status: boolean): void;
204
+ };
205
+ };
206
+ };
207
+
208
+ export { api, store };
@@ -0,0 +1,24 @@
1
+ import { crmApi } from '../chunk-KCZFT6OM.js';
2
+ import { navigationApi, storage } from '../chunk-4ZV3MQIB.js';
3
+ import { tableUiActions, tableUiStore } from '../chunk-SSS4DNXP.js';
4
+ import { actions7, syncStore, actions5, emailStore, actions4, noteStore, actions6, userStore, actions2, tableStore } from '../chunk-KBXI2JBA.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 };