@frontegg/rest-api 2.10.90 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/ContextHolder.d.ts → ContextHolder.d.ts} +0 -0
- package/ContextHolder.js +114 -0
- package/{dist/account-settings → account-settings}/index.d.ts +0 -0
- package/account-settings/index.js +47 -0
- package/{dist/account-settings → account-settings}/interfaces.d.ts +0 -0
- package/account-settings/interfaces.js +1 -0
- package/account-settings/package.json +6 -0
- package/{dist/audits → audits}/index.d.ts +0 -0
- package/audits/index.js +74 -0
- package/{dist/audits → audits}/interfaces.d.ts +0 -0
- package/audits/interfaces.js +1 -0
- package/audits/package.json +6 -0
- package/{dist/auth → auth}/enums.d.ts +0 -0
- package/auth/enums.js +18 -0
- package/{dist/auth → auth}/index.d.ts +0 -0
- package/auth/index.js +2102 -0
- package/{dist/auth → auth}/interfaces.d.ts +0 -0
- package/auth/interfaces.js +16 -0
- package/auth/package.json +6 -0
- package/{dist/auth → auth}/secutiry-poilicy/index.d.ts +0 -0
- package/auth/secutiry-poilicy/index.js +257 -0
- package/{dist/auth → auth}/secutiry-poilicy/interfaces.d.ts +0 -0
- package/auth/secutiry-poilicy/interfaces.js +1 -0
- package/{dist/connectivity → connectivity}/index.d.ts +0 -0
- package/connectivity/index.js +114 -0
- package/{dist/connectivity → connectivity}/interfaces.d.ts +0 -0
- package/connectivity/interfaces.js +1 -0
- package/connectivity/package.json +6 -0
- package/{dist/constants.d.ts → constants.d.ts} +0 -0
- package/{src/constants.ts → constants.js} +13 -13
- package/{dist/error.d.ts → error.d.ts} +0 -0
- package/error.js +36 -0
- package/fetch.d.ts +19 -0
- package/fetch.js +557 -0
- package/{dist/es2015/index.d.ts → index.d.ts} +0 -0
- package/{dist/es2015/index.js → index.js} +32 -28
- package/{dist/es2015/interfaces.d.ts → interfaces.d.ts} +0 -0
- package/interfaces.js +1 -0
- package/{dist/es2015/jwt.d.ts → jwt.d.ts} +0 -0
- package/jwt.js +105 -0
- package/{dist/es2015/metadata → metadata}/index.d.ts +0 -0
- package/metadata/index.js +166 -0
- package/{dist/es2015/metadata → metadata}/interfaces.d.ts +0 -0
- package/metadata/interfaces.js +1 -0
- package/metadata/package.json +6 -0
- package/node/ContextHolder.js +126 -0
- package/node/account-settings/index.js +61 -0
- package/node/account-settings/interfaces.js +5 -0
- package/node/audits/index.js +90 -0
- package/node/audits/interfaces.js +5 -0
- package/node/auth/enums.js +26 -0
- package/node/auth/index.js +2327 -0
- package/node/auth/interfaces.js +39 -0
- package/node/auth/secutiry-poilicy/index.js +279 -0
- package/node/auth/secutiry-poilicy/interfaces.js +5 -0
- package/node/connectivity/index.js +201 -0
- package/node/connectivity/interfaces.js +5 -0
- package/node/constants.js +177 -0
- package/node/error.js +50 -0
- package/node/fetch.js +589 -0
- package/node/index.js +359 -0
- package/node/interfaces.js +5 -0
- package/node/jwt.js +125 -0
- package/node/metadata/index.js +188 -0
- package/node/metadata/interfaces.js +5 -0
- package/node/notifications/index.js +115 -0
- package/node/notifications/interfaces.js +5 -0
- package/node/reports/index.js +205 -0
- package/node/reports/interfaces.js +5 -0
- package/node/roles/index.js +209 -0
- package/node/roles/interfaces.js +5 -0
- package/node/routers.js +13 -0
- package/node/sub-tenants/index.js +153 -0
- package/node/sub-tenants/interfaces.js +5 -0
- package/node/subscriptions/enums.js +39 -0
- package/node/subscriptions/index.js +135 -0
- package/node/subscriptions/interfaces.js +18 -0
- package/node/subscriptions/invoices.js +88 -0
- package/node/subscriptions/managedSubscriptions.js +135 -0
- package/node/subscriptions/paymentMethods.js +91 -0
- package/node/subscriptions/paymentProviders.js +38 -0
- package/node/subscriptions/plans.js +61 -0
- package/node/subscriptions/providers/index.js +18 -0
- package/node/subscriptions/providers/stripe/index.js +130 -0
- package/node/subscriptions/providers/stripe/interfaces.js +5 -0
- package/node/subscriptions/subscriptions.js +135 -0
- package/node/subscriptions/summaries.js +38 -0
- package/node/subscriptions/tenantConfiguration.js +61 -0
- package/node/teams/index.js +478 -0
- package/node/teams/interfaces.js +5 -0
- package/node/tenants/index.js +107 -0
- package/node/tenants/interfaces.js +5 -0
- package/node/vendor/index.js +40 -0
- package/node/vendor/interfaces.js +5 -0
- package/{dist/es2015/notifications → notifications}/index.d.ts +0 -0
- package/notifications/index.js +99 -0
- package/{dist/es2015/notifications → notifications}/interfaces.d.ts +0 -0
- package/notifications/interfaces.js +1 -0
- package/notifications/package.json +6 -0
- package/package.json +9 -32
- package/{dist/es2015/reports → reports}/index.d.ts +0 -0
- package/reports/index.js +185 -0
- package/{dist/es2015/reports → reports}/interfaces.d.ts +0 -0
- package/reports/interfaces.js +1 -0
- package/reports/package.json +6 -0
- package/{dist/es2015/roles → roles}/index.d.ts +0 -0
- package/roles/index.js +188 -0
- package/{dist/es2015/roles → roles}/interfaces.d.ts +0 -0
- package/roles/interfaces.js +1 -0
- package/roles/package.json +6 -0
- package/{dist/es2015/routers.d.ts → routers.d.ts} +0 -0
- package/routers.js +3 -0
- package/{dist/es2015/sub-tenants → sub-tenants}/index.d.ts +0 -0
- package/sub-tenants/index.js +135 -0
- package/{dist/es2015/sub-tenants → sub-tenants}/interfaces.d.ts +0 -0
- package/sub-tenants/interfaces.js +1 -0
- package/sub-tenants/package.json +6 -0
- package/{dist/es2015/subscriptions → subscriptions}/enums.d.ts +0 -0
- package/subscriptions/enums.js +29 -0
- package/{dist/es2015/subscriptions → subscriptions}/index.d.ts +0 -0
- package/{dist/subscriptions/index.d.ts → subscriptions/index.js} +1 -1
- package/{dist/es2015/subscriptions → subscriptions}/interfaces.d.ts +0 -0
- package/{dist/es2015/subscriptions → subscriptions}/interfaces.js +1 -1
- package/{dist/es2015/subscriptions → subscriptions}/invoices.d.ts +0 -0
- package/subscriptions/invoices.js +73 -0
- package/{dist/es2015/subscriptions → subscriptions}/managedSubscriptions.d.ts +0 -0
- package/subscriptions/managedSubscriptions.js +118 -0
- package/subscriptions/package.json +6 -0
- package/{dist/es2015/subscriptions → subscriptions}/paymentMethods.d.ts +0 -0
- package/subscriptions/paymentMethods.js +75 -0
- package/{dist/es2015/subscriptions → subscriptions}/paymentProviders.d.ts +0 -0
- package/subscriptions/paymentProviders.js +25 -0
- package/{dist/es2015/subscriptions → subscriptions}/plans.d.ts +0 -0
- package/subscriptions/plans.js +47 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/index.d.ts +0 -0
- package/subscriptions/providers/index.js +1 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/stripe/index.d.ts +0 -0
- package/subscriptions/providers/stripe/index.js +113 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/stripe/interfaces.d.ts +0 -0
- package/subscriptions/providers/stripe/interfaces.js +1 -0
- package/{dist/es2015/subscriptions → subscriptions}/subscriptions.d.ts +0 -0
- package/subscriptions/subscriptions.js +118 -0
- package/{dist/es2015/subscriptions → subscriptions}/summaries.d.ts +0 -0
- package/subscriptions/summaries.js +25 -0
- package/{dist/es2015/subscriptions → subscriptions}/tenantConfiguration.d.ts +0 -0
- package/subscriptions/tenantConfiguration.js +47 -0
- package/{dist/es2015/teams → teams}/index.d.ts +0 -0
- package/teams/index.js +445 -0
- package/{dist/es2015/teams → teams}/interfaces.d.ts +0 -0
- package/teams/interfaces.js +1 -0
- package/teams/package.json +6 -0
- package/{dist/es2015/tenants → tenants}/index.d.ts +0 -0
- package/tenants/index.js +91 -0
- package/{dist/es2015/tenants → tenants}/interfaces.d.ts +0 -0
- package/tenants/interfaces.js +1 -0
- package/tenants/package.json +6 -0
- package/{dist/es2015/vendor → vendor}/index.d.ts +0 -0
- package/vendor/index.js +27 -0
- package/{dist/es2015/vendor → vendor}/interfaces.d.ts +0 -0
- package/vendor/interfaces.js +1 -0
- package/vendor/package.json +6 -0
- package/CHANGELOG.md +0 -211
- package/README.md +0 -139
- package/SECURITY.md +0 -13
- package/dist/ContextHolder.js +0 -69
- package/dist/ContextHolder.js.map +0 -1
- package/dist/account-settings/index.js +0 -33
- package/dist/account-settings/index.js.map +0 -1
- package/dist/account-settings/interfaces.js +0 -3
- package/dist/account-settings/interfaces.js.map +0 -1
- package/dist/audits/index.js +0 -59
- package/dist/audits/index.js.map +0 -1
- package/dist/audits/interfaces.js +0 -3
- package/dist/audits/interfaces.js.map +0 -1
- package/dist/auth/enums.js +0 -19
- package/dist/auth/enums.js.map +0 -1
- package/dist/auth/index.js +0 -1042
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/interfaces.js +0 -29
- package/dist/auth/interfaces.js.map +0 -1
- package/dist/auth/secutiry-poilicy/index.js +0 -134
- package/dist/auth/secutiry-poilicy/index.js.map +0 -1
- package/dist/auth/secutiry-poilicy/interfaces.js +0 -3
- package/dist/auth/secutiry-poilicy/interfaces.js.map +0 -1
- package/dist/connectivity/index.js +0 -158
- package/dist/connectivity/index.js.map +0 -1
- package/dist/connectivity/interfaces.js +0 -3
- package/dist/connectivity/interfaces.js.map +0 -1
- package/dist/constants.js +0 -174
- package/dist/constants.js.map +0 -1
- package/dist/error.js +0 -14
- package/dist/error.js.map +0 -1
- package/dist/es2015/ContextHolder.d.ts +0 -29
- package/dist/es2015/ContextHolder.js +0 -65
- package/dist/es2015/ContextHolder.js.map +0 -1
- package/dist/es2015/account-settings/index.d.ts +0 -7
- package/dist/es2015/account-settings/index.js +0 -28
- package/dist/es2015/account-settings/index.js.map +0 -1
- package/dist/es2015/account-settings/interfaces.d.ts +0 -9
- package/dist/es2015/account-settings/interfaces.js +0 -2
- package/dist/es2015/account-settings/interfaces.js.map +0 -1
- package/dist/es2015/audits/index.d.ts +0 -16
- package/dist/es2015/audits/index.js +0 -53
- package/dist/es2015/audits/index.js.map +0 -1
- package/dist/es2015/audits/interfaces.d.ts +0 -61
- package/dist/es2015/audits/interfaces.js +0 -2
- package/dist/es2015/audits/interfaces.js.map +0 -1
- package/dist/es2015/auth/enums.d.ts +0 -13
- package/dist/es2015/auth/enums.js +0 -16
- package/dist/es2015/auth/enums.js.map +0 -1
- package/dist/es2015/auth/index.d.ts +0 -447
- package/dist/es2015/auth/index.js +0 -943
- package/dist/es2015/auth/index.js.map +0 -1
- package/dist/es2015/auth/interfaces.d.ts +0 -430
- package/dist/es2015/auth/interfaces.js +0 -16
- package/dist/es2015/auth/interfaces.js.map +0 -1
- package/dist/es2015/auth/secutiry-poilicy/index.d.ts +0 -41
- package/dist/es2015/auth/secutiry-poilicy/index.js +0 -121
- package/dist/es2015/auth/secutiry-poilicy/index.js.map +0 -1
- package/dist/es2015/auth/secutiry-poilicy/interfaces.d.ts +0 -70
- package/dist/es2015/auth/secutiry-poilicy/interfaces.js +0 -2
- package/dist/es2015/auth/secutiry-poilicy/interfaces.js.map +0 -1
- package/dist/es2015/connectivity/index.d.ts +0 -27
- package/dist/es2015/connectivity/index.js +0 -129
- package/dist/es2015/connectivity/index.js.map +0 -1
- package/dist/es2015/connectivity/interfaces.d.ts +0 -95
- package/dist/es2015/connectivity/interfaces.js +0 -2
- package/dist/es2015/connectivity/interfaces.js.map +0 -1
- package/dist/es2015/constants.d.ts +0 -170
- package/dist/es2015/constants.js +0 -171
- package/dist/es2015/constants.js.map +0 -1
- package/dist/es2015/error.d.ts +0 -5
- package/dist/es2015/error.js +0 -10
- package/dist/es2015/error.js.map +0 -1
- package/dist/es2015/fetch.d.ts +0 -19
- package/dist/es2015/fetch.js +0 -177
- package/dist/es2015/fetch.js.map +0 -1
- package/dist/es2015/index.js.map +0 -1
- package/dist/es2015/interfaces.js +0 -2
- package/dist/es2015/interfaces.js.map +0 -1
- package/dist/es2015/jwt.js +0 -83
- package/dist/es2015/jwt.js.map +0 -1
- package/dist/es2015/metadata/index.js +0 -32
- package/dist/es2015/metadata/index.js.map +0 -1
- package/dist/es2015/metadata/interfaces.js +0 -2
- package/dist/es2015/metadata/interfaces.js.map +0 -1
- package/dist/es2015/notifications/index.js +0 -49
- package/dist/es2015/notifications/index.js.map +0 -1
- package/dist/es2015/notifications/interfaces.js +0 -2
- package/dist/es2015/notifications/interfaces.js.map +0 -1
- package/dist/es2015/reports/index.js +0 -118
- package/dist/es2015/reports/index.js.map +0 -1
- package/dist/es2015/reports/interfaces.js +0 -2
- package/dist/es2015/reports/interfaces.js.map +0 -1
- package/dist/es2015/roles/index.js +0 -99
- package/dist/es2015/roles/index.js.map +0 -1
- package/dist/es2015/roles/interfaces.js +0 -2
- package/dist/es2015/roles/interfaces.js.map +0 -1
- package/dist/es2015/routers.js +0 -17
- package/dist/es2015/routers.js.map +0 -1
- package/dist/es2015/sub-tenants/index.js +0 -42
- package/dist/es2015/sub-tenants/index.js.map +0 -1
- package/dist/es2015/sub-tenants/interfaces.js +0 -2
- package/dist/es2015/sub-tenants/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/enums.js +0 -23
- package/dist/es2015/subscriptions/enums.js.map +0 -1
- package/dist/es2015/subscriptions/index.js +0 -11
- package/dist/es2015/subscriptions/index.js.map +0 -1
- package/dist/es2015/subscriptions/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/invoices.js +0 -43
- package/dist/es2015/subscriptions/invoices.js.map +0 -1
- package/dist/es2015/subscriptions/managedSubscriptions.js +0 -51
- package/dist/es2015/subscriptions/managedSubscriptions.js.map +0 -1
- package/dist/es2015/subscriptions/paymentMethods.js +0 -55
- package/dist/es2015/subscriptions/paymentMethods.js.map +0 -1
- package/dist/es2015/subscriptions/paymentProviders.js +0 -21
- package/dist/es2015/subscriptions/paymentProviders.js.map +0 -1
- package/dist/es2015/subscriptions/plans.js +0 -30
- package/dist/es2015/subscriptions/plans.js.map +0 -1
- package/dist/es2015/subscriptions/providers/index.js +0 -2
- package/dist/es2015/subscriptions/providers/index.js.map +0 -1
- package/dist/es2015/subscriptions/providers/stripe/index.js +0 -57
- package/dist/es2015/subscriptions/providers/stripe/index.js.map +0 -1
- package/dist/es2015/subscriptions/providers/stripe/interfaces.js +0 -2
- package/dist/es2015/subscriptions/providers/stripe/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/subscriptions.js +0 -57
- package/dist/es2015/subscriptions/subscriptions.js.map +0 -1
- package/dist/es2015/subscriptions/summaries.js +0 -21
- package/dist/es2015/subscriptions/summaries.js.map +0 -1
- package/dist/es2015/subscriptions/tenantConfiguration.js +0 -24
- package/dist/es2015/subscriptions/tenantConfiguration.js.map +0 -1
- package/dist/es2015/teams/index.js +0 -228
- package/dist/es2015/teams/index.js.map +0 -1
- package/dist/es2015/teams/interfaces.js +0 -2
- package/dist/es2015/teams/interfaces.js.map +0 -1
- package/dist/es2015/tenants/index.js +0 -57
- package/dist/es2015/tenants/index.js.map +0 -1
- package/dist/es2015/tenants/interfaces.js +0 -2
- package/dist/es2015/tenants/interfaces.js.map +0 -1
- package/dist/es2015/vendor/index.js +0 -23
- package/dist/es2015/vendor/index.js.map +0 -1
- package/dist/es2015/vendor/interfaces.js +0 -2
- package/dist/es2015/vendor/interfaces.js.map +0 -1
- package/dist/fetch.d.ts +0 -19
- package/dist/fetch.js +0 -187
- package/dist/fetch.js.map +0 -1
- package/dist/index.d.ts +0 -83
- package/dist/index.js +0 -98
- package/dist/index.js.map +0 -1
- package/dist/interfaces.d.ts +0 -40
- package/dist/interfaces.js +0 -3
- package/dist/interfaces.js.map +0 -1
- package/dist/jwt.d.ts +0 -13
- package/dist/jwt.js +0 -89
- package/dist/jwt.js.map +0 -1
- package/dist/metadata/index.d.ts +0 -5
- package/dist/metadata/index.js +0 -39
- package/dist/metadata/index.js.map +0 -1
- package/dist/metadata/interfaces.d.ts +0 -46
- package/dist/metadata/interfaces.js +0 -3
- package/dist/metadata/interfaces.js.map +0 -1
- package/dist/notifications/index.d.ts +0 -17
- package/dist/notifications/index.js +0 -56
- package/dist/notifications/index.js.map +0 -1
- package/dist/notifications/interfaces.d.ts +0 -40
- package/dist/notifications/interfaces.js +0 -3
- package/dist/notifications/interfaces.js.map +0 -1
- package/dist/reports/index.d.ts +0 -45
- package/dist/reports/index.js +0 -127
- package/dist/reports/index.js.map +0 -1
- package/dist/reports/interfaces.d.ts +0 -146
- package/dist/reports/interfaces.js +0 -3
- package/dist/reports/interfaces.js.map +0 -1
- package/dist/roles/index.d.ts +0 -34
- package/dist/roles/index.js +0 -110
- package/dist/roles/index.js.map +0 -1
- package/dist/roles/interfaces.d.ts +0 -58
- package/dist/roles/interfaces.js +0 -3
- package/dist/roles/interfaces.js.map +0 -1
- package/dist/routers.d.ts +0 -2
- package/dist/routers.js +0 -20
- package/dist/routers.js.map +0 -1
- package/dist/sub-tenants/index.d.ts +0 -8
- package/dist/sub-tenants/index.js +0 -51
- package/dist/sub-tenants/index.js.map +0 -1
- package/dist/sub-tenants/interfaces.d.ts +0 -87
- package/dist/sub-tenants/interfaces.js +0 -3
- package/dist/sub-tenants/interfaces.js.map +0 -1
- package/dist/subscriptions/enums.d.ts +0 -18
- package/dist/subscriptions/enums.js +0 -26
- package/dist/subscriptions/enums.js.map +0 -1
- package/dist/subscriptions/index.js +0 -23
- package/dist/subscriptions/index.js.map +0 -1
- package/dist/subscriptions/interfaces.d.ts +0 -117
- package/dist/subscriptions/interfaces.js +0 -14
- package/dist/subscriptions/interfaces.js.map +0 -1
- package/dist/subscriptions/invoices.d.ts +0 -13
- package/dist/subscriptions/invoices.js +0 -49
- package/dist/subscriptions/invoices.js.map +0 -1
- package/dist/subscriptions/managedSubscriptions.d.ts +0 -15
- package/dist/subscriptions/managedSubscriptions.js +0 -59
- package/dist/subscriptions/managedSubscriptions.js.map +0 -1
- package/dist/subscriptions/paymentMethods.d.ts +0 -13
- package/dist/subscriptions/paymentMethods.js +0 -61
- package/dist/subscriptions/paymentMethods.js.map +0 -1
- package/dist/subscriptions/paymentProviders.d.ts +0 -5
- package/dist/subscriptions/paymentProviders.js +0 -25
- package/dist/subscriptions/paymentProviders.js.map +0 -1
- package/dist/subscriptions/plans.d.ts +0 -9
- package/dist/subscriptions/plans.js +0 -35
- package/dist/subscriptions/plans.js.map +0 -1
- package/dist/subscriptions/providers/index.d.ts +0 -1
- package/dist/subscriptions/providers/index.js +0 -14
- package/dist/subscriptions/providers/index.js.map +0 -1
- package/dist/subscriptions/providers/stripe/index.d.ts +0 -21
- package/dist/subscriptions/providers/stripe/index.js +0 -65
- package/dist/subscriptions/providers/stripe/index.js.map +0 -1
- package/dist/subscriptions/providers/stripe/interfaces.d.ts +0 -32
- package/dist/subscriptions/providers/stripe/interfaces.js +0 -3
- package/dist/subscriptions/providers/stripe/interfaces.js.map +0 -1
- package/dist/subscriptions/subscriptions.d.ts +0 -21
- package/dist/subscriptions/subscriptions.js +0 -65
- package/dist/subscriptions/subscriptions.js.map +0 -1
- package/dist/subscriptions/summaries.d.ts +0 -5
- package/dist/subscriptions/summaries.js +0 -25
- package/dist/subscriptions/summaries.js.map +0 -1
- package/dist/subscriptions/tenantConfiguration.d.ts +0 -3
- package/dist/subscriptions/tenantConfiguration.js +0 -29
- package/dist/subscriptions/tenantConfiguration.js.map +0 -1
- package/dist/teams/index.d.ts +0 -116
- package/dist/teams/index.js +0 -250
- package/dist/teams/index.js.map +0 -1
- package/dist/teams/interfaces.d.ts +0 -136
- package/dist/teams/interfaces.js +0 -3
- package/dist/teams/interfaces.js.map +0 -1
- package/dist/tenants/index.d.ts +0 -26
- package/dist/tenants/index.js +0 -64
- package/dist/tenants/index.js.map +0 -1
- package/dist/tenants/interfaces.d.ts +0 -30
- package/dist/tenants/interfaces.js +0 -3
- package/dist/tenants/interfaces.js.map +0 -1
- package/dist/umd/index.js +0 -2891
- package/dist/vendor/index.d.ts +0 -6
- package/dist/vendor/index.js +0 -27
- package/dist/vendor/index.js.map +0 -1
- package/dist/vendor/interfaces.d.ts +0 -6
- package/dist/vendor/interfaces.js +0 -3
- package/dist/vendor/interfaces.js.map +0 -1
- package/src/ContextHolder.ts +0 -81
- package/src/account-settings/index.ts +0 -18
- package/src/account-settings/interfaces.ts +0 -10
- package/src/audits/index.ts +0 -35
- package/src/audits/interfaces.ts +0 -70
- package/src/auth/enums.ts +0 -17
- package/src/auth/index.ts +0 -935
- package/src/auth/interfaces.ts +0 -488
- package/src/auth/secutiry-poilicy/index.ts +0 -109
- package/src/auth/secutiry-poilicy/interfaces.ts +0 -81
- package/src/connectivity/index.ts +0 -160
- package/src/connectivity/interfaces.ts +0 -106
- package/src/error.ts +0 -13
- package/src/fetch.ts +0 -220
- package/src/index.ts +0 -86
- package/src/interfaces.ts +0 -47
- package/src/jwt.ts +0 -92
- package/src/metadata/index.ts +0 -24
- package/src/metadata/interfaces.ts +0 -51
- package/src/notifications/index.ts +0 -40
- package/src/notifications/interfaces.ts +0 -45
- package/src/reports/index.ts +0 -116
- package/src/reports/interfaces.ts +0 -167
- package/src/roles/index.ts +0 -80
- package/src/roles/interfaces.ts +0 -64
- package/src/routers.ts +0 -18
- package/src/sub-tenants/index.ts +0 -49
- package/src/sub-tenants/interfaces.ts +0 -100
- package/src/subscriptions/enums.ts +0 -22
- package/src/subscriptions/index.ts +0 -10
- package/src/subscriptions/interfaces.ts +0 -144
- package/src/subscriptions/invoices.ts +0 -42
- package/src/subscriptions/managedSubscriptions.ts +0 -53
- package/src/subscriptions/paymentMethods.ts +0 -47
- package/src/subscriptions/paymentProviders.ts +0 -13
- package/src/subscriptions/plans.ts +0 -19
- package/src/subscriptions/providers/index.ts +0 -1
- package/src/subscriptions/providers/stripe/index.ts +0 -56
- package/src/subscriptions/providers/stripe/interfaces.ts +0 -39
- package/src/subscriptions/subscriptions.ts +0 -63
- package/src/subscriptions/summaries.ts +0 -11
- package/src/subscriptions/tenantConfiguration.ts +0 -23
- package/src/teams/index.ts +0 -224
- package/src/teams/interfaces.ts +0 -163
- package/src/tenants/index.ts +0 -46
- package/src/tenants/interfaces.ts +0 -33
- package/src/vendor/index.ts +0 -12
- package/src/vendor/interfaces.ts +0 -6
- package/yarn-error.log +0 -518
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.addUserRolesForSubTenants = addUserRolesForSubTenants;
|
|
9
|
+
exports.addUserToTenantAndSubTenants = addUserToTenantAndSubTenants;
|
|
10
|
+
exports.loadAllUsers = loadAllUsers;
|
|
11
|
+
exports.removeUserFromTenantAndSubTenants = removeUserFromTenantAndSubTenants;
|
|
12
|
+
exports.removeUserRolesFromSubTenants = removeUserRolesFromSubTenants;
|
|
13
|
+
exports.setUserRolesForSubTenants = setUserRolesForSubTenants;
|
|
14
|
+
|
|
15
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
16
|
+
|
|
17
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
18
|
+
|
|
19
|
+
var _fetch = require("../fetch");
|
|
20
|
+
|
|
21
|
+
var _constants = require("../constants");
|
|
22
|
+
|
|
23
|
+
function loadAllUsers(_x) {
|
|
24
|
+
return _loadAllUsers.apply(this, arguments);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function _loadAllUsers() {
|
|
28
|
+
_loadAllUsers = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(params) {
|
|
29
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
30
|
+
while (1) {
|
|
31
|
+
switch (_context.prev = _context.next) {
|
|
32
|
+
case 0:
|
|
33
|
+
return _context.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.subTenants.v1, params));
|
|
34
|
+
|
|
35
|
+
case 1:
|
|
36
|
+
case "end":
|
|
37
|
+
return _context.stop();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, _callee);
|
|
41
|
+
}));
|
|
42
|
+
return _loadAllUsers.apply(this, arguments);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function addUserToTenantAndSubTenants(_x2) {
|
|
46
|
+
return _addUserToTenantAndSubTenants.apply(this, arguments);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _addUserToTenantAndSubTenants() {
|
|
50
|
+
_addUserToTenantAndSubTenants = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2(body) {
|
|
51
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
52
|
+
while (1) {
|
|
53
|
+
switch (_context2.prev = _context2.next) {
|
|
54
|
+
case 0:
|
|
55
|
+
return _context2.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.subTenants.v1, body));
|
|
56
|
+
|
|
57
|
+
case 1:
|
|
58
|
+
case "end":
|
|
59
|
+
return _context2.stop();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}, _callee2);
|
|
63
|
+
}));
|
|
64
|
+
return _addUserToTenantAndSubTenants.apply(this, arguments);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function removeUserFromTenantAndSubTenants(_x3) {
|
|
68
|
+
return _removeUserFromTenantAndSubTenants.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function _removeUserFromTenantAndSubTenants() {
|
|
72
|
+
_removeUserFromTenantAndSubTenants = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3(body) {
|
|
73
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
74
|
+
while (1) {
|
|
75
|
+
switch (_context3.prev = _context3.next) {
|
|
76
|
+
case 0:
|
|
77
|
+
return _context3.abrupt("return", (0, _fetch.Delete)(_constants.urls.identity.subTenants.v1, body));
|
|
78
|
+
|
|
79
|
+
case 1:
|
|
80
|
+
case "end":
|
|
81
|
+
return _context3.stop();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, _callee3);
|
|
85
|
+
}));
|
|
86
|
+
return _removeUserFromTenantAndSubTenants.apply(this, arguments);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function addUserRolesForSubTenants(_x4, _x5) {
|
|
90
|
+
return _addUserRolesForSubTenants.apply(this, arguments);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function _addUserRolesForSubTenants() {
|
|
94
|
+
_addUserRolesForSubTenants = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee4(userId, body) {
|
|
95
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
96
|
+
while (1) {
|
|
97
|
+
switch (_context4.prev = _context4.next) {
|
|
98
|
+
case 0:
|
|
99
|
+
return _context4.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.subTenants.v1, "/").concat(userId, "/roles"), body));
|
|
100
|
+
|
|
101
|
+
case 1:
|
|
102
|
+
case "end":
|
|
103
|
+
return _context4.stop();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}, _callee4);
|
|
107
|
+
}));
|
|
108
|
+
return _addUserRolesForSubTenants.apply(this, arguments);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function removeUserRolesFromSubTenants(_x6, _x7) {
|
|
112
|
+
return _removeUserRolesFromSubTenants.apply(this, arguments);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function _removeUserRolesFromSubTenants() {
|
|
116
|
+
_removeUserRolesFromSubTenants = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee5(userId, body) {
|
|
117
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
118
|
+
while (1) {
|
|
119
|
+
switch (_context5.prev = _context5.next) {
|
|
120
|
+
case 0:
|
|
121
|
+
return _context5.abrupt("return", (0, _fetch.Delete)("".concat(_constants.urls.identity.subTenants.v1, "/").concat(userId, "/roles"), body));
|
|
122
|
+
|
|
123
|
+
case 1:
|
|
124
|
+
case "end":
|
|
125
|
+
return _context5.stop();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}, _callee5);
|
|
129
|
+
}));
|
|
130
|
+
return _removeUserRolesFromSubTenants.apply(this, arguments);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function setUserRolesForSubTenants(_x8, _x9) {
|
|
134
|
+
return _setUserRolesForSubTenants.apply(this, arguments);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function _setUserRolesForSubTenants() {
|
|
138
|
+
_setUserRolesForSubTenants = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee6(userId, body) {
|
|
139
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
140
|
+
while (1) {
|
|
141
|
+
switch (_context6.prev = _context6.next) {
|
|
142
|
+
case 0:
|
|
143
|
+
return _context6.abrupt("return", (0, _fetch.Patch)("".concat(_constants.urls.identity.subTenants.v1, "/").concat(userId, "/roles"), body));
|
|
144
|
+
|
|
145
|
+
case 1:
|
|
146
|
+
case "end":
|
|
147
|
+
return _context6.stop();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}, _callee6);
|
|
151
|
+
}));
|
|
152
|
+
return _setUserRolesForSubTenants.apply(this, arguments);
|
|
153
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ProviderType = exports.PaymentMethodType = exports.ISubscriptionStatus = exports.ISubscriptionCancellationPolicy = void 0;
|
|
7
|
+
var ISubscriptionStatus;
|
|
8
|
+
exports.ISubscriptionStatus = ISubscriptionStatus;
|
|
9
|
+
|
|
10
|
+
(function (ISubscriptionStatus) {
|
|
11
|
+
ISubscriptionStatus["ACTIVE"] = "active";
|
|
12
|
+
ISubscriptionStatus["CANCELED"] = "canceled";
|
|
13
|
+
ISubscriptionStatus["INCOMPLETE"] = "incomplete";
|
|
14
|
+
ISubscriptionStatus["EXPIRED"] = "expired";
|
|
15
|
+
ISubscriptionStatus["TRIALING"] = "trialing";
|
|
16
|
+
ISubscriptionStatus["TRIAL_ENDED"] = "trialEnded";
|
|
17
|
+
})(ISubscriptionStatus || (exports.ISubscriptionStatus = ISubscriptionStatus = {}));
|
|
18
|
+
|
|
19
|
+
var PaymentMethodType;
|
|
20
|
+
exports.PaymentMethodType = PaymentMethodType;
|
|
21
|
+
|
|
22
|
+
(function (PaymentMethodType) {
|
|
23
|
+
PaymentMethodType["UNKNWON"] = "unknown";
|
|
24
|
+
PaymentMethodType["CARD"] = "card";
|
|
25
|
+
})(PaymentMethodType || (exports.PaymentMethodType = PaymentMethodType = {}));
|
|
26
|
+
|
|
27
|
+
var ISubscriptionCancellationPolicy;
|
|
28
|
+
exports.ISubscriptionCancellationPolicy = ISubscriptionCancellationPolicy;
|
|
29
|
+
|
|
30
|
+
(function (ISubscriptionCancellationPolicy) {
|
|
31
|
+
ISubscriptionCancellationPolicy["AT_PERIOD_END"] = "atPeriodEnd";
|
|
32
|
+
})(ISubscriptionCancellationPolicy || (exports.ISubscriptionCancellationPolicy = ISubscriptionCancellationPolicy = {}));
|
|
33
|
+
|
|
34
|
+
var ProviderType;
|
|
35
|
+
exports.ProviderType = ProviderType;
|
|
36
|
+
|
|
37
|
+
(function (ProviderType) {
|
|
38
|
+
ProviderType["Stripe"] = "Stripe";
|
|
39
|
+
})(ProviderType || (exports.ProviderType = ProviderType = {}));
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _subscriptions = require("./subscriptions");
|
|
8
|
+
|
|
9
|
+
Object.keys(_subscriptions).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _subscriptions[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _subscriptions[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
var _managedSubscriptions = require("./managedSubscriptions");
|
|
21
|
+
|
|
22
|
+
Object.keys(_managedSubscriptions).forEach(function (key) {
|
|
23
|
+
if (key === "default" || key === "__esModule") return;
|
|
24
|
+
if (key in exports && exports[key] === _managedSubscriptions[key]) return;
|
|
25
|
+
Object.defineProperty(exports, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return _managedSubscriptions[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _plans = require("./plans");
|
|
34
|
+
|
|
35
|
+
Object.keys(_plans).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (key in exports && exports[key] === _plans[key]) return;
|
|
38
|
+
Object.defineProperty(exports, key, {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _plans[key];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var _invoices = require("./invoices");
|
|
47
|
+
|
|
48
|
+
Object.keys(_invoices).forEach(function (key) {
|
|
49
|
+
if (key === "default" || key === "__esModule") return;
|
|
50
|
+
if (key in exports && exports[key] === _invoices[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function get() {
|
|
54
|
+
return _invoices[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var _paymentMethods = require("./paymentMethods");
|
|
60
|
+
|
|
61
|
+
Object.keys(_paymentMethods).forEach(function (key) {
|
|
62
|
+
if (key === "default" || key === "__esModule") return;
|
|
63
|
+
if (key in exports && exports[key] === _paymentMethods[key]) return;
|
|
64
|
+
Object.defineProperty(exports, key, {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function get() {
|
|
67
|
+
return _paymentMethods[key];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
var _providers = require("./providers");
|
|
73
|
+
|
|
74
|
+
Object.keys(_providers).forEach(function (key) {
|
|
75
|
+
if (key === "default" || key === "__esModule") return;
|
|
76
|
+
if (key in exports && exports[key] === _providers[key]) return;
|
|
77
|
+
Object.defineProperty(exports, key, {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function get() {
|
|
80
|
+
return _providers[key];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
var _summaries = require("./summaries");
|
|
86
|
+
|
|
87
|
+
Object.keys(_summaries).forEach(function (key) {
|
|
88
|
+
if (key === "default" || key === "__esModule") return;
|
|
89
|
+
if (key in exports && exports[key] === _summaries[key]) return;
|
|
90
|
+
Object.defineProperty(exports, key, {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _summaries[key];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
var _tenantConfiguration = require("./tenantConfiguration");
|
|
99
|
+
|
|
100
|
+
Object.keys(_tenantConfiguration).forEach(function (key) {
|
|
101
|
+
if (key === "default" || key === "__esModule") return;
|
|
102
|
+
if (key in exports && exports[key] === _tenantConfiguration[key]) return;
|
|
103
|
+
Object.defineProperty(exports, key, {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function get() {
|
|
106
|
+
return _tenantConfiguration[key];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
var _paymentProviders = require("./paymentProviders");
|
|
112
|
+
|
|
113
|
+
Object.keys(_paymentProviders).forEach(function (key) {
|
|
114
|
+
if (key === "default" || key === "__esModule") return;
|
|
115
|
+
if (key in exports && exports[key] === _paymentProviders[key]) return;
|
|
116
|
+
Object.defineProperty(exports, key, {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function get() {
|
|
119
|
+
return _paymentProviders[key];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
var _enums = require("./enums");
|
|
125
|
+
|
|
126
|
+
Object.keys(_enums).forEach(function (key) {
|
|
127
|
+
if (key === "default" || key === "__esModule") return;
|
|
128
|
+
if (key in exports && exports[key] === _enums[key]) return;
|
|
129
|
+
Object.defineProperty(exports, key, {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function get() {
|
|
132
|
+
return _enums[key];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _interfaces = require("./providers/stripe/interfaces");
|
|
8
|
+
|
|
9
|
+
Object.keys(_interfaces).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _interfaces[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _interfaces[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getSubscriptionInvoice = getSubscriptionInvoice;
|
|
9
|
+
exports.getSubscriptionInvoicePdf = getSubscriptionInvoicePdf;
|
|
10
|
+
exports.getSubscriptionInvoices = getSubscriptionInvoices;
|
|
11
|
+
|
|
12
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
+
|
|
14
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
|
+
|
|
16
|
+
var _fetch = require("../fetch");
|
|
17
|
+
|
|
18
|
+
var _constants = require("../constants");
|
|
19
|
+
|
|
20
|
+
function getSubscriptionInvoices() {
|
|
21
|
+
return _getSubscriptionInvoices.apply(this, arguments);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function _getSubscriptionInvoices() {
|
|
25
|
+
_getSubscriptionInvoices = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee() {
|
|
26
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
27
|
+
while (1) {
|
|
28
|
+
switch (_context.prev = _context.next) {
|
|
29
|
+
case 0:
|
|
30
|
+
return _context.abrupt("return", (0, _fetch.Get)(_constants.urls.subscriptions.billing.invoices.v1));
|
|
31
|
+
|
|
32
|
+
case 1:
|
|
33
|
+
case "end":
|
|
34
|
+
return _context.stop();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, _callee);
|
|
38
|
+
}));
|
|
39
|
+
return _getSubscriptionInvoices.apply(this, arguments);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function getSubscriptionInvoice(_x) {
|
|
43
|
+
return _getSubscriptionInvoice.apply(this, arguments);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function _getSubscriptionInvoice() {
|
|
47
|
+
_getSubscriptionInvoice = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2(invoiceId) {
|
|
48
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
49
|
+
while (1) {
|
|
50
|
+
switch (_context2.prev = _context2.next) {
|
|
51
|
+
case 0:
|
|
52
|
+
return _context2.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.subscriptions.billing.invoices.v1, "/").concat(invoiceId)));
|
|
53
|
+
|
|
54
|
+
case 1:
|
|
55
|
+
case "end":
|
|
56
|
+
return _context2.stop();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}, _callee2);
|
|
60
|
+
}));
|
|
61
|
+
return _getSubscriptionInvoice.apply(this, arguments);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function getSubscriptionInvoicePdf(_x2, _x3) {
|
|
65
|
+
return _getSubscriptionInvoicePdf.apply(this, arguments);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function _getSubscriptionInvoicePdf() {
|
|
69
|
+
_getSubscriptionInvoicePdf = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3(invoiceId, outputFileName) {
|
|
70
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
71
|
+
while (1) {
|
|
72
|
+
switch (_context3.prev = _context3.next) {
|
|
73
|
+
case 0:
|
|
74
|
+
return _context3.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.subscriptions.billing.invoices.v1, "/").concat(invoiceId, "/pdf"), {
|
|
75
|
+
outputFileName: outputFileName
|
|
76
|
+
}, {
|
|
77
|
+
responseType: "blob"
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
case 1:
|
|
81
|
+
case "end":
|
|
82
|
+
return _context3.stop();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, _callee3);
|
|
86
|
+
}));
|
|
87
|
+
return _getSubscriptionInvoicePdf.apply(this, arguments);
|
|
88
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.cancelManagedSubscription = cancelManagedSubscription;
|
|
9
|
+
exports.getManagedSubscription = getManagedSubscription;
|
|
10
|
+
exports.getManagedSubscriptions = getManagedSubscriptions;
|
|
11
|
+
exports.renewManagedSubscription = renewManagedSubscription;
|
|
12
|
+
exports.updateManagedSubscription = updateManagedSubscription;
|
|
13
|
+
|
|
14
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
15
|
+
|
|
16
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
|
+
|
|
18
|
+
var _fetch = require("../fetch");
|
|
19
|
+
|
|
20
|
+
var _constants = require("../constants");
|
|
21
|
+
|
|
22
|
+
function getManagedSubscription(_x) {
|
|
23
|
+
return _getManagedSubscription.apply(this, arguments);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function _getManagedSubscription() {
|
|
27
|
+
_getManagedSubscription = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(subscriptionId) {
|
|
28
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
29
|
+
while (1) {
|
|
30
|
+
switch (_context.prev = _context.next) {
|
|
31
|
+
case 0:
|
|
32
|
+
return _context.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.subscriptions.managedSubscriptions.v1, "/").concat(subscriptionId)));
|
|
33
|
+
|
|
34
|
+
case 1:
|
|
35
|
+
case "end":
|
|
36
|
+
return _context.stop();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, _callee);
|
|
40
|
+
}));
|
|
41
|
+
return _getManagedSubscription.apply(this, arguments);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function getManagedSubscriptions() {
|
|
45
|
+
return _getManagedSubscriptions.apply(this, arguments);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function _getManagedSubscriptions() {
|
|
49
|
+
_getManagedSubscriptions = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2() {
|
|
50
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
51
|
+
while (1) {
|
|
52
|
+
switch (_context2.prev = _context2.next) {
|
|
53
|
+
case 0:
|
|
54
|
+
return _context2.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.subscriptions.managedSubscriptions.v1)));
|
|
55
|
+
|
|
56
|
+
case 1:
|
|
57
|
+
case "end":
|
|
58
|
+
return _context2.stop();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}, _callee2);
|
|
62
|
+
}));
|
|
63
|
+
return _getManagedSubscriptions.apply(this, arguments);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function cancelManagedSubscription(_x2) {
|
|
67
|
+
return _cancelManagedSubscription.apply(this, arguments);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function _cancelManagedSubscription() {
|
|
71
|
+
_cancelManagedSubscription = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3(subscriptionId) {
|
|
72
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
73
|
+
while (1) {
|
|
74
|
+
switch (_context3.prev = _context3.next) {
|
|
75
|
+
case 0:
|
|
76
|
+
return _context3.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.subscriptions.managedSubscriptions.v1, "/").concat(subscriptionId, "/cancellations/"), {}));
|
|
77
|
+
|
|
78
|
+
case 1:
|
|
79
|
+
case "end":
|
|
80
|
+
return _context3.stop();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, _callee3);
|
|
84
|
+
}));
|
|
85
|
+
return _cancelManagedSubscription.apply(this, arguments);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function renewManagedSubscription(_x3) {
|
|
89
|
+
return _renewManagedSubscription.apply(this, arguments);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function _renewManagedSubscription() {
|
|
93
|
+
_renewManagedSubscription = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee4(subscriptionId) {
|
|
94
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
95
|
+
while (1) {
|
|
96
|
+
switch (_context4.prev = _context4.next) {
|
|
97
|
+
case 0:
|
|
98
|
+
return _context4.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.subscriptions.managedSubscriptions.v1, "/").concat(subscriptionId, "/renewals/"), {}));
|
|
99
|
+
|
|
100
|
+
case 1:
|
|
101
|
+
case "end":
|
|
102
|
+
return _context4.stop();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, _callee4);
|
|
106
|
+
}));
|
|
107
|
+
return _renewManagedSubscription.apply(this, arguments);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function updateManagedSubscription(_x4, _x5) {
|
|
111
|
+
return _updateManagedSubscription.apply(this, arguments);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function _updateManagedSubscription() {
|
|
115
|
+
_updateManagedSubscription = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee5(subscriptionId, _ref) {
|
|
116
|
+
var paymentMethodId, planId;
|
|
117
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
118
|
+
while (1) {
|
|
119
|
+
switch (_context5.prev = _context5.next) {
|
|
120
|
+
case 0:
|
|
121
|
+
paymentMethodId = _ref.paymentMethodId, planId = _ref.planId;
|
|
122
|
+
return _context5.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.subscriptions.managedSubscriptions.v1, "/").concat(subscriptionId), {
|
|
123
|
+
paymentMethodId: paymentMethodId,
|
|
124
|
+
planId: planId
|
|
125
|
+
}));
|
|
126
|
+
|
|
127
|
+
case 2:
|
|
128
|
+
case "end":
|
|
129
|
+
return _context5.stop();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}, _callee5);
|
|
133
|
+
}));
|
|
134
|
+
return _updateManagedSubscription.apply(this, arguments);
|
|
135
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getPaymentMethod = getPaymentMethod;
|
|
9
|
+
exports.getPaymentMethods = getPaymentMethods;
|
|
10
|
+
exports.updatePaymentMethodBillingDetails = updatePaymentMethodBillingDetails;
|
|
11
|
+
|
|
12
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
|
+
|
|
18
|
+
var _fetch = require("../fetch");
|
|
19
|
+
|
|
20
|
+
var _constants = require("../constants");
|
|
21
|
+
|
|
22
|
+
function getPaymentMethods() {
|
|
23
|
+
return _getPaymentMethods.apply(this, arguments);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function _getPaymentMethods() {
|
|
27
|
+
_getPaymentMethods = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee() {
|
|
28
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
29
|
+
while (1) {
|
|
30
|
+
switch (_context.prev = _context.next) {
|
|
31
|
+
case 0:
|
|
32
|
+
return _context.abrupt("return", (0, _fetch.Get)(_constants.urls.subscriptions.billing.paymentMethods.v1));
|
|
33
|
+
|
|
34
|
+
case 1:
|
|
35
|
+
case "end":
|
|
36
|
+
return _context.stop();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, _callee);
|
|
40
|
+
}));
|
|
41
|
+
return _getPaymentMethods.apply(this, arguments);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function getPaymentMethod(_x) {
|
|
45
|
+
return _getPaymentMethod.apply(this, arguments);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function _getPaymentMethod() {
|
|
49
|
+
_getPaymentMethod = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2(paymentMethodId) {
|
|
50
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
51
|
+
while (1) {
|
|
52
|
+
switch (_context2.prev = _context2.next) {
|
|
53
|
+
case 0:
|
|
54
|
+
return _context2.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.subscriptions.billing.paymentMethods.v1, "/").concat(paymentMethodId)));
|
|
55
|
+
|
|
56
|
+
case 1:
|
|
57
|
+
case "end":
|
|
58
|
+
return _context2.stop();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}, _callee2);
|
|
62
|
+
}));
|
|
63
|
+
return _getPaymentMethod.apply(this, arguments);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function updatePaymentMethodBillingDetails(_x2, _x3) {
|
|
67
|
+
return _updatePaymentMethodBillingDetails.apply(this, arguments);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function _updatePaymentMethodBillingDetails() {
|
|
71
|
+
_updatePaymentMethodBillingDetails = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3(paymentMethodId, _ref) {
|
|
72
|
+
var email, address;
|
|
73
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
74
|
+
while (1) {
|
|
75
|
+
switch (_context3.prev = _context3.next) {
|
|
76
|
+
case 0:
|
|
77
|
+
email = _ref.email, address = (0, _objectWithoutProperties2["default"])(_ref, ["email"]);
|
|
78
|
+
return _context3.abrupt("return", (0, _fetch.Patch)("".concat(_constants.urls.subscriptions.billing.paymentMethods.v1, "/").concat(paymentMethodId, "/billing-details"), {
|
|
79
|
+
email: email,
|
|
80
|
+
address: address
|
|
81
|
+
}));
|
|
82
|
+
|
|
83
|
+
case 2:
|
|
84
|
+
case "end":
|
|
85
|
+
return _context3.stop();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, _callee3);
|
|
89
|
+
}));
|
|
90
|
+
return _updatePaymentMethodBillingDetails.apply(this, arguments);
|
|
91
|
+
}
|