adapty 0.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 (71) hide show
  1. package/README.md +110 -0
  2. package/bin/dev.cmd +3 -0
  3. package/bin/dev.js +5 -0
  4. package/bin/run.cmd +3 -0
  5. package/bin/run.js +5 -0
  6. package/dist/commands/access-levels/create.d.ts +18 -0
  7. package/dist/commands/access-levels/create.js +28 -0
  8. package/dist/commands/access-levels/get.d.ts +19 -0
  9. package/dist/commands/access-levels/get.js +26 -0
  10. package/dist/commands/access-levels/list.d.ts +19 -0
  11. package/dist/commands/access-levels/list.js +20 -0
  12. package/dist/commands/access-levels/update.d.ts +20 -0
  13. package/dist/commands/access-levels/update.js +32 -0
  14. package/dist/commands/apps/create.d.ts +25 -0
  15. package/dist/commands/apps/create.js +47 -0
  16. package/dist/commands/apps/get.d.ts +20 -0
  17. package/dist/commands/apps/get.js +29 -0
  18. package/dist/commands/apps/list.d.ts +18 -0
  19. package/dist/commands/apps/list.js +19 -0
  20. package/dist/commands/apps/update.d.ts +22 -0
  21. package/dist/commands/apps/update.js +42 -0
  22. package/dist/commands/auth/login.d.ts +6 -0
  23. package/dist/commands/auth/login.js +106 -0
  24. package/dist/commands/auth/logout.d.ts +9 -0
  25. package/dist/commands/auth/logout.js +18 -0
  26. package/dist/commands/auth/status.d.ts +7 -0
  27. package/dist/commands/auth/status.js +26 -0
  28. package/dist/commands/auth/whoami.d.ts +16 -0
  29. package/dist/commands/auth/whoami.js +21 -0
  30. package/dist/commands/paywalls/create.d.ts +17 -0
  31. package/dist/commands/paywalls/create.js +31 -0
  32. package/dist/commands/paywalls/get.d.ts +19 -0
  33. package/dist/commands/paywalls/get.js +26 -0
  34. package/dist/commands/paywalls/list.d.ts +18 -0
  35. package/dist/commands/paywalls/list.js +20 -0
  36. package/dist/commands/paywalls/update.d.ts +20 -0
  37. package/dist/commands/paywalls/update.js +37 -0
  38. package/dist/commands/placements/create.d.ts +19 -0
  39. package/dist/commands/placements/create.js +30 -0
  40. package/dist/commands/placements/get.d.ts +20 -0
  41. package/dist/commands/placements/get.js +27 -0
  42. package/dist/commands/placements/list.d.ts +19 -0
  43. package/dist/commands/placements/list.js +20 -0
  44. package/dist/commands/placements/update.d.ts +22 -0
  45. package/dist/commands/placements/update.js +36 -0
  46. package/dist/commands/products/create.d.ts +33 -0
  47. package/dist/commands/products/create.js +59 -0
  48. package/dist/commands/products/get.d.ts +32 -0
  49. package/dist/commands/products/get.js +34 -0
  50. package/dist/commands/products/list.d.ts +30 -0
  51. package/dist/commands/products/list.js +31 -0
  52. package/dist/commands/products/update.d.ts +36 -0
  53. package/dist/commands/products/update.js +65 -0
  54. package/dist/index.d.ts +1 -0
  55. package/dist/index.js +1 -0
  56. package/dist/lib/api-client.d.ts +15 -0
  57. package/dist/lib/api-client.js +75 -0
  58. package/dist/lib/auth.d.ts +1 -0
  59. package/dist/lib/auth.js +8 -0
  60. package/dist/lib/client-from-config.d.ts +4 -0
  61. package/dist/lib/client-from-config.js +15 -0
  62. package/dist/lib/config.d.ts +9 -0
  63. package/dist/lib/config.js +22 -0
  64. package/dist/lib/errors.d.ts +23 -0
  65. package/dist/lib/errors.js +63 -0
  66. package/dist/lib/flags.d.ts +22 -0
  67. package/dist/lib/flags.js +36 -0
  68. package/dist/lib/output.d.ts +6 -0
  69. package/dist/lib/output.js +18 -0
  70. package/oclif.manifest.json +1284 -0
  71. package/package.json +100 -0
