@zennify/sdk-js 1.45.0 → 1.46.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.45.0",
3
+ "version": "1.46.1",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
@@ -14,6 +14,7 @@ export interface DiscordGuildRole {
14
14
  export interface DiscordGuild {
15
15
  id: string,
16
16
  name: string,
17
+ members: number,
17
18
  icon_url: string,
18
19
  owner_id: string,
19
20
  channels: Record<string, DiscordGuildChannel>,
@@ -1,3 +1,4 @@
1
+ export type TransactionStatus = 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'analysis' | 'refunded' | 'invalid-pix-key';
1
2
  export type BaseTransaction<TransactionMetadata = any> = {
2
3
  id: string,
3
4
  created_at: number,
@@ -5,7 +6,7 @@ export type BaseTransaction<TransactionMetadata = any> = {
5
6
  entity: 'semiauto' | 'mercadopago' | 'efi' | 'wallet-efi',
6
7
  method: 'pix',
7
8
  managed?: boolean | null,
8
- status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'analysis' | 'refunded' | 'refunded_partial' | 'invalid-pix-key',
9
+ status: TransactionStatus,
9
10
  value: number,
10
11
  base_value: number,
11
12
  refunded_value: number,
@@ -75,5 +76,5 @@ export type PartialTransaction = {
75
76
  id: string,
76
77
  base_value: number,
77
78
  created_at: number,
78
- status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis' | 'refunded' | 'refunded_partial'
79
+ status: TransactionStatus
79
80
  }
@@ -11,6 +11,7 @@ export interface DiscordGuildRole {
11
11
  export interface DiscordGuild {
12
12
  id: string;
13
13
  name: string;
14
+ members: number;
14
15
  icon_url: string;
15
16
  owner_id: string;
16
17
  channels: Record<string, DiscordGuildChannel>;
@@ -1,3 +1,4 @@
1
+ export type TransactionStatus = 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'analysis' | 'refunded' | 'invalid-pix-key';
1
2
  export type BaseTransaction<TransactionMetadata = any> = {
2
3
  id: string;
3
4
  created_at: number;
@@ -5,7 +6,7 @@ export type BaseTransaction<TransactionMetadata = any> = {
5
6
  entity: 'semiauto' | 'mercadopago' | 'efi' | 'wallet-efi';
6
7
  method: 'pix';
7
8
  managed?: boolean | null;
8
- status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'analysis' | 'refunded' | 'refunded_partial' | 'invalid-pix-key';
9
+ status: TransactionStatus;
9
10
  value: number;
10
11
  base_value: number;
11
12
  refunded_value: number;
@@ -72,6 +73,6 @@ export type PartialTransaction = {
72
73
  id: string;
73
74
  base_value: number;
74
75
  created_at: number;
75
- status: 'approved' | 'cancelled' | 'expired' | 'pending' | 'refused' | 'rejected' | 'analysis' | 'refunded' | 'refunded_partial';
76
+ status: TransactionStatus;
76
77
  };
77
78
  export {};