@squidcloud/local-backend 1.0.142 → 1.0.143
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.
- package/dist/common/src/ai-assistant.types.d.ts +34 -128
- package/dist/common/src/ai-assistant.types.js +2 -17
- package/dist/common/src/ai-assistant.types.js.map +1 -1
- package/dist/common/src/ai-chatbot.context.d.ts +13 -0
- package/dist/common/src/{ai-assistant.context.js → ai-chatbot.context.js} +20 -20
- package/dist/common/src/ai-chatbot.context.js.map +1 -0
- package/dist/common/src/ai-chatbot.schemas.d.ts +18 -0
- package/dist/common/src/ai-chatbot.schemas.js +22 -0
- package/dist/common/src/ai-chatbot.schemas.js.map +1 -0
- package/dist/common/src/ai-chatbot.types.d.ts +121 -0
- package/dist/common/src/ai-chatbot.types.js +18 -0
- package/dist/common/src/ai-chatbot.types.js.map +1 -0
- package/dist/common/src/api-call.context.d.ts +13 -13
- package/dist/common/src/api-call.context.js +16 -16
- package/dist/common/src/api.types.d.ts +22 -22
- package/dist/common/src/api.types.js +2 -2
- package/dist/common/src/application.schemas.d.ts +1648 -1648
- package/dist/common/src/application.schemas.js +1001 -1001
- package/dist/common/src/application.schemas.js.map +1 -1
- package/dist/common/src/application.types.d.ts +193 -193
- package/dist/common/src/application.types.js +89 -89
- package/dist/common/src/backend-function.schemas.d.ts +3 -3
- package/dist/common/src/backend-function.schemas.js +11 -11
- package/dist/common/src/backend-function.types.d.ts +4 -4
- package/dist/common/src/backend-function.types.js +2 -2
- package/dist/common/src/backend-run.types.d.ts +54 -54
- package/dist/common/src/backend-run.types.js +95 -95
- package/dist/common/src/backend-run.types.js.map +1 -1
- package/dist/common/src/bundle-api.types.d.ts +69 -68
- package/dist/common/src/bundle-api.types.js +2 -2
- package/dist/common/src/bundle-data.types.d.ts +74 -61
- package/dist/common/src/bundle-data.types.js +2 -2
- package/dist/common/src/communication.types.d.ts +19 -19
- package/dist/common/src/communication.types.js +40 -40
- package/dist/common/src/context.types.d.ts +24 -24
- package/dist/common/src/context.types.js +2 -2
- package/dist/common/src/distributed-lock.context.d.ts +4 -4
- package/dist/common/src/distributed-lock.context.js +9 -9
- package/dist/common/src/document.types.d.ts +32 -32
- package/dist/common/src/document.types.js +50 -50
- package/dist/common/src/graphql.context.d.ts +14 -14
- package/dist/common/src/graphql.context.js +12 -12
- package/dist/common/src/graphql.types.d.ts +11 -11
- package/dist/common/src/graphql.types.js +34 -34
- package/dist/common/src/heartbeat.types.d.ts +4 -4
- package/dist/common/src/heartbeat.types.js +16 -16
- package/dist/common/src/http-status.enum.d.ts +50 -50
- package/dist/common/src/http-status.enum.js +54 -54
- package/dist/common/src/index.d.ts +57 -56
- package/dist/common/src/index.js +73 -72
- package/dist/common/src/index.js.map +1 -1
- package/dist/common/src/integrations/ai_chatbot.types.d.ts +31 -0
- package/dist/common/src/integrations/{ai_assistant.types.js → ai_chatbot.types.js} +3 -3
- package/dist/common/src/integrations/ai_chatbot.types.js.map +1 -0
- package/dist/common/src/integrations/api.types.d.ts +80 -80
- package/dist/common/src/integrations/api.types.js +2 -2
- package/dist/common/src/integrations/auth.types.d.ts +39 -39
- package/dist/common/src/integrations/auth.types.js +2 -2
- package/dist/common/src/integrations/database.types.d.ts +274 -274
- package/dist/common/src/integrations/database.types.js +2 -2
- package/dist/common/src/integrations/index.d.ts +134 -134
- package/dist/common/src/integrations/index.js +119 -119
- package/dist/common/src/integrations/index.js.map +1 -1
- package/dist/common/src/integrations/observability.types.d.ts +23 -23
- package/dist/common/src/integrations/observability.types.js +23 -23
- package/dist/common/src/logger.types.d.ts +21 -21
- package/dist/common/src/logger.types.js +11 -11
- package/dist/common/src/metrics.types.d.ts +73 -73
- package/dist/common/src/metrics.types.js +11 -11
- package/dist/common/src/mutation.context.d.ts +13 -13
- package/dist/common/src/mutation.context.js +26 -26
- package/dist/common/src/mutation.schemas.d.ts +5 -5
- package/dist/common/src/mutation.schemas.js +114 -114
- package/dist/common/src/mutation.types.d.ts +63 -63
- package/dist/common/src/mutation.types.js +142 -142
- package/dist/common/src/named-query.context.d.ts +4 -4
- package/dist/common/src/named-query.context.js +9 -9
- package/dist/common/src/named-query.schemas.d.ts +3 -3
- package/dist/common/src/named-query.schemas.js +13 -13
- package/dist/common/src/named-query.types.d.ts +8 -8
- package/dist/common/src/named-query.types.js +2 -2
- package/dist/common/src/native-query.context.d.ts +7 -7
- package/dist/common/src/native-query.context.js +11 -11
- package/dist/common/src/native-query.types.d.ts +16 -16
- package/dist/common/src/native-query.types.js +2 -2
- package/dist/common/src/query/base-query-builder.d.ts +38 -38
- package/dist/common/src/query/base-query-builder.js +39 -39
- package/dist/common/src/query/index.d.ts +4 -4
- package/dist/common/src/query/index.js +20 -20
- package/dist/common/src/query/pagination.d.ts +46 -46
- package/dist/common/src/query/pagination.js +211 -211
- package/dist/common/src/query/query-context.d.ts +47 -47
- package/dist/common/src/query/query-context.js +159 -159
- package/dist/common/src/query/serialized-query.types.d.ts +24 -24
- package/dist/common/src/query/serialized-query.types.js +2 -2
- package/dist/common/src/query.types.d.ts +86 -86
- package/dist/common/src/query.types.js +171 -171
- package/dist/common/src/regions.d.ts +21 -21
- package/dist/common/src/regions.js +46 -46
- package/dist/common/src/schema/schema.types.d.ts +30 -30
- package/dist/common/src/schema/schema.types.js +173 -173
- package/dist/common/src/secret.schemas.d.ts +4 -4
- package/dist/common/src/secret.schemas.js +17 -17
- package/dist/common/src/secret.types.d.ts +68 -68
- package/dist/common/src/secret.types.js +5 -5
- package/dist/common/src/security.types.d.ts +3 -3
- package/dist/common/src/security.types.js +2 -2
- package/dist/common/src/socket.schemas.d.ts +3 -3
- package/dist/common/src/socket.schemas.js +57 -57
- package/dist/common/src/socket.types.d.ts +126 -126
- package/dist/common/src/socket.types.js +9 -9
- package/dist/common/src/time-units.d.ts +5 -5
- package/dist/common/src/time-units.js +8 -8
- package/dist/common/src/trigger.types.d.ts +15 -15
- package/dist/common/src/trigger.types.js +2 -2
- package/dist/common/src/types.d.ts +21 -21
- package/dist/common/src/types.js +2 -2
- package/dist/common/src/utils/array.d.ts +8 -8
- package/dist/common/src/utils/array.js +54 -54
- package/dist/common/src/utils/assert.d.ts +3 -3
- package/dist/common/src/utils/assert.js +14 -14
- package/dist/common/src/utils/error.d.ts +4 -4
- package/dist/common/src/utils/error.js +10 -10
- package/dist/common/src/utils/global.utils.d.ts +11 -11
- package/dist/common/src/utils/global.utils.js +50 -50
- package/dist/common/src/utils/http.d.ts +2 -2
- package/dist/common/src/utils/http.js +51 -51
- package/dist/common/src/utils/id.d.ts +2 -2
- package/dist/common/src/utils/id.js +21 -21
- package/dist/common/src/utils/lock.manager.d.ts +9 -9
- package/dist/common/src/utils/lock.manager.js +39 -39
- package/dist/common/src/utils/object.d.ts +5 -5
- package/dist/common/src/utils/object.js +75 -75
- package/dist/common/src/utils/serialization.d.ts +6 -6
- package/dist/common/src/utils/serialization.js +77 -77
- package/dist/common/src/utils/transforms.d.ts +18 -18
- package/dist/common/src/utils/transforms.js +104 -104
- package/dist/common/src/utils/url.d.ts +1 -1
- package/dist/common/src/utils/url.js +15 -15
- package/dist/common/src/utils/validation.d.ts +17 -17
- package/dist/common/src/utils/validation.js +209 -209
- package/dist/common/src/webhook-response.d.ts +6 -6
- package/dist/common/src/webhook-response.js +2 -2
- package/dist/common/src/websocket.impl.d.ts +21 -21
- package/dist/common/src/websocket.impl.js +79 -79
- package/dist/internal-common/src/code-executor.types.d.ts +13 -13
- package/dist/internal-common/src/code-executor.types.js +2 -2
- package/dist/internal-common/src/local-dev.types.d.ts +35 -35
- package/dist/internal-common/src/local-dev.types.js +2 -2
- package/dist/internal-common/src/utils/logger-utils.d.ts +3 -3
- package/dist/internal-common/src/utils/logger-utils.js +28 -28
- package/dist/local-backend/package.json +50 -57
- package/dist/local-backend/src/index.d.ts +4 -4
- package/dist/local-backend/src/index.js +26 -26
- package/dist/local-backend/src/local-backend-socket.service.d.ts +18 -18
- package/dist/local-backend/src/local-backend-socket.service.js +108 -108
- package/dist/local-backend/src/local-backend.app.d.ts +2 -2
- package/dist/local-backend/src/local-backend.app.js +19 -19
- package/dist/local-backend/src/local-backend.controller.d.ts +8 -8
- package/dist/local-backend/src/local-backend.controller.js +49 -49
- package/dist/local-backend/src/local-backend.module.d.ts +8 -8
- package/dist/local-backend/src/local-backend.module.js +53 -53
- package/dist/local-backend/src/local-backend.service.d.ts +15 -15
- package/dist/local-backend/src/local-backend.service.js +176 -176
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -9
- package/dist/common/src/ai-assistant.context.d.ts +0 -13
- package/dist/common/src/ai-assistant.context.js.map +0 -1
- package/dist/common/src/ai-assistant.schemas.d.ts +0 -243
- package/dist/common/src/ai-assistant.schemas.js +0 -211
- package/dist/common/src/ai-assistant.schemas.js.map +0 -1
- package/dist/common/src/integrations/ai_assistant.types.d.ts +0 -31
- package/dist/common/src/integrations/ai_assistant.types.js.map +0 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DocumentData, FieldName, PrimitiveFieldType } from '../document.types';
|
|
3
|
-
import { FieldSort, Operator, SimpleCondition } from '../query.types';
|
|
4
|
-
import { SerializedQuery } from './serialized-query.types';
|
|
5
|
-
import { PaginationOptions, Pagination } from './pagination';
|
|
6
|
-
export interface SnapshotEmitter<ReturnType> {
|
|
7
|
-
snapshot(): Promise<Array<ReturnType>>;
|
|
8
|
-
snapshots(subscribe?: boolean): Observable<Array<ReturnType>>;
|
|
9
|
-
peek(): Array<ReturnType>;
|
|
10
|
-
clone(): SnapshotEmitter<ReturnType>;
|
|
11
|
-
getSortOrders(): Array<FieldSort<any>>;
|
|
12
|
-
addCompositeCondition(conditions: Array<SimpleCondition>): SnapshotEmitter<ReturnType>;
|
|
13
|
-
limit(limit: number): SnapshotEmitter<ReturnType>;
|
|
14
|
-
getLimit(): number;
|
|
15
|
-
flipSortOrder(): SnapshotEmitter<ReturnType>;
|
|
16
|
-
extractData(data: ReturnType): any;
|
|
17
|
-
paginate(options?: Partial<PaginationOptions>): Pagination<ReturnType>;
|
|
18
|
-
serialize(): SerializedQuery;
|
|
19
|
-
}
|
|
20
|
-
export declare abstract class BaseQueryBuilder<MyDocType extends DocumentData> {
|
|
21
|
-
protected containsEmptyInCondition: boolean;
|
|
22
|
-
abstract where(fieldName: (keyof MyDocType & FieldName) | string, operator: Operator | 'in' | 'not in', value: PrimitiveFieldType | Array<PrimitiveFieldType>): this;
|
|
23
|
-
eq(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
24
|
-
neq(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
25
|
-
in(fieldName: (keyof MyDocType & FieldName) | string, value: Array<PrimitiveFieldType>): this;
|
|
26
|
-
nin(fieldName: (keyof MyDocType & FieldName) | string, value: Array<PrimitiveFieldType>): this;
|
|
27
|
-
gt(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
28
|
-
gte(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
29
|
-
lt(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
30
|
-
lte(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
31
|
-
like(fieldName: (keyof MyDocType & FieldName) | string, pattern: string, caseSensitive?: boolean): this;
|
|
32
|
-
notLike(fieldName: (keyof MyDocType & FieldName) | string, pattern: string, caseSensitive?: boolean): this;
|
|
33
|
-
abstract limit(limit: number): this;
|
|
34
|
-
abstract sortBy(fieldName: keyof MyDocType & FieldName, asc?: boolean): this;
|
|
35
|
-
}
|
|
36
|
-
export interface HasDereference {
|
|
37
|
-
dereference(): any;
|
|
38
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { DocumentData, FieldName, PrimitiveFieldType } from '../document.types';
|
|
3
|
+
import { FieldSort, Operator, SimpleCondition } from '../query.types';
|
|
4
|
+
import { SerializedQuery } from './serialized-query.types';
|
|
5
|
+
import { PaginationOptions, Pagination } from './pagination';
|
|
6
|
+
export interface SnapshotEmitter<ReturnType> {
|
|
7
|
+
snapshot(): Promise<Array<ReturnType>>;
|
|
8
|
+
snapshots(subscribe?: boolean): Observable<Array<ReturnType>>;
|
|
9
|
+
peek(): Array<ReturnType>;
|
|
10
|
+
clone(): SnapshotEmitter<ReturnType>;
|
|
11
|
+
getSortOrders(): Array<FieldSort<any>>;
|
|
12
|
+
addCompositeCondition(conditions: Array<SimpleCondition>): SnapshotEmitter<ReturnType>;
|
|
13
|
+
limit(limit: number): SnapshotEmitter<ReturnType>;
|
|
14
|
+
getLimit(): number;
|
|
15
|
+
flipSortOrder(): SnapshotEmitter<ReturnType>;
|
|
16
|
+
extractData(data: ReturnType): any;
|
|
17
|
+
paginate(options?: Partial<PaginationOptions>): Pagination<ReturnType>;
|
|
18
|
+
serialize(): SerializedQuery;
|
|
19
|
+
}
|
|
20
|
+
export declare abstract class BaseQueryBuilder<MyDocType extends DocumentData> {
|
|
21
|
+
protected containsEmptyInCondition: boolean;
|
|
22
|
+
abstract where(fieldName: (keyof MyDocType & FieldName) | string, operator: Operator | 'in' | 'not in', value: PrimitiveFieldType | Array<PrimitiveFieldType>): this;
|
|
23
|
+
eq(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
24
|
+
neq(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
25
|
+
in(fieldName: (keyof MyDocType & FieldName) | string, value: Array<PrimitiveFieldType>): this;
|
|
26
|
+
nin(fieldName: (keyof MyDocType & FieldName) | string, value: Array<PrimitiveFieldType>): this;
|
|
27
|
+
gt(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
28
|
+
gte(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
29
|
+
lt(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
30
|
+
lte(fieldName: (keyof MyDocType & FieldName) | string, value: PrimitiveFieldType): this;
|
|
31
|
+
like(fieldName: (keyof MyDocType & FieldName) | string, pattern: string, caseSensitive?: boolean): this;
|
|
32
|
+
notLike(fieldName: (keyof MyDocType & FieldName) | string, pattern: string, caseSensitive?: boolean): this;
|
|
33
|
+
abstract limit(limit: number): this;
|
|
34
|
+
abstract sortBy(fieldName: keyof MyDocType & FieldName, asc?: boolean): this;
|
|
35
|
+
}
|
|
36
|
+
export interface HasDereference {
|
|
37
|
+
dereference(): any;
|
|
38
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseQueryBuilder = void 0;
|
|
4
|
-
class BaseQueryBuilder {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.containsEmptyInCondition = false;
|
|
7
|
-
}
|
|
8
|
-
eq(fieldName, value) {
|
|
9
|
-
return this.where(fieldName, '==', value);
|
|
10
|
-
}
|
|
11
|
-
neq(fieldName, value) {
|
|
12
|
-
return this.where(fieldName, '!=', value);
|
|
13
|
-
}
|
|
14
|
-
in(fieldName, value) {
|
|
15
|
-
return this.where(fieldName, 'in', value);
|
|
16
|
-
}
|
|
17
|
-
nin(fieldName, value) {
|
|
18
|
-
return this.where(fieldName, 'not in', value);
|
|
19
|
-
}
|
|
20
|
-
gt(fieldName, value) {
|
|
21
|
-
return this.where(fieldName, '>', value);
|
|
22
|
-
}
|
|
23
|
-
gte(fieldName, value) {
|
|
24
|
-
return this.where(fieldName, '>=', value);
|
|
25
|
-
}
|
|
26
|
-
lt(fieldName, value) {
|
|
27
|
-
return this.where(fieldName, '<', value);
|
|
28
|
-
}
|
|
29
|
-
lte(fieldName, value) {
|
|
30
|
-
return this.where(fieldName, '<=', value);
|
|
31
|
-
}
|
|
32
|
-
like(fieldName, pattern, caseSensitive) {
|
|
33
|
-
return this.where(fieldName, caseSensitive ? 'like_cs' : 'like', pattern);
|
|
34
|
-
}
|
|
35
|
-
notLike(fieldName, pattern, caseSensitive) {
|
|
36
|
-
return this.where(fieldName, caseSensitive ? 'not like_cs' : 'not like', pattern);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.BaseQueryBuilder = BaseQueryBuilder;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseQueryBuilder = void 0;
|
|
4
|
+
class BaseQueryBuilder {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.containsEmptyInCondition = false;
|
|
7
|
+
}
|
|
8
|
+
eq(fieldName, value) {
|
|
9
|
+
return this.where(fieldName, '==', value);
|
|
10
|
+
}
|
|
11
|
+
neq(fieldName, value) {
|
|
12
|
+
return this.where(fieldName, '!=', value);
|
|
13
|
+
}
|
|
14
|
+
in(fieldName, value) {
|
|
15
|
+
return this.where(fieldName, 'in', value);
|
|
16
|
+
}
|
|
17
|
+
nin(fieldName, value) {
|
|
18
|
+
return this.where(fieldName, 'not in', value);
|
|
19
|
+
}
|
|
20
|
+
gt(fieldName, value) {
|
|
21
|
+
return this.where(fieldName, '>', value);
|
|
22
|
+
}
|
|
23
|
+
gte(fieldName, value) {
|
|
24
|
+
return this.where(fieldName, '>=', value);
|
|
25
|
+
}
|
|
26
|
+
lt(fieldName, value) {
|
|
27
|
+
return this.where(fieldName, '<', value);
|
|
28
|
+
}
|
|
29
|
+
lte(fieldName, value) {
|
|
30
|
+
return this.where(fieldName, '<=', value);
|
|
31
|
+
}
|
|
32
|
+
like(fieldName, pattern, caseSensitive) {
|
|
33
|
+
return this.where(fieldName, caseSensitive ? 'like_cs' : 'like', pattern);
|
|
34
|
+
}
|
|
35
|
+
notLike(fieldName, pattern, caseSensitive) {
|
|
36
|
+
return this.where(fieldName, caseSensitive ? 'not like_cs' : 'not like', pattern);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.BaseQueryBuilder = BaseQueryBuilder;
|
|
40
40
|
//# sourceMappingURL=base-query-builder.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './query-context';
|
|
2
|
-
export * from './base-query-builder';
|
|
3
|
-
export * from './serialized-query.types';
|
|
4
|
-
export * from './pagination';
|
|
1
|
+
export * from './query-context';
|
|
2
|
+
export * from './base-query-builder';
|
|
3
|
+
export * from './serialized-query.types';
|
|
4
|
+
export * from './pagination';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./query-context"), exports);
|
|
18
|
-
__exportStar(require("./base-query-builder"), exports);
|
|
19
|
-
__exportStar(require("./serialized-query.types"), exports);
|
|
20
|
-
__exportStar(require("./pagination"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./query-context"), exports);
|
|
18
|
+
__exportStar(require("./base-query-builder"), exports);
|
|
19
|
+
__exportStar(require("./serialized-query.types"), exports);
|
|
20
|
+
__exportStar(require("./pagination"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { SnapshotEmitter } from './base-query-builder';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export interface PaginationState<ReturnType> {
|
|
4
|
-
data: Array<ReturnType>;
|
|
5
|
-
hasNext: boolean;
|
|
6
|
-
hasPrev: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface PaginationOptions {
|
|
9
|
-
subscribe: boolean;
|
|
10
|
-
pageSize: number;
|
|
11
|
-
}
|
|
12
|
-
interface InternalState<ReturnType> {
|
|
13
|
-
data: ReturnType[];
|
|
14
|
-
extractedData: any[];
|
|
15
|
-
numBefore: number;
|
|
16
|
-
numAfter: number;
|
|
17
|
-
}
|
|
18
|
-
export declare class Pagination<ReturnType> {
|
|
19
|
-
private readonly options;
|
|
20
|
-
private internalStateObserver;
|
|
21
|
-
private firstElement;
|
|
22
|
-
private readonly isDestroyed;
|
|
23
|
-
private templateSnapshotEmitter;
|
|
24
|
-
private snapshotSubject;
|
|
25
|
-
private onFirstPage;
|
|
26
|
-
private navigatingToLastPage;
|
|
27
|
-
private lastElement;
|
|
28
|
-
constructor(snapshotEmitter: SnapshotEmitter<ReturnType>, options?: Partial<PaginationOptions>);
|
|
29
|
-
private goToFirstPage;
|
|
30
|
-
private static compareValues;
|
|
31
|
-
private compare;
|
|
32
|
-
private dataReceived;
|
|
33
|
-
private doNewQuery;
|
|
34
|
-
private waitForInternalState;
|
|
35
|
-
private internalStateToState;
|
|
36
|
-
unsubscribe(): void;
|
|
37
|
-
prevInternal(internalState: InternalState<ReturnType>): void;
|
|
38
|
-
prev(): Promise<PaginationState<ReturnType>>;
|
|
39
|
-
next(): Promise<PaginationState<ReturnType>>;
|
|
40
|
-
waitForData(): Promise<PaginationState<ReturnType>>;
|
|
41
|
-
observeState(): Observable<PaginationState<ReturnType>>;
|
|
42
|
-
first(): Promise<PaginationState<ReturnType>>;
|
|
43
|
-
refreshPage(): Promise<PaginationState<ReturnType>>;
|
|
44
|
-
last(): Promise<PaginationState<ReturnType>>;
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
1
|
+
import { SnapshotEmitter } from './base-query-builder';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export interface PaginationState<ReturnType> {
|
|
4
|
+
data: Array<ReturnType>;
|
|
5
|
+
hasNext: boolean;
|
|
6
|
+
hasPrev: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface PaginationOptions {
|
|
9
|
+
subscribe: boolean;
|
|
10
|
+
pageSize: number;
|
|
11
|
+
}
|
|
12
|
+
interface InternalState<ReturnType> {
|
|
13
|
+
data: ReturnType[];
|
|
14
|
+
extractedData: any[];
|
|
15
|
+
numBefore: number;
|
|
16
|
+
numAfter: number;
|
|
17
|
+
}
|
|
18
|
+
export declare class Pagination<ReturnType> {
|
|
19
|
+
private readonly options;
|
|
20
|
+
private internalStateObserver;
|
|
21
|
+
private firstElement;
|
|
22
|
+
private readonly isDestroyed;
|
|
23
|
+
private templateSnapshotEmitter;
|
|
24
|
+
private snapshotSubject;
|
|
25
|
+
private onFirstPage;
|
|
26
|
+
private navigatingToLastPage;
|
|
27
|
+
private lastElement;
|
|
28
|
+
constructor(snapshotEmitter: SnapshotEmitter<ReturnType>, options?: Partial<PaginationOptions>);
|
|
29
|
+
private goToFirstPage;
|
|
30
|
+
private static compareValues;
|
|
31
|
+
private compare;
|
|
32
|
+
private dataReceived;
|
|
33
|
+
private doNewQuery;
|
|
34
|
+
private waitForInternalState;
|
|
35
|
+
private internalStateToState;
|
|
36
|
+
unsubscribe(): void;
|
|
37
|
+
prevInternal(internalState: InternalState<ReturnType>): void;
|
|
38
|
+
prev(): Promise<PaginationState<ReturnType>>;
|
|
39
|
+
next(): Promise<PaginationState<ReturnType>>;
|
|
40
|
+
waitForData(): Promise<PaginationState<ReturnType>>;
|
|
41
|
+
observeState(): Observable<PaginationState<ReturnType>>;
|
|
42
|
+
first(): Promise<PaginationState<ReturnType>>;
|
|
43
|
+
refreshPage(): Promise<PaginationState<ReturnType>>;
|
|
44
|
+
last(): Promise<PaginationState<ReturnType>>;
|
|
45
|
+
}
|
|
46
|
+
export {};
|