@eduzz/miau-client 0.0.13 → 0.0.15

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.
@@ -1,13 +1,11 @@
1
1
  import { type Resource } from './Resource';
2
- import { type Secret } from './Secret';
3
2
  export type Application = {
4
3
  id?: string;
5
4
  organizationId: string;
6
5
  name: string;
7
6
  slug: string;
8
- secrets: Secret[];
9
7
  resources: Resource[];
10
8
  createdAt: Date;
11
- updatedAt: Date | null;
12
- deletedAt: Date | null;
9
+ updatedAt: Date;
10
+ deletedAt?: Date;
13
11
  };
@@ -3,6 +3,6 @@ export type Organization = {
3
3
  name: string;
4
4
  slug: string;
5
5
  createdAt: Date;
6
- updatedAt: Date | null;
7
- deletedAt: Date | null;
6
+ updatedAt: Date;
7
+ deletedAt?: Date;
8
8
  };
@@ -7,6 +7,6 @@ export type Permission = {
7
7
  metadata: Record<string, string>;
8
8
  resources: Resource[];
9
9
  createdAt: Date;
10
- updatedAt: Date | null;
11
- deletedAt: Date | null;
10
+ updatedAt: Date;
11
+ deletedAt?: Date;
12
12
  };
@@ -1,7 +1,11 @@
1
1
  export type Secret = {
2
- id: string;
2
+ id?: string;
3
+ applicationId: string;
3
4
  name: string;
4
5
  value: string;
6
+ environment: string;
7
+ expiresAt?: Date;
5
8
  createdAt: Date;
6
9
  updatedAt: Date;
10
+ deletedAt?: Date;
7
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eduzz/miau-client",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Eduzz Miau Client",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/MiauClient.ts CHANGED
@@ -33,7 +33,7 @@ export class MiauClient {
33
33
 
34
34
  constructor(props: MiauClientConfig) {
35
35
  this.apiUrl = props.apiUrl;
36
- const apiKey = props.appSecret.substring(7, 27);
36
+ const apiKey = props.appSecret.substring(7, 32);
37
37
  this.basicAuthToken = Buffer.from(`${apiKey}:${props.appSecret}`).toString('base64');
38
38
  }
39
39