@jd-data-limited/easy-fm 3.1.0 → 3.1.2
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/package.json +2 -2
- package/src/connection/database.d.ts +2 -0
- package/src/index.d.ts +16 -1
- package/src/index.js +15 -1
- package/src/index.ts +34 -1
- package/src/layouts/layoutInterface.d.ts +2 -1
- package/src/layouts/layoutInterface.ts +2 -1
- package/src/records/field.d.ts +2 -0
- package/src/records/recordBase.d.ts +1 -0
- package/src/types.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jd-data-limited/easy-fm",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@types/btoa": "^1.2.3",
|
|
6
6
|
"@types/events": "^3.0.0",
|
|
7
7
|
"moment": "^2.29.4",
|
|
8
8
|
"node-fetch": "3.2.8",
|
|
9
|
-
"typescript": "^
|
|
9
|
+
"typescript": "^5.2.2",
|
|
10
10
|
"ytdl-core": "^4.11.4"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
import FMHost from "./connection/FMHost";
|
|
1
|
+
import FMHost from "./connection/FMHost.js";
|
|
2
|
+
import { FMError } from "./FMError.js";
|
|
3
|
+
import * as TYPES from "./types.js";
|
|
4
|
+
import { Database } from "./connection/database";
|
|
5
|
+
import { Layout } from "./layouts/layout";
|
|
6
|
+
import { RecordBase } from "./records/recordBase";
|
|
7
|
+
import { LayoutRecord } from "./records/layoutRecord";
|
|
8
|
+
import { LayoutInterface, RecordFieldsMap, PortalInterface, Container } from "./layouts/layoutInterface";
|
|
9
|
+
import { PortalRecord } from "./records/portalRecord";
|
|
10
|
+
import { Portal } from "./records/portal";
|
|
11
|
+
import { Field } from "./records/field";
|
|
12
|
+
import { Find } from "./records/getOperations/find";
|
|
13
|
+
import { RecordGetOperation } from "./records/getOperations/recordGetOperation";
|
|
14
|
+
import { RecordGetRange } from "./records/getOperations/recordGetRange";
|
|
15
|
+
import { LayoutRecordManager } from "./layouts/layoutRecordManager";
|
|
2
16
|
export default FMHost;
|
|
17
|
+
export { FMError, TYPES, Database, Layout, RecordBase, LayoutRecord, LayoutInterface, RecordFieldsMap, PortalInterface, PortalRecord, Portal, Field, Find, RecordGetOperation, RecordGetRange, LayoutRecordManager, Container };
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Copyright (c) 2023. See LICENSE file for more information
|
|
3
3
|
*/
|
|
4
|
-
import FMHost from "./connection/FMHost";
|
|
4
|
+
import FMHost from "./connection/FMHost.js";
|
|
5
|
+
import { FMError } from "./FMError.js";
|
|
6
|
+
import * as TYPES from "./types.js";
|
|
7
|
+
import { Database } from "./connection/database";
|
|
8
|
+
import { Layout } from "./layouts/layout";
|
|
9
|
+
import { RecordBase } from "./records/recordBase";
|
|
10
|
+
import { LayoutRecord } from "./records/layoutRecord";
|
|
11
|
+
import { PortalRecord } from "./records/portalRecord";
|
|
12
|
+
import { Portal } from "./records/portal";
|
|
13
|
+
import { Field } from "./records/field";
|
|
14
|
+
import { Find } from "./records/getOperations/find";
|
|
15
|
+
import { RecordGetOperation } from "./records/getOperations/recordGetOperation";
|
|
16
|
+
import { RecordGetRange } from "./records/getOperations/recordGetRange";
|
|
17
|
+
import { LayoutRecordManager } from "./layouts/layoutRecordManager";
|
|
5
18
|
export default FMHost;
|
|
19
|
+
export { FMError, TYPES, Database, Layout, RecordBase, LayoutRecord, PortalRecord, Portal, Field, Find, RecordGetOperation, RecordGetRange, LayoutRecordManager };
|
package/src/index.ts
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
* Copyright (c) 2023. See LICENSE file for more information
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import FMHost from "./connection/FMHost";
|
|
5
|
+
import FMHost from "./connection/FMHost.js";
|
|
6
|
+
import {FMError} from "./FMError.js";
|
|
7
|
+
import * as TYPES from "./types.js"
|
|
8
|
+
import {Database} from "./connection/database";
|
|
9
|
+
import {Layout} from "./layouts/layout";
|
|
10
|
+
import {RecordBase} from "./records/recordBase";
|
|
11
|
+
import {LayoutRecord} from "./records/layoutRecord";
|
|
12
|
+
import {LayoutInterface, RecordFieldsMap, PortalInterface, Container} from "./layouts/layoutInterface";
|
|
13
|
+
import {PortalRecord} from "./records/portalRecord";
|
|
14
|
+
import {Portal} from "./records/portal";
|
|
15
|
+
import {Field} from "./records/field";
|
|
16
|
+
import {Find} from "./records/getOperations/find";
|
|
17
|
+
import {RecordGetOperation} from "./records/getOperations/recordGetOperation";
|
|
18
|
+
import {RecordGetRange} from "./records/getOperations/recordGetRange";
|
|
19
|
+
import {LayoutRecordManager} from "./layouts/layoutRecordManager";
|
|
6
20
|
|
|
7
21
|
export default FMHost
|
|
22
|
+
export {
|
|
23
|
+
FMError,
|
|
24
|
+
TYPES,
|
|
25
|
+
Database,
|
|
26
|
+
Layout,
|
|
27
|
+
RecordBase,
|
|
28
|
+
LayoutRecord,
|
|
29
|
+
LayoutInterface,
|
|
30
|
+
RecordFieldsMap,
|
|
31
|
+
PortalInterface,
|
|
32
|
+
PortalRecord,
|
|
33
|
+
Portal,
|
|
34
|
+
Field,
|
|
35
|
+
Find,
|
|
36
|
+
RecordGetOperation,
|
|
37
|
+
RecordGetRange,
|
|
38
|
+
LayoutRecordManager,
|
|
39
|
+
Container
|
|
40
|
+
}
|
|
@@ -10,4 +10,5 @@ export interface PortalInterface {
|
|
|
10
10
|
export interface RecordFieldsMap {
|
|
11
11
|
[fieldName: string]: Field<FieldValue>;
|
|
12
12
|
}
|
|
13
|
-
export type
|
|
13
|
+
export type Container = null;
|
|
14
|
+
export type FieldValue = string | number | Date | Container;
|
package/src/records/field.d.ts
CHANGED