@invonetwork/web-sdk 3.30.4 → 3.32.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.
- package/CHANGELOG.md +21 -0
- package/README.md +2963 -2954
- package/dist/{chunk-MTOYPY5P.js → chunk-2XOKKKFR.js} +3 -3
- package/dist/chunk-LVVPRVPU.js +6 -0
- package/dist/{chunk-7AJJ2JVB.js → chunk-QEJB6HC7.js} +38 -7
- package/dist/{chunk-ULX3HXTO.js → chunk-RPGRRZFY.js} +14 -5
- package/dist/game-server.cjs +47 -7
- package/dist/game-server.d.cts +4 -4
- package/dist/game-server.d.ts +4 -4
- package/dist/game-server.js +5 -5
- package/dist/game.cjs +37 -6
- package/dist/game.d.cts +3 -3
- package/dist/game.d.ts +3 -3
- package/dist/game.js +3 -3
- package/dist/{hosted-approval-Ca8vyGry.d.ts → hosted-approval-ICho9KsV.d.ts} +1 -1
- package/dist/{hosted-approval-DfVC4oDL.d.cts → hosted-approval-li0XZFz-.d.cts} +1 -1
- package/dist/index.cjs +36 -5
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{server-8WZat6Q5.d.ts → server-B-KKg5P0.d.ts} +15 -5
- package/dist/{server-GdJ1Jf05.d.cts → server-jAn9dNM3.d.cts} +15 -5
- package/dist/server.cjs +47 -7
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +3 -3
- package/dist/{types-CVRok5ZV.d.cts → types-CaPHNjOU.d.cts} +39 -1
- package/dist/{types-CVRok5ZV.d.ts → types-CaPHNjOU.d.ts} +39 -1
- package/dist/{version-CCHWiwqw.d.cts → version-CqwGhQXV.d.cts} +1 -1
- package/dist/{version-CCHWiwqw.d.ts → version-CqwGhQXV.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-MKFXIYMC.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InvoError, assertSecureBaseUrl, Http, toPurchaseStatusResult, toPhoneChangeApprovalsResult, phoneChangeSignalMessage, toApprovePhoneChangeResult, toDestinationsResult, toLoyaltyCardsResult, toLoyaltyVaultResult, toRedeemRewardResult, toRewardsPageLink, buildGameEventBody, toReportGameEventResult } from './chunk-
|
|
1
|
+
import { InvoError, assertSecureBaseUrl, Http, toPurchaseStatusResult, toPhoneChangeApprovalsResult, phoneChangeSignalMessage, toApprovePhoneChangeResult, toDestinationsResult, toLoyaltyCardsResult, toLoyaltyVaultResult, toRedeemRewardResult, toRewardsPageLink, buildGameEventBody, toReportGameEventResult } from './chunk-QEJB6HC7.js';
|
|
2
2
|
|
|
3
3
|
// src/shared/webauthn.ts
|
|
4
4
|
function malformedOptions(field) {
|
|
@@ -1586,5 +1586,5 @@ var InvoClient = class {
|
|
|
1586
1586
|
};
|
|
1587
1587
|
|
|
1588
1588
|
export { CheckoutClient, InvoClient, PlatformCommerceClient };
|
|
1589
|
-
//# sourceMappingURL=chunk-
|
|
1590
|
-
//# sourceMappingURL=chunk-
|
|
1589
|
+
//# sourceMappingURL=chunk-2XOKKKFR.js.map
|
|
1590
|
+
//# sourceMappingURL=chunk-2XOKKKFR.js.map
|
|
@@ -11,6 +11,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
11
11
|
this.status = args.status;
|
|
12
12
|
this.body = args.body ?? null;
|
|
13
13
|
this.requestId = args.requestId;
|
|
14
|
+
this.retryAfterHeader = args.retryAfterHeader;
|
|
14
15
|
Object.setPrototypeOf(this, _InvoError.prototype);
|
|
15
16
|
}
|
|
16
17
|
/** True if this is the "recipient isn't passkey-enrolled, fall back to claim code" signal. */
|
|
@@ -334,6 +335,16 @@ var InvoError = class _InvoError extends Error {
|
|
|
334
335
|
get isPartnerRailSuspended() {
|
|
335
336
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
336
337
|
}
|
|
338
|
+
/** True when INVO has paused new payments on the developer account
|
|
339
|
+
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
340
|
+
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
341
|
+
* subscription, Steam purchase or subscription start. Refunds, reads,
|
|
342
|
+
* balances, transfers and renewals of existing subscriptions keep working.
|
|
343
|
+
* Not retryable until INVO resumes payments; show a neutral "purchases are
|
|
344
|
+
* unavailable right now" message. */
|
|
345
|
+
get isPaymentsPaused() {
|
|
346
|
+
return this.code === "PAYMENTS_PAUSED";
|
|
347
|
+
}
|
|
337
348
|
/** True when init-purchase was given a `packId` that is not in INVO's Steam
|
|
338
349
|
* catalogue (`UNKNOWN_STEAM_PACK`, 400). The error body's
|
|
339
350
|
* `valid_pack_ids` lists what exists; re-fetch `steamPacks()` — the
|
|
@@ -1098,11 +1109,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
1098
1109
|
get isRewardExpired() {
|
|
1099
1110
|
return this.code === "vault_entry_expired";
|
|
1100
1111
|
}
|
|
1101
|
-
/**
|
|
1112
|
+
/**
|
|
1113
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
1114
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
1115
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
1116
|
+
*/
|
|
1102
1117
|
get retryAfter() {
|
|
1103
1118
|
const v = this.bodyObject()["retry_after"];
|
|
1104
1119
|
const n = typeof v === "string" ? v.trim() === "" ? NaN : Number(v) : v;
|
|
1105
|
-
|
|
1120
|
+
if (typeof n === "number" && Number.isFinite(n) && n >= 0) return n;
|
|
1121
|
+
const h = this.retryAfterHeader?.trim();
|
|
1122
|
+
if (h && /^\d+(\.\d+)?$/.test(h)) return Number(h);
|
|
1123
|
+
return void 0;
|
|
1124
|
+
}
|
|
1125
|
+
/**
|
|
1126
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
1127
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
1128
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
1129
|
+
* and send the same request again. Branch on this, not on the message.
|
|
1130
|
+
*/
|
|
1131
|
+
get isRateLimited() {
|
|
1132
|
+
return this.code === "RATE_LIMITED" || this.code === "rate_limited" || this.status === 429;
|
|
1106
1133
|
}
|
|
1107
1134
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
1108
1135
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
@@ -1110,7 +1137,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
1110
1137
|
return this.body && typeof this.body === "object" ? this.body : {};
|
|
1111
1138
|
}
|
|
1112
1139
|
};
|
|
1113
|
-
function errorFromResponse(status, body, requestId) {
|
|
1140
|
+
function errorFromResponse(status, body, requestId, retryAfterHeader) {
|
|
1114
1141
|
let message = `INVO request failed (HTTP ${status})`;
|
|
1115
1142
|
let code;
|
|
1116
1143
|
let rawCode;
|
|
@@ -1132,7 +1159,7 @@ function errorFromResponse(status, body, requestId) {
|
|
|
1132
1159
|
} else if (typeof body === "string" && body.trim()) {
|
|
1133
1160
|
message = body;
|
|
1134
1161
|
}
|
|
1135
|
-
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId });
|
|
1162
|
+
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId, retryAfterHeader });
|
|
1136
1163
|
}
|
|
1137
1164
|
|
|
1138
1165
|
// src/shared/http.ts
|
|
@@ -1266,7 +1293,7 @@ var _Http = class _Http {
|
|
|
1266
1293
|
requestId
|
|
1267
1294
|
});
|
|
1268
1295
|
if (!res.ok) {
|
|
1269
|
-
const err = errorFromResponse(res.status, parsed, requestId);
|
|
1296
|
+
const err = errorFromResponse(res.status, parsed, requestId, pickRetryAfterHeader(res.headers));
|
|
1270
1297
|
let wait;
|
|
1271
1298
|
if (idempotent && attempt < this.maxRetries && _Http.RETRIABLE_STATUS.has(res.status)) {
|
|
1272
1299
|
if (res.status === 429) {
|
|
@@ -1324,6 +1351,10 @@ function pickRequestId(headers) {
|
|
|
1324
1351
|
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1325
1352
|
return headers.get("x-invo-request-id") ?? headers.get("x-request-id") ?? void 0;
|
|
1326
1353
|
}
|
|
1354
|
+
function pickRetryAfterHeader(headers) {
|
|
1355
|
+
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1356
|
+
return headers.get("retry-after") ?? void 0;
|
|
1357
|
+
}
|
|
1327
1358
|
function retryAfterMs(parsed, headers) {
|
|
1328
1359
|
if (parsed && typeof parsed === "object") {
|
|
1329
1360
|
const v = parsed["retry_after"];
|
|
@@ -1713,5 +1744,5 @@ function toApprovePhoneChangeResult(raw, changeRequestId) {
|
|
|
1713
1744
|
}
|
|
1714
1745
|
|
|
1715
1746
|
export { Http, InvoError, assertSecureBaseUrl, buildGameEventBody, creditFields, isPurchaseCredited, isPurchaseExpired, isPurchaseRefunded, isPurchaseRefused, newEventId, nothingWasCharged, phoneChangeSignalMessage, receiptFields, toApprovePhoneChangeResult, toDestinationsResult, toLoyaltyCardsResult, toLoyaltyVaultResult, toPhoneChangeApprovalsResult, toPhoneChangeRequest, toPurchaseStatusResult, toRedeemRewardResult, toReportGameEventResult, toRequestPhoneChangeResult, toRewardsPageLink };
|
|
1716
|
-
//# sourceMappingURL=chunk-
|
|
1717
|
-
//# sourceMappingURL=chunk-
|
|
1747
|
+
//# sourceMappingURL=chunk-QEJB6HC7.js.map
|
|
1748
|
+
//# sourceMappingURL=chunk-QEJB6HC7.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SDK_VERSION } from './chunk-
|
|
2
|
-
import { InvoError, assertSecureBaseUrl, Http, toRequestPhoneChangeResult, toPhoneChangeRequest, toPurchaseStatusResult, receiptFields, creditFields, toLoyaltyCardsResult, buildGameEventBody, toReportGameEventResult, toDestinationsResult } from './chunk-
|
|
1
|
+
import { SDK_VERSION } from './chunk-LVVPRVPU.js';
|
|
2
|
+
import { InvoError, assertSecureBaseUrl, Http, toRequestPhoneChangeResult, toPhoneChangeRequest, toPurchaseStatusResult, receiptFields, creditFields, toLoyaltyCardsResult, buildGameEventBody, toReportGameEventResult, toDestinationsResult } from './chunk-QEJB6HC7.js';
|
|
3
3
|
import { createHmac, timingSafeEqual } from 'crypto';
|
|
4
4
|
|
|
5
5
|
// src/payouts.ts
|
|
@@ -701,9 +701,17 @@ function toPlatformOrderStatus(raw, fallbackOrderId) {
|
|
|
701
701
|
paymentMethod: raw["payment_method"],
|
|
702
702
|
createdAt: raw["created_at"],
|
|
703
703
|
...receiptFields(raw),
|
|
704
|
+
...feeSplitFields(raw),
|
|
704
705
|
raw
|
|
705
706
|
};
|
|
706
707
|
}
|
|
708
|
+
function feeSplitFields(raw) {
|
|
709
|
+
const out = {};
|
|
710
|
+
const pick = (v) => v === null ? null : typeof v === "string" ? v : typeof v === "number" && Number.isFinite(v) ? v.toFixed(2) : null;
|
|
711
|
+
if ("invo_fee_usd" in raw) out.invoFeeUsd = pick(raw["invo_fee_usd"]);
|
|
712
|
+
if ("partner_share_usd" in raw) out.partnerShareUsd = pick(raw["partner_share_usd"]);
|
|
713
|
+
return out;
|
|
714
|
+
}
|
|
707
715
|
function nextCursorOf(raw) {
|
|
708
716
|
const c = raw["next_cursor"];
|
|
709
717
|
return typeof c === "string" && c ? c : null;
|
|
@@ -1023,7 +1031,8 @@ var PlatformCommerceServer = class {
|
|
|
1023
1031
|
};
|
|
1024
1032
|
}
|
|
1025
1033
|
/** Poll an order's status: `completed` (balance immediately; card after the webhook),
|
|
1026
|
-
* `pending_payment` (card awaiting confirmation), or `refunded`.
|
|
1034
|
+
* `pending_payment` (card awaiting confirmation), or `refunded`. Once the sale has settled,
|
|
1035
|
+
* `invoFeeUsd` / `partnerShareUsd` say what INVO kept and what you earned (additive). */
|
|
1027
1036
|
async getStatus(orderId, opts) {
|
|
1028
1037
|
if (orderId == null || String(orderId).trim() === "") {
|
|
1029
1038
|
throw invalidInput2("orderId", orderId, "is required");
|
|
@@ -3793,5 +3802,5 @@ var InvoServer = class {
|
|
|
3793
3802
|
};
|
|
3794
3803
|
|
|
3795
3804
|
export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyInvoSignature, verifyWebhook, verifyWebhookAsync };
|
|
3796
|
-
//# sourceMappingURL=chunk-
|
|
3797
|
-
//# sourceMappingURL=chunk-
|
|
3805
|
+
//# sourceMappingURL=chunk-RPGRRZFY.js.map
|
|
3806
|
+
//# sourceMappingURL=chunk-RPGRRZFY.js.map
|
package/dist/game-server.cjs
CHANGED
|
@@ -107,6 +107,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
107
107
|
this.status = args.status;
|
|
108
108
|
this.body = args.body ?? null;
|
|
109
109
|
this.requestId = args.requestId;
|
|
110
|
+
this.retryAfterHeader = args.retryAfterHeader;
|
|
110
111
|
Object.setPrototypeOf(this, _InvoError.prototype);
|
|
111
112
|
}
|
|
112
113
|
/** True if this is the "recipient isn't passkey-enrolled, fall back to claim code" signal. */
|
|
@@ -430,6 +431,16 @@ var InvoError = class _InvoError extends Error {
|
|
|
430
431
|
get isPartnerRailSuspended() {
|
|
431
432
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
432
433
|
}
|
|
434
|
+
/** True when INVO has paused new payments on the developer account
|
|
435
|
+
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
436
|
+
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
437
|
+
* subscription, Steam purchase or subscription start. Refunds, reads,
|
|
438
|
+
* balances, transfers and renewals of existing subscriptions keep working.
|
|
439
|
+
* Not retryable until INVO resumes payments; show a neutral "purchases are
|
|
440
|
+
* unavailable right now" message. */
|
|
441
|
+
get isPaymentsPaused() {
|
|
442
|
+
return this.code === "PAYMENTS_PAUSED";
|
|
443
|
+
}
|
|
433
444
|
/** True when init-purchase was given a `packId` that is not in INVO's Steam
|
|
434
445
|
* catalogue (`UNKNOWN_STEAM_PACK`, 400). The error body's
|
|
435
446
|
* `valid_pack_ids` lists what exists; re-fetch `steamPacks()` — the
|
|
@@ -1194,11 +1205,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
1194
1205
|
get isRewardExpired() {
|
|
1195
1206
|
return this.code === "vault_entry_expired";
|
|
1196
1207
|
}
|
|
1197
|
-
/**
|
|
1208
|
+
/**
|
|
1209
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
1210
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
1211
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
1212
|
+
*/
|
|
1198
1213
|
get retryAfter() {
|
|
1199
1214
|
const v = this.bodyObject()["retry_after"];
|
|
1200
1215
|
const n = typeof v === "string" ? v.trim() === "" ? NaN : Number(v) : v;
|
|
1201
|
-
|
|
1216
|
+
if (typeof n === "number" && Number.isFinite(n) && n >= 0) return n;
|
|
1217
|
+
const h = this.retryAfterHeader?.trim();
|
|
1218
|
+
if (h && /^\d+(\.\d+)?$/.test(h)) return Number(h);
|
|
1219
|
+
return void 0;
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
1223
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
1224
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
1225
|
+
* and send the same request again. Branch on this, not on the message.
|
|
1226
|
+
*/
|
|
1227
|
+
get isRateLimited() {
|
|
1228
|
+
return this.code === "RATE_LIMITED" || this.code === "rate_limited" || this.status === 429;
|
|
1202
1229
|
}
|
|
1203
1230
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
1204
1231
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
@@ -1206,7 +1233,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
1206
1233
|
return this.body && typeof this.body === "object" ? this.body : {};
|
|
1207
1234
|
}
|
|
1208
1235
|
};
|
|
1209
|
-
function errorFromResponse(status, body, requestId) {
|
|
1236
|
+
function errorFromResponse(status, body, requestId, retryAfterHeader) {
|
|
1210
1237
|
let message = `INVO request failed (HTTP ${status})`;
|
|
1211
1238
|
let code;
|
|
1212
1239
|
let rawCode;
|
|
@@ -1228,7 +1255,7 @@ function errorFromResponse(status, body, requestId) {
|
|
|
1228
1255
|
} else if (typeof body === "string" && body.trim()) {
|
|
1229
1256
|
message = body;
|
|
1230
1257
|
}
|
|
1231
|
-
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId });
|
|
1258
|
+
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId, retryAfterHeader });
|
|
1232
1259
|
}
|
|
1233
1260
|
|
|
1234
1261
|
// src/shared/http.ts
|
|
@@ -1362,7 +1389,7 @@ var _Http = class _Http {
|
|
|
1362
1389
|
requestId
|
|
1363
1390
|
});
|
|
1364
1391
|
if (!res.ok) {
|
|
1365
|
-
const err = errorFromResponse(res.status, parsed, requestId);
|
|
1392
|
+
const err = errorFromResponse(res.status, parsed, requestId, pickRetryAfterHeader(res.headers));
|
|
1366
1393
|
let wait;
|
|
1367
1394
|
if (idempotent && attempt < this.maxRetries && _Http.RETRIABLE_STATUS.has(res.status)) {
|
|
1368
1395
|
if (res.status === 429) {
|
|
@@ -1420,6 +1447,10 @@ function pickRequestId(headers) {
|
|
|
1420
1447
|
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1421
1448
|
return headers.get("x-invo-request-id") ?? headers.get("x-request-id") ?? void 0;
|
|
1422
1449
|
}
|
|
1450
|
+
function pickRetryAfterHeader(headers) {
|
|
1451
|
+
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1452
|
+
return headers.get("retry-after") ?? void 0;
|
|
1453
|
+
}
|
|
1423
1454
|
function retryAfterMs(parsed, headers) {
|
|
1424
1455
|
if (parsed && typeof parsed === "object") {
|
|
1425
1456
|
const v = parsed["retry_after"];
|
|
@@ -1711,7 +1742,7 @@ function toPhoneChangeRequest(raw) {
|
|
|
1711
1742
|
}
|
|
1712
1743
|
|
|
1713
1744
|
// src/version.ts
|
|
1714
|
-
var SDK_VERSION = "3.
|
|
1745
|
+
var SDK_VERSION = "3.32.0";
|
|
1715
1746
|
|
|
1716
1747
|
// src/payouts.ts
|
|
1717
1748
|
var AMOUNT = /^\d+(\.\d{1,2})?$/;
|
|
@@ -2265,9 +2296,17 @@ function toPlatformOrderStatus(raw, fallbackOrderId) {
|
|
|
2265
2296
|
paymentMethod: raw["payment_method"],
|
|
2266
2297
|
createdAt: raw["created_at"],
|
|
2267
2298
|
...receiptFields(raw),
|
|
2299
|
+
...feeSplitFields(raw),
|
|
2268
2300
|
raw
|
|
2269
2301
|
};
|
|
2270
2302
|
}
|
|
2303
|
+
function feeSplitFields(raw) {
|
|
2304
|
+
const out = {};
|
|
2305
|
+
const pick = (v) => v === null ? null : typeof v === "string" ? v : typeof v === "number" && Number.isFinite(v) ? v.toFixed(2) : null;
|
|
2306
|
+
if ("invo_fee_usd" in raw) out.invoFeeUsd = pick(raw["invo_fee_usd"]);
|
|
2307
|
+
if ("partner_share_usd" in raw) out.partnerShareUsd = pick(raw["partner_share_usd"]);
|
|
2308
|
+
return out;
|
|
2309
|
+
}
|
|
2271
2310
|
function nextCursorOf(raw) {
|
|
2272
2311
|
const c = raw["next_cursor"];
|
|
2273
2312
|
return typeof c === "string" && c ? c : null;
|
|
@@ -2587,7 +2626,8 @@ var PlatformCommerceServer = class {
|
|
|
2587
2626
|
};
|
|
2588
2627
|
}
|
|
2589
2628
|
/** Poll an order's status: `completed` (balance immediately; card after the webhook),
|
|
2590
|
-
* `pending_payment` (card awaiting confirmation), or `refunded`.
|
|
2629
|
+
* `pending_payment` (card awaiting confirmation), or `refunded`. Once the sale has settled,
|
|
2630
|
+
* `invoFeeUsd` / `partnerShareUsd` say what INVO kept and what you earned (additive). */
|
|
2591
2631
|
async getStatus(orderId, opts) {
|
|
2592
2632
|
if (orderId == null || String(orderId).trim() === "") {
|
|
2593
2633
|
throw invalidInput2("orderId", orderId, "is required");
|
package/dist/game-server.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as InvoServer, a as InvoEnvironment } from './server-
|
|
2
|
-
export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, b as baseUrlForKey, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-
|
|
1
|
+
import { I as InvoServer, a as InvoEnvironment } from './server-jAn9dNM3.cjs';
|
|
2
|
+
export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, b as baseUrlForKey, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-jAn9dNM3.cjs';
|
|
3
3
|
import { G as GameCurrencyKind, a as GamePurchaseStatus, b as GameEconomyConfig } from './types-jUxfYjiD.cjs';
|
|
4
4
|
export { c as GameCatalog, d as GameCatalogItem, e as GameCheckout, f as GameCurrencyBalance, g as GameErrorBody, h as GameItemPurchase, i as GamePlayer, j as GamePremiumPack, k as GamePurchase, l as GameSession, m as GameTransferInput, n as GameTransferKind, o as GameTransferStart, p as GameTransferStatus, q as GameWallet } from './types-jUxfYjiD.cjs';
|
|
5
|
-
export { I as InvoError } from './types-
|
|
6
|
-
export { S as SDK_VERSION } from './version-
|
|
5
|
+
export { I as InvoError } from './types-CaPHNjOU.cjs';
|
|
6
|
+
export { S as SDK_VERSION } from './version-CqwGhQXV.cjs';
|
|
7
7
|
import './loyalty-events-CmDw2ZoR.cjs';
|
|
8
8
|
|
|
9
9
|
interface StoredPlayer {
|
package/dist/game-server.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as InvoServer, a as InvoEnvironment } from './server-
|
|
2
|
-
export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, b as baseUrlForKey, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-
|
|
1
|
+
import { I as InvoServer, a as InvoEnvironment } from './server-B-KKg5P0.js';
|
|
2
|
+
export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, b as baseUrlForKey, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-B-KKg5P0.js';
|
|
3
3
|
import { G as GameCurrencyKind, a as GamePurchaseStatus, b as GameEconomyConfig } from './types-jUxfYjiD.js';
|
|
4
4
|
export { c as GameCatalog, d as GameCatalogItem, e as GameCheckout, f as GameCurrencyBalance, g as GameErrorBody, h as GameItemPurchase, i as GamePlayer, j as GamePremiumPack, k as GamePurchase, l as GameSession, m as GameTransferInput, n as GameTransferKind, o as GameTransferStart, p as GameTransferStatus, q as GameWallet } from './types-jUxfYjiD.js';
|
|
5
|
-
export { I as InvoError } from './types-
|
|
6
|
-
export { S as SDK_VERSION } from './version-
|
|
5
|
+
export { I as InvoError } from './types-CaPHNjOU.js';
|
|
6
|
+
export { S as SDK_VERSION } from './version-CqwGhQXV.js';
|
|
7
7
|
import './loyalty-events-CmDw2ZoR.js';
|
|
8
8
|
|
|
9
9
|
interface StoredPlayer {
|
package/dist/game-server.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isDemoKey, SANDBOX_BASE_URL, PRODUCTION_BASE_URL, InvoServer, resolveEnvironment, verifyWebhook } from './chunk-
|
|
2
|
-
export { DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, SANDBOX_BASE_URL, baseUrlForKey, isDemoKey, resolveEnvironment, verifyInvoSignature } from './chunk-
|
|
3
|
-
export { SDK_VERSION } from './chunk-
|
|
4
|
-
import { InvoError } from './chunk-
|
|
5
|
-
export { InvoError } from './chunk-
|
|
1
|
+
import { isDemoKey, SANDBOX_BASE_URL, PRODUCTION_BASE_URL, InvoServer, resolveEnvironment, verifyWebhook } from './chunk-RPGRRZFY.js';
|
|
2
|
+
export { DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, SANDBOX_BASE_URL, baseUrlForKey, isDemoKey, resolveEnvironment, verifyInvoSignature } from './chunk-RPGRRZFY.js';
|
|
3
|
+
export { SDK_VERSION } from './chunk-LVVPRVPU.js';
|
|
4
|
+
import { InvoError } from './chunk-QEJB6HC7.js';
|
|
5
|
+
export { InvoError } from './chunk-QEJB6HC7.js';
|
|
6
6
|
import { createHash, randomBytes } from 'crypto';
|
|
7
7
|
import { promises, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import * as path from 'path';
|
package/dist/game.cjs
CHANGED
|
@@ -13,6 +13,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
13
13
|
this.status = args.status;
|
|
14
14
|
this.body = args.body ?? null;
|
|
15
15
|
this.requestId = args.requestId;
|
|
16
|
+
this.retryAfterHeader = args.retryAfterHeader;
|
|
16
17
|
Object.setPrototypeOf(this, _InvoError.prototype);
|
|
17
18
|
}
|
|
18
19
|
/** True if this is the "recipient isn't passkey-enrolled, fall back to claim code" signal. */
|
|
@@ -336,6 +337,16 @@ var InvoError = class _InvoError extends Error {
|
|
|
336
337
|
get isPartnerRailSuspended() {
|
|
337
338
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
338
339
|
}
|
|
340
|
+
/** True when INVO has paused new payments on the developer account
|
|
341
|
+
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
342
|
+
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
343
|
+
* subscription, Steam purchase or subscription start. Refunds, reads,
|
|
344
|
+
* balances, transfers and renewals of existing subscriptions keep working.
|
|
345
|
+
* Not retryable until INVO resumes payments; show a neutral "purchases are
|
|
346
|
+
* unavailable right now" message. */
|
|
347
|
+
get isPaymentsPaused() {
|
|
348
|
+
return this.code === "PAYMENTS_PAUSED";
|
|
349
|
+
}
|
|
339
350
|
/** True when init-purchase was given a `packId` that is not in INVO's Steam
|
|
340
351
|
* catalogue (`UNKNOWN_STEAM_PACK`, 400). The error body's
|
|
341
352
|
* `valid_pack_ids` lists what exists; re-fetch `steamPacks()` — the
|
|
@@ -1100,11 +1111,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
1100
1111
|
get isRewardExpired() {
|
|
1101
1112
|
return this.code === "vault_entry_expired";
|
|
1102
1113
|
}
|
|
1103
|
-
/**
|
|
1114
|
+
/**
|
|
1115
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
1116
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
1117
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
1118
|
+
*/
|
|
1104
1119
|
get retryAfter() {
|
|
1105
1120
|
const v = this.bodyObject()["retry_after"];
|
|
1106
1121
|
const n = typeof v === "string" ? v.trim() === "" ? NaN : Number(v) : v;
|
|
1107
|
-
|
|
1122
|
+
if (typeof n === "number" && Number.isFinite(n) && n >= 0) return n;
|
|
1123
|
+
const h = this.retryAfterHeader?.trim();
|
|
1124
|
+
if (h && /^\d+(\.\d+)?$/.test(h)) return Number(h);
|
|
1125
|
+
return void 0;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
1129
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
1130
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
1131
|
+
* and send the same request again. Branch on this, not on the message.
|
|
1132
|
+
*/
|
|
1133
|
+
get isRateLimited() {
|
|
1134
|
+
return this.code === "RATE_LIMITED" || this.code === "rate_limited" || this.status === 429;
|
|
1108
1135
|
}
|
|
1109
1136
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
1110
1137
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
@@ -1112,7 +1139,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
1112
1139
|
return this.body && typeof this.body === "object" ? this.body : {};
|
|
1113
1140
|
}
|
|
1114
1141
|
};
|
|
1115
|
-
function errorFromResponse(status, body, requestId) {
|
|
1142
|
+
function errorFromResponse(status, body, requestId, retryAfterHeader) {
|
|
1116
1143
|
let message = `INVO request failed (HTTP ${status})`;
|
|
1117
1144
|
let code;
|
|
1118
1145
|
let rawCode;
|
|
@@ -1134,7 +1161,7 @@ function errorFromResponse(status, body, requestId) {
|
|
|
1134
1161
|
} else if (typeof body === "string" && body.trim()) {
|
|
1135
1162
|
message = body;
|
|
1136
1163
|
}
|
|
1137
|
-
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId });
|
|
1164
|
+
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId, retryAfterHeader });
|
|
1138
1165
|
}
|
|
1139
1166
|
|
|
1140
1167
|
// src/shared/loyalty-events.ts
|
|
@@ -1333,7 +1360,7 @@ var _Http = class _Http {
|
|
|
1333
1360
|
requestId
|
|
1334
1361
|
});
|
|
1335
1362
|
if (!res.ok) {
|
|
1336
|
-
const err = errorFromResponse(res.status, parsed, requestId);
|
|
1363
|
+
const err = errorFromResponse(res.status, parsed, requestId, pickRetryAfterHeader(res.headers));
|
|
1337
1364
|
let wait;
|
|
1338
1365
|
if (idempotent && attempt < this.maxRetries && _Http.RETRIABLE_STATUS.has(res.status)) {
|
|
1339
1366
|
if (res.status === 429) {
|
|
@@ -1391,6 +1418,10 @@ function pickRequestId(headers) {
|
|
|
1391
1418
|
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1392
1419
|
return headers.get("x-invo-request-id") ?? headers.get("x-request-id") ?? void 0;
|
|
1393
1420
|
}
|
|
1421
|
+
function pickRetryAfterHeader(headers) {
|
|
1422
|
+
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1423
|
+
return headers.get("retry-after") ?? void 0;
|
|
1424
|
+
}
|
|
1394
1425
|
function retryAfterMs(parsed, headers) {
|
|
1395
1426
|
if (parsed && typeof parsed === "object") {
|
|
1396
1427
|
const v = parsed["retry_after"];
|
|
@@ -4833,7 +4864,7 @@ function mountInvoUI(container, economy, options = {}) {
|
|
|
4833
4864
|
}
|
|
4834
4865
|
|
|
4835
4866
|
// src/version.ts
|
|
4836
|
-
var SDK_VERSION = "3.
|
|
4867
|
+
var SDK_VERSION = "3.32.0";
|
|
4837
4868
|
|
|
4838
4869
|
exports.InvoGameEconomy = InvoGameEconomy;
|
|
4839
4870
|
exports.InvoGameError = InvoGameError;
|
package/dist/game.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as GamePlayer, q as GameWallet, c as GameCatalog, k as GamePurchase, h as GameItemPurchase, n as GameTransferKind, d as GameCatalogItem, f as GameCurrencyBalance, p as GameTransferStatus, m as GameTransferInput, o as GameTransferStart } from './types-jUxfYjiD.cjs';
|
|
2
2
|
export { e as GameCheckout, G as GameCurrencyKind, b as GameEconomyConfig, g as GameErrorBody, j as GamePremiumPack, a as GamePurchaseStatus, l as GameSession } from './types-jUxfYjiD.cjs';
|
|
3
|
-
import { A as ApproveHostedResult } from './hosted-approval-
|
|
4
|
-
import { D as DestinationGame, P as PendingCollectItem } from './types-
|
|
5
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
import { A as ApproveHostedResult } from './hosted-approval-li0XZFz-.cjs';
|
|
4
|
+
import { D as DestinationGame, P as PendingCollectItem } from './types-CaPHNjOU.cjs';
|
|
5
|
+
export { S as SDK_VERSION } from './version-CqwGhQXV.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* INVO game economy client (3.27.0), the browser half. It talks ONLY to your game server
|
package/dist/game.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as GamePlayer, q as GameWallet, c as GameCatalog, k as GamePurchase, h as GameItemPurchase, n as GameTransferKind, d as GameCatalogItem, f as GameCurrencyBalance, p as GameTransferStatus, m as GameTransferInput, o as GameTransferStart } from './types-jUxfYjiD.js';
|
|
2
2
|
export { e as GameCheckout, G as GameCurrencyKind, b as GameEconomyConfig, g as GameErrorBody, j as GamePremiumPack, a as GamePurchaseStatus, l as GameSession } from './types-jUxfYjiD.js';
|
|
3
|
-
import { A as ApproveHostedResult } from './hosted-approval-
|
|
4
|
-
import { D as DestinationGame, P as PendingCollectItem } from './types-
|
|
5
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
import { A as ApproveHostedResult } from './hosted-approval-ICho9KsV.js';
|
|
4
|
+
import { D as DestinationGame, P as PendingCollectItem } from './types-CaPHNjOU.js';
|
|
5
|
+
export { S as SDK_VERSION } from './version-CqwGhQXV.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* INVO game economy client (3.27.0), the browser half. It talks ONLY to your game server
|
package/dist/game.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InvoClient } from './chunk-
|
|
2
|
-
export { SDK_VERSION } from './chunk-
|
|
3
|
-
import { newEventId } from './chunk-
|
|
1
|
+
import { InvoClient } from './chunk-2XOKKKFR.js';
|
|
2
|
+
export { SDK_VERSION } from './chunk-LVVPRVPU.js';
|
|
3
|
+
import { newEventId } from './chunk-QEJB6HC7.js';
|
|
4
4
|
|
|
5
5
|
// src/game/client.ts
|
|
6
6
|
var InvoGameError = class extends Error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApproveResult, j as ConfirmReceiptResult } from './types-
|
|
1
|
+
import { A as ApproveResult, j as ConfirmReceiptResult } from './types-CaPHNjOU.js';
|
|
2
2
|
|
|
3
3
|
/** The four device-approval flows (`begin.flow`). */
|
|
4
4
|
type HostedFlow = "transfer" | "send" | "send_receipt" | "transfer_receipt";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApproveResult, j as ConfirmReceiptResult } from './types-
|
|
1
|
+
import { A as ApproveResult, j as ConfirmReceiptResult } from './types-CaPHNjOU.cjs';
|
|
2
2
|
|
|
3
3
|
/** The four device-approval flows (`begin.flow`). */
|
|
4
4
|
type HostedFlow = "transfer" | "send" | "send_receipt" | "transfer_receipt";
|
package/dist/index.cjs
CHANGED
|
@@ -13,6 +13,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
13
13
|
this.status = args.status;
|
|
14
14
|
this.body = args.body ?? null;
|
|
15
15
|
this.requestId = args.requestId;
|
|
16
|
+
this.retryAfterHeader = args.retryAfterHeader;
|
|
16
17
|
Object.setPrototypeOf(this, _InvoError.prototype);
|
|
17
18
|
}
|
|
18
19
|
/** True if this is the "recipient isn't passkey-enrolled, fall back to claim code" signal. */
|
|
@@ -336,6 +337,16 @@ var InvoError = class _InvoError extends Error {
|
|
|
336
337
|
get isPartnerRailSuspended() {
|
|
337
338
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
338
339
|
}
|
|
340
|
+
/** True when INVO has paused new payments on the developer account
|
|
341
|
+
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
342
|
+
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
343
|
+
* subscription, Steam purchase or subscription start. Refunds, reads,
|
|
344
|
+
* balances, transfers and renewals of existing subscriptions keep working.
|
|
345
|
+
* Not retryable until INVO resumes payments; show a neutral "purchases are
|
|
346
|
+
* unavailable right now" message. */
|
|
347
|
+
get isPaymentsPaused() {
|
|
348
|
+
return this.code === "PAYMENTS_PAUSED";
|
|
349
|
+
}
|
|
339
350
|
/** True when init-purchase was given a `packId` that is not in INVO's Steam
|
|
340
351
|
* catalogue (`UNKNOWN_STEAM_PACK`, 400). The error body's
|
|
341
352
|
* `valid_pack_ids` lists what exists; re-fetch `steamPacks()` — the
|
|
@@ -1100,11 +1111,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
1100
1111
|
get isRewardExpired() {
|
|
1101
1112
|
return this.code === "vault_entry_expired";
|
|
1102
1113
|
}
|
|
1103
|
-
/**
|
|
1114
|
+
/**
|
|
1115
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
1116
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
1117
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
1118
|
+
*/
|
|
1104
1119
|
get retryAfter() {
|
|
1105
1120
|
const v = this.bodyObject()["retry_after"];
|
|
1106
1121
|
const n = typeof v === "string" ? v.trim() === "" ? NaN : Number(v) : v;
|
|
1107
|
-
|
|
1122
|
+
if (typeof n === "number" && Number.isFinite(n) && n >= 0) return n;
|
|
1123
|
+
const h = this.retryAfterHeader?.trim();
|
|
1124
|
+
if (h && /^\d+(\.\d+)?$/.test(h)) return Number(h);
|
|
1125
|
+
return void 0;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
1129
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
1130
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
1131
|
+
* and send the same request again. Branch on this, not on the message.
|
|
1132
|
+
*/
|
|
1133
|
+
get isRateLimited() {
|
|
1134
|
+
return this.code === "RATE_LIMITED" || this.code === "rate_limited" || this.status === 429;
|
|
1108
1135
|
}
|
|
1109
1136
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
1110
1137
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
@@ -1112,7 +1139,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
1112
1139
|
return this.body && typeof this.body === "object" ? this.body : {};
|
|
1113
1140
|
}
|
|
1114
1141
|
};
|
|
1115
|
-
function errorFromResponse(status, body, requestId) {
|
|
1142
|
+
function errorFromResponse(status, body, requestId, retryAfterHeader) {
|
|
1116
1143
|
let message = `INVO request failed (HTTP ${status})`;
|
|
1117
1144
|
let code;
|
|
1118
1145
|
let rawCode;
|
|
@@ -1134,7 +1161,7 @@ function errorFromResponse(status, body, requestId) {
|
|
|
1134
1161
|
} else if (typeof body === "string" && body.trim()) {
|
|
1135
1162
|
message = body;
|
|
1136
1163
|
}
|
|
1137
|
-
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId });
|
|
1164
|
+
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId, retryAfterHeader });
|
|
1138
1165
|
}
|
|
1139
1166
|
|
|
1140
1167
|
// src/shared/http.ts
|
|
@@ -1268,7 +1295,7 @@ var _Http = class _Http {
|
|
|
1268
1295
|
requestId
|
|
1269
1296
|
});
|
|
1270
1297
|
if (!res.ok) {
|
|
1271
|
-
const err = errorFromResponse(res.status, parsed, requestId);
|
|
1298
|
+
const err = errorFromResponse(res.status, parsed, requestId, pickRetryAfterHeader(res.headers));
|
|
1272
1299
|
let wait;
|
|
1273
1300
|
if (idempotent && attempt < this.maxRetries && _Http.RETRIABLE_STATUS.has(res.status)) {
|
|
1274
1301
|
if (res.status === 429) {
|
|
@@ -1326,6 +1353,10 @@ function pickRequestId(headers) {
|
|
|
1326
1353
|
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1327
1354
|
return headers.get("x-invo-request-id") ?? headers.get("x-request-id") ?? void 0;
|
|
1328
1355
|
}
|
|
1356
|
+
function pickRetryAfterHeader(headers) {
|
|
1357
|
+
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1358
|
+
return headers.get("retry-after") ?? void 0;
|
|
1359
|
+
}
|
|
1329
1360
|
function retryAfterMs(parsed, headers) {
|
|
1330
1361
|
if (parsed && typeof parsed === "object") {
|
|
1331
1362
|
const v = parsed["retry_after"];
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as PurchaseStatusResult, b as PurchaseCredited, c as PurchaseExpired, d as PurchaseRefunded, e as PurchaseRefused, C as CheckoutClientConfig, H as Http, f as PurchaseStatusInput, g as CallOptions, W as WaitForPurchaseInput, M as MountCheckoutOptions, h as CheckoutMountHandle, i as ClientConfig, A as ApproveResult, j as ConfirmReceiptResult, k as PhoneChangeApprovalsResult, l as ApprovePhoneChangeInput, m as ApprovePhoneChangeResult, L as LinkDeviceResult, n as PendingCollectResult, o as DestinationsQuery, p as DestinationsResult, B as BalanceResult, q as LoyaltyCardsResult, r as LoyaltyVaultResult, R as RedeemRewardResult, s as RewardsPageLink, E as EnrollmentBeginResult, t as EnrollmentVerifyResult, u as RecoveryBeginResult, v as RecoveryCompleteResult } from './types-
|
|
2
|
-
export { w as BalanceRow, x as CheckoutPurchaseStatus, y as ClaimDelivery, D as DestinationGame, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, U as LoyaltyVaultEntry, P as PendingCollectItem, V as PhoneChangeApproval, X as PhoneChangeDeviceSignal, Y as PurchaseRefusalReason, Z as Rail, _ as VerificationMethod } from './types-
|
|
3
|
-
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-
|
|
4
|
-
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-
|
|
1
|
+
import { a as PurchaseStatusResult, b as PurchaseCredited, c as PurchaseExpired, d as PurchaseRefunded, e as PurchaseRefused, C as CheckoutClientConfig, H as Http, f as PurchaseStatusInput, g as CallOptions, W as WaitForPurchaseInput, M as MountCheckoutOptions, h as CheckoutMountHandle, i as ClientConfig, A as ApproveResult, j as ConfirmReceiptResult, k as PhoneChangeApprovalsResult, l as ApprovePhoneChangeInput, m as ApprovePhoneChangeResult, L as LinkDeviceResult, n as PendingCollectResult, o as DestinationsQuery, p as DestinationsResult, B as BalanceResult, q as LoyaltyCardsResult, r as LoyaltyVaultResult, R as RedeemRewardResult, s as RewardsPageLink, E as EnrollmentBeginResult, t as EnrollmentVerifyResult, u as RecoveryBeginResult, v as RecoveryCompleteResult } from './types-CaPHNjOU.cjs';
|
|
2
|
+
export { w as BalanceRow, x as CheckoutPurchaseStatus, y as ClaimDelivery, D as DestinationGame, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, U as LoyaltyVaultEntry, P as PendingCollectItem, V as PhoneChangeApproval, X as PhoneChangeDeviceSignal, Y as PurchaseRefusalReason, Z as Rail, _ as VerificationMethod } from './types-CaPHNjOU.cjs';
|
|
3
|
+
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-li0XZFz-.cjs';
|
|
4
|
+
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-li0XZFz-.cjs';
|
|
5
5
|
import { R as ReportGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.cjs';
|
|
6
6
|
export { G as GameEventType } from './loyalty-events-CmDw2ZoR.cjs';
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as PurchaseStatusResult, b as PurchaseCredited, c as PurchaseExpired, d as PurchaseRefunded, e as PurchaseRefused, C as CheckoutClientConfig, H as Http, f as PurchaseStatusInput, g as CallOptions, W as WaitForPurchaseInput, M as MountCheckoutOptions, h as CheckoutMountHandle, i as ClientConfig, A as ApproveResult, j as ConfirmReceiptResult, k as PhoneChangeApprovalsResult, l as ApprovePhoneChangeInput, m as ApprovePhoneChangeResult, L as LinkDeviceResult, n as PendingCollectResult, o as DestinationsQuery, p as DestinationsResult, B as BalanceResult, q as LoyaltyCardsResult, r as LoyaltyVaultResult, R as RedeemRewardResult, s as RewardsPageLink, E as EnrollmentBeginResult, t as EnrollmentVerifyResult, u as RecoveryBeginResult, v as RecoveryCompleteResult } from './types-
|
|
2
|
-
export { w as BalanceRow, x as CheckoutPurchaseStatus, y as ClaimDelivery, D as DestinationGame, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, U as LoyaltyVaultEntry, P as PendingCollectItem, V as PhoneChangeApproval, X as PhoneChangeDeviceSignal, Y as PurchaseRefusalReason, Z as Rail, _ as VerificationMethod } from './types-
|
|
3
|
-
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-
|
|
4
|
-
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-
|
|
1
|
+
import { a as PurchaseStatusResult, b as PurchaseCredited, c as PurchaseExpired, d as PurchaseRefunded, e as PurchaseRefused, C as CheckoutClientConfig, H as Http, f as PurchaseStatusInput, g as CallOptions, W as WaitForPurchaseInput, M as MountCheckoutOptions, h as CheckoutMountHandle, i as ClientConfig, A as ApproveResult, j as ConfirmReceiptResult, k as PhoneChangeApprovalsResult, l as ApprovePhoneChangeInput, m as ApprovePhoneChangeResult, L as LinkDeviceResult, n as PendingCollectResult, o as DestinationsQuery, p as DestinationsResult, B as BalanceResult, q as LoyaltyCardsResult, r as LoyaltyVaultResult, R as RedeemRewardResult, s as RewardsPageLink, E as EnrollmentBeginResult, t as EnrollmentVerifyResult, u as RecoveryBeginResult, v as RecoveryCompleteResult } from './types-CaPHNjOU.js';
|
|
2
|
+
export { w as BalanceRow, x as CheckoutPurchaseStatus, y as ClaimDelivery, D as DestinationGame, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, U as LoyaltyVaultEntry, P as PendingCollectItem, V as PhoneChangeApproval, X as PhoneChangeDeviceSignal, Y as PurchaseRefusalReason, Z as Rail, _ as VerificationMethod } from './types-CaPHNjOU.js';
|
|
3
|
+
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-ICho9KsV.js';
|
|
4
|
+
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-ICho9KsV.js';
|
|
5
5
|
import { R as ReportGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.js';
|
|
6
6
|
export { G as GameEventType } from './loyalty-events-CmDw2ZoR.js';
|
|
7
7
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CheckoutClient, InvoClient, PlatformCommerceClient } from './chunk-
|
|
2
|
-
export { InvoError, isPurchaseCredited, isPurchaseExpired, isPurchaseRefunded, isPurchaseRefused, nothingWasCharged, phoneChangeSignalMessage } from './chunk-
|
|
1
|
+
export { CheckoutClient, InvoClient, PlatformCommerceClient } from './chunk-2XOKKKFR.js';
|
|
2
|
+
export { InvoError, isPurchaseCredited, isPurchaseExpired, isPurchaseRefunded, isPurchaseRefused, nothingWasCharged, phoneChangeSignalMessage } from './chunk-QEJB6HC7.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|