@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 +1 -1
- package/src/lib/api/types.gen.ts +1 -1
- package/src/main.ts +2 -0
- package/types/lib/api/types.gen.d.ts +1 -1
- package/types/main.d.ts +2 -1
package/package.json
CHANGED
package/src/lib/api/types.gen.ts
CHANGED
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:
|
|
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 & {
|