@fragment-dev/cli 2026.7.28 → 2026.7.29-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 +1 -1
- package/dist/{chunk-QNGMAK7L.js → chunk-2QWHNS46.js} +3 -3
- package/dist/{chunk-KT3DLGYI.js → chunk-2XS2VMK6.js} +2 -2
- package/dist/{chunk-BCAGXHAX.js → chunk-36LLZEQA.js} +25 -25
- package/dist/{chunk-BWBPSOBV.js → chunk-5E26VJ6H.js} +17 -3
- package/dist/{chunk-IZBMLZIC.js → chunk-5JLMMFER.js} +1 -1
- package/dist/{chunk-OBI2YPSX.js → chunk-5MYHGKCZ.js} +2 -2
- package/dist/{chunk-BC2OJSPA.js → chunk-5R2QMQ47.js} +1 -1
- package/dist/{chunk-BGUC74YK.js → chunk-6GVJKV2D.js} +3 -3
- package/dist/{chunk-U7FUVHZJ.js → chunk-6OFYGM5P.js} +3 -3
- package/dist/{chunk-O7AE4SQS.js → chunk-6SMC73UW.js} +9 -9
- package/dist/{chunk-VNAUU3EA.js → chunk-7BXLVF5J.js} +7 -7
- package/dist/{chunk-44NHT3V7.js → chunk-A3NOUNWR.js} +3 -3
- package/dist/{chunk-BBRYUDAI.js → chunk-A5OWXD3R.js} +48 -10
- package/dist/{chunk-XK2D2Z44.js → chunk-B7FCVEVL.js} +7 -7
- package/dist/{chunk-NAO73VDE.js → chunk-DQXXJ3VR.js} +3 -3
- package/dist/{chunk-624X4WQX.js → chunk-G2KT73T3.js} +1 -1
- package/dist/{chunk-4CEBCA46.js → chunk-ILQ4ZK7X.js} +1 -1
- package/dist/{chunk-OAJCTIWT.js → chunk-IXX2EVIM.js} +3 -3
- package/dist/{chunk-LLGNTKT5.js → chunk-IYYWZCZE.js} +3 -3
- package/dist/{chunk-SH5YJD4P.js → chunk-JFF37Z5K.js} +1 -1
- package/dist/{chunk-VUVWR4BG.js → chunk-K5RBCJWQ.js} +2 -2
- package/dist/{chunk-KFAA2PA4.js → chunk-KAGCPC3G.js} +808 -3
- package/dist/{chunk-5KUA4RJK.js → chunk-KIDRAGHV.js} +3 -3
- package/dist/{chunk-5MQSQSME.js → chunk-MBT3GWIT.js} +2 -2
- package/dist/{chunk-CNRBK46D.js → chunk-O6GAEJNO.js} +2 -2
- package/dist/{chunk-EVBIJLID.js → chunk-OWLAAUNJ.js} +1 -1
- package/dist/{chunk-4MZBCWZQ.js → chunk-Q2D66AQY.js} +3 -3
- package/dist/{chunk-3OHJCZZM.js → chunk-REGEMVTK.js} +4 -4
- package/dist/{chunk-PIHY2GFS.js → chunk-TOXMGEU7.js} +2 -2
- package/dist/{chunk-7TNXITUF.js → chunk-U4NSRDRN.js} +4 -4
- package/dist/{chunk-4E6Y3PSS.js → chunk-U6M2LHJL.js} +3 -3
- package/dist/{chunk-QXLR4WSD.js → chunk-VDAFWOKB.js} +5 -5
- package/dist/{chunk-FOAOX2DT.js → chunk-VKV3NPQ2.js} +2 -2
- package/dist/{chunk-3BWYGCTW.js → chunk-VRVDFHQI.js} +3 -3
- package/dist/{chunk-27IQNS3A.js → chunk-W2V2ILHS.js} +2118 -355
- package/dist/{chunk-THBZ6XSN.js → chunk-WTSTKV54.js} +3 -3
- package/dist/{chunk-ZMFGVGZP.js → chunk-X5KIPJRF.js} +1 -1
- package/dist/{chunk-BMOEYXRT.js → chunk-X5UKW2HL.js} +3 -3
- package/dist/commands/add-ledger-entry.js +5 -5
- package/dist/commands/api-client/create.js +4 -4
- package/dist/commands/create-custom-link.js +5 -5
- package/dist/commands/create-ledger.js +5 -5
- package/dist/commands/delete-custom-txs.js +5 -5
- package/dist/commands/delete-ledger.js +5 -5
- package/dist/commands/delete-schema.js +5 -5
- package/dist/commands/gen-graphql.js +10 -10
- package/dist/commands/get-schema.js +6 -6
- package/dist/commands/init.js +4 -4
- package/dist/commands/login.js +5 -5
- package/dist/commands/migrate-ledger-entry.js +5 -5
- package/dist/commands/query/ledgerAccounts.js +5 -5
- package/dist/commands/query/ledgers.js +5 -5
- package/dist/commands/query/schema.js +5 -5
- package/dist/commands/query/schemas.js +5 -5
- package/dist/commands/reverse-ledger-entry.js +5 -5
- package/dist/commands/start.js +4 -4
- package/dist/commands/store-schema.js +5 -5
- package/dist/commands/token.js +5 -5
- package/dist/commands/update-ledger-account.js +5 -5
- package/dist/commands/update.js +5 -5
- package/dist/commands/verify-schema.js +9 -9
- package/dist/commands/version.js +4 -4
- package/dist/commands/workspace.js +5 -5
- package/dist/commands.js +38 -38
- package/dist/graphql.js +5 -5
- package/dist/index.js +38 -38
- package/dist/lib/authenticatedCommand.js +4 -4
- package/dist/lib/baseCommand.js +3 -3
- package/dist/lib/errors.js +2 -2
- package/dist/utils/formatValidationErrors.js +3 -3
- package/dist/utils/schemaValidation.js +6 -6
- package/dist/utils.js +2 -2
- package/oclif.manifest.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -177,7 +177,7 @@ DESCRIPTION
|
|
|
177
177
|
Create a Custom Link
|
|
178
178
|
|
|
179
179
|
This mirrors the CreateCustomLink API endpoint.
|
|
180
|
-
Read https://fragment.dev/
|
|
180
|
+
Read https://fragment.dev/guides/sync-payments#custom-link-onboarding to learn more about Custom Links.
|
|
181
181
|
|
|
182
182
|
EXAMPLES
|
|
183
183
|
$ fragment create-custom-link --ik <ik> --name <name>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AuthenticatedCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O6GAEJNO.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W2V2ILHS.js";
|
|
7
7
|
import {
|
|
8
8
|
getParsedSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6SMC73UW.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims
|
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Version
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JFF37Z5K.js";
|
|
4
4
|
import {
|
|
5
5
|
Workspace
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-G2KT73T3.js";
|
|
7
7
|
import {
|
|
8
8
|
QuerySchemas
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ILQ4ZK7X.js";
|
|
10
10
|
import {
|
|
11
11
|
ReverseLedgerEntry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X5UKW2HL.js";
|
|
13
13
|
import {
|
|
14
14
|
Start
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TOXMGEU7.js";
|
|
16
16
|
import {
|
|
17
17
|
StoreSchema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2QWHNS46.js";
|
|
19
19
|
import {
|
|
20
20
|
Token
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2XS2VMK6.js";
|
|
22
22
|
import {
|
|
23
23
|
UpdateLedgerAccount
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DQXXJ3VR.js";
|
|
25
25
|
import {
|
|
26
26
|
Update
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IXX2EVIM.js";
|
|
28
28
|
import {
|
|
29
29
|
VerifySchema
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VDAFWOKB.js";
|
|
31
31
|
import {
|
|
32
32
|
GenGraphQL
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7BXLVF5J.js";
|
|
34
34
|
import {
|
|
35
35
|
GetSchema
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-U4NSRDRN.js";
|
|
37
37
|
import {
|
|
38
38
|
Init
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-K5RBCJWQ.js";
|
|
40
40
|
import {
|
|
41
41
|
Login
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IYYWZCZE.js";
|
|
43
43
|
import {
|
|
44
44
|
MigrateLedgerEntry
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WTSTKV54.js";
|
|
46
46
|
import {
|
|
47
47
|
QueryLedgerAccounts
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5MYHGKCZ.js";
|
|
49
49
|
import {
|
|
50
50
|
QueryLedgers
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5R2QMQ47.js";
|
|
52
52
|
import {
|
|
53
53
|
GetSchema as GetSchema2
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-MBT3GWIT.js";
|
|
55
55
|
import {
|
|
56
56
|
AddLedgerEntry
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-6OFYGM5P.js";
|
|
58
58
|
import {
|
|
59
59
|
ApiClientCreate
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-5JLMMFER.js";
|
|
61
61
|
import {
|
|
62
62
|
CreateCustomLink
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-REGEMVTK.js";
|
|
64
64
|
import {
|
|
65
65
|
CreateLedger
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VRVDFHQI.js";
|
|
67
67
|
import {
|
|
68
68
|
DeleteCustomTxs
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-Q2D66AQY.js";
|
|
70
70
|
import {
|
|
71
71
|
DeleteLedger
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-KIDRAGHV.js";
|
|
73
73
|
import {
|
|
74
74
|
DeleteSchema
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-U6M2LHJL.js";
|
|
76
76
|
import {
|
|
77
77
|
init_cjs_shims
|
|
78
78
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -5934,7 +5934,8 @@ var codes = {
|
|
|
5934
5934
|
ik: {
|
|
5935
5935
|
request_body_mismatch: "ik_request_body_mismatch",
|
|
5936
5936
|
concurrent_reverse_ledger_entry_request: "ik_concurrent_reverse_ledger_entry_request",
|
|
5937
|
-
repost_not_enabled: "ik_repost_not_enabled"
|
|
5937
|
+
repost_not_enabled: "ik_repost_not_enabled",
|
|
5938
|
+
duplicate_ik_in_batch: "ik_duplicate_ik_in_batch"
|
|
5938
5939
|
},
|
|
5939
5940
|
ledger: {
|
|
5940
5941
|
not_found: "ledger_not_found",
|
|
@@ -5952,7 +5953,14 @@ var codes = {
|
|
|
5952
5953
|
invalid_path: "ledger_account_invalid_path",
|
|
5953
5954
|
incorrect_ledger: "ledger_account_incorrect_ledger",
|
|
5954
5955
|
disabled_status: `ledger_account_disabled`,
|
|
5955
|
-
archived_status: `ledger_account_archived
|
|
5956
|
+
archived_status: `ledger_account_archived`,
|
|
5957
|
+
multiple_categories: "ledger_account_multiple_categories"
|
|
5958
|
+
},
|
|
5959
|
+
payment_account: {
|
|
5960
|
+
direct_posting_disallowed: `payment_account_direct_posting_disallowed`,
|
|
5961
|
+
cannot_update_entry: `cannot_update_payment_entry`,
|
|
5962
|
+
only_with_schema: "payment_account_only_with_schema",
|
|
5963
|
+
not_jit_allowed: "payment_account_not_jit_allowed"
|
|
5956
5964
|
},
|
|
5957
5965
|
ledger_entry: {
|
|
5958
5966
|
invalid_id_provided: `ledger_entry_invalid_id_provided`,
|
|
@@ -5971,7 +5979,13 @@ var codes = {
|
|
|
5971
5979
|
migration_not_allowed: `ledger_entry_migration_not_allowed`,
|
|
5972
5980
|
entry_type_disabled: `ledger_entry_entry_type_disabled`,
|
|
5973
5981
|
entry_cannot_have_multiple_pre_or_postconditions_on_same_account: `ledger_entry_entry_cannot_have_multiple_pre_or_postconditions_on_same_account`,
|
|
5974
|
-
no_lines: `ledger_entry_no_lines
|
|
5982
|
+
no_lines: `ledger_entry_no_lines`,
|
|
5983
|
+
too_many_transaction_items: `ledger_entry_too_many_transaction_items`,
|
|
5984
|
+
duplicate_tx_reconciliation_in_batch: `ledger_entry_duplicate_tx_reconciliation_in_batch`,
|
|
5985
|
+
reverse_and_reconcile_in_batch: `ledger_entry_reverse_and_reconcile_in_batch`,
|
|
5986
|
+
batch_aborted_by_peer_condition: `ledger_entry_batch_aborted_by_peer_condition`,
|
|
5987
|
+
unsatisfiable_batch_condition: `ledger_entry_unsatisfiable_batch_condition`,
|
|
5988
|
+
batch_operation_failed: `ledger_entry_batch_operation_failed`
|
|
5975
5989
|
},
|
|
5976
5990
|
ledger_entry_history: {
|
|
5977
5991
|
no_history_for_ik: `no_ledger_entry_history_for_ik`
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Schema,
|
|
3
3
|
parseWithError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A5OWXD3R.js";
|
|
5
5
|
import {
|
|
6
6
|
formatValidationErrors
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VKV3NPQ2.js";
|
|
8
8
|
import {
|
|
9
9
|
BadRequestError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5E26VJ6H.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-7GH3YGSC.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AuthenticatedCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O6GAEJNO.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W2V2ILHS.js";
|
|
7
7
|
import {
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B7FCVEVL.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_source
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B7FCVEVL.js";
|
|
4
4
|
import {
|
|
5
5
|
__commonJS,
|
|
6
6
|
__require,
|
|
@@ -7977,9 +7977,9 @@ var require_escape_string_regexp = __commonJS({
|
|
|
7977
7977
|
}
|
|
7978
7978
|
});
|
|
7979
7979
|
|
|
7980
|
-
// ../../node_modules/
|
|
7980
|
+
// ../../node_modules/color-convert/node_modules/color-name/index.js
|
|
7981
7981
|
var require_color_name = __commonJS({
|
|
7982
|
-
"../../node_modules/
|
|
7982
|
+
"../../node_modules/color-convert/node_modules/color-name/index.js"(exports, module) {
|
|
7983
7983
|
"use strict";
|
|
7984
7984
|
init_cjs_shims();
|
|
7985
7985
|
module.exports = {
|
|
@@ -8135,9 +8135,9 @@ var require_color_name = __commonJS({
|
|
|
8135
8135
|
}
|
|
8136
8136
|
});
|
|
8137
8137
|
|
|
8138
|
-
// ../../node_modules/
|
|
8138
|
+
// ../../node_modules/color-convert/conversions.js
|
|
8139
8139
|
var require_conversions = __commonJS({
|
|
8140
|
-
"../../node_modules/
|
|
8140
|
+
"../../node_modules/color-convert/conversions.js"(exports, module) {
|
|
8141
8141
|
init_cjs_shims();
|
|
8142
8142
|
var cssKeywords = require_color_name();
|
|
8143
8143
|
var reverseKeywords = {};
|
|
@@ -8849,9 +8849,9 @@ var require_conversions = __commonJS({
|
|
|
8849
8849
|
}
|
|
8850
8850
|
});
|
|
8851
8851
|
|
|
8852
|
-
// ../../node_modules/
|
|
8852
|
+
// ../../node_modules/color-convert/route.js
|
|
8853
8853
|
var require_route = __commonJS({
|
|
8854
|
-
"../../node_modules/
|
|
8854
|
+
"../../node_modules/color-convert/route.js"(exports, module) {
|
|
8855
8855
|
init_cjs_shims();
|
|
8856
8856
|
var conversions = require_conversions();
|
|
8857
8857
|
function buildGraph() {
|
|
@@ -8920,9 +8920,9 @@ var require_route = __commonJS({
|
|
|
8920
8920
|
}
|
|
8921
8921
|
});
|
|
8922
8922
|
|
|
8923
|
-
// ../../node_modules/
|
|
8923
|
+
// ../../node_modules/color-convert/index.js
|
|
8924
8924
|
var require_color_convert = __commonJS({
|
|
8925
|
-
"../../node_modules/
|
|
8925
|
+
"../../node_modules/color-convert/index.js"(exports, module) {
|
|
8926
8926
|
init_cjs_shims();
|
|
8927
8927
|
var conversions = require_conversions();
|
|
8928
8928
|
var route = require_route();
|
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
generateQueryFiles,
|
|
4
4
|
schemaToEntryDefinitions,
|
|
5
5
|
validateOutputName
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A3NOUNWR.js";
|
|
7
7
|
import {
|
|
8
8
|
Schema,
|
|
9
9
|
parseWithError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A5OWXD3R.js";
|
|
11
11
|
import {
|
|
12
12
|
formatValidationErrors,
|
|
13
13
|
logValidationErrors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VKV3NPQ2.js";
|
|
15
15
|
import {
|
|
16
16
|
BadRequestError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5E26VJ6H.js";
|
|
18
18
|
import {
|
|
19
19
|
FragmentCommand,
|
|
20
20
|
require_lib
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W2V2ILHS.js";
|
|
22
22
|
import {
|
|
23
23
|
getParsedSchema
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6SMC73UW.js";
|
|
25
25
|
import {
|
|
26
26
|
require_source
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-B7FCVEVL.js";
|
|
28
28
|
import {
|
|
29
29
|
__toESM,
|
|
30
30
|
init_cjs_shims
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-FMY4RHS4.js";
|
|
4
4
|
import {
|
|
5
5
|
InvalidGraphQlError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X5KIPJRF.js";
|
|
7
7
|
import {
|
|
8
8
|
getSchemaObjectParameters,
|
|
9
9
|
getStructuralSubpaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OWLAAUNJ.js";
|
|
11
11
|
import {
|
|
12
12
|
require_source
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B7FCVEVL.js";
|
|
14
14
|
import {
|
|
15
15
|
require_parser,
|
|
16
16
|
require_printer
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getStructuralPath,
|
|
6
6
|
getStructuralSubpaths,
|
|
7
7
|
getSubpaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OWLAAUNJ.js";
|
|
9
9
|
import {
|
|
10
10
|
BadRequestError,
|
|
11
11
|
CurrencyMatchInputSchema,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
currencyCodes,
|
|
22
22
|
safe,
|
|
23
23
|
z
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5E26VJ6H.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__toESM,
|
|
@@ -4711,6 +4711,22 @@ init_cjs_shims();
|
|
|
4711
4711
|
var isTotalBalanceSchema = (defaultConsistencyConfig) => {
|
|
4712
4712
|
return defaultConsistencyConfig?.totalBalanceUpdates !== void 0;
|
|
4713
4713
|
};
|
|
4714
|
+
var resolveBalanceUpdatesConsistency = ({
|
|
4715
|
+
accountConsistencyConfig,
|
|
4716
|
+
defaultConsistencyConfig
|
|
4717
|
+
}) => {
|
|
4718
|
+
if (defaultConsistencyConfig === void 0) {
|
|
4719
|
+
return {
|
|
4720
|
+
ownBalanceUpdates: accountConsistencyConfig?.ownBalanceUpdates,
|
|
4721
|
+
totalBalanceUpdates: accountConsistencyConfig?.totalBalanceUpdates
|
|
4722
|
+
};
|
|
4723
|
+
}
|
|
4724
|
+
return isTotalBalanceSchema(defaultConsistencyConfig) ? {
|
|
4725
|
+
totalBalanceUpdates: accountConsistencyConfig?.totalBalanceUpdates ?? defaultConsistencyConfig.totalBalanceUpdates
|
|
4726
|
+
} : {
|
|
4727
|
+
ownBalanceUpdates: accountConsistencyConfig?.ownBalanceUpdates ?? defaultConsistencyConfig.ownBalanceUpdates
|
|
4728
|
+
};
|
|
4729
|
+
};
|
|
4714
4730
|
var validateAccountConsistencySettings = ({
|
|
4715
4731
|
lines,
|
|
4716
4732
|
ownBalanceUpdates,
|
|
@@ -5116,7 +5132,8 @@ var validateAccountLinkedAccount = ({
|
|
|
5116
5132
|
var validateAccountPayment = ({
|
|
5117
5133
|
account,
|
|
5118
5134
|
isTemplateChild,
|
|
5119
|
-
path
|
|
5135
|
+
path,
|
|
5136
|
+
defaultConsistencyConfig
|
|
5120
5137
|
}) => {
|
|
5121
5138
|
const errors = [];
|
|
5122
5139
|
const {
|
|
@@ -5126,6 +5143,7 @@ var validateAccountPayment = ({
|
|
|
5126
5143
|
currencyMode,
|
|
5127
5144
|
currency,
|
|
5128
5145
|
children,
|
|
5146
|
+
consistencyConfig,
|
|
5129
5147
|
key,
|
|
5130
5148
|
name
|
|
5131
5149
|
} = account;
|
|
@@ -5161,12 +5179,23 @@ var validateAccountPayment = ({
|
|
|
5161
5179
|
path: [...path, "payment"]
|
|
5162
5180
|
});
|
|
5163
5181
|
}
|
|
5182
|
+
const { ownBalanceUpdates, totalBalanceUpdates } = resolveBalanceUpdatesConsistency({
|
|
5183
|
+
accountConsistencyConfig: consistencyConfig,
|
|
5184
|
+
defaultConsistencyConfig
|
|
5185
|
+
});
|
|
5186
|
+
if (ownBalanceUpdates !== "strong" && totalBalanceUpdates !== "strong") {
|
|
5187
|
+
errors.push({
|
|
5188
|
+
message: `Payment Accounts must be strongly consistent. Set ownBalanceUpdates or totalBalanceUpdates to 'strong' (key: ${key}, name: ${name})`,
|
|
5189
|
+
path: [...path, "payment"]
|
|
5190
|
+
});
|
|
5191
|
+
}
|
|
5164
5192
|
return errors;
|
|
5165
5193
|
};
|
|
5166
5194
|
var validateAccountCategory = ({
|
|
5167
5195
|
account,
|
|
5168
5196
|
isTemplateChild,
|
|
5169
|
-
path
|
|
5197
|
+
path,
|
|
5198
|
+
defaultConsistencyConfig
|
|
5170
5199
|
}) => {
|
|
5171
5200
|
let category;
|
|
5172
5201
|
try {
|
|
@@ -5184,7 +5213,12 @@ var validateAccountCategory = ({
|
|
|
5184
5213
|
}
|
|
5185
5214
|
return z2(category).with(
|
|
5186
5215
|
"Payment" /* Payment */,
|
|
5187
|
-
() => validateAccountPayment({
|
|
5216
|
+
() => validateAccountPayment({
|
|
5217
|
+
account,
|
|
5218
|
+
isTemplateChild,
|
|
5219
|
+
path,
|
|
5220
|
+
defaultConsistencyConfig
|
|
5221
|
+
})
|
|
5188
5222
|
).with(
|
|
5189
5223
|
"Linked" /* Linked */,
|
|
5190
5224
|
() => validateAccountLinkedAccount({
|
|
@@ -5238,7 +5272,8 @@ var validateAccount = ({
|
|
|
5238
5272
|
account,
|
|
5239
5273
|
path,
|
|
5240
5274
|
isTemplateChild = false,
|
|
5241
|
-
parent
|
|
5275
|
+
parent,
|
|
5276
|
+
defaultConsistencyConfig
|
|
5242
5277
|
}) => {
|
|
5243
5278
|
const errors = [];
|
|
5244
5279
|
errors.push(
|
|
@@ -5273,7 +5308,8 @@ var validateAccount = ({
|
|
|
5273
5308
|
...validateAccountCategory({
|
|
5274
5309
|
account,
|
|
5275
5310
|
isTemplateChild,
|
|
5276
|
-
path
|
|
5311
|
+
path,
|
|
5312
|
+
defaultConsistencyConfig
|
|
5277
5313
|
})
|
|
5278
5314
|
);
|
|
5279
5315
|
const accountConsistencyErrors = account.consistencyConfig ? validateAccountConsistencySettings(account.consistencyConfig) : { errors: [] };
|
|
@@ -5297,7 +5333,8 @@ var validateAccount = ({
|
|
|
5297
5333
|
account: child,
|
|
5298
5334
|
path: [...path, "children", idx],
|
|
5299
5335
|
isTemplateChild: isTemplateChild || account.template,
|
|
5300
|
-
parent: account
|
|
5336
|
+
parent: account,
|
|
5337
|
+
defaultConsistencyConfig
|
|
5301
5338
|
})
|
|
5302
5339
|
);
|
|
5303
5340
|
return errors.concat(childrenValidationErrors);
|
|
@@ -5466,7 +5503,8 @@ var transformAndValidateAccounts = ({
|
|
|
5466
5503
|
const accountValidationErrors = validateAccount({
|
|
5467
5504
|
account,
|
|
5468
5505
|
path: ["accounts", idx],
|
|
5469
|
-
isTemplateChild: account.template
|
|
5506
|
+
isTemplateChild: account.template,
|
|
5507
|
+
defaultConsistencyConfig: filledIn.defaultConsistencyConfig
|
|
5470
5508
|
});
|
|
5471
5509
|
errors.push(...accountValidationErrors);
|
|
5472
5510
|
});
|
|
@@ -5571,7 +5609,7 @@ var transformAndValidateCoA = ({
|
|
|
5571
5609
|
const defaultHasTotalBalance = defaultConsistencyConfig.totalBalanceUpdates !== void 0;
|
|
5572
5610
|
if (!defaultHasOwnBalance && !defaultHasTotalBalance) {
|
|
5573
5611
|
errors.push({
|
|
5574
|
-
message: 'Schema defaultConsistencyConfig is not set. Please set totalBalanceUpdates to either "eventual" or "strong". Visit https://fragment.dev/
|
|
5612
|
+
message: 'Schema defaultConsistencyConfig is not set. Please set totalBalanceUpdates to either "eventual" or "strong". Visit https://fragment.dev/guides/configure-consistency to learn more.',
|
|
5575
5613
|
path: ["defaultConsistencyConfig"]
|
|
5576
5614
|
});
|
|
5577
5615
|
}
|
|
@@ -162,9 +162,9 @@ var require_color_name = __commonJS({
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
|
|
165
|
-
// ../../node_modules/color-convert/conversions.js
|
|
165
|
+
// ../../node_modules/chalk/node_modules/color-convert/conversions.js
|
|
166
166
|
var require_conversions = __commonJS({
|
|
167
|
-
"../../node_modules/color-convert/conversions.js"(exports, module) {
|
|
167
|
+
"../../node_modules/chalk/node_modules/color-convert/conversions.js"(exports, module) {
|
|
168
168
|
init_cjs_shims();
|
|
169
169
|
var cssKeywords = require_color_name();
|
|
170
170
|
var reverseKeywords = {};
|
|
@@ -834,9 +834,9 @@ var require_conversions = __commonJS({
|
|
|
834
834
|
}
|
|
835
835
|
});
|
|
836
836
|
|
|
837
|
-
// ../../node_modules/color-convert/route.js
|
|
837
|
+
// ../../node_modules/chalk/node_modules/color-convert/route.js
|
|
838
838
|
var require_route = __commonJS({
|
|
839
|
-
"../../node_modules/color-convert/route.js"(exports, module) {
|
|
839
|
+
"../../node_modules/chalk/node_modules/color-convert/route.js"(exports, module) {
|
|
840
840
|
init_cjs_shims();
|
|
841
841
|
var conversions = require_conversions();
|
|
842
842
|
function buildGraph() {
|
|
@@ -905,9 +905,9 @@ var require_route = __commonJS({
|
|
|
905
905
|
}
|
|
906
906
|
});
|
|
907
907
|
|
|
908
|
-
// ../../node_modules/color-convert/index.js
|
|
908
|
+
// ../../node_modules/chalk/node_modules/color-convert/index.js
|
|
909
909
|
var require_color_convert = __commonJS({
|
|
910
|
-
"../../node_modules/color-convert/index.js"(exports, module) {
|
|
910
|
+
"../../node_modules/chalk/node_modules/color-convert/index.js"(exports, module) {
|
|
911
911
|
init_cjs_shims();
|
|
912
912
|
var conversions = require_conversions();
|
|
913
913
|
var route = require_route();
|
|
@@ -1563,6 +1563,6 @@ var require_source = __commonJS({
|
|
|
1563
1563
|
|
|
1564
1564
|
export {
|
|
1565
1565
|
require_has_flag,
|
|
1566
|
-
|
|
1566
|
+
require_color_name,
|
|
1567
1567
|
require_source
|
|
1568
1568
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AuthenticatedCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O6GAEJNO.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W2V2ILHS.js";
|
|
7
7
|
import {
|
|
8
8
|
require_source
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B7FCVEVL.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM,
|
|
12
12
|
init_cjs_shims
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inquirer_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KAGCPC3G.js";
|
|
4
4
|
import {
|
|
5
5
|
FragmentCommand,
|
|
6
6
|
require_lib
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W2V2ILHS.js";
|
|
8
8
|
import {
|
|
9
9
|
require_source
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B7FCVEVL.js";
|
|
11
11
|
import {
|
|
12
12
|
__toESM,
|
|
13
13
|
init_cjs_shims
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inquirer_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KAGCPC3G.js";
|
|
4
4
|
import {
|
|
5
5
|
defaultBrowserAuthDeps,
|
|
6
6
|
provisionApiClient
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
FragmentCommand,
|
|
10
10
|
require_lib
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W2V2ILHS.js";
|
|
12
12
|
import {
|
|
13
13
|
require_source
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B7FCVEVL.js";
|
|
15
15
|
import {
|
|
16
16
|
FRAGMENT_ACCESS_TOKEN_PATH,
|
|
17
17
|
FRAGMENT_AUTH_PATH,
|