@evoke-platform/context 1.0.0-dev.9 → 1.0.0-dev.91

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 (43) hide show
  1. package/README.md +116 -3
  2. package/dist/api/ApiBaseUrlProvider.js +0 -1
  3. package/dist/api/apiServices.js +10 -9
  4. package/dist/api/callback.js +0 -1
  5. package/dist/api/index.js +0 -1
  6. package/dist/app/AppProvider.d.ts +2 -0
  7. package/dist/app/AppProvider.js +0 -1
  8. package/dist/app/index.js +0 -1
  9. package/dist/authentication/AuthenticationContextProvider.js +0 -1
  10. package/dist/authentication/index.js +0 -1
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +1 -1
  13. package/dist/notification/NotificationProvider.d.ts +33 -0
  14. package/dist/notification/NotificationProvider.js +134 -0
  15. package/dist/notification/index.d.ts +2 -0
  16. package/dist/notification/index.js +2 -0
  17. package/dist/objects/filters.js +0 -1
  18. package/dist/objects/index.js +0 -1
  19. package/dist/objects/objects.d.ts +58 -11
  20. package/dist/objects/objects.js +2 -3
  21. package/dist/router/index.js +0 -1
  22. package/dist/router/navigation.js +0 -1
  23. package/dist/router/routeParams.js +0 -1
  24. package/dist/signalr/SignalRConnectionProvider.js +0 -1
  25. package/dist/signalr/index.js +0 -1
  26. package/package.json +18 -16
  27. package/dist/api/ApiBaseUrlProvider.js.map +0 -1
  28. package/dist/api/apiServices.js.map +0 -1
  29. package/dist/api/callback.js.map +0 -1
  30. package/dist/api/index.js.map +0 -1
  31. package/dist/app/AppProvider.js.map +0 -1
  32. package/dist/app/index.js.map +0 -1
  33. package/dist/authentication/AuthenticationContextProvider.js.map +0 -1
  34. package/dist/authentication/index.js.map +0 -1
  35. package/dist/index.js.map +0 -1
  36. package/dist/objects/filters.js.map +0 -1
  37. package/dist/objects/index.js.map +0 -1
  38. package/dist/objects/objects.js.map +0 -1
  39. package/dist/router/index.js.map +0 -1
  40. package/dist/router/navigation.js.map +0 -1
  41. package/dist/router/routeParams.js.map +0 -1
  42. package/dist/signalr/SignalRConnectionProvider.js.map +0 -1
  43. package/dist/signalr/index.js.map +0 -1
package/README.md CHANGED
@@ -68,7 +68,8 @@ const results = await applications.findInstances();
68
68
 
69
69
  ##### `get(options)`
70
70
 
71
- Get the object definition for this store's object.
71
+ Get the object definition for this store's object. The returned object includes inherited properties and actions if
72
+ this object is derived from another object.
72
73
 
73
74
  - `options` _[object]_ - _optional_
74
75
  - `sanitized` _[boolean]_
@@ -198,9 +199,11 @@ absolute URL.
198
199
 
199
200
  ### SignalR Connection
200
201
 
