@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.
@@ -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) {
@@ -2699,6 +2722,7 @@ var Delopay = class {
2699
2722
  this.analyticsDashboard = new AnalyticsDashboard(request);
2700
2723
  this.featureMatrix = new FeatureMatrix(request);
2701
2724
  this.cards = new Cards(request);
2725
+ this.search = new Search(request);
2702
2726
  }
2703
2727
  /**
2704
2728
  * Set a JWT token for subsequent requests.
@@ -3568,6 +3592,7 @@ function shadowFor(style) {
3568
3592
  export {
3569
3593
  DelopayError,
3570
3594
  DelopayAuthenticationError,
3595
+ Search,
3571
3596
  Webhooks,
3572
3597
  Analytics,
3573
3598
  AnalyticsDashboard,
@@ -3608,4 +3633,4 @@ export {
3608
3633
  applyBrandingVariables,
3609
3634
  shadowFor
3610
3635
  };
3611
- //# sourceMappingURL=chunk-EPZVT7EJ.js.map
3636
+ //# sourceMappingURL=chunk-4PBWNLYU.js.map