fragment-dev 1.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dcc2f032aa067bfa1e9fc9c3e9f5f893fa75edb241d047b30eefb370638f283
4
- data.tar.gz: f0dc16fe8ca3e9dad651a8c9b4800c8e555431f36f6bf8520190f02bffe0fc0c
3
+ metadata.gz: fbba0482b94930ed51495d860733c8b8a7e5a87cd73d5a357e9fe342f95e5f0b
4
+ data.tar.gz: 7f348b93302238b0eacda21399457e4ccf66650cb080c72ecd92d1519c41f8f8
5
5
  SHA512:
6
- metadata.gz: 47c0b05132e3fd1b6ab8d3b28045289af7bde8b0aa82a1ecae276fe8697384b113a2df86dc2c70cb725f3fdf7def5c91d9cd06bad93b0d0a06977dd41cbc1fd0
7
- data.tar.gz: d155344317b75125b95eeb1b12ea756319110933e39c59490865735b0797f86377a32ada0cef554f9a8efbcdf4ac1b9d2d695038f8945b9b85fa32651534af5e
6
+ metadata.gz: 8f52a96480bf0e4cbfb861e9fd9ddf75b6902826c731256a6470175f8d4746c3be3626f8a8c9f4255cf9a204c755837b71fcb75d2c8d7f7a5d94a74d0855b388
7
+ data.tar.gz: 8ca10f87a3f217e13e3a6af75a9f8faddffbae3218dd4848ad5e841f379134ca4a623b67d9a55075b42c9556cad4f77aa13e3a4eff66a047ba0b974db23b0e61
@@ -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,
@@ -6541,6 +6721,16 @@
6541
6721
  "ofType": null
6542
6722
  },
6543
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
6544
6734
  }
6545
6735
  ],
6546
6736
  "interfaces": null,
@@ -6922,7 +7112,7 @@
6922
7112
  },
