File tree Expand file tree Collapse file tree 5 files changed +36
-4
lines changed Expand file tree Collapse file tree 5 files changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -379,11 +379,19 @@ class Group extends BaseModel {
379
379
// src/models/Permission.ts
380
380
class Permission extends BaseModel {
381
381
type = "permissions" ;
382
+ name = "" ;
382
383
description = "" ;
384
+ category = "" ;
385
+ component = "" ;
386
+ verb = "" ;
383
387
static relationships = [ ] ;
384
388
constructor ( data ) {
385
389
super ( data ) ;
386
- this . description = data ?. attributes ?. description ?? "" ;
390
+ this . name = data ?. attributes ?. name ?? data ?. name ?? "" ;
391
+ this . description = data ?. attributes ?. description ?? data ?. description ?? "" ;
392
+ this . category = data ?. attributes ?. category ?? data ?. category ?? "" ;
393
+ this . component = data ?. attributes ?. component ?? data ?. component ?? "" ;
394
+ this . verb = data ?. attributes ?. verb ?? data ?. verb ;
387
395
}
388
396
}
389
397
Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ import type { RelationshipDefinition } from '../types/RelationshipDefinition';
2
2
import { BaseModel } from './BaseModel' ;
3
3
export declare class Permission extends BaseModel {
4
4
type : string ;
5
+ name : string ;
5
6
description : string ;
7
+ category : string ;
8
+ component : string ;
9
+ verb : string ;
6
10
static relationships : RelationshipDefinition [ ] ;
7
11
constructor ( data ?: any ) ;
8
12
}
Original file line number Diff line number Diff line change 1
1
import { BaseModel } from './BaseModel' ;
2
2
export class Permission extends BaseModel {
3
3
type = 'permissions' ;
4
+ name = '' ;
4
5
description = '' ;
6
+ category = '' ;
7
+ component = '' ;
8
+ verb = '' ;
5
9
static relationships = [ ] ;
6
10
constructor ( data ) {
7
11
super ( data ) ;
8
- this . description = data ?. attributes ?. description ?? '' ;
12
+ this . name = data ?. attributes ?. name ?? data ?. name ?? '' ;
13
+ this . description = data ?. attributes ?. description ?? data ?. description ?? '' ;
14
+ this . category = data ?. attributes ?. category ?? data ?. category ?? '' ;
15
+ this . component = data ?. attributes ?. component ?? data ?. component ?? '' ;
16
+ this . verb = data ?. attributes ?. verb ?? data ?. verb ;
9
17
}
10
18
}
Original file line number Diff line number Diff line change 4
4
"type" : " git" ,
5
5
"url" : " https://github.com/ctrl-hub/sdk.ts"
6
6
},
7
- "version" : " 0.1.130 " ,
7
+ "version" : " 0.1.131 " ,
8
8
"main" : " dist/index.js" ,
9
9
"types" : " dist/index.d.ts" ,
10
10
"type" : " module" ,
Original file line number Diff line number Diff line change @@ -4,13 +4,25 @@ import { BaseModel } from '@models/BaseModel';
4
4
export class Permission extends BaseModel {
5
5
public type : string = 'permissions' ;
6
6
7
+ public name : string = '' ;
8
+
7
9
public description : string = '' ;
8
10
11
+ public category : string = '' ;
12
+
13
+ public component : string = '' ;
14
+
15
+ public verb : string = '' ;
16
+
9
17
static relationships : RelationshipDefinition [ ] = [ ] ;
10
18
11
19
constructor ( data ?: any ) {
12
20
super ( data ) ;
13
- this . description = data ?. attributes ?. description ?? '' ;
21
+ this . name = data ?. attributes ?. name ?? data ?. name ?? '' ;
22
+ this . description = data ?. attributes ?. description ?? data ?. description ?? '' ;
23
+ this . category = data ?. attributes ?. category ?? data ?. category ?? '' ;
24
+ this . component = data ?. attributes ?. component ?? data ?. component ?? '' ;
25
+ this . verb = data ?. attributes ?. verb ?? data ?. verb
14
26
}
15
27
16
28
}
You can’t perform that action at this time.
0 commit comments