@neetru/sdk 1.1.1 → 1.2.0

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 (83) hide show
  1. package/CHANGELOG.md +33 -3
  2. package/README.md +135 -159
  3. package/dist/auth.cjs +482 -42
  4. package/dist/auth.cjs.map +1 -1
  5. package/dist/auth.d.cts +1 -1
  6. package/dist/auth.d.ts +1 -1
  7. package/dist/auth.mjs +482 -42
  8. package/dist/auth.mjs.map +1 -1
  9. package/dist/catalog.cjs +63 -24
  10. package/dist/catalog.cjs.map +1 -1
  11. package/dist/catalog.d.cts +2 -2
  12. package/dist/catalog.d.ts +2 -2
  13. package/dist/catalog.mjs +63 -24
  14. package/dist/catalog.mjs.map +1 -1
  15. package/dist/checkout.cjs +60 -18
  16. package/dist/checkout.cjs.map +1 -1
  17. package/dist/checkout.d.cts +1 -1
  18. package/dist/checkout.d.ts +1 -1
  19. package/dist/checkout.mjs +60 -18
  20. package/dist/checkout.mjs.map +1 -1
  21. package/dist/db.cjs +66 -25
  22. package/dist/db.cjs.map +1 -1
  23. package/dist/db.d.cts +1 -1
  24. package/dist/db.d.ts +1 -1
  25. package/dist/db.mjs +66 -25
  26. package/dist/db.mjs.map +1 -1
  27. package/dist/entitlements.cjs +101 -24
  28. package/dist/entitlements.cjs.map +1 -1
  29. package/dist/entitlements.d.cts +11 -5
  30. package/dist/entitlements.d.ts +11 -5
  31. package/dist/entitlements.mjs +101 -24
  32. package/dist/entitlements.mjs.map +1 -1
  33. package/dist/index.cjs +487 -43
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +3 -3
  36. package/dist/index.d.ts +3 -3
  37. package/dist/index.mjs +484 -44
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/mocks.cjs +3 -2
  40. package/dist/mocks.cjs.map +1 -1
  41. package/dist/mocks.d.cts +4 -2
  42. package/dist/mocks.d.ts +4 -2
  43. package/dist/mocks.mjs +3 -2
  44. package/dist/mocks.mjs.map +1 -1
  45. package/dist/notifications.cjs +296 -0
  46. package/dist/notifications.cjs.map +1 -0
  47. package/dist/notifications.d.cts +1 -0
  48. package/dist/notifications.d.ts +1 -0
  49. package/dist/notifications.mjs +293 -0
  50. package/dist/notifications.mjs.map +1 -0
  51. package/dist/react.cjs +7 -3
  52. package/dist/react.cjs.map +1 -1
  53. package/dist/react.d.cts +1 -1
  54. package/dist/react.d.ts +1 -1
  55. package/dist/react.mjs +7 -3
  56. package/dist/react.mjs.map +1 -1
  57. package/dist/support.cjs +60 -18
  58. package/dist/support.cjs.map +1 -1
  59. package/dist/support.d.cts +1 -1
  60. package/dist/support.d.ts +1 -1
  61. package/dist/support.mjs +60 -18
  62. package/dist/support.mjs.map +1 -1
  63. package/dist/telemetry.cjs +130 -19
  64. package/dist/telemetry.cjs.map +1 -1
  65. package/dist/telemetry.d.cts +17 -1
  66. package/dist/telemetry.d.ts +17 -1
  67. package/dist/telemetry.mjs +130 -19
  68. package/dist/telemetry.mjs.map +1 -1
  69. package/dist/{types-BA53dd8S.d.cts → types-CQAfwqUS.d.cts} +172 -8
  70. package/dist/{types-BA53dd8S.d.ts → types-CQAfwqUS.d.ts} +172 -8
  71. package/dist/usage.cjs +60 -18
  72. package/dist/usage.cjs.map +1 -1
  73. package/dist/usage.d.cts +1 -1
  74. package/dist/usage.d.ts +1 -1
  75. package/dist/usage.mjs +60 -18
  76. package/dist/usage.mjs.map +1 -1
  77. package/dist/webhooks.cjs +316 -0
  78. package/dist/webhooks.cjs.map +1 -0
  79. package/dist/webhooks.d.cts +1 -0
  80. package/dist/webhooks.d.ts +1 -0
  81. package/dist/webhooks.mjs +312 -0
  82. package/dist/webhooks.mjs.map +1 -0
  83. package/package.json +12 -2
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { N as NeetruClientConfig, a as NeetruClient } from './types-BA53dd8S.cjs';
2
- export { A as AuthNamespace, b as AuthStateListener, C as CatalogListOptions, c as CatalogListResponse, d as CheckoutIntentInfo, e as CheckoutIntentStatus, f as CheckoutNamespace, g as CheckoutStartInput, h as CheckoutStartResult, i as CheckoutTenantType, j as CreateTicketInput, D as DEFAULT_BASE_URL, k as DbCollectionRef, l as DbListOptions, m as DbNamespace, n as DbWhereFilter, E as EntitlementCheck, M as MockCheckout, o as NeetruEnv, p as NeetruUser, P as Product, q as ProductPlan, r as ProductStatus, R as ResolvedConfig, S as SignInOptions, s as SupportNamespace, t as SupportSeverity, u as SupportStatus, v as SupportTicket, T as TelemetryEventAck, w as TelemetryEventInput, U as UsageEventInput, x as UsageNamespace, y as UsageQuota, z as createCheckoutNamespace } from './types-BA53dd8S.cjs';
1
+ import { N as NeetruClientConfig, a as NeetruClient } from './types-CQAfwqUS.cjs';
2
+ export { A as AuthNamespace, b as AuthStateListener, C as CatalogListOptions, c as CatalogListResponse, d as CheckoutIntentInfo, e as CheckoutIntentStatus, f as CheckoutNamespace, g as CheckoutStartInput, h as CheckoutStartResult, i as CheckoutTenantType, j as CreateTicketInput, D as DEFAULT_BASE_URL, k as DbCollectionRef, l as DbListOptions, m as DbNamespace, n as DbWhereFilter, E as EntitlementCheck, L as ListNotificationsOptions, M as MockCheckout, o as MockNotifications, p as MockWebhooks, q as NeetruEnv, r as NeetruUser, s as NotificationsNamespace, P as Product, t as ProductNotification, u as ProductNotificationSeverity, v as ProductPlan, w as ProductStatus, R as RegisterWebhookInput, x as ResolvedConfig, S as SendNotificationInput, y as SignInOptions, z as SupportNamespace, B as SupportSeverity, F as SupportStatus, G as SupportTicket, T as TelemetryEventAck, H as TelemetryEventInput, U as UsageEventInput, I as UsageNamespace, J as UsageQuota, W as WebhookEndpoint, K as WebhookEvent, O as WebhookTestResult, Q as WebhooksNamespace, V as createCheckoutNamespace, X as createNotificationsNamespace, Y as createWebhooksNamespace } from './types-CQAfwqUS.cjs';
3
3
  export { createNeetruClient } from './auth.cjs';
