import { QueryBuilder, buildCustomDocument } from '../query-builder';
import { connectionFieldsMap } from '../input-types';
export function createQueryOperations(client) {
    return {
        appPermissionsGetPaddedMask: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'AppPermissionsGetPaddedMask',
            fieldName: 'appPermissionsGetPaddedMask',
            ...buildCustomDocument('query', 'AppPermissionsGetPaddedMask', 'appPermissionsGetPaddedMask', options?.select, args, [
                {
                    name: 'mask',
                    type: 'BitString',
                },
            ], connectionFieldsMap, undefined),
        }),
        orgPermissionsGetPaddedMask: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'OrgPermissionsGetPaddedMask',
            fieldName: 'orgPermissionsGetPaddedMask',
            ...buildCustomDocument('query', 'OrgPermissionsGetPaddedMask', 'orgPermissionsGetPaddedMask', options?.select, args, [
                {
                    name: 'mask',
                    type: 'BitString',
                },
            ], connectionFieldsMap, undefined),
        }),
        orgIsManagerOf: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'OrgIsManagerOf',
            fieldName: 'orgIsManagerOf',
            ...buildCustomDocument('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
                {
                    name: 'pEntityId',
                    type: 'UUID',
                },
                {
                    name: 'pManagerId',
                    type: 'UUID',
                },
                {
                    name: 'pUserId',
                    type: 'UUID',
                },
                {
                    name: 'pMaxDepth',
                    type: 'Int',
                },
            ], connectionFieldsMap, undefined),
        }),
        appPermissionsGetMask: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'AppPermissionsGetMask',
            fieldName: 'appPermissionsGetMask',
            ...buildCustomDocument('query', 'AppPermissionsGetMask', 'appPermissionsGetMask', options?.select, args, [
                {
                    name: 'ids',
                    type: '[UUID]',
                },
            ], connectionFieldsMap, undefined),
        }),
        orgPermissionsGetMask: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'OrgPermissionsGetMask',
            fieldName: 'orgPermissionsGetMask',
            ...buildCustomDocument('query', 'OrgPermissionsGetMask', 'orgPermissionsGetMask', options?.select, args, [
                {
                    name: 'ids',
                    type: '[UUID]',
                },
            ], connectionFieldsMap, undefined),
        }),
        appPermissionsGetMaskByNames: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'AppPermissionsGetMaskByNames',
            fieldName: 'appPermissionsGetMaskByNames',
            ...buildCustomDocument('query', 'AppPermissionsGetMaskByNames', 'appPermissionsGetMaskByNames', options?.select, args, [
                {
                    name: 'names',
                    type: '[String]',
                },
            ], connectionFieldsMap, undefined),
        }),
        orgPermissionsGetMaskByNames: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'OrgPermissionsGetMaskByNames',
            fieldName: 'orgPermissionsGetMaskByNames',
            ...buildCustomDocument('query', 'OrgPermissionsGetMaskByNames', 'orgPermissionsGetMaskByNames', options?.select, args, [
                {
                    name: 'names',
                    type: '[String]',
                },
            ], connectionFieldsMap, undefined),
        }),
        appPermissionsGetByMask: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'AppPermissionsGetByMask',
            fieldName: 'appPermissionsGetByMask',
            ...buildCustomDocument('query', 'AppPermissionsGetByMask', 'appPermissionsGetByMask', options?.select, args, [
                {
                    name: 'mask',
                    type: 'BitString',
                },
                {
                    name: 'first',
                    type: 'Int',
                },
                {
                    name: 'offset',
                    type: 'Int',
                },
                {
                    name: 'after',
                    type: 'Cursor',
                },
            ], connectionFieldsMap, undefined),
        }),
        orgPermissionsGetByMask: (args, options) => new QueryBuilder({
            client,
            operation: 'query',
            operationName: 'OrgPermissionsGetByMask',
            fieldName: 'orgPermissionsGetByMask',
            ...buildCustomDocument('query', 'OrgPermissionsGetByMask', 'orgPermissionsGetByMask', options?.select, args, [
                {
                    name: 'mask',
                    type: 'BitString',
                },
                {
                    name: 'first',
                    type: 'Int',
                },
                {
                    name: 'offset',
                    type: 'Int',
                },
                {
                    name: 'after',
                    type: 'Cursor',
                },
            ], connectionFieldsMap, undefined),
        }),
    };
}
