@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,47 @@
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
+ *
14
+ * @export
15
+ * @interface GetPublicCompositionEmbed404Response
16
+ */
17
+ export interface GetPublicCompositionEmbed404Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetPublicCompositionEmbed404Response
22
+ */
23
+ error?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetPublicCompositionEmbed404Response
28
+ */
29
+ code?: GetPublicCompositionEmbed404ResponseCodeEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const GetPublicCompositionEmbed404ResponseCodeEnum: {
35
+ readonly Unpublished: "UNPUBLISHED";
36
+ readonly Suspended: "SUSPENDED";
37
+ readonly NotFound: "NOT_FOUND";
38
+ };
39
+ export type GetPublicCompositionEmbed404ResponseCodeEnum = typeof GetPublicCompositionEmbed404ResponseCodeEnum[keyof typeof GetPublicCompositionEmbed404ResponseCodeEnum];
40
+ /**
41
+ * Check if a given object implements the GetPublicCompositionEmbed404Response interface.
42
+ */
43
+ export declare function instanceOfGetPublicCompositionEmbed404Response(value: object): value is GetPublicCompositionEmbed404Response;
44
+ export declare function GetPublicCompositionEmbed404ResponseFromJSON(json: any): GetPublicCompositionEmbed404Response;
45
+ export declare function GetPublicCompositionEmbed404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicCompositionEmbed404Response;
46
+ export declare function GetPublicCompositionEmbed404ResponseToJSON(json: any): GetPublicCompositionEmbed404Response;
47
+ export declare function GetPublicCompositionEmbed404ResponseToJSONTyped(value?: GetPublicCompositionEmbed404Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.GetPublicCompositionEmbed404ResponseCodeEnum = void 0;
17
+ exports.instanceOfGetPublicCompositionEmbed404Response = instanceOfGetPublicCompositionEmbed404Response;
18
+ exports.GetPublicCompositionEmbed404ResponseFromJSON = GetPublicCompositionEmbed404ResponseFromJSON;
19
+ exports.GetPublicCompositionEmbed404ResponseFromJSONTyped = GetPublicCompositionEmbed404ResponseFromJSONTyped;
20
+ exports.GetPublicCompositionEmbed404ResponseToJSON = GetPublicCompositionEmbed404ResponseToJSON;
21
+ exports.GetPublicCompositionEmbed404ResponseToJSONTyped = GetPublicCompositionEmbed404ResponseToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetPublicCompositionEmbed404ResponseCodeEnum = {
26
+ Unpublished: 'UNPUBLISHED',
27
+ Suspended: 'SUSPENDED',
28
+ NotFound: 'NOT_FOUND'
29
+ };
30
+ /**
31
+ * Check if a given object implements the GetPublicCompositionEmbed404Response interface.
32
+ */
33
+ function instanceOfGetPublicCompositionEmbed404Response(value) {
34
+ return true;
35
+ }
36
+ function GetPublicCompositionEmbed404ResponseFromJSON(json) {
37
+ return GetPublicCompositionEmbed404ResponseFromJSONTyped(json, false);
38
+ }
39
+ function GetPublicCompositionEmbed404ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'error': json['error'] == null ? undefined : json['error'],
45
+ 'code': json['code'] == null ? undefined : json['code'],
46
+ };
47
+ }
48
+ function GetPublicCompositionEmbed404ResponseToJSON(json) {
49
+ return GetPublicCompositionEmbed404ResponseToJSONTyped(json, false);
50
+ }
51
+ function GetPublicCompositionEmbed404ResponseToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'error': value['error'],
57
+ 'code': value['code'],
58
+ };
59
+ }
@@ -0,0 +1,38 @@
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
+ *
14
+ * @export
15
+ * @interface GetPublicCompositionEmbed429Response
16
+ */
17
+ export interface GetPublicCompositionEmbed429Response {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof GetPublicCompositionEmbed429Response
22
+ */
23
+ error?: object;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetPublicCompositionEmbed429Response
28
+ */
29
+ code?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetPublicCompositionEmbed429Response interface.
33
+ */
34
+ export declare function instanceOfGetPublicCompositionEmbed429Response(value: object): value is GetPublicCompositionEmbed429Response;
35
+ export declare function GetPublicCompositionEmbed429ResponseFromJSON(json: any): GetPublicCompositionEmbed429Response;
36
+ export declare function GetPublicCompositionEmbed429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPublicCompositionEmbed429Response;
37
+ export declare function GetPublicCompositionEmbed429ResponseToJSON(json: any): GetPublicCompositionEmbed429Response;
38
+ export declare function GetPublicCompositionEmbed429ResponseToJSONTyped(value?: GetPublicCompositionEmbed429Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfGetPublicCompositionEmbed429Response = instanceOfGetPublicCompositionEmbed429Response;
17
+ exports.GetPublicCompositionEmbed429ResponseFromJSON = GetPublicCompositionEmbed429ResponseFromJSON;
18
+ exports.GetPublicCompositionEmbed429ResponseFromJSONTyped = GetPublicCompositionEmbed429ResponseFromJSONTyped;
19
+ exports.GetPublicCompositionEmbed429ResponseToJSON = GetPublicCompositionEmbed429ResponseToJSON;
20
+ exports.GetPublicCompositionEmbed429ResponseToJSONTyped = GetPublicCompositionEmbed429ResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetPublicCompositionEmbed429Response interface.
23
+ */
24
+ function instanceOfGetPublicCompositionEmbed429Response(value) {
25
+ return true;
26
+ }
27
+ function GetPublicCompositionEmbed429ResponseFromJSON(json) {
28
+ return GetPublicCompositionEmbed429ResponseFromJSONTyped(json, false);
29
+ }
30
+ function GetPublicCompositionEmbed429ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'error': json['error'] == null ? undefined : json['error'],
36
+ 'code': json['code'] == null ? undefined : json['code'],
37
+ };
38
+ }
39
+ function GetPublicCompositionEmbed429ResponseToJSON(json) {
40
+ return GetPublicCompositionEmbed429ResponseToJSONTyped(json, false);
41
+ }
42
+ function GetPublicCompositionEmbed429ResponseToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'error': value['error'],
48
+ 'code': value['code'],
49
+ };
50
+ }
@@ -28,11 +28,24 @@ export interface IssuePartnerInvoiceRequest {
28
28
  */
29
29
  description?: string;
30
30
  /**
31
- * How many days the partner has to pay. Defaults to the payment terms on the partner's billing profile (30 days until they are set).
31
+ * How many days the partner has to pay. Defaults to the payment terms on the partner's billing profile (7 days until they are set).
32
32
  * @type {number}
33
33
  * @memberof IssuePartnerInvoiceRequest
34
34
  */
35
35
  daysUntilDue?: number;
36
+ /**
37
+ * Widgetic credits this invoice is for. They are added to the account of the partner's administrator
38
+ * when the invoice is paid, once however often Stripe reports the payment, and never before. The price
39
+ * defaults to what the credits cost at the list price of a credit ($0.10 each); `amountUsd` overrides it.
40
+ * Left out, the invoice carries no credits (an ordinary contract invoice). The partner must have an
41
+ * administrator, else the request is refused with 422 `NO_PARTNER_ADMINISTRATOR`. The ceiling is what
42
+ * the credit ledger can hold in one balance; it is not a business limit, and Stripe's own limits on the
43
+ * amount of a payment still apply to the invoice.
44
+ *
45
+ * @type {number}
46
+ * @memberof IssuePartnerInvoiceRequest
47
+ */
48
+ credits?: number;
36
49
  }
