@jd-data-limited/easy-fm 3.2.6 → 3.2.8
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 +10 -6
- package/src/FMError.d.ts +1 -1
- package/src/FMError.js +5 -0
- package/src/FMError.ts +1 -1
- package/src/connection/FMHost.d.ts +1 -1
- package/src/connection/FMHost.js +36 -45
- package/src/connection/FMHost.ts +3 -3
- package/src/connection/database.d.ts +5 -3
- package/src/connection/database.js +90 -112
- package/src/connection/database.ts +70 -82
- package/src/connection/databaseBase.d.ts +4 -1
- package/src/connection/databaseBase.ts +4 -1
- package/src/layouts/layout.d.ts +3 -3
- package/src/layouts/layout.js +26 -50
- package/src/layouts/layout.ts +22 -39
- package/src/layouts/layoutBase.d.ts +2 -2
- package/src/layouts/layoutBase.ts +2 -1
- package/src/layouts/layoutRecordManager.d.ts +1 -1
- package/src/layouts/layoutRecordManager.js +16 -31
- package/src/layouts/layoutRecordManager.ts +14 -30
- 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 -2
- package/src/records/field.js +44 -68
- package/src/records/field.ts +46 -64
- package/src/records/getOperations/find.js +18 -38
- package/src/records/getOperations/find.ts +17 -28
- package/src/records/getOperations/recordGetOperation.js +7 -4
- package/src/records/getOperations/recordGetOperation.ts +1 -1
- package/src/records/getOperations/recordGetRange.js +16 -34
- package/src/records/getOperations/recordGetRange.ts +17 -24
- package/src/records/layoutRecord.js +103 -151
- package/src/records/layoutRecord.ts +101 -133
- package/src/records/portal.js +3 -0
- package/src/records/portalRecord.js +2 -1
- package/src/records/recordBase.js +6 -1
- package/src/types.d.ts +0 -4
- package/src/types.ts +1 -7
- 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/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
package/img.png
DELETED
|
Binary file
|
package/test.d.ts
DELETED
package/test.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2023. See LICENSE file for more information
|
|
3
|
-
*/
|
|
4
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
import FMHost from "./src/index.js";
|
|
14
|
-
export default FMHost;
|
|
15
|
-
const host = new FMHost("https://lab.farmmedix.com");
|
|
16
|
-
const database = host.database({
|
|
17
|
-
database: "Snapshot_2.fmp12",
|
|
18
|
-
credentials: {
|
|
19
|
-
method: "filemaker",
|
|
20
|
-
username: "Developer",
|
|
21
|
-
password: "1df e53 0tx"
|
|
22
|
-
},
|
|
23
|
-
externalSources: []
|
|
24
|
-
});
|
|
25
|
-
database.login()
|
|
26
|
-
.then(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
-
const layout = database.getLayout("RoleInfo");
|
|
28
|
-
const records = yield layout.records.range().fetch();
|
|
29
|
-
console.log(records[0]);
|
|
30
|
-
}));
|
package/test.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2023. See LICENSE file for more information
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import FMHost, {Field, Layout} from "./src/index.js";
|
|
6
|
-
export default FMHost
|
|
7
|
-
|
|
8
|
-
const host = new FMHost("https://lab.farmmedix.com")
|
|
9
|
-
const database = host.database<{
|
|
10
|
-
layouts: {
|
|
11
|
-
RoleInfo: {
|
|
12
|
-
fields: {
|
|
13
|
-
field1: Field<string>
|
|
14
|
-
},
|
|
15
|
-
portals: {}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}>({
|
|
19
|
-
database: "Snapshot_2.fmp12",
|
|
20
|
-
credentials: {
|
|
21
|
-
method: "filemaker",
|
|
22
|
-
username: "Developer",
|
|
23
|
-
password: "1df e53 0tx"
|
|
24
|
-
},
|
|
25
|
-
externalSources: []
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
database.login()
|
|
29
|
-
.then(async () => {
|
|
30
|
-
const layout = database.getLayout("RoleInfo")
|
|
31
|
-
const records = await layout.records.range().fetch()
|
|
32
|
-
console.log(records[0])
|
|
33
|
-
})
|
package/test2.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/test2.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2023. See LICENSE file for more information
|
|
3
|
-
*/
|
|
4
|
-
import FMHost from "./src";
|
|
5
|
-
const host = new FMHost("https://lab.farmmedix.com");
|
|
6
|
-
const database = host.database({
|
|
7
|
-
database: "test.fmp12",
|
|
8
|
-
credentials: {
|
|
9
|
-
method: "filemaker",
|
|
10
|
-
username: "123",
|
|
11
|
-
password: "123"
|
|
12
|
-
},
|
|
13
|
-
externalSources: [],
|
|
14
|
-
});
|
|
15
|
-
const layout = database.getLayout("MyLayout");
|
package/tsconfig.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2015",
|
|
4
|
-
"module": "es2022",
|
|
5
|
-
"lib": ["es2021.intl", "es2015"],
|
|
6
|
-
"moduleResolution": "Node",
|
|
7
|
-
"declaration": true
|
|
8
|
-
},
|
|
9
|
-
"exclude": [
|
|
10
|
-
"node_modules"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
"src/index.ts",
|
|
14
|
-
"test.ts",
|
|
15
|
-
]
|
|
16
|
-
}
|
package/webpack.config.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2023. See LICENSE file for more information
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
const path = require("path")
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
entry: "./dist/index.js",
|
|
9
|
-
output: {
|
|
10
|
-
filename: "index.min.js",
|
|
11
|
-
path: path.resolve(__dirname, "dist"),
|
|
12
|
-
library: "EasyFM",
|
|
13
|
-
libraryExport: "default",
|
|
14
|
-
libraryTarget: "umd"
|
|
15
|
-
},
|
|
16
|
-
target: "web",
|
|
17
|
-
externals: {
|
|
18
|
-
"node-fetch": "fetch"
|
|
19
|
-
}
|
|
20
|
-
}
|