@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.
- package/dist/entities/agreement/types.d.ts +7 -2
- package/dist/entities/bookkeeping/types.d.ts +2 -1
- package/dist/entities/business-entity/types.d.ts +6 -0
- package/dist/entities/catalog/article.d.ts +28 -0
- package/dist/entities/catalog/article.test.d.ts +1 -0
- package/dist/entities/catalog/index.d.ts +1 -0
- package/dist/entities/catalog/pricing.d.ts +12 -6
- package/dist/entities/catalog/rating.d.ts +30 -0
- package/dist/entities/catalog/types.d.ts +133 -66
- package/dist/entities/catalog/usage-source.d.ts +11 -0
- package/dist/entities/company/address.d.ts +30 -0
- package/dist/entities/company/address.test.d.ts +1 -0
- package/dist/entities/company/index.d.ts +2 -0
- package/dist/entities/company/role.d.ts +33 -0
- package/dist/entities/company/types.d.ts +0 -22
- package/dist/entities/contact/segment.d.ts +1 -1
- package/dist/entities/purchase/feed.d.ts +132 -0
- package/dist/entities/purchase/feed.test.d.ts +1 -0
- package/dist/entities/purchase/index.d.ts +1 -0
- package/dist/entities/purchase/logic.d.ts +10 -4
- package/dist/entities/purchase/types.d.ts +28 -7
- package/dist/entities/transaction/booking.d.ts +1 -1
- package/dist/entities/transaction/convert.d.ts +2 -2
- package/dist/entities/transaction/document.d.ts +2 -0
- package/dist/entities/transaction/payment-term.d.ts +15 -1
- package/dist/entities/transaction/types.d.ts +18 -1
- package/dist/index.cjs +25 -23
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3026 -2700
- package/dist/platform/bookkeeping.d.ts +4 -2
- package/dist/platform/csv.d.ts +12 -0
- package/dist/platform/csv.test.d.ts +1 -0
- 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
|
-
/**
|
|
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 {};
|