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