Skip to content

Commit

Permalink
Merge pull request #141 from ianmuchyri/noissue-fixdomainstruct
Browse files Browse the repository at this point in the history
NOISSUE - Add role and actions to domain
  • Loading branch information
ianmuchyri authored Jan 30, 2025
2 parents 9f07b14 + ca81152 commit 61d7c75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-shoes-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@absmach/magistrala-sdk": patch
---

add role and actions to domain struct
4 changes: 3 additions & 1 deletion src/defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ export interface DomainBasicInfo {
export interface Domain extends DomainBasicInfo {
tags?: string[];
metadata?: Record<string, any>;
permission?: string;
role_id?: string;
role_name?: string;
actions?: string[];
created_by?: string | UserBasicInfo;
updated_by?: string | UserBasicInfo;
created_at?: Date;
Expand Down
1 change: 0 additions & 1 deletion tests/domains.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe("Domains", () => {
id: "886b4266-77d1-4258-abae-2931fb4f16de",
name: "fkatwigs",
alias: "music",
permission: "admin",
status: "enabled",
};

Expand Down

0 comments on commit 61d7c75

Please sign in to comment.