@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/node/index.js
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
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
|
+
*/
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
var _exportNames = {
|
|
14
|
+
api: true,
|
|
15
|
+
AuthStrategyEnum: true,
|
|
16
|
+
SocialLoginProviders: true,
|
|
17
|
+
fetch: true,
|
|
18
|
+
ISubscriptionCancellationPolicy: true,
|
|
19
|
+
ISubscriptionStatus: true,
|
|
20
|
+
PaymentMethodType: true,
|
|
21
|
+
ProviderType: true,
|
|
22
|
+
FronteggApiError: true,
|
|
23
|
+
ContextHolder: true,
|
|
24
|
+
FronteggContext: true
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "AuthStrategyEnum", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return auth.AuthStrategyEnum;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "ContextHolder", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _ContextHolder.ContextHolder;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "FronteggApiError", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _error.FronteggApiError;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "FronteggContext", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _ContextHolder.FronteggContext;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "ISubscriptionCancellationPolicy", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function get() {
|
|
53
|
+
return subscriptions.ISubscriptionCancellationPolicy;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "ISubscriptionStatus", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function get() {
|
|
59
|
+
return subscriptions.ISubscriptionStatus;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "PaymentMethodType", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function get() {
|
|
65
|
+
return subscriptions.PaymentMethodType;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "ProviderType", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function get() {
|
|
71
|
+
return subscriptions.ProviderType;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "SocialLoginProviders", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function get() {
|
|
77
|
+
return auth.SocialLoginProviders;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
exports.fetch = exports["default"] = exports.api = void 0;
|
|
81
|
+
|
|
82
|
+
var auth = _interopRequireWildcard(require("./auth"));
|
|
83
|
+
|
|
84
|
+
var teams = _interopRequireWildcard(require("./teams"));
|
|
85
|
+
|
|
86
|
+
var metadata = _interopRequireWildcard(require("./metadata"));
|
|
87
|
+
|
|
88
|
+
var reports = _interopRequireWildcard(require("./reports"));
|
|
89
|
+
|
|
90
|
+
var notifications = _interopRequireWildcard(require("./notifications"));
|
|
91
|
+
|
|
92
|
+
var audits = _interopRequireWildcard(require("./audits"));
|
|
93
|
+
|
|
94
|
+
var fetch = _interopRequireWildcard(require("./fetch"));
|
|
95
|
+
|
|
96
|
+
exports.fetch = fetch;
|
|
97
|
+
|
|
98
|
+
var connectivity = _interopRequireWildcard(require("./connectivity"));
|
|
99
|
+
|
|
100
|
+
var tenants = _interopRequireWildcard(require("./tenants"));
|
|
101
|
+
|
|
102
|
+
var accountSettings = _interopRequireWildcard(require("./account-settings"));
|
|
103
|
+
|
|
104
|
+
var roles = _interopRequireWildcard(require("./roles"));
|
|
105
|
+
|
|
106
|
+
var subscriptions = _interopRequireWildcard(require("./subscriptions"));
|
|
107
|
+
|
|
108
|
+
var _error = require("./error");
|
|
109
|
+
|
|
110
|
+
var vendor = _interopRequireWildcard(require("./vendor"));
|
|
111
|
+
|
|
112
|
+
var subTenants = _interopRequireWildcard(require("./sub-tenants"));
|
|
113
|
+
|
|
114
|
+
var _ContextHolder = require("./ContextHolder");
|
|
115
|
+
|
|
116
|
+
var _interfaces = require("./interfaces");
|
|
117
|
+
|
|
118
|
+
Object.keys(_interfaces).forEach(function (key) {
|
|
119
|
+
if (key === "default" || key === "__esModule") return;
|
|
120
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
121
|
+
if (key in exports && exports[key] === _interfaces[key]) return;
|
|
122
|
+
Object.defineProperty(exports, key, {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function get() {
|
|
125
|
+
return _interfaces[key];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
var _interfaces2 = require("./auth/interfaces");
|
|
131
|
+
|
|
132
|
+
Object.keys(_interfaces2).forEach(function (key) {
|
|
133
|
+
if (key === "default" || key === "__esModule") return;
|
|
134
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
135
|
+
if (key in exports && exports[key] === _interfaces2[key]) return;
|
|
136
|
+
Object.defineProperty(exports, key, {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function get() {
|
|
139
|
+
return _interfaces2[key];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
var _interfaces3 = require("./teams/interfaces");
|
|
145
|
+
|
|
146
|
+
Object.keys(_interfaces3).forEach(function (key) {
|
|
147
|
+
if (key === "default" || key === "__esModule") return;
|
|
148
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
149
|
+
if (key in exports && exports[key] === _interfaces3[key]) return;
|
|
150
|
+
Object.defineProperty(exports, key, {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function get() {
|
|
153
|
+
return _interfaces3[key];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
var _interfaces4 = require("./metadata/interfaces");
|
|
159
|
+
|
|
160
|
+
Object.keys(_interfaces4).forEach(function (key) {
|
|
161
|
+
if (key === "default" || key === "__esModule") return;
|
|
162
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
163
|
+
if (key in exports && exports[key] === _interfaces4[key]) return;
|
|
164
|
+
Object.defineProperty(exports, key, {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function get() {
|
|
167
|
+
return _interfaces4[key];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
var _interfaces5 = require("./reports/interfaces");
|
|
173
|
+
|
|
174
|
+
Object.keys(_interfaces5).forEach(function (key) {
|
|
175
|
+
if (key === "default" || key === "__esModule") return;
|
|
176
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
177
|
+
if (key in exports && exports[key] === _interfaces5[key]) return;
|
|
178
|
+
Object.defineProperty(exports, key, {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function get() {
|
|
181
|
+
return _interfaces5[key];
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
var _interfaces6 = require("./connectivity/interfaces");
|
|
187
|
+
|
|
188
|
+
Object.keys(_interfaces6).forEach(function (key) {
|
|
189
|
+
if (key === "default" || key === "__esModule") return;
|
|
190
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
191
|
+
if (key in exports && exports[key] === _interfaces6[key]) return;
|
|
192
|
+
Object.defineProperty(exports, key, {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function get() {
|
|
195
|
+
return _interfaces6[key];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
var _interfaces7 = require("./notifications/interfaces");
|
|
201
|
+
|
|
202
|
+
Object.keys(_interfaces7).forEach(function (key) {
|
|
203
|
+
if (key === "default" || key === "__esModule") return;
|
|
204
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
205
|
+
if (key in exports && exports[key] === _interfaces7[key]) return;
|
|
206
|
+
Object.defineProperty(exports, key, {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function get() {
|
|
209
|
+
return _interfaces7[key];
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
var _interfaces8 = require("./audits/interfaces");
|
|
215
|
+
|
|
216
|
+
Object.keys(_interfaces8).forEach(function (key) {
|
|
217
|
+
if (key === "default" || key === "__esModule") return;
|
|
218
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
219
|
+
if (key in exports && exports[key] === _interfaces8[key]) return;
|
|
220
|
+
Object.defineProperty(exports, key, {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function get() {
|
|
223
|
+
return _interfaces8[key];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
var _interfaces9 = require("./tenants/interfaces");
|
|
229
|
+
|
|
230
|
+
Object.keys(_interfaces9).forEach(function (key) {
|
|
231
|
+
if (key === "default" || key === "__esModule") return;
|
|
232
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
233
|
+
if (key in exports && exports[key] === _interfaces9[key]) return;
|
|
234
|
+
Object.defineProperty(exports, key, {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function get() {
|
|
237
|
+
return _interfaces9[key];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
var _interfaces10 = require("./account-settings/interfaces");
|
|
243
|
+
|
|
244
|
+
Object.keys(_interfaces10).forEach(function (key) {
|
|
245
|
+
if (key === "default" || key === "__esModule") return;
|
|
246
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
247
|
+
if (key in exports && exports[key] === _interfaces10[key]) return;
|
|
248
|
+
Object.defineProperty(exports, key, {
|
|
249
|
+
enumerable: true,
|
|
250
|
+
get: function get() {
|
|
251
|
+
return _interfaces10[key];
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
var _interfaces11 = require("./roles/interfaces");
|
|
257
|
+
|
|
258
|
+
Object.keys(_interfaces11).forEach(function (key) {
|
|
259
|
+
if (key === "default" || key === "__esModule") return;
|
|
260
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
261
|
+
if (key in exports && exports[key] === _interfaces11[key]) return;
|
|
262
|
+
Object.defineProperty(exports, key, {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function get() {
|
|
265
|
+
return _interfaces11[key];
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
var _interfaces12 = require("./subscriptions/interfaces");
|
|
271
|
+
|
|
272
|
+
Object.keys(_interfaces12).forEach(function (key) {
|
|
273
|
+
if (key === "default" || key === "__esModule") return;
|
|
274
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
275
|
+
if (key in exports && exports[key] === _interfaces12[key]) return;
|
|
276
|
+
Object.defineProperty(exports, key, {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function get() {
|
|
279
|
+
return _interfaces12[key];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
var _interfaces13 = require("./vendor/interfaces");
|
|
285
|
+
|
|
286
|
+
Object.keys(_interfaces13).forEach(function (key) {
|
|
287
|
+
if (key === "default" || key === "__esModule") return;
|
|
288
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
289
|
+
if (key in exports && exports[key] === _interfaces13[key]) return;
|
|
290
|
+
Object.defineProperty(exports, key, {
|
|
291
|
+
enumerable: true,
|
|
292
|
+
get: function get() {
|
|
293
|
+
return _interfaces13[key];
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
var _interfaces14 = require("./sub-tenants/interfaces");
|
|
299
|
+
|
|
300
|
+
Object.keys(_interfaces14).forEach(function (key) {
|
|
301
|
+
if (key === "default" || key === "__esModule") return;
|
|
302
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
303
|
+
if (key in exports && exports[key] === _interfaces14[key]) return;
|
|
304
|
+
Object.defineProperty(exports, key, {
|
|
305
|
+
enumerable: true,
|
|
306
|
+
get: function get() {
|
|
307
|
+
return _interfaces14[key];
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
var _routers = require("./routers");
|
|
313
|
+
|
|
314
|
+
Object.keys(_routers).forEach(function (key) {
|
|
315
|
+
if (key === "default" || key === "__esModule") return;
|
|
316
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
317
|
+
if (key in exports && exports[key] === _routers[key]) return;
|
|
318
|
+
Object.defineProperty(exports, key, {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function get() {
|
|
321
|
+
return _routers[key];
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
327
|
+
|
|
328
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
329
|
+
|
|
330
|
+
var api = {
|
|
331
|
+
auth: auth,
|
|
332
|
+
teams: teams,
|
|
333
|
+
metadata: metadata,
|
|
334
|
+
reports: reports,
|
|
335
|
+
connectivity: connectivity,
|
|
336
|
+
notifications: notifications,
|
|
337
|
+
audits: audits,
|
|
338
|
+
tenants: tenants,
|
|
339
|
+
accountSettings: accountSettings,
|
|
340
|
+
roles: roles,
|
|
341
|
+
subscriptions: subscriptions,
|
|
342
|
+
vendor: vendor,
|
|
343
|
+
subTenants: subTenants
|
|
344
|
+
};
|
|
345
|
+
exports.api = api;
|
|
346
|
+
var _default = {
|
|
347
|
+
fetch: fetch,
|
|
348
|
+
ContextHolder: _ContextHolder.ContextHolder,
|
|
349
|
+
FronteggContext: _ContextHolder.FronteggContext,
|
|
350
|
+
api: api,
|
|
351
|
+
FronteggApiError: _error.FronteggApiError,
|
|
352
|
+
AuthStrategyEnum: auth.AuthStrategyEnum,
|
|
353
|
+
SocialLoginProviders: auth.SocialLoginProviders,
|
|
354
|
+
ISubscriptionCancellationPolicy: subscriptions.ISubscriptionCancellationPolicy,
|
|
355
|
+
ISubscriptionStatus: subscriptions.ISubscriptionStatus,
|
|
356
|
+
PaymentMethodType: subscriptions.PaymentMethodType,
|
|
357
|
+
ProviderType: subscriptions.ProviderType
|
|
358
|
+
};
|
|
359
|
+
exports["default"] = _default;
|
package/node/jwt.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.jwtDecode = exports.InvalidTokenError = exports.InvalidCharacterError = void 0;
|
|
9
|
+
|
|
10
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
|
|
12
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
+
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
|
|
16
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
17
|
+
|
|
18
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
|
+
|
|
20
|
+
var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
|
|
21
|
+
|
|
22
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
23
|
+
|
|
24
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
25
|
+
|
|
26
|
+
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
27
|
+
|
|
28
|
+
var InvalidCharacterError = function (_Error) {
|
|
29
|
+
(0, _inherits2["default"])(InvalidCharacterError, _Error);
|
|
30
|
+
|
|
31
|
+
var _super = _createSuper(InvalidCharacterError);
|
|
32
|
+
|
|
33
|
+
function InvalidCharacterError(message) {
|
|
34
|
+
(0, _classCallCheck2["default"])(this, InvalidCharacterError);
|
|
35
|
+
return _super.call(this, message);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return (0, _createClass2["default"])(InvalidCharacterError);
|
|
39
|
+
}((0, _wrapNativeSuper2["default"])(Error));
|
|
40
|
+
|
|
41
|
+
exports.InvalidCharacterError = InvalidCharacterError;
|
|
42
|
+
|
|
43
|
+
function polyfill(input) {
|
|
44
|
+
var str = String(input).replace(/=+$/, '');
|
|
45
|
+
|
|
46
|
+
if (str.length % 4 === 1) {
|
|
47
|
+
throw new InvalidCharacterError("'atob' failed: The string to be decoded is not correctly encoded.");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var output = '';
|
|
51
|
+
|
|
52
|
+
for (var bc = 0, bs, buffer, idx = 0; buffer = str.charAt(idx++); ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer, bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0) {
|
|
53
|
+
buffer = chars.indexOf(buffer);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return output;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
var atob = typeof window !== 'undefined' && window.atob && window.atob.bind(window) || polyfill;
|
|
60
|
+
|
|
61
|
+
function b64DecodeUnicode(str) {
|
|
62
|
+
return decodeURIComponent(atob(str).replace(/(.)/g, function (m, p) {
|
|
63
|
+
var code = p.charCodeAt(0).toString(16).toUpperCase();
|
|
64
|
+
|
|
65
|
+
if (code.length < 2) {
|
|
66
|
+
code = '0' + code;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return '%' + code;
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var base64UrlDecode = function base64UrlDecode(str) {
|
|
74
|
+
var output = str.replace(/-/g, '+').replace(/_/g, '/');
|
|
75
|
+
|
|
76
|
+
switch (output.length % 4) {
|
|
77
|
+
case 0:
|
|
78
|
+
break;
|
|
79
|
+
|
|
80
|
+
case 2:
|
|
81
|
+
output += '==';
|
|
82
|
+
break;
|
|
83
|
+
|
|
84
|
+
case 3:
|
|
85
|
+
output += '=';
|
|
86
|
+
break;
|
|
87
|
+
|
|
88
|
+
default:
|
|
89
|
+
throw new Error('Illegal base64url string!');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
try {
|
|
93
|
+
return b64DecodeUnicode(output);
|
|
94
|
+
} catch (err) {
|
|
95
|
+
return atob(output);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
var InvalidTokenError = function (_Error2) {
|
|
100
|
+
(0, _inherits2["default"])(InvalidTokenError, _Error2);
|
|
101
|
+
|
|
102
|
+
var _super2 = _createSuper(InvalidTokenError);
|
|
103
|
+
|
|
104
|
+
function InvalidTokenError(message) {
|
|
105
|
+
(0, _classCallCheck2["default"])(this, InvalidTokenError);
|
|
106
|
+
return _super2.call(this, message);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return (0, _createClass2["default"])(InvalidTokenError);
|
|
110
|
+
}((0, _wrapNativeSuper2["default"])(Error));
|
|
111
|
+
|
|
112
|
+
exports.InvalidTokenError = InvalidTokenError;
|
|
113
|
+
|
|
114
|
+
var jwtDecode = function jwtDecode(token) {
|
|
115
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
116
|
+
var pos = !!options.header ? 0 : 1;
|
|
117
|
+
|
|
118
|
+
try {
|
|
119
|
+
return JSON.parse(base64UrlDecode(token.split('.')[pos]));
|
|
120
|
+
} catch (e) {
|
|
121
|
+
throw new InvalidTokenError('Invalid token specified: ' + e.message);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
exports.jwtDecode = jwtDecode;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getSamlMetadata = exports.getNotificationsMetadata = exports.getIpAdressMetadata = exports.getAuditsMetadata = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _fetch = require("../fetch");
|
|
15
|
+
|
|
16
|
+
function getMetadata(_x) {
|
|
17
|
+
return _getMetadata.apply(this, arguments);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function _getMetadata() {
|
|
21
|
+
_getMetadata = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee5(body) {
|
|
22
|
+
var _data$rows, _data$rows2;
|
|
23
|
+
|
|
24
|
+
var data;
|
|
25
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
26
|
+
while (1) {
|
|
27
|
+
switch (_context5.prev = _context5.next) {
|
|
28
|
+
case 0:
|
|
29
|
+
_context5.next = 2;
|
|
30
|
+
return (0, _fetch.Get)('/metadata', body);
|
|
31
|
+
|
|
32
|
+
case 2:
|
|
33
|
+
data = _context5.sent;
|
|
34
|
+
|
|
35
|
+
if (!(data != null && (_data$rows = data.rows) != null && _data$rows[0])) {
|
|
36
|
+
_context5.next = 5;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return _context5.abrupt("return", data == null ? void 0 : (_data$rows2 = data.rows) == null ? void 0 : _data$rows2[0]);
|
|
41
|
+
|
|
42
|
+
case 5:
|
|
43
|
+
throw new Error("metadata not found: ".concat(body.entityName));
|
|
44
|
+
|
|
45
|
+
case 6:
|
|
46
|
+
case "end":
|
|
47
|
+
return _context5.stop();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, _callee5);
|
|
51
|
+
}));
|
|
52
|
+
return _getMetadata.apply(this, arguments);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function getIpMetadata(_x2) {
|
|
56
|
+
return _getIpMetadata.apply(this, arguments);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function _getIpMetadata() {
|
|
60
|
+
_getIpMetadata = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee6(ip) {
|
|
61
|
+
var data;
|
|
62
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
63
|
+
while (1) {
|
|
64
|
+
switch (_context6.prev = _context6.next) {
|
|
65
|
+
case 0:
|
|
66
|
+
_context6.next = 2;
|
|
67
|
+
return (0, _fetch.Get)("/metadata/ip/".concat(ip));
|
|
68
|
+
|
|
69
|
+
case 2:
|
|
70
|
+
data = _context6.sent;
|
|
71
|
+
|
|
72
|
+
if (!data) {
|
|
73
|
+
_context6.next = 5;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return _context6.abrupt("return", data);
|
|
78
|
+
|
|
79
|
+
case 5:
|
|
80
|
+
throw new Error("ip metadata not found");
|
|
81
|
+
|
|
82
|
+
case 6:
|
|
83
|
+
case "end":
|
|
84
|
+
return _context6.stop();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, _callee6);
|
|
88
|
+
}));
|
|
89
|
+
return _getIpMetadata.apply(this, arguments);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
var getNotificationsMetadata = function () {
|
|
93
|
+
var _ref = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee() {
|
|
94
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
95
|
+
while (1) {
|
|
96
|
+
switch (_context.prev = _context.next) {
|
|
97
|
+
case 0:
|
|
98
|
+
return _context.abrupt("return", getMetadata({
|
|
99
|
+
entityName: 'notifications'
|
|
100
|
+
}));
|
|
101
|
+
|
|
102
|
+
case 1:
|
|
103
|
+
case "end":
|
|
104
|
+
return _context.stop();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, _callee);
|
|
108
|
+
}));
|
|
109
|
+
|
|
110
|
+
return function getNotificationsMetadata() {
|
|
111
|
+
return _ref.apply(this, arguments);
|
|
112
|
+
};
|
|
113
|
+
}();
|
|
114
|
+
|
|
115
|
+
exports.getNotificationsMetadata = getNotificationsMetadata;
|
|
116
|
+
|
|
117
|
+
var getSamlMetadata = function () {
|
|
118
|
+
var _ref2 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2() {
|
|
119
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
120
|
+
while (1) {
|
|
121
|
+
switch (_context2.prev = _context2.next) {
|
|
122
|
+
case 0:
|
|
123
|
+
return _context2.abrupt("return", getMetadata({
|
|
124
|
+
entityName: 'saml'
|
|
125
|
+
}));
|
|
126
|
+
|
|
127
|
+
case 1:
|
|
128
|
+
case "end":
|
|
129
|
+
return _context2.stop();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}, _callee2);
|
|
133
|
+
}));
|
|
134
|
+
|
|
135
|
+
return function getSamlMetadata() {
|
|
136
|
+
return _ref2.apply(this, arguments);
|
|
137
|
+
};
|
|
138
|
+
}();
|
|
139
|
+
|
|
140
|
+
exports.getSamlMetadata = getSamlMetadata;
|
|
141
|
+
|
|
142
|
+
var getAuditsMetadata = function () {
|
|
143
|
+
var _ref3 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3() {
|
|
144
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
145
|
+
while (1) {
|
|
146
|
+
switch (_context3.prev = _context3.next) {
|
|
147
|
+
case 0:
|
|
148
|
+
return _context3.abrupt("return", getMetadata({
|
|
149
|
+
entityName: 'audits'
|
|
150
|
+
}));
|
|
151
|
+
|
|
152
|
+
case 1:
|
|
153
|
+
case "end":
|
|
154
|
+
return _context3.stop();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}, _callee3);
|
|
158
|
+
}));
|
|
159
|
+
|
|
160
|
+
return function getAuditsMetadata() {
|
|
161
|
+
return _ref3.apply(this, arguments);
|
|
162
|
+
};
|
|
163
|
+
}();
|
|
164
|
+
|
|
165
|
+
exports.getAuditsMetadata = getAuditsMetadata;
|
|
166
|
+
|
|
167
|
+
var getIpAdressMetadata = function () {
|
|
168
|
+
var _ref4 = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee4(ip) {
|
|
169
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
170
|
+
while (1) {
|
|
171
|
+
switch (_context4.prev = _context4.next) {
|
|
172
|
+
case 0:
|
|
173
|
+
return _context4.abrupt("return", getIpMetadata(ip));
|
|
174
|
+
|
|
175
|
+
case 1:
|
|
176
|
+
case "end":
|
|
177
|
+
return _context4.stop();
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}, _callee4);
|
|
181
|
+
}));
|
|
182
|
+
|
|
183
|
+
return function getIpAdressMetadata(_x3) {
|
|
184
|
+
return _ref4.apply(this, arguments);
|
|
185
|
+
};
|
|
186
|
+
}();
|
|
187
|
+
|
|
188
|
+
exports.getIpAdressMetadata = getIpAdressMetadata;
|