@frontegg/rest-api 2.10.89 → 3.0.2

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 (456) hide show
  1. package/{dist/ContextHolder.d.ts → ContextHolder.d.ts} +0 -0
  2. package/ContextHolder.js +78 -0
  3. package/{dist/account-settings → account-settings}/index.d.ts +0 -0
  4. package/account-settings/index.js +8 -0
  5. package/{dist/account-settings → account-settings}/interfaces.d.ts +0 -0
  6. package/account-settings/interfaces.js +1 -0
  7. package/account-settings/package.json +6 -0
  8. package/{dist/audits → audits}/index.d.ts +0 -0
  9. package/audits/index.js +21 -0
  10. package/{dist/audits → audits}/interfaces.d.ts +0 -0
  11. package/audits/interfaces.js +1 -0
  12. package/audits/package.json +6 -0
  13. package/{dist/auth → auth}/enums.d.ts +0 -0
  14. package/auth/enums.js +18 -0
  15. package/{dist/es2015/auth → auth}/index.d.ts +1 -1
  16. package/auth/index.js +409 -0
  17. package/{dist/auth → auth}/interfaces.d.ts +0 -0
  18. package/auth/interfaces.js +16 -0
  19. package/auth/package.json +6 -0
  20. package/{dist/auth → auth}/secutiry-poilicy/index.d.ts +0 -0
  21. package/auth/secutiry-poilicy/index.js +48 -0
  22. package/{dist/auth → auth}/secutiry-poilicy/interfaces.d.ts +0 -0
  23. package/auth/secutiry-poilicy/interfaces.js +1 -0
  24. package/{dist/connectivity → connectivity}/index.d.ts +0 -0
  25. package/connectivity/index.js +120 -0
  26. package/{dist/connectivity → connectivity}/interfaces.d.ts +0 -0
  27. package/connectivity/interfaces.js +1 -0
  28. package/connectivity/package.json +6 -0
  29. package/{dist/constants.d.ts → constants.d.ts} +0 -0
  30. package/{src/constants.ts → constants.js} +12 -12
  31. package/{dist/error.d.ts → error.d.ts} +0 -0
  32. package/{src/error.ts → error.js} +4 -5
  33. package/fetch.d.ts +19 -0
  34. package/fetch.js +197 -0
  35. package/{dist/es2015/index.d.ts → index.d.ts} +0 -0
  36. package/{dist/es2015/index.js → index.js} +31 -27
  37. package/{dist/es2015/interfaces.d.ts → interfaces.d.ts} +0 -0
  38. package/interfaces.js +1 -0
  39. package/{dist/es2015/jwt.d.ts → jwt.d.ts} +0 -0
  40. package/jwt.js +79 -0
  41. package/{dist/es2015/metadata → metadata}/index.d.ts +0 -0
  42. package/metadata/index.js +24 -0
  43. package/{dist/es2015/metadata → metadata}/interfaces.d.ts +0 -0
  44. package/metadata/interfaces.js +1 -0
  45. package/metadata/package.json +6 -0
  46. package/node/ContextHolder.js +90 -0
  47. package/node/account-settings/index.js +19 -0
  48. package/node/account-settings/interfaces.js +5 -0
  49. package/node/audits/index.js +37 -0
  50. package/node/audits/interfaces.js +5 -0
  51. package/node/auth/enums.js +26 -0
  52. package/node/auth/index.js +709 -0
  53. package/node/auth/interfaces.js +39 -0
  54. package/node/auth/secutiry-poilicy/index.js +75 -0
  55. package/node/auth/secutiry-poilicy/interfaces.js +5 -0
  56. package/node/connectivity/index.js +208 -0
  57. package/node/connectivity/interfaces.js +5 -0
  58. package/node/constants.js +177 -0
  59. package/node/error.js +21 -0
  60. package/node/fetch.js +234 -0
  61. package/node/index.js +357 -0
  62. package/node/interfaces.js +5 -0
  63. package/node/jwt.js +93 -0
  64. package/node/metadata/index.js +44 -0
  65. package/node/metadata/interfaces.js +5 -0
  66. package/node/notifications/index.js +39 -0
  67. package/node/notifications/interfaces.js +5 -0
  68. package/node/reports/index.js +96 -0
  69. package/node/reports/interfaces.js +5 -0
  70. package/node/roles/index.js +71 -0
  71. package/node/roles/interfaces.js +5 -0
  72. package/node/routers.js +13 -0
  73. package/node/sub-tenants/index.js +39 -0
  74. package/node/sub-tenants/interfaces.js +5 -0
  75. package/node/subscriptions/enums.js +39 -0
  76. package/node/subscriptions/index.js +135 -0
  77. package/node/subscriptions/interfaces.js +18 -0
  78. package/node/subscriptions/invoices.js +28 -0
  79. package/node/subscriptions/managedSubscriptions.js +40 -0
  80. package/node/subscriptions/paymentMethods.js +37 -0
  81. package/node/subscriptions/paymentProviders.js +14 -0
  82. package/node/subscriptions/plans.js +19 -0
  83. package/node/subscriptions/providers/index.js +18 -0
  84. package/node/subscriptions/providers/stripe/index.js +34 -0
  85. package/node/subscriptions/providers/stripe/interfaces.js +5 -0
  86. package/node/subscriptions/subscriptions.js +40 -0
  87. package/node/subscriptions/summaries.js +14 -0
  88. package/node/subscriptions/tenantConfiguration.js +19 -0
  89. package/node/teams/index.js +129 -0
  90. package/node/teams/interfaces.js +5 -0
  91. package/node/tenants/index.js +29 -0
  92. package/node/tenants/interfaces.js +5 -0
  93. package/node/vendor/index.js +16 -0
  94. package/node/vendor/interfaces.js +5 -0
  95. package/{dist/es2015/notifications → notifications}/index.d.ts +0 -0
  96. package/notifications/index.js +24 -0
  97. package/{dist/es2015/notifications → notifications}/interfaces.d.ts +0 -0
  98. package/notifications/interfaces.js +1 -0
  99. package/notifications/package.json +6 -0
  100. package/package.json +9 -32
  101. package/{dist/es2015/reports → reports}/index.d.ts +0 -0
  102. package/reports/index.js +75 -0
  103. package/{dist/es2015/reports → reports}/interfaces.d.ts +0 -0
  104. package/reports/interfaces.js +1 -0
  105. package/reports/package.json +6 -0
  106. package/{dist/es2015/roles → roles}/index.d.ts +0 -0
  107. package/roles/index.js +47 -0
  108. package/{dist/es2015/roles → roles}/interfaces.d.ts +0 -0
  109. package/roles/interfaces.js +1 -0
  110. package/roles/package.json +6 -0
  111. package/{dist/es2015/routers.d.ts → routers.d.ts} +0 -0
  112. package/routers.js +3 -0
  113. package/{dist/es2015/sub-tenants → sub-tenants}/index.d.ts +0 -0
  114. package/sub-tenants/index.js +20 -0
  115. package/{dist/es2015/sub-tenants → sub-tenants}/interfaces.d.ts +0 -0
  116. package/sub-tenants/interfaces.js +1 -0
  117. package/sub-tenants/package.json +6 -0
  118. package/{dist/es2015/subscriptions → subscriptions}/enums.d.ts +0 -0
  119. package/subscriptions/enums.js +29 -0
  120. package/{dist/es2015/subscriptions → subscriptions}/index.d.ts +0 -0
  121. package/{dist/subscriptions/index.d.ts → subscriptions/index.js} +1 -1
  122. package/{dist/es2015/subscriptions → subscriptions}/interfaces.d.ts +0 -0
  123. package/{dist/es2015/subscriptions → subscriptions}/interfaces.js +1 -1
  124. package/{dist/es2015/subscriptions → subscriptions}/invoices.d.ts +0 -0
  125. package/subscriptions/invoices.js +15 -0
  126. package/{dist/es2015/subscriptions → subscriptions}/managedSubscriptions.d.ts +0 -0
  127. package/subscriptions/managedSubscriptions.js +23 -0
  128. package/subscriptions/package.json +6 -0
  129. package/{dist/es2015/subscriptions → subscriptions}/paymentMethods.d.ts +0 -0
  130. package/subscriptions/paymentMethods.js +21 -0
  131. package/{dist/es2015/subscriptions → subscriptions}/paymentProviders.d.ts +0 -0
  132. package/subscriptions/paymentProviders.js +5 -0
  133. package/{dist/es2015/subscriptions → subscriptions}/plans.d.ts +0 -0
  134. package/subscriptions/plans.js +8 -0
  135. package/{dist/es2015/subscriptions → subscriptions}/providers/index.d.ts +0 -0
  136. package/subscriptions/providers/index.js +1 -0
  137. package/{dist/es2015/subscriptions → subscriptions}/providers/stripe/index.d.ts +0 -0
  138. package/subscriptions/providers/stripe/index.js +17 -0
  139. package/{dist/es2015/subscriptions → subscriptions}/providers/stripe/interfaces.d.ts +0 -0
  140. package/subscriptions/providers/stripe/interfaces.js +1 -0
  141. package/{dist/es2015/subscriptions → subscriptions}/subscriptions.d.ts +0 -0
  142. package/subscriptions/subscriptions.js +23 -0
  143. package/{dist/es2015/subscriptions → subscriptions}/summaries.d.ts +0 -0
  144. package/subscriptions/summaries.js +5 -0
  145. package/{dist/es2015/subscriptions → subscriptions}/tenantConfiguration.d.ts +0 -0
  146. package/subscriptions/tenantConfiguration.js +8 -0
  147. package/{dist/es2015/teams → teams}/index.d.ts +0 -0
  148. package/teams/index.js +79 -0
  149. package/{dist/es2015/teams → teams}/interfaces.d.ts +0 -0
  150. package/teams/interfaces.js +1 -0
  151. package/teams/package.json +6 -0
  152. package/{dist/es2015/tenants → tenants}/index.d.ts +0 -0
  153. package/tenants/index.js +14 -0
  154. package/{dist/es2015/tenants → tenants}/interfaces.d.ts +0 -0
  155. package/tenants/interfaces.js +1 -0
  156. package/tenants/package.json +6 -0
  157. package/{dist/es2015/vendor → vendor}/index.d.ts +0 -0
  158. package/vendor/index.js +6 -0
  159. package/{dist/es2015/vendor → vendor}/interfaces.d.ts +0 -0
  160. package/vendor/interfaces.js +1 -0
  161. package/vendor/package.json +6 -0
  162. package/CHANGELOG.md +0 -209
  163. package/README.md +0 -139
  164. package/SECURITY.md +0 -13
  165. package/dist/ContextHolder.js +0 -69
  166. package/dist/ContextHolder.js.map +0 -1
  167. package/dist/account-settings/index.js +0 -33
  168. package/dist/account-settings/index.js.map +0 -1
  169. package/dist/account-settings/interfaces.js +0 -3
  170. package/dist/account-settings/interfaces.js.map +0 -1
  171. package/dist/audits/index.js +0 -59
  172. package/dist/audits/index.js.map +0 -1
  173. package/dist/audits/interfaces.js +0 -3
  174. package/dist/audits/interfaces.js.map +0 -1
  175. package/dist/auth/enums.js +0 -19
  176. package/dist/auth/enums.js.map +0 -1
  177. package/dist/auth/index.d.ts +0 -447
  178. package/dist/auth/index.js +0 -1042
  179. package/dist/auth/index.js.map +0 -1
  180. package/dist/auth/interfaces.js +0 -29
  181. package/dist/auth/interfaces.js.map +0 -1
  182. package/dist/auth/secutiry-poilicy/index.js +0 -134
  183. package/dist/auth/secutiry-poilicy/index.js.map +0 -1
  184. package/dist/auth/secutiry-poilicy/interfaces.js +0 -3
  185. package/dist/auth/secutiry-poilicy/interfaces.js.map +0 -1
  186. package/dist/connectivity/index.js +0 -158
  187. package/dist/connectivity/index.js.map +0 -1
  188. package/dist/connectivity/interfaces.js +0 -3
  189. package/dist/connectivity/interfaces.js.map +0 -1
  190. package/dist/constants.js +0 -174
  191. package/dist/constants.js.map +0 -1
  192. package/dist/error.js +0 -14
  193. package/dist/error.js.map +0 -1
  194. package/dist/es2015/ContextHolder.d.ts +0 -29
  195. package/dist/es2015/ContextHolder.js +0 -65
  196. package/dist/es2015/ContextHolder.js.map +0 -1
  197. package/dist/es2015/account-settings/index.d.ts +0 -7
  198. package/dist/es2015/account-settings/index.js +0 -28
  199. package/dist/es2015/account-settings/index.js.map +0 -1
  200. package/dist/es2015/account-settings/interfaces.d.ts +0 -9
  201. package/dist/es2015/account-settings/interfaces.js +0 -2
  202. package/dist/es2015/account-settings/interfaces.js.map +0 -1
  203. package/dist/es2015/audits/index.d.ts +0 -16
  204. package/dist/es2015/audits/index.js +0 -53
  205. package/dist/es2015/audits/index.js.map +0 -1
  206. package/dist/es2015/audits/interfaces.d.ts +0 -61
  207. package/dist/es2015/audits/interfaces.js +0 -2
  208. package/dist/es2015/audits/interfaces.js.map +0 -1
  209. package/dist/es2015/auth/enums.d.ts +0 -13
  210. package/dist/es2015/auth/enums.js +0 -16
  211. package/dist/es2015/auth/enums.js.map +0 -1
  212. package/dist/es2015/auth/index.js +0 -943
  213. package/dist/es2015/auth/index.js.map +0 -1
  214. package/dist/es2015/auth/interfaces.d.ts +0 -430
  215. package/dist/es2015/auth/interfaces.js +0 -16
  216. package/dist/es2015/auth/interfaces.js.map +0 -1
  217. package/dist/es2015/auth/secutiry-poilicy/index.d.ts +0 -41
  218. package/dist/es2015/auth/secutiry-poilicy/index.js +0 -121
  219. package/dist/es2015/auth/secutiry-poilicy/index.js.map +0 -1
  220. package/dist/es2015/auth/secutiry-poilicy/interfaces.d.ts +0 -70
  221. package/dist/es2015/auth/secutiry-poilicy/interfaces.js +0 -2
  222. package/dist/es2015/auth/secutiry-poilicy/interfaces.js.map +0 -1
  223. package/dist/es2015/connectivity/index.d.ts +0 -27
  224. package/dist/es2015/connectivity/index.js +0 -129
  225. package/dist/es2015/connectivity/index.js.map +0 -1
  226. package/dist/es2015/connectivity/interfaces.d.ts +0 -95
  227. package/dist/es2015/connectivity/interfaces.js +0 -2
  228. package/dist/es2015/connectivity/interfaces.js.map +0 -1
  229. package/dist/es2015/constants.d.ts +0 -170
  230. package/dist/es2015/constants.js +0 -171
  231. package/dist/es2015/constants.js.map +0 -1
  232. package/dist/es2015/error.d.ts +0 -5
  233. package/dist/es2015/error.js +0 -10
  234. package/dist/es2015/error.js.map +0 -1
  235. package/dist/es2015/fetch.d.ts +0 -19
  236. package/dist/es2015/fetch.js +0 -177
  237. package/dist/es2015/fetch.js.map +0 -1
  238. package/dist/es2015/index.js.map +0 -1
  239. package/dist/es2015/interfaces.js +0 -2
  240. package/dist/es2015/interfaces.js.map +0 -1
  241. package/dist/es2015/jwt.js +0 -83
  242. package/dist/es2015/jwt.js.map +0 -1
  243. package/dist/es2015/metadata/index.js +0 -32
  244. package/dist/es2015/metadata/index.js.map +0 -1
  245. package/dist/es2015/metadata/interfaces.js +0 -2
  246. package/dist/es2015/metadata/interfaces.js.map +0 -1
  247. package/dist/es2015/notifications/index.js +0 -49
  248. package/dist/es2015/notifications/index.js.map +0 -1
  249. package/dist/es2015/notifications/interfaces.js +0 -2
  250. package/dist/es2015/notifications/interfaces.js.map +0 -1
  251. package/dist/es2015/reports/index.js +0 -118
  252. package/dist/es2015/reports/index.js.map +0 -1
  253. package/dist/es2015/reports/interfaces.js +0 -2
  254. package/dist/es2015/reports/interfaces.js.map +0 -1
  255. package/dist/es2015/roles/index.js +0 -99
  256. package/dist/es2015/roles/index.js.map +0 -1
  257. package/dist/es2015/roles/interfaces.js +0 -2
  258. package/dist/es2015/roles/interfaces.js.map +0 -1
  259. package/dist/es2015/routers.js +0 -17
  260. package/dist/es2015/routers.js.map +0 -1
  261. package/dist/es2015/sub-tenants/index.js +0 -42
  262. package/dist/es2015/sub-tenants/index.js.map +0 -1
  263. package/dist/es2015/sub-tenants/interfaces.js +0 -2
  264. package/dist/es2015/sub-tenants/interfaces.js.map +0 -1
  265. package/dist/es2015/subscriptions/enums.js +0 -23
  266. package/dist/es2015/subscriptions/enums.js.map +0 -1
  267. package/dist/es2015/subscriptions/index.js +0 -11
  268. package/dist/es2015/subscriptions/index.js.map +0 -1
  269. package/dist/es2015/subscriptions/interfaces.js.map +0 -1
  270. package/dist/es2015/subscriptions/invoices.js +0 -43
  271. package/dist/es2015/subscriptions/invoices.js.map +0 -1
  272. package/dist/es2015/subscriptions/managedSubscriptions.js +0 -51
  273. package/dist/es2015/subscriptions/managedSubscriptions.js.map +0 -1
  274. package/dist/es2015/subscriptions/paymentMethods.js +0 -55
  275. package/dist/es2015/subscriptions/paymentMethods.js.map +0 -1
  276. package/dist/es2015/subscriptions/paymentProviders.js +0 -21
  277. package/dist/es2015/subscriptions/paymentProviders.js.map +0 -1
  278. package/dist/es2015/subscriptions/plans.js +0 -30
  279. package/dist/es2015/subscriptions/plans.js.map +0 -1
  280. package/dist/es2015/subscriptions/providers/index.js +0 -2
  281. package/dist/es2015/subscriptions/providers/index.js.map +0 -1
  282. package/dist/es2015/subscriptions/providers/stripe/index.js +0 -57
  283. package/dist/es2015/subscriptions/providers/stripe/index.js.map +0 -1
  284. package/dist/es2015/subscriptions/providers/stripe/interfaces.js +0 -2
  285. package/dist/es2015/subscriptions/providers/stripe/interfaces.js.map +0 -1
  286. package/dist/es2015/subscriptions/subscriptions.js +0 -57
  287. package/dist/es2015/subscriptions/subscriptions.js.map +0 -1
  288. package/dist/es2015/subscriptions/summaries.js +0 -21
  289. package/dist/es2015/subscriptions/summaries.js.map +0 -1
  290. package/dist/es2015/subscriptions/tenantConfiguration.js +0 -24
  291. package/dist/es2015/subscriptions/tenantConfiguration.js.map +0 -1
  292. package/dist/es2015/teams/index.js +0 -228
  293. package/dist/es2015/teams/index.js.map +0 -1
  294. package/dist/es2015/teams/interfaces.js +0 -2
  295. package/dist/es2015/teams/interfaces.js.map +0 -1
  296. package/dist/es2015/tenants/index.js +0 -57
  297. package/dist/es2015/tenants/index.js.map +0 -1
  298. package/dist/es2015/tenants/interfaces.js +0 -2
  299. package/dist/es2015/tenants/interfaces.js.map +0 -1
  300. package/dist/es2015/vendor/index.js +0 -23
  301. package/dist/es2015/vendor/index.js.map +0 -1
  302. package/dist/es2015/vendor/interfaces.js +0 -2
  303. package/dist/es2015/vendor/interfaces.js.map +0 -1
  304. package/dist/fetch.d.ts +0 -19
  305. package/dist/fetch.js +0 -187
  306. package/dist/fetch.js.map +0 -1
  307. package/dist/index.d.ts +0 -83
  308. package/dist/index.js +0 -98
  309. package/dist/index.js.map +0 -1
  310. package/dist/interfaces.d.ts +0 -40
  311. package/dist/interfaces.js +0 -3
  312. package/dist/interfaces.js.map +0 -1
  313. package/dist/jwt.d.ts +0 -13
  314. package/dist/jwt.js +0 -89
  315. package/dist/jwt.js.map +0 -1
  316. package/dist/metadata/index.d.ts +0 -5
  317. package/dist/metadata/index.js +0 -39
  318. package/dist/metadata/index.js.map +0 -1
  319. package/dist/metadata/interfaces.d.ts +0 -46
  320. package/dist/metadata/interfaces.js +0 -3
  321. package/dist/metadata/interfaces.js.map +0 -1
  322. package/dist/notifications/index.d.ts +0 -17
  323. package/dist/notifications/index.js +0 -56
  324. package/dist/notifications/index.js.map +0 -1
  325. package/dist/notifications/interfaces.d.ts +0 -40
  326. package/dist/notifications/interfaces.js +0 -3
  327. package/dist/notifications/interfaces.js.map +0 -1
  328. package/dist/reports/index.d.ts +0 -45
  329. package/dist/reports/index.js +0 -127
  330. package/dist/reports/index.js.map +0 -1
  331. package/dist/reports/interfaces.d.ts +0 -146
  332. package/dist/reports/interfaces.js +0 -3
  333. package/dist/reports/interfaces.js.map +0 -1
  334. package/dist/roles/index.d.ts +0 -34
  335. package/dist/roles/index.js +0 -110
  336. package/dist/roles/index.js.map +0 -1
  337. package/dist/roles/interfaces.d.ts +0 -58
  338. package/dist/roles/interfaces.js +0 -3
  339. package/dist/roles/interfaces.js.map +0 -1
  340. package/dist/routers.d.ts +0 -2
  341. package/dist/routers.js +0 -20
  342. package/dist/routers.js.map +0 -1
  343. package/dist/sub-tenants/index.d.ts +0 -8
  344. package/dist/sub-tenants/index.js +0 -51
  345. package/dist/sub-tenants/index.js.map +0 -1
  346. package/dist/sub-tenants/interfaces.d.ts +0 -87
  347. package/dist/sub-tenants/interfaces.js +0 -3
  348. package/dist/sub-tenants/interfaces.js.map +0 -1
  349. package/dist/subscriptions/enums.d.ts +0 -18
  350. package/dist/subscriptions/enums.js +0 -26
  351. package/dist/subscriptions/enums.js.map +0 -1
  352. package/dist/subscriptions/index.js +0 -23
  353. package/dist/subscriptions/index.js.map +0 -1
  354. package/dist/subscriptions/interfaces.d.ts +0 -117
  355. package/dist/subscriptions/interfaces.js +0 -14
  356. package/dist/subscriptions/interfaces.js.map +0 -1
  357. package/dist/subscriptions/invoices.d.ts +0 -13
  358. package/dist/subscriptions/invoices.js +0 -49
  359. package/dist/subscriptions/invoices.js.map +0 -1
  360. package/dist/subscriptions/managedSubscriptions.d.ts +0 -15
  361. package/dist/subscriptions/managedSubscriptions.js +0 -59
  362. package/dist/subscriptions/managedSubscriptions.js.map +0 -1
  363. package/dist/subscriptions/paymentMethods.d.ts +0 -13
  364. package/dist/subscriptions/paymentMethods.js +0 -61
  365. package/dist/subscriptions/paymentMethods.js.map +0 -1
  366. package/dist/subscriptions/paymentProviders.d.ts +0 -5
  367. package/dist/subscriptions/paymentProviders.js +0 -25
  368. package/dist/subscriptions/paymentProviders.js.map +0 -1
  369. package/dist/subscriptions/plans.d.ts +0 -9
  370. package/dist/subscriptions/plans.js +0 -35
  371. package/dist/subscriptions/plans.js.map +0 -1
  372. package/dist/subscriptions/providers/index.d.ts +0 -1
  373. package/dist/subscriptions/providers/index.js +0 -14
  374. package/dist/subscriptions/providers/index.js.map +0 -1
  375. package/dist/subscriptions/providers/stripe/index.d.ts +0 -21
  376. package/dist/subscriptions/providers/stripe/index.js +0 -65
  377. package/dist/subscriptions/providers/stripe/index.js.map +0 -1
  378. package/dist/subscriptions/providers/stripe/interfaces.d.ts +0 -32
  379. package/dist/subscriptions/providers/stripe/interfaces.js +0 -3
  380. package/dist/subscriptions/providers/stripe/interfaces.js.map +0 -1
  381. package/dist/subscriptions/subscriptions.d.ts +0 -21
  382. package/dist/subscriptions/subscriptions.js +0 -65
  383. package/dist/subscriptions/subscriptions.js.map +0 -1
  384. package/dist/subscriptions/summaries.d.ts +0 -5
  385. package/dist/subscriptions/summaries.js +0 -25
  386. package/dist/subscriptions/summaries.js.map +0 -1
  387. package/dist/subscriptions/tenantConfiguration.d.ts +0 -3
  388. package/dist/subscriptions/tenantConfiguration.js +0 -29
  389. package/dist/subscriptions/tenantConfiguration.js.map +0 -1
  390. package/dist/teams/index.d.ts +0 -116
  391. package/dist/teams/index.js +0 -250
  392. package/dist/teams/index.js.map +0 -1
  393. package/dist/teams/interfaces.d.ts +0 -136
  394. package/dist/teams/interfaces.js +0 -3
  395. package/dist/teams/interfaces.js.map +0 -1
  396. package/dist/tenants/index.d.ts +0 -26
  397. package/dist/tenants/index.js +0 -64
  398. package/dist/tenants/index.js.map +0 -1
  399. package/dist/tenants/interfaces.d.ts +0 -30
  400. package/dist/tenants/interfaces.js +0 -3
  401. package/dist/tenants/interfaces.js.map +0 -1
  402. package/dist/umd/index.js +0 -2891
  403. package/dist/vendor/index.d.ts +0 -6
  404. package/dist/vendor/index.js +0 -27
  405. package/dist/vendor/index.js.map +0 -1
  406. package/dist/vendor/interfaces.d.ts +0 -6
  407. package/dist/vendor/interfaces.js +0 -3
  408. package/dist/vendor/interfaces.js.map +0 -1
  409. package/src/ContextHolder.ts +0 -81
  410. package/src/account-settings/index.ts +0 -18
  411. package/src/account-settings/interfaces.ts +0 -10
  412. package/src/audits/index.ts +0 -35
  413. package/src/audits/interfaces.ts +0 -70
  414. package/src/auth/enums.ts +0 -17
  415. package/src/auth/index.ts +0 -935
  416. package/src/auth/interfaces.ts +0 -488
  417. package/src/auth/secutiry-poilicy/index.ts +0 -109
  418. package/src/auth/secutiry-poilicy/interfaces.ts +0 -81
  419. package/src/connectivity/index.ts +0 -160
  420. package/src/connectivity/interfaces.ts +0 -106
  421. package/src/fetch.ts +0 -220
  422. package/src/index.ts +0 -86
  423. package/src/interfaces.ts +0 -47
  424. package/src/jwt.ts +0 -92
  425. package/src/metadata/index.ts +0 -24
  426. package/src/metadata/interfaces.ts +0 -51
  427. package/src/notifications/index.ts +0 -40
  428. package/src/notifications/interfaces.ts +0 -45
  429. package/src/reports/index.ts +0 -116
  430. package/src/reports/interfaces.ts +0 -167
  431. package/src/roles/index.ts +0 -80
  432. package/src/roles/interfaces.ts +0 -64
  433. package/src/routers.ts +0 -18
  434. package/src/sub-tenants/index.ts +0 -49
  435. package/src/sub-tenants/interfaces.ts +0 -100
  436. package/src/subscriptions/enums.ts +0 -22
  437. package/src/subscriptions/index.ts +0 -10
  438. package/src/subscriptions/interfaces.ts +0 -144
  439. package/src/subscriptions/invoices.ts +0 -42
  440. package/src/subscriptions/managedSubscriptions.ts +0 -53
  441. package/src/subscriptions/paymentMethods.ts +0 -47
  442. package/src/subscriptions/paymentProviders.ts +0 -13
  443. package/src/subscriptions/plans.ts +0 -19
  444. package/src/subscriptions/providers/index.ts +0 -1
  445. package/src/subscriptions/providers/stripe/index.ts +0 -56
  446. package/src/subscriptions/providers/stripe/interfaces.ts +0 -39
  447. package/src/subscriptions/subscriptions.ts +0 -63
  448. package/src/subscriptions/summaries.ts +0 -11
  449. package/src/subscriptions/tenantConfiguration.ts +0 -23
  450. package/src/teams/index.ts +0 -224
  451. package/src/teams/interfaces.ts +0 -163
  452. package/src/tenants/index.ts +0 -46
  453. package/src/tenants/interfaces.ts +0 -33
  454. package/src/vendor/index.ts +0 -12
  455. package/src/vendor/interfaces.ts +0 -6
  456. package/yarn-error.log +0 -518
@@ -1,100 +0,0 @@
1
- import { QueryFilter, QuerySort } from "../interfaces";
2
-
3
- export type ILoadAllUsers = {
4
- _offset: number;
5
- _limit: number;
6
- _filter: string;
7
- _sortBy: string;
8
- _order: "ASC" | "DESC";
9
- };
10
-
11
- export type ISubTenantUserRole = {
12
- id: string;
13
- vendorId: string;
14
- tenantId: string;
15
- key: string;
16
- name: string;
17
- description: string;
18
- isDefault: boolean;
19
- firstUserRole: boolean;
20
- level: number;
21
- createdAt: Date;
22
- updatedAt: Date;
23
- permissions: string[];
24
- };
25
-
26
- export type ISubTenantUserPermission = {
27
- id: string;
28
- key: string;
29
- name: string;
30
- description: string;
31
- createdAt: Date;
32
- updatedAt: Date;
33
- roleIds: string[];
34
- categoryId: string;
35
- fePermission: boolean;
36
- };
37
-
38
- export type ISubTenantUserTenant = {
39
- tenantId: string;
40
- roles: ISubTenantUserRole[];
41
- permissions: ISubTenantUserPermission[];
42
- activated: boolean;
43
- lastLogin: Date;
44
- };
45
-
46
- export type ISubTenantUser = {
47
- id: string;
48
- sub: string;
49
- email: string;
50
- verified: boolean;
51
- mfaEnrolled: boolean;
52
- mfaBypass?: boolean;
53
- name?: string;
54
- phoneNumber?: string;
55
- profilePictureUrl?: string;
56
- provider: string; // 'local' | 'saml' | 'google' | 'facebook';
57
- tenantId: string;
58
- tenantIds: string[];
59
- isLocked?: boolean;
60
- tenants: ISubTenantUserTenant[];
61
- invisible?: true;
62
- superUser?: true;
63
- metadata: string;
64
- createdAt: Date;
65
- };
66
-
67
- export interface AddUserToSubTenantsRequestUserDto {
68
- email: string;
69
- name?: string;
70
- }
71
-
72
- export interface AddUserToSubTenantsRequestTenantDto {
73
- tenantId: string;
74
- roleIds?: string[];
75
- }
76
-
77
- export interface AddUserToSubTenantsRequest {
78
- user: AddUserToSubTenantsRequestUserDto;
79
- subTenants: AddUserToSubTenantsRequestTenantDto[];
80
- }
81
-
82
- export interface RemoveUserFromSubTenantsRequestTenantDto {
83
- tenantId: string;
84
- }
85
-
86
- export interface RemoveUserFromSubTenantsRequest {
87
- userId: string;
88
- subTenants: RemoveUserFromSubTenantsRequestTenantDto[];
89
- }
90
-
91
- export interface UpdateUserRolesForSubTenantRequestDto {
92
- tenantId: string;
93
- roleIds: string[];
94
- }
95
-
96
- export interface UpdateUserRolesForSubTenantsRequestDto {
97
- subTenantsRoles: UpdateUserRolesForSubTenantRequestDto[];
98
- ipAddress?: string;
99
- userAgent?: string;
100
- }
@@ -1,22 +0,0 @@
1
- export enum ISubscriptionStatus {
2
- ACTIVE = "active",
3
- CANCELED = "canceled",
4
- INCOMPLETE = "incomplete",
5
- EXPIRED = "expired",
6
- TRIALING = "trialing",
7
- TRIAL_ENDED = "trialEnded",
8
- }
9
-
10
-
11
- export enum PaymentMethodType {
12
- UNKNWON = "unknown",
13
- CARD = "card",
14
- }
15
-
16
- export enum ISubscriptionCancellationPolicy {
17
- AT_PERIOD_END = "atPeriodEnd",
18
- }
19
-
20
- export enum ProviderType {
21
- Stripe = "Stripe",
22
- }
@@ -1,10 +0,0 @@
1
- export * from './subscriptions';
2
- export * from './managedSubscriptions';
3
- export * from './plans';
4
- export * from './invoices';
5
- export * from './paymentMethods';
6
- export * from './providers';
7
- export * from './summaries';
8
- export * from './tenantConfiguration';
9
- export * from './paymentProviders';
10
- export * from './enums';
@@ -1,144 +0,0 @@
1
- import {
2
- ISubscriptionCancellationPolicy,
3
- ISubscriptionStatus,
4
- PaymentMethodType,
5
- ProviderType,
6
- } from "./enums";
7
-
8
- export * from "./providers/stripe/interfaces";
9
-
10
- export interface IPlanResponse {
11
- id: string;
12
- externalId: string;
13
- name: string;
14
- description: string;
15
- price: IPlanResponsePriceResponse;
16
- slug: string;
17
- }
18
-
19
- export interface IPlanResponsePriceResponse {
20
- id: string;
21
- externalId: string;
22
- currency: string;
23
- amount: number;
24
- }
25
-
26
- export interface ISubscriptionResponse {
27
- id: string;
28
- externalId: string;
29
- externallyManaged: boolean;
30
- startDate: string;
31
- currentPeriodStart: string;
32
- currentPeriodEnd: string;
33
- status: ISubscriptionStatus;
34
- cancellation: ISubscriptionCancellationResponse | null;
35
- trialEnd?: string;
36
- plan: ISubscriptionPlanResponse;
37
- }
38
-
39
- export interface ISubscriptionPlanResponse {
40
- slug: string;
41
- }
42
-
43
- export interface ISubscriptionCancellationResponse {
44
- policy: ISubscriptionCancellationPolicy;
45
- }
46
-
47
- export interface ISubscriptionInvoiceResponse {
48
- id: string;
49
- externalId: string;
50
- subscriptionId: string;
51
- paymentDate: string;
52
- totalAmount: number;
53
- currency: string;
54
- paid: boolean;
55
- receiptNumber: string;
56
- }
57
-
58
- export type ISubscriptionPaymentMethodResponse =
59
- | ISubscriptionPaymentMethodDefaultResponse
60
- | ISubscriptionPaymentMethodCardResponse;
61
-
62
- export interface ISubscriptionPaymentMethodDefaultResponse {
63
- id: string;
64
- externalId: string;
65
- type: PaymentMethodType.UNKNWON;
66
- isDefault: boolean;
67
- }
68
-
69
- export interface ISubscriptionPaymentMethodCardResponse {
70
- id: string;
71
- externalId: string;
72
- type: PaymentMethodType.CARD;
73
- isDefault: boolean;
74
- last4: string;
75
- expMonth: number;
76
- expYear: number;
77
- brand: string;
78
- billingDetails: BillingDetailsResponse;
79
- }
80
-
81
- export interface ISubscriptionSummariesResponse {
82
- tenantConfigurationId: string;
83
- providerType: ProviderType;
84
- subscriptionId: string;
85
- externallyManaged: boolean;
86
- currentPlanId: string;
87
- paymentMethodId: string;
88
- defaultPlanId: string;
89
- }
90
-
91
- export interface BillingDetailsResponse {
92
- name: string;
93
- email?: string;
94
- address?: BillingDetailsAddress;
95
- }
96
-
97
- export interface BillingDetailsAddress {
98
- addressLine1?: string;
99
- addressLine2?: string;
100
- city?: string;
101
- state?: string;
102
- postalCode?: string;
103
- country?: string;
104
- }
105
-
106
- export interface ISubscriptionUpdatePaymentMethodBillingDetails {
107
- email?: string;
108
- address?: BillingDetailsAddress;
109
- }
110
-
111
- export interface ITenantConfigurationResponse {
112
- id: string;
113
- vendorId: string;
114
- tenantId: string;
115
- externallyManaged: string;
116
- paymentProviderType: ProviderType;
117
- mappingId: string;
118
- }
119
-
120
- export interface ICreateTenantConfigurationRequest {
121
- tenantId: string;
122
- externallyManaged?: string;
123
- providerType: ProviderType;
124
- }
125
-
126
- export interface ICreateTenantConfigurationResponse {
127
- id: string;
128
- }
129
-
130
- export interface IPaymentProviderResponse {
131
- providerType: ProviderType;
132
- name: string;
133
- status: string;
134
- }
135
-
136
- export interface IUpdateSubscriptionRequest {
137
- paymentMethodId: string;
138
- planId: string;
139
- }
140
-
141
- export interface IUpdateManagedSubscriptionRequest {
142
- paymentMethodId: string;
143
- planId: string;
144
- }
@@ -1,42 +0,0 @@
1
- import { ISubscriptionInvoiceResponse } from "./interfaces";
2
- import { Get } from "../fetch";
3
- import { urls } from "../constants";
4
-
5
- /**
6
- * Get subscription invoices
7
- */
8
- export async function getSubscriptionInvoices(): Promise<
9
- ISubscriptionInvoiceResponse[]
10
- > {
11
- console.debug("getSubscriptionInvoices()");
12
- return Get(urls.subscriptions.billing.invoices.v1);
13
- }
14
-
15
- /**
16
- * Get subscription invoice
17
- */
18
- export async function getSubscriptionInvoice(
19
- invoiceId: string
20
- ): Promise<ISubscriptionInvoiceResponse> {
21
- console.debug("getSubscriptionInvoice()", { invoiceId });
22
- return Get(`${urls.subscriptions.billing.invoices.v1}/${invoiceId}`);
23
- }
24
-
25
- /**
26
- * Get subscription invoice pdf file
27
- */
28
- export async function getSubscriptionInvoicePdf(
29
- invoiceId: string,
30
- outputFileName?: string
31
- ): Promise<void> {
32
- console.debug("getSubscriptionInvoicePdf()", { invoiceId });
33
- return Get(
34
- `${urls.subscriptions.billing.invoices.v1}/${invoiceId}/pdf`,
35
- {
36
- outputFileName,
37
- },
38
- {
39
- responseType: "blob",
40
- }
41
- );
42
- }
@@ -1,53 +0,0 @@
1
- import { ISubscriptionResponse, IUpdateManagedSubscriptionRequest } from "./interfaces";
2
- import { Get, Put } from "../fetch";
3
- import { urls } from "../constants";
4
-
5
- export async function getManagedSubscription(subscriptionId: string): Promise<ISubscriptionResponse> {
6
- console.debug('getManagedSubscription()', {subscriptionId});
7
- return Get(`${urls.subscriptions.managedSubscriptions.v1}/${subscriptionId}`)
8
- }
9
-
10
- export async function getManagedSubscriptions(): Promise<ISubscriptionResponse[]> {
11
- console.debug('getManagedSubscriptions()');
12
- return Get(`${urls.subscriptions.managedSubscriptions.v1}`)
13
- }
14
-
15
- /**
16
- * Cancel tenant subscription
17
- */
18
- export async function cancelManagedSubscription(
19
- subscriptionId: string
20
- ): Promise<void> {
21
- console.debug("cancelManagedSubscription()", { subscriptionId });
22
- return Put(
23
- `${urls.subscriptions.managedSubscriptions.v1}/${subscriptionId}/cancellations/`,
24
- {}
25
- );
26
- }
27
-
28
- /**
29
- * Renew tenant subscription
30
- */
31
- export async function renewManagedSubscription(
32
- subscriptionId: string
33
- ): Promise<void> {
34
- console.debug("renewManagedSubscription()", { subscriptionId });
35
- return Put(
36
- `${urls.subscriptions.managedSubscriptions.v1}/${subscriptionId}/renewals/`,
37
- {}
38
- );
39
- }
40
-
41
- /**
42
- * Upgrade/Downgrade tenant subscription plan
43
- */
44
- export async function updateManagedSubscription(
45
- subscriptionId: string,
46
- { paymentMethodId, planId }: IUpdateManagedSubscriptionRequest
47
- ): Promise<void> {
48
- console.debug("updateManagedSubscription()", { subscriptionId });
49
- return Put(
50
- `${urls.subscriptions.managedSubscriptions.v1}/${subscriptionId}`,
51
- { paymentMethodId, planId }
52
- );
53
- }
@@ -1,47 +0,0 @@
1
- import {
2
- BillingDetailsAddress,
3
- ISubscriptionPaymentMethodResponse,
4
- ISubscriptionUpdatePaymentMethodBillingDetails,
5
- } from "./interfaces";
6
- import { Get, Patch } from "../fetch";
7
- import { urls } from "../constants";
8
-
9
- /**
10
- * Get payment methods
11
- */
12
- export async function getPaymentMethods(): Promise<
13
- ISubscriptionPaymentMethodResponse[]
14
- > {
15
- console.debug("getPaymentMethods()");
16
- return Get(urls.subscriptions.billing.paymentMethods.v1);
17
- }
18
-
19
- /**
20
- * Get payment method
21
- */
22
- export async function getPaymentMethod(
23
- paymentMethodId: string
24
- ): Promise<ISubscriptionPaymentMethodResponse> {
25
- console.debug("getPaymentMethod()", { paymentMethodId });
26
- return Get(
27
- `${urls.subscriptions.billing.paymentMethods.v1}/${paymentMethodId}`
28
- );
29
- }
30
-
31
- /**
32
- * Update payment method billing details
33
- */
34
- export async function updatePaymentMethodBillingDetails(
35
- paymentMethodId: string,
36
- { email, ...address }: ISubscriptionUpdatePaymentMethodBillingDetails
37
- ): Promise<ISubscriptionUpdatePaymentMethodBillingDetails> {
38
- console.debug("updatePaymentMethodBillingDetails()", {
39
- paymentMethodId,
40
- email,
41
- address,
42
- });
43
- return Patch(
44
- `${urls.subscriptions.billing.paymentMethods.v1}/${paymentMethodId}/billing-details`,
45
- { email, address }
46
- );
47
- }
@@ -1,13 +0,0 @@
1
- import { IPaymentProviderResponse } from "./interfaces";
2
- import { Get } from "../fetch";
3
- import { urls } from "../constants";
4
-
5
- /**
6
- * Gets payment providers for vendor
7
- */
8
- export async function getPaymentProviders(): Promise<
9
- IPaymentProviderResponse[]
10
- > {
11
- console.debug("getPaymentProviders()");
12
- return Get(urls.subscriptions.paymentProviders.v1);
13
- }
@@ -1,19 +0,0 @@
1
- import {IPlanResponse} from './interfaces';
2
- import {Get} from '../fetch';
3
- import {urls} from '../constants';
4
-
5
- /**
6
- * Gets subscription plans
7
- */
8
- export async function getSubscriptionPlans(): Promise<IPlanResponse[]> {
9
- console.debug('getSubscriptionPlans()');
10
- return Get(urls.subscriptions.billing.plans.v1);
11
- }
12
-
13
- /**
14
- * Gets subscription plan singular
15
- */
16
- export async function getSubscriptionPlan(planId: string): Promise<IPlanResponse[]> {
17
- console.debug('getSubscriptionPlan()');
18
- return Get(`${urls.subscriptions.billing.plans.v1}/${planId}`);
19
- }
@@ -1 +0,0 @@
1
- export * from './stripe';
@@ -1,56 +0,0 @@
1
- import {
2
- ICreateStripeCustomerRequest, ICreateStripeCustomerResponse,
3
- ICreateStripeSubscriptionRequest,
4
- ICreateSubscriptionResponse,
5
- IStripeCustomerResponse, IStripePaymentProviderConfigurationResponse, ICreateStripePaymentMethodSetupRequest, ICreateStripePaymentMethodSetupResponse
6
- } from "./interfaces";
7
- import {Get, Post} from "../../../fetch";
8
- import {urls} from "../../../constants";
9
-
10
- /**
11
- * Creates new stripe subscription
12
- * @param request
13
- */
14
- export async function createSubscription(
15
- request: ICreateStripeSubscriptionRequest
16
- ): Promise<ICreateSubscriptionResponse> {
17
- console.debug('createSubscription()');
18
- return Post(urls.subscriptions.billing.paymentProviders.stripe.subscriptions.v1, request);
19
- }
20
-
21
-
22
- /**
23
- * Fetch tenant mapping external stripe customer object
24
- */
25
- export async function getStripeCustomer(tenantId: string): Promise<IStripeCustomerResponse> {
26
- console.debug('getStripeCustomer()');
27
- return Get(`${urls.subscriptions.billing.paymentProviders.stripe.customers.v1}/${tenantId}`);
28
- }
29
-
30
- /**
31
- * Create tenant mapping external stripe customer object
32
- * @param request
33
- */
34
- export async function createStripeCustomer(
35
- request: ICreateStripeCustomerRequest
36
- ): Promise<ICreateStripeCustomerResponse> {
37
- console.debug('createStripeCustomer()');
38
- return Post(`${urls.subscriptions.billing.paymentProviders.stripe.customers.v1}`, request);
39
- }
40
-
41
-
42
- export async function getStripePaymentProviderConfiguration(): Promise<IStripePaymentProviderConfigurationResponse> {
43
- console.debug('getStripePaymentProviderConfiguration()');
44
- return Get(`${urls.subscriptions.billing.paymentProviders.stripe.publicConfigurations.v1}`);
45
- }
46
-
47
- /**
48
- * Create payment method intent secret
49
- * @param request
50
- */
51
- export async function createStripePaymentMethodSetupIntentSecret(
52
- request: ICreateStripePaymentMethodSetupRequest
53
- ): Promise<ICreateStripePaymentMethodSetupResponse> {
54
- console.debug('createStripePaymentMethodSetupIntentSecret()');
55
- return Post(`${urls.subscriptions.billing.paymentProviders.stripe.setupIntents.v1}`, request);
56
- }
@@ -1,39 +0,0 @@
1
- export interface ICreateStripePaymentMethodSetupResponse {
2
- id: string
3
- paymentMethodId: string
4
- setupIntentSecret: string
5
- }
6
-
7
- export interface ICreateStripePaymentMethodSetupRequest {
8
- paymentMethodId?: string
9
- }
10
-
11
- export interface IStripePaymentProviderConfigurationResponse {
12
- id: string;
13
- name: string;
14
- active: boolean;
15
- publishableKey: string;
16
- }
17
-
18
- export interface IStripeCustomerResponse {
19
- stripeCustomerId: string;
20
- }
21
-
22
- export interface ICreateStripeCustomerRequest {
23
- name: string;
24
- email: string;
25
- tenantName?: string;
26
- }
27
-
28
- export interface ICreateStripeCustomerResponse {
29
- stripeCustomerId: string;
30
- }
31
-
32
- export interface ICreateStripeSubscriptionRequest {
33
- stripePlanId: string;
34
- }
35
-
36
- export interface ICreateSubscriptionResponse {
37
- subscriptionId: string;
38
- subscriptionSecret: string;
39
- }
@@ -1,63 +0,0 @@
1
- import { ISubscriptionResponse, IUpdateSubscriptionRequest } from "./interfaces";
2
- import { Get, Put } from "../fetch";
3
- import { urls } from "../constants";
4
-
5
- /**
6
- * Get tenant subscriptions
7
- */
8
- export async function getSubscriptions(): Promise<ISubscriptionResponse[]> {
9
- console.debug("getSubscriptions()");
10
- return Get(urls.subscriptions.billing.subscriptions.v1);
11
- }
12
-
13
- /**
14
- * Get tenant subscription
15
- */
16
- export async function getSubscription(
17
- subscriptionId: string
18
- ): Promise<ISubscriptionResponse> {
19
- console.debug("getSubscription()", { subscriptionId });
20
- return Get(
21
- `${urls.subscriptions.billing.subscriptions.v1}/${subscriptionId}`
22
- );
23
- }
24
-
25
- /**
26
- * Cancel tenant subscription
27
- */
28
- export async function cancelSubscription(
29
- subscriptionId: string
30
- ): Promise<void> {
31
- console.debug("cancelSubscription()", { subscriptionId });
32
- return Put(
33
- `${urls.subscriptions.billing.subscriptions.v1}/${subscriptionId}/cancellations/`,
34
- {}
35
- );
36
- }
37
-
38
- /**
39
- * Renew tenant subscription
40
- */
41
- export async function renewSubscription(
42
- subscriptionId: string
43
- ): Promise<void> {
44
- console.debug("renewSubscription()", { subscriptionId });
45
- return Put(
46
- `${urls.subscriptions.billing.subscriptions.v1}/${subscriptionId}/renewals/`,
47
- {}
48
- );
49
- }
50
-
51
- /**
52
- * Upgrade/Downgrade tenant subscription plan
53
- */
54
- export async function updateSubscription(
55
- subscriptionId: string,
56
- { paymentMethodId, planId }: IUpdateSubscriptionRequest
57
- ): Promise<void> {
58
- console.debug("updateSubscription()", { subscriptionId });
59
- return Put(
60
- `${urls.subscriptions.billing.subscriptions.v1}/${subscriptionId}`,
61
- { paymentMethodId, planId }
62
- );
63
- }
@@ -1,11 +0,0 @@
1
- import { ISubscriptionSummariesResponse } from './interfaces';
2
- import { Get } from '../fetch';
3
- import { urls } from '../constants';
4
-
5
- /**
6
- * Gets subscription summaries
7
- */
8
- export async function getSubscriptionSummaries(tenantId: string): Promise<ISubscriptionSummariesResponse> {
9
- console.debug('getSubscriptionSummaries()');
10
- return Get(`${urls.subscriptions.billing.summaries.v1}/${tenantId}`);
11
- }
@@ -1,23 +0,0 @@
1
- import {
2
- ICreateTenantConfigurationRequest,
3
- ICreateTenantConfigurationResponse,
4
- ITenantConfigurationResponse,
5
- } from "./interfaces";
6
- import { Get, Post } from "../fetch";
7
- import { urls } from "../constants";
8
-
9
- export async function getTenantConfiguration(
10
- tenantId: string
11
- ): Promise<ITenantConfigurationResponse> {
12
- console.debug("getTenantConfiguration()");
13
- return Get(
14
- `${urls.subscriptions.billing.tenantConfiguration.v1}/${tenantId}`
15
- );
16
- }
17
-
18
- export async function createTenantConfiguration(
19
- request: ICreateTenantConfigurationRequest
20
- ): Promise<ICreateTenantConfigurationResponse> {
21
- console.debug("createTenantConfiguration()");
22
- return Post(`${urls.subscriptions.billing.tenantConfiguration.v1}`, request);
23
- }