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

Commit 3db4fc0

Browse files
committed
Update GraphQL queries with geometry parameter
1 parent 70d83f0 commit 3db4fc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InvvardDev.EZLayoutDisplay.Desktop/Service/Implementation/LayoutService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public class LayoutService : ILayoutService
2626
};
2727

2828
private readonly string GetLayoutBody =
29-
"{{\"operationName\":\"getLayout\",\"variables\":{{\"hashId\":\"{0}\",\"revisionId\":\"{1}\"}},\"query\":\"query getLayout($hashId: String!, $revisionId: String!) {{\\n Layout(hashId: $hashId, revisionId: $revisionId) {{\\n ...LayoutData\\n }}\\n}}\\n\\nfragment LayoutData on Layout {{\\n geometry\\n hashId\\n title\\n tags {{\\n id\\n hashId\\n name\\n }}\\n revision {{\\n ...RevisionData\\n }}\\n}}\\n\\nfragment RevisionData on Revision {{\\n hashId\\n model\\n title\\n swatch\\n hexUrl\\n zipUrl\\n qmkVersion\\n qmkUptodate\\n config\\n layers {{\\n hashId\\n keys\\n position\\n title\\n color\\n}}\\n}}\\n\"}}";
29+
"{{\"operationName\":\"getLayout\",\"variables\":{{\"hashId\":\"{0}\",\"geometry\":\"{1}\",\"revisionId\":\"{2}\"}},\"query\":\"query getLayout($hashId: String!, $revisionId: String!, $geometry: String) {{\\n Layout(hashId: $hashId, geometry: $geometry, revisionId: $revisionId) {{\\n ...LayoutData\\n }}\\n}}\\n\\nfragment LayoutData on Layout {{\\n geometry\\n hashId\\n title\\n tags {{\\n id\\n hashId\\n name\\n }}\\n revision {{\\n ...RevisionData\\n }}\\n}}\\n\\nfragment RevisionData on Revision {{\\n hashId\\n model\\n title\\n swatch\\n hexUrl\\n zipUrl\\n qmkVersion\\n qmkUptodate\\n config\\n layers {{\\n hashId\\n keys\\n position\\n title\\n color\\n}}\\n}}\\n\"}}";
3030

3131
private readonly string GetLayoutInfoRequestBody =
32-
"{{\"operationName\":\"getLayout\",\"variables\":{{\"hashId\":\"{0}\",\"revisionId\":\"{1}\"}},\"query\":\"query getLayout($hashId: String!, $revisionId: String!) {{\\n Layout(hashId: $hashId, revisionId: $revisionId) {{\\n ...LayoutData\\n __typename\\n }}\\n}}\\n\\nfragment LayoutData on Layout {{\\n geometry\\n hashId\\n title\\n tags {{\\n id\\n hashId\\n name\\n }}\\n revision {{\\n hashId\\n title\\n hexUrl\\n model\\n zipUrl\\n qmkVersion\\n qmkUptodate\\n layers {{\\n position\\n title\\n }}\\n }}\\n __typename\\n}}\\n\"}}";
32+
"{{\"operationName\":\"getLayout\",\"variables\":{{\"hashId\":\"{0}\",\"geometry\":\"{1}\",\"revisionId\":\"{2}\"}},\"query\":\"query getLayout($hashId: String!, $revisionId: String!, $geometry: String) {{\\n Layout(hashId: $hashId, geometry: $geometry, revisionId: $revisionId) {{\\n ...LayoutData\\n }}\\n}}\\n\\nfragment LayoutData on Layout {{\\n geometry\\n hashId\\n title\\n tags {{\\n id\\n hashId\\n name\\n }}\\n revision {{\\n hashId\\n title\\n hexUrl\\n model\\n zipUrl\\n qmkVersion\\n qmkUptodate\\n layers {{\\n position\\n title\\n }}\\n }}\\n}}\\n\"}}";
3333

3434
private const string GetLayoutRequestUri = "https://oryx.zsa.io/graphql";
3535

0 commit comments

Comments
 (0)