@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @getenginex/sdk-igaming
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 07cffe0: Omitted and `null` lists (IE-659): the protobuf `list()` helper now reads `null` as `[]` as well as an omitted list, so the bonus cursor pages (`listPublicOffers`, `listOffers`, `listParticipations`, `listPositions`), `getOverview` and every nested campaign list never hand out `null`; `toCursorPage` also falls back to `[]` when a core older than 0.11.1 lets a malformed list through in `'warn'`. `casino.listCategories`, `listProviders` and `getBiggestWinners` read a `null` body as `[]`, and `referrals.listHistory` reads a `null` pagination as absent. With core 0.11.1, a `null` jackpot-games pagination in `'warn'` no longer fails with `UNKNOWN` (a `TypeError`).
|
|
8
|
+
|
|
3
9
|
## 0.10.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -107,7 +107,7 @@ function count() {
|
|
|
107
107
|
return z4__namespace._default(z4__namespace.number(), 0);
|
|
108
108
|
}
|
|
109
109
|
function list(item) {
|
|
110
|
-
return
|
|
110
|
+
return nullableList(item);
|
|
111
111
|
}
|
|
112
112
|
function durationSeconds() {
|
|
113
113
|
return z4__namespace.pipe(
|
|
@@ -530,7 +530,8 @@ var promoCodeOfferSchema = /* @__PURE__ */ extension.lazy(
|
|
|
530
530
|
() => extension.wire({ offer: offerSchema2(), localized_content: localizedContent() })
|
|
531
531
|
);
|
|
532
532
|
function toCursorPage(key, data) {
|
|
533
|
-
const
|
|
533
|
+
const items = data[key];
|
|
534
|
+
const page = { items: Array.isArray(items) ? items : [] };
|
|
534
535
|
if (data.nextCursor) page.nextCursor = data.nextCursor;
|
|
535
536
|
return page;
|
|
536
537
|
}
|
|
@@ -701,12 +702,12 @@ var gameSchema = /* @__PURE__ */ extension.lazy(
|
|
|
701
702
|
})
|
|
702
703
|
);
|
|
703
704
|
var categoriesSchema = /* @__PURE__ */ extension.lazy(
|
|
704
|
-
() =>
|
|
705
|
+
() => nullableList(
|
|
705
706
|
extension.wire({ slug: z4__namespace.string(), name: z4__namespace.string(), icon: z4__namespace.string(), game_count: z4__namespace.number(), priority: z4__namespace.number() })
|
|
706
707
|
)
|
|
707
708
|
);
|
|
708
709
|
var providersSchema = /* @__PURE__ */ extension.lazy(
|
|
709
|
-
() =>
|
|
710
|
+
() => nullableList(extension.wire({ id: z4__namespace.string(), name: z4__namespace.string(), game_count: z4__namespace.number() }))
|
|
710
711
|
);
|
|
711
712
|
var launchSchema = /* @__PURE__ */ extension.lazy(
|
|
712
713
|
() => z4__namespace.pipe(
|
|
@@ -749,7 +750,7 @@ var transactionSchema = /* @__PURE__ */ extension.lazy(
|
|
|
749
750
|
})
|
|
750
751
|
);
|
|
751
752
|
var winnersSchema = /* @__PURE__ */ extension.lazy(
|
|
752
|
-
() =>
|
|
753
|
+
() => nullableList(
|
|
753
754
|
extension.wire({
|
|
754
755
|
player: z4__namespace.string(),
|
|
755
756
|
amount: minorUnits(),
|
|
@@ -1270,7 +1271,11 @@ var historySchema = /* @__PURE__ */ extension.lazy(
|
|
|
1270
1271
|
() => extension.wire({
|
|
1271
1272
|
referral_code: optionalText(),
|
|
1272
1273
|
referrals: nullableList(referralSchema()),
|
|
1273
|
-
|
|
1274
|
+
// A nil pointer (`null`) reads as absent, like an omitted pagination.
|
|
1275
|
+
pagination: z4__namespace.pipe(
|
|
1276
|
+
z4__namespace.nullish(extension.wire({ page: count2(), limit: count2(), total_items: count2() })),
|
|
1277
|
+
z4__namespace.transform((value) => value ?? void 0)
|
|
1278
|
+
)
|
|
1274
1279
|
})
|
|
1275
1280
|
);
|
|
1276
1281
|
var positiveInt = (value, fallback) => typeof value === "number" && Number.isSafeInteger(value) && value >= 1 ? value : fallback;
|