-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequestIdentifier.ts
More file actions
41 lines (39 loc) · 1016 Bytes
/
RequestIdentifier.ts
File metadata and controls
41 lines (39 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { gql } from 'graphql-request';
export const REMOVE_REQUEST_IDENTIFIERS = gql`
mutation TranscendCliRemoveRequestIdentifiers($input: RemoveRequestIdentifiersInput!) {
removeRequestIdentifiers(input: $input) {
count
}
}
`;
// TODO: https://transcend.height.app/T-27909 - enable optimizations
// isExportCsv: true
export const REQUEST_IDENTIFIERS = gql`
query TranscendCliRequestIdentifiers(
$first: Int!
$after: String
$requestIds: [ID!]
$updatedAtBefore: Date
$updatedAtAfter: Date
) {
requestIdentifiers(
input: { requestIds: $requestIds }
filterBy: { updatedAtBefore: $updatedAtBefore, updatedAtAfter: $updatedAtAfter }
first: $first
after: $after
useMaster: false
orderBy: [{ field: createdAt, direction: ASC }, { field: name, direction: ASC }]
) {
nodes {
id
name
isVerifiedAtLeastOnce
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
`;