@hello.nrfcloud.com/nrfcloud-api-helpers 1.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 (46) hide show
  1. package/LICENSE +29 -0
  2. package/README.md +15 -0
  3. package/dist/api/DeviceShadow.d.ts +17 -0
  4. package/dist/api/DeviceShadow.js +18 -0
  5. package/dist/api/DeviceShadow.spec.d.ts +1 -0
  6. package/dist/api/DeviceShadow.spec.js +53 -0
  7. package/dist/api/createAccountDevice.d.ts +13 -0
  8. package/dist/api/createAccountDevice.js +20 -0
  9. package/dist/api/deleteAccountDevice.d.ts +4 -0
  10. package/dist/api/deleteAccountDevice.js +9 -0
  11. package/dist/api/devices.d.ts +152 -0
  12. package/dist/api/devices.js +121 -0
  13. package/dist/api/getAccountInfo.d.ts +18 -0
  14. package/dist/api/getAccountInfo.js +21 -0
  15. package/dist/api/getAccountInfo.spec.d.ts +1 -0
  16. package/dist/api/getAccountInfo.spec.js +25 -0
  17. package/dist/api/getCurrentMonthlyCosts.d.ts +9 -0
  18. package/dist/api/getCurrentMonthlyCosts.js +15 -0
  19. package/dist/api/getCurrentMonthlyCosts.spec.d.ts +1 -0
  20. package/dist/api/getCurrentMonthlyCosts.spec.js +17 -0
  21. package/dist/api/getDeviceShadow.d.ts +23 -0
  22. package/dist/api/getDeviceShadow.js +33 -0
  23. package/dist/api/getDeviceShadow.spec.d.ts +1 -0
  24. package/dist/api/getDeviceShadow.spec.js +28 -0
  25. package/dist/api/index.d.ts +9 -0
  26. package/dist/api/index.js +9 -0
  27. package/dist/api/slashless.d.ts +1 -0
  28. package/dist/api/slashless.js +1 -0
  29. package/dist/api/slashless.spec.d.ts +1 -0
  30. package/dist/api/slashless.spec.js +6 -0
  31. package/dist/api/test-data/account.json +63 -0
  32. package/dist/api/validatedFetch.d.ts +30 -0
  33. package/dist/api/validatedFetch.js +54 -0
  34. package/dist/api/validatedFetch.spec.d.ts +1 -0
  35. package/dist/api/validatedFetch.spec.js +101 -0
  36. package/dist/settings/getAllAccounts.d.ts +5 -0
  37. package/dist/settings/getAllAccounts.js +9 -0
  38. package/dist/settings/index.d.ts +4 -0
  39. package/dist/settings/index.js +4 -0
  40. package/dist/settings/initializeAccount.d.ts +10 -0
  41. package/dist/settings/initializeAccount.js +72 -0
  42. package/dist/settings/scope.d.ts +17 -0
  43. package/dist/settings/scope.js +34 -0
  44. package/dist/settings/settings.d.ts +43 -0
  45. package/dist/settings/settings.js +85 -0
  46. package/package.json +95 -0
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "@hello.nrfcloud.com/nrfcloud-api-helpers",
3
+ "version": "1.0.0",
4
+ "description": "Helper functions for integrating nRF Cloud APIs in AWS lambdas written in TypeScript.",
5
+ "exports": {
6
+ "./*": {
7
+ "import": {
8
+ "types": "./dist/*/index.d.ts",
9
+ "default": "./dist/*/index.js"
10
+ }
11
+ }
12
+ },
13
+ "type": "module",
14
+ "scripts": {
15
+ "test": "tsx --no-warnings --test ./src/**/*.spec.ts",
16
+ "prepare": "husky",
17
+ "prepublishOnly": "npx tsc --noEmit false --outDir ./dist -d"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/hello-nrfcloud/nrfcloud-api-helpers.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/hello-nrfcloud/nrfcloud-api-helpers/issues"
25
+ },
26
+ "homepage": "https://github.com/hello-nrfcloud/nrfcloud-api-helpers",
27
+ "keywords": [
28
+ "aws",
29
+ "lambda",
30
+ "typescript"
31
+ ],
32
+ "author": "Nordic Semiconductor ASA | nordicsemi.no",
33
+ "license": "BSD-3-Clause",
34
+ "devDependencies": {
35
+ "@bifravst/eslint-config-typescript": "6.0.17",
36
+ "@bifravst/prettier-config": "1.0.0",
37
+ "@commitlint/config-conventional": "19.1.0",
38
+ "@types/aws-lambda": "8.10.137",
39
+ "@types/node": "20.12.3",
40
+ "husky": "9.0.11",
41
+ "tsmatchers": "5.0.2",
42
+ "tsx": "4.7.2"
43
+ },
44
+ "lint-staged": {
45
+ "*.ts": [
46
+ "prettier --write",
47
+ "eslint"
48
+ ],
49
+ "*.{md,json,yaml,yml}": [
50
+ "prettier --write"
51
+ ]
52
+ },
53
+ "engines": {
54
+ "node": ">=20",
55
+ "npm": ">=9"
56
+ },
57
+ "release": {
58
+ "branches": [
59
+ "saga",
60
+ {
61
+ "name": "!(saga)",
62
+ "prerelease": true
63
+ }
64
+ ],
65
+ "remoteTags": true,
66
+ "plugins": [
67
+ "@semantic-release/commit-analyzer",
68
+ "@semantic-release/release-notes-generator",
69
+ "@semantic-release/npm",
70
+ [
71
+ "@semantic-release/github",
72
+ {
73
+ "successComment": false,
74
+ "failTitle": false
75
+ }
76
+ ]
77
+ ]
78
+ },
79
+ "publishConfig": {
80
+ "access": "public"
81
+ },
82
+ "files": [
83
+ "package-lock.json",
84
+ "dist",
85
+ "LICENSE",
86
+ "README.md"
87
+ ],
88
+ "prettier": "@bifravst/prettier-config",
89
+ "peerDependencies": {
90
+ "@aws-sdk/client-ssm": "^3.552.0",
91
+ "@bifravst/aws-ssm-settings-helpers": "^1.0.3",
92
+ "@hello.nrfcloud.com/proto": "^6.5.0",
93
+ "@sinclair/typebox": "^0.32.20"
94
+ }
95
+ }