@takeal/cusfront-sdk 0.3.12 → 0.3.18
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 +19 -0
- package/README.md +4 -2
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/cards.cjs +10 -0
- package/dist/resources/cards.cjs.map +1 -1
- package/dist/resources/cards.d.cts +10 -1
- package/dist/resources/cards.d.ts +10 -1
- package/dist/resources/cards.js +10 -0
- package/dist/resources/cards.js.map +1 -1
- package/dist/resources/deposits.cjs.map +1 -1
- package/dist/resources/deposits.d.cts +9 -1
- package/dist/resources/deposits.d.ts +9 -1
- package/dist/resources/deposits.js.map +1 -1
- package/dist/telegram.cjs +11 -1
- package/dist/telegram.cjs.map +1 -1
- package/dist/telegram.js +11 -1
- package/dist/telegram.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -339,6 +339,16 @@ var CardsResource = class {
|
|
|
339
339
|
`/me/card-products/${encodeURIComponent(id)}`
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* The public catalog: the same products, order and default as
|
|
344
|
+
* {@link listProducts}, but readable before sign-in, for a landing page or
|
|
345
|
+
* the cabinet's first screen. Prices are list prices (`discount_bps` is
|
|
346
|
+
* always 0); once the user is signed in, {@link listProducts} shows what
|
|
347
|
+
* they pay. The API lets caches keep this response for a minute.
|
|
348
|
+
*/
|
|
349
|
+
async catalog() {
|
|
350
|
+
return this.http.get("/card-products");
|
|
351
|
+
}
|
|
342
352
|
/**
|
|
343
353
|
* Rename the caller's own card or change its design. Resolves to the
|
|
344
354
|
* updated card. 404 if the card isn't the caller's; 400 `invalid_name` /
|
|
@@ -752,7 +762,7 @@ var DevicesResource = class {
|
|
|
752
762
|
};
|
|
753
763
|
|
|
754
764
|
// src/version.ts
|
|
755
|
-
var SDK_VERSION = "0.3.
|
|
765
|
+
var SDK_VERSION = "0.3.18";
|
|
756
766
|
|
|
757
767
|
// src/client-platform.ts
|
|
758
768
|
var CLIENT_HEADER = "X-Takeal-Client";
|