@aderis-erp/cli 1.1.3 → 1.1.4

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 (36) hide show
  1. package/README.md +1 -0
  2. package/dist/commands/api-clients.d.ts +58 -0
  3. package/dist/commands/api-clients.js +1341 -0
  4. package/dist/commands/bank-accounts.js +1 -1
  5. package/dist/commands/credit-card-accounts.d.ts +4 -0
  6. package/dist/commands/credit-card-accounts.js +8 -3
  7. package/dist/commands/currencies.d.ts +56 -0
  8. package/dist/commands/{workflows.js → currencies.js} +13 -15
  9. package/dist/commands/custody-accounts.d.ts +56 -0
  10. package/dist/commands/{integration-identities.js → custody-accounts.js} +25 -22
  11. package/dist/commands/{integration-identities.d.ts → dashboards.d.ts} +3 -3
  12. package/dist/commands/dashboards.js +1347 -0
  13. package/dist/commands/document-checksums.d.ts +56 -0
  14. package/dist/commands/document-checksums.js +1324 -0
  15. package/dist/commands/financial-instrument-types.d.ts +56 -0
  16. package/dist/commands/financial-instrument-types.js +1335 -0
  17. package/dist/commands/financial-instruments.d.ts +56 -0
  18. package/dist/commands/financial-instruments.js +1335 -0
  19. package/dist/commands/items.js +2 -2
  20. package/dist/commands/{workflows.d.ts → kpis.d.ts} +1 -1
  21. package/dist/commands/kpis.js +1337 -0
  22. package/dist/commands/ledgers.js +1 -1
  23. package/dist/commands/notifications.d.ts +56 -0
  24. package/dist/commands/notifications.js +1326 -0
  25. package/dist/commands/sales-orders.js +1 -1
  26. package/dist/commands/settings.d.ts +56 -0
  27. package/dist/commands/settings.js +1327 -0
  28. package/dist/commands/templates.js +2 -1
  29. package/dist/commands/vendor-invoices.js +2 -1
  30. package/dist/commands/work-summary.d.ts +56 -0
  31. package/dist/commands/work-summary.js +1326 -0
  32. package/dist/lib/auth/index.js +5 -0
  33. package/dist/lib/production-guard.d.ts +42 -0
  34. package/dist/lib/production-guard.js +92 -0
  35. package/oclif.manifest.json +1943 -331
  36. package/package.json +1 -1
package/README.md CHANGED
@@ -8,6 +8,7 @@ Command-line interface for Aderis Finance ERP. Manage your Aderis account, execu
8
8
  - **Multi-Environment Support** - Switch between dev, test, staging and production environments
9
9
  - **Multi-Client Support** - Manage multiple clients with named contexts
10
10
  - **Multi-Tenant Support** - Switch between tenants within a single login
11
+ - **Production Guard for Claude Code** - From an `@aderis.com` address, only a Claude account in the Aderis organisation can reach `live`
11
12
  - **Full API Access** - Execute all Aderis API endpoints from the command line
12
13
  - **Auto-Generated Commands** - Commands generated directly from OpenAPI spec
13
14
 
@@ -0,0 +1,58 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class ApiClients extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ action: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ id: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
8
+ };
9
+ static flags: {
10
+ context: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ output: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ table: import("@oclif/core/interfaces").BooleanFlag<boolean>;
13
+ csv: import("@oclif/core/interfaces").BooleanFlag<boolean>;
14
+ data: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ file: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ set: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'secret-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ 'key-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ page: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
+ limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
+ include: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
+ search: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
+ 'sort-by': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
+ filter: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
25
+ query: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
26
+ fields: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
27
+ sanitize: import("@oclif/core/interfaces").BooleanFlag<boolean>;
28
+ meta: import("@oclif/core/interfaces").BooleanFlag<boolean>;
29
+ 'show-http-request': import("@oclif/core/interfaces").BooleanFlag<boolean>;
30
+ };
31
+ run(): Promise<void>;
32
+ private runUpsert;
33
+ /**
34
+ * The API's own import: the whole array goes up in one request and comes
35
+ * back as an import run, which records what happened to every record. A bad
36
+ * record lands in errorLog and the rest are still applied, and the run stays
37
+ * readable afterwards with: aderis imports get <id>.
38
+ */
39
+ private runServerImport;
40
+ /** Renders an import run: its counts, then whatever the server refused. */
41
+ private printImportRun;
42
+ private runExport;
43
+ private runCamt053Import;
44
+ private runNestedUpsert;
45
+ private parseFilterValue;
46
+ /** The page line under a table: which page, how many, and any sums the API returned. */
47
+ private printPageSummary;
48
+ /**
49
+ * The API caps how many records a page may hold. Asking for more and getting
50
+ * fewer looks like "that is everything" unless it is said out loud.
51
+ */
52
+ private warnShortPage;
53
+ private sanitizeOutput;
54
+ private getColumns;
55
+ private getValue;
56
+ private printTable;
57
+ private printCsv;
58
+ }