37
50
  /**
38
51
  * Check if a given object implements the IssuePartnerInvoiceRequest interface.
@@ -35,6 +35,7 @@ function IssuePartnerInvoiceRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'amountUsd': json['amountUsd'] == null ? undefined : json['amountUsd'],
36
36
  'description': json['description'] == null ? undefined : json['description'],
37
37
  'daysUntilDue': json['daysUntilDue'] == null ? undefined : json['daysUntilDue'],
38
+ 'credits': json['credits'] == null ? undefined : json['credits'],
38
39
  };
39
40
  }
40
41
  function IssuePartnerInvoiceRequestToJSON(json) {
@@ -48,5 +49,6 @@ function IssuePartnerInvoiceRequestToJSONTyped(value, ignoreDiscriminator = fals
48
49
  'amountUsd': value['amountUsd'],
49
50
  'description': value['description'],
50
51
  'daysUntilDue': value['daysUntilDue'],
52
+ 'credits': value['credits'],
51
53
  };
52
54
  }
@@ -93,6 +93,12 @@ export interface IssuedPartnerInvoice {
93
93
  * @memberof IssuedPartnerInvoice
94
94
  */
95
95
  dueDays: number;
96
+ /**
97
+ * The credits that are added to the partner administrator's account when the invoice is paid, or null for an ordinary contract invoice.
98
+ * @type {number}
99
+ * @memberof IssuedPartnerInvoice
100
+ */
101
+ credits: number | null;
96
102
  }
