@inboxychat/sdk 0.0.0-stage → 0.2.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/README.md +111 -2
- package/dist/api-route-inventory.generated.d.ts +2215 -0
- package/dist/api-route-inventory.generated.d.ts.map +1 -0
- package/dist/api-route-inventory.generated.js +2769 -0
- package/dist/api-route-inventory.generated.js.map +1 -0
- package/dist/capabilities.d.ts +24 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +39 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/client.d.ts +80 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +314 -0
- package/dist/client.js.map +1 -0
- package/dist/credentials.d.ts +76 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +323 -0
- package/dist/credentials.js.map +1 -0
- package/dist/errors.d.ts +48 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +78 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/operations.d.ts +45 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +467 -0
- package/dist/operations.js.map +1 -0
- package/dist/redact.d.ts +6 -0
- package/dist/redact.d.ts.map +1 -0
- package/dist/redact.js +25 -0
- package/dist/redact.js.map +1 -0
- package/dist/routes.d.ts +60 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +24 -0
- package/dist/routes.js.map +1 -0
- package/dist/types.d.ts +295 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +69 -0
- package/dist/types.js.map +1 -0
- package/package.json +38 -3
package/dist/routes.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The public API v1 allowlist as this client knows it. Must equal
|
|
3
|
+
* `PUBLIC_API_V1_ROUTES` in apps/api/src/modules/api-public/api-public.contract.ts
|
|
4
|
+
* (method, path and scope) — `test/contract-drift.test.ts` checks it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PUBLIC_API_PREFIX = "/api/v1/public";
|
|
7
|
+
export interface PublicRoute {
|
|
8
|
+
method: 'GET';
|
|
9
|
+
path: string;
|
|
10
|
+
/** Scope the key must carry; null = any valid key. */
|
|
11
|
+
scope: string | null;
|
|
12
|
+
}
|
|
13
|
+
export declare const PUBLIC_ROUTES: readonly [{
|
|
14
|
+
readonly method: "GET";
|
|
15
|
+
readonly path: "/company";
|
|
16
|
+
readonly scope: null;
|
|
17
|
+
}, {
|
|
18
|
+
readonly method: "GET";
|
|
19
|
+
readonly path: "/usage";
|
|
20
|
+
readonly scope: "analytics:read";
|
|
21
|
+
}, {
|
|
22
|
+
readonly method: "GET";
|
|
23
|
+
readonly path: "/contacts";
|
|
24
|
+
readonly scope: "contacts:read";
|
|
25
|
+
}, {
|
|
26
|
+
readonly method: "GET";
|
|
27
|
+
readonly path: "/contacts/:id";
|
|
28
|
+
readonly scope: "contacts:read";
|
|
29
|
+
}, {
|
|
30
|
+
readonly method: "GET";
|
|
31
|
+
readonly path: "/conversations";
|
|
32
|
+
readonly scope: "conversations:read";
|
|
33
|
+
}, {
|
|
34
|
+
readonly method: "GET";
|
|
35
|
+
readonly path: "/conversations/:id";
|
|
36
|
+
readonly scope: "conversations:read";
|
|
37
|
+
}, {
|
|
38
|
+
readonly method: "GET";
|
|
39
|
+
readonly path: "/conversations/:id/messages";
|
|
40
|
+
readonly scope: "messages:read";
|
|
41
|
+
}, {
|
|
42
|
+
readonly method: "GET";
|
|
43
|
+
readonly path: "/orders";
|
|
44
|
+
readonly scope: "orders:read";
|
|
45
|
+
}, {
|
|
46
|
+
readonly method: "GET";
|
|
47
|
+
readonly path: "/orders/:id";
|
|
48
|
+
readonly scope: "orders:read";
|
|
49
|
+
}, {
|
|
50
|
+
readonly method: "GET";
|
|
51
|
+
readonly path: "/products";
|
|
52
|
+
readonly scope: "products:read";
|
|
53
|
+
}, {
|
|
54
|
+
readonly method: "GET";
|
|
55
|
+
readonly path: "/products/:id";
|
|
56
|
+
readonly scope: "products:read";
|
|
57
|
+
}];
|
|
58
|
+
export type PublicRoutePath = (typeof PUBLIC_ROUTES)[number]['path'];
|
|
59
|
+
export declare function scopeFor(path: PublicRoutePath): string | null;
|
|
60
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,mBAAmB,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYiB,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAG7D"}
|
package/dist/routes.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The public API v1 allowlist as this client knows it. Must equal
|
|
3
|
+
* `PUBLIC_API_V1_ROUTES` in apps/api/src/modules/api-public/api-public.contract.ts
|
|
4
|
+
* (method, path and scope) — `test/contract-drift.test.ts` checks it.
|
|
5
|
+
*/
|
|
6
|
+
export const PUBLIC_API_PREFIX = '/api/v1/public';
|
|
7
|
+
export const PUBLIC_ROUTES = [
|
|
8
|
+
{ method: 'GET', path: '/company', scope: null },
|
|
9
|
+
{ method: 'GET', path: '/usage', scope: 'analytics:read' },
|
|
10
|
+
{ method: 'GET', path: '/contacts', scope: 'contacts:read' },
|
|
11
|
+
{ method: 'GET', path: '/contacts/:id', scope: 'contacts:read' },
|
|
12
|
+
{ method: 'GET', path: '/conversations', scope: 'conversations:read' },
|
|
13
|
+
{ method: 'GET', path: '/conversations/:id', scope: 'conversations:read' },
|
|
14
|
+
{ method: 'GET', path: '/conversations/:id/messages', scope: 'messages:read' },
|
|
15
|
+
{ method: 'GET', path: '/orders', scope: 'orders:read' },
|
|
16
|
+
{ method: 'GET', path: '/orders/:id', scope: 'orders:read' },
|
|
17
|
+
{ method: 'GET', path: '/products', scope: 'products:read' },
|
|
18
|
+
{ method: 'GET', path: '/products/:id', scope: 'products:read' },
|
|
19
|
+
];
|
|
20
|
+
export function scopeFor(path) {
|
|
21
|
+
const route = PUBLIC_ROUTES.find((r) => r.path === path);
|
|
22
|
+
return route ? route.scope : null;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AASlD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE;IAChD,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE;IAC1D,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE;IAC5D,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAChE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,oBAAoB,EAAE;IACtE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,EAAE;IAC1E,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,6BAA6B,EAAE,KAAK,EAAE,eAAe,EAAE;IAC9E,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE;IACxD,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;IAC5D,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE;IAC5D,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;CACvB,CAAC;AAI5C,MAAM,UAAU,QAAQ,CAAC,IAAqB;IAC5C,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IACzD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AACpC,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire types of the Inboxy public API v1 (`/api/v1/public`).
|
|
3
|
+
*
|
|
4
|
+
* These mirror the zod contract in
|
|
5
|
+
* `apps/api/src/modules/api-public/api-public.contract.ts` field for field.
|
|
6
|
+
* `test/contract-drift.test.ts` parses the shared fixtures with the real zod
|
|
7
|
+
* schemas and compares the route list, so a change on either side fails a
|
|
8
|
+
* test instead of drifting silently.
|
|
9
|
+
*
|
|
10
|
+
* v1 rule (from the contract): a field may be added, never renamed, retyped
|
|
11
|
+
* or removed.
|
|
12
|
+
*/
|
|
13
|
+
/** ISO-8601 date-time string. */
|
|
14
|
+
export type DateTimeString = string;
|
|
15
|
+
/** Decimal amount as a string ("149.90"); never a float. */
|
|
16
|
+
export type MoneyString = string;
|
|
17
|
+
export interface CursorMeta {
|
|
18
|
+
limit: number;
|
|
19
|
+
hasMore: boolean;
|
|
20
|
+
nextCursor: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface ItemEnvelope<T> {
|
|
23
|
+
success: true;
|
|
24
|
+
data: T;
|
|
25
|
+
}
|
|
26
|
+
export interface ListEnvelope<T> {
|
|
27
|
+
success: true;
|
|
28
|
+
data: T[];
|
|
29
|
+
meta: CursorMeta;
|
|
30
|
+
}
|
|
31
|
+
export interface ErrorEnvelope {
|
|
32
|
+
success: false;
|
|
33
|
+
error: {
|
|
34
|
+
code: string;
|
|
35
|
+
message: string;
|
|
36
|
+
details?: Record<string, unknown>;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface CompanyContext {
|
|
40
|
+
apiVersion: string;
|
|
41
|
+
company: {
|
|
42
|
+
id: string;
|
|
43
|
+
code: string;
|
|
44
|
+
name: string;
|
|
45
|
+
slug: string;
|
|
46
|
+
timezone: string;
|
|
47
|
+
locale: string;
|
|
48
|
+
currency: string;
|
|
49
|
+
country: string | null;
|
|
50
|
+
};
|
|
51
|
+
token: {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
prefix: string;
|
|
55
|
+
scopes: string[];
|
|
56
|
+
expiresAt: DateTimeString | null;
|
|
57
|
+
createdAt: DateTimeString;
|
|
58
|
+
};
|
|
59
|
+
rateLimits: {
|
|
60
|
+
perKey: {
|
|
61
|
+
limit: number;
|
|
62
|
+
windowSeconds: number;
|
|
63
|
+
};
|
|
64
|
+
perCompany: {
|
|
65
|
+
limit: number;
|
|
66
|
+
windowSeconds: number;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export interface UsageCounter {
|
|
71
|
+
used: number;
|
|
72
|
+
/** null means unlimited. */
|
|
73
|
+
limit: number | null;
|
|
74
|
+
}
|
|
75
|
+
export interface Usage {
|
|
76
|
+
plan: {
|
|
77
|
+
name: string;
|
|
78
|
+
tier: string | null;
|
|
79
|
+
status: string;
|
|
80
|
+
isTrial: boolean;
|
|
81
|
+
currentPeriodStart: DateTimeString;
|
|
82
|
+
currentPeriodEnd: DateTimeString;
|
|
83
|
+
};
|
|
84
|
+
usage: {
|
|
85
|
+
aiMessages: UsageCounter;
|
|
86
|
+
teamMembers: UsageCounter;
|
|
87
|
+
aiAgents: UsageCounter;
|
|
88
|
+
automations: UsageCounter;
|
|
89
|
+
webhooks: UsageCounter;
|
|
90
|
+
orders: UsageCounter;
|
|
91
|
+
stores: UsageCounter;
|
|
92
|
+
campaigns: UsageCounter;
|
|
93
|
+
};
|
|
94
|
+
api: {
|
|
95
|
+
requestsLast24h: number;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
export interface ContactRef {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
phone: string | null;
|
|
102
|
+
email: string | null;
|
|
103
|
+
}
|
|
104
|
+
export interface Contact {
|
|
105
|
+
id: string;
|
|
106
|
+
name: string;
|
|
107
|
+
firstName: string | null;
|
|
108
|
+
lastName: string | null;
|
|
109
|
+
phone: string | null;
|
|
110
|
+
email: string | null;
|
|
111
|
+
avatar: string | null;
|
|
112
|
+
status: string;
|
|
113
|
+
source: string;
|
|
114
|
+
lifecycleStage: string;
|
|
115
|
+
label: string | null;
|
|
116
|
+
tags: Array<{
|
|
117
|
+
id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
color: string;
|
|
120
|
+
}>;
|
|
121
|
+
customFields: Record<string, unknown>;
|
|
122
|
+
totalOrders: number;
|
|
123
|
+
totalSpent: MoneyString | null;
|
|
124
|
+
spendCurrency: string | null;
|
|
125
|
+
lastOrderAt: DateTimeString | null;
|
|
126
|
+
lastInteractionAt: DateTimeString | null;
|
|
127
|
+
createdAt: DateTimeString;
|
|
128
|
+
updatedAt: DateTimeString;
|
|
129
|
+
}
|
|
130
|
+
export interface LastMessage {
|
|
131
|
+
id: string;
|
|
132
|
+
direction: string;
|
|
133
|
+
type: string;
|
|
134
|
+
content: string | null;
|
|
135
|
+
createdAt: DateTimeString;
|
|
136
|
+
}
|
|
137
|
+
export interface Conversation {
|
|
138
|
+
id: string;
|
|
139
|
+
contactId: string;
|
|
140
|
+
contact: ContactRef | null;
|
|
141
|
+
channel: {
|
|
142
|
+
id: string;
|
|
143
|
+
type: string;
|
|
144
|
+
name: string;
|
|
145
|
+
};
|
|
146
|
+
status: string;
|
|
147
|
+
priority: string;
|
|
148
|
+
subject: string | null;
|
|
149
|
+
labels: string[];
|
|
150
|
+
unreadCount: number;
|
|
151
|
+
assignedToId: string | null;
|
|
152
|
+
lastMessage: LastMessage | null;
|
|
153
|
+
lastMessageAt: DateTimeString;
|
|
154
|
+
lastInboundAt: DateTimeString | null;
|
|
155
|
+
archivedAt: DateTimeString | null;
|
|
156
|
+
createdAt: DateTimeString;
|
|
157
|
+
updatedAt: DateTimeString;
|
|
158
|
+
}
|
|
159
|
+
export interface Message {
|
|
160
|
+
id: string;
|
|
161
|
+
conversationId: string;
|
|
162
|
+
direction: string;
|
|
163
|
+
type: string;
|
|
164
|
+
content: string | null;
|
|
165
|
+
status: string;
|
|
166
|
+
mediaUrl: string | null;
|
|
167
|
+
isFromAI: boolean;
|
|
168
|
+
sender: {
|
|
169
|
+
id: string;
|
|
170
|
+
name: string;
|
|
171
|
+
} | null;
|
|
172
|
+
sentAt: DateTimeString | null;
|
|
173
|
+
deliveredAt: DateTimeString | null;
|
|
174
|
+
readAt: DateTimeString | null;
|
|
175
|
+
createdAt: DateTimeString;
|
|
176
|
+
}
|
|
177
|
+
export interface OrderItem {
|
|
178
|
+
id: string;
|
|
179
|
+
productId: string | null;
|
|
180
|
+
sku: string | null;
|
|
181
|
+
name: string;
|
|
182
|
+
variant: string | null;
|
|
183
|
+
quantity: number;
|
|
184
|
+
unitPrice: MoneyString;
|
|
185
|
+
totalPrice: MoneyString;
|
|
186
|
+
currency: string;
|
|
187
|
+
imageUrl: string | null;
|
|
188
|
+
}
|
|
189
|
+
export interface Order {
|
|
190
|
+
id: string;
|
|
191
|
+
orderNumber: string;
|
|
192
|
+
externalId: string | null;
|
|
193
|
+
source: string;
|
|
194
|
+
storeId: string | null;
|
|
195
|
+
status: string;
|
|
196
|
+
paymentStatus: string;
|
|
197
|
+
fulfillmentStatus: string;
|
|
198
|
+
confirmationStatus: string;
|
|
199
|
+
currency: string;
|
|
200
|
+
subtotal: MoneyString;
|
|
201
|
+
tax: MoneyString | null;
|
|
202
|
+
shipping: MoneyString | null;
|
|
203
|
+
discount: MoneyString | null;
|
|
204
|
+
total: MoneyString;
|
|
205
|
+
paymentMethod: string | null;
|
|
206
|
+
customerNote: string | null;
|
|
207
|
+
contact: ContactRef | null;
|
|
208
|
+
shippingAddress: Record<string, unknown> | null;
|
|
209
|
+
billingAddress: Record<string, unknown> | null;
|
|
210
|
+
items: OrderItem[];
|
|
211
|
+
tracking: {
|
|
212
|
+
number: string | null;
|
|
213
|
+
carrier: string | null;
|
|
214
|
+
url: string | null;
|
|
215
|
+
};
|
|
216
|
+
orderDate: DateTimeString;
|
|
217
|
+
paidAt: DateTimeString | null;
|
|
218
|
+
cancelledAt: DateTimeString | null;
|
|
219
|
+
createdAt: DateTimeString;
|
|
220
|
+
updatedAt: DateTimeString;
|
|
221
|
+
}
|
|
222
|
+
export interface Product {
|
|
223
|
+
id: string;
|
|
224
|
+
name: string;
|
|
225
|
+
description: string | null;
|
|
226
|
+
sku: string | null;
|
|
227
|
+
price: MoneyString;
|
|
228
|
+
compareAtPrice: MoneyString | null;
|
|
229
|
+
currency: string;
|
|
230
|
+
images: string[];
|
|
231
|
+
isActive: boolean;
|
|
232
|
+
/** null means not tracked. */
|
|
233
|
+
stockQuantity: number | null;
|
|
234
|
+
categoryId: string | null;
|
|
235
|
+
source: string | null;
|
|
236
|
+
externalId: string | null;
|
|
237
|
+
storeId: string | null;
|
|
238
|
+
createdAt: DateTimeString;
|
|
239
|
+
updatedAt: DateTimeString;
|
|
240
|
+
}
|
|
241
|
+
export declare const PAGE_LIMIT_DEFAULT = 20;
|
|
242
|
+
export declare const PAGE_LIMIT_MAX = 100;
|
|
243
|
+
export interface CursorQuery {
|
|
244
|
+
/** 1-100, server default 20. */
|
|
245
|
+
limit?: number;
|
|
246
|
+
/** `meta.nextCursor` of the previous page. Opaque. */
|
|
247
|
+
cursor?: string;
|
|
248
|
+
}
|
|
249
|
+
export declare const CONTACT_STATUSES: readonly ["active", "inactive", "archived"];
|
|
250
|
+
export declare const LIFECYCLE_STAGES: readonly ["lead", "subscriber", "opportunity", "customer", "repeat_customer", "evangelist"];
|
|
251
|
+
export declare const CONVERSATION_STATUSES: readonly ["open", "pending", "closed"];
|
|
252
|
+
export declare const CHANNEL_TYPES: readonly ["whatsapp", "messenger", "instagram", "telegram", "web", "sms", "tiktok"];
|
|
253
|
+
export declare const ORDER_STATUSES: readonly ["pending", "confirmed", "processing", "completed", "cancelled", "refunded"];
|
|
254
|
+
export declare const PAYMENT_STATUSES: readonly ["unpaid", "partially_paid", "paid", "refunded", "partially_refunded"];
|
|
255
|
+
export declare const FULFILLMENT_STATUSES: readonly ["unfulfilled", "partially_fulfilled", "shipped", "delivered", "fulfilled", "returned"];
|
|
256
|
+
export declare const ORDER_SOURCES: readonly ["whatsapp_commerce", "woocommerce", "shopify", "salla", "zid", "easy_orders", "manual"];
|
|
257
|
+
export interface ContactsQuery extends CursorQuery {
|
|
258
|
+
search?: string;
|
|
259
|
+
/** Comma-separated tag ids. */
|
|
260
|
+
tagIds?: string;
|
|
261
|
+
status?: (typeof CONTACT_STATUSES)[number];
|
|
262
|
+
lifecycleStage?: (typeof LIFECYCLE_STAGES)[number];
|
|
263
|
+
createdAfter?: string;
|
|
264
|
+
createdBefore?: string;
|
|
265
|
+
}
|
|
266
|
+
export interface ConversationsQuery extends CursorQuery {
|
|
267
|
+
status?: (typeof CONVERSATION_STATUSES)[number];
|
|
268
|
+
channelType?: (typeof CHANNEL_TYPES)[number];
|
|
269
|
+
contactId?: string;
|
|
270
|
+
assignedToId?: string;
|
|
271
|
+
unread?: boolean;
|
|
272
|
+
search?: string;
|
|
273
|
+
dateFrom?: string;
|
|
274
|
+
dateTo?: string;
|
|
275
|
+
}
|
|
276
|
+
export interface MessagesQuery extends CursorQuery {
|
|
277
|
+
before?: string;
|
|
278
|
+
}
|
|
279
|
+
export interface OrdersQuery extends CursorQuery {
|
|
280
|
+
status?: (typeof ORDER_STATUSES)[number];
|
|
281
|
+
paymentStatus?: (typeof PAYMENT_STATUSES)[number];
|
|
282
|
+
fulfillmentStatus?: (typeof FULFILLMENT_STATUSES)[number];
|
|
283
|
+
source?: (typeof ORDER_SOURCES)[number];
|
|
284
|
+
contactId?: string;
|
|
285
|
+
storeId?: string;
|
|
286
|
+
search?: string;
|
|
287
|
+
dateAfter?: string;
|
|
288
|
+
dateBefore?: string;
|
|
289
|
+
}
|
|
290
|
+
export interface ProductsQuery extends CursorQuery {
|
|
291
|
+
search?: string;
|
|
292
|
+
categoryId?: string;
|
|
293
|
+
isActive?: boolean;
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,iCAAiC;AACjC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,4DAA4D;AAC5D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,WAAW,Y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ire types of the Inboxy public API v1 (`/api/v1/public`).
|
|
3
|
+
*
|
|
4
|
+
* These mirror the zod contract in
|
|
5
|
+
* `apps/api/src/modules/api-public/api-public.contract.ts` field for field.
|
|
6
|
+
* `test/contract-drift.test.ts` parses the shared fixtures with the real zod
|
|
7
|
+
* schemas and compares the route list, so a change on either side fails a
|
|
8
|
+
* test instead of drifting silently.
|
|
9
|
+
*
|
|
10
|
+
* v1 rule (from the contract): a field may be added, never renamed, retyped
|
|
11
|
+
* or removed.
|
|
12
|
+
*/
|
|
13
|
+
// ============================================
|
|
14
|
+
// Query parameters (the contract's query schemas)
|
|
15
|
+
// ============================================
|
|
16
|
+
export const PAGE_LIMIT_DEFAULT = 20;
|
|
17
|
+
export const PAGE_LIMIT_MAX = 100;
|
|
18
|
+
export const CONTACT_STATUSES = ['active', 'inactive', 'archived'];
|
|
19
|
+
export const LIFECYCLE_STAGES = [
|
|
20
|
+
'lead',
|
|
21
|
+
'subscriber',
|
|
22
|
+
'opportunity',
|
|
23
|
+
'customer',
|
|
24
|
+
'repeat_customer',
|
|
25
|
+
'evangelist',
|
|
26
|
+
];
|
|
27
|
+
export const CONVERSATION_STATUSES = ['open', 'pending', 'closed'];
|
|
28
|
+
export const CHANNEL_TYPES = [
|
|
29
|
+
'whatsapp',
|
|
30
|
+
'messenger',
|
|
31
|
+
'instagram',
|
|
32
|
+
'telegram',
|
|
33
|
+
'web',
|
|
34
|
+
'sms',
|
|
35
|
+
'tiktok',
|
|
36
|
+
];
|
|
37
|
+
export const ORDER_STATUSES = [
|
|
38
|
+
'pending',
|
|
39
|
+
'confirmed',
|
|
40
|
+
'processing',
|
|
41
|
+
'completed',
|
|
42
|
+
'cancelled',
|
|
43
|
+
'refunded',
|
|
44
|
+
];
|
|
45
|
+
export const PAYMENT_STATUSES = [
|
|
46
|
+
'unpaid',
|
|
47
|
+
'partially_paid',
|
|
48
|
+
'paid',
|
|
49
|
+
'refunded',
|
|
50
|
+
'partially_refunded',
|
|
51
|
+
];
|
|
52
|
+
export const FULFILLMENT_STATUSES = [
|
|
53
|
+
'unfulfilled',
|
|
54
|
+
'partially_fulfilled',
|
|
55
|
+
'shipped',
|
|
56
|
+
'delivered',
|
|
57
|
+
'fulfilled',
|
|
58
|
+
'returned',
|
|
59
|
+
];
|
|
60
|
+
export const ORDER_SOURCES = [
|
|
61
|
+
'whatsapp_commerce',
|
|
62
|
+
'woocommerce',
|
|
63
|
+
'shopify',
|
|
64
|
+
'salla',
|
|
65
|
+
'zid',
|
|
66
|
+
'easy_orders',
|
|
67
|
+
'manual',
|
|
68
|
+
];
|
|
69
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA+NH,+CAA+C;AAC/C,kDAAkD;AAClD,+CAA+C;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AASlC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAU,CAAC;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM;IACN,YAAY;IACZ,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,YAAY;CACJ,CAAC;AACX,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC;AAC5E,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,UAAU;IACV,WAAW;IACX,WAAW;IACX,UAAU;IACV,KAAK;IACL,KAAK;IACL,QAAQ;CACA,CAAC;AACX,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,WAAW;IACX,YAAY;IACZ,WAAW;IACX,WAAW;IACX,UAAU;CACF,CAAC;AACX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ;IACR,gBAAgB;IAChB,MAAM;IACN,UAAU;IACV,oBAAoB;CACZ,CAAC;AACX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,aAAa;IACb,qBAAqB;IACrB,SAAS;IACT,WAAW;IACX,WAAW;IACX,UAAU;CACF,CAAC;AACX,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,mBAAmB;IACnB,aAAa;IACb,SAAS;IACT,OAAO;IACP,KAAK;IACL,aAAa;IACb,QAAQ;CACA,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inboxychat/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Typed Inboxy API client with read methods, schema-validated confirmed operations and shared local credentials.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"!dist/.tsbuildinfo",
|
|
18
|
+
"!dist/**/*.tsbuildinfo"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=20.3.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/node": "^20.10.0",
|
|
25
|
+
"typescript": "^5.3.0",
|
|
26
|
+
"vitest": "^4.0.16"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://inboxy.chat/developers/sdk",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"zod": "3.25.76"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc -p tsconfig.build.json",
|
|
37
|
+
"type-check": "tsc -p tsconfig.json --noEmit",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"clean": "rm -rf dist .turbo"
|
|
40
|
+
}
|
|
6
41
|
}
|