6923
7113
  {
6924
7114
  "name": "typeVersion",
6925
- "description": "Experimental: The version of the Ledger Entry type used when it was posted.",
7115
+ "description": "The version of the Ledger Entry type used when it was posted.",
6926
7116
  "args": [],
6927
7117
  "type": {
6928
7118
  "kind": "SCALAR",
@@ -7473,6 +7663,51 @@
7473
7663
  "enumValues": null,
7474
7664
  "possibleTypes": null
7475
7665
  },
7666
+ {
7667
+ "kind": "INPUT_OBJECT",
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.",
7670
+ "fields": null,
7671
+ "inputFields": [
7672
+ {
7673
+ "name": "account",
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.",
7675
+ "type": {
7676
+ "kind": "NON_NULL",
7677
+ "name": null,
7678
+ "ofType": {
7679
+ "kind": "INPUT_OBJECT",
7680
+ "name": "GroupBalanceAccountFilter",
7681
+ "ofType": null
7682
+ }
7683
+ },
7684
+ "defaultValue": null
7685
+ },
7686
+ {
7687
+ "name": "currency",
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.",
7689
+ "type": {
7690
+ "kind": "INPUT_OBJECT",
7691
+ "name": "CurrencyFilter",
7692
+ "ofType": null
7693
+ },
7694
+ "defaultValue": null
7695
+ },
7696
+ {
7697
+ "name": "ownBalance",
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. ",
7699
+ "type": {
7700
+ "kind": "INPUT_OBJECT",
7701
+ "name": "Int96Filter",
7702
+ "ofType": null
7703
+ },
7704
+ "defaultValue": null
7705
+ }
7706
+ ],
7707
+ "interfaces": null,
7708
+ "enumValues": null,
7709
+ "possibleTypes": null
7710
+ },
7476
7711
  {
7477
7712
  "kind": "INPUT_OBJECT",
7478
7713
  "name": "LedgerEntryGroupBalanceFilterSet",
@@ -7663,6 +7898,16 @@
7663
7898
  "description": null,
7664
7899
  "fields": null,
7665
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
+ },
7666
7911
  {
7667
7912
  "name": "created",
7668
7913
  "description": "Use to filter Ledger Entry Groups by their created timestamp",
@@ -7884,19 +8129,19 @@
7884
8129
  },
7885
8130
  {
7886
8131
  "kind": "OBJECT",
7887
- "name": "LedgerEntryTag",
7888
- "description": "A tag attached to a Ledger Entry.",
8132
+ "name": "LedgerEntryStats",
8133
+ "description": "Posting count statistics for a specific type and typeVersion of entry in a Ledger.",
7889
8134
  "fields": [
7890
8135
  {
7891
- "name": "key",
7892
- "description": "The key of this tag.",
8136
+ "name": "count",
8137
+ "description": "The total number of entries of this type.",
7893
8138
  "args": [],
7894
8139
  "type": {
7895
8140
  "kind": "NON_NULL",
7896
8141
  "name": null,
7897
8142
  "ofType": {
7898
8143
  "kind": "SCALAR",
7899
- "name": "SafeString",
8144
+ "name": "Int96",
7900
8145
  "ofType": null
7901
8146
  }
7902
8147
  },
@@ -7904,8 +8149,8 @@
7904
8149
  "deprecationReason": null
7905
8150
  },
7906
8151
  {
7907
- "name": "value",
7908
- "description": "The value associated with this tag's key.",
8152
+ "name": "ledgerId",
8153
+ "description": "The ledger ID these stats are for.",
7909
8154
  "args": [],
7910
8155
  "type": {
7911
8156
  "kind": "NON_NULL",
@@ -7918,49 +8163,223 @@
7918
8163
  },
7919
8164
  "isDeprecated": false,
7920
8165
  "deprecationReason": null
7921
- }
7922
- ],
7923
- "inputFields": null,
7924
- "interfaces": [],
7925
- "enumValues": null,
7926
- "possibleTypes": null
7927
- },
7928
- {
7929
- "kind": "INPUT_OBJECT",
7930
- "name": "LedgerEntryTagInput",
7931
- "description": null,
7932
- "fields": null,
7933
- "inputFields": [
8166
+ },
7934
8167
  {
7935
- "name": "key",
7936
- "description": "The key of this tag. Can be up to 128 characters long.",
8168
+ "name": "netCount",
8169
+ "description": "The net number of entries (count - reversalsCount).",
8170
+ "args": [],
7937
8171
  "type": {
7938
8172
  "kind": "NON_NULL",
7939
8173
  "name": null,
7940
8174
  "ofType": {
7941
8175
  "kind": "SCALAR",
7942
- "name": "SafeString",
8176
+ "name": "Int96",
7943
8177
  "ofType": null
7944
8178
  }
7945
8179
  },
7946
- "defaultValue": null
8180
+ "isDeprecated": false,
8181
+ "deprecationReason": null
7947
8182
  },
7948
8183
  {
7949
- "name": "value",
7950
- "description": "The value associated with this tag's key. Can be up to 128 characters long.",
8184
+ "name": "reversalsCount",
8185
+ "description": "The number of entries that are reversals.",
8186
+ "args": [],
7951
8187
  "type": {
7952
8188
  "kind": "NON_NULL",
7953
8189
  "name": null,
7954
8190
  "ofType": {
7955
8191
  "kind": "SCALAR",
7956
- "name": "SafeString",
8192
+ "name": "Int96",
7957
8193
  "ofType": null
7958
8194
  }
7959
8195
  },
7960
- "defaultValue": null
7961
- }
7962
- ],
7963
- "interfaces": null,
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
+ },
8304
+ {
8305
+ "kind": "OBJECT",
8306
+ "name": "LedgerEntryTag",
8307
+ "description": "A tag attached to a Ledger Entry.",
8308
+ "fields": [
8309
+ {
8310
+ "name": "key",
8311
+ "description": "The key of this tag.",
8312
+ "args": [],
8313
+ "type": {
8314
+ "kind": "NON_NULL",
8315
+ "name": null,
8316
+ "ofType": {
8317
+ "kind": "SCALAR",
8318
+ "name": "SafeString",
8319
+ "ofType": null
8320
+ }
8321
+ },
8322
+ "isDeprecated": false,
8323
+ "deprecationReason": null
8324
+ },
8325
+ {
8326
+ "name": "value",
8327
+ "description": "The value associated with this tag's key.",
8328
+ "args": [],
8329
+ "type": {
8330
+ "kind": "NON_NULL",
8331
+ "name": null,
8332
+ "ofType": {
8333
+ "kind": "SCALAR",
8334
+ "name": "SafeString",
8335
+ "ofType": null
8336
+ }
8337
+ },
8338
+ "isDeprecated": false,
8339
+ "deprecationReason": null
8340
+ }
8341
+ ],
8342
+ "inputFields": null,
8343
+ "interfaces": [],
8344
+ "enumValues": null,
8345
+ "possibleTypes": null
8346
+ },
8347
+ {
8348
+ "kind": "INPUT_OBJECT",
8349
+ "name": "LedgerEntryTagInput",
8350
+ "description": null,
8351
+ "fields": null,
8352
+ "inputFields": [
8353
+ {
8354
+ "name": "key",
8355
+ "description": "The key of this tag. Can be up to 128 characters long.",
8356
+ "type": {
8357
+ "kind": "NON_NULL",
8358
+ "name": null,
8359
+ "ofType": {
8360
+ "kind": "SCALAR",
8361
+ "name": "SafeString",
8362
+ "ofType": null
8363
+ }
8364
+ },
8365
+ "defaultValue": null
8366
+ },
8367
+ {
8368
+ "name": "value",
8369
+ "description": "The value associated with this tag's key. Can be up to 128 characters long.",
8370
+ "type": {
8371
+ "kind": "NON_NULL",
8372
+ "name": null,
8373
+ "ofType": {
8374
+ "kind": "SCALAR",
8375
+ "name": "SafeString",
8376
+ "ofType": null
8377
+ }
8378
+ },
8379
+ "defaultValue": null
8380
+ }
8381
+ ],
8382
+ "interfaces": null,
7964
8383
  "enumValues": null,
7965
8384
  "possibleTypes": null
7966
8385
  },
