@authenty/authapi-types 1.0.46 → 1.0.48

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/README.md CHANGED
@@ -80,6 +80,7 @@ import type {
80
80
 
81
81
  3. Faça o build do pacote:
82
82
  ```bash
83
+ npm install
83
84
  npm run build
84
85
  ```
85
86
 
package/dist/index.d.ts CHANGED
@@ -909,7 +909,7 @@ export declare namespace AuthApi {
909
909
  delete: (purchaseId: number, userId: number) => Promise<responses.ApiResponse<responses.user.$userId.purchase.$purchaseId.DELETE>>;
910
910
  listForUser: (userId: number) => Promise<responses.ApiResponse<responses.user.$userId.purchases.GET>>;
911
911
  list: (page?: number, pageSize?: number) => Promise<responses.ApiResponse<responses.admin.purchases.search.POST>>;
912
- getFromGateway: (purchaseId: number, userId: number, async?: boolean) => Promise<responses.ApiResponse<objects.PaymentSystem.PG_Purchase>>;
912
+ getFromGateway: (purchaseId: number, userId: number) => Promise<responses.ApiResponse<objects.PaymentSystem.PG_Purchase>>;
913
913
  };
914
914
  products: {
915
915
  list: () => Promise<responses.ApiResponse<responses.products.GET>>;
package/dist/index.js CHANGED
@@ -125,15 +125,6 @@ var AuthApi;
125
125
  * Verifica a sessão atual
126
126
  */
127
127
  checkSession: async () => {
128
- if (!this.bearer) {
129
- return {
130
- conex: true,
131
- reqStat: 401,
132
- success: false,
133
- data: {},
134
- msg: 'Token not found'
135
- };
136
- }
137
128
  return this.request('GET', 'auth', {}, { retryAttempts: 2, retryDelay: 1000 });
138
129
  }
139
130
  };
@@ -190,7 +181,7 @@ var AuthApi;
190
181
  list: async (page = 1, pageSize = 10) => {
191
182
  return await this.request('GET', `admin/purchases/search`, { page, pageSize });
192
183
  },
193
- getFromGateway: async (purchaseId, userId, async = false) => {
184
+ getFromGateway: async (purchaseId, userId) => {
194
185
  return await this.request('GET', `user/${userId}/purchase/${purchaseId}/getFromGateway`, {});
195
186
  },
196
187
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authenty/authapi-types",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Shared types for Authenty API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",