arky-sdk 0.3.24 → 0.3.25
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 -16
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -303,22 +303,6 @@ import type {
|
|
|
303
303
|
} from 'arky-sdk'
|
|
304
304
|
```
|
|
305
305
|
|
|
306
|
-
## Migration from Newsletter Module
|
|
307
|
-
|
|
308
|
-
Newsletters are now CMS Collections with `type: 'NEWSLETTER'`:
|
|
309
|
-
|
|
310
|
-
```typescript
|
|
311
|
-
// Old (deprecated)
|
|
312
|
-
await sdk.newsletter.subscribe({ newsletterId, email })
|
|
313
|
-
|
|
314
|
-
// New
|
|
315
|
-
await sdk.cms.subscribeToCollection({
|
|
316
|
-
collectionId: newsletterId,
|
|
317
|
-
email,
|
|
318
|
-
planId: 'plan_free', // Required
|
|
319
|
-
})
|
|
320
|
-
```
|
|
321
|
-
|
|
322
306
|
## License
|
|
323
307
|
|
|
324
308
|
MIT
|
package/dist/index.cjs
CHANGED