eufy-security-client 3.7.1 → 3.7.2-dev.2

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 (43) hide show
  1. package/README.md +4 -0
  2. package/build/eufysecurity.js +7 -3
  3. package/build/eufysecurity.js.map +1 -1
  4. package/build/http/api.d.ts +1 -1
  5. package/build/http/api.js +4 -4
  6. package/build/http/api.js.map +1 -1
  7. package/build/http/device.d.ts +13 -0
  8. package/build/http/device.js +96 -9
  9. package/build/http/device.js.map +1 -1
  10. package/build/http/models.d.ts +0 -1
  11. package/build/http/parameter.js +1 -1
  12. package/build/http/parameter.js.map +1 -1
  13. package/build/http/station.js +94 -25
  14. package/build/http/station.js.map +1 -1
  15. package/build/http/types.d.ts +10 -0
  16. package/build/http/types.js +548 -2
  17. package/build/http/types.js.map +1 -1
  18. package/build/http/utils.d.ts +2 -2
  19. package/build/http/utils.js +5 -5
  20. package/build/http/utils.js.map +1 -1
  21. package/build/p2p/session.js +35 -75
  22. package/build/p2p/session.js.map +1 -1
  23. package/build/p2p/utils.d.ts +0 -10
  24. package/build/p2p/utils.js +3 -63
  25. package/build/p2p/utils.js.map +1 -1
  26. package/build/push/service.js +9 -1
  27. package/build/push/service.js.map +1 -1
  28. package/build/push/types.d.ts +3 -1
  29. package/build/push/types.js +2 -0
  30. package/build/push/types.js.map +1 -1
  31. package/coverage/clover.xml +13119 -10508
  32. package/coverage/coverage-final.json +31 -21
  33. package/coverage/lcov-report/index.html +65 -50
  34. package/coverage/lcov.info +25586 -20511
  35. package/package.json +3 -3
  36. package/.idea/eufy-security-client.iml +0 -12
  37. package/.idea/modules.xml +0 -8
  38. package/.idea/vcs.xml +0 -7
  39. package/a.ts +0 -61
  40. package/bin/act +0 -0
  41. package/coverage/lcov-report/error.ts.html +0 -871
  42. package/coverage/lcov-report/logging.ts.html +0 -598
  43. package/dont-care.js +0 -101
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eufy-security-client",
3
- "version": "3.7.1",
3
+ "version": "3.7.2-dev.2",
4
4
  "description": "Client to communicate with Eufy-Security devices",
5
5
  "author": {
6
6
  "name": "bropat",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@cospired/i18n-iso-languages": "^4.2.0",
47
47
  "crypto-js": "^4.2.0",
48
- "date-and-time": "^4.2.0",
48
+ "date-and-time": "^4.3.0",
49
49
  "fs-extra": "^11.3.3",
50
50
  "got": "^14.4.2",
51
51
  "i18n-iso-countries": "^7.12.0",
@@ -56,7 +56,7 @@
56
56
  "node-schedule": "^2.1.1",
57
57
  "p-throttle": "^8.1.0",
58
58
  "protobufjs": "^8.0.0",
59
- "qs": "^6.14.2",
59
+ "qs": "^6.15.0",
60
60
  "sweet-collections": "^1.1.0",
61
61
  "tiny-typed-emitter": "^2.1.0",
62
62
  "typescript-logging": "^2.2.0",
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/eufy-security-client.iml" filepath="$PROJECT_DIR$/.idea/eufy-security-client.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
6
- </component>
7
- </project>
package/a.ts DELETED
@@ -1,61 +0,0 @@
1
-
2
-
3
- interface BrandData {
4
- first?: string[];
5
- second?: string[];
6
- numbers?: number;
7
- letters?: string[];
8
- }
9
- const brands: Record<string, BrandData> =
10
- {
11
- "Alba": {
12
- first: ["Smartphone", "TABLET", "Phone", ""],
13
- second: ["4.0", "5", "6", "7", "8", "10", "X", "Pro"]
14
- },
15
- "Archos": {
16
- first: ["50b", "55", "59", "60", "70", "70b", "79"],
17
- second: ["Xenon", "neon", "Carbon", "Helium", "Platinum"]
18
- },
19
- "GT-S": {
20
- numbers: 4,
21
- letters: ["M", "I", "" ]
22
- },
23
- "IdeaTab": {
24
- first: ["S200", "A2100", "K222"],
25
- second: ["-H", "-F", "-T"]
26
- },
27
- "Lenovo": {
28
- first: ["A2500", "A300", "A218t", "a269"],
29
- second: [""]
30
- },
31
- "SCH-R": {
32
- numbers: 3,
33
- letters: [""]
34
- }
35
- }
36
-
37
- function getRandomPhoneModel() {
38
- const brandKeys = Object.keys(brands);
39
- const randomBrandName = brandKeys[Math.floor(Math.random() * brandKeys.length)];
40
-
41
- const pick = (arr: any) => arr[Math.floor(Math.random() * arr.length)];
42
-
43
- let part1 = "";
44
- let part2 = "";
45
- const dataBrand = brands[randomBrandName];
46
-
47
- if (dataBrand.first && dataBrand.second) {
48
- part1 = pick(dataBrand.first);
49
- part2 = pick(dataBrand.second);
50
- }
51
-
52
- if (dataBrand.numbers && dataBrand.letters) {
53
- const minNum = Math.pow(10, dataBrand.numbers - 1);
54
- const maxNum = Math.pow(10, dataBrand.numbers) - 1;
55
- part1 = String(Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
56
- part2 = pick(dataBrand.letters);
57
- }
58
- return `${randomBrandName}${part1}${part2}`.trim();
59
-
60
- }
61
-
package/bin/act DELETED
Binary file