@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
@@ -1,3 +0,0 @@
1
- //! moment.js
2
-
3
- //! moment.js locale configuration
@@ -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>
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();