@xata.io/client 0.0.0-beta.bdce130 → 0.0.0-beta.c21e40a

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.
@@ -1,39 +1,90 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.includesAll = exports.includesPattern = exports.includesSubstring = exports.includes = exports.contains = exports.isNot = exports.is = exports.pattern = exports.endsWith = exports.startsWith = exports.notExists = exports.exists = exports.le = exports.lte = exports.lt = exports.gte = exports.ge = exports.gt = void 0;
4
+ /**
5
+ * Operator to restrict results to only values that are greater than the given value.
6
+ */
4
7
  const gt = (value) => ({ $gt: value });
5
8
  exports.gt = gt;
9
+ /**
10
+ * Operator to restrict results to only values that are greater than or equal to the given value.
11
+ */
6
12
  const ge = (value) => ({ $ge: value });
7
13
  exports.ge = ge;
14
+ /**
15
+ * Operator to restrict results to only values that are greater than or equal to the given value.
16
+ */
8
17
  const gte = (value) => ({ $ge: value });
9
18
  exports.gte = gte;
19
+ /**
20
+ * Operator to restrict results to only values that are lower than the given value.
21
+ */
10
22
  const lt = (value) => ({ $lt: value });
11
23
  exports.lt = lt;
24
+ /**
25
+ * Operator to restrict results to only values that are lower than or equal to the given value.
26
+ */
12
27
  const lte = (value) => ({ $le: value });
13
28
  exports.lte = lte;
29
+ /**
30
+ * Operator to restrict results to only values that are lower than or equal to the given value.
31
+ */
14
32
  const le = (value) => ({ $le: value });
15
33
  exports.le = le;
34
+ /**
35
+ * Operator to restrict results to only values that are not null.
36
+ */
16
37
  const exists = (column) => ({ $exists: column });
17
38
  exports.exists = exists;
39
+ /**
40
+ * Operator to restrict results to only values that are null.
41
+ */
18
42
  const notExists = (column) => ({ $notExists: column });
19
43
  exports.notExists = notExists;
44
+ /**
45
+ * Operator to restrict results to only values that start with the given prefix.
46
+ */
20
47
  const startsWith = (value) => ({ $startsWith: value });
21
48
  exports.startsWith = startsWith;
49
+ /**
50
+ * Operator to restrict results to only values that end with the given suffix.
51
+ */
22
52
  const endsWith = (value) => ({ $endsWith: value });
23
53
  exports.endsWith = endsWith;
54
+ /**
55
+ * Operator to restrict results to only values that match the given pattern.
56
+ */
24
57
  const pattern = (value) => ({ $pattern: value });
25
58
  exports.pattern = pattern;
59
+ /**
60
+ * Operator to restrict results to only values that are equal to the given value.
61
+ */
26
62
  const is = (value) => ({ $is: value });
27
63
  exports.is = is;
64
+ /**
65
+ * Operator to restrict results to only values that are not equal to the given value.
66
+ */
28
67
  const isNot = (value) => ({ $isNot: value });
29
68
  exports.isNot = isNot;
69
+ /**
70
+ * Operator to restrict results to only values that contain the given value.
71
+ */
30
72
  const contains = (value) => ({ $contains: value });
31
73
  exports.contains = contains;
32
74
  // TODO: these can only be applied to columns of type "multiple"
75
+ /**
76
+ * Operator to restrict results to only arrays that include the given value.
77
+ */
33
78
  const includes = (value) => ({ $includes: value });
34
79
  exports.includes = includes;
80
+ /**
81
+ * Operator to restrict results to only arrays that include a value matching the given substring.
82
+ */
35
83
  const includesSubstring = (value) => ({ $includesSubstring: value });
36
84
  exports.includesSubstring = includesSubstring;
85
+ /**
86
+ * Operator to restrict results to only arrays that include a value matching the given pattern.
87
+ */
37
88
  const includesPattern = (value) => ({ $includesPattern: value });
38
89
  exports.includesPattern = includesPattern;
