@takeal/cusfront-sdk 0.3.7 → 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 +32 -0
- package/README.md +6 -4
- package/dist/index.cjs +15 -8
- 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 +15 -8
- package/dist/index.js.map +1 -1
- package/dist/resources/cards.cjs +14 -7
- package/dist/resources/cards.cjs.map +1 -1
- package/dist/resources/cards.d.cts +20 -12
- package/dist/resources/cards.d.ts +20 -12
- package/dist/resources/cards.js +14 -7
- 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 +15 -8
- package/dist/telegram.cjs.map +1 -1
- package/dist/telegram.js +15 -8
- package/dist/telegram.js.map +1 -1
- package/package.json +1 -1
package/dist/telegram.js
CHANGED
|
@@ -336,6 +336,16 @@ var CardsResource = class {
|
|
|
336
336
|
`/me/card-products/${encodeURIComponent(id)}`
|
|
337
337
|
);
|
|
338
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* The public catalog: the same products, order and default as
|
|
341
|
+
* {@link listProducts}, but readable before sign-in, for a landing page or
|
|
342
|
+
* the cabinet's first screen. Prices are list prices (`discount_bps` is
|
|
343
|
+
* always 0); once the user is signed in, {@link listProducts} shows what
|
|
344
|
+
* they pay. The API lets caches keep this response for a minute.
|
|
345
|
+
*/
|
|
346
|
+
async catalog() {
|
|
347
|
+
return this.http.get("/card-products");
|
|
348
|
+
}
|
|
339
349
|
/**
|
|
340
350
|
* Rename the caller's own card or change its design. Resolves to the
|
|
341
351
|
* updated card. 404 if the card isn't the caller's; 400 `invalid_name` /
|
|
@@ -379,8 +389,8 @@ var CardsResource = class {
|
|
|
379
389
|
);
|
|
380
390
|
}
|
|
381
391
|
/**
|
|
382
|
-
* Reveal the FULL PAN + CVV for the caller's own card.
|
|
383
|
-
*
|
|
392
|
+
* Reveal the FULL PAN + CVV for the caller's own card. The signed-in
|
|
393
|
+
* session is all the API asks for; the call is rate-limited and audited
|
|
384
394
|
* server-side. The Takeal API never persists this data and marks the
|
|
385
395
|
* response no-store; the SDK returns it verbatim and holds nothing.
|
|
386
396
|
*
|
|
@@ -391,11 +401,8 @@ var CardsResource = class {
|
|
|
391
401
|
* 401 bad re-auth · 403 not your card · 429 rate-limited · 501 connector
|
|
392
402
|
* has no sensitive-data endpoint · 503 provider error.
|
|
393
403
|
*/
|
|
394
|
-
async reveal(id,
|
|
395
|
-
return this.http.post(
|
|
396
|
-
`/me/cards/${encodeURIComponent(id)}/reveal`,
|
|
397
|
-
{ body: { password: input.password, totp_code: input.totpCode } }
|
|
398
|
-
);
|
|
404
|
+
async reveal(id, _input) {
|
|
405
|
+
return this.http.post(`/me/cards/${encodeURIComponent(id)}/reveal`);
|
|
399
406
|
}
|
|
400
407
|
/** Unfreeze a previously-frozen card. Idempotent on an already-active card. */
|
|
401
408
|
async unfreeze(id) {
|
|
@@ -749,7 +756,7 @@ var DevicesResource = class {
|
|
|
749
756
|
};
|
|
750
757
|
|
|
751
758
|
// src/version.ts
|
|
752
|
-
var SDK_VERSION = "0.3.
|
|
759
|
+
var SDK_VERSION = "0.3.18";
|
|
753
760
|
|
|
754
761
|
// src/client-platform.ts
|
|
755
762
|
var CLIENT_HEADER = "X-Takeal-Client";
|