@voucherify/sdk 2.8.1 → 2.9.1

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.
@@ -85,6 +85,7 @@
85
85
  this.timeoutMs = timeoutMs;
86
86
  this.request = axios.create({
87
87
  baseURL: `${this.baseURL}/${this.basePath}/`,
88
+ allowAbsoluteUrls: false,
88
89
  headers: this.headers,
89
90
  responseType: 'json'
90
91
  });
@@ -1447,8 +1448,16 @@
1447
1448
  return this.client.get(campaignId ? `/loyalties/${encode(campaignId)}/members/${memberId}` : `/loyalties/members/${memberId}`);
1448
1449
  }
1449
1450
  /**
1450
- * @see https://docs.voucherify.io/reference/get-member-activities
1451
- * @see https://docs.voucherify.io/reference/get-member-activities-1
1451
+ * @see https://docs.voucherify.io/reference/list-member-activity
1452
+ * @see https://docs.voucherify.io/reference/list-member-activity-1
1453
+ */
1454
+
1455
+
1456
+ listMemberActivity(campaignId, memberId, params) {
1457
+ return this.client.get(campaignId ? `/loyalties/${encode(campaignId)}/members/${memberId}/activity` : `/loyalties/members/${memberId}/activity`, params);
1458
+ }
1459
+ /**
1460
+ * @deprecated This method is deprecated in favor of the `listMemberActivity` method. We’re removing this method in next major version.
1452
1461
  */
1453
1462
 
1454
1463
 
@@ -1964,7 +1973,7 @@
1964
1973
  let headers = {
1965
1974
  'X-App-Id': options.applicationId,
1966
1975
  'X-App-Token': options.secretKey,
1967
- 'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.8.1"}`,
1976
+ 'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.9.1"}`,
1968
1977
  'Content-Type': 'application/json'
1969
1978
  };
1970
1979
 
@@ -2230,7 +2239,7 @@
2230
2239
  let headers = {
2231
2240
  'X-Client-Application-Id': options.clientApplicationId,
2232
2241
  'X-Client-Token': options.clientSecretKey,
2233
- 'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.8.1"}`
2242
+ 'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.9.1"}`
2234
2243
  };
2235
2244
 
2236
2245
  if (environment().startsWith('Node')) {