@shushed/helpers 0.0.197 → 0.0.198-v2-20251104135028

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 (234) hide show
  1. package/dist/cjs/dist-dereferenced/asset.js +4 -0
  2. package/dist/cjs/dist-dereferenced/category.js +4 -0
  3. package/dist/cjs/dist-dereferenced/country.js +4 -0
  4. package/dist/cjs/dist-dereferenced/currency.js +4 -0
  5. package/dist/cjs/dist-dereferenced/customer-segment.js +4 -0
  6. package/dist/cjs/dist-dereferenced/development-colour.js +4 -0
  7. package/dist/cjs/dist-dereferenced/index.js +69 -0
  8. package/dist/cjs/dist-dereferenced/marketing-preferences.js +4 -0
  9. package/dist/cjs/dist-dereferenced/messages/ean-change.js +4 -0
  10. package/dist/cjs/dist-dereferenced/messages/index.js +50 -0
  11. package/dist/cjs/dist-dereferenced/messages/order/delivered.js +4 -0
  12. package/dist/cjs/dist-dereferenced/messages/order/index.js +18 -0
  13. package/dist/cjs/dist-dereferenced/messages/order/new.js +4 -0
  14. package/dist/cjs/dist-dereferenced/messages/order/processed.js +4 -0
  15. package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +4 -0
  16. package/dist/cjs/dist-dereferenced/messages/order/returned.js +4 -0
  17. package/dist/cjs/dist-dereferenced/messages/order/shipped.js +4 -0
  18. package/dist/cjs/dist-dereferenced/messages/price-change.js +4 -0
  19. package/dist/cjs/dist-dereferenced/messages/product-category.js +4 -0
  20. package/dist/cjs/dist-dereferenced/messages/product-draft.js +4 -0
  21. package/dist/cjs/dist-dereferenced/messages/product.js +4 -0
  22. package/dist/cjs/dist-dereferenced/money.js +4 -0
  23. package/dist/cjs/dist-dereferenced/order/address.js +4 -0
  24. package/dist/cjs/dist-dereferenced/order/customer.js +4 -0
  25. package/dist/cjs/dist-dereferenced/order/index.js +51 -0
  26. package/dist/cjs/dist-dereferenced/order/item.js +4 -0
  27. package/dist/cjs/dist-dereferenced/order/orderMain.js +4 -0
  28. package/dist/cjs/dist-dereferenced/order/payment.js +4 -0
  29. package/dist/cjs/dist-dereferenced/order/shipment/index.js +45 -0
  30. package/dist/cjs/dist-dereferenced/order/shipment/item/index.js +11 -0
  31. package/dist/cjs/dist-dereferenced/order/shipment/item/itemMain.js +4 -0
  32. package/dist/cjs/dist-dereferenced/order/shipment/item/returned.js +4 -0
  33. package/dist/cjs/dist-dereferenced/order/shipment/pos/index.js +13 -0
  34. package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +4 -0
  35. package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +4 -0
  36. package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +4 -0
  37. package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +4 -0
  38. package/dist/cjs/dist-dereferenced/order/shipment/shipped/index.js +13 -0
  39. package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +4 -0
  40. package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +4 -0
  41. package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +4 -0
  42. package/dist/cjs/dist-dereferenced/price.js +4 -0
  43. package/dist/cjs/dist-dereferenced/product-category.js +4 -0
  44. package/dist/cjs/dist-dereferenced/product-draft.js +4 -0
  45. package/dist/cjs/dist-dereferenced/product.js +4 -0
  46. package/dist/cjs/dist-dereferenced/stock.js +4 -0
  47. package/dist/cjs/dist-dereferenced/total.js +4 -0
  48. package/dist/cjs/dist-types/asset.js +2 -0
  49. package/dist/cjs/dist-types/category.js +2 -0
  50. package/dist/cjs/dist-types/country.js +2 -0
  51. package/dist/cjs/dist-types/currency.js +2 -0
  52. package/dist/cjs/dist-types/customer-segment.js +2 -0
  53. package/dist/cjs/dist-types/development-colour.js +2 -0
  54. package/dist/cjs/dist-types/index.js +38 -0
  55. package/dist/cjs/dist-types/marketing-preferences.js +2 -0
  56. package/dist/cjs/dist-types/messages/ean-change.js +2 -0
  57. package/dist/cjs/dist-types/messages/index.js +37 -0
  58. package/dist/cjs/dist-types/messages/order/delivered.js +2 -0
  59. package/dist/cjs/dist-types/messages/order/index.js +2 -0
  60. package/dist/cjs/dist-types/messages/order/new.js +2 -0
  61. package/dist/cjs/dist-types/messages/order/processed.js +2 -0
  62. package/dist/cjs/dist-types/messages/order/return-initiated.js +2 -0
  63. package/dist/cjs/dist-types/messages/order/returned.js +2 -0
  64. package/dist/cjs/dist-types/messages/order/shipped.js +2 -0
  65. package/dist/cjs/dist-types/messages/price-change.js +2 -0
  66. package/dist/cjs/dist-types/messages/product-category.js +2 -0
  67. package/dist/cjs/dist-types/messages/product-draft.js +2 -0
  68. package/dist/cjs/dist-types/messages/product.js +2 -0
  69. package/dist/cjs/dist-types/money.js +2 -0
  70. package/dist/cjs/dist-types/order/address.js +2 -0
  71. package/dist/cjs/dist-types/order/customer.js +2 -0
  72. package/dist/cjs/dist-types/order/index.js +37 -0
  73. package/dist/cjs/dist-types/order/item.js +2 -0
  74. package/dist/cjs/dist-types/order/orderMain.js +2 -0
  75. package/dist/cjs/dist-types/order/payment.js +2 -0
  76. package/dist/cjs/dist-types/order/shipment/index.js +39 -0
  77. package/dist/cjs/dist-types/order/shipment/item/index.js +2 -0
  78. package/dist/cjs/dist-types/order/shipment/item/itemMain.js +2 -0
  79. package/dist/cjs/dist-types/order/shipment/item/returned.js +2 -0
  80. package/dist/cjs/dist-types/order/shipment/pos/index.js +2 -0
  81. package/dist/cjs/dist-types/order/shipment/pos/outbound.js +2 -0
  82. package/dist/cjs/dist-types/order/shipment/pos/posMain.js +2 -0
  83. package/dist/cjs/dist-types/order/shipment/pos/return.js +2 -0
  84. package/dist/cjs/dist-types/order/shipment/shipmentMain.js +2 -0
  85. package/dist/cjs/dist-types/order/shipment/shipped/index.js +2 -0
  86. package/dist/cjs/dist-types/order/shipment/shipped/outbound.js +2 -0
  87. package/dist/cjs/dist-types/order/shipment/shipped/return.js +2 -0
  88. package/dist/cjs/dist-types/order/shipment/shipped/shippedMain.js +2 -0
  89. package/dist/cjs/dist-types/price.js +2 -0
  90. package/dist/cjs/dist-types/product-category.js +2 -0
  91. package/dist/cjs/dist-types/product-draft.js +2 -0
  92. package/dist/cjs/dist-types/product.js +2 -0
  93. package/dist/cjs/dist-types/stock.js +2 -0
  94. package/dist/cjs/dist-types/total.js +2 -0
  95. package/dist/cjs/index.js +39 -0
  96. package/dist/cjs/src-public/airtable.js +530 -0
  97. package/dist/cjs/src-public/bigquery.js +59 -0
  98. package/dist/cjs/src-public/cloudtasks.js +207 -0
  99. package/dist/cjs/src-public/dato.js +260 -0
  100. package/dist/cjs/src-public/env.js +902 -0
  101. package/dist/cjs/src-public/getEventTime.js +28 -0
  102. package/dist/cjs/src-public/index.js +50 -0
  103. package/dist/cjs/src-public/ipValidation.js +167 -0
  104. package/dist/cjs/src-public/jwks.js +108 -0
  105. package/dist/cjs/src-public/pubsub.js +446 -0
  106. package/dist/cjs/src-public/rateLimit.js +140 -0
  107. package/dist/cjs/src-public/redisClient.js +44 -0
  108. package/dist/cjs/src-public/runtime.js +119 -0
  109. package/dist/cjs/src-public/sanitize.js +25 -0
  110. package/dist/cjs/src-public/scheduler.js +247 -0
  111. package/dist/cjs/src-public/secret.js +16 -0
  112. package/dist/cjs/src-public/setHeaders.js +16 -0
  113. package/dist/cjs/src-public/types.js +2 -0
  114. package/dist/cjs/src-public/utils.js +286 -0
  115. package/dist/cjs/src-public/validate.js +40 -0
  116. package/dist/package.json +6 -3
  117. package/dist/types/dist-dereferenced/asset.d.ts +34 -0
  118. package/dist/types/dist-dereferenced/category.d.ts +58 -0
  119. package/dist/types/dist-dereferenced/country.d.ts +8 -0
  120. package/dist/types/dist-dereferenced/currency.d.ts +8 -0
  121. package/dist/types/dist-dereferenced/customer-segment.d.ts +26 -0
  122. package/dist/types/dist-dereferenced/development-colour.d.ts +97 -0
  123. package/dist/types/dist-dereferenced/index.d.ts +16 -0
  124. package/dist/types/dist-dereferenced/marketing-preferences.d.ts +31 -0
  125. package/dist/types/dist-dereferenced/messages/ean-change.d.ts +17 -0
  126. package/dist/types/dist-dereferenced/messages/index.d.ts +6 -0
  127. package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +3414 -0
  128. package/dist/types/dist-dereferenced/messages/order/index.d.ts +6 -0
  129. package/dist/types/dist-dereferenced/messages/order/new.d.ts +3414 -0
  130. package/dist/types/dist-dereferenced/messages/order/processed.d.ts +3408 -0
  131. package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +3414 -0
  132. package/dist/types/dist-dereferenced/messages/order/returned.d.ts +3413 -0
  133. package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +3412 -0
  134. package/dist/types/dist-dereferenced/messages/price-change.d.ts +58 -0
  135. package/dist/types/dist-dereferenced/messages/product-category.d.ts +33 -0
  136. package/dist/types/dist-dereferenced/messages/product-draft.d.ts +589 -0
  137. package/dist/types/dist-dereferenced/messages/product.d.ts +628 -0
  138. package/dist/types/dist-dereferenced/money.d.ts +41 -0
  139. package/dist/types/dist-dereferenced/order/address.d.ts +98 -0
  140. package/dist/types/dist-dereferenced/order/customer.d.ts +309 -0
  141. package/dist/types/dist-dereferenced/order/index.d.ts +3404 -0
  142. package/dist/types/dist-dereferenced/order/item.d.ts +336 -0
  143. package/dist/types/dist-dereferenced/order/orderMain.d.ts +3399 -0
  144. package/dist/types/dist-dereferenced/order/payment.d.ts +94 -0
  145. package/dist/types/dist-dereferenced/order/shipment/index.d.ts +253 -0
  146. package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +19 -0
  147. package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +18 -0
  148. package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +34 -0
  149. package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +282 -0
  150. package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +320 -0
  151. package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +280 -0
  152. package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +331 -0
  153. package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +250 -0
  154. package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +288 -0
  155. package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +286 -0
  156. package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +287 -0
  157. package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +286 -0
  158. package/dist/types/dist-dereferenced/price.d.ts +49 -0
  159. package/dist/types/dist-dereferenced/product-category.d.ts +24 -0
  160. package/dist/types/dist-dereferenced/product-draft.d.ts +580 -0
  161. package/dist/types/dist-dereferenced/product.d.ts +619 -0
  162. package/dist/types/dist-dereferenced/stock.d.ts +74 -0
  163. package/dist/types/dist-dereferenced/total.d.ts +172 -0
  164. package/dist/types/dist-types/asset.d.ts +9 -0
  165. package/dist/types/dist-types/category.d.ts +20 -0
  166. package/dist/types/dist-types/country.d.ts +2 -0
  167. package/dist/types/dist-types/currency.d.ts +2 -0
  168. package/dist/types/dist-types/customer-segment.d.ts +6 -0
  169. package/dist/types/dist-types/development-colour.d.ts +24 -0
  170. package/dist/types/dist-types/index.d.ts +16 -0
  171. package/dist/types/dist-types/marketing-preferences.d.ts +9 -0
  172. package/dist/types/dist-types/messages/ean-change.d.ts +5 -0
  173. package/dist/types/dist-types/messages/index.d.ts +6 -0
  174. package/dist/types/dist-types/messages/order/delivered.d.ts +292 -0
  175. package/dist/types/dist-types/messages/order/index.d.ts +6 -0
  176. package/dist/types/dist-types/messages/order/new.d.ts +292 -0
  177. package/dist/types/dist-types/messages/order/processed.d.ts +292 -0
  178. package/dist/types/dist-types/messages/order/return-initiated.d.ts +292 -0
  179. package/dist/types/dist-types/messages/order/returned.d.ts +293 -0
  180. package/dist/types/dist-types/messages/order/shipped.d.ts +293 -0
  181. package/dist/types/dist-types/messages/price-change.d.ts +15 -0
  182. package/dist/types/dist-types/messages/product-category.d.ts +7 -0
  183. package/dist/types/dist-types/messages/product-draft.d.ts +136 -0
  184. package/dist/types/dist-types/messages/product.d.ts +144 -0
  185. package/dist/types/dist-types/money.d.ts +11 -0
  186. package/dist/types/dist-types/order/address.d.ts +27 -0
  187. package/dist/types/dist-types/order/customer.d.ts +81 -0
  188. package/dist/types/dist-types/order/index.d.ts +8 -0
  189. package/dist/types/dist-types/order/item.d.ts +85 -0
  190. package/dist/types/dist-types/order/orderMain.d.ts +289 -0
  191. package/dist/types/dist-types/order/payment.d.ts +26 -0
  192. package/dist/types/dist-types/order/shipment/index.d.ts +6 -0
  193. package/dist/types/dist-types/order/shipment/item/index.d.ts +4 -0
  194. package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +6 -0
  195. package/dist/types/dist-types/order/shipment/item/returned.d.ts +11 -0
  196. package/dist/types/dist-types/order/shipment/pos/index.d.ts +5 -0
  197. package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +76 -0
  198. package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +71 -0
  199. package/dist/types/dist-types/order/shipment/pos/return.d.ts +75 -0
  200. package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +62 -0
  201. package/dist/types/dist-types/order/shipment/shipped/index.d.ts +5 -0
  202. package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +68 -0
  203. package/dist/types/dist-types/order/shipment/shipped/return.d.ts +68 -0
  204. package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +69 -0
  205. package/dist/types/dist-types/price.d.ts +14 -0
  206. package/dist/types/dist-types/product-category.d.ts +6 -0
  207. package/dist/types/dist-types/product-draft.d.ts +135 -0
  208. package/dist/types/dist-types/product.d.ts +143 -0
  209. package/dist/types/dist-types/stock.d.ts +19 -0
  210. package/dist/types/dist-types/total.d.ts +44 -0
  211. package/dist/types/index.d.ts +3 -0
  212. package/dist/types/src-public/airtable.d.ts +211 -0
  213. package/dist/types/src-public/bigquery.d.ts +17 -0
  214. package/dist/types/src-public/cloudtasks.d.ts +74 -0
  215. package/dist/types/src-public/dato.d.ts +55 -0
  216. package/dist/types/src-public/env.d.ts +144 -0
  217. package/dist/types/src-public/getEventTime.d.ts +1 -0
  218. package/dist/types/src-public/index.d.ts +16 -0
  219. package/dist/types/src-public/ipValidation.d.ts +15 -0
  220. package/dist/types/src-public/jwks.d.ts +15 -0
  221. package/dist/types/src-public/pubsub.d.ts +93 -0
  222. package/dist/types/src-public/rateLimit.d.ts +21 -0
  223. package/dist/types/src-public/redisClient.d.ts +6 -0
  224. package/dist/types/src-public/runtime.d.ts +46 -0
  225. package/dist/types/src-public/sanitize.d.ts +4 -0
  226. package/dist/types/src-public/scheduler.d.ts +71 -0
  227. package/dist/types/src-public/secret.d.ts +6 -0
  228. package/dist/types/src-public/setHeaders.d.ts +13 -0
  229. package/dist/types/src-public/types.d.ts +263 -0
  230. package/dist/types/src-public/utils.d.ts +51 -0
  231. package/dist/types/src-public/validate.d.ts +9 -0
  232. package/package.json +7 -4
  233. package/dist/index.d.ts +0 -34842
  234. package/dist/index.js +0 -110556
