@fragment-dev/cli 2026.9.21-4 → 2026.9.21-6

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  standardQueries
3
- } from "./chunk-7GWSUHUD.js";
3
+ } from "./chunk-6BCVSZFE.js";
4
4
  import {
5
5
  InvalidGraphQlError
6
6
  } from "./chunk-ZMFGVGZP.js";
@@ -31,9 +31,7 @@ mutation StoreSchema($schema: SchemaInput!) {
31
31
  }
32
32
  }
33
33
 
34
- mutation DeleteSchema(
35
- $schema: SchemaMatchInput!
36
- ) {
34
+ mutation DeleteSchema($schema: SchemaMatchInput!) {
37
35
  deleteSchema(schema: $schema) {
38
36
  __typename
39
37
  ... on DeleteSchemaResult {
@@ -52,12 +50,8 @@ mutation DeleteSchema(
52
50
  }
53
51
  }
54
52
 
55
- mutation CreateLedger(
56
- $ik: SafeString!
57
- $ledger: CreateLedgerInput!
58
- $schemaKey: SafeString!
59
- ) {
60
- createLedger(ik: $ik, ledger: $ledger, schema: { key: $schemaKey }) {
53
+ mutation CreateLedger($ik: SafeString!, $ledger: CreateLedgerInput!, $schemaKey: SafeString!) {
54
+ createLedger(ik: $ik, ledger: $ledger, schema: {key: $schemaKey}) {
61
55
  __typename
62
56
  ... on CreateLedgerResult {
63
57
  ledger {
@@ -84,9 +78,7 @@ mutation CreateLedger(
84
78
  }
85
79
  }
86
80
 
87
- mutation DeleteLedger(
88
- $ledger: LedgerMatchInput!
89
- ) {
81
+ mutation DeleteLedger($ledger: LedgerMatchInput!) {
90
82
  deleteLedger(ledger: $ledger) {
91
83
  __typename
92
84
  ... on DeleteLedgerResult {
@@ -105,34 +97,87 @@ mutation DeleteLedger(
105
97
  }
106
98
  }
107
99
 
108
- mutation AddLedgerEntry(
109
- $ik: SafeString!
110
- $ledgerIk: SafeString!
111
- $type: String!
112
- $typeVersion: Int
113
- $posted: DateTime
114
- $parameters: JSON!
115
- $tags: [LedgerEntryTagInput!]
116
- $groups: [LedgerEntryGroupInput!]
117
- ) {
100
+ mutation InstantiateLedgerAccount($ledger: LedgerMatchInput!, $path: String!, $parameters: Parameters) {
101
+ instantiateLedgerAccount(ledger: $ledger, path: $path, parameters: $parameters) {
102
+ __typename
103
+ ... on InstantiateLedgerAccountResult {
104
+ ledgerAccount {
105
+ id
106
+ path
107
+ name
108
+ type
109
+ created
110
+ }
111
+ }
112
+ ... on BadRequestError {
113
+ code
114
+ message
115
+ retryable
116
+ }
117
+ ... on InternalError {
118
+ code
119
+ message
120
+ retryable
121
+ }
122
+ }
123
+ }
124
+
125
+ mutation AddLedgerEntries($entries: [AddLedgerEntryInput!]!) {
126
+ addLedgerEntries(entries: $entries) {
127
+ __typename
128
+ ... on AddLedgerEntriesResult {
129
+ results {
130
+ isIkReplay
131
+ entry {
132
+ type
133
+ id
134
+ ik
135
+ posted
136
+ created
137
+ }
138
+ lines {
139
+ id
140
+ amount
141
+ account {
142
+ path
143
+ }
144
+ }
145
+ }
146
+ }
147
+ ... on AddLedgerEntriesError {
148
+ code
149
+ message
150
+ retryable
151
+ errors {
152
+ ik
153
+ code
154
+ message
155
+ retryable
156
+ }
157
+ }
158
+ ... on BadRequestError {
159
+ code
160
+ message
161
+ retryable
162
+ }
163
+ ... on InternalError {
164
+ code
165
+ message
166
+ retryable
167
+ }
168
+ }
169
+ }
170
+
171
+ mutation AddLedgerEntry($ik: SafeString!, $ledgerIk: SafeString!, $type: String!, $typeVersion: Int, $posted: DateTime, $parameters: JSON!, $tags: [LedgerEntryTagInput!], $groups: [LedgerEntryGroupInput!]) {
118
172
  addLedgerEntry(
119
173
  ik: $ik
120
- entry: {
121
- ledger: { ik: $ledgerIk }
122
- type: $type
123
- typeVersion: $typeVersion
124
- posted: $posted
125
- parameters: $parameters
126
- tags: $tags
127
- groups: $groups
128
- }
174
+ entry: {ledger: {ik: $ledgerIk}, type: $type, typeVersion: $typeVersion, posted: $posted, parameters: $parameters, tags: $tags, groups: $groups}
129
175
  ) {
130
176
  __typename
131
177
  ... on AddLedgerEntryResult {
132
178
  isIkReplay
133
179
  entry {
134
180
  type
135
- typeVersion
136
181
  id
137
182
  ik
138
183
  posted
@@ -159,10 +204,7 @@ mutation AddLedgerEntry(
159
204
  }
160
205
  }
161
206
 
162
-
163
- mutation ReverseLedgerEntry(
164
- $id: ID!
165
- ) {
207
+ mutation ReverseLedgerEntry($id: ID!) {
166
208
  reverseLedgerEntry(id: $id) {
167
209
  __typename
168
210
  ... on ReverseLedgerEntryResult {
@@ -172,7 +214,6 @@ mutation ReverseLedgerEntry(
172
214
  created
173
215
  posted
174
216
  type
175
- typeVersion
176
217
  description
177
218
  hidden
178
219
  lines {
@@ -191,7 +232,6 @@ mutation ReverseLedgerEntry(
191
232
  created
192
233
  posted
193
234
  type
194
- typeVersion
195
235
  description
196
236
  hidden
197
237
  lines {
@@ -219,14 +259,8 @@ mutation ReverseLedgerEntry(
219
259
  }
220
260
  }
221
261
 
222
- mutation MigrateLedgerEntry(
223
- $id: ID!
224
- $newLedgerEntry: LedgerEntryInput!
225
- ) {
226
- migrateLedgerEntry(input: {
227
- id: $id
228
- newLedgerEntry: $newLedgerEntry
229
- }) {
262
+ mutation MigrateLedgerEntry($id: ID!, $newLedgerEntry: LedgerEntryInput!) {
263
+ migrateLedgerEntry(input: {id: $id, newLedgerEntry: $newLedgerEntry}) {
230
264
  __typename
231
265
  ... on MigrateLedgerEntryResult {
232
266
  reversingLedgerEntry {
@@ -301,34 +335,16 @@ mutation MigrateLedgerEntry(
301
335
  }
302
336
  }
303
337
 
304
- mutation AddLedgerEntryRuntime(
305
- $ik: SafeString!
306
- $type: String!
307
- $typeVersion: Int
308
- $ledgerIk: SafeString!
309
- $posted: DateTime
310
- $lines: [LedgerLineInput!]!
311
- $tags: [LedgerEntryTagInput!]
312
- $groups: [LedgerEntryGroupInput!]
313
- ) {
338
+ mutation AddLedgerEntryRuntime($ik: SafeString!, $type: String!, $typeVersion: Int, $ledgerIk: SafeString!, $posted: DateTime, $lines: [LedgerLineInput!]!, $tags: [LedgerEntryTagInput!], $groups: [LedgerEntryGroupInput!]) {
314
339
  addLedgerEntry(
315
340
  ik: $ik
316
- entry: {
317
- type: $type
318
- typeVersion: $typeVersion
319
- ledger: { ik: $ledgerIk }
320
- posted: $posted
321
- lines: $lines
322
- tags: $tags
323
- groups: $groups
324
- }
341
+ entry: {type: $type, typeVersion: $typeVersion, ledger: {ik: $ledgerIk}, posted: $posted, lines: $lines, tags: $tags, groups: $groups}
325
342
  ) {
326
343
  __typename
327
344
  ... on AddLedgerEntryResult {
328
345
  isIkReplay
329
346
  entry {
330
347
  type
331
- typeVersion
332
348
  id
333
349
  ik
334
350
  posted
@@ -355,23 +371,9 @@ mutation AddLedgerEntryRuntime(
355
371
  }
356
372
  }
357
373
 
358
- mutation ReconcileTx(
359
- $ledgerIk: SafeString!
360
- $type: String!
361
- $typeVersion: Int
362
- $parameters: JSON!
363
- $tags: [LedgerEntryTagInput!]
364
- $groups: [LedgerEntryGroupInput!]
365
- ) {
374
+ mutation ReconcileTx($ledgerIk: SafeString!, $type: String!, $typeVersion: Int, $parameters: JSON!, $tags: [LedgerEntryTagInput!], $groups: [LedgerEntryGroupInput!]) {
366
375
  reconcileTx(
367
- entry: {
368
- ledger: { ik: $ledgerIk }
369
- type: $type
370
- typeVersion: $typeVersion
371
- parameters: $parameters
372
- tags: $tags
373
- groups: $groups
374
- }
376
+ entry: {ledger: {ik: $ledgerIk}, type: $type, typeVersion: $typeVersion, parameters: $parameters, tags: $tags, groups: $groups}
375
377
  ) {
376
378
  __typename
377
379
  ... on ReconcileTxResult {
@@ -382,8 +384,6 @@ mutation ReconcileTx(
382
384
  posted
383
385
  created
384
386
  description
385
- type
386
- typeVersion
387
387
  }
388
388
  lines {
389
389
  id
@@ -407,23 +407,9 @@ mutation ReconcileTx(
407
407
  }
408
408
  }
409
409
 
410
- mutation ReconcileTxRuntime(
411
- $ledgerIk: SafeString!
412
- $type: String!
413
- $typeVersion: Int
414
- $lines: [LedgerLineInput!]!
415
- $tags: [LedgerEntryTagInput!]
416
- $groups: [LedgerEntryGroupInput!]
417
- ) {
410
+ mutation ReconcileTxRuntime($ledgerIk: SafeString!, $type: String!, $typeVersion: Int, $lines: [LedgerLineInput!]!, $tags: [LedgerEntryTagInput!], $groups: [LedgerEntryGroupInput!]) {
418
411
  reconcileTx(
419
- entry: {
420
- ledger: { ik: $ledgerIk }
421
- type: $type
422
- typeVersion: $typeVersion
423
- lines: $lines
424
- tags: $tags
425
- groups: $groups
426
- }
412
+ entry: {ledger: {ik: $ledgerIk}, type: $type, typeVersion: $typeVersion, lines: $lines, tags: $tags, groups: $groups}
427
413
  ) {
428
414
  __typename
429
415
  ... on ReconcileTxResult {
@@ -434,8 +420,6 @@ mutation ReconcileTxRuntime(
434
420
  posted
435
421
  created
436
422
  description
437
- type
438
- typeVersion
439
423
  }
440
424
  lines {
441
425
  id
@@ -459,13 +443,9 @@ mutation ReconcileTxRuntime(
459
443
  }
460
444
  }
461
445
 
462
- mutation UpdateLedgerEntry(
463
- $entryIk: SafeString!
464
- $ledgerIk: SafeString!
465
- $update: UpdateLedgerEntryInput!
466
- ) {
446
+ mutation UpdateLedgerEntry($entryIk: SafeString!, $ledgerIk: SafeString!, $update: UpdateLedgerEntryInput!) {
467
447
  updateLedgerEntry(
468
- ledgerEntry: { ik: $entryIk, ledger: { ik: $ledgerIk } }
448
+ ledgerEntry: {ik: $entryIk, ledger: {ik: $ledgerIk}}
469
449
  update: $update
470
450
  ) {
471
451
  __typename
@@ -509,7 +489,7 @@ mutation UpdateLedgerEntry(
509
489
  }
510
490
 
511
491
  mutation UpdateLedger($ledgerIk: SafeString!, $update: UpdateLedgerInput!) {
512
- updateLedger(ledger: { ik: $ledgerIk }, update: $update) {
492
+ updateLedger(ledger: {ik: $ledgerIk}, update: $update) {
513
493
  __typename
514
494
  ... on UpdateLedgerResult {
515
495
  ledger {
@@ -530,6 +510,7 @@ mutation UpdateLedger($ledgerIk: SafeString!, $update: UpdateLedgerInput!) {
530
510
  }
531
511
  }
532
512
  }
513
+
533
514
  mutation CreateCustomLink($name: String!, $ik: SafeString!) {
534
515
  createCustomLink(name: $name, ik: $ik) {
535
516
  __typename
@@ -555,7 +536,7 @@ mutation CreateCustomLink($name: String!, $ik: SafeString!) {
555
536
  }
556
537
 
557
538
  mutation SyncCustomAccounts($linkId: ID!, $accounts: [CustomAccountInput!]!) {
558
- syncCustomAccounts(link: { id: $linkId }, accounts: $accounts) {
539
+ syncCustomAccounts(link: {id: $linkId}, accounts: $accounts) {
559
540
  __typename
560
541
  ... on SyncCustomAccountsResult {
561
542
  accounts {
@@ -582,7 +563,7 @@ mutation SyncCustomAccounts($linkId: ID!, $accounts: [CustomAccountInput!]!) {
582
563
  }
583
564
 
584
565
  mutation SyncCustomTxs($linkId: ID!, $txs: [CustomTxInput!]!) {
585
- syncCustomTxs(link: { id: $linkId }, txs: $txs) {
566
+ syncCustomTxs(link: {id: $linkId}, txs: $txs) {
586
567
  __typename
587
568
  ... on SyncCustomTxsResult {
588
569
  txs {
@@ -640,7 +621,7 @@ mutation DeleteCustomTxs($txs: [ID!]!) {
640
621
  }
641
622
 
642
623
  query GetLedger($ik: SafeString!) {
643
- ledger(ledger: { ik: $ik }) {
624
+ ledger(ledger: {ik: $ik}) {
644
625
  id
645
626
  ik
646
627
  name
@@ -650,7 +631,7 @@ query GetLedger($ik: SafeString!) {
650
631
  }
651
632
 
652
633
  query GetLedgerEntry($ik: SafeString!, $ledgerIk: SafeString!) {
653
- ledgerEntry(ledgerEntry: { ik: $ik, ledger: { ik: $ledgerIk } }) {
634
+ ledgerEntry(ledgerEntry: {ik: $ik, ledger: {ik: $ledgerIk}}) {
654
635
  id
655
636
  ik
656
637
  posted
@@ -668,13 +649,8 @@ query GetLedgerEntry($ik: SafeString!, $ledgerIk: SafeString!) {
668
649
  }
669
650
  }
670
651
 
671
- query ListLedgerAccounts(
672
- $ledgerIk: SafeString!
673
- $after: String
674
- $first: Int
675
- $before: String
676
- ) {
677
- ledger(ledger: { ik: $ledgerIk }) {
652
+ query ListLedgerAccounts($ledgerIk: SafeString!, $after: String, $first: Int, $before: String) {
653
+ ledger(ledger: {ik: $ledgerIk}) {
678
654
  id
679
655
  ik
680
656
  name
@@ -697,18 +673,8 @@ query ListLedgerAccounts(
697
673
  }
698
674
  }
699
675
 
700
- query ListLedgerAccountBalances(
701
- $ledgerIk: SafeString!
702
- $after: String
703
- $first: Int
704
- $before: String
705
- $balanceCurrency: CurrencyMatchInput
706
- $balanceAt: LastMoment
707
- $ownBalanceConsistencyMode: ReadBalanceConsistencyMode
708
- $childBalanceConsistencyMode: ReadBalanceConsistencyMode
709
- $balanceConsistencyMode: ReadBalanceConsistencyMode
710
- ) {
711
- ledger(ledger: { ik: $ledgerIk }) {
676
+ query ListLedgerAccountBalances($ledgerIk: SafeString!, $after: String, $first: Int, $before: String, $balanceCurrency: CurrencyMatchInput, $balanceAt: LastMoment, $ownBalanceConsistencyMode: ReadBalanceConsistencyMode, $childBalanceConsistencyMode: ReadBalanceConsistencyMode, $balanceConsistencyMode: ReadBalanceConsistencyMode) {
677
+ ledger(ledger: {ik: $ledgerIk}) {
712
678
  id
713
679
  ik
714
680
  name
@@ -746,17 +712,8 @@ query ListLedgerAccountBalances(
746
712
  }
747
713
  }
748
714
 
749
- query ListMultiCurrencyLedgerAccountBalances(
750
- $ledgerIk: SafeString!
751
- $after: String
752
- $first: Int
753
- $before: String
754
- $balanceAt: LastMoment
755
- $ownBalancesConsistencyMode: ReadBalanceConsistencyMode
756
- $childBalancesConsistencyMode: ReadBalanceConsistencyMode
757
- $balancesConsistencyMode: ReadBalanceConsistencyMode
758
- ) {
759
- ledger(ledger: { ik: $ledgerIk }) {
715
+ query ListMultiCurrencyLedgerAccountBalances($ledgerIk: SafeString!, $after: String, $first: Int, $before: String, $balanceAt: LastMoment, $ownBalancesConsistencyMode: ReadBalanceConsistencyMode, $childBalancesConsistencyMode: ReadBalanceConsistencyMode, $balancesConsistencyMode: ReadBalanceConsistencyMode) {
716
+ ledger(ledger: {ik: $ledgerIk}) {
760
717
  id
761
718
  ik
762
719
  name
@@ -768,10 +725,7 @@ query ListMultiCurrencyLedgerAccountBalances(
768
725
  name
769
726
  type
770
727
  created
771
- ownBalances(
772
- at: $balanceAt
773
- consistencyMode: $ownBalancesConsistencyMode
774
- ) {
728
+ ownBalances(at: $balanceAt, consistencyMode: $ownBalancesConsistencyMode) {
775
729
  nodes {
776
730
  currency {
777
731
  code
@@ -780,10 +734,7 @@ query ListMultiCurrencyLedgerAccountBalances(
780
734
  amount
781
735
  }
782
736
  }
783
- childBalances(
784
- at: $balanceAt
785
- consistencyMode: $childBalancesConsistencyMode
786
- ) {
737
+ childBalances(at: $balanceAt, consistencyMode: $childBalancesConsistencyMode) {
787
738
  nodes {
788
739
  currency {
789
740
  code
@@ -792,10 +743,7 @@ query ListMultiCurrencyLedgerAccountBalances(
792
743
  amount
793
744
  }
794
745
  }
795
- balances(
796
- at: $balanceAt
797
- consistencyMode: $balancesConsistencyMode
798
- ) {
746
+ balances(at: $balanceAt, consistencyMode: $balancesConsistencyMode) {
799
747
  nodes {
800
748
  currency {
801
749
  code
@@ -815,15 +763,8 @@ query ListMultiCurrencyLedgerAccountBalances(
815
763
  }
816
764
  }
817
765
 
818
- query GetLedgerAccountLines(
819
- $path: String!
820
- $ledgerIk: SafeString!
821
- $after: String
822
- $first: Int
823
- $before: String
824
- $filter: LedgerLinesFilterSet
825
- ) {
826
- ledgerAccount(ledgerAccount: { ledger: { ik: $ledgerIk }, path: $path }) {
766
+ query GetLedgerAccountLines($path: String!, $ledgerIk: SafeString!, $after: String, $first: Int, $before: String, $filter: LedgerLinesFilterSet) {
767
+ ledgerAccount(ledgerAccount: {ledger: {ik: $ledgerIk}, path: $path}) {
827
768
  id
828
769
  path
829
770
  lines(after: $after, first: $first, before: $before, filter: $filter) {
@@ -844,14 +785,8 @@ query GetLedgerAccountLines(
844
785
  }
845
786
  }
846
787
 
847
- query GetLedgerAccountBalance(
848
- $path: String!
849
- $ledgerIk: SafeString!
850
- $balanceCurrency: CurrencyMatchInput
851
- $balanceAt: LastMoment
852
- $balanceConsistencyMode: ReadBalanceConsistencyMode
853
- ) {
854
- ledgerAccount(ledgerAccount: { ledger: { ik: $ledgerIk }, path: $path }) {
788
+ query GetLedgerAccountBalance($path: String!, $ledgerIk: SafeString!, $balanceCurrency: CurrencyMatchInput, $balanceAt: LastMoment, $balanceConsistencyMode: ReadBalanceConsistencyMode) {
789
+ ledgerAccount(ledgerAccount: {ledger: {ik: $ledgerIk}, path: $path}) {
855
790
  id
856
791
  path
857
792
  balance(
@@ -863,7 +798,7 @@ query GetLedgerAccountBalance(
863
798
  }
864
799
 
865
800
  query GetSchema($key: SafeString!, $version: Int) {
866
- schema(schema: { key: $key, version: $version }) {
801
+ schema(schema: {key: $key, version: $version}) {
867
802
  key
868
803
  name
869
804
  version {
@@ -874,24 +809,12 @@ query GetSchema($key: SafeString!, $version: Int) {
874
809
  }
875
810
  }
876
811
 
877
- query ListLedgerEntries(
878
- $ledgerIk: SafeString!
879
- $after: String
880
- $first: Int
881
- $before: String
882
- $filter: LedgerEntriesFilterSet
883
- ) {
884
- ledger(ledger: { ik: $ledgerIk }) {
885
- ledgerEntries(
886
- after: $after
887
- first: $first
888
- before: $before
889
- filter: $filter
890
- ) {
812
+ query ListLedgerEntries($ledgerIk: SafeString!, $after: String, $first: Int, $before: String, $filter: LedgerEntriesFilterSet) {
813
+ ledger(ledger: {ik: $ledgerIk}) {
814
+ ledgerEntries(after: $after, first: $first, before: $before, filter: $filter) {
891
815
  nodes {
892
816
  ik
893
817
  type
894
- typeVersion
895
818
  posted
896
819
  lines {
897
820
  nodes {
@@ -919,32 +842,20 @@ query GetWorkspace {
919
842
  }
920
843
  }
921
844
 
922
- query ListLedgerEntryGroupBalances(
923
- $ledgerIk: SafeString!
924
- $groupKey: SafeString!
925
- $groupValue: SafeString!
926
- $consistencyMode: ReadBalanceConsistencyMode = use_account
927
- $after: String
928
- $before: String
929
- $first: Int
930
- $last: Int
931
- $filter: LedgerEntryGroupBalanceFilterSet
932
- ) {
933
- ledgerEntryGroup(ledgerEntryGroup: {
934
- ledger: { ik: $ledgerIk },
935
- key: $groupKey,
936
- value: $groupValue,
937
- }) {
845
+ query ListLedgerEntryGroupBalances($ledgerIk: SafeString!, $groupKey: SafeString!, $groupValue: SafeString!, $consistencyMode: ReadBalanceConsistencyMode = use_account, $after: String, $before: String, $first: Int, $last: Int, $filter: LedgerEntryGroupBalanceFilterSet) {
846
+ ledgerEntryGroup(
847
+ ledgerEntryGroup: {ledger: {ik: $ledgerIk}, key: $groupKey, value: $groupValue}
848
+ ) {
938
849
  key
939
850
  value
940
851
  created
941
852
  balances(
942
- after: $after,
943
- before: $before,
944
- first: $first,
945
- last: $last,
946
- filter: $filter,
947
- ){
853
+ after: $after
854
+ before: $before
855
+ first: $first
856
+ last: $last
857
+ filter: $filter
858
+ ) {
948
859
  nodes {
949
860
  account {
950
861
  path
@@ -965,15 +876,8 @@ query ListLedgerEntryGroupBalances(
965
876
  }
966
877
  }
967
878
 
968
- query GetEntryDataMigrations(
969
- $ledgerIk: SafeString!
970
- $filter: LedgerEntryDataMigrationsFilterSet
971
- $after: String
972
- $before: String
973
- $first: Int
974
- $last: Int
975
- ) {
976
- ledger(ledger: { ik: $ledgerIk }) {
879
+ query GetEntryDataMigrations($ledgerIk: SafeString!, $filter: LedgerEntryDataMigrationsFilterSet, $after: String, $before: String, $first: Int, $last: Int) {
880
+ ledger(ledger: {ik: $ledgerIk}) {
977
881
  ledgerEntryDataMigrations(
978
882
  first: $first
979
883
  after: $after
@@ -1026,33 +930,13 @@ query GetEntryDataMigrations(
1026
930
  }
1027
931
  }
1028
932
 
1029
- query GetEntriesToMigrateForLedgerEntryDataMigration(
1030
- $ledgerIk: SafeString!
1031
- $entryType: String!
1032
- $typeVersion: String!
1033
- $after: String
1034
- $before: String
1035
- $first: Int
1036
- $last: Int
1037
- ) {
1038
- ledger(ledger: { ik: $ledgerIk }) {
933
+ query GetEntriesToMigrateForLedgerEntryDataMigration($ledgerIk: SafeString!, $entryType: String!, $typeVersion: String!, $after: String, $before: String, $first: Int, $last: Int) {
934
+ ledger(ledger: {ik: $ledgerIk}) {
1039
935
  ledgerEntryDataMigrations(
1040
- filter: {
1041
- entryType: {
1042
- equalTo: $entryType
1043
- }
1044
- typeVersion: {
1045
- equalTo: $typeVersion
1046
- }
1047
- }
936
+ filter: {entryType: {equalTo: $entryType}, typeVersion: {equalTo: $typeVersion}}
1048
937
  ) {
1049
938
  nodes {
1050
- ledgerEntries(
1051
- first: $first
1052
- after: $after
1053
- last: $last
1054
- before: $before
1055
- ) {
939
+ ledgerEntries(first: $first, after: $after, last: $last, before: $before) {
1056
940
  nodes {
1057
941
  id
1058
942
  ik
@@ -1067,7 +951,7 @@ query GetEntriesToMigrateForLedgerEntryDataMigration(
1067
951
  id
1068
952
  amount
1069
953
  account {
1070
- path
954
+ path
1071
955
  }
1072
956
  }
1073
957
  }
@@ -1084,15 +968,8 @@ query GetEntriesToMigrateForLedgerEntryDataMigration(
1084
968
  }
1085
969
  }
1086
970
 
1087
- query GetAccountDataMigrations(
1088
- $ledgerIk: SafeString!
1089
- $filter: LedgerAccountDataMigrationsFilterSet
1090
- $after: String
1091
- $before: String
1092
- $first: Int
1093
- $last: Int
1094
- ) {
1095
- ledger(ledger: { ik: $ledgerIk }) {
971
+ query GetAccountDataMigrations($ledgerIk: SafeString!, $filter: LedgerAccountDataMigrationsFilterSet, $after: String, $before: String, $first: Int, $last: Int) {
972
+ ledger(ledger: {ik: $ledgerIk}) {
1096
973
  ledgerAccountDataMigrations(
1097
974
  first: $first
1098
975
  after: $after
@@ -1144,29 +1021,11 @@ query GetAccountDataMigrations(
1144
1021
  }
1145
1022
  }
1146
1023
 
1147
- query GetEntriesToMigrateForLedgerAccountDataMigration(
1148
- $ledgerIk: SafeString!
1149
- $accountPath: String!
1150
- $after: String
1151
- $before: String
1152
- $first: Int
1153
- $last: Int
1154
- ) {
1155
- ledger(ledger: { ik: $ledgerIk }) {
1156
- ledgerAccountDataMigrations(
1157
- filter: {
1158
- accountPath: {
1159
- equalTo: $accountPath
1160
- }
1161
- }
1162
- ) {
1024
+ query GetEntriesToMigrateForLedgerAccountDataMigration($ledgerIk: SafeString!, $accountPath: String!, $after: String, $before: String, $first: Int, $last: Int) {
1025
+ ledger(ledger: {ik: $ledgerIk}) {
1026
+ ledgerAccountDataMigrations(filter: {accountPath: {equalTo: $accountPath}}) {
1163
1027
  nodes {
1164
- ledgerEntries(
1165
- first: $first
1166
- after: $after
1167
- last: $last
1168
- before: $before
1169
- ) {
1028
+ ledgerEntries(first: $first, after: $after, last: $last, before: $before) {
1170
1029
  nodes {
1171
1030
  id
1172
1031
  ik
@@ -1198,19 +1057,9 @@ query GetEntriesToMigrateForLedgerAccountDataMigration(
1198
1057
  }
1199
1058
  }
1200
1059
 
1201
- mutation CreateCustomCurrency(
1202
- $id: SafeString!,
1203
- $name: String!,
1204
- $precision: Int!,
1205
- $customCode: String!,
1206
- ) {
1060
+ mutation CreateCustomCurrency($id: SafeString!, $name: String!, $precision: Int!, $customCode: String!) {
1207
1061
  createCustomCurrency(
1208
- customCurrency: {
1209
- customCurrencyId: $id,
1210
- name: $name,
1211
- precision: $precision,
1212
- customCode: $customCode,
1213
- }
1062
+ customCurrency: {customCurrencyId: $id, name: $name, precision: $precision, customCode: $customCode}
1214
1063
  ) {
1215
1064
  __typename
1216
1065
  ... on CreateCustomCurrencyResult {
@@ -1235,35 +1084,17 @@ mutation CreateCustomCurrency(
1235
1084
  }
1236
1085
  }
1237
1086
 
1238
- mutation CreatePayment(
1239
- $ik: SafeString!
1240
- $ledgerIk: SafeString!
1241
- $type: SafeString!
1242
- $typeVersion: Int!
1243
- $parameters: JSON
1244
- ) {
1087
+ mutation CreatePayment($ik: SafeString!, $ledgerIk: SafeString!, $type: SafeString!, $typeVersion: Int!, $parameters: JSON) {
1245
1088
  createPayment(
1246
1089
  ik: $ik
1247
- ledger: { ik: $ledgerIk }
1248
- payment: {
1249
- type: $type
1250
- typeVersion: $typeVersion
1251
- parameters: $parameters
1252
- }
1090
+ ledger: {ik: $ledgerIk}
1091
+ payment: {type: $type, typeVersion: $typeVersion, parameters: $parameters}
1253
1092
  ) {
1254
1093
  __typename
1255
1094
  ... on CreatePaymentResult {
1256
1095
  payment {
1257
1096
  clientSecret
1258
- ik
1259
- ledger {
1260
- id
1261
- }
1262
1097
  status
1263
- amount
1264
- type
1265
- typeVersion
1266
- created
1267
1098
  }
1268
1099
  }
1269
1100
  ... on BadRequestError {
@@ -1278,6 +1109,50 @@ mutation CreatePayment(
1278
1109
  }
1279
1110
  }
1280
1111
  }
1112
+
1113
+ query GetPayment($ik: SafeString!, $ledgerIk: SafeString!) {
1114
+ payment(payment: {ik: $ik, ledger: {ik: $ledgerIk}}) {
1115
+ id
1116
+ ik
1117
+ amount
1118
+ currency {
1119
+ code
1120
+ name
1121
+ precision
1122
+ }
1123
+ status
1124
+ type
1125
+ typeVersion
1126
+ mode
1127
+ parameters
1128
+ created
1129
+ }
1130
+ }
1131
+
1132
+ query ListPayments($ledgerIk: SafeString!, $after: String, $first: Int, $before: String, $filter: PaymentsFilterSet) {
1133
+ ledger(ledger: {ik: $ledgerIk}) {
1134
+ payments(after: $after, first: $first, before: $before, filter: $filter) {
1135
+ nodes {
1136
+ id
1137
+ ik
1138
+ amount
1139
+ currency {
1140
+ code
1141
+ }
1142
+ status
1143
+ type
1144
+ typeVersion
1145
+ created
1146
+ }
1147
+ pageInfo {
1148
+ hasNextPage
1149
+ endCursor
1150
+ hasPreviousPage
1151
+ startCursor
1152
+ }
1153
+ }
1154
+ }
1155
+ }
1281
1156
  `;
1282
1157
 
1283
1158
  export {
@@ -4,7 +4,7 @@ import {
4
4
  schemaToEntryDefinitions,
5
5
  schemaToPaymentDefinitions,
6
6
  validateOutputName
7
- } from "./chunk-HNXSOQZR.js";
7
+ } from "./chunk-4JVCHTFG.js";
8
8
  import {
9
9
  Schema,
10
10
  parseWithError
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-6C4LKF7W.js";
31
31
  import {
32
32
  GenGraphQL
33
- } from "./chunk-LDZO7V5Y.js";
33
+ } from "./chunk-AAYOKDXO.js";
34
34
  import {
35
35
  GetSchema
36
36
  } from "./chunk-BUSRW7FZ.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  GenGraphQL
3
- } from "../chunk-LDZO7V5Y.js";
4
- import "../chunk-HNXSOQZR.js";
5
- import "../chunk-7GWSUHUD.js";
3
+ } from "../chunk-AAYOKDXO.js";
4
+ import "../chunk-4JVCHTFG.js";
5
+ import "../chunk-6BCVSZFE.js";
6
6
  import "../chunk-ZMFGVGZP.js";
7
7
  import "../chunk-PDBMPOWO.js";
8
8
  import "../chunk-NRCYIEHQ.js";
package/dist/commands.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  COMMANDS
3
- } from "./chunk-CF5YCSII.js";
3
+ } from "./chunk-TFI5IJD4.js";
4
4
  import "./chunk-TZNA4KRJ.js";
5
5
  import "./chunk-XN23M5N7.js";
6
6
  import "./chunk-YBZUHA4G.js";
@@ -13,9 +13,9 @@ import "./chunk-6U6BM2J2.js";
13
13
  import "./chunk-6C4LKF7W.js";
14
14
  import "./chunk-SPDDJSCO.js";
15
15
  import "./chunk-A4BSWX5D.js";
16
- import "./chunk-LDZO7V5Y.js";
17
- import "./chunk-HNXSOQZR.js";
18
- import "./chunk-7GWSUHUD.js";
16
+ import "./chunk-AAYOKDXO.js";
17
+ import "./chunk-4JVCHTFG.js";
18
+ import "./chunk-6BCVSZFE.js";
19
19
  import "./chunk-ZMFGVGZP.js";
20
20
  import "./chunk-PDBMPOWO.js";
21
21
  import "./chunk-NRCYIEHQ.js";
package/dist/graphql.js CHANGED
@@ -11,8 +11,8 @@ import {
11
11
  schemaToEntryDefinitions,
12
12
  schemaToPaymentDefinitions,
13
13
  validateOutputName
14
- } from "./chunk-HNXSOQZR.js";
15
- import "./chunk-7GWSUHUD.js";
14
+ } from "./chunk-4JVCHTFG.js";
15
+ import "./chunk-6BCVSZFE.js";
16
16
  import "./chunk-ZMFGVGZP.js";
17
17
  import "./chunk-54IT64QD.js";
18
18
  import "./chunk-FJ6QHDIV.js";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  COMMANDS
3
- } from "./chunk-CF5YCSII.js";
3
+ } from "./chunk-TFI5IJD4.js";
4
4
  import "./chunk-TZNA4KRJ.js";
5
5
  import "./chunk-XN23M5N7.js";
6
6
  import "./chunk-YBZUHA4G.js";
@@ -13,9 +13,9 @@ import "./chunk-6U6BM2J2.js";
13
13
  import "./chunk-6C4LKF7W.js";
14
14
  import "./chunk-SPDDJSCO.js";
15
15
  import "./chunk-A4BSWX5D.js";
16
- import "./chunk-LDZO7V5Y.js";
17
- import "./chunk-HNXSOQZR.js";
18
- import "./chunk-7GWSUHUD.js";
16
+ import "./chunk-AAYOKDXO.js";
17
+ import "./chunk-4JVCHTFG.js";
18
+ import "./chunk-6BCVSZFE.js";
19
19
  import "./chunk-ZMFGVGZP.js";
20
20
  import "./chunk-PDBMPOWO.js";
21
21
  import "./chunk-NRCYIEHQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  standardQueries
3
- } from "../chunk-7GWSUHUD.js";
3
+ } from "../chunk-6BCVSZFE.js";
4
4
  import "../chunk-7GH3YGSC.js";
5
5
  export {
6
6
  standardQueries
@@ -1096,5 +1096,5 @@
1096
1096
  "help": "Generate GraphQL queries from your Schema for your SDK."
1097
1097
  }
1098
1098
  },
1099
- "version": "2026.9.21-4"
1099
+ "version": "2026.9.21-6"
1100
1100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragment-dev/cli",
3
- "version": "2026.9.21-4",
3
+ "version": "2026.9.21-6",
4
4
  "description": "FRAGMENT CLI",
5
5
  "author": "hello@fragment.dev",
6
6
  "bin": {
@@ -10,6 +10,12 @@
10
10
  "license": "MIT",
11
11
  "type": "module",
12
12
  "repository": "fragment-dev/workspaces",
13
+ "nx": {
14
+ "//": "standardQueries.test.ts reads customerApi's exported schema file, a dependency nx can't infer from package.json.",
15
+ "implicitDependencies": [
16
+ "@fragment/customer-api-sst"
17
+ ]
18
+ },
13
19
  "files": [
14
20
  "/bin",
15
21
  "/dist",