@getbrevo/brevo 4.0.1 → 5.0.1

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 (645) hide show
  1. package/README.md +6 -6
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/account/exports.d.ts +2 -0
  4. package/dist/cjs/api/resources/account/exports.js +21 -0
  5. package/dist/cjs/api/resources/account/types/GetAccountActivityResponse.d.ts +1 -1
  6. package/dist/cjs/api/resources/account/types/GetAccountResponse.d.ts +7 -7
  7. package/dist/cjs/api/resources/balance/client/Client.d.ts +2 -2
  8. package/dist/cjs/api/resources/balance/client/Client.js +6 -6
  9. package/dist/cjs/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidTransactionHistoryRequest.d.ts +5 -5
  10. package/dist/cjs/api/resources/balance/exports.d.ts +2 -0
  11. package/dist/cjs/api/resources/balance/exports.js +21 -0
  12. package/dist/cjs/api/resources/balance/types/CreateBalanceOrderResponse.d.ts +6 -6
  13. package/dist/cjs/api/resources/balance/types/GetBalanceDefinitionListResponse.d.ts +1 -1
  14. package/dist/cjs/api/resources/balance/types/GetContactBalancesResponse.d.ts +8 -8
  15. package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.d.ts +15 -15
  16. package/dist/cjs/api/resources/balance/types/GetSubscriptionBalancesResponse.d.ts +3 -3
  17. package/dist/cjs/api/resources/balance/types/PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse.d.ts +9 -9
  18. package/dist/cjs/api/resources/balance/types/index.d.ts +0 -1
  19. package/dist/cjs/api/resources/balance/types/index.js +0 -1
  20. package/dist/cjs/api/resources/companies/client/Client.d.ts +28 -0
  21. package/dist/cjs/api/resources/companies/client/Client.js +107 -0
  22. package/dist/cjs/api/resources/companies/client/requests/DeleteCrmAttributesIdRequest.d.ts +10 -0
  23. package/dist/cjs/api/resources/companies/client/requests/DeleteCrmAttributesIdRequest.js +3 -0
  24. package/dist/cjs/api/resources/companies/client/requests/PatchCrmAttributesIdRequest.d.ts +33 -0
  25. package/dist/cjs/api/resources/companies/client/requests/PatchCrmAttributesIdRequest.js +12 -0
  26. package/dist/cjs/api/resources/companies/client/requests/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/companies/client/requests/index.js +3 -1
  28. package/dist/cjs/api/resources/companies/exports.d.ts +2 -0
  29. package/dist/cjs/api/resources/companies/exports.js +21 -0
  30. package/dist/cjs/api/resources/companies/types/GetCompaniesResponse.d.ts +1 -1
  31. package/dist/cjs/api/resources/companies/types/GetCrmAttributesCompaniesResponseItem.d.ts +5 -5
  32. package/dist/cjs/api/resources/companies/types/PostCompaniesImportResponse.d.ts +1 -1
  33. package/dist/cjs/api/resources/contacts/client/Client.d.ts +15 -45
  34. package/dist/cjs/api/resources/contacts/client/Client.js +15 -45
  35. package/dist/cjs/api/resources/contacts/client/requests/AddContactToListRequest.d.ts +0 -24
  36. package/dist/cjs/api/resources/contacts/client/requests/ImportContactsRequest.d.ts +4 -4
  37. package/dist/cjs/api/resources/contacts/client/requests/RemoveContactFromListRequest.d.ts +0 -32
  38. package/dist/cjs/api/resources/contacts/client/requests/RequestContactExportRequest.d.ts +7 -7
  39. package/dist/cjs/api/resources/contacts/client/requests/UpdateBatchContactsRequest.d.ts +10 -10
  40. package/dist/cjs/api/resources/contacts/exports.d.ts +2 -0
  41. package/dist/cjs/api/resources/contacts/exports.js +21 -0
  42. package/dist/cjs/api/resources/contacts/types/CreateContactResponse.d.ts +1 -1
  43. package/dist/cjs/api/resources/contacts/types/GetAttributesResponse.d.ts +4 -4
  44. package/dist/cjs/api/resources/contacts/types/GetContactInfoResponse.d.ts +13 -13
  45. package/dist/cjs/api/resources/contacts/types/GetContactStatsResponse.d.ts +11 -11
  46. package/dist/cjs/api/resources/contacts/types/GetFolderListsResponse.d.ts +2 -2
  47. package/dist/cjs/api/resources/contacts/types/GetFoldersResponse.d.ts +2 -2
  48. package/dist/cjs/api/resources/contacts/types/GetListResponse.d.ts +2 -2
  49. package/dist/cjs/api/resources/contacts/types/GetListsResponse.d.ts +2 -2
  50. package/dist/cjs/api/resources/contacts/types/GetSegmentsResponse.d.ts +3 -3
  51. package/dist/cjs/api/resources/conversations/exports.d.ts +2 -0
  52. package/dist/cjs/api/resources/conversations/exports.js +21 -0
  53. package/dist/cjs/api/resources/conversations/types/PutConversationsVisitorGroupResponse.d.ts +2 -2
  54. package/dist/cjs/api/resources/coupons/exports.d.ts +2 -0
  55. package/dist/cjs/api/resources/coupons/exports.js +21 -0
  56. package/dist/cjs/api/resources/customObjects/client/Client.d.ts +6 -14
  57. package/dist/cjs/api/resources/customObjects/client/Client.js +6 -14
  58. package/dist/cjs/api/resources/customObjects/client/requests/UpsertrecordsRequest.d.ts +6 -6
  59. package/dist/cjs/api/resources/customObjects/exports.d.ts +2 -0
  60. package/dist/cjs/api/resources/customObjects/exports.js +21 -0
  61. package/dist/cjs/api/resources/customObjects/types/BatchDeleteObjectRecordsResponse.d.ts +2 -2
  62. package/dist/cjs/api/resources/customObjects/types/GetrecordsResponse.d.ts +9 -9
  63. package/dist/cjs/api/resources/customObjects/types/UpsertrecordsResponse.d.ts +3 -3
  64. package/dist/cjs/api/resources/deals/client/Client.d.ts +2 -0
  65. package/dist/cjs/api/resources/deals/client/Client.js +2 -0
  66. package/dist/cjs/api/resources/deals/exports.d.ts +2 -0
  67. package/dist/cjs/api/resources/deals/exports.js +21 -0
  68. package/dist/cjs/api/resources/deals/types/GetCrmAttributesDealsResponseItem.d.ts +5 -5
  69. package/dist/cjs/api/resources/deals/types/GetCrmDealsResponse.d.ts +1 -1
  70. package/dist/cjs/api/resources/deals/types/PostCrmDealsImportResponse.d.ts +1 -1
  71. package/dist/cjs/api/resources/domains/client/requests/AuthenticateDomainRequest.d.ts +0 -5
  72. package/dist/cjs/api/resources/domains/client/requests/CreateDomainRequest.d.ts +0 -10
  73. package/dist/cjs/api/resources/domains/client/requests/GetDomainConfigurationRequest.d.ts +0 -5
  74. package/dist/cjs/api/resources/domains/exports.d.ts +2 -0
  75. package/dist/cjs/api/resources/domains/exports.js +21 -0
  76. package/dist/cjs/api/resources/domains/types/CreateDomainResponse.d.ts +2 -2
  77. package/dist/cjs/api/resources/domains/types/GetDomainsResponse.d.ts +1 -1
  78. package/dist/cjs/api/resources/ecommerce/client/Client.d.ts +2 -4
  79. package/dist/cjs/api/resources/ecommerce/client/Client.js +2 -4
  80. package/dist/cjs/api/resources/ecommerce/client/requests/CreateBatchOrderRequest.d.ts +1 -2
  81. package/dist/cjs/api/resources/ecommerce/client/requests/CreateProductAlertRequest.d.ts +3 -3
  82. package/dist/cjs/api/resources/ecommerce/client/requests/CreateUpdateBatchCategoryRequest.d.ts +4 -4
  83. package/dist/cjs/api/resources/ecommerce/client/requests/CreateUpdateBatchProductsRequest.d.ts +10 -10
  84. package/dist/cjs/api/resources/ecommerce/exports.d.ts +2 -0
  85. package/dist/cjs/api/resources/ecommerce/exports.js +21 -0
  86. package/dist/cjs/api/resources/ecommerce/types/CreateBatchOrderResponse.d.ts +1 -1
  87. package/dist/cjs/api/resources/ecommerce/types/CreateUpdateBatchCategoryResponse.d.ts +2 -2
  88. package/dist/cjs/api/resources/ecommerce/types/CreateUpdateBatchProductsResponse.d.ts +2 -2
  89. package/dist/cjs/api/resources/ecommerce/types/CreateUpdateCategoryResponse.d.ts +1 -1
  90. package/dist/cjs/api/resources/ecommerce/types/CreateUpdateProductResponse.d.ts +1 -1
  91. package/dist/cjs/api/resources/ecommerce/types/GetEcommerceAttributionProductsConversionSourceConversionSourceIdResponse.d.ts +7 -7
  92. package/dist/cjs/api/resources/emailCampaigns/client/Client.d.ts +2 -5
  93. package/dist/cjs/api/resources/emailCampaigns/client/Client.js +4 -6
  94. package/dist/cjs/api/resources/emailCampaigns/client/requests/CreateEmailCampaignRequest.d.ts +9 -9
  95. package/dist/cjs/api/resources/emailCampaigns/client/requests/GetEmailCampaignRequest.d.ts +2 -0
  96. package/dist/cjs/api/resources/emailCampaigns/client/requests/UpdateEmailCampaignRequest.d.ts +9 -9
  97. package/dist/cjs/api/resources/emailCampaigns/exports.d.ts +2 -0
  98. package/dist/cjs/api/resources/emailCampaigns/exports.js +21 -0
  99. package/dist/cjs/api/resources/emailCampaigns/types/GetAbTestCampaignResultResponse.d.ts +8 -8
  100. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignResponse.d.ts +32 -25
  101. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignResponse.js +3 -0
  102. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsRequestStatus.d.ts +2 -0
  103. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsRequestStatus.js +2 -0
  104. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.d.ts +34 -27
  105. package/dist/cjs/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.js +3 -0
  106. package/dist/cjs/api/resources/emailCampaigns/types/UploadImageToGalleryResponse.d.ts +1 -1
  107. package/dist/cjs/api/resources/event/client/Client.d.ts +17 -0
  108. package/dist/cjs/api/resources/event/client/Client.js +57 -0
  109. package/dist/cjs/api/resources/event/client/requests/CreateEventRequest.d.ts +10 -10
  110. package/dist/cjs/api/resources/event/exports.d.ts +2 -0
  111. package/dist/cjs/api/resources/event/exports.js +21 -0
  112. package/dist/cjs/api/resources/event/index.d.ts +1 -0
  113. package/dist/cjs/api/resources/event/index.js +1 -0
  114. package/dist/cjs/api/resources/event/types/CreateBatchEventsRequestItem.d.ts +59 -0
  115. package/dist/cjs/api/resources/event/types/CreateBatchEventsRequestItem.js +3 -0
  116. package/dist/cjs/api/resources/event/types/index.d.ts +1 -0
  117. package/dist/cjs/api/resources/event/types/index.js +17 -0
  118. package/dist/cjs/api/resources/externalFeeds/client/requests/GetExternalFeedByUuidRequest.d.ts +0 -10
  119. package/dist/cjs/api/resources/externalFeeds/exports.d.ts +2 -0
  120. package/dist/cjs/api/resources/externalFeeds/exports.js +21 -0
  121. package/dist/cjs/api/resources/externalFeeds/types/GetAllExternalFeedsResponse.d.ts +4 -4
  122. package/dist/cjs/api/resources/externalFeeds/types/GetExternalFeedByUuidResponse.d.ts +4 -4
  123. package/dist/cjs/api/resources/files/exports.d.ts +2 -0
  124. package/dist/cjs/api/resources/files/exports.js +21 -0
  125. package/dist/cjs/api/resources/files/types/GetCrmFilesIdResponse.d.ts +1 -1
  126. package/dist/cjs/api/resources/inboundParsing/client/Client.d.ts +1 -0
  127. package/dist/cjs/api/resources/inboundParsing/client/Client.js +1 -0
  128. package/dist/cjs/api/resources/inboundParsing/exports.d.ts +2 -0
  129. package/dist/cjs/api/resources/inboundParsing/exports.js +21 -0
  130. package/dist/cjs/api/resources/inboundParsing/types/GetInboundEmailEventsByUuidResponse.d.ts +14 -14
  131. package/dist/cjs/api/resources/inboundParsing/types/GetInboundEmailEventsResponse.d.ts +1 -1
  132. package/dist/cjs/api/resources/index.d.ts +1 -0
  133. package/dist/cjs/api/resources/index.js +1 -0
  134. package/dist/cjs/api/resources/masterAccount/client/requests/InviteAdminUserRequest.d.ts +2 -2
  135. package/dist/cjs/api/resources/masterAccount/client/requests/PutCorporateSubAccountIdPlanRequest.d.ts +9 -9
  136. package/dist/cjs/api/resources/masterAccount/client/requests/PutCorporateSubAccountsPlanRequest.d.ts +8 -8
  137. package/dist/cjs/api/resources/masterAccount/client/requests/PutCorporateUserEmailPermissionsRequest.d.ts +2 -2
  138. package/dist/cjs/api/resources/masterAccount/exports.d.ts +2 -0
  139. package/dist/cjs/api/resources/masterAccount/exports.js +21 -0
  140. package/dist/cjs/api/resources/masterAccount/types/GetCorporateGroupIdResponse.d.ts +12 -12
  141. package/dist/cjs/api/resources/masterAccount/types/GetCorporateInvitedUsersListResponse.d.ts +11 -11
  142. package/dist/cjs/api/resources/masterAccount/types/GetCorporateIpResponseItem.d.ts +3 -3
  143. package/dist/cjs/api/resources/masterAccount/types/GetCorporateMasterAccountResponse.d.ts +31 -31
  144. package/dist/cjs/api/resources/masterAccount/types/GetCorporateSubAccountIdResponse.d.ts +37 -37
  145. package/dist/cjs/api/resources/masterAccount/types/GetCorporateSubAccountResponse.d.ts +4 -4
  146. package/dist/cjs/api/resources/masterAccount/types/GetCorporateUserPermissionResponse.d.ts +10 -10
  147. package/dist/cjs/api/resources/masterAccount/types/GetSubAccountGroupsResponseItem.d.ts +2 -2
  148. package/dist/cjs/api/resources/masterAccount/types/InviteAdminUserResponse.d.ts +1 -1
  149. package/dist/cjs/api/resources/masterAccount/types/PostCorporateGroupResponse.d.ts +1 -1
  150. package/dist/cjs/api/resources/masterAccount/types/PutCorporateUserInvitationActionEmailResponse.d.ts +1 -1
  151. package/dist/cjs/api/resources/notes/exports.d.ts +2 -0
  152. package/dist/cjs/api/resources/notes/exports.js +21 -0
  153. package/dist/cjs/api/resources/notes/types/PostCrmNotesResponse.d.ts +1 -1
  154. package/dist/cjs/api/resources/payments/exports.d.ts +2 -0
  155. package/dist/cjs/api/resources/payments/exports.js +21 -0
  156. package/dist/cjs/api/resources/payments/types/CreatePaymentRequestResponse.d.ts +1 -1
  157. package/dist/cjs/api/resources/payments/types/GetPaymentRequestResponse.d.ts +3 -3
  158. package/dist/cjs/api/resources/process/client/requests/GetProcessRequest.d.ts +0 -15
  159. package/dist/cjs/api/resources/process/exports.d.ts +2 -0
  160. package/dist/cjs/api/resources/process/exports.js +21 -0
  161. package/dist/cjs/api/resources/process/types/GetProcessResponse.d.ts +16 -16
  162. package/dist/cjs/api/resources/process/types/GetProcessesResponse.d.ts +16 -16
  163. package/dist/cjs/api/resources/program/client/Client.d.ts +21 -0
  164. package/dist/cjs/api/resources/program/client/Client.js +67 -0
  165. package/dist/cjs/api/resources/program/client/requests/DeleteContactSubscriptionRequest.d.ts +13 -0
  166. package/dist/cjs/api/resources/program/client/requests/DeleteContactSubscriptionRequest.js +3 -0
  167. package/dist/cjs/api/resources/program/client/requests/index.d.ts +1 -0
  168. package/dist/cjs/api/resources/program/exports.d.ts +2 -0
  169. package/dist/cjs/api/resources/program/exports.js +21 -0
  170. package/dist/cjs/api/resources/program/types/GetLpListResponse.d.ts +1 -1
  171. package/dist/cjs/api/resources/program/types/GetParameterSubscriptionInfoResponse.d.ts +28 -28
  172. package/dist/cjs/api/resources/program/types/SubscribeMemberToASubscriptionResponse.d.ts +5 -5
  173. package/dist/cjs/api/resources/program/types/SubscribeToLoyaltyProgramResponse.d.ts +7 -7
  174. package/dist/cjs/api/resources/reward/client/requests/RedeemVoucherRequest.d.ts +26 -26
  175. package/dist/cjs/api/resources/reward/exports.d.ts +2 -0
  176. package/dist/cjs/api/resources/reward/exports.js +21 -0
  177. package/dist/cjs/api/resources/reward/types/CreateRewardResponse.d.ts +8 -8
  178. package/dist/cjs/api/resources/reward/types/CreateVoucherResponse.d.ts +11 -11
  179. package/dist/cjs/api/resources/reward/types/GetCodeCountResponse.d.ts +1 -1
  180. package/dist/cjs/api/resources/reward/types/GetLoyaltyOfferProgramsPidOffersResponse.d.ts +11 -11
  181. package/dist/cjs/api/resources/reward/types/GetLoyaltyOfferProgramsPidRewardsRidResponse.d.ts +81 -81
  182. package/dist/cjs/api/resources/reward/types/GetLoyaltyOfferProgramsPidVouchersResponse.d.ts +15 -15
  183. package/dist/cjs/api/resources/reward/types/ValidateRewardResponse.d.ts +1 -1
  184. package/dist/cjs/api/resources/senders/client/requests/CreateSenderRequest.d.ts +1 -13
  185. package/dist/cjs/api/resources/senders/client/requests/GetIpsFromSenderRequest.d.ts +0 -5
  186. package/dist/cjs/api/resources/senders/client/requests/GetSendersRequest.d.ts +0 -3
  187. package/dist/cjs/api/resources/senders/client/requests/UpdateSenderRequest.d.ts +1 -1
  188. package/dist/cjs/api/resources/senders/exports.d.ts +2 -0
  189. package/dist/cjs/api/resources/senders/exports.js +21 -0
  190. package/dist/cjs/api/resources/senders/types/CreateSenderResponse.d.ts +2 -2
  191. package/dist/cjs/api/resources/senders/types/GetSendersResponse.d.ts +1 -1
  192. package/dist/cjs/api/resources/smsCampaigns/client/requests/CreateSmsCampaignRequest.d.ts +1 -1
  193. package/dist/cjs/api/resources/smsCampaigns/client/requests/UpdateSmsCampaignRequest.d.ts +1 -1
  194. package/dist/cjs/api/resources/smsCampaigns/exports.d.ts +2 -0
  195. package/dist/cjs/api/resources/smsCampaigns/exports.js +21 -0
  196. package/dist/cjs/api/resources/smsCampaigns/types/GetSmsCampaignResponse.d.ts +1 -1
  197. package/dist/cjs/api/resources/smsCampaigns/types/GetSmsCampaignsResponse.d.ts +3 -3
  198. package/dist/cjs/api/resources/smsTemplates/exports.d.ts +2 -0
  199. package/dist/cjs/api/resources/smsTemplates/exports.js +21 -0
  200. package/dist/cjs/api/resources/smsTemplates/types/GetSmsTemplatesResponse.d.ts +17 -17
  201. package/dist/cjs/api/resources/tasks/exports.d.ts +2 -0
  202. package/dist/cjs/api/resources/tasks/exports.js +21 -0
  203. package/dist/cjs/api/resources/tasks/types/GetCrmTasksResponse.d.ts +1 -1
  204. package/dist/cjs/api/resources/tasks/types/GetCrmTasktypesResponse.d.ts +2 -2
  205. package/dist/cjs/api/resources/tier/client/Client.d.ts +2 -2
  206. package/dist/cjs/api/resources/tier/client/Client.js +2 -2
  207. package/dist/cjs/api/resources/tier/client/requests/CreateTierForTierGroupRequest.d.ts +3 -3
  208. package/dist/cjs/api/resources/tier/client/requests/UpdateTierRequest.d.ts +3 -3
  209. package/dist/cjs/api/resources/tier/exports.d.ts +2 -0
  210. package/dist/cjs/api/resources/tier/exports.js +21 -0
  211. package/dist/cjs/api/resources/tier/types/AddSubscriptionToTierResponse.d.ts +7 -7
  212. package/dist/cjs/api/resources/tier/types/GetListOfTierGroupsResponse.d.ts +1 -1
  213. package/dist/cjs/api/resources/tier/types/GetLoyaltyProgramTierResponse.d.ts +1 -1
  214. package/dist/cjs/api/resources/transactionalEmails/client/Client.d.ts +2 -6
  215. package/dist/cjs/api/resources/transactionalEmails/client/Client.js +2 -6
  216. package/dist/cjs/api/resources/transactionalEmails/client/requests/CreateSmtpTemplateRequest.d.ts +3 -3
  217. package/dist/cjs/api/resources/transactionalEmails/client/requests/GetScheduledEmailByIdRequest.d.ts +0 -7
  218. package/dist/cjs/api/resources/transactionalEmails/client/requests/SendTransacEmailRequest.d.ts +21 -21
  219. package/dist/cjs/api/resources/transactionalEmails/client/requests/UpdateSmtpTemplateRequest.d.ts +3 -3
  220. package/dist/cjs/api/resources/transactionalEmails/exports.d.ts +2 -0
  221. package/dist/cjs/api/resources/transactionalEmails/exports.js +21 -0
  222. package/dist/cjs/api/resources/transactionalEmails/types/GetAggregatedSmtpReportResponse.d.ts +13 -13
  223. package/dist/cjs/api/resources/transactionalEmails/types/GetEmailEventReportResponse.d.ts +8 -8
  224. package/dist/cjs/api/resources/transactionalEmails/types/GetSmtpReportResponse.d.ts +1 -1
  225. package/dist/cjs/api/resources/transactionalEmails/types/GetSmtpTemplatesResponse.d.ts +2 -2
  226. package/dist/cjs/api/resources/transactionalEmails/types/GetTransacBlockedContactsResponse.d.ts +4 -4
  227. package/dist/cjs/api/resources/transactionalEmails/types/GetTransacEmailContentResponse.d.ts +1 -1
  228. package/dist/cjs/api/resources/transactionalEmails/types/GetTransacEmailsListResponse.d.ts +5 -5
  229. package/dist/cjs/api/resources/transactionalEmails/types/PostPreviewSmtpEmailTemplatesResponse.d.ts +6 -6
  230. package/dist/cjs/api/resources/transactionalEmails/types/SendTransacEmailResponse.d.ts +2 -2
  231. package/dist/cjs/api/resources/transactionalSms/client/Client.d.ts +5 -9
  232. package/dist/cjs/api/resources/transactionalSms/client/Client.js +5 -9
  233. package/dist/cjs/api/resources/transactionalSms/exports.d.ts +2 -0
  234. package/dist/cjs/api/resources/transactionalSms/exports.js +21 -0
  235. package/dist/cjs/api/resources/transactionalSms/types/GetSmsEventsResponse.d.ts +8 -8
  236. package/dist/cjs/api/resources/transactionalSms/types/GetTransacAggregatedSmsReportResponse.d.ts +11 -11
  237. package/dist/cjs/api/resources/transactionalSms/types/GetTransacSmsReportResponse.d.ts +12 -12
  238. package/dist/cjs/api/resources/transactionalSms/types/SendTransacSmsResponse.d.ts +3 -3
  239. package/dist/cjs/api/resources/transactionalWhatsApp/client/Client.d.ts +2 -1
  240. package/dist/cjs/api/resources/transactionalWhatsApp/client/Client.js +2 -1
  241. package/dist/cjs/api/resources/transactionalWhatsApp/exports.d.ts +2 -0
  242. package/dist/cjs/api/resources/transactionalWhatsApp/exports.js +21 -0
  243. package/dist/cjs/api/resources/transactionalWhatsApp/types/GetWhatsappEventReportResponse.d.ts +4 -4
  244. package/dist/cjs/api/resources/user/exports.d.ts +2 -0
  245. package/dist/cjs/api/resources/user/exports.js +21 -0
  246. package/dist/cjs/api/resources/user/types/EditUserPermissionResponse.d.ts +2 -2
  247. package/dist/cjs/api/resources/user/types/GetInvitedUsersListResponse.d.ts +4 -4
  248. package/dist/cjs/api/resources/user/types/InviteuserResponse.d.ts +1 -1
  249. package/dist/cjs/api/resources/user/types/PutRevokeUserPermissionResponse.d.ts +1 -1
  250. package/dist/cjs/api/resources/user/types/PutresendcancelinvitationResponse.d.ts +1 -1
  251. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +7 -13
  252. package/dist/cjs/api/resources/webhooks/client/Client.js +7 -13
  253. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequest.d.ts +6 -4
  254. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhookRequest.js +1 -0
  255. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.ts +6 -4
  256. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhookRequest.js +1 -0
  257. package/dist/cjs/api/resources/webhooks/exports.d.ts +2 -0
  258. package/dist/cjs/api/resources/webhooks/exports.js +21 -0
  259. package/dist/cjs/api/resources/whatsAppCampaigns/client/Client.d.ts +19 -44
  260. package/dist/cjs/api/resources/whatsAppCampaigns/client/Client.js +19 -44
  261. package/dist/cjs/api/resources/whatsAppCampaigns/client/requests/CreateWhatsAppCampaignRequest.d.ts +3 -3
  262. package/dist/cjs/api/resources/whatsAppCampaigns/client/requests/UpdateWhatsAppCampaignRequest.d.ts +3 -3
  263. package/dist/cjs/api/resources/whatsAppCampaigns/exports.d.ts +2 -0
  264. package/dist/cjs/api/resources/whatsAppCampaigns/exports.js +21 -0
  265. package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignResponse.d.ts +15 -15
  266. package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignsResponse.d.ts +6 -6
  267. package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppConfigResponse.d.ts +6 -6
  268. package/dist/cjs/api/resources/whatsAppCampaigns/types/GetWhatsAppTemplatesResponse.d.ts +3 -3
  269. package/dist/cjs/api/types/BalanceDefinition.d.ts +20 -20
  270. package/dist/cjs/api/types/BalanceLimit.d.ts +8 -8
  271. package/dist/cjs/api/types/BatchEventsResponse.d.ts +26 -0
  272. package/dist/cjs/api/types/BatchEventsResponse.js +3 -0
  273. package/dist/cjs/api/types/Company.d.ts +4 -4
  274. package/dist/cjs/api/types/ContactErrorModel.d.ts +1 -1
  275. package/dist/cjs/api/types/ConversationsMessage.d.ts +53 -53
  276. package/dist/cjs/api/types/CreateUpdateFolder.d.ts +1 -1
  277. package/dist/cjs/api/types/Deal.d.ts +4 -4
  278. package/dist/cjs/api/types/ErrorModel.d.ts +1 -1
  279. package/dist/cjs/api/types/FileData.d.ts +7 -7
  280. package/dist/cjs/api/types/GetCampaignStats.d.ts +7 -7
  281. package/dist/cjs/api/types/GetCategoryDetails.d.ts +1 -1
  282. package/dist/cjs/api/types/GetContactDetails.d.ts +2 -2
  283. package/dist/cjs/api/types/GetCouponCollection.d.ts +3 -3
  284. package/dist/cjs/api/types/GetExtendedCampaignOverview.d.ts +32 -25
  285. package/dist/cjs/api/types/GetExtendedCampaignOverview.js +3 -0
  286. package/dist/cjs/api/types/GetExtendedCampaignStats.d.ts +4 -4
  287. package/dist/cjs/api/types/GetProductDetails.d.ts +10 -10
  288. package/dist/cjs/api/types/GetSmsCampaignOverview.d.ts +1 -1
  289. package/dist/cjs/api/types/GetSmtpTemplateOverview.d.ts +4 -4
  290. package/dist/cjs/api/types/GetWebhook.d.ts +4 -4
  291. package/dist/cjs/api/types/Inviteuser.d.ts +2 -2
  292. package/dist/cjs/api/types/LoyaltyProgram.d.ts +12 -12
  293. package/dist/cjs/api/types/NodeResponse.d.ts +8 -8
  294. package/dist/cjs/api/types/Note.d.ts +6 -6
  295. package/dist/cjs/api/types/NoteData.d.ts +3 -3
  296. package/dist/cjs/api/types/Order.d.ts +30 -20
  297. package/dist/cjs/api/types/Pipeline.d.ts +5 -5
  298. package/dist/cjs/api/types/PostContactInfo.d.ts +4 -4
  299. package/dist/cjs/api/types/PostSendFailed.d.ts +3 -3
  300. package/dist/cjs/api/types/Redeem.d.ts +14 -14
  301. package/dist/cjs/api/types/RuleConditionResponse.d.ts +5 -5
  302. package/dist/cjs/api/types/SendReport.d.ts +1 -1
  303. package/dist/cjs/api/types/SendTestEmail.d.ts +1 -1
  304. package/dist/cjs/api/types/SendTransacSms.d.ts +10 -6
  305. package/dist/cjs/api/types/Task.d.ts +4 -4
  306. package/dist/cjs/api/types/Tier.d.ts +16 -16
  307. package/dist/cjs/api/types/TierGroup.d.ts +8 -8
  308. package/dist/cjs/api/types/Transaction.d.ts +15 -15
  309. package/dist/cjs/api/types/UpdateCampaignStatus.d.ts +2 -1
  310. package/dist/cjs/api/types/UpdateCampaignStatus.js +1 -0
  311. package/dist/cjs/api/types/ValueResponse.d.ts +8 -8
  312. package/dist/cjs/api/types/VariablesItems.d.ts +3 -3
  313. package/dist/cjs/api/types/index.d.ts +1 -0
  314. package/dist/cjs/api/types/index.js +1 -0
  315. package/dist/cjs/core/fetcher/Fetcher.js +8 -2
  316. package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
  317. package/dist/cjs/core/fetcher/makeRequest.js +30 -9
  318. package/dist/cjs/core/runtime/runtime.js +8 -7
  319. package/dist/cjs/version.d.ts +1 -1
  320. package/dist/cjs/version.js +1 -1
  321. package/dist/esm/BaseClient.mjs +2 -2
  322. package/dist/esm/api/resources/account/exports.d.mts +2 -0
  323. package/dist/esm/api/resources/account/exports.mjs +3 -0
  324. package/dist/esm/api/resources/account/types/GetAccountActivityResponse.d.mts +1 -1
  325. package/dist/esm/api/resources/account/types/GetAccountResponse.d.mts +7 -7
  326. package/dist/esm/api/resources/balance/client/Client.d.mts +2 -2
  327. package/dist/esm/api/resources/balance/client/Client.mjs +6 -6
  328. package/dist/esm/api/resources/balance/client/requests/GetLoyaltyBalanceProgramsPidTransactionHistoryRequest.d.mts +5 -5
  329. package/dist/esm/api/resources/balance/exports.d.mts +2 -0
  330. package/dist/esm/api/resources/balance/exports.mjs +3 -0
  331. package/dist/esm/api/resources/balance/types/CreateBalanceOrderResponse.d.mts +6 -6
  332. package/dist/esm/api/resources/balance/types/GetBalanceDefinitionListResponse.d.mts +1 -1
  333. package/dist/esm/api/resources/balance/types/GetContactBalancesResponse.d.mts +8 -8
  334. package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryResponse.d.mts +15 -15
  335. package/dist/esm/api/resources/balance/types/GetSubscriptionBalancesResponse.d.mts +3 -3
  336. package/dist/esm/api/resources/balance/types/PostLoyaltyBalanceProgramsPidSubscriptionsCidBalancesResponse.d.mts +9 -9
  337. package/dist/esm/api/resources/balance/types/index.d.mts +0 -1
  338. package/dist/esm/api/resources/balance/types/index.mjs +0 -1
  339. package/dist/esm/api/resources/companies/client/Client.d.mts +28 -0
  340. package/dist/esm/api/resources/companies/client/Client.mjs +107 -0
  341. package/dist/esm/api/resources/companies/client/requests/DeleteCrmAttributesIdRequest.d.mts +10 -0
  342. package/dist/esm/api/resources/companies/client/requests/DeleteCrmAttributesIdRequest.mjs +2 -0
  343. package/dist/esm/api/resources/companies/client/requests/PatchCrmAttributesIdRequest.d.mts +33 -0
  344. package/dist/esm/api/resources/companies/client/requests/PatchCrmAttributesIdRequest.mjs +9 -0
  345. package/dist/esm/api/resources/companies/client/requests/index.d.mts +2 -0
  346. package/dist/esm/api/resources/companies/client/requests/index.mjs +1 -0
  347. package/dist/esm/api/resources/companies/exports.d.mts +2 -0
  348. package/dist/esm/api/resources/companies/exports.mjs +3 -0
  349. package/dist/esm/api/resources/companies/types/GetCompaniesResponse.d.mts +1 -1
  350. package/dist/esm/api/resources/companies/types/GetCrmAttributesCompaniesResponseItem.d.mts +5 -5
  351. package/dist/esm/api/resources/companies/types/PostCompaniesImportResponse.d.mts +1 -1
  352. package/dist/esm/api/resources/contacts/client/Client.d.mts +15 -45
  353. package/dist/esm/api/resources/contacts/client/Client.mjs +15 -45
  354. package/dist/esm/api/resources/contacts/client/requests/AddContactToListRequest.d.mts +0 -24
  355. package/dist/esm/api/resources/contacts/client/requests/ImportContactsRequest.d.mts +4 -4
  356. package/dist/esm/api/resources/contacts/client/requests/RemoveContactFromListRequest.d.mts +0 -32
  357. package/dist/esm/api/resources/contacts/client/requests/RequestContactExportRequest.d.mts +7 -7
  358. package/dist/esm/api/resources/contacts/client/requests/UpdateBatchContactsRequest.d.mts +10 -10
  359. package/dist/esm/api/resources/contacts/exports.d.mts +2 -0
  360. package/dist/esm/api/resources/contacts/exports.mjs +3 -0
  361. package/dist/esm/api/resources/contacts/types/CreateContactResponse.d.mts +1 -1
  362. package/dist/esm/api/resources/contacts/types/GetAttributesResponse.d.mts +4 -4
  363. package/dist/esm/api/resources/contacts/types/GetContactInfoResponse.d.mts +13 -13
  364. package/dist/esm/api/resources/contacts/types/GetContactStatsResponse.d.mts +11 -11
  365. package/dist/esm/api/resources/contacts/types/GetFolderListsResponse.d.mts +2 -2
  366. package/dist/esm/api/resources/contacts/types/GetFoldersResponse.d.mts +2 -2
  367. package/dist/esm/api/resources/contacts/types/GetListResponse.d.mts +2 -2
  368. package/dist/esm/api/resources/contacts/types/GetListsResponse.d.mts +2 -2
  369. package/dist/esm/api/resources/contacts/types/GetSegmentsResponse.d.mts +3 -3
  370. package/dist/esm/api/resources/conversations/exports.d.mts +2 -0
  371. package/dist/esm/api/resources/conversations/exports.mjs +3 -0
  372. package/dist/esm/api/resources/conversations/types/PutConversationsVisitorGroupResponse.d.mts +2 -2
  373. package/dist/esm/api/resources/coupons/exports.d.mts +2 -0
  374. package/dist/esm/api/resources/coupons/exports.mjs +3 -0
  375. package/dist/esm/api/resources/customObjects/client/Client.d.mts +6 -14
  376. package/dist/esm/api/resources/customObjects/client/Client.mjs +6 -14
  377. package/dist/esm/api/resources/customObjects/client/requests/UpsertrecordsRequest.d.mts +6 -6
  378. package/dist/esm/api/resources/customObjects/exports.d.mts +2 -0
  379. package/dist/esm/api/resources/customObjects/exports.mjs +3 -0
  380. package/dist/esm/api/resources/customObjects/types/BatchDeleteObjectRecordsResponse.d.mts +2 -2
  381. package/dist/esm/api/resources/customObjects/types/GetrecordsResponse.d.mts +9 -9
  382. package/dist/esm/api/resources/customObjects/types/UpsertrecordsResponse.d.mts +3 -3
  383. package/dist/esm/api/resources/deals/client/Client.d.mts +2 -0
  384. package/dist/esm/api/resources/deals/client/Client.mjs +2 -0
  385. package/dist/esm/api/resources/deals/exports.d.mts +2 -0
  386. package/dist/esm/api/resources/deals/exports.mjs +3 -0
  387. package/dist/esm/api/resources/deals/types/GetCrmAttributesDealsResponseItem.d.mts +5 -5
  388. package/dist/esm/api/resources/deals/types/GetCrmDealsResponse.d.mts +1 -1
  389. package/dist/esm/api/resources/deals/types/PostCrmDealsImportResponse.d.mts +1 -1
  390. package/dist/esm/api/resources/domains/client/requests/AuthenticateDomainRequest.d.mts +0 -5
  391. package/dist/esm/api/resources/domains/client/requests/CreateDomainRequest.d.mts +0 -10
  392. package/dist/esm/api/resources/domains/client/requests/GetDomainConfigurationRequest.d.mts +0 -5
  393. package/dist/esm/api/resources/domains/exports.d.mts +2 -0
  394. package/dist/esm/api/resources/domains/exports.mjs +3 -0
  395. package/dist/esm/api/resources/domains/types/CreateDomainResponse.d.mts +2 -2
  396. package/dist/esm/api/resources/domains/types/GetDomainsResponse.d.mts +1 -1
  397. package/dist/esm/api/resources/ecommerce/client/Client.d.mts +2 -4
  398. package/dist/esm/api/resources/ecommerce/client/Client.mjs +2 -4
  399. package/dist/esm/api/resources/ecommerce/client/requests/CreateBatchOrderRequest.d.mts +1 -2
  400. package/dist/esm/api/resources/ecommerce/client/requests/CreateProductAlertRequest.d.mts +3 -3
  401. package/dist/esm/api/resources/ecommerce/client/requests/CreateUpdateBatchCategoryRequest.d.mts +4 -4
  402. package/dist/esm/api/resources/ecommerce/client/requests/CreateUpdateBatchProductsRequest.d.mts +10 -10
  403. package/dist/esm/api/resources/ecommerce/exports.d.mts +2 -0
  404. package/dist/esm/api/resources/ecommerce/exports.mjs +3 -0
  405. package/dist/esm/api/resources/ecommerce/types/CreateBatchOrderResponse.d.mts +1 -1
  406. package/dist/esm/api/resources/ecommerce/types/CreateUpdateBatchCategoryResponse.d.mts +2 -2
  407. package/dist/esm/api/resources/ecommerce/types/CreateUpdateBatchProductsResponse.d.mts +2 -2
  408. package/dist/esm/api/resources/ecommerce/types/CreateUpdateCategoryResponse.d.mts +1 -1
  409. package/dist/esm/api/resources/ecommerce/types/CreateUpdateProductResponse.d.mts +1 -1
  410. package/dist/esm/api/resources/ecommerce/types/GetEcommerceAttributionProductsConversionSourceConversionSourceIdResponse.d.mts +7 -7
  411. package/dist/esm/api/resources/emailCampaigns/client/Client.d.mts +2 -5
  412. package/dist/esm/api/resources/emailCampaigns/client/Client.mjs +4 -6
  413. package/dist/esm/api/resources/emailCampaigns/client/requests/CreateEmailCampaignRequest.d.mts +9 -9
  414. package/dist/esm/api/resources/emailCampaigns/client/requests/GetEmailCampaignRequest.d.mts +2 -0
  415. package/dist/esm/api/resources/emailCampaigns/client/requests/UpdateEmailCampaignRequest.d.mts +9 -9
  416. package/dist/esm/api/resources/emailCampaigns/exports.d.mts +2 -0
  417. package/dist/esm/api/resources/emailCampaigns/exports.mjs +3 -0
  418. package/dist/esm/api/resources/emailCampaigns/types/GetAbTestCampaignResultResponse.d.mts +8 -8
  419. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignResponse.d.mts +32 -25
  420. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignResponse.mjs +3 -0
  421. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsRequestStatus.d.mts +2 -0
  422. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsRequestStatus.mjs +2 -0
  423. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.d.mts +34 -27
  424. package/dist/esm/api/resources/emailCampaigns/types/GetEmailCampaignsResponse.mjs +3 -0
  425. package/dist/esm/api/resources/emailCampaigns/types/UploadImageToGalleryResponse.d.mts +1 -1
  426. package/dist/esm/api/resources/event/client/Client.d.mts +17 -0
  427. package/dist/esm/api/resources/event/client/Client.mjs +57 -0
  428. package/dist/esm/api/resources/event/client/requests/CreateEventRequest.d.mts +10 -10
  429. package/dist/esm/api/resources/event/exports.d.mts +2 -0
  430. package/dist/esm/api/resources/event/exports.mjs +3 -0
  431. package/dist/esm/api/resources/event/index.d.mts +1 -0
  432. package/dist/esm/api/resources/event/index.mjs +1 -0
  433. package/dist/esm/api/resources/event/types/CreateBatchEventsRequestItem.d.mts +59 -0
  434. package/dist/esm/api/resources/event/types/CreateBatchEventsRequestItem.mjs +2 -0
  435. package/dist/esm/api/resources/event/types/index.d.mts +1 -0
  436. package/dist/esm/api/resources/event/types/index.mjs +1 -0
  437. package/dist/esm/api/resources/externalFeeds/client/requests/GetExternalFeedByUuidRequest.d.mts +0 -10
  438. package/dist/esm/api/resources/externalFeeds/exports.d.mts +2 -0
  439. package/dist/esm/api/resources/externalFeeds/exports.mjs +3 -0
  440. package/dist/esm/api/resources/externalFeeds/types/GetAllExternalFeedsResponse.d.mts +4 -4
  441. package/dist/esm/api/resources/externalFeeds/types/GetExternalFeedByUuidResponse.d.mts +4 -4
  442. package/dist/esm/api/resources/files/exports.d.mts +2 -0
  443. package/dist/esm/api/resources/files/exports.mjs +3 -0
  444. package/dist/esm/api/resources/files/types/GetCrmFilesIdResponse.d.mts +1 -1
  445. package/dist/esm/api/resources/inboundParsing/client/Client.d.mts +1 -0
  446. package/dist/esm/api/resources/inboundParsing/client/Client.mjs +1 -0
  447. package/dist/esm/api/resources/inboundParsing/exports.d.mts +2 -0
  448. package/dist/esm/api/resources/inboundParsing/exports.mjs +3 -0
  449. package/dist/esm/api/resources/inboundParsing/types/GetInboundEmailEventsByUuidResponse.d.mts +14 -14
  450. package/dist/esm/api/resources/inboundParsing/types/GetInboundEmailEventsResponse.d.mts +1 -1
  451. package/dist/esm/api/resources/index.d.mts +1 -0
  452. package/dist/esm/api/resources/index.mjs +1 -0
  453. package/dist/esm/api/resources/masterAccount/client/requests/InviteAdminUserRequest.d.mts +2 -2
  454. package/dist/esm/api/resources/masterAccount/client/requests/PutCorporateSubAccountIdPlanRequest.d.mts +9 -9
  455. package/dist/esm/api/resources/masterAccount/client/requests/PutCorporateSubAccountsPlanRequest.d.mts +8 -8
  456. package/dist/esm/api/resources/masterAccount/client/requests/PutCorporateUserEmailPermissionsRequest.d.mts +2 -2
  457. package/dist/esm/api/resources/masterAccount/exports.d.mts +2 -0
  458. package/dist/esm/api/resources/masterAccount/exports.mjs +3 -0
  459. package/dist/esm/api/resources/masterAccount/types/GetCorporateGroupIdResponse.d.mts +12 -12
  460. package/dist/esm/api/resources/masterAccount/types/GetCorporateInvitedUsersListResponse.d.mts +11 -11
  461. package/dist/esm/api/resources/masterAccount/types/GetCorporateIpResponseItem.d.mts +3 -3
  462. package/dist/esm/api/resources/masterAccount/types/GetCorporateMasterAccountResponse.d.mts +31 -31
  463. package/dist/esm/api/resources/masterAccount/types/GetCorporateSubAccountIdResponse.d.mts +37 -37
  464. package/dist/esm/api/resources/masterAccount/types/GetCorporateSubAccountResponse.d.mts +4 -4
  465. package/dist/esm/api/resources/masterAccount/types/GetCorporateUserPermissionResponse.d.mts +10 -10
  466. package/dist/esm/api/resources/masterAccount/types/GetSubAccountGroupsResponseItem.d.mts +2 -2
  467. package/dist/esm/api/resources/masterAccount/types/InviteAdminUserResponse.d.mts +1 -1
  468. package/dist/esm/api/resources/masterAccount/types/PostCorporateGroupResponse.d.mts +1 -1
  469. package/dist/esm/api/resources/masterAccount/types/PutCorporateUserInvitationActionEmailResponse.d.mts +1 -1
  470. package/dist/esm/api/resources/notes/exports.d.mts +2 -0
  471. package/dist/esm/api/resources/notes/exports.mjs +3 -0
  472. package/dist/esm/api/resources/notes/types/PostCrmNotesResponse.d.mts +1 -1
  473. package/dist/esm/api/resources/payments/exports.d.mts +2 -0
  474. package/dist/esm/api/resources/payments/exports.mjs +3 -0
  475. package/dist/esm/api/resources/payments/types/CreatePaymentRequestResponse.d.mts +1 -1
  476. package/dist/esm/api/resources/payments/types/GetPaymentRequestResponse.d.mts +3 -3
  477. package/dist/esm/api/resources/process/client/requests/GetProcessRequest.d.mts +0 -15
  478. package/dist/esm/api/resources/process/exports.d.mts +2 -0
  479. package/dist/esm/api/resources/process/exports.mjs +3 -0
  480. package/dist/esm/api/resources/process/types/GetProcessResponse.d.mts +16 -16
  481. package/dist/esm/api/resources/process/types/GetProcessesResponse.d.mts +16 -16
  482. package/dist/esm/api/resources/program/client/Client.d.mts +21 -0
  483. package/dist/esm/api/resources/program/client/Client.mjs +67 -0
  484. package/dist/esm/api/resources/program/client/requests/DeleteContactSubscriptionRequest.d.mts +13 -0
  485. package/dist/esm/api/resources/program/client/requests/DeleteContactSubscriptionRequest.mjs +2 -0
  486. package/dist/esm/api/resources/program/client/requests/index.d.mts +1 -0
  487. package/dist/esm/api/resources/program/exports.d.mts +2 -0
  488. package/dist/esm/api/resources/program/exports.mjs +3 -0
  489. package/dist/esm/api/resources/program/types/GetLpListResponse.d.mts +1 -1
  490. package/dist/esm/api/resources/program/types/GetParameterSubscriptionInfoResponse.d.mts +28 -28
  491. package/dist/esm/api/resources/program/types/SubscribeMemberToASubscriptionResponse.d.mts +5 -5
  492. package/dist/esm/api/resources/program/types/SubscribeToLoyaltyProgramResponse.d.mts +7 -7
  493. package/dist/esm/api/resources/reward/client/requests/RedeemVoucherRequest.d.mts +26 -26
  494. package/dist/esm/api/resources/reward/exports.d.mts +2 -0
  495. package/dist/esm/api/resources/reward/exports.mjs +3 -0
  496. package/dist/esm/api/resources/reward/types/CreateRewardResponse.d.mts +8 -8
  497. package/dist/esm/api/resources/reward/types/CreateVoucherResponse.d.mts +11 -11
  498. package/dist/esm/api/resources/reward/types/GetCodeCountResponse.d.mts +1 -1
  499. package/dist/esm/api/resources/reward/types/GetLoyaltyOfferProgramsPidOffersResponse.d.mts +11 -11
  500. package/dist/esm/api/resources/reward/types/GetLoyaltyOfferProgramsPidRewardsRidResponse.d.mts +81 -81
  501. package/dist/esm/api/resources/reward/types/GetLoyaltyOfferProgramsPidVouchersResponse.d.mts +15 -15
  502. package/dist/esm/api/resources/reward/types/ValidateRewardResponse.d.mts +1 -1
  503. package/dist/esm/api/resources/senders/client/requests/CreateSenderRequest.d.mts +1 -13
  504. package/dist/esm/api/resources/senders/client/requests/GetIpsFromSenderRequest.d.mts +0 -5
  505. package/dist/esm/api/resources/senders/client/requests/GetSendersRequest.d.mts +0 -3
  506. package/dist/esm/api/resources/senders/client/requests/UpdateSenderRequest.d.mts +1 -1
  507. package/dist/esm/api/resources/senders/exports.d.mts +2 -0
  508. package/dist/esm/api/resources/senders/exports.mjs +3 -0
  509. package/dist/esm/api/resources/senders/types/CreateSenderResponse.d.mts +2 -2
  510. package/dist/esm/api/resources/senders/types/GetSendersResponse.d.mts +1 -1
  511. package/dist/esm/api/resources/smsCampaigns/client/requests/CreateSmsCampaignRequest.d.mts +1 -1
  512. package/dist/esm/api/resources/smsCampaigns/client/requests/UpdateSmsCampaignRequest.d.mts +1 -1
  513. package/dist/esm/api/resources/smsCampaigns/exports.d.mts +2 -0
  514. package/dist/esm/api/resources/smsCampaigns/exports.mjs +3 -0
  515. package/dist/esm/api/resources/smsCampaigns/types/GetSmsCampaignResponse.d.mts +1 -1
  516. package/dist/esm/api/resources/smsCampaigns/types/GetSmsCampaignsResponse.d.mts +3 -3
  517. package/dist/esm/api/resources/smsTemplates/exports.d.mts +2 -0
  518. package/dist/esm/api/resources/smsTemplates/exports.mjs +3 -0
  519. package/dist/esm/api/resources/smsTemplates/types/GetSmsTemplatesResponse.d.mts +17 -17
  520. package/dist/esm/api/resources/tasks/exports.d.mts +2 -0
  521. package/dist/esm/api/resources/tasks/exports.mjs +3 -0
  522. package/dist/esm/api/resources/tasks/types/GetCrmTasksResponse.d.mts +1 -1
  523. package/dist/esm/api/resources/tasks/types/GetCrmTasktypesResponse.d.mts +2 -2
  524. package/dist/esm/api/resources/tier/client/Client.d.mts +2 -2
  525. package/dist/esm/api/resources/tier/client/Client.mjs +2 -2
  526. package/dist/esm/api/resources/tier/client/requests/CreateTierForTierGroupRequest.d.mts +3 -3
  527. package/dist/esm/api/resources/tier/client/requests/UpdateTierRequest.d.mts +3 -3
  528. package/dist/esm/api/resources/tier/exports.d.mts +2 -0
  529. package/dist/esm/api/resources/tier/exports.mjs +3 -0
  530. package/dist/esm/api/resources/tier/types/AddSubscriptionToTierResponse.d.mts +7 -7
  531. package/dist/esm/api/resources/tier/types/GetListOfTierGroupsResponse.d.mts +1 -1
  532. package/dist/esm/api/resources/tier/types/GetLoyaltyProgramTierResponse.d.mts +1 -1
  533. package/dist/esm/api/resources/transactionalEmails/client/Client.d.mts +2 -6
  534. package/dist/esm/api/resources/transactionalEmails/client/Client.mjs +2 -6
  535. package/dist/esm/api/resources/transactionalEmails/client/requests/CreateSmtpTemplateRequest.d.mts +3 -3
  536. package/dist/esm/api/resources/transactionalEmails/client/requests/GetScheduledEmailByIdRequest.d.mts +0 -7
  537. package/dist/esm/api/resources/transactionalEmails/client/requests/SendTransacEmailRequest.d.mts +21 -21
  538. package/dist/esm/api/resources/transactionalEmails/client/requests/UpdateSmtpTemplateRequest.d.mts +3 -3
  539. package/dist/esm/api/resources/transactionalEmails/exports.d.mts +2 -0
  540. package/dist/esm/api/resources/transactionalEmails/exports.mjs +3 -0
  541. package/dist/esm/api/resources/transactionalEmails/types/GetAggregatedSmtpReportResponse.d.mts +13 -13
  542. package/dist/esm/api/resources/transactionalEmails/types/GetEmailEventReportResponse.d.mts +8 -8
  543. package/dist/esm/api/resources/transactionalEmails/types/GetSmtpReportResponse.d.mts +1 -1
  544. package/dist/esm/api/resources/transactionalEmails/types/GetSmtpTemplatesResponse.d.mts +2 -2
  545. package/dist/esm/api/resources/transactionalEmails/types/GetTransacBlockedContactsResponse.d.mts +4 -4
  546. package/dist/esm/api/resources/transactionalEmails/types/GetTransacEmailContentResponse.d.mts +1 -1
  547. package/dist/esm/api/resources/transactionalEmails/types/GetTransacEmailsListResponse.d.mts +5 -5
  548. package/dist/esm/api/resources/transactionalEmails/types/PostPreviewSmtpEmailTemplatesResponse.d.mts +6 -6
  549. package/dist/esm/api/resources/transactionalEmails/types/SendTransacEmailResponse.d.mts +2 -2
  550. package/dist/esm/api/resources/transactionalSms/client/Client.d.mts +5 -9
  551. package/dist/esm/api/resources/transactionalSms/client/Client.mjs +5 -9
  552. package/dist/esm/api/resources/transactionalSms/exports.d.mts +2 -0
  553. package/dist/esm/api/resources/transactionalSms/exports.mjs +3 -0
  554. package/dist/esm/api/resources/transactionalSms/types/GetSmsEventsResponse.d.mts +8 -8
  555. package/dist/esm/api/resources/transactionalSms/types/GetTransacAggregatedSmsReportResponse.d.mts +11 -11
  556. package/dist/esm/api/resources/transactionalSms/types/GetTransacSmsReportResponse.d.mts +12 -12
  557. package/dist/esm/api/resources/transactionalSms/types/SendTransacSmsResponse.d.mts +3 -3
  558. package/dist/esm/api/resources/transactionalWhatsApp/client/Client.d.mts +2 -1
  559. package/dist/esm/api/resources/transactionalWhatsApp/client/Client.mjs +2 -1
  560. package/dist/esm/api/resources/transactionalWhatsApp/exports.d.mts +2 -0
  561. package/dist/esm/api/resources/transactionalWhatsApp/exports.mjs +3 -0
  562. package/dist/esm/api/resources/transactionalWhatsApp/types/GetWhatsappEventReportResponse.d.mts +4 -4
  563. package/dist/esm/api/resources/user/exports.d.mts +2 -0
  564. package/dist/esm/api/resources/user/exports.mjs +3 -0
  565. package/dist/esm/api/resources/user/types/EditUserPermissionResponse.d.mts +2 -2
  566. package/dist/esm/api/resources/user/types/GetInvitedUsersListResponse.d.mts +4 -4
  567. package/dist/esm/api/resources/user/types/InviteuserResponse.d.mts +1 -1
  568. package/dist/esm/api/resources/user/types/PutRevokeUserPermissionResponse.d.mts +1 -1
  569. package/dist/esm/api/resources/user/types/PutresendcancelinvitationResponse.d.mts +1 -1
  570. package/dist/esm/api/resources/webhooks/client/Client.d.mts +7 -13
  571. package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -13
  572. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequest.d.mts +6 -4
  573. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhookRequest.mjs +1 -0
  574. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.d.mts +6 -4
  575. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhookRequest.mjs +1 -0
  576. package/dist/esm/api/resources/webhooks/exports.d.mts +2 -0
  577. package/dist/esm/api/resources/webhooks/exports.mjs +3 -0
  578. package/dist/esm/api/resources/whatsAppCampaigns/client/Client.d.mts +19 -44
  579. package/dist/esm/api/resources/whatsAppCampaigns/client/Client.mjs +19 -44
  580. package/dist/esm/api/resources/whatsAppCampaigns/client/requests/CreateWhatsAppCampaignRequest.d.mts +3 -3
  581. package/dist/esm/api/resources/whatsAppCampaigns/client/requests/UpdateWhatsAppCampaignRequest.d.mts +3 -3
  582. package/dist/esm/api/resources/whatsAppCampaigns/exports.d.mts +2 -0
  583. package/dist/esm/api/resources/whatsAppCampaigns/exports.mjs +3 -0
  584. package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignResponse.d.mts +15 -15
  585. package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppCampaignsResponse.d.mts +6 -6
  586. package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppConfigResponse.d.mts +6 -6
  587. package/dist/esm/api/resources/whatsAppCampaigns/types/GetWhatsAppTemplatesResponse.d.mts +3 -3
  588. package/dist/esm/api/types/BalanceDefinition.d.mts +20 -20
  589. package/dist/esm/api/types/BalanceLimit.d.mts +8 -8
  590. package/dist/esm/api/types/BatchEventsResponse.d.mts +26 -0
  591. package/dist/esm/api/types/BatchEventsResponse.mjs +2 -0
  592. package/dist/esm/api/types/Company.d.mts +4 -4
  593. package/dist/esm/api/types/ContactErrorModel.d.mts +1 -1
  594. package/dist/esm/api/types/ConversationsMessage.d.mts +53 -53
  595. package/dist/esm/api/types/CreateUpdateFolder.d.mts +1 -1
  596. package/dist/esm/api/types/Deal.d.mts +4 -4
  597. package/dist/esm/api/types/ErrorModel.d.mts +1 -1
  598. package/dist/esm/api/types/FileData.d.mts +7 -7
  599. package/dist/esm/api/types/GetCampaignStats.d.mts +7 -7
  600. package/dist/esm/api/types/GetCategoryDetails.d.mts +1 -1
  601. package/dist/esm/api/types/GetContactDetails.d.mts +2 -2
  602. package/dist/esm/api/types/GetCouponCollection.d.mts +3 -3
  603. package/dist/esm/api/types/GetExtendedCampaignOverview.d.mts +32 -25
  604. package/dist/esm/api/types/GetExtendedCampaignOverview.mjs +3 -0
  605. package/dist/esm/api/types/GetExtendedCampaignStats.d.mts +4 -4
  606. package/dist/esm/api/types/GetProductDetails.d.mts +10 -10
  607. package/dist/esm/api/types/GetSmsCampaignOverview.d.mts +1 -1
  608. package/dist/esm/api/types/GetSmtpTemplateOverview.d.mts +4 -4
  609. package/dist/esm/api/types/GetWebhook.d.mts +4 -4
  610. package/dist/esm/api/types/Inviteuser.d.mts +2 -2
  611. package/dist/esm/api/types/LoyaltyProgram.d.mts +12 -12
  612. package/dist/esm/api/types/NodeResponse.d.mts +8 -8
  613. package/dist/esm/api/types/Note.d.mts +6 -6
  614. package/dist/esm/api/types/NoteData.d.mts +3 -3
  615. package/dist/esm/api/types/Order.d.mts +30 -20
  616. package/dist/esm/api/types/Pipeline.d.mts +5 -5
  617. package/dist/esm/api/types/PostContactInfo.d.mts +4 -4
  618. package/dist/esm/api/types/PostSendFailed.d.mts +3 -3
  619. package/dist/esm/api/types/Redeem.d.mts +14 -14
  620. package/dist/esm/api/types/RuleConditionResponse.d.mts +5 -5
  621. package/dist/esm/api/types/SendReport.d.mts +1 -1
  622. package/dist/esm/api/types/SendTestEmail.d.mts +1 -1
  623. package/dist/esm/api/types/SendTransacSms.d.mts +10 -6
  624. package/dist/esm/api/types/Task.d.mts +4 -4
  625. package/dist/esm/api/types/Tier.d.mts +16 -16
  626. package/dist/esm/api/types/TierGroup.d.mts +8 -8
  627. package/dist/esm/api/types/Transaction.d.mts +15 -15
  628. package/dist/esm/api/types/UpdateCampaignStatus.d.mts +2 -1
  629. package/dist/esm/api/types/UpdateCampaignStatus.mjs +1 -0
  630. package/dist/esm/api/types/ValueResponse.d.mts +8 -8
  631. package/dist/esm/api/types/VariablesItems.d.mts +3 -3
  632. package/dist/esm/api/types/index.d.mts +1 -0
  633. package/dist/esm/api/types/index.mjs +1 -0
  634. package/dist/esm/core/fetcher/Fetcher.mjs +8 -2
  635. package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
  636. package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
  637. package/dist/esm/core/runtime/runtime.mjs +8 -7
  638. package/dist/esm/version.d.mts +1 -1
  639. package/dist/esm/version.mjs +1 -1
  640. package/package.json +356 -4
  641. package/reference.md +297 -157
  642. package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.d.ts +0 -6
  643. package/dist/cjs/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.js +0 -9
  644. package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.d.mts +0 -6
  645. package/dist/esm/api/resources/balance/types/GetLoyaltyBalanceProgramsPidTransactionHistoryRequestSortField.mjs +0 -6
