@fragment-dev/cli 2026.11.12 → 2026.11.13-10
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 +43 -1
- package/dist/{chunk-6H5VEWMH.js → chunk-2EMLJCCB.js} +1 -1
- package/dist/{chunk-V3LLFTBC.js → chunk-2YTWJRNP.js} +1 -1
- package/dist/{chunk-JTGVX5GX.js → chunk-4AUNUT7Z.js} +52 -9
- package/dist/{chunk-D46OZVDM.js → chunk-4EBR67QU.js} +2 -2
- package/dist/{chunk-CTS34CX4.js → chunk-4GSTQ6O4.js} +2 -2
- package/dist/{chunk-UYGNB7UR.js → chunk-4KJOZZJJ.js} +1 -1
- package/dist/{chunk-5F2PJ2LT.js → chunk-57YVQI74.js} +2 -2
- package/dist/{chunk-RHL6MOZS.js → chunk-5Q5FY4NG.js} +3 -3
- package/dist/{chunk-6MYCJAJL.js → chunk-67N5LE4N.js} +2 -2
- package/dist/{chunk-3ZBETKSW.js → chunk-6T66IJCY.js} +5 -0
- package/dist/{chunk-ECRNMUZY.js → chunk-AEIRSM6M.js} +1 -1
- package/dist/{chunk-IGBICJSY.js → chunk-B7254H5E.js} +1 -1
- package/dist/{chunk-R266LOJY.js → chunk-E72FRPF4.js} +15 -3
- package/dist/{chunk-S6EUZBEH.js → chunk-FMDJEY4R.js} +1 -1
- package/dist/{chunk-NHBFVBGA.js → chunk-G5CBWM5A.js} +3 -3
- package/dist/{chunk-WABMYMTO.js → chunk-GR3GGYJY.js} +2 -2
- package/dist/{chunk-VETXOSAQ.js → chunk-HGJQFG33.js} +2 -2
- package/dist/{chunk-D47P74VC.js → chunk-HHNGQYZB.js} +27 -27
- package/dist/{chunk-GJZISVDV.js → chunk-IWY22QAC.js} +2 -2
- package/dist/{chunk-DNAQPTVA.js → chunk-JVDAMJZJ.js} +2205 -2184
- package/dist/{chunk-77SONGBG.js → chunk-K2KHRNPV.js} +13 -4
- package/dist/{chunk-DFBITJLK.js → chunk-LGWOBHUY.js} +1 -1
- package/dist/{chunk-ZYFQDN2K.js → chunk-MB3FR4WL.js} +28 -4
- package/dist/{chunk-PBOTSYWN.js → chunk-MHNH7UHD.js} +1 -1
- package/dist/chunk-NEW2NRYM.js +46 -0
- package/dist/{chunk-AY5LBONU.js → chunk-PYG6AFYU.js} +2 -2
- package/dist/{chunk-EUEC2RGK.js → chunk-QZ6NUJB5.js} +2 -2
- package/dist/{chunk-6QJ3ZC6M.js → chunk-RG4CN74T.js} +225 -8
- package/dist/{chunk-OPMMPSLX.js → chunk-RQFQK7WV.js} +2 -2
- package/dist/{chunk-5WAZAXOW.js → chunk-SACWMZFU.js} +2 -2
- package/dist/{chunk-HII7DWWZ.js → chunk-SL4IWVLO.js} +2 -2
- package/dist/{chunk-EO6QNP4N.js → chunk-VEM4AZAI.js} +3 -3
- package/dist/{chunk-GNPKIMSW.js → chunk-VN2DVYGG.js} +3 -3
- package/dist/{chunk-H2RK3NKQ.js → chunk-VXYOFJKR.js} +2 -2
- package/dist/{chunk-IUDVJMWC.js → chunk-VY7NFMES.js} +2 -2
- package/dist/{chunk-DYLKAHKE.js → chunk-WAU6SFQ5.js} +7 -1
- package/dist/{chunk-35PT2VZ6.js → chunk-WQQ3DSJH.js} +2 -2
- package/dist/{chunk-77TG73N3.js → chunk-XJS4FFUC.js} +2 -2
- package/dist/{chunk-PWOJYW62.js → chunk-XTEERZ7T.js} +2 -2
- package/dist/{chunk-Q2E43BUP.js → chunk-YV6J4BRT.js} +3 -3
- package/dist/{chunk-G3IDF3GN.js → chunk-YWITUQIX.js} +1 -1
- package/dist/{chunk-SLD5GAXB.js → chunk-Z5SFM3A5.js} +1 -1
- package/dist/{chunk-CI336LA7.js → chunk-ZPU5TX3B.js} +1 -1
- package/dist/commands/add-ledger-entry.js +6 -5
- package/dist/commands/api-client/create.js +4 -3
- package/dist/commands/create-custom-link.js +6 -5
- package/dist/commands/create-ledger.js +6 -5
- package/dist/commands/delete-custom-txs.js +6 -5
- package/dist/commands/delete-ledger.js +6 -5
- package/dist/commands/delete-schema.js +6 -5
- package/dist/commands/gen-graphql.js +7 -6
- package/dist/commands/get-schema.js +7 -6
- package/dist/commands/init.js +4 -3
- package/dist/commands/login.js +5 -4
- package/dist/commands/migrate-ledger-entry.js +6 -5
- package/dist/commands/print-schema.js +8 -7
- package/dist/commands/query/ledgerAccounts.js +6 -5
- package/dist/commands/query/ledgers.js +6 -5
- package/dist/commands/query/schema.js +6 -5
- package/dist/commands/query/schemas.js +6 -5
- package/dist/commands/reverse-ledger-entry.js +6 -5
- package/dist/commands/simulate-scenario.js +8 -7
- package/dist/commands/start.js +4 -3
- package/dist/commands/store-schema.js +6 -5
- package/dist/commands/token.js +6 -5
- package/dist/commands/update-ledger-account.js +6 -5
- package/dist/commands/update.js +5 -4
- package/dist/commands/verify-schema.js +8 -7
- package/dist/commands/version.js +4 -3
- package/dist/commands/workspace.js +6 -5
- package/dist/commands.js +43 -42
- package/dist/graphql.js +2 -2
- package/dist/index.js +43 -42
- package/dist/lib/authenticatedCommand.js +5 -4
- package/dist/lib/baseCommand.js +3 -2
- package/dist/lib/curl.js +13 -0
- package/dist/lib/sdk.js +1 -1
- package/dist/lib/version.js +2 -1
- package/dist/utils/formatChartOfAccounts.js +3 -3
- package/dist/utils/formatEntries.js +3 -3
- package/dist/utils/formatScenarioAccountBalances.js +3 -3
- package/dist/utils/formatScenarioBalances.js +4 -4
- package/dist/utils/schemaBackCompat.js +4 -4
- package/dist/utils/schemaValidation.js +3 -3
- package/oclif.manifest.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
[Fragment](https://fragment.dev) is the Ledger API for engineers that move money. Stop wrangling payment tables, debugging balance errors and hacking together data pipelines. Start shipping the features that make a difference.
|
|
4
4
|
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install on macOS (Apple Silicon or Intel) or Linux x64 with glibc.
|
|
8
|
+
Requires [Node.js 18 or later](https://nodejs.org/en/download) on `PATH`:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
curl -fsSL https://fragment.dev/install.sh | sh
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The installer checks Node before downloading the JavaScript-only CLI archive.
|
|
15
|
+
If Node is missing or unsupported, it exits with installation guidance.
|
|
16
|
+
It requires no npm, Homebrew, or sudo.
|
|
17
|
+
The launcher uses the Node executable selected during installation.
|
|
18
|
+
Rerun the installer if you move or remove that Node executable.
|
|
19
|
+
It installs into `~/.local/share/fragment` and creates `~/.local/bin/fragment`.
|
|
20
|
+
Use the printed executable path immediately if that directory is absent from `PATH`.
|
|
21
|
+
Add the directory to your shell profile for future sessions.
|
|
22
|
+
Existing credentials and installations in other locations remain available.
|
|
23
|
+
The installer refuses to overwrite an existing executable it does not manage.
|
|
24
|
+
|
|
25
|
+
Alternatively, install with npm:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install -g @fragment-dev/cli
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Or install with [Homebrew](https://brew.sh/):
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
brew tap fragment-dev/tap
|
|
35
|
+
brew install fragment-dev/tap/fragment-cli
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Run `fragment update` to upgrade. To pin a curl installation or roll back:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
curl -fsSL https://fragment.dev/install.sh | sh -s -- --version <version>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Use `--install-dir <absolute-path>` and `--bin-dir <absolute-path>` to choose installation locations.
|
|
45
|
+
Older releases remain in the installation directory so running commands can finish during updates.
|
|
46
|
+
|
|
5
47
|
# Commands
|
|
6
48
|
|
|
7
49
|
## Browser login for new users
|
|
@@ -209,7 +251,7 @@ DESCRIPTION
|
|
|
209
251
|
Create a Custom Link
|
|
210
252
|
|
|
211
253
|
This mirrors the CreateCustomLink API endpoint.
|
|
212
|
-
Read https://fragment.dev/
|
|
254
|
+
Read https://fragment.dev/docs/sync-payments#custom-link-onboarding to learn more about Custom Links.
|
|
213
255
|
|
|
214
256
|
EXAMPLES
|
|
215
257
|
$ fragment create-custom-link --ik <ik> --name <name>
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
|
|
25
25
|
// ../../libs/schema-validation/parameterization.ts
|
|
26
26
|
init_cjs_shims();
|
|
27
|
+
var getParameter = (parameters, name) => Object.prototype.hasOwnProperty.call(parameters, name) ? parameters[name] : void 0;
|
|
27
28
|
var fillParams = (obj, params = {}, options = {
|
|
28
29
|
allowMissing: false,
|
|
29
30
|
allowMissingInChildren: true
|
|
@@ -35,7 +36,7 @@ var fillParams = (obj, params = {}, options = {
|
|
|
35
36
|
const match = token.match(/\{\{([^{}]+?)\}\}/);
|
|
36
37
|
if (match) {
|
|
37
38
|
const param = match[1];
|
|
38
|
-
const paramValue = params
|
|
39
|
+
const paramValue = getParameter(params, param);
|
|
39
40
|
if (paramValue === void 0 || paramValue === null) {
|
|
40
41
|
missingParams.add(param);
|
|
41
42
|
return token;
|
|
@@ -269,11 +270,31 @@ var PaymentAccountingEventKey = {
|
|
|
269
270
|
/** A refund of the settled payment is initiated. */
|
|
270
271
|
refund_initiated: "refund_initiated",
|
|
271
272
|
/** An initiated refund failed, so the refunded funds return. */
|
|
272
|
-
refund_failed: "refund_failed"
|
|
273
|
+
refund_failed: "refund_failed",
|
|
274
|
+
/** A chargeback opened, withdrawing the disputed amount and the dispute fee. */
|
|
275
|
+
chargeback_settled: "chargeback_settled",
|
|
276
|
+
/** The fee for contesting a chargeback was collected. */
|
|
277
|
+
chargeback_countered: "chargeback_countered",
|
|
278
|
+
/** Funds withdrawn for a chargeback were returned. */
|
|
279
|
+
chargeback_reversed: "chargeback_reversed"
|
|
273
280
|
};
|
|
274
281
|
var PaymentAccountingEventKeySchema = z.nativeEnum(
|
|
275
282
|
PaymentAccountingEventKey
|
|
276
283
|
);
|
|
284
|
+
var DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS = [
|
|
285
|
+
PaymentAccountingEventKey.chargeback_settled,
|
|
286
|
+
PaymentAccountingEventKey.chargeback_countered,
|
|
287
|
+
PaymentAccountingEventKey.chargeback_reversed
|
|
288
|
+
];
|
|
289
|
+
var SCENE_PAYMENT_ACCOUNTING_EVENT_KEYS = [
|
|
290
|
+
PaymentAccountingEventKey.initiated,
|
|
291
|
+
PaymentAccountingEventKey.settled,
|
|
292
|
+
PaymentAccountingEventKey.refund_initiated,
|
|
293
|
+
PaymentAccountingEventKey.refund_failed
|
|
294
|
+
];
|
|
295
|
+
var ScenePaymentAccountingEventKeySchema = z.enum(
|
|
296
|
+
SCENE_PAYMENT_ACCOUNTING_EVENT_KEYS
|
|
297
|
+
);
|
|
277
298
|
var PaymentTypeDirection = {
|
|
278
299
|
payin: "payin",
|
|
279
300
|
payout: "payout"
|
|
@@ -283,27 +304,44 @@ var SystemLineKind = {
|
|
|
283
304
|
payment_settlement_line: "payment_settlement_line",
|
|
284
305
|
payment_fee_line: "payment_fee_line",
|
|
285
306
|
payment_refund_line: "payment_refund_line",
|
|
286
|
-
payment_refund_reversal_line: "payment_refund_reversal_line"
|
|
307
|
+
payment_refund_reversal_line: "payment_refund_reversal_line",
|
|
308
|
+
payment_chargeback_line: "payment_chargeback_line",
|
|
309
|
+
/** The dispute fee charged when a chargeback opens. It is never returned. */
|
|
310
|
+
payment_chargeback_fee_line: "payment_chargeback_fee_line",
|
|
311
|
+
payment_chargeback_countered_fee_line: "payment_chargeback_countered_fee_line",
|
|
312
|
+
payment_chargeback_reversal_line: "payment_chargeback_reversal_line",
|
|
313
|
+
payment_chargeback_countered_fee_reversal_line: "payment_chargeback_countered_fee_reversal_line"
|
|
287
314
|
};
|
|
288
315
|
var SystemLineKindSchema = z.nativeEnum(SystemLineKind);
|
|
289
316
|
var SystemLineParameterName = {
|
|
290
317
|
payment_settlement_line: "settled_amount",
|
|
291
318
|
payment_fee_line: "fragment_fee_amount",
|
|
292
319
|
payment_refund_line: "refund_amount",
|
|
293
|
-
payment_refund_reversal_line: "refund_amount"
|
|
320
|
+
payment_refund_reversal_line: "refund_amount",
|
|
321
|
+
payment_chargeback_line: "chargeback_amount",
|
|
322
|
+
payment_chargeback_fee_line: "chargeback_fee_amount",
|
|
323
|
+
payment_chargeback_countered_fee_line: "chargeback_countered_fee_amount",
|
|
324
|
+
payment_chargeback_reversal_line: "chargeback_amount",
|
|
325
|
+
payment_chargeback_countered_fee_reversal_line: "chargeback_countered_fee_amount"
|
|
294
326
|
};
|
|
295
327
|
var SYSTEM_LINE_AMOUNT = {
|
|
296
328
|
[SystemLineKind.payment_settlement_line]: `{{${SystemLineParameterName.payment_settlement_line}}}`,
|
|
297
329
|
[SystemLineKind.payment_fee_line]: `-{{${SystemLineParameterName.payment_fee_line}}}`,
|
|
298
330
|
[SystemLineKind.payment_refund_line]: `-{{${SystemLineParameterName.payment_refund_line}}}`,
|
|
299
|
-
[SystemLineKind.payment_refund_reversal_line]: `{{${SystemLineParameterName.payment_refund_reversal_line}}}
|
|
331
|
+
[SystemLineKind.payment_refund_reversal_line]: `{{${SystemLineParameterName.payment_refund_reversal_line}}}`,
|
|
332
|
+
[SystemLineKind.payment_chargeback_line]: `-{{${SystemLineParameterName.payment_chargeback_line}}}`,
|
|
333
|
+
[SystemLineKind.payment_chargeback_fee_line]: `-{{${SystemLineParameterName.payment_chargeback_fee_line}}}`,
|
|
334
|
+
[SystemLineKind.payment_chargeback_countered_fee_line]: `-{{${SystemLineParameterName.payment_chargeback_countered_fee_line}}}`,
|
|
335
|
+
[SystemLineKind.payment_chargeback_reversal_line]: `{{${SystemLineParameterName.payment_chargeback_reversal_line}}}`,
|
|
336
|
+
[SystemLineKind.payment_chargeback_countered_fee_reversal_line]: `{{${SystemLineParameterName.payment_chargeback_countered_fee_reversal_line}}}`
|
|
300
337
|
};
|
|
301
338
|
var SYSTEM_PARAMETER_NAMES = new Set(
|
|
302
339
|
Object.values(SystemLineParameterName)
|
|
303
340
|
);
|
|
304
341
|
var BaseSchemaPaymentInput = z.object({
|
|
305
342
|
amount: z.string(),
|
|
306
|
-
direction: PaymentTypeDirectionSchema
|
|
343
|
+
direction: PaymentTypeDirectionSchema,
|
|
344
|
+
tags: BaseSchemaLedgerEntryInput.shape.tags
|
|
307
345
|
});
|
|
308
346
|
var BaseSchemaPaymentEntryLineInput = BaseSchemaLedgerEntryLineInput.pick({
|
|
309
347
|
key: true,
|
|
@@ -328,7 +366,10 @@ var BaseSchemaPaymentTypeInput = z.object({
|
|
|
328
366
|
initiated: BaseSchemaPaymentEntryInput.optional(),
|
|
329
367
|
settled: BaseSchemaPaymentEntryInput,
|
|
330
368
|
refund_initiated: BaseSchemaPaymentEntryInput.optional(),
|
|
331
|
-
refund_failed: BaseSchemaPaymentEntryInput.optional()
|
|
369
|
+
refund_failed: BaseSchemaPaymentEntryInput.optional(),
|
|
370
|
+
chargeback_settled: BaseSchemaPaymentEntryInput.optional(),
|
|
371
|
+
chargeback_countered: BaseSchemaPaymentEntryInput.optional(),
|
|
372
|
+
chargeback_reversed: BaseSchemaPaymentEntryInput.optional()
|
|
332
373
|
})
|
|
333
374
|
});
|
|
334
375
|
var BaseSchemaPayments = z.object({
|
|
@@ -353,7 +394,7 @@ var ScenePaymentEventSchema = z.object({
|
|
|
353
394
|
eventType: z.literal("payment"),
|
|
354
395
|
payment: z.object({
|
|
355
396
|
ik: z.string(),
|
|
356
|
-
event:
|
|
397
|
+
event: ScenePaymentAccountingEventKeySchema
|
|
357
398
|
})
|
|
358
399
|
});
|
|
359
400
|
var SceneEventSchema = z.discriminatedUnion("eventType", [
|
|
@@ -411,7 +452,9 @@ export {
|
|
|
411
452
|
BaseChartOfAccounts,
|
|
412
453
|
PostLinesAsSchema,
|
|
413
454
|
PaymentAccountingEventKey,
|
|
414
|
-
|
|
455
|
+
DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS,
|
|
456
|
+
SCENE_PAYMENT_ACCOUNTING_EVENT_KEYS,
|
|
457
|
+
ScenePaymentAccountingEventKeySchema,
|
|
415
458
|
PaymentTypeDirection,
|
|
416
459
|
PaymentTypeDirectionSchema,
|
|
417
460
|
SystemLineKind,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
parameterizeSchemaLedgerEntryConditionInput,
|
|
11
11
|
parameterizeSchemaLedgerLineInput,
|
|
12
12
|
reparameterizeSchemaLedgerAccountInput
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RG4CN74T.js";
|
|
14
14
|
import {
|
|
15
15
|
getStructuralPath
|
|
16
16
|
} from "./chunk-2QGAXOCF.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-T3RKAA7V.js";
|
|
8
8
|
import {
|
|
9
9
|
ChartOfAccounts
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RG4CN74T.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4AUNUT7Z.js";
|
|
14
14
|
import {
|
|
15
15
|
init_cjs_shims
|
|
16
16
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackCompatCheckError,
|
|
3
3
|
verifySchemaAgainstFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K2KHRNPV.js";
|
|
5
5
|
import {
|
|
6
6
|
extractSchemaMetadata,
|
|
7
7
|
isJsonParseError,
|
|
8
8
|
validateSchemaStructure
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LGWOBHUY.js";
|
|
10
10
|
import {
|
|
11
11
|
logValidationErrors
|
|
12
12
|
} from "./chunk-XOYUWNKQ.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
FragmentCommand,
|
|
18
18
|
require_lib
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MB3FR4WL.js";
|
|
20
20
|
import {
|
|
21
21
|
colorizeJson,
|
|
22
22
|
emphasize,
|
|
@@ -1087,6 +1087,11 @@ var SchemaPaymentTypeStatus = /* @__PURE__ */ ((SchemaPaymentTypeStatus2) => {
|
|
|
1087
1087
|
return SchemaPaymentTypeStatus2;
|
|
1088
1088
|
})(SchemaPaymentTypeStatus || {});
|
|
1089
1089
|
var SchemaSystemLineKind = /* @__PURE__ */ ((SchemaSystemLineKind2) => {
|
|
1090
|
+
SchemaSystemLineKind2["PaymentChargebackCounteredFeeLine"] = "payment_chargeback_countered_fee_line";
|
|
1091
|
+
SchemaSystemLineKind2["PaymentChargebackCounteredFeeReversalLine"] = "payment_chargeback_countered_fee_reversal_line";
|
|
1092
|
+
SchemaSystemLineKind2["PaymentChargebackFeeLine"] = "payment_chargeback_fee_line";
|
|
1093
|
+
SchemaSystemLineKind2["PaymentChargebackLine"] = "payment_chargeback_line";
|
|
1094
|
+
SchemaSystemLineKind2["PaymentChargebackReversalLine"] = "payment_chargeback_reversal_line";
|
|
1090
1095
|
SchemaSystemLineKind2["PaymentFeeLine"] = "payment_fee_line";
|
|
1091
1096
|
SchemaSystemLineKind2["PaymentRefundLine"] = "payment_refund_line";
|
|
1092
1097
|
SchemaSystemLineKind2["PaymentRefundReversalLine"] = "payment_refund_reversal_line";
|
|
@@ -5,9 +5,11 @@ import {
|
|
|
5
5
|
InvalidGraphQlError
|
|
6
6
|
} from "./chunk-UQALZFPK.js";
|
|
7
7
|
import {
|
|
8
|
+
DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS,
|
|
9
|
+
PaymentAccountingEventKey,
|
|
8
10
|
SYSTEM_PARAMETER_NAMES,
|
|
9
11
|
getSchemaObjectParameters
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4AUNUT7Z.js";
|
|
11
13
|
import {
|
|
12
14
|
getStructuralSubpaths
|
|
13
15
|
} from "./chunk-2QGAXOCF.js";
|
|
@@ -37,10 +39,20 @@ var getCallerParameters = (schemaObject) => new Set(
|
|
|
37
39
|
(name) => !SYSTEM_PARAMETER_NAMES.has(name)
|
|
38
40
|
)
|
|
39
41
|
);
|
|
42
|
+
var PAYMENT_CREATION_ACCOUNTING_EVENT_KEYS = [
|
|
43
|
+
PaymentAccountingEventKey.initiated,
|
|
44
|
+
PaymentAccountingEventKey.settled,
|
|
45
|
+
...DISPUTE_PAYMENT_ACCOUNTING_EVENT_KEYS
|
|
46
|
+
];
|
|
40
47
|
var getRequiredPaymentParameters = ({
|
|
41
48
|
payment,
|
|
42
|
-
accounting
|
|
43
|
-
}) => getCallerParameters({
|
|
49
|
+
accounting
|
|
50
|
+
}) => getCallerParameters({
|
|
51
|
+
payment,
|
|
52
|
+
entries: PAYMENT_CREATION_ACCOUNTING_EVENT_KEYS.map(
|
|
53
|
+
(event) => accounting[event]
|
|
54
|
+
)
|
|
55
|
+
});
|
|
44
56
|
|
|
45
57
|
// src/graphql.ts
|
|
46
58
|
var getAccountParams = (accountPath, schema) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatChartOfAccounts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VY7NFMES.js";
|
|
4
4
|
import {
|
|
5
5
|
formatEntries
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-57YVQI74.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SCHEMA_PATH
|
|
9
9
|
} from "./chunk-A4BSWX5D.js";
|
|
10
10
|
import {
|
|
11
11
|
FragmentCommand,
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MB3FR4WL.js";
|
|
14
14
|
import {
|
|
15
15
|
getParsedSchemaString,
|
|
16
16
|
parseJSON
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inquirer_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2EMLJCCB.js";
|
|
4
4
|
import {
|
|
5
5
|
FragmentCommand,
|
|
6
6
|
require_lib
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MB3FR4WL.js";
|
|
8
8
|
import {
|
|
9
9
|
require_source
|
|
10
10
|
} from "./chunk-QDAKBUNO.js";
|
|
@@ -1,84 +1,84 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Update
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GR3GGYJY.js";
|
|
4
4
|
import {
|
|
5
5
|
VerifySchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5Q5FY4NG.js";
|
|
7
7
|
import {
|
|
8
8
|
Version
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZPU5TX3B.js";
|
|
10
10
|
import {
|
|
11
11
|
Workspace
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B7254H5E.js";
|
|
13
13
|
import {
|
|
14
14
|
GetSchema as GetSchema2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XJS4FFUC.js";
|
|
16
16
|
import {
|
|
17
17
|
QuerySchemas
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MHNH7UHD.js";
|
|
19
19
|
import {
|
|
20
20
|
ReverseLedgerEntry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HGJQFG33.js";
|
|
22
22
|
import {
|
|
23
23
|
SimulateScenario
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QZ6NUJB5.js";
|
|
25
25
|
import {
|
|
26
26
|
Start
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FMDJEY4R.js";
|
|
28
28
|
import {
|
|
29
29
|
StoreSchema
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-67N5LE4N.js";
|
|
31
31
|
import {
|
|
32
32
|
Token
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2YTWJRNP.js";
|
|
34
34
|
import {
|
|
35
35
|
UpdateLedgerAccount
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WQQ3DSJH.js";
|
|
37
37
|
import {
|
|
38
38
|
GenGraphQL
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YV6J4BRT.js";
|
|
40
40
|
import {
|
|
41
41
|
GetSchema
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-VEM4AZAI.js";
|
|
43
43
|
import {
|
|
44
44
|
Init
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-Z5SFM3A5.js";
|
|
46
46
|
import {
|
|
47
47
|
Login
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-VXYOFJKR.js";
|
|
49
49
|
import {
|
|
50
50
|
MigrateLedgerEntry
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-4EBR67QU.js";
|
|
52
52
|
import {
|
|
53
53
|
PrintSchema
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-G5CBWM5A.js";
|
|
55
55
|
import {
|
|
56
56
|
QueryLedgerAccounts
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-4GSTQ6O4.js";
|
|
58
58
|
import {
|
|
59
59
|
QueryLedgers
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-AEIRSM6M.js";
|
|
61
61
|
import {
|
|
62
62
|
AddLedgerEntry
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SACWMZFU.js";
|
|
64
64
|
import {
|
|
65
65
|
ApiClientCreate
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-YWITUQIX.js";
|
|
67
67
|
import {
|
|
68
68
|
CreateCustomLink
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-VN2DVYGG.js";
|
|
70
70
|
import {
|
|
71
71
|
CreateLedger
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-XTEERZ7T.js";
|
|
73
73
|
import {
|
|
74
74
|
DeleteCustomTxs
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-PYG6AFYU.js";
|
|
76
76
|
import {
|
|
77
77
|
DeleteLedger
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-SL4IWVLO.js";
|
|
79
79
|
import {
|
|
80
80
|
DeleteSchema
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-IWY22QAC.js";
|
|
82
82
|
import {
|
|
83
83
|
init_cjs_shims
|
|
84
84
|
} from "./chunk-7GH3YGSC.js";
|