ofsc-utility 1.0.53 → 1.0.54
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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
10
10
|
- version 1.0.46
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
|
+
- add getAllNonScheduledActivities function
|
|
13
14
|
- Bump version to 1.0.52 and add activity lifecycle actions
|
|
14
15
|
- update version to 1.0.51 and add user/inventory type management functions
|
|
15
16
|
- Bump version to 1.0.50 and add new export functions
|
|
@@ -11,7 +11,7 @@ async function startActivity(clientId, clientSecret, instanceUrl, activityId, to
|
|
|
11
11
|
}
|
|
12
12
|
const url = `https://${instanceUrl}.fs.ocs.oraclecloud.com/rest/ofscCore/v1/activities/${Number(activityId)}/custom-actions/start`;
|
|
13
13
|
console.log(`➡️ Fetching activity by ID: ${url}`);
|
|
14
|
-
const response = await (0, utilities_1.
|
|
14
|
+
const response = await (0, utilities_1.fetchPostWithRetry)(url, clientId, clientSecret, instanceUrl, token, {});
|
|
15
15
|
return response;
|
|
16
16
|
}
|
|
17
17
|
async function cancelActivity(clientId, clientSecret, instanceUrl, activityId, token = "") {
|
|
@@ -20,7 +20,7 @@ async function cancelActivity(clientId, clientSecret, instanceUrl, activityId, t
|
|
|
20
20
|
}
|
|
21
21
|
const url = `https://${instanceUrl}.fs.ocs.oraclecloud.com/rest/ofscCore/v1/activities/${Number(activityId)}/custom-actions/cancel`;
|
|
22
22
|
console.log(`➡️ Fetching activity by ID: ${url}`);
|
|
23
|
-
const response = await (0, utilities_1.
|
|
23
|
+
const response = await (0, utilities_1.fetchPostWithRetry)(url, clientId, clientSecret, instanceUrl, token, {});
|
|
24
24
|
return response;
|
|
25
25
|
}
|
|
26
26
|
async function completeActivity(clientId, clientSecret, instanceUrl, activityId, token = "") {
|
|
@@ -29,7 +29,7 @@ async function completeActivity(clientId, clientSecret, instanceUrl, activityId,
|
|
|
29
29
|
}
|
|
30
30
|
const url = `https://${instanceUrl}.fs.ocs.oraclecloud.com/rest/ofscCore/v1/activities/${Number(activityId)}/custom-actions/complete`;
|
|
31
31
|
console.log(`Completing activity by ID: ${url}`);
|
|
32
|
-
const response = await (0, utilities_1.
|
|
32
|
+
const response = await (0, utilities_1.fetchPostWithRetry)(url, clientId, clientSecret, instanceUrl, token, {});
|
|
33
33
|
return response;
|
|
34
34
|
}
|
|
35
35
|
async function deleteActivity(clientId, clientSecret, instanceUrl, activityId, token = "") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ofsc-utility",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"description": "TypeScript helpers for Oracle Field Service Cloud (OFSC): events, resources, inventories, metadata and CSV/Excel utilities.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|