Skip to content

Commit 4c04d5f

Browse files
committed
feat: add NextApps, NextDatasets, NextDeals, NextTasks, and NextWorkerpools to assure next page in pagination
1 parent 5bfa26e commit 4c04d5f

File tree

12 files changed

+303
-15
lines changed

12 files changed

+303
-15
lines changed

src/graphql/gql.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,65 @@ import * as types from './graphql';
1616
*/
1717
type Documents = {
1818
"\n query Apps($length: Int = 20, $skip: Int = 0) {\n apps(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n owner {\n address: id\n }\n timestamp\n name\n type\n multiaddr\n checksum\n mrenclave\n transfers(orderBy: timestamp, orderDirection: desc) {\n transaction {\n txHash: id\n timestamp\n blockNumber\n }\n }\n }\n }\n": typeof types.AppsDocument,
19+
"\n query NextApps($length: Int = 20, $skip: Int = 0) {\n apps(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n": typeof types.NextAppsDocument,
1920
"\n query Datasets($length: Int = 20, $skip: Int = 0) {\n datasets(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n owner {\n address: id\n }\n timestamp\n name\n multiaddr\n checksum\n transfers(orderBy: timestamp, orderDirection: desc) {\n transaction {\n txHash: id\n timestamp\n blockNumber\n }\n }\n }\n }\n": typeof types.DatasetsDocument,
21+
"\n query NextDatasets($length: Int = 20, $skip: Int = 0) {\n datasets(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n": typeof types.NextDatasetsDocument,
2022
"\n query Deals($length: Int = 20, $skip: Int = 0) {\n deals(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n dealid: id\n timestamp\n requester {\n address: id\n }\n beneficiary {\n address: id\n }\n callback {\n address: id\n }\n app {\n address: id\n }\n dataset {\n address: id\n }\n workerpool {\n address: id\n }\n category {\n catid: id\n workClockTimeRef\n }\n startTime\n appPrice\n datasetPrice\n workerpoolPrice\n botSize\n trust\n completedTasksCount\n claimedTasksCount\n }\n }\n": typeof types.DealsDocument,
23+
"\n query NextDeals($length: Int = 20, $skip: Int = 0) {\n deals(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n dealid: id\n }\n }\n": typeof types.NextDealsDocument,
24+
"\n query NextTasks($length: Int = 20, $skip: Int = 0) {\n tasks(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n taskid: id\n }\n }\n": typeof types.NextTasksDocument,
2125
"\n query Tasks($length: Int = 20, $skip: Int = 0) {\n tasks(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n taskid: id\n index\n finalDeadline\n status\n timestamp\n deal {\n requester {\n address: id\n }\n beneficiary {\n address: id\n }\n app {\n address: id\n }\n dataset {\n address: id\n }\n workerpool {\n address: id\n }\n category {\n catid: id\n workClockTimeRef\n }\n }\n }\n }\n": typeof types.TasksDocument,
26+
"\n query NextWorkerpools($length: Int = 20, $skip: Int = 0) {\n workerpools(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n": typeof types.NextWorkerpoolsDocument,
2227
"\n query Workerpools($length: Int = 20, $skip: Int = 0) {\n workerpools(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n owner {\n address: id\n }\n timestamp\n description\n workerStakeRatio\n schedulerRewardRatio\n transfers(orderBy: timestamp, orderDirection: desc) {\n transaction {\n txHash: id\n timestamp\n blockNumber\n }\n }\n }\n }\n": typeof types.WorkerpoolsDocument,
2328
};
2429
const documents: Documents = {
2530
"\n query Apps($length: Int = 20, $skip: Int = 0) {\n apps(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n owner {\n address: id\n }\n timestamp\n name\n type\n multiaddr\n checksum\n mrenclave\n transfers(orderBy: timestamp, orderDirection: desc) {\n transaction {\n txHash: id\n timestamp\n blockNumber\n }\n }\n }\n }\n": types.AppsDocument,
31+
"\n query NextApps($length: Int = 20, $skip: Int = 0) {\n apps(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n": types.NextAppsDocument,
2632
"\n query Datasets($length: Int = 20, $skip: Int = 0) {\n datasets(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n owner {\n address: id\n }\n timestamp\n name\n multiaddr\n checksum\n transfers(orderBy: timestamp, orderDirection: desc) {\n transaction {\n txHash: id\n timestamp\n blockNumber\n }\n }\n }\n }\n": types.DatasetsDocument,
33+
"\n query NextDatasets($length: Int = 20, $skip: Int = 0) {\n datasets(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n": types.NextDatasetsDocument,
2734
"\n query Deals($length: Int = 20, $skip: Int = 0) {\n deals(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n dealid: id\n timestamp\n requester {\n address: id\n }\n beneficiary {\n address: id\n }\n callback {\n address: id\n }\n app {\n address: id\n }\n dataset {\n address: id\n }\n workerpool {\n address: id\n }\n category {\n catid: id\n workClockTimeRef\n }\n startTime\n appPrice\n datasetPrice\n workerpoolPrice\n botSize\n trust\n completedTasksCount\n claimedTasksCount\n }\n }\n": types.DealsDocument,
35+
"\n query NextDeals($length: Int = 20, $skip: Int = 0) {\n deals(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n dealid: id\n }\n }\n": types.NextDealsDocument,
36+
"\n query NextTasks($length: Int = 20, $skip: Int = 0) {\n tasks(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n taskid: id\n }\n }\n": types.NextTasksDocument,
2837
"\n query Tasks($length: Int = 20, $skip: Int = 0) {\n tasks(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n taskid: id\n index\n finalDeadline\n status\n timestamp\n deal {\n requester {\n address: id\n }\n beneficiary {\n address: id\n }\n app {\n address: id\n }\n dataset {\n address: id\n }\n workerpool {\n address: id\n }\n category {\n catid: id\n workClockTimeRef\n }\n }\n }\n }\n": types.TasksDocument,
38+
"\n query NextWorkerpools($length: Int = 20, $skip: Int = 0) {\n workerpools(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n": types.NextWorkerpoolsDocument,
2939
"\n query Workerpools($length: Int = 20, $skip: Int = 0) {\n workerpools(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n owner {\n address: id\n }\n timestamp\n description\n workerStakeRatio\n schedulerRewardRatio\n transfers(orderBy: timestamp, orderDirection: desc) {\n transaction {\n txHash: id\n timestamp\n blockNumber\n }\n }\n }\n }\n": types.WorkerpoolsDocument,
3040
};
3141