4
4
  export { NeetruError, NeetruErrorCode } from './errors.cjs';
5
5
  export { DEV_FIXTURE_USER, MockAuth, MockDb, MockEntitlements, MockSupport, MockUsage } from './mocks.cjs';
6
6
 
7
7
  /** Versão do SDK — exportada explicitamente pra detecção em runtime. */
8
- declare const VERSION: "1.1.0";
8
+ declare const VERSION: "1.2.0";
9
9
 
10
10
  /**
11
11
  * @deprecated Use `createNeetruClient` em vez de `initNeetru`. Mantido por
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { N as NeetruClientConfig, a as NeetruClient } from './types-BA53dd8S.js';
2
- export { A as AuthNamespace, b as AuthStateListener, C as CatalogListOptions, c as CatalogListResponse, d as CheckoutIntentInfo, e as CheckoutIntentStatus, f as CheckoutNamespace, g as CheckoutStartInput, h as CheckoutStartResult, i as CheckoutTenantType, j as CreateTicketInput, D as DEFAULT_BASE_URL, k as DbCollectionRef, l as DbListOptions, m as DbNamespace, n as DbWhereFilter, E as EntitlementCheck, M as MockCheckout, o as NeetruEnv, p as NeetruUser, P as Product, q as ProductPlan, r as ProductStatus, R as ResolvedConfig, S as SignInOptions, s as SupportNamespace, t as SupportSeverity, u as SupportStatus, v as SupportTicket, T as TelemetryEventAck, w as TelemetryEventInput, U as UsageEventInput, x as UsageNamespace, y as UsageQuota, z as createCheckoutNamespace } from './types-BA53dd8S.js';
1
+ import { N as NeetruClientConfig, a as NeetruClient } from './types-CQAfwqUS.js';
2
+ export { A as AuthNamespace, b as AuthStateListener, C as CatalogListOptions, c as CatalogListResponse, d as CheckoutIntentInfo, e as CheckoutIntentStatus, f as CheckoutNamespace, g as CheckoutStartInput, h as CheckoutStartResult, i as CheckoutTenantType, j as CreateTicketInput, D as DEFAULT_BASE_URL, k as DbCollectionRef, l as DbListOptions, m as DbNamespace, n as DbWhereFilter, E as EntitlementCheck, L as ListNotificationsOptions, M as MockCheckout, o as MockNotifications, p as MockWebhooks, q as NeetruEnv, r as NeetruUser, s as NotificationsNamespace, P as Product, t as ProductNotification, u as ProductNotificationSeverity, v as ProductPlan, w as ProductStatus, R as RegisterWebhookInput, x as ResolvedConfig, S as SendNotificationInput, y as SignInOptions, z as SupportNamespace, B as SupportSeverity, F as SupportStatus, G as SupportTicket, T as TelemetryEventAck, H as TelemetryEventInput, U as UsageEventInput, I as UsageNamespace, J as UsageQuota, W as WebhookEndpoint, K as WebhookEvent, O as WebhookTestResult, Q as WebhooksNamespace, V as createCheckoutNamespace, X as createNotificationsNamespace, Y as createWebhooksNamespace } from './types-CQAfwqUS.js';
3
3
  export { createNeetruClient } from './auth.js';
4
4
  export { NeetruError, NeetruErrorCode } from './errors.js';
5
5
  export { DEV_FIXTURE_USER, MockAuth, MockDb, MockEntitlements, MockSupport, MockUsage } from './mocks.js';
6
6
 
7
7
  /** Versão do SDK — exportada explicitamente pra detecção em runtime. */
8
- declare const VERSION: "1.1.0";
8
+ declare const VERSION: "1.2.0";
9
9
 
10
10
  /**
11
11
  * @deprecated Use `createNeetruClient` em vez de `initNeetru`. Mantido por