@neetru/sdk 3.0.1 → 3.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/auth.cjs +61 -13
  3. package/dist/auth.cjs.map +1 -1
  4. package/dist/auth.d.cts +2 -2
  5. package/dist/auth.d.ts +2 -2
  6. package/dist/auth.mjs +61 -13
  7. package/dist/auth.mjs.map +1 -1
  8. package/dist/catalog.d.cts +2 -2
  9. package/dist/catalog.d.ts +2 -2
  10. package/dist/checkout.d.cts +2 -2
  11. package/dist/checkout.d.ts +2 -2
  12. package/dist/{collection-ref-DqAAhuhX.d.cts → collection-ref-BDdfD87k.d.cts} +118 -9
  13. package/dist/{collection-ref-DqAAhuhX.d.ts → collection-ref-BDdfD87k.d.ts} +118 -9
  14. package/dist/db-react.d.cts +1 -1
  15. package/dist/db-react.d.ts +1 -1
  16. package/dist/db.cjs +81 -16
  17. package/dist/db.cjs.map +1 -1
  18. package/dist/db.d.cts +2 -2
  19. package/dist/db.d.ts +2 -2
  20. package/dist/db.mjs +76 -17
  21. package/dist/db.mjs.map +1 -1
  22. package/dist/entitlements.d.cts +2 -2
  23. package/dist/entitlements.d.ts +2 -2
  24. package/dist/index.cjs +81 -16
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.mjs +76 -17
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/mocks.d.cts +2 -2
  31. package/dist/mocks.d.ts +2 -2
  32. package/dist/notifications.d.cts +2 -2
  33. package/dist/notifications.d.ts +2 -2
  34. package/dist/react.d.cts +2 -2
  35. package/dist/react.d.ts +2 -2
  36. package/dist/support.d.cts +2 -2
  37. package/dist/support.d.ts +2 -2
  38. package/dist/telemetry.d.cts +2 -2
  39. package/dist/telemetry.d.ts +2 -2
  40. package/dist/{types-DALIhcbq.d.ts → types-D7zVkO3n.d.ts} +1 -1
  41. package/dist/{types-Lfd3LiAF.d.cts → types-Dc4bjrrt.d.cts} +1 -1
  42. package/dist/usage.d.cts +2 -2
  43. package/dist/usage.d.ts +2 -2
  44. package/dist/webhooks.d.cts +2 -2
  45. package/dist/webhooks.d.ts +2 -2
  46. package/package.json +1 -1
package/dist/mocks.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { x as NeetruUser, A as AuthNamespace, J as SignInOptions, a as AuthStateListener, p as NeetruDb, w as NeetruSqlClient, E as EntitlementCheck, O as SupportNamespace, i as CreateTicketInput, U as SupportTicket, _ as UsageNamespace, $ as UsageQuota } from './types-Lfd3LiAF.cjs';
2
- import { c as DbCollectionRef, S as SyncState, U as Unsubscribe, C as ConflictRecord } from './collection-ref-DqAAhuhX.cjs';
1
+ import { x as NeetruUser, A as AuthNamespace, J as SignInOptions, a as AuthStateListener, p as NeetruDb, w as NeetruSqlClient, E as EntitlementCheck, O as SupportNamespace, i as CreateTicketInput, U as SupportTicket, _ as UsageNamespace, $ as UsageQuota } from './types-Dc4bjrrt.cjs';
2
+ import { c as DbCollectionRef, k as SyncState, U as Unsubscribe, C as ConflictRecord } from './collection-ref-BDdfD87k.cjs';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.cjs';
5
5
 
package/dist/mocks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { x as NeetruUser, A as AuthNamespace, J as SignInOptions, a as AuthStateListener, p as NeetruDb, w as NeetruSqlClient, E as EntitlementCheck, O as SupportNamespace, i as CreateTicketInput, U as SupportTicket, _ as UsageNamespace, $ as UsageQuota } from './types-DALIhcbq.js';
2
- import { c as DbCollectionRef, S as SyncState, U as Unsubscribe, C as ConflictRecord } from './collection-ref-DqAAhuhX.js';
1
+ import { x as NeetruUser, A as AuthNamespace, J as SignInOptions, a as AuthStateListener, p as NeetruDb, w as NeetruSqlClient, E as EntitlementCheck, O as SupportNamespace, i as CreateTicketInput, U as SupportTicket, _ as UsageNamespace, $ as UsageQuota } from './types-D7zVkO3n.js';
2
+ import { c as DbCollectionRef, k as SyncState, U as Unsubscribe, C as ConflictRecord } from './collection-ref-BDdfD87k.js';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.js';
5
5
 
