@opencxh/domain 1.247.0 → 1.248.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.
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { PostalAddress } from '../organization/types';
|
|
2
|
+
/**
|
|
3
|
+
* The service-bus key `apps/organization` answers with its administrations.
|
|
4
|
+
*
|
|
5
|
+
* Here and not as a literal in each consumer: the key belongs to the record, and a consumer that
|
|
6
|
+
* spells it itself is a consumer that keeps spelling it after the owner renames it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BUSINESS_ENTITY_LIST_SERVICE = "organization.business-entities.list";
|
|
2
9
|
/**
|
|
3
10
|
* One set of books with one letterhead: a BV, a VOF, a foreign branch.
|
|
4
11
|
*
|
|
@@ -14,3 +14,20 @@ export declare function transactionScopeKey(kindKey: string, id: string): string
|
|
|
14
14
|
export declare function productScopeKey(id: string): string;
|
|
15
15
|
/** Is this scopeKey one of ours, and which id does it point at? */
|
|
16
16
|
export declare function transactionIdFromScope(scopeKey: string): string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* A transaction's file keys: itself, and the customer it is for.
|
|
19
|
+
*
|
|
20
|
+
* That second one is what puts a quote in the customer file without anybody linking it by hand:
|
|
21
|
+
* the relation hub matches on shared keys, so `company:<id>` on the quote makes it a *derived*
|
|
22
|
+
* row under that company — a lead, not a statement.
|
|
23
|
+
*
|
|
24
|
+
* Bounded by the row itself, on purpose. These ride along on every authorisation, including every
|
|
25
|
+
* memory write; a list that grows with the transaction would be paid for on each one.
|
|
26
|
+
*/
|
|
27
|
+
export declare function transactionDossierKeys(transaction: {
|
|
28
|
+
id: string;
|
|
29
|
+
kindKey: string;
|
|
30
|
+
companyId?: string;
|
|
31
|
+
contactId?: string;
|
|
32
|
+
dealItemId?: string;
|
|
33
|
+
}): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|