package/package.json ADDED
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "adapty",
3
+ "description": "Adapty command line interface",
4
+ "version": "0.1.0",
5
+ "author": "Adapty team <support@adapty.io>",
6
+ "bin": {
7
+ "adapty": "./bin/run.js"
8
+ },
9
+ "bugs": {
10
+ "url": "https://github.com/adaptyteam/adapty-cli/issues"
11
+ },
12
+ "dependencies": {
13
+ "@oclif/core": "^4",
14
+ "@oclif/plugin-help": "^6",
15
+ "open": "^11.0.0"
16
+ },
17
+ "devDependencies": {
18
+ "@eslint/compat": "^1",
19
+ "@oclif/prettier-config": "^0.2.1",
20
+ "@oclif/test": "^4",
21
+ "@types/chai": "^4",
22
+ "@types/mocha": "^10",
23
+ "@types/node": "^18",
24
+ "@types/sinon": "^21.0.0",
25
+ "chai": "^4",
26
+ "eslint": "^9",
27
+ "eslint-config-oclif": "^6",
28
+ "eslint-config-prettier": "^10",
29
+ "mocha": "^10",
30
+ "oclif": "^4",
31
+ "shx": "^0.3.3",
32
+ "sinon": "^21.0.2",
33
+ "ts-node": "^10",
34
+ "typescript": "^5"
35
+ },
36
+ "engines": {
37
+ "node": ">=18.0.0"
38
+ },
39
+ "packageManager": "pnpm@10.28.1",
40
+ "files": [
41
+ "./bin",
42
+ "./dist",
43
+ "./oclif.manifest.json"
44
+ ],
45
+ "homepage": "https://github.com/adaptyteam/adapty-cli",
46
+ "keywords": [
47
+ "adapty",
48
+ "cli",
49
+ "subscriptions",
50
+ "in-apps",
51
+ "purchases"
52
+ ],
53
+ "license": "MIT",
54
+ "main": "dist/index.js",
55
+ "type": "module",
56
+ "oclif": {
57
+ "bin": "adapty",
58
+ "dirname": "adapty",
59
+ "commands": "./dist/commands",
60
+ "plugins": [
61
+ "@oclif/plugin-help"
62
+ ],
63
+ "topicSeparator": " ",
64
+ "topics": {
65
+ "auth": {
66
+ "description": "Authentication commands"
67
+ },
68
+ "apps": {
69
+ "description": "Manage Adapty apps"
70
+ },
71
+ "products": {
72
+ "description": "Manage products"
73
+ },
74
+ "access-levels": {
75
+ "description": "Manage access levels"
76
+ },
77
+ "paywalls": {
78
+ "description": "Manage paywalls"
79
+ },
80
+ "placements": {
81
+ "description": "Manage placements"
82
+ }
83
+ }
84
+ },
85
+ "repository": {
86
+ "type": "git",
87
+ "url": "git+https://github.com/adaptyteam/adapty-cli.git"
88
+ },
89
+ "scripts": {
90
+ "build": "shx rm -rf dist && tsc -b",
91
+ "lint": "eslint",
92
+ "postpack": "shx rm -f oclif.manifest.json",
93
+ "posttest": "pnpm run lint",
94
+ "prepack": "oclif manifest && oclif readme",
95
+ "prepublishOnly": "pnpm build && oclif manifest",
96
+ "test": "mocha --forbid-only \"test/**/*.test.ts\"",
97
+ "version": "oclif readme && git add README.md"
98
+ },
99
+ "types": "dist/index.d.ts"
100
+ }