Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 1065ee1

Browse files
committed
PATCH: add creadted_at and upated_at to Propertie et PropertySet
1 parent 6ac4438 commit 1065ee1

6 files changed

Lines changed: 60 additions & 0 deletions

File tree

docs/Property.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ Name | Type | Description | Notes
88
**definition** | [**PropertyDefinition**](PropertyDefinition.md) | |
99
**value** | [**Object**](.md) | | [optional]
1010
**propertySetId** | **String** | This field is useful when you update a property and the API is rebuilding a new property set to avoid an update on many elements. It gives you the new pset id | [optional] [readonly]
11+
**createdAt** | **Date** | | [optional] [readonly]
12+
**updatedAt** | **Date** | | [optional] [readonly]
1113

1214

docs/PropertySet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ Name | Type | Description | Notes
99
**description** | **String** | | [optional]
1010
**type** | **String** | | [optional]
1111
**properties** | [**[Property]**](Property.md) | | [optional]
12+
**createdAt** | **Date** | | [optional] [readonly]
13+
**updatedAt** | **Date** | | [optional] [readonly]
1214

1315

src/model/Property.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ class Property {
6262
if (data.hasOwnProperty('property_set_id')) {
6363
obj['property_set_id'] = ApiClient.convertToType(data['property_set_id'], 'String');
6464
}
65+
if (data.hasOwnProperty('created_at')) {
66+
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
67+
}
68+
if (data.hasOwnProperty('updated_at')) {
69+
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
70+
}
6571
}
6672
return obj;
6773
}
@@ -90,6 +96,16 @@ Property.prototype['value'] = undefined;
9096
*/
9197
Property.prototype['property_set_id'] = undefined;
9298

99+
/**
100+
* @member {Date} created_at
101+
*/
102+
Property.prototype['created_at'] = undefined;
103+
104+
/**
105+
* @member {Date} updated_at
106+
*/
107+
Property.prototype['updated_at'] = undefined;
108+
93109

94110

95111

src/model/PropertySet.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ class PropertySet {
6363
if (data.hasOwnProperty('properties')) {
6464
obj['properties'] = ApiClient.convertToType(data['properties'], [Property]);
6565
}
66+
if (data.hasOwnProperty('created_at')) {
67+
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
68+
}
69+
if (data.hasOwnProperty('updated_at')) {
70+
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
71+
}
6672
}
6773
return obj;
6874
}
@@ -95,6 +101,16 @@ PropertySet.prototype['type'] = undefined;
95101
*/
96102
PropertySet.prototype['properties'] = undefined;
97103

104+
/**
105+
* @member {Date} created_at
106+
*/
107+
PropertySet.prototype['created_at'] = undefined;
108+
109+
/**
110+
* @member {Date} updated_at
111+
*/
112+
PropertySet.prototype['updated_at'] = undefined;
113+
98114

99115

100116

test/model/Property.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@
7878
//expect(instance).to.be();
7979
});
8080

81+
it('should have the property createdAt (base name: "created_at")', function() {
82+
// uncomment below and update the code to test the property createdAt
83+
//var instane = new bimdata.Property();
84+
//expect(instance).to.be();
85+
});
86+
87+
it('should have the property updatedAt (base name: "updated_at")', function() {
88+
// uncomment below and update the code to test the property updatedAt
89+
//var instane = new bimdata.Property();
90+
//expect(instance).to.be();
91+
});
92+
8193
});
8294

8395
}));

test/model/PropertySet.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@
8484
//expect(instance).to.be();
8585
});
8686

87+
it('should have the property createdAt (base name: "created_at")', function() {
88+
// uncomment below and update the code to test the property createdAt
89+
//var instane = new bimdata.PropertySet();
90+
//expect(instance).to.be();
91+
});
92+
93+
it('should have the property updatedAt (base name: "updated_at")', function() {
94+
// uncomment below and update the code to test the property updatedAt
95+
//var instane = new bimdata.PropertySet();
96+
//expect(instance).to.be();
97+
});
98+
8799
});
88100

89101
}));

0 commit comments

Comments
 (0)