@@ -0,0 +1,19 @@
1
+ export type Currency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
2
+ export type LCYCurrency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
3
+ export interface __MainSchema {
4
+ style_id: string;
5
+ colour_id: string;
6
+ size_code: string;
7
+ quantity: number;
8
+ location_code: string;
9
+ unit_cost: (Money | null);
10
+ }
11
+ export interface Money {
12
+ value: number;
13
+ decimal_places: number;
14
+ currency: Currency;
15
+ lcy_value: number;
16
+ lcy_currency: LCYCurrency;
17
+ lcy_decimal_places: number;
18
+ }
19
+ export default __MainSchema;
@@ -0,0 +1,44 @@
1
+ export type Currency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
2
+ export type LCYCurrency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "ARS" | "AMD" | "AWG" | "AUD" | "AZN" | "BSD" | "BHD" | "BDT" | "BBD" | "BYN" | "BZD" | "XOF" | "BMD" | "BTN" | "INR" | "BOB" | "BOV" | "BAM" | "BWP" | "NOK" | "BRL" | "BND" | "BGN" | "BIF" | "CVE" | "KHR" | "XAF" | "CAD" | "KYD" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "KMF" | "CDF" | "NZD" | "CRC" | "CUC" | "CUP" | "ANG" | "CZK" | "DKK" | "DJF" | "DOP" | "EGP" | "SVC" | "ERN" | "ETB" | "FKP" | "FJD" | "XPF" | "GMD" | "GEL" | "GHS" | "GIP" | "GTQ" | "GBP" | "GNF" | "GYD" | "HTG" | "HNL" | "HKD" | "HUF" | "ISK" | "IDR" | "XDR" | "IRR" | "IQD" | "ILS" | "JMD" | "JPY" | "JOD" | "KZT" | "KES" | "KPW" | "KRW" | "KWD" | "KGS" | "LAK" | "LBP" | "LSL" | "ZAR" | "LRD" | "LYD" | "CHF" | "MOP" | "MGA" | "MWK" | "MYR" | "MVR" | "MRU" | "MUR" | "XUA" | "MXN" | "MXV" | "MDL" | "MNT" | "MAD" | "MZN" | "MMK" | "NAD" | "NPR" | "NIO" | "NGN" | "OMR" | "PKR" | "PAB" | "PGK" | "PYG" | "PEN" | "PHP" | "PLN" | "QAR" | "MKD" | "RON" | "RUB" | "RWF" | "SHP" | "WST" | "STN" | "SAR" | "RSD" | "SCR" | "SLE" | "SGD" | "XSU" | "SBD" | "SOS" | "SSP" | "LKR" | "SDG" | "SRD" | "SZL" | "SEK" | "CHE" | "CHW" | "SYP" | "TWD" | "TJS" | "TZS" | "THB" | "TOP" | "TTD" | "TND" | "TRY" | "TMT" | "UGX" | "UAH" | "AED" | "USN" | "UYI" | "UYU" | "UZS" | "VUV" | "VEF" | "VED" | "VND" | "YER" | "ZMW" | "ZWL");
3
+ export type DiscountAmountPercent = number;
4
+ export interface __MainSchema {
5
+ amount_net: AmountNet;
6
+ amount_gross: AmountGross;
7
+ discount_amount_net: DiscountAmountNet;
8
+ discount_amount_gross: DiscountAmountGross;
9
+ discount_amount_percent: DiscountAmountPercent;
10
+ [k: string]: unknown;
11
+ }
12
+ export interface AmountNet {
13
+ value: number;
14
+ decimal_places: number;
15
+ currency: Currency;
16
+ lcy_value: number;
17
+ lcy_currency: LCYCurrency;
18
+ lcy_decimal_places: number;
19
+ }
20
+ export interface AmountGross {
21
+ value: number;
22
+ decimal_places: number;
23
+ currency: Currency;
24
+ lcy_value: number;
25
+ lcy_currency: LCYCurrency;
26
+ lcy_decimal_places: number;
27
+ }
28
+ export interface DiscountAmountNet {
29
+ value: number;
30
+ decimal_places: number;
31
+ currency: Currency;
32
+ lcy_value: number;
33
+ lcy_currency: LCYCurrency;
34
+ lcy_decimal_places: number;
35
+ }
36
+ export interface DiscountAmountGross {
37
+ value: number;
38
+ decimal_places: number;
39
+ currency: Currency;
40
+ lcy_value: number;
41
+ lcy_currency: LCYCurrency;
42
+ lcy_decimal_places: number;
43
+ }
44
+ export default __MainSchema;
@@ -0,0 +1,3 @@
1
+ export * as schema from './dist-dereferenced';
2
+ export * as types from './dist-types';
3
+ export * as lib from './src-public';
@@ -0,0 +1,211 @@
1
+ import Runtime, { Opts as RuntimeOpts } from './runtime';
2
+ declare class AirtableHelper<T extends Record<string, string>, K extends keyof T> extends Runtime {
3
+ baseId: string;
4
+ tableId: string;
5
+ apiKey: string;
6
+ dictionary: T;
7
+ primaryKeyFieldName: K;
8
+ primaryKeyWritable: boolean;
9
+ constructor(opts: RuntimeOpts, airtableOpts: {
10
+ baseId: string;
11
+ tableId: string;
12
+ apiKey: string;
13
+ dictionary: T;
14
+ primaryKeyFieldName: K;
15
+ primaryKeyWritable?: boolean;
16
+ });
17
+ static translateFields<T extends Record<string, string>, S extends {
18
+ fields: {
19
+ [key in T[keyof T]]: any;
20
+ };
21
+ }>(dictionary: T, y: S): S & {
22
+ fields: {
23
+ [key in keyof T]: any;
24
+ };
25
+ };
26
+ createIfNotExist(payload: Partial<{
27
+ [key in keyof T]: any;
28
+ }> & {
29
+ [prumaryKeyFieldName in K]: string;
30
+ }): Promise<{
31
+ id: string;
32
+ fields: { [key in keyof T]: any; };
33
+ }>;
34
+ updateMultiple(payload: Array<Partial<{
35
+ [key in keyof T]: any;
36
+ }> & {
37
+ [prumaryKeyFieldName in K]: string;
38
+ }>, callIdx?: number, collectedResult?: {
39
+ updatedRecords: Array<string>;
40
+ createdRecords: Array<string>;
41
+ records: Array<{
42
+ id: string;
43
+ fields: {
44
+ [key in T[keyof T]]: any;
45
+ };
46
+ }>;
47
+ }): Promise<{
48
+ updatedRecords: Array<string>;
49
+ createdRecords: Array<string>;
50
+ records: Array<{
51
+ id: string;
52
+ fields: {
53
+ [key in T[keyof T]]: any;
54
+ };
55
+ }>;
56
+ }>;
57
+ upsert(payload: Partial<{
58
+ [key in keyof T]: any;
59
+ }> & {
60
+ [prumaryKeyFieldName in K]: string;
61
+ }): Promise<{
62
+ id: string;
63
+ fields: { [key in keyof T]: any; };
64
+ }>;
65
+ static removePrimaryKey(x: any, primaryKeyFieldId: string): any;
66
+ static convertToDictionary<T extends Record<string, string>>(dictionary: T, x: Partial<{
67
+ [key in keyof T]: any;
68
+ }>): Partial<Record<T[keyof T], any>>;
69
+ createRecord(payload: Partial<{
70
+ [key in keyof T]: any;
71
+ }>): Promise<{
72
+ id: string;
73
+ fields: {
74
+ [key in keyof T]: any;
75
+ };
76
+ }>;
77
+ updateRecord(recordId: string, payload: Partial<{
78
+ [key in keyof T]: any;
79
+ }> & {
80
+ [prumaryKeyFieldName in K]: string;
81
+ }): Promise<{
82
+ id: string;
83
+ fields: {
84
+ [key in keyof T]: any;
85
+ };
86
+ }>;
87
+ getExistingRecord(payload: Partial<{
88
+ [key in keyof T]: any;
89
+ }> & {
90
+ [x in K]: string;
91
+ }): Promise<null | {
92
+ id: string;
93
+ fields: {
94
+ [key in keyof T]: any;
95
+ };
96
+ }>;
97
+ getExistingRecordById(id: string): Promise<{
98
+ id: string;
99
+ fields: {
100
+ [key in keyof T]: any;
101
+ };
102
+ }>;
103
+ getExistingRecords(formula: string): Promise<Array<{
104
+ id: string;
105
+ fields: {
106
+ [key in keyof T]: any;
107
+ };
108
+ }>>;
109
+ pingWebhook(webhook: {
110
+ webhook: {
111
+ id: string;
112
+ };
113
+ }): Promise<void>;
114
+ getPayloads(opts: {
115
+ url: string;
116
+ }): Promise<{
117
+ result: any[];
118
+ unprocessed: {
119
+ url: string;
120
+ $$error?: any;
121
+ } | null;
122
+ nextToProcess: {
123
+ url: string;
124
+ } | null;
125
+ }>;
126
+ listPayloads(input: {
127
+ webhook: {
128
+ id: string;
129
+ };
130
+ }, startingCursor: number): Promise<{
131
+ result: any[];
132
+ cursor: number;
133
+ unprocessed: {
134
+ webhook: {
135
+ id: string;
136
+ };
137
+ } | null;
138
+ nextToProcess: {
139
+ webhook: {
140
+ id: string;
141
+ };
142
+ } | null;
143
+ }>;
144
+ getWebhooks(): Promise<AirtableWebhook[]>;
145
+ enableOrPauseWebhook({ webhookId, pause }: {
146
+ webhookId: string;
147
+ pause: boolean;
148
+ }): Promise<AirtableWebhook>;
149
+ pause(): Promise<{
150
+ webhookId: string;
151
+ } | {
152
+ webhookId: null;
153
+ }>;
154
+ resume(): Promise<{
155
+ webhookId: string;
156
+ } | {
157
+ webhookId: null;
158
+ }>;
159
+ getWebhook(): Promise<AirtableWebhook | null>;
160
+ private createNotificationUrl;
161
+ isValidSignature(secret: string, payload: string, signature: string): Promise<boolean>;
162
+ deleteWebhook(x?: string): Promise<boolean>;
163
+ webhookHasChanged(): Promise<boolean>;
164
+ updateOrCreateWebhook(): Promise<AirtableWebhook | {
165
+ areNotificationsEnabled: true;
166
+ id: string;
167
+ macSecretBase64: string;
168
+ expirationTime: string;
169
+ }>;
170
+ }
171
+ export default AirtableHelper;
172
+ type AirtableWebhook = {
173
+ areNotificationsEnabled: boolean;
174
+ cursorForNextPayload: number;
175
+ expirationTime: string;
176
+ id: string;
177
+ isHookEnabled: true;
178
+ lastNotificationResult: {
179
+ completionTimestamp: string;
180
+ durationMs: number;
181
+ retryNumber: number;
182
+ success: true;
183
+ };
184
+ lastSuccessfulNotificationTime: string;
185
+ notificationUrl: string;
186
+ specification: {
187
+ options: {
188
+ filters: {
189
+ dataTypes: Array<"tableData" | "tableFields" | "tableMetadata">;
190
+ recordChangeScope?: string;
191
+ changeTypes?: Array<"add" | "remove" | "update">;
192
+ fromSources?: Array<"client" | "publicApi" | "formSubmission" | "formPageSubmission" | "automation" | "system" | "sync" | "anonymousUser" | "unknown">;
193
+ sourceOptions?: {
194
+ formPageSubmission?: {
195
+ pageId?: string;
196
+ };
197
+ formSubmission?: {
198
+ viewId?: string;
199
+ };
200
+ };
201
+ watchDataInFieldIds?: Array<string>;
202
+ watchSchemasOfFieldIds?: Array<string>;
203
+ };
204
+ includes?: {
205
+ includeCellValuesInFieldIds: Array<string> | "all";
206
+ includePreviousCellValues?: boolean;
207
+ includePreviousFieldDefinitions?: boolean;
208
+ };
209
+ };
210
+ };
211
+ };
@@ -0,0 +1,17 @@
1
+ import { type BigQuery } from '@google-cloud/bigquery';
2
+ import Runtime, { Opts as RuntimeOpts } from './runtime';
3
+ interface ColumnSchema {
4
+ name: string;
5
+ type: string;
6
+ mode?: string;
7
+ }
8
+ declare class BigQueryHelper extends Runtime {
9
+ private bigQuery;
10
+ constructor(opts: RuntimeOpts, bigQuery: BigQuery);
11
+ createOrUpdate(opts: {
12
+ datasetId: string;
13
+ tableName: string;
14
+ incomingSchema: ColumnSchema[];
15
+ }): Promise<string>;
16
+ }
17
+ export default BigQueryHelper;
@@ -0,0 +1,74 @@
1
+ import Runtime from './runtime';
2
+ export interface CloudTasksHelperOpts {
3
+ projectId: string;
4
+ serviceAccount: string;
5
+ accessToken: string;
6
+ envName: string;
7
+ workflowId: string;
8
+ triggerId: string;
9
+ url: string;
10
+ }
11
+ export interface CreateTaskOpts {
12
+ topicName: string;
13
+ httpTarget: {
14
+ uri?: string;
15
+ httpMethod?: 'POST' | 'GET' | 'PUT' | 'DELETE';
16
+ headers?: Record<string, string>;
17
+ body?: any;
18
+ };
19
+ extraQuery?: Record<string, string>;
20
+ scheduleSeconds?: number;
21
+ doNotCreateIfExists?: string;
22
+ deleteExistingTasks?: boolean;
23
+ repeatCount?: number;
24
+ }
25
+ export interface GcpQueue {
26
+ name: string;
27
+ retryConfig?: {
28
+ maxAttempts?: number;
29
+ maxRetryDuration?: string;
30
+ minBackoff?: string;
31
+ maxBackoff?: string;
32
+ maxDoublings?: number;
33
+ };
34
+ rateLimits?: {
35
+ maxDispatchesPerSecond?: number;
36
+ maxConcurrentDispatches?: number;
37
+ };
38
+ }
39
+ export interface GcpTask {
40
+ name: string;
41
+ scheduleTime?: string;
42
+ httpRequest?: {
43
+ httpMethod?: string;
44
+ url?: string;
45
+ headers?: Record<string, string>;
46
+ body?: string;
47
+ oidcToken?: {
48
+ serviceAccountEmail: string;
49
+ };
50
+ };
51
+ }
52
+ export interface GcpListTasksResponse {
53
+ tasks?: GcpTask[];
54
+ }
55
+ export default class CloudTasksHelper extends Runtime {
56
+ private projectId;
57
+ private serviceAccount;
58
+ private accessToken;
59
+ envName: string;
60
+ workflowId: string;
61
+ triggerId: string;
62
+ private location;
63
+ constructor(opts: CloudTasksHelperOpts);
64
+ private getQueueName;
65
+ private getQueuePath;
66
+ private getQueueApiUrl;
67
+ private getLocationApiUrl;
68
+ getQueue(topicName: string): Promise<GcpQueue | null>;
69
+ createOrUpdateQueue(topicName: string, retryConfig?: Required<GcpQueue['retryConfig']>, rateLimits?: Required<GcpQueue['rateLimits']>): Promise<void>;
70
+ private listTasks;
71
+ private deleteTask;
72
+ create(opts: CreateTaskOpts): Promise<false | string[]>;
73
+ delete(topicName: string): Promise<boolean>;
74
+ }
@@ -0,0 +1,55 @@
1
+ import Runtime, { Opts as RuntimeOpts } from './runtime';
2
+ interface DatoHelperOptions {
3
+ apiToken: string;
4
+ baseUrl?: string;
5
+ }
6
+ interface UploadResult {
7
+ success: boolean;
8
+ upload: string;
9
+ assetId?: string;
10
+ }
11
+ export default class DatoHelper extends Runtime {
12
+ private apiToken;
13
+ private baseUrl;
14
+ constructor(opts: RuntimeOpts, datoOpts: DatoHelperOptions);
15
+ private requestUploadParameters;
16
+ private uploadToStorageBucket;
17
+ private createAssetFromUpload;
18
+ private checkJobResult;
19
+ private waitForJobCompletion;
20
+ uploadFromUrl(options: {
21
+ url: string;
22
+ copyright: string;
23
+ author: string;
24
+ notes?: string;
25
+ tags: string[];
26
+ title: string;
27
+ alt: string;
28
+ filename?: string;
29
+ skipCreationIfAlreadyExists?: boolean;
30
+ uploadCollectionId?: string;
31
+ }): Promise<UploadResult>;
32
+ uploadFromFile(options: {
33
+ filePath: string;
34
+ copyright: string;
35
+ author: string;
36
+ notes?: string;
37
+ tags: string[];
38
+ title: string;
39
+ alt: string;
40
+ filename?: string;
41
+ skipCreationIfAlreadyExists?: boolean;
42
+ uploadCollectionId?: string;
43
+ }): Promise<UploadResult>;
44
+ getUploadCollections(): Promise<any>;
45
+ findUploadCollectionByLabel(label: string): Promise<any>;
46
+ static buildUrl(asset: string, opts: {
47
+ overrideExisting: boolean;
48
+ width?: number;
49
+ height?: number;
50
+ crop?: 'top' | 'bottom' | 'left' | 'right' | 'faces' | 'entropy' | 'edges' | 'focalpoint' | (string & {});
51
+ quality?: number;
52
+ format?: 'jpg' | 'pjpg' | 'png' | 'webp' | 'avif' | 'gif' | 'jxl' | 'jp2' | 'jxr' | 'json' | 'blurhash' | (string & {});
53
+ }): string;
54
+ }
55
+ export {};
@@ -0,0 +1,144 @@
1
+ import { IncomingMessage } from "http";
2
+ import { type PubSub } from "@google-cloud/pubsub";
3
+ import { RateLimiterRedis } from "rate-limiter-flexible";
4
+ import PubSubHelper from "./pubsub";
5
+ import Runtime, { Opts as RuntimeOpts } from './runtime';
6
+ import { RNConfiguration } from "./types";
7
+ declare global {
8
+ var HUSH_PUBSUB_INSTANCE: PubSub | undefined;
9
+ }
10
+ type Level = 'env' | 'workflow' | 'trigger';
11
+ type SetOptions = {
12
+ ephemeralMs?: number;
13
+ ignoreStores?: Array<'redis' | 'global'>;
14
+ encrypted: boolean;
15
+ encryptionKey?: string | undefined;
16
+ };
17
+ type GetOptions = {
18
+ isEphemeral?: boolean;
19
+ encrypted?: boolean;
20
+ encryptionKey?: string | undefined;
21
+ expirationMarginMs?: number;
22
+ store?: 'inMemory' | 'global' | 'redis';
23
+ };
24
+ type ValueDetails = {
25
+ createdAt: number;
26
+ expiresAt: number;
27
+ value: string;
28
+ valid: boolean;
29
+ fetch?: () => Promise<string>;
30
+ };
31
+ declare global {
32
+ var IN_MEMORY_REF: undefined | {
33
+ env: Record<string, Record<string, string>>;
34
+ workflow: Record<string, Record<string, string>>;
35
+ trigger: Record<string, Record<string, string>>;
36
+ };
37
+ }
38
+ declare class EnvEngine extends Runtime {
39
+ globalInMemoryRef: {
40
+ env: Record<string, string>;
41
+ workflow: Record<string, string>;
42
+ trigger: Record<string, string>;
43
+ };
44
+ inMemoryRef: {
45
+ env: Record<string, string>;
46
+ workflow: Record<string, string>;
47
+ trigger: Record<string, string>;
48
+ };
49
+ private docRef;
50
+ private store;
51
+ private _envCache;
52
+ private _lockRateLimiter;
53
+ constructor(opts: Runtime | RuntimeOpts, _?: any);
54
+ private initializeDocRef;
55
+ set(envs: Array<{
56
+ name: string;
57
+ value: string;
58
+ }>, level: Level, options?: SetOptions): Promise<void>;
59
+ set(envs: Array<{
60
+ name: string;
61
+ value: string;
62
+ }>, level: Level, encryptWithValue?: string): Promise<void>;
63
+ private getFirestoreStore;
64
+ get<T extends ReadonlyArray<string>>(keys: T, level?: Level, options?: GetOptions): Promise<{
65
+ [K in T[number]]: string;
66
+ }>;
67
+ get<T extends ReadonlyArray<string>>(keys: T, level?: Level, decryptWithValue?: string): Promise<{
68
+ [K in T[number]]: string;
69
+ }>;
70
+ get<M extends string, T extends readonly [M] = [M]>(key: M, level?: Level, options?: GetOptions): Promise<string>;
71
+ get<M extends string, T extends readonly [M] = [M]>(key: M, level?: Level, decryptWithValue?: string): Promise<string>;
72
+ _get<T extends ReadonlyArray<string>>(keysParsed: T, level: Level | undefined, options: GetOptions): Promise<{
73
+ [K in T[number]]: ValueDetails;
74
+ }>;
75
+ withGoogleAccessToken(): ReturnType<typeof this.with<string>>;
76
+ withGoogleIdentityToken(audience: {
77
+ workflowId: string;
78
+ triggerId: string;
79
+ }): ReturnType<typeof this.with<string>>;
80
+ resolveEnvName(envName: string): string;
81
+ checkGoogleIdentiyToken(accessToken: string, audience?: {
82
+ workflowId?: string;
83
+ triggerId?: string;
84
+ }, allowedServiceAccounts?: Array<string>): Promise<any>;
85
+ withSecret(key: string): ReturnType<typeof this.with<string>>;
86
+ with<M extends string>(key: M, level?: Level, options?: SetOptions & {
87
+ fetch?: () => Promise<M>;
88
+ }): <T>(fn: (value: M, requestCacheRefresh?: () => void) => Promise<T> | T) => Promise<T>;
89
+ pauseRespectfulNudge(subscriptionName: string, partialConfig?: Partial<{
90
+ workflowTriggerId: string;
91
+ pubSubProjectId: string;
92
+ }>): Promise<boolean>;
93
+ getRespectfulNudgeConfig(subscriptionName: string, rnPartialConfig: Partial<RNConfiguration>): RNConfiguration;
94
+ createOrUpdateRespectfulNudge(subscriptionName: string, rnPartialConfig: Partial<RNConfiguration>): Promise<boolean>;
95
+ getRequestSource(request: {
96
+ headers: NodeJS.Dict<string | string[]>;
97
+ }): "respectful-nudge" | "pubsub" | "scheduler" | "cloud-task" | "direct";
98
+ validateAuthorizationHeader(request: {
99
+ headers: NodeJS.Dict<string | string[]>;
100
+ }): Promise<{
101
+ serviceAccount: any;
102
+ flags: string[];
103
+ }>;
104
+ decodeRequests(request: {
105
+ headers: NodeJS.Dict<string | string[]>;
106
+ query: Record<string, string>;
107
+ }, nodeReq: IncomingMessage): Promise<{
108
+ requestSource: string;
109
+ messageId: string | undefined;
110
+ sourceSystem: string;
111
+ targetSystem: string;
112
+ buildshipId: string;
113
+ publishTime: Date | null;
114
+ body: any;
115
+ bodyTxt: string | null;
116
+ exportableToBigQuery: boolean;
117
+ extraAttributes: Record<string, string>;
118
+ subscriptionName: string | undefined;
119
+ }[]>;
120
+ decodeRequest(request: {
121
+ headers: NodeJS.Dict<string | string[]>;
122
+ query: Record<string, string>;
123
+ }, nodeReq: IncomingMessage): Promise<{
124
+ requestSource: string;
125
+ messageId: string | undefined;
126
+ sourceSystem: string;
127
+ targetSystem: string;
128
+ buildshipId: string;
129
+ publishTime: Date | null;
130
+ body: any;
131
+ bodyTxt: string | null;
132
+ exportableToBigQuery: boolean;
133
+ extraAttributes: Record<string, string>;
134
+ subscriptionName: string | undefined;
135
+ }>;
136
+ fetchLogEntries(triggerId: string, retries?: number, delay?: number, filterOverride?: string | null): Promise<any>;
137
+ getPubSubHelper(PubSubClass: typeof PubSub): PubSubHelper;
138
+ static readonly LOCK_NOT_ACQUIRED_ERROR: unique symbol;
139
+ withLock<T>(key: string, maxWaitTimeMs: number | undefined, fn: () => Promise<T>): Promise<T | typeof EnvEngine.LOCK_NOT_ACQUIRED_ERROR>;
140
+ acquireLock(key: string, maxWaitTimeMs?: number): Promise<boolean>;
141
+ releaseLock(key: string): Promise<boolean>;
142
+ getLockRateLimiter(): Promise<null | RateLimiterRedis>;
143
+ }
144
+ export default EnvEngine;
@@ -0,0 +1 @@
1
+ export default function getEventTime(x: any, defaultValue: Date): Date;
@@ -0,0 +1,16 @@
1
+ export { default as validate } from './validate';
2
+ export * from './sanitize';
3
+ export * from './utils';
4
+ export { default as EnvEngine } from './env';
5
+ export { default as PubSubHelper, type Message, type ReceivedMessage } from './pubsub';
6
+ export { default as Runtime, Logging, ILogging } from './runtime';
7
+ export { default as SchedulerHelper } from './scheduler';
8
+ export { default as Secrets } from './secret';
9
+ export { default as CloudTasksHelper } from './cloudtasks';
10
+ export { default as JWKSHelper } from './jwks';
11
+ export { default as BigQueryHelper } from './bigquery';
12
+ export { default as AirtableHelper } from './airtable';
13
+ export { default as DatoHelper } from './dato';
14
+ export { default as setHeaders } from './setHeaders';
15
+ export { default as RateLimit, RedisConnectionError } from './rateLimit';
16
+ export { type TriggerOnCreateOptions, type TriggerOnExecuteOptions, type NodeOptions, type RNConfiguration, type TriggerExtraOptions } from './types';
@@ -0,0 +1,15 @@
1
+ import { IncomingMessage } from 'http';
2
+ export declare function isValidIp(value: string): boolean;
3
+ export declare function isValidCidr(value: string): boolean;
4
+ export declare function validateIpOrCidr(value: string): boolean;
5
+ export declare function isIpInCidr(ip: string, cidr: string): boolean;
6
+ export declare function isIpInCidrs(ip: string, cidrs: string[]): boolean;
7
+ export declare function getClientIp(req: IncomingMessage): string | undefined;
8
+ declare const _default: {
9
+ isValidIp: typeof isValidIp;
10
+ isValidCidr: typeof isValidCidr;
11
+ validateIpOrCidr: typeof validateIpOrCidr;
12
+ isIpInCidr: typeof isIpInCidr;
13
+ isIpInCidrs: typeof isIpInCidrs;
14
+ };
15
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { type Firestore } from "@google-cloud/firestore";
2
+ import Runtime, { Opts as RuntimeOpts } from "./runtime";
3
+ export declare const CACHE_TABLE = "cache-global";
4
+ declare class JWKSHelper extends Runtime {
5
+ private firestore;
6
+ constructor(opts: RuntimeOpts, firestore: Firestore);
7
+ validateAuthorizationHeader(authorizationHeader: string, expectedServiceAccount?: false | string | null): Promise<{
8
+ email: any;
9
+ }>;
10
+ getKey(keyId: string): Promise<{
11
+ kid: string;
12
+ } | undefined>;
13
+ private fetchJWKS;
14
+ }
15
+ export default JWKSHelper;