202
+ Deprecated
203
+
201
204
  - [useSignalRConnection](#usesignalrconnection)
202
- - [documentChanges](#documentchanges)
203
- - [instanceChanges](#instancechanges)
205
+ - [documentChanges](#documentchangessubscribeobjectidinstanceid-data-documentchange)
206
+ - [instanceChanges](#instancechangessubscribeobjectid-instanceids-instancechange)
204
207
 
205
208
  #### `useSignalRConnection()`
206
209
 
@@ -218,6 +221,18 @@ documentChanges.subscribe('myObjectId/myInstanceId', (data) => {
218
221
  });
219
222
  ```
220
223
 
224
+ The data provided to the callback will be an array of `DocumentChange` which contains the
225
+ following data:
226
+
227
+ - `objectId`
228
+ - Object describing the instance associated with the updated document.
229
+ - `instanceId`
230
+ - Instance that the updated document is associated with.
231
+ - `documentId`
232
+ - Document that was updated.
233
+ - `type`
234
+ - The type of update. Possible values are `BlobCreated`, `BlobDeleted`, and `BlobMetadataUpdated`.
235
+
221
236
  ##### `documentChanges.unsubscribe('{objectId}/{instanceId}', (data: DocumentChange[]) => {})`
222
237
 
223
238
  Unsubscribe to the specified object instance document changes.
@@ -250,6 +265,8 @@ instanceChanges.subscribe('myObjectId', (instanceIds) => {
250
265
  });
251
266
  ```
252
267
 
268
+ The data provided to the callback will be an array of instance IDs that were updated.
269
+
253
270
  ##### `instanceChanges.unsubscribe('{objectId}', (instanceIds: InstanceChange[]) => {})`
254
271
 
255
272
  Unsubscribe to the specified object instance changes.
@@ -270,6 +287,102 @@ instanceChanges.subscribe('myObjectId', callback);
270
287
  instanceChanges.unsubscribe('myObjectId', callback);
271
288
  ```
272
289
 
290
+ ### Notification
291
+
292
+ - [useNofitication](#usenotification)
293
+ - [documentChanges](#documentchangessubscribeobjectidinstanceid-data-documentchange)
294
+ - [instanceChanges](#instancechangessubscribeobjectid-instanceids-instancechange)
295
+
296
+ #### `useNofitication()`
297
+
298
+ Hook used to obtain an instanceChanges instance and a documentChanges instance.
299
+
300
+ ##### `documentChanges.subscribe(objectId, instanceId, (data: DocumentChange[]]) => {})`
301
+
302
+ Subscribe to the specified object instance changes.
303
+
304
+ ```javascript
305
+ const { documentChanges } = useNotification();
306
+
307
+ documentChanges.subscribe('myObjectId', 'myInstanceId', (data) => {
308
+ console.log(data);
309
+ });
310
+ ```
311
+
312
+ The data provided to the callback will be an array of `DocumentChange` which contains the
313
+ following data:
314
+
315
+ - `objectId`
316
+ - Object describing the instance associated with the updated document.
317
+ - `instanceId`
318
+ - Instance that the updated document is associated with.
319
+ - `documentId`
320
+ - Document that was updated.
321
+ - `type`
322
+ - The type of update. Possible values are `BlobCreated`, `BlobDeleted`, and `BlobMetadataUpdated`.
323
+
324
+ ##### `documentChanges.unsubscribe(objectId, instanceId, (changes: DocumentChange[]) => {})`
325
+
326
+ Unsubscribe to the specified object instance changes.
327
+
328
+ Callback function is optional.
329
+ If callback function is not defined, all subscriptions will be removed.
330
+ If callback function is defined, you must pass the exact same Function instance as was previously passed to `documentChanges.subscribe`.
331
+ Passing a different instance (even if the function body is the same) will not remove the subscription.
332
+
333
+ ```javascript
334
+ const { documentChanges } = useNotification();
335
+
336
+ const callback = (changes: DocumentChange[]) => {
337
+ console.log(changes);
338
+ };
339
+
340
+ documentChanges.subscribe('myObjectId' , 'myInstanceId', callback);
341
+
342
+ documentChanges.unsubscribe('myObjectId', 'myInstanceId', callback);
343
+ ```
344
+
345
+ ##### `instanceChanges.subscribe(objectId, (changes: InstanceChange[]) => {})`
346
+
347
+ Subscribe to the specified object changes.
348
+
349
+ ```javascript
350
+ const { instanceChanges } = useNotification();
351
+
352
+ instanceChanges.subscribe('myObjectId', (changes) => {
353
+ console.log(changes);
354
+ });
355
+ ```
356
+
357
+ The data provided to the callback will be an array of `InstanceChange` which contains the
358
+ following data:
359
+
360
+ - `objectId`
361
+ - Object describing the instance associated with the updated document.
362
+ - `instanceId`
363
+ - Instance that the updated document is associated with.
364
+
365
+ ##### `instanceChanges.unsubscribe(objectId, (changes: InstanceChange[]) => {})`
366
+
367
+ Unsubscribe to the specified object changes.
368
+
369
+ Callback function is optional.
370
+ If callback function is not defined, all subscriptions will be removed.
371
+ If callback function is defined, you must pass the exact same Function instance as was previously passed to `instanceChanges.subscribe`.
372
+ Passing a different instance (even if the function body is the same) will not remove the subscription.
373
+
374
+ ```javascript
375
+ const { instanceChanges } = useNotification();
376
+
377
+ const callback = (changes: InstanceChange[]) => {
378
+ console.log(changes);
379
+ };
380
+
381
+ instanceChanges.subscribe('myObjectId', callback);
382
+
383
+ instanceChanges.unsubscribe('myObjectId', callback);
384
+ ```
385
+
273
386
  ## License
274
387
 
275
388
  [MIT](https://github.com/Evoke-Platform/evoke-sdk/blob/main/LICENSE)
@@ -13,4 +13,3 @@ export function useApiBaseUrl() {
13
13
  return useContext(ApiBaseUrlContext);
14
14
  }
15
15
  export default ApiBaseUrlProvider;
16
- //# sourceMappingURL=ApiBaseUrlProvider.js.map
@@ -13,18 +13,20 @@ import axios from 'axios';
13
13
  import { useMemo } from 'react';
14
14
  import { useAuthenticationContext } from '../authentication/AuthenticationContextProvider.js';
15
15
  import { useApiBaseUrl } from './ApiBaseUrlProvider.js';
16
+ import { v4 as uuidv4 } from 'uuid';
17
+ const sessionId = uuidv4();
16
18
  export class ApiServices {
17
19
  constructor(api, authContext) {
18
20
  this.api = api;
19
- if (authContext) {
20
- this.api.interceptors.request.use((config) => __awaiter(this, void 0, void 0, function* () {
21
+ this.api.interceptors.request.use((config) => __awaiter(this, void 0, void 0, function* () {
22
+ const headers = { 'X-Session-Id': sessionId };
23
+ if (authContext) {
21
24
  const token = yield authContext.getAccessToken();
22
- config.headers = Object.assign({}, config.headers, {
23
- Authorization: `Bearer ${token}`,
24
- });
25
- return config;
26
- }));
27
- }
25
+ headers['Authorization'] = `Bearer ${token}`;
26
+ }
27
+ config.headers = Object.assign({}, config.headers, headers);
28
+ return config;
29
+ }));
28
30
  }
29
31
  promiseOrCallback(promise, cb) {
30
32
  return __awaiter(this, void 0, void 0, function* () {
@@ -144,4 +146,3 @@ export function useApiServices() {
144
146
  const apiServices = useMemo(() => new ApiServices(axios.create({ baseURL }), authContext), [authContext, baseURL]);
145
147
  return apiServices;
146
148
  }
147
- //# sourceMappingURL=apiServices.js.map
@@ -10,4 +10,3 @@ export function callback(onSuccess, onError) {
10
10
  }
11
11
  };
12
12
  }
13
- //# sourceMappingURL=callback.js.map
package/dist/api/index.js CHANGED
@@ -4,4 +4,3 @@ export * from './ApiBaseUrlProvider.js';
4
4
  export { default as ApiBaseUrlProvider } from './ApiBaseUrlProvider.js';
5
5
  export * from './apiServices.js';
6
6
  export * from './callback.js';
7
- //# sourceMappingURL=index.js.map
@@ -10,10 +10,12 @@ export type App = {
10
10
  iconColor?: string;
11
11
  pages?: Page[];
12
12
  navigation?: NavigationMenu;
13
+ defaultPages?: Record<string, string>;
13
14
  };
14
15
  export type Page = {
15
16
  id: string;
16
17
  name: string;
18
+ slug?: string;
17
19
  children?: PageElement[];
18
20
  };
19
21
  export type PageElement = Container | Widget;
@@ -13,4 +13,3 @@ export function useApp() {
13
13
  return useContext(AppContext);
14
14
  }
15
15
  export default AppProvider;
16
- //# sourceMappingURL=AppProvider.js.map
package/dist/app/index.js CHANGED
@@ -2,4 +2,3 @@
2
2
  // This file is licensed under the MIT License.
3
3
  export * from './AppProvider.js';
4
4
  export { default as AppProvider } from './AppProvider.js';
5
- //# sourceMappingURL=index.js.map
@@ -42,4 +42,3 @@ export function useAuthenticationContext() {
42
42
  return useContext(Context);
43
43
  }
44
44
  export default AuthenticationContextProvider;
45
- //# sourceMappingURL=AuthenticationContextProvider.js.map
@@ -2,4 +2,3 @@
2
2
  // This file is licensed under the MIT License.
3
3
  export * from './AuthenticationContextProvider.js';
4
4
  export { default as AuthenticationContextProvider } from './AuthenticationContextProvider.js';
5
- //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './api/index.js';
2
2
  export * from './app/index.js';
3
3
  export * from './authentication/index.js';
4
+ export * from './notification/index.js';
4
5
  export * from './objects/index.js';
5
6
  export * from './router/index.js';
6
7
  export * from './signalr/index.js';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  export * from './api/index.js';
4
4
  export * from './app/index.js';
5
5
  export * from './authentication/index.js';
6
+ export * from './notification/index.js';
6
7
  export * from './objects/index.js';
7
8
  export * from './router/index.js';
8
9
  export * from './signalr/index.js';
9
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ export type NotificationConnectionInfo = {
3
+ url: string;
4
+ accessToken: string;
5
+ };
6
+ export type InstanceSubscription = {
7
+ subscribe: (objectId: string, callback: (...args: NotificationInstanceChange[]) => void) => void;
8
+ unsubscribe: (objectId: string, callback?: (...args: NotificationInstanceChange[]) => void) => void;
9
+ };
10
+ export type DocumentSubscription = {
11
+ subscribe: (objectId: string, instanceId: string | undefined, callback: (...args: NotificationDocumentChange[]) => void) => void;
12
+ unsubscribe: (objectId: string, instanceId: string | undefined, callback?: (...args: NotificationDocumentChange[]) => void) => void;
13
+ };
14
+ export type NotificationDocumentChange = {
15
+ objectId: string;
16
+ instanceId: string;
17
+ documentId: string;
18
+ type: string;
19
+ };
20
+ export type NotificationInstanceChange = {
21
+ objectId: string;
22
+ instanceId: string;
23
+ };
24
+ export type NotificationContextType = {
25
+ documentChanges?: DocumentSubscription;
26
+ instanceChanges?: InstanceSubscription;
27
+ };
28
+ export declare const NotificationContext: React.Context<NotificationContextType>;
29
+ declare function NotificationProvider({ children }: {
30
+ children: React.ReactNode;
31
+ }): import("react/jsx-runtime").JSX.Element;
32
+ export declare function useNotification(): NotificationContextType;
33
+ export default NotificationProvider;
@@ -0,0 +1,134 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { HubConnectionBuilder, LogLevel, } from '@microsoft/signalr/dist/esm/index.js';
12
+ import { createContext, useContext, useEffect, useState } from 'react';
13
+ import { useApiServices } from '../api/index.js';
14
+ export const NotificationContext = createContext({});
15
+ NotificationContext.displayName = 'NotificationContext';
16
+ function NotificationProvider({ children }) {
17
+ const [instancesNotification, setInstancesNotification] = useState();
18
+ const [documentsNotification, setDocumentsNotification] = useState();
19
+ const api = useApiServices();
20
+ useEffect(() => {
21
+ const getConnectionInfo = (hubName) => {
22
+ return api.post(`/notification/hubs/${hubName}/negotiate`);
23
+ };
24
+ const getConnection = () => __awaiter(this, void 0, void 0, function* () {
25
+ try {
26
+ const instancesConnectionInfo = yield getConnectionInfo('instanceChanges');
27
+ const documentsConnectionInfo = yield getConnectionInfo('documentChanges');
28
+ if (instancesConnectionInfo) {
29
+ const options = {
30
+ accessTokenFactory: () => {
31
+ var _a;
32
+ return (_a = instancesConnectionInfo.accessToken) !== null && _a !== void 0 ? _a : '';
33
+ },
34
+ };
35
+ const connection = new HubConnectionBuilder()
36
+ .withUrl(instancesConnectionInfo.url, options)
37
+ .configureLogging(LogLevel.Error)
38
+ .withAutomaticReconnect()
39
+ .build();
40
+ setInstancesNotification(connection);
41
+ }
42
+ if (documentsConnectionInfo) {
43
+ const options = {
44
+ accessTokenFactory: () => {
45
+ var _a;
46
+ return (_a = documentsConnectionInfo.accessToken) !== null && _a !== void 0 ? _a : '';
47
+ },
48
+ };
49
+ const connection = new HubConnectionBuilder()
50
+ .withUrl(documentsConnectionInfo.url, options)
51
+ .configureLogging(LogLevel.Error)
52
+ .withAutomaticReconnect()
53
+ .build();
54
+ setDocumentsNotification(connection);
55
+ }
56
+ // eslint-disable-next-line no-empty
57
+ }
58
+ catch (err) {
59
+ console.log(err);
60
+ }
61
+ });
62
+ getConnection();
63
+ }, []);
64
+ useEffect(() => {
65
+ let documentsConnectionStopped = false;
66
+ const startConnection = (connection, numOfAttempts) => __awaiter(this, void 0, void 0, function* () {
67
+ yield connection.start().catch((error) => {
68
+ if (numOfAttempts < 4 && !documentsConnectionStopped) {
69
+ setTimeout(() => {
70
+ if (!documentsConnectionStopped) {
71
+ startConnection(connection, numOfAttempts + 1);
72
+ }
73
+ }, 2000);
74
+ }
75
+ else {
76
+ console.warn(`Cannot start connection to Notification Service due to error "${error}"`);
77
+ }
78
+ });
79
+ });
80
+ if (documentsNotification) {
81
+ startConnection(documentsNotification, 0);
82
+ }
83
+ return () => {
84
+ documentsNotification === null || documentsNotification === void 0 ? void 0 : documentsNotification.stop();
85
+ documentsConnectionStopped = true;
86
+ };
87
+ }, [documentsNotification]);
88
+ useEffect(() => {
89
+ let instancesConnectionStopped = false;
90
+ const startConnection = (connection, numOfAttempts) => __awaiter(this, void 0, void 0, function* () {
91
+ yield connection.start().catch((error) => {
92
+ if (numOfAttempts < 4 && !instancesConnectionStopped) {
93
+ setTimeout(() => {
94
+ if (!instancesConnectionStopped) {
95
+ startConnection(connection, numOfAttempts + 1);
96
+ }
97
+ }, 2000);
98
+ }
99
+ else {
100
+ console.warn(`Cannot start connection to Notification Service due to error "${error}"`);
101
+ }
102
+ });
103
+ });
104
+ if (instancesNotification) {
105
+ startConnection(instancesNotification, 0);
106
+ }
107
+ return () => {
108
+ instancesNotification === null || instancesNotification === void 0 ? void 0 : instancesNotification.stop();
109
+ instancesConnectionStopped = true;
110
+ };
111
+ }, [instancesNotification]);
112
+ return (_jsx(NotificationContext.Provider, { value: {
113
+ documentChanges: documentsNotification
114
+ ? {
115
+ subscribe: (objectId, instanceId, callback) => documentsNotification.on(`${objectId}/${instanceId}`, callback),
116
+ unsubscribe: (objectId, instanceId, callback) => callback
117
+ ? documentsNotification.off(`${objectId}/${instanceId}`, callback)
118
+ : documentsNotification.off(`${objectId}/${instanceId}`),
119
+ }
120
+ : undefined,
121
+ instanceChanges: instancesNotification
122
+ ? {
123
+ subscribe: (objectId, callback) => instancesNotification.on(objectId, callback),
124
+ unsubscribe: (objectId, callback) => callback
125
+ ? instancesNotification.off(objectId, callback)
126
+ : instancesNotification.off(objectId),
127
+ }
128
+ : undefined,
129
+ }, children: children }));
130
+ }
131
+ export function useNotification() {
132
+ return useContext(NotificationContext);
133
+ }
134
+ export default NotificationProvider;
@@ -0,0 +1,2 @@
1
+ export * from './NotificationProvider.js';
2
+ export { default as NotificationProvider } from './NotificationProvider.js';
@@ -0,0 +1,2 @@
1
+ export * from './NotificationProvider.js';
2
+ export { default as NotificationProvider } from './NotificationProvider.js';
@@ -1,4 +1,3 @@
1
1
  // Copyright (c) 2023 System Automation Corporation.
2
2
  // This file is licensed under the MIT License.
3
3
  export {};
4
- //# sourceMappingURL=filters.js.map
@@ -2,4 +2,3 @@
2
2
  // This file is licensed under the MIT License.
3
3
  export * from './filters.js';
4
4
  export * from './objects.js';
5
- //# sourceMappingURL=index.js.map
@@ -1,12 +1,18 @@
1
1
  import { ApiServices, Callback } from '../api/index.js';
2
2
  import { Filter } from './filters.js';
3
+ export type BaseObjReference = {
4
+ objectId: string;
5
+ discriminatorValue: unknown;
6
+ };
3
7
  export type Obj = {
4
8
  id: string;
5
9
  name: string;
10
+ typeDiscriminatorProperty?: string;
11
+ baseObject?: BaseObjReference;
6
12
  properties?: Property[];
7
13
  actions?: Action[];
8
14
  };
9
- export type PropertyType = 'array' | 'boolean' | 'date' | 'date-time' | 'integer' | 'number' | 'object' | 'string';
15
+ export type PropertyType = 'address' | 'array' | 'boolean' | 'collection' | 'date' | 'date-time' | 'image' | 'integer' | 'number' | 'object' | 'string' | 'time';
10
16
  export type Property = {
11
17
  id: string;
12
18
  name: string;
@@ -23,7 +29,7 @@ export type Action = {
23
29
  name: string;
24
30
  type: ActionType;
25
31
  outputEvent: string;
26
- inputProperties?: Property[];
32
+ inputProperties?: ActionInput[];
27
33
  };
28
34
  export type ObjectInstance = {
29
35
  id: string;
@@ -31,6 +37,47 @@ export type ObjectInstance = {
31
37
  name: string;
32
38
  [key: string]: unknown;
33
39
  };
40
+ export type RegexValidation = {
41
+ regex: string;
42
+ errorMessage: string;
43
+ };
44
+ export type SelectOption = {
45
+ label: string;
46
+ value: string;
47
+ };
48
+ /**
49
+ * Represents an object action inputProperty object.
50
+ */
51
+ export type ActionInput = {
52
+ label: string;
53
+ type: string;
54
+ key: string;
55
+ initialValue?: unknown;
56
+ placeholder?: string;
57
+ description?: string;
58
+ tooltip?: string;
59
+ prefix?: string;
60
+ suffix?: string;
61
+ showCharCount?: boolean;
62
+ readOnly?: boolean;
63
+ isMultiLineText?: boolean;
64
+ data?: {
65
+ /**
66
+ * An array of values required for select options.
67
+ */
68
+ values?: SelectOption[];
69
+ };
70
+ validate?: {
71
+ required?: boolean;
72
+ operator?: 'any' | 'all';
73
+ regexes?: RegexValidation[];
74
+ };
75
+ /**
76
+ * An array of sub-components to be rendered inside sections.
77
+ */
78
+ components?: ActionInput[];
79
+ [key: string]: unknown;
80
+ };
34
81
  export type ActionRequest = {
35
82
  actionId: string;
36
83
  input?: Record<string, unknown>;
@@ -65,16 +112,16 @@ export declare class ObjectStore {
65
112
  get(options?: ObjectOptions): Promise<Obj>;
66
113
  get(cb?: Callback<Obj>): void;
67
114
  get(options: ObjectOptions, cb?: Callback<Obj>): void;
68
- findInstances(filter?: Filter): Promise<ObjectInstance[]>;
69
- findInstances(cb: Callback<ObjectInstance[]>): void;
70
- findInstances(filter: Filter, cb: Callback<ObjectInstance[]>): void;
71
- getInstance(id: string): Promise<ObjectInstance>;
72
- getInstance(id: string, cb: Callback<ObjectInstance>): void;
115
+ findInstances<T extends ObjectInstance = ObjectInstance>(filter?: Filter): Promise<T[]>;
116
+ findInstances<T extends ObjectInstance = ObjectInstance>(cb: Callback<T[]>): void;
117
+ findInstances<T extends ObjectInstance = ObjectInstance>(filter: Filter, cb: Callback<T[]>): void;
118
+ getInstance<T extends ObjectInstance = ObjectInstance>(id: string): Promise<T>;
119
+ getInstance<T extends ObjectInstance = ObjectInstance>(id: string, cb: Callback<T>): void;
73
120
  getInstanceHistory(id: string): Promise<History[]>;
74
121
  getInstanceHistory(id: string, cb: Callback<History[]>): void;
75
- newInstance(input: ActionRequest): Promise<ObjectInstance>;
76
- newInstance(input: ActionRequest, cb: Callback<ObjectInstance>): void;
77
- instanceAction(id: string, input: ActionRequest): Promise<ObjectInstance>;
78
- instanceAction(id: string, input: ActionRequest, cb: Callback<ObjectInstance>): void;
122
+ newInstance<T extends ObjectInstance = ObjectInstance>(input: ActionRequest): Promise<T>;
123
+ newInstance<T extends ObjectInstance = ObjectInstance>(input: ActionRequest, cb: Callback<T>): void;
124
+ instanceAction<T extends ObjectInstance = ObjectInstance>(id: string, input: ActionRequest): Promise<T>;
125
+ instanceAction<T extends ObjectInstance = ObjectInstance>(id: string, input: ActionRequest, cb: Callback<T>): void;
79
126
  }
80
127
  export declare function useObject(objectId: string): ObjectStore;
@@ -24,9 +24,9 @@ export class ObjectStore {
24
24
  },
25
25
  };
26
26
  if (!cb) {
27
- return this.services.get(`data/objects/${this.objectId}`, config);
27
+ return this.services.get(`data/objects/${this.objectId}/effective`, config);
28
28
  }
29
- this.services.get(`data/objects/${this.objectId}`, config, cb);
29
+ this.services.get(`data/objects/${this.objectId}/effective`, config, cb);
30
30
  }
31
31
  findInstances(filterOrCallback, cb) {
32
32
  let filter;
@@ -78,4 +78,3 @@ export function useObject(objectId) {
78
78
  const services = useApiServices();
79
79
  return useMemo(() => new ObjectStore(services, objectId), [services, objectId]);
80
80
  }
81
- //# sourceMappingURL=objects.js.map
@@ -2,4 +2,3 @@
2
2
  // This file is licensed under the MIT License.
3
3
  export * from './navigation.js';
4
4
  export * from './routeParams.js';
5
- //# sourceMappingURL=index.js.map
@@ -8,4 +8,3 @@ export function useNavigate() {
8
8
  navigate(generatePath(page, params));
9
9
  }, [navigate]);
10
10
  }
11
- //# sourceMappingURL=navigation.js.map
@@ -7,4 +7,3 @@ export function usePageParams() {
7
7
  export function usePageParam(param) {
8
8
  return useParams()[param];
9
9
  }
10
- //# sourceMappingURL=routeParams.js.map
@@ -140,4 +140,3 @@ export function useSignalRConnection() {
140
140
  return useContext(SignalRConnectionContext);
141
141
  }
142
142
  export default SignalRConnectionProvider;
143
- //# sourceMappingURL=SignalRConnectionProvider.js.map
@@ -2,4 +2,3 @@
2
2
  // This file is licensed under the MIT License.
3
3
  export * from './SignalRConnectionProvider.js';
4
4
  export { default as SignalRConnectionProvider } from './SignalRConnectionProvider.js';
5
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/context",
3
- "version": "1.0.0-dev.9",
3
+ "version": "1.0.0-dev.91",
4
4
  "description": "Utilities that provide context to Evoke platform widgets",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -35,24 +35,25 @@
35
35
  "!dist/tests"
36
36
  ],
37
37
  "devDependencies": {
38
- "@azure/msal-browser": "^2.38.0",
38
+ "@azure/msal-browser": "^2.38.2",
39
39
  "@azure/msal-react": "^1.5.9",
40
- "@types/chai": "^4.3.4",
41
- "@types/dirty-chai": "^2.0.2",
42
- "@types/mocha": "^10.0.1",
40
+ "@types/chai": "^4.3.11",
41
+ "@types/dirty-chai": "^2.0.4",
42
+ "@types/mocha": "^10.0.6",
43
43
  "@types/node": "^18.15.7",
44
- "@types/react": "^18.0.28",
45
- "@types/sinon": "^10.0.13",
46
- "chai": "^4.3.7",
47
- "commit-and-tag-version": "^11.2.2",
44
+ "@types/react": "^18.2.28",
45
+ "@types/uuid": "^9.0.8",
46
+ "@types/sinon": "^17.0.3",
47
+ "chai": "^4.3.10",
48
+ "commit-and-tag-version": "^12.1.0",
48
49
  "dirty-chai": "^2.0.1",
49
- "eslint-plugin-react": "^7.32.2",
50
+ "eslint-plugin-react": "^7.33.2",
50
51
  "mocha": "^10.2.0",
51
- "msw": "^1.2.1",
52
+ "msw": "^1.3.1",
52
53
  "react": "^18.2.0",
53
- "react-router-dom": "^6.14.0",
54
- "sinon": "^15.0.3",
55
- "typescript": "^5.1.6"
54
+ "react-router-dom": "^6.16.0",
55
+ "sinon": "^17.0.1",
56
+ "typescript": "^5.3.3"
56
57
  },
57
58
  "peerDependencies": {
58
59
  "@azure/msal-browser": ">=2",
@@ -61,7 +62,8 @@
61
62
  "react-router-dom": ">=6"
62
63
  },
63
64
  "dependencies": {
64
- "@microsoft/signalr": "^7.0.5",
65
- "axios": "^1.4.0"
65
+ "@microsoft/signalr": "^7.0.12",
66
+ "axios": "^1.6.7",
67
+ "uuid": "^9.0.1"
66
68
  }
67
69
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApiBaseUrlProvider.js","sourceRoot":"","sources":["../../src/api/ApiBaseUrlProvider.tsx"],"names":[],"mappings":";;AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,OAAO,EAAE,aAAa,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7D,MAAM,iBAAiB,GAAG,aAAa,CAAC,GAAG,MAAA,UAAU,CAAC,QAAQ,0CAAE,MAAM,MAAM,CAAC,CAAC;AAE9E,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAOpD,SAAS,kBAAkB,CAAC,KAA8B;IACtD,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KA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AC,CAAC;AACN,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppProvider.js","sourceRoot":"","sources":["../../src/app/AppProvider.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,OAAO,EAAE,aAAa,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AA+C7D,MAAM,UAAU,GAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AACjF,MAAM,UAAU,GAAG,aAAa,CAAM,UAAU,CAAC,CAAC;AAElD,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAOtC,SAAS,WAAW,CAAC,KAAuB;IACxC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEhC,OAAO,KAAC,UAAU,CAAC,QAAQ,IAAC,KAAK,EAAE,GAAG,YAAG,QAAQ,GAAuB,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,MAAM;IAClB,OAAO,UAAU,CAAC,UAAU,CAAC,CAAC;AAClC,CAAC;AAED,eAAe,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthenticationContextProvider.js","sourceRoot":"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B,CAAC,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,CAClC,CAAC;IAEF,OAAO,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,YAAG,QAAQ,GAAoB,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,wBAAwB;IACpC,OAAO,UAAU,CAAC,OAAO,CAAC,CAAC;AAC/B,CAAC;AAED,eAAe,6BAA6B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/authentication/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,oCAAoC,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/objects/filters.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"objects.js","sourceRoot":"","sources":["../../src/objects/objects.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AAG/C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAyB,cAAc,EA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BAAgB,IAAI,CAAC,QAAQ,cAAc,EAAE,UAAU,EACvD,KAAK,CACR,CAAC;SACL;QAED,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,QAAQ,cAAc,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;IAC3F,CAAC;CACJ;AAED,MAAM,UAAU,SAAS,CAAC,QAAgB;IACtC,MAAM,QAAQ,GAAG,cAAc,EAAE,CAAC;IAElC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AACpF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/router/index.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../src/router/navigation.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIlF,MAAM,UAAU,WAAW;IACvB,MAAM,QAAQ,GAAG,iBAAiB,EAAE,CAAC;IAErC,OAAO,WAAW,CACd,CAAC,IAAY,EAAE,MAA+B,EAAE,EAAE;QAC9C,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,CAAC,EACD,CAAC,QAAQ,CAAC,CACb,CAAC;AACN,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"routeParams.js","sourceRoot":"","sources":["../../src/router/routeParams.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,+CAA+C;AA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