woodsportal-client-sdk 1.1.4-dev.1 → 1.1.4-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -2
- package/dist/index.js +266 -118
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
interface Config {
|
|
2
2
|
hubId: string;
|
|
3
3
|
devPortalId: string;
|
|
4
|
+
portalId: string;
|
|
5
|
+
devApiUrl: string;
|
|
4
6
|
}
|
|
5
7
|
interface MutationOptions<TSuccess, TError = unknown> {
|
|
6
8
|
onSuccess?: (data: TSuccess, payload: any) => void | Promise<void>;
|
|
@@ -133,6 +135,11 @@ declare function list$3(options?: MutationOptions<any, any>): {
|
|
|
133
135
|
getObjects: (payload?: any) => Promise<any>;
|
|
134
136
|
isLoading: () => boolean;
|
|
135
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
|
+
};
|
|
136
143
|
declare function form(options?: MutationOptions<any, any>): {
|
|
137
144
|
mutate: (payload?: any) => Promise<any>;
|
|
138
145
|
getObjectsForm: (payload?: any) => Promise<any>;
|
|
@@ -282,6 +289,7 @@ declare const api: {
|
|
|
282
289
|
pipelines: typeof list$5;
|
|
283
290
|
stages: typeof list$4;
|
|
284
291
|
objects: typeof list$3;
|
|
292
|
+
sideBarObjects: typeof sideBarList;
|
|
285
293
|
objectsForm: typeof form;
|
|
286
294
|
createObject: typeof create$2;
|
|
287
295
|
createExistingObject: typeof createExisting;
|
|
@@ -310,7 +318,7 @@ declare const api: {
|
|
|
310
318
|
};
|
|
311
319
|
declare const store: {
|
|
312
320
|
storage: {
|
|
313
|
-
set: (key: string, value:
|
|
321
|
+
set: (key: string, value: unknown) => void;
|
|
314
322
|
get: <T>(key: string) => T | null;
|
|
315
323
|
remove: (key: string) => void;
|
|
316
324
|
};
|
|
@@ -334,7 +342,7 @@ declare const url: {
|
|
|
334
342
|
makeLink: (props: any) => string;
|
|
335
343
|
};
|
|
336
344
|
useUpdateLink: () => {
|
|
337
|
-
updateLink: (props: any, displayName?: string) => void
|
|
345
|
+
updateLink: (props: any, displayName?: string) => Promise<void>;
|
|
338
346
|
getLinkParams: (displayName?: string) => {
|
|
339
347
|
[k: string]: any;
|
|
340
348
|
} | null;
|