3242
/**
3343
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
3444
*/
3545
export function graphql(source: "\n query Apps($length: Int = 20, $skip: Int = 0) {\n apps(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n owner {\n address: id\n }\n timestamp\n name\n type\n multiaddr\n checksum\n mrenclave\n transfers(orderBy: timestamp, orderDirection: desc) {\n transaction {\n txHash: id\n timestamp\n blockNumber\n }\n }\n }\n }\n"): typeof import('./graphql').AppsDocument;
46+
/**
47+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
48+
*/
49+
export function graphql(source: "\n query NextApps($length: Int = 20, $skip: Int = 0) {\n apps(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n"): typeof import('./graphql').NextAppsDocument;
3650
/**
3751
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
3852
*/
3953
export function graphql(source: "\n query Datasets($length: Int = 20, $skip: Int = 0) {\n datasets(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n owner {\n address: id\n }\n timestamp\n name\n multiaddr\n checksum\n transfers(orderBy: timestamp, orderDirection: desc) {\n transaction {\n txHash: id\n timestamp\n blockNumber\n }\n }\n }\n }\n"): typeof import('./graphql').DatasetsDocument;
54+
/**
55+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
56+
*/
57+
export function graphql(source: "\n query NextDatasets($length: Int = 20, $skip: Int = 0) {\n datasets(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n"): typeof import('./graphql').NextDatasetsDocument;
4058
/**
4159
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
4260
*/
4361
export function graphql(source: "\n query Deals($length: Int = 20, $skip: Int = 0) {\n deals(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n dealid: id\n timestamp\n requester {\n address: id\n }\n beneficiary {\n address: id\n }\n callback {\n address: id\n }\n app {\n address: id\n }\n dataset {\n address: id\n }\n workerpool {\n address: id\n }\n category {\n catid: id\n workClockTimeRef\n }\n startTime\n appPrice\n datasetPrice\n workerpoolPrice\n botSize\n trust\n completedTasksCount\n claimedTasksCount\n }\n }\n"): typeof import('./graphql').DealsDocument;
62+
/**
63+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
64+
*/
65+
export function graphql(source: "\n query NextDeals($length: Int = 20, $skip: Int = 0) {\n deals(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n dealid: id\n }\n }\n"): typeof import('./graphql').NextDealsDocument;
66+
/**
67+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
68+
*/
69+
export function graphql(source: "\n query NextTasks($length: Int = 20, $skip: Int = 0) {\n tasks(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n taskid: id\n }\n }\n"): typeof import('./graphql').NextTasksDocument;
4470
/**
4571
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
4672
*/
4773
export function graphql(source: "\n query Tasks($length: Int = 20, $skip: Int = 0) {\n tasks(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n taskid: id\n index\n finalDeadline\n status\n timestamp\n deal {\n requester {\n address: id\n }\n beneficiary {\n address: id\n }\n app {\n address: id\n }\n dataset {\n address: id\n }\n workerpool {\n address: id\n }\n category {\n catid: id\n workClockTimeRef\n }\n }\n }\n }\n"): typeof import('./graphql').TasksDocument;
74+
/**
75+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
76+
*/
77+
export function graphql(source: "\n query NextWorkerpools($length: Int = 20, $skip: Int = 0) {\n workerpools(\n first: $length\n skip: $skip\n orderBy: timestamp\n orderDirection: desc\n ) {\n address: id\n }\n }\n"): typeof import('./graphql').NextWorkerpoolsDocument;
4878
/**
4979
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
5080
*/

0 commit comments

Comments
 (0)