File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,13 @@ class Group extends BaseModel {
355
355
name = "" ;
356
356
description = "" ;
357
357
bindings = [ ] ;
358
- static relationships = [ ] ;
358
+ static relationships = [
359
+ {
360
+ name : "users" ,
361
+ type : "array" ,
362
+ modelType : "users"
363
+ }
364
+ ] ;
359
365
constructor ( data ) {
360
366
super ( data ) ;
361
367
this . name = data ?. attributes ?. name ?? data ?. name ?? "" ;
Original file line number Diff line number Diff line change @@ -4,7 +4,13 @@ export class Group extends BaseModel {
4
4
name = '' ;
5
5
description = '' ;
6
6
bindings = [ ] ;
7
- static relationships = [ ] ;
7
+ static relationships = [
8
+ {
9
+ name : 'users' ,
10
+ type : 'array' ,
11
+ modelType : 'users' ,
12
+ } ,
13
+ ] ;
8
14
constructor ( data ) {
9
15
super ( data ) ;
10
16
this . name = data ?. attributes ?. name ?? data ?. name ?? '' ;
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.124 " ,
7
+ "version" : " 0.1.125 " ,
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 @@ -23,7 +23,13 @@ export class Group extends BaseModel implements Partial<JsonApiMapping> {
23
23
public description : string = '' ;
24
24
public bindings : Binding [ ] = [ ] ;
25
25
26
- static relationships : RelationshipDefinition [ ] = [ ] ;
26
+ static relationships : RelationshipDefinition [ ] = [
27
+ {
28
+ name : 'users' ,
29
+ type : 'array' ,
30
+ modelType : 'users' ,
31
+ } ,
32
+ ] ;
27
33
28
34
constructor ( data ?: any ) {
29
35
super ( data ) ;
You can’t perform that action at this time.
0 commit comments