@tolinax/ayoune-cli 2026.3.0 → 2026.3.1

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 (90) hide show
  1. package/package.json +160 -158
  2. package/data/defaultActions.js +0 -9
  3. package/data/modelsAndRights.js +0 -3189
  4. package/data/modules.js +0 -111
  5. package/data/operations.js +0 -5
  6. package/data/services.js +0 -139
  7. package/index.js +0 -11
  8. package/lib/api/apiCallHandler.js +0 -68
  9. package/lib/api/apiClient.js +0 -100
  10. package/lib/api/auditCallHandler.js +0 -21
  11. package/lib/api/decodeToken.js +0 -4
  12. package/lib/api/handleAPIError.js +0 -59
  13. package/lib/api/login.js +0 -45
  14. package/lib/commands/createActionsCommand.js +0 -109
  15. package/lib/commands/createAiCommand.js +0 -188
  16. package/lib/commands/createAliasCommand.js +0 -106
  17. package/lib/commands/createAuditCommand.js +0 -49
  18. package/lib/commands/createBatchCommand.js +0 -304
  19. package/lib/commands/createCompletionsCommand.js +0 -169
  20. package/lib/commands/createConfigCommand.js +0 -208
  21. package/lib/commands/createCopyCommand.js +0 -39
  22. package/lib/commands/createCreateCommand.js +0 -50
  23. package/lib/commands/createDeleteCommand.js +0 -98
  24. package/lib/commands/createDeployCommand.js +0 -666
  25. package/lib/commands/createDescribeCommand.js +0 -42
  26. package/lib/commands/createEditCommand.js +0 -43
  27. package/lib/commands/createEventsCommand.js +0 -60
  28. package/lib/commands/createExecCommand.js +0 -182
  29. package/lib/commands/createExportCommand.js +0 -219
  30. package/lib/commands/createGetCommand.js +0 -47
  31. package/lib/commands/createJobsCommand.js +0 -168
  32. package/lib/commands/createListCommand.js +0 -49
  33. package/lib/commands/createLoginCommand.js +0 -18
  34. package/lib/commands/createLogoutCommand.js +0 -21
  35. package/lib/commands/createModulesCommand.js +0 -150
  36. package/lib/commands/createMonitorCommand.js +0 -283
  37. package/lib/commands/createPermissionsCommand.js +0 -241
  38. package/lib/commands/createProgram.js +0 -185
  39. package/lib/commands/createSearchCommand.js +0 -101
  40. package/lib/commands/createServicesCommand.js +0 -228
  41. package/lib/commands/createStorageCommand.js +0 -54
  42. package/lib/commands/createStreamCommand.js +0 -50
  43. package/lib/commands/createSyncCommand.js +0 -177
  44. package/lib/commands/createTemplateCommand.js +0 -238
  45. package/lib/commands/createUpdateCommand.js +0 -115
  46. package/lib/commands/createUsersCommand.js +0 -285
  47. package/lib/commands/createWebhooksCommand.js +0 -156
  48. package/lib/commands/createWhoAmICommand.js +0 -88
  49. package/lib/exitCodes.js +0 -6
  50. package/lib/helpers/addSpacesToCamelCase.js +0 -5
  51. package/lib/helpers/config.js +0 -6
  52. package/lib/helpers/configLoader.js +0 -60
  53. package/lib/helpers/formatDocument.js +0 -176
  54. package/lib/helpers/handleResponseFormatOptions.js +0 -85
  55. package/lib/helpers/initializeSettings.js +0 -14
  56. package/lib/helpers/localStorage.js +0 -4
  57. package/lib/helpers/makeRandomToken.js +0 -27
  58. package/lib/helpers/parseInt.js +0 -7
  59. package/lib/helpers/requireArg.js +0 -9
  60. package/lib/helpers/saveFile.js +0 -39
  61. package/lib/models/getCollections.js +0 -15
  62. package/lib/models/getModelsInModules.js +0 -13
  63. package/lib/models/getModuleFromCollection.js +0 -7
  64. package/lib/operations/handleAuditOperation.js +0 -22
  65. package/lib/operations/handleCollectionOperation.js +0 -91
  66. package/lib/operations/handleCopySingleOperation.js +0 -22
  67. package/lib/operations/handleCreateSingleOperation.js +0 -35
  68. package/lib/operations/handleDeleteSingleOperation.js +0 -14
  69. package/lib/operations/handleDescribeSingleOperation.js +0 -22
  70. package/lib/operations/handleEditOperation.js +0 -51
  71. package/lib/operations/handleEditRawOperation.js +0 -35
  72. package/lib/operations/handleGetOperation.js +0 -29
  73. package/lib/operations/handleGetSingleOperation.js +0 -20
  74. package/lib/operations/handleListOperation.js +0 -63
  75. package/lib/operations/handleSingleAuditOperation.js +0 -27
  76. package/lib/prompts/promptAudits.js +0 -15
  77. package/lib/prompts/promptCollection.js +0 -13
  78. package/lib/prompts/promptCollectionInModule.js +0 -13
  79. package/lib/prompts/promptCollectionWithModule.js +0 -15
  80. package/lib/prompts/promptConfirm.js +0 -12
  81. package/lib/prompts/promptDefaultAction.js +0 -13
  82. package/lib/prompts/promptEntry.js +0 -19
  83. package/lib/prompts/promptFileName.js +0 -12
  84. package/lib/prompts/promptFilePath.js +0 -18
  85. package/lib/prompts/promptModule.js +0 -19
  86. package/lib/prompts/promptName.js +0 -11
  87. package/lib/prompts/promptOperation.js +0 -13
  88. package/lib/socket/customerSocketClient.js +0 -13
  89. package/lib/socket/socketClient.js +0 -12
  90. package/lib/types.js +0 -1
