Skip to content

Commit 1061925

Browse files
authored
Merge pull request #67 from ctrl-hub/add-vehicle-to-equipment-relationships
Add vehicle to equipment relationships
2 parents 85f8b1d + c8bbc10 commit 1061925

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

dist/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ class Equipment extends BaseModel {
190190
name: "model",
191191
type: "single",
192192
modelType: "equipment-models"
193+
},
194+
{
195+
name: "vehicle",
196+
type: "single",
197+
modelType: "vehicles"
193198
}
194199
];
195200
constructor(data) {

dist/models/Equipment.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export class Equipment extends BaseModel {
1717
type: 'single',
1818
modelType: 'equipment-models',
1919
},
20+
{
21+
name: 'vehicle',
22+
type: 'single',
23+
modelType: 'vehicles',
24+
},
2025
];
2126
constructor(data) {
2227
super(data);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/ctrl-hub/sdk.ts"
66
},
7-
"version": "0.1.141",
7+
"version": "0.1.142",
88
"main": "dist/index.js",
99
"types": "dist/index.d.ts",
1010
"type": "module",

src/models/Equipment.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ export class Equipment extends BaseModel implements Partial<JsonApiMapping> {
2525
type: 'single',
2626
modelType: 'equipment-models',
2727
},
28+
{
29+
name: 'vehicle',
30+
type: 'single',
31+
modelType: 'vehicles',
32+
},
2833
];
2934

3035
constructor(data?: any) {

0 commit comments

Comments
 (0)