@funnelsgrove/cli 0.1.306 → 0.1.307
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 +19 -0
- package/dist/alertCommands.d.ts +166 -0
- package/dist/alertCommands.js +160 -0
- package/dist/cli.js +73 -8
- package/funnel-contract-compatibility.json +33 -33
- package/package.json +1 -1
- package/template_docs/.funnelsgrove-docs.json +3 -3
- package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_docs/funnel-docs.config.json +1 -1
- package/template_scaffold/.funnelsgrove-docs.json +3 -3
- package/template_scaffold/.funnelsgrove-scaffold.json +5 -5
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_scaffold/funnel-docs.config.json +1 -1
package/README.md
CHANGED
|
@@ -224,6 +224,25 @@ last pull. Item `paymentProfileBindings` (for example a PayPal binding) are not
|
|
|
224
224
|
in the file; existing ones are kept, and a new set copied from another starts
|
|
225
225
|
without them.
|
|
226
226
|
|
|
227
|
+
Read chargeback alert and Prevent transaction search history for one UTC month
|
|
228
|
+
without customer or card data:
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
fgrove alerts list --project claimbee --month 2026-10 # every alert: ids, dates, service, amount, status, outcome
|
|
232
|
+
fgrove alerts stats --project claimbee --month 2026-10 --json # counts by service, refund/cancellation shares, FunnelsGrove cost
|
|
233
|
+
fgrove prevent list --project claimbee --month 2026-10 # every transaction search / inquiry: date, program, outcome, amount, scheme, status
|
|
234
|
+
fgrove prevent stats --project claimbee --month 2026-10 # searches, found rate, Prevent deflection rate
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
`--month` defaults to the current month. List commands download every page
|
|
238
|
+
before printing. Outcomes are `refunded automatically`, `refunded manually`,
|
|
239
|
+
`needs review / pending`, `closed without refund` or `informational`, plus the
|
|
240
|
+
subscription cancellation state; percentages in `alerts stats` are shares of all
|
|
241
|
+
alerts received in the month. Merchanto alerts are counted but billed directly
|
|
242
|
+
by Merchanto; the cost lines cover FunnelsGrove alerts for the whole project.
|
|
243
|
+
The output never includes customer emails, names, phone numbers, IP addresses,
|
|
244
|
+
card digits, network references or Stripe identifiers.
|
|
245
|
+
|
|
227
246
|
Use `--api-url` or `FUNNELSGROVE_API_URL` for non-production APIs.
|
|
228
247
|
Use `--config` or `FUNNELSGROVE_CONFIG` to keep test credentials separate from the default `~/.funnelsgrove/config.json`.
|
|
229
248
|
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
type CallApi = <T>(input: {
|
|
2
|
+
path: string;
|
|
3
|
+
type: 'query' | 'mutation';
|
|
4
|
+
data?: unknown;
|
|
5
|
+
token?: string | null;
|
|
6
|
+
}) => Promise<T>;
|
|
7
|
+
export type AlertCommandScope = {
|
|
8
|
+
callApi: CallApi;
|
|
9
|
+
token: string;
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
};
|
|
13
|
+
export type AlertMonth = {
|
|
14
|
+
month: string;
|
|
15
|
+
from: string;
|
|
16
|
+
to: string;
|
|
17
|
+
};
|
|
18
|
+
type Provider = 'chargebackhit' | 'merchanto';
|
|
19
|
+
type OutcomeBucket = 'refundedAutomatically' | 'refundedManually' | 'needsReview' | 'resolvedWithoutRefund' | 'informational';
|
|
20
|
+
type OutcomeCounts = Record<OutcomeBucket | 'subscriptionCanceled', number>;
|
|
21
|
+
/** API export row; identifiers, money, dates and outcome only. */
|
|
22
|
+
export type AlertExportRow = {
|
|
23
|
+
id: string;
|
|
24
|
+
provider: Provider;
|
|
25
|
+
providerAlertId: string;
|
|
26
|
+
paymentProfileId: string | null;
|
|
27
|
+
service: string;
|
|
28
|
+
alertType: 'chargeback' | 'notification';
|
|
29
|
+
status: string;
|
|
30
|
+
receivedAt: string;
|
|
31
|
+
transactionDate: string;
|
|
32
|
+
amountMinor: number;
|
|
33
|
+
currency: string;
|
|
34
|
+
outcome: OutcomeBucket;
|
|
35
|
+
refund: {
|
|
36
|
+
kind: 'refunded' | 'already_refunded';
|
|
37
|
+
actor: 'automatic' | 'manual';
|
|
38
|
+
} | null;
|
|
39
|
+
cancellationStatus: string | null;
|
|
40
|
+
needsReview: boolean;
|
|
41
|
+
};
|
|
42
|
+
export type AlertStatisticsResponse = {
|
|
43
|
+
period: {
|
|
44
|
+
from: string;
|
|
45
|
+
to: string;
|
|
46
|
+
};
|
|
47
|
+
paymentProfileId: string | null;
|
|
48
|
+
providers: Array<{
|
|
49
|
+
provider: Provider;
|
|
50
|
+
total: number;
|
|
51
|
+
services: Array<{
|
|
52
|
+
service: string;
|
|
53
|
+
count: number;
|
|
54
|
+
}>;
|
|
55
|
+
outcomes: OutcomeCounts;
|
|
56
|
+
}>;
|
|
57
|
+
billing: {
|
|
58
|
+
currency: 'USD';
|
|
59
|
+
lines: Array<{
|
|
60
|
+
serviceId: string;
|
|
61
|
+
label: string;
|
|
62
|
+
quantity: number;
|
|
63
|
+
billableQuantity: number;
|
|
64
|
+
unitPriceMinor: number;
|
|
65
|
+
estimatedChargeMinor: number;
|
|
66
|
+
}>;
|
|
67
|
+
totalChargeMinor: number;
|
|
68
|
+
} | null;
|
|
69
|
+
};
|
|
70
|
+
export type PreventExportRow = {
|
|
71
|
+
id: string;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
environment: 'test' | 'live';
|
|
74
|
+
requestMode: 'primary' | 'shadow';
|
|
75
|
+
program: string | null;
|
|
76
|
+
scheme: 'visa' | 'mastercard' | null;
|
|
77
|
+
outcome: 'found' | 'not_found';
|
|
78
|
+
amountMinor: number | null;
|
|
79
|
+
currency: string | null;
|
|
80
|
+
statusCode: number;
|
|
81
|
+
preventCaseStatus: 'new' | 'failed' | 'delete' | 'timeout' | null;
|
|
82
|
+
};
|
|
83
|
+
export type PreventSummary = {
|
|
84
|
+
totalCount: number;
|
|
85
|
+
foundCount: number;
|
|
86
|
+
notFoundCount: number;
|
|
87
|
+
foundRatePercent: number | null;
|
|
88
|
+
preventTotalCount: number;
|
|
89
|
+
preventDeflectedCount: number;
|
|
90
|
+
preventSuccessRatePercent: number | null;
|
|
91
|
+
};
|
|
92
|
+
/** The vendor behind FunnelsGrove alerts is never named in client output. */
|
|
93
|
+
export declare const alertProviderLabel: (provider: Provider) => string;
|
|
94
|
+
export declare const EXPORT_PAGE_SIZE = 500;
|
|
95
|
+
/** Parses `YYYY-MM` into an inclusive UTC day range; defaults to the current UTC month. */
|
|
96
|
+
export declare const parseAlertMonth: (value: string | undefined, now?: Date) => AlertMonth;
|
|
97
|
+
/** Minor units follow the currency's Intl fraction digits, matching how the API stores amounts. */
|
|
98
|
+
export declare const formatMinor: (amountMinor: number | null, currency: string | null) => string;
|
|
99
|
+
export declare const listAlerts: (scope: AlertCommandScope, month: AlertMonth) => Promise<AlertExportRow[]>;
|
|
100
|
+
export declare const fetchAlertStatistics: (scope: AlertCommandScope, month: AlertMonth) => Promise<AlertStatisticsResponse>;
|
|
101
|
+
export declare const listPreventSearches: (scope: AlertCommandScope, month: AlertMonth) => Promise<PreventExportRow[]>;
|
|
102
|
+
export declare const fetchPreventSummary: (scope: AlertCommandScope, month: AlertMonth) => Promise<PreventSummary>;
|
|
103
|
+
export declare const alertOutcomeLabel: (row: AlertExportRow) => string;
|
|
104
|
+
/** JSON row: the API export fields plus the client-facing provider label. */
|
|
105
|
+
export declare const toAlertJsonRow: (row: AlertExportRow) => {
|
|
106
|
+
provider: string;
|
|
107
|
+
id: string;
|
|
108
|
+
providerAlertId: string;
|
|
109
|
+
paymentProfileId: string | null;
|
|
110
|
+
service: string;
|
|
111
|
+
alertType: "chargeback" | "notification";
|
|
112
|
+
status: string;
|
|
113
|
+
receivedAt: string;
|
|
114
|
+
transactionDate: string;
|
|
115
|
+
amountMinor: number;
|
|
116
|
+
currency: string;
|
|
117
|
+
outcome: OutcomeBucket;
|
|
118
|
+
refund: {
|
|
119
|
+
kind: "refunded" | "already_refunded";
|
|
120
|
+
actor: "automatic" | "manual";
|
|
121
|
+
} | null;
|
|
122
|
+
cancellationStatus: string | null;
|
|
123
|
+
needsReview: boolean;
|
|
124
|
+
};
|
|
125
|
+
export declare const formatAlertRows: (rows: AlertExportRow[]) => string[];
|
|
126
|
+
export declare const buildAlertStatisticsReport: (month: AlertMonth, statistics: AlertStatisticsResponse) => {
|
|
127
|
+
month: string;
|
|
128
|
+
period: {
|
|
129
|
+
from: string;
|
|
130
|
+
to: string;
|
|
131
|
+
};
|
|
132
|
+
totalAlerts: number;
|
|
133
|
+
providers: {
|
|
134
|
+
provider: string;
|
|
135
|
+
total: number;
|
|
136
|
+
services: {
|
|
137
|
+
service: string;
|
|
138
|
+
count: number;
|
|
139
|
+
}[];
|
|
140
|
+
outcomes: OutcomeCounts;
|
|
141
|
+
billing: string;
|
|
142
|
+
}[];
|
|
143
|
+
outcomes: {
|
|
144
|
+
[k: string]: {
|
|
145
|
+
count: number;
|
|
146
|
+
percentOfAlerts: number | null;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
billing: {
|
|
150
|
+
currency: "USD";
|
|
151
|
+
lines: Array<{
|
|
152
|
+
serviceId: string;
|
|
153
|
+
label: string;
|
|
154
|
+
quantity: number;
|
|
155
|
+
billableQuantity: number;
|
|
156
|
+
unitPriceMinor: number;
|
|
157
|
+
estimatedChargeMinor: number;
|
|
158
|
+
}>;
|
|
159
|
+
totalChargeMinor: number;
|
|
160
|
+
} | null;
|
|
161
|
+
};
|
|
162
|
+
export declare const formatAlertStatistics: (month: AlertMonth, statistics: AlertStatisticsResponse) => string[];
|
|
163
|
+
export declare const preventOutcomeLabel: (row: PreventExportRow) => string;
|
|
164
|
+
export declare const formatPreventRows: (rows: PreventExportRow[]) => string[];
|
|
165
|
+
export declare const formatPreventSummary: (month: AlertMonth, summary: PreventSummary) => string[];
|
|
166
|
+
export {};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/** The vendor behind FunnelsGrove alerts is never named in client output. */
|
|
2
|
+
export const alertProviderLabel = (provider) => (provider === 'chargebackhit' ? 'FunnelsGrove' : 'Merchanto');
|
|
3
|
+
const OUTCOME_LABELS = {
|
|
4
|
+
refundedAutomatically: 'refunded automatically',
|
|
5
|
+
refundedManually: 'refunded manually',
|
|
6
|
+
needsReview: 'needs review / pending',
|
|
7
|
+
resolvedWithoutRefund: 'closed without refund',
|
|
8
|
+
informational: 'informational',
|
|
9
|
+
};
|
|
10
|
+
const OUTCOME_ORDER = ['refundedAutomatically', 'refundedManually', 'needsReview', 'resolvedWithoutRefund', 'informational'];
|
|
11
|
+
export const EXPORT_PAGE_SIZE = 500;
|
|
12
|
+
const pad = (value) => String(value).padStart(2, '0');
|
|
13
|
+
/** Parses `YYYY-MM` into an inclusive UTC day range; defaults to the current UTC month. */
|
|
14
|
+
export const parseAlertMonth = (value, now = new Date()) => {
|
|
15
|
+
const month = value ?? `${now.getUTCFullYear()}-${pad(now.getUTCMonth() + 1)}`;
|
|
16
|
+
const match = /^(\d{4})-(\d{2})$/.exec(month);
|
|
17
|
+
const year = match ? Number(match[1]) : NaN;
|
|
18
|
+
const monthNumber = match ? Number(match[2]) : NaN;
|
|
19
|
+
if (!match || monthNumber < 1 || monthNumber > 12) {
|
|
20
|
+
throw new Error(`Invalid month "${value}". Use YYYY-MM, for example 2026-10.`);
|
|
21
|
+
}
|
|
22
|
+
const lastDay = new Date(Date.UTC(year, monthNumber, 0)).getUTCDate();
|
|
23
|
+
return { month, from: `${month}-01`, to: `${month}-${pad(lastDay)}` };
|
|
24
|
+
};
|
|
25
|
+
/** Minor units follow the currency's Intl fraction digits, matching how the API stores amounts. */
|
|
26
|
+
export const formatMinor = (amountMinor, currency) => {
|
|
27
|
+
if (amountMinor === null || !currency)
|
|
28
|
+
return '';
|
|
29
|
+
const code = currency.toUpperCase();
|
|
30
|
+
let digits = 2;
|
|
31
|
+
try {
|
|
32
|
+
digits = new Intl.NumberFormat('en', { style: 'currency', currency: code }).resolvedOptions().maximumFractionDigits ?? 2;
|
|
33
|
+
}
|
|
34
|
+
catch { /* unknown code: assume two decimals */ }
|
|
35
|
+
return `${(amountMinor / 10 ** digits).toFixed(digits)} ${code}`;
|
|
36
|
+
};
|
|
37
|
+
const percent = (count, total) => (total > 0 ? `${((count / total) * 100).toFixed(1)}%` : '-');
|
|
38
|
+
const money = (minor) => `$${(minor / 100).toFixed(2)}`;
|
|
39
|
+
const fetchAllPages = async (fetchPage) => {
|
|
40
|
+
const rows = [];
|
|
41
|
+
for (let offset = 0; offset !== null;) {
|
|
42
|
+
const page = await fetchPage(offset);
|
|
43
|
+
rows.push(...page.rows);
|
|
44
|
+
if (page.nextOffset !== null && page.nextOffset <= offset)
|
|
45
|
+
throw new Error('Export paging did not advance.');
|
|
46
|
+
offset = page.rows.length === 0 ? null : page.nextOffset;
|
|
47
|
+
}
|
|
48
|
+
return rows;
|
|
49
|
+
};
|
|
50
|
+
export const listAlerts = async (scope, month) => {
|
|
51
|
+
const providers = ['chargebackhit', 'merchanto'];
|
|
52
|
+
const pages = await Promise.all(providers.map((provider) => fetchAllPages((offset) => scope.callApi({
|
|
53
|
+
path: 'transactionAlerts.exportAlerts',
|
|
54
|
+
type: 'query',
|
|
55
|
+
token: scope.token,
|
|
56
|
+
data: { workspaceId: scope.workspaceId, projectId: scope.projectId, provider, from: month.from, to: month.to, offset, limit: EXPORT_PAGE_SIZE },
|
|
57
|
+
}))));
|
|
58
|
+
return pages.flat().sort((left, right) => right.receivedAt.localeCompare(left.receivedAt) || left.id.localeCompare(right.id));
|
|
59
|
+
};
|
|
60
|
+
export const fetchAlertStatistics = (scope, month) => scope.callApi({
|
|
61
|
+
path: 'transactionAlerts.statistics',
|
|
62
|
+
type: 'query',
|
|
63
|
+
token: scope.token,
|
|
64
|
+
data: { workspaceId: scope.workspaceId, projectId: scope.projectId, from: month.from, to: month.to },
|
|
65
|
+
});
|
|
66
|
+
export const listPreventSearches = (scope, month) => fetchAllPages((offset) => scope.callApi({
|
|
67
|
+
path: 'projects.exportTransactionSearchAudits',
|
|
68
|
+
type: 'query',
|
|
69
|
+
token: scope.token,
|
|
70
|
+
data: { workspaceId: scope.workspaceId, projectId: scope.projectId, from: month.from, to: month.to, offset, limit: EXPORT_PAGE_SIZE },
|
|
71
|
+
}));
|
|
72
|
+
export const fetchPreventSummary = (scope, month) => scope.callApi({
|
|
73
|
+
path: 'projects.transactionSearchAuditSummary',
|
|
74
|
+
type: 'query',
|
|
75
|
+
token: scope.token,
|
|
76
|
+
data: { workspaceId: scope.workspaceId, projectId: scope.projectId, from: month.from, to: month.to },
|
|
77
|
+
});
|
|
78
|
+
export const alertOutcomeLabel = (row) => {
|
|
79
|
+
const parts = [row.refund ? `${row.refund.kind === 'already_refunded' ? 'already refunded' : 'refunded'} (${row.refund.actor})` : OUTCOME_LABELS[row.outcome]];
|
|
80
|
+
if (row.cancellationStatus)
|
|
81
|
+
parts.push(`subscription ${row.cancellationStatus.replaceAll('_', ' ')}`);
|
|
82
|
+
if (row.needsReview && row.outcome !== 'needsReview')
|
|
83
|
+
parts.push('needs review');
|
|
84
|
+
return parts.join('; ');
|
|
85
|
+
};
|
|
86
|
+
/** JSON row: the API export fields plus the client-facing provider label. */
|
|
87
|
+
export const toAlertJsonRow = (row) => ({ ...row, provider: alertProviderLabel(row.provider) });
|
|
88
|
+
export const formatAlertRows = (rows) => [
|
|
89
|
+
['received_at', 'provider', 'service', 'id', 'status', 'amount', 'outcome'].join('\t'),
|
|
90
|
+
...rows.map((row) => [row.receivedAt, alertProviderLabel(row.provider), row.service, row.providerAlertId, row.status, formatMinor(row.amountMinor, row.currency), alertOutcomeLabel(row)].join('\t')),
|
|
91
|
+
];
|
|
92
|
+
export const buildAlertStatisticsReport = (month, statistics) => {
|
|
93
|
+
const total = statistics.providers.reduce((sum, provider) => sum + provider.total, 0);
|
|
94
|
+
const sum = (key) => statistics.providers.reduce((count, provider) => count + provider.outcomes[key], 0);
|
|
95
|
+
return {
|
|
96
|
+
month: month.month,
|
|
97
|
+
period: statistics.period,
|
|
98
|
+
totalAlerts: total,
|
|
99
|
+
providers: statistics.providers.map((provider) => ({
|
|
100
|
+
provider: alertProviderLabel(provider.provider),
|
|
101
|
+
total: provider.total,
|
|
102
|
+
services: provider.services,
|
|
103
|
+
outcomes: provider.outcomes,
|
|
104
|
+
billing: provider.provider === 'merchanto' ? 'Billed directly by Merchanto' : 'FunnelsGrove usage',
|
|
105
|
+
})),
|
|
106
|
+
outcomes: Object.fromEntries([...OUTCOME_ORDER, 'subscriptionCanceled'].map((key) => [key, { count: sum(key), percentOfAlerts: total > 0 ? Number(((sum(key) / total) * 100).toFixed(1)) : null }])),
|
|
107
|
+
billing: statistics.billing,
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export const formatAlertStatistics = (month, statistics) => {
|
|
111
|
+
const report = buildAlertStatisticsReport(month, statistics);
|
|
112
|
+
const lines = [`Alerts ${month.month} (${statistics.period.from} to ${statistics.period.to}, UTC)`, `Total alerts\t${report.totalAlerts}`];
|
|
113
|
+
for (const provider of report.providers) {
|
|
114
|
+
if (provider.total === 0)
|
|
115
|
+
continue;
|
|
116
|
+
lines.push(`${provider.provider}\t${provider.total}`);
|
|
117
|
+
for (const service of provider.services)
|
|
118
|
+
lines.push(` ${service.service}\t${service.count}`);
|
|
119
|
+
}
|
|
120
|
+
lines.push('Outcomes (percent of total alerts; cancellation overlaps refunds)');
|
|
121
|
+
for (const key of OUTCOME_ORDER)
|
|
122
|
+
lines.push(` ${OUTCOME_LABELS[key]}\t${report.outcomes[key].count}\t${percent(report.outcomes[key].count, report.totalAlerts)}`);
|
|
123
|
+
lines.push(` subscription canceled\t${report.outcomes.subscriptionCanceled.count}\t${percent(report.outcomes.subscriptionCanceled.count, report.totalAlerts)}`);
|
|
124
|
+
if (statistics.billing) {
|
|
125
|
+
lines.push('Estimated FunnelsGrove alert cost (whole project, before billing reconciliation)');
|
|
126
|
+
for (const line of statistics.billing.lines)
|
|
127
|
+
lines.push(` ${line.label}\t${line.quantity} x ${money(line.unitPriceMinor)}\t${money(line.estimatedChargeMinor)}`);
|
|
128
|
+
lines.push(` Total\t${money(statistics.billing.totalChargeMinor)}`);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
lines.push('Estimated FunnelsGrove alert cost\tno usage recorded');
|
|
132
|
+
}
|
|
133
|
+
const merchanto = report.providers.find((provider) => provider.provider === 'Merchanto');
|
|
134
|
+
if (merchanto && merchanto.total > 0)
|
|
135
|
+
lines.push(`Merchanto alerts (${merchanto.total}) are billed directly by Merchanto.`);
|
|
136
|
+
return lines;
|
|
137
|
+
};
|
|
138
|
+
export const preventOutcomeLabel = (row) => {
|
|
139
|
+
if (row.preventCaseStatus === 'new')
|
|
140
|
+
return 'deflected';
|
|
141
|
+
if (row.preventCaseStatus === 'failed')
|
|
142
|
+
return 'escalated';
|
|
143
|
+
if (row.preventCaseStatus === 'delete')
|
|
144
|
+
return 'reopened';
|
|
145
|
+
if (row.preventCaseStatus === 'timeout')
|
|
146
|
+
return 'timed out';
|
|
147
|
+
return row.outcome;
|
|
148
|
+
};
|
|
149
|
+
export const formatPreventRows = (rows) => [
|
|
150
|
+
['created_at', 'program', 'scheme', 'environment', 'id', 'outcome', 'amount', 'status'].join('\t'),
|
|
151
|
+
...rows.map((row) => [row.createdAt, row.program ?? 'Transaction search', row.scheme ?? '', row.environment, row.id, preventOutcomeLabel(row), formatMinor(row.amountMinor, row.currency), String(row.statusCode)].join('\t')),
|
|
152
|
+
];
|
|
153
|
+
export const formatPreventSummary = (month, summary) => [
|
|
154
|
+
`Prevent ${month.month} (${month.from} to ${month.to}, UTC)`,
|
|
155
|
+
`Searches\t${summary.totalCount}`,
|
|
156
|
+
`Found\t${summary.foundCount}\t${summary.foundRatePercent === null ? '-' : `${summary.foundRatePercent.toFixed(1)}%`}`,
|
|
157
|
+
`Not found\t${summary.notFoundCount}`,
|
|
158
|
+
`Prevent cases\t${summary.preventTotalCount}`,
|
|
159
|
+
`Deflected\t${summary.preventDeflectedCount}\t${summary.preventSuccessRatePercent === null ? '-' : `${summary.preventSuccessRatePercent.toFixed(1)}%`}`,
|
|
160
|
+
];
|
package/dist/cli.js
CHANGED
|
@@ -19,6 +19,7 @@ import { pullEnvFile } from './envSync.js';
|
|
|
19
19
|
import { executeFastDraftPatchSync, uploadDirectAssetWithFetch } from './draftPatchSync.js';
|
|
20
20
|
import { updateCliInstallations } from './selfUpdate.js';
|
|
21
21
|
import { executeExpensePublish, executeExpensePull } from './expenseCommands.js';
|
|
22
|
+
import { buildAlertStatisticsReport, fetchAlertStatistics, fetchPreventSummary, formatAlertRows, formatAlertStatistics, formatPreventRows, formatPreventSummary, listAlerts, listPreventSearches, parseAlertMonth, toAlertJsonRow, } from './alertCommands.js';
|
|
22
23
|
import { executeOfferSetPrices, executeOfferSetPublish, executeOfferSetPull, formatOfferSetPriceCatalogs, } from './offerSetCommands.js';
|
|
23
24
|
import { executeEmailPull, executeEmailPush, executeEmailSend, executeEmailUpdateVariables, executeEmailSequenceAddStep, executeEmailSequenceCancel, executeEmailSequenceCreate, executeEmailSequencePublish, executeEmailSequenceSetActive, executeEmailLibraryAdd, executeEmailLibraryList, executeEmailTemplatePublish, executeEmailValidate, parseEmailVariablesJson, } from './emailCommands.js';
|
|
24
25
|
import { formatGitHubConnectRows, formatGitHubJobRows, formatGitHubStatusRows, } from './githubOutput.js';
|
|
@@ -2066,18 +2067,17 @@ const addExpenseScopeOptions = (command) => command
|
|
|
2066
2067
|
.option('--workspace <id-or-slug-or-name>', 'Workspace id, slug, or name')
|
|
2067
2068
|
.option('--project <id-or-slug-or-name>', 'Project id, slug, or name')
|
|
2068
2069
|
.option('--file <path>', 'Expense JSON file', 'expenses.json');
|
|
2069
|
-
|
|
2070
|
+
/** Token, workspace and project for commands that read or edit one project (`--project`, else `fgrove use`). */
|
|
2071
|
+
const resolveProjectCommandScope = async (options) => {
|
|
2070
2072
|
const token = await readAuthToken();
|
|
2071
2073
|
const workspaceId = await resolveWorkspaceId(token, options.workspace);
|
|
2072
2074
|
const project = await resolveAnalyticsProject({ token, workspaceId, project: options.project });
|
|
2073
|
-
return {
|
|
2074
|
-
callApi,
|
|
2075
|
-
token,
|
|
2076
|
-
workspaceId,
|
|
2077
|
-
projectId: project.id,
|
|
2078
|
-
filePath: path.resolve(process.cwd(), options.file),
|
|
2079
|
-
};
|
|
2075
|
+
return { callApi, token, workspaceId, projectId: project.id };
|
|
2080
2076
|
};
|
|
2077
|
+
const resolveExpenseCommandScope = async (options) => ({
|
|
2078
|
+
...await resolveProjectCommandScope(options),
|
|
2079
|
+
filePath: path.resolve(process.cwd(), options.file),
|
|
2080
|
+
});
|
|
2081
2081
|
const expensesCommand = addExamples(program.command('expenses').description('Edit project profitability expenses'), [
|
|
2082
2082
|
'fgrove expenses pull --project claimbee',
|
|
2083
2083
|
'fgrove expenses publish --project claimbee',
|
|
@@ -2213,6 +2213,71 @@ offerSetsCommand
|
|
|
2213
2213
|
});
|
|
2214
2214
|
console.log(options.json ? JSON.stringify({ catalogs }, null, 2) : formatOfferSetPriceCatalogs(catalogs).join('\n'));
|
|
2215
2215
|
});
|
|
2216
|
+
const addAlertScopeOptions = (command) => command
|
|
2217
|
+
.option('--workspace <id-or-slug-or-name>', 'Workspace id, slug, or name')
|
|
2218
|
+
.option('--project <id-or-slug-or-name>', 'Project id, slug, or name')
|
|
2219
|
+
.option('--month <YYYY-MM>', 'UTC calendar month (default: current month)')
|
|
2220
|
+
.option('--json', 'Print machine-readable JSON');
|
|
2221
|
+
const resolveAlertCommandScope = async (options) => ({
|
|
2222
|
+
scope: await resolveProjectCommandScope(options),
|
|
2223
|
+
month: parseAlertMonth(options.month),
|
|
2224
|
+
});
|
|
2225
|
+
const alertsCommand = addExamples(program.command('alerts').description('Read chargeback alert history and statistics without customer or card data'), [
|
|
2226
|
+
'fgrove alerts list --project claimbee --month 2026-10',
|
|
2227
|
+
'fgrove alerts stats --project claimbee --month 2026-10 --json',
|
|
2228
|
+
]);
|
|
2229
|
+
addAlertScopeOptions(alertsCommand
|
|
2230
|
+
.command('list')
|
|
2231
|
+
.description('List every chargeback alert received in a month: ids, dates, service, amount, status and outcome'))
|
|
2232
|
+
.action(async (options) => {
|
|
2233
|
+
const { scope, month } = await resolveAlertCommandScope(options);
|
|
2234
|
+
const rows = await listAlerts(scope, month);
|
|
2235
|
+
if (options.json) {
|
|
2236
|
+
console.log(JSON.stringify({ month: month.month, period: { from: month.from, to: month.to }, alerts: rows.map(toAlertJsonRow) }, null, 2));
|
|
2237
|
+
return;
|
|
2238
|
+
}
|
|
2239
|
+
printValueRows(formatAlertRows(rows).map((line) => [line]));
|
|
2240
|
+
});
|
|
2241
|
+
addAlertScopeOptions(alertsCommand
|
|
2242
|
+
.command('stats')
|
|
2243
|
+
.description('Monthly alert counts by service, refund and cancellation outcomes, and the estimated FunnelsGrove alert cost'))
|
|
2244
|
+
.action(async (options) => {
|
|
2245
|
+
const { scope, month } = await resolveAlertCommandScope(options);
|
|
2246
|
+
const statistics = await fetchAlertStatistics(scope, month);
|
|
2247
|
+
if (options.json) {
|
|
2248
|
+
console.log(JSON.stringify(buildAlertStatisticsReport(month, statistics), null, 2));
|
|
2249
|
+
return;
|
|
2250
|
+
}
|
|
2251
|
+
printValueRows(formatAlertStatistics(month, statistics).map((line) => [line]));
|
|
2252
|
+
});
|
|
2253
|
+
const preventCommand = addExamples(program.command('prevent').description('Read Prevent transaction search history and statistics without customer or card data'), [
|
|
2254
|
+
'fgrove prevent list --project claimbee --month 2026-10',
|
|
2255
|
+
'fgrove prevent stats --project claimbee --month 2026-10 --json',
|
|
2256
|
+
]);
|
|
2257
|
+
addAlertScopeOptions(preventCommand
|
|
2258
|
+
.command('list')
|
|
2259
|
+
.description('List every transaction search and inquiry in a month: date, program, outcome, amount, scheme and status'))
|
|
2260
|
+
.action(async (options) => {
|
|
2261
|
+
const { scope, month } = await resolveAlertCommandScope(options);
|
|
2262
|
+
const rows = await listPreventSearches(scope, month);
|
|
2263
|
+
if (options.json) {
|
|
2264
|
+
console.log(JSON.stringify({ month: month.month, period: { from: month.from, to: month.to }, searches: rows }, null, 2));
|
|
2265
|
+
return;
|
|
2266
|
+
}
|
|
2267
|
+
printValueRows(formatPreventRows(rows).map((line) => [line]));
|
|
2268
|
+
});
|
|
2269
|
+
addAlertScopeOptions(preventCommand
|
|
2270
|
+
.command('stats')
|
|
2271
|
+
.description('Monthly transaction search totals, found rate and Prevent deflection rate'))
|
|
2272
|
+
.action(async (options) => {
|
|
2273
|
+
const { scope, month } = await resolveAlertCommandScope(options);
|
|
2274
|
+
const summary = await fetchPreventSummary(scope, month);
|
|
2275
|
+
if (options.json) {
|
|
2276
|
+
console.log(JSON.stringify({ month: month.month, period: { from: month.from, to: month.to }, summary }, null, 2));
|
|
2277
|
+
return;
|
|
2278
|
+
}
|
|
2279
|
+
printValueRows(formatPreventSummary(month, summary).map((line) => [line]));
|
|
2280
|
+
});
|
|
2216
2281
|
const funnelsCommand = addExamples(program.command('funnels').description('Manage funnels'), [
|
|
2217
2282
|
'fgrove funnels list',
|
|
2218
2283
|
'fgrove funnels clone --funnel claimbee --name claimbee-ios',
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"minimumCliVersion": "0.1.20",
|
|
5
5
|
"entries": [
|
|
6
6
|
{
|
|
7
|
-
"repositoryCliVersion": "0.1.
|
|
7
|
+
"repositoryCliVersion": "0.1.307",
|
|
8
8
|
"manifest": {
|
|
9
9
|
"schemaVersion": 1,
|
|
10
|
-
"bundleVersion": "2.0.
|
|
10
|
+
"bundleVersion": "2.0.300",
|
|
11
11
|
"stepContractVersion": 3,
|
|
12
12
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
13
13
|
"managedFiles": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
48
|
-
"sha256": "
|
|
48
|
+
"sha256": "5c85ab989a7c1675ef36fda22779d50977a926b6cc417880ae1e08bd35380135"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -145,16 +145,16 @@
|
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"path": "funnel-docs.config.json",
|
|
148
|
-
"sha256": "
|
|
148
|
+
"sha256": "451b21e025b31e38404784ba88d0a409958e8ed2cf25da163b0a7dd291bb471c"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"repositoryCliVersion": "0.1.
|
|
154
|
+
"repositoryCliVersion": "0.1.306",
|
|
155
155
|
"manifest": {
|
|
156
156
|
"schemaVersion": 1,
|
|
157
|
-
"bundleVersion": "2.0.
|
|
157
|
+
"bundleVersion": "2.0.299",
|
|
158
158
|
"stepContractVersion": 3,
|
|
159
159
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
160
160
|
"managedFiles": [
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
183
|
-
"sha256": "
|
|
183
|
+
"sha256": "050564846bf7d44afb267e1321d6fe277f032fe7b6237441741570c723543d0e"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
"path": "docs/funnelsgrove/contracts/payments.md",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
195
|
-
"sha256": "
|
|
195
|
+
"sha256": "e28376a9ab3d97ba9da5380d8c424dd4ace9f8bd7f83b21c1e87de55c14636b4"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -292,16 +292,16 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"path": "funnel-docs.config.json",
|
|
295
|
-
"sha256": "
|
|
295
|
+
"sha256": "3bcbc5df69c1d4ef7e25430a5d48fb0af48919a6b5844f73d77b14478df7e6af"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"repositoryCliVersion": "0.1.
|
|
301
|
+
"repositoryCliVersion": "0.1.305",
|
|
302
302
|
"manifest": {
|
|
303
303
|
"schemaVersion": 1,
|
|
304
|
-
"bundleVersion": "2.0.
|
|
304
|
+
"bundleVersion": "2.0.298",
|
|
305
305
|
"stepContractVersion": 3,
|
|
306
306
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
307
307
|
"managedFiles": [
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
330
|
-
"sha256": "
|
|
330
|
+
"sha256": "fd81ec6c973f4c3a9c26db813bf44c6cfce3c8bbe17287cdaec330fa566ee78c"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
"path": "docs/funnelsgrove/contracts/payments.md",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
342
|
-
"sha256": "
|
|
342
|
+
"sha256": "6a7df14c1aad5de56a90931928a2ed3f0ac08cf1e04c34f9a4da77ad65cec8b3"
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -439,16 +439,16 @@
|
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
"path": "funnel-docs.config.json",
|
|
442
|
-
"sha256": "
|
|
442
|
+
"sha256": "0009f06c828f9441ff7a9a8a36ca4fe799fc70236b0338506a2e8fb9325092ca"
|
|
443
443
|
}
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"repositoryCliVersion": "0.1.
|
|
448
|
+
"repositoryCliVersion": "0.1.304",
|
|
449
449
|
"manifest": {
|
|
450
450
|
"schemaVersion": 1,
|
|
451
|
-
"bundleVersion": "2.0.
|
|
451
|
+
"bundleVersion": "2.0.297",
|
|
452
452
|
"stepContractVersion": 3,
|
|
453
453
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
454
454
|
"managedFiles": [
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
489
|
-
"sha256": "
|
|
489
|
+
"sha256": "6b5546c6bfabf6c03b3d576bf945de4350a0d8f465a4159a3fb7cae40ba6142a"
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -586,16 +586,16 @@
|
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
588
|
"path": "funnel-docs.config.json",
|
|
589
|
-
"sha256": "
|
|
589
|
+
"sha256": "ba7cf49d4b85969994262ae8ca59989cc5ef6a7db7272820556a99887bc5c408"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
|
-
"repositoryCliVersion": "0.1.
|
|
595
|
+
"repositoryCliVersion": "0.1.303",
|
|
596
596
|
"manifest": {
|
|
597
597
|
"schemaVersion": 1,
|
|
598
|
-
"bundleVersion": "2.0.
|
|
598
|
+
"bundleVersion": "2.0.296",
|
|
599
599
|
"stepContractVersion": 3,
|
|
600
600
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
601
601
|
"managedFiles": [
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
},
|
|
614
614
|
{
|
|
615
615
|
"path": "docs/funnelsgrove/contracts/analytics-events.md",
|
|
616
|
-
"sha256": "
|
|
616
|
+
"sha256": "11c79bd21570374ae591f21594c7235cc2bb015067ad901eddc1420a9998cd25"
|
|
617
617
|
},
|
|
618
618
|
{
|
|
619
619
|
"path": "docs/funnelsgrove/contracts/content-answers.md",
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
636
|
-
"sha256": "
|
|
636
|
+
"sha256": "b54e093d99f163b399ca52788beabc94530accea7b3c7d60caaf9f067a5aeb04"
|
|
637
637
|
},
|
|
638
638
|
{
|
|
639
639
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -733,16 +733,16 @@
|
|
|
733
733
|
},
|
|
734
734
|
{
|
|
735
735
|
"path": "funnel-docs.config.json",
|
|
736
|
-
"sha256": "
|
|
736
|
+
"sha256": "51ad1bfe95afe002bc2fabefe00655881cc41ab34cfb1d13a0dbf92b31ab0c7e"
|
|
737
737
|
}
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
"repositoryCliVersion": "0.1.
|
|
742
|
+
"repositoryCliVersion": "0.1.302",
|
|
743
743
|
"manifest": {
|
|
744
744
|
"schemaVersion": 1,
|
|
745
|
-
"bundleVersion": "2.0.
|
|
745
|
+
"bundleVersion": "2.0.295",
|
|
746
746
|
"stepContractVersion": 3,
|
|
747
747
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
748
748
|
"managedFiles": [
|
|
@@ -760,7 +760,7 @@
|
|
|
760
760
|
},
|
|
761
761
|
{
|
|
762
762
|
"path": "docs/funnelsgrove/contracts/analytics-events.md",
|
|
763
|
-
"sha256": "
|
|
763
|
+
"sha256": "482b159a6b88a86009b9d2bec643d3e6dc4389c7693e1ab26c8df60b1eeb1f19"
|
|
764
764
|
},
|
|
765
765
|
{
|
|
766
766
|
"path": "docs/funnelsgrove/contracts/content-answers.md",
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
},
|
|
781
781
|
{
|
|
782
782
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
783
|
-
"sha256": "
|
|
783
|
+
"sha256": "373b181e673ad2fffcbcb68a11fa43186a57cac67493a746aafec03bd0a0ab94"
|
|
784
784
|
},
|
|
785
785
|
{
|
|
786
786
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
},
|
|
797
797
|
{
|
|
798
798
|
"path": "docs/funnelsgrove/qa/publish.md",
|
|
799
|
-
"sha256": "
|
|
799
|
+
"sha256": "dd1584f08ffd779375b4ffec6890d6ef731734925d7abb2d021f7f0ad15d11f6"
|
|
800
800
|
},
|
|
801
801
|
{
|
|
802
802
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
@@ -880,16 +880,16 @@
|
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
"path": "funnel-docs.config.json",
|
|
883
|
-
"sha256": "
|
|
883
|
+
"sha256": "df1b6615d35d8d2385038e26580604bae5921075126dd01159bf7300ba675bf9"
|
|
884
884
|
}
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
"repositoryCliVersion": "0.1.
|
|
889
|
+
"repositoryCliVersion": "0.1.301",
|
|
890
890
|
"manifest": {
|
|
891
891
|
"schemaVersion": 1,
|
|
892
|
-
"bundleVersion": "2.0.
|
|
892
|
+
"bundleVersion": "2.0.294",
|
|
893
893
|
"stepContractVersion": 3,
|
|
894
894
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
895
895
|
"managedFiles": [
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
},
|
|
928
928
|
{
|
|
929
929
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
930
|
-
"sha256": "
|
|
930
|
+
"sha256": "39d41b41132bf4ecbae9f2e98500cea9045c66889bd4b6daf67673a566f282d3"
|
|
931
931
|
},
|
|
932
932
|
{
|
|
933
933
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -1027,7 +1027,7 @@
|
|
|
1027
1027
|
},
|
|
1028
1028
|
{
|
|
1029
1029
|
"path": "funnel-docs.config.json",
|
|
1030
|
-
"sha256": "
|
|
1030
|
+
"sha256": "69f6150b16fa1293a238fdc56d2f097dec4f626f3cdf32dc51f75b0f5cb06485"
|
|
1031
1031
|
}
|
|
1032
1032
|
]
|
|
1033
1033
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.300",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
5
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
6
6
|
"managedFiles": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "5c85ab989a7c1675ef36fda22779d50977a926b6cc417880ae1e08bd35380135"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "funnel-docs.config.json",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "451b21e025b31e38404784ba88d0a409958e8ed2cf25da163b0a7dd291bb471c"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
|
|
|
17
17
|
|
|
18
18
|
### Package release order
|
|
19
19
|
|
|
20
|
-
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.38.0`, then `@funnelsgrove/analytics` `0.20.0`, then `@funnelsgrove/payments` `0.51.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.
|
|
20
|
+
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.38.0`, then `@funnelsgrove/analytics` `0.20.0`, then `@funnelsgrove/payments` `0.51.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.307`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
|
|
21
21
|
<!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
|
|
22
22
|
|
|
23
23
|
## Version-last policy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.300",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
5
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
6
6
|
"managedFiles": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "5c85ab989a7c1675ef36fda22779d50977a926b6cc417880ae1e08bd35380135"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "funnel-docs.config.json",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "451b21e025b31e38404784ba88d0a409958e8ed2cf25da163b0a7dd291bb471c"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "fbde2c5222561ac78d7d640bca5665b4d8f1aad18fcff17a178d05a9ad062149",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.300",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": ".env.example",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": ".funnelsgrove-docs.json",
|
|
19
|
-
"sha256": "
|
|
19
|
+
"sha256": "8acc548cb6916fc1a127068a4621f4206c3018f1bc0e163bb2e91c9665e89c62",
|
|
20
20
|
"mode": "100644"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
79
|
-
"sha256": "
|
|
79
|
+
"sha256": "5c85ab989a7c1675ef36fda22779d50977a926b6cc417880ae1e08bd35380135",
|
|
80
80
|
"mode": "100644"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"path": "funnel-docs.config.json",
|
|
209
|
-
"sha256": "
|
|
209
|
+
"sha256": "451b21e025b31e38404784ba88d0a409958e8ed2cf25da163b0a7dd291bb471c",
|
|
210
210
|
"mode": "100644"
|
|
211
211
|
},
|
|
212
212
|
{
|
|
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
|
|
|
17
17
|
|
|
18
18
|
### Package release order
|
|
19
19
|
|
|
20
|
-
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.38.0`, then `@funnelsgrove/analytics` `0.20.0`, then `@funnelsgrove/payments` `0.51.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.
|
|
20
|
+
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.38.0`, then `@funnelsgrove/analytics` `0.20.0`, then `@funnelsgrove/payments` `0.51.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.307`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
|
|
21
21
|
<!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
|
|
22
22
|
|
|
23
23
|
## Version-last policy
|