@opencxh/domain 1.50.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';
|