@zennify/sdk-js 2.2.0 → 2.2.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/package.json +1 -1
- package/src/lib/api/types.gen.ts +20 -20
- package/types/lib/api/types.gen.d.ts +17 -17
package/package.json
CHANGED
package/src/lib/api/types.gen.ts
CHANGED
|
@@ -1844,19 +1844,19 @@ export type CreateStoreRenewOrderResponse =
|
|
|
1844
1844
|
export type DeleteStoreMediaData = {
|
|
1845
1845
|
body?: {
|
|
1846
1846
|
store?: Array<
|
|
1847
|
-
"
|
|
1847
|
+
"icon" | "banner" | "background_ranking" | "banner_sale_approved"
|
|
1848
1848
|
>;
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Construct a type with a set of properties K of type T
|
|
1851
1851
|
*/
|
|
1852
1852
|
products?: {
|
|
1853
|
-
[key: string]: Array<"
|
|
1853
|
+
[key: string]: Array<"icon" | "banner">;
|
|
1854
1854
|
};
|
|
1855
1855
|
/**
|
|
1856
1856
|
* Construct a type with a set of properties K of type T
|
|
1857
1857
|
*/
|
|
1858
1858
|
catalogs?: {
|
|
1859
|
-
[key: string]: Array<"
|
|
1859
|
+
[key: string]: Array<"icon" | "banner">;
|
|
1860
1860
|
};
|
|
1861
1861
|
};
|
|
1862
1862
|
path: {
|
|
@@ -1911,19 +1911,19 @@ export type UploadStoreMediaData = {
|
|
|
1911
1911
|
file: Blob | File;
|
|
1912
1912
|
set: {
|
|
1913
1913
|
store?: Array<
|
|
1914
|
-
"
|
|
1914
|
+
"icon" | "banner" | "background_ranking" | "banner_sale_approved"
|
|
1915
1915
|
>;
|
|
1916
1916
|
/**
|
|
1917
1917
|
* Construct a type with a set of properties K of type T
|
|
1918
1918
|
*/
|
|
1919
1919
|
products?: {
|
|
1920
|
-
[key: string]: Array<"
|
|
1920
|
+
[key: string]: Array<"icon" | "banner">;
|
|
1921
1921
|
};
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Construct a type with a set of properties K of type T
|
|
1924
1924
|
*/
|
|
1925
1925
|
catalogs?: {
|
|
1926
|
-
[key: string]: Array<"
|
|
1926
|
+
[key: string]: Array<"icon" | "banner">;
|
|
1927
1927
|
};
|
|
1928
1928
|
};
|
|
1929
1929
|
};
|
|
@@ -2031,7 +2031,7 @@ export type EditStoreModeratorData = {
|
|
|
2031
2031
|
* Permissions granted to the moderator.
|
|
2032
2032
|
*/
|
|
2033
2033
|
permissions: Array<
|
|
2034
|
-
| "
|
|
2034
|
+
| "MANAGE_CATALOGS"
|
|
2035
2035
|
| "MANAGE_PRODUCTS"
|
|
2036
2036
|
| "MANAGE_COUPONS"
|
|
2037
2037
|
| "MANAGE_STORE"
|
|
@@ -2099,7 +2099,7 @@ export type AddModeratorToStoreData = {
|
|
|
2099
2099
|
* Permissions granted to the invited moderator.
|
|
2100
2100
|
*/
|
|
2101
2101
|
permissions: Array<
|
|
2102
|
-
| "
|
|
2102
|
+
| "MANAGE_CATALOGS"
|
|
2103
2103
|
| "MANAGE_PRODUCTS"
|
|
2104
2104
|
| "MANAGE_COUPONS"
|
|
2105
2105
|
| "MANAGE_STORE"
|
|
@@ -2348,7 +2348,7 @@ export type GetStoreResponses = {
|
|
|
2348
2348
|
username: string;
|
|
2349
2349
|
discord_user_id: string;
|
|
2350
2350
|
permissions: Array<
|
|
2351
|
-
| "
|
|
2351
|
+
| "MANAGE_CATALOGS"
|
|
2352
2352
|
| "MANAGE_PRODUCTS"
|
|
2353
2353
|
| "MANAGE_COUPONS"
|
|
2354
2354
|
| "MANAGE_STORE"
|
|
@@ -2568,22 +2568,22 @@ export type ListTransactionsResponses = {
|
|
|
2568
2568
|
* Transactions listed successfully.
|
|
2569
2569
|
*/
|
|
2570
2570
|
200: Array<{
|
|
2571
|
+
type: "transfer" | "sale" | "deposit" | "withdraw";
|
|
2571
2572
|
id: string;
|
|
2573
|
+
created_at: number;
|
|
2572
2574
|
status:
|
|
2573
|
-
| "pending"
|
|
2574
2575
|
| "inactive"
|
|
2575
2576
|
| "invalid-pix-key"
|
|
2577
|
+
| "pending"
|
|
2576
2578
|
| "approved"
|
|
2577
2579
|
| "cancelled"
|
|
2578
2580
|
| "expired"
|
|
2579
2581
|
| "refused"
|
|
2580
2582
|
| "refunded"
|
|
2581
2583
|
| "analysis";
|
|
2582
|
-
value: number;
|
|
2583
|
-
type: "transfer" | "withdraw" | "sale" | "deposit";
|
|
2584
|
-
created_at: number;
|
|
2585
2584
|
user2?: null | number;
|
|
2586
2585
|
base_value: number;
|
|
2586
|
+
value: number;
|
|
2587
2587
|
}>;
|
|
2588
2588
|
};
|
|
2589
2589
|
|
|
@@ -2618,26 +2618,26 @@ export type GetTransactionResponses = {
|
|
|
2618
2618
|
* Transaction returned successfully.
|
|
2619
2619
|
*/
|
|
2620
2620
|
200: {
|
|
2621
|
+
type: "transfer" | "sale" | "deposit" | "withdraw";
|
|
2621
2622
|
id: string;
|
|
2623
|
+
created_at: number;
|
|
2624
|
+
expires_at: number;
|
|
2622
2625
|
status:
|
|
2623
|
-
| "pending"
|
|
2624
2626
|
| "inactive"
|
|
2625
2627
|
| "invalid-pix-key"
|
|
2628
|
+
| "pending"
|
|
2626
2629
|
| "approved"
|
|
2627
2630
|
| "cancelled"
|
|
2628
2631
|
| "expired"
|
|
2629
2632
|
| "refused"
|
|
2630
2633
|
| "refunded"
|
|
2631
2634
|
| "analysis";
|
|
2632
|
-
value: number;
|
|
2633
|
-
type: "transfer" | "withdraw" | "sale" | "deposit";
|
|
2634
|
-
created_at: number;
|
|
2635
|
-
expires_at: number;
|
|
2636
|
-
method: "pix" | "boleto";
|
|
2637
2635
|
entity: "mercadopago" | "semiauto" | "efi" | "wallet-efi";
|
|
2636
|
+
method: "pix" | "boleto";
|
|
2638
2637
|
managed?: null | boolean;
|
|
2639
2638
|
base_value: number;
|
|
2640
2639
|
refunded_value: number;
|
|
2640
|
+
value: number;
|
|
2641
2641
|
refund_reason?:
|
|
2642
2642
|
| null
|
|
2643
2643
|
| "fraud"
|
|
@@ -2698,8 +2698,8 @@ export type GetTransactionResponses = {
|
|
|
2698
2698
|
};
|
|
2699
2699
|
products: Array<{
|
|
2700
2700
|
id: number;
|
|
2701
|
-
name: string;
|
|
2702
2701
|
value: number;
|
|
2702
|
+
name: string;
|
|
2703
2703
|
icon_id?: null | string;
|
|
2704
2704
|
banner_id?: null | string;
|
|
2705
2705
|
short_description?: null | string;
|
|
@@ -1640,18 +1640,18 @@ export type CreateStoreRenewOrderResponses = {
|
|
|
1640
1640
|
export type CreateStoreRenewOrderResponse = CreateStoreRenewOrderResponses[keyof CreateStoreRenewOrderResponses];
|
|
1641
1641
|
export type DeleteStoreMediaData = {
|
|
1642
1642
|
body?: {
|
|
1643
|
-
store?: Array<"
|
|
1643
|
+
store?: Array<"icon" | "banner" | "background_ranking" | "banner_sale_approved">;
|
|
1644
1644
|
/**
|
|
1645
1645
|
* Construct a type with a set of properties K of type T
|
|
1646
1646
|
*/
|
|
1647
1647
|
products?: {
|
|
1648
|
-
[key: string]: Array<"
|
|
1648
|
+
[key: string]: Array<"icon" | "banner">;
|
|
1649
1649
|
};
|
|
1650
1650
|
/**
|
|
1651
1651
|
* Construct a type with a set of properties K of type T
|
|
1652
1652
|
*/
|
|
1653
1653
|
catalogs?: {
|
|
1654
|
-
[key: string]: Array<"
|
|
1654
|
+
[key: string]: Array<"icon" | "banner">;
|
|
1655
1655
|
};
|
|
1656
1656
|
};
|
|
1657
1657
|
path: {
|
|
@@ -1698,18 +1698,18 @@ export type UploadStoreMediaData = {
|
|
|
1698
1698
|
body?: {
|
|
1699
1699
|
file: Blob | File;
|
|
1700
1700
|
set: {
|
|
1701
|
-
store?: Array<"
|
|
1701
|
+
store?: Array<"icon" | "banner" | "background_ranking" | "banner_sale_approved">;
|
|
1702
1702
|
/**
|
|
1703
1703
|
* Construct a type with a set of properties K of type T
|
|
1704
1704
|
*/
|
|
1705
1705
|
products?: {
|
|
1706
|
-
[key: string]: Array<"
|
|
1706
|
+
[key: string]: Array<"icon" | "banner">;
|
|
1707
1707
|
};
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Construct a type with a set of properties K of type T
|
|
1710
1710
|
*/
|
|
1711
1711
|
catalogs?: {
|
|
1712
|
-
[key: string]: Array<"
|
|
1712
|
+
[key: string]: Array<"icon" | "banner">;
|
|
1713
1713
|
};
|
|
1714
1714
|
};
|
|
1715
1715
|
};
|
|
@@ -1802,7 +1802,7 @@ export type EditStoreModeratorData = {
|
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Permissions granted to the moderator.
|
|
1804
1804
|
*/
|
|
1805
|
-
permissions: Array<"
|
|
1805
|
+
permissions: Array<"MANAGE_CATALOGS" | "MANAGE_PRODUCTS" | "MANAGE_COUPONS" | "MANAGE_STORE" | "MANAGE_SALES" | "VIEW_STATISTICS" | "VIEW_DISCKETS" | "MANAGE_DISCKETS">;
|
|
1806
1806
|
};
|
|
1807
1807
|
path: {
|
|
1808
1808
|
storeId: string;
|
|
@@ -1854,7 +1854,7 @@ export type AddModeratorToStoreData = {
|
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Permissions granted to the invited moderator.
|
|
1856
1856
|
*/
|
|
1857
|
-
permissions: Array<"
|
|
1857
|
+
permissions: Array<"MANAGE_CATALOGS" | "MANAGE_PRODUCTS" | "MANAGE_COUPONS" | "MANAGE_STORE" | "MANAGE_SALES" | "VIEW_STATISTICS" | "VIEW_DISCKETS" | "MANAGE_DISCKETS">;
|
|
1858
1858
|
};
|
|
1859
1859
|
path: {
|
|
1860
1860
|
storeId: string;
|
|
@@ -2068,7 +2068,7 @@ export type GetStoreResponses = {
|
|
|
2068
2068
|
[key: string]: {
|
|
2069
2069
|
username: string;
|
|
2070
2070
|
discord_user_id: string;
|
|
2071
|
-
permissions: Array<"
|
|
2071
|
+
permissions: Array<"MANAGE_CATALOGS" | "MANAGE_PRODUCTS" | "MANAGE_COUPONS" | "MANAGE_STORE" | "MANAGE_SALES" | "VIEW_STATISTICS" | "VIEW_DISCKETS" | "MANAGE_DISCKETS">;
|
|
2072
2072
|
created_at: number;
|
|
2073
2073
|
};
|
|
2074
2074
|
};
|
|
@@ -2257,13 +2257,13 @@ export type ListTransactionsResponses = {
|
|
|
2257
2257
|
* Transactions listed successfully.
|
|
2258
2258
|
*/
|
|
2259
2259
|
200: Array<{
|
|
2260
|
+
type: "transfer" | "sale" | "deposit" | "withdraw";
|
|
2260
2261
|
id: string;
|
|
2261
|
-
status: "pending" | "inactive" | "invalid-pix-key" | "approved" | "cancelled" | "expired" | "refused" | "refunded" | "analysis";
|
|
2262
|
-
value: number;
|
|
2263
|
-
type: "transfer" | "withdraw" | "sale" | "deposit";
|
|
2264
2262
|
created_at: number;
|
|
2263
|
+
status: "inactive" | "invalid-pix-key" | "pending" | "approved" | "cancelled" | "expired" | "refused" | "refunded" | "analysis";
|
|
2265
2264
|
user2?: null | number;
|
|
2266
2265
|
base_value: number;
|
|
2266
|
+
value: number;
|
|
2267
2267
|
}>;
|
|
2268
2268
|
};
|
|
2269
2269
|
export type ListTransactionsResponse = ListTransactionsResponses[keyof ListTransactionsResponses];
|
|
@@ -2291,17 +2291,17 @@ export type GetTransactionResponses = {
|
|
|
2291
2291
|
* Transaction returned successfully.
|
|
2292
2292
|
*/
|
|
2293
2293
|
200: {
|
|
2294
|
+
type: "transfer" | "sale" | "deposit" | "withdraw";
|
|
2294
2295
|
id: string;
|
|
2295
|
-
status: "pending" | "inactive" | "invalid-pix-key" | "approved" | "cancelled" | "expired" | "refused" | "refunded" | "analysis";
|
|
2296
|
-
value: number;
|
|
2297
|
-
type: "transfer" | "withdraw" | "sale" | "deposit";
|
|
2298
2296
|
created_at: number;
|
|
2299
2297
|
expires_at: number;
|
|
2300
|
-
|
|
2298
|
+
status: "inactive" | "invalid-pix-key" | "pending" | "approved" | "cancelled" | "expired" | "refused" | "refunded" | "analysis";
|
|
2301
2299
|
entity: "mercadopago" | "semiauto" | "efi" | "wallet-efi";
|
|
2300
|
+
method: "pix" | "boleto";
|
|
2302
2301
|
managed?: null | boolean;
|
|
2303
2302
|
base_value: number;
|
|
2304
2303
|
refunded_value: number;
|
|
2304
|
+
value: number;
|
|
2305
2305
|
refund_reason?: null | "fraud" | "pix_med" | "by_admin" | "requested_with_zennify" | "requested_with_bank" | "stock_out" | "stock_low" | "internal_reason" | "internal_error" | "bank_blacklist" | "bank_rejected" | "coupon_out";
|
|
2306
2306
|
refund_comment?: null | string;
|
|
2307
2307
|
refund_requested_by?: null | number;
|
|
@@ -2349,8 +2349,8 @@ export type GetTransactionResponses = {
|
|
|
2349
2349
|
};
|
|
2350
2350
|
products: Array<{
|
|
2351
2351
|
id: number;
|
|
2352
|
-
name: string;
|
|
2353
2352
|
value: number;
|
|
2353
|
+
name: string;
|
|
2354
2354
|
icon_id?: null | string;
|
|
2355
2355
|
banner_id?: null | string;
|
|
2356
2356
|
short_description?: null | string;
|