@zennify/sdk-js 2.0.1 → 2.1.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
@@ -611,7 +611,7 @@ export type ListStoreProductsResponses = {
611
611
  banner_id: null | string;
612
612
  value: number;
613
613
  stock_locked: null | boolean;
614
- stock_count: string;
614
+ stock_count: number;
615
615
  }>;
616
616
  };
617
617
 
package/src/main.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  GetStoreDiscordPanelsResponse,
3
3
  GetStoreProductResponse,
4
+ GetStoreProductStockResponse,
4
5
  GetStoreResponse,
5
6
  GetStoresResponse,
6
7
  GetTransactionResponse,
@@ -29,6 +30,7 @@ export type StoreModeratorPermissions = StoreModerator["permissions"][number];
29
30
  // Produtos
30
31
  export type PartialProduct = ListStoreProductsResponse[number];
31
32
  export type Product = GetStoreProductResponse;
33
+ export type ProductStock = GetStoreProductStockResponse[number];
32
34
 
33
35
  // Transações
34
36
  export type TransactionStatus = FullTransaction["status"];
@@ -538,7 +538,7 @@ export type ListStoreProductsResponses = {
538
538
  banner_id: null | string;
539
539
  value: number;
540
540
  stock_locked: null | boolean;
541
- stock_count: string;
541
+ stock_count: number;
542
542
  }>;
543
543
  };
544
544
  export type ListStoreProductsResponse = ListStoreProductsResponses[keyof ListStoreProductsResponses];
package/types/main.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GetStoreDiscordPanelsResponse, GetStoreProductResponse, GetStoreResponse, GetStoresResponse, GetTransactionResponse, GetUserResponse, ListStoreProductsResponse, ListTransactionsResponse, UploadStoreMediaData } from "./lib/api";
1
+ import { GetStoreDiscordPanelsResponse, GetStoreProductResponse, GetStoreProductStockResponse, GetStoreResponse, GetStoresResponse, GetTransactionResponse, GetUserResponse, ListStoreProductsResponse, ListTransactionsResponse, UploadStoreMediaData } from "./lib/api";
2
2
  export * from "./images";
3
3
  export * from "./lib/api/index";
4
4
  export * from "./interfaces/Guild";
@@ -10,6 +10,7 @@ export type StoreModerator = FullStore["moderators"][number];
10
10
  export type StoreModeratorPermissions = StoreModerator["permissions"][number];
11
11
  export type PartialProduct = ListStoreProductsResponse[number];
12
12
  export type Product = GetStoreProductResponse;
13
+ export type ProductStock = GetStoreProductStockResponse[number];
13
14
  export type TransactionStatus = FullTransaction["status"];
14
15
  export type PartialTransaction = ListTransactionsResponse[number];
15
16
  export type FullTransaction<T = never> = GetTransactionResponse & {