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.
- package/README.md +110 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/commands/access-levels/create.d.ts +18 -0
- package/dist/commands/access-levels/create.js +28 -0
- package/dist/commands/access-levels/get.d.ts +19 -0
- package/dist/commands/access-levels/get.js +26 -0
- package/dist/commands/access-levels/list.d.ts +19 -0
- package/dist/commands/access-levels/list.js +20 -0
- package/dist/commands/access-levels/update.d.ts +20 -0
- package/dist/commands/access-levels/update.js +32 -0
- package/dist/commands/apps/create.d.ts +25 -0
- package/dist/commands/apps/create.js +47 -0
- package/dist/commands/apps/get.d.ts +20 -0
- package/dist/commands/apps/get.js +29 -0
- package/dist/commands/apps/list.d.ts +18 -0
- package/dist/commands/apps/list.js +19 -0
- package/dist/commands/apps/update.d.ts +22 -0
- package/dist/commands/apps/update.js +42 -0
- package/dist/commands/auth/login.d.ts +6 -0
- package/dist/commands/auth/login.js +106 -0
- package/dist/commands/auth/logout.d.ts +9 -0
- package/dist/commands/auth/logout.js +18 -0
- package/dist/commands/auth/status.d.ts +7 -0
- package/dist/commands/auth/status.js +26 -0
- package/dist/commands/auth/whoami.d.ts +16 -0
- package/dist/commands/auth/whoami.js +21 -0
- package/dist/commands/paywalls/create.d.ts +17 -0
- package/dist/commands/paywalls/create.js +31 -0
- package/dist/commands/paywalls/get.d.ts +19 -0
- package/dist/commands/paywalls/get.js +26 -0
- package/dist/commands/paywalls/list.d.ts +18 -0
- package/dist/commands/paywalls/list.js +20 -0
- package/dist/commands/paywalls/update.d.ts +20 -0
- package/dist/commands/paywalls/update.js +37 -0
- package/dist/commands/placements/create.d.ts +19 -0
- package/dist/commands/placements/create.js +30 -0
- package/dist/commands/placements/get.d.ts +20 -0
- package/dist/commands/placements/get.js +27 -0
- package/dist/commands/placements/list.d.ts +19 -0
- package/dist/commands/placements/list.js +20 -0
- package/dist/commands/placements/update.d.ts +22 -0
- package/dist/commands/placements/update.js +36 -0
- package/dist/commands/products/create.d.ts +33 -0
- package/dist/commands/products/create.js +59 -0
- package/dist/commands/products/get.d.ts +32 -0
- package/dist/commands/products/get.js +34 -0
- package/dist/commands/products/list.d.ts +30 -0
- package/dist/commands/products/list.js +31 -0
- package/dist/commands/products/update.d.ts +36 -0
- package/dist/commands/products/update.js +65 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/api-client.d.ts +15 -0
- package/dist/lib/api-client.js +75 -0
- package/dist/lib/auth.d.ts +1 -0
- package/dist/lib/auth.js +8 -0
- package/dist/lib/client-from-config.d.ts +4 -0
- package/dist/lib/client-from-config.js +15 -0
- package/dist/lib/config.d.ts +9 -0
- package/dist/lib/config.js +22 -0
- package/dist/lib/errors.d.ts +23 -0
- package/dist/lib/errors.js +63 -0
- package/dist/lib/flags.d.ts +22 -0
- package/dist/lib/flags.js +36 -0
- package/dist/lib/output.d.ts +6 -0
- package/dist/lib/output.js +18 -0
- package/oclif.manifest.json +1284 -0
- 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
|
+
}
|