@lightsparkdev/lightspark-sdk 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-VTPDR6P4.js → chunk-GLL4KTUT.js} +353 -15
- package/dist/{index-5acc6526.d.ts → index-eb604025.d.ts} +662 -3
- package/dist/index.cjs +654 -76
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +265 -17
- package/dist/objects/index.cjs +345 -5
- package/dist/objects/index.d.cts +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +9 -1
- package/package.json +1 -1
- package/src/client.ts +194 -1
- package/src/graphql/ClaimUmaInvitation.ts +21 -0
- package/src/graphql/ClaimUmaInvitationWithIncentives.ts +25 -0
- package/src/graphql/CreateUmaInvitation.ts +19 -0
- package/src/graphql/CreateUmaInvitationWithIncentives.ts +23 -0
- package/src/graphql/FetchUmaInvitation.ts +15 -0
- package/src/objects/ClaimUmaInvitationInput.ts +26 -0
- package/src/objects/ClaimUmaInvitationOutput.ts +30 -0
- package/src/objects/ClaimUmaInvitationWithIncentivesInput.ts +44 -0
- package/src/objects/ClaimUmaInvitationWithIncentivesOutput.ts +33 -0
- package/src/objects/CreateInvitationWithIncentivesInput.ts +37 -0
- package/src/objects/CreateInvitationWithIncentivesOutput.ts +32 -0
- package/src/objects/CreateUmaInvitationInput.ts +22 -0
- package/src/objects/CreateUmaInvitationOutput.ts +30 -0
- package/src/objects/Entity.ts +13 -0
- package/src/objects/IncentivesIneligibilityReason.ts +24 -0
- package/src/objects/IncentivesStatus.ts +18 -0
- package/src/objects/OutgoingPayment.ts +1 -0
- package/src/objects/OutgoingPaymentAttempt.ts +6 -1
- package/src/objects/RegionCode.ts +510 -0
- package/src/objects/UmaInvitation.ts +113 -0
- package/src/objects/WebhookEventType.ts +4 -0
- package/src/objects/index.ts +15 -0
- package/src/tests/integration/constants.ts +0 -3
- package/src/tests/integration/general-regtest.test.ts +177 -196
package/CHANGELOG.md
CHANGED
|
@@ -3389,11 +3389,12 @@ var OutgoingPaymentAttemptToHopsConnectionFromJson = (obj) => {
|
|
|
3389
3389
|
|
|
3390
3390
|
// src/objects/OutgoingPaymentAttempt.ts
|
|
3391
3391
|
var OutgoingPaymentAttempt = class {
|
|
3392
|
-
constructor(id, createdAt, updatedAt, status, outgoingPaymentId, typename, failureCode, failureSourceIndex, resolvedAt, amount, fees, channelSnapshot) {
|
|
3392
|
+
constructor(id, createdAt, updatedAt, status, attemptedAt, outgoingPaymentId, typename, failureCode, failureSourceIndex, resolvedAt, amount, fees, channelSnapshot) {
|
|
3393
3393
|
this.id = id;
|
|
3394
3394
|
this.createdAt = createdAt;
|
|
3395
3395
|
this.updatedAt = updatedAt;
|
|
3396
3396
|
this.status = status;
|
|
3397
|
+
this.attemptedAt = attemptedAt;
|
|
3397
3398
|
this.outgoingPaymentId = outgoingPaymentId;
|
|
3398
3399
|
this.typename = typename;
|
|
3399
3400
|
this.failureCode = failureCode;
|
|
@@ -3486,6 +3487,7 @@ ${FRAGMENT14}
|
|
|
3486
3487
|
outgoing_payment_attempt_status: this.status,
|
|
3487
3488
|
outgoing_payment_attempt_failure_code: this.failureCode,
|
|
3488
3489
|
outgoing_payment_attempt_failure_source_index: this.failureSourceIndex,
|
|
3490
|
+
outgoing_payment_attempt_attempted_at: this.attemptedAt,
|
|
3489
3491
|
outgoing_payment_attempt_resolved_at: this.resolvedAt,
|
|
3490
3492
|
outgoing_payment_attempt_amount: this.amount ? CurrencyAmountToJson(this.amount) : void 0,
|
|
3491
3493
|
outgoing_payment_attempt_fees: this.fees ? CurrencyAmountToJson(this.fees) : void 0,
|
|
@@ -3500,6 +3502,7 @@ var OutgoingPaymentAttemptFromJson = (obj) => {
|
|
|
3500
3502
|
obj["outgoing_payment_attempt_created_at"],
|
|
3501
3503
|
obj["outgoing_payment_attempt_updated_at"],
|
|
3502
3504
|
OutgoingPaymentAttemptStatus_default[obj["outgoing_payment_attempt_status"]] ?? OutgoingPaymentAttemptStatus_default.FUTURE_VALUE,
|
|
3505
|
+
obj["outgoing_payment_attempt_attempted_at"],
|
|
3503
3506
|
obj["outgoing_payment_attempt_outgoing_payment"].id,
|
|
3504
3507
|
"OutgoingPaymentAttempt",
|
|
3505
3508
|
!!obj["outgoing_payment_attempt_failure_code"] ? HtlcAttemptFailureCode_default[obj["outgoing_payment_attempt_failure_code"]] ?? HtlcAttemptFailureCode_default.FUTURE_VALUE : null,
|
|
@@ -3521,6 +3524,7 @@ fragment OutgoingPaymentAttemptFragment on OutgoingPaymentAttempt {
|
|
|
3521
3524
|
outgoing_payment_attempt_status: status
|
|
3522
3525
|
outgoing_payment_attempt_failure_code: failure_code
|
|
3523
3526
|
outgoing_payment_attempt_failure_source_index: failure_source_index
|
|
3527
|
+
outgoing_payment_attempt_attempted_at: attempted_at
|
|
3524
3528
|
outgoing_payment_attempt_resolved_at: resolved_at
|
|
3525
3529
|
outgoing_payment_attempt_amount: amount {
|
|
3526
3530
|
__typename
|
|
@@ -3721,6 +3725,7 @@ query FetchOutgoingPaymentToAttemptsConnection($entity_id: ID!, $first: Int, $af
|
|
|
3721
3725
|
outgoing_payment_attempt_status: status
|
|
3722
3726
|
outgoing_payment_attempt_failure_code: failure_code
|
|
3723
3727
|
outgoing_payment_attempt_failure_source_index: failure_source_index
|
|
3728
|
+
outgoing_payment_attempt_attempted_at: attempted_at
|
|
3724
3729
|
outgoing_payment_attempt_resolved_at: resolved_at
|
|
3725
3730
|
outgoing_payment_attempt_amount: amount {
|
|
3726
3731
|
__typename
|
|
@@ -7908,6 +7913,262 @@ ${FRAGMENT20}
|
|
|
7908
7913
|
};
|
|
7909
7914
|
};
|
|
7910
7915
|
|
|
7916
|
+
// src/objects/RegionCode.ts
|
|
7917
|
+
var RegionCode = /* @__PURE__ */ ((RegionCode2) => {
|
|
7918
|
+
RegionCode2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
7919
|
+
RegionCode2["AF"] = "AF";
|
|
7920
|
+
RegionCode2["AX"] = "AX";
|
|
7921
|
+
RegionCode2["AL"] = "AL";
|
|
7922
|
+
RegionCode2["DZ"] = "DZ";
|
|
7923
|
+
RegionCode2["AS"] = "AS";
|
|
7924
|
+
RegionCode2["AD"] = "AD";
|
|
7925
|
+
RegionCode2["AO"] = "AO";
|
|
7926
|
+
RegionCode2["AI"] = "AI";
|
|
7927
|
+
RegionCode2["AQ"] = "AQ";
|
|
7928
|
+
RegionCode2["AG"] = "AG";
|
|
7929
|
+
RegionCode2["AR"] = "AR";
|
|
7930
|
+
RegionCode2["AM"] = "AM";
|
|
7931
|
+
RegionCode2["AW"] = "AW";
|
|
7932
|
+
RegionCode2["AU"] = "AU";
|
|
7933
|
+
RegionCode2["AT"] = "AT";
|
|
7934
|
+
RegionCode2["AZ"] = "AZ";
|
|
7935
|
+
RegionCode2["BS"] = "BS";
|
|
7936
|
+
RegionCode2["BH"] = "BH";
|
|
7937
|
+
RegionCode2["BD"] = "BD";
|
|
7938
|
+
RegionCode2["BB"] = "BB";
|
|
7939
|
+
RegionCode2["BY"] = "BY";
|
|
7940
|
+
RegionCode2["BE"] = "BE";
|
|
7941
|
+
RegionCode2["BZ"] = "BZ";
|
|
7942
|
+
RegionCode2["BJ"] = "BJ";
|
|
7943
|
+
RegionCode2["BM"] = "BM";
|
|
7944
|
+
RegionCode2["BT"] = "BT";
|
|
7945
|
+
RegionCode2["BO"] = "BO";
|
|
7946
|
+
RegionCode2["BQ"] = "BQ";
|
|
7947
|
+
RegionCode2["BA"] = "BA";
|
|
7948
|
+
RegionCode2["BW"] = "BW";
|
|
7949
|
+
RegionCode2["BV"] = "BV";
|
|
7950
|
+
RegionCode2["BR"] = "BR";
|
|
7951
|
+
RegionCode2["IO"] = "IO";
|
|
7952
|
+
RegionCode2["BN"] = "BN";
|
|
7953
|
+
RegionCode2["BG"] = "BG";
|
|
7954
|
+
RegionCode2["BF"] = "BF";
|
|
7955
|
+
RegionCode2["BI"] = "BI";
|
|
7956
|
+
RegionCode2["KH"] = "KH";
|
|
7957
|
+
RegionCode2["CM"] = "CM";
|
|
7958
|
+
RegionCode2["CA"] = "CA";
|
|
7959
|
+
RegionCode2["CV"] = "CV";
|
|
7960
|
+
RegionCode2["KY"] = "KY";
|
|
7961
|
+
RegionCode2["CF"] = "CF";
|
|
7962
|
+
RegionCode2["TD"] = "TD";
|
|
7963
|
+
RegionCode2["CL"] = "CL";
|
|
7964
|
+
RegionCode2["CN"] = "CN";
|
|
7965
|
+
RegionCode2["CX"] = "CX";
|
|
7966
|
+
RegionCode2["CC"] = "CC";
|
|
7967
|
+
RegionCode2["CO"] = "CO";
|
|
7968
|
+
RegionCode2["KM"] = "KM";
|
|
7969
|
+
RegionCode2["CG"] = "CG";
|
|
7970
|
+
RegionCode2["CD"] = "CD";
|
|
7971
|
+
RegionCode2["CK"] = "CK";
|
|
7972
|
+
RegionCode2["CR"] = "CR";
|
|
7973
|
+
RegionCode2["CI"] = "CI";
|
|
7974
|
+
RegionCode2["HR"] = "HR";
|
|
7975
|
+
RegionCode2["CU"] = "CU";
|
|
7976
|
+
RegionCode2["CW"] = "CW";
|
|
7977
|
+
RegionCode2["CY"] = "CY";
|
|
7978
|
+
RegionCode2["CZ"] = "CZ";
|
|
7979
|
+
RegionCode2["DK"] = "DK";
|
|
7980
|
+
RegionCode2["DJ"] = "DJ";
|
|
7981
|
+
RegionCode2["DM"] = "DM";
|
|
7982
|
+
RegionCode2["DO"] = "DO";
|
|
7983
|
+
RegionCode2["EC"] = "EC";
|
|
7984
|
+
RegionCode2["EG"] = "EG";
|
|
7985
|
+
RegionCode2["SV"] = "SV";
|
|
7986
|
+
RegionCode2["GQ"] = "GQ";
|
|
7987
|
+
RegionCode2["ER"] = "ER";
|
|
7988
|
+
RegionCode2["EE"] = "EE";
|
|
7989
|
+
RegionCode2["ET"] = "ET";
|
|
7990
|
+
RegionCode2["FK"] = "FK";
|
|
7991
|
+
RegionCode2["FO"] = "FO";
|
|
7992
|
+
RegionCode2["FJ"] = "FJ";
|
|
7993
|
+
RegionCode2["FI"] = "FI";
|
|
7994
|
+
RegionCode2["FR"] = "FR";
|
|
7995
|
+
RegionCode2["GF"] = "GF";
|
|
7996
|
+
RegionCode2["PF"] = "PF";
|
|
7997
|
+
RegionCode2["TF"] = "TF";
|
|
7998
|
+
RegionCode2["GA"] = "GA";
|
|
7999
|
+
RegionCode2["GM"] = "GM";
|
|
8000
|
+
RegionCode2["GE"] = "GE";
|
|
8001
|
+
RegionCode2["DE"] = "DE";
|
|
8002
|
+
RegionCode2["GH"] = "GH";
|
|
8003
|
+
RegionCode2["GI"] = "GI";
|
|
8004
|
+
RegionCode2["GR"] = "GR";
|
|
8005
|
+
RegionCode2["GL"] = "GL";
|
|
8006
|
+
RegionCode2["GD"] = "GD";
|
|
8007
|
+
RegionCode2["GP"] = "GP";
|
|
8008
|
+
RegionCode2["GU"] = "GU";
|
|
8009
|
+
RegionCode2["GT"] = "GT";
|
|
8010
|
+
RegionCode2["GG"] = "GG";
|
|
8011
|
+
RegionCode2["GN"] = "GN";
|
|
8012
|
+
RegionCode2["GW"] = "GW";
|
|
8013
|
+
RegionCode2["GY"] = "GY";
|
|
8014
|
+
RegionCode2["HT"] = "HT";
|
|
8015
|
+
RegionCode2["HM"] = "HM";
|
|
8016
|
+
RegionCode2["VA"] = "VA";
|
|
8017
|
+
RegionCode2["HN"] = "HN";
|
|
8018
|
+
RegionCode2["HK"] = "HK";
|
|
8019
|
+
RegionCode2["HU"] = "HU";
|
|
8020
|
+
RegionCode2["IS"] = "IS";
|
|
8021
|
+
RegionCode2["IN"] = "IN";
|
|
8022
|
+
RegionCode2["ID"] = "ID";
|
|
8023
|
+
RegionCode2["IR"] = "IR";
|
|
8024
|
+
RegionCode2["IQ"] = "IQ";
|
|
8025
|
+
RegionCode2["IE"] = "IE";
|
|
8026
|
+
RegionCode2["IM"] = "IM";
|
|
8027
|
+
RegionCode2["IL"] = "IL";
|
|
8028
|
+
RegionCode2["IT"] = "IT";
|
|
8029
|
+
RegionCode2["JM"] = "JM";
|
|
8030
|
+
RegionCode2["JP"] = "JP";
|
|
8031
|
+
RegionCode2["JE"] = "JE";
|
|
8032
|
+
RegionCode2["JO"] = "JO";
|
|
8033
|
+
RegionCode2["KZ"] = "KZ";
|
|
8034
|
+
RegionCode2["KE"] = "KE";
|
|
8035
|
+
RegionCode2["KI"] = "KI";
|
|
8036
|
+
RegionCode2["KP"] = "KP";
|
|
8037
|
+
RegionCode2["KR"] = "KR";
|
|
8038
|
+
RegionCode2["KW"] = "KW";
|
|
8039
|
+
RegionCode2["KG"] = "KG";
|
|
8040
|
+
RegionCode2["LA"] = "LA";
|
|
8041
|
+
RegionCode2["LV"] = "LV";
|
|
8042
|
+
RegionCode2["LB"] = "LB";
|
|
8043
|
+
RegionCode2["LS"] = "LS";
|
|
8044
|
+
RegionCode2["LR"] = "LR";
|
|
8045
|
+
RegionCode2["LY"] = "LY";
|
|
8046
|
+
RegionCode2["LI"] = "LI";
|
|
8047
|
+
RegionCode2["LT"] = "LT";
|
|
8048
|
+
RegionCode2["LU"] = "LU";
|
|
8049
|
+
RegionCode2["MO"] = "MO";
|
|
8050
|
+
RegionCode2["MK"] = "MK";
|
|
8051
|
+
RegionCode2["MG"] = "MG";
|
|
8052
|
+
RegionCode2["MW"] = "MW";
|
|
8053
|
+
RegionCode2["MY"] = "MY";
|
|
8054
|
+
RegionCode2["MV"] = "MV";
|
|
8055
|
+
RegionCode2["ML"] = "ML";
|
|
8056
|
+
RegionCode2["MT"] = "MT";
|
|
8057
|
+
RegionCode2["MH"] = "MH";
|
|
8058
|
+
RegionCode2["MQ"] = "MQ";
|
|
8059
|
+
RegionCode2["MR"] = "MR";
|
|
8060
|
+
RegionCode2["MU"] = "MU";
|
|
8061
|
+
RegionCode2["YT"] = "YT";
|
|
8062
|
+
RegionCode2["MX"] = "MX";
|
|
8063
|
+
RegionCode2["FM"] = "FM";
|
|
8064
|
+
RegionCode2["MD"] = "MD";
|
|
8065
|
+
RegionCode2["MC"] = "MC";
|
|
8066
|
+
RegionCode2["MN"] = "MN";
|
|
8067
|
+
RegionCode2["ME"] = "ME";
|
|
8068
|
+
RegionCode2["MS"] = "MS";
|
|
8069
|
+
RegionCode2["MA"] = "MA";
|
|
8070
|
+
RegionCode2["MZ"] = "MZ";
|
|
8071
|
+
RegionCode2["MM"] = "MM";
|
|
8072
|
+
RegionCode2["NA"] = "NA";
|
|
8073
|
+
RegionCode2["NR"] = "NR";
|
|
8074
|
+
RegionCode2["NP"] = "NP";
|
|
8075
|
+
RegionCode2["NL"] = "NL";
|
|
8076
|
+
RegionCode2["NC"] = "NC";
|
|
8077
|
+
RegionCode2["NZ"] = "NZ";
|
|
8078
|
+
RegionCode2["NI"] = "NI";
|
|
8079
|
+
RegionCode2["NE"] = "NE";
|
|
8080
|
+
RegionCode2["NG"] = "NG";
|
|
8081
|
+
RegionCode2["NU"] = "NU";
|
|
8082
|
+
RegionCode2["NF"] = "NF";
|
|
8083
|
+
RegionCode2["MP"] = "MP";
|
|
8084
|
+
RegionCode2["NO"] = "NO";
|
|
8085
|
+
RegionCode2["OM"] = "OM";
|
|
8086
|
+
RegionCode2["PK"] = "PK";
|
|
8087
|
+
RegionCode2["PW"] = "PW";
|
|
8088
|
+
RegionCode2["PS"] = "PS";
|
|
8089
|
+
RegionCode2["PA"] = "PA";
|
|
8090
|
+
RegionCode2["PG"] = "PG";
|
|
8091
|
+
RegionCode2["PY"] = "PY";
|
|
8092
|
+
RegionCode2["PE"] = "PE";
|
|
8093
|
+
RegionCode2["PH"] = "PH";
|
|
8094
|
+
RegionCode2["PN"] = "PN";
|
|
8095
|
+
RegionCode2["PL"] = "PL";
|
|
8096
|
+
RegionCode2["PT"] = "PT";
|
|
8097
|
+
RegionCode2["PR"] = "PR";
|
|
8098
|
+
RegionCode2["QA"] = "QA";
|
|
8099
|
+
RegionCode2["RE"] = "RE";
|
|
8100
|
+
RegionCode2["RO"] = "RO";
|
|
8101
|
+
RegionCode2["RU"] = "RU";
|
|
8102
|
+
RegionCode2["RW"] = "RW";
|
|
8103
|
+
RegionCode2["BL"] = "BL";
|
|
8104
|
+
RegionCode2["SH"] = "SH";
|
|
8105
|
+
RegionCode2["KN"] = "KN";
|
|
8106
|
+
RegionCode2["LC"] = "LC";
|
|
8107
|
+
RegionCode2["MF"] = "MF";
|
|
8108
|
+
RegionCode2["PM"] = "PM";
|
|
8109
|
+
RegionCode2["VC"] = "VC";
|
|
8110
|
+
RegionCode2["WS"] = "WS";
|
|
8111
|
+
RegionCode2["SM"] = "SM";
|
|
8112
|
+
RegionCode2["ST"] = "ST";
|
|
8113
|
+
RegionCode2["SA"] = "SA";
|
|
8114
|
+
RegionCode2["SN"] = "SN";
|
|
8115
|
+
RegionCode2["RS"] = "RS";
|
|
8116
|
+
RegionCode2["SC"] = "SC";
|
|
8117
|
+
RegionCode2["SL"] = "SL";
|
|
8118
|
+
RegionCode2["SG"] = "SG";
|
|
8119
|
+
RegionCode2["SX"] = "SX";
|
|
8120
|
+
RegionCode2["SK"] = "SK";
|
|
8121
|
+
RegionCode2["SI"] = "SI";
|
|
8122
|
+
RegionCode2["SB"] = "SB";
|
|
8123
|
+
RegionCode2["SO"] = "SO";
|
|
8124
|
+
RegionCode2["ZA"] = "ZA";
|
|
8125
|
+
RegionCode2["GS"] = "GS";
|
|
8126
|
+
RegionCode2["SS"] = "SS";
|
|
8127
|
+
RegionCode2["ES"] = "ES";
|
|
8128
|
+
RegionCode2["LK"] = "LK";
|
|
8129
|
+
RegionCode2["SD"] = "SD";
|
|
8130
|
+
RegionCode2["SR"] = "SR";
|
|
8131
|
+
RegionCode2["SJ"] = "SJ";
|
|
8132
|
+
RegionCode2["SZ"] = "SZ";
|
|
8133
|
+
RegionCode2["SE"] = "SE";
|
|
8134
|
+
RegionCode2["CH"] = "CH";
|
|
8135
|
+
RegionCode2["SY"] = "SY";
|
|
8136
|
+
RegionCode2["TW"] = "TW";
|
|
8137
|
+
RegionCode2["TJ"] = "TJ";
|
|
8138
|
+
RegionCode2["TZ"] = "TZ";
|
|
8139
|
+
RegionCode2["TH"] = "TH";
|
|
8140
|
+
RegionCode2["TL"] = "TL";
|
|
8141
|
+
RegionCode2["TG"] = "TG";
|
|
8142
|
+
RegionCode2["TK"] = "TK";
|
|
8143
|
+
RegionCode2["TO"] = "TO";
|
|
8144
|
+
RegionCode2["TT"] = "TT";
|
|
8145
|
+
RegionCode2["TN"] = "TN";
|
|
8146
|
+
RegionCode2["TR"] = "TR";
|
|
8147
|
+
RegionCode2["TM"] = "TM";
|
|
8148
|
+
RegionCode2["TC"] = "TC";
|
|
8149
|
+
RegionCode2["TV"] = "TV";
|
|
8150
|
+
RegionCode2["UG"] = "UG";
|
|
8151
|
+
RegionCode2["UA"] = "UA";
|
|
8152
|
+
RegionCode2["AE"] = "AE";
|
|
8153
|
+
RegionCode2["GB"] = "GB";
|
|
8154
|
+
RegionCode2["US"] = "US";
|
|
8155
|
+
RegionCode2["UM"] = "UM";
|
|
8156
|
+
RegionCode2["UY"] = "UY";
|
|
8157
|
+
RegionCode2["UZ"] = "UZ";
|
|
8158
|
+
RegionCode2["VU"] = "VU";
|
|
8159
|
+
RegionCode2["VE"] = "VE";
|
|
8160
|
+
RegionCode2["VN"] = "VN";
|
|
8161
|
+
RegionCode2["VG"] = "VG";
|
|
8162
|
+
RegionCode2["VI"] = "VI";
|
|
8163
|
+
RegionCode2["WF"] = "WF";
|
|
8164
|
+
RegionCode2["EH"] = "EH";
|
|
8165
|
+
RegionCode2["YE"] = "YE";
|
|
8166
|
+
RegionCode2["ZM"] = "ZM";
|
|
8167
|
+
RegionCode2["ZW"] = "ZW";
|
|
8168
|
+
return RegionCode2;
|
|
8169
|
+
})(RegionCode || {});
|
|
8170
|
+
var RegionCode_default = RegionCode;
|
|
8171
|
+
|
|
7911
8172
|
// src/objects/ComplianceProvider.ts
|
|
7912
8173
|
var ComplianceProvider = /* @__PURE__ */ ((ComplianceProvider2) => {
|
|
7913
8174
|
ComplianceProvider2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -8085,6 +8346,29 @@ fragment FeeEstimateFragment on FeeEstimate {
|
|
|
8085
8346
|
}
|
|
8086
8347
|
}`;
|
|
8087
8348
|
|
|
8349
|
+
// src/objects/IncentivesIneligibilityReason.ts
|
|
8350
|
+
var IncentivesIneligibilityReason = /* @__PURE__ */ ((IncentivesIneligibilityReason2) => {
|
|
8351
|
+
IncentivesIneligibilityReason2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
8352
|
+
IncentivesIneligibilityReason2["DISABLED"] = "DISABLED";
|
|
8353
|
+
IncentivesIneligibilityReason2["SENDER_NOT_ELIGIBLE"] = "SENDER_NOT_ELIGIBLE";
|
|
8354
|
+
IncentivesIneligibilityReason2["RECEIVER_NOT_ELIGIBLE"] = "RECEIVER_NOT_ELIGIBLE";
|
|
8355
|
+
IncentivesIneligibilityReason2["SENDING_VASP_NOT_ELIGIBLE"] = "SENDING_VASP_NOT_ELIGIBLE";
|
|
8356
|
+
IncentivesIneligibilityReason2["RECEIVING_VASP_NOT_ELIGIBLE"] = "RECEIVING_VASP_NOT_ELIGIBLE";
|
|
8357
|
+
IncentivesIneligibilityReason2["NOT_CROSS_BORDER"] = "NOT_CROSS_BORDER";
|
|
8358
|
+
return IncentivesIneligibilityReason2;
|
|
8359
|
+
})(IncentivesIneligibilityReason || {});
|
|
8360
|
+
var IncentivesIneligibilityReason_default = IncentivesIneligibilityReason;
|
|
8361
|
+
|
|
8362
|
+
// src/objects/IncentivesStatus.ts
|
|
8363
|
+
var IncentivesStatus = /* @__PURE__ */ ((IncentivesStatus2) => {
|
|
8364
|
+
IncentivesStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
8365
|
+
IncentivesStatus2["PENDING"] = "PENDING";
|
|
8366
|
+
IncentivesStatus2["VALIDATED"] = "VALIDATED";
|
|
8367
|
+
IncentivesStatus2["INELIGIBLE"] = "INELIGIBLE";
|
|
8368
|
+
return IncentivesStatus2;
|
|
8369
|
+
})(IncentivesStatus || {});
|
|
8370
|
+
var IncentivesStatus_default = IncentivesStatus;
|
|
8371
|
+
|
|
8088
8372
|
// src/objects/Invoice.ts
|
|
8089
8373
|
var InvoiceFromJson = (obj) => {
|
|
8090
8374
|
return {
|
|
@@ -9465,13 +9749,61 @@ fragment TransactionUpdateFragment on Transaction {
|
|
|
9465
9749
|
transaction_hash
|
|
9466
9750
|
}`;
|
|
9467
9751
|
|
|
9752
|
+
// src/objects/UmaInvitation.ts
|
|
9753
|
+
var UmaInvitationFromJson = (obj) => {
|
|
9754
|
+
return {
|
|
9755
|
+
id: obj["uma_invitation_id"],
|
|
9756
|
+
createdAt: obj["uma_invitation_created_at"],
|
|
9757
|
+
updatedAt: obj["uma_invitation_updated_at"],
|
|
9758
|
+
code: obj["uma_invitation_code"],
|
|
9759
|
+
url: obj["uma_invitation_url"],
|
|
9760
|
+
inviterUma: obj["uma_invitation_inviter_uma"],
|
|
9761
|
+
incentivesStatus: IncentivesStatus_default[obj["uma_invitation_incentives_status"]] ?? IncentivesStatus_default.FUTURE_VALUE,
|
|
9762
|
+
typename: "UmaInvitation",
|
|
9763
|
+
inviteeUma: obj["uma_invitation_invitee_uma"],
|
|
9764
|
+
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null
|
|
9765
|
+
};
|
|
9766
|
+
};
|
|
9767
|
+
var FRAGMENT32 = `
|
|
9768
|
+
fragment UmaInvitationFragment on UmaInvitation {
|
|
9769
|
+
__typename
|
|
9770
|
+
uma_invitation_id: id
|
|
9771
|
+
uma_invitation_created_at: created_at
|
|
9772
|
+
uma_invitation_updated_at: updated_at
|
|
9773
|
+
uma_invitation_code: code
|
|
9774
|
+
uma_invitation_url: url
|
|
9775
|
+
uma_invitation_inviter_uma: inviter_uma
|
|
9776
|
+
uma_invitation_invitee_uma: invitee_uma
|
|
9777
|
+
uma_invitation_incentives_status: incentives_status
|
|
9778
|
+
uma_invitation_incentives_ineligibility_reason: incentives_ineligibility_reason
|
|
9779
|
+
}`;
|
|
9780
|
+
var getUmaInvitationQuery = (id) => {
|
|
9781
|
+
return {
|
|
9782
|
+
queryPayload: `
|
|
9783
|
+
query GetUmaInvitation($id: ID!) {
|
|
9784
|
+
entity(id: $id) {
|
|
9785
|
+
... on UmaInvitation {
|
|
9786
|
+
...UmaInvitationFragment
|
|
9787
|
+
}
|
|
9788
|
+
}
|
|
9789
|
+
}
|
|
9790
|
+
|
|
9791
|
+
${FRAGMENT32}
|
|
9792
|
+
`,
|
|
9793
|
+
variables: { id },
|
|
9794
|
+
constructObject: (data) => UmaInvitationFromJson(data.entity)
|
|
9795
|
+
};
|
|
9796
|
+
};
|
|
9797
|
+
|
|
9468
9798
|
// src/objects/WebhookEventType.ts
|
|
9469
9799
|
var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
9470
9800
|
WebhookEventType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
9471
9801
|
WebhookEventType2["PAYMENT_FINISHED"] = "PAYMENT_FINISHED";
|
|
9802
|
+
WebhookEventType2["FORCE_CLOSURE"] = "FORCE_CLOSURE";
|
|
9472
9803
|
WebhookEventType2["WITHDRAWAL_FINISHED"] = "WITHDRAWAL_FINISHED";
|
|
9473
9804
|
WebhookEventType2["FUNDS_RECEIVED"] = "FUNDS_RECEIVED";
|
|
9474
9805
|
WebhookEventType2["NODE_STATUS"] = "NODE_STATUS";
|
|
9806
|
+
WebhookEventType2["UMA_INVITATION_CLAIMED"] = "UMA_INVITATION_CLAIMED";
|
|
9475
9807
|
WebhookEventType2["WALLET_STATUS"] = "WALLET_STATUS";
|
|
9476
9808
|
WebhookEventType2["WALLET_OUTGOING_PAYMENT_FINISHED"] = "WALLET_OUTGOING_PAYMENT_FINISHED";
|
|
9477
9809
|
WebhookEventType2["WALLET_INCOMING_PAYMENT_FINISHED"] = "WALLET_INCOMING_PAYMENT_FINISHED";
|
|
@@ -9502,7 +9834,7 @@ var WithdrawalFromJson = (obj) => {
|
|
|
9502
9834
|
numConfirmations: obj["withdrawal_num_confirmations"]
|
|
9503
9835
|
};
|
|
9504
9836
|
};
|
|
9505
|
-
var
|
|
9837
|
+
var FRAGMENT33 = `
|
|
9506
9838
|
fragment WithdrawalFragment on Withdrawal {
|
|
9507
9839
|
__typename
|
|
9508
9840
|
withdrawal_id: id
|
|
@@ -9546,7 +9878,7 @@ query GetWithdrawal($id: ID!) {
|
|
|
9546
9878
|
}
|
|
9547
9879
|
}
|
|
9548
9880
|
|
|
9549
|
-
${
|
|
9881
|
+
${FRAGMENT33}
|
|
9550
9882
|
`,
|
|
9551
9883
|
variables: { id },
|
|
9552
9884
|
constructObject: (data) => WithdrawalFromJson(data.entity)
|
|
@@ -9740,7 +10072,7 @@ query GetWithdrawalRequest($id: ID!) {
|
|
|
9740
10072
|
}
|
|
9741
10073
|
}
|
|
9742
10074
|
|
|
9743
|
-
${
|
|
10075
|
+
${FRAGMENT34}
|
|
9744
10076
|
`,
|
|
9745
10077
|
variables: { id },
|
|
9746
10078
|
constructObject: (data) => WithdrawalRequestFromJson(data.entity)
|
|
@@ -9777,7 +10109,7 @@ var WithdrawalRequestFromJson = (obj) => {
|
|
|
9777
10109
|
obj["withdrawal_request_withdrawal"]?.id ?? void 0
|
|
9778
10110
|
);
|
|
9779
10111
|
};
|
|
9780
|
-
var
|
|
10112
|
+
var FRAGMENT34 = `
|
|
9781
10113
|
fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
9782
10114
|
__typename
|
|
9783
10115
|
withdrawal_request_id: id
|
|
@@ -9815,9 +10147,14 @@ export {
|
|
|
9815
10147
|
FRAGMENT2 as FRAGMENT,
|
|
9816
10148
|
FeeEstimateFromJson,
|
|
9817
10149
|
FRAGMENT23 as FRAGMENT2,
|
|
10150
|
+
IncentivesIneligibilityReason_default,
|
|
10151
|
+
IncentivesStatus_default,
|
|
10152
|
+
UmaInvitationFromJson,
|
|
10153
|
+
FRAGMENT32 as FRAGMENT3,
|
|
10154
|
+
getUmaInvitationQuery,
|
|
9818
10155
|
Permission_default,
|
|
9819
10156
|
ApiTokenFromJson,
|
|
9820
|
-
FRAGMENT as
|
|
10157
|
+
FRAGMENT as FRAGMENT4,
|
|
9821
10158
|
getApiTokenQuery,
|
|
9822
10159
|
NodeAddressType_default,
|
|
9823
10160
|
GraphNode_default,
|
|
@@ -9828,48 +10165,49 @@ export {
|
|
|
9828
10165
|
LightsparkNodeWithRemoteSigning_default,
|
|
9829
10166
|
getNodeQuery,
|
|
9830
10167
|
InvoiceDataFromJson,
|
|
9831
|
-
FRAGMENT9 as
|
|
10168
|
+
FRAGMENT9 as FRAGMENT5,
|
|
9832
10169
|
PaymentRequestStatus_default,
|
|
9833
10170
|
InvoiceFromJson,
|
|
9834
|
-
FRAGMENT24 as
|
|
10171
|
+
FRAGMENT24 as FRAGMENT6,
|
|
9835
10172
|
getInvoiceQuery,
|
|
9836
10173
|
IncomingPaymentAttemptStatus_default,
|
|
9837
10174
|
getIncomingPaymentAttemptQuery,
|
|
9838
10175
|
TransactionStatus_default,
|
|
9839
10176
|
IncomingPaymentFromJson,
|
|
9840
|
-
FRAGMENT12 as
|
|
10177
|
+
FRAGMENT12 as FRAGMENT7,
|
|
9841
10178
|
IncomingPayment_default,
|
|
9842
|
-
FRAGMENT25 as
|
|
10179
|
+
FRAGMENT25 as FRAGMENT8,
|
|
9843
10180
|
HtlcAttemptFailureCode_default,
|
|
9844
10181
|
OutgoingPaymentAttemptStatus_default,
|
|
9845
10182
|
getHopQuery,
|
|
9846
10183
|
OutgoingPaymentAttempt_default,
|
|
9847
10184
|
PaymentFailureReason_default,
|
|
9848
10185
|
OutgoingPaymentFromJson,
|
|
9849
|
-
FRAGMENT15 as
|
|
10186
|
+
FRAGMENT15 as FRAGMENT9,
|
|
9850
10187
|
OutgoingPayment_default,
|
|
9851
10188
|
PaymentRequestFromJson,
|
|
9852
|
-
FRAGMENT10
|
|
10189
|
+
FRAGMENT10,
|
|
9853
10190
|
getPaymentRequestQuery,
|
|
9854
10191
|
WithdrawalMode_default,
|
|
9855
10192
|
WithdrawalRequestStatus_default,
|
|
9856
10193
|
getChannelClosingTransactionQuery,
|
|
9857
10194
|
getChannelOpeningTransactionQuery,
|
|
9858
10195
|
WithdrawalRequestFromJson,
|
|
9859
|
-
|
|
10196
|
+
FRAGMENT34 as FRAGMENT11,
|
|
9860
10197
|
WithdrawalRequest_default,
|
|
9861
10198
|
RoutingTransactionFailureReason_default,
|
|
9862
10199
|
TransactionFromJson,
|
|
9863
|
-
FRAGMENT16 as
|
|
10200
|
+
FRAGMENT16 as FRAGMENT12,
|
|
9864
10201
|
getTransactionQuery,
|
|
9865
10202
|
TransactionUpdateFromJson,
|
|
9866
|
-
FRAGMENT31 as
|
|
10203
|
+
FRAGMENT31 as FRAGMENT13,
|
|
9867
10204
|
AccountToChannelsConnection_default,
|
|
9868
10205
|
getLightsparkNodeQuery,
|
|
9869
10206
|
WalletStatus_default,
|
|
9870
10207
|
Wallet_default,
|
|
9871
10208
|
Account_default,
|
|
9872
10209
|
InvoiceType_default,
|
|
10210
|
+
RegionCode_default,
|
|
9873
10211
|
ComplianceProvider_default,
|
|
9874
10212
|
SignablePayloadStatus_default,
|
|
9875
10213
|
getSignablePayloadQuery,
|