@@ -1,4 +1,4 @@
1
- export { L as ListNotificationsOptions, m as MockNotifications, y as NotificationScopeOptions, z as NotificationsNamespace, B as ProductNotification, F as ProductNotificationSeverity, S as SendNotificationInput, a8 as createNotificationsNamespace } from './types-Lfd3LiAF.cjs';
2
- import './collection-ref-DqAAhuhX.cjs';
1
+ export { L as ListNotificationsOptions, m as MockNotifications, y as NotificationScopeOptions, z as NotificationsNamespace, B as ProductNotification, F as ProductNotificationSeverity, S as SendNotificationInput, a8 as createNotificationsNamespace } from './types-Dc4bjrrt.cjs';
2
+ import './collection-ref-BDdfD87k.cjs';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.cjs';
@@ -1,4 +1,4 @@
1
- export { L as ListNotificationsOptions, m as MockNotifications, y as NotificationScopeOptions, z as NotificationsNamespace, B as ProductNotification, F as ProductNotificationSeverity, S as SendNotificationInput, a8 as createNotificationsNamespace } from './types-DALIhcbq.js';
2
- import './collection-ref-DqAAhuhX.js';
1
+ export { L as ListNotificationsOptions, m as MockNotifications, y as NotificationScopeOptions, z as NotificationsNamespace, B as ProductNotification, F as ProductNotificationSeverity, S as SendNotificationInput, a8 as createNotificationsNamespace } from './types-D7zVkO3n.js';
2
+ import './collection-ref-BDdfD87k.js';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.js';
package/dist/react.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { N as NeetruClient, g as CheckoutStartResult } from './types-Lfd3LiAF.cjs';
3
- import './collection-ref-DqAAhuhX.cjs';
2
+ import { N as NeetruClient, g as CheckoutStartResult } from './types-Dc4bjrrt.cjs';
3
+ import './collection-ref-BDdfD87k.cjs';
4
4
  import 'drizzle-orm/node-postgres';
5
5
  import './errors.cjs';
6
6
 
package/dist/react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { N as NeetruClient, g as CheckoutStartResult } from './types-DALIhcbq.js';
3
- import './collection-ref-DqAAhuhX.js';
2
+ import { N as NeetruClient, g as CheckoutStartResult } from './types-D7zVkO3n.js';
3
+ import './collection-ref-BDdfD87k.js';
4
4
  import 'drizzle-orm/node-postgres';
5
5
  import './errors.js';
6
6
 
@@ -1,5 +1,5 @@
1
- import { I as ResolvedConfig, O as SupportNamespace } from './types-Lfd3LiAF.cjs';
2
- import './collection-ref-DqAAhuhX.cjs';
1
+ import { I as ResolvedConfig, O as SupportNamespace } from './types-Dc4bjrrt.cjs';
2
+ import './collection-ref-BDdfD87k.cjs';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.cjs';
5
5
 
package/dist/support.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as ResolvedConfig, O as SupportNamespace } from './types-DALIhcbq.js';
2
- import './collection-ref-DqAAhuhX.js';
1
+ import { I as ResolvedConfig, O as SupportNamespace } from './types-D7zVkO3n.js';
2
+ import './collection-ref-BDdfD87k.js';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.js';
5
5
 
@@ -1,5 +1,5 @@
1
- import { I as ResolvedConfig, W as TelemetryEventInput, V as TelemetryEventAck, Y as TelemetryLogInput, X as TelemetryLogAck } from './types-Lfd3LiAF.cjs';
2
- import './collection-ref-DqAAhuhX.cjs';
1
+ import { I as ResolvedConfig, W as TelemetryEventInput, V as TelemetryEventAck, Y as TelemetryLogInput, X as TelemetryLogAck } from './types-Dc4bjrrt.cjs';
2
+ import './collection-ref-BDdfD87k.cjs';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.cjs';
5
5
 
