@zennify/sdk-js 2.0.0 → 2.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
package/src/main.ts CHANGED
@@ -27,7 +27,7 @@ export type StoreModerator = FullStore["moderators"][number];
27
27
  export type StoreModeratorPermissions = StoreModerator["permissions"][number];
28
28
 
29
29
  // Produtos
30
- export type PartialProduct = ListStoreProductsResponse;
30
+ export type PartialProduct = ListStoreProductsResponse[number];
31
31
  export type Product = GetStoreProductResponse;
32
32
 
33
33
  // Transações
package/types/main.d.ts CHANGED
@@ -8,7 +8,7 @@ export type PartialStore = GetStoresResponse[number];
8
8
  export type FullStore = GetStoreResponse;
9
9
  export type StoreModerator = FullStore["moderators"][number];
10
10
  export type StoreModeratorPermissions = StoreModerator["permissions"][number];
11
- export type PartialProduct = ListStoreProductsResponse;
11
+ export type PartialProduct = ListStoreProductsResponse[number];
12
12
  export type Product = GetStoreProductResponse;
13
13
  export type TransactionStatus = FullTransaction["status"];
14
14
  export type PartialTransaction = ListTransactionsResponse[number];