@@ -15,20 +15,52 @@ In order to use this library you need to have access to an Oracle Field Service
15
15
16
16
` npm install https://github.com/oracle-samples/ofs-proxy-js.git ` (when installing directly from GitHub)
17
17
18
+ ` npm install @ofs-users/proxy ` (when installing from npm)
19
+
18
20
2 . To use the library in your code:
19
21
20
- ` import {OFSPlugin} from "@ofs_users/proxy" `
22
+ ` import {OFS} from "@ofs-users/proxy" `
23
+
24
+ ## Functions implemented (may not be complete)
21
25
22
- ## Functions implemented
26
+ ### Core: Activity Management
23
27
24
- ` getActivity(activityId )` : Get activity details
28
+ ` getActivities( )` : Get existing activities
25
29
26
30
` updateActivity(activityId, activityData) ` : Update activity details
27
31
32
+ ` createActivity(activityData) ` : Create activity
33
+
34
+ ` deleteActivity(activityId) ` : Delete activity
35
+
36
+ ` updateActivity(activityId, activityData) ` : Update activity details
37
+
38
+ ### Core: Subscription Management
39
+
28
40
` getSubscriptions() ` : Get existing subscriptions
29
41
42
+ ### Core: User Management
43
+
44
+ ` getUsers() ` : Get existing users
45
+
46
+ ` getUserDetails(userId) ` : Get user details
47
+
48
+ ` getAllUsers() ` : Get all users
49
+
50
+ ### Core: Plugin Management
51
+
30
52
` importPlugins(file?, data?) ` : Import plugin by path or via an XML string
31
53
54
+ ### Metadata: Property Management
55
+
56
+ ` getProperties() ` : Get existing properties
57
+
58
+ ` getPropertyDetails(propertyId) ` : Get property details
59
+
60
+ ` updateProperty(propertyId, propertyData) ` : Update property details
61
+
62
+ ` createReplaceProperty(propertyData) ` : Create or replace property
63
+
32
64
## Documentation and Examples
33
65
34
66
Please see the ` docs/ ` directory for documentation and a simple example
@@ -37,8 +69,11 @@ Please see the `docs/` directory for documentation and a simple example
37
69
38
70
| Version | Comments |
39
71
| ---------| ----------- |
40
- | 0.1| Added ` getActivity ` , ` updateActivity ` , ` getSubscriptions ` |
72
+ | 0.1| Added ` getActivityDetails ` , ` updateActivity ` , ` getSubscriptions ` |
41
73
| 1.1| Added ` importPlugins ` |
74
+ | 1.2| Added ` createActivity ` , ` deleteActivity ` |
75
+ | 1.6| Added ` getUsers ` , ` getUserDetails ` , ` getAllUsers ` |
76
+ | 1.8| Added ` getProperties ` , ` getPropertyDetails ` , ` updateProperty ` ` createReplaceProperty ` |
42
77
43
78
## Contributing
44
79
0 commit comments