@getenginex/sdk-igaming 0.10.0 → 0.10.1
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/index.cjs +11 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -85,7 +85,7 @@ function count() {
|
|
|
85
85
|
return z4._default(z4.number(), 0);
|
|
86
86
|
}
|
|
87
87
|
function list(item) {
|
|
88
|
-
return
|
|
88
|
+
return nullableList(item);
|
|
89
89
|
}
|
|
90
90
|
function durationSeconds() {
|
|
91
91
|
return z4.pipe(
|
|
@@ -508,7 +508,8 @@ var promoCodeOfferSchema = /* @__PURE__ */ lazy(
|
|
|
508
508
|
() => wire({ offer: offerSchema2(), localized_content: localizedContent() })
|
|
509
509
|
);
|
|
510
510
|
function toCursorPage(key, data) {
|
|
511
|
-
const
|
|
511
|
+
const items = data[key];
|
|
512
|
+
const page = { items: Array.isArray(items) ? items : [] };
|
|
512
513
|
if (data.nextCursor) page.nextCursor = data.nextCursor;
|
|
513
514
|
return page;
|
|
514
515
|
}
|
|
@@ -679,12 +680,12 @@ var gameSchema = /* @__PURE__ */ lazy(
|
|
|
679
680
|
})
|
|
680
681
|
);
|
|
681
682
|
var categoriesSchema = /* @__PURE__ */ lazy(
|
|
682
|
-
() =>
|
|
683
|
+
() => nullableList(
|
|
683
684
|
wire({ slug: z4.string(), name: z4.string(), icon: z4.string(), game_count: z4.number(), priority: z4.number() })
|
|
684
685
|
)
|
|
685
686
|
);
|
|
686
687
|
var providersSchema = /* @__PURE__ */ lazy(
|
|
687
|
-
() =>
|
|
688
|
+
() => nullableList(wire({ id: z4.string(), name: z4.string(), game_count: z4.number() }))
|
|
688
689
|
);
|
|
689
690
|
var launchSchema = /* @__PURE__ */ lazy(
|
|
690
691
|
() => z4.pipe(
|
|
@@ -727,7 +728,7 @@ var transactionSchema = /* @__PURE__ */ lazy(
|
|
|
727
728
|
})
|
|
728
729
|
);
|
|
729
730
|
var winnersSchema = /* @__PURE__ */ lazy(
|
|
730
|
-
() =>
|
|
731
|
+
() => nullableList(
|
|
731
732
|
wire({
|
|
732
733
|
player: z4.string(),
|
|
733
734
|
amount: minorUnits(),
|
|
@@ -1248,7 +1249,11 @@ var historySchema = /* @__PURE__ */ lazy(
|
|
|
1248
1249
|
() => wire({
|
|
1249
1250
|
referral_code: optionalText(),
|
|
1250
1251
|
referrals: nullableList(referralSchema()),
|
|
1251
|
-
|
|
1252
|
+
// A nil pointer (`null`) reads as absent, like an omitted pagination.
|
|
1253
|
+
pagination: z4.pipe(
|
|
1254
|
+
z4.nullish(wire({ page: count2(), limit: count2(), total_items: count2() })),
|
|
1255
|
+
z4.transform((value) => value ?? void 0)
|
|
1256
|
+
)
|
|
1252
1257
|
})
|
|
1253
1258
|
);
|
|
1254
1259
|
var positiveInt = (value, fallback) => typeof value === "number" && Number.isSafeInteger(value) && value >= 1 ? value : fallback;
|