@jd-data-limited/easy-fm 3.2.7 → 4.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/README.md +36 -24
- package/package.json +15 -8
- package/src/FMError.d.ts +1 -1
- package/src/FMError.js +7 -2
- package/src/FMError.ts +3 -3
- package/src/connection/FMHost.d.ts +3 -2
- package/src/connection/FMHost.js +37 -47
- package/src/connection/FMHost.ts +6 -6
- package/src/connection/HostBase.d.ts +1 -1
- package/src/connection/HostBase.js +1 -1
- package/src/connection/HostBase.ts +2 -4
- package/src/connection/database.d.ts +12 -9
- package/src/connection/database.js +93 -116
- package/src/connection/database.ts +79 -90
- package/src/connection/databaseBase.d.ts +5 -2
- package/src/connection/databaseBase.js +1 -1
- package/src/connection/databaseBase.ts +5 -4
- package/src/databaseStructure.d.ts +6 -0
- package/src/databaseStructure.js +4 -0
- package/src/databaseStructure.ts +12 -0
- package/src/index.d.ts +3 -6
- package/src/index.js +3 -5
- package/src/index.ts +4 -9
- package/src/layouts/layout.d.ts +5 -19
- package/src/layouts/layout.js +27 -69
- package/src/layouts/layout.ts +26 -65
- package/src/layouts/layoutBase.d.ts +4 -4
- package/src/layouts/layoutBase.js +1 -1
- package/src/layouts/layoutBase.ts +5 -5
- package/src/layouts/layoutInterface.d.ts +1 -1
- package/src/layouts/layoutInterface.js +1 -1
- package/src/layouts/layoutInterface.ts +2 -2
- package/src/layouts/layoutRecordManager.d.ts +5 -6
- package/src/layouts/layoutRecordManager.js +20 -39
- package/src/layouts/layoutRecordManager.ts +20 -41
- package/src/layouts/recordFieldsMap.d.ts +2 -2
- package/src/layouts/recordFieldsMap.js +1 -1
- package/src/layouts/recordFieldsMap.ts +3 -3
- package/src/models/apiResults.d.ts +103 -0
- package/src/models/apiResults.js +28 -0
- package/src/models/apiResults.ts +112 -0
- package/src/records/field.d.ts +3 -22
- package/src/records/field.js +4 -177
- package/src/records/field.ts +4 -187
- package/src/records/fieldBase.d.ts +30 -0
- package/src/records/fieldBase.js +154 -0
- package/src/records/fieldBase.ts +174 -0
- package/src/records/getOperations/recordGetOperation.d.ts +47 -11
- package/src/records/getOperations/recordGetOperation.js +144 -30
- package/src/records/getOperations/recordGetOperation.ts +172 -30
- package/src/records/layoutRecord.d.ts +8 -7
- package/src/records/layoutRecord.js +107 -153
- package/src/records/layoutRecord.ts +117 -141
- package/src/records/portal.d.ts +6 -5
- package/src/records/portal.js +4 -1
- package/src/records/portal.ts +7 -7
- package/src/records/portalBase.d.ts +5 -4
- package/src/records/portalBase.js +1 -1
- package/src/records/portalBase.ts +6 -6
- package/src/records/portalRecord.d.ts +6 -6
- package/src/records/portalRecord.js +5 -3
- package/src/records/portalRecord.ts +5 -5
- package/src/records/recordBase.d.ts +7 -12
- package/src/records/recordBase.js +12 -11
- package/src/records/recordBase.ts +10 -15
- package/src/types.d.ts +18 -19
- package/src/types.js +7 -1
- package/src/types.ts +20 -21
- package/.expo/README.md +0 -15
- package/.expo/settings.json +0 -8
- package/.idea/compiler.xml +0 -7
- package/.idea/copyright/JD_Data.xml +0 -6
- package/.idea/copyright/profiles_settings.xml +0 -7
- package/.idea/discord.xml +0 -7
- package/.idea/easy-fm.iml +0 -8
- package/.idea/jsLibraryMappings.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/php.xml +0 -18
- package/.idea/vcs.xml +0 -6
- package/decs.d.ts +0 -7
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.LICENSE.txt +0 -3
- package/docs/classes/FileMakerConnection.md +0 -86
- package/docs/classes/layout.md +0 -0
- package/examples/test.js +0 -7
- package/fmErrors.json +0 -1010
- package/img.png +0 -0
- package/src/records/getOperations/find.d.ts +0 -15
- package/src/records/getOperations/find.js +0 -90
- package/src/records/getOperations/find.ts +0 -88
- package/src/records/getOperations/recordGetRange.d.ts +0 -13
- package/src/records/getOperations/recordGetRange.js +0 -95
- package/src/records/getOperations/recordGetRange.ts +0 -84
- package/src/records/portalRecordBase.d.ts +0 -4
- package/src/records/portalRecordBase.js +0 -6
- package/test.d.ts +0 -2
- package/test.js +0 -30
- package/test.ts +0 -33
- package/test2.d.ts +0 -1
- package/test2.js +0 -15
- package/tsconfig.json +0 -16
- package/webpack.config.cjs +0 -20
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# Class: FileMakerConnection
|
|
2
|
-
|
|
3
|
-
## Constructor
|
|
4
|
-
|
|
5
|
-
```javascript
|
|
6
|
-
export default class FileMakerConnection {
|
|
7
|
-
public hostname: string;
|
|
8
|
-
public database: string;
|
|
9
|
-
public token: any;
|
|
10
|
-
private username: any;
|
|
11
|
-
private password: any;
|
|
12
|
-
private rejectUnauthroized: boolean;
|
|
13
|
-
|
|
14
|
-
constructor() {
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
This is the primary class as it holds information about the FileMaker connection
|
|
20
|
-
|
|
21
|
-
## Methods
|
|
22
|
-
|
|
23
|
-
### login(hostname, database, username, password, rejectUnauthorised)
|
|
24
|
-
|
|
25
|
-
Creates a new login session on the FileMaker server, using the specified account.
|
|
26
|
-
|
|
27
|
-
#### Parameters
|
|
28
|
-
|
|
29
|
-
| Parameter | Optional? | Default | Supported types |
|
|
30
|
-
|--------------------|-----------|---------|-----------------|
|
|
31
|
-
| hostname | No | N/A | string |
|
|
32
|
-
| database | No | N/A | string |
|
|
33
|
-
| username | No | N/A | string |
|
|
34
|
-
| password | No | N/A | string |
|
|
35
|
-
| rejectUnauthorised | Yes | true | boolean |
|
|
36
|
-
|
|
37
|
-
#### Returns:
|
|
38
|
-
|
|
39
|
-
Promise <token>
|
|
40
|
-
|
|
41
|
-
### importSession(token, rejectUnauthorised)
|
|
42
|
-
|
|
43
|
-
Allows you to import and use a FileMaker Data API token that was generated in another application.
|
|
44
|
-
|
|
45
|
-
#### Parameters
|
|
46
|
-
|
|
47
|
-
| Parameter | Optional? | Default | Supported types |
|
|
48
|
-
|--------------------|-----------|---------|-----------------|
|
|
49
|
-
| token | No | N/A | string |
|
|
50
|
-
| rejectUnauthorised | Yes | true | boolean |
|
|
51
|
-
|
|
52
|
-
#### Returns:
|
|
53
|
-
|
|
54
|
-
Promise <void>
|
|
55
|
-
|
|
56
|
-
### getLayout(name)
|
|
57
|
-
|
|
58
|
-
#### Parameters
|
|
59
|
-
|
|
60
|
-
| Parameter | Optional? | Default | Supported types | Description |
|
|
61
|
-
|--------------------|-----------|---------|-----------------|-------------------------------------------|
|
|
62
|
-
| name | No | N/A | string | The name of the layout you wish to access |
|
|
63
|
-
|
|
64
|
-
#### Returns:
|
|
65
|
-
|
|
66
|
-
[layout](layout.md)
|
|
67
|
-
|
|
68
|
-
### apiRequest(name)
|
|
69
|
-
|
|
70
|
-
#### Parameters
|
|
71
|
-
|
|
72
|
-
| Parameter | Optional? | Default | Supported types | Description |
|
|
73
|
-
|--------------------|-----------|---------|-----------------|-------------------------------------------|
|
|
74
|
-
| name | No | N/A | string | The name of the layout you wish to access |
|
|
75
|
-
|
|
76
|
-
#### Returns:
|
|
77
|
-
|
|
78
|
-
[layout](layout.md)
|
|
79
|
-
|
|
80
|
-
### logout()
|
|
81
|
-
|
|
82
|
-
Ends the current database session
|
|
83
|
-
|
|
84
|
-
#### Returns:
|
|
85
|
-
|
|
86
|
-
Promise <void>
|
package/docs/classes/layout.md
DELETED
|
File without changes
|
package/examples/test.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2023. See LICENSE file for more information
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var filemaker_webviewer_1 = require("../src/connectors/filemaker_webviewer");
|
|
7
|
-
var database = new filemaker_webviewer_1.WebViewerDatabase();
|