@@ -9132,6 +9551,41 @@
9132
9551
  "enumValues": null,
9133
9552
  "possibleTypes": null
9134
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
+ },
9135
9589
  {
9136
9590
  "kind": "OBJECT",
9137
9591
  "name": "LinksConnection",
@@ -9183,6 +9637,146 @@
9183
9637
  "enumValues": null,
9184
9638
  "possibleTypes": null
9185
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",
9663
+ "type": {
9664
+ "kind": "NON_NULL",
9665
+ "name": null,
9666
+ "ofType": {
9667
+ "kind": "INPUT_OBJECT",
9668
+ "name": "LedgerEntryInput",
9669
+ "ofType": null
9670
+ }
9671
+ },
9672
+ "defaultValue": null
9673
+ }
9674
+ ],
9675
+ "interfaces": null,
9676
+ "enumValues": null,
9677
+ "possibleTypes": null
9678
+ },
9679
+ {
9680
+ "kind": "UNION",
9681
+ "name": "MigrateLedgerEntryResponse",
9682
+ "description": null,
9683
+ "fields": null,
9684
+ "inputFields": null,
9685
+ "interfaces": null,
9686
+ "enumValues": null,
9687
+ "possibleTypes": [
9688
+ {
9689
+ "kind": "OBJECT",
9690
+ "name": "BadRequestError",
9691
+ "ofType": null
9692
+ },
9693
+ {
9694
+ "kind": "OBJECT",
9695
+ "name": "InternalError",
9696
+ "ofType": null
9697
+ },
9698
+ {
9699
+ "kind": "OBJECT",
9700
+ "name": "MigrateLedgerEntryResult",
9701
+ "ofType": null
9702
+ }
9703
+ ]
9704
+ },
9705
+ {
9706
+ "kind": "OBJECT",
9707
+ "name": "MigrateLedgerEntryResult",
9708
+ "description": null,
9709
+ "fields": [
9710
+ {
9711
+ "name": "isIkReplay",
9712
+ "description": "Whether this migration was an IK replay or not",
9713
+ "args": [],
9714
+ "type": {
9715
+ "kind": "NON_NULL",
9716
+ "name": null,
9717
+ "ofType": {
9718
+ "kind": "SCALAR",
9719
+ "name": "Boolean",
9720
+ "ofType": null
9721
+ }
9722
+ },
9723
+ "isDeprecated": false,
9724
+ "deprecationReason": null
9725
+ },
9726
+ {
9727
+ "name": "newLedgerEntry",
9728
+ "description": "The new Ledger Entry posted as a result of the migration",
9729
+ "args": [],
9730
+ "type": {
9731
+ "kind": "NON_NULL",
9732
+ "name": null,
9733
+ "ofType": {
9734
+ "kind": "OBJECT",
9735
+ "name": "LedgerEntry",
9736
+ "ofType": null
9737
+ }
9738
+ },
9739
+ "isDeprecated": false,
9740
+ "deprecationReason": null
9741
+ },
9742
+ {
9743
+ "name": "reversedLedgerEntry",
9744
+ "description": "The Ledger Entry that was migrated",
9745
+ "args": [],
9746
+ "type": {
9747
+ "kind": "NON_NULL",
9748
+ "name": null,
9749
+ "ofType": {
9750
+ "kind": "OBJECT",
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",
9768
+ "ofType": null
9769
+ }
9770
+ },
9771
+ "isDeprecated": false,
9772
+ "deprecationReason": null
9773
+ }
9774
+ ],
9775
+ "inputFields": null,
9776
+ "interfaces": [],
9777
+ "enumValues": null,
9778
+ "possibleTypes": null
9779
+ },
9186
9780
  {
9187
9781
  "kind": "OBJECT",
9188
9782
  "name": "Mutation",
@@ -9589,6 +10183,37 @@
9589
10183
  "isDeprecated": false,
9590
10184
  "deprecationReason": null
9591
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
+ },
9592
10217
  {
9593
10218
  "name": "reconcileTx",
9594
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.",
@@ -10782,6 +11407,16 @@
10782
11407
  }
