@drawbridge/drawbridge-utils 0.0.175 → 0.0.177

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 (73) hide show
  1. package/dist/admin-B9ZaLvan.d.cts +697 -0
  2. package/dist/admin-C3HtEM6h.d.ts +697 -0
  3. package/dist/billing-Bc4yo9XG.d.cts +175 -0
  4. package/dist/billing-mNsKflmQ.d.ts +175 -0
  5. package/dist/billing.d.cts +1 -1
  6. package/dist/billing.d.ts +1 -1
  7. package/dist/connections/index.cjs +5928 -1920
  8. package/dist/connections/index.d.cts +20 -9163
  9. package/dist/connections/index.d.ts +20 -9163
  10. package/dist/connections/index.js +5917 -1921
  11. package/dist/connections/oauth.cjs +4 -4
  12. package/dist/connections/oauth.d.cts +10 -8
  13. package/dist/connections/oauth.d.ts +10 -8
  14. package/dist/connections/oauth.js +4 -4
  15. package/dist/features.cjs +10260 -42
  16. package/dist/features.d.cts +55 -42
  17. package/dist/features.d.ts +55 -42
  18. package/dist/features.js +10254 -42
  19. package/dist/http.cjs +10 -1
  20. package/dist/http.d.cts +10 -1
  21. package/dist/http.d.ts +10 -1
  22. package/dist/http.js +10 -1
  23. package/dist/index-B546oDNo.d.ts +13809 -0
  24. package/dist/index-C59xHago.d.cts +13809 -0
  25. package/dist/oauth/index.d.cts +1 -1
  26. package/dist/oauth/index.d.ts +1 -1
  27. package/dist/oauth-BJDh0sdM.d.cts +527 -0
  28. package/dist/oauth-DveZMLHx.d.ts +527 -0
  29. package/dist/partner-BOZltuh2.d.ts +94 -0
  30. package/dist/partner-ed2OfW1J.d.cts +94 -0
  31. package/dist/plans.cjs +10256 -51
  32. package/dist/plans.d.cts +37 -10
  33. package/dist/plans.d.ts +37 -10
  34. package/dist/plans.js +10262 -51
  35. package/dist/pricing.cjs +10401 -209
  36. package/dist/pricing.d.cts +34 -17
  37. package/dist/pricing.d.ts +34 -17
  38. package/dist/pricing.js +10407 -209
  39. package/dist/providers.cjs +5433 -1755
  40. package/dist/providers.d.cts +13 -15
  41. package/dist/providers.d.ts +13 -15
  42. package/dist/providers.js +5436 -1752
  43. package/dist/sendgrid.cjs +10 -1
  44. package/dist/sendgrid.js +10 -1
  45. package/dist/shopify/admin.cjs +562 -0
  46. package/dist/shopify/admin.d.cts +3 -0
  47. package/dist/shopify/admin.d.ts +3 -0
  48. package/dist/shopify/admin.js +528 -0
  49. package/dist/shopify/billing.cjs +166 -0
  50. package/dist/shopify/billing.d.cts +3 -0
  51. package/dist/shopify/billing.d.ts +3 -0
  52. package/dist/shopify/billing.js +140 -0
  53. package/dist/shopify/constants.cjs +63 -0
  54. package/dist/shopify/constants.d.cts +58 -0
  55. package/dist/shopify/constants.d.ts +58 -0
  56. package/dist/shopify/constants.js +32 -0
  57. package/dist/shopify/oauth.cjs +509 -0
  58. package/dist/shopify/oauth.d.cts +7 -0
  59. package/dist/shopify/oauth.d.ts +7 -0
  60. package/dist/shopify/oauth.js +466 -0
  61. package/dist/shopify/partner.cjs +156 -0
  62. package/dist/shopify/partner.d.cts +3 -0
  63. package/dist/shopify/partner.d.ts +3 -0
  64. package/dist/shopify/partner.js +130 -0
  65. package/dist/shopify/storefront.cjs +611 -0
  66. package/dist/shopify/storefront.d.cts +3 -0
  67. package/dist/shopify/storefront.d.ts +3 -0
  68. package/dist/shopify/storefront.js +576 -0
  69. package/dist/storefront-C8FKOGeD.d.cts +659 -0
  70. package/dist/storefront-DJFGLqPl.d.ts +659 -0
  71. package/dist/twilio.cjs +10 -1
  72. package/dist/twilio.js +10 -1
  73. package/package.json +98 -68
@@ -1,16 +1,44 @@
1
+ import { u as channels } from './index-C59xHago.cjs';
1
2
  import { MARKUP } from './billing.cjs';
2
3
  export { LOCAL_FLAT_CENTS, PREMIUM_CPM_CENTS, PREMIUM_RATE_PER_GB, REUSE_FLAT_CENTS, STANDARD_CPM_CENTS, STANDARD_RATE_PER_GB, ai, scrape } from './billing.cjs';
3
4
  export { conversionRate, free, plans, resolvePlan, unitAmountDecimal } from './plans.cjs';
