fragment-dev 1.2.0 → 1.4.0

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.
@@ -3571,9 +3571,47 @@
3571
3571
  "description": "Filter for finding entries by group membership",
3572
3572
  "fields": null,
3573
3573
  "inputFields": [
3574
+ {
3575
+ "name": "equalTo",
3576
+ "description": "Find groups that exactly match this group",
3577
+ "type": {
3578
+ "kind": "INPUT_OBJECT",
3579
+ "name": "GroupMatchInput",
3580
+ "ofType": null
3581
+ },
3582
+ "defaultValue": null
3583
+ },
3584
+ {
3585
+ "name": "in",
3586
+ "description": "Find groups that match any of these groups",
3587
+ "type": {
3588
+ "kind": "LIST",
3589
+ "name": null,
3590
+ "ofType": {
3591
+ "kind": "NON_NULL",
3592
+ "name": null,
3593
+ "ofType": {
3594
+ "kind": "INPUT_OBJECT",
3595
+ "name": "GroupMatchInput",
3596
+ "ofType": null
3597
+ }
3598
+ }
3599
+ },
3600
+ "defaultValue": null
3601
+ },
3602
+ {
3603
+ "name": "keyEqualTo",
3604
+ "description": "Find groups with a specific key",
3605
+ "type": {
3606
+ "kind": "SCALAR",
3607
+ "name": "SafeString",
3608
+ "ofType": null
3609
+ },
3610
+ "defaultValue": null
3611
+ },
3574
3612
  {
3575
3613
  "name": "keyIn",
3576
- "description": "Find entries that are members of a group with all of these group keys",
3614
+ "description": "Find groups with any of these keys",
3577
3615
  "type": {
3578
3616
  "kind": "LIST",
3579
3617
  "name": null,
@@ -3590,14 +3628,99 @@
3590
3628
  "defaultValue": null
3591
3629
  },
3592
3630
  {
3593
- "name": "not",
3594
- "description": "Find entries that do not match this predicate",
3631
+ "name": "notEqualTo",
3632
+ "description": "Find groups that do not exactly match this group",
3595
3633
  "type": {
3596
3634
  "kind": "INPUT_OBJECT",
3597
- "name": "GroupNotFilter",
3635
+ "name": "GroupMatchInput",
3636
+ "ofType": null
3637
+ },
3638
+ "defaultValue": null
3639
+ },
3640
+ {
3641
+ "name": "notIn",
3642
+ "description": "Find groups that do not match any of these groups",
3643
+ "type": {
3644
+ "kind": "LIST",
3645
+ "name": null,
3646
+ "ofType": {
3647
+ "kind": "NON_NULL",
3648
+ "name": null,
3649
+ "ofType": {
3650
+ "kind": "INPUT_OBJECT",
3651
+ "name": "GroupMatchInput",
3652
+ "ofType": null
3653
+ }
3654
+ }
3655
+ },
3656
+ "defaultValue": null
3657
+ },
3658
+ {
3659
+ "name": "notKeyEqualTo",
3660
+ "description": "Find groups that do not have a specific key",
3661
+ "type": {
3662
+ "kind": "SCALAR",
3663
+ "name": "SafeString",
3598
3664
  "ofType": null
3599
3665
  },
3600
3666
  "defaultValue": null
3667
+ },
3668
+ {
3669
+ "name": "notKeyIn",
3670
+ "description": "Find groups that do not have any of these keys",
3671
+ "type": {
3672
+ "kind": "LIST",
3673
+ "name": null,
3674
+ "ofType": {
3675
+ "kind": "NON_NULL",
3676
+ "name": null,
3677
+ "ofType": {
3678
+ "kind": "SCALAR",
3679
+ "name": "SafeString",
3680
+ "ofType": null
3681
+ }
3682
+ }
3683
+ },
3684
+ "defaultValue": null
3685
+ }
3686
+ ],
3687
+ "interfaces": null,
3688
+ "enumValues": null,
3689
+ "possibleTypes": null
3690
+ },
3691
+ {
3692
+ "kind": "INPUT_OBJECT",
3693
+ "name": "GroupMatchInput",
3694
+ "description": "Input type for matching a specific group by key and value",
3695
+ "fields": null,
3696
+ "inputFields": [
3697
+ {
3698
+ "name": "key",
3699
+ "description": "The key of the group to match",
3700
+ "type": {
3701
+ "kind": "NON_NULL",
3702
+ "name": null,
3703
+ "ofType": {
3704
+ "kind": "SCALAR",
3705
+ "name": "SafeString",
3706
+ "ofType": null
3707
+ }
3708
+ },
3709
+ "defaultValue": null
3710
+ },
3711
+ {
3712
+ "name": "value",
3713
+ "description": "The value of the group to match",
3714
+ "type": {
3715
+ "kind": "NON_NULL",
3716
+ "name": null,
3717
+ "ofType": {
3718
+ "kind": "SCALAR",
3719
+ "name": "SafeString",
3720
+ "ofType": null
3721
+ }
3722
+ },
3723
+ "defaultValue": null
3601
3724
  }
3602
3725
  ],
3603
3726
  "interfaces": null,
@@ -3607,12 +3730,12 @@
3607
3730
  {
3608
3731
  "kind": "INPUT_OBJECT",
3609
3732
  "name": "GroupNotFilter",
3610
- "description": "Filter for finding entries that do not match this predicate",
3733
+ "description": "DEPRECATED: Use GroupFilter and notKeyIn or notKeyEqualTo instead. Filter for finding entries that do not match this predicate",
3611
3734
  "fields": null,
3612
3735
  "inputFields": [
3613
3736
  {
3614
3737
  "name": "keyIn",
3615
- "description": "Find entries that are not members of all of these groups. This is an AND filter.",
3738
+ "description": "DEPRECATED: Find entries that are not members of all of these groups. This is an AND filter.",
3616
3739
  "type": {
3617
3740
  "kind": "LIST",
3618
3741
  "name": null,
@@ -4261,6 +4384,63 @@
4261
4384
  "isDeprecated": false,
4262
4385
  "deprecationReason": null
4263
4386
  },
4387
+ {
4388
+ "name": "entryStats",
4389
+ "description": "Entry statistics for this Ledger.",
4390
+ "args": [
4391
+ {
4392
+ "name": "after",
4393
+ "description": "Where to start paginating from, when paginating forwards. Send endCursor from a response to get its next page. Learn more about [pagination](https://fragment.dev/docs/query-data#basics-pagination).",
4394
+ "type": {
4395
+ "kind": "SCALAR",
4396
+ "name": "String",
4397
+ "ofType": null
4398
+ },
4399
+ "defaultValue": null
4400
+ },
4401
+ {
4402
+ "name": "before",
4403
+ "description": "Where to start paginating from, when paginating backwards. Send startCursor from a response to get the previous page. Learn more about [pagination](https://fragment.dev/docs/query-data#basics-pagination).",
4404
+ "type": {
4405
+ "kind": "SCALAR",
4406
+ "name": "String",
4407
+ "ofType": null
4408
+ },
4409
+ "defaultValue": null
4410
+ },
4411
+ {
4412
+ "name": "first",
4413
+ "description": "The number of Ledger Entry Stats to return per page, when paginating forwards. Defaults to 20, maximum is 200.",
4414
+ "type": {
4415
+ "kind": "SCALAR",
4416
+ "name": "Int",
4417
+ "ofType": null
4418
+ },
4419
+ "defaultValue": null
4420
+ },
4421
+ {
4422
+ "name": "last",
4423
+ "description": "The number of Ledger Entry Stats to return per page, when paginating backwards. Defaults to 20, maximum is 200.",
4424
+ "type": {
4425
+ "kind": "SCALAR",
4426
+ "name": "Int",
4427
+ "ofType": null
4428
+ },
4429
+ "defaultValue": null
4430
+ }
4431
+ ],
4432
+ "type": {
4433
+ "kind": "NON_NULL",
4434
+ "name": null,
4435
+ "ofType": {
4436
+ "kind": "OBJECT",
4437
+ "name": "LedgerEntryStatsConnection",
4438
+ "ofType": null
4439
+ }
4440
+ },
4441
+ "isDeprecated": false,
4442
+ "deprecationReason": null
4443
+ },
4264
4444
  {
4265
4445
  "name": "id",
4266
4446
  "description": null,
@@ -4528,7 +4708,48 @@
4528
4708
  {
4529
4709
  "name": "migrations",
4530
4710
  "description": "Schema migrations affecting this Ledger.",
4531
- "args": [],
4711
+ "args": [
4712
+ {
4713
+ "name": "after",
4714
+ "description": "Where to start paginating from, when paginating forwards. Send endCursor from a response to get its next page. Learn more about [pagination](https://fragment.dev/docs/query-data#basics-pagination).",
4715
+ "type": {
4716
+ "kind": "SCALAR",
4717
+ "name": "String",
4718
+ "ofType": null
4719
+ },
4720
+ "defaultValue": null
4721
+ },
4722
+ {
4723
+ "name": "before",
4724
+ "description": "Where to start paginating from, when paginating backwards. Send startCursor from a response to get the previous page. Learn more about [pagination](https://fragment.dev/docs/query-data#basics-pagination).",
4725
+ "type": {
4726
+ "kind": "SCALAR",
4727
+ "name": "String",
4728
+ "ofType": null
4729
+ },
4730
+ "defaultValue": null
4731
+ },
4732
+ {
4733
+ "name": "first",
4734
+ "description": "The number of Ledger Migrations to return per page, when paginating forwards. Defaults to 20, maximum is 200.",
4735
+ "type": {
4736
+ "kind": "SCALAR",
4737
+ "name": "Int",
4738
+ "ofType": null
4739
+ },
4740
+ "defaultValue": null
4741
+ },
4742
+ {
4743
+ "name": "last",
4744
+ "description": "The number of Ledger Migrations to return per page, when paginating backwards. Defaults to 20, maximum is 200.",
4745
+ "type": {
4746
+ "kind": "SCALAR",
4747
+ "name": "Int",
4748
+ "ofType": null
4749
+ },
4750
+ "defaultValue": null
4751
+ }
4752
+ ],
4532
4753
  "type": {
4533
4754
  "kind": "NON_NULL",
4534
4755
  "name": null,
@@ -6500,6 +6721,16 @@
6500
6721
  "ofType": null
6501
6722
  },
6502
6723
  "defaultValue": null
6724
+ },
6725
+ {
6726
+ "name": "typeVersion",
6727
+ "description": "Use this to filter Ledger Entries by their type version.",
6728
+ "type": {
6729
+ "kind": "INPUT_OBJECT",
6730
+ "name": "StringFilter",
6731
+ "ofType": null
6732
+ },
6733
+ "defaultValue": null
6503
6734
  }
6504
6735
  ],
6505
6736
  "interfaces": null,
@@ -6879,6 +7110,18 @@
6879
7110
  "isDeprecated": false,
6880
7111
  "deprecationReason": null
6881
7112
  },
7113
+ {
7114
+ "name": "typeVersion",
7115
+ "description": "The version of the Ledger Entry type used when it was posted.",
7116
+ "args": [],
7117
+ "type": {
7118
+ "kind": "SCALAR",
7119
+ "name": "Int",
7120
+ "ofType": null
7121
+ },
7122
+ "isDeprecated": false,
7123
+ "deprecationReason": null
7124
+ },
6882
7125
  {
6883
7126
  "name": "workspaceId",
6884
7127
  "description": null,
@@ -7422,23 +7665,27 @@
7422
7665
  },
7423
7666
  {
7424
7667
  "kind": "INPUT_OBJECT",
7425
- "name": "LedgerEntryGroupBalanceFilterSet",
7426
- "description": "Optional filters for querying balances on a Ledger Entry Group.",
7668
+ "name": "LedgerEntryGroupBalanceFilter",
7669
+ "description": "Filter Ledger Entry Groups by their balance impact on a Ledger Account. If a group has a matching balance for the specified account, the group will be included in the results.",
7427
7670
  "fields": null,
7428
7671
  "inputFields": [
7429
7672
  {
7430
7673
  "name": "account",
7431
- "description": "Filter to a subset of accounts",
7674
+ "description": "A Ledger Entry Group will be included in the result if it has a balance for the specified account. If 'account' is the only filter specified, then any non-null balance in any currency will match.",
7432
7675
  "type": {
7433
- "kind": "INPUT_OBJECT",
7434
- "name": "GroupBalanceAccountFilter",
7435
- "ofType": null
7676
+ "kind": "NON_NULL",
7677
+ "name": null,
7678
+ "ofType": {
7679
+ "kind": "INPUT_OBJECT",
7680
+ "name": "GroupBalanceAccountFilter",
7681
+ "ofType": null
7682
+ }
7436
7683
  },
7437
7684
  "defaultValue": null
7438
7685
  },
7439
7686
  {
7440
7687
  "name": "currency",
7441
- "description": "Filter to one or more currencies",
7688
+ "description": "A Ledger Entry Group will be included in the result if it has a balance for the specified account in the specified currency. If the 'ownBalance' filter is omitted then any non-null balance will match.",
7442
7689
  "type": {
7443
7690
  "kind": "INPUT_OBJECT",
7444
7691
  "name": "CurrencyFilter",
@@ -7448,7 +7695,7 @@
7448
7695
  },
7449
7696
  {
7450
7697
  "name": "ownBalance",
7451
- "description": "Filter to only balances in a certain range",
7698
+ "description": "A Ledger Entry Group will be included in the result if it has a balance for the specified account that passes the specified value predicate. If the 'currency' filter is omitted then any balance in any currency that passes the predicate will match. If the 'currency' filter is included, the value predicate will only be evaluated against the specified currency. ",
7452
7699
  "type": {
7453
7700
  "kind": "INPUT_OBJECT",
7454
7701
  "name": "Int96Filter",
@@ -7463,29 +7710,70 @@
7463
7710
  },
7464
7711
  {
7465
7712
  "kind": "INPUT_OBJECT",
7466
- "name": "LedgerEntryGroupInput",
7467
- "description": null,
7713
+ "name": "LedgerEntryGroupBalanceFilterSet",
7714
+ "description": "Optional filters for querying balances on a Ledger Entry Group.",
7468
7715
  "fields": null,
7469
7716
  "inputFields": [
7470
7717
  {
7471
- "name": "key",
7472
- "description": "The key of this group. Can be up to 128 characters long.",
7718
+ "name": "account",
7719
+ "description": "Filter to a subset of accounts",
7473
7720
  "type": {
7474
- "kind": "NON_NULL",
7475
- "name": null,
7476
- "ofType": {
7477
- "kind": "SCALAR",
7478
- "name": "SafeString",
7479
- "ofType": null
7480
- }
7721
+ "kind": "INPUT_OBJECT",
7722
+ "name": "GroupBalanceAccountFilter",
7723
+ "ofType": null
7481
7724
  },
7482
7725
  "defaultValue": null
7483
7726
  },
7484
7727
  {
7485
- "name": "value",
7486
- "description": "The value associated with this group's key. Can be up to 128 characters long.",
7728
+ "name": "currency",
7729
+ "description": "Filter to one or more currencies",
7487
7730
  "type": {
7488
- "kind": "NON_NULL",
7731
+ "kind": "INPUT_OBJECT",
7732
+ "name": "CurrencyFilter",
7733
+ "ofType": null
7734
+ },
7735
+ "defaultValue": null
7736
+ },
7737
+ {
7738
+ "name": "ownBalance",
7739
+ "description": "Filter to only balances in a certain range",
7740
+ "type": {
7741
+ "kind": "INPUT_OBJECT",
7742
+ "name": "Int96Filter",
7743
+ "ofType": null
7744
+ },
7745
+ "defaultValue": null
7746
+ }
7747
+ ],
7748
+ "interfaces": null,
7749
+ "enumValues": null,
7750
+ "possibleTypes": null
7751
+ },
7752
+ {
7753
+ "kind": "INPUT_OBJECT",
7754
+ "name": "LedgerEntryGroupInput",
7755
+ "description": null,
7756
+ "fields": null,
7757
+ "inputFields": [
7758
+ {
7759
+ "name": "key",
7760
+ "description": "The key of this group. Can be up to 128 characters long.",
7761
+ "type": {
7762
+ "kind": "NON_NULL",
7763
+ "name": null,
7764
+ "ofType": {
7765
+ "kind": "SCALAR",
7766
+ "name": "SafeString",
7767
+ "ofType": null
7768
+ }
7769
+ },
7770
+ "defaultValue": null
7771
+ },
7772
+ {
7773
+ "name": "value",
7774
+ "description": "The value associated with this group's key. Can be up to 128 characters long.",
7775
+ "type": {
7776
+ "kind": "NON_NULL",
7489
7777
  "name": null,
7490
7778
  "ofType": {
7491
7779
  "kind": "SCALAR",
@@ -7610,6 +7898,16 @@
7610
7898
  "description": null,
7611
7899
  "fields": null,
7612
7900
  "inputFields": [
7901
+ {
7902
+ "name": "balance",
7903
+ "description": "Filter Ledger Entry Groups by their balance impact on a Ledger Account. If a group has a matching balance for the specified account, the group will be included in the results.",
7904
+ "type": {
7905
+ "kind": "INPUT_OBJECT",
7906
+ "name": "LedgerEntryGroupBalanceFilter",
7907
+ "ofType": null
7908
+ },
7909
+ "defaultValue": null
7910
+ },
7613
7911
  {
7614
7912
  "name": "created",
7615
7913
  "description": "Use to filter Ledger Entry Groups by their created timestamp",
@@ -7774,7 +8072,7 @@
7774
8072
  "defaultValue": null
7775
8073
  },
7776
8074
  {
7777
- "name": "version",
8075
+ "name": "typeVersion",
7778
8076
  "description": "Experimental: This field is reserved for an upcoming feature and is not yet supported.",
7779
8077
  "type": {
7780
8078
  "kind": "SCALAR",
@@ -7829,6 +8127,180 @@
7829
8127
  "enumValues": null,
7830
8128
  "possibleTypes": null
7831
8129
  },
8130
+ {
8131
+ "kind": "OBJECT",
8132
+ "name": "LedgerEntryStats",
8133
+ "description": "Posting count statistics for a specific type and typeVersion of entry in a Ledger.",
8134
+ "fields": [
8135
+ {
8136
+ "name": "count",
8137
+ "description": "The total number of entries of this type.",
8138
+ "args": [],
8139
+ "type": {
8140
+ "kind": "NON_NULL",
8141
+ "name": null,
8142
+ "ofType": {
8143
+ "kind": "SCALAR",
8144
+ "name": "Int96",
8145
+ "ofType": null
8146
+ }
8147
+ },
8148
+ "isDeprecated": false,
8149
+ "deprecationReason": null
8150
+ },
8151
+ {
8152
+ "name": "ledgerId",
8153
+ "description": "The ledger ID these stats are for.",
8154
+ "args": [],
8155
+ "type": {
8156
+ "kind": "NON_NULL",
8157
+ "name": null,
8158
+ "ofType": {
8159
+ "kind": "SCALAR",
8160
+ "name": "SafeString",
8161
+ "ofType": null
8162
+ }
8163
+ },
8164
+ "isDeprecated": false,
8165
+ "deprecationReason": null
8166
+ },
8167
+ {
8168
+ "name": "netCount",
8169
+ "description": "The net number of entries (count - reversalsCount).",
8170
+ "args": [],
8171
+ "type": {
8172
+ "kind": "NON_NULL",
8173
+ "name": null,
8174
+ "ofType": {
8175
+ "kind": "SCALAR",
8176
+ "name": "Int96",
8177
+ "ofType": null
8178
+ }
8179
+ },
8180
+ "isDeprecated": false,
8181
+ "deprecationReason": null
8182
+ },
8183
+ {
8184
+ "name": "reversalsCount",
8185
+ "description": "The number of entries that are reversals.",
8186
+ "args": [],
8187
+ "type": {
8188
+ "kind": "NON_NULL",
8189
+ "name": null,
8190
+ "ofType": {
8191
+ "kind": "SCALAR",
8192
+ "name": "Int96",
8193
+ "ofType": null
8194
+ }
8195
+ },
8196
+ "isDeprecated": false,
8197
+ "deprecationReason": null
8198
+ },
8199
+ {
8200
+ "name": "schemaKey",
8201
+ "description": "The schema key associated with these stats.",
8202
+ "args": [],
8203
+ "type": {
8204
+ "kind": "NON_NULL",
8205
+ "name": null,
8206
+ "ofType": {
8207
+ "kind": "SCALAR",
8208
+ "name": "SafeString",
8209
+ "ofType": null
8210
+ }
8211
+ },
8212
+ "isDeprecated": false,
8213
+ "deprecationReason": null
8214
+ },
8215
+ {
8216
+ "name": "type",
8217
+ "description": "The type of entry these stats are for.",
8218
+ "args": [],
8219
+ "type": {
8220
+ "kind": "NON_NULL",
8221
+ "name": null,
8222
+ "ofType": {
8223
+ "kind": "SCALAR",
8224
+ "name": "SafeString",
8225
+ "ofType": null
8226
+ }
8227
+ },
8228
+ "isDeprecated": false,
8229
+ "deprecationReason": null
8230
+ },
8231
+ {
8232
+ "name": "typeVersion",
8233
+ "description": "The version of the entry type these stats are for.",
8234
+ "args": [],
8235
+ "type": {
8236
+ "kind": "NON_NULL",
8237
+ "name": null,
8238
+ "ofType": {
8239
+ "kind": "SCALAR",
8240
+ "name": "Int",
8241
+ "ofType": null
8242
+ }
8243
+ },
8244
+ "isDeprecated": false,
8245
+ "deprecationReason": null
8246
+ }
8247
+ ],
8248
+ "inputFields": null,
8249
+ "interfaces": [],
8250
+ "enumValues": null,
8251
+ "possibleTypes": null
8252
+ },
8253
+ {
8254
+ "kind": "OBJECT",
8255
+ "name": "LedgerEntryStatsConnection",
8256
+ "description": "A paginated list of Ledger Entry Stats",
8257
+ "fields": [
8258
+ {
8259
+ "name": "nodes",
8260
+ "description": "The current page of results",
8261
+ "args": [],
8262
+ "type": {
8263
+ "kind": "NON_NULL",
8264
+ "name": null,
8265
+ "ofType": {
8266
+ "kind": "LIST",
8267
+ "name": null,
8268
+ "ofType": {
8269
+ "kind": "NON_NULL",
8270
+ "name": null,
8271
+ "ofType": {
8272
+ "kind": "OBJECT",
8273
+ "name": "LedgerEntryStats",
8274
+ "ofType": null
8275
+ }
8276
+ }
8277
+ }
8278
+ },
8279
+ "isDeprecated": false,
8280
+ "deprecationReason": null
8281
+ },
8282
+ {
8283
+ "name": "pageInfo",
8284
+ "description": "Pagination info for this list.",
8285
+ "args": [],
8286
+ "type": {
8287
+ "kind": "NON_NULL",
8288
+ "name": null,
8289
+ "ofType": {
8290
+ "kind": "OBJECT",
8291
+ "name": "PageInfo",
8292
+ "ofType": null
8293
+ }
8294
+ },
8295
+ "isDeprecated": false,
8296
+ "deprecationReason": null
8297
+ }
8298
+ ],
8299
+ "inputFields": null,
8300
+ "interfaces": [],
8301
+ "enumValues": null,
8302
+ "possibleTypes": null
8303
+ },
7832
8304
  {
7833
8305
  "kind": "OBJECT",
7834
8306
  "name": "LedgerEntryTag",
@@ -9012,112 +9484,287 @@
9012
9484
  "deprecationReason": null
9013
9485
  },
9014
9486
  {
9015
- "name": "name",
9016
- "description": "Name of the Link as it appears in the Dashboard.",
9017
- "args": [],
9487
+ "name": "name",
9488
+ "description": "Name of the Link as it appears in the Dashboard.",
9489
+ "args": [],
9490
+ "type": {
9491
+ "kind": "NON_NULL",
9492
+ "name": null,
9493
+ "ofType": {
9494
+ "kind": "SCALAR",
9495
+ "name": "String",
9496
+ "ofType": null
9497
+ }
9498
+ },
9499
+ "isDeprecated": false,
9500
+ "deprecationReason": null
9501
+ }
9502
+ ],
9503
+ "inputFields": null,
9504
+ "interfaces": [],
9505
+ "enumValues": null,
9506
+ "possibleTypes": [
9507
+ {
9508
+ "kind": "OBJECT",
9509
+ "name": "CustomLink",
9510
+ "ofType": null
9511
+ },
9512
+ {
9513
+ "kind": "OBJECT",
9514
+ "name": "IncreaseLink",
9515
+ "ofType": null
9516
+ },
9517
+ {
9518
+ "kind": "OBJECT",
9519
+ "name": "StripeLink",
9520
+ "ofType": null
9521
+ },
9522
+ {
9523
+ "kind": "OBJECT",
9524
+ "name": "UnitLink",
9525
+ "ofType": null
9526
+ }
9527
+ ]
9528
+ },
9529
+ {
9530
+ "kind": "INPUT_OBJECT",
9531
+ "name": "LinkMatchInput",
9532
+ "description": null,
9533
+ "fields": null,
9534
+ "inputFields": [
9535
+ {
9536
+ "name": "id",
9537
+ "description": null,
9538
+ "type": {
9539
+ "kind": "NON_NULL",
9540
+ "name": null,
9541
+ "ofType": {
9542
+ "kind": "SCALAR",
9543
+ "name": "ID",
9544
+ "ofType": null
9545
+ }
9546
+ },
9547
+ "defaultValue": null
9548
+ }
9549
+ ],
9550
+ "interfaces": null,
9551
+ "enumValues": null,
9552
+ "possibleTypes": null
9553
+ },
9554
+ {
9555
+ "kind": "ENUM",
9556
+ "name": "LinkType",
9557
+ "description": "The type of Link an external account belongs to.",
9558
+ "fields": null,
9559
+ "inputFields": null,
9560
+ "interfaces": null,
9561
+ "enumValues": [
9562
+ {
9563
+ "name": "CustomLink",
9564
+ "description": "A Custom Link",
9565
+ "isDeprecated": false,
9566
+ "deprecationReason": null
9567
+ },
9568
+ {
9569
+ "name": "IncreaseLink",
9570
+ "description": "An Increase Link",
9571
+ "isDeprecated": false,
9572
+ "deprecationReason": null
9573
+ },
9574
+ {
9575
+ "name": "StripeLink",
9576
+ "description": "A Stripe Link",
9577
+ "isDeprecated": false,
9578
+ "deprecationReason": null
9579
+ },
9580
+ {
9581
+ "name": "UnitLink",
9582
+ "description": "A Unit Link",
9583
+ "isDeprecated": false,
9584
+ "deprecationReason": null
9585
+ }
9586
+ ],
9587
+ "possibleTypes": null
9588
+ },
9589
+ {
9590
+ "kind": "OBJECT",
9591
+ "name": "LinksConnection",
9592
+ "description": "A paginated list of Links",
9593
+ "fields": [
9594
+ {
9595
+ "name": "nodes",
9596
+ "description": "The current page of results",
9597
+ "args": [],
9598
+ "type": {
9599
+ "kind": "NON_NULL",
9600
+ "name": null,
9601
+ "ofType": {
9602
+ "kind": "LIST",
9603
+ "name": null,
9604
+ "ofType": {
9605
+ "kind": "NON_NULL",
9606
+ "name": null,
9607
+ "ofType": {
9608
+ "kind": "INTERFACE",
9609
+ "name": "Link",
9610
+ "ofType": null
9611
+ }
9612
+ }
9613
+ }
9614
+ },
9615
+ "isDeprecated": false,
9616
+ "deprecationReason": null
9617
+ },
9618
+ {
9619
+ "name": "pageInfo",
9620
+ "description": "The [pagination info](https://fragment.dev/api-reference/api-types#connection-types-pageinfo) for this list",
9621
+ "args": [],
9622
+ "type": {
9623
+ "kind": "NON_NULL",
9624
+ "name": null,
9625
+ "ofType": {
9626
+ "kind": "OBJECT",
9627
+ "name": "PageInfo",
9628
+ "ofType": null
9629
+ }
9630
+ },
9631
+ "isDeprecated": false,
9632
+ "deprecationReason": null
9633
+ }
9634
+ ],
9635
+ "inputFields": null,
9636
+ "interfaces": [],
9637
+ "enumValues": null,
9638
+ "possibleTypes": null
9639
+ },
9640
+ {
9641
+ "kind": "INPUT_OBJECT",
9642
+ "name": "MigrateLedgerEntryInput",
9643
+ "description": "An object defining the input for migrating a Ledger Entry.",
9644
+ "fields": null,
9645
+ "inputFields": [
9646
+ {
9647
+ "name": "id",
9648
+ "description": "The Ledger Entry to migrate",
9649
+ "type": {
9650
+ "kind": "NON_NULL",
9651
+ "name": null,
9652
+ "ofType": {
9653
+ "kind": "SCALAR",
9654
+ "name": "ID",
9655
+ "ofType": null
9656
+ }
9657
+ },
9658
+ "defaultValue": null
9659
+ },
9660
+ {
9661
+ "name": "newLedgerEntry",
9662
+ "description": "The Ledger Entry you want to migrate it to",
9018
9663
  "type": {
9019
9664
  "kind": "NON_NULL",
9020
9665
  "name": null,
9021
9666
  "ofType": {
9022
- "kind": "SCALAR",
9023
- "name": "String",
9667
+ "kind": "INPUT_OBJECT",
9668
+ "name": "LedgerEntryInput",
9024
9669
  "ofType": null
9025
9670
  }
9026
9671
  },
9027
- "isDeprecated": false,
9028
- "deprecationReason": null
9672
+ "defaultValue": null
9029
9673
  }
9030
9674
  ],
9675
+ "interfaces": null,
9676
+ "enumValues": null,
9677
+ "possibleTypes": null
9678
+ },
9679
+ {
9680
+ "kind": "UNION",
9681
+ "name": "MigrateLedgerEntryResponse",
9682
+ "description": null,
9683
+ "fields": null,
9031
9684
  "inputFields": null,
9032
- "interfaces": [],
9685
+ "interfaces": null,
9033
9686
  "enumValues": null,
9034
9687
  "possibleTypes": [
9035
9688
  {
9036
9689
  "kind": "OBJECT",
9037
- "name": "CustomLink",
9038
- "ofType": null
9039
- },
9040
- {
9041
- "kind": "OBJECT",
9042
- "name": "IncreaseLink",
9690
+ "name": "BadRequestError",
9043
9691
  "ofType": null
9044
9692
  },
9045
9693
  {
9046
9694
  "kind": "OBJECT",
9047
- "name": "StripeLink",
9695
+ "name": "InternalError",
9048
9696
  "ofType": null
9049
9697
  },
9050
9698
  {
9051
9699
  "kind": "OBJECT",
9052
- "name": "UnitLink",
9700
+ "name": "MigrateLedgerEntryResult",
9053
9701
  "ofType": null
9054
9702
  }
9055
9703
  ]
9056
9704
  },
9057
9705
  {
9058
- "kind": "INPUT_OBJECT",
9059
- "name": "LinkMatchInput",
9706
+ "kind": "OBJECT",
9707
+ "name": "MigrateLedgerEntryResult",
9060
9708
  "description": null,
9061
- "fields": null,
9062
- "inputFields": [
9709
+ "fields": [
9063
9710
  {
9064
- "name": "id",
9065
- "description": null,
9711
+ "name": "isIkReplay",
9712
+ "description": "Whether this migration was an IK replay or not",
9713
+ "args": [],
9066
9714
  "type": {
9067
9715
  "kind": "NON_NULL",
9068
9716
  "name": null,
9069
9717
  "ofType": {
9070
9718
  "kind": "SCALAR",
9071
- "name": "ID",
9719
+ "name": "Boolean",
9072
9720
  "ofType": null
9073
9721
  }
9074
9722
  },
9075
- "defaultValue": null
9076
- }
9077
- ],
9078
- "interfaces": null,
9079
- "enumValues": null,
9080
- "possibleTypes": null
9081
- },
9082
- {
9083
- "kind": "OBJECT",
9084
- "name": "LinksConnection",
9085
- "description": "A paginated list of Links",
9086
- "fields": [
9723
+ "isDeprecated": false,
9724
+ "deprecationReason": null
9725
+ },
9087
9726
  {
9088
- "name": "nodes",
9089
- "description": "The current page of results",
9727
+ "name": "newLedgerEntry",
9728
+ "description": "The new Ledger Entry posted as a result of the migration",
9090
9729
  "args": [],
9091
9730
  "type": {
9092
9731
  "kind": "NON_NULL",
9093
9732
  "name": null,
9094
9733
  "ofType": {
9095
- "kind": "LIST",
9096
- "name": null,
9097
- "ofType": {
9098
- "kind": "NON_NULL",
9099
- "name": null,
9100
- "ofType": {
9101
- "kind": "INTERFACE",
9102
- "name": "Link",
9103
- "ofType": null
9104
- }
9105
- }
9734
+ "kind": "OBJECT",
9735
+ "name": "LedgerEntry",
9736
+ "ofType": null
9106
9737
  }
9107
9738
  },
9108
9739
  "isDeprecated": false,
9109
9740
  "deprecationReason": null
9110
9741
  },
9111
9742
  {
9112
- "name": "pageInfo",
9113
- "description": "The [pagination info](https://fragment.dev/api-reference/api-types#connection-types-pageinfo) for this list",
9743
+ "name": "reversedLedgerEntry",
9744
+ "description": "The Ledger Entry that was migrated",
9114
9745
  "args": [],
9115
9746
  "type": {
9116
9747
  "kind": "NON_NULL",
9117
9748
  "name": null,
9118
9749
  "ofType": {
9119
9750
  "kind": "OBJECT",
9120
- "name": "PageInfo",
9751
+ "name": "LedgerEntry",
9752
+ "ofType": null
9753
+ }
9754
+ },
9755
+ "isDeprecated": false,
9756
+ "deprecationReason": null
9757
+ },
9758
+ {
9759
+ "name": "reversingLedgerEntry",
9760
+ "description": "The reversal Ledger Entry that was posted to reverse the Ledger Entry being migrated",
9761
+ "args": [],
9762
+ "type": {
9763
+ "kind": "NON_NULL",
9764
+ "name": null,
9765
+ "ofType": {
9766
+ "kind": "OBJECT",
9767
+ "name": "LedgerEntry",
9121
9768
  "ofType": null
9122
9769
  }
9123
9770
  },
@@ -9536,6 +10183,37 @@
9536
10183
  "isDeprecated": false,
9537
10184
  "deprecationReason": null
9538
10185
  },
10186
+ {
10187
+ "name": "migrateLedgerEntry",
10188
+ "description": "Migrate an existing Ledger Entry to a new type and typeVersion.\n\nMigrating a Ledger Entry will do the following:\n 1. Reverse the existing Ledger Entry\n 2. Post a new Ledger Entry with the new type, typeVersion, and parameters provided",
10189
+ "args": [
10190
+ {
10191
+ "name": "input",
10192
+ "description": null,
10193
+ "type": {
10194
+ "kind": "NON_NULL",
10195
+ "name": null,
10196
+ "ofType": {
10197
+ "kind": "INPUT_OBJECT",
10198
+ "name": "MigrateLedgerEntryInput",
10199
+ "ofType": null
10200
+ }
10201
+ },
10202
+ "defaultValue": null
10203
+ }
10204
+ ],
10205
+ "type": {
10206
+ "kind": "NON_NULL",
10207
+ "name": null,
10208
+ "ofType": {
10209
+ "kind": "UNION",
10210
+ "name": "MigrateLedgerEntryResponse",
10211
+ "ofType": null
10212
+ }
10213
+ },
10214
+ "isDeprecated": false,
10215
+ "deprecationReason": null
10216
+ },
9539
10217
  {
9540
10218
  "name": "reconcileTx",
9541
10219
  "description": "This mutation is used to [reconcile](https://fragment.dev/docs/reconcile-payments#reconcile-a-tx) transactions from an external system into a Ledger Entry. This mutation does not require an idempotency key since a transaction can only be reconciled once per Linked Ledger Account. If you are reconciling a transfer between two Link Accounts which are both linked to the same Ledger, use a transit account in between to split the transfer into two `reconcileTx` calls.",
@@ -10729,6 +11407,16 @@
10729
11407
  }
10730
11408
  },
10731
11409
  "defaultValue": null
11410
+ },
11411
+ {
11412
+ "name": "typeVersion",
11413
+ "description": "The version of the Ledger Entry type.",
11414
+ "type": {
11415
+ "kind": "SCALAR",
11416
+ "name": "Int",
11417
+ "ofType": null
11418
+ },
11419
+ "defaultValue": null
10732
11420
  }
10733
11421
  ],
10734
11422
  "interfaces": null,
@@ -11208,6 +11896,16 @@
11208
11896
  "ofType": null
11209
11897
  },
11210
11898
  "defaultValue": null
11899
+ },
11900
+ {
11901
+ "name": "linkType",
11902
+ "description": "The type of Link this external account belongs to. Must be one of: IncreaseLink, UnitLink, CustomLink, or StripeLink.",
11903
+ "type": {
11904
+ "kind": "ENUM",
11905
+ "name": "LinkType",
11906
+ "ofType": null
11907
+ },
11908
+ "defaultValue": null
11211
11909
  }
11212
11910
  ],
11213
11911
  "interfaces": null,
@@ -11687,6 +12385,16 @@
11687
12385
  },
11688
12386
  "defaultValue": null
11689
12387
  },
12388
+ {
12389
+ "name": "status",
12390
+ "description": "The status of this Ledger Entry. Defaults to active.",
12391
+ "type": {
12392
+ "kind": "ENUM",
12393
+ "name": "SchemaLedgerEntryStatus",
12394
+ "ofType": null
12395
+ },
12396
+ "defaultValue": null
12397
+ },
11690
12398
  {
11691
12399
  "name": "tags",
11692
12400
  "description": "Ledger Entries posted with this type will be associated with these tags.",
@@ -11720,7 +12428,7 @@
11720
12428
  "defaultValue": null
11721
12429
  },
11722
12430
  {
11723
- "name": "version",
12431
+ "name": "typeVersion",
11724
12432
  "description": "Experimental: This field is not yet supported.",
11725
12433
  "type": {
11726
12434
  "kind": "SCALAR",
@@ -11734,6 +12442,35 @@
11734
12442
  "enumValues": null,
11735
12443
  "possibleTypes": null
11736
12444
  },
12445
+ {
12446
+ "kind": "ENUM",
12447
+ "name": "SchemaLedgerEntryStatus",
12448
+ "description": "The status of a Ledger Entry.",
12449
+ "fields": null,
12450
+ "inputFields": null,
12451
+ "interfaces": null,
12452
+ "enumValues": [
12453
+ {
12454
+ "name": "active",
12455
+ "description": "The Ledger Entry is active.",
12456
+ "isDeprecated": false,
12457
+ "deprecationReason": null
12458
+ },
12459
+ {
12460
+ "name": "archived",
12461
+ "description": "The Ledger Entry is archived.",
12462
+ "isDeprecated": false,
12463
+ "deprecationReason": null
12464
+ },
12465
+ {
12466
+ "name": "disabled",
12467
+ "description": "The Ledger Entry is disabled.",
12468
+ "isDeprecated": false,
12469
+ "deprecationReason": null
12470
+ }
12471
+ ],
12472
+ "possibleTypes": null
12473
+ },
11737
12474
  {
11738
12475
  "kind": "INPUT_OBJECT",
11739
12476
  "name": "SchemaLedgerEntryTagInput",
@@ -12534,6 +13271,90 @@
12534
13271
  }
12535
13272
  },
12536
13273
  "defaultValue": null
13274
+ },
13275
+ {
13276
+ "name": "keyEqualTo",
13277
+ "description": "Matches tags where the key exactly equals the provided value.",
13278
+ "type": {
13279
+ "kind": "SCALAR",
13280
+ "name": "SafeString",
13281
+ "ofType": null
13282
+ },
13283
+ "defaultValue": null
13284
+ },
13285
+ {
13286
+ "name": "keyIn",
13287
+ "description": "Matches tags where the key matches any of the provided values. Limited to 100 items maximum.",
13288
+ "type": {
13289
+ "kind": "LIST",
13290
+ "name": null,
13291
+ "ofType": {
13292
+ "kind": "NON_NULL",
13293
+ "name": null,
13294
+ "ofType": {
13295
+ "kind": "SCALAR",
13296
+ "name": "SafeString",
13297
+ "ofType": null
13298
+ }
13299
+ }
13300
+ },
13301
+ "defaultValue": null
13302
+ },
13303
+ {
13304
+ "name": "notEqualTo",
13305
+ "description": "Matches tags that do not equal the provided value. The key and value are both matched exactly.",
13306
+ "type": {
13307
+ "kind": "INPUT_OBJECT",
13308
+ "name": "TagMatchInput",
13309
+ "ofType": null
13310
+ },
13311
+ "defaultValue": null
13312
+ },
13313
+ {
13314
+ "name": "notIn",
13315
+ "description": "Matches tags that do not match any of the provided values. The key and value are both matched exactly. Limited to 100 items maximum.",
13316
+ "type": {
13317
+ "kind": "LIST",
13318
+ "name": null,
13319
+ "ofType": {
13320
+ "kind": "NON_NULL",
13321
+ "name": null,
13322
+ "ofType": {
13323
+ "kind": "INPUT_OBJECT",
13324
+ "name": "TagMatchInput",
13325
+ "ofType": null
13326
+ }
13327
+ }
13328
+ },
13329
+ "defaultValue": null
13330
+ },
13331
+ {
13332
+ "name": "notKeyEqualTo",
13333
+ "description": "Matches tags where the key does not equal the provided value.",
13334
+ "type": {
13335
+ "kind": "SCALAR",
13336
+ "name": "SafeString",
13337
+ "ofType": null
13338
+ },
13339
+ "defaultValue": null
13340
+ },
13341
+ {
13342
+ "name": "notKeyIn",
13343
+ "description": "Matches tags where the key does not match any of the provided values. Limited to 100 items maximum.",
13344
+ "type": {
13345
+ "kind": "LIST",
13346
+ "name": null,
13347
+ "ofType": {
13348
+ "kind": "NON_NULL",
13349
+ "name": null,
13350
+ "ofType": {
13351
+ "kind": "SCALAR",
13352
+ "name": "SafeString",
13353
+ "ofType": null
13354
+ }
13355
+ }
13356
+ },
13357
+ "defaultValue": null
12537
13358
  }
12538
13359
  ],
12539
13360
  "interfaces": null,
@@ -13355,6 +14176,24 @@
13355
14176
  }
13356
14177
  },
13357
14178
  "defaultValue": null
14179
+ },
14180
+ {
14181
+ "name": "tagsToRemove",
14182
+ "description": "The list of Tags to remove from this Ledger Entry.",
14183
+ "type": {
14184
+ "kind": "LIST",
14185
+ "name": null,
14186
+ "ofType": {
14187
+ "kind": "NON_NULL",
14188
+ "name": null,
14189
+ "ofType": {
14190
+ "kind": "INPUT_OBJECT",
14191
+ "name": "LedgerEntryTagInput",
14192
+ "ofType": null
14193
+ }
14194
+ }
14195
+ },
14196
+ "defaultValue": null
13358
14197
  }
13359
14198
  ],
13360
14199
  "interfaces": null,