@delopay/sdk 0.21.0 → 0.22.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-4PBWNLYU.js} +26 -1
- package/dist/chunk-4PBWNLYU.js.map +1 -0
- package/dist/index.cjs +26 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.js +3 -1
- package/dist/internal.cjs +26 -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) {
|
|
@@ -2765,6 +2789,7 @@ var Delopay = class {
|
|
|
2765
2789
|
this.analyticsDashboard = new AnalyticsDashboard(request);
|
|
2766
2790
|
this.featureMatrix = new FeatureMatrix(request);
|
|
2767
2791
|
this.cards = new Cards(request);
|
|
2792
|
+
this.search = new Search(request);
|
|
2768
2793
|
}
|
|
2769
2794
|
/**
|
|
2770
2795
|
* Set a JWT token for subsequent requests.
|
|
@@ -3650,6 +3675,7 @@ function shadowFor(style) {
|
|
|
3650
3675
|
Files,
|
|
3651
3676
|
Forex,
|
|
3652
3677
|
Regions,
|
|
3678
|
+
Search,
|
|
3653
3679
|
Subscriptions,
|
|
3654
3680
|
Webhooks,
|
|
3655
3681
|
applyBrandingVariables,
|