agentref 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.4
4
+
5
+ - Added `search`, `sortBy`, `sortOrder`, `status` parameters to `affiliates.list()`.
6
+ - Added `trackingCode`, `skipOnboarding` parameters to `programs.createInvite()`.
7
+ - Added `merchant.getPayoutInfo()` and `merchant.updatePayoutInfo()` methods.
8
+ - Added `merchant.getNotifications()` and `merchant.updateNotifications()` methods.
9
+ - Added `PUT` to `HttpMethod` union type.
10
+ - Added new types: `AffiliateSortBy`, `SortOrder`, `CreateInviteParams`, `PayoutInfo`, `UpdatePayoutInfoParams`, `NotificationPreferences`, `UpdateNotificationPreferencesParams`.
11
+
3
12
  ## 1.0.3
4
13
 
5
14
  - Hardened idempotency retry gate: POST retries now require a non-empty idempotency key.
package/dist/index.cjs CHANGED
@@ -93,7 +93,7 @@ var SAFE_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD"]);
93
93
  var DEFAULT_BASE_URL = "https://www.agentref.dev/api/v1";
94
94
  var DEFAULT_TIMEOUT = 3e4;
95
95
  var DEFAULT_MAX_RETRIES = 2;
96
- var VERSION = true ? "1.0.3" : "0.0.0";
96
+ var VERSION = true ? "1.0.4" : "0.0.0";
97
97
  function hasUsableIdempotencyKey(idempotencyKey) {
98
98
  return typeof idempotencyKey === "string" && idempotencyKey.trim().length > 0;
99
99
  }
package/dist/index.mjs CHANGED
@@ -59,7 +59,7 @@ var SAFE_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD"]);
59
59
  var DEFAULT_BASE_URL = "https://www.agentref.dev/api/v1";
60
60
  var DEFAULT_TIMEOUT = 3e4;
61
61
  var DEFAULT_MAX_RETRIES = 2;
62
- var VERSION = true ? "1.0.3" : "0.0.0";
62
+ var VERSION = true ? "1.0.4" : "0.0.0";
63
63
  function hasUsableIdempotencyKey(idempotencyKey) {
64
64
  return typeof idempotencyKey === "string" && idempotencyKey.trim().length > 0;
65
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentref",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Official TypeScript/JavaScript SDK for the AgentRef Affiliate API",
5
5
  "author": "AgentRef <hi@agentref.dev>",
6
6
  "license": "MIT",