@zennify/sdk-js 1.18.0 → 1.20.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/package.json
CHANGED
package/src/errors.ts
CHANGED
|
@@ -121,6 +121,7 @@ export interface APIErrors {
|
|
|
121
121
|
value: number
|
|
122
122
|
};
|
|
123
123
|
'THIS_COUPON_IS_VALID_ONLY_FOR_THE_FIRST_BUY': {};
|
|
124
|
+
'COUPON_EXCLUSIVE_FOR_SOME_PRODUCTS': { allowed: number[] };
|
|
124
125
|
// store errors
|
|
125
126
|
'UNKNOWN_STORE': {};
|
|
126
127
|
'EXPIRED_STORE': {},
|
|
@@ -187,5 +188,6 @@ export interface APIErrors {
|
|
|
187
188
|
type ExpectedAdditionalData = {
|
|
188
189
|
field: string;
|
|
189
190
|
received: any;
|
|
190
|
-
type: string
|
|
191
|
+
type: string,
|
|
192
|
+
max_length?: string
|
|
191
193
|
}
|
|
@@ -2,7 +2,12 @@ export type Statistic = {
|
|
|
2
2
|
count: number,
|
|
3
3
|
users: number,
|
|
4
4
|
value: number,
|
|
5
|
-
rating: number
|
|
5
|
+
rating: number,
|
|
6
|
+
customers: Array<{
|
|
7
|
+
id: number,
|
|
8
|
+
discord_user_id: string,
|
|
9
|
+
value: number
|
|
10
|
+
}>
|
|
6
11
|
}
|
|
7
12
|
|
|
8
13
|
export type Statistics = Record<string, Record<number, Statistic>>
|
package/translations/en_US.json
CHANGED
|
@@ -335,6 +335,10 @@
|
|
|
335
335
|
"name": "This coupon is valid only for the first purchase",
|
|
336
336
|
"message": "Coupon valid only on the first purchase."
|
|
337
337
|
},
|
|
338
|
+
"COUPON_EXCLUSIVE_FOR_SOME_PRODUCTS": {
|
|
339
|
+
"name": "Coupon exclusive for some products",
|
|
340
|
+
"message": "Clean your cart and try again"
|
|
341
|
+
},
|
|
338
342
|
"UNKNOWN_STORE": {
|
|
339
343
|
"name": "Unknown store",
|
|
340
344
|
"message": "Perhaps this store no longer exists."
|
package/translations/pt_BR.json
CHANGED
|
@@ -335,6 +335,10 @@
|
|
|
335
335
|
"name": "Cupom válido apenas para a primeira compra",
|
|
336
336
|
"message": "Tente usar um cupom diferente desse."
|
|
337
337
|
},
|
|
338
|
+
"COUPON_EXCLUSIVE_FOR_SOME_PRODUCTS": {
|
|
339
|
+
"name": "Cupom exclusivo para certos produtos",
|
|
340
|
+
"message": "Tente limpar o seu carrinho e tente novamente."
|
|
341
|
+
},
|
|
338
342
|
"UNKNOWN_STORE": {
|
|
339
343
|
"name": "Loja desconhecida",
|
|
340
344
|
"message": "Talvez essa loja não exista mais."
|
package/types/errors.d.ts
CHANGED
|
@@ -111,6 +111,9 @@ export interface APIErrors {
|
|
|
111
111
|
value: number;
|
|
112
112
|
};
|
|
113
113
|
'THIS_COUPON_IS_VALID_ONLY_FOR_THE_FIRST_BUY': {};
|
|
114
|
+
'COUPON_EXCLUSIVE_FOR_SOME_PRODUCTS': {
|
|
115
|
+
allowed: number[];
|
|
116
|
+
};
|
|
114
117
|
'UNKNOWN_STORE': {};
|
|
115
118
|
'EXPIRED_STORE': {};
|
|
116
119
|
'UNKNOWN_BANK': {
|
|
@@ -170,5 +173,6 @@ type ExpectedAdditionalData = {
|
|
|
170
173
|
field: string;
|
|
171
174
|
received: any;
|
|
172
175
|
type: string;
|
|
176
|
+
max_length?: string;
|
|
173
177
|
};
|
|
174
178
|
export {};
|
|
@@ -3,6 +3,11 @@ export type Statistic = {
|
|
|
3
3
|
users: number;
|
|
4
4
|
value: number;
|
|
5
5
|
rating: number;
|
|
6
|
+
customers: Array<{
|
|
7
|
+
id: number;
|
|
8
|
+
discord_user_id: string;
|
|
9
|
+
value: number;
|
|
10
|
+
}>;
|
|
6
11
|
};
|
|
7
12
|
export type Statistics = Record<string, Record<number, Statistic>>;
|
|
8
13
|
export type StatisticsResponse = {
|