@opencxh/domain 1.297.0 → 1.301.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.
Files changed (33) hide show
  1. package/dist/entities/agreement/types.d.ts +7 -2
  2. package/dist/entities/bookkeeping/types.d.ts +2 -1
  3. package/dist/entities/business-entity/types.d.ts +6 -0
  4. package/dist/entities/catalog/article.d.ts +28 -0
  5. package/dist/entities/catalog/article.test.d.ts +1 -0
  6. package/dist/entities/catalog/index.d.ts +1 -0
  7. package/dist/entities/catalog/pricing.d.ts +12 -6
  8. package/dist/entities/catalog/rating.d.ts +30 -0
  9. package/dist/entities/catalog/types.d.ts +133 -66
  10. package/dist/entities/catalog/usage-source.d.ts +11 -0
  11. package/dist/entities/company/address.d.ts +30 -0
  12. package/dist/entities/company/address.test.d.ts +1 -0
  13. package/dist/entities/company/index.d.ts +2 -0
  14. package/dist/entities/company/role.d.ts +33 -0
  15. package/dist/entities/company/types.d.ts +0 -22
  16. package/dist/entities/contact/segment.d.ts +1 -1
  17. package/dist/entities/purchase/feed.d.ts +132 -0
  18. package/dist/entities/purchase/feed.test.d.ts +1 -0
  19. package/dist/entities/purchase/index.d.ts +1 -0
  20. package/dist/entities/purchase/logic.d.ts +10 -4
  21. package/dist/entities/purchase/types.d.ts +28 -7
  22. package/dist/entities/transaction/booking.d.ts +1 -1
  23. package/dist/entities/transaction/convert.d.ts +2 -2
  24. package/dist/entities/transaction/document.d.ts +2 -0
  25. package/dist/entities/transaction/payment-term.d.ts +15 -1
  26. package/dist/entities/transaction/types.d.ts +18 -1
  27. package/dist/index.cjs +25 -23
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.js +3026 -2700
  30. package/dist/platform/bookkeeping.d.ts +4 -2
  31. package/dist/platform/csv.d.ts +12 -0
  32. package/dist/platform/csv.test.d.ts +1 -0
  33. package/package.json +1 -1
@@ -7,7 +7,6 @@ export declare const BOOKKEEPING_PROVIDER_GROUP = "bookkeeping";
7
7
  export declare const BOOKABLE_ROUTES: {
8
8
  readonly get: "/bookable/get";
9
9
  readonly issued: "/bookable/issued";
10
- readonly ledgerCategories: "/bookable/ledger-categories";
11
10
  readonly settled: "/bookable/settled";
12
11
  };
13
12
  export declare const BOOKKEEPING_ROUTES: {
@@ -133,7 +132,10 @@ export interface BookingAnnouncement {
133
132
  documentNumber?: string;
134
133
  issuedAt: number;
135
134
  }
136
- /** A bucket a product or line is booked under. The mapping UIs pick from this list, never free text. */
135
+ /**
136
+ * A bucket a product or line is booked under. The mapping UIs pick from this list, never free text.
137
+ * Catalog owns the list (plan 046 #18); finance reads it from there, not from every source.
138
+ */
137
139
  export interface LedgerCategory {
138
140
  key: string;
139
141
  label: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A CSV file as rows of cells: quoted cells (with the separator, a quote `""` or a line break
3
+ * inside) and `\r\n` handled. The separator is the one of `;`, `,` or tab that the first line
4
+ * has most of — a Dutch Excel writes `;`, a feed from abroad `,`.
5
+ */
6
+ export declare function parseCsv(text: string, separator?: string): string[][];
7
+ /**
8
+ * A text file's bytes as a string: UTF-8 when they are valid UTF-8 (a BOM dropped), else
9
+ * Windows-1252 — what a Dutch Excel saves "csv" in. By hand: the server runtime has no
10
+ * TextDecoder we can count on.
11
+ */
12
+ export declare function decodeText(bytes: Uint8Array): string;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.297.0",
3
+ "version": "1.301.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",