@relipay/cli 0.1.0-beta.0 → 0.1.0-beta.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/plans.d.ts
CHANGED
|
@@ -4,10 +4,19 @@
|
|
|
4
4
|
* relipay plans list --app <id> [--include-inactive]
|
|
5
5
|
* relipay plans create --app <id> --slug <slug> --name <name> --amount <int>
|
|
6
6
|
* [--currency USD] [--interval MONTH|YEAR]
|
|
7
|
+
* [--kind SUBSCRIPTION|LICENSE|USAGE|CREDIT]
|
|
8
|
+
* [--license-kind PERPETUAL|TIMED|SEATS]
|
|
9
|
+
* [--license-duration-days <int>] [--license-seats-allowed <int>]
|
|
10
|
+
* [--meter-slug <slug>] [--price-per-unit-cents <int>]
|
|
11
|
+
* [--credits-amount <int>]
|
|
7
12
|
* relipay plans set-active --app <id> --slug <slug> --active true|false
|
|
8
13
|
*
|
|
9
14
|
* Money is the smallest currency unit (cents) — never floats. The CLI
|
|
10
|
-
* refuses fractional `--amount` values to prevent
|
|
15
|
+
* refuses fractional `--amount` / `--price-per-unit-cents` values to prevent
|
|
16
|
+
* silent rounding bugs. Per-kind field requirements (LICENSE needs
|
|
17
|
+
* --license-kind, TIMED needs a duration, USAGE needs a meter + per-unit
|
|
18
|
+
* price, CREDIT needs --credits-amount) are validated server-side; the API
|
|
19
|
+
* returns a typed RelipayError.
|
|
11
20
|
*/
|
|
12
21
|
import type { Command } from 'commander';
|
|
13
22
|
export declare function registerPlansCommand(program: Command): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../src/commands/plans.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plans.d.ts","sourceRoot":"","sources":["../../src/commands/plans.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsBzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6M3D"}
|
package/dist/commands/plans.js
CHANGED
|
@@ -4,10 +4,19 @@
|
|
|
4
4
|
* relipay plans list --app <id> [--include-inactive]
|
|
5
5
|
* relipay plans create --app <id> --slug <slug> --name <name> --amount <int>
|
|
6
6
|
* [--currency USD] [--interval MONTH|YEAR]
|
|
7
|
+
* [--kind SUBSCRIPTION|LICENSE|USAGE|CREDIT]
|
|
8
|
+
* [--license-kind PERPETUAL|TIMED|SEATS]
|
|
9
|
+
* [--license-duration-days <int>] [--license-seats-allowed <int>]
|
|
10
|
+
* [--meter-slug <slug>] [--price-per-unit-cents <int>]
|
|
11
|
+
* [--credits-amount <int>]
|
|
7
12
|
* relipay plans set-active --app <id> --slug <slug> --active true|false
|
|
8
13
|
*
|
|
9
14
|
* Money is the smallest currency unit (cents) — never floats. The CLI
|
|
10
|
-
* refuses fractional `--amount` values to prevent
|
|
15
|
+
* refuses fractional `--amount` / `--price-per-unit-cents` values to prevent
|
|
16
|
+
* silent rounding bugs. Per-kind field requirements (LICENSE needs
|
|
17
|
+
* --license-kind, TIMED needs a duration, USAGE needs a meter + per-unit
|
|
18
|
+
* price, CREDIT needs --credits-amount) are validated server-side; the API
|
|
19
|
+
* returns a typed RelipayError.
|
|
11
20
|
*/
|
|
12
21
|
import { ok, fail, readGlobalOpts } from '../lib/output.js';
|
|
13
22
|
import { adminRequest } from '../lib/api.js';
|
|
@@ -42,8 +51,30 @@ export function registerPlansCommand(program) {
|
|
|
42
51
|
.requiredOption('--amount <int>', 'Smallest currency unit, e.g. cents')
|
|
43
52
|
.option('--currency <code>', 'ISO 4217 — defaults to USD', 'USD')
|
|
44
53
|
.option('--interval <interval>', 'MONTH | YEAR', 'MONTH')
|
|
54
|
+
.option('--kind <kind>', 'SUBSCRIPTION | LICENSE | USAGE | CREDIT', 'SUBSCRIPTION')
|
|
55
|
+
.option('--license-kind <kind>', 'PERPETUAL | TIMED | SEATS (LICENSE plans)')
|
|
56
|
+
.option('--license-duration-days <int>', 'Key lifetime in days (TIMED licenses)')
|
|
57
|
+
.option('--license-seats-allowed <int>', 'Concurrent activations (SEATS licenses)')
|
|
58
|
+
.option('--meter-slug <slug>', 'Usage meter to bill against (USAGE plans)')
|
|
59
|
+
.option('--price-per-unit-cents <int>', 'Per-unit price in cents (USAGE plans)')
|
|
60
|
+
.option('--credits-amount <int>', 'Credits granted per purchase (CREDIT plans)')
|
|
45
61
|
.action(async function (opts) {
|
|
46
62
|
const ctx = readGlobalOpts(this);
|
|
63
|
+
// Parse + range-check an optional integer flag. Returns undefined when
|
|
64
|
+
// the flag was not passed; calls fail() (which exits) on a bad value.
|
|
65
|
+
const intOpt = (raw, flag, code, min) => {
|
|
66
|
+
if (raw === undefined)
|
|
67
|
+
return undefined;
|
|
68
|
+
const n = Number(raw);
|
|
69
|
+
if (!Number.isInteger(n) || n < min) {
|
|
70
|
+
fail(ctx, {
|
|
71
|
+
code,
|
|
72
|
+
message: `${flag} must be an integer >= ${min}. Got "${raw}".`,
|
|
73
|
+
fix: 'Pass a whole number. Floats are rejected to prevent silent rounding.',
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return n;
|
|
77
|
+
};
|
|
47
78
|
const amountInt = Number(opts.amount);
|
|
48
79
|
if (!Number.isInteger(amountInt) || amountInt < 0) {
|
|
49
80
|
fail(ctx, {
|
|
@@ -59,6 +90,28 @@ export function registerPlansCommand(program) {
|
|
|
59
90
|
fix: 'Use MONTH or YEAR.',
|
|
60
91
|
});
|
|
61
92
|
}
|
|
93
|
+
if (!['SUBSCRIPTION', 'LICENSE', 'USAGE', 'CREDIT'].includes(opts.kind)) {
|
|
94
|
+
fail(ctx, {
|
|
95
|
+
code: 'CLI_PLANS_KIND_INVALID',
|
|
96
|
+
message: `--kind must be SUBSCRIPTION, LICENSE, USAGE, or CREDIT. Got "${opts.kind}".`,
|
|
97
|
+
fix: 'Use SUBSCRIPTION, LICENSE, USAGE, or CREDIT.',
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (opts.licenseKind !== undefined && !['PERPETUAL', 'TIMED', 'SEATS'].includes(opts.licenseKind)) {
|
|
101
|
+
fail(ctx, {
|
|
102
|
+
code: 'CLI_PLANS_LICENSE_KIND_INVALID',
|
|
103
|
+
message: `--license-kind must be PERPETUAL, TIMED, or SEATS. Got "${opts.licenseKind}".`,
|
|
104
|
+
fix: 'Use PERPETUAL, TIMED, or SEATS.',
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
// Combination rules (e.g. LICENSE needs --license-kind, TIMED needs a
|
|
108
|
+
// duration, USAGE needs a meter + per-unit price, CREDIT needs
|
|
109
|
+
// --credits-amount) are enforced by the API; it returns a typed
|
|
110
|
+
// RelipayError we surface as-is.
|
|
111
|
+
const licenseDurationDays = intOpt(opts.licenseDurationDays, '--license-duration-days', 'CLI_PLANS_LICENSE_DURATION_INVALID', 1);
|
|
112
|
+
const licenseSeatsAllowed = intOpt(opts.licenseSeatsAllowed, '--license-seats-allowed', 'CLI_PLANS_LICENSE_SEATS_INVALID', 1);
|
|
113
|
+
const pricePerUnitCents = intOpt(opts.pricePerUnitCents, '--price-per-unit-cents', 'CLI_PLANS_PRICE_PER_UNIT_INVALID', 0);
|
|
114
|
+
const creditsAmount = intOpt(opts.creditsAmount, '--credits-amount', 'CLI_PLANS_CREDITS_AMOUNT_INVALID', 1);
|
|
62
115
|
const data = await adminRequest({
|
|
63
116
|
ctx,
|
|
64
117
|
method: 'POST',
|
|
@@ -69,10 +122,34 @@ export function registerPlansCommand(program) {
|
|
|
69
122
|
amount: amountInt,
|
|
70
123
|
currency: opts.currency,
|
|
71
124
|
interval: opts.interval,
|
|
125
|
+
kind: opts.kind,
|
|
126
|
+
...(opts.licenseKind !== undefined && { licenseKind: opts.licenseKind }),
|
|
127
|
+
...(licenseDurationDays !== undefined && { licenseDurationDays }),
|
|
128
|
+
...(licenseSeatsAllowed !== undefined && { licenseSeatsAllowed }),
|
|
129
|
+
...(opts.meterSlug !== undefined && { meterSlug: opts.meterSlug }),
|
|
130
|
+
...(pricePerUnitCents !== undefined && { pricePerUnitCents }),
|
|
131
|
+
...(creditsAmount !== undefined && { creditsAmount }),
|
|
72
132
|
},
|
|
73
133
|
});
|
|
74
134
|
ok(ctx, data, (d) => {
|
|
75
|
-
|
|
135
|
+
let detail;
|
|
136
|
+
if (d.kind === 'LICENSE') {
|
|
137
|
+
detail = `${d.amount} ${d.currency} · ${d.licenseKind ?? '?'}`;
|
|
138
|
+
if (d.licenseKind === 'TIMED')
|
|
139
|
+
detail += ` (${d.licenseDurationDays}d)`;
|
|
140
|
+
if (d.licenseKind === 'SEATS')
|
|
141
|
+
detail += ` (${d.licenseSeatsAllowed} seats)`;
|
|
142
|
+
}
|
|
143
|
+
else if (d.kind === 'USAGE') {
|
|
144
|
+
detail = `${d.pricePerUnitCents}¢/unit on ${d.meterSlug}`;
|
|
145
|
+
}
|
|
146
|
+
else if (d.kind === 'CREDIT') {
|
|
147
|
+
detail = `${d.amount} ${d.currency} → ${d.creditsAmount} credits`;
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
detail = `${d.amount} ${d.currency}/${d.interval}`;
|
|
151
|
+
}
|
|
152
|
+
process.stdout.write(`✓ ${d.slug} [${d.kind}] ${detail}\n`);
|
|
76
153
|
});
|
|
77
154
|
});
|
|
78
155
|
plans
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../../src/commands/plans.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plans.js","sourceRoot":"","sources":["../../src/commands/plans.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAoB7C,MAAM,UAAU,oBA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CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relipay/cli",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.1",
|
|
4
4
|
"description": "ReliPay command-line interface — designed for both human developers and AI agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"commander": "^12.1.0",
|
|
30
|
-
"@relipay/node": "0.1.0-beta.
|
|
31
|
-
"@relipay/shared-types": "0.1.0-beta.
|
|
30
|
+
"@relipay/node": "0.1.0-beta.1",
|
|
31
|
+
"@relipay/shared-types": "0.1.0-beta.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^22.9.0",
|