arky-sdk 0.4.3 → 0.4.4
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 +0 -14
- package/dist/index.cjs +6 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js +6 -13
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +9 -1
- package/dist/types.d.ts +9 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@ Arky is an **all-in-one platform** that gives you everything you need to run an
|
|
|
11
11
|
- 📅 **Booking System** - Manage services, providers, and reservations with availability calendars
|
|
12
12
|
- 📧 **Newsletters** - Send newsletters to subscribers with built-in email delivery
|
|
13
13
|
- 👥 **User Management** - Authentication, roles, permissions, and user profiles
|
|
14
|
-
- 📊 **Analytics** - Track business metrics and performance
|
|
15
14
|
- 💳 **Payments** - Integrated Stripe checkout and promo codes
|
|
16
15
|
|
|
17
16
|
**Build any online business:** SaaS products, e-commerce stores, booking platforms, content sites, newsletters, or multi-tenant marketplaces.
|
|
@@ -276,19 +275,6 @@ await arky.notification.updateNotifications({})
|
|
|
276
275
|
const stats = await arky.notification.getDeliveryStats({})
|
|
277
276
|
```
|
|
278
277
|
|
|
279
|
-
### Analytics
|
|
280
|
-
```typescript
|
|
281
|
-
// Query metrics
|
|
282
|
-
const data = await arky.analytics.getAnalytics({
|
|
283
|
-
start: '2024-01-01',
|
|
284
|
-
end: '2024-12-31',
|
|
285
|
-
metrics: ['revenue', 'orders', 'users'],
|
|
286
|
-
})
|
|
287
|
-
|
|
288
|
-
// Health check
|
|
289
|
-
const health = await arky.analytics.getAnalyticsHealth({})
|
|
290
|
-
```
|
|
291
|
-
|
|
292
278
|
### Roles & Permissions
|
|
293
279
|
```typescript
|
|
294
280
|
await arky.role.createRole({ name, permissions })
|
package/dist/index.cjs
CHANGED
|
@@ -573,18 +573,6 @@ var createPromoCodeApi = (apiConfig) => {
|
|
|
573
573
|
};
|
|
574
574
|
};
|
|
575
575
|
|
|
576
|
-
// src/api/analytics.ts
|
|
577
|
-
var createAnalyticsApi = (apiConfig) => {
|
|
578
|
-
return {
|
|
579
|
-
async getAnalytics(params, options) {
|
|
580
|
-
return apiConfig.httpClient.get(`/v1/analytics/${apiConfig.businessId}`, {
|
|
581
|
-
...options,
|
|
582
|
-
params
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
};
|
|
587
|
-
|
|
588
576
|
// src/utils/blocks.ts
|
|
589
577
|
function getBlockLabel(block, locale = "en") {
|
|
590
578
|
if (!block) return "";
|
|
@@ -1439,6 +1427,12 @@ var createAudienceApi = (apiConfig) => {
|
|
|
1439
1427
|
}
|
|
1440
1428
|
}
|
|
1441
1429
|
);
|
|
1430
|
+
},
|
|
1431
|
+
async revokeSubscription(params, options) {
|
|
1432
|
+
return apiConfig.httpClient.delete(
|
|
1433
|
+
`/v1/businesses/${apiConfig.businessId}/audiences/${params.id}/subscribers/${params.accountId}`,
|
|
1434
|
+
options
|
|
1435
|
+
);
|
|
1442
1436
|
}
|
|
1443
1437
|
};
|
|
1444
1438
|
};
|
|
@@ -1858,7 +1852,6 @@ async function createArkySDK(config) {
|
|
|
1858
1852
|
media: createMediaApi(apiConfig),
|
|
1859
1853
|
notification: createNotificationApi(apiConfig),
|
|
1860
1854
|
promoCode: createPromoCodeApi(apiConfig),
|
|
1861
|
-
analytics: createAnalyticsApi(apiConfig),
|
|
1862
1855
|
cms: createCmsApi(apiConfig),
|
|
1863
1856
|
eshop: createEshopApi(apiConfig),
|
|
1864
1857
|
reservation: createReservationApi(apiConfig),
|