Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/wasm-sdk/AI_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ Parameters:
- Example: `GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec`
- `documentType` (text, required) - Document Type
- Example: `domain`
- `whereClause` (text, optional) - Where Clause (JSON)
- `where` (json, optional) - Where Clause (JSON)
- Example: `[["normalizedParentDomainName", "==", "dash"], ["normalizedLabel", "==", "therea1s11mshaddy5"]]`
- `orderBy` (text, optional) - Order By (JSON)
- `orderBy` (json, optional) - Order By (JSON)
- Example: `[["$createdAt", "desc"]]`
- `limit` (number, optional) - Limit

Expand Down
6 changes: 3 additions & 3 deletions packages/wasm-sdk/api-definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,15 @@
"placeholder": "domain"
},
{
"name": "whereClause",
"type": "text",
"name": "where",
"type": "json",
"label": "Where Clause (JSON)",
"required": false,
"placeholder": "[[\"normalizedParentDomainName\", \"==\", \"dash\"], [\"normalizedLabel\", \"==\", \"therea1s11mshaddy5\"]]"
},
{
"name": "orderBy",
"type": "text",
"type": "json",
"label": "Order By (JSON)",
"required": false,
"placeholder": "[[\"$createdAt\", \"desc\"]]"
Expand Down
4 changes: 2 additions & 2 deletions packages/wasm-sdk/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -983,13 +983,13 @@ <h5>Parameters:</h5>
</div>
<div class="parameter">
<span class="param-name">Where Clause (JSON)</span>
<span class="param-type">text</span>
<span class="param-type">json</span>
<span class="param-optional">(optional)</span>
<br><small>Example: [[&quot;normalizedParentDomainName&quot;, &quot;==&quot;, &quot;dash&quot;], [&quot;normalizedLabel&quot;, &quot;==&quot;, &quot;therea1s11mshaddy5&quot;]]</small>
</div>
<div class="parameter">
<span class="param-name">Order By (JSON)</span>
<span class="param-type">text</span>
<span class="param-type">json</span>
<span class="param-optional">(optional)</span>
<br><small>Example: [[&quot;$createdAt&quot;, &quot;desc&quot;]]</small>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm-sdk/docs_manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"generated_at": "2025-08-18T19:21:21.062910+00:00",
"generated_at": "2025-09-02T17:31:30.731295+00:00",
"queries": {
"getIdentity": {
"category": "identity",
Expand Down
4 changes: 3 additions & 1 deletion packages/wasm-sdk/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def generate_example_code(query_key, inputs):
'amount': '1000000',
'recipientId': f"'{test_data['identity_id']}'",
'toAddress': "'yNPbcFfabtNmmxKdGwhHomdYfVs6gikbPf'",
'whereClause': 'JSON.stringify([["normalizedParentDomainName", "==", "dash"]])',
'where': 'JSON.stringify([["normalizedParentDomainName", "==", "dash"]])',
'orderBy': 'JSON.stringify([["normalizedLabel", "asc"]])',
'groupContractPosition': '0',
'groupContractPositions': '[0]',
Expand Down Expand Up @@ -662,6 +662,8 @@ def generate_docs_css():
font-size: 0.9em;
margin-bottom: 10px;
position: relative;
white-space: pre-wrap;
overflow-x: auto;
}

.run-button {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ const testData = {
{
dataContractId: "GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec",
documentType: "domain",
limit: 10
limit: 10,
where: '[["normalizedParentDomainName", "==", "dash"], ["normalizedLabel", "startsWith", "test"]]',
orderBy: '[["normalizedLabel", "asc"]]'
}
]
},
Expand Down
Loading