39
90
  const includesAll = (value) => ({ $includesAll: value });
@@ -1,29 +1,67 @@
1
- import { XataRecord } from '..';
2
1
  import { Query } from './query';
2
+ import { XataRecord } from './record';
3
3
  export declare type PaginationQueryMeta = {
4
4
  page: {
5
5
  cursor: string;
6
6
  more: boolean;
7
7
  };
8
8
  };
9
- export interface Paginable<T extends XataRecord, R extends XataRecord = T> {
9
+ export interface Paginable<Record extends XataRecord, Result extends XataRecord = Record> {
10
10
  meta: PaginationQueryMeta;
11
- records: R[];
12
- nextPage(size?: number, offset?: number): Promise<Page<T, R>>;
13
- previousPage(size?: number, offset?: number): Promise<Page<T, R>>;
14
- firstPage(size?: number, offset?: number): Promise<Page<T, R>>;
15
- lastPage(size?: number, offset?: number): Promise<Page<T, R>>;
11
+ records: Result[];
12
+ nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
13
+ previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
14
+ firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
15
+ lastPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
16
16
  hasNextPage(): boolean;
17
17
  }
18
- export declare class Page<T extends XataRecord, R extends XataRecord> implements Paginable<T, R> {
18
+ /**
19
+ * A Page contains a set of results from a query plus metadata about the retrieved
20
+ * set of values such as the cursor, required to retrieve additional records.
21
+ */
22
+ export declare class Page<Record extends XataRecord, Result extends XataRecord = Record> implements Paginable<Record, Result> {
19
23
  #private;
24
+ /**
25
+ * Page metadata, required to retrieve additional records.
26
+ */
20
27
  readonly meta: PaginationQueryMeta;
21
- readonly records: R[];
22
- constructor(query: Query<T, R>, meta: PaginationQueryMeta, records?: R[]);
23
- nextPage(size?: number, offset?: number): Promise<Page<T, R>>;
24
- previousPage(size?: number, offset?: number): Promise<Page<T, R>>;
25
- firstPage(size?: number, offset?: number): Promise<Page<T, R>>;
26
- lastPage(size?: number, offset?: number): Promise<Page<T, R>>;
28
+ /**
29
+ * The set of results for this page.
30
+ */
31
+ readonly records: Result[];
32
+ constructor(query: Query<Record, Result>, meta: PaginationQueryMeta, records?: Result[]);
33
+ /**
34
+ * Retrieves the next page of results.
35
+ * @param size Maximum number of results to be retrieved.
36
+ * @param offset Number of results to skip when retrieving the results.
37
+ * @returns The next page or results.
38
+ */
39
+ nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
40
+ /**
41
+ * Retrieves the previous page of results.
42
+ * @param size Maximum number of results to be retrieved.
43
+ * @param offset Number of results to skip when retrieving the results.
44
+ * @returns The previous page or results.
45
+ */
46
+ previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
47
+ /**
48
+ * Retrieves the first page of results.
49
+ * @param size Maximum number of results to be retrieved.
50
+ * @param offset Number of results to skip when retrieving the results.
51
+ * @returns The first page or results.
52
+ */
53
+ firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
54
+ /**
55
+ * Retrieves the last page of results.
56
+ * @param size Maximum number of results to be retrieved.
57
+ * @param offset Number of results to skip when retrieving the results.
58
+ * @returns The last page or results.
59
+ */
60
+ lastPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
61
+ /**
62
+ * Shortcut method to check if there will be additional results if the next page of results is retrieved.
63
+ * @returns Whether or not there will be additional results in the next page of results.
64
+ */
27
65
  hasNextPage(): boolean;
28
66
  }
29
67
  export declare type CursorNavigationOptions = {
@@ -39,3 +77,7 @@ export declare type OffsetNavigationOptions = {
39
77
  offset?: number;
40
78
  };
41
79
  export declare type PaginationOptions = CursorNavigationOptions & OffsetNavigationOptions;
80
+ export declare const PAGINATION_MAX_SIZE = 200;
81
+ export declare const PAGINATION_DEFAULT_SIZE = 200;
82
+ export declare const PAGINATION_MAX_OFFSET = 800;
83
+ export declare const PAGINATION_DEFAULT_OFFSET = 0;
@@ -21,7 +21,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
21
21
  };
22
22
  var _Page_query;
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.Page = void 0;
24
+ exports.PAGINATION_DEFAULT_OFFSET = exports.PAGINATION_MAX_OFFSET = exports.PAGINATION_DEFAULT_SIZE = exports.PAGINATION_MAX_SIZE = exports.Page = void 0;
25
+ /**
26
+ * A Page contains a set of results from a query plus metadata about the retrieved
27
+ * set of values such as the cursor, required to retrieve additional records.
28
+ */
25
29
  class Page {
26
30
  constructor(query, meta, records = []) {
27
31
  _Page_query.set(this, void 0);
@@ -29,30 +33,61 @@ class Page {
29
33
  this.meta = meta;
30
34
  this.records = records;
31
35
  }
36
+ /**
37
+ * Retrieves the next page of results.
38
+ * @param size Maximum number of results to be retrieved.
39
+ * @param offset Number of results to skip when retrieving the results.
40
+ * @returns The next page or results.
41
+ */
32
42
  nextPage(size, offset) {
33
43
  return __awaiter(this, void 0, void 0, function* () {
34
44
  return __classPrivateFieldGet(this, _Page_query, "f").getPaginated({ page: { size, offset, after: this.meta.page.cursor } });
35
45
  });
36
46
  }
47
+ /**
48
+ * Retrieves the previous page of results.
49
+ * @param size Maximum number of results to be retrieved.
50
+ * @param offset Number of results to skip when retrieving the results.
51
+ * @returns The previous page or results.
52
+ */
37
53
  previousPage(size, offset) {
38
54
  return __awaiter(this, void 0, void 0, function* () {
39
55
  return __classPrivateFieldGet(this, _Page_query, "f").getPaginated({ page: { size, offset, before: this.meta.page.cursor } });
40
56
  });
41
57
  }
58
+ /**
59
+ * Retrieves the first page of results.
60
+ * @param size Maximum number of results to be retrieved.
61
+ * @param offset Number of results to skip when retrieving the results.
62
+ * @returns The first page or results.
63
+ */
42
64
  firstPage(size, offset) {
43
65
  return __awaiter(this, void 0, void 0, function* () {
44
66
  return __classPrivateFieldGet(this, _Page_query, "f").getPaginated({ page: { size, offset, first: this.meta.page.cursor } });
45
67
  });
46
68
  }
69
+ /**
70
+ * Retrieves the last page of results.
71
+ * @param size Maximum number of results to be retrieved.
72
+ * @param offset Number of results to skip when retrieving the results.
73
+ * @returns The last page or results.
74
+ */
47
75
  lastPage(size, offset) {
48
76
  return __awaiter(this, void 0, void 0, function* () {
49
77
  return __classPrivateFieldGet(this, _Page_query, "f").getPaginated({ page: { size, offset, last: this.meta.page.cursor } });
50
78
  });
51
79
  }
52
- // TODO: We need to add something on the backend if we want a hasPreviousPage
80
+ /**
81
+ * Shortcut method to check if there will be additional results if the next page of results is retrieved.
82
+ * @returns Whether or not there will be additional results in the next page of results.
83
+ */
53
84
  hasNextPage() {
54
85
  return this.meta.page.more;
55
86
  }
56
87
  }
57
88
  exports.Page = Page;
58
89
  _Page_query = new WeakMap();
90
+ exports.PAGINATION_MAX_SIZE = 200;
91
+ exports.PAGINATION_DEFAULT_SIZE = 200;
92
+ exports.PAGINATION_MAX_OFFSET = 800;
93
+ exports.PAGINATION_DEFAULT_OFFSET = 0;
@@ -1,110 +1,118 @@
1
- import { XataRecord, Repository } from '..';
1
+ import { FilterExpression } from '../api/schemas';
2
+ import { NonEmptyArray, RequiredBy } from '../util/types';
2
3
  import { DeepConstraint, FilterConstraints, SortDirection, SortFilter } from './filters';
3
- import { PaginationOptions, Page, Paginable, PaginationQueryMeta } from './pagination';
4
- import { Selectable, SelectableColumn, Select } from './selection';
5
- export declare type QueryOptions<T> = {
4
+ import { Page, Paginable, PaginationOptions, PaginationQueryMeta } from './pagination';
5
+ import { XataRecord } from './record';
6
+ import { Repository } from './repository';
7
+ import { SelectableColumn, SelectedPick, ValueAtColumn } from './selection';
8
+ export declare type QueryOptions<T extends XataRecord> = {
6
9
  page?: PaginationOptions;
7
- columns?: Array<keyof Selectable<T>>;
10
+ columns?: NonEmptyArray<SelectableColumn<T>>;
11
+ filter?: FilterExpression;
8
12
  sort?: SortFilter<T> | SortFilter<T>[];
9
13
  };
10
- export declare type FilterExpression = {
11
- $exists?: string;
12
- $existsNot?: string;
13
- $any?: FilterList;
14
- $all?: FilterList;
15
- $none?: FilterList;
16
- $not?: FilterList;
17
- } & {
18
- [key: string]: FilterColumn;
19
- };
20
- export declare type FilterList = FilterExpression | FilterExpression[];
21
- export declare type FilterColumn = FilterColumnIncludes | FilterPredicate | FilterList;
22
- /**
23
- * @maxProperties 1
24
- * @minProperties 1
25
- */
26
- export declare type FilterColumnIncludes = {
27
- $includes?: FilterPredicate;
28
- $includesAny?: FilterPredicate;
29
- $includesAll?: FilterPredicate;
30
- $includesNone?: FilterPredicate;
31
- };
32
- export declare type FilterPredicate = FilterValue | FilterPredicate[] | FilterPredicateOp | FilterPredicateRangeOp;
33
14
  /**
34
- * @maxProperties 1
35
- * @minProperties 1
15
+ * Query objects contain the information of all filters, sorting, etc. to be included in the database query.
16
+ *
17
+ * Query objects are immutable. Any method that adds more constraints or options to the query will return
18
+ * a new Query object containing the both the previous and the new constraints and options.
36
19
  */
37
- export declare type FilterPredicateOp = {
38
- $any?: FilterPredicate[];
39
- $all?: FilterPredicate[];
40
- $none?: FilterPredicate | FilterPredicate[];
41
- $not?: FilterPredicate | FilterPredicate[];
42
- $is?: FilterValue | FilterValue[];
43
- $isNot?: FilterValue | FilterValue[];
44
- $lt?: FilterRangeValue;
45
- $le?: FilterRangeValue;
46
- $gt?: FilterRangeValue;
47
- $ge?: FilterRangeValue;
48
- $contains?: string;
49
- $startsWith?: string;
50
- $endsWith?: string;
51
- $pattern?: string;
52
- };
53
- export declare type FilterPredicateRangeOp = {
54
- $lt?: FilterRangeValue;
55
- $le?: FilterRangeValue;
56
- $gt?: FilterRangeValue;
57
- $ge?: FilterRangeValue;
58
- };
59
- export declare type FilterRangeValue = number | string;
60
- export declare type FilterValue = number | string | boolean;
61
- export declare type SortExpression = string[] | {
62
- [key: string]: SortOrder;
63
- } | {
64
- [key: string]: SortOrder;
65
- }[];
66
- export declare type SortOrder = 'asc' | 'desc';
67
- export declare type PageConfig = {
68
- after?: string;
69
- before?: string;
70
- first?: string;
71
- last?: string;
72
- size?: number;
73
- offset?: number;
74
- };
75
- export declare type ColumnsFilter = string[];
76
- export declare type QueryTableOptions = {
77
- filter: FilterExpression;
78
- sort?: SortExpression;
79
- page?: PageConfig;
80
- columns?: ColumnsFilter;
81
- };
82
- export declare class Query<T extends XataRecord, R extends XataRecord = T> implements Paginable<T, R> {
20
+ export declare class Query<Record extends XataRecord, Result extends XataRecord = Record> implements Paginable<Record, Result> {
83
21
  #private;
84
22
  readonly meta: PaginationQueryMeta;
85
- readonly records: R[];
86
- constructor(repository: Repository<T> | null, table: string, data: Partial<QueryTableOptions>, parent?: Partial<QueryTableOptions>);
87
- getQueryOptions(): QueryTableOptions;
88
- any(...queries: Query<T, R>[]): Query<T, R>;
89
- all(...queries: Query<T, R>[]): Query<T, R>;
90
- not(...queries: Query<T, R>[]): Query<T, R>;
91
- none(...queries: Query<T, R>[]): Query<T, R>;
92
- filter(constraints: FilterConstraints<T>): Query<T, R>;
93
- filter<F extends keyof T>(column: F, value: FilterConstraints<T[F]> | DeepConstraint<T[F]>): Query<T, R>;
94
- sort<F extends keyof T>(column: F, direction: SortDirection): Query<T, R>;
95
- select<K extends SelectableColumn<T>>(columns: K[]): Query<T, Select<T, K>>;
96
- getPaginated<Options extends QueryOptions<T>>(options?: Options): Promise<Page<T, typeof options['columns'] extends SelectableColumn<T>[] ? Select<T, typeof options['columns'][number]> : R>>;
97
- [Symbol.asyncIterator](): AsyncIterableIterator<R>;
98
- getIterator(chunk: number, options?: Omit<QueryOptions<T>, 'page'>): AsyncGenerator<R[]>;
99
- getMany<Options extends QueryOptions<T>>(options?: Options): Promise<(typeof options['columns'] extends SelectableColumn<T>[] ? Select<T, typeof options['columns'][number]> : R)[]>;
100
- getOne<Options extends Omit<QueryOptions<T>, 'page'>>(options?: Options): Promise<(typeof options['columns'] extends SelectableColumn<T>[] ? Select<T, typeof options['columns'][number]> : R) | null>;
101
- /**async deleteAll(): Promise<number> {
102
- // TODO: Return number of affected rows
103
- return 0;
104
- }**/
105
- nextPage(size?: number, offset?: number): Promise<Page<T, R>>;
106
- previousPage(size?: number, offset?: number): Promise<Page<T, R>>;
107
- firstPage(size?: number, offset?: number): Promise<Page<T, R>>;
108
- lastPage(size?: number, offset?: number): Promise<Page<T, R>>;
23
+ readonly records: Result[];
24
+ constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>, parent?: Partial<QueryOptions<Record>>);
25
+ getQueryOptions(): QueryOptions<Record>;
26
+ /**
27
+ * Builds a new query object representing a logical OR between the given subqueries.
28
+ * @param queries An array of subqueries.
29
+ * @returns A new Query object.
30
+ */
31
+ any(...queries: Query<Record, Result>[]): Query<Record, Result>;
32
+ /**
33
+ * Builds a new query object representing a logical AND between the given subqueries.
34
+ * @param queries An array of subqueries.
35
+ * @returns A new Query object.
36
+ */
37
+ all(...queries: Query<Record, Result>[]): Query<Record, Result>;
38
+ /**
39
+ * Builds a new query object representing a logical OR negating each subquery. In pseudo-code: !q1 OR !q2
40
+ * @param queries An array of subqueries.
41
+ * @returns A new Query object.
42
+ */
43
+ not(...queries: Query<Record, Result>[]): Query<Record, Result>;
44
+ /**
45
+ * Builds a new query object representing a logical AND negating each subquery. In pseudo-code: !q1 AND !q2
46
+ * @param queries An array of subqueries.
47
+ * @returns A new Query object.
48
+ */
49
+ none(...queries: Query<Record, Result>[]): Query<Record, Result>;
50
+ /**
51
+ * Builds a new query object adding one or more constraints. Examples:
52
+ *
53
+ * ```
54
+ * query.filter("columnName", columnValue)
55
+ * query.filter({
56
+ * "columnName": columnValue
57
+ * })
58
+ * query.filter({
59
+ * "columnName": operator(columnValue) // Use gt, gte, lt, lte, startsWith,...
60
+ * })
61
+ * ```
62
+ *
63
+ * @param constraints
64
+ * @returns A new Query object.
65
+ */
66
+ filter(constraints: FilterConstraints<Record>): Query<Record, Result>;
67
+ filter<F extends SelectableColumn<Record>>(column: F, value: FilterConstraints<ValueAtColumn<Record, F>> | DeepConstraint<ValueAtColumn<Record, F>>): Query<Record, Result>;
68
+ /**
69
+ * Builds a new query with a new sort option.
70
+ * @param column The column name.
71
+ * @param direction The direction. Either ascending or descending.
72
+ * @returns A new Query object.
73
+ */
74
+ sort<F extends SelectableColumn<Record>>(column: F, direction: SortDirection): Query<Record, Result>;
75
+ /**
76
+ * Builds a new query specifying the set of columns to be returned in the query response.
77
+ * @param columns Array of column names to be returned by the query.
78
+ * @returns A new Query object.
79
+ */
80
+ select<K extends SelectableColumn<Record>>(columns: NonEmptyArray<K>): Query<Record, SelectedPick<Record, NonEmptyArray<K>>>;
81
+ getPaginated(): Promise<Page<Record, Result>>;
82
+ getPaginated(options: Omit<QueryOptions<Record>, 'columns'>): Promise<Page<Record, Result>>;
83
+ getPaginated<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<Page<Record, SelectedPick<Record, typeof options['columns']>>>;
84
+ [Symbol.asyncIterator](): AsyncIterableIterator<Result>;
85
+ getIterator(chunk: number): AsyncGenerator<Result[]>;
86
+ getIterator(chunk: number, options: Omit<QueryOptions<Record>, 'columns' | 'page'>): AsyncGenerator<Result[]>;
87
+ getIterator<Options extends RequiredBy<Omit<QueryOptions<Record>, 'page'>, 'columns'>>(chunk: number, options: Options): AsyncGenerator<SelectedPick<Record, typeof options['columns']>[]>;
88
+ /**
89
+ * Performs the query in the database and returns a set of results.
90
+ * @param options Additional options to be used when performing the query.
91
+ * @returns An array of records from the database.
92
+ */
93
+ getMany(): Promise<Result[]>;
94
+ getMany(options: Omit<QueryOptions<Record>, 'columns'>): Promise<Result[]>;
95
+ getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
96
+ /**
97
+ * Performs the query in the database and returns all the results.
98
+ * Warning: If there are a large number of results, this method can have performance implications.
99
+ * @param options Additional options to be used when performing the query.
100
+ * @returns An array of records from the database.
101
+ */
102
+ getAll(chunk?: number): Promise<Result[]>;
103
+ getAll(chunk: number | undefined, options: Omit<QueryOptions<Record>, 'columns' | 'page'>): Promise<Result[]>;
104
+ getAll<Options extends RequiredBy<Omit<QueryOptions<Record>, 'page'>, 'columns'>>(chunk: number | undefined, options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
105
+ /**
106
+ * Performs the query in the database and returns the first result.
107
+ * @param options Additional options to be used when performing the query.
108
+ * @returns The first record that matches the query, or null if no record matched the query.
109
+ */
110
+ getOne(): Promise<Result | null>;
111
+ getOne(options: Omit<QueryOptions<Record>, 'columns' | 'page'>): Promise<Result | null>;
112
+ getOne<Options extends RequiredBy<Omit<QueryOptions<Record>, 'page'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
113
+ nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
114
+ previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
115
+ firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
116
+ lastPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
109
117
  hasNextPage(): boolean;
110
118
  }