arky-sdk 0.7.118 → 0.7.119

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 CHANGED
@@ -342,7 +342,7 @@ await arky.utils.injectSvgIntoElement(mediaBlock, element, 'custom-class')
342
342
 
343
343
  - 🏪 **E-commerce shops** - Product catalogs, shopping carts, checkout
344
344
  - 📰 **Content websites** - Blogs, documentation, marketing sites
345
- - 📅 **Booking platforms** - Appointment scheduling, service bookings
345
+ - 📅 **Service businesses** - Appointment scheduling, service orders
346
346
  - 📬 **Newsletter platforms** - Subscriber management, email campaigns
347
347
  - 🏢 **SaaS products** - Multi-tenant apps with user auth and billing
348
348
  - 🛍️ **Marketplaces** - Multi-vendor platforms with payments
@@ -393,7 +393,7 @@ When adding a new SDK method, follow this checklist so the API surface stays typ
393
393
  2. **Define the request params** in `src/types/api.ts`. Mirror the Rust DTO in `server/core/src/{module}/types/commands.rs` field-for-field. Two exceptions: `store_id?: string` and `market?: string` are optional in TS (the SDK auto-fills both from `apiConfig.storeId` and `apiConfig.market`). Do **not** use `[key: string]: any` index signatures.
394
394
  3. **Annotate the SDK method's return type** using the matching entity from `src/types/index.ts`.
395
395
  4. **Pass the response generic to the HTTP call**: `apiConfig.httpClient.post<EntityType>(...)`, `apiConfig.httpClient.get<PaginatedResponse<EntityType>>(...)`, etc. Never rely on inference.
396
- 5. **Inject `market` from `apiConfig`**: when a body needs a `market` field, write `{ market: apiConfig.market, ...payload }`. Never hardcode `"booking"`, `"eshop"`, or any other market string in `src/api/*.ts`.
396
+ 5. **Inject `market` from `apiConfig`**: when a body needs a `market` field, write `{ market: apiConfig.market, ...payload }`. Never hardcode `"default"`, `"eshop"`, or any other market string in `src/api/*.ts`.
397
397
  6. **Re-export the entity** from `src/index.ts` if consumers (admin, storefront) will import it.
398
398
  7. **Bump `SDK_VERSION`** in `src/index.ts` and the `version` in `package.json`. Patch only.
399
399