6eaf3c8c92
* feat(workspaces): drop createdByUserId from the dataschema * feat(workspaces): repositories WIP * merge * protect against removing last admin in workspace * quick impl and stub tests * add tests * services * unit tests for role services * feat(workspaces): authorize project creation if workspace specified * feat(workspaces): emit project created event * feat(workspaces): assign roles on project create in workspace * feat(workspaces): update project roles when user added to workspace * feat(workspaces): stencil gql resolvers * fix(workspaces): lol lmao * fix(workspaces): perform automatic project role update in service function * fix(workspaces): also delete roles * fix(workspaces): broke tests again oops * fix(workspaces): update `onProjectCreated` listener to use new repo method * fix(workspaces): use service function in event listener * fix(workspaces): get workspace projects via existing stream repo functions * fix(workspaces): roles mapping in domain, use enum * feat(workspaces): stencil gql api and resolvers * fix(workspaces): repair type reference in tests * fix(workspaces): consolidate files, use different existing stream-getter * fix(workspaces): more specific error * fix(workspaces): roles and scopes * fix(workspaces): yield per page * fix(workspaces): some test dry * fix(workspaces): superdry * fix(workspaces): add scopes * fix(workspaces): classic * feat(workspaces): create workspace mutation * feat(workspaces): I'm sure everything will be fine * fix(workspaces): yep * fix(workspaces): successful gql e2e test * feat(workspaces): update workspace resolver * chore(workspaces): update resolver test * feat(workspaces): some retrieval resolvers * chore(workspaces): tests for query resolvers * fix(chore): revert temp test command change * fix(workspaces): test structure and gql types * fix(workspaces): validate user authz to perform some operations * fix(workspaces): use existing test infrastructure * fix(workspaces): stop `isPublic` check if authorizing a workspace resource * fix(workspaces): better test hygiene --------- Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
84 lines
5.0 KiB
YAML
84 lines
5.0 KiB
YAML
overwrite: true
|
|
schema:
|
|
- 'modules/schema.js'
|
|
documents: null
|
|
generates:
|
|
modules/core/graph/generated/graphql.ts:
|
|
plugins:
|
|
- 'typescript'
|
|
- 'typescript-resolvers'
|
|
config:
|
|
contextType: '@/modules/shared/helpers/typeHelper#GraphQLContext'
|
|
mappers:
|
|
Stream: '@/modules/core/helpers/graphTypes#StreamGraphQLReturn'
|
|
Commit: '@/modules/core/helpers/graphTypes#CommitGraphQLReturn'
|
|
Project: '@/modules/core/helpers/graphTypes#ProjectGraphQLReturn'
|
|
Object: '@/modules/core/helpers/graphTypes#ObjectGraphQLReturn'
|
|
Version: '@/modules/core/helpers/graphTypes#VersionGraphQLReturn'
|
|
ServerInvite: '@/modules/core/helpers/graphTypes#ServerInviteGraphQLReturnType'
|
|
Model: '@/modules/core/helpers/graphTypes#ModelGraphQLReturn'
|
|
ModelsTreeItem: '@/modules/core/helpers/graphTypes#ModelsTreeItemGraphQLReturn'
|
|
StreamAccessRequest: '@/modules/accessrequests/helpers/graphTypes#StreamAccessRequestGraphQLReturn'
|
|
ProjectAccessRequest: '@/modules/accessrequests/helpers/graphTypes#ProjectAccessRequestGraphQLReturn'
|
|
ProjectAccessRequestMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
LimitedUser: '@/modules/core/helpers/graphTypes#LimitedUserGraphQLReturn'
|
|
ActiveUserMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
ProjectMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
ProjectInviteMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
ModelMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
VersionMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
CommentMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
AutomateMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
AdminQueries: '@/modules/core/helpers/graphTypes#GraphQLEmptyReturn'
|
|
ServerStatistics: '@/modules/core/helpers/graphTypes#GraphQLEmptyReturn'
|
|
CommentReplyAuthorCollection: '@/modules/comments/helpers/graphTypes#CommentReplyAuthorCollectionGraphQLReturn'
|
|
Comment: '@/modules/comments/helpers/graphTypes#CommentGraphQLReturn'
|
|
PendingStreamCollaborator: '@/modules/serverinvites/helpers/graphTypes#PendingStreamCollaboratorGraphQLReturn'
|
|
FileUpload: '@/modules/fileuploads/helpers/types#FileUploadGraphQLReturn'
|
|
AutomateFunction: '@/modules/automate/helpers/graphTypes#AutomateFunctionGraphQLReturn'
|
|
AutomateFunctionRelease: '@/modules/automate/helpers/graphTypes#AutomateFunctionReleaseGraphQLReturn'
|
|
Automation: '@/modules/automate/helpers/graphTypes#AutomationGraphQLReturn'
|
|
AutomationRevision: '@/modules/automate/helpers/graphTypes#AutomationRevisionGraphQLReturn'
|
|
AutomationRevisionFunction: '@/modules/automate/helpers/graphTypes#AutomationRevisionFunctionGraphQLReturn'
|
|
AutomateRun: '@/modules/automate/helpers/graphTypes#AutomateRunGraphQLReturn'
|
|
AutomationRunTrigger: '@/modules/automate/helpers/graphTypes#AutomationRunTriggerGraphQLReturn'
|
|
VersionCreatedTrigger: '@/modules/automate/helpers/graphTypes#AutomationRunTriggerGraphQLReturn'
|
|
AutomationRevisionTriggerDefinition: '@/modules/automate/helpers/graphTypes#AutomationRevisionTriggerDefinitionGraphQLReturn'
|
|
VersionCreatedTriggerDefinition: '@/modules/automate/helpers/graphTypes#AutomationRevisionTriggerDefinitionGraphQLReturn'
|
|
AutomateFunctionRun: '@/modules/automate/helpers/graphTypes#AutomateFunctionRunGraphQLReturn'
|
|
TriggeredAutomationsStatus: '@/modules/automate/helpers/graphTypes#TriggeredAutomationsStatusGraphQLReturn'
|
|
ProjectAutomationMutations: '@/modules/automate/helpers/graphTypes#ProjectAutomationMutationsGraphQLReturn'
|
|
ProjectTriggeredAutomationsStatusUpdatedMessage: '@/modules/automate/helpers/graphTypes#ProjectTriggeredAutomationsStatusUpdatedMessageGraphQLReturn'
|
|
ProjectAutomationsUpdatedMessage: '@/modules/automate/helpers/graphTypes#ProjectAutomationsUpdatedMessageGraphQLReturn'
|
|
UserAutomateInfo: '@/modules/automate/helpers/graphTypes#UserAutomateInfoGraphQLReturn'
|
|
Workspace: '@/modules/workspacesCore/helpers/graphTypes#WorkspaceGraphQLReturn'
|
|
WorkspaceMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn'
|
|
modules/cross-server-sync/graph/generated/graphql.ts:
|
|
plugins:
|
|
- 'typescript'
|
|
- 'typescript-operations'
|
|
documents:
|
|
- 'modules/cross-server-sync/**/*.{js,ts}'
|
|
config:
|
|
scalars:
|
|
JSONObject: Record<string, unknown>
|
|
DateTime: string
|
|
test/graphql/generated/graphql.ts:
|
|
plugins:
|
|
- 'typescript'
|
|
- 'typescript-operations'
|
|
- 'typed-document-node'
|
|
documents:
|
|
- 'test/graphql/*.{js,ts}'
|
|
config:
|
|
scalars:
|
|
JSONObject: Record<string, unknown>
|
|
DateTime: string
|
|
config:
|
|
scalars:
|
|
JSONObject: Record<string, unknown>
|
|
DateTime: Date
|
|
require:
|
|
- ts-node/register
|
|
- tsconfig-paths/register
|