@jd-data-limited/easy-fm 4.0.14 → 4.1.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 (65) hide show
  1. package/package.json +12 -6
  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/bin/cli.js +7 -5
  6. package/src/bin/generateTypes.js +215 -121
  7. package/src/connection/FMHost.d.ts +28 -6
  8. package/src/connection/FMHost.js +52 -25
  9. package/src/connection/FMHost.ts +75 -43
  10. package/src/connection/HostBase.d.ts +7 -3
  11. package/src/connection/HostBase.ts +8 -4
  12. package/src/connection/database.d.ts +50 -17
  13. package/src/connection/database.js +94 -66
  14. package/src/connection/database.ts +125 -105
  15. package/src/connection/databaseBase.d.ts +11 -6
  16. package/src/connection/databaseBase.ts +9 -8
  17. package/src/connection/generateAuthorizationHeaders.d.ts +1 -1
  18. package/src/connection/generateAuthorizationHeaders.js +10 -10
  19. package/src/connection/generateAuthorizationHeaders.ts +21 -21
  20. package/src/databaseStructure.d.ts +2 -4
  21. package/src/databaseStructure.ts +3 -5
  22. package/src/index.d.ts +17 -17
  23. package/src/index.js +14 -14
  24. package/src/index.ts +28 -25
  25. package/src/layouts/layout.d.ts +17 -6
  26. package/src/layouts/layout.js +19 -8
  27. package/src/layouts/layout.ts +33 -23
  28. package/src/layouts/layoutBase.d.ts +5 -5
  29. package/src/layouts/layoutBase.ts +6 -6
  30. package/src/layouts/layoutInterface.d.ts +3 -5
  31. package/src/layouts/layoutInterface.ts +4 -6
  32. package/src/layouts/layoutRecordManager.d.ts +29 -6
  33. package/src/layouts/layoutRecordManager.js +32 -9
  34. package/src/layouts/layoutRecordManager.ts +42 -19
  35. package/src/layouts/recordFieldsMap.d.ts +2 -4
  36. package/src/layouts/recordFieldsMap.ts +2 -4
  37. package/src/models/apiResults.d.ts +7 -13
  38. package/src/models/apiResults.ts +58 -58
  39. package/src/records/field.d.ts +42 -12
  40. package/src/records/field.js +69 -59
  41. package/src/records/field.ts +102 -81
  42. package/src/records/getOperations/recordGetOperation.d.ts +44 -24
  43. package/src/records/getOperations/recordGetOperation.js +89 -58
  44. package/src/records/getOperations/recordGetOperation.ts +137 -108
  45. package/src/records/layoutRecord.d.ts +28 -14
  46. package/src/records/layoutRecord.js +75 -65
  47. package/src/records/layoutRecord.ts +126 -123
  48. package/src/records/layoutRecordBase.d.ts +2 -2
  49. package/src/records/layoutRecordBase.ts +3 -3
  50. package/src/records/portal.d.ts +19 -5
  51. package/src/records/portal.js +19 -5
  52. package/src/records/portal.ts +28 -16
  53. package/src/records/portalBase.d.ts +5 -5
  54. package/src/records/portalBase.ts +6 -6
  55. package/src/records/portalRecord.d.ts +16 -8
  56. package/src/records/portalRecord.js +16 -6
  57. package/src/records/portalRecord.ts +29 -19
  58. package/src/records/recordBase.d.ts +17 -7
  59. package/src/records/recordBase.js +32 -22
  60. package/src/records/recordBase.ts +50 -43
  61. package/src/types.d.ts +21 -24
  62. package/src/types.ts +55 -59
  63. package/src/utils/query.d.ts +12 -5
  64. package/src/utils/query.js +28 -9
  65. package/src/utils/query.ts +40 -15
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@jd-data-limited/easy-fm",
3
- "version": "4.0.14",
3
+ "version": "4.1.0",
4
4
  "dependencies": {
5
- "follow-redirects": "^1.15.5",
6
5
  "@types/follow-redirects": "^1.14.4",
6
+ "follow-redirects": "^1.15.5",
7
7
  "moment": "^2.29.4"
8
8
  },
9
9
  "type": "module",
@@ -33,20 +33,26 @@
33
33
  "bugs": {
34
34
  "url": "https://github.com/JD-Data-Limited/easy-fm/issues"
35
35
  },
36
+ "engines": {
37
+ "node": ">=20.9.0"
38
+ },
36
39
  "devDependencies": {
37
40
  "@types/btoa": "^1.2.3",
38
41
  "@types/events": "^3.0.0",
39
42
  "@types/inquirer": "^9.0.7",
43
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
40
44
  "dotenv": "^16.3.1",
45
+ "eslint": "^8.57.0",
46
+ "eslint-config-standard-with-typescript": "^43.0.1",
47
+ "eslint-plugin-import": "^2.29.1",
48
+ "eslint-plugin-n": "^16.6.2",
49
+ "eslint-plugin-promise": "^6.1.1",
41
50
  "inquirer": "^9.2.13",
42
51
  "ts-morph": "^21.0.1",
43
- "typescript": "^5.3.3",
52
+ "typescript": "^5.4.3",
44
53
  "webpack": "^5.81.0",
45
54
  "webpack-cli": "^5.0.2"
46
55
  },
47
- "engines": {
48
- "node": ">=20.9.0"
49
- },
50
56
  "bin": {
51
57
  "easyfm": "src/bin/cli.js"
52
58
  }
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;