@proxyrequest/sdk 4.0.0 → 4.1.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/index.js CHANGED
@@ -1812,6 +1812,7 @@ var LocationsResource = class {
1812
1812
  query: {
1813
1813
  code: options.code,
1814
1814
  country__code: options.countryCode,
1815
+ include_asns: options.includeAsns,
1815
1816
  limit: options.limit,
1816
1817
  name: options.name,
1817
1818
  offset: options.offset,
@@ -1836,7 +1837,10 @@ var LocationsResource = class {
1836
1837
  path: "/locations/cities/{id}"
1837
1838
  }, {
1838
1839
  path: { id: options.id },
1839
- query: { package_id: options.packageId },
1840
+ query: {
1841
+ include_asns: options.includeAsns,
1842
+ package_id: options.packageId
1843
+ },
1840
1844
  headers: { "Accept-Language": options.acceptLanguage },
1841
1845
  ...options.request === void 0 ? {} : { request: options.request }
1842
1846
  });
@@ -1895,6 +1899,7 @@ var LocationsResource = class {
1895
1899
  }, {
1896
1900
  query: {
1897
1901
  code: options.code,
1902
+ include_asns: options.includeAsns,
1898
1903
  limit: options.limit,
1899
1904
  name: options.name,
1900
1905
  offset: options.offset,
@@ -1918,7 +1923,10 @@ var LocationsResource = class {
1918
1923
  path: "/locations/countries/{id}"
1919
1924
  }, {
1920
1925
  path: { id: options.id },
1921
- query: { package_id: options.packageId },
1926
+ query: {
1927
+ include_asns: options.includeAsns,
1928
+ package_id: options.packageId
1929
+ },
1922
1930
  headers: { "Accept-Language": options.acceptLanguage },
1923
1931
  ...options.request === void 0 ? {} : { request: options.request }
1924
1932
  });
@@ -1962,6 +1970,7 @@ var LocationsResource = class {
1962
1970
  query: {
1963
1971
  code: options.code,
1964
1972
  country__code: options.countryCode,
1973
+ include_asns: options.includeAsns,
1965
1974
  limit: options.limit,
1966
1975
  name: options.name,
1967
1976
  offset: options.offset,
@@ -1985,7 +1994,10 @@ var LocationsResource = class {
1985
1994
  path: "/locations/regions/{id}"
1986
1995
  }, {
1987
1996
  path: { id: options.id },
1988
- query: { package_id: options.packageId },
1997
+ query: {
1998
+ include_asns: options.includeAsns,
1999
+ package_id: options.packageId
2000
+ },
1989
2001
  headers: { "Accept-Language": options.acceptLanguage },
1990
2002
  ...options.request === void 0 ? {} : { request: options.request }
1991
2003
  });
@@ -2313,6 +2325,31 @@ var ProfileResource = class {
2313
2325
  });
2314
2326
  }
2315
2327
  };
2328
+ var ProvidersResource = class {
2329
+ #client;
2330
+ constructor(client) {
2331
+ this.#client = client;
2332
+ }
2333
+ /** List provider data balances */
2334
+ async listDataBalances(options = {}) {
2335
+ return (await this.listDataBalancesWithResponse(options)).data;
2336
+ }
2337
+ /** List provider data balances; include response metadata. */
2338
+ async listDataBalancesWithResponse(options = {}) {
2339
+ return this.#client._callWithResponse({
2340
+ operationId: "providers_data_balances_list",
2341
+ method: "GET",
2342
+ path: "/providers/data-balances"
2343
+ }, {
2344
+ query: {
2345
+ limit: options.limit,
2346
+ offset: options.offset
2347
+ },
2348
+ headers: { "Accept-Language": options.acceptLanguage },
2349
+ ...options.request === void 0 ? {} : { request: options.request }
2350
+ });
2351
+ }
2352
+ };
2316
2353
  var ProxiesResource = class {
2317
2354
  #client;
2318
2355
  constructor(client) {
@@ -2775,6 +2812,7 @@ function createResourceCollection(client) {
2775
2812
  orders: new OrdersResource(client),
2776
2813
  packages: new PackagesResource(client),
2777
2814
  profile: new ProfileResource(client),
2815
+ providers: new ProvidersResource(client),
2778
2816
  proxies: new ProxiesResource(client),
2779
2817
  rewards: new RewardsResource(client),
2780
2818
  settings: new SettingsResource(client),
@@ -2822,7 +2860,7 @@ function offsetFromUrl(url) {
2822
2860
  //#endregion
2823
2861
  //#region src/client.ts
2824
2862
  const DEFAULT_BASE_URL = "https://api.proxyrequest.com/api/v1";
2825
- const SDK_VERSION = "4.0.0";
2863
+ const SDK_VERSION = "4.1.0";
2826
2864
  var ProxyRequestClient = class ProxyRequestClient {
2827
2865
  apiKeys;
2828
2866
  affiliates;
@@ -2835,6 +2873,7 @@ var ProxyRequestClient = class ProxyRequestClient {
2835
2873
  orders;
2836
2874
  packages;
2837
2875
  profile;
2876
+ providers;
2838
2877
  proxies;
2839
2878
  rewards;
2840
2879
  settings;
@@ -2885,6 +2924,7 @@ var ProxyRequestClient = class ProxyRequestClient {
2885
2924
  this.orders = resources.orders;
2886
2925
  this.packages = resources.packages;
2887
2926
  this.profile = resources.profile;
2927
+ this.providers = resources.providers;
2888
2928
  this.proxies = resources.proxies;
2889
2929
  this.rewards = resources.rewards;
2890
2930
  this.settings = resources.settings;
@@ -3111,5 +3151,5 @@ function parseBase64Signature(signature) {
3111
3151
  }
3112
3152
 
3113
3153
  //#endregion
3114
- export { APIKeysResource, AffiliatesResource, AnalyticsResource, ApiError, AuthorizationResource, ProxyRequestClient as Client, ProxyRequestClient, CouponsResource, DEFAULT_BASE_URL, FileDownload, InvalidSignatureError, InvoicesResource, LocationsResource, NewsResource, OrdersResource, PackagesResource, PaginationError, ProfileResource, ProxiesResource, ProxyRequestError, RewardsResource, SDK_VERSION, SettingsResource, TelegramDashboardResource, UsersResource, WebhookVerifier, WebhooksResource, createResourceCollection, paginate };
3154
+ export { APIKeysResource, AffiliatesResource, AnalyticsResource, ApiError, AuthorizationResource, ProxyRequestClient as Client, ProxyRequestClient, CouponsResource, DEFAULT_BASE_URL, FileDownload, InvalidSignatureError, InvoicesResource, LocationsResource, NewsResource, OrdersResource, PackagesResource, PaginationError, ProfileResource, ProvidersResource, ProxiesResource, ProxyRequestError, RewardsResource, SDK_VERSION, SettingsResource, TelegramDashboardResource, UsersResource, WebhookVerifier, WebhooksResource, createResourceCollection, paginate };
3115
3155
  //# sourceMappingURL=index.js.map