97
103
  /**
98
104
  * Check if a given object implements the IssuedPartnerInvoice interface.
@@ -48,6 +48,8 @@ function instanceOfIssuedPartnerInvoice(value) {
48
48
  return false;
49
49
  if (!('dueDays' in value) || value['dueDays'] === undefined)
50
50
  return false;
51
+ if (!('credits' in value) || value['credits'] === undefined)
52
+ return false;
51
53
  return true;
52
54
  }
53
55
  function IssuedPartnerInvoiceFromJSON(json) {
@@ -71,6 +73,7 @@ function IssuedPartnerInvoiceFromJSONTyped(json, ignoreDiscriminator) {
71
73
  'taxNote': json['taxNote'],
72
74
  'description': json['description'],
73
75
  'dueDays': json['dueDays'],
76
+ 'credits': json['credits'],
74
77
  };
75
78
  }
76
79
  function IssuedPartnerInvoiceToJSON(json) {
@@ -94,5 +97,6 @@ function IssuedPartnerInvoiceToJSONTyped(value, ignoreDiscriminator = false) {
94
97
  'taxNote': value['taxNote'],
95
98
  'description': value['description'],
96
99
  'dueDays': value['dueDays'],
100
+ 'credits': value['credits'],
97
101
  };
98
102
  }
@@ -30,7 +30,7 @@ export interface ManagedUserEntryItem {
30
30
  [key: string]: any;
31
31
  };
32
32
  /**
33
- *
33
+ * The host context the entry was stored with: what the embedding page passed in, without the two keys of a signature (`widgetic_exp` and `widgetic_sig`), which are checked when the entry comes in and are never stored.
34
34
  * @type {{ [key: string]: any; }}
35
35
  * @memberof ManagedUserEntryItem
36
36
  */
