@tolinax/ayoune-cli 2026.2.4 → 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 -89
  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
@@ -1,18 +0,0 @@
1
- import inquirer from "inquirer";
2
- import os from "os";
3
- import path from "path";
4
- export async function promptFilePath(fp) {
5
- const { filePath } = await inquirer.prompt([
6
- {
7
- type: "fuzzypath",
8
- name: "filePath",
9
- message: "Select a target directory:",
10
- itemType: "directory",
11
- default: fp,
12
- rootPath: path.join(os.homedir(), "aYOUne"),
13
- suggestOnly: false,
14
- depthLimit: 8,
15
- },
16
- ]);
17
- return filePath;
18
- }
@@ -1,19 +0,0 @@
1
- // Prompt functions
2
- import inquirer from "inquirer";
3
- import { aYOUneModules } from "../../data/modules.js";
4
- export async function promptModule() {
5
- const { module } = await inquirer.prompt([
6
- {
7
- type: "list",
8
- name: "module",
9
- message: "Select a business module:",
10
- choices: aYOUneModules.map((el) => {
11
- return {
12
- name: el.label,
13
- value: el.module,
14
- };
15
- }),
16
- },
17
- ]);
18
- return module;
19
- }
@@ -1,11 +0,0 @@
1
- import inquirer from "inquirer";
2
- export async function promptName() {
3
- const { name } = await inquirer.prompt([
4
- {
5
- type: "text",
6
- name: "name",
7
- message: "Give your new entry a name:",
8
- },
9
- ]);
10
- return name;
11
- }
@@ -1,13 +0,0 @@
1
- import inquirer from "inquirer";
2
- import { operations } from "../../data/operations.js";
3
- export async function promptOperation() {
4
- const { operation } = await inquirer.prompt([
5
- {
6
- type: "list",
7
- name: "operation",
8
- message: "Choose an operation:",
9
- choices: operations,
10
- },
11
- ]);
12
- return operation;
13
- }
@@ -1,13 +0,0 @@
1
- import { io } from "socket.io-client";
2
- import { config } from "../helpers/config.js";
3
- export const customerSocket = (user) => {
4
- return io(config.notifierUrl, {
5
- autoConnect: true,
6
- reconnection: true,
7
- rejectUnauthorized: false,
8
- query: {
9
- customer: user._customerID,
10
- username: user._id,
11
- },
12
- });
13
- };
@@ -1,12 +0,0 @@
1
- import { io } from "socket.io-client";
2
- import { config } from "../helpers/config.js";
3
- export const socket = (token) => {
4
- return io(config.notifierUrl, {
5
- autoConnect: true,
6
- reconnection: true,
7
- rejectUnauthorized: false,
8
- query: {
9
- cli: token,
10
- },
11
- });
12
- };
package/lib/types.js DELETED
@@ -1 +0,0 @@
1
- export {};