anymal-protocol 1.0.26 → 1.0.28
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.
- package/dist/index.js +7 -3
- package/dist/index.mjs +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -375,7 +375,7 @@ function useFetchNotifications() {
|
|
|
375
375
|
try {
|
|
376
376
|
const query = `
|
|
377
377
|
query AnymalNotification($groupBy: [AnymalNotificationField!], $filter: AnymalNotificationFilterArg) {
|
|
378
|
-
AnymalNotification(groupBy: $groupBy, filter: $filter) {
|
|
378
|
+
AnymalNotification(groupBy: $groupBy, filter: $filter, order: $order) {
|
|
379
379
|
anymalTxId
|
|
380
380
|
title
|
|
381
381
|
_group {
|
|
@@ -385,7 +385,6 @@ function useFetchNotifications() {
|
|
|
385
385
|
id
|
|
386
386
|
pid
|
|
387
387
|
read
|
|
388
|
-
source
|
|
389
388
|
tags
|
|
390
389
|
text
|
|
391
390
|
title
|
|
@@ -402,8 +401,13 @@ function useFetchNotifications() {
|
|
|
402
401
|
},
|
|
403
402
|
...additionalFilters || {}
|
|
404
403
|
};
|
|
404
|
+
const order = [
|
|
405
|
+
{
|
|
406
|
+
timeAddedUtc: "ASC"
|
|
407
|
+
}
|
|
408
|
+
];
|
|
405
409
|
const groupBy = ["anymalTxId", "title"];
|
|
406
|
-
const variables = { filter, groupBy };
|
|
410
|
+
const variables = { filter, groupBy, order };
|
|
407
411
|
const response = await fetch(endpoint, {
|
|
408
412
|
method: "POST",
|
|
409
413
|
headers: {
|
package/dist/index.mjs
CHANGED
|
@@ -330,7 +330,7 @@ function useFetchNotifications() {
|
|
|
330
330
|
try {
|
|
331
331
|
const query = `
|
|
332
332
|
query AnymalNotification($groupBy: [AnymalNotificationField!], $filter: AnymalNotificationFilterArg) {
|
|
333
|
-
AnymalNotification(groupBy: $groupBy, filter: $filter) {
|
|
333
|
+
AnymalNotification(groupBy: $groupBy, filter: $filter, order: $order) {
|
|
334
334
|
anymalTxId
|
|
335
335
|
title
|
|
336
336
|
_group {
|
|
@@ -340,7 +340,6 @@ function useFetchNotifications() {
|
|
|
340
340
|
id
|
|
341
341
|
pid
|
|
342
342
|
read
|
|
343
|
-
source
|
|
344
343
|
tags
|
|
345
344
|
text
|
|
346
345
|
title
|
|
@@ -357,8 +356,13 @@ function useFetchNotifications() {
|
|
|
357
356
|
},
|
|
358
357
|
...additionalFilters || {}
|
|
359
358
|
};
|
|
359
|
+
const order = [
|
|
360
|
+
{
|
|
361
|
+
timeAddedUtc: "ASC"
|
|
362
|
+
}
|
|
363
|
+
];
|
|
360
364
|
const groupBy = ["anymalTxId", "title"];
|
|
361
|
-
const variables = { filter, groupBy };
|
|
365
|
+
const variables = { filter, groupBy, order };
|
|
362
366
|
const response = await fetch(endpoint, {
|
|
363
367
|
method: "POST",
|
|
364
368
|
headers: {
|
package/package.json
CHANGED