@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
package/tenants/index.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
import { Get, Put } from '../fetch';
|
|
4
|
+
import { urls } from '../constants';
|
|
5
|
+
export function switchTenant(_x) {
|
|
6
|
+
return _switchTenant.apply(this, arguments);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function _switchTenant() {
|
|
10
|
+
_switchTenant = _asyncToGenerator(_regeneratorRuntime.mark(function _callee(body) {
|
|
11
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
12
|
+
while (1) {
|
|
13
|
+
switch (_context.prev = _context.next) {
|
|
14
|
+
case 0:
|
|
15
|
+
return _context.abrupt("return", Put("".concat(urls.identity.users.v1, "/tenant"), body));
|
|
16
|
+
|
|
17
|
+
case 1:
|
|
18
|
+
case "end":
|
|
19
|
+
return _context.stop();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, _callee);
|
|
23
|
+
}));
|
|
24
|
+
return _switchTenant.apply(this, arguments);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function getTenants() {
|
|
28
|
+
return _getTenants.apply(this, arguments);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _getTenants() {
|
|
32
|
+
_getTenants = _asyncToGenerator(_regeneratorRuntime.mark(function _callee2() {
|
|
33
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
34
|
+
while (1) {
|
|
35
|
+
switch (_context2.prev = _context2.next) {
|
|
36
|
+
case 0:
|
|
37
|
+
return _context2.abrupt("return", Get("".concat(urls.identity.users.v2, "/me/tenants")));
|
|
38
|
+
|
|
39
|
+
case 1:
|
|
40
|
+
case "end":
|
|
41
|
+
return _context2.stop();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, _callee2);
|
|
45
|
+
}));
|
|
46
|
+
return _getTenants.apply(this, arguments);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function getSubTenants() {
|
|
50
|
+
return _getSubTenants.apply(this, arguments);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function _getSubTenants() {
|
|
54
|
+
_getSubTenants = _asyncToGenerator(_regeneratorRuntime.mark(function _callee3() {
|
|
55
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
56
|
+
while (1) {
|
|
57
|
+
switch (_context3.prev = _context3.next) {
|
|
58
|
+
case 0:
|
|
59
|
+
return _context3.abrupt("return", Get(urls.tenants.hierarchy.v1));
|
|
60
|
+
|
|
61
|
+
case 1:
|
|
62
|
+
case "end":
|
|
63
|
+
return _context3.stop();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, _callee3);
|
|
67
|
+
}));
|
|
68
|
+
return _getSubTenants.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function getSubTenantsAsTree() {
|
|
72
|
+
return _getSubTenantsAsTree.apply(this, arguments);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function _getSubTenantsAsTree() {
|
|
76
|
+
_getSubTenantsAsTree = _asyncToGenerator(_regeneratorRuntime.mark(function _callee4() {
|
|
77
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
78
|
+
while (1) {
|
|
79
|
+
switch (_context4.prev = _context4.next) {
|
|
80
|
+
case 0:
|
|
81
|
+
return _context4.abrupt("return", Get(urls.tenants.hierarchy.tree.v1));
|
|
82
|
+
|
|
83
|
+
case 1:
|
|
84
|
+
case "end":
|
|
85
|
+
return _context4.stop();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, _callee4);
|
|
89
|
+
}));
|
|
90
|
+
return _getSubTenantsAsTree.apply(this, arguments);
|
|
91
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
package/vendor/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
import { Get } from '../fetch';
|
|
4
|
+
import { urls } from '../constants';
|
|
5
|
+
export function getVendorPublicInfo() {
|
|
6
|
+
return _getVendorPublicInfo.apply(this, arguments);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function _getVendorPublicInfo() {
|
|
10
|
+
_getVendorPublicInfo = _asyncToGenerator(_regeneratorRuntime.mark(function _callee() {
|
|
11
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
12
|
+
while (1) {
|
|
13
|
+
switch (_context.prev = _context.next) {
|
|
14
|
+
case 0:
|
|
15
|
+
return _context.abrupt("return", Get("".concat(urls.vendor, "/public")));
|
|
16
|
+
|
|
17
|
+
case 1:
|
|
18
|
+
case "end":
|
|
19
|
+
return _context.stop();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, _callee);
|
|
23
|
+
}));
|
|
24
|
+
return _getVendorPublicInfo.apply(this, arguments);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/CHANGELOG.md
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
### [2.10.90](https://github.com/frontegg/typescript-rest-api/compare/v2.10.89...v2.10.90) (2022-07-11)
|
|
6
|
-
|
|
7
|
-
### [2.10.89](https://github.com/frontegg/typescript-rest-api/compare/v2.10.88...v2.10.89) (2022-07-11)
|
|
8
|
-
|
|
9
|
-
### [2.10.88](https://github.com/frontegg/typescript-rest-api/compare/v2.10.87...v2.10.88) (2022-07-10)
|
|
10
|
-
|
|
11
|
-
### [2.10.87](https://github.com/frontegg/typescript-rest-api/compare/v2.10.86...v2.10.87) (2022-07-06)
|
|
12
|
-
|
|
13
|
-
### [2.10.86](https://github.com/frontegg/typescript-rest-api/compare/v2.10.85...v2.10.86) (2022-07-03)
|
|
14
|
-
|
|
15
|
-
### [2.10.85](https://github.com/frontegg/typescript-rest-api/compare/v2.10.84...v2.10.85) (2022-07-03)
|
|
16
|
-
|
|
17
|
-
### [2.10.84](https://github.com/frontegg/typescript-rest-api/compare/v2.10.83...v2.10.84) (2022-07-01)
|
|
18
|
-
|
|
19
|
-
### [2.10.83](https://github.com/frontegg/typescript-rest-api/compare/v2.10.82...v2.10.83) (2022-06-29)
|
|
20
|
-
|
|
21
|
-
### [2.10.82](https://github.com/frontegg/typescript-rest-api/compare/v2.10.81...v2.10.82) (2022-06-29)
|
|
22
|
-
|
|
23
|
-
### [2.10.81](https://github.com/frontegg/typescript-rest-api/compare/v2.10.80...v2.10.81) (2022-06-29)
|
|
24
|
-
|
|
25
|
-
### [2.10.80](https://github.com/frontegg/typescript-rest-api/compare/v2.10.79...v2.10.80) (2022-06-28)
|
|
26
|
-
|
|
27
|
-
### [2.10.79](https://github.com/frontegg/typescript-rest-api/compare/v2.10.78...v2.10.79) (2022-06-27)
|
|
28
|
-
|
|
29
|
-
### [2.10.78](https://github.com/frontegg/typescript-rest-api/compare/v2.10.77...v2.10.78) (2022-06-26)
|
|
30
|
-
|
|
31
|
-
### [2.10.77](https://github.com/frontegg/typescript-rest-api/compare/v2.10.76...v2.10.77) (2022-06-21)
|
|
32
|
-
|
|
33
|
-
### [2.10.76](https://github.com/frontegg/typescript-rest-api/compare/v2.10.75...v2.10.76) (2022-06-20)
|
|
34
|
-
|
|
35
|
-
### [2.10.75](https://github.com/frontegg/typescript-rest-api/compare/v2.10.74...v2.10.75) (2022-06-19)
|
|
36
|
-
|
|
37
|
-
### [2.10.74](https://github.com/frontegg/typescript-rest-api/compare/v2.10.73...v2.10.74) (2022-06-19)
|
|
38
|
-
|
|
39
|
-
### [2.10.73](https://github.com/frontegg/typescript-rest-api/compare/v2.10.72...v2.10.73) (2022-06-19)
|
|
40
|
-
|
|
41
|
-
### [2.10.72](https://github.com/frontegg/typescript-rest-api/compare/v2.10.71...v2.10.72) (2022-05-31)
|
|
42
|
-
|
|
43
|
-
### [2.10.71](https://github.com/frontegg/typescript-rest-api/compare/v2.10.70...v2.10.71) (2022-05-31)
|
|
44
|
-
|
|
45
|
-
### [2.10.70](https://github.com/frontegg/typescript-rest-api/compare/v2.10.69...v2.10.70) (2022-05-30)
|
|
46
|
-
|
|
47
|
-
### [2.10.69](https://github.com/frontegg/typescript-rest-api/compare/v2.10.68...v2.10.69) (2022-05-30)
|
|
48
|
-
|
|
49
|
-
### [2.10.68](https://github.com/frontegg/typescript-rest-api/compare/v2.10.67...v2.10.68) (2022-05-18)
|
|
50
|
-
|
|
51
|
-
### [2.10.67](https://github.com/frontegg/typescript-rest-api/compare/v2.10.66...v2.10.67) (2022-05-16)
|
|
52
|
-
|
|
53
|
-
### [2.10.66](https://github.com/frontegg/typescript-rest-api/compare/v2.10.65...v2.10.66) (2022-05-02)
|
|
54
|
-
|
|
55
|
-
### [2.10.65](https://github.com/frontegg/typescript-rest-api/compare/v2.10.64...v2.10.65) (2022-05-01)
|
|
56
|
-
|
|
57
|
-
### [2.10.64](https://github.com/frontegg/typescript-rest-api/compare/v2.10.63...v2.10.64) (2022-04-21)
|
|
58
|
-
|
|
59
|
-
### [2.10.63](https://github.com/frontegg/typescript-rest-api/compare/v2.10.62...v2.10.63) (2022-04-20)
|
|
60
|
-
|
|
61
|
-
### [2.10.62](https://github.com/frontegg/typescript-rest-api/compare/v2.10.61...v2.10.62) (2022-04-19)
|
|
62
|
-
|
|
63
|
-
### [2.10.61](https://github.com/frontegg/typescript-rest-api/compare/v2.10.60...v2.10.61) (2022-02-27)
|
|
64
|
-
|
|
65
|
-
### [2.10.60](https://github.com/frontegg/typescript-rest-api/compare/v2.10.59...v2.10.60) (2022-02-24)
|
|
66
|
-
|
|
67
|
-
### [2.10.59](https://github.com/frontegg/typescript-rest-api/compare/v2.10.58...v2.10.59) (2022-02-24)
|
|
68
|
-
|
|
69
|
-
### [2.10.58](https://github.com/frontegg/typescript-rest-api/compare/v2.10.57...v2.10.58) (2022-02-22)
|
|
70
|
-
|
|
71
|
-
### [2.10.57](https://github.com/frontegg/typescript-rest-api/compare/v2.10.56...v2.10.57) (2022-02-20)
|
|
72
|
-
|
|
73
|
-
### [2.10.56](https://github.com/frontegg/typescript-rest-api/compare/v2.10.55...v2.10.56) (2022-02-20)
|
|
74
|
-
|
|
75
|
-
### [2.10.55](https://github.com/frontegg/typescript-rest-api/compare/v2.10.54...v2.10.55) (2022-02-07)
|
|
76
|
-
|
|
77
|
-
### [2.10.54](https://github.com/frontegg/typescript-rest-api/compare/v2.10.53...v2.10.54) (2022-02-07)
|
|
78
|
-
|
|
79
|
-
### [2.10.53](https://github.com/frontegg/typescript-rest-api/compare/v2.10.52...v2.10.53) (2022-02-07)
|
|
80
|
-
|
|
81
|
-
### [2.10.52](https://github.com/frontegg/typescript-rest-api/compare/v2.10.51...v2.10.52) (2022-02-06)
|
|
82
|
-
|
|
83
|
-
### [2.10.51](https://github.com/frontegg/typescript-rest-api/compare/v2.10.50...v2.10.51) (2022-01-07)
|
|
84
|
-
|
|
85
|
-
### [2.10.50](https://github.com/frontegg/typescript-rest-api/compare/v2.10.49...v2.10.50) (2021-12-20)
|
|
86
|
-
|
|
87
|
-
### [2.10.49](https://github.com/frontegg/typescript-rest-api/compare/v2.10.48...v2.10.49) (2021-11-29)
|
|
88
|
-
|
|
89
|
-
### [2.10.48](https://github.com/frontegg/typescript-rest-api/compare/v2.10.47...v2.10.48) (2021-11-29)
|
|
90
|
-
|
|
91
|
-
### [2.10.47](https://github.com/frontegg/typescript-rest-api/compare/v2.10.46...v2.10.47) (2021-11-09)
|
|
92
|
-
|
|
93
|
-
### [2.10.46](https://github.com/frontegg/typescript-rest-api/compare/v2.10.45...v2.10.46) (2021-11-02)
|
|
94
|
-
|
|
95
|
-
### [2.10.45](https://github.com/frontegg/typescript-rest-api/compare/v2.10.44...v2.10.45) (2021-10-27)
|
|
96
|
-
|
|
97
|
-
### [2.10.44](https://github.com/frontegg/typescript-rest-api/compare/v2.10.43...v2.10.44) (2021-10-21)
|
|
98
|
-
|
|
99
|
-
### [2.10.43](https://github.com/frontegg/typescript-rest-api/compare/v2.10.42...v2.10.43) (2021-10-20)
|
|
100
|
-
|
|
101
|
-
### [2.10.42](https://github.com/frontegg/typescript-rest-api/compare/v2.10.41...v2.10.42) (2021-10-20)
|
|
102
|
-
|
|
103
|
-
### [2.10.41](https://github.com/frontegg/typescript-rest-api/compare/v2.10.40...v2.10.41) (2021-10-19)
|
|
104
|
-
|
|
105
|
-
### [2.10.40](https://github.com/frontegg/typescript-rest-api/compare/v2.10.39...v2.10.40) (2021-10-15)
|
|
106
|
-
|
|
107
|
-
### [2.10.39](https://github.com/frontegg/typescript-rest-api/compare/v2.10.38...v2.10.39) (2021-10-14)
|
|
108
|
-
|
|
109
|
-
### [2.10.38](https://github.com/frontegg/typescript-rest-api/compare/v2.10.37...v2.10.38) (2021-10-13)
|
|
110
|
-
|
|
111
|
-
### [2.10.37](https://github.com/frontegg/typescript-rest-api/compare/v2.10.36...v2.10.37) (2021-10-13)
|
|
112
|
-
|
|
113
|
-
### [2.10.36](https://github.com/frontegg/typescript-rest-api/compare/v2.10.35...v2.10.36) (2021-10-12)
|
|
114
|
-
|
|
115
|
-
### [2.10.35](https://github.com/frontegg/typescript-rest-api/compare/v2.10.34...v2.10.35) (2021-10-12)
|
|
116
|
-
|
|
117
|
-
### [2.10.34](https://github.com/frontegg/typescript-rest-api/compare/v2.10.33...v2.10.34) (2021-10-08)
|
|
118
|
-
|
|
119
|
-
### [2.10.33](https://github.com/frontegg/typescript-rest-api/compare/v2.10.32...v2.10.33) (2021-10-06)
|
|
120
|
-
|
|
121
|
-
### [2.10.32](https://github.com/frontegg/typescript-rest-api/compare/v2.10.31...v2.10.32) (2021-10-05)
|
|
122
|
-
|
|
123
|
-
### [2.10.31](https://github.com/frontegg/typescript-rest-api/compare/v2.10.30...v2.10.31) (2021-10-05)
|
|
124
|
-
|
|
125
|
-
### [2.10.30](https://github.com/frontegg/typescript-rest-api/compare/v2.10.29...v2.10.30) (2021-09-30)
|
|
126
|
-
|
|
127
|
-
### [2.10.29](https://github.com/frontegg/typescript-rest-api/compare/v2.10.28...v2.10.29) (2021-09-23)
|
|
128
|
-
|
|
129
|
-
### [2.10.28](https://github.com/frontegg/typescript-rest-api/compare/v2.10.27...v2.10.28) (2021-09-23)
|
|
130
|
-
|
|
131
|
-
### [2.10.27](https://github.com/frontegg/typescript-rest-api/compare/v2.10.26...v2.10.27) (2021-09-22)
|
|
132
|
-
|
|
133
|
-
### [2.10.26](https://github.com/frontegg/typescript-rest-api/compare/v2.10.25...v2.10.26) (2021-09-20)
|
|
134
|
-
|
|
135
|
-
### [2.10.25](https://github.com/frontegg/typescript-rest-api/compare/v2.10.24...v2.10.25) (2021-09-15)
|
|
136
|
-
|
|
137
|
-
### [2.10.24](https://github.com/frontegg/typescript-rest-api/compare/v2.10.23...v2.10.24) (2021-09-14)
|
|
138
|
-
|
|
139
|
-
### [2.10.23](https://github.com/frontegg/typescript-rest-api/compare/v2.10.22...v2.10.23) (2021-09-14)
|
|
140
|
-
|
|
141
|
-
### [2.10.22](https://github.com/frontegg/typescript-rest-api/compare/v2.10.21...v2.10.22) (2021-09-12)
|
|
142
|
-
|
|
143
|
-
### [2.10.21](https://github.com/frontegg/typescript-rest-api/compare/v2.10.20...v2.10.21) (2021-09-05)
|
|
144
|
-
|
|
145
|
-
### [2.10.20](https://github.com/frontegg/typescript-rest-api/compare/v2.10.19...v2.10.20) (2021-09-01)
|
|
146
|
-
|
|
147
|
-
### [2.10.19](https://github.com/frontegg/typescript-rest-api/compare/v2.10.18...v2.10.19) (2021-08-29)
|
|
148
|
-
|
|
149
|
-
### [2.10.18](https://github.com/frontegg/typescript-rest-api/compare/v2.10.17...v2.10.18) (2021-08-26)
|
|
150
|
-
|
|
151
|
-
### [2.10.17](https://github.com/frontegg/typescript-rest-api/compare/v2.10.16...v2.10.17) (2021-08-22)
|
|
152
|
-
|
|
153
|
-
### [2.10.16](https://github.com/frontegg/typescript-rest-api/compare/v2.10.15...v2.10.16) (2021-08-16)
|
|
154
|
-
|
|
155
|
-
### [2.10.15](https://github.com/frontegg/typescript-rest-api/compare/v2.10.14...v2.10.15) (2021-08-09)
|
|
156
|
-
|
|
157
|
-
### [2.10.14](https://github.com/frontegg/typescript-rest-api/compare/v2.10.13...v2.10.14) (2021-08-03)
|
|
158
|
-
|
|
159
|
-
### [2.10.13](https://github.com/frontegg/typescript-rest-api/compare/v2.10.12...v2.10.13) (2021-08-03)
|
|
160
|
-
|
|
161
|
-
### [2.10.12](https://github.com/frontegg/typescript-rest-api/compare/v2.10.11...v2.10.12) (2021-08-03)
|
|
162
|
-
|
|
163
|
-
### [2.10.11](https://github.com/frontegg/typescript-rest-api/compare/v2.10.10...v2.10.11) (2021-08-03)
|
|
164
|
-
|
|
165
|
-
### [2.10.10](https://github.com/frontegg/typescript-rest-api/compare/v2.10.9...v2.10.10) (2021-07-29)
|
|
166
|
-
|
|
167
|
-
### [2.10.9](https://github.com/frontegg/typescript-rest-api/compare/v2.10.8...v2.10.9) (2021-07-28)
|
|
168
|
-
|
|
169
|
-
### [2.10.8](https://github.com/frontegg/typescript-rest-api/compare/v2.10.7...v2.10.8) (2021-07-28)
|
|
170
|
-
|
|
171
|
-
### [2.10.7](https://github.com/frontegg/typescript-rest-api/compare/v2.10.6...v2.10.7) (2021-07-27)
|
|
172
|
-
|
|
173
|
-
### [2.10.6](https://github.com/frontegg/typescript-rest-api/compare/v2.10.5...v2.10.6) (2021-07-27)
|
|
174
|
-
|
|
175
|
-
### [2.10.5](https://github.com/frontegg/typescript-rest-api/compare/v2.10.4...v2.10.5) (2021-07-26)
|
|
176
|
-
|
|
177
|
-
### [2.10.4](https://github.com/frontegg/typescript-rest-api/compare/v2.10.3...v2.10.4) (2021-07-25)
|
|
178
|
-
|
|
179
|
-
### [2.10.3](https://github.com/frontegg/typescript-rest-api/compare/v2.10.2...v2.10.3) (2021-07-25)
|
|
180
|
-
|
|
181
|
-
### [2.10.2](https://github.com/frontegg/typescript-rest-api/compare/v2.10.1...v2.10.2) (2021-07-25)
|
|
182
|
-
|
|
183
|
-
### [2.10.1](https://github.com/frontegg/typescript-rest-api/compare/v2.10.0...v2.10.1) (2021-07-14)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
### Bug Fixes
|
|
187
|
-
|
|
188
|
-
* updating serialize-javascript by replacing uglify with terser ([5b0e3d6](https://github.com/frontegg/typescript-rest-api/commit/5b0e3d6830e312abe4044ea28eeb91540cabc2e7))
|
|
189
|
-
|
|
190
|
-
## 2.10.0 (2021-07-14)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
### Features
|
|
194
|
-
|
|
195
|
-
* adding standard-version ([101fd80](https://github.com/frontegg/typescript-rest-api/commit/101fd806166167e2453d98fb077418be11e2b4de))
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
### Bug Fixes
|
|
199
|
-
|
|
200
|
-
* Disable pushing tag from standard-version script ([610e14f](https://github.com/frontegg/typescript-rest-api/commit/610e14f61a536689252cb3234e3dffce240b4852))
|
|
201
|
-
* fix typo while retrieving version in pipeline script ([a3ce2dc](https://github.com/frontegg/typescript-rest-api/commit/a3ce2dcd4be79b26e2ca93e627886644746dbc2e))
|
|
202
|
-
* remove lerna cache from pipeline ([294211e](https://github.com/frontegg/typescript-rest-api/commit/294211e977a0af3f78a28750c2599df784bc3279))
|
|
203
|
-
* use correct NPM token from github ([3a2049b](https://github.com/frontegg/typescript-rest-api/commit/3a2049bf36ce61ba5a911cb951c4e59b147f565d))
|
|
204
|
-
* use correct NPM token from github ([6123d3b](https://github.com/frontegg/typescript-rest-api/commit/6123d3b7cddea2be4f8c7e1d7093f0e5c196ded7))
|
|
205
|
-
|
|
206
|
-
## 2.9.0 (2021-07-13)
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
### Features
|
|
210
|
-
|
|
211
|
-
* adding standard-version ([101fd80](https://github.com/frontegg/typescript-rest-api/commit/101fd806166167e2453d98fb077418be11e2b4de))
|
package/README.md
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<p align="center">
|
|
3
|
-
<a href="https://www.frontegg.com/" rel="noopener" target="_blank">
|
|
4
|
-
<img style="margin-top:40px" height="50" src="https://frontegg.com/wp-content/uploads/2020/04/logo_frrontegg.svg" alt="Frontegg logo">
|
|
5
|
-
</a>
|
|
6
|
-
</p>
|
|
7
|
-
<h1 align="center">Typescript Frontegg Rest API</h1>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# Usage
|
|
11
|
-
The APIs and states are available by using the using the frontegg rest-api are exposed via promises and interfaces such as the below:
|
|
12
|
-
```jsx
|
|
13
|
-
import { someApi } from "@frontegg/rest-api";
|
|
14
|
-
|
|
15
|
-
await someApi();
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
# Authentication APIs
|
|
19
|
-
|
|
20
|
-
### Pre-login
|
|
21
|
-
```jsx
|
|
22
|
-
import { preLogin } from '@frontegg/rest-api';
|
|
23
|
-
|
|
24
|
-
const redirectUrl = await preLogin({ email: 'john@doe.com' });
|
|
25
|
-
if (redirectUrl) {
|
|
26
|
-
// Redirect to SSO
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
Returns if the user needs to be redirected to SSO based on email domain
|
|
30
|
-
|
|
31
|
-
### Login
|
|
32
|
-
```tsx
|
|
33
|
-
import { login } from '@frontegg/rest-api';
|
|
34
|
-
|
|
35
|
-
const loginResponse: {
|
|
36
|
-
accessToken: string;
|
|
37
|
-
refreshToken: string;
|
|
38
|
-
expires: string;
|
|
39
|
-
expiresIn: number;
|
|
40
|
-
|
|
41
|
-
mfaRequired: boolean;
|
|
42
|
-
mfaToken?: string; // for multi-factor authentication
|
|
43
|
-
|
|
44
|
-
emailVerified?: boolean;
|
|
45
|
-
} = await login({ email, password });
|
|
46
|
-
```
|
|
47
|
-
Logs in the user using email and password and returns the JWT and refresh token.In case MFA is required the MFA token will be returned
|
|
48
|
-
|
|
49
|
-
### Login with MFA
|
|
50
|
-
```tsx
|
|
51
|
-
import { loginWithMfa } from '@frontegg/rest-api';
|
|
52
|
-
|
|
53
|
-
const loginResponse: {
|
|
54
|
-
accessToken: string;
|
|
55
|
-
refreshToken: string;
|
|
56
|
-
expires: string;
|
|
57
|
-
expiresIn: number;
|
|
58
|
-
|
|
59
|
-
mfaRequired: boolean;
|
|
60
|
-
mfaToken?: string; // for multi-factor authentication
|
|
61
|
-
|
|
62
|
-
emailVerified?: boolean;
|
|
63
|
-
} = await loginWithMfa({ mfaToken, value });
|
|
64
|
-
```
|
|
65
|
-
Verifies the login using MFA token and value and gets the JWT token and the refresh token back
|
|
66
|
-
|
|
67
|
-
### Activate account ###
|
|
68
|
-
```tsx
|
|
69
|
-
import { activateAccount } from '@frontegg/rest-api';
|
|
70
|
-
|
|
71
|
-
await activateAccount({ userId, token, password });
|
|
72
|
-
```
|
|
73
|
-
Activates the users' account using the user ID, the token and the users' new password
|
|
74
|
-
|
|
75
|
-
### Accept invitation to tenant ###
|
|
76
|
-
```jsx
|
|
77
|
-
import { acceptInvitation } from '@frontegg/rest-api';
|
|
78
|
-
|
|
79
|
-
await acceptInvitation({ userId, token });
|
|
80
|
-
```
|
|
81
|
-
Accepts invitation of user to a new tenant and makes the user as active on that tenant
|
|
82
|
-
|
|
83
|
-
### Refresh token ###
|
|
84
|
-
```tsx
|
|
85
|
-
import { refreshToken } from '@frontegg/rest-api';
|
|
86
|
-
|
|
87
|
-
const loginResponse: {
|
|
88
|
-
accessToken: string;
|
|
89
|
-
refreshToken: string;
|
|
90
|
-
expires: string;
|
|
91
|
-
expiresIn: number;
|
|
92
|
-
|
|
93
|
-
mfaRequired: boolean;
|
|
94
|
-
mfaToken?: string; // for multi-factor authentication
|
|
95
|
-
|
|
96
|
-
emailVerified?: boolean;
|
|
97
|
-
} = await refreshToken();
|
|
98
|
-
```
|
|
99
|
-
Refresh the current user authentication
|
|
100
|
-
|
|
101
|
-
### Logout ###
|
|
102
|
-
```jsx
|
|
103
|
-
import { logout } from '@frontegg/rest-api';
|
|
104
|
-
|
|
105
|
-
await logout();
|
|
106
|
-
```
|
|
107
|
-
Logs out the user and clears the refresh token
|
|
108
|
-
|
|
109
|
-
### Forgot password ###
|
|
110
|
-
```jsx
|
|
111
|
-
import { logout } from '@frontegg/rest-api';
|
|
112
|
-
|
|
113
|
-
await logout();
|
|
114
|
-
```
|
|
115
|
-
Logs out the user and clears the refresh token
|
|
116
|
-
|
|
117
|
-
### Reset password ###
|
|
118
|
-
```jsx
|
|
119
|
-
import { resetPassword } from '@frontegg/rest-api';
|
|
120
|
-
|
|
121
|
-
await logout({
|
|
122
|
-
token,
|
|
123
|
-
userId,
|
|
124
|
-
password
|
|
125
|
-
});
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
Resets password based on token received from the forgot password flow
|
|
129
|
-
|
|
130
|
-
### Recover MFA token ###
|
|
131
|
-
Allows the user to recover the MFA token
|
|
132
|
-
```jsx
|
|
133
|
-
import { recoverMfaToken } from '@frontegg/rest-api';
|
|
134
|
-
|
|
135
|
-
await recoverMfaToken({
|
|
136
|
-
email,
|
|
137
|
-
recoveryCode
|
|
138
|
-
});
|
|
139
|
-
```
|
package/SECURITY.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
**@frontegg/rest-api** project are currency being supported with security updates.
|
|
5
|
-
|
|
6
|
-
| Version | Supported |
|
|
7
|
-
| -------- | ------------------ |
|
|
8
|
-
| 2.x.x | :white_check_mark: |
|
|
9
|
-
| < 2.0.0 | :x: |
|
|
10
|
-
|
|
11
|
-
## Reporting a Vulnerability
|
|
12
|
-
|
|
13
|
-
You can report a vulnerability by contacting us via email at security@frontegg.com.
|
package/dist/ContextHolder.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FronteggContext = exports.ContextHolder = void 0;
|
|
4
|
-
class ContextHolder {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.context = null;
|
|
7
|
-
this.accessToken = null;
|
|
8
|
-
this.user = null;
|
|
9
|
-
this.onRedirectTo = (path) => (window.location.href = path);
|
|
10
|
-
this.logout = () => (window.location.href = '/account/logout');
|
|
11
|
-
}
|
|
12
|
-
static getInstance() {
|
|
13
|
-
if (!ContextHolder.instance) {
|
|
14
|
-
ContextHolder.instance = new ContextHolder();
|
|
15
|
-
}
|
|
16
|
-
return ContextHolder.instance;
|
|
17
|
-
}
|
|
18
|
-
static setContext(context) {
|
|
19
|
-
ContextHolder.getInstance().context = context;
|
|
20
|
-
}
|
|
21
|
-
static setAccessToken(accessToken) {
|
|
22
|
-
ContextHolder.getInstance().accessToken = accessToken;
|
|
23
|
-
}
|
|
24
|
-
static setUser(user) {
|
|
25
|
-
ContextHolder.getInstance().user = user;
|
|
26
|
-
}
|
|
27
|
-
static setOnRedirectTo(onRedirectTo) {
|
|
28
|
-
ContextHolder.getInstance().onRedirectTo = onRedirectTo;
|
|
29
|
-
}
|
|
30
|
-
static setLogout(logout, logoutUrl) {
|
|
31
|
-
ContextHolder.getInstance().logout = (callback) => {
|
|
32
|
-
if (!callback) {
|
|
33
|
-
ContextHolder.onRedirectTo(logoutUrl);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
logout(callback);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
static getContext() {
|
|
41
|
-
var _a;
|
|
42
|
-
return ((_a = ContextHolder.getInstance().context) !== null && _a !== void 0 ? _a : {
|
|
43
|
-
baseUrl: window.location.href,
|
|
44
|
-
tokenResolver: () => 'my-authentication-token',
|
|
45
|
-
logLevel: 'error',
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
static getAccessToken() {
|
|
49
|
-
return ContextHolder.getInstance().accessToken;
|
|
50
|
-
}
|
|
51
|
-
static getUser() {
|
|
52
|
-
return ContextHolder.getInstance().user;
|
|
53
|
-
}
|
|
54
|
-
static onRedirectTo(path, opts) {
|
|
55
|
-
return ContextHolder.getInstance().onRedirectTo(path, opts);
|
|
56
|
-
}
|
|
57
|
-
static logout(callback) {
|
|
58
|
-
return ContextHolder.getInstance().logout(callback);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.ContextHolder = ContextHolder;
|
|
62
|
-
exports.FronteggContext = {
|
|
63
|
-
getContext: () => ContextHolder.getContext(),
|
|
64
|
-
getAccessToken: () => ContextHolder.getAccessToken(),
|
|
65
|
-
getUser: () => ContextHolder.getUser(),
|
|
66
|
-
onRedirectTo: (path, opts) => ContextHolder.onRedirectTo(path, opts),
|
|
67
|
-
logout: (callback) => ContextHolder.logout(callback),
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=ContextHolder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContextHolder.js","sourceRoot":"","sources":["../src/ContextHolder.ts"],"names":[],"mappings":";;;AAGA,MAAa,aAAa;IAQxB;QANQ,YAAO,GAA0B,IAAI,CAAC;QACtC,gBAAW,GAAkB,IAAI,CAAC;QAClC,SAAI,GAAwB,IAAI,CAAC;QACjC,iBAAY,GAAmD,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;QACvG,WAAM,GAAoC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,iBAAiB,CAAC,CAAC;IAE5E,CAAC;IAExB,MAAM,CAAC,WAAW;QAChB,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE;YAC3B,aAAa,CAAC,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;SAC9C;QAED,OAAO,aAAa,CAAC,QAAQ,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,OAAuB;QAC9C,aAAa,CAAC,WAAW,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;IAChD,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,WAA0B;QACrD,aAAa,CAAC,WAAW,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC;IACxD,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,IAAyB;QAC7C,aAAa,CAAC,WAAW,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,YAA4D;QACxF,aAAa,CAAC,WAAW,EAAE,CAAC,YAAY,GAAG,YAAY,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAuC,EAAE,SAAiB;QAChF,aAAa,CAAC,WAAW,EAAE,CAAC,MAAM,GAAG,CAAC,QAAqB,EAAE,EAAE;YAC7D,IAAI,CAAC,QAAQ,EAAE;gBACb,aAAa,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;aACvC;iBAAM;gBACL,MAAM,CAAC,QAAQ,CAAC,CAAC;aAClB;QACH,CAAC,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,UAAU;;QACtB,OAAO,CACL,MAAA,aAAa,CAAC,WAAW,EAAE,CAAC,OAAO,mCAAI;YACrC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI;YAC7B,aAAa,EAAE,GAAG,EAAE,CAAC,yBAAyB;YAC9C,QAAQ,EAAE,OAAO;SAClB,CACF,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,cAAc;QAC1B,OAAO,aAAa,CAAC,WAAW,EAAE,CAAC,WAAW,CAAC;IACjD,CAAC;IAEM,MAAM,CAAC,OAAO;QACnB,OAAO,aAAa,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,IAAY,EAAE,IAAsB;QAC7D,OAAO,aAAa,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,QAAqB;QACxC,OAAO,aAAa,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtD,CAAC;CACF;AArED,sCAqEC;AAEY,QAAA,eAAe,GAAG;IAC7B,UAAU,EAAE,GAAmB,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE;IAC5D,cAAc,EAAE,GAAkB,EAAE,CAAC,aAAa,CAAC,cAAc,EAAE;IACnE,OAAO,EAAE,GAAwB,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE;IAC3D,YAAY,EAAE,CAAC,IAAY,EAAE,IAAqB,EAAE,EAAE,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC;IAC7F,MAAM,EAAE,CAAC,QAAqB,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC;CAClE,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getSettings = exports.updateSettings = void 0;
|
|
13
|
-
const constants_1 = require("../constants");
|
|
14
|
-
const fetch_1 = require("../fetch");
|
|
15
|
-
/*** update account settings for tenant.
|
|
16
|
-
* tenantId is caclulated in the backend from context
|
|
17
|
-
* ``authorized user``
|
|
18
|
-
*/
|
|
19
|
-
function updateSettings(body) {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
console.debug('updateSettings()', body);
|
|
22
|
-
return fetch_1.Put(constants_1.urls.tenants.accountSettings.v1, body);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
exports.updateSettings = updateSettings;
|
|
26
|
-
function getSettings() {
|
|
27
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
console.debug('getSettings()');
|
|
29
|
-
return fetch_1.Get(constants_1.urls.tenants.accountSettings.v1);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
exports.getSettings = getSettings;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account-settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAkC;AAElC,oCAAkC;AAElC;;;GAGG;AAEH,SAAsB,cAAc,CAAC,IAAqB;;QACxD,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;QACxC,OAAO,WAAG,CAAC,gBAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;CAAA;AAHD,wCAGC;AAED,SAAsB,WAAW;;QAC/B,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC/B,OAAO,WAAG,CAAC,gBAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;CAAA;AAHD,kCAGC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/account-settings/interfaces.ts"],"names":[],"mappings":""}
|