@@ -1,5 +1,5 @@
1
- import { I as ResolvedConfig, W as TelemetryEventInput, V as TelemetryEventAck, Y as TelemetryLogInput, X as TelemetryLogAck } from './types-DALIhcbq.js';
2
- import './collection-ref-DqAAhuhX.js';
1
+ import { I as ResolvedConfig, W as TelemetryEventInput, V as TelemetryEventAck, Y as TelemetryLogInput, X as TelemetryLogAck } from './types-D7zVkO3n.js';
2
+ import './collection-ref-BDdfD87k.js';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.js';
5
5
 
@@ -1,4 +1,4 @@
1
- import { c as DbCollectionRef$1, S as SyncState, U as Unsubscribe, C as ConflictRecord, R as RealtimeTransport } from './collection-ref-DqAAhuhX.js';
1
+ import { c as DbCollectionRef$1, k as SyncState, U as Unsubscribe, C as ConflictRecord, R as RealtimeTransport } from './collection-ref-BDdfD87k.js';
2
2
  import { NodePgDatabase } from 'drizzle-orm/node-postgres';
3
3
  import { NeetruError } from './errors.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { c as DbCollectionRef$1, S as SyncState, U as Unsubscribe, C as ConflictRecord, R as RealtimeTransport } from './collection-ref-DqAAhuhX.cjs';
1
+ import { c as DbCollectionRef$1, k as SyncState, U as Unsubscribe, C as ConflictRecord, R as RealtimeTransport } from './collection-ref-BDdfD87k.cjs';
2
2
  import { NodePgDatabase } from 'drizzle-orm/node-postgres';
3
3
  import { NeetruError } from './errors.cjs';
4
4
 
package/dist/usage.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as ResolvedConfig, _ as UsageNamespace } from './types-Lfd3LiAF.cjs';
2
- import './collection-ref-DqAAhuhX.cjs';
1
+ import { I as ResolvedConfig, _ as UsageNamespace } from './types-Dc4bjrrt.cjs';
2
+ import './collection-ref-BDdfD87k.cjs';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.cjs';
5
5
 
package/dist/usage.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as ResolvedConfig, _ as UsageNamespace } from './types-DALIhcbq.js';
2
- import './collection-ref-DqAAhuhX.js';
1
+ import { I as ResolvedConfig, _ as UsageNamespace } from './types-D7zVkO3n.js';
2
+ import './collection-ref-BDdfD87k.js';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.js';
5
5
 
@@ -1,4 +1,4 @@
1
- export { n as MockWebhooks, R as RegisterWebhookInput, a1 as WebhookEndpoint, a2 as WebhookEvent, a3 as WebhookScopeOptions, a4 as WebhookTestResult, a5 as WebhooksNamespace, aa as createWebhooksNamespace, ac as verifyWebhookSignature } from './types-Lfd3LiAF.cjs';
2
- import './collection-ref-DqAAhuhX.cjs';
1
+ export { n as MockWebhooks, R as RegisterWebhookInput, a1 as WebhookEndpoint, a2 as WebhookEvent, a3 as WebhookScopeOptions, a4 as WebhookTestResult, a5 as WebhooksNamespace, aa as createWebhooksNamespace, ac as verifyWebhookSignature } from './types-Dc4bjrrt.cjs';
2
+ import './collection-ref-BDdfD87k.cjs';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.cjs';
@@ -1,4 +1,4 @@
1
- export { n as MockWebhooks, R as RegisterWebhookInput, a1 as WebhookEndpoint, a2 as WebhookEvent, a3 as WebhookScopeOptions, a4 as WebhookTestResult, a5 as WebhooksNamespace, aa as createWebhooksNamespace, ac as verifyWebhookSignature } from './types-DALIhcbq.js';
2
- import './collection-ref-DqAAhuhX.js';
1
+ export { n as MockWebhooks, R as RegisterWebhookInput, a1 as WebhookEndpoint, a2 as WebhookEvent, a3 as WebhookScopeOptions, a4 as WebhookTestResult, a5 as WebhooksNamespace, aa as createWebhooksNamespace, ac as verifyWebhookSignature } from './types-D7zVkO3n.js';
2
+ import './collection-ref-BDdfD87k.js';
3
3
  import 'drizzle-orm/node-postgres';
4
4
  import './errors.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neetru/sdk",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Neetru SDK 3.0 — biblioteca runtime universal (browser/Node/Edge) para consumir o ecossistema Neetru. Paths canonical /api/sdk/v1/*, productId obrigatório, Idempotency-Key em mutations, WebCrypto signatures, baseUrl allowlist fail-closed.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",