@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 CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@jd-data-limited/easy-fm",
3
- "version": "3.1.0",
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": "^4.9.4",
9
+ "typescript": "^5.2.2",
10
10
  "ytdl-core": "^4.11.4"
11
11
  },
12
12
  "type": "module",
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import { EventEmitter } from "events";
2
4
  import { Request } from "node-fetch";
3
5
  import { LayoutInterface } from "../layouts/layoutInterface";
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 FieldValue = string | number | Date;
13
+ export type Container = null;
14
+ export type FieldValue = string | number | Date | Container;
@@ -18,4 +18,5 @@ export interface RecordFieldsMap {
18
18
  [fieldName: string]: Field<FieldValue>
19
19
  }
20
20
 
21
- export type FieldValue = string | number | Date
21
+ export type Container = null
22
+ export type FieldValue = string | number | Date | Container
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import { RecordBase } from "./recordBase";
2
4
  import * as http from "http";
3
5
  import { ContainerBufferResult, DOWNLOAD_MODES, FieldMetaData } from "../types.js";
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import { EventEmitter } from "events";
2
3
  import { Field } from "./field";
3
4
  import { Layout } from "../layouts/layout";
package/src/types.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import * as http from "http";
2
4
  import { Portal } from "./records/portal";
3
5
  import { FMError } from "./FMError";