@kard-financial/sdk 13.0.0 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +11 -6
  4. package/dist/cjs/api/resources/index.d.ts +4 -0
  5. package/dist/cjs/api/resources/index.js +5 -1
  6. package/dist/cjs/api/resources/internalOrganizations/exports.d.ts +1 -0
  7. package/dist/cjs/api/resources/internalOrganizations/exports.js +18 -0
  8. package/dist/cjs/api/resources/internalOrganizations/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/internalOrganizations/index.js +17 -0
  10. package/dist/cjs/api/resources/internalOrganizations/types/DeleteResourceData.d.ts +11 -0
  11. package/dist/cjs/api/resources/internalOrganizations/types/DeleteResourceData.js +3 -0
  12. package/dist/cjs/api/resources/internalOrganizations/types/DeleteResourceResponse.d.ts +7 -0
  13. package/dist/cjs/api/resources/internalOrganizations/types/DeleteResourceResponse.js +3 -0
  14. package/dist/cjs/api/resources/internalOrganizations/types/EnrolledReward.d.ts +6 -0
  15. package/dist/cjs/api/resources/internalOrganizations/types/EnrolledReward.js +9 -0
  16. package/dist/cjs/api/resources/internalOrganizations/types/MerchantNetwork.d.ts +10 -0
  17. package/dist/cjs/api/resources/internalOrganizations/types/MerchantNetwork.js +3 -0
  18. package/dist/cjs/api/resources/internalOrganizations/types/MerchantNetworkName.d.ts +11 -0
  19. package/dist/cjs/api/resources/internalOrganizations/types/MerchantNetworkName.js +14 -0
  20. package/dist/cjs/api/resources/internalOrganizations/types/OrganizationPaginationMetadata.d.ts +9 -0
  21. package/dist/cjs/api/resources/internalOrganizations/types/OrganizationPaginationMetadata.js +3 -0
  22. package/dist/cjs/api/resources/internalOrganizations/types/index.d.ts +6 -0
  23. package/dist/cjs/api/resources/internalOrganizations/types/index.js +22 -0
  24. package/dist/cjs/api/resources/organizations/client/Client.d.ts +35 -0
  25. package/dist/cjs/api/resources/organizations/client/Client.js +126 -0
  26. package/dist/cjs/api/resources/organizations/client/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/organizations/client/index.js +2 -0
  28. package/dist/cjs/api/resources/organizations/exports.d.ts +3 -0
  29. package/dist/cjs/api/resources/organizations/exports.js +22 -0
  30. package/dist/cjs/api/resources/organizations/index.d.ts +3 -0
  31. package/dist/cjs/api/resources/organizations/index.js +19 -0
  32. package/dist/cjs/api/resources/organizations/resources/children/client/Client.d.ts +113 -0
  33. package/dist/cjs/api/resources/organizations/resources/children/client/Client.js +382 -0
  34. package/dist/cjs/api/resources/organizations/resources/children/client/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/organizations/resources/children/client/index.js +17 -0
  36. package/dist/cjs/api/resources/organizations/resources/children/client/requests/ListChildrenRequest.d.ts +10 -0
  37. package/dist/cjs/api/resources/organizations/resources/children/client/requests/ListChildrenRequest.js +3 -0
  38. package/dist/cjs/api/resources/organizations/resources/children/client/requests/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/organizations/resources/children/client/requests/index.js +2 -0
  40. package/dist/cjs/api/resources/organizations/resources/children/exports.d.ts +2 -0
  41. package/dist/cjs/api/resources/organizations/resources/children/exports.js +21 -0
  42. package/dist/cjs/api/resources/organizations/resources/children/index.d.ts +2 -0
  43. package/dist/cjs/api/resources/organizations/resources/children/index.js +18 -0
  44. package/dist/cjs/api/resources/organizations/resources/children/types/ChildOrganizationListResponse.d.ts +11 -0
  45. package/dist/cjs/api/resources/organizations/resources/children/types/ChildOrganizationListResponse.js +3 -0
  46. package/dist/cjs/api/resources/organizations/resources/children/types/CreateChildAttributes.d.ts +18 -0
  47. package/dist/cjs/api/resources/organizations/resources/children/types/CreateChildAttributes.js +3 -0
  48. package/dist/cjs/api/resources/organizations/resources/children/types/CreateChildRequestBody.d.ts +8 -0
  49. package/dist/cjs/api/resources/organizations/resources/children/types/CreateChildRequestBody.js +3 -0
  50. package/dist/cjs/api/resources/organizations/resources/children/types/CreateChildRequestData.d.ts +10 -0
  51. package/dist/cjs/api/resources/organizations/resources/children/types/CreateChildRequestData.js +3 -0
  52. package/dist/cjs/api/resources/organizations/resources/children/types/UpdateChildAttributes.d.ts +21 -0
  53. package/dist/cjs/api/resources/organizations/resources/children/types/UpdateChildAttributes.js +3 -0
  54. package/dist/cjs/api/resources/organizations/resources/children/types/UpdateChildRequestBody.d.ts +8 -0
  55. package/dist/cjs/api/resources/organizations/resources/children/types/UpdateChildRequestBody.js +3 -0
  56. package/dist/cjs/api/resources/organizations/resources/children/types/UpdateChildRequestData.d.ts +10 -0
  57. package/dist/cjs/api/resources/organizations/resources/children/types/UpdateChildRequestData.js +3 -0
  58. package/dist/cjs/api/resources/organizations/resources/children/types/index.d.ts +7 -0
  59. package/dist/cjs/api/resources/organizations/resources/children/types/index.js +23 -0
  60. package/dist/cjs/api/resources/organizations/resources/index.d.ts +6 -0
  61. package/dist/cjs/api/resources/organizations/resources/index.js +45 -0
  62. package/dist/cjs/api/resources/organizations/resources/placements/client/Client.d.ts +131 -0
  63. package/dist/cjs/api/resources/organizations/resources/placements/client/Client.js +409 -0
  64. package/dist/cjs/api/resources/organizations/resources/placements/client/index.d.ts +1 -0
  65. package/dist/cjs/api/resources/organizations/resources/placements/client/index.js +17 -0
  66. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.ts +10 -0
  67. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.js +3 -0
  68. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/index.d.ts +1 -0
  69. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/index.js +2 -0
  70. package/dist/cjs/api/resources/organizations/resources/placements/exports.d.ts +2 -0
  71. package/dist/cjs/api/resources/organizations/resources/placements/exports.js +21 -0
  72. package/dist/cjs/api/resources/organizations/resources/placements/index.d.ts +2 -0
  73. package/dist/cjs/api/resources/organizations/resources/placements/index.js +18 -0
  74. package/dist/cjs/api/resources/organizations/resources/placements/types/Cadence.d.ts +14 -0
  75. package/dist/cjs/api/resources/organizations/resources/placements/types/Cadence.js +3 -0
  76. package/dist/cjs/api/resources/organizations/resources/placements/types/CadenceFrequency.d.ts +7 -0
  77. package/dist/cjs/api/resources/organizations/resources/placements/types/CadenceFrequency.js +10 -0
  78. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateMainPageAttributes.d.ts +15 -0
  79. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateMainPageAttributes.js +3 -0
  80. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateMainPagePlacementData.d.ts +8 -0
  81. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateMainPagePlacementData.js +3 -0
  82. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePlacementDataUnion.d.ts +13 -0
  83. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePlacementDataUnion.js +3 -0
  84. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePlacementRequestBody.d.ts +33 -0
  85. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePlacementRequestBody.js +3 -0
  86. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePushNotificationAttributes.d.ts +19 -0
  87. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePushNotificationAttributes.js +3 -0
  88. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePushNotificationPlacementData.d.ts +8 -0
  89. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePushNotificationPlacementData.js +3 -0
  90. package/dist/cjs/api/resources/organizations/resources/placements/types/DayOfWeek.d.ts +11 -0
  91. package/dist/cjs/api/resources/organizations/resources/placements/types/DayOfWeek.js +14 -0
  92. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.ts +15 -0
  93. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.js +3 -0
  94. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.ts +9 -0
  95. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementData.js +3 -0
  96. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.ts +42 -0
  97. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.js +3 -0
  98. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementListResponse.d.ts +11 -0
  99. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementListResponse.js +3 -0
  100. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.ts +16 -0
  101. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.js +3 -0
  102. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.d.ts +9 -0
  103. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.js +3 -0
  104. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateMainPageAttributes.d.ts +15 -0
  105. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateMainPageAttributes.js +3 -0
  106. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateMainPagePlacementData.d.ts +8 -0
  107. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateMainPagePlacementData.js +3 -0
  108. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePlacementDataUnion.d.ts +13 -0
  109. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePlacementDataUnion.js +3 -0
  110. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePlacementRequestBody.d.ts +8 -0
  111. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePlacementRequestBody.js +3 -0
  112. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePushNotificationAttributes.d.ts +20 -0
  113. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePushNotificationAttributes.js +3 -0
  114. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePushNotificationPlacementData.d.ts +8 -0
  115. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePushNotificationPlacementData.js +3 -0
  116. package/dist/cjs/api/resources/organizations/resources/placements/types/index.d.ts +21 -0
  117. package/dist/cjs/api/resources/organizations/resources/placements/types/index.js +37 -0
  118. package/dist/cjs/api/resources/organizations/types/ExternalOrganizationAttributes.d.ts +30 -0
  119. package/dist/cjs/api/resources/organizations/types/ExternalOrganizationAttributes.js +3 -0
  120. package/dist/cjs/api/resources/organizations/types/ExternalOrganizationResponse.d.ts +10 -0
  121. package/dist/cjs/api/resources/organizations/types/ExternalOrganizationResponse.js +3 -0
  122. package/dist/cjs/api/resources/organizations/types/index.d.ts +2 -0
  123. package/dist/cjs/api/resources/organizations/types/index.js +18 -0
  124. package/dist/cjs/api/resources/transactions/client/Client.d.ts +1 -1
  125. package/dist/cjs/api/resources/transactions/client/Client.js +2 -2
  126. package/dist/cjs/api/resources/transactions/client/requests/GetEarnedRewardsRequest.d.ts +4 -3
  127. package/dist/cjs/version.d.ts +1 -1
  128. package/dist/cjs/version.js +1 -1
  129. package/dist/esm/BaseClient.mjs +2 -2
  130. package/dist/esm/Client.d.mts +3 -0
  131. package/dist/esm/Client.mjs +5 -0
  132. package/dist/esm/api/resources/index.d.mts +4 -0
  133. package/dist/esm/api/resources/index.mjs +4 -0
  134. package/dist/esm/api/resources/internalOrganizations/exports.d.mts +1 -0
  135. package/dist/esm/api/resources/internalOrganizations/exports.mjs +2 -0
  136. package/dist/esm/api/resources/internalOrganizations/index.d.mts +1 -0
  137. package/dist/esm/api/resources/internalOrganizations/index.mjs +1 -0
  138. package/dist/esm/api/resources/internalOrganizations/types/DeleteResourceData.d.mts +11 -0
  139. package/dist/esm/api/resources/internalOrganizations/types/DeleteResourceData.mjs +2 -0
  140. package/dist/esm/api/resources/internalOrganizations/types/DeleteResourceResponse.d.mts +7 -0
  141. package/dist/esm/api/resources/internalOrganizations/types/DeleteResourceResponse.mjs +2 -0
  142. package/dist/esm/api/resources/internalOrganizations/types/EnrolledReward.d.mts +6 -0
  143. package/dist/esm/api/resources/internalOrganizations/types/EnrolledReward.mjs +6 -0
  144. package/dist/esm/api/resources/internalOrganizations/types/MerchantNetwork.d.mts +10 -0
  145. package/dist/esm/api/resources/internalOrganizations/types/MerchantNetwork.mjs +2 -0
  146. package/dist/esm/api/resources/internalOrganizations/types/MerchantNetworkName.d.mts +11 -0
  147. package/dist/esm/api/resources/internalOrganizations/types/MerchantNetworkName.mjs +11 -0
  148. package/dist/esm/api/resources/internalOrganizations/types/OrganizationPaginationMetadata.d.mts +9 -0
  149. package/dist/esm/api/resources/internalOrganizations/types/OrganizationPaginationMetadata.mjs +2 -0
  150. package/dist/esm/api/resources/internalOrganizations/types/index.d.mts +6 -0
  151. package/dist/esm/api/resources/internalOrganizations/types/index.mjs +6 -0
  152. package/dist/esm/api/resources/organizations/client/Client.d.mts +35 -0
  153. package/dist/esm/api/resources/organizations/client/Client.mjs +89 -0
  154. package/dist/esm/api/resources/organizations/client/index.d.mts +1 -0
  155. package/dist/esm/api/resources/organizations/client/index.mjs +1 -0
  156. package/dist/esm/api/resources/organizations/exports.d.mts +3 -0
  157. package/dist/esm/api/resources/organizations/exports.mjs +4 -0
  158. package/dist/esm/api/resources/organizations/index.d.mts +3 -0
  159. package/dist/esm/api/resources/organizations/index.mjs +3 -0
  160. package/dist/esm/api/resources/organizations/resources/children/client/Client.d.mts +113 -0
  161. package/dist/esm/api/resources/organizations/resources/children/client/Client.mjs +345 -0
  162. package/dist/esm/api/resources/organizations/resources/children/client/index.d.mts +1 -0
  163. package/dist/esm/api/resources/organizations/resources/children/client/index.mjs +1 -0
  164. package/dist/esm/api/resources/organizations/resources/children/client/requests/ListChildrenRequest.d.mts +10 -0
  165. package/dist/esm/api/resources/organizations/resources/children/client/requests/ListChildrenRequest.mjs +2 -0
  166. package/dist/esm/api/resources/organizations/resources/children/client/requests/index.d.mts +1 -0
  167. package/dist/esm/api/resources/organizations/resources/children/client/requests/index.mjs +1 -0
  168. package/dist/esm/api/resources/organizations/resources/children/exports.d.mts +2 -0
  169. package/dist/esm/api/resources/organizations/resources/children/exports.mjs +3 -0
  170. package/dist/esm/api/resources/organizations/resources/children/index.d.mts +2 -0
  171. package/dist/esm/api/resources/organizations/resources/children/index.mjs +2 -0
  172. package/dist/esm/api/resources/organizations/resources/children/types/ChildOrganizationListResponse.d.mts +11 -0
  173. package/dist/esm/api/resources/organizations/resources/children/types/ChildOrganizationListResponse.mjs +2 -0
  174. package/dist/esm/api/resources/organizations/resources/children/types/CreateChildAttributes.d.mts +18 -0
  175. package/dist/esm/api/resources/organizations/resources/children/types/CreateChildAttributes.mjs +2 -0
  176. package/dist/esm/api/resources/organizations/resources/children/types/CreateChildRequestBody.d.mts +8 -0
  177. package/dist/esm/api/resources/organizations/resources/children/types/CreateChildRequestBody.mjs +2 -0
  178. package/dist/esm/api/resources/organizations/resources/children/types/CreateChildRequestData.d.mts +10 -0
  179. package/dist/esm/api/resources/organizations/resources/children/types/CreateChildRequestData.mjs +2 -0
  180. package/dist/esm/api/resources/organizations/resources/children/types/UpdateChildAttributes.d.mts +21 -0
  181. package/dist/esm/api/resources/organizations/resources/children/types/UpdateChildAttributes.mjs +2 -0
  182. package/dist/esm/api/resources/organizations/resources/children/types/UpdateChildRequestBody.d.mts +8 -0
  183. package/dist/esm/api/resources/organizations/resources/children/types/UpdateChildRequestBody.mjs +2 -0
  184. package/dist/esm/api/resources/organizations/resources/children/types/UpdateChildRequestData.d.mts +10 -0
  185. package/dist/esm/api/resources/organizations/resources/children/types/UpdateChildRequestData.mjs +2 -0
  186. package/dist/esm/api/resources/organizations/resources/children/types/index.d.mts +7 -0
  187. package/dist/esm/api/resources/organizations/resources/children/types/index.mjs +7 -0
  188. package/dist/esm/api/resources/organizations/resources/index.d.mts +6 -0
  189. package/dist/esm/api/resources/organizations/resources/index.mjs +6 -0
  190. package/dist/esm/api/resources/organizations/resources/placements/client/Client.d.mts +131 -0
  191. package/dist/esm/api/resources/organizations/resources/placements/client/Client.mjs +372 -0
  192. package/dist/esm/api/resources/organizations/resources/placements/client/index.d.mts +1 -0
  193. package/dist/esm/api/resources/organizations/resources/placements/client/index.mjs +1 -0
  194. package/dist/esm/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.mts +10 -0
  195. package/dist/esm/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.mjs +2 -0
  196. package/dist/esm/api/resources/organizations/resources/placements/client/requests/index.d.mts +1 -0
  197. package/dist/esm/api/resources/organizations/resources/placements/client/requests/index.mjs +1 -0
  198. package/dist/esm/api/resources/organizations/resources/placements/exports.d.mts +2 -0
  199. package/dist/esm/api/resources/organizations/resources/placements/exports.mjs +3 -0
  200. package/dist/esm/api/resources/organizations/resources/placements/index.d.mts +2 -0
  201. package/dist/esm/api/resources/organizations/resources/placements/index.mjs +2 -0
  202. package/dist/esm/api/resources/organizations/resources/placements/types/Cadence.d.mts +14 -0
  203. package/dist/esm/api/resources/organizations/resources/placements/types/Cadence.mjs +2 -0
  204. package/dist/esm/api/resources/organizations/resources/placements/types/CadenceFrequency.d.mts +7 -0
  205. package/dist/esm/api/resources/organizations/resources/placements/types/CadenceFrequency.mjs +7 -0
  206. package/dist/esm/api/resources/organizations/resources/placements/types/CreateMainPageAttributes.d.mts +15 -0
  207. package/dist/esm/api/resources/organizations/resources/placements/types/CreateMainPageAttributes.mjs +2 -0
  208. package/dist/esm/api/resources/organizations/resources/placements/types/CreateMainPagePlacementData.d.mts +8 -0
  209. package/dist/esm/api/resources/organizations/resources/placements/types/CreateMainPagePlacementData.mjs +2 -0
  210. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePlacementDataUnion.d.mts +13 -0
  211. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePlacementDataUnion.mjs +2 -0
  212. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePlacementRequestBody.d.mts +33 -0
  213. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePlacementRequestBody.mjs +2 -0
  214. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePushNotificationAttributes.d.mts +19 -0
  215. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePushNotificationAttributes.mjs +2 -0
  216. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePushNotificationPlacementData.d.mts +8 -0
  217. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePushNotificationPlacementData.mjs +2 -0
  218. package/dist/esm/api/resources/organizations/resources/placements/types/DayOfWeek.d.mts +11 -0
  219. package/dist/esm/api/resources/organizations/resources/placements/types/DayOfWeek.mjs +11 -0
  220. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.mts +15 -0
  221. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.mjs +2 -0
  222. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.mts +9 -0
  223. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementData.mjs +2 -0
  224. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts +42 -0
  225. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.mjs +2 -0
  226. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementListResponse.d.mts +11 -0
  227. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementListResponse.mjs +2 -0
  228. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.mts +16 -0
  229. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.mjs +2 -0
  230. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.d.mts +9 -0
  231. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.mjs +2 -0
  232. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateMainPageAttributes.d.mts +15 -0
  233. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateMainPageAttributes.mjs +2 -0
  234. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateMainPagePlacementData.d.mts +8 -0
  235. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateMainPagePlacementData.mjs +2 -0
  236. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePlacementDataUnion.d.mts +13 -0
  237. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePlacementDataUnion.mjs +2 -0
  238. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePlacementRequestBody.d.mts +8 -0
  239. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePlacementRequestBody.mjs +2 -0
  240. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePushNotificationAttributes.d.mts +20 -0
  241. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePushNotificationAttributes.mjs +2 -0
  242. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePushNotificationPlacementData.d.mts +8 -0
  243. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePushNotificationPlacementData.mjs +2 -0
  244. package/dist/esm/api/resources/organizations/resources/placements/types/index.d.mts +21 -0
  245. package/dist/esm/api/resources/organizations/resources/placements/types/index.mjs +21 -0
  246. package/dist/esm/api/resources/organizations/types/ExternalOrganizationAttributes.d.mts +30 -0
  247. package/dist/esm/api/resources/organizations/types/ExternalOrganizationAttributes.mjs +2 -0
  248. package/dist/esm/api/resources/organizations/types/ExternalOrganizationResponse.d.mts +10 -0
  249. package/dist/esm/api/resources/organizations/types/ExternalOrganizationResponse.mjs +2 -0
  250. package/dist/esm/api/resources/organizations/types/index.d.mts +2 -0
  251. package/dist/esm/api/resources/organizations/types/index.mjs +2 -0
  252. package/dist/esm/api/resources/transactions/client/Client.d.mts +1 -1
  253. package/dist/esm/api/resources/transactions/client/Client.mjs +2 -2
  254. package/dist/esm/api/resources/transactions/client/requests/GetEarnedRewardsRequest.d.mts +4 -3
  255. package/dist/esm/version.d.mts +1 -1
  256. package/dist/esm/version.mjs +1 -1
  257. package/package.json +34 -1
  258. package/reference.md +821 -1
