@siteoshq/cli 2.2.0 → 2.3.0
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/dist/cli.js +16 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7842,6 +7842,7 @@ var filters = [
|
|
|
7842
7842
|
var TRACE_EXPLORER_FLAGS = {
|
|
7843
7843
|
coverage: ["environment"],
|
|
7844
7844
|
"gtm summary": ["environment", "period"],
|
|
7845
|
+
"ga4 show": ["environment"],
|
|
7845
7846
|
"notifications show": ["environment"],
|
|
7846
7847
|
"notifications destinations": ["environment", "cursor"],
|
|
7847
7848
|
destinations: filters,
|
|
@@ -7948,6 +7949,7 @@ function traceExplorerSuffix(route, values) {
|
|
|
7948
7949
|
}
|
|
7949
7950
|
const suffix = {
|
|
7950
7951
|
"gtm summary": "gtm/summary",
|
|
7952
|
+
"ga4 show": "ga4",
|
|
7951
7953
|
"notifications show": "notifications",
|
|
7952
7954
|
"notifications destinations": "notification-destinations"
|
|
7953
7955
|
}[route] ?? route;
|
|
@@ -7993,6 +7995,10 @@ Usage:
|
|
|
7993
7995
|
siteos trace environments [--json]
|
|
7994
7996
|
siteos trace report [--environment <slug>] [--json]
|
|
7995
7997
|
siteos trace coverage [--environment <slug>] [--json]
|
|
7998
|
+
siteos trace ga4 show [--environment <slug>] [--json]
|
|
7999
|
+
siteos trace ga4 bind --input <json-file> [--environment <slug>] [--json]
|
|
8000
|
+
siteos trace ga4 sync --input <json-file> [--environment <slug>] [--json]
|
|
8001
|
+
siteos trace ga4 disconnect --input <json-file> [--environment <slug>] [--json]
|
|
7996
8002
|
siteos trace gtm summary [--environment <slug>] [--period <24h|7d>] [--json]
|
|
7997
8003
|
siteos trace notifications show [--environment <slug>] [--json]
|
|
7998
8004
|
siteos trace notifications destinations [--environment <slug>] [--cursor <cursor>] [--json]
|
|
@@ -8096,6 +8102,9 @@ async function runServiceCommand(service, options) {
|
|
|
8096
8102
|
environments: [],
|
|
8097
8103
|
report: ["environment"],
|
|
8098
8104
|
...TRACE_EXPLORER_FLAGS,
|
|
8105
|
+
"ga4 bind": ["environment", "input"],
|
|
8106
|
+
"ga4 sync": ["environment", "input"],
|
|
8107
|
+
"ga4 disconnect": ["environment", "input"],
|
|
8099
8108
|
"notifications save": ["environment", "input"],
|
|
8100
8109
|
"notifications retry": ["environment", "input"],
|
|
8101
8110
|
"schema restart": ["environment", "input"],
|
|
@@ -8295,7 +8304,7 @@ async function runServiceCommand(service, options) {
|
|
|
8295
8304
|
result = await request(site);
|
|
8296
8305
|
else if (action === "environments" && positionals.length === 1)
|
|
8297
8306
|
result = await request(`${site}/environments`);
|
|
8298
|
-
else if (action === "notifications" || action === "schema" || action === "report" || action === "installation" || action === "tracking-plan" || explorerSuffix !== null) {
|
|
8307
|
+
else if (action === "ga4" || action === "notifications" || action === "schema" || action === "report" || action === "installation" || action === "tracking-plan" || explorerSuffix !== null) {
|
|
8299
8308
|
const response = z13.object({
|
|
8300
8309
|
environments: z13.array(
|
|
8301
8310
|
z13.object({ id: z13.string(), slug: z13.string() })
|
|
@@ -8324,6 +8333,12 @@ async function runServiceCommand(service, options) {
|
|
|
8324
8333
|
const base = `/environments/${encodeURIComponent(matches[0].id)}`;
|
|
8325
8334
|
if (explorerSuffix !== null) {
|
|
8326
8335
|
result = await request(`${base}${explorerSuffix}`);
|
|
8336
|
+
} else if (action === "ga4") {
|
|
8337
|
+
result = await request(
|
|
8338
|
+
`${base}/ga4/${subaction}`,
|
|
8339
|
+
"POST",
|
|
8340
|
+
await inputFile()
|
|
8341
|
+
);
|
|
8327
8342
|
} else if (route === "notifications retry" || route === "schema restart") {
|
|
8328
8343
|
result = await request(
|
|
8329
8344
|
`${base}/${route === "schema restart" ? "schema-baselines/reset" : "notification-retries"}`,
|