@zennify/sdk-js 1.10.0 → 1.10.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": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
@@ -1,4 +1,4 @@
1
- export type BaseTransaction<TransactionMetadata extends any = any> = {
1
+ export type BaseTransaction<TransactionMetadata = any> = {
2
2
  id: string,
3
3
  created_at: string,
4
4
  entity: 'semiauto' | 'mercadopago',
@@ -19,12 +19,12 @@ export type BaseTransaction<TransactionMetadata extends any = any> = {
19
19
 
20
20
  type DiscordOrder = {
21
21
  platform: 'discord',
22
- discord_guild_id?: string | null,
23
- discord_channel_id?: string | null,
24
- discord_channel_message_id?: string | null
22
+ discord_guild_id: string,
23
+ discord_channel_id: string,
24
+ discord_channel_message_id: string
25
25
  }
26
26
 
27
- export type SaleTransaction = BaseTransaction & {
27
+ type SaleTransaction = {
28
28
  type: 'sale',
29
29
  order: DiscordOrder & {
30
30
  id: string,
@@ -64,4 +64,4 @@ export type SaleTransaction = BaseTransaction & {
64
64
  }
65
65
  };
66
66
 
67
- export type FullTransaction<TransactionMetadata extends any = any> = BaseTransaction<TransactionMetadata> & SaleTransaction;
67
+ export type FullTransaction<TransactionMetadata = any> = BaseTransaction<TransactionMetadata> & SaleTransaction;
@@ -1,4 +1,4 @@
1
- export type BaseTransaction<TransactionMetadata extends any = any> = {
1
+ export type BaseTransaction<TransactionMetadata = any> = {
2
2
  id: string;
3
3
  created_at: string;
4
4
  entity: 'semiauto' | 'mercadopago';
@@ -18,11 +18,11 @@ export type BaseTransaction<TransactionMetadata extends any = any> = {
18
18
  };
19
19
  type DiscordOrder = {
20
20
  platform: 'discord';
21
- discord_guild_id?: string | null;
22
- discord_channel_id?: string | null;
23
- discord_channel_message_id?: string | null;
21
+ discord_guild_id: string;
22
+ discord_channel_id: string;
23
+ discord_channel_message_id: string;
24
24
  };
25
- export type SaleTransaction = BaseTransaction & {
25
+ type SaleTransaction = {
26
26
  type: 'sale';
27
27
  order: DiscordOrder & {
28
28
  id: string;
@@ -61,5 +61,5 @@ export type SaleTransaction = BaseTransaction & {
61
61
  ];
62
62
  };
63
63
  };
64
- export type FullTransaction<TransactionMetadata extends any = any> = BaseTransaction<TransactionMetadata> & SaleTransaction;
64
+ export type FullTransaction<TransactionMetadata = any> = BaseTransaction<TransactionMetadata> & SaleTransaction;
65
65
  export {};