@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/fetch.js
ADDED
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
|
+
|
|
5
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6
|
+
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
+
|
|
9
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
10
|
+
|
|
11
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
12
|
+
import { ContextHolder } from './ContextHolder';
|
|
13
|
+
import { FronteggApiError } from './error';
|
|
14
|
+
export function getBaseUrl(context, url) {
|
|
15
|
+
var baseUrl;
|
|
16
|
+
|
|
17
|
+
if (typeof context.baseUrl === 'function') {
|
|
18
|
+
baseUrl = context.baseUrl(url);
|
|
19
|
+
} else {
|
|
20
|
+
baseUrl = context.baseUrl;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var prefix = context.urlPrefix || 'frontegg';
|
|
24
|
+
|
|
25
|
+
if (!baseUrl.endsWith('/')) {
|
|
26
|
+
baseUrl += '/';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (!baseUrl.endsWith(prefix)) {
|
|
30
|
+
baseUrl += prefix;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return baseUrl;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function prepareUrl(_x, _x2, _x3) {
|
|
37
|
+
return _prepareUrl.apply(this, arguments);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function _prepareUrl() {
|
|
41
|
+
_prepareUrl = _asyncToGenerator(_regeneratorRuntime.mark(function _callee8(context, url, params) {
|
|
42
|
+
var baseUrl, paramsToSend, finalUrl, hasKeys, urlParams;
|
|
43
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
44
|
+
while (1) {
|
|
45
|
+
switch (_context8.prev = _context8.next) {
|
|
46
|
+
case 0:
|
|
47
|
+
baseUrl = getBaseUrl(context, url);
|
|
48
|
+
_context8.next = 3;
|
|
49
|
+
return buildQueryParams(context, params);
|
|
50
|
+
|
|
51
|
+
case 3:
|
|
52
|
+
paramsToSend = _context8.sent;
|
|
53
|
+
finalUrl = url.startsWith('http') ? url : "".concat(baseUrl).concat(url);
|
|
54
|
+
hasKeys = Object.keys(paramsToSend).length > 0;
|
|
55
|
+
|
|
56
|
+
if (paramsToSend && hasKeys) {
|
|
57
|
+
urlParams = new URLSearchParams(paramsToSend);
|
|
58
|
+
finalUrl += "?".concat(urlParams);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return _context8.abrupt("return", finalUrl);
|
|
62
|
+
|
|
63
|
+
case 8:
|
|
64
|
+
case "end":
|
|
65
|
+
return _context8.stop();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, _callee8);
|
|
69
|
+
}));
|
|
70
|
+
return _prepareUrl.apply(this, arguments);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function buildRequestHeaders(_x4, _x5) {
|
|
74
|
+
return _buildRequestHeaders.apply(this, arguments);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function _buildRequestHeaders() {
|
|
78
|
+
_buildRequestHeaders = _asyncToGenerator(_regeneratorRuntime.mark(function _callee9(context, contentType) {
|
|
79
|
+
var _context$tokenResolve;
|
|
80
|
+
|
|
81
|
+
var authToken, headers, _iterator, _step, additionalHeader;
|
|
82
|
+
|
|
83
|
+
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
84
|
+
while (1) {
|
|
85
|
+
switch (_context9.prev = _context9.next) {
|
|
86
|
+
case 0:
|
|
87
|
+
_context9.next = 2;
|
|
88
|
+
return ((_context$tokenResolve = context == null ? void 0 : context.tokenResolver) != null ? _context$tokenResolve : ContextHolder.getAccessToken)();
|
|
89
|
+
|
|
90
|
+
case 2:
|
|
91
|
+
authToken = _context9.sent;
|
|
92
|
+
headers = {};
|
|
93
|
+
|
|
94
|
+
if (authToken) {
|
|
95
|
+
headers.Authorization = "Bearer ".concat(authToken);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (contentType) {
|
|
99
|
+
headers['Content-Type'] = contentType;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
_context9.t0 = _createForOfIteratorHelper;
|
|
103
|
+
_context9.next = 9;
|
|
104
|
+
return getAdditionalHeaders(context);
|
|
105
|
+
|
|
106
|
+
case 9:
|
|
107
|
+
_context9.t1 = _context9.sent;
|
|
108
|
+
_iterator = (0, _context9.t0)(_context9.t1);
|
|
109
|
+
|
|
110
|
+
try {
|
|
111
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
112
|
+
additionalHeader = _step.value;
|
|
113
|
+
headers["".concat(additionalHeader.key)] = "".concat(additionalHeader.value);
|
|
114
|
+
}
|
|
115
|
+
} catch (err) {
|
|
116
|
+
_iterator.e(err);
|
|
117
|
+
} finally {
|
|
118
|
+
_iterator.f();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
headers['x-frontegg-source'] = 'frontegg-react';
|
|
122
|
+
return _context9.abrupt("return", headers);
|
|
123
|
+
|
|
124
|
+
case 14:
|
|
125
|
+
case "end":
|
|
126
|
+
return _context9.stop();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}, _callee9);
|
|
130
|
+
}));
|
|
131
|
+
return _buildRequestHeaders.apply(this, arguments);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function buildQueryParams(_x6, _x7) {
|
|
135
|
+
return _buildQueryParams.apply(this, arguments);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function _buildQueryParams() {
|
|
139
|
+
_buildQueryParams = _asyncToGenerator(_regeneratorRuntime.mark(function _callee10(context, params) {
|
|
140
|
+
var additionalQueryParams, _iterator2, _step2, queryParam, keys, _i, _keys, key, value;
|
|
141
|
+
|
|
142
|
+
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
143
|
+
while (1) {
|
|
144
|
+
switch (_context10.prev = _context10.next) {
|
|
145
|
+
case 0:
|
|
146
|
+
if (!params) {
|
|
147
|
+
params = {};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
_context10.next = 3;
|
|
151
|
+
return getAdditionalQueryParams(context);
|
|
152
|
+
|
|
153
|
+
case 3:
|
|
154
|
+
additionalQueryParams = _context10.sent;
|
|
155
|
+
_iterator2 = _createForOfIteratorHelper(additionalQueryParams);
|
|
156
|
+
|
|
157
|
+
try {
|
|
158
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
159
|
+
queryParam = _step2.value;
|
|
160
|
+
params[queryParam.key] = queryParam.value;
|
|
161
|
+
}
|
|
162
|
+
} catch (err) {
|
|
163
|
+
_iterator2.e(err);
|
|
164
|
+
} finally {
|
|
165
|
+
_iterator2.f();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
keys = Object.keys(params);
|
|
169
|
+
|
|
170
|
+
for (_i = 0, _keys = keys; _i < _keys.length; _i++) {
|
|
171
|
+
key = _keys[_i];
|
|
172
|
+
value = params[key];
|
|
173
|
+
params[key] = _typeof(value) === 'object' ? JSON.stringify(value) : value;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return _context10.abrupt("return", params);
|
|
177
|
+
|
|
178
|
+
case 9:
|
|
179
|
+
case "end":
|
|
180
|
+
return _context10.stop();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}, _callee10);
|
|
184
|
+
}));
|
|
185
|
+
return _buildQueryParams.apply(this, arguments);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
function getAdditionalQueryParams(_x8) {
|
|
189
|
+
return _getAdditionalQueryParams.apply(this, arguments);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function _getAdditionalQueryParams() {
|
|
193
|
+
_getAdditionalQueryParams = _asyncToGenerator(_regeneratorRuntime.mark(function _callee11(context) {
|
|
194
|
+
var output;
|
|
195
|
+
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
196
|
+
while (1) {
|
|
197
|
+
switch (_context11.prev = _context11.next) {
|
|
198
|
+
case 0:
|
|
199
|
+
output = [];
|
|
200
|
+
|
|
201
|
+
if (!context.additionalQueryParamsResolver) {
|
|
202
|
+
_context11.next = 5;
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
_context11.next = 4;
|
|
207
|
+
return context.additionalQueryParamsResolver();
|
|
208
|
+
|
|
209
|
+
case 4:
|
|
210
|
+
output = _context11.sent;
|
|
211
|
+
|
|
212
|
+
case 5:
|
|
213
|
+
return _context11.abrupt("return", output);
|
|
214
|
+
|
|
215
|
+
case 6:
|
|
216
|
+
case "end":
|
|
217
|
+
return _context11.stop();
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}, _callee11);
|
|
221
|
+
}));
|
|
222
|
+
return _getAdditionalQueryParams.apply(this, arguments);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function getAdditionalHeaders(_x9) {
|
|
226
|
+
return _getAdditionalHeaders.apply(this, arguments);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function _getAdditionalHeaders() {
|
|
230
|
+
_getAdditionalHeaders = _asyncToGenerator(_regeneratorRuntime.mark(function _callee12(context) {
|
|
231
|
+
var output;
|
|
232
|
+
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
233
|
+
while (1) {
|
|
234
|
+
switch (_context12.prev = _context12.next) {
|
|
235
|
+
case 0:
|
|
236
|
+
output = [];
|
|
237
|
+
|
|
238
|
+
if (!context.additionalHeadersResolver) {
|
|
239
|
+
_context12.next = 5;
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
_context12.next = 4;
|
|
244
|
+
return context.additionalHeadersResolver();
|
|
245
|
+
|
|
246
|
+
case 4:
|
|
247
|
+
output = _context12.sent;
|
|
248
|
+
|
|
249
|
+
case 5:
|
|
250
|
+
return _context12.abrupt("return", output);
|
|
251
|
+
|
|
252
|
+
case 6:
|
|
253
|
+
case "end":
|
|
254
|
+
return _context12.stop();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}, _callee12);
|
|
258
|
+
}));
|
|
259
|
+
return _getAdditionalHeaders.apply(this, arguments);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
var sendRequest = function () {
|
|
263
|
+
var _ref = _asyncToGenerator(_regeneratorRuntime.mark(function _callee(opts) {
|
|
264
|
+
var _opts$method, _ref2, _opts$credentials;
|
|
265
|
+
|
|
266
|
+
var context, headers, url, response, _context$logLevel, _context$logLevel2, errorMessage, outputFileName;
|
|
267
|
+
|
|
268
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
269
|
+
while (1) {
|
|
270
|
+
switch (_context.prev = _context.next) {
|
|
271
|
+
case 0:
|
|
272
|
+
context = ContextHolder.getContext();
|
|
273
|
+
_context.next = 3;
|
|
274
|
+
return buildRequestHeaders(context, opts.contentType);
|
|
275
|
+
|
|
276
|
+
case 3:
|
|
277
|
+
headers = _context.sent;
|
|
278
|
+
_context.next = 6;
|
|
279
|
+
return prepareUrl(context, opts.url, opts.params);
|
|
280
|
+
|
|
281
|
+
case 6:
|
|
282
|
+
url = _context.sent;
|
|
283
|
+
_context.next = 9;
|
|
284
|
+
return fetch(url, {
|
|
285
|
+
body: opts.body ? opts.contentType === 'application/json' ? JSON.stringify(opts.body) : opts.body : null,
|
|
286
|
+
method: (_opts$method = opts.method) != null ? _opts$method : 'GET',
|
|
287
|
+
headers: _extends({}, headers, opts.headers),
|
|
288
|
+
credentials: (_ref2 = (_opts$credentials = opts.credentials) != null ? _opts$credentials : context.requestCredentials) != null ? _ref2 : 'same-origin'
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
case 9:
|
|
292
|
+
response = _context.sent;
|
|
293
|
+
|
|
294
|
+
if (!(response.status === 302)) {
|
|
295
|
+
_context.next = 15;
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
_context.next = 13;
|
|
300
|
+
return response.text();
|
|
301
|
+
|
|
302
|
+
case 13:
|
|
303
|
+
window.location.href = _context.sent;
|
|
304
|
+
return _context.abrupt("return", new Promise(function () {}));
|
|
305
|
+
|
|
306
|
+
case 15:
|
|
307
|
+
if (response.ok) {
|
|
308
|
+
_context.next = 30;
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if (!(response.status === 413)) {
|
|
313
|
+
_context.next = 18;
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
throw new FronteggApiError('Error request is too large', response.status);
|
|
318
|
+
|
|
319
|
+
case 18:
|
|
320
|
+
_context.prev = 18;
|
|
321
|
+
_context.next = 21;
|
|
322
|
+
return response.text();
|
|
323
|
+
|
|
324
|
+
case 21:
|
|
325
|
+
errorMessage = _context.sent;
|
|
326
|
+
errorMessage = JSON.parse(errorMessage);
|
|
327
|
+
_context.next = 27;
|
|
328
|
+
break;
|
|
329
|
+
|
|
330
|
+
case 25:
|
|
331
|
+
_context.prev = 25;
|
|
332
|
+
_context.t0 = _context["catch"](18);
|
|
333
|
+
|
|
334
|
+
case 27:
|
|
335
|
+
if (errorMessage.errors) {
|
|
336
|
+
errorMessage = errorMessage.errors.join(', ');
|
|
337
|
+
} else if (typeof errorMessage !== 'string') {
|
|
338
|
+
errorMessage = "Error ".concat(response.status, " - ").concat(response.statusText);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
if (response.status >= 400 && response.status < 500 && ['warn'].includes((_context$logLevel = context.logLevel) != null ? _context$logLevel : '')) console.warn(errorMessage);else if (response.status === 500 && ['warn', 'error'].includes((_context$logLevel2 = context.logLevel) != null ? _context$logLevel2 : '')) console.error(errorMessage);
|
|
342
|
+
throw new FronteggApiError(errorMessage, response.status);
|
|
343
|
+
|
|
344
|
+
case 30:
|
|
345
|
+
if (!(!opts.responseType || opts.responseType === 'json')) {
|
|
346
|
+
_context.next = 42;
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
_context.prev = 31;
|
|
351
|
+
_context.next = 34;
|
|
352
|
+
return response.json();
|
|
353
|
+
|
|
354
|
+
case 34:
|
|
355
|
+
return _context.abrupt("return", _context.sent);
|
|
356
|
+
|
|
357
|
+
case 37:
|
|
358
|
+
_context.prev = 37;
|
|
359
|
+
_context.t1 = _context["catch"](31);
|
|
360
|
+
return _context.abrupt("return", {});
|
|
361
|
+
|
|
362
|
+
case 40:
|
|
363
|
+
_context.next = 52;
|
|
364
|
+
break;
|
|
365
|
+
|
|
366
|
+
case 42:
|
|
367
|
+
if (!(opts.responseType === 'blob')) {
|
|
368
|
+
_context.next = 49;
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
outputFileName = opts.params.outputFileName;
|
|
373
|
+
_context.next = 46;
|
|
374
|
+
return response.blob().then(function (blob) {
|
|
375
|
+
return URL.createObjectURL(blob);
|
|
376
|
+
}).then(function (url) {
|
|
377
|
+
var tempLink = document.createElement('a');
|
|
378
|
+
tempLink.href = url;
|
|
379
|
+
tempLink.setAttribute('download', outputFileName || 'output');
|
|
380
|
+
tempLink.click();
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
case 46:
|
|
384
|
+
return _context.abrupt("return", _context.sent);
|
|
385
|
+
|
|
386
|
+
case 49:
|
|
387
|
+
_context.next = 51;
|
|
388
|
+
return response.text();
|
|
389
|
+
|
|
390
|
+
case 51:
|
|
391
|
+
return _context.abrupt("return", _context.sent);
|
|
392
|
+
|
|
393
|
+
case 52:
|
|
394
|
+
case "end":
|
|
395
|
+
return _context.stop();
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}, _callee, null, [[18, 25], [31, 37]]);
|
|
399
|
+
}));
|
|
400
|
+
|
|
401
|
+
return function sendRequest(_x10) {
|
|
402
|
+
return _ref.apply(this, arguments);
|
|
403
|
+
};
|
|
404
|
+
}();
|
|
405
|
+
|
|
406
|
+
export var Get = function () {
|
|
407
|
+
var _ref3 = _asyncToGenerator(_regeneratorRuntime.mark(function _callee2(url, params, opts) {
|
|
408
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
409
|
+
while (1) {
|
|
410
|
+
switch (_context2.prev = _context2.next) {
|
|
411
|
+
case 0:
|
|
412
|
+
return _context2.abrupt("return", sendRequest(_extends({
|
|
413
|
+
url: url,
|
|
414
|
+
method: 'GET',
|
|
415
|
+
contentType: 'application/json',
|
|
416
|
+
params: params
|
|
417
|
+
}, opts)));
|
|
418
|
+
|
|
419
|
+
case 1:
|
|
420
|
+
case "end":
|
|
421
|
+
return _context2.stop();
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}, _callee2);
|
|
425
|
+
}));
|
|
426
|
+
|
|
427
|
+
return function Get(_x11, _x12, _x13) {
|
|
428
|
+
return _ref3.apply(this, arguments);
|
|
429
|
+
};
|
|
430
|
+
}();
|
|
431
|
+
export var Post = function () {
|
|
432
|
+
var _ref4 = _asyncToGenerator(_regeneratorRuntime.mark(function _callee3(url, body, opts) {
|
|
433
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
434
|
+
while (1) {
|
|
435
|
+
switch (_context3.prev = _context3.next) {
|
|
436
|
+
case 0:
|
|
437
|
+
return _context3.abrupt("return", sendRequest(_extends({
|
|
438
|
+
url: url,
|
|
439
|
+
method: 'POST',
|
|
440
|
+
contentType: 'application/json',
|
|
441
|
+
body: body
|
|
442
|
+
}, opts)));
|
|
443
|
+
|
|
444
|
+
case 1:
|
|
445
|
+
case "end":
|
|
446
|
+
return _context3.stop();
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}, _callee3);
|
|
450
|
+
}));
|
|
451
|
+
|
|
452
|
+
return function Post(_x14, _x15, _x16) {
|
|
453
|
+
return _ref4.apply(this, arguments);
|
|
454
|
+
};
|
|
455
|
+
}();
|
|
456
|
+
export var Patch = function () {
|
|
457
|
+
var _ref5 = _asyncToGenerator(_regeneratorRuntime.mark(function _callee4(url, body, opts) {
|
|
458
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
459
|
+
while (1) {
|
|
460
|
+
switch (_context4.prev = _context4.next) {
|
|
461
|
+
case 0:
|
|
462
|
+
return _context4.abrupt("return", sendRequest(_extends({
|
|
463
|
+
url: url,
|
|
464
|
+
method: 'PATCH',
|
|
465
|
+
contentType: 'application/json',
|
|
466
|
+
body: body
|
|
467
|
+
}, opts)));
|
|
468
|
+
|
|
469
|
+
case 1:
|
|
470
|
+
case "end":
|
|
471
|
+
return _context4.stop();
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}, _callee4);
|
|
475
|
+
}));
|
|
476
|
+
|
|
477
|
+
return function Patch(_x17, _x18, _x19) {
|
|
478
|
+
return _ref5.apply(this, arguments);
|
|
479
|
+
};
|
|
480
|
+
}();
|
|
481
|
+
export var Put = function () {
|
|
482
|
+
var _ref6 = _asyncToGenerator(_regeneratorRuntime.mark(function _callee5(url, body, opts) {
|
|
483
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
484
|
+
while (1) {
|
|
485
|
+
switch (_context5.prev = _context5.next) {
|
|
486
|
+
case 0:
|
|
487
|
+
return _context5.abrupt("return", sendRequest(_extends({
|
|
488
|
+
url: url,
|
|
489
|
+
method: 'PUT',
|
|
490
|
+
contentType: 'application/json',
|
|
491
|
+
body: body
|
|
492
|
+
}, opts)));
|
|
493
|
+
|
|
494
|
+
case 1:
|
|
495
|
+
case "end":
|
|
496
|
+
return _context5.stop();
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}, _callee5);
|
|
500
|
+
}));
|
|
501
|
+
|
|
502
|
+
return function Put(_x20, _x21, _x22) {
|
|
503
|
+
return _ref6.apply(this, arguments);
|
|
504
|
+
};
|
|
505
|
+
}();
|
|
506
|
+
export var Delete = function () {
|
|
507
|
+
var _ref7 = _asyncToGenerator(_regeneratorRuntime.mark(function _callee6(url, body, opts) {
|
|
508
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
509
|
+
while (1) {
|
|
510
|
+
switch (_context6.prev = _context6.next) {
|
|
511
|
+
case 0:
|
|
512
|
+
return _context6.abrupt("return", sendRequest(_extends({
|
|
513
|
+
url: url,
|
|
514
|
+
method: 'DELETE',
|
|
515
|
+
contentType: 'application/json',
|
|
516
|
+
body: body
|
|
517
|
+
}, opts)));
|
|
518
|
+
|
|
519
|
+
case 1:
|
|
520
|
+
case "end":
|
|
521
|
+
return _context6.stop();
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}, _callee6);
|
|
525
|
+
}));
|
|
526
|
+
|
|
527
|
+
return function Delete(_x23, _x24, _x25) {
|
|
528
|
+
return _ref7.apply(this, arguments);
|
|
529
|
+
};
|
|
530
|
+
}();
|
|
531
|
+
export var PostDownload = function () {
|
|
532
|
+
var _ref8 = _asyncToGenerator(_regeneratorRuntime.mark(function _callee7(url, body, params, opts) {
|
|
533
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
534
|
+
while (1) {
|
|
535
|
+
switch (_context7.prev = _context7.next) {
|
|
536
|
+
case 0:
|
|
537
|
+
return _context7.abrupt("return", sendRequest(_extends({
|
|
538
|
+
url: url,
|
|
539
|
+
method: 'POST',
|
|
540
|
+
contentType: 'application/json',
|
|
541
|
+
responseType: 'blob',
|
|
542
|
+
body: body,
|
|
543
|
+
params: params
|
|
544
|
+
}, opts)));
|
|
545
|
+
|
|
546
|
+
case 1:
|
|
547
|
+
case "end":
|
|
548
|
+
return _context7.stop();
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}, _callee7);
|
|
552
|
+
}));
|
|
553
|
+
|
|
554
|
+
return function PostDownload(_x26, _x27, _x28, _x29) {
|
|
555
|
+
return _ref8.apply(this, arguments);
|
|
556
|
+
};
|
|
557
|
+
}();
|
|
File without changes
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/** @license Frontegg v3.0.1
|
|
2
|
+
*
|
|
3
|
+
* This source code is licensed under the MIT license found in the
|
|
4
|
+
* LICENSE file in the root directory of this source tree.
|
|
5
|
+
*/
|
|
1
6
|
import * as auth from './auth';
|
|
2
7
|
import * as teams from './teams';
|
|
3
8
|
import * as metadata from './metadata';
|
|
@@ -31,33 +36,32 @@ export * from './sub-tenants/interfaces';
|
|
|
31
36
|
export * from './routers';
|
|
32
37
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
33
38
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
var api = {
|
|
40
|
+
auth: auth,
|
|
41
|
+
teams: teams,
|
|
42
|
+
metadata: metadata,
|
|
43
|
+
reports: reports,
|
|
44
|
+
connectivity: connectivity,
|
|
45
|
+
notifications: notifications,
|
|
46
|
+
audits: audits,
|
|
47
|
+
tenants: tenants,
|
|
48
|
+
accountSettings: accountSettings,
|
|
49
|
+
roles: roles,
|
|
50
|
+
subscriptions: subscriptions,
|
|
51
|
+
vendor: vendor,
|
|
52
|
+
subTenants: subTenants
|
|
48
53
|
};
|
|
49
|
-
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType
|
|
54
|
+
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType };
|
|
50
55
|
export default {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=index.js.map
|
|
56
|
+
fetch: fetch,
|
|
57
|
+
ContextHolder: ContextHolder,
|
|
58
|
+
FronteggContext: FronteggContext,
|
|
59
|
+
api: api,
|
|
60
|
+
FronteggApiError: FronteggApiError,
|
|
61
|
+
AuthStrategyEnum: AuthStrategyEnum,
|
|
62
|
+
SocialLoginProviders: SocialLoginProviders,
|
|
63
|
+
ISubscriptionCancellationPolicy: ISubscriptionCancellationPolicy,
|
|
64
|
+
ISubscriptionStatus: ISubscriptionStatus,
|
|
65
|
+
PaymentMethodType: PaymentMethodType,
|
|
66
|
+
ProviderType: ProviderType
|
|
67
|
+
};
|
|
File without changes
|
package/interfaces.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|