@funnelsgrove/cli 0.1.308 → 0.1.309
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 +22 -0
- package/dist/cli.js +67 -0
- package/dist/customerCommands.d.ts +120 -0
- package/dist/customerCommands.js +71 -0
- package/funnel-contract-compatibility.json +31 -31
- 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
|
@@ -243,6 +243,28 @@ by Merchanto; the cost lines cover FunnelsGrove alerts for the whole project.
|
|
|
243
243
|
The output never includes customer emails, names, phone numbers, IP addresses,
|
|
244
244
|
card digits, network references or Stripe identifiers.
|
|
245
245
|
|
|
246
|
+
Support a customer (workspace admins only): look them up by email or funnel
|
|
247
|
+
user ID, refund chosen payments and cancel their subscription:
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
fgrove customers lookup --project claimbee --email buyer@example.com --json # users, live subscriptions, payments with refund eligibility
|
|
251
|
+
fgrove customers refund --project claimbee --email buyer@example.com --payment ch_123 --payment pay_456 --dry-run
|
|
252
|
+
fgrove customers refund --project claimbee --email buyer@example.com --payment ch_123 --payment pay_456
|
|
253
|
+
fgrove customers cancel --project claimbee --user-id 8f1c2d # at period end; --now cancels immediately without refunding the remainder
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Pass exactly one of `--email` or `--user-id`; `--env test` reads test-mode
|
|
257
|
+
customers. Stripe charges and subscriptions come live from Stripe; Solidgate
|
|
258
|
+
payments come from the FunnelsGrove ledger with refunded amounts read live from
|
|
259
|
+
Solidgate. Refunds are full refunds of each payment's remaining amount, using
|
|
260
|
+
the payment IDs printed by `lookup`. Each payment is refunded at most once,
|
|
261
|
+
including against Chargeback Prevention refunds of the same payment. A
|
|
262
|
+
Solidgate refund that is still processing is reported as `processing`; run
|
|
263
|
+
`lookup` later to confirm it. The command exits 1 if any payment failed. `cancel` refuses to guess when several
|
|
264
|
+
subscriptions are still billing; pass `--subscription`. When `lookup` reports a
|
|
265
|
+
provider that did not answer, missing data does not mean there is no
|
|
266
|
+
subscription.
|
|
267
|
+
|
|
246
268
|
Use `--api-url` or `FUNNELSGROVE_API_URL` for non-production APIs.
|
|
247
269
|
Use `--config` or `FUNNELSGROVE_CONFIG` to keep test credentials separate from the default `~/.funnelsgrove/config.json`.
|
|
248
270
|
|
package/dist/cli.js
CHANGED
|
@@ -20,6 +20,7 @@ import { executeFastDraftPatchSync, uploadDirectAssetWithFetch } from './draftPa
|
|
|
20
20
|
import { updateCliInstallations } from './selfUpdate.js';
|
|
21
21
|
import { executeExpensePublish, executeExpensePull } from './expenseCommands.js';
|
|
22
22
|
import { buildAlertStatisticsReport, fetchAlertStatistics, fetchPreventSummary, formatAlertRows, formatAlertStatistics, formatPreventRows, formatPreventSummary, listAlerts, listPreventSearches, parseAlertMonth, toAlertJsonRow, } from './alertCommands.js';
|
|
23
|
+
import { cancelCustomerSubscription, formatCustomerCancellation, formatCustomerLookup, formatCustomerRefunds, formatRefundPreview, lookupCustomer, parseCustomerSelector, previewRefund, refundCustomerPayments, } from './customerCommands.js';
|
|
23
24
|
import { executeOfferSetPrices, executeOfferSetPublish, executeOfferSetPull, formatOfferSetPriceCatalogs, } from './offerSetCommands.js';
|
|
24
25
|
import { executeEmailPull, executeEmailPush, executeEmailSend, executeEmailUpdateVariables, executeEmailSequenceAddStep, executeEmailSequenceCancel, executeEmailSequenceCreate, executeEmailSequencePublish, executeEmailSequenceSetActive, executeEmailLibraryAdd, executeEmailLibraryList, executeEmailTemplatePublish, executeEmailValidate, parseEmailVariablesJson, } from './emailCommands.js';
|
|
25
26
|
import { formatGitHubConnectRows, formatGitHubJobRows, formatGitHubStatusRows, } from './githubOutput.js';
|
|
@@ -2278,6 +2279,72 @@ addAlertScopeOptions(preventCommand
|
|
|
2278
2279
|
}
|
|
2279
2280
|
printValueRows(formatPreventSummary(month, summary).map((line) => [line]));
|
|
2280
2281
|
});
|
|
2282
|
+
const addCustomerOptions = (command) => command
|
|
2283
|
+
.option('--workspace <id-or-slug-or-name>', 'Workspace id, slug, or name')
|
|
2284
|
+
.option('--project <id-or-slug-or-name>', 'Project id, slug, or name')
|
|
2285
|
+
.option('--email <email>', 'Customer email (exact match, case-insensitive)')
|
|
2286
|
+
.option('--user-id <id>', 'Funnel user ID (the SDK user ID)')
|
|
2287
|
+
.option('--env <environment>', 'test or live', 'live')
|
|
2288
|
+
.option('--json', 'Print machine-readable JSON');
|
|
2289
|
+
const resolveCustomerCommandScope = async (options) => {
|
|
2290
|
+
const selector = parseCustomerSelector(options);
|
|
2291
|
+
return { scope: await resolveProjectCommandScope(options), selector };
|
|
2292
|
+
};
|
|
2293
|
+
const customersCommand = addExamples(program.command('customers').description('Look up a customer\'s subscriptions and payments, refund payments and cancel subscriptions (workspace admins)'), [
|
|
2294
|
+
'fgrove customers lookup --project claimbee --email buyer@example.com',
|
|
2295
|
+
'fgrove customers refund --project claimbee --email buyer@example.com --payment ch_123 --payment pay_456',
|
|
2296
|
+
'fgrove customers cancel --project claimbee --user-id 8f1c... --now',
|
|
2297
|
+
]);
|
|
2298
|
+
addCustomerOptions(customersCommand
|
|
2299
|
+
.command('lookup')
|
|
2300
|
+
.description('List the customer\'s funnel users, live provider subscriptions and payments with refund eligibility'))
|
|
2301
|
+
.action(async (options) => {
|
|
2302
|
+
const { scope, selector } = await resolveCustomerCommandScope(options);
|
|
2303
|
+
const lookup = await lookupCustomer(scope, selector);
|
|
2304
|
+
if (options.json) {
|
|
2305
|
+
console.log(JSON.stringify(lookup, null, 2));
|
|
2306
|
+
return;
|
|
2307
|
+
}
|
|
2308
|
+
printValueRows(formatCustomerLookup(lookup).map((line) => [line]));
|
|
2309
|
+
});
|
|
2310
|
+
addCustomerOptions(customersCommand
|
|
2311
|
+
.command('refund')
|
|
2312
|
+
.description('Fully refund the remaining amount of each chosen payment (payment IDs from customers lookup)')
|
|
2313
|
+
.requiredOption('--payment <id>', 'Payment ID from customers lookup; repeat for several', (value, previous = []) => [...previous, value])
|
|
2314
|
+
.option('--dry-run', 'Show what would be refunded without refunding'))
|
|
2315
|
+
.action(async (options) => {
|
|
2316
|
+
const { scope, selector } = await resolveCustomerCommandScope(options);
|
|
2317
|
+
if (options.dryRun) {
|
|
2318
|
+
const preview = previewRefund(await lookupCustomer(scope, selector), options.payment);
|
|
2319
|
+
console.log(options.json ? JSON.stringify({ dryRun: true, refunds: preview }, null, 2)
|
|
2320
|
+
: formatRefundPreview(preview).join('\n'));
|
|
2321
|
+
return;
|
|
2322
|
+
}
|
|
2323
|
+
const { refunds } = await refundCustomerPayments(scope, selector, options.payment);
|
|
2324
|
+
if (refunds.some((refund) => refund.outcome === 'failed'))
|
|
2325
|
+
process.exitCode = 1;
|
|
2326
|
+
if (options.json) {
|
|
2327
|
+
console.log(JSON.stringify({ refunds }, null, 2));
|
|
2328
|
+
return;
|
|
2329
|
+
}
|
|
2330
|
+
printValueRows(formatCustomerRefunds(refunds).map((line) => [line]));
|
|
2331
|
+
});
|
|
2332
|
+
addCustomerOptions(customersCommand
|
|
2333
|
+
.command('cancel')
|
|
2334
|
+
.description('Cancel the customer\'s billing subscription at period end, or immediately with --now')
|
|
2335
|
+
.option('--subscription <id>', 'Subscription ID; required when several subscriptions are still billing')
|
|
2336
|
+
.option('--now', 'Cancel immediately; the paid remainder is forfeited without a refund'))
|
|
2337
|
+
.action(async (options) => {
|
|
2338
|
+
const { scope, selector } = await resolveCustomerCommandScope(options);
|
|
2339
|
+
if (options.now)
|
|
2340
|
+
console.error('Cancelling immediately: access ends now and the paid remainder is not refunded.');
|
|
2341
|
+
const result = await cancelCustomerSubscription(scope, selector, { subscriptionId: options.subscription, now: options.now });
|
|
2342
|
+
if (options.json) {
|
|
2343
|
+
console.log(JSON.stringify(result, null, 2));
|
|
2344
|
+
return;
|
|
2345
|
+
}
|
|
2346
|
+
printValueRows(formatCustomerCancellation(result).map((line) => [line]));
|
|
2347
|
+
});
|
|
2281
2348
|
const funnelsCommand = addExamples(program.command('funnels').description('Manage funnels'), [
|
|
2282
2349
|
'fgrove funnels list',
|
|
2283
2350
|
'fgrove funnels clone --funnel claimbee --name claimbee-ios',
|
|
@@ -0,0 +1,120 @@
|
|
|
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 CustomerCommandScope = {
|
|
8
|
+
callApi: CallApi;
|
|
9
|
+
token: string;
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
};
|
|
13
|
+
export type CustomerSelector = {
|
|
14
|
+
environment: 'test' | 'live';
|
|
15
|
+
email?: string;
|
|
16
|
+
userId?: string;
|
|
17
|
+
};
|
|
18
|
+
type Provider = 'stripe' | 'solidgate';
|
|
19
|
+
export type CustomerSubscription = {
|
|
20
|
+
provider: Provider;
|
|
21
|
+
paymentProfileId: string;
|
|
22
|
+
subscriptionId: string;
|
|
23
|
+
customerId: string | null;
|
|
24
|
+
status: string;
|
|
25
|
+
cancelAtPeriodEnd: boolean;
|
|
26
|
+
currentPeriodStart: string | null;
|
|
27
|
+
currentPeriodEnd: string | null;
|
|
28
|
+
createdAt: string | null;
|
|
29
|
+
amountMinor: number | null;
|
|
30
|
+
currency: string | null;
|
|
31
|
+
interval: string | null;
|
|
32
|
+
billing: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type CustomerPayment = {
|
|
35
|
+
provider: Provider;
|
|
36
|
+
paymentProfileId: string;
|
|
37
|
+
paymentId: string | null;
|
|
38
|
+
subscriptionId: string | null;
|
|
39
|
+
createdAt: string;
|
|
40
|
+
status: string;
|
|
41
|
+
amountMinor: number;
|
|
42
|
+
refundedMinor: number;
|
|
43
|
+
currency: string;
|
|
44
|
+
description: string | null;
|
|
45
|
+
refundable: boolean;
|
|
46
|
+
notRefundableReason: string | null;
|
|
47
|
+
};
|
|
48
|
+
export type CustomerLookup = {
|
|
49
|
+
environment: 'test' | 'live';
|
|
50
|
+
users: Array<{
|
|
51
|
+
funnelUserId: string;
|
|
52
|
+
userId: string | null;
|
|
53
|
+
email: string | null;
|
|
54
|
+
funnelId: string | null;
|
|
55
|
+
createdAt: string;
|
|
56
|
+
}>;
|
|
57
|
+
subscriptions: CustomerSubscription[];
|
|
58
|
+
payments: CustomerPayment[];
|
|
59
|
+
sources: Array<{
|
|
60
|
+
provider: string;
|
|
61
|
+
paymentProfileId: string | null;
|
|
62
|
+
status: 'answered' | 'failed' | 'not-supported';
|
|
63
|
+
detail?: string;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
export type CustomerRefund = {
|
|
67
|
+
paymentId: string;
|
|
68
|
+
provider: Provider | null;
|
|
69
|
+
outcome: 'refunded' | 'already_refunded' | 'processing' | 'failed';
|
|
70
|
+
amountMinor: number;
|
|
71
|
+
currency: string | null;
|
|
72
|
+
refundIds: string[];
|
|
73
|
+
error?: string;
|
|
74
|
+
};
|
|
75
|
+
export type CustomerCancellation = {
|
|
76
|
+
provider: Provider;
|
|
77
|
+
paymentProfileId: string;
|
|
78
|
+
subscriptionId: string;
|
|
79
|
+
mode: 'period_end' | 'immediate';
|
|
80
|
+
status: string;
|
|
81
|
+
cancelAtPeriodEnd: boolean;
|
|
82
|
+
accessUntilBefore: string | null;
|
|
83
|
+
accessUntil: string | null;
|
|
84
|
+
paidDaysForfeited: number;
|
|
85
|
+
};
|
|
86
|
+
/** Exactly one of email or user ID; emails are matched trimmed and lowercased. */
|
|
87
|
+
export declare const parseCustomerSelector: (options: {
|
|
88
|
+
email?: string;
|
|
89
|
+
userId?: string;
|
|
90
|
+
env?: string;
|
|
91
|
+
}) => CustomerSelector;
|
|
92
|
+
export declare const lookupCustomer: (scope: CustomerCommandScope, selector: CustomerSelector) => Promise<CustomerLookup>;
|
|
93
|
+
export declare const refundCustomerPayments: (scope: CustomerCommandScope, selector: CustomerSelector, paymentIds: string[]) => Promise<{
|
|
94
|
+
refunds: CustomerRefund[];
|
|
95
|
+
}>;
|
|
96
|
+
export declare const cancelCustomerSubscription: (scope: CustomerCommandScope, selector: CustomerSelector, input: {
|
|
97
|
+
subscriptionId?: string;
|
|
98
|
+
now?: boolean;
|
|
99
|
+
}) => Promise<CustomerCancellation>;
|
|
100
|
+
/** Payments the refund would touch, in the order requested; unknown IDs are reported, not dropped. */
|
|
101
|
+
export declare const previewRefund: (lookup: CustomerLookup, paymentIds: string[]) => ({
|
|
102
|
+
paymentId: string;
|
|
103
|
+
provider: Provider;
|
|
104
|
+
amountMinor: number;
|
|
105
|
+
currency: string;
|
|
106
|
+
refundable: boolean;
|
|
107
|
+
reason: string | null;
|
|
108
|
+
} | {
|
|
109
|
+
paymentId: string;
|
|
110
|
+
provider: null;
|
|
111
|
+
amountMinor: number;
|
|
112
|
+
currency: null;
|
|
113
|
+
refundable: boolean;
|
|
114
|
+
reason: string;
|
|
115
|
+
})[];
|
|
116
|
+
export declare const formatRefundPreview: (preview: ReturnType<typeof previewRefund>) => string[];
|
|
117
|
+
export declare const formatCustomerLookup: (lookup: CustomerLookup) => string[];
|
|
118
|
+
export declare const formatCustomerRefunds: (refunds: CustomerRefund[]) => string[];
|
|
119
|
+
export declare const formatCustomerCancellation: (result: CustomerCancellation) => string[];
|
|
120
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { formatMinor } from './alertCommands.js';
|
|
2
|
+
/** Exactly one of email or user ID; emails are matched trimmed and lowercased. */
|
|
3
|
+
export const parseCustomerSelector = (options) => {
|
|
4
|
+
const email = options.email?.trim().toLowerCase();
|
|
5
|
+
const userId = options.userId?.trim();
|
|
6
|
+
if (Boolean(email) === Boolean(userId))
|
|
7
|
+
throw new Error('Pass exactly one of --email or --user-id.');
|
|
8
|
+
if (options.env && options.env !== 'test' && options.env !== 'live')
|
|
9
|
+
throw new Error('--env must be test or live.');
|
|
10
|
+
return { environment: options.env ?? 'live', ...(email ? { email } : { userId }) };
|
|
11
|
+
};
|
|
12
|
+
const request = (scope, selector) => ({
|
|
13
|
+
workspaceId: scope.workspaceId, projectId: scope.projectId, ...selector,
|
|
14
|
+
});
|
|
15
|
+
export const lookupCustomer = (scope, selector) => scope.callApi({
|
|
16
|
+
path: 'customers.lookup', type: 'query', token: scope.token, data: request(scope, selector),
|
|
17
|
+
});
|
|
18
|
+
export const refundCustomerPayments = (scope, selector, paymentIds) => (scope.callApi({
|
|
19
|
+
path: 'customers.refund', type: 'mutation', token: scope.token, data: { ...request(scope, selector), paymentIds },
|
|
20
|
+
}));
|
|
21
|
+
export const cancelCustomerSubscription = (scope, selector, input) => scope.callApi({
|
|
22
|
+
path: 'customers.cancel',
|
|
23
|
+
type: 'mutation',
|
|
24
|
+
token: scope.token,
|
|
25
|
+
data: { ...request(scope, selector), ...(input.subscriptionId ? { subscriptionId: input.subscriptionId } : {}), mode: input.now ? 'immediate' : 'period_end' },
|
|
26
|
+
});
|
|
27
|
+
/** Payments the refund would touch, in the order requested; unknown IDs are reported, not dropped. */
|
|
28
|
+
export const previewRefund = (lookup, paymentIds) => paymentIds.map((paymentId) => {
|
|
29
|
+
const payment = lookup.payments.find((candidate) => candidate.paymentId === paymentId);
|
|
30
|
+
return payment
|
|
31
|
+
? { paymentId, provider: payment.provider, amountMinor: payment.amountMinor - payment.refundedMinor, currency: payment.currency, refundable: payment.refundable, reason: payment.notRefundableReason }
|
|
32
|
+
: { paymentId, provider: null, amountMinor: 0, currency: null, refundable: false, reason: 'Not found in customers lookup' };
|
|
33
|
+
});
|
|
34
|
+
export const formatRefundPreview = (preview) => preview.map((row) => [
|
|
35
|
+
row.paymentId, row.refundable ? `would refund ${formatMinor(row.amountMinor, row.currency)}` : `skip: ${row.reason}`,
|
|
36
|
+
].join('\t'));
|
|
37
|
+
const day = (value) => value?.slice(0, 10) ?? '';
|
|
38
|
+
export const formatCustomerLookup = (lookup) => {
|
|
39
|
+
const lines = [`Environment\t${lookup.environment}`];
|
|
40
|
+
for (const user of lookup.users)
|
|
41
|
+
lines.push(`User\t${user.userId ?? ''}\t${user.email ?? ''}\tfunnel user ${user.funnelUserId}\tcreated ${day(user.createdAt)}`);
|
|
42
|
+
lines.push('', ['subscription', 'provider', 'status', 'billing', 'price', 'period_end', 'cancel_at_period_end'].join('\t'));
|
|
43
|
+
for (const subscription of lookup.subscriptions) {
|
|
44
|
+
lines.push([subscription.subscriptionId, subscription.provider, subscription.status, subscription.billing ? 'yes' : 'no',
|
|
45
|
+
subscription.amountMinor === null ? '' : `${formatMinor(subscription.amountMinor, subscription.currency)}${subscription.interval ? `/${subscription.interval}` : ''}`,
|
|
46
|
+
day(subscription.currentPeriodEnd), subscription.cancelAtPeriodEnd ? 'yes' : 'no'].join('\t'));
|
|
47
|
+
}
|
|
48
|
+
lines.push('', ['created_at', 'payment', 'provider', 'status', 'amount', 'refunded', 'refundable', 'subscription', 'description'].join('\t'));
|
|
49
|
+
for (const payment of lookup.payments) {
|
|
50
|
+
lines.push([payment.createdAt, payment.paymentId ?? '(unknown)', payment.provider, payment.status, formatMinor(payment.amountMinor, payment.currency),
|
|
51
|
+
payment.refundedMinor ? formatMinor(payment.refundedMinor, payment.currency) : '', payment.refundable ? 'yes' : `no: ${payment.notRefundableReason}`,
|
|
52
|
+
payment.subscriptionId ?? '', payment.description ?? ''].join('\t'));
|
|
53
|
+
}
|
|
54
|
+
const gaps = lookup.sources.filter((source) => source.status !== 'answered');
|
|
55
|
+
if (gaps.length) {
|
|
56
|
+
lines.push('', 'Incomplete: some provider accounts did not answer; missing data does not mean there is no subscription.');
|
|
57
|
+
for (const source of gaps)
|
|
58
|
+
lines.push(` ${source.provider}\t${source.paymentProfileId ?? ''}\t${source.status}\t${source.detail ?? ''}`);
|
|
59
|
+
}
|
|
60
|
+
return lines;
|
|
61
|
+
};
|
|
62
|
+
export const formatCustomerRefunds = (refunds) => refunds.map((refund) => [
|
|
63
|
+
refund.paymentId, refund.outcome.replace('_', ' '),
|
|
64
|
+
refund.error ?? formatMinor(refund.amountMinor, refund.currency), refund.refundIds.join(','),
|
|
65
|
+
].join('\t'));
|
|
66
|
+
export const formatCustomerCancellation = (result) => [
|
|
67
|
+
`Subscription\t${result.subscriptionId} (${result.provider})`,
|
|
68
|
+
`Status\t${result.status}${result.cancelAtPeriodEnd ? ', cancels at period end' : ''}`,
|
|
69
|
+
`Access until\t${result.accessUntil ?? ''} (was ${result.accessUntilBefore ?? 'unknown'})`,
|
|
70
|
+
...(result.paidDaysForfeited ? [`Paid days forfeited without refund\t${result.paidDaysForfeited}`] : []),
|
|
71
|
+
];
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"minimumCliVersion": "0.1.20",
|
|
5
5
|
"entries": [
|
|
6
6
|
{
|
|
7
|
-
"repositoryCliVersion": "0.1.
|
|
7
|
+
"repositoryCliVersion": "0.1.309",
|
|
8
8
|
"manifest": {
|
|
9
9
|
"schemaVersion": 1,
|
|
10
|
-
"bundleVersion": "2.0.
|
|
10
|
+
"bundleVersion": "2.0.302",
|
|
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": "72d337fa007993d18455f281b9a784e2e15fb46e43038a2934ddfcc82d8c1d28"
|
|
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": "e381723d48a0772419a5f8d757de1bb8fc9d7b3fd7838ad6fcde8ce0031d77c3"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"repositoryCliVersion": "0.1.
|
|
154
|
+
"repositoryCliVersion": "0.1.308",
|
|
155
155
|
"manifest": {
|
|
156
156
|
"schemaVersion": 1,
|
|
157
|
-
"bundleVersion": "2.0.
|
|
157
|
+
"bundleVersion": "2.0.301",
|
|
158
158
|
"stepContractVersion": 3,
|
|
159
159
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
160
160
|
"managedFiles": [
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
195
|
-
"sha256": "
|
|
195
|
+
"sha256": "2c7f7e4ee64cb6fdf5f69c4c35b53bdbf63659494323cd4a93826374e1560f8a"
|
|
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": "6c5486fea9dae1e582bd9c1fece156d174919c75008a1555bc3876c5ddc01b91"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"repositoryCliVersion": "0.1.
|
|
301
|
+
"repositoryCliVersion": "0.1.307",
|
|
302
302
|
"manifest": {
|
|
303
303
|
"schemaVersion": 1,
|
|
304
|
-
"bundleVersion": "2.0.
|
|
304
|
+
"bundleVersion": "2.0.300",
|
|
305
305
|
"stepContractVersion": 3,
|
|
306
306
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
307
307
|
"managedFiles": [
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
342
|
-
"sha256": "
|
|
342
|
+
"sha256": "5c85ab989a7c1675ef36fda22779d50977a926b6cc417880ae1e08bd35380135"
|
|
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": "451b21e025b31e38404784ba88d0a409958e8ed2cf25da163b0a7dd291bb471c"
|
|
443
443
|
}
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"repositoryCliVersion": "0.1.
|
|
448
|
+
"repositoryCliVersion": "0.1.306",
|
|
449
449
|
"manifest": {
|
|
450
450
|
"schemaVersion": 1,
|
|
451
|
-
"bundleVersion": "2.0.
|
|
451
|
+
"bundleVersion": "2.0.299",
|
|
452
452
|
"stepContractVersion": 3,
|
|
453
453
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
454
454
|
"managedFiles": [
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
},
|
|
475
475
|
{
|
|
476
476
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
477
|
-
"sha256": "
|
|
477
|
+
"sha256": "050564846bf7d44afb267e1321d6fe277f032fe7b6237441741570c723543d0e"
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
"path": "docs/funnelsgrove/contracts/payments.md",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
489
|
-
"sha256": "
|
|
489
|
+
"sha256": "e28376a9ab3d97ba9da5380d8c424dd4ace9f8bd7f83b21c1e87de55c14636b4"
|
|
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": "3bcbc5df69c1d4ef7e25430a5d48fb0af48919a6b5844f73d77b14478df7e6af"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
|
-
"repositoryCliVersion": "0.1.
|
|
595
|
+
"repositoryCliVersion": "0.1.305",
|
|
596
596
|
"manifest": {
|
|
597
597
|
"schemaVersion": 1,
|
|
598
|
-
"bundleVersion": "2.0.
|
|
598
|
+
"bundleVersion": "2.0.298",
|
|
599
599
|
"stepContractVersion": 3,
|
|
600
600
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
601
601
|
"managedFiles": [
|
|
@@ -621,7 +621,7 @@
|
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
623
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
624
|
-
"sha256": "
|
|
624
|
+
"sha256": "fd81ec6c973f4c3a9c26db813bf44c6cfce3c8bbe17287cdaec330fa566ee78c"
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
627
|
"path": "docs/funnelsgrove/contracts/payments.md",
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
636
|
-
"sha256": "
|
|
636
|
+
"sha256": "6a7df14c1aad5de56a90931928a2ed3f0ac08cf1e04c34f9a4da77ad65cec8b3"
|
|
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": "0009f06c828f9441ff7a9a8a36ca4fe799fc70236b0338506a2e8fb9325092ca"
|
|
737
737
|
}
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
"repositoryCliVersion": "0.1.
|
|
742
|
+
"repositoryCliVersion": "0.1.304",
|
|
743
743
|
"manifest": {
|
|
744
744
|
"schemaVersion": 1,
|
|
745
|
-
"bundleVersion": "2.0.
|
|
745
|
+
"bundleVersion": "2.0.297",
|
|
746
746
|
"stepContractVersion": 3,
|
|
747
747
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
748
748
|
"managedFiles": [
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
},
|
|
781
781
|
{
|
|
782
782
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
783
|
-
"sha256": "
|
|
783
|
+
"sha256": "6b5546c6bfabf6c03b3d576bf945de4350a0d8f465a4159a3fb7cae40ba6142a"
|
|
784
784
|
},
|
|
785
785
|
{
|
|
786
786
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -880,16 +880,16 @@
|
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
882
|
"path": "funnel-docs.config.json",
|
|
883
|
-
"sha256": "
|
|
883
|
+
"sha256": "ba7cf49d4b85969994262ae8ca59989cc5ef6a7db7272820556a99887bc5c408"
|
|
884
884
|
}
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
"repositoryCliVersion": "0.1.
|
|
889
|
+
"repositoryCliVersion": "0.1.303",
|
|
890
890
|
"manifest": {
|
|
891
891
|
"schemaVersion": 1,
|
|
892
|
-
"bundleVersion": "2.0.
|
|
892
|
+
"bundleVersion": "2.0.296",
|
|
893
893
|
"stepContractVersion": 3,
|
|
894
894
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
895
895
|
"managedFiles": [
|
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
},
|
|
908
908
|
{
|
|
909
909
|
"path": "docs/funnelsgrove/contracts/analytics-events.md",
|
|
910
|
-
"sha256": "
|
|
910
|
+
"sha256": "11c79bd21570374ae591f21594c7235cc2bb015067ad901eddc1420a9998cd25"
|
|
911
911
|
},
|
|
912
912
|
{
|
|
913
913
|
"path": "docs/funnelsgrove/contracts/content-answers.md",
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
},
|
|
928
928
|
{
|
|
929
929
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
930
|
-
"sha256": "
|
|
930
|
+
"sha256": "b54e093d99f163b399ca52788beabc94530accea7b3c7d60caaf9f067a5aeb04"
|
|
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": "51ad1bfe95afe002bc2fabefe00655881cc41ab34cfb1d13a0dbf92b31ab0c7e"
|
|
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.302",
|
|
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": "72d337fa007993d18455f281b9a784e2e15fb46e43038a2934ddfcc82d8c1d28"
|
|
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": "e381723d48a0772419a5f8d757de1bb8fc9d7b3fd7838ad6fcde8ce0031d77c3"
|
|
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.
|
|
20
|
+
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.39.0`, then `@funnelsgrove/analytics` `0.21.0`, then `@funnelsgrove/payments` `0.52.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.309`, 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.302",
|
|
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": "72d337fa007993d18455f281b9a784e2e15fb46e43038a2934ddfcc82d8c1d28"
|
|
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": "e381723d48a0772419a5f8d757de1bb8fc9d7b3fd7838ad6fcde8ce0031d77c3"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "dcd370b7855a36f8157ecd731e4bf3d3cc10b0c360c769be3314cae460cd8099",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.302",
|
|
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": "7316f1d05693f4d9ca4311c5c279744de86198da046c392905c8939b940c6fe9",
|
|
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": "72d337fa007993d18455f281b9a784e2e15fb46e43038a2934ddfcc82d8c1d28",
|
|
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": "e381723d48a0772419a5f8d757de1bb8fc9d7b3fd7838ad6fcde8ce0031d77c3",
|
|
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.
|
|
20
|
+
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.39.0`, then `@funnelsgrove/analytics` `0.21.0`, then `@funnelsgrove/payments` `0.52.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.309`, 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
|