@@ -145,6 +145,27 @@ export declare class ProgramClient {
145
145
  */
146
146
  getParameterSubscriptionInfo(request: Brevo.GetParameterSubscriptionInfoRequest, requestOptions?: ProgramClient.RequestOptions): core.HttpResponsePromise<Brevo.GetParameterSubscriptionInfoResponse>;
147
147
  private __getParameterSubscriptionInfo;
148
+ /**
149
+ * Delete subscription for a contact
150
+ *
151
+ * @param {Brevo.DeleteContactSubscriptionRequest} request
152
+ * @param {ProgramClient.RequestOptions} requestOptions - Request-specific configuration.
153
+ *
154
+ * @throws {@link Brevo.BadRequestError}
155
+ * @throws {@link Brevo.UnauthorizedError}
156
+ * @throws {@link Brevo.ForbiddenError}
157
+ * @throws {@link Brevo.NotFoundError}
158
+ * @throws {@link Brevo.UnprocessableEntityError}
159
+ * @throws {@link Brevo.InternalServerError}
160
+ *
161
+ * @example
162
+ * await client.program.deleteContactSubscription({
163
+ * pid: "pid",
164
+ * cid: 1
165
+ * })
166
+ */
167
+ deleteContactSubscription(request: Brevo.DeleteContactSubscriptionRequest, requestOptions?: ProgramClient.RequestOptions): core.HttpResponsePromise<void>;
168
+ private __deleteContactSubscription;
148
169
  /**
149
170
  * Publishes loyalty program
150
171
  *
@@ -501,6 +501,73 @@ export class ProgramClient {
501
501
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/loyalty/config/programs/{pid}/account-info");
502
502
  });
503
503
  }
504
+ /**
505
+ * Delete subscription for a contact
506
+ *
507
+ * @param {Brevo.DeleteContactSubscriptionRequest} request
508
+ * @param {ProgramClient.RequestOptions} requestOptions - Request-specific configuration.
509
+ *
510
+ * @throws {@link Brevo.BadRequestError}
511
+ * @throws {@link Brevo.UnauthorizedError}
512
+ * @throws {@link Brevo.ForbiddenError}
513
+ * @throws {@link Brevo.NotFoundError}
514
+ * @throws {@link Brevo.UnprocessableEntityError}
515
+ * @throws {@link Brevo.InternalServerError}
516
+ *
517
+ * @example
518
+ * await client.program.deleteContactSubscription({
519
+ * pid: "pid",
520
+ * cid: 1
521
+ * })
522
+ */
523
+ deleteContactSubscription(request, requestOptions) {
524
+ return core.HttpResponsePromise.fromPromise(this.__deleteContactSubscription(request, requestOptions));
525
+ }
526
+ __deleteContactSubscription(request, requestOptions) {
527
+ return __awaiter(this, void 0, void 0, function* () {
528
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
529
+ const { pid, cid } = request;
530
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
531
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
532
+ const _response = yield core.fetcher({
533
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrevoEnvironment.Default, `loyalty/config/programs/${core.url.encodePathParam(pid)}/contact/${core.url.encodePathParam(cid)}`),
534
+ method: "DELETE",
535
+ headers: _headers,
536
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
537
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
538
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
539
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
540
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
541
+ logging: this._options.logging,
542
+ });
543
+ if (_response.ok) {
544
+ return { data: undefined, rawResponse: _response.rawResponse };
545
+ }
546
+ if (_response.error.reason === "status-code") {
547
+ switch (_response.error.statusCode) {
548
+ case 400:
549
+ throw new Brevo.BadRequestError(_response.error.body, _response.rawResponse);
550
+ case 401:
551
+ throw new Brevo.UnauthorizedError(_response.error.body, _response.rawResponse);
552
+ case 403:
553
+ throw new Brevo.ForbiddenError(_response.error.body, _response.rawResponse);
554
+ case 404:
555
+ throw new Brevo.NotFoundError(_response.error.body, _response.rawResponse);
556
+ case 422:
557
+ throw new Brevo.UnprocessableEntityError(_response.error.body, _response.rawResponse);
558
+ case 500:
559
+ throw new Brevo.InternalServerError(_response.error.body, _response.rawResponse);
560
+ default:
561
+ throw new errors.BrevoError({
562
+ statusCode: _response.error.statusCode,
563
+ body: _response.error.body,
564
+ rawResponse: _response.rawResponse,
565
+ });
566
+ }
567
+ }
568
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/loyalty/config/programs/{pid}/contact/{cid}");
569
+ });
570
+ }
504
571
  /**
505
572
  * Publishes loyalty program
506
573
  *
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * pid: "pid",
5
+ * cid: 1
6
+ * }
7
+ */
8
+ export interface DeleteContactSubscriptionRequest {
9
+ /** Loyalty Program ID. A unique identifier for the loyalty program. */
10
+ pid: string;
11
+ /** Contact ID. */
12
+ cid: number;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,5 +1,6 @@
1
1
  export type { CreateNewLpRequest } from "./CreateNewLpRequest.mjs";
2
2
  export type { DeleteContactMembersRequest } from "./DeleteContactMembersRequest.mjs";
3
+ export type { DeleteContactSubscriptionRequest } from "./DeleteContactSubscriptionRequest.mjs";
3
4
  export type { DeleteLoyaltyProgramRequest } from "./DeleteLoyaltyProgramRequest.mjs";
4
5
  export type { GetLoyaltyProgramInfoRequest } from "./GetLoyaltyProgramInfoRequest.mjs";
5
6
  export type { GetLpListRequest } from "./GetLpListRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { ProgramClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { ProgramClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -1,5 +1,5 @@
1
1
  import type * as Brevo from "../../../index.mjs";
2
2
  export interface GetLpListResponse {
3
3
  /** Loyalty Program list */
4
- items?: Brevo.LoyaltyProgram[];
4
+ items?: Brevo.LoyaltyProgram[] | undefined;
5
5
  }
@@ -1,30 +1,30 @@
1
1
  export interface GetParameterSubscriptionInfoResponse {
2
2
  /** Balance details for the subscription. */
3
- balance?: GetParameterSubscriptionInfoResponse.Balance;
3
+ balance?: GetParameterSubscriptionInfoResponse.Balance | undefined;
4
4
  /** List of members associated with the subscription. */
5
- members?: GetParameterSubscriptionInfoResponse.Members.Item[];
5
+ members?: GetParameterSubscriptionInfoResponse.Members.Item[] | undefined;
6
6
  /** List of rewards associated with the subscription. */
7
- reward?: GetParameterSubscriptionInfoResponse.Reward.Item[];
7
+ reward?: GetParameterSubscriptionInfoResponse.Reward.Item[] | undefined;
8
8
  /** List of tier assignments for the subscription. */
9
- tier?: GetParameterSubscriptionInfoResponse.Tier.Item[];
9
+ tier?: GetParameterSubscriptionInfoResponse.Tier.Item[] | undefined;
10
10
  }
11
11
  export declare namespace GetParameterSubscriptionInfoResponse {
12
12
  interface Balance {
13
13
  /** List of balance details associated with the contact. */
14
- balances?: Balance.Balances.Item[];
14
+ balances?: Balance.Balances.Item[] | undefined;
15
15
  /** Unique identifier of the contact. */
16
- contactId?: number;
16
+ contactId?: number | undefined;
17
17
  /** Unique identifier of the loyalty program. */
18
- loyaltyProgramId?: string;
18
+ loyaltyProgramId?: string | undefined;
19
19
  }
20
20
  namespace Balance {
21
21
  type Balances = Balances.Item[];
22
22
  namespace Balances {
23
23
  interface Item {
24
24
  /** Unique identifier for the balance definition). */
25
- balanceDefinitionId?: string;
25
+ balanceDefinitionId?: string | undefined;
26
26
  /** The amount of the balance. */
27
- value?: number;
27
+ value?: number | undefined;
28
28
  }
29
29
  }
30
30
  }
@@ -32,53 +32,53 @@ export declare namespace GetParameterSubscriptionInfoResponse {
32
32
  namespace Members {
33
33
  interface Item {
34
34
  /** Timestamp when the member was created. */
35
- createdAt?: string;
35
+ createdAt?: string | undefined;
36
36
  /** Unique identifier of the member. */
37
- memberContactId?: number;
37
+ memberContactId?: number | undefined;
38
38
  /** Timestamp when the member was last updated. */
39
- updatedAt?: string;
39
+ updatedAt?: string | undefined;
40
40
  }
41
41
  }
42
42
  type Reward = Reward.Item[];
43
43
  namespace Reward {
44
44
  interface Item {
45
45
  /** Reward code assigned to the contact. */
46
- code?: string;
46
+ code?: string | undefined;
47
47
  /** Unique identifier of the contact. */
48
- contactId?: number;
48
+ contactId?: number | undefined;
49
49
  /** Timestamp when the reward was created. */
50
- createdAt?: string;
50
+ createdAt?: string | undefined;
51
51
  /** Expiration date of the reward. */
52
- expirationDate?: string;
52
+ expirationDate?: string | undefined;
53
53
  /** Unique identifier of the reward. */
54
- id?: string;
54
+ id?: string | undefined;
55
55
  /** Unique identifier of the loyalty program. */
56
- loyaltyProgramId?: string;
56
+ loyaltyProgramId?: string | undefined;
57
57
  /** Additional metadata related to the reward. */
58
- meta?: Record<string, unknown>;
58
+ meta?: Record<string, unknown> | undefined;
59
59
  /** Unique identifier of the reward definition. */
60
- rewardId?: string;
60
+ rewardId?: string | undefined;
61
61
  /** Timestamp when the reward was last updated. */
62
- updatedAt?: string;
62
+ updatedAt?: string | undefined;
63
63
  }
64
64
  }
65
65
  type Tier = Tier.Item[];
66
66
  namespace Tier {
67
67
  interface Item {
68
68
  /** Unique identifier of the contact. */
69
- contactId?: number;
69
+ contactId?: number | undefined;
70
70
  /** Timestamp when the tier was assigned. */
71
- createdAt?: string;
71
+ createdAt?: string | undefined;
72
72
  /** Unique identifier of the group associated with the tier. */
73
- groupId?: string;
73
+ groupId?: string | undefined;
74
74
  /** Unique identifier of the loyalty program. */
75
- loyaltyProgramId?: string;
75
+ loyaltyProgramId?: string | undefined;
76
76
  /** Additional metadata related to the tier. */
77
- meta?: Record<string, unknown>;
77
+ meta?: Record<string, unknown> | undefined;
78
78
  /** Unique identifier of the tier. */
79
- tierId?: string;
79
+ tierId?: string | undefined;
80
80
  /** Timestamp when the tier was last updated */
81
- updatedAt?: string;
81
+ updatedAt?: string | undefined;
82
82
  }
83
83
  }
84
84
  }
@@ -1,12 +1,12 @@
1
1
  export interface SubscribeMemberToASubscriptionResponse {
2
2
  /** Timestamp when the subscription member was created. */
3
- createdAt?: string;
3
+ createdAt?: string | undefined;
4
4
  /** List of unique member contact IDs. */
5
- memberContactIds?: number[];
5
+ memberContactIds?: number[] | undefined;
6
6
  /** Unique identifier of the organization. */
7
- organizationId?: number;
7
+ organizationId?: number | undefined;
8
8
  /** Unique identifier of the subscription owner. */
9
- ownerContactId?: number;
9
+ ownerContactId?: number | undefined;
10
10
  /** Timestamp when the subscription member was last updated. */
11
- updatedAt?: string;
11
+ updatedAt?: string | undefined;
12
12
  }
@@ -1,16 +1,16 @@
1
1
  export interface SubscribeToLoyaltyProgramResponse {
2
2
  /** Unique identifier of the contact. */
3
- contactId?: number;
3
+ contactId?: number | undefined;
4
4
  /** Timestamp when the subscription was created. */
5
- createdAt?: string;
5
+ createdAt?: string | undefined;
6
6
  /** Unique identifier of the loyalty program. */
7
- loyaltyProgramId?: string;
7
+ loyaltyProgramId?: string | undefined;
8
8
  /** Unique identifier of the subscription. */
9
- loyaltySubscriptionId?: string;
9
+ loyaltySubscriptionId?: string | undefined;
10
10
  /** Unique identifier of the organization. */
11
- organizationId?: number;
11
+ organizationId?: number | undefined;
12
12
  /** Timestamp when the subscription was last updated. */
13
- updatedAt?: string;
13
+ updatedAt?: string | undefined;
14
14
  /** Version number of the subscription. */
15
- versionId?: number;
15
+ versionId?: number | undefined;
16
16
  }
@@ -27,66 +27,66 @@ export interface RedeemVoucherRequest {
27
27
  export declare namespace RedeemVoucherRequest {
28
28
  interface Order {
29
29
  /** Total amount of the order */
30
- amount?: number;
30
+ amount?: number | undefined;
31
31
  /** Billing information for the order */
32
- billing?: Order.Billing;
32
+ billing?: Order.Billing | undefined;
33
33
  /** Unique identifier for the contact */
34
- contact_id?: number;
34
+ contact_id?: number | undefined;
35
35
  /** List of coupon codes applied to the order */
36
- coupons?: string[];
36
+ coupons?: string[] | undefined;
37
37
  /** Timestamp when the order was created */
38
- createdAt?: string;
38
+ createdAt?: string | undefined;
39
39
  /** Email address associated with the order */
40
- email?: string;
40
+ email?: string | undefined;
41
41
  /** Unique identifier for the order */
42
- id?: string;
42
+ id?: string | undefined;
43
43
  /** Additional identifiers for the order */
44
- identifiers?: Order.Identifiers;
44
+ identifiers?: Order.Identifiers | undefined;
45
45
  /** List of products in the order */
46
- products?: Order.Products.Item[];
46
+ products?: Order.Products.Item[] | undefined;
47
47
  /** Current status of the order */
48
- status?: string;
48
+ status?: string | undefined;
49
49
  /** Identifier for the store where the order was placed */
50
- storeId?: string;
50
+ storeId?: string | undefined;
51
51
  /** Timestamp when the order was last updated */
52
- updatedAt?: string;
52
+ updatedAt?: string | undefined;
53
53
  }
54
54
  namespace Order {
55
55
  interface Billing {
56
56
  /** Address of the user */
57
- address?: string;
57
+ address?: string | undefined;
58
58
  /** City of the user */
59
- city?: string;
59
+ city?: string | undefined;
60
60
  /** Country code of the user */
61
- countryCode?: string;
61
+ countryCode?: string | undefined;
62
62
  /** Payment method opted by the user */
63
- paymentMethod?: string;
63
+ paymentMethod?: string | undefined;
64
64
  /** Phone number of the user */
65
- phone?: number;
65
+ phone?: number | undefined;
66
66
  /** Postal Code of user's location */
67
- postCode?: number;
67
+ postCode?: number | undefined;
68
68
  /** Region where user resides */
69
- region?: string;
69
+ region?: string | undefined;
70
70
  }
71
71
  interface Identifiers {
72
72
  /** External identifier for the order */
73
- ext_id?: string;
73
+ ext_id?: string | undefined;
74
74
  /** Identifier for the loyalty subscription */
75
- loyalty_subscription_id?: string;
75
+ loyalty_subscription_id?: string | undefined;
76
76
  }
77
77
  type Products = Products.Item[];
78
78
  namespace Products {
79
79
  interface Item {
80
80
  /** List of categories the product belongs to */
81
- category?: string[];
81
+ category?: string[] | undefined;
82
82
  /** Price of the product */
83
- price?: number;
83
+ price?: number | undefined;
84
84
  /** Unique identifier for the product */
85
- productId?: string;
85
+ productId?: string | undefined;
86
86
  /** Quantity of the product */
87
- quantity?: number;
87
+ quantity?: number | undefined;
88
88
  /** Identifier for the product variant */
89
- variantId?: string;
89
+ variantId?: string | undefined;
90
90
  }
91
91
  }
92
92
  }
@@ -0,0 +1,2 @@
1
+ export { RewardClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { RewardClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -1,18 +1,18 @@
1
1
  export interface CreateRewardResponse {
2
2
  /** Timestamp when the reward was created */
3
- createdAt?: string;
3
+ createdAt?: string | undefined;
4
4
  /** Unique identifier for the reward */
5
- id?: string;
5
+ id?: string | undefined;
6
6
  /** Id of the loyalty program to which the current reward belongs to */
7
- loyaltyProgramId?: string;
7
+ loyaltyProgramId?: string | undefined;
8
8
  /** Name of the reward */
9
- name?: string;
9
+ name?: string | undefined;
10
10
  /** Public description for the reward */
11
- publicDescription?: string;
11
+ publicDescription?: string | undefined;
12
12
  /** Public Image for the reward */
13
- publicImage?: string;
13
+ publicImage?: string | undefined;
14
14
  /** Public name for the reward */
15
- publicName?: string;
15
+ publicName?: string | undefined;
16
16
  /** Timestamp for when this reward was last updated. */
17
- updatedAt?: string;
17
+ updatedAt?: string | undefined;
18
18
  }
@@ -1,24 +1,24 @@
1
1
  export interface CreateVoucherResponse {
2
2
  /** Generated code */
3
- code?: string;
3
+ code?: string | undefined;
4
4
  /** Timestamp for when this reward was consumed */
5
- consumedAt?: string;
5
+ consumedAt?: string | undefined;
6
6
  /** Id of the contact that attributed the reward */
7
- contactId?: number;
7
+ contactId?: number | undefined;
8
8
  /** Timestamp for when this reward was created */
9
- createdAt?: string;
9
+ createdAt?: string | undefined;
10
10
  /** Expiration date of the reward */
11
- expirationDate?: string;
11
+ expirationDate?: string | undefined;
12
12
  /** Unique identifier */
13
- id?: string;
13
+ id?: string | undefined;
14
14
  /** Loyalty Program Id to which attributed reward belongs */
15
- loyaltyProgramId?: string;
15
+ loyaltyProgramId?: string | undefined;
16
16
  /** Additional data to define the reward */
17
- meta?: Record<string, unknown>;
17
+ meta?: Record<string, unknown> | undefined;
18
18
  /** Unique identifier for the reward */
19
- rewardId?: string;
19
+ rewardId?: string | undefined;
20
20
  /** Timestamp for when this reward was updated */
21
- updatedAt?: string;
21
+ updatedAt?: string | undefined;
22
22
  /** Value of the selected reward config */
23
- value?: number;
23
+ value?: number | undefined;
24
24
  }
@@ -1,4 +1,4 @@
1
1
  export interface GetCodeCountResponse {
2
2
  /** Number of codes */
3
- count?: number;
3
+ count?: number | undefined;
4
4
  }
@@ -1,31 +1,31 @@
1
1
  export interface GetLoyaltyOfferProgramsPidOffersResponse {
2
2
  /** Items for the current reward */
3
- items?: GetLoyaltyOfferProgramsPidOffersResponse.Items.Item[];
3
+ items?: GetLoyaltyOfferProgramsPidOffersResponse.Items.Item[] | undefined;
4
4
  /** Count of the associated parameter in current reward */
5
- totalCount?: number;
5
+ totalCount?: number | undefined;
6
6
  }
7
7
  export declare namespace GetLoyaltyOfferProgramsPidOffersResponse {
8
8
  type Items = Items.Item[];
9
9
  namespace Items {
10
10
  interface Item {
11
11
  /** Timestamp for when this reward was created */
12
- createdAt?: string;
12
+ createdAt?: string | undefined;
13
13
  /** Timestamp for when this reward attribution ended */
14
- endDate?: string;
14
+ endDate?: string | undefined;
15
15
  /** Unique identifier for the reward */
16
- id?: string;
16
+ id?: string | undefined;
17
17
  /** Loyalty Program to which current reward is associated */
18
- loyaltyProgramId?: string;
18
+ loyaltyProgramId?: string | undefined;
19
19
  /** Name of the reward */
20
- name?: string;
20
+ name?: string | undefined;
21
21
  /** Public image of the reward */
22
- publicImage?: string;
22
+ publicImage?: string | undefined;
23
23
  /** Timestamp for when this reward attribution started */
24
- startDate?: string;
24
+ startDate?: string | undefined;
25
25
  /** State of the reward */
26
- state?: string;
26
+ state?: string | undefined;
27
27
  /** Timestamp for when this reward attribution was updated */
28
- updatedAt?: string;
28
+ updatedAt?: string | undefined;
29
29
  }
30
30
  }
31
31
  }