@authenty/authapi-types 1.0.5 → 1.0.7

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/dist/general.d.ts CHANGED
@@ -36,7 +36,7 @@ export type ProductLevel = {
36
36
  levelID: number;
37
37
  quantity: number;
38
38
  Bundle?: Bundle;
39
- }[];
39
+ }[] | undefined;
40
40
  };
41
41
  export type Course = {
42
42
  id: number;
@@ -203,6 +203,12 @@ export type AdminUserConfig = {
203
203
  deletedAt: Date | null;
204
204
  userID: number;
205
205
  };
206
+ export type availableSoftware_auxType = {
207
+ Level: ProductLevel;
208
+ quantity: number;
209
+ purchaseId: number | null;
210
+ type: 'free' | 'own' | 'shared';
211
+ };
206
212
  export type LogEntry = {
207
213
  appId: string;
208
214
  logCode: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authenty/authapi-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Shared types for Authenty API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/general.ts CHANGED
@@ -39,7 +39,7 @@ export type ProductLevel = {
39
39
  levelID: number,
40
40
  quantity: number,
41
41
  Bundle?: Bundle
42
- }[];
42
+ }[] | undefined;
43
43
  }
44
44
 
45
45
  export type Course = {
@@ -219,6 +219,13 @@ export type AdminUserConfig = {
219
219
  userID: number
220
220
  }
221
221
 
222
+ export type availableSoftware_auxType = {
223
+ Level: ProductLevel,
224
+ quantity: number,//acessos simultâneos permitidos por esta COMPRA
225
+ purchaseId:number|null, //null when free
226
+ type: 'free'|'own'|'shared'
227
+ }
228
+
222
229
  // Tipos para logs do sistema
223
230
  export type LogEntry = {
224
231
  appId: string;