@delopay/sdk 0.21.1 → 0.23.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/dist/{chunk-EPZVT7EJ.js → chunk-ZGDBGVGC.js} +39 -1
- package/dist/chunk-ZGDBGVGC.js.map +1 -0
- package/dist/index.cjs +39 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -1
- package/dist/index.d.ts +50 -1
- package/dist/index.js +3 -1
- package/dist/internal.cjs +39 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-EPZVT7EJ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
Files: () => Files,
|
|
39
39
|
Forex: () => Forex,
|
|
40
40
|
Regions: () => Regions,
|
|
41
|
+
Search: () => Search,
|
|
41
42
|
Subscriptions: () => Subscriptions,
|
|
42
43
|
Webhooks: () => Webhooks,
|
|
43
44
|
applyBrandingVariables: () => applyBrandingVariables,
|
|
@@ -1747,6 +1748,29 @@ var RoutingDecisionManager = class {
|
|
|
1747
1748
|
}
|
|
1748
1749
|
};
|
|
1749
1750
|
|
|
1751
|
+
// src/resources/search.ts
|
|
1752
|
+
var Search = class {
|
|
1753
|
+
constructor(request) {
|
|
1754
|
+
this.request = request;
|
|
1755
|
+
}
|
|
1756
|
+
/**
|
|
1757
|
+
* Search every supported index for `query`.
|
|
1758
|
+
* `POST /analytics/v1/search`
|
|
1759
|
+
*
|
|
1760
|
+
* @example
|
|
1761
|
+
* ```typescript
|
|
1762
|
+
* const groups = await delopay.search.global({ query: 'pay_abc' });
|
|
1763
|
+
* for (const g of groups) console.log(g.index, g.count);
|
|
1764
|
+
* ```
|
|
1765
|
+
*/
|
|
1766
|
+
async global(params, options) {
|
|
1767
|
+
return this.request("POST", "/analytics/v1/search", {
|
|
1768
|
+
body: params,
|
|
1769
|
+
...options?.signal ? { signal: options.signal } : {}
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
};
|
|
1773
|
+
|
|
1750
1774
|
// src/resources/shops.ts
|
|
1751
1775
|
var ShopGateways = class {
|
|
1752
1776
|
constructor(request) {
|
|
@@ -2062,6 +2086,19 @@ var Users = class {
|
|
|
2062
2086
|
async acceptInvitation(params) {
|
|
2063
2087
|
return this.request("POST", "/user/user/invite/accept", { body: params });
|
|
2064
2088
|
}
|
|
2089
|
+
/**
|
|
2090
|
+
* Accept an invitation via the email-link flow.
|
|
2091
|
+
*
|
|
2092
|
+
* Caller must already hold a `SinglePurposeToken` with
|
|
2093
|
+
* `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
|
|
2094
|
+
* required TOTP step) and have set it on the client via `setJwtToken`.
|
|
2095
|
+
* `body.token` must still be the original `EmailToken` from the
|
|
2096
|
+
* invite-link URL — the handler decodes it a second time to find the
|
|
2097
|
+
* invitee and the entity lineage.
|
|
2098
|
+
*/
|
|
2099
|
+
async acceptInviteFromEmail(params) {
|
|
2100
|
+
return this.request("POST", "/user/accept_invite_from_email", { body: params });
|
|
2101
|
+
}
|
|
2065
2102
|
/**
|
|
2066
2103
|
* Start TOTP setup (or no-op if already set).
|
|
2067
2104
|
*
|
|
@@ -2765,6 +2802,7 @@ var Delopay = class {
|
|
|
2765
2802
|
this.analyticsDashboard = new AnalyticsDashboard(request);
|
|
2766
2803
|
this.featureMatrix = new FeatureMatrix(request);
|
|
2767
2804
|
this.cards = new Cards(request);
|
|
2805
|
+
this.search = new Search(request);
|
|
2768
2806
|
}
|
|
2769
2807
|
/**
|
|
2770
2808
|
* Set a JWT token for subsequent requests.
|
|
@@ -3650,6 +3688,7 @@ function shadowFor(style) {
|
|
|
3650
3688
|
Files,
|
|
3651
3689
|
Forex,
|
|
3652
3690
|
Regions,
|
|
3691
|
+
Search,
|
|
3653
3692
|
Subscriptions,
|
|
3654
3693
|
Webhooks,
|
|
3655
3694
|
applyBrandingVariables,
|