@voucherify/sdk 2.1.8 → 2.2.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/CHANGELOG.md +12 -0
- package/dist/Campaigns.d.ts +1 -1
- package/dist/types/Vouchers.d.ts +4 -0
- package/dist/voucherifysdk.esm.js +2 -2
- package/dist/voucherifysdk.esm.js.map +1 -1
- package/dist/voucherifysdk.umd.development.js +2 -2
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @voucherify/sdk
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`4451288`](https://github.com/voucherifyio/voucherify-js-sdk/commit/4451288cbbef3e3c288a771ed52e767ecc7ed5ab) [#203](https://github.com/voucherifyio/voucherify-js-sdk/pull/203) Thanks [@darekg11](https://github.com/darekg11)! - Add 'CampaignsListResponse' type to return value of campaigns.list method
|
|
8
|
+
|
|
9
|
+
## 2.1.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d06989b`](https://github.com/voucherifyio/voucherify-js-sdk/commit/d06989b6b3476469719425f922cba930fb8b8f9d) [#198](https://github.com/voucherifyio/voucherify-js-sdk/pull/198) Thanks [@darekg11](https://github.com/darekg11)! - Add missing 'filters' property to 'VouchersListParams' interface to allow for advanced filters for fetching resources
|
|
14
|
+
|
|
3
15
|
## 2.1.8
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/Campaigns.d.ts
CHANGED
package/dist/types/Vouchers.d.ts
CHANGED
|
@@ -162,6 +162,10 @@ export interface VouchersListParams {
|
|
|
162
162
|
before?: string;
|
|
163
163
|
};
|
|
164
164
|
order?: '-created_at' | 'created_at' | '-updated_at' | 'updated_at' | '-type' | 'type' | '-code' | 'code' | '-campaign' | 'campaign' | '-category' | 'category';
|
|
165
|
+
filters?: {
|
|
166
|
+
junction?: string;
|
|
167
|
+
[filter_condition: string]: any;
|
|
168
|
+
};
|
|
165
169
|
}
|
|
166
170
|
export interface VouchersListResponse {
|
|
167
171
|
object: 'list';
|
|
@@ -1449,7 +1449,7 @@ function VoucherifyServerSide(options) {
|
|
|
1449
1449
|
let headers = {
|
|
1450
1450
|
'X-App-Id': options.applicationId,
|
|
1451
1451
|
'X-App-Token': options.secretKey,
|
|
1452
|
-
'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.
|
|
1452
|
+
'X-Voucherify-Channel': options.channel || `${environment()}-SDK-v${"2.2.0"}`,
|
|
1453
1453
|
'Content-Type': 'application/json'
|
|
1454
1454
|
};
|
|
1455
1455
|
|
|
@@ -1699,7 +1699,7 @@ function VoucherifyClientSide(options) {
|
|
|
1699
1699
|
let headers = {
|
|
1700
1700
|
'X-Client-Application-Id': options.clientApplicationId,
|
|
1701
1701
|
'X-Client-Token': options.clientSecretKey,
|
|
1702
|
-
'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.
|
|
1702
|
+
'X-Voucherify-Channel': `${environment()}-ClientSide-SDK-v${"2.2.0"}`
|
|
1703
1703
|
};
|
|
1704
1704
|
|
|
1705
1705
|
if (environment().startsWith('Node')) {
|