5
+ import './usage.cjs';
6
+ import './encrypt.cjs';
7
+ import 'crypto';
8
+ import './token.cjs';
9
+ import './connections/oauth.cjs';
10
+ import 'node:crypto';
11
+ import './phone.cjs';
12
+ import 'libphonenumber-js';
13
+ import './http.cjs';
14
+ import 'nanoid';
15
+ import './admin-B9ZaLvan.cjs';
16
+ import './shopify/constants.cjs';
17
+ import './billing-Bc4yo9XG.cjs';
18
+ import './oauth-BJDh0sdM.cjs';
19
+ import './partner-ed2OfW1J.cjs';
20
+ import './storefront-C8FKOGeD.cjs';
21
+ import './email.cjs';
22
+ import './oauth/index.cjs';
23
+ import './sanitize.cjs';
24
+ import 'disposable-email-domains/index.js';
25
+ import './slugify.cjs';
26
+ import 'slugify';
27
+ import './safe-http.cjs';
28
+ import 'dns';
29
+ import 'node:http';
30
+ import 'node:https';
31
+ import './axios.cjs';
32
+ import 'axios';
33
+ import 'net';
4
34
  import './transactions.cjs';
5
35
  import '@drawbridge/drawbridge-telemetry';
6
- import './usage.cjs';
7
36
  import './features.cjs';
8
37
  import './index.cjs';
9
38
  import 'currency-codes';
10
39
  import './color.cjs';
11
40
  import 'tinycolor2';
12
41
  import './nanoid.cjs';
13
- import 'nanoid';
14
42
 
15
43
  // Pricing — the one file you open to see every customer-facing number.
16
44
  //
@@ -201,21 +229,10 @@ const sending = {
201
229
  }
202
230
  };
203
231
 
204
- // Weighted actions: what one message of each channel costs against a plan.
205
- // Named per unit so a bare `2` can never be read as cents.
206
- const channels = {
207
- email : {
208
- actionsPerSend : 1,
209
- includedInAllowance : true
210
- },
211
- sms : {
212
- // Two actions PER SEGMENT (a long message is several segments), billed from
213
- // the FIRST segment and never drawn from the plan's included allowance —
214
- // carrier cost is real from message one, so there is no free tier of it.
215
- actionsPerSegment : 2,
216
- includedInAllowance : false
217
- }
218
- };
232
+ // Weighted actions per channel now live in lib/channels.js, and are re-exported
233
+ // below so this file stays the index of every customer-facing number. They moved
234
+ // so a connection manifest can read them without pulling in the plan catalogue —
235
+ // see that file.
219
236
 
220
237
  // The lowest CENTS-per-action rate a plan may charge. Custom plans are
221
238
  // hand-entered, and the guard on them only ever rejected a MISSING rate — zero
package/dist/pricing.d.ts CHANGED
@@ -1,16 +1,44 @@
1
+ import { u as channels } from './index-B546oDNo.js';
1
2
  import { MARKUP } from './billing.js';
2
3
  export { LOCAL_FLAT_CENTS, PREMIUM_CPM_CENTS, PREMIUM_RATE_PER_GB, REUSE_FLAT_CENTS, STANDARD_CPM_CENTS, STANDARD_RATE_PER_GB, ai, scrape } from './billing.js';
3
4
  export { conversionRate, free, plans, resolvePlan, unitAmountDecimal } from './plans.js';
5
+ import './usage.js';
6
+ import './encrypt.js';
7
+ import 'crypto';
8
+ import './token.js';
9
+ import './connections/oauth.js';
10
+ import 'node:crypto';
11
+ import './phone.js';
12
+ import 'libphonenumber-js';
13
+ import './http.js';
14
+ import 'nanoid';
15
+ import './admin-C3HtEM6h.js';
16
+ import './shopify/constants.js';
17
+ import './billing-mNsKflmQ.js';
18
+ import './oauth-DveZMLHx.js';
19
+ import './partner-BOZltuh2.js';
20
+ import './storefront-DJFGLqPl.js';
21
+ import './email.js';
22
+ import './oauth/index.js';
23
+ import './sanitize.js';
24
+ import 'disposable-email-domains/index.js';
25
+ import './slugify.js';
26
+ import 'slugify';
27
+ import './safe-http.js';
28
+ import 'dns';
29
+ import 'node:http';
30
+ import 'node:https';
31
+ import './axios.js';
32
+ import 'axios';
33
+ import 'net';
4
34
  import './transactions.js';
5
35
  import '@drawbridge/drawbridge-telemetry';
6
- import './usage.js';
7
36
  import './features.js';
8
37
  import './index.js';
9
38
  import 'currency-codes';
10
39
  import './color.js';
11
40
  import 'tinycolor2';
12
41
  import './nanoid.js';
13
- import 'nanoid';
14
42
 
15
43
  // Pricing — the one file you open to see every customer-facing number.
16
44
  //
@@ -201,21 +229,10 @@ const sending = {
201
229
  }
202
230
  };
203
231
 
204
- // Weighted actions: what one message of each channel costs against a plan.
205
- // Named per unit so a bare `2` can never be read as cents.
206
- const channels = {
207
- email : {
208
- actionsPerSend : 1,
209
- includedInAllowance : true
210
- },
211
- sms : {
212
- // Two actions PER SEGMENT (a long message is several segments), billed from
213
- // the FIRST segment and never drawn from the plan's included allowance —
214
- // carrier cost is real from message one, so there is no free tier of it.
215
- actionsPerSegment : 2,
216
- includedInAllowance : false
217
- }
218
- };
232
+ // Weighted actions per channel now live in lib/channels.js, and are re-exported
233
+ // below so this file stays the index of every customer-facing number. They moved
234
+ // so a connection manifest can read them without pulling in the plan catalogue —
235
+ // see that file.
219
236
 
220
237
  // The lowest CENTS-per-action rate a plan may charge. Custom plans are
221
238
  // hand-entered, and the guard on them only ever rejected a MISSING rate — zero