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