@salesforce/b2c-cli 1.15.0 → 1.16.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/dist/commands/cip/report/bot-traffic-share.d.ts +42 -0
- package/dist/commands/cip/report/bot-traffic-share.js +24 -0
- package/dist/commands/cip/report/bot-traffic-share.js.map +1 -0
- package/dist/commands/cip/report/checkout-funnel-dropoff.d.ts +42 -0
- package/dist/commands/cip/report/checkout-funnel-dropoff.js +24 -0
- package/dist/commands/cip/report/checkout-funnel-dropoff.js.map +1 -0
- package/dist/commands/cip/report/controller-error-rate-trend.d.ts +42 -0
- package/dist/commands/cip/report/controller-error-rate-trend.js +24 -0
- package/dist/commands/cip/report/controller-error-rate-trend.js.map +1 -0
- package/dist/commands/cip/report/controller-health-scorecard.d.ts +42 -0
- package/dist/commands/cip/report/controller-health-scorecard.js +24 -0
- package/dist/commands/cip/report/controller-health-scorecard.js.map +1 -0
- package/dist/commands/cip/report/customer-registration-trends.d.ts +4 -2
- package/dist/commands/cip/report/customer-registration-trends.js +8 -6
- package/dist/commands/cip/report/customer-registration-trends.js.map +1 -1
- package/dist/commands/cip/report/discount-depth-breakdown.d.ts +42 -0
- package/dist/commands/cip/report/discount-depth-breakdown.js +24 -0
- package/dist/commands/cip/report/discount-depth-breakdown.js.map +1 -0
- package/dist/commands/cip/report/inventory-stockout-by-location.d.ts +42 -0
- package/dist/commands/cip/report/inventory-stockout-by-location.js +24 -0
- package/dist/commands/cip/report/inventory-stockout-by-location.js.map +1 -0
- package/dist/commands/cip/report/list.d.ts +29 -0
- package/dist/commands/cip/report/list.js +89 -0
- package/dist/commands/cip/report/list.js.map +1 -0
- package/dist/commands/cip/report/new-vs-returning-buyer-revenue.d.ts +42 -0
- package/dist/commands/cip/report/new-vs-returning-buyer-revenue.js +24 -0
- package/dist/commands/cip/report/new-vs-returning-buyer-revenue.js.map +1 -0
- package/dist/commands/cip/report/ocapi-client-usage.d.ts +42 -0
- package/dist/commands/cip/report/ocapi-client-usage.js +24 -0
- package/dist/commands/cip/report/ocapi-client-usage.js.map +1 -0
- package/dist/commands/cip/report/ocapi-requests.d.ts +4 -2
- package/dist/commands/cip/report/ocapi-requests.js +8 -6
- package/dist/commands/cip/report/ocapi-requests.js.map +1 -1
- package/dist/commands/cip/report/payment-method-performance.d.ts +4 -2
- package/dist/commands/cip/report/payment-method-performance.js +8 -6
- package/dist/commands/cip/report/payment-method-performance.js.map +1 -1
- package/dist/commands/cip/report/product-co-purchase-analysis.d.ts +4 -2
- package/dist/commands/cip/report/product-co-purchase-analysis.js +8 -6
- package/dist/commands/cip/report/product-co-purchase-analysis.js.map +1 -1
- package/dist/commands/cip/report/promotion-discount-analysis.d.ts +4 -1
- package/dist/commands/cip/report/promotion-discount-analysis.js +8 -4
- package/dist/commands/cip/report/promotion-discount-analysis.js.map +1 -1
- package/dist/commands/cip/report/promotion-roi-leaderboard.d.ts +42 -0
- package/dist/commands/cip/report/promotion-roi-leaderboard.js +24 -0
- package/dist/commands/cip/report/promotion-roi-leaderboard.js.map +1 -0
- package/dist/commands/cip/report/recommender-effectiveness.d.ts +42 -0
- package/dist/commands/cip/report/recommender-effectiveness.js +24 -0
- package/dist/commands/cip/report/recommender-effectiveness.js.map +1 -0
- package/dist/commands/cip/report/remote-include-performance.d.ts +42 -0
- package/dist/commands/cip/report/remote-include-performance.js +24 -0
- package/dist/commands/cip/report/remote-include-performance.js.map +1 -0
- package/dist/commands/cip/report/revenue-by-channel.d.ts +42 -0
- package/dist/commands/cip/report/revenue-by-channel.js +24 -0
- package/dist/commands/cip/report/revenue-by-channel.js.map +1 -0
- package/dist/commands/cip/report/sales-analytics.d.ts +4 -2
- package/dist/commands/cip/report/sales-analytics.js +8 -6
- package/dist/commands/cip/report/sales-analytics.js.map +1 -1
- package/dist/commands/cip/report/sales-summary.d.ts +4 -2
- package/dist/commands/cip/report/sales-summary.js +8 -6
- package/dist/commands/cip/report/sales-summary.js.map +1 -1
- package/dist/commands/cip/report/scapi-cache-hit-ratio.d.ts +42 -0
- package/dist/commands/cip/report/scapi-cache-hit-ratio.js +24 -0
- package/dist/commands/cip/report/scapi-cache-hit-ratio.js.map +1 -0
- package/dist/commands/cip/report/scapi-error-rate-by-status.d.ts +42 -0
- package/dist/commands/cip/report/scapi-error-rate-by-status.js +24 -0
- package/dist/commands/cip/report/scapi-error-rate-by-status.js.map +1 -0
- package/dist/commands/cip/report/scapi-latency-distribution.d.ts +42 -0
- package/dist/commands/cip/report/scapi-latency-distribution.js +24 -0
- package/dist/commands/cip/report/scapi-latency-distribution.js.map +1 -0
- package/dist/commands/cip/report/scapi-traffic-latency.d.ts +42 -0
- package/dist/commands/cip/report/scapi-traffic-latency.js +24 -0
- package/dist/commands/cip/report/scapi-traffic-latency.js.map +1 -0
- package/dist/commands/cip/report/search-query-performance.d.ts +4 -3
- package/dist/commands/cip/report/search-query-performance.js +8 -19
- package/dist/commands/cip/report/search-query-performance.js.map +1 -1
- package/dist/commands/cip/report/top-referrers.d.ts +4 -3
- package/dist/commands/cip/report/top-referrers.js +8 -7
- package/dist/commands/cip/report/top-referrers.js.map +1 -1
- package/dist/commands/cip/report/top-selling-products.d.ts +4 -2
- package/dist/commands/cip/report/top-selling-products.js +8 -6
- package/dist/commands/cip/report/top-selling-products.js.map +1 -1
- package/dist/commands/cip/report/zero-result-searches.d.ts +42 -0
- package/dist/commands/cip/report/zero-result-searches.js +24 -0
- package/dist/commands/cip/report/zero-result-searches.js.map +1 -0
- package/dist/utils/cip/report-command.d.ts +7 -1
- package/dist/utils/cip/report-command.js +36 -0
- package/dist/utils/cip/report-command.js.map +1 -1
- package/dist/utils/cip/report-flags.d.ts +17 -2
- package/dist/utils/cip/report-flags.js +70 -0
- package/dist/utils/cip/report-flags.js.map +1 -1
- package/oclif.manifest.json +13657 -7251
- package/package.json +5 -5
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025, Salesforce, Inc.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2
|
|
4
|
+
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { Flags, ux } from '@oclif/core';
|
|
7
|
+
import { listCipReports } from '@salesforce/b2c-tooling-sdk';
|
|
8
|
+
import { BaseCommand } from '@salesforce/b2c-tooling-sdk/cli';
|
|
9
|
+
import { withDocs } from '../../../i18n/index.js';
|
|
10
|
+
import { renderTable, writeCsv, writeJson } from '../../../utils/cip/format.js';
|
|
11
|
+
function toRow(report) {
|
|
12
|
+
const required = report.parameters
|
|
13
|
+
.filter((parameter) => parameter.required)
|
|
14
|
+
.map((parameter) => parameter.name)
|
|
15
|
+
.join(', ');
|
|
16
|
+
return {
|
|
17
|
+
category: report.category,
|
|
18
|
+
name: report.name,
|
|
19
|
+
description: report.description,
|
|
20
|
+
required_params: required,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Lists the curated CIP report catalog grouped by category. Requires no credentials —
|
|
25
|
+
* it reads the static report definitions from the SDK so users (and agents) can
|
|
26
|
+
* discover available reports, their categories, and required parameters.
|
|
27
|
+
*/
|
|
28
|
+
export default class CipReportList extends BaseCommand {
|
|
29
|
+
static description = withDocs('List curated CIP reports grouped by category', '/cli/cip.html#b2c-cip-report-list');
|
|
30
|
+
static enableJsonFlag = true;
|
|
31
|
+
static examples = [
|
|
32
|
+
'<%= config.bin %> cip report list',
|
|
33
|
+
'<%= config.bin %> cip report list --category "Technical Analytics"',
|
|
34
|
+
'<%= config.bin %> cip report list --json',
|
|
35
|
+
];
|
|
36
|
+
static flags = {
|
|
37
|
+
category: Flags.string({
|
|
38
|
+
description: 'Filter to a single report category (case-insensitive)',
|
|
39
|
+
helpGroup: 'QUERY',
|
|
40
|
+
}),
|
|
41
|
+
format: Flags.string({
|
|
42
|
+
description: 'Output format',
|
|
43
|
+
options: ['table', 'json', 'csv'],
|
|
44
|
+
default: 'table',
|
|
45
|
+
helpGroup: 'QUERY',
|
|
46
|
+
}),
|
|
47
|
+
};
|
|
48
|
+
async run() {
|
|
49
|
+
const categoryFilter = this.flags.category?.toLowerCase();
|
|
50
|
+
const reports = listCipReports()
|
|
51
|
+
.filter((report) => !categoryFilter || report.category.toLowerCase() === categoryFilter)
|
|
52
|
+
.sort((a, b) => a.category.localeCompare(b.category) || a.name.localeCompare(b.name));
|
|
53
|
+
const rows = reports.map((report) => toRow(report));
|
|
54
|
+
const output = { reportCount: rows.length, reports: rows };
|
|
55
|
+
if (this.jsonEnabled()) {
|
|
56
|
+
return output;
|
|
57
|
+
}
|
|
58
|
+
if (this.flags.format === 'json') {
|
|
59
|
+
writeJson(output);
|
|
60
|
+
return output;
|
|
61
|
+
}
|
|
62
|
+
if (this.flags.format === 'csv') {
|
|
63
|
+
writeCsv(['category', 'name', 'description', 'required_params'], rows);
|
|
64
|
+
return output;
|
|
65
|
+
}
|
|
66
|
+
this.renderGroupedTable(reports);
|
|
67
|
+
return output;
|
|
68
|
+
}
|
|
69
|
+
renderGroupedTable(reports) {
|
|
70
|
+
if (reports.length === 0) {
|
|
71
|
+
ux.stdout('No reports match the requested category.');
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const categories = [...new Set(reports.map((report) => report.category))];
|
|
75
|
+
for (const category of categories) {
|
|
76
|
+
const inCategory = reports.filter((report) => report.category === category);
|
|
77
|
+
ux.stdout(`\n${category}`);
|
|
78
|
+
renderTable(['name', 'required', 'description'], inCategory.map((report) => ({
|
|
79
|
+
name: report.name,
|
|
80
|
+
required: report.parameters
|
|
81
|
+
.filter((parameter) => parameter.required)
|
|
82
|
+
.map((parameter) => `--${parameter.name.replaceAll(/[A-Z]/gu, (match) => `-${match.toLowerCase()}`)}`)
|
|
83
|
+
.join(' '),
|
|
84
|
+
description: report.description,
|
|
85
|
+
})));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=list.js.map
|
|
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AAC,WAAW;aAChC,CAAC,CAAmC,CACtC,CAAC;QACJ,CAAC;IACH,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `b2c cip report new-vs-returning-buyer-revenue` — flags are auto-derived from the catalog
|
|
4
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
5
|
+
*/
|
|
6
|
+
export default class CipReportNewVsReturningBuyerRevenue extends CipReportCommand<typeof CipReportNewVsReturningBuyerRevenue> {
|
|
7
|
+
static description: string;
|
|
8
|
+
static enableJsonFlag: boolean;
|
|
9
|
+
static flags: {
|
|
10
|
+
describe: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
sql: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
'cip-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
staging: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
from: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
to: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
format: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'fetch-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
'client-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'client-secret': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
'auth-scope': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'short-code': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
'tenant-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
'auth-methods': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'user-auth': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
25
|
+
'account-manager-host': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
|
+
'jwt-cert': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
27
|
+
'jwt-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
28
|
+
'jwt-passphrase': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
29
|
+
'log-level': import("@oclif/core/interfaces").OptionFlag<"trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
30
|
+
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
31
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
32
|
+
jsonl: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
33
|
+
lang: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
34
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
35
|
+
instance: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
36
|
+
'project-directory': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
|
+
'extra-query': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
38
|
+
'extra-body': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
39
|
+
'extra-headers': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
40
|
+
};
|
|
41
|
+
protected readonly reportName = "new-vs-returning-buyer-revenue";
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025, Salesforce, Inc.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2
|
|
4
|
+
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { withDocs } from '../../../i18n/index.js';
|
|
7
|
+
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
8
|
+
import { buildReportFlags, requireReport } from '../../../utils/cip/report-flags.js';
|
|
9
|
+
const REPORT_NAME = 'new-vs-returning-buyer-revenue';
|
|
10
|
+
/**
|
|
11
|
+
* `b2c cip report new-vs-returning-buyer-revenue` — flags are auto-derived from the catalog
|
|
12
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
13
|
+
*/
|
|
14
|
+
export default class CipReportNewVsReturningBuyerRevenue extends CipReportCommand {
|
|
15
|
+
static description = withDocs('Split revenue, orders, AOV, and discount depth between first-time and returning buyers', '/cli/cip.html#b2c-cip-report-new-vs-returning-buyer-revenue');
|
|
16
|
+
static enableJsonFlag = true;
|
|
17
|
+
static flags = {
|
|
18
|
+
...CipReportCommand.baseFlags,
|
|
19
|
+
...CipReportCommand.reportFlags,
|
|
20
|
+
...buildReportFlags(requireReport(REPORT_NAME)),
|
|
21
|
+
};
|
|
22
|
+
reportName = REPORT_NAME;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=new-vs-returning-buyer-revenue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-vs-returning-buyer-revenue.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/new-vs-returning-buyer-revenue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAEnF,MAAM,WAAW,GAAG,gCAAgC,CAAC;AAErD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,mCAAoC,SAAQ,gBAEhE;IACC,MAAM,CAAC,WAAW,GAAG,QAAQ,CAC3B,wFAAwF,EACxF,6DAA6D,CAC9D,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,KAAK,GAAG;QACb,GAAG,gBAAgB,CAAC,SAAS;QAC7B,GAAG,gBAAgB,CAAC,WAAW;QAC/B,GAAG,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;KAChD,CAAC;IAEiB,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `b2c cip report ocapi-client-usage` — flags are auto-derived from the catalog
|
|
4
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
5
|
+
*/
|
|
6
|
+
export default class CipReportOcapiClientUsage extends CipReportCommand<typeof CipReportOcapiClientUsage> {
|
|
7
|
+
static description: string;
|
|
8
|
+
static enableJsonFlag: boolean;
|
|
9
|
+
static flags: {
|
|
10
|
+
describe: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
sql: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
'cip-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
staging: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
from: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
to: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
format: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'fetch-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
'client-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'client-secret': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
'auth-scope': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'short-code': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
'tenant-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
'auth-methods': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'user-auth': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
25
|
+
'account-manager-host': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
|
+
'jwt-cert': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
27
|
+
'jwt-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
28
|
+
'jwt-passphrase': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
29
|
+
'log-level': import("@oclif/core/interfaces").OptionFlag<"trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
30
|
+
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
31
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
32
|
+
jsonl: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
33
|
+
lang: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
34
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
35
|
+
instance: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
36
|
+
'project-directory': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
|
+
'extra-query': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
38
|
+
'extra-body': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
39
|
+
'extra-headers': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
40
|
+
};
|
|
41
|
+
protected readonly reportName = "ocapi-client-usage";
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025, Salesforce, Inc.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2
|
|
4
|
+
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { withDocs } from '../../../i18n/index.js';
|
|
7
|
+
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
8
|
+
import { buildReportFlags, requireReport } from '../../../utils/cip/report-flags.js';
|
|
9
|
+
const REPORT_NAME = 'ocapi-client-usage';
|
|
10
|
+
/**
|
|
11
|
+
* `b2c cip report ocapi-client-usage` — flags are auto-derived from the catalog
|
|
12
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
13
|
+
*/
|
|
14
|
+
export default class CipReportOcapiClientUsage extends CipReportCommand {
|
|
15
|
+
static description = withDocs('Rank OCAPI client_ids by request volume with per-client error rate and latency', '/cli/cip.html#b2c-cip-report-ocapi-client-usage');
|
|
16
|
+
static enableJsonFlag = true;
|
|
17
|
+
static flags = {
|
|
18
|
+
...CipReportCommand.baseFlags,
|
|
19
|
+
...CipReportCommand.reportFlags,
|
|
20
|
+
...buildReportFlags(requireReport(REPORT_NAME)),
|
|
21
|
+
};
|
|
22
|
+
reportName = REPORT_NAME;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=ocapi-client-usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ocapi-client-usage.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/ocapi-client-usage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAEnF,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAEzC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,gBAAkD;IACvG,MAAM,CAAC,WAAW,GAAG,QAAQ,CAC3B,gFAAgF,EAChF,iDAAiD,CAClD,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,KAAK,GAAG;QACb,GAAG,gBAAgB,CAAC,SAAS;QAC7B,GAAG,gBAAgB,CAAC,WAAW;QAC/B,GAAG,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;KAChD,CAAC;IAEiB,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `b2c cip report ocapi-requests` — flags are auto-derived from the catalog
|
|
4
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
5
|
+
*/
|
|
2
6
|
export default class CipReportOcapiRequests extends CipReportCommand<typeof CipReportOcapiRequests> {
|
|
3
7
|
static description: string;
|
|
4
8
|
static enableJsonFlag: boolean;
|
|
5
9
|
static flags: {
|
|
6
|
-
'site-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
10
|
describe: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
11
|
sql: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
12
|
'cip-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -36,5 +39,4 @@ export default class CipReportOcapiRequests extends CipReportCommand<typeof CipR
|
|
|
36
39
|
'extra-headers': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
40
|
};
|
|
38
41
|
protected readonly reportName = "ocapi-requests";
|
|
39
|
-
protected getReportParams(): Record<string, string>;
|
|
40
42
|
}
|
|
@@ -5,18 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { withDocs } from '../../../i18n/index.js';
|
|
7
7
|
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
8
|
-
import {
|
|
8
|
+
import { buildReportFlags, requireReport } from '../../../utils/cip/report-flags.js';
|
|
9
|
+
const REPORT_NAME = 'ocapi-requests';
|
|
10
|
+
/**
|
|
11
|
+
* `b2c cip report ocapi-requests` — flags are auto-derived from the catalog
|
|
12
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
13
|
+
*/
|
|
9
14
|
export default class CipReportOcapiRequests extends CipReportCommand {
|
|
10
15
|
static description = withDocs('Analyze OCAPI request volume and response latency', '/cli/cip.html#b2c-cip-report-ocapi-requests');
|
|
11
16
|
static enableJsonFlag = true;
|
|
12
17
|
static flags = {
|
|
13
18
|
...CipReportCommand.baseFlags,
|
|
14
19
|
...CipReportCommand.reportFlags,
|
|
15
|
-
|
|
20
|
+
...buildReportFlags(requireReport(REPORT_NAME)),
|
|
16
21
|
};
|
|
17
|
-
reportName =
|
|
18
|
-
getReportParams() {
|
|
19
|
-
return this.getBaseReportParams();
|
|
20
|
-
}
|
|
22
|
+
reportName = REPORT_NAME;
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=ocapi-requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ocapi-requests.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/ocapi-requests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"ocapi-requests.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/ocapi-requests.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAEnF,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAErC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,gBAA+C;IACjG,MAAM,CAAC,WAAW,GAAG,QAAQ,CAC3B,mDAAmD,EACnD,6CAA6C,CAC9C,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,KAAK,GAAG;QACb,GAAG,gBAAgB,CAAC,SAAS;QAC7B,GAAG,gBAAgB,CAAC,WAAW;QAC/B,GAAG,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;KAChD,CAAC;IAEiB,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `b2c cip report payment-method-performance` — flags are auto-derived from the catalog
|
|
4
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
5
|
+
*/
|
|
2
6
|
export default class CipReportPaymentMethodPerformance extends CipReportCommand<typeof CipReportPaymentMethodPerformance> {
|
|
3
7
|
static description: string;
|
|
4
8
|
static enableJsonFlag: boolean;
|
|
5
9
|
static flags: {
|
|
6
|
-
'site-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
10
|
describe: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
11
|
sql: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
12
|
'cip-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -36,5 +39,4 @@ export default class CipReportPaymentMethodPerformance extends CipReportCommand<
|
|
|
36
39
|
'extra-headers': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
40
|
};
|
|
38
41
|
protected readonly reportName = "payment-method-performance";
|
|
39
|
-
protected getReportParams(): Record<string, string>;
|
|
40
42
|
}
|
|
@@ -5,18 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { withDocs } from '../../../i18n/index.js';
|
|
7
7
|
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
8
|
-
import {
|
|
8
|
+
import { buildReportFlags, requireReport } from '../../../utils/cip/report-flags.js';
|
|
9
|
+
const REPORT_NAME = 'payment-method-performance';
|
|
10
|
+
/**
|
|
11
|
+
* `b2c cip report payment-method-performance` — flags are auto-derived from the catalog
|
|
12
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
13
|
+
*/
|
|
9
14
|
export default class CipReportPaymentMethodPerformance extends CipReportCommand {
|
|
10
15
|
static description = withDocs('Track payment method adoption and transaction metrics', '/cli/cip.html#b2c-cip-report-payment-method-performance');
|
|
11
16
|
static enableJsonFlag = true;
|
|
12
17
|
static flags = {
|
|
13
18
|
...CipReportCommand.baseFlags,
|
|
14
19
|
...CipReportCommand.reportFlags,
|
|
15
|
-
|
|
20
|
+
...buildReportFlags(requireReport(REPORT_NAME)),
|
|
16
21
|
};
|
|
17
|
-
reportName =
|
|
18
|
-
getReportParams() {
|
|
19
|
-
return this.getBaseReportParams();
|
|
20
|
-
}
|
|
22
|
+
reportName = REPORT_NAME;
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=payment-method-performance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-method-performance.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/payment-method-performance.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"payment-method-performance.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/payment-method-performance.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAEnF,MAAM,WAAW,GAAG,4BAA4B,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,iCAAkC,SAAQ,gBAE9D;IACC,MAAM,CAAC,WAAW,GAAG,QAAQ,CAC3B,uDAAuD,EACvD,yDAAyD,CAC1D,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,KAAK,GAAG;QACb,GAAG,gBAAgB,CAAC,SAAS;QAC7B,GAAG,gBAAgB,CAAC,WAAW;QAC/B,GAAG,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;KAChD,CAAC;IAEiB,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `b2c cip report product-co-purchase-analysis` — flags are auto-derived from the catalog
|
|
4
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
5
|
+
*/
|
|
2
6
|
export default class CipReportProductCoPurchaseAnalysis extends CipReportCommand<typeof CipReportProductCoPurchaseAnalysis> {
|
|
3
7
|
static description: string;
|
|
4
8
|
static enableJsonFlag: boolean;
|
|
5
9
|
static flags: {
|
|
6
|
-
'site-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
10
|
describe: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
11
|
sql: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
12
|
'cip-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -36,5 +39,4 @@ export default class CipReportProductCoPurchaseAnalysis extends CipReportCommand
|
|
|
36
39
|
'extra-headers': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
40
|
};
|
|
38
41
|
protected readonly reportName = "product-co-purchase-analysis";
|
|
39
|
-
protected getReportParams(): Record<string, string>;
|
|
40
42
|
}
|
|
@@ -5,18 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { withDocs } from '../../../i18n/index.js';
|
|
7
7
|
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
8
|
-
import {
|
|
8
|
+
import { buildReportFlags, requireReport } from '../../../utils/cip/report-flags.js';
|
|
9
|
+
const REPORT_NAME = 'product-co-purchase-analysis';
|
|
10
|
+
/**
|
|
11
|
+
* `b2c cip report product-co-purchase-analysis` — flags are auto-derived from the catalog
|
|
12
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
13
|
+
*/
|
|
9
14
|
export default class CipReportProductCoPurchaseAnalysis extends CipReportCommand {
|
|
10
15
|
static description = withDocs('Analyze frequently co-purchased products', '/cli/cip.html#b2c-cip-report-product-co-purchase-analysis');
|
|
11
16
|
static enableJsonFlag = true;
|
|
12
17
|
static flags = {
|
|
13
18
|
...CipReportCommand.baseFlags,
|
|
14
19
|
...CipReportCommand.reportFlags,
|
|
15
|
-
|
|
20
|
+
...buildReportFlags(requireReport(REPORT_NAME)),
|
|
16
21
|
};
|
|
17
|
-
reportName =
|
|
18
|
-
getReportParams() {
|
|
19
|
-
return this.getBaseReportParams();
|
|
20
|
-
}
|
|
22
|
+
reportName = REPORT_NAME;
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=product-co-purchase-analysis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-co-purchase-analysis.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/product-co-purchase-analysis.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"product-co-purchase-analysis.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/product-co-purchase-analysis.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAEnF,MAAM,WAAW,GAAG,8BAA8B,CAAC;AAEnD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,gBAE/D;IACC,MAAM,CAAC,WAAW,GAAG,QAAQ,CAC3B,0CAA0C,EAC1C,2DAA2D,CAC5D,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,KAAK,GAAG;QACb,GAAG,gBAAgB,CAAC,SAAS;QAC7B,GAAG,gBAAgB,CAAC,WAAW;QAC/B,GAAG,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;KAChD,CAAC;IAEiB,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `b2c cip report promotion-discount-analysis` — flags are auto-derived from the catalog
|
|
4
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
5
|
+
*/
|
|
2
6
|
export default class CipReportPromotionDiscountAnalysis extends CipReportCommand<typeof CipReportPromotionDiscountAnalysis> {
|
|
3
7
|
static description: string;
|
|
4
8
|
static enableJsonFlag: boolean;
|
|
@@ -35,5 +39,4 @@ export default class CipReportPromotionDiscountAnalysis extends CipReportCommand
|
|
|
35
39
|
'extra-headers': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
36
40
|
};
|
|
37
41
|
protected readonly reportName = "promotion-discount-analysis";
|
|
38
|
-
protected getReportParams(): Record<string, string>;
|
|
39
42
|
}
|
|
@@ -5,16 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { withDocs } from '../../../i18n/index.js';
|
|
7
7
|
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
8
|
+
import { buildReportFlags, requireReport } from '../../../utils/cip/report-flags.js';
|
|
9
|
+
const REPORT_NAME = 'promotion-discount-analysis';
|
|
10
|
+
/**
|
|
11
|
+
* `b2c cip report promotion-discount-analysis` — flags are auto-derived from the catalog
|
|
12
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
13
|
+
*/
|
|
8
14
|
export default class CipReportPromotionDiscountAnalysis extends CipReportCommand {
|
|
9
15
|
static description = withDocs('Measure promotional discount impact on orders', '/cli/cip.html#b2c-cip-report-promotion-discount-analysis');
|
|
10
16
|
static enableJsonFlag = true;
|
|
11
17
|
static flags = {
|
|
12
18
|
...CipReportCommand.baseFlags,
|
|
13
19
|
...CipReportCommand.reportFlags,
|
|
20
|
+
...buildReportFlags(requireReport(REPORT_NAME)),
|
|
14
21
|
};
|
|
15
|
-
reportName =
|
|
16
|
-
getReportParams() {
|
|
17
|
-
return this.getBaseReportParams();
|
|
18
|
-
}
|
|
22
|
+
reportName = REPORT_NAME;
|
|
19
23
|
}
|
|
20
24
|
//# sourceMappingURL=promotion-discount-analysis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotion-discount-analysis.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/promotion-discount-analysis.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"promotion-discount-analysis.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/promotion-discount-analysis.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAEnF,MAAM,WAAW,GAAG,6BAA6B,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,kCAAmC,SAAQ,gBAE/D;IACC,MAAM,CAAC,WAAW,GAAG,QAAQ,CAC3B,+CAA+C,EAC/C,0DAA0D,CAC3D,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,KAAK,GAAG;QACb,GAAG,gBAAgB,CAAC,SAAS;QAC7B,GAAG,gBAAgB,CAAC,WAAW;QAC/B,GAAG,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;KAChD,CAAC;IAEiB,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `b2c cip report promotion-roi-leaderboard` — flags are auto-derived from the catalog
|
|
4
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
5
|
+
*/
|
|
6
|
+
export default class CipReportPromotionRoiLeaderboard extends CipReportCommand<typeof CipReportPromotionRoiLeaderboard> {
|
|
7
|
+
static description: string;
|
|
8
|
+
static enableJsonFlag: boolean;
|
|
9
|
+
static flags: {
|
|
10
|
+
describe: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
sql: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
'cip-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
staging: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
from: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
to: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
format: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'fetch-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
'client-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'client-secret': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
'auth-scope': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'short-code': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
'tenant-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
'auth-methods': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'user-auth': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
25
|
+
'account-manager-host': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
|
+
'jwt-cert': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
27
|
+
'jwt-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
28
|
+
'jwt-passphrase': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
29
|
+
'log-level': import("@oclif/core/interfaces").OptionFlag<"trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
30
|
+
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
31
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
32
|
+
jsonl: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
33
|
+
lang: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
34
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
35
|
+
instance: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
36
|
+
'project-directory': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
|
+
'extra-query': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
38
|
+
'extra-body': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
39
|
+
'extra-headers': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
40
|
+
};
|
|
41
|
+
protected readonly reportName = "promotion-roi-leaderboard";
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025, Salesforce, Inc.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2
|
|
4
|
+
* For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { withDocs } from '../../../i18n/index.js';
|
|
7
|
+
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
8
|
+
import { buildReportFlags, requireReport } from '../../../utils/cip/report-flags.js';
|
|
9
|
+
const REPORT_NAME = 'promotion-roi-leaderboard';
|
|
10
|
+
/**
|
|
11
|
+
* `b2c cip report promotion-roi-leaderboard` — flags are auto-derived from the catalog
|
|
12
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
13
|
+
*/
|
|
14
|
+
export default class CipReportPromotionRoiLeaderboard extends CipReportCommand {
|
|
15
|
+
static description = withDocs('Rank promotions by revenue per dollar of discount, with orders, uses, and AOV', '/cli/cip.html#b2c-cip-report-promotion-roi-leaderboard');
|
|
16
|
+
static enableJsonFlag = true;
|
|
17
|
+
static flags = {
|
|
18
|
+
...CipReportCommand.baseFlags,
|
|
19
|
+
...CipReportCommand.reportFlags,
|
|
20
|
+
...buildReportFlags(requireReport(REPORT_NAME)),
|
|
21
|
+
};
|
|
22
|
+
reportName = REPORT_NAME;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=promotion-roi-leaderboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion-roi-leaderboard.js","sourceRoot":"","sources":["../../../../src/commands/cip/report/promotion-roi-leaderboard.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,oCAAoC,CAAC;AAEnF,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAEhD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,gCAAiC,SAAQ,gBAE7D;IACC,MAAM,CAAC,WAAW,GAAG,QAAQ,CAC3B,+EAA+E,EAC/E,wDAAwD,CACzD,CAAC;IAEF,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC;IAE7B,MAAM,CAAC,KAAK,GAAG;QACb,GAAG,gBAAgB,CAAC,SAAS;QAC7B,GAAG,gBAAgB,CAAC,WAAW;QAC/B,GAAG,gBAAgB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;KAChD,CAAC;IAEiB,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CipReportCommand } from '../../../utils/cip/report-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* `b2c cip report recommender-effectiveness` — flags are auto-derived from the catalog
|
|
4
|
+
* definition; param parsing/validation lives in {@link CipReportCommand} and the SDK.
|
|
5
|
+
*/
|
|
6
|
+
export default class CipReportRecommenderEffectiveness extends CipReportCommand<typeof CipReportRecommenderEffectiveness> {
|
|
7
|
+
static description: string;
|
|
8
|
+
static enableJsonFlag: boolean;
|
|
9
|
+
static flags: {
|
|
10
|
+
describe: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
sql: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
'cip-host': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
staging: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
from: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
to: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
format: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'fetch-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
'client-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'client-secret': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
'auth-scope': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'short-code': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
'tenant-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
'auth-methods': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'user-auth': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
25
|
+
'account-manager-host': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
|
+
'jwt-cert': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
27
|
+
'jwt-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
28
|
+
'jwt-passphrase': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
29
|
+
'log-level': import("@oclif/core/interfaces").OptionFlag<"trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
30
|
+
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
31
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
32
|
+
jsonl: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
33
|
+
lang: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
34
|
+
config: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
35
|
+
instance: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
36
|
+
'project-directory': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
|
+
'extra-query': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
38
|
+
'extra-body': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
39
|
+
'extra-headers': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
40
|
+
};
|
|
41
|
+
protected readonly reportName = "recommender-effectiveness";
|
|
42
|
+
}
|