@@ -0,0 +1,382 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.ChildrenClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../../../errors/index.js"));
53
+ const KardApi = __importStar(require("../../../../../index.js"));
54
+ class ChildrenClient {
55
+ constructor(options = {}) {
56
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
+ }
58
+ /**
59
+ * List child organizations belonging to the authenticated issuer
60
+ *
61
+ * @param {string} organizationId - Unique identifier of the parent organization
62
+ * @param {KardApi.organizations.ListChildrenRequest} request
63
+ * @param {ChildrenClient.RequestOptions} requestOptions - Request-specific configuration.
64
+ *
65
+ * @throws {@link KardApi.UnauthorizedError}
66
+ * @throws {@link KardApi.ForbiddenError}
67
+ * @throws {@link KardApi.DoesNotExistError}
68
+ * @throws {@link KardApi.InternalServerError}
69
+ *
70
+ * @example
71
+ * await client.organizations.children.list("organizationId")
72
+ */
73
+ list(organizationId, request = {}, requestOptions) {
74
+ return core.HttpResponsePromise.fromPromise(this.__list(organizationId, request, requestOptions));
75
+ }
76
+ __list(organizationId_1) {
77
+ return __awaiter(this, arguments, void 0, function* (organizationId, request = {}, requestOptions) {
78
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
79
+ const { "page[after]": pageAfter, "page[size]": pageSize } = request;
80
+ const _queryParams = {
81
+ "page[after]": pageAfter,
82
+ "page[size]": pageSize,
83
+ };
84
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
85
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
86
+ const _response = yield core.fetcher({
87
+ 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.KardApiEnvironment.Production, `v2/issuers/${core.url.encodePathParam(organizationId)}/children`),
88
+ method: "GET",
89
+ headers: _headers,
90
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
91
+ 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,
92
+ 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,
93
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
94
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
95
+ logging: this._options.logging,
96
+ });
97
+ if (_response.ok) {
98
+ return {
99
+ data: _response.body,
100
+ rawResponse: _response.rawResponse,
101
+ };
102
+ }
103
+ if (_response.error.reason === "status-code") {
104
+ switch (_response.error.statusCode) {
105
+ case 401:
106
+ throw new KardApi.UnauthorizedError(_response.error.body, _response.rawResponse);
107
+ case 403:
108
+ throw new KardApi.ForbiddenError(_response.error.body, _response.rawResponse);
109
+ case 404:
110
+ throw new KardApi.DoesNotExistError(_response.error.body, _response.rawResponse);
111
+ case 500:
112
+ throw new KardApi.InternalServerError(_response.error.body, _response.rawResponse);
113
+ default:
114
+ throw new errors.KardApiError({
115
+ statusCode: _response.error.statusCode,
116
+ body: _response.error.body,
117
+ rawResponse: _response.rawResponse,
118
+ });
119
+ }
120
+ }
121
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v2/issuers/{organizationId}/children");
122
+ });
123
+ }
124
+ /**
125
+ * Create a child organization by cloning the parent and overriding specified fields. An 8-digit numeric ID is generated automatically. The name is required, must be uppercase, and must not contain spaces.
126
+ *
127
+ * @param {string} organizationId - Unique identifier of the parent organization
128
+ * @param {KardApi.organizations.CreateChildRequestBody} request
129
+ * @param {ChildrenClient.RequestOptions} requestOptions - Request-specific configuration.
130
+ *
131
+ * @throws {@link KardApi.UnauthorizedError}
132
+ * @throws {@link KardApi.ForbiddenError}
133
+ * @throws {@link KardApi.InvalidRequest}
134
+ * @throws {@link KardApi.ConflictError}
135
+ * @throws {@link KardApi.InternalServerError}
136
+ *
137
+ * @example
138
+ * await client.organizations.children.create("organizationId", {
139
+ * data: {
140
+ * type: "organization",
141
+ * attributes: {
142
+ * name: "name"
143
+ * }
144
+ * }
145
+ * })
146
+ */
147
+ create(organizationId, request, requestOptions) {
148
+ return core.HttpResponsePromise.fromPromise(this.__create(organizationId, request, requestOptions));
149
+ }
150
+ __create(organizationId, request, requestOptions) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
153
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
154
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
155
+ const _response = yield core.fetcher({
156
+ 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.KardApiEnvironment.Production, `v2/issuers/${core.url.encodePathParam(organizationId)}/children`),
157
+ method: "POST",
158
+ headers: _headers,
159
+ contentType: "application/json",
160
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
161
+ requestType: "json",
162
+ body: request,
163
+ 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,
164
+ 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,
165
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
166
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
167
+ logging: this._options.logging,
168
+ });
169
+ if (_response.ok) {
170
+ return { data: _response.body, rawResponse: _response.rawResponse };
171
+ }
172
+ if (_response.error.reason === "status-code") {
173
+ switch (_response.error.statusCode) {
174
+ case 401:
175
+ throw new KardApi.UnauthorizedError(_response.error.body, _response.rawResponse);
176
+ case 403:
177
+ throw new KardApi.ForbiddenError(_response.error.body, _response.rawResponse);
178
+ case 400:
179
+ throw new KardApi.InvalidRequest(_response.error.body, _response.rawResponse);
180
+ case 409:
181
+ throw new KardApi.ConflictError(_response.error.body, _response.rawResponse);
182
+ case 500:
183
+ throw new KardApi.InternalServerError(_response.error.body, _response.rawResponse);
184
+ default:
185
+ throw new errors.KardApiError({
186
+ statusCode: _response.error.statusCode,
187
+ body: _response.error.body,
188
+ rawResponse: _response.rawResponse,
189
+ });
190
+ }
191
+ }
192
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/issuers/{organizationId}/children");
193
+ });
194
+ }
195
+ /**
196
+ * Retrieve a specific child organization
197
+ *
198
+ * @param {string} organizationId - Unique identifier of the parent organization
199
+ * @param {string} childId - Unique identifier of the child organization
200
+ * @param {ChildrenClient.RequestOptions} requestOptions - Request-specific configuration.
201
+ *
202
+ * @throws {@link KardApi.UnauthorizedError}
203
+ * @throws {@link KardApi.ForbiddenError}
204
+ * @throws {@link KardApi.DoesNotExistError}
205
+ * @throws {@link KardApi.InternalServerError}
206
+ *
207
+ * @example
208
+ * await client.organizations.children.get("organizationId", "childId")
209
+ */
210
+ get(organizationId, childId, requestOptions) {
211
+ return core.HttpResponsePromise.fromPromise(this.__get(organizationId, childId, requestOptions));
212
+ }
213
+ __get(organizationId, childId, requestOptions) {
214
+ return __awaiter(this, void 0, void 0, function* () {
215
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
216
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
217
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
218
+ const _response = yield core.fetcher({
219
+ 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.KardApiEnvironment.Production, `v2/issuers/${core.url.encodePathParam(organizationId)}/children/${core.url.encodePathParam(childId)}`),
220
+ method: "GET",
221
+ headers: _headers,
222
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
223
+ 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,
224
+ 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,
225
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
226
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
227
+ logging: this._options.logging,
228
+ });
229
+ if (_response.ok) {
230
+ return { data: _response.body, rawResponse: _response.rawResponse };
231
+ }
232
+ if (_response.error.reason === "status-code") {
233
+ switch (_response.error.statusCode) {
234
+ case 401:
235
+ throw new KardApi.UnauthorizedError(_response.error.body, _response.rawResponse);
236
+ case 403:
237
+ throw new KardApi.ForbiddenError(_response.error.body, _response.rawResponse);
238
+ case 404:
239
+ throw new KardApi.DoesNotExistError(_response.error.body, _response.rawResponse);
240
+ case 500:
241
+ throw new KardApi.InternalServerError(_response.error.body, _response.rawResponse);
242
+ default:
243
+ throw new errors.KardApiError({
244
+ statusCode: _response.error.statusCode,
245
+ body: _response.error.body,
246
+ rawResponse: _response.rawResponse,
247
+ });
248
+ }
249
+ }
250
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v2/issuers/{organizationId}/children/{childId}");
251
+ });
252
+ }
253
+ /**
254
+ * Update a child organization. Only the name can be changed.
255
+ *
256
+ * @param {string} organizationId - Unique identifier of the parent organization
257
+ * @param {string} childId - Unique identifier of the child organization
258
+ * @param {KardApi.organizations.UpdateChildRequestBody} request
259
+ * @param {ChildrenClient.RequestOptions} requestOptions - Request-specific configuration.
260
+ *
261
+ * @throws {@link KardApi.UnauthorizedError}
262
+ * @throws {@link KardApi.ForbiddenError}
263
+ * @throws {@link KardApi.InvalidRequest}
264
+ * @throws {@link KardApi.DoesNotExistError}
265
+ * @throws {@link KardApi.InternalServerError}
266
+ *
267
+ * @example
268
+ * await client.organizations.children.update("organizationId", "childId", {
269
+ * data: {
270
+ * type: "organization",
271
+ * attributes: {}
272
+ * }
273
+ * })
274
+ */
275
+ update(organizationId, childId, request, requestOptions) {
276
+ return core.HttpResponsePromise.fromPromise(this.__update(organizationId, childId, request, requestOptions));
277
+ }
278
+ __update(organizationId, childId, request, requestOptions) {
279
+ return __awaiter(this, void 0, void 0, function* () {
280
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
281
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
282
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
283
+ const _response = yield core.fetcher({
284
+ 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.KardApiEnvironment.Production, `v2/issuers/${core.url.encodePathParam(organizationId)}/children/${core.url.encodePathParam(childId)}`),
285
+ method: "PATCH",
286
+ headers: _headers,
287
+ contentType: "application/json",
288
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
289
+ requestType: "json",
290
+ body: request,
291
+ 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,
292
+ 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,
293
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
294
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
295
+ logging: this._options.logging,
296
+ });
297
+ if (_response.ok) {
298
+ return { data: _response.body, rawResponse: _response.rawResponse };
299
+ }
300
+ if (_response.error.reason === "status-code") {
301
+ switch (_response.error.statusCode) {
302
+ case 401:
303
+ throw new KardApi.UnauthorizedError(_response.error.body, _response.rawResponse);
304
+ case 403:
305
+ throw new KardApi.ForbiddenError(_response.error.body, _response.rawResponse);
306
+ case 400:
307
+ throw new KardApi.InvalidRequest(_response.error.body, _response.rawResponse);
308
+ case 404:
309
+ throw new KardApi.DoesNotExistError(_response.error.body, _response.rawResponse);
310
+ case 500:
311
+ throw new KardApi.InternalServerError(_response.error.body, _response.rawResponse);
312
+ default:
313
+ throw new errors.KardApiError({
314
+ statusCode: _response.error.statusCode,
315
+ body: _response.error.body,
316
+ rawResponse: _response.rawResponse,
317
+ });
318
+ }
319
+ }
320
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v2/issuers/{organizationId}/children/{childId}");
321
+ });
322
+ }
323
+ /**
324
+ * Delete a child organization
325
+ *
326
+ * @param {string} organizationId - Unique identifier of the parent organization
327
+ * @param {string} childId - Unique identifier of the child organization
328
+ * @param {ChildrenClient.RequestOptions} requestOptions - Request-specific configuration.
329
+ *
330
+ * @throws {@link KardApi.UnauthorizedError}
331
+ * @throws {@link KardApi.ForbiddenError}
332
+ * @throws {@link KardApi.DoesNotExistError}
333
+ * @throws {@link KardApi.InternalServerError}
334
+ *
335
+ * @example
336
+ * await client.organizations.children.delete("organizationId", "childId")
337
+ */
338
+ delete(organizationId, childId, requestOptions) {
339
+ return core.HttpResponsePromise.fromPromise(this.__delete(organizationId, childId, requestOptions));
340
+ }
341
+ __delete(organizationId, childId, requestOptions) {
342
+ return __awaiter(this, void 0, void 0, function* () {
343
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
344
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
345
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
346
+ const _response = yield core.fetcher({
347
+ 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.KardApiEnvironment.Production, `v2/issuers/${core.url.encodePathParam(organizationId)}/children/${core.url.encodePathParam(childId)}`),
348
+ method: "DELETE",
349
+ headers: _headers,
350
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
351
+ 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,
352
+ 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,
353
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
354
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
355
+ logging: this._options.logging,
356
+ });
357
+ if (_response.ok) {
358
+ return { data: _response.body, rawResponse: _response.rawResponse };
359
+ }
360
+ if (_response.error.reason === "status-code") {
361
+ switch (_response.error.statusCode) {
362
+ case 401:
363
+ throw new KardApi.UnauthorizedError(_response.error.body, _response.rawResponse);
364
+ case 403:
365
+ throw new KardApi.ForbiddenError(_response.error.body, _response.rawResponse);
366
+ case 404:
367
+ throw new KardApi.DoesNotExistError(_response.error.body, _response.rawResponse);
368
+ case 500:
369
+ throw new KardApi.InternalServerError(_response.error.body, _response.rawResponse);
370
+ default:
371
+ throw new errors.KardApiError({
372
+ statusCode: _response.error.statusCode,
373
+ body: _response.error.body,
374
+ rawResponse: _response.rawResponse,
375
+ });
376
+ }
377
+ }
378
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v2/issuers/{organizationId}/children/{childId}");
379
+ });
380
+ }
381
+ }
382
+ exports.ChildrenClient = ChildrenClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListChildrenRequest {
6
+ /** Cursor value for the next page of results */
7
+ "page[after]"?: string;
8
+ /** Maximum number of records to return [1 - 200] (default = 200) */
9
+ "page[size]"?: number;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { ListChildrenRequest } from "./ListChildrenRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ChildrenClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ChildrenClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "ChildrenClient", { enumerable: true, get: function () { return Client_js_1.ChildrenClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,11 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Paginated list of child organizations
4
+ */
5
+ export interface ChildOrganizationListResponse {
6
+ /** Array of child organization resources */
7
+ data: KardApi.ExternalOrganizationResponse[];
8
+ links?: KardApi.Links | undefined;
9
+ /** Pagination metadata */
10
+ meta?: KardApi.OrganizationPaginationMetadata | undefined;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Attributes for creating a child organization. Only name is required. All other fields are optional and default to the parent organization's values.
3
+ *
4
+ * @example
5
+ * {
6
+ * name: "ACMECHILDBANK",
7
+ * externalId: "ext-123",
8
+ * bins: ["123456", "789012"]
9
+ * }
10
+ */
11
+ export interface CreateChildAttributes {
12
+ /** Name of the child organization (must be uppercase, no spaces) */
13
+ name: string;
14
+ /** External identifier for the child organization */
15
+ externalId?: string | undefined;
16
+ /** Bank Identification Numbers for the child organization */
17
+ bins?: string[] | undefined;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Request body for creating a child organization
4
+ */
5
+ export interface CreateChildRequestBody {
6
+ /** Child organization data for creation */
7
+ data: KardApi.organizations.CreateChildRequestData;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Child organization data structure for creation
4
+ */
5
+ export interface CreateChildRequestData {
6
+ /** Resource type identifier */
7
+ type: "organization";
8
+ /** Child organization attributes for creation */
9
+ attributes: KardApi.organizations.CreateChildAttributes;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Attributes for updating a child organization. All fields are optional; only provided fields are changed.
3
+ *
4
+ * @example
5
+ * {
6
+ * name: "NEWCHILDNAME"
7
+ * }
8
+ *
9
+ * @example
10
+ * {
11
+ * bins: ["123456", "789012"]
12
+ * }
13
+ */
14
+ export interface UpdateChildAttributes {
15
+ /** New name for the child organization (must be uppercase, no spaces) */
16
+ name?: string | undefined;
17
+ /** External identifier for the child organization */
18
+ externalId?: string | undefined;
19
+ /** Bank Identification Numbers for the child organization */
20
+ bins?: string[] | undefined;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Request body for updating a child organization
4
+ */
5
+ export interface UpdateChildRequestBody {
6
+ /** Child organization data for update */
7
+ data: KardApi.organizations.UpdateChildRequestData;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Child organization data structure for update
4
+ */
5
+ export interface UpdateChildRequestData {
6
+ /** Resource type identifier */
7
+ type: "organization";
8
+ /** Child organization attributes for update */
9
+ attributes: KardApi.organizations.UpdateChildAttributes;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export * from "./ChildOrganizationListResponse.js";
2
+ export * from "./CreateChildAttributes.js";
3
+ export * from "./CreateChildRequestBody.js";
4
+ export * from "./CreateChildRequestData.js";
5
+ export * from "./UpdateChildAttributes.js";
6
+ export * from "./UpdateChildRequestBody.js";
7
+ export * from "./UpdateChildRequestData.js";