@voucherify/sdk 2.7.4 → 2.8.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.
- package/CHANGELOG.md +12 -0
- package/README.md +10 -8
- package/dist/Consents.d.ts +1 -1
- package/dist/Customers.d.ts +6 -2
- package/dist/types/Customers.d.ts +18 -0
- package/dist/types/Loyalties.d.ts +6 -6
- package/dist/types/ProductCollections.d.ts +4 -3
- package/dist/types/Validations.d.ts +2 -2
- package/dist/types/Vouchers.d.ts +6 -0
- package/dist/voucherifysdk.esm.js +13 -5
- package/dist/voucherifysdk.esm.js.map +1 -1
- package/dist/voucherifysdk.umd.development.js +13 -5
- package/dist/voucherifysdk.umd.development.js.map +1 -1
- package/dist/voucherifysdk.umd.production.min.js +1 -1
- package/dist/voucherifysdk.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -946,7 +946,15 @@
|
|
|
946
946
|
return this.client.post(`/customers/${encode(customerId)}/permanent-deletion`, {});
|
|
947
947
|
}
|
|
948
948
|
/**
|
|
949
|
-
* @see https://docs.voucherify.io/reference/
|
|
949
|
+
* @see https://docs.voucherify.io/reference/list-customer-activity
|
|
950
|
+
*/
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
listActivity(customerIdOrSourceId, params) {
|
|
954
|
+
return this.client.get(`/customers/${encode(customerIdOrSourceId)}/activity`, params);
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* @deprecated This method is deprecated. We’re removing this method in next major version.
|
|
950
958
|
*/
|
|
951
959
|
|
|
952
960
|
|
|
@@ -954,7 +962,7 @@
|
|
|
954
962
|
return this.client.put(`/customers/${encode(idOrSourceId)}/consents`, consents);
|
|
955
963
|
}
|
|
956
964
|
/**
|
|
957
|
-
* @
|
|
965
|
+
* @deprecated This method is deprecated in favor of the `listActivity` method. We’re removing this method in next major version.
|
|
958
966
|
*/
|
|
959
967
|
|
|
960
968
|
|
|
@@ -994,7 +1002,7 @@
|
|
|
994
1002
|
this.client = client;
|
|
995
1003
|
}
|
|
996
1004
|
/**
|
|
997
|
-
* @
|
|
1005
|
+
* @deprecated This method is deprecated. We’re removing this method in next major version.
|
|
998
1006
|
*/
|
|
999
1007
|
|
|
1000
1008
|
|
|
@@ -1956,7 +1964,7 @@
|
|
|
1956
1964
|
let headers = {
|
|
1957
1965
|
'X-App-Id': options.applicationId,
|
|
1958
1966
|
'X-App-Token': options.secretKey,
|
|
1959
|
-
'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.
|
|
1967
|
+
'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.8.1"}`,
|
|
1960
1968
|
'Content-Type': 'application/json'
|
|
1961
1969
|
};
|
|
1962
1970
|
|
|
@@ -2222,7 +2230,7 @@
|
|
|
2222
2230
|
let headers = {
|
|
2223
2231
|
'X-Client-Application-Id': options.clientApplicationId,
|
|
2224
2232
|
'X-Client-Token': options.clientSecretKey,
|
|
2225
|
-
'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.
|
|
2233
|
+
'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.8.1"}`
|
|
2226
2234
|
};
|
|
2227
2235
|
|
|
2228
2236
|
if (environment().startsWith('Node')) {
|