10783
11408
  },
10784
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
10785
11420
  }
10786
11421
  ],
10787
11422
  "interfaces": null,
@@ -11261,6 +11896,16 @@
11261
11896
  "ofType": null
11262
11897
  },
11263
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
11264
11909
  }
11265
11910
  ],
11266
11911
  "interfaces": null,
@@ -11740,6 +12385,16 @@
11740
12385
  },
11741
12386
  "defaultValue": null
11742
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
+ },
11743
12398
  {
11744
12399
  "name": "tags",
11745
12400
  "description": "Ledger Entries posted with this type will be associated with these tags.",
@@ -11787,6 +12442,35 @@
11787
12442
  "enumValues": null,
11788
12443
  "possibleTypes": null
11789
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
+ },
11790
12474
  {
11791
12475
  "kind": "INPUT_OBJECT",
11792
12476
  "name": "SchemaLedgerEntryTagInput",
@@ -12587,6 +13271,90 @@
12587
13271
  }
12588
13272
  },
12589
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
12590
13358
  }
12591
13359
  ],
12592
13360
  "interfaces": null,
@@ -13408,6 +14176,24 @@
13408
14176
  }
13409
14177
  },
13410
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
13411
14197
  }
13412
14198
  ],
13413
14199
  "interfaces": null,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FragmentSDK
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
data/lib/queries.graphql CHANGED
@@ -151,7 +151,6 @@ mutation AddLedgerEntry(
151
151
  }
152
152
  }
153
153
 
154
-
155
154
  mutation ReverseLedgerEntry(
156
155
  $id: ID!
157
156
  ) {
@@ -208,6 +207,87 @@ mutation ReverseLedgerEntry(
208
207
  }
209
208
  }
210
209
 
210
+ mutation MigrateLedgerEntry(
211
+ $id: ID!
212
+ $newLedgerEntry: LedgerEntryInput!
213
+ ) {
214
+ migrateLedgerEntry(input: {
215
+ id: $id
216
+ newLedgerEntry: $newLedgerEntry
217
+ }) {
218
+ ... on MigrateLedgerEntryResult {
219
+ reversingLedgerEntry {
220
+ ik
221
+ id
222
+ created
223
+ posted
224
+ type
225
+ description
226
+ reversedAt
227
+ hidden
228
+ lines {
229
+ nodes {
230
+ id
231
+ amount
232
+ account {
233
+ path
234
+ }
235
+ }
236
+ }
237
+ }
238
+ reversedLedgerEntry {
239
+ ik
240
+ id
241
+ created
242
+ posted
243
+ type
244
+ description
245
+ reversedAt
246
+ hidden
247
+ lines {
248
+ nodes {
249
+ id
250
+ amount
251
+ account {
252
+ path
253
+ }
254
+ }
255
+ }
256
+ }
257
+ newLedgerEntry {
258
+ ik
259
+ id
260
+ created
261
+ posted
262
+ type
263
+ description
264
+ reversedAt
265
+ hidden
266
+ lines {
267
+ nodes {
268
+ id
269
+ amount
270
+ account {
271
+ path
272
+ }
273
+ }
274
+ }
275
+ }
276
+ isIkReplay
277
+ }
278
+ ... on BadRequestError {
279
+ code
280
+ message
281
+ retryable
282
+ }
283
+ ... on InternalError {
284
+ code
285
+ message
286
+ retryable
287
+ }
288
+ }
289
+ }
290
+
211
291
  mutation AddLedgerEntryRuntime(
212
292
  $ik: SafeString!
213
293
  $type: String!
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fragment-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - fragment
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2025-04-07 00:00:00.000000000 Z
11
+ date: 2025-07-02 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: graphql
@@ -57,6 +58,7 @@ dependencies:
57
58
  - - "~>"
58
59
  - !ruby/object:Gem::Version
59
60
  version: '0.5'
61
+ description:
60
62
  email: snoble@fragment.dev
61
63
  executables: []
62
64
  extensions: []
@@ -71,6 +73,7 @@ homepage: https://fragment.dev
71
73
  licenses:
72
74
  - Apache-2.0
73
75
  metadata: {}
76
+ post_install_message:
74
77
  rdoc_options: []
75
78
  require_paths:
76
79
  - lib
@@ -85,7 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
88
  - !ruby/object:Gem::Version
86
89
  version: '0'
87
90
  requirements: []
88
- rubygems_version: 3.6.3
91
+ rubygems_version: 3.5.22
92
+ signing_key:
89
93
  specification_version: 4
90
94
  summary: the ruby fragment client sdk
91
95
  test_files: []