import * as _wix_sdk_types from '@wix/sdk-types'; import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types'; interface FunctionSpiCurrentConfiguration { /** * random id for response * @format GUID * @readonly */ _id?: string | null; /** Function SPI configuration dev center component payload. */ configuration?: Record | null; /** * Function ID * @format GUID */ functionId?: string | null; } interface QueryFunctionSpiCurrentConfigurationsRequest { /** WQL expression. */ query?: CursorQuery; } interface CursorQuery extends CursorQueryPagingMethodOneOf { /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: CursorPaging; /** * Filter object in the following format: * `"filter" : { * "fieldName1": "value1", * "fieldName2":{"$operator":"value2"} * }` * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` */ filter?: Record | null; /** * Sort object in the following format: * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]` * @maxSize 5 */ sort?: Sorting[]; } /** @oneof */ interface CursorQueryPagingMethodOneOf { /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: CursorPaging; } interface Sorting { /** * Name of the field to sort by. * @maxLength 512 */ fieldName?: string; /** Sort order. */ order?: SortOrderWithLiterals; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } /** @enumType */ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC'; interface CursorPaging { /** * Maximum number of items to return in the results. * @max 100 */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. * @maxLength 16000 */ cursor?: string | null; } interface QueryFunctionSpiCurrentConfigurationsResponse { /** List of FunctionSpiCurrentConfigurations. */ functionSpiCurrentConfigurations?: FunctionSpiCurrentConfiguration[]; /** Paging metadata */ pagingMetadata?: CursorPagingMetadata; } interface CursorPagingMetadata { /** Number of items returned in the response. */ count?: number | null; /** Cursor strings that point to the next page, previous page, or both. */ cursors?: Cursors; /** * Whether there are more pages to retrieve following the current page. * * + `true`: Another page of results can be retrieved. * + `false`: This is the last page. */ hasNext?: boolean | null; } interface Cursors { /** * Cursor string pointing to the next page in the list of results. * @maxLength 16000 */ next?: string | null; /** * Cursor pointing to the previous page in the list of results. * @maxLength 16000 */ prev?: string | null; } /** * Retrieves a list of FunctionSpiCurrentConfigurations, given the provided [paging, filtering, and sorting][1]. * @public * @documentationMaturity preview * @permissionId FUNCTIONS.FUNCTION_SPI_CONFIGS_READ * @applicableIdentity APP * @fqn wix.functions.spicurrentconfigurations.v2.FunctionSpiCurrentConfigurations.QueryFunctionSpiCurrentConfigurations */ declare function queryFunctionSpiCurrentConfigurations(): FunctionSpiCurrentConfigurationsQueryBuilder; interface QueryCursorResult { cursors: Cursors; hasNext: () => boolean; hasPrev: () => boolean; length: number; pageSize: number; } interface FunctionSpiCurrentConfigurationsQueryResult extends QueryCursorResult { items: FunctionSpiCurrentConfiguration[]; query: FunctionSpiCurrentConfigurationsQueryBuilder; next: () => Promise; prev: () => Promise; } interface FunctionSpiCurrentConfigurationsQueryBuilder { /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. * @documentationMaturity preview */ eq: (propertyName: 'functionId', value: any) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. * @documentationMaturity preview */ ne: (propertyName: 'functionId', value: any) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. * @documentationMaturity preview */ ge: (propertyName: 'functionId', value: any) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. * @documentationMaturity preview */ gt: (propertyName: 'functionId', value: any) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. * @documentationMaturity preview */ le: (propertyName: 'functionId', value: any) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. * @documentationMaturity preview */ lt: (propertyName: 'functionId', value: any) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param propertyName - Property whose value is compared with `string`. * @param string - String to compare against. Case-insensitive. * @documentationMaturity preview */ startsWith: (propertyName: 'functionId', value: string) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @documentationMaturity preview */ in: (propertyName: 'functionId', value: any) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @documentationMaturity preview */ exists: (propertyName: 'functionId', value: boolean) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. * @documentationMaturity preview */ ascending: (...propertyNames: Array<'functionId'>) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. * @documentationMaturity preview */ descending: (...propertyNames: Array<'functionId'>) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param limit - Number of items to return, which is also the `pageSize` of the results object. * @documentationMaturity preview */ limit: (limit: number) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @param cursor - A pointer to specific record * @documentationMaturity preview */ skipTo: (cursor: string) => FunctionSpiCurrentConfigurationsQueryBuilder; /** @documentationMaturity preview */ find: () => Promise; } /** * @hidden * @fqn wix.functions.spicurrentconfigurations.v2.FunctionSpiCurrentConfigurations.QueryFunctionSpiCurrentConfigurations * @requiredField query */ declare function typedQueryFunctionSpiCurrentConfigurations(query: FunctionSpiCurrentConfigurationQuery): Promise>; interface FunctionSpiCurrentConfigurationQuerySpec extends QuerySpec { paging: 'cursor'; wql: [ { fields: ['functionId']; operators: '*'; sort: 'BOTH'; } ]; } type CommonQueryWithEntityContext = Query; type FunctionSpiCurrentConfigurationQuery = { /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: { /** Maximum number of items to return in the results. @max: 100 */ limit?: NonNullable['limit'] | null; /** Pointer to the next or previous page in the list of results. Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request. @maxLength: 16000 */ cursor?: NonNullable['cursor'] | null; }; /** Filter object in the following format: `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }` Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` */ filter?: CommonQueryWithEntityContext['filter'] | null; /** Sort object in the following format: `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]` @maxSize: 5 */ sort?: { /** Name of the field to sort by. @maxLength: 512 */ fieldName?: NonNullable[number]['fieldName']; /** Sort order. */ order?: NonNullable[number]['order']; }[]; }; declare const utils: { query: _wix_sdk_types.QueryHelpers; }; export { type CommonQueryWithEntityContext, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type FunctionSpiCurrentConfiguration, type FunctionSpiCurrentConfigurationQuery, type FunctionSpiCurrentConfigurationQuerySpec, type FunctionSpiCurrentConfigurationsQueryBuilder, type FunctionSpiCurrentConfigurationsQueryResult, type QueryFunctionSpiCurrentConfigurationsRequest, type QueryFunctionSpiCurrentConfigurationsResponse, SortOrder, type SortOrderWithLiterals, type Sorting, queryFunctionSpiCurrentConfigurations, typedQueryFunctionSpiCurrentConfigurations, utils };