@jd-data-limited/easy-fm 4.0.16 → 4.1.1

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 (64) hide show
  1. package/package.json +16 -7
  2. package/src/FMError.d.ts +2 -2
  3. package/src/FMError.js +507 -508
  4. package/src/FMError.ts +510 -511
  5. package/src/connection/FMHost.d.ts +23 -5
  6. package/src/connection/FMHost.js +42 -26
  7. package/src/connection/FMHost.ts +63 -49
  8. package/src/connection/HostBase.d.ts +3 -3
  9. package/src/connection/HostBase.ts +5 -5
  10. package/src/connection/database.d.ts +53 -20
  11. package/src/connection/database.js +107 -90
  12. package/src/connection/database.ts +133 -121
  13. package/src/connection/databaseBase.d.ts +11 -7
  14. package/src/connection/databaseBase.ts +8 -8
  15. package/src/connection/generateAuthorizationHeaders.d.ts +1 -1
  16. package/src/connection/generateAuthorizationHeaders.js +10 -10
  17. package/src/connection/generateAuthorizationHeaders.ts +21 -21
  18. package/src/databaseStructure.d.ts +2 -4
  19. package/src/databaseStructure.ts +3 -5
  20. package/src/index.d.ts +17 -17
  21. package/src/index.js +13 -13
  22. package/src/index.ts +24 -24
  23. package/src/layouts/layout.d.ts +17 -6
  24. package/src/layouts/layout.js +19 -8
  25. package/src/layouts/layout.ts +33 -23
  26. package/src/layouts/layoutBase.d.ts +5 -5
  27. package/src/layouts/layoutBase.ts +6 -6
  28. package/src/layouts/layoutInterface.d.ts +3 -5
  29. package/src/layouts/layoutInterface.ts +4 -6
  30. package/src/layouts/layoutRecordManager.d.ts +29 -6
  31. package/src/layouts/layoutRecordManager.js +32 -9
  32. package/src/layouts/layoutRecordManager.ts +42 -19
  33. package/src/layouts/recordFieldsMap.d.ts +2 -4
  34. package/src/layouts/recordFieldsMap.ts +2 -4
  35. package/src/models/apiResults.d.ts +7 -13
  36. package/src/models/apiResults.ts +58 -58
  37. package/src/records/field.d.ts +39 -17
  38. package/src/records/field.js +248 -131
  39. package/src/records/field.ts +160 -82
  40. package/src/records/getOperations/recordGetOperation.d.ts +44 -24
  41. package/src/records/getOperations/recordGetOperation.js +88 -61
  42. package/src/records/getOperations/recordGetOperation.ts +128 -108
  43. package/src/records/layoutRecord.d.ts +28 -14
  44. package/src/records/layoutRecord.js +69 -60
  45. package/src/records/layoutRecord.ts +121 -119
  46. package/src/records/layoutRecordBase.d.ts +2 -2
  47. package/src/records/layoutRecordBase.ts +3 -3
  48. package/src/records/portal.d.ts +19 -5
  49. package/src/records/portal.js +19 -5
  50. package/src/records/portal.ts +28 -16
  51. package/src/records/portalBase.d.ts +5 -5
  52. package/src/records/portalBase.ts +6 -6
  53. package/src/records/portalRecord.d.ts +16 -8
  54. package/src/records/portalRecord.js +16 -6
  55. package/src/records/portalRecord.ts +29 -19
  56. package/src/records/recordBase.d.ts +18 -8
  57. package/src/records/recordBase.js +23 -16
  58. package/src/records/recordBase.ts +41 -37
  59. package/src/types.d.ts +23 -30
  60. package/src/types.js +0 -5
  61. package/src/types.ts +55 -64
  62. package/src/utils/query.d.ts +7 -7
  63. package/src/utils/query.js +10 -10
  64. package/src/utils/query.ts +19 -20
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@jd-data-limited/easy-fm",
3
- "version": "4.0.16",
3
+ "version": "4.1.1",
4
4
  "dependencies": {
5
- "follow-redirects": "^1.15.5",
6
5
  "@types/follow-redirects": "^1.14.4",
7
- "moment": "^2.29.4"
6
+ "follow-redirects": "^1.15.5",
7
+ "moment": "^2.29.4",
8
+ "node-fetch": "^3.3.2",
9
+ "node-fetch-cookies": "^2.1.1"
8
10
  },
9
11
  "type": "module",
10
12
  "main": "src/index.js",
@@ -33,20 +35,27 @@
33
35
  "bugs": {
34
36
  "url": "https://github.com/JD-Data-Limited/easy-fm/issues"
35
37
  },
38
+ "engines": {
39
+ "node": ">=20.9.0"
40
+ },
36
41
  "devDependencies": {
37
42
  "@types/btoa": "^1.2.3",
38
43
  "@types/events": "^3.0.0",
39
44
  "@types/inquirer": "^9.0.7",
45
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
40
46
  "dotenv": "^16.3.1",
47
+ "eslint": "^8.57.0",
48
+ "eslint-config-standard-with-typescript": "^43.0.1",
49
+ "eslint-plugin-import": "^2.29.1",
50
+ "eslint-plugin-n": "^16.6.2",
51
+ "eslint-plugin-promise": "^6.1.1",
41
52
  "inquirer": "^9.2.13",
42
53
  "ts-morph": "^21.0.1",
43
- "typescript": "^5.3.3",
54
+ "typedoc": "^0.25.12",
55
+ "typescript": "^5.4.3",
44
56
  "webpack": "^5.81.0",
45
57
  "webpack-cli": "^5.0.2"
46
58
  },
47
- "engines": {
48
- "node": ">=20.9.0"
49
- },
50
59
  "bin": {
51
60
  "easyfm": "src/bin/cli.js"
52
61
  }
package/src/FMError.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export declare const errs: {
1
+ export declare const errs: Array<{
2
2
  e: number;
3
3
  d: string;
4
- }[];
4
+ }>;
5
5
  export declare class FMError extends Error {
6
6
  readonly httpStatus: number;
7
7
  readonly res: any;