@apigames/sdk-core 22.1.9 → 22.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -80,6 +80,7 @@ class ResourceContainer {
|
|
|
80
80
|
else {
|
|
81
81
|
this._data = obj;
|
|
82
82
|
}
|
|
83
|
+
this._countQueryHash = undefined;
|
|
83
84
|
}
|
|
84
85
|
RemoveResourceFromMemoryStructure(resource) {
|
|
85
86
|
if (this.isResourceList(this.data)) {
|
|
@@ -91,6 +92,7 @@ class ResourceContainer {
|
|
|
91
92
|
else if (this.isResourceObject(this.data) && this.data.id === resource.id) {
|
|
92
93
|
this._data = undefined;
|
|
93
94
|
}
|
|
95
|
+
this._countQueryHash = undefined;
|
|
94
96
|
}
|
|
95
97
|
LoadResourceData(resourceData) {
|
|
96
98
|
if ((0, json_1.hasProperty)(resourceData, 'type') && (0, json_1.isString)(resourceData.type)) {
|
|
@@ -242,6 +242,12 @@ class ResourceObject {
|
|
|
242
242
|
else {
|
|
243
243
|
yield this.UpdateResource();
|
|
244
244
|
}
|
|
245
|
+
if ((0, json_1.isDefined)(this.attributes)) {
|
|
246
|
+
this.shadowAttributes.LoadData(this.attributes);
|
|
247
|
+
}
|
|
248
|
+
if ((0, json_1.isDefined)(this.relationships)) {
|
|
249
|
+
this.shadowRelationships.LoadData(this.relationships);
|
|
250
|
+
}
|
|
245
251
|
});
|
|
246
252
|
}
|
|
247
253
|
get type() {
|