katyayani-core-mcp 1.0.0 → 1.0.2
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/docs.js +15 -3
- package/package.json +1 -1
package/dist/docs.js
CHANGED
|
@@ -69,9 +69,21 @@ Use a stable, readable userId (e.g. '+916261414316'), not a random UUID.`,
|
|
|
69
69
|
KatyayaniCore.track('button_clicked', properties: {'screen': 'home'});
|
|
70
70
|
KatyayaniCore.screenView('ProductPage');
|
|
71
71
|
|
|
72
|
-
Ecommerce
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
Ecommerce key-events: viewItem, addToCart, removeFromCart, viewCart, beginCheckout, addPaymentInfo,
|
|
73
|
+
purchase, refund (+ engagement: search, signUp, login).
|
|
74
|
+
|
|
75
|
+
FLUTTER v2.0.0+ uses NAMED parameters and the typed KCItem class (sku/qty/rate required; extra
|
|
76
|
+
category tiers via otherCategories → other_category_1..n; any more fields via extra). value
|
|
77
|
+
auto-computes from items (sum qty*rate) if omitted; params takes any custom key-values.
|
|
78
|
+
final items = [KCItem(sku:'SKU-NEEM-1L', qty:2, rate:499, name:'Neem Oil 1L', category:'Pesticides')];
|
|
79
|
+
KatyayaniCore.purchase(transactionId:'ORD-016', items:items, tax:70, coupon:'SAVE10',
|
|
80
|
+
params:{'salesman_id':'EMP-42','payment_mode':'COD'});
|
|
81
|
+
REACT NATIVE v2.0.0+ mirrors this with an options object + KCItem:
|
|
82
|
+
KatyayaniCore.purchase({ transactionId:'ORD-016', items:[{sku:'SKU1', qty:2, rate:499}], coupon:'SAVE10' });
|
|
83
|
+
Plus search(searchTerm)/signUp(method)/login(method). Exports the KCItem type.
|
|
84
|
+
WEB v1.2.0+ accepts the same item shape (sku/qty/rate/subCategory/otherCategories/extra) — items
|
|
85
|
+
auto-normalize and value auto-computes: nc('purchase', {transaction_id:'ORD1', items:[{sku,qty,rate}]}).
|
|
86
|
+
Web also has nc('search'|'signUp'|'login', {...}).
|
|
75
87
|
|
|
76
88
|
track() = product analytics (Analytics/Events pages). For revenue attribution use capturePayment().`,
|
|
77
89
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "katyayani-core-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "MCP server for Katyayani Core (Customer Engagement Platform). Ask anything about your CEP — users, events, attribution (Meta/Google/organic/referral), revenue/ROAS, referrals, funnels — plus full SDK & platform how-to docs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|