package/package.json CHANGED
@@ -1,158 +1,160 @@
1
- {
2
- "name": "@tolinax/ayoune-cli",
3
- "version": "2026.3.0",
4
- "description": "",
5
- "type": "module",
6
- "main": "./index.js",
7
- "bin": {
8
- "ay": "./index.js"
9
- },
10
- "scripts": {
11
- "prebuild": "rimraf dist",
12
- "build": "npx tsc",
13
- "postbuild": "cpx package.json dist",
14
- "update-models": "npm install @tolinax/ayoune-models@latest",
15
- "update-core": "npm install @tolinax/ayoune-core@latest",
16
- "copy-package": "cpx package.json dist",
17
- "update-interfaces": "npm install @tolinax/ayoune-interfaces@latest",
18
- "test": "vitest run",
19
- "test:watch": "vitest",
20
- "lint": "eslint src/",
21
- "format": "prettier --write src/",
22
- "format:check": "prettier --check src/",
23
- "release": "release-it --ci",
24
- "postrelease": "npm run release-package",
25
- "prerelease-package": "npm run copy-package",
26
- "release-package": "cd dist && npm publish"
27
- },
28
- "files": [
29
- "**/*"
30
- ],
31
- "autoupdater": {
32
- "updateMessage": "Would you like to update now?",
33
- "checkCommand": "ay -v",
34
- "installCommand": "npm install -g @tolinax/ayoune-cli",
35
- "promptUser": true
36
- },
37
- "keywords": [],
38
- "author": "",
39
- "license": "ISC",
40
- "release-it": {
41
- "git": {
42
- "changelog": "git log --pretty=format:\"* %s (%h)\" ${from}...${to}",
43
- "requireCleanWorkingDir": false,
44
- "addUntrackedFiles": true,
45
- "commit": true,
46
- "push": true,
47
- "commitMessage": "ci(chore): release v${version}\n\n${changelog}",
48
- "tag": true
49
- },
50
- "npm": {
51
- "publish": false
52
- },
53
- "plugins": {
54
- "@release-it/conventional-changelog": {
55
- "preset": {
56
- "name": "conventionalcommits",
57
- "header": "# Changelog",
58
- "types": [
59
- {
60
- "type": "feat",
61
- "section": "Features"
62
- },
63
- {
64
- "type": "fix",
65
- "section": "Bug Fixes"
66
- },
67
- {
68
- "type": "chore",
69
- "section": "Chores"
70
- },
71
- {
72
- "type": "docs",
73
- "section": "Docs"
74
- },
75
- {
76
- "type": "style",
77
- "section": "Style changes"
78
- },
79
- {
80
- "type": "refactor",
81
- "section": "Refactorings"
82
- },
83
- {
84
- "type": "perf",
85
- "section": "Performance"
86
- },
87
- {
88
- "type": "test",
89
- "section": "Tests"
90
- },
91
- {
92
- "type": "ci",
93
- "section": "Continous Integration"
94
- },
95
- {
96
- "type": "build",
97
- "section": "Build Process"
98
- },
99
- {
100
- "type": "infra",
101
- "section": "Infrastructure"
102
- }
103
- ]
104
- },
105
- "infile": "CHANGELOG.md"
106
- }
107
- }
108
- },
109
- "dependencies": {
110
- "@types/jmespath": "^0.15.2",
111
- "axios": "^1.6.7",
112
- "axios-retry": "^4.0.0",
113
- "chalk": "^5.3.0",
114
- "chalk-animation": "^2.0.3",
115
- "cli-autoupdater": "^1.1.0",
116
- "commander": "^12.0.0",
117
- "figlet": "^1.7.0",
118
- "gradient-string": "^2.0.2",
119
- "inquirer": "^9.2.14",
120
- "inquirer-autocomplete-prompt": "^3.0.1",
121
- "inquirer-file-tree-selection-prompt": "^2.0.5",
122
- "inquirer-fuzzy-path": "^2.3.0",
123
- "inquirer-interrupted-prompt": "^3.0.0",
124
- "inquirer-search-list": "^1.2.6",
125
- "inquirer-table-input": "^0.0.3",
126
- "jmespath": "^0.16.0",
127
- "js-yaml": "^4.1.0",
128
- "jsonwebtoken": "^9.0.2",
129
- "lodash": "^4.17.21",
130
- "mkdirp": "^3.0.1",
131
- "moment": "^2.30.1",
132
- "nanospinner": "^1.1.0",
133
- "node-localstorage": "^3.0.5",
134
- "os": "^0.1.2",
135
- "socket.io-client": "^4.7.4"
136
- },
137
- "devDependencies": {
138
- "@release-it/conventional-changelog": "^5.0.0",
139
- "@types/chalk": "^2.2.0",
140
- "@types/chalk-animation": "^1.6.3",
141
- "@types/commander": "^2.12.2",
142
- "@types/figlet": "^1.5.8",
143
- "@types/gradient-string": "^1.1.5",
144
- "@types/inquirer": "^9.0.7",
145
- "@types/js-yaml": "^4.0.9",
146
- "@types/jsonwebtoken": "^9.0.5",
147
- "@types/lodash": "^4.14.202",
148
- "@types/node": "^20.11.16",
149
- "@types/node-localstorage": "^1.3.3",
150
- "@typescript-eslint/eslint-plugin": "^8.55.0",
151
- "@typescript-eslint/parser": "^8.55.0",
152
- "cpx": "^1.5.0",
153
- "eslint": "^9.39.2",
154
- "prettier": "^3.2.5",
155
- "rimraf": "^5.0.5",
156
- "vitest": "^4.0.18"
157
- }
158
- }
1
+ {
2
+ "name": "@tolinax/ayoune-cli",
3
+ "version": "2026.3.1",
4
+ "description": "CLI for the aYOUne Business-as-a-Service platform",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "bin": {
8
+ "ay": "./index.js"
9
+ },
10
+ "scripts": {
11
+ "prebuild": "rimraf dist",
12
+ "build": "npx tsc",
13
+ "postbuild": "cpx package.json dist",
14
+ "update-models": "npm install @tolinax/ayoune-models@latest",
15
+ "update-core": "npm install @tolinax/ayoune-core@latest",
16
+ "copy-package": "cpx package.json dist",
17
+ "update-interfaces": "npm install @tolinax/ayoune-interfaces@latest",
18
+ "test": "vitest run",
19
+ "test:watch": "vitest",
20
+ "lint": "eslint src/",
21
+ "format": "prettier --write src/",
22
+ "format:check": "prettier --check src/",
23
+ "sync-models": "npx ts-node --esm scripts/sync-models-and-rights.ts",
24
+ "sync-models:fix": "npx ts-node --esm scripts/sync-models-and-rights.ts --fix",
25
+ "release": "release-it --ci",
26
+ "postrelease": "npm run release-package",
27
+ "prerelease-package": "npm run copy-package",
28
+ "release-package": "cd dist && npm publish"
29
+ },
30
+ "files": [
31
+ "**/*"
32
+ ],
33
+ "autoupdater": {
34
+ "updateMessage": "Would you like to update now?",
35
+ "checkCommand": "ay -v",
36
+ "installCommand": "npm install -g @tolinax/ayoune-cli",
37
+ "promptUser": true
38
+ },
39
+ "keywords": [],
40
+ "author": "",
41
+ "license": "ISC",
42
+ "release-it": {
43
+ "git": {
44
+ "changelog": "git log --pretty=format:\"* %s (%h)\" ${from}...${to}",
45
+ "requireCleanWorkingDir": false,
46
+ "addUntrackedFiles": true,
47
+ "commit": true,
48
+ "push": true,
49
+ "commitMessage": "ci(chore): release v${version}\n\n${changelog}",
50
+ "tag": true
51
+ },
52
+ "npm": {
53
+ "publish": false
54
+ },
55
+ "plugins": {
56
+ "@release-it/conventional-changelog": {
57
+ "preset": {
58
+ "name": "conventionalcommits",
59
+ "header": "# Changelog",
60
+ "types": [
61
+ {
62
+ "type": "feat",
63
+ "section": "Features"
64
+ },
65
+ {
66
+ "type": "fix",
67
+ "section": "Bug Fixes"
68
+ },
69
+ {
70
+ "type": "chore",
71
+ "section": "Chores"
72
+ },
73
+ {
74
+ "type": "docs",
75
+ "section": "Docs"
76
+ },
77
+ {
78
+ "type": "style",
79
+ "section": "Style changes"
80
+ },
81
+ {
82
+ "type": "refactor",
83
+ "section": "Refactorings"
84
+ },
85
+ {
86
+ "type": "perf",
87
+ "section": "Performance"
88
+ },
89
+ {
90
+ "type": "test",
91
+ "section": "Tests"
92
+ },
93
+ {
94
+ "type": "ci",
95
+ "section": "Continous Integration"
96
+ },
97
+ {
98
+ "type": "build",
99
+ "section": "Build Process"
100
+ },
101
+ {
102
+ "type": "infra",
103
+ "section": "Infrastructure"
104
+ }
105
+ ]
106
+ },
107
+ "infile": "CHANGELOG.md"
108
+ }
109
+ }
110
+ },
111
+ "dependencies": {
112
+ "@types/jmespath": "^0.15.2",
113
+ "axios": "^1.6.7",
114
+ "axios-retry": "^4.0.0",
115
+ "chalk": "^5.3.0",
116
+ "chalk-animation": "^2.0.3",
117
+ "cli-autoupdater": "^1.1.0",
118
+ "commander": "^12.0.0",
119
+ "figlet": "^1.7.0",
120
+ "gradient-string": "^2.0.2",
121
+ "inquirer": "^9.2.14",
122
+ "inquirer-autocomplete-prompt": "^3.0.1",
123
+ "inquirer-file-tree-selection-prompt": "^2.0.5",
124
+ "inquirer-fuzzy-path": "^2.3.0",
125
+ "inquirer-interrupted-prompt": "^3.0.0",
126
+ "inquirer-search-list": "^1.2.6",
127
+ "inquirer-table-input": "^0.0.3",
128
+ "jmespath": "^0.16.0",
129
+ "js-yaml": "^4.1.0",
130
+ "jsonwebtoken": "^9.0.2",
131
+ "lodash": "^4.17.21",
132
+ "mkdirp": "^3.0.1",
133
+ "moment": "^2.30.1",
134
+ "nanospinner": "^1.1.0",
135
+ "node-localstorage": "^3.0.5",
136
+ "os": "^0.1.2",
137
+ "socket.io-client": "^4.7.4"
138
+ },
139
+ "devDependencies": {
140
+ "@release-it/conventional-changelog": "^5.0.0",
141
+ "@types/chalk": "^2.2.0",
142
+ "@types/chalk-animation": "^1.6.3",
143
+ "@types/commander": "^2.12.2",
144
+ "@types/figlet": "^1.5.8",
145
+ "@types/gradient-string": "^1.1.5",
146
+ "@types/inquirer": "^9.0.7",
147
+ "@types/js-yaml": "^4.0.9",
148
+ "@types/jsonwebtoken": "^9.0.5",
149
+ "@types/lodash": "^4.14.202",
150
+ "@types/node": "^20.11.16",
151
+ "@types/node-localstorage": "^1.3.3",
152
+ "@typescript-eslint/eslint-plugin": "^8.55.0",
153
+ "@typescript-eslint/parser": "^8.55.0",
154
+ "cpx": "^1.5.0",
155
+ "eslint": "^9.39.2",
156
+ "prettier": "^3.2.5",
157
+ "rimraf": "^5.0.5",
158
+ "vitest": "^4.0.18"
159
+ }
160
+ }
@@ -1,9 +0,0 @@
1
- const defaultActions = [
2
- "describe",
3
- "edit",
4
- "edit raw",
5
- "download",
6
- "copy",
7
- "delete",
8
- ];
9
- export { defaultActions };