@grantjs/schema 1.0.0 → 1.1.0
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/package.json +8 -8
- package/src/cdm/cdm-export-sections.ts +22 -0
- package/src/generated/graphql.ts +1656 -46
- package/src/generated/resolvers.ts +727 -0
- package/src/index.ts +11 -10
- package/src/operations/auth/login.graphql +2 -0
- package/src/operations/auth/setupMfa.graphql +7 -0
- package/src/operations/auth/verifyMfa.graphql +7 -0
- package/src/operations/auth/verifyMfaRecoveryCode.graphql +7 -0
- package/src/operations/me/createMyMfaEnrollment.graphql +7 -0
- package/src/operations/me/generateMyMfaRecoveryCodes.graphql +3 -0
- package/src/operations/me/me.graphql +1 -0
- package/src/operations/me/myMfaDevices.graphql +10 -0
- package/src/operations/me/myMfaRecoveryCodeStatus.graphql +6 -0
- package/src/operations/me/removeMyMfaDevice.graphql +5 -0
- package/src/operations/me/setMyPrimaryMfaDevice.graphql +6 -0
- package/src/operations/me/verifyMyMfaEnrollment.graphql +5 -0
- package/src/operations/organizations/getOrganizations.graphql +1 -0
- package/src/operations/organizations/updateOrganization.graphql +1 -0
- package/src/operations/projects/cancel-project-sync.graphql +17 -0
- package/src/operations/projects/project-sync-job.graphql +37 -0
- package/src/operations/projects/project-sync-jobs.graphql +40 -0
- package/src/operations/projects/start-project-export.graphql +20 -0
- package/src/operations/projects/start-project-sync.graphql +17 -0
- package/src/operations/resources/createResource.graphql +6 -0
- package/src/schema/auth/inputs/verify-mfa-recovery-code.graphql +3 -0
- package/src/schema/auth/inputs/verify-mfa.graphql +3 -0
- package/src/schema/auth/mutations/setup-mfa.graphql +3 -0
- package/src/schema/auth/mutations/verify-mfa-recovery-code.graphql +3 -0
- package/src/schema/auth/mutations/verify-mfa.graphql +3 -0
- package/src/schema/auth/types/login-response.graphql +5 -0
- package/src/schema/auth/types/mfa-setup-response.graphql +5 -0
- package/src/schema/auth/types/mfa-verify-response.graphql +5 -0
- package/src/schema/me/inputs/generate-my-mfa-recovery-codes.graphql +3 -0
- package/src/schema/me/inputs/remove-my-mfa-device.graphql +3 -0
- package/src/schema/me/inputs/set-my-primary-mfa-device.graphql +3 -0
- package/src/schema/me/inputs/verify-my-mfa-enrollment.graphql +3 -0
- package/src/schema/me/mutations/create-my-mfa-enrollment.graphql +3 -0
- package/src/schema/me/mutations/generate-my-mfa-recovery-codes.graphql +3 -0
- package/src/schema/me/mutations/remove-my-mfa-device.graphql +3 -0
- package/src/schema/me/mutations/set-my-primary-mfa-device.graphql +3 -0
- package/src/schema/me/mutations/verify-my-mfa-enrollment.graphql +3 -0
- package/src/schema/me/queries/my-mfa-devices.graphql +3 -0
- package/src/schema/me/queries/my-mfa-recovery-code-status.graphql +3 -0
- package/src/schema/me/types/me-response.graphql +1 -0
- package/src/schema/me/types/mfa-device.graphql +8 -0
- package/src/schema/me/types/mfa-enrollment.graphql +5 -0
- package/src/schema/me/types/mfa-recovery-code-status.graphql +4 -0
- package/src/schema/me/types/mfa-verify-result.graphql +3 -0
- package/src/schema/organization-users/inputs/add-organization-user.graphql +1 -0
- package/src/schema/organization-users/types/organization-user.graphql +1 -0
- package/src/schema/organizations/inputs/update-organization.graphql +1 -0
- package/src/schema/organizations/types/organization.graphql +1 -0
- package/src/schema/permissions/inputs/create-permission.graphql +1 -0
- package/src/schema/permissions/inputs/update-permission.graphql +1 -0
- package/src/schema/permissions/types/permission.graphql +1 -0
- package/src/schema/project-user-api-keys/inputs/add-project-user-api-key.graphql +4 -0
- package/src/schema/project-users/inputs/add-project-user.graphql +1 -0
- package/src/schema/project-users/types/project-user.graphql +3 -0
- package/src/schema/projects/inputs/project-sync-job-sort.graphql +4 -0
- package/src/schema/projects/inputs/start-project-export.graphql +31 -0
- package/src/schema/projects/inputs/sync-project-cdm.graphql +132 -0
- package/src/schema/projects/mutations/cancel-project-sync.graphql +9 -0
- package/src/schema/projects/mutations/start-project-export.graphql +12 -0
- package/src/schema/projects/mutations/start-project-sync.graphql +15 -0
- package/src/schema/projects/queries/project-sync-job.graphql +7 -0
- package/src/schema/projects/queries/project-sync-jobs.graphql +17 -0
- package/src/schema/projects/types/project-sync-job-page.graphql +8 -0
- package/src/schema/projects/types/project-sync-job-sortable-field.graphql +7 -0
- package/src/schema/projects/types/project-sync-job.graphql +53 -0
- package/src/schema/projects/types/sync-project-result.graphql +27 -0
- package/src/schema/resources/inputs/create-resource.graphql +2 -0
- package/src/schema/resources/inputs/update-resource.graphql +1 -0
- package/src/schema/resources/types/resource.graphql +2 -0
- package/src/schema/tags/inputs/create-tag.graphql +1 -0
- package/src/schema/tags/inputs/update-tag.graphql +1 -0
- package/src/schema/tags/types/tag.graphql +1 -0
package/src/index.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
+
export * from './cdm/cdm-export-sections';
|
|
1
2
|
export * from './generated/graphql';
|
|
2
|
-
export type {
|
|
3
|
-
ProjectAppPublicInfo,
|
|
4
|
-
ProjectAppScopeInfo,
|
|
5
|
-
ProjectConsentInfo,
|
|
6
|
-
ProjectConsentInfoUser,
|
|
7
|
-
ProjectConsentRedirectResult,
|
|
8
|
-
} from './project-oauth.types';
|
|
9
|
-
|
|
10
3
|
export type {
|
|
11
4
|
AccountResolvers,
|
|
12
5
|
GroupResolvers,
|
|
@@ -14,17 +7,25 @@ export type {
|
|
|
14
7
|
OrganizationInvitationResolvers,
|
|
15
8
|
OrganizationResolvers,
|
|
16
9
|
PermissionResolvers,
|
|
17
|
-
ProjectResolvers,
|
|
18
10
|
ProjectAppResolvers,
|
|
11
|
+
ProjectResolvers,
|
|
19
12
|
QueryResolvers,
|
|
20
13
|
RequireFields,
|
|
21
14
|
Resolver,
|
|
22
|
-
ResolverTypeWrapper,
|
|
23
15
|
Resolvers,
|
|
24
16
|
ResolversObject,
|
|
25
17
|
ResolversParentTypes,
|
|
26
18
|
ResolversTypes,
|
|
19
|
+
ResolverTypeWrapper,
|
|
20
|
+
ResourceResolvers,
|
|
27
21
|
RoleResolvers,
|
|
28
22
|
TagResolvers,
|
|
29
23
|
UserResolvers,
|
|
30
24
|
} from './generated/resolvers';
|
|
25
|
+
export type {
|
|
26
|
+
ProjectAppPublicInfo,
|
|
27
|
+
ProjectAppScopeInfo,
|
|
28
|
+
ProjectConsentInfo,
|
|
29
|
+
ProjectConsentInfoUser,
|
|
30
|
+
ProjectConsentRedirectResult,
|
|
31
|
+
} from './project-oauth.types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
mutation CancelProjectSync($id: ID!, $scope: Scope!, $jobId: ID!) {
|
|
2
|
+
cancelProjectSync(id: $id, scope: $scope, jobId: $jobId) {
|
|
3
|
+
id
|
|
4
|
+
projectId
|
|
5
|
+
status
|
|
6
|
+
cdmVersion
|
|
7
|
+
jobName
|
|
8
|
+
operation
|
|
9
|
+
modeStrategy
|
|
10
|
+
warnings
|
|
11
|
+
errorMessage
|
|
12
|
+
enqueuedAt
|
|
13
|
+
startedAt
|
|
14
|
+
completedAt
|
|
15
|
+
cancelledAt
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
query ProjectSyncJob($id: ID!, $scope: Scope!, $jobId: ID!) {
|
|
2
|
+
projectSyncJob(id: $id, scope: $scope, jobId: $jobId) {
|
|
3
|
+
id
|
|
4
|
+
projectId
|
|
5
|
+
status
|
|
6
|
+
cdmVersion
|
|
7
|
+
jobName
|
|
8
|
+
operation
|
|
9
|
+
modeStrategy
|
|
10
|
+
result {
|
|
11
|
+
projectId
|
|
12
|
+
importId
|
|
13
|
+
rolesCreated
|
|
14
|
+
groupsCreated
|
|
15
|
+
roleGroupsLinked
|
|
16
|
+
groupPermissionsLinked
|
|
17
|
+
projectRolesLinked
|
|
18
|
+
projectGroupsLinked
|
|
19
|
+
projectPermissionsLinked
|
|
20
|
+
projectResourcesLinked
|
|
21
|
+
projectUsersEnsured
|
|
22
|
+
usersCreated
|
|
23
|
+
userRolesAssigned
|
|
24
|
+
projectUserApiKeysCreated
|
|
25
|
+
warnings
|
|
26
|
+
}
|
|
27
|
+
warnings
|
|
28
|
+
errorMessage
|
|
29
|
+
enqueuedAt
|
|
30
|
+
startedAt
|
|
31
|
+
completedAt
|
|
32
|
+
cancelledAt
|
|
33
|
+
hasSnapshot
|
|
34
|
+
snapshotTakenAt
|
|
35
|
+
snapshotSizeBytes
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
query ProjectSyncJobs(
|
|
2
|
+
$id: ID!
|
|
3
|
+
$scope: Scope!
|
|
4
|
+
$page: Int
|
|
5
|
+
$limit: Int
|
|
6
|
+
$search: String
|
|
7
|
+
$sort: ProjectSyncJobSortInput
|
|
8
|
+
$status: ProjectSyncJobStatus
|
|
9
|
+
) {
|
|
10
|
+
projectSyncJobs(
|
|
11
|
+
id: $id
|
|
12
|
+
scope: $scope
|
|
13
|
+
page: $page
|
|
14
|
+
limit: $limit
|
|
15
|
+
search: $search
|
|
16
|
+
sort: $sort
|
|
17
|
+
status: $status
|
|
18
|
+
) {
|
|
19
|
+
jobs {
|
|
20
|
+
id
|
|
21
|
+
projectId
|
|
22
|
+
status
|
|
23
|
+
cdmVersion
|
|
24
|
+
jobName
|
|
25
|
+
operation
|
|
26
|
+
modeStrategy
|
|
27
|
+
warnings
|
|
28
|
+
errorMessage
|
|
29
|
+
enqueuedAt
|
|
30
|
+
startedAt
|
|
31
|
+
completedAt
|
|
32
|
+
cancelledAt
|
|
33
|
+
hasSnapshot
|
|
34
|
+
snapshotTakenAt
|
|
35
|
+
snapshotSizeBytes
|
|
36
|
+
}
|
|
37
|
+
totalCount
|
|
38
|
+
hasNextPage
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
mutation StartProjectExport($id: ID!, $scope: Scope!, $input: StartProjectExportInput!) {
|
|
2
|
+
startProjectExport(id: $id, scope: $scope, input: $input) {
|
|
3
|
+
id
|
|
4
|
+
projectId
|
|
5
|
+
status
|
|
6
|
+
cdmVersion
|
|
7
|
+
jobName
|
|
8
|
+
operation
|
|
9
|
+
modeStrategy
|
|
10
|
+
warnings
|
|
11
|
+
errorMessage
|
|
12
|
+
enqueuedAt
|
|
13
|
+
startedAt
|
|
14
|
+
completedAt
|
|
15
|
+
cancelledAt
|
|
16
|
+
hasSnapshot
|
|
17
|
+
snapshotTakenAt
|
|
18
|
+
snapshotSizeBytes
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
mutation StartProjectSync($id: ID!, $scope: Scope!, $input: SyncProjectInput!) {
|
|
2
|
+
startProjectSync(id: $id, scope: $scope, input: $input) {
|
|
3
|
+
id
|
|
4
|
+
projectId
|
|
5
|
+
status
|
|
6
|
+
cdmVersion
|
|
7
|
+
jobName
|
|
8
|
+
operation
|
|
9
|
+
modeStrategy
|
|
10
|
+
warnings
|
|
11
|
+
errorMessage
|
|
12
|
+
enqueuedAt
|
|
13
|
+
startedAt
|
|
14
|
+
completedAt
|
|
15
|
+
cancelledAt
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -2,6 +2,11 @@ type LoginResponse {
|
|
|
2
2
|
accounts: [Account!]!
|
|
3
3
|
accessToken: String!
|
|
4
4
|
refreshToken: String!
|
|
5
|
+
mfaVerified: Boolean
|
|
6
|
+
"""
|
|
7
|
+
When true, the client should complete MFA before expecting full API access (see AUTH_MIN_AAL_AT_LOGIN).
|
|
8
|
+
"""
|
|
9
|
+
requiresMfaStepUp: Boolean
|
|
5
10
|
requiresEmailVerification: Boolean
|
|
6
11
|
verificationExpiry: Date
|
|
7
12
|
email: String
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Parameters for enqueueing an asynchronous CDM **export** job. The worker
|
|
3
|
+
materialises a `SyncProjectInput` document and stores it in the job `snapshot`
|
|
4
|
+
column; this input is persisted as the job `payload` (export options only).
|
|
5
|
+
"""
|
|
6
|
+
input StartProjectExportInput {
|
|
7
|
+
"""
|
|
8
|
+
CDM document version (only `1` is supported).
|
|
9
|
+
"""
|
|
10
|
+
version: Int!
|
|
11
|
+
"""
|
|
12
|
+
Optional stable idempotency / display name (same column as import `SyncProjectInput.id`).
|
|
13
|
+
When set, an active job for the same `(project, operation=EXPORT, jobName)` is returned
|
|
14
|
+
instead of creating a new one.
|
|
15
|
+
"""
|
|
16
|
+
jobName: String
|
|
17
|
+
"""
|
|
18
|
+
Subset of CDM slices to export; omit or empty for a full project export.
|
|
19
|
+
"""
|
|
20
|
+
sections: [String!]
|
|
21
|
+
"""
|
|
22
|
+
When `users` are exported, whether to emit CDM-managed project user API key rows
|
|
23
|
+
(identity only). Omit = default true (full export behaviour).
|
|
24
|
+
"""
|
|
25
|
+
includeUserApiKeys: Boolean
|
|
26
|
+
"""
|
|
27
|
+
Embedded in the exported CDM document `mode` block for re-import.
|
|
28
|
+
Does not change export execution (snapshot is always read-only).
|
|
29
|
+
"""
|
|
30
|
+
mode: CdmModeInput
|
|
31
|
+
}
|