@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.
Files changed (102) hide show
  1. package/README.md +36 -24
  2. package/package.json +15 -8
  3. package/src/FMError.d.ts +1 -1
  4. package/src/FMError.js +7 -2
  5. package/src/FMError.ts +3 -3
  6. package/src/connection/FMHost.d.ts +3 -2
  7. package/src/connection/FMHost.js +37 -47
  8. package/src/connection/FMHost.ts +6 -6
  9. package/src/connection/HostBase.d.ts +1 -1
  10. package/src/connection/HostBase.js +1 -1
  11. package/src/connection/HostBase.ts +2 -4
  12. package/src/connection/database.d.ts +12 -9
  13. package/src/connection/database.js +93 -116
  14. package/src/connection/database.ts +79 -90
  15. package/src/connection/databaseBase.d.ts +5 -2
  16. package/src/connection/databaseBase.js +1 -1
  17. package/src/connection/databaseBase.ts +5 -4
  18. package/src/databaseStructure.d.ts +6 -0
  19. package/src/databaseStructure.js +4 -0
  20. package/src/databaseStructure.ts +12 -0
  21. package/src/index.d.ts +3 -6
  22. package/src/index.js +3 -5
  23. package/src/index.ts +4 -9
  24. package/src/layouts/layout.d.ts +5 -19
  25. package/src/layouts/layout.js +27 -69
  26. package/src/layouts/layout.ts +26 -65
  27. package/src/layouts/layoutBase.d.ts +4 -4
  28. package/src/layouts/layoutBase.js +1 -1
  29. package/src/layouts/layoutBase.ts +5 -5
  30. package/src/layouts/layoutInterface.d.ts +1 -1
  31. package/src/layouts/layoutInterface.js +1 -1
  32. package/src/layouts/layoutInterface.ts +2 -2
  33. package/src/layouts/layoutRecordManager.d.ts +5 -6
  34. package/src/layouts/layoutRecordManager.js +20 -39
  35. package/src/layouts/layoutRecordManager.ts +20 -41
  36. package/src/layouts/recordFieldsMap.d.ts +2 -2
  37. package/src/layouts/recordFieldsMap.js +1 -1
  38. package/src/layouts/recordFieldsMap.ts +3 -3
  39. package/src/models/apiResults.d.ts +103 -0
  40. package/src/models/apiResults.js +28 -0
  41. package/src/models/apiResults.ts +112 -0
  42. package/src/records/field.d.ts +3 -22
  43. package/src/records/field.js +4 -177
  44. package/src/records/field.ts +4 -187
  45. package/src/records/fieldBase.d.ts +30 -0
  46. package/src/records/fieldBase.js +154 -0
  47. package/src/records/fieldBase.ts +174 -0
  48. package/src/records/getOperations/recordGetOperation.d.ts +47 -11
  49. package/src/records/getOperations/recordGetOperation.js +144 -30
  50. package/src/records/getOperations/recordGetOperation.ts +172 -30
  51. package/src/records/layoutRecord.d.ts +8 -7
  52. package/src/records/layoutRecord.js +107 -153
  53. package/src/records/layoutRecord.ts +117 -141
  54. package/src/records/portal.d.ts +6 -5
  55. package/src/records/portal.js +4 -1
  56. package/src/records/portal.ts +7 -7
  57. package/src/records/portalBase.d.ts +5 -4
  58. package/src/records/portalBase.js +1 -1
  59. package/src/records/portalBase.ts +6 -6
  60. package/src/records/portalRecord.d.ts +6 -6
  61. package/src/records/portalRecord.js +5 -3
  62. package/src/records/portalRecord.ts +5 -5
  63. package/src/records/recordBase.d.ts +7 -12
  64. package/src/records/recordBase.js +12 -11
  65. package/src/records/recordBase.ts +10 -15
  66. package/src/types.d.ts +18 -19
  67. package/src/types.js +7 -1
  68. package/src/types.ts +20 -21
  69. package/.expo/README.md +0 -15
  70. package/.expo/settings.json +0 -8
  71. package/.idea/compiler.xml +0 -7
  72. package/.idea/copyright/JD_Data.xml +0 -6
  73. package/.idea/copyright/profiles_settings.xml +0 -7
  74. package/.idea/discord.xml +0 -7
  75. package/.idea/easy-fm.iml +0 -8
  76. package/.idea/jsLibraryMappings.xml +0 -6
  77. package/.idea/modules.xml +0 -8
  78. package/.idea/php.xml +0 -18
  79. package/.idea/vcs.xml +0 -6
  80. package/decs.d.ts +0 -7
  81. package/dist/index.min.js +0 -2
  82. package/dist/index.min.js.LICENSE.txt +0 -3
  83. package/docs/classes/FileMakerConnection.md +0 -86
  84. package/docs/classes/layout.md +0 -0
  85. package/examples/test.js +0 -7
  86. package/fmErrors.json +0 -1010
  87. package/img.png +0 -0
  88. package/src/records/getOperations/find.d.ts +0 -15
  89. package/src/records/getOperations/find.js +0 -90
  90. package/src/records/getOperations/find.ts +0 -88
  91. package/src/records/getOperations/recordGetRange.d.ts +0 -13
  92. package/src/records/getOperations/recordGetRange.js +0 -95
  93. package/src/records/getOperations/recordGetRange.ts +0 -84
  94. package/src/records/portalRecordBase.d.ts +0 -4
  95. package/src/records/portalRecordBase.js +0 -6
  96. package/test.d.ts +0 -2
  97. package/test.js +0 -30
  98. package/test.ts +0 -33
  99. package/test2.d.ts +0 -1
  100. package/test2.js +0 -15
  101. package/tsconfig.json +0 -16
  102. 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();