@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
|
@@ -1681,6 +1681,29 @@ var RoutingDecisionManager = class {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
};
|
|
1683
1683
|
|
|
1684
|
+
// src/resources/search.ts
|
|
1685
|
+
var Search = class {
|
|
1686
|
+
constructor(request) {
|
|
1687
|
+
this.request = request;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* Search every supported index for `query`.
|
|
1691
|
+
* `POST /analytics/v1/search`
|
|
1692
|
+
*
|
|
1693
|
+
* @example
|
|
1694
|
+
* ```typescript
|
|
1695
|
+
* const groups = await delopay.search.global({ query: 'pay_abc' });
|
|
1696
|
+
* for (const g of groups) console.log(g.index, g.count);
|
|
1697
|
+
* ```
|
|
1698
|
+
*/
|
|
1699
|
+
async global(params, options) {
|
|
1700
|
+
return this.request("POST", "/analytics/v1/search", {
|
|
1701
|
+
body: params,
|
|
1702
|
+
...options?.signal ? { signal: options.signal } : {}
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1684
1707
|
// src/resources/shops.ts
|
|
1685
1708
|
var ShopGateways = class {
|
|
1686
1709
|
constructor(request) {
|
|
@@ -1996,6 +2019,19 @@ var Users = class {
|
|
|
1996
2019
|
async acceptInvitation(params) {
|
|
1997
2020
|
return this.request("POST", "/user/user/invite/accept", { body: params });
|
|
1998
2021
|
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Accept an invitation via the email-link flow.
|
|
2024
|
+
*
|
|
2025
|
+
* Caller must already hold a `SinglePurposeToken` with
|
|
2026
|
+
* `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
|
|
2027
|
+
* required TOTP step) and have set it on the client via `setJwtToken`.
|
|
2028
|
+
* `body.token` must still be the original `EmailToken` from the
|
|
2029
|
+
* invite-link URL — the handler decodes it a second time to find the
|
|
2030
|
+
* invitee and the entity lineage.
|
|
2031
|
+
*/
|
|
2032
|
+
async acceptInviteFromEmail(params) {
|
|
2033
|
+
return this.request("POST", "/user/accept_invite_from_email", { body: params });
|
|
2034
|
+
}
|
|
1999
2035
|
/**
|
|
2000
2036
|
* Start TOTP setup (or no-op if already set).
|
|
2001
2037
|
*
|
|
@@ -2699,6 +2735,7 @@ var Delopay = class {
|
|
|
2699
2735
|
this.analyticsDashboard = new AnalyticsDashboard(request);
|
|
2700
2736
|
this.featureMatrix = new FeatureMatrix(request);
|
|
2701
2737
|
this.cards = new Cards(request);
|
|
2738
|
+
this.search = new Search(request);
|
|
2702
2739
|
}
|
|
2703
2740
|
/**
|
|
2704
2741
|
* Set a JWT token for subsequent requests.
|
|
@@ -3568,6 +3605,7 @@ function shadowFor(style) {
|
|
|
3568
3605
|
export {
|
|
3569
3606
|
DelopayError,
|
|
3570
3607
|
DelopayAuthenticationError,
|
|
3608
|
+
Search,
|
|
3571
3609
|
Webhooks,
|
|
3572
3610
|
Analytics,
|
|
3573
3611
|
AnalyticsDashboard,
|
|
@@ -3608,4 +3646,4 @@ export {
|
|
|
3608
3646
|
applyBrandingVariables,
|
|
3609
3647
|
shadowFor
|
|
3610
3648
|
};
|
|
3611
|
-
//# sourceMappingURL=chunk-
|
|
3649
|
+
//# sourceMappingURL=chunk-ZGDBGVGC.js.map
|