@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.
Files changed (65) hide show
  1. package/package.json +10 -6
  2. package/src/FMError.d.ts +1 -1
  3. package/src/FMError.js +5 -0
  4. package/src/FMError.ts +1 -1
  5. package/src/connection/FMHost.d.ts +1 -1
  6. package/src/connection/FMHost.js +36 -45
  7. package/src/connection/FMHost.ts +3 -3
  8. package/src/connection/database.d.ts +5 -3
  9. package/src/connection/database.js +90 -112
  10. package/src/connection/database.ts +70 -82
  11. package/src/connection/databaseBase.d.ts +4 -1
  12. package/src/connection/databaseBase.ts +4 -1
  13. package/src/layouts/layout.d.ts +3 -3
  14. package/src/layouts/layout.js +26 -50
  15. package/src/layouts/layout.ts +22 -39
  16. package/src/layouts/layoutBase.d.ts +2 -2
  17. package/src/layouts/layoutBase.ts +2 -1
  18. package/src/layouts/layoutRecordManager.d.ts +1 -1
  19. package/src/layouts/layoutRecordManager.js +16 -31
  20. package/src/layouts/layoutRecordManager.ts +14 -30
  21. package/src/models/apiResults.d.ts +103 -0
  22. package/src/models/apiResults.js +28 -0
  23. package/src/models/apiResults.ts +112 -0
  24. package/src/records/field.d.ts +3 -2
  25. package/src/records/field.js +44 -68
  26. package/src/records/field.ts +46 -64
  27. package/src/records/getOperations/find.js +18 -38
  28. package/src/records/getOperations/find.ts +17 -28
  29. package/src/records/getOperations/recordGetOperation.js +7 -4
  30. package/src/records/getOperations/recordGetOperation.ts +1 -1
  31. package/src/records/getOperations/recordGetRange.js +16 -34
  32. package/src/records/getOperations/recordGetRange.ts +17 -24
  33. package/src/records/layoutRecord.js +103 -151
  34. package/src/records/layoutRecord.ts +101 -133
  35. package/src/records/portal.js +3 -0
  36. package/src/records/portalRecord.js +2 -1
  37. package/src/records/recordBase.js +6 -1
  38. package/src/types.d.ts +0 -4
  39. package/src/types.ts +1 -7
  40. package/.expo/README.md +0 -15
  41. package/.expo/settings.json +0 -8
  42. package/.idea/compiler.xml +0 -7
  43. package/.idea/copyright/JD_Data.xml +0 -6
  44. package/.idea/copyright/profiles_settings.xml +0 -7
  45. package/.idea/discord.xml +0 -7
  46. package/.idea/easy-fm.iml +0 -8
  47. package/.idea/jsLibraryMappings.xml +0 -6
  48. package/.idea/modules.xml +0 -8
  49. package/.idea/php.xml +0 -18
  50. package/.idea/vcs.xml +0 -6
  51. package/decs.d.ts +0 -7
  52. package/dist/index.min.js +0 -2
  53. package/dist/index.min.js.LICENSE.txt +0 -3
  54. package/docs/classes/FileMakerConnection.md +0 -86
  55. package/docs/classes/layout.md +0 -0
  56. package/examples/test.js +0 -7
  57. package/fmErrors.json +0 -1010
  58. package/img.png +0 -0
  59. package/test.d.ts +0 -2
  60. package/test.js +0 -30
  61. package/test.ts +0 -33
  62. package/test2.d.ts +0 -1
  63. package/test2.js +0 -15
  64. package/tsconfig.json +0 -16
  65. package/webpack.config.cjs +0 -20
package/img.png DELETED
Binary file
package/test.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import FMHost from "./src/index.js";
2
- export default FMHost;
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
- }
@@ -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
- }