@@ -44,6 +44,9 @@ export interface ManagedUserEntryItem {
44
44
  */
45
45
  createdAt: Date | null;
46
46
  /**
47
+ * The columns whose value was cut: a value longer than 20,000 characters is cut there (a JSON value is
48
+ * cut as text, so it comes back as a string and no longer as an object), and its column is named here.
49
+ * Absent when nothing was cut.
47
50
  *
48
51
  * @type {Array<string>}
49
52
  * @memberof ManagedUserEntryItem
@@ -48,6 +48,13 @@ export interface MyPartner {
48
48
  * @memberof MyPartner
49
49
  */
50
50
  allowedDomains: Array<string>;
51
+ /**
52
+ * The website where the partner integrates Widgetic, as a bare name. It and every subdomain of it (`app.acme.com`, `learn.eu.acme.com`) can always show the partner's widgets, the ones its customers make through it included, and send entries to them, whatever `allowedDomains` and the account's own domain list say, so a list can never lock the partner's own website out. It is not an entry of `allowedDomains`, and it does not turn an empty list into a restriction: a partner that lists nothing stays unrestricted for every website. Widgetic sets it when the partner is set up; contact Widgetic to change it. `null` when none has been set.
53
+ *
54
+ * @type {string}
55
+ * @memberof MyPartner
56
+ */
57
+ platformDomain: string | null;
51
58
  /**
52
59
  * When the partner was paused; null unless it is paused now
53
60
  * @type {Date}
@@ -39,6 +39,8 @@ function instanceOfMyPartner(value) {
39
39
  return false;
40
40
  if (!('allowedDomains' in value) || value['allowedDomains'] === undefined)
41
41
  return false;
42
+ if (!('platformDomain' in value) || value['platformDomain'] === undefined)
43
+ return false;
42
44
  if (!('suspendedAt' in value) || value['suspendedAt'] === undefined)
43
45
  return false;
44
46
  if (!('suspensionReason' in value) || value['suspensionReason'] === undefined)
@@ -58,6 +60,7 @@ function MyPartnerFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'status': json['status'],
59
61
  'contactEmail': json['contactEmail'] == null ? undefined : json['contactEmail'],
60
62
  'allowedDomains': json['allowedDomains'],
63
+ 'platformDomain': json['platformDomain'],
61
64
  'suspendedAt': (json['suspendedAt'] == null ? null : new Date(json['suspendedAt'])),
62
65
  'suspensionReason': json['suspensionReason'],
63
66
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -76,6 +79,7 @@ function MyPartnerToJSONTyped(value, ignoreDiscriminator = false) {
76
79
  'status': value['status'],
77
80
  'contactEmail': value['contactEmail'],
78
81
  'allowedDomains': value['allowedDomains'],
82
+ 'platformDomain': value['platformDomain'],
79
83
  'suspendedAt': (value['suspendedAt'] == null ? null : value['suspendedAt'].toISOString()),
80
84
  'suspensionReason': value['suspensionReason'],
81
85
  'createdAt': value['createdAt'] == null ? undefined : (value['createdAt'].toISOString()),
@@ -17,12 +17,19 @@ import type { MyPartner } from './MyPartner';
17
17
  */
18
18
  export interface MyPartners {
19
19
  /**
20
- * The standing of the account as a whole, the word every gate reads: `not_a_partner` when the account administers no partner; otherwise `active` when any of its partners is active, else `suspended` when any is paused, else `inactive`.
20
+ * The standing of the account as a whole, the word every gate reads: `not_a_partner` when the account administers no partner; otherwise `active` when any of its partners is in force, else `payment_arrears` when the partners that are active each have a contract invoice that is past its due date and unpaid, else `suspended` when any is paused, else `inactive`. `payment_arrears` is not set by anybody: it stops the same things a pause stops (billing, invoices, credits and the other routes a partner needs to pay stay open) and ends by itself the moment the invoice is paid.
21
21
  *
22
22
  * @type {string}
23
23
  * @memberof MyPartners
24
24
  */
25
25
  standing: MyPartnersStandingEnum;
26
+ /**
27
+ * When the oldest overdue contract invoice was due; null unless `standing` is `payment_arrears`. Pay the invoices in the list of `GET /invoices/partner/{partnerId}` that are past their due date to end it.
28
+ *
29
+ * @type {Date}
30
+ * @memberof MyPartners
31
+ */
32
+ overdueSince: Date | null;
26
33
  /**
27
34
  * The partners the account administers (nearly always one), the oldest first
28
35
  * @type {Array<MyPartner>}
@@ -38,6 +45,7 @@ export declare const MyPartnersStandingEnum: {
38
45
  readonly Inactive: "inactive";
39
46
  readonly Active: "active";
40
47
  readonly Suspended: "suspended";
48
+ readonly PaymentArrears: "payment_arrears";
41
49
  };
42
50
  export type MyPartnersStandingEnum = typeof MyPartnersStandingEnum[keyof typeof MyPartnersStandingEnum];
43
51
  /**
@@ -27,7 +27,8 @@ exports.MyPartnersStandingEnum = {
27
27
  NotAPartner: 'not_a_partner',
28
28
  Inactive: 'inactive',
29
29
  Active: 'active',
30
- Suspended: 'suspended'
30
+ Suspended: 'suspended',
31
+ PaymentArrears: 'payment_arrears'
31
32
  };
32
33
  /**
33
34
  * Check if a given object implements the MyPartners interface.
@@ -35,6 +36,8 @@ exports.MyPartnersStandingEnum = {
35
36
  function instanceOfMyPartners(value) {
36
37
  if (!('standing' in value) || value['standing'] === undefined)
37
38
  return false;
39
+ if (!('overdueSince' in value) || value['overdueSince'] === undefined)
40
+ return false;
38
41
  if (!('partners' in value) || value['partners'] === undefined)
39
42
  return false;
40
43
  return true;
@@ -48,6 +51,7 @@ function MyPartnersFromJSONTyped(json, ignoreDiscriminator) {
48
51
  }
49
52
  return {
50
53
  'standing': json['standing'],
54
+ 'overdueSince': (json['overdueSince'] == null ? null : new Date(json['overdueSince'])),
51
55
  'partners': (json['partners'].map(MyPartner_1.MyPartnerFromJSON)),
52
56
  };
53
57
  }
@@ -60,6 +64,7 @@ function MyPartnersToJSONTyped(value, ignoreDiscriminator = false) {
60
64
  }
61
65
  return {
62
66
  'standing': value['standing'],
67
+ 'overdueSince': (value['overdueSince'] == null ? null : value['overdueSince'].toISOString()),
63
68
  'partners': (value['partners'].map(MyPartner_1.MyPartnerToJSON)),
64
69
  };
65
70
  }
@@ -35,33 +35,45 @@ export interface OrganizationsOrgIdBillingGet200ResponseData {
35
35
  */
36
36
  memberCount?: number;
37
37
  /**
38
+ * The interval the subscription bills on. Every amount below is for one billing
39
+ * period of that interval and is priced at that interval's own prices: a yearly
40
+ * organization is quoted at the yearly prices, never at the monthly list price.
41
+ * The `monthly` in three of the names is the original wording; the unit is this interval.
38
42
  *
43
+ * @type {string}
44
+ * @memberof OrganizationsOrgIdBillingGet200ResponseData
45
+ */
46
+ billingInterval?: OrganizationsOrgIdBillingGet200ResponseDataBillingIntervalEnum;
47
+ /**
48
+ * What one seat costs for one billing period
39
49
  * @type {number}
40
50
  * @memberof OrganizationsOrgIdBillingGet200ResponseData
41
51
  */
42
52
  pricePerMember?: number;
43
53
  /**
44
- *
54
+ * The seats for one billing period (`memberCount` at `pricePerMember`)
45
55
  * @type {number}
46
56
  * @memberof OrganizationsOrgIdBillingGet200ResponseData
47
57
  */
48
58
  monthlySubtotal?: number;
49
59
  /**
50
- * The extra storage the organization has, in GB. It is a recurring item on
51
- * the subscription: it renews with the seats until it is removed.
60
+ * The extra storage the organization is billed for, in GB. It is a recurring item on
61
+ * the subscription: it renews with the seats until it is removed. A permanent pack
62
+ * bought once under the earlier purchase flow gives room too, but is not billed on
63
+ * the subscription and is not counted here.
52
64
  *
53
65
  * @type {number}
54
66
  * @memberof OrganizationsOrgIdBillingGet200ResponseData
55
67
  */
56
68
  storagePacksGb?: number;
57
69
  /**
58
- * What the extra storage costs per month (`storagePacksGb` at the per-GB rate)
70
+ * What the extra storage costs for one billing period (`storagePacksGb` at the per-GB price of the interval)
59
71
  * @type {number}
60
72
  * @memberof OrganizationsOrgIdBillingGet200ResponseData
61
73
  */
62
74
  monthlyStorageSubtotal?: number;
63
75
  /**
64
- * The recurring amount per month - the seats plus the extra storage.
76
+ * The recurring amount for one billing period - the seats plus the extra storage.
65
77
  * @type {number}
66
78
  * @memberof OrganizationsOrgIdBillingGet200ResponseData
67
79
  */
@@ -79,6 +91,14 @@ export interface OrganizationsOrgIdBillingGet200ResponseData {
79
91
  */
80
92
  billingHistory?: Array<OrganizationsOrgIdBillingGet200ResponseDataBillingHistoryInner>;
81
93
  }
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const OrganizationsOrgIdBillingGet200ResponseDataBillingIntervalEnum: {
98
+ readonly Month: "month";
99
+ readonly Year: "year";
100
+ };
101
+ export type OrganizationsOrgIdBillingGet200ResponseDataBillingIntervalEnum = typeof OrganizationsOrgIdBillingGet200ResponseDataBillingIntervalEnum[keyof typeof OrganizationsOrgIdBillingGet200ResponseDataBillingIntervalEnum];
82
102
  /**
83
103
  * Check if a given object implements the OrganizationsOrgIdBillingGet200ResponseData interface.
84
104
  */
@@ -13,12 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrganizationsOrgIdBillingGet200ResponseDataBillingIntervalEnum = void 0;
16
17
  exports.instanceOfOrganizationsOrgIdBillingGet200ResponseData = instanceOfOrganizationsOrgIdBillingGet200ResponseData;
17
18
  exports.OrganizationsOrgIdBillingGet200ResponseDataFromJSON = OrganizationsOrgIdBillingGet200ResponseDataFromJSON;
18
19
  exports.OrganizationsOrgIdBillingGet200ResponseDataFromJSONTyped = OrganizationsOrgIdBillingGet200ResponseDataFromJSONTyped;
19
20
  exports.OrganizationsOrgIdBillingGet200ResponseDataToJSON = OrganizationsOrgIdBillingGet200ResponseDataToJSON;
20
21
  exports.OrganizationsOrgIdBillingGet200ResponseDataToJSONTyped = OrganizationsOrgIdBillingGet200ResponseDataToJSONTyped;
21
22
  const OrganizationsOrgIdBillingGet200ResponseDataBillingHistoryInner_1 = require("./OrganizationsOrgIdBillingGet200ResponseDataBillingHistoryInner");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.OrganizationsOrgIdBillingGet200ResponseDataBillingIntervalEnum = {
27
+ Month: 'month',
28
+ Year: 'year'
29
+ };
22
30
  /**
23
31
  * Check if a given object implements the OrganizationsOrgIdBillingGet200ResponseData interface.
24
32
  */
@@ -36,6 +44,7 @@ function OrganizationsOrgIdBillingGet200ResponseDataFromJSONTyped(json, ignoreDi
36
44
  'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
37
45
  'subscription': json['subscription'] == null ? undefined : json['subscription'],
38
46
  'memberCount': json['memberCount'] == null ? undefined : json['memberCount'],
47
+ 'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
39
48
  'pricePerMember': json['pricePerMember'] == null ? undefined : json['pricePerMember'],
40
49
  'monthlySubtotal': json['monthlySubtotal'] == null ? undefined : json['monthlySubtotal'],
41
50
  'storagePacksGb': json['storagePacksGb'] == null ? undefined : json['storagePacksGb'],
@@ -56,6 +65,7 @@ function OrganizationsOrgIdBillingGet200ResponseDataToJSONTyped(value, ignoreDis
56
65
  'organizationId': value['organizationId'],
57
66
  'subscription': value['subscription'],
58
67
  'memberCount': value['memberCount'],
68
+ 'billingInterval': value['billingInterval'],
59
69
  'pricePerMember': value['pricePerMember'],
60
70
  'monthlySubtotal': value['monthlySubtotal'],
61
71
  'storagePacksGb': value['storagePacksGb'],
@@ -90,6 +90,13 @@ export interface Partner {
90
90
  * @memberof Partner
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 Partner
98
+ */
99
+ platformDomain?: string | null;
93
100
  /**
94
101
  *
95
102
  * @type {Array<string>}
@@ -61,6 +61,7 @@ function PartnerFromJSONTyped(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'],
@@ -88,6 +89,7 @@ function PartnerToJSONTyped(value, ignoreDiscriminator = false) {
88
89
  'monthlyMinimumSpend': value['monthlyMinimumSpend'],
89
90
  'webhookUrl': value['webhookUrl'],
90
91
  'allowedDomains': value['allowedDomains'],
92
+ 'platformDomain': value['platformDomain'],
91
93
  'featuresEnabled': value['featuresEnabled'],
92
94
  'billingSettings': value['billingSettings'],
93
95
  'whiteLabelConfig': value['whiteLabelConfig'],
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { PartnerActivationRequirementsInner } from './PartnerActivationRequirementsInner';
13
13
  /**
14
- * What a partner needs before it can be activated, and whether each part is in place. Nothing a partner pays (an invoice) is a requirement: an overdue invoice never switches a partner off by itself.
14
+ * What a partner needs before it can be activated, and whether each part is in place. Nothing a partner pays (an invoice) is a requirement: the first invoice goes out on the contract's start date and is paid after the partner is active. Once it is active, a contract invoice that stays unpaid past its due day stops it by itself (`payment_arrears`) until the invoice is paid; that is not part of the activation.
15
15
  *
16
16
  * @export
17
17
  * @interface PartnerActivation
@@ -27,20 +27,6 @@ export interface PartnerBillingOverviewOperationalCredits {
27
27
  * @memberof PartnerBillingOverviewOperationalCredits
28
28
  */
29
29
  availableBalance?: number;
30
- /**
31
- * The auto-reload settings; null until someone configures them
32
- * @type {{ [key: string]: any; }}
33
- * @memberof PartnerBillingOverviewOperationalCredits
34
- */
35
- autoReload?: {
36
- [key: string]: any;
37
- } | null;
38
- /**
39
- *
40
- * @type {boolean}
41
- * @memberof PartnerBillingOverviewOperationalCredits
42
- */
43
- autoReloadEnabled?: boolean;
44
30
  /**
45
31
  * The ten newest ledger rows
46
32
  * @type {Array<{ [key: string]: any; }>}
@@ -34,8 +34,6 @@ function PartnerBillingOverviewOperationalCreditsFromJSONTyped(json, ignoreDiscr
34
34
  return {
35
35
  'balance': json['balance'] == null ? undefined : json['balance'],
36
36
  'availableBalance': json['availableBalance'] == null ? undefined : json['availableBalance'],
37
- 'autoReload': json['autoReload'] == null ? undefined : json['autoReload'],
38
- 'autoReloadEnabled': json['autoReloadEnabled'] == null ? undefined : json['autoReloadEnabled'],
39
37
  'recentTransactions': json['recentTransactions'] == null ? undefined : json['recentTransactions'],
40
38
  };
41
39
  }
@@ -49,8 +47,6 @@ function PartnerBillingOverviewOperationalCreditsToJSONTyped(value, ignoreDiscri
49
47
  return {
50
48
  'balance': value['balance'],
51
49
  'availableBalance': value['availableBalance'],
52
- 'autoReload': value['autoReload'],
53
- 'autoReloadEnabled': value['autoReloadEnabled'],
54
50
  'recentTransactions': value['recentTransactions'],
55
51
  };
56
52
  }
@@ -48,7 +48,7 @@ export interface PartnerBillingProfile {
48
48
  */
49
49
  taxId: PartnerBillingProfileTaxId | null;
50
50
  /**
51
- * Days from issuing to the due date. 30 by default.
51
+ * Days from issuing to the due date. 7 by default.
52
52
  * @type {number}
53
53
  * @memberof PartnerBillingProfile
54
54
  */
@@ -35,17 +35,29 @@ export interface PartnerContract {
35
35
  */
36
36
  customPrice?: number | null;
37
37
  /**
38
- * Credits included per cycle; null when the standard allowance applies
38
+ * Credits received each billing period (`billingCycle`); null when the standard allowance applies
39
39
  * @type {number}
40
40
  * @memberof PartnerContract
41
41
  */
42
42
  customCredits?: number | null;
43
43
  /**
44
- * Storage included, in gigabytes; null when the standard allowance applies
44
+ * The agreed price of one credit, in dollars; null when the list price applies
45
45
  * @type {number}
46
46
  * @memberof PartnerContract
47
47
  */
48
- customStorageGb?: number | null;
48
+ creditPriceUsd?: number | null;
49
+ /**
50
+ * What one credit costs you, in dollars. The agreed price, or the list price when none was agreed
51
+ * @type {number}
52
+ * @memberof PartnerContract
53
+ */
54
+ effectiveCreditPriceUsd?: number;
55
+ /**
56
+ * What one billing period costs, in dollars before tax, `customCredits` times `effectiveCreditPriceUsd`. Null while no credits were agreed
57
+ * @type {number}
58
+ * @memberof PartnerContract
59
+ */
60
+ periodTotalUsd?: number | null;
49
61
  /**
50
62
  * Features included beyond the standard partner plan
51
63
  * @type {Array<string>}