@opencxh/domain 1.48.0 → 1.52.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shopify DTO's — gedeeld tussen de shopify-server (mapping uit Admin API),
|
|
3
|
+
* platform-api (typed client) en de frontend-tool. Geen Shopify-SDK-types
|
|
4
|
+
* lekken naar consumers; dit is de smalle, stabiele contractlaag.
|
|
5
|
+
*/
|
|
6
|
+
export interface ShopifyCustomer {
|
|
7
|
+
id: string;
|
|
8
|
+
firstName?: string;
|
|
9
|
+
lastName?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
phone?: string;
|
|
12
|
+
ordersCount?: number;
|
|
13
|
+
totalSpent?: string;
|
|
14
|
+
currency?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ShopifyLineItem {
|
|
17
|
+
title: string;
|
|
18
|
+
variantTitle?: string;
|
|
19
|
+
quantity: number;
|
|
20
|
+
price: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ShopifyTracking {
|
|
23
|
+
company?: string;
|
|
24
|
+
number?: string;
|
|
25
|
+
url?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ShopifyAddress {
|
|
28
|
+
name?: string;
|
|
29
|
+
address1?: string;
|
|
30
|
+
address2?: string;
|
|
31
|
+
zip?: string;
|
|
32
|
+
city?: string;
|
|
33
|
+
province?: string;
|
|
34
|
+
country?: string;
|
|
35
|
+
phone?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ShopifyOrder {
|
|
38
|
+
id: string;
|
|
39
|
+
/** Human order-name, bv. "#1001". */
|
|
40
|
+
name: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
financialStatus?: string;
|
|
43
|
+
fulfillmentStatus?: string;
|
|
44
|
+
totalPrice: string;
|
|
45
|
+
currency: string;
|
|
46
|
+
lineItems: ShopifyLineItem[];
|
|
47
|
+
shippingAddress?: ShopifyAddress;
|
|
48
|
+
tracking: ShopifyTracking[];
|
|
49
|
+
note?: string;
|
|
50
|
+
/** Deep-link naar de order in de Shopify-admin (nieuw tabblad). */
|
|
51
|
+
adminUrl: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ShopifyOrderEvent {
|
|
54
|
+
id: string;
|
|
55
|
+
createdAt: string;
|
|
56
|
+
/** Mensvriendelijke omschrijving van het event. */
|
|
57
|
+
message: string;
|
|
58
|
+
/** Shopify "verb" (bv. "confirmed", "fulfilled", "sale"). */
|
|
59
|
+
verb?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ShopifyLookupResult {
|
|
62
|
+
/** False = geen verbonden/enabled shop voor deze org (admin moet koppelen). */
|
|
63
|
+
connected: boolean;
|
|
64
|
+
customer: ShopifyCustomer | null;
|
|
65
|
+
/** Deep-link naar de klant in de Shopify-admin. */
|
|
66
|
+
customerAdminUrl?: string;
|
|
67
|
+
orders: ShopifyOrder[];
|
|
68
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './entities/task';
|
|
|
15
15
|
export * from './entities/note';
|
|
16
16
|
export * from './entities/team';
|
|
17
17
|
export * from './entities/organization';
|
|
18
|
+
export * from './entities/shopify';
|
|
18
19
|
export * from './entities/transcript';
|
|
19
20
|
export * from './entities/user';
|
|
20
21
|
export * from './platform/api';
|
|
@@ -267,6 +267,17 @@ export interface RecipientList {
|
|
|
267
267
|
/** Blind carbon-copy. Alleen mail-flow. */
|
|
268
268
|
bcc?: Uri[];
|
|
269
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Uitgaande bijlage zoals de client 'm aanlevert: base64-content + naam +
|
|
272
|
+
* mime-type. `content` is kale base64 (geen `data:`-prefix). Providers embedden
|
|
273
|
+
* de string direct (Graph `contentBytes`, Gmail MIME-part) zonder re-encode.
|
|
274
|
+
*/
|
|
275
|
+
export interface OutgoingAttachment {
|
|
276
|
+
filename: string;
|
|
277
|
+
mimeType: string;
|
|
278
|
+
/** Kale base64, zonder `data:<mime>;base64,`-prefix. */
|
|
279
|
+
content: string;
|
|
280
|
+
}
|
|
270
281
|
export interface NoteBody {
|
|
271
282
|
text: string;
|
|
272
283
|
visibility?: "internal" | "team";
|
|
@@ -34,6 +34,11 @@ export interface ComposePayload {
|
|
|
34
34
|
*/
|
|
35
35
|
recipients: import('./communication').RecipientList;
|
|
36
36
|
subject?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Uitgaande bijlagen (base64 + filename + mimeType). Compose-handlers
|
|
39
|
+
* geven ze door aan de provider-send; metadata belandt op de Activity.
|
|
40
|
+
*/
|
|
41
|
+
attachments?: import('./communication').OutgoingAttachment[];
|
|
37
42
|
/**
|
|
38
43
|
* The user-intent picked in the starter / contact buttons. Lets a
|
|
39
44
|
* provider compose-handler dispatch on intent — e.g. a Microsoft
|
|
@@ -181,4 +186,6 @@ export interface DownloadAttachmentPayload {
|
|
|
181
186
|
accountId?: string;
|
|
182
187
|
path?: string;
|
|
183
188
|
id?: string;
|
|
189
|
+
/** Conversatie-id (Teams chatId) — nodig om chat-hostedContent te proxyen. */
|
|
190
|
+
conversationId?: string;
|
|
184
191
|
}
|