@evoke-platform/context 1.2.0-dev.1 → 1.2.0-testing.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/README.md +0 -20
- package/dist/objects/objects.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,6 @@ available and no further installation is necessary.
|
|
|
17
17
|
|
|
18
18
|
- [Working With Objects](#working-with-objects)
|
|
19
19
|
- [REST API Calls](#rest-api-calls)
|
|
20
|
-
- [Authentication Context](#authentication-context)
|
|
21
20
|
- [Notifications](#notifications)
|
|
22
21
|
|
|
23
22
|
### Working With Objects
|
|
@@ -223,25 +222,6 @@ absolute URL.
|
|
|
223
222
|
|
|
224
223
|
##### `delete(url, options)`
|
|
225
224
|
|
|
226
|
-
### Authentication Context
|
|
227
|
-
|
|
228
|
-
- [useAuthenticationContext](#useauthenticationcontext)
|
|
229
|
-
|
|
230
|
-
#### `useAuthenticationContext()`
|
|
231
|
-
|
|
232
|
-
Hook to obtain the authentication context based on the current logged-in user.
|
|
233
|
-
|
|
234
|
-
The authentication context includes the following property and functions.
|
|
235
|
-
|
|
236
|
-
- `account` _[object]_
|
|
237
|
-
- The account of the currently logged-in user. This includes both the user's `id` and `name`.
|
|
238
|
-
- `logout()`
|
|
239
|
-
- A function that logs out the currently logged-in user. The user will be redirected to Evoke's logout page upon logout.
|
|
240
|
-
- `getAccessToken()`
|
|
241
|
-
- A function that returns an access token that is associated to the currently logged-in user. This token can be used to make API calls to Evoke's APIs to authenticate the API call.
|
|
242
|
-
- Note: As a general recommendation, the [ApiService](#class-apiservices) class should be used to make API calls as it will take care
|
|
243
|
-
of appending an access token to the call.
|
|
244
|
-
|
|
245
225
|
### Notifications
|
|
246
226
|
|
|
247
227
|
- [useNofitication](#usenotification)
|
|
@@ -207,7 +207,7 @@ export type FormEntry = InputParameterReference | Columns | Sections | Content;
|
|
|
207
207
|
export type Form = {
|
|
208
208
|
entries?: FormEntry[];
|
|
209
209
|
};
|
|
210
|
-
export type ActionInputType = 'button' | '
|
|
210
|
+
export type ActionInputType = 'button' | 'Boolean' | 'Columns' | 'Content' | 'Criteria' | 'Date' | 'DateTime' | 'Decimal' | 'Document' | 'Image' | 'Integer' | 'ManyToManyRepeatableField' | 'MultiSelect' | 'Object' | 'RepeatableField' | 'RichText' | 'Section' | 'Select' | 'TextField' | 'Time' | 'User';
|
|
211
211
|
/**
|
|
212
212
|
* Represents an object action inputProperty object.
|
|
213
213
|
*/
|