@swatcha/mcp-server 0.1.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/dist/apps/image-picker-spike.d.ts +2 -0
- package/dist/apps/image-picker-spike.d.ts.map +1 -0
- package/dist/apps/image-picker-spike.js +100 -0
- package/dist/apps/image-picker-spike.js.map +1 -0
- package/dist/apps/src/apps/image-picker-spike.html +156 -0
- package/dist/apps/src/apps/image-picker.html +130 -0
- package/dist/client.d.ts +87 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +105 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +590 -0
- package/dist/index.js.map +1 -0
- package/package.json +38 -0
- package/src/apps/image-picker.html +16 -0
- package/src/apps/image-picker.tsx +423 -0
- package/src/client.ts +187 -0
- package/src/index.ts +772 -0
- package/tsconfig.app.json +16 -0
- package/tsconfig.json +18 -0
- package/vite.config.ts +16 -0
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
interface ApiResponse<T = unknown> {
|
|
2
|
+
data?: T;
|
|
3
|
+
error?: {
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
details?: unknown;
|
|
7
|
+
};
|
|
8
|
+
pagination?: {
|
|
9
|
+
cursor: string | null;
|
|
10
|
+
hasMore: boolean;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare class SwatchaClient {
|
|
14
|
+
private baseUrl;
|
|
15
|
+
private apiKey;
|
|
16
|
+
constructor(baseUrl: string, apiKey: string);
|
|
17
|
+
private request;
|
|
18
|
+
listSelections(): Promise<ApiResponse<unknown>>;
|
|
19
|
+
getSelection(id: string): Promise<ApiResponse<unknown>>;
|
|
20
|
+
createSelection(data: {
|
|
21
|
+
name: string;
|
|
22
|
+
clientId: string;
|
|
23
|
+
status?: string;
|
|
24
|
+
notes?: string;
|
|
25
|
+
siteAddress?: string;
|
|
26
|
+
}): Promise<ApiResponse<unknown>>;
|
|
27
|
+
updateSelection(id: string, data: {
|
|
28
|
+
name?: string;
|
|
29
|
+
status?: string;
|
|
30
|
+
notes?: string;
|
|
31
|
+
siteAddress?: string;
|
|
32
|
+
}): Promise<ApiResponse<unknown>>;
|
|
33
|
+
deleteSelection(id: string): Promise<ApiResponse<unknown>>;
|
|
34
|
+
listSelectionProducts(selectionId: string): Promise<ApiResponse<unknown>>;
|
|
35
|
+
addProductToSelection(selectionId: string, data: {
|
|
36
|
+
productId: string;
|
|
37
|
+
quantity?: string;
|
|
38
|
+
location?: string;
|
|
39
|
+
locationId?: string;
|
|
40
|
+
notes?: string;
|
|
41
|
+
}): Promise<ApiResponse<unknown>>;
|
|
42
|
+
updateSelectionProduct(selectionId: string, productId: string, data: {
|
|
43
|
+
quantity?: string;
|
|
44
|
+
location?: string;
|
|
45
|
+
locationId?: string;
|
|
46
|
+
notes?: string;
|
|
47
|
+
}): Promise<ApiResponse<unknown>>;
|
|
48
|
+
removeProductFromSelection(selectionId: string, productId: string): Promise<ApiResponse<unknown>>;
|
|
49
|
+
listProducts(query?: string): Promise<ApiResponse<unknown>>;
|
|
50
|
+
getProduct(id: string): Promise<ApiResponse<unknown>>;
|
|
51
|
+
createProduct(data: {
|
|
52
|
+
name: string;
|
|
53
|
+
sku?: string;
|
|
54
|
+
price?: number;
|
|
55
|
+
supplierId?: string;
|
|
56
|
+
imageUrl?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
}): Promise<ApiResponse<unknown>>;
|
|
59
|
+
updateProduct(id: string, data: {
|
|
60
|
+
name?: string;
|
|
61
|
+
sku?: string;
|
|
62
|
+
price?: number;
|
|
63
|
+
supplierId?: string;
|
|
64
|
+
imageUrl?: string;
|
|
65
|
+
}): Promise<ApiResponse<unknown>>;
|
|
66
|
+
listClients(): Promise<ApiResponse<unknown>>;
|
|
67
|
+
createClient(data: {
|
|
68
|
+
name: string;
|
|
69
|
+
}): Promise<ApiResponse<unknown>>;
|
|
70
|
+
listSuppliers(): Promise<ApiResponse<unknown>>;
|
|
71
|
+
createSupplier(data: {
|
|
72
|
+
name: string;
|
|
73
|
+
websiteUrl?: string;
|
|
74
|
+
}): Promise<ApiResponse<unknown>>;
|
|
75
|
+
listLocations(): Promise<ApiResponse<unknown>>;
|
|
76
|
+
createLocation(data: {
|
|
77
|
+
name: string;
|
|
78
|
+
}): Promise<ApiResponse<unknown>>;
|
|
79
|
+
getQuota(): Promise<ApiResponse<unknown>>;
|
|
80
|
+
searchProductImages(productName: string, options?: {
|
|
81
|
+
supplier?: string;
|
|
82
|
+
supplierUrl?: string;
|
|
83
|
+
limit?: number;
|
|
84
|
+
}): Promise<ApiResponse<unknown>>;
|
|
85
|
+
}
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,UAAU,WAAW,CAAC,CAAC,GAAG,OAAO;IAC/B,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC7D,UAAU,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CAC1D;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAS;gBAEX,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;YAK7B,OAAO;IA2Bf,cAAc;IAId,YAAY,CAAC,EAAE,EAAE,MAAM;IAIvB,eAAe,CAAC,IAAI,EAAE;QAC1B,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAA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AAC,EAAE,MAAM,CAAC;KACtB;IAIK,aAAa,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE;QACJ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAMG,WAAW;IAIX,YAAY,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAKnC,aAAa;IAIb,cAAc,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;IAK1D,aAAa;IAIb,cAAc,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAKrC,QAAQ;IAKR,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CAOF"}
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export class SwatchaClient {
|
|
2
|
+
baseUrl;
|
|
3
|
+
apiKey;
|
|
4
|
+
constructor(baseUrl, apiKey) {
|
|
5
|
+
this.baseUrl = baseUrl.replace(/\/$/, '');
|
|
6
|
+
this.apiKey = apiKey;
|
|
7
|
+
}
|
|
8
|
+
async request(method, path, body) {
|
|
9
|
+
const url = `${this.baseUrl}/api/v1${path}`;
|
|
10
|
+
const headers = {
|
|
11
|
+
Authorization: `Bearer ${this.apiKey}`,
|
|
12
|
+
'Content-Type': 'application/json',
|
|
13
|
+
};
|
|
14
|
+
const response = await fetch(url, {
|
|
15
|
+
method,
|
|
16
|
+
headers,
|
|
17
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
18
|
+
});
|
|
19
|
+
const json = (await response.json());
|
|
20
|
+
if (!response.ok) {
|
|
21
|
+
throw new Error(json.error?.message || `API error: ${response.status}`);
|
|
22
|
+
}
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
// Selections
|
|
26
|
+
async listSelections() {
|
|
27
|
+
return this.request('GET', '/selections');
|
|
28
|
+
}
|
|
29
|
+
async getSelection(id) {
|
|
30
|
+
return this.request('GET', `/selections/${id}`);
|
|
31
|
+
}
|
|
32
|
+
async createSelection(data) {
|
|
33
|
+
return this.request('POST', '/selections', data);
|
|
34
|
+
}
|
|
35
|
+
async updateSelection(id, data) {
|
|
36
|
+
return this.request('PATCH', `/selections/${id}`, data);
|
|
37
|
+
}
|
|
38
|
+
async deleteSelection(id) {
|
|
39
|
+
return this.request('DELETE', `/selections/${id}`);
|
|
40
|
+
}
|
|
41
|
+
// Selection Products
|
|
42
|
+
async listSelectionProducts(selectionId) {
|
|
43
|
+
return this.request('GET', `/selections/${selectionId}/products`);
|
|
44
|
+
}
|
|
45
|
+
async addProductToSelection(selectionId, data) {
|
|
46
|
+
return this.request('POST', `/selections/${selectionId}/products`, data);
|
|
47
|
+
}
|
|
48
|
+
async updateSelectionProduct(selectionId, productId, data) {
|
|
49
|
+
return this.request('PATCH', `/selections/${selectionId}/products/${productId}`, data);
|
|
50
|
+
}
|
|
51
|
+
async removeProductFromSelection(selectionId, productId) {
|
|
52
|
+
return this.request('DELETE', `/selections/${selectionId}/products/${productId}`);
|
|
53
|
+
}
|
|
54
|
+
// Products (Catalog)
|
|
55
|
+
async listProducts(query) {
|
|
56
|
+
const qs = query ? `?q=${encodeURIComponent(query)}` : '';
|
|
57
|
+
return this.request('GET', `/products${qs}`);
|
|
58
|
+
}
|
|
59
|
+
async getProduct(id) {
|
|
60
|
+
return this.request('GET', `/products/${id}`);
|
|
61
|
+
}
|
|
62
|
+
async createProduct(data) {
|
|
63
|
+
return this.request('POST', '/products', data);
|
|
64
|
+
}
|
|
65
|
+
async updateProduct(id, data) {
|
|
66
|
+
return this.request('PATCH', `/products/${id}`, data);
|
|
67
|
+
}
|
|
68
|
+
// Clients
|
|
69
|
+
async listClients() {
|
|
70
|
+
return this.request('GET', '/clients');
|
|
71
|
+
}
|
|
72
|
+
async createClient(data) {
|
|
73
|
+
return this.request('POST', '/clients', data);
|
|
74
|
+
}
|
|
75
|
+
// Suppliers
|
|
76
|
+
async listSuppliers() {
|
|
77
|
+
return this.request('GET', '/suppliers');
|
|
78
|
+
}
|
|
79
|
+
async createSupplier(data) {
|
|
80
|
+
return this.request('POST', '/suppliers', data);
|
|
81
|
+
}
|
|
82
|
+
// Locations
|
|
83
|
+
async listLocations() {
|
|
84
|
+
return this.request('GET', '/locations');
|
|
85
|
+
}
|
|
86
|
+
async createLocation(data) {
|
|
87
|
+
return this.request('POST', '/locations', data);
|
|
88
|
+
}
|
|
89
|
+
// Quota
|
|
90
|
+
async getQuota() {
|
|
91
|
+
return this.request('GET', '/quota');
|
|
92
|
+
}
|
|
93
|
+
// Image Search
|
|
94
|
+
async searchProductImages(productName, options) {
|
|
95
|
+
const params = new URLSearchParams({ product: productName });
|
|
96
|
+
if (options?.supplier)
|
|
97
|
+
params.append('supplier', options.supplier);
|
|
98
|
+
if (options?.supplierUrl)
|
|
99
|
+
params.append('supplierUrl', options.supplierUrl);
|
|
100
|
+
if (options?.limit)
|
|
101
|
+
params.append('limit', String(options.limit));
|
|
102
|
+
return this.request('GET', `/images/search?${params}`);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,aAAa;IAChB,OAAO,CAAS;IAChB,MAAM,CAAS;IAEvB,YAAY,OAAe,EAAE,MAAc;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAA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