@infuro/cms-core 1.0.31 → 1.0.34

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.
Files changed (41) hide show
  1. package/README.md +12 -8
  2. package/dist/admin.cjs +1907 -1144
  3. package/dist/admin.cjs.map +1 -1
  4. package/dist/admin.d.cts +7 -2
  5. package/dist/admin.d.ts +7 -2
  6. package/dist/admin.js +1955 -1191
  7. package/dist/admin.js.map +1 -1
  8. package/dist/api.cjs +2704 -914
  9. package/dist/api.cjs.map +1 -1
  10. package/dist/api.d.cts +1 -1
  11. package/dist/api.d.ts +1 -1
  12. package/dist/api.js +2664 -875
  13. package/dist/api.js.map +1 -1
  14. package/dist/auth.cjs +251 -23
  15. package/dist/auth.cjs.map +1 -1
  16. package/dist/auth.d.cts +53 -22
  17. package/dist/auth.d.ts +53 -22
  18. package/dist/auth.js +240 -23
  19. package/dist/auth.js.map +1 -1
  20. package/dist/cli.cjs +42 -2
  21. package/dist/cli.cjs.map +1 -1
  22. package/dist/cli.js +42 -2
  23. package/dist/cli.js.map +1 -1
  24. package/dist/{index-BcMRGNjS.d.cts → index-Bf5GO8fu.d.cts} +4 -3
  25. package/dist/{index-Bda8D1Rm.d.ts → index-DOiJuMQA.d.ts} +4 -3
  26. package/dist/index.cjs +3408 -1284
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +121 -35
  29. package/dist/index.d.ts +121 -35
  30. package/dist/index.js +3334 -1226
  31. package/dist/index.js.map +1 -1
  32. package/dist/migrations/1778660000003-AddQrTokenToOrders.ts +32 -0
  33. package/dist/migrations/1778660000004-CreateCustomerAndCustomerContacts.ts +99 -0
  34. package/dist/migrations/1778660000005-AddCustomerIdToVendorCustomers.ts +39 -0
  35. package/dist/migrations/1778660000006-UpdateVendorCustomersContactNullable.ts +36 -0
  36. package/dist/migrations/1778660000007-VendorOwnerCustomerContactsPermission.ts +39 -0
  37. package/dist/migrations/1779100000000-ChatConversationLeadEmailSent.ts +16 -0
  38. package/dist/migrations/1779200000000-LlmAgentScope.ts +72 -0
  39. package/dist/migrations/1779300000000-VendorOwnerContactsPermission.ts +39 -0
  40. package/dist/migrations/1779400000000-AddCustomerContactIdToOrders.ts +33 -0
  41. package/package.json +5 -3
package/README.md CHANGED
@@ -390,12 +390,13 @@ const cmsMiddleware = createCmsMiddleware({
390
390
  },
391
391
  });
392
392
 
393
- export function middleware(request: NextRequest) {
394
- const result = cmsMiddleware({
393
+ export async function middleware(request: NextRequest) {
394
+ const result = await cmsMiddleware({
395
395
  nextUrl: request.nextUrl,
396
396
  url: request.url,
397
397
  method: request.method,
398
398
  cookies: request.cookies,
399
+ req: request,
399
400
  });
400
401
 
401
402
  if (result.type === 'next') return NextResponse.next();
@@ -693,14 +694,17 @@ The CSS variables are injected by the admin layout at runtime. Your website's ow
693
694
  | `NEXTAUTH_URL` | Yes | App base URL |
694
695
  | `STORAGE_TYPE` | No | `s3` or `local` (default: local) |
695
696
  | `AWS_BUCKET_NAME` | If S3 | S3 bucket name |
696
- | `AWS_REGION` | If S3/SES | AWS region |
697
- | `AWS_ACCESS_KEY_ID` | If S3/SES | AWS access key |
698
- | `AWS_SECRET_ACCESS_KEY` | If S3/SES | AWS secret key |
697
+ | `AWS_REGION` | If S3 | Default AWS region |
698
+ | `AWS_SES_REGION` | If `SMTP_TYPE=AWS` | SES region for email (required when `AWS_REGION` has no SMTP, e.g. use `ap-south-1` if `AWS_REGION=ap-south-2`) |
699
+ | `AWS_ACCESS_KEY_ID` | If S3 / SES API | IAM access key (not SES SMTP username) |
700
+ | `AWS_SECRET_ACCESS_KEY` | If S3 / SES API | IAM secret key (not SES SMTP password) |
699
701
  | `SMTP_TYPE` | No | `SMTP`, `AWS`, or `GMAIL` |
700
- | `SMTP_FROM` | If email | Sender email |
702
+ | `SMTP_FROM` | If email | Sender email (must be verified in SES) |
701
703
  | `SMTP_TO` | If email | Default recipient |
702
- | `SMTP_USER` | If SMTP | SMTP username |
703
- | `SMTP_PASSWORD` | If SMTP | SMTP password |
704
+ | `SMTP_USER` | If SMTP / `SMTP_TYPE=AWS` | SMTP username; for AWS use **SES SMTP credentials** from the SES console |
705
+ | `SMTP_PASSWORD` | If SMTP / `SMTP_TYPE=AWS` | SMTP password; for AWS use the SES SMTP password (not the IAM secret) |
706
+ | `SMTP_HOST` | No | Override SMTP host (optional for `AWS`; default is SES SMTP endpoint) |
707
+ | `SMTP_PORT` | No | Default `587` for AWS SES SMTP |
704
708
  | `GOOGLE_ANALYTICS_PRIVATE_KEY` | If analytics | GA service account key |
705
709
  | `GOOGLE_ANALYTICS_CLIENT_EMAIL` | If analytics | GA service account email |
706
710
  | `GOOGLE_ANALYTICS_VIEW_ID` | If analytics | GA property/view ID |