@widgetic/api-sdk 1.0.31 → 1.0.33

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 (308) hide show
  1. package/README.md +4 -0
  2. package/dist/apis/AdminApi.d.ts +30 -46
  3. package/dist/apis/AdminApi.js +53 -102
  4. package/dist/apis/AdminBillingApi.d.ts +2 -2
  5. package/dist/apis/AdminBillingApi.js +2 -2
  6. package/dist/apis/BillingApi.d.ts +44 -1
  7. package/dist/apis/BillingApi.js +127 -0
  8. package/dist/apis/CompositionsApi.d.ts +19 -15
  9. package/dist/apis/CompositionsApi.js +21 -14
  10. package/dist/apis/CreditsApi.d.ts +7 -7
  11. package/dist/apis/CreditsApi.js +5 -5
  12. package/dist/apis/OrganizationsApi.d.ts +35 -7
  13. package/dist/apis/OrganizationsApi.js +86 -6
  14. package/dist/apis/PartnerApi.d.ts +141 -36
  15. package/dist/apis/PartnerApi.js +333 -31
  16. package/dist/apis/PartnerCustomizationsApi.d.ts +4 -4
  17. package/dist/apis/PartnerCustomizationsApi.js +4 -4
  18. package/dist/apis/PartnersApi.d.ts +85 -67
  19. package/dist/apis/PartnersApi.js +198 -119
  20. package/dist/apis/PublicEmbedApi.d.ts +42 -3
  21. package/dist/apis/PublicEmbedApi.js +99 -2
  22. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  23. package/dist/apis/SubscriptionsApi.js +2 -2
  24. package/dist/apis/UploadsApi.d.ts +4 -4
  25. package/dist/apis/UploadsApi.js +4 -4
  26. package/dist/apis/UsersApi.d.ts +4 -4
  27. package/dist/apis/UsersApi.js +4 -4
  28. package/dist/apis/index.d.ts +0 -4
  29. package/dist/apis/index.js +0 -4
  30. package/dist/esm/apis/AdminApi.d.ts +30 -46
  31. package/dist/esm/apis/AdminApi.js +54 -103
  32. package/dist/esm/apis/AdminBillingApi.d.ts +2 -2
  33. package/dist/esm/apis/AdminBillingApi.js +2 -2
  34. package/dist/esm/apis/BillingApi.d.ts +44 -1
  35. package/dist/esm/apis/BillingApi.js +128 -1
  36. package/dist/esm/apis/CompositionsApi.d.ts +19 -15
  37. package/dist/esm/apis/CompositionsApi.js +22 -15
  38. package/dist/esm/apis/CreditsApi.d.ts +7 -7
  39. package/dist/esm/apis/CreditsApi.js +6 -6
  40. package/dist/esm/apis/OrganizationsApi.d.ts +35 -7
  41. package/dist/esm/apis/OrganizationsApi.js +87 -7
  42. package/dist/esm/apis/PartnerApi.d.ts +141 -36
  43. package/dist/esm/apis/PartnerApi.js +334 -32
  44. package/dist/esm/apis/PartnerCustomizationsApi.d.ts +4 -4
  45. package/dist/esm/apis/PartnerCustomizationsApi.js +4 -4
  46. package/dist/esm/apis/PartnersApi.d.ts +85 -67
  47. package/dist/esm/apis/PartnersApi.js +198 -119
  48. package/dist/esm/apis/PublicEmbedApi.d.ts +42 -3
  49. package/dist/esm/apis/PublicEmbedApi.js +100 -3
  50. package/dist/esm/apis/SubscriptionsApi.d.ts +2 -2
  51. package/dist/esm/apis/SubscriptionsApi.js +2 -2
  52. package/dist/esm/apis/UploadsApi.d.ts +4 -4
  53. package/dist/esm/apis/UploadsApi.js +4 -4
  54. package/dist/esm/apis/UsersApi.d.ts +4 -4
  55. package/dist/esm/apis/UsersApi.js +4 -4
  56. package/dist/esm/apis/index.d.ts +0 -4
  57. package/dist/esm/apis/index.js +0 -4
  58. package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
  59. package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.js +43 -0
  60. package/dist/esm/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
  61. package/dist/esm/models/BillingUsersUserIdStorageGet200Response.js +44 -0
  62. package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
  63. package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.js +42 -0
  64. package/dist/esm/models/Composition.d.ts +12 -0
  65. package/dist/esm/models/Composition.js +2 -0
  66. package/dist/esm/models/CompositionDataSource.d.ts +41 -0
  67. package/dist/esm/models/CompositionDataSource.js +47 -0
  68. package/dist/esm/models/CompositionEntriesReading.d.ts +20 -4
  69. package/dist/esm/models/CompositionEntriesReading.js +3 -0
  70. package/dist/esm/models/CompositionEntryAggregateTally.d.ts +15 -8
  71. package/dist/esm/models/CompositionEntryAggregatesBlock.d.ts +10 -0
  72. package/dist/esm/models/CompositionEntryItem.d.ts +4 -1
  73. package/dist/esm/models/CompositionEntryItemsMeta.d.ts +8 -0
  74. package/dist/esm/models/ConvertSoloToTeams200Response.d.ts +39 -0
  75. package/dist/esm/models/ConvertSoloToTeams200Response.js +44 -0
  76. package/dist/esm/models/CreatePartnerRequest.d.ts +7 -0
  77. package/dist/esm/models/CreatePartnerRequest.js +2 -0
  78. package/dist/esm/models/DeleteCompositionDataSource200Response.d.ts +32 -0
  79. package/dist/esm/models/DeleteCompositionDataSource200Response.js +43 -0
  80. package/dist/esm/models/GetCompositionContentSchema200Response.d.ts +2 -2
  81. package/dist/esm/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
  82. package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
  83. package/dist/esm/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
  84. package/dist/esm/models/GetPartnerCreditTransactions200Response.js +44 -0
  85. package/dist/esm/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
  86. package/dist/esm/models/GetPublicCompositionEmbed200Response.js +67 -0
  87. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  88. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
  89. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  90. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
  91. package/dist/esm/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
  92. package/dist/esm/models/GetPublicCompositionEmbed403Response.js +48 -0
  93. package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
  94. package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.js +50 -0
  95. package/dist/esm/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
  96. package/dist/esm/models/GetPublicCompositionEmbed404Response.js +51 -0
  97. package/dist/esm/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
  98. package/dist/esm/models/GetPublicCompositionEmbed429Response.js +43 -0
  99. package/dist/esm/models/IssuePartnerInvoiceRequest.d.ts +14 -1
  100. package/dist/esm/models/IssuePartnerInvoiceRequest.js +2 -0
  101. package/dist/esm/models/IssuedPartnerInvoice.d.ts +6 -0
  102. package/dist/esm/models/IssuedPartnerInvoice.js +4 -0
  103. package/dist/esm/models/ManagedUserEntryItem.d.ts +4 -1
  104. package/dist/esm/models/MyPartner.d.ts +7 -0
  105. package/dist/esm/models/MyPartner.js +4 -0
  106. package/dist/esm/models/MyPartners.d.ts +9 -1
  107. package/dist/esm/models/MyPartners.js +6 -1
  108. package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
  109. package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.js +9 -0
  110. package/dist/esm/models/Partner.d.ts +7 -0
  111. package/dist/esm/models/Partner.js +2 -0
  112. package/dist/esm/models/PartnerActivation.d.ts +1 -1
  113. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
  114. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.js +0 -4
  115. package/dist/esm/models/PartnerBillingProfile.d.ts +1 -1
  116. package/dist/esm/models/PartnerContract.d.ts +15 -3
  117. package/dist/esm/models/PartnerContract.js +6 -2
  118. package/dist/esm/models/PartnerCustomization.d.ts +15 -3
  119. package/dist/esm/models/PartnerCustomization.js +6 -2
  120. package/dist/esm/models/PartnerDetails.d.ts +7 -0
  121. package/dist/esm/models/PartnerDetails.js +2 -0
  122. package/dist/esm/models/PartnerEntryContextSecret.d.ts +39 -0
  123. package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
  124. package/dist/esm/models/PartnerEntryContextSigning.d.ts +62 -0
  125. package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
  126. package/dist/esm/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  127. package/dist/esm/models/PartnerExtraCreditsInvoice.js +87 -0
  128. package/dist/esm/models/PartnerInvoiceSchedule.d.ts +66 -0
  129. package/dist/esm/models/PartnerInvoiceSchedule.js +67 -0
  130. package/dist/esm/models/PartnerInvoiceScheduleContract.d.ts +68 -0
  131. package/dist/esm/models/PartnerInvoiceScheduleContract.js +67 -0
  132. package/dist/esm/models/PartnerInvoiceScheduleNext.d.ts +94 -0
  133. package/dist/esm/models/PartnerInvoiceScheduleNext.js +91 -0
  134. package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
  135. package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.js +47 -0
  136. package/dist/esm/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
  137. package/dist/esm/models/PartnerInvoiceScheduleOverdue.js +47 -0
  138. package/dist/esm/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
  139. package/dist/esm/models/PartnerInvoiceSchedulePeriod.js +91 -0
  140. package/dist/esm/models/PartnerNotification.d.ts +1 -1
  141. package/dist/esm/models/PartnerNotificationEventType.d.ts +2 -0
  142. package/dist/esm/models/PartnerNotificationEventType.js +2 -0
  143. package/dist/esm/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  144. package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
  145. package/dist/esm/models/PartnerNotificationTestEventResult.d.ts +50 -0
  146. package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
  147. package/dist/esm/models/PartnerUpdateResult.d.ts +8 -16
  148. package/dist/esm/models/PartnerUpdateResult.js +2 -5
  149. package/dist/esm/models/PartnerWithWarnings.d.ts +7 -0
  150. package/dist/esm/models/PartnerWithWarnings.js +2 -0
  151. package/dist/esm/models/PersonalExtraStorage.d.ts +92 -0
  152. package/dist/esm/models/PersonalExtraStorage.js +83 -0
  153. package/dist/esm/models/PersonalExtraStorageBlock.d.ts +56 -0
  154. package/dist/esm/models/PersonalExtraStorageBlock.js +57 -0
  155. package/dist/esm/models/PersonalStorage.d.ts +80 -0
  156. package/dist/esm/models/PersonalStorage.js +73 -0
  157. package/dist/esm/models/PersonalStoragePack.d.ts +100 -0
  158. package/dist/esm/models/PersonalStoragePack.js +84 -0
  159. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
  160. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +44 -0
  161. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  162. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
  163. package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
  164. package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.js +41 -0
  165. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  166. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
  167. package/dist/esm/models/PublicCompositionEntryRequest.d.ts +1 -1
  168. package/dist/esm/models/RequestExtraCredits.d.ts +33 -0
  169. package/dist/esm/models/RequestExtraCredits.js +43 -0
  170. package/dist/esm/models/StorageChange.d.ts +4 -3
  171. package/dist/esm/models/SurfaceConversionResult.d.ts +85 -0
  172. package/dist/esm/models/SurfaceConversionResult.js +76 -0
  173. package/dist/esm/models/SurfaceConversionResultSubscription.d.ts +82 -0
  174. package/dist/esm/models/SurfaceConversionResultSubscription.js +62 -0
  175. package/dist/esm/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
  176. package/dist/esm/models/UpdatePartnerCustomizationRequest.js +2 -2
  177. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  178. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
  179. package/dist/esm/models/UpdatePartnerRequest.d.ts +7 -24
  180. package/dist/esm/models/UpdatePartnerRequest.js +2 -8
  181. package/dist/esm/models/index.d.ts +37 -86
  182. package/dist/esm/models/index.js +37 -86
  183. package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
  184. package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.js +50 -0
  185. package/dist/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
  186. package/dist/models/BillingUsersUserIdStorageGet200Response.js +51 -0
  187. package/dist/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
  188. package/dist/models/BillingUsersUserIdStorageGet200ResponseData.js +49 -0
  189. package/dist/models/Composition.d.ts +12 -0
  190. package/dist/models/Composition.js +2 -0
  191. package/dist/models/CompositionDataSource.d.ts +41 -0
  192. package/dist/models/CompositionDataSource.js +54 -0
  193. package/dist/models/CompositionEntriesReading.d.ts +20 -4
  194. package/dist/models/CompositionEntriesReading.js +3 -0
  195. package/dist/models/CompositionEntryAggregateTally.d.ts +15 -8
  196. package/dist/models/CompositionEntryAggregatesBlock.d.ts +10 -0
  197. package/dist/models/CompositionEntryItem.d.ts +4 -1
  198. package/dist/models/CompositionEntryItemsMeta.d.ts +8 -0
  199. package/dist/models/ConvertSoloToTeams200Response.d.ts +39 -0
  200. package/dist/models/ConvertSoloToTeams200Response.js +51 -0
  201. package/dist/models/CreatePartnerRequest.d.ts +7 -0
  202. package/dist/models/CreatePartnerRequest.js +2 -0
  203. package/dist/models/DeleteCompositionDataSource200Response.d.ts +32 -0
  204. package/dist/models/DeleteCompositionDataSource200Response.js +50 -0
  205. package/dist/models/GetCompositionContentSchema200Response.d.ts +2 -2
  206. package/dist/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
  207. package/dist/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
  208. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
  209. package/dist/models/GetPartnerCreditTransactions200Response.js +51 -0
  210. package/dist/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
  211. package/dist/models/GetPublicCompositionEmbed200Response.js +74 -0
  212. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  213. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.js +50 -0
  214. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  215. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.js +52 -0
  216. package/dist/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
  217. package/dist/models/GetPublicCompositionEmbed403Response.js +55 -0
  218. package/dist/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
  219. package/dist/models/GetPublicCompositionEmbed403ResponseDetails.js +58 -0
  220. package/dist/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
  221. package/dist/models/GetPublicCompositionEmbed404Response.js +59 -0
  222. package/dist/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
  223. package/dist/models/GetPublicCompositionEmbed429Response.js +50 -0
  224. package/dist/models/IssuePartnerInvoiceRequest.d.ts +14 -1
  225. package/dist/models/IssuePartnerInvoiceRequest.js +2 -0
  226. package/dist/models/IssuedPartnerInvoice.d.ts +6 -0
  227. package/dist/models/IssuedPartnerInvoice.js +4 -0
  228. package/dist/models/ManagedUserEntryItem.d.ts +4 -1
  229. package/dist/models/MyPartner.d.ts +7 -0
  230. package/dist/models/MyPartner.js +4 -0
  231. package/dist/models/MyPartners.d.ts +9 -1
  232. package/dist/models/MyPartners.js +6 -1
  233. package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
  234. package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.js +10 -0
  235. package/dist/models/Partner.d.ts +7 -0
  236. package/dist/models/Partner.js +2 -0
  237. package/dist/models/PartnerActivation.d.ts +1 -1
  238. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
  239. package/dist/models/PartnerBillingOverviewOperationalCredits.js +0 -4
  240. package/dist/models/PartnerBillingProfile.d.ts +1 -1
  241. package/dist/models/PartnerContract.d.ts +15 -3
  242. package/dist/models/PartnerContract.js +6 -2
  243. package/dist/models/PartnerCustomization.d.ts +15 -3
  244. package/dist/models/PartnerCustomization.js +6 -2
  245. package/dist/models/PartnerDetails.d.ts +7 -0
  246. package/dist/models/PartnerDetails.js +2 -0
  247. package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
  248. package/dist/models/PartnerEntryContextSecret.js +55 -0
  249. package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
  250. package/dist/models/PartnerEntryContextSigning.js +70 -0
  251. package/dist/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  252. package/dist/models/PartnerExtraCreditsInvoice.js +94 -0
  253. package/dist/models/PartnerInvoiceSchedule.d.ts +66 -0
  254. package/dist/models/PartnerInvoiceSchedule.js +74 -0
  255. package/dist/models/PartnerInvoiceScheduleContract.d.ts +68 -0
  256. package/dist/models/PartnerInvoiceScheduleContract.js +74 -0
  257. package/dist/models/PartnerInvoiceScheduleNext.d.ts +94 -0
  258. package/dist/models/PartnerInvoiceScheduleNext.js +99 -0
  259. package/dist/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
  260. package/dist/models/PartnerInvoiceScheduleNextPeriod.js +54 -0
  261. package/dist/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
  262. package/dist/models/PartnerInvoiceScheduleOverdue.js +54 -0
  263. package/dist/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
  264. package/dist/models/PartnerInvoiceSchedulePeriod.js +99 -0
  265. package/dist/models/PartnerNotification.d.ts +1 -1
  266. package/dist/models/PartnerNotificationEventType.d.ts +2 -0
  267. package/dist/models/PartnerNotificationEventType.js +2 -0
  268. package/dist/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  269. package/dist/models/PartnerNotificationTestEventRequest.js +51 -0
  270. package/dist/models/PartnerNotificationTestEventResult.d.ts +50 -0
  271. package/dist/models/PartnerNotificationTestEventResult.js +60 -0
  272. package/dist/models/PartnerUpdateResult.d.ts +8 -16
  273. package/dist/models/PartnerUpdateResult.js +2 -5
  274. package/dist/models/PartnerWithWarnings.d.ts +7 -0
  275. package/dist/models/PartnerWithWarnings.js +2 -0
  276. package/dist/models/PersonalExtraStorage.d.ts +92 -0
  277. package/dist/models/PersonalExtraStorage.js +91 -0
  278. package/dist/models/PersonalExtraStorageBlock.d.ts +56 -0
  279. package/dist/models/PersonalExtraStorageBlock.js +65 -0
  280. package/dist/models/PersonalStorage.d.ts +80 -0
  281. package/dist/models/PersonalStorage.js +80 -0
  282. package/dist/models/PersonalStoragePack.d.ts +100 -0
  283. package/dist/models/PersonalStoragePack.js +92 -0
  284. package/dist/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
  285. package/dist/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
  286. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  287. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
  288. package/dist/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
  289. package/dist/models/PostPublicCompositionEmbedStatus429Response.js +48 -0
  290. package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  291. package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
  292. package/dist/models/PublicCompositionEntryRequest.d.ts +1 -1
  293. package/dist/models/RequestExtraCredits.d.ts +33 -0
  294. package/dist/models/RequestExtraCredits.js +50 -0
  295. package/dist/models/StorageChange.d.ts +4 -3
  296. package/dist/models/SurfaceConversionResult.d.ts +85 -0
  297. package/dist/models/SurfaceConversionResult.js +84 -0
  298. package/dist/models/SurfaceConversionResultSubscription.d.ts +82 -0
  299. package/dist/models/SurfaceConversionResultSubscription.js +70 -0
  300. package/dist/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
  301. package/dist/models/UpdatePartnerCustomizationRequest.js +2 -2
  302. package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  303. package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
  304. package/dist/models/UpdatePartnerRequest.d.ts +7 -24
  305. package/dist/models/UpdatePartnerRequest.js +2 -8
  306. package/dist/models/index.d.ts +37 -86
  307. package/dist/models/index.js +37 -86
  308. package/package.json +3 -2
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A contract period the daily run took, and where its invoice stands.
14
+ * @export
15
+ * @interface PartnerInvoiceSchedulePeriod
16
+ */
17
+ export interface PartnerInvoiceSchedulePeriod {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof PartnerInvoiceSchedulePeriod
22
+ */
23
+ periodStart: Date;
24
+ /**
25
+ * The day after the last day of the period, when its credits expire
26
+ * @type {Date}
27
+ * @memberof PartnerInvoiceSchedulePeriod
28
+ */
29
+ periodEnd: Date;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PartnerInvoiceSchedulePeriod
34
+ */
35
+ credits: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PartnerInvoiceSchedulePeriod
40
+ */
41
+ creditPriceUsd: number;
42
+ /**
43
+ * Before tax
44
+ * @type {number}
45
+ * @memberof PartnerInvoiceSchedulePeriod
46
+ */
47
+ amountUsd: number;
48
+ /**
49
+ * `claimed`: a run took the period and its invoice is not out yet (the next run finishes it). `issued`: the invoice is out. `abandoned`: the period ended before its invoice went out, and nothing issues it any more.
50
+ * @type {string}
51
+ * @memberof PartnerInvoiceSchedulePeriod
52
+ */
53
+ status: PartnerInvoiceSchedulePeriodStatusEnum;
54
+ /**
55
+ * How many times a run took the period. More than one means an earlier run stopped before the invoice went out.
56
+ * @type {number}
57
+ * @memberof PartnerInvoiceSchedulePeriod
58
+ */
59
+ attempts: number;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof PartnerInvoiceSchedulePeriod
64
+ */
65
+ stripeInvoiceId: string | null;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof PartnerInvoiceSchedulePeriod
70
+ */
71
+ issuedAt: Date | null;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof PartnerInvoiceSchedulePeriod
76
+ */
77
+ abandonedAt: Date | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof PartnerInvoiceSchedulePeriod
82
+ */
83
+ abandonedReason: string | null;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const PartnerInvoiceSchedulePeriodStatusEnum: {
89
+ readonly Claimed: "claimed";
90
+ readonly Issued: "issued";
91
+ readonly Abandoned: "abandoned";
92
+ };
93
+ export type PartnerInvoiceSchedulePeriodStatusEnum = typeof PartnerInvoiceSchedulePeriodStatusEnum[keyof typeof PartnerInvoiceSchedulePeriodStatusEnum];
94
+ /**
95
+ * Check if a given object implements the PartnerInvoiceSchedulePeriod interface.
96
+ */
97
+ export declare function instanceOfPartnerInvoiceSchedulePeriod(value: object): value is PartnerInvoiceSchedulePeriod;
98
+ export declare function PartnerInvoiceSchedulePeriodFromJSON(json: any): PartnerInvoiceSchedulePeriod;
99
+ export declare function PartnerInvoiceSchedulePeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerInvoiceSchedulePeriod;
100
+ export declare function PartnerInvoiceSchedulePeriodToJSON(json: any): PartnerInvoiceSchedulePeriod;
101
+ export declare function PartnerInvoiceSchedulePeriodToJSONTyped(value?: PartnerInvoiceSchedulePeriod | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Widgetic API Gateway
6
+ * API documentation for the Widgetic API Gateway
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PartnerInvoiceSchedulePeriodStatusEnum = void 0;
17
+ exports.instanceOfPartnerInvoiceSchedulePeriod = instanceOfPartnerInvoiceSchedulePeriod;
18
+ exports.PartnerInvoiceSchedulePeriodFromJSON = PartnerInvoiceSchedulePeriodFromJSON;
19
+ exports.PartnerInvoiceSchedulePeriodFromJSONTyped = PartnerInvoiceSchedulePeriodFromJSONTyped;
20
+ exports.PartnerInvoiceSchedulePeriodToJSON = PartnerInvoiceSchedulePeriodToJSON;
21
+ exports.PartnerInvoiceSchedulePeriodToJSONTyped = PartnerInvoiceSchedulePeriodToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PartnerInvoiceSchedulePeriodStatusEnum = {
26
+ Claimed: 'claimed',
27
+ Issued: 'issued',
28
+ Abandoned: 'abandoned'
29
+ };
30
+ /**
31
+ * Check if a given object implements the PartnerInvoiceSchedulePeriod interface.
32
+ */
33
+ function instanceOfPartnerInvoiceSchedulePeriod(value) {
34
+ if (!('periodStart' in value) || value['periodStart'] === undefined)
35
+ return false;
36
+ if (!('periodEnd' in value) || value['periodEnd'] === undefined)
37
+ return false;
38
+ if (!('credits' in value) || value['credits'] === undefined)
39
+ return false;
40
+ if (!('creditPriceUsd' in value) || value['creditPriceUsd'] === undefined)
41
+ return false;
42
+ if (!('amountUsd' in value) || value['amountUsd'] === undefined)
43
+ return false;
44
+ if (!('status' in value) || value['status'] === undefined)
45
+ return false;
46
+ if (!('attempts' in value) || value['attempts'] === undefined)
47
+ return false;
48
+ if (!('stripeInvoiceId' in value) || value['stripeInvoiceId'] === undefined)
49
+ return false;
50
+ if (!('issuedAt' in value) || value['issuedAt'] === undefined)
51
+ return false;
52
+ if (!('abandonedAt' in value) || value['abandonedAt'] === undefined)
53
+ return false;
54
+ if (!('abandonedReason' in value) || value['abandonedReason'] === undefined)
55
+ return false;
56
+ return true;
57
+ }
58
+ function PartnerInvoiceSchedulePeriodFromJSON(json) {
59
+ return PartnerInvoiceSchedulePeriodFromJSONTyped(json, false);
60
+ }
61
+ function PartnerInvoiceSchedulePeriodFromJSONTyped(json, ignoreDiscriminator) {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+ 'periodStart': (new Date(json['periodStart'])),
67
+ 'periodEnd': (new Date(json['periodEnd'])),
68
+ 'credits': json['credits'],
69
+ 'creditPriceUsd': json['creditPriceUsd'],
70
+ 'amountUsd': json['amountUsd'],
71
+ 'status': json['status'],
72
+ 'attempts': json['attempts'],
73
+ 'stripeInvoiceId': json['stripeInvoiceId'],
74
+ 'issuedAt': (json['issuedAt'] == null ? null : new Date(json['issuedAt'])),
75
+ 'abandonedAt': (json['abandonedAt'] == null ? null : new Date(json['abandonedAt'])),
76
+ 'abandonedReason': json['abandonedReason'],
77
+ };
78
+ }
79
+ function PartnerInvoiceSchedulePeriodToJSON(json) {
80
+ return PartnerInvoiceSchedulePeriodToJSONTyped(json, false);
81
+ }
82
+ function PartnerInvoiceSchedulePeriodToJSONTyped(value, ignoreDiscriminator = false) {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+ return {
87
+ 'periodStart': ((value['periodStart']).toISOString().substring(0, 10)),
88
+ 'periodEnd': ((value['periodEnd']).toISOString().substring(0, 10)),
89
+ 'credits': value['credits'],
90
+ 'creditPriceUsd': value['creditPriceUsd'],
91
+ 'amountUsd': value['amountUsd'],
92
+ 'status': value['status'],
93
+ 'attempts': value['attempts'],
94
+ 'stripeInvoiceId': value['stripeInvoiceId'],
95
+ 'issuedAt': (value['issuedAt'] == null ? null : value['issuedAt'].toISOString()),
96
+ 'abandonedAt': (value['abandonedAt'] == null ? null : value['abandonedAt'].toISOString()),
97
+ 'abandonedReason': value['abandonedReason'],
98
+ };
99
+ }
@@ -47,7 +47,7 @@ export interface PartnerNotification {
47
47
  */
48
48
  tone: PartnerNotificationToneEnum;
49
49
  /**
50
- * The facts of the event, named in camelCase. An invoice event carries `invoiceNumber`, `subtotal`, `taxAmount`, `total`, `currency`, `dueDate` and `hostedInvoiceUrl` (the page where it is paid); a payment adds `paidAt`, a failed payment `reason`, a reminder `daysUntilDue` or `daysOverdue`. A credits event carries `band` (`low` or `empty`), `balance` and `threshold`. A standing event carries `status`, `previousStatus` and `reason`. A storage event carries `reason` and `checkedAt`. Content events (`composition.created`, `widget.published`, `upload.created`, `entry.created`) go to your webhook only when subscribed; they do not appear in the dashboard list.
50
+ * The facts of the event, named in camelCase. An invoice event carries `invoiceNumber`, `subtotal`, `taxAmount`, `total`, `currency`, `dueDate`, `hostedInvoiceUrl` (the page where it is paid) and `purpose` (`contract`, or `extra_credits` for credits you bought on top of the contract: an unpaid invoice for extra credits never stops the account, the credits are just not added until it is paid); a payment adds `paidAt`, a failed payment `reason`, a reminder `daysUntilDue` or `daysOverdue`. A credits event carries `band` (`low` or `empty`), `balance` and `threshold`. `credits.managed_user_cap_reached` (one of your managed users used its monthly credits and a request was refused) goes to your webhook only when subscribed, once per managed user each month, and carries `managedUserId`, `externalId`, `monthlyCredits`, `creditsUsed`, `resetsAt` and `reachedAt`. A standing event carries `status`, `previousStatus` and `reason`; `partner.paused` with `status: payment_arrears` means that an overdue invoice stopped the account (nobody paused it, and `reason` names the invoice), and `partner.resumed` with `previousStatus: payment_arrears` means that its payment ended that. A storage event carries `reason` and `checkedAt`. Content events (`composition.created`, `composition.updated`, `widget.published`, `upload.created`, `entry.created`) go to your webhook only when subscribed; they do not appear in the dashboard list. `composition.created` carries `compositionId`, `widgetId`, `name`, `managedUserId`, `externalId` and `createdAt`; `composition.updated` carries `compositionId`, `widgetId`, `name`, `managedUserId`, `externalId`, `contentVersion` and `savedAt`, and is sent for the first save of a composition in each five minutes (read the composition for its current state); `widget.published` carries `widgetId`, `name`, `managedUserId`, `externalId`, `version` and `publishedAt`; `upload.created` carries `uploadId`, `name`, `mimeType`, `sizeBytes`, `address`, `managedUserId`, `externalId`, `purpose` and `createdAt`; `entry.created` carries `compositionId`, `table`, `entryId`, `createdAt` and `context` (the host attribution of the embedding page, or null), and none of the values the visitor entered: read those with the entries routes. Ignore an event type you do not know: more may be added. `sendPartnerNotificationTestEvent` sends a sample of every one of them.
51
51
  * @type {{ [key: string]: any; }}
52
52
  * @memberof PartnerNotification
53
53
  */
@@ -20,11 +20,13 @@ export declare const PartnerNotificationEventType: {
20
20
  readonly InvoicePaid: "invoice.paid";
21
21
  readonly InvoiceFailed: "invoice.failed";
22
22
  readonly CreditsLow: "credits.low";
23
+ readonly CreditsManagedUserCapReached: "credits.managed_user_cap_reached";
23
24
  readonly PartnerActivated: "partner.activated";
24
25
  readonly PartnerPaused: "partner.paused";
25
26
  readonly PartnerResumed: "partner.resumed";
26
27
  readonly StorageCheckFailed: "storage.check_failed";
27
28
  readonly CompositionCreated: "composition.created";
29
+ readonly CompositionUpdated: "composition.updated";
28
30
  readonly WidgetPublished: "widget.published";
29
31
  readonly UploadCreated: "upload.created";
30
32
  readonly EntryCreated: "entry.created";
@@ -30,11 +30,13 @@ exports.PartnerNotificationEventType = {
30
30
  InvoicePaid: 'invoice.paid',
31
31
  InvoiceFailed: 'invoice.failed',
32
32
  CreditsLow: 'credits.low',
33
+ CreditsManagedUserCapReached: 'credits.managed_user_cap_reached',
33
34
  PartnerActivated: 'partner.activated',
34
35
  PartnerPaused: 'partner.paused',
35
36
  PartnerResumed: 'partner.resumed',
36
37
  StorageCheckFailed: 'storage.check_failed',
37
38
  CompositionCreated: 'composition.created',
39
+ CompositionUpdated: 'composition.updated',
38
40
  WidgetPublished: 'widget.published',
39
41
  UploadCreated: 'upload.created',
40
42
  EntryCreated: 'entry.created'
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PartnerNotificationEventType } from './PartnerNotificationEventType';
13
+ /**
14
+ * Which kind of event to send a sample of.
15
+ * @export
16
+ * @interface PartnerNotificationTestEventRequest
17
+ */
18
+ export interface PartnerNotificationTestEventRequest {
19
+ /**
20
+ *
21
+ * @type {PartnerNotificationEventType}
22
+ * @memberof PartnerNotificationTestEventRequest
23
+ */
24
+ eventType: PartnerNotificationEventType;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PartnerNotificationTestEventRequest interface.
28
+ */
29
+ export declare function instanceOfPartnerNotificationTestEventRequest(value: object): value is PartnerNotificationTestEventRequest;
30
+ export declare function PartnerNotificationTestEventRequestFromJSON(json: any): PartnerNotificationTestEventRequest;
31
+ export declare function PartnerNotificationTestEventRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerNotificationTestEventRequest;
32
+ export declare function PartnerNotificationTestEventRequestToJSON(json: any): PartnerNotificationTestEventRequest;
33
+ export declare function PartnerNotificationTestEventRequestToJSONTyped(value?: PartnerNotificationTestEventRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Widgetic API Gateway
6
+ * API documentation for the Widgetic API Gateway
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPartnerNotificationTestEventRequest = instanceOfPartnerNotificationTestEventRequest;
17
+ exports.PartnerNotificationTestEventRequestFromJSON = PartnerNotificationTestEventRequestFromJSON;
18
+ exports.PartnerNotificationTestEventRequestFromJSONTyped = PartnerNotificationTestEventRequestFromJSONTyped;
19
+ exports.PartnerNotificationTestEventRequestToJSON = PartnerNotificationTestEventRequestToJSON;
20
+ exports.PartnerNotificationTestEventRequestToJSONTyped = PartnerNotificationTestEventRequestToJSONTyped;
21
+ const PartnerNotificationEventType_1 = require("./PartnerNotificationEventType");
22
+ /**
23
+ * Check if a given object implements the PartnerNotificationTestEventRequest interface.
24
+ */
25
+ function instanceOfPartnerNotificationTestEventRequest(value) {
26
+ if (!('eventType' in value) || value['eventType'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function PartnerNotificationTestEventRequestFromJSON(json) {
31
+ return PartnerNotificationTestEventRequestFromJSONTyped(json, false);
32
+ }
33
+ function PartnerNotificationTestEventRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'eventType': (0, PartnerNotificationEventType_1.PartnerNotificationEventTypeFromJSON)(json['eventType']),
39
+ };
40
+ }
41
+ function PartnerNotificationTestEventRequestToJSON(json) {
42
+ return PartnerNotificationTestEventRequestToJSONTyped(json, false);
43
+ }
44
+ function PartnerNotificationTestEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'eventType': (0, PartnerNotificationEventType_1.PartnerNotificationEventTypeToJSON)(value['eventType']),
50
+ };
51
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * How a test call went. The call was made whether or not your receiver took it: read `delivered`.
14
+ * @export
15
+ * @interface PartnerNotificationTestEventResult
16
+ */
17
+ export interface PartnerNotificationTestEventResult {
18
+ /**
19
+ * True when your receiver answered with a 2xx status.
20
+ * @type {boolean}
21
+ * @memberof PartnerNotificationTestEventResult
22
+ */
23
+ delivered: boolean;
24
+ /**
25
+ * The HTTP status your receiver answered with. Null when it did not answer (refused, unreachable or too slow).
26
+ * @type {number}
27
+ * @memberof PartnerNotificationTestEventResult
28
+ */
29
+ statusCode: number | null;
30
+ /**
31
+ * How long the call took, in milliseconds. A call is given up after ten seconds.
32
+ * @type {number}
33
+ * @memberof PartnerNotificationTestEventResult
34
+ */
35
+ durationMs: number;
36
+ /**
37
+ * Why the call did not arrive, in a few words (`timeout`, `status 500`, `unreachable`, a redirect). Never what your receiver replied. Left out when it arrived.
38
+ * @type {string}
39
+ * @memberof PartnerNotificationTestEventResult
40
+ */
41
+ error?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PartnerNotificationTestEventResult interface.
45
+ */
46
+ export declare function instanceOfPartnerNotificationTestEventResult(value: object): value is PartnerNotificationTestEventResult;
47
+ export declare function PartnerNotificationTestEventResultFromJSON(json: any): PartnerNotificationTestEventResult;
48
+ export declare function PartnerNotificationTestEventResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerNotificationTestEventResult;
49
+ export declare function PartnerNotificationTestEventResultToJSON(json: any): PartnerNotificationTestEventResult;
50
+ export declare function PartnerNotificationTestEventResultToJSONTyped(value?: PartnerNotificationTestEventResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Widgetic API Gateway
6
+ * API documentation for the Widgetic API Gateway
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPartnerNotificationTestEventResult = instanceOfPartnerNotificationTestEventResult;
17
+ exports.PartnerNotificationTestEventResultFromJSON = PartnerNotificationTestEventResultFromJSON;
18
+ exports.PartnerNotificationTestEventResultFromJSONTyped = PartnerNotificationTestEventResultFromJSONTyped;
19
+ exports.PartnerNotificationTestEventResultToJSON = PartnerNotificationTestEventResultToJSON;
20
+ exports.PartnerNotificationTestEventResultToJSONTyped = PartnerNotificationTestEventResultToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PartnerNotificationTestEventResult interface.
23
+ */
24
+ function instanceOfPartnerNotificationTestEventResult(value) {
25
+ if (!('delivered' in value) || value['delivered'] === undefined)
26
+ return false;
27
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
28
+ return false;
29
+ if (!('durationMs' in value) || value['durationMs'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PartnerNotificationTestEventResultFromJSON(json) {
34
+ return PartnerNotificationTestEventResultFromJSONTyped(json, false);
35
+ }
36
+ function PartnerNotificationTestEventResultFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'delivered': json['delivered'],
42
+ 'statusCode': json['statusCode'],
43
+ 'durationMs': json['durationMs'],
44
+ 'error': json['error'] == null ? undefined : json['error'],
45
+ };
46
+ }
47
+ function PartnerNotificationTestEventResultToJSON(json) {
48
+ return PartnerNotificationTestEventResultToJSONTyped(json, false);
49
+ }
50
+ function PartnerNotificationTestEventResultToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'delivered': value['delivered'],
56
+ 'statusCode': value['statusCode'],
57
+ 'durationMs': value['durationMs'],
58
+ 'error': value['error'],
59
+ };
60
+ }
@@ -9,9 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { PartnerCreditAdjustment } from './PartnerCreditAdjustment';
13
12
  /**
14
- * The partner as it is after the edit, plus the outcome of the parts that are not columns of the partner
13
+ * The partner as it is after the edit
15
14
  * @export
16
15
  * @interface PartnerUpdateResult
17
16
  */
@@ -90,6 +89,13 @@ export interface PartnerUpdateResult {
90
89
  * @memberof PartnerUpdateResult
91
90
  */
92
91
  allowedDomains?: Array<string> | null;
92
+ /**
93
+ * The website where the partner integrates Widgetic, as the bare name (`acme.com`); null when none has been set. The partner's widgets can always be shown on it and on every subdomain of it, and send entries from there, whatever `allowedDomains` says. It is not part of `allowedDomains`. Set it with `platformDomain` on `POST /admin/partners` and `PUT /admin/partners/{partnerId}`; the partner reads it in `GET /partners/mine` and cannot change it.
94
+ *
95
+ * @type {string}
96
+ * @memberof PartnerUpdateResult
97
+ */
98
+ platformDomain?: string | null;
93
99
  /**
94
100
  *
95
101
  * @type {Array<string>}
@@ -124,20 +130,6 @@ export interface PartnerUpdateResult {
124
130
  * @memberof PartnerUpdateResult
125
131
  */
126
132
  updatedAt?: Date | null;
127
- /**
128
- * Present when the request asked for a balance and the wallet had to move to reach it
129
- * @type {PartnerCreditAdjustment}
130
- * @memberof PartnerUpdateResult
131
- */
132
- creditAdjustment?: PartnerCreditAdjustment;
133
- /**
134
- * The auto-reload settings as saved; present when the request set them
135
- * @type {{ [key: string]: any; }}
136
- * @memberof PartnerUpdateResult
137
- */
138
- autoReload?: {
139
- [key: string]: any;
140
- };
141
133
  }
142
134
  /**
143
135
  * @export
@@ -19,7 +19,6 @@ exports.PartnerUpdateResultFromJSON = PartnerUpdateResultFromJSON;
19
19
  exports.PartnerUpdateResultFromJSONTyped = PartnerUpdateResultFromJSONTyped;
20
20
  exports.PartnerUpdateResultToJSON = PartnerUpdateResultToJSON;
21
21
  exports.PartnerUpdateResultToJSONTyped = PartnerUpdateResultToJSONTyped;
22
- const PartnerCreditAdjustment_1 = require("./PartnerCreditAdjustment");
23
22
  /**
24
23
  * @export
25
24
  */
@@ -62,13 +61,12 @@ function PartnerUpdateResultFromJSONTyped(json, ignoreDiscriminator) {
62
61
  'monthlyMinimumSpend': json['monthlyMinimumSpend'] == null ? undefined : json['monthlyMinimumSpend'],
63
62
  'webhookUrl': json['webhookUrl'] == null ? undefined : json['webhookUrl'],
64
63
  'allowedDomains': json['allowedDomains'] == null ? undefined : json['allowedDomains'],
64
+ 'platformDomain': json['platformDomain'] == null ? undefined : json['platformDomain'],
65
65
  'featuresEnabled': json['featuresEnabled'] == null ? undefined : json['featuresEnabled'],
66
66
  'billingSettings': json['billingSettings'] == null ? undefined : json['billingSettings'],
67
67
  'whiteLabelConfig': json['whiteLabelConfig'] == null ? undefined : json['whiteLabelConfig'],
68
68
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
69
69
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
70
- 'creditAdjustment': json['creditAdjustment'] == null ? undefined : (0, PartnerCreditAdjustment_1.PartnerCreditAdjustmentFromJSON)(json['creditAdjustment']),
71
- 'autoReload': json['autoReload'] == null ? undefined : json['autoReload'],
72
70
  };
73
71
  }
74
72
  function PartnerUpdateResultToJSON(json) {
@@ -91,12 +89,11 @@ function PartnerUpdateResultToJSONTyped(value, ignoreDiscriminator = false) {
91
89
  'monthlyMinimumSpend': value['monthlyMinimumSpend'],
92
90
  'webhookUrl': value['webhookUrl'],
93
91
  'allowedDomains': value['allowedDomains'],
92
+ 'platformDomain': value['platformDomain'],
94
93
  'featuresEnabled': value['featuresEnabled'],
95
94
  'billingSettings': value['billingSettings'],
96
95
  'whiteLabelConfig': value['whiteLabelConfig'],
97
96
  'createdAt': value['createdAt'] == null ? undefined : (value['createdAt'].toISOString()),
98
97
  'updatedAt': value['updatedAt'] == null ? undefined : (value['updatedAt'].toISOString()),
99
- 'creditAdjustment': (0, PartnerCreditAdjustment_1.PartnerCreditAdjustmentToJSON)(value['creditAdjustment']),
100
- 'autoReload': value['autoReload'],
101
98
  };
102
99
  }
@@ -90,6 +90,13 @@ export interface PartnerWithWarnings {
90
90
  * @memberof PartnerWithWarnings
91
91
  */
92
92
  allowedDomains?: Array<string> | null;
93
+ /**
94
+ * The website where the partner integrates Widgetic, as the bare name (`acme.com`); null when none has been set. The partner's widgets can always be shown on it and on every subdomain of it, and send entries from there, whatever `allowedDomains` says. It is not part of `allowedDomains`. Set it with `platformDomain` on `POST /admin/partners` and `PUT /admin/partners/{partnerId}`; the partner reads it in `GET /partners/mine` and cannot change it.
95
+ *
96
+ * @type {string}
97
+ * @memberof PartnerWithWarnings
98
+ */
99
+ platformDomain?: string | null;
93
100
  /**
94
101
  *
95
102
  * @type {Array<string>}
@@ -61,6 +61,7 @@ function PartnerWithWarningsFromJSONTyped(json, ignoreDiscriminator) {
61
61
  'monthlyMinimumSpend': json['monthlyMinimumSpend'] == null ? undefined : json['monthlyMinimumSpend'],
62
62
  'webhookUrl': json['webhookUrl'] == null ? undefined : json['webhookUrl'],
63
63
  'allowedDomains': json['allowedDomains'] == null ? undefined : json['allowedDomains'],
64
+ 'platformDomain': json['platformDomain'] == null ? undefined : json['platformDomain'],
64
65
  'featuresEnabled': json['featuresEnabled'] == null ? undefined : json['featuresEnabled'],
65
66
  'billingSettings': json['billingSettings'] == null ? undefined : json['billingSettings'],
66
67
  'whiteLabelConfig': json['whiteLabelConfig'] == null ? undefined : json['whiteLabelConfig'],
@@ -89,6 +90,7 @@ function PartnerWithWarningsToJSONTyped(value, ignoreDiscriminator = false) {
89
90
  'monthlyMinimumSpend': value['monthlyMinimumSpend'],
90
91
  'webhookUrl': value['webhookUrl'],
91
92
  'allowedDomains': value['allowedDomains'],
93
+ 'platformDomain': value['platformDomain'],
92
94
  'featuresEnabled': value['featuresEnabled'],
93
95
  'billingSettings': value['billingSettings'],
94
96
  'whiteLabelConfig': value['whiteLabelConfig'],
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PersonalExtraStorageBlock } from './PersonalExtraStorageBlock';
13
+ /**
14
+ * What the person can do with extra storage right now, so a client shows a button only when
15
+ * the request would be accepted. It is advisory: the request re-reads the subscription and
16
+ * its answer is the one that counts.
17
+ *
18
+ * @export
19
+ * @interface PersonalExtraStorage
20
+ */
21
+ export interface PersonalExtraStorage {
22
+ /**
23
+ * The interval extra storage is billed on, which is the subscription's own; null without a Stripe subscription
24
+ * @type {string}
25
+ * @memberof PersonalExtraStorage
26
+ */
27
+ billingInterval: PersonalExtraStorageBillingIntervalEnum | null;
28
+ /**
29
+ * What one GB costs per billing period; null without a Stripe subscription
30
+ * @type {number}
31
+ * @memberof PersonalExtraStorage
32
+ */
33
+ pricePerGbUsd: number | null;
34
+ /**
35
+ * What the extra storage costs per billing period now
36
+ * @type {number}
37
+ * @memberof PersonalExtraStorage
38
+ */
39
+ chargePerPeriodUsd: number;
40
+ /**
41
+ * The size of one pack; storage is added and removed in whole packs
42
+ * @type {number}
43
+ * @memberof PersonalExtraStorage
44
+ */
45
+ packSizeGb: number;
46
+ /**
47
+ * The most one request may add, in GB
48
+ * @type {number}
49
+ * @memberof PersonalExtraStorage
50
+ */
51
+ maxRequestGb: number;
52
+ /**
53
+ * The most extra storage one account can hold, in GB
54
+ * @type {number}
55
+ * @memberof PersonalExtraStorage
56
+ */
57
+ maxTotalGb: number;
58
+ /**
59
+ * Whether storage can be added right now
60
+ * @type {boolean}
61
+ * @memberof PersonalExtraStorage
62
+ */
63
+ canAdd: boolean;
64
+ /**
65
+ * Whether there is extra storage to give back and the subscription lets it go
66
+ * @type {boolean}
67
+ * @memberof PersonalExtraStorage
68
+ */
69
+ canRemove: boolean;
70
+ /**
71
+ * Why `canAdd` is false; null when it is true
72
+ * @type {PersonalExtraStorageBlock}
73
+ * @memberof PersonalExtraStorage
74
+ */
75
+ addBlockedReason: PersonalExtraStorageBlock | null;
76
+ }
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const PersonalExtraStorageBillingIntervalEnum: {
81
+ readonly Month: "month";
82
+ readonly Year: "year";
83
+ };
84
+ export type PersonalExtraStorageBillingIntervalEnum = typeof PersonalExtraStorageBillingIntervalEnum[keyof typeof PersonalExtraStorageBillingIntervalEnum];
85
+ /**
86
+ * Check if a given object implements the PersonalExtraStorage interface.
87
+ */
88
+ export declare function instanceOfPersonalExtraStorage(value: object): value is PersonalExtraStorage;
89
+ export declare function PersonalExtraStorageFromJSON(json: any): PersonalExtraStorage;
90
+ export declare function PersonalExtraStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonalExtraStorage;
91
+ export declare function PersonalExtraStorageToJSON(json: any): PersonalExtraStorage;
92
+ export declare function PersonalExtraStorageToJSONTyped(value?: PersonalExtraStorage | null, ignoreDiscriminator?: boolean): any;