@yglin/tw-env-records 0.0.0
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/lib/app.d.ts +3 -0
- package/lib/channels.d.ts +3 -0
- package/lib/client.d.ts +40 -0
- package/lib/client.js +50 -0
- package/lib/configuration.d.ts +142 -0
- package/lib/declarations.d.ts +10 -0
- package/lib/hooks/before-record-find.d.ts +2 -0
- package/lib/hooks/log-error.d.ts +2 -0
- package/lib/hooks/on-record-created.d.ts +2 -0
- package/lib/hooks/on-record-deleted.d.ts +2 -0
- package/lib/hooks/on-record-updated.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/internal/crawler-endpoints.d.ts +2 -0
- package/lib/jobs/audit.d.ts +7 -0
- package/lib/jobs/crawler-state.d.ts +12 -0
- package/lib/jobs/crawler.d.ts +7 -0
- package/lib/jobs/full-database-analyzer.d.ts +10 -0
- package/lib/jobs/scheduler.d.ts +2 -0
- package/lib/logger.d.ts +6 -0
- package/lib/maids/collate-place-names.d.ts +1 -0
- package/lib/maids/fix-place-names.d.ts +7 -0
- package/lib/maids/full-database-analyze.d.ts +1 -0
- package/lib/maids/geocode.d.ts +4 -0
- package/lib/mongodb.d.ts +8 -0
- package/lib/postgresql.d.ts +8 -0
- package/lib/services/ask-ai/ask-ai.class.d.ts +35 -0
- package/lib/services/ask-ai/ask-ai.d.ts +10 -0
- package/lib/services/ask-ai/ask-ai.shared.d.ts +12 -0
- package/lib/services/ask-ai/ask-ai.shared.js +13 -0
- package/lib/services/date-index/date-index.class.d.ts +11 -0
- package/lib/services/date-index/date-index.d.ts +11 -0
- package/lib/services/date-index/date-index.schema.d.ts +170 -0
- package/lib/services/date-index/date-index.shared.d.ts +13 -0
- package/lib/services/date-index/date-index.shared.js +19 -0
- package/lib/services/index.d.ts +9 -0
- package/lib/services/meta/meta.class.d.ts +151 -0
- package/lib/services/meta/meta.d.ts +11 -0
- package/lib/services/meta/meta.schema.d.ts +169 -0
- package/lib/services/meta/meta.shared.d.ts +13 -0
- package/lib/services/meta/meta.shared.js +13 -0
- package/lib/services/person/person.class.d.ts +1098 -0
- package/lib/services/person/person.d.ts +11 -0
- package/lib/services/person/person.schema.d.ts +2693 -0
- package/lib/services/person/person.shared.d.ts +13 -0
- package/lib/services/person/person.shared.js +13 -0
- package/lib/services/person-index/person-index.class.d.ts +17 -0
- package/lib/services/person-index/person-index.d.ts +11 -0
- package/lib/services/person-index/person-index.schema.d.ts +253 -0
- package/lib/services/person-index/person-index.shared.d.ts +13 -0
- package/lib/services/person-index/person-index.shared.js +19 -0
- package/lib/services/place-index/place-index.class.d.ts +15 -0
- package/lib/services/place-index/place-index.d.ts +11 -0
- package/lib/services/place-index/place-index.schema.d.ts +175 -0
- package/lib/services/place-index/place-index.shared.d.ts +15 -0
- package/lib/services/place-index/place-index.shared.js +21 -0
- package/lib/services/place-names/place-names.class.d.ts +53 -0
- package/lib/services/place-names/place-names.d.ts +11 -0
- package/lib/services/place-names/place-names.schema.d.ts +459 -0
- package/lib/services/place-names/place-names.shared.d.ts +13 -0
- package/lib/services/place-names/place-names.shared.js +13 -0
- package/lib/services/record/record.class.d.ts +155 -0
- package/lib/services/record/record.d.ts +11 -0
- package/lib/services/record/record.schema.d.ts +388 -0
- package/lib/services/record/record.shared.d.ts +13 -0
- package/lib/services/record/record.shared.js +13 -0
- package/lib/services/tag/spectral.d.ts +33 -0
- package/lib/services/tag/tag.class.d.ts +1098 -0
- package/lib/services/tag/tag.d.ts +11 -0
- package/lib/services/tag/tag.schema.d.ts +2693 -0
- package/lib/services/tag/tag.shared.d.ts +13 -0
- package/lib/services/tag/tag.shared.js +13 -0
- package/lib/services/tag-index/tag-index.class.d.ts +15 -0
- package/lib/services/tag-index/tag-index.d.ts +11 -0
- package/lib/services/tag-index/tag-index.schema.d.ts +155 -0
- package/lib/services/tag-index/tag-index.shared.d.ts +13 -0
- package/lib/services/tag-index/tag-index.shared.js +19 -0
- package/lib/services/tag-similarity/tag-similarity.class.d.ts +18 -0
- package/lib/services/tag-similarity/tag-similarity.d.ts +11 -0
- package/lib/services/tag-similarity/tag-similarity.schema.d.ts +404 -0
- package/lib/services/tag-similarity/tag-similarity.shared.d.ts +12 -0
- package/lib/services/tag-similarity/tag-similarity.shared.js +13 -0
- package/lib/utils/index.d.ts +5 -0
- package/lib/utils/postgresql-transport.d.ts +20 -0
- package/lib/utils/update-date-index.d.ts +3 -0
- package/lib/utils/update-person-index.d.ts +3 -0
- package/lib/utils/update-place-index.d.ts +3 -0
- package/lib/utils/update-tag-index.d.ts +3 -0
- package/lib/utils/wrap-error.d.ts +1 -0
- package/lib/validators.d.ts +3 -0
- package/package.json +105 -0
- package/readme.md +42 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import type { ClientApplication } from '../../client';
|
|
3
|
+
import type { Person, PersonData, PersonPatch, PersonQuery, PersonService } from './person.class';
|
|
4
|
+
export type { Person, PersonData, PersonPatch, PersonQuery };
|
|
5
|
+
export type PersonClientService = Pick<PersonService<Params<PersonQuery>>, (typeof personMethods)[number]>;
|
|
6
|
+
export declare const personPath = "person";
|
|
7
|
+
export declare const personMethods: Array<keyof PersonService>;
|
|
8
|
+
export declare const personClient: (client: ClientApplication) => void;
|
|
9
|
+
declare module '../../client' {
|
|
10
|
+
interface ServiceTypes {
|
|
11
|
+
[personPath]: PersonClientService;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personClient = exports.personMethods = exports.personPath = void 0;
|
|
4
|
+
exports.personPath = 'person';
|
|
5
|
+
exports.personMethods = ['find', 'get', 'create', 'patch', 'remove'];
|
|
6
|
+
const personClient = (client) => {
|
|
7
|
+
const connection = client.get('connection');
|
|
8
|
+
client.use(exports.personPath, connection.service(exports.personPath), {
|
|
9
|
+
methods: exports.personMethods
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.personClient = personClient;
|
|
13
|
+
//# sourceMappingURL=person.shared.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import { KnexService } from '@feathersjs/knex';
|
|
3
|
+
import type { KnexAdapterParams, KnexAdapterOptions } from '@feathersjs/knex';
|
|
4
|
+
import type { Application } from '../../declarations';
|
|
5
|
+
import type { PersonIndex, PersonIndexData, PersonIndexPatch, PersonIndexQuery } from './person-index.schema';
|
|
6
|
+
export type { PersonIndex, PersonIndexData, PersonIndexPatch, PersonIndexQuery };
|
|
7
|
+
export interface PersonIndexParams extends KnexAdapterParams<PersonIndexQuery> {
|
|
8
|
+
}
|
|
9
|
+
export declare class PersonIndexService<ServiceParams extends Params = PersonIndexParams> extends KnexService<PersonIndex, PersonIndexData, PersonIndexParams, PersonIndexPatch> {
|
|
10
|
+
_get(id: string, params?: Params): Promise<{
|
|
11
|
+
group?: string | undefined;
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
id: string;
|
|
14
|
+
records: number[];
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
17
|
+
export declare const getOptions: (app: Application) => KnexAdapterOptions;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Application } from '../../declarations';
|
|
2
|
+
import { PersonIndexService } from './person-index.class';
|
|
3
|
+
import { personIndexPath } from './person-index.shared';
|
|
4
|
+
export * from './person-index.class';
|
|
5
|
+
export * from './person-index.schema';
|
|
6
|
+
export declare const personIndex: (app: Application) => void;
|
|
7
|
+
declare module '../../declarations' {
|
|
8
|
+
interface ServiceTypes {
|
|
9
|
+
[personIndexPath]: PersonIndexService;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import type { Static } from '@feathersjs/typebox';
|
|
2
|
+
import type { HookContext } from '../../declarations';
|
|
3
|
+
import type { PersonIndexService } from './person-index.class';
|
|
4
|
+
export declare const personIndexSchema: import("@sinclair/typebox").TObject<{
|
|
5
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
6
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
7
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
8
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
9
|
+
}>;
|
|
10
|
+
export type PersonIndex = Static<typeof personIndexSchema>;
|
|
11
|
+
export declare const personIndexValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
12
|
+
export declare const personIndexResolver: import("@feathersjs/schema").Resolver<{
|
|
13
|
+
group?: string | undefined;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
id: string;
|
|
16
|
+
records: number[];
|
|
17
|
+
}, HookContext<PersonIndexService<import("./person-index.class").PersonIndexParams>>>;
|
|
18
|
+
export declare const personIndexExternalResolver: import("@feathersjs/schema").Resolver<{
|
|
19
|
+
group?: string | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
id: string;
|
|
22
|
+
records: number[];
|
|
23
|
+
}, HookContext<PersonIndexService<import("./person-index.class").PersonIndexParams>>>;
|
|
24
|
+
export declare const personIndexDataSchema: import("@sinclair/typebox").TPick<import("@sinclair/typebox").TObject<{
|
|
25
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
26
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
27
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
28
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
29
|
+
}>, ["id", "group", "description", "records"]>;
|
|
30
|
+
export type PersonIndexData = Static<typeof personIndexDataSchema>;
|
|
31
|
+
export declare const personIndexDataValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
32
|
+
export declare const personIndexDataResolver: import("@feathersjs/schema").Resolver<{
|
|
33
|
+
group?: string | undefined;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
id: string;
|
|
36
|
+
records: number[];
|
|
37
|
+
}, HookContext<PersonIndexService<import("./person-index.class").PersonIndexParams>>>;
|
|
38
|
+
export declare const personIndexPatchSchema: import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TObject<{
|
|
39
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
40
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
41
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
42
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
43
|
+
}>>;
|
|
44
|
+
export type PersonIndexPatch = Static<typeof personIndexPatchSchema>;
|
|
45
|
+
export declare const personIndexPatchValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
46
|
+
export declare const personIndexPatchResolver: import("@feathersjs/schema").Resolver<{
|
|
47
|
+
group?: string | undefined;
|
|
48
|
+
description?: string | undefined;
|
|
49
|
+
id: string;
|
|
50
|
+
records: number[];
|
|
51
|
+
}, HookContext<PersonIndexService<import("./person-index.class").PersonIndexParams>>>;
|
|
52
|
+
export declare const personIndexQueryProperties: import("@sinclair/typebox").TPick<import("@sinclair/typebox").TObject<{
|
|
53
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
54
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
55
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
56
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
57
|
+
}>, ["id", "group"]>;
|
|
58
|
+
export declare const personIndexQuerySchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TObject<{
|
|
59
|
+
$limit: import("@sinclair/typebox").TNumber;
|
|
60
|
+
$skip: import("@sinclair/typebox").TNumber;
|
|
61
|
+
$sort: import("@sinclair/typebox").TObject<{
|
|
62
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
63
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
64
|
+
}>;
|
|
65
|
+
$select: import("@sinclair/typebox").TUnsafe<("group" | "id")[]>;
|
|
66
|
+
$and: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
67
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
68
|
+
$gt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
69
|
+
$gte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
70
|
+
$lt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
71
|
+
$lte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
72
|
+
$ne: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
73
|
+
$in: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>>;
|
|
74
|
+
$nin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>>;
|
|
75
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
76
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
77
|
+
} | undefined>]>>]>>;
|
|
78
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
79
|
+
$gt: import("@sinclair/typebox").TString<string>;
|
|
80
|
+
$gte: import("@sinclair/typebox").TString<string>;
|
|
81
|
+
$lt: import("@sinclair/typebox").TString<string>;
|
|
82
|
+
$lte: import("@sinclair/typebox").TString<string>;
|
|
83
|
+
$ne: import("@sinclair/typebox").TString<string>;
|
|
84
|
+
$in: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
85
|
+
$nin: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
86
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
87
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
88
|
+
} | undefined>]>>]>>;
|
|
89
|
+
}>>, import("@sinclair/typebox").TObject<{
|
|
90
|
+
$or: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
91
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
92
|
+
$gt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
93
|
+
$gte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
94
|
+
$lt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
95
|
+
$lte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
96
|
+
$ne: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
97
|
+
$in: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>>;
|
|
98
|
+
$nin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>>;
|
|
99
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
100
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
101
|
+
} | undefined>]>>]>>;
|
|
102
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
103
|
+
$gt: import("@sinclair/typebox").TString<string>;
|
|
104
|
+
$gte: import("@sinclair/typebox").TString<string>;
|
|
105
|
+
$lt: import("@sinclair/typebox").TString<string>;
|
|
106
|
+
$lte: import("@sinclair/typebox").TString<string>;
|
|
107
|
+
$ne: import("@sinclair/typebox").TString<string>;
|
|
108
|
+
$in: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
109
|
+
$nin: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
110
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
111
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
112
|
+
} | undefined>]>>]>>;
|
|
113
|
+
}>>>;
|
|
114
|
+
}>]>>;
|
|
115
|
+
$or: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
116
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
117
|
+
$gt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
118
|
+
$gte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
119
|
+
$lt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
120
|
+
$lte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
121
|
+
$ne: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
122
|
+
$in: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>>;
|
|
123
|
+
$nin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>>;
|
|
124
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
125
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
126
|
+
} | undefined>]>>]>>;
|
|
127
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
128
|
+
$gt: import("@sinclair/typebox").TString<string>;
|
|
129
|
+
$gte: import("@sinclair/typebox").TString<string>;
|
|
130
|
+
$lt: import("@sinclair/typebox").TString<string>;
|
|
131
|
+
$lte: import("@sinclair/typebox").TString<string>;
|
|
132
|
+
$ne: import("@sinclair/typebox").TString<string>;
|
|
133
|
+
$in: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
134
|
+
$nin: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
135
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
136
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
137
|
+
} | undefined>]>>]>>;
|
|
138
|
+
}>>>;
|
|
139
|
+
}>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
140
|
+
group: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
141
|
+
$gt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
142
|
+
$gte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
143
|
+
$lt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
144
|
+
$lte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
145
|
+
$ne: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
146
|
+
$in: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>>;
|
|
147
|
+
$nin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>>;
|
|
148
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
149
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
150
|
+
} | undefined>]>>]>>;
|
|
151
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
152
|
+
$gt: import("@sinclair/typebox").TString<string>;
|
|
153
|
+
$gte: import("@sinclair/typebox").TString<string>;
|
|
154
|
+
$lt: import("@sinclair/typebox").TString<string>;
|
|
155
|
+
$lte: import("@sinclair/typebox").TString<string>;
|
|
156
|
+
$ne: import("@sinclair/typebox").TString<string>;
|
|
157
|
+
$in: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
158
|
+
$nin: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
159
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
160
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
161
|
+
} | undefined>]>>]>>;
|
|
162
|
+
}>>]>, import("@sinclair/typebox").TObject<{}>]>;
|
|
163
|
+
export type PersonIndexQuery = Static<typeof personIndexQuerySchema>;
|
|
164
|
+
export declare const personIndexQueryValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
165
|
+
export declare const personIndexQueryResolver: import("@feathersjs/schema").Resolver<Partial<{
|
|
166
|
+
$limit: number;
|
|
167
|
+
$skip: number;
|
|
168
|
+
$sort: {
|
|
169
|
+
group?: number | undefined;
|
|
170
|
+
id?: number | undefined;
|
|
171
|
+
};
|
|
172
|
+
$select: ("group" | "id")[];
|
|
173
|
+
$and: ({
|
|
174
|
+
group?: string | Partial<{
|
|
175
|
+
$gt?: string | undefined;
|
|
176
|
+
$gte?: string | undefined;
|
|
177
|
+
$lt?: string | undefined;
|
|
178
|
+
$lte?: string | undefined;
|
|
179
|
+
$ne?: string | undefined;
|
|
180
|
+
$in: string | string[];
|
|
181
|
+
$nin: string | string[];
|
|
182
|
+
} & {}> | undefined;
|
|
183
|
+
id?: string | Partial<{
|
|
184
|
+
$gt: string;
|
|
185
|
+
$gte: string;
|
|
186
|
+
$lt: string;
|
|
187
|
+
$lte: string;
|
|
188
|
+
$ne: string;
|
|
189
|
+
$in: string | string[];
|
|
190
|
+
$nin: string | string[];
|
|
191
|
+
} & {}> | undefined;
|
|
192
|
+
} | {
|
|
193
|
+
$or: {
|
|
194
|
+
group?: string | Partial<{
|
|
195
|
+
$gt?: string | undefined;
|
|
196
|
+
$gte?: string | undefined;
|
|
197
|
+
$lt?: string | undefined;
|
|
198
|
+
$lte?: string | undefined;
|
|
199
|
+
$ne?: string | undefined;
|
|
200
|
+
$in: string | string[];
|
|
201
|
+
$nin: string | string[];
|
|
202
|
+
} & {}> | undefined;
|
|
203
|
+
id?: string | Partial<{
|
|
204
|
+
$gt: string;
|
|
205
|
+
$gte: string;
|
|
206
|
+
$lt: string;
|
|
207
|
+
$lte: string;
|
|
208
|
+
$ne: string;
|
|
209
|
+
$in: string | string[];
|
|
210
|
+
$nin: string | string[];
|
|
211
|
+
} & {}> | undefined;
|
|
212
|
+
}[];
|
|
213
|
+
})[];
|
|
214
|
+
$or: {
|
|
215
|
+
group?: string | Partial<{
|
|
216
|
+
$gt?: string | undefined;
|
|
217
|
+
$gte?: string | undefined;
|
|
218
|
+
$lt?: string | undefined;
|
|
219
|
+
$lte?: string | undefined;
|
|
220
|
+
$ne?: string | undefined;
|
|
221
|
+
$in: string | string[];
|
|
222
|
+
$nin: string | string[];
|
|
223
|
+
} & {}> | undefined;
|
|
224
|
+
id?: string | Partial<{
|
|
225
|
+
$gt: string;
|
|
226
|
+
$gte: string;
|
|
227
|
+
$lt: string;
|
|
228
|
+
$lte: string;
|
|
229
|
+
$ne: string;
|
|
230
|
+
$in: string | string[];
|
|
231
|
+
$nin: string | string[];
|
|
232
|
+
} & {}> | undefined;
|
|
233
|
+
}[];
|
|
234
|
+
}> & {
|
|
235
|
+
group?: string | Partial<{
|
|
236
|
+
$gt?: string | undefined;
|
|
237
|
+
$gte?: string | undefined;
|
|
238
|
+
$lt?: string | undefined;
|
|
239
|
+
$lte?: string | undefined;
|
|
240
|
+
$ne?: string | undefined;
|
|
241
|
+
$in: string | string[];
|
|
242
|
+
$nin: string | string[];
|
|
243
|
+
} & {}> | undefined;
|
|
244
|
+
id?: string | Partial<{
|
|
245
|
+
$gt: string;
|
|
246
|
+
$gte: string;
|
|
247
|
+
$lt: string;
|
|
248
|
+
$lte: string;
|
|
249
|
+
$ne: string;
|
|
250
|
+
$in: string | string[];
|
|
251
|
+
$nin: string | string[];
|
|
252
|
+
} & {}> | undefined;
|
|
253
|
+
} & {}, HookContext<PersonIndexService<import("./person-index.class").PersonIndexParams>>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import type { ClientApplication } from '../../client';
|
|
3
|
+
import type { PersonIndex, PersonIndexData, PersonIndexPatch, PersonIndexQuery, PersonIndexService } from './person-index.class';
|
|
4
|
+
export type { PersonIndex, PersonIndexData, PersonIndexPatch, PersonIndexQuery };
|
|
5
|
+
export type PersonIndexClientService = Pick<PersonIndexService<Params<PersonIndexQuery>>, (typeof personIndexMethods)[number]>;
|
|
6
|
+
export declare const personIndexPath = "person-index";
|
|
7
|
+
export declare const personIndexMethods: Array<keyof PersonIndexService>;
|
|
8
|
+
export declare const personIndexClient: (client: ClientApplication) => void;
|
|
9
|
+
declare module '../../client' {
|
|
10
|
+
interface ServiceTypes {
|
|
11
|
+
[personIndexPath]: PersonIndexClientService;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.personIndexClient = exports.personIndexMethods = exports.personIndexPath = void 0;
|
|
4
|
+
exports.personIndexPath = 'person-index';
|
|
5
|
+
exports.personIndexMethods = [
|
|
6
|
+
'find',
|
|
7
|
+
'get',
|
|
8
|
+
'create',
|
|
9
|
+
'patch',
|
|
10
|
+
'remove'
|
|
11
|
+
];
|
|
12
|
+
const personIndexClient = (client) => {
|
|
13
|
+
const connection = client.get('connection');
|
|
14
|
+
client.use(exports.personIndexPath, connection.service(exports.personIndexPath), {
|
|
15
|
+
methods: exports.personIndexMethods
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
exports.personIndexClient = personIndexClient;
|
|
19
|
+
//# sourceMappingURL=person-index.shared.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import { KnexService } from '@feathersjs/knex';
|
|
3
|
+
import type { KnexAdapterParams, KnexAdapterOptions } from '@feathersjs/knex';
|
|
4
|
+
import type { Application } from '../../declarations';
|
|
5
|
+
import { type PlaceIndex, type PlaceIndexData, type PlaceIndexPatch, type PlaceIndexQuery } from './place-index.schema';
|
|
6
|
+
export type { PlaceIndex, PlaceIndexData, PlaceIndexPatch, PlaceIndexQuery };
|
|
7
|
+
export interface PlaceIndexParams extends KnexAdapterParams<PlaceIndexQuery> {
|
|
8
|
+
}
|
|
9
|
+
export declare class PlaceIndexService<ServiceParams extends Params = PlaceIndexParams> extends KnexService<PlaceIndex, PlaceIndexData, PlaceIndexParams, PlaceIndexPatch> {
|
|
10
|
+
_get(id: string, params?: Params): Promise<{
|
|
11
|
+
id: string;
|
|
12
|
+
records: number[];
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export declare const getOptions: (app: Application) => KnexAdapterOptions;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Application } from '../../declarations';
|
|
2
|
+
import { PlaceIndexService } from './place-index.class';
|
|
3
|
+
import { placeIndexPath } from './place-index.shared';
|
|
4
|
+
export * from './place-index.class';
|
|
5
|
+
export * from './place-index.schema';
|
|
6
|
+
export declare const placeIndex: (app: Application) => void;
|
|
7
|
+
declare module '../../declarations' {
|
|
8
|
+
interface ServiceTypes {
|
|
9
|
+
[placeIndexPath]: PlaceIndexService;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import type { Static } from '@feathersjs/typebox';
|
|
2
|
+
import type { HookContext } from '../../declarations';
|
|
3
|
+
import type { PlaceIndexService } from './place-index.class';
|
|
4
|
+
export declare const buildPlaceIndexId: (country: string, state?: string, county?: string, city?: string, district?: string, village?: string) => string;
|
|
5
|
+
export declare const derivePlaceIndexIds: (country: string, state?: string, county?: string, city?: string, district?: string, village?: string) => string[];
|
|
6
|
+
export declare const deriveDifferentPlaceIndexIds: (before: {
|
|
7
|
+
country: string;
|
|
8
|
+
state?: string;
|
|
9
|
+
county?: string;
|
|
10
|
+
city?: string;
|
|
11
|
+
district?: string;
|
|
12
|
+
village?: string;
|
|
13
|
+
}, after: {
|
|
14
|
+
country: string;
|
|
15
|
+
state?: string;
|
|
16
|
+
county?: string;
|
|
17
|
+
city?: string;
|
|
18
|
+
district?: string;
|
|
19
|
+
village?: string;
|
|
20
|
+
}) => {
|
|
21
|
+
toAdd: string[];
|
|
22
|
+
toRemove: string[];
|
|
23
|
+
};
|
|
24
|
+
export declare const placeIndexSchema: import("@sinclair/typebox").TObject<{
|
|
25
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
26
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
27
|
+
}>;
|
|
28
|
+
export type PlaceIndex = Static<typeof placeIndexSchema>;
|
|
29
|
+
export declare const placeIndexValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
30
|
+
export declare const placeIndexResolver: import("@feathersjs/schema").Resolver<{
|
|
31
|
+
id: string;
|
|
32
|
+
records: number[];
|
|
33
|
+
}, HookContext<PlaceIndexService<import("./place-index.class").PlaceIndexParams>>>;
|
|
34
|
+
export declare const placeIndexExternalResolver: import("@feathersjs/schema").Resolver<{
|
|
35
|
+
id: string;
|
|
36
|
+
records: number[];
|
|
37
|
+
}, HookContext<PlaceIndexService<import("./place-index.class").PlaceIndexParams>>>;
|
|
38
|
+
export declare const placeIndexDataSchema: import("@sinclair/typebox").TPick<import("@sinclair/typebox").TObject<{
|
|
39
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
40
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
41
|
+
}>, ["id", "records"]>;
|
|
42
|
+
export type PlaceIndexData = Static<typeof placeIndexDataSchema>;
|
|
43
|
+
export declare const placeIndexDataValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
44
|
+
export declare const placeIndexDataResolver: import("@feathersjs/schema").Resolver<{
|
|
45
|
+
id: string;
|
|
46
|
+
records: number[];
|
|
47
|
+
}, HookContext<PlaceIndexService<import("./place-index.class").PlaceIndexParams>>>;
|
|
48
|
+
export declare const placeIndexPatchSchema: import("@sinclair/typebox").TPick<import("@sinclair/typebox").TObject<{
|
|
49
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
50
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
51
|
+
}>, ["records"]>;
|
|
52
|
+
export type PlaceIndexPatch = Static<typeof placeIndexPatchSchema>;
|
|
53
|
+
export declare const placeIndexPatchValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
54
|
+
export declare const placeIndexPatchResolver: import("@feathersjs/schema").Resolver<{
|
|
55
|
+
id: string;
|
|
56
|
+
records: number[];
|
|
57
|
+
}, HookContext<PlaceIndexService<import("./place-index.class").PlaceIndexParams>>>;
|
|
58
|
+
export declare const placeIndexQueryProperties: import("@sinclair/typebox").TPick<import("@sinclair/typebox").TObject<{
|
|
59
|
+
id: import("@sinclair/typebox").TString<string>;
|
|
60
|
+
records: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
61
|
+
}>, ["id"]>;
|
|
62
|
+
export declare const placeIndexQuerySchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TObject<{
|
|
63
|
+
$limit: import("@sinclair/typebox").TNumber;
|
|
64
|
+
$skip: import("@sinclair/typebox").TNumber;
|
|
65
|
+
$sort: import("@sinclair/typebox").TObject<{
|
|
66
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
67
|
+
}>;
|
|
68
|
+
$select: import("@sinclair/typebox").TUnsafe<"id"[]>;
|
|
69
|
+
$and: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
70
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
71
|
+
$gt: import("@sinclair/typebox").TString<string>;
|
|
72
|
+
$gte: import("@sinclair/typebox").TString<string>;
|
|
73
|
+
$lt: import("@sinclair/typebox").TString<string>;
|
|
74
|
+
$lte: import("@sinclair/typebox").TString<string>;
|
|
75
|
+
$ne: import("@sinclair/typebox").TString<string>;
|
|
76
|
+
$in: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
77
|
+
$nin: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
78
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
79
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
80
|
+
} | undefined>]>>]>>;
|
|
81
|
+
}>>, import("@sinclair/typebox").TObject<{
|
|
82
|
+
$or: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
83
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
84
|
+
$gt: import("@sinclair/typebox").TString<string>;
|
|
85
|
+
$gte: import("@sinclair/typebox").TString<string>;
|
|
86
|
+
$lt: import("@sinclair/typebox").TString<string>;
|
|
87
|
+
$lte: import("@sinclair/typebox").TString<string>;
|
|
88
|
+
$ne: import("@sinclair/typebox").TString<string>;
|
|
89
|
+
$in: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
90
|
+
$nin: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
91
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
92
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
93
|
+
} | undefined>]>>]>>;
|
|
94
|
+
}>>>;
|
|
95
|
+
}>]>>;
|
|
96
|
+
$or: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
97
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
98
|
+
$gt: import("@sinclair/typebox").TString<string>;
|
|
99
|
+
$gte: import("@sinclair/typebox").TString<string>;
|
|
100
|
+
$lt: import("@sinclair/typebox").TString<string>;
|
|
101
|
+
$lte: import("@sinclair/typebox").TString<string>;
|
|
102
|
+
$ne: import("@sinclair/typebox").TString<string>;
|
|
103
|
+
$in: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
104
|
+
$nin: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
105
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
106
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
107
|
+
} | undefined>]>>]>>;
|
|
108
|
+
}>>>;
|
|
109
|
+
}>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
110
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TPartial<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
111
|
+
$gt: import("@sinclair/typebox").TString<string>;
|
|
112
|
+
$gte: import("@sinclair/typebox").TString<string>;
|
|
113
|
+
$lt: import("@sinclair/typebox").TString<string>;
|
|
114
|
+
$lte: import("@sinclair/typebox").TString<string>;
|
|
115
|
+
$ne: import("@sinclair/typebox").TString<string>;
|
|
116
|
+
$in: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
117
|
+
$nin: import("@sinclair/typebox").TString<string> | import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString<string>>;
|
|
118
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
119
|
+
[key: string]: import("@sinclair/typebox").TSchema;
|
|
120
|
+
} | undefined>]>>]>>;
|
|
121
|
+
}>>]>, import("@sinclair/typebox").TObject<{}>]>;
|
|
122
|
+
export type PlaceIndexQuery = Static<typeof placeIndexQuerySchema>;
|
|
123
|
+
export declare const placeIndexQueryValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
124
|
+
export declare const placeIndexQueryResolver: import("@feathersjs/schema").Resolver<Partial<{
|
|
125
|
+
$limit: number;
|
|
126
|
+
$skip: number;
|
|
127
|
+
$sort: {
|
|
128
|
+
id?: number | undefined;
|
|
129
|
+
};
|
|
130
|
+
$select: "id"[];
|
|
131
|
+
$and: ({
|
|
132
|
+
id?: string | Partial<{
|
|
133
|
+
$gt: string;
|
|
134
|
+
$gte: string;
|
|
135
|
+
$lt: string;
|
|
136
|
+
$lte: string;
|
|
137
|
+
$ne: string;
|
|
138
|
+
$in: string | string[];
|
|
139
|
+
$nin: string | string[];
|
|
140
|
+
} & {}> | undefined;
|
|
141
|
+
} | {
|
|
142
|
+
$or: {
|
|
143
|
+
id?: string | Partial<{
|
|
144
|
+
$gt: string;
|
|
145
|
+
$gte: string;
|
|
146
|
+
$lt: string;
|
|
147
|
+
$lte: string;
|
|
148
|
+
$ne: string;
|
|
149
|
+
$in: string | string[];
|
|
150
|
+
$nin: string | string[];
|
|
151
|
+
} & {}> | undefined;
|
|
152
|
+
}[];
|
|
153
|
+
})[];
|
|
154
|
+
$or: {
|
|
155
|
+
id?: string | Partial<{
|
|
156
|
+
$gt: string;
|
|
157
|
+
$gte: string;
|
|
158
|
+
$lt: string;
|
|
159
|
+
$lte: string;
|
|
160
|
+
$ne: string;
|
|
161
|
+
$in: string | string[];
|
|
162
|
+
$nin: string | string[];
|
|
163
|
+
} & {}> | undefined;
|
|
164
|
+
}[];
|
|
165
|
+
}> & {
|
|
166
|
+
id?: string | Partial<{
|
|
167
|
+
$gt: string;
|
|
168
|
+
$gte: string;
|
|
169
|
+
$lt: string;
|
|
170
|
+
$lte: string;
|
|
171
|
+
$ne: string;
|
|
172
|
+
$in: string | string[];
|
|
173
|
+
$nin: string | string[];
|
|
174
|
+
} & {}> | undefined;
|
|
175
|
+
} & {}, HookContext<PlaceIndexService<import("./place-index.class").PlaceIndexParams>>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Params } from '@feathersjs/feathers';
|
|
2
|
+
import type { ClientApplication } from '../../client';
|
|
3
|
+
import type { PlaceIndex, PlaceIndexData, PlaceIndexPatch, PlaceIndexQuery, PlaceIndexService } from './place-index.class';
|
|
4
|
+
export type { PlaceIndex, PlaceIndexData, PlaceIndexPatch, PlaceIndexQuery };
|
|
5
|
+
import { buildPlaceIndexId } from './place-index.schema';
|
|
6
|
+
export { buildPlaceIndexId };
|
|
7
|
+
export type PlaceIndexClientService = Pick<PlaceIndexService<Params<PlaceIndexQuery>>, (typeof placeIndexMethods)[number]>;
|
|
8
|
+
export declare const placeIndexPath = "place-index";
|
|
9
|
+
export declare const placeIndexMethods: Array<keyof PlaceIndexService>;
|
|
10
|
+
export declare const placeIndexClient: (client: ClientApplication) => void;
|
|
11
|
+
declare module '../../client' {
|
|
12
|
+
interface ServiceTypes {
|
|
13
|
+
[placeIndexPath]: PlaceIndexClientService;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.placeIndexClient = exports.placeIndexMethods = exports.placeIndexPath = exports.buildPlaceIndexId = void 0;
|
|
4
|
+
const place_index_schema_1 = require("./place-index.schema");
|
|
5
|
+
Object.defineProperty(exports, "buildPlaceIndexId", { enumerable: true, get: function () { return place_index_schema_1.buildPlaceIndexId; } });
|
|
6
|
+
exports.placeIndexPath = 'place-index';
|
|
7
|
+
exports.placeIndexMethods = [
|
|
8
|
+
'find',
|
|
9
|
+
'get',
|
|
10
|
+
'create',
|
|
11
|
+
'patch',
|
|
12
|
+
'remove'
|
|
13
|
+
];
|
|
14
|
+
const placeIndexClient = (client) => {
|
|
15
|
+
const connection = client.get('connection');
|
|
16
|
+
client.use(exports.placeIndexPath, connection.service(exports.placeIndexPath), {
|
|
17
|
+
methods: exports.placeIndexMethods
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.placeIndexClient = placeIndexClient;
|
|
21
|
+
//# sourceMappingURL=place-index.shared.js.map
|