@numericoach/gskills-admin-cli 0.1.15 → 0.1.16
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
CHANGED
|
@@ -69,6 +69,8 @@ gskills-admin access grant --user <userId> --type DEFAULT --dry-run --output jso
|
|
|
69
69
|
gskills-admin instances create-plan --output json
|
|
70
70
|
gskills-admin instances create --data '{"name":"Client","URL":"client","licenceType":"STARTER","tokensAllowed":50}' --dry-run --output json
|
|
71
71
|
gskills-admin entities list --instance <instanceId> --output json
|
|
72
|
+
gskills-admin entities sync-google-groups --instance <instanceId> --dry-run --output json
|
|
73
|
+
gskills-admin entities sync-google-groups --instance <instanceId> --yes --output json
|
|
72
74
|
gskills-admin entities set-page-visibility --instance <instanceId> --page <pageId> --entity-ids google-group:team@example.com --dry-run --output json
|
|
73
75
|
gskills-admin org-units-sync google --instance <instanceId> --yes --output json
|
|
74
76
|
gskills-admin ambassadors label --instance <instanceId> --language fr --output json
|
package/dist/gskills-admin.js
CHANGED
|
@@ -1108,6 +1108,9 @@ var runEntitiesCommand = async (action, entityId, ctx) => {
|
|
|
1108
1108
|
return requestApi(`/api/cli/entities/access-summary?${entitySearchParams(ctx).toString()}`);
|
|
1109
1109
|
}
|
|
1110
1110
|
if (action === "sync-google-groups") {
|
|
1111
|
+
if (!hasFlag(ctx, "yes") && !hasFlag(ctx, "dry-run")) {
|
|
1112
|
+
throw new CliError("Google group sync writes the stored group catalog. Add --yes or use --dry-run.", 2);
|
|
1113
|
+
}
|
|
1111
1114
|
return requestApi("/api/cli/entities/sync-google-groups", {
|
|
1112
1115
|
method: "POST",
|
|
1113
1116
|
body: JSON.stringify({
|
|
@@ -1591,7 +1594,7 @@ var schemaHelp = () => ({
|
|
|
1591
1594
|
{ name: "entities list", required: ["--instance"], flags: ["--language"], writes: false },
|
|
1592
1595
|
{ name: "entities detail", args: ["entityId"], required: ["--instance"], flags: ["--language"], writes: false },
|
|
1593
1596
|
{ name: "entities access-summary", required: ["--instance"], writes: false },
|
|
1594
|
-
{ name: "entities sync-google-groups", required: ["--instance"], flags: ["--dry-run"], writes:
|
|
1597
|
+
{ name: "entities sync-google-groups", required: ["--instance"], flags: ["--yes", "--dry-run"], writes: true },
|
|
1595
1598
|
{ name: "entities save-access-rules", required: ["--instance", "--entity-ids"], flags: ["--yes", "--dry-run"], writes: true },
|
|
1596
1599
|
{ name: "entities set-restrictions", args: ["entityId"], required: ["--instance"], flags: ["--category-ids", "--learning-path-ids", "--alpha-program-ids", "--alpha-all-programs", "--yes", "--dry-run"], writes: true },
|
|
1597
1600
|
{ name: "entities set-page-visibility", required: ["--instance", "--page"], flags: ["--entity-ids", "--yes", "--dry-run"], writes: true },
|
|
@@ -1743,6 +1746,8 @@ var entitiesHelp = () => ({
|
|
|
1743
1746
|
"gskills-admin entities list --instance <instanceId>",
|
|
1744
1747
|
"gskills-admin entities detail <entityId> --instance <instanceId>",
|
|
1745
1748
|
"gskills-admin entities access-summary --instance <instanceId>",
|
|
1749
|
+
"gskills-admin entities sync-google-groups --instance <instanceId> --dry-run",
|
|
1750
|
+
"gskills-admin entities sync-google-groups --instance <instanceId> --yes",
|
|
1746
1751
|
"gskills-admin entities save-access-rules --instance <instanceId> --entity-ids manual-group:<id>,org-unit:<id> --dry-run",
|
|
1747
1752
|
"gskills-admin entities set-restrictions <entityId> --instance <instanceId> --category-ids <id,id> --learning-path-ids <id,id> --yes",
|
|
1748
1753
|
"gskills-admin entities set-page-visibility --instance <instanceId> --page <pageId> --entity-ids google-group:team@example.com --yes"
|
package/package.json
CHANGED
|
@@ -409,7 +409,8 @@ Entities are the shared segmentation layer for manual groups, Google groups, and
|
|
|
409
409
|
gskills-admin entities list --instance <instanceId> --language fr --output json
|
|
410
410
|
gskills-admin entities detail manual-group:<groupId> --instance <instanceId> --language fr --output json
|
|
411
411
|
gskills-admin entities access-summary --instance <instanceId> --output json
|
|
412
|
-
gskills-admin entities sync-google-groups --instance <instanceId> --output json
|
|
412
|
+
gskills-admin entities sync-google-groups --instance <instanceId> --dry-run --output json
|
|
413
|
+
gskills-admin entities sync-google-groups --instance <instanceId> --yes --output json
|
|
413
414
|
gskills-admin org-units-sync google --instance <instanceId> --dry-run --output json
|
|
414
415
|
gskills-admin org-units-sync google --instance <instanceId> --yes --output json
|
|
415
416
|
```
|
|
@@ -36,6 +36,7 @@ Known context:
|
|
|
36
36
|
|
|
37
37
|
- Customer id used during Google Admin checks: `C028v0b9g`.
|
|
38
38
|
- Known Google Chat space: `Air Liquide x Numericoach - GSkills`, `spaces/AAQAc2CT1qI`.
|
|
39
|
+
- Recurring task-tracking Sheet from Audrey: `NC AIR LIQUIDE GSKILLS GDP`, `https://docs.google.com/spreadsheets/d/1qhbvCEae5-3MIDENxEcp708vt_gK8lpRdkSHYEXHSog/edit?gid=0#gid=0`. Use it when the user asks about Air Liquide task ownership or GDP follow-up. Prefer moving actionable work into the app or ClickUp when possible; Google Workspace tracking is tolerated here because the client uses it, not because it is the desired operating model.
|
|
39
40
|
- Harold OUSSET was a known user whose display name required surname-first parsing.
|
|
40
41
|
- Air Liquide syncs should usually start with `sync logs`, then `sync diff`, then a narrow or preset run.
|
|
41
42
|
|