@shophost/client 2.0.46 → 2.0.48
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/index.js +3 -3
- package/package.json +1 -1
- package/src/index.d.ts +30 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -45,6 +45,16 @@ export type AnalyticsFulfilmentMethodBreakdown = {
|
|
|
45
45
|
count: number;
|
|
46
46
|
totalSales: number;
|
|
47
47
|
};
|
|
48
|
+
export type IntegrationRecord = {
|
|
49
|
+
organizationId: string;
|
|
50
|
+
type: string;
|
|
51
|
+
config: Record<string, unknown>;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
};
|
|
55
|
+
export type UpsertIntegrationInput = {
|
|
56
|
+
config: Record<string, unknown>;
|
|
57
|
+
};
|
|
48
58
|
export type AnalyticsOverview = {
|
|
49
59
|
range: AnalyticsRange;
|
|
50
60
|
summary: AnalyticsSummary;
|
|
@@ -84,6 +94,26 @@ export declare const initClient: ({ baseHeaders, baseUrl, credentials, fetch, th
|
|
|
84
94
|
};
|
|
85
95
|
}) => Promise<ClientResponse<AnalyticsOverview>>;
|
|
86
96
|
};
|
|
97
|
+
integration: {
|
|
98
|
+
deleteIntegration: (input: {
|
|
99
|
+
params: {
|
|
100
|
+
organizationId: string;
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
}) => Promise<ClientResponse<void>>;
|
|
104
|
+
getIntegrations: (input: {
|
|
105
|
+
params: {
|
|
106
|
+
organizationId: string;
|
|
107
|
+
};
|
|
108
|
+
}) => Promise<ClientResponse<IntegrationRecord[]>>;
|
|
109
|
+
upsertIntegration: (input: {
|
|
110
|
+
params: {
|
|
111
|
+
organizationId: string;
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
body: UpsertIntegrationInput;
|
|
115
|
+
}) => Promise<ClientResponse<IntegrationRecord>>;
|
|
116
|
+
};
|
|
87
117
|
access: {
|
|
88
118
|
acceptInvitation: (input?: RequestInput) => Promise<ClientResponse<any>>;
|
|
89
119
|
createInvitation: (input?: RequestInput) => Promise<ClientResponse<any>>;
|