@aderis-erp/cli 1.0.11 → 1.0.13

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 (33) hide show
  1. package/dist/commands/{agent-runs.d.ts → agent-platform.d.ts} +2 -2
  2. package/dist/commands/agent-platform.js +1175 -0
  3. package/dist/commands/auth/login.js +2 -3
  4. package/dist/commands/business-partners.js +2 -2
  5. package/dist/commands/chat.d.ts +40 -0
  6. package/dist/commands/chat.js +1177 -0
  7. package/dist/commands/config/add.js +2 -3
  8. package/dist/commands/config/rename.d.ts +10 -0
  9. package/dist/commands/config/rename.js +68 -0
  10. package/dist/commands/delivery-notes.d.ts +43 -0
  11. package/dist/commands/delivery-notes.js +1204 -0
  12. package/dist/commands/dunning-configs.js +2 -2
  13. package/dist/commands/email-transactions.d.ts +40 -0
  14. package/dist/commands/{agent-runs.js → email-transactions.js} +12 -18
  15. package/dist/commands/inbox.js +3 -3
  16. package/dist/commands/payment-runs.js +1 -3
  17. package/dist/commands/payments.d.ts +40 -0
  18. package/dist/commands/payments.js +1180 -0
  19. package/dist/commands/purchase-orders.d.ts +2 -0
  20. package/dist/commands/purchase-orders.js +14 -4
  21. package/dist/commands/sales-invoices.js +11 -8
  22. package/dist/commands/sales-orders.js +8 -6
  23. package/dist/commands/schedules.d.ts +40 -0
  24. package/dist/commands/schedules.js +1182 -0
  25. package/dist/commands/tax-codes.js +2 -2
  26. package/dist/commands/tenants.js +5 -3
  27. package/dist/commands/vat-declarations.js +1 -1
  28. package/dist/commands/vendor-invoices.js +7 -5
  29. package/dist/lib/auth.js +2 -2
  30. package/dist/lib/config.d.ts +2 -1
  31. package/dist/lib/config.js +20 -5
  32. package/oclif.manifest.json +998 -108
  33. package/package.json +3 -2
@@ -20,8 +20,8 @@ export default class AuthLogin extends Command {
20
20
  }),
21
21
  environment: Flags.string({
22
22
  char: 'e',
23
- description: 'Environment (dev, test, staging, live)',
24
- options: ['dev', 'test', 'staging', 'live'],
23
+ description: 'Environment (dev, staging, live)',
24
+ options: ['dev', 'staging', 'live'],
25
25
  }),
26
26
  name: Flags.string({
27
27
  description: 'Name for the new context (required with --new)',
@@ -93,7 +93,6 @@ export default class AuthLogin extends Command {
93
93
  const environment = flags.environment ? flags.environment : (await select({
94
94
  choices: [
95
95
  { description: 'Development environment', name: 'dev', value: 'dev' },
96
- { description: 'Test environment', name: 'test', value: 'test' },
97
96
  { description: 'Staging environment', name: 'staging', value: 'staging' },
98
97
  { description: 'Production environment', name: 'live', value: 'live' },
99
98
  ],
@@ -9,9 +9,9 @@ const NESTED_IMPORTS = ["notes", "contacts", "contacts-notes"];
9
9
  const SUBCOMMANDS = [...["list", "create", "get", "update", "delete", "merge", "activate", "list-notes", "create-notes", "get-notes", "update-notes", "delete-notes", "list-contacts", "create-contacts", "get-contacts", "update-contacts", "delete-contacts", "list-contacts-notes", "create-contacts-notes", "get-contacts-notes", "update-contacts-notes", "delete-contacts-notes"], ...(HAS_IMPORT ? ['import'] : []), ...(HAS_EXPORT ? ['export'] : []), ...NESTED_IMPORTS.map(n => `import-${n}`)];
10
10
  const ENDPOINTS = {
11
11
  'list': { method: 'GET', path: '/v1/business-partners', summary: 'Get all business partners with pagination', pathParams: [], hasBody: false, isMultipart: false, isBinaryResponse: false, bodyArrayFields: [] },
12
- 'create': { method: 'POST', path: '/v1/business-partners', summary: 'Create a new business partner', pathParams: [], hasBody: true, isMultipart: false, isBinaryResponse: false, bodyArrayFields: ['invoiceEmailCc', 'contacts', 'tagIds', 'notes'] },
12
+ 'create': { method: 'POST', path: '/v1/business-partners', summary: 'Create a new business partner', pathParams: [], hasBody: true, isMultipart: false, isBinaryResponse: false, bodyArrayFields: ['invoiceEmailCc', 'salesOrderRecipientCc', 'salesOrderRecipientBcc', 'salesInvoiceRecipientCc', 'salesInvoiceRecipientBcc', 'contacts', 'tagIds', 'salesEarlyPaymentDiscounts', 'purchaseEarlyPaymentDiscounts', 'notes'] },
13
13
  'get': { method: 'GET', path: '/v1/business-partners/{id}', summary: 'Get a business partner by ID', pathParams: ['id'], hasBody: false, isMultipart: false, isBinaryResponse: false, bodyArrayFields: [] },
14
- 'update': { method: 'PATCH', path: '/v1/business-partners/{id}', summary: 'Update a business partner', pathParams: ['id'], hasBody: true, isMultipart: false, isBinaryResponse: false, bodyArrayFields: ['invoiceEmailCc', 'contacts', 'tagIds', 'notes'] },
14
+ 'update': { method: 'PATCH', path: '/v1/business-partners/{id}', summary: 'Update a business partner', pathParams: ['id'], hasBody: true, isMultipart: false, isBinaryResponse: false, bodyArrayFields: ['invoiceEmailCc', 'salesOrderRecipientCc', 'salesOrderRecipientBcc', 'salesInvoiceRecipientCc', 'salesInvoiceRecipientBcc', 'contacts', 'tagIds', 'salesEarlyPaymentDiscounts', 'purchaseEarlyPaymentDiscounts', 'notes'] },
15
15
  'delete': { method: 'DELETE', path: '/v1/business-partners/{id}', summary: 'Delete a business partner', pathParams: ['id'], hasBody: false, isMultipart: false, isBinaryResponse: false, bodyArrayFields: [] },
16
16
  'merge': { method: 'POST', path: '/v1/business-partners/{id}/merge', summary: 'Merge a business partner into another', pathParams: ['id'], hasBody: true, isMultipart: false, isBinaryResponse: false, bodyArrayFields: [] },
17
17
  'activate': { method: 'POST', path: '/v1/business-partners/{id}/activate', summary: 'Activate a business partner', pathParams: ['id'], hasBody: false, isMultipart: false, isBinaryResponse: false, bodyArrayFields: [] },
@@ -0,0 +1,40 @@
1
+ import { Command } from '@oclif/core';
2
+ export default class Chat 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
+ page: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ include: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
+ search: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
+ 'sort-by': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
+ filter: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
+ query: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
+ fields: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
25
+ sanitize: import("@oclif/core/interfaces").BooleanFlag<boolean>;
26
+ 'show-http-request': import("@oclif/core/interfaces").BooleanFlag<boolean>;
27
+ };
28
+ run(): Promise<void>;
29
+ private runImport;
30
+ private runExport;
31
+ private runCamt053Import;
32
+ private runNestedImport;
33
+ private parseFilterValue;
34
+ private filterFields;
35
+ private sanitizeOutput;
36
+ private getColumns;
37
+ private getValue;
38
+ private printTable;
39
+ private printCsv;
40
+ }