@probo/skills 0.2.0 → 0.2.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/package.json
CHANGED
|
@@ -8,13 +8,12 @@ varies by environment (there may be more than one Probo server, e.g. US and EU).
|
|
|
8
8
|
|
|
9
9
|
1. **Resolve the organization** — `listOrganizations`, match by name, keep the `id`.
|
|
10
10
|
2. **Resolve the compliance portal** — `getCompliancePortal` with `organization_id`. Keep
|
|
11
|
-
`compliance_portal.id`; every group call
|
|
12
|
-
|
|
13
|
-
3. **Read what already exists** — `listCommitmentGroups` with the `trust_center_id`, and
|
|
11
|
+
`compliance_portal.id`; every group call takes it as the `compliance_portal_id` argument.
|
|
12
|
+
3. **Read what already exists** — `listCommitmentGroups` with the `compliance_portal_id`, and
|
|
14
13
|
`listCommitments` with a `group_id`. Do this so you reuse the existing group instead of duplicating it.
|
|
15
14
|
Order by `{field: "RANK", direction: "ASC"}`.
|
|
16
15
|
4. **Create the single group** — all commitments live under one group titled "Security at <company name>".
|
|
17
|
-
If it does not exist yet, `addCommitmentGroup` with `
|
|
16
|
+
If it does not exist yet, `addCommitmentGroup` with `compliance_portal_id`, `title`, `description`; if it (or
|
|
18
17
|
any other group) already exists, reuse it. Capture the returned `commitment_group.id`. You need it to
|
|
19
18
|
attach commitments.
|
|
20
19
|
5. **Add commitments** — `addCommitment` with `group_id`, `icon`, `eyebrow`, `title`, `description`. These
|