/ miro_api_styles_fix.patch
miro_api_styles_fix.patch
 1  diff --git a/./node_modules/@mirohq/miro-api/dist/api/apis.js b/./node_modules/@mirohq/miro-api/dist/api/apis_fixed.js
 2  index d53640b..3781b25 100644
 3  --- a/./node_modules/@mirohq/miro-api/dist/api/apis.js
 4  +++ b/./node_modules/@mirohq/miro-api/dist/api/apis_fixed.js
 5  @@ -1359,6 +1359,10 @@ class MiroApi {
 6           urlResource.search = localVarQueryParameters.toString();
 7           const { response, bodyAsJson } = await makeJsonRequest(typeof this.accessToken === 'function' ? await this.accessToken() : this.accessToken, 'GET', urlResource, undefined, this.logger);
 8           const body = models_1.ObjectSerializer.deserialize(bodyAsJson, 'GenericItemCursorPaged');
 9  +        // Copy the style for each item from the bodyAsJson.items to the body.items
10  +        for (let i = 0; i < body.data.length; i++) {
11  +            body.data[i].style = bodyAsJson.data[i].style;
12  +        }
13           return { response, body };
14       }
15       /**
16  @@ -1409,6 +1413,7 @@ class MiroApi {
17           urlResource.search = localVarQueryParameters.toString();
18           const { response, bodyAsJson } = await makeJsonRequest(typeof this.accessToken === 'function' ? await this.accessToken() : this.accessToken, 'GET', urlResource, undefined, this.logger);
19           const body = models_1.ObjectSerializer.deserialize(bodyAsJson, 'GenericItem');
20  +        body.style = bodyAsJson.style;
21           return { response, body };
22       }
23       /**