@frontegg/rest-api 2.10.89 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/ContextHolder.d.ts → ContextHolder.d.ts} +0 -0
- package/ContextHolder.js +78 -0
- package/{dist/account-settings → account-settings}/index.d.ts +0 -0
- package/account-settings/index.js +8 -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 +21 -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/es2015/auth → auth}/index.d.ts +1 -1
- package/auth/index.js +409 -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 +48 -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 +120 -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} +12 -12
- package/{dist/error.d.ts → error.d.ts} +0 -0
- package/{src/error.ts → error.js} +4 -5
- package/fetch.d.ts +19 -0
- package/fetch.js +197 -0
- package/{dist/es2015/index.d.ts → index.d.ts} +0 -0
- package/{dist/es2015/index.js → index.js} +31 -27
- 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 +79 -0
- package/{dist/es2015/metadata → metadata}/index.d.ts +0 -0
- package/metadata/index.js +24 -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 +90 -0
- package/node/account-settings/index.js +19 -0
- package/node/account-settings/interfaces.js +5 -0
- package/node/audits/index.js +37 -0
- package/node/audits/interfaces.js +5 -0
- package/node/auth/enums.js +26 -0
- package/node/auth/index.js +709 -0
- package/node/auth/interfaces.js +39 -0
- package/node/auth/secutiry-poilicy/index.js +75 -0
- package/node/auth/secutiry-poilicy/interfaces.js +5 -0
- package/node/connectivity/index.js +208 -0
- package/node/connectivity/interfaces.js +5 -0
- package/node/constants.js +177 -0
- package/node/error.js +21 -0
- package/node/fetch.js +234 -0
- package/node/index.js +357 -0
- package/node/interfaces.js +5 -0
- package/node/jwt.js +93 -0
- package/node/metadata/index.js +44 -0
- package/node/metadata/interfaces.js +5 -0
- package/node/notifications/index.js +39 -0
- package/node/notifications/interfaces.js +5 -0
- package/node/reports/index.js +96 -0
- package/node/reports/interfaces.js +5 -0
- package/node/roles/index.js +71 -0
- package/node/roles/interfaces.js +5 -0
- package/node/routers.js +13 -0
- package/node/sub-tenants/index.js +39 -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 +28 -0
- package/node/subscriptions/managedSubscriptions.js +40 -0
- package/node/subscriptions/paymentMethods.js +37 -0
- package/node/subscriptions/paymentProviders.js +14 -0
- package/node/subscriptions/plans.js +19 -0
- package/node/subscriptions/providers/index.js +18 -0
- package/node/subscriptions/providers/stripe/index.js +34 -0
- package/node/subscriptions/providers/stripe/interfaces.js +5 -0
- package/node/subscriptions/subscriptions.js +40 -0
- package/node/subscriptions/summaries.js +14 -0
- package/node/subscriptions/tenantConfiguration.js +19 -0
- package/node/teams/index.js +129 -0
- package/node/teams/interfaces.js +5 -0
- package/node/tenants/index.js +29 -0
- package/node/tenants/interfaces.js +5 -0
- package/node/vendor/index.js +16 -0
- package/node/vendor/interfaces.js +5 -0
- package/{dist/es2015/notifications → notifications}/index.d.ts +0 -0
- package/notifications/index.js +24 -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 +75 -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 +47 -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 +20 -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 +15 -0
- package/{dist/es2015/subscriptions → subscriptions}/managedSubscriptions.d.ts +0 -0
- package/subscriptions/managedSubscriptions.js +23 -0
- package/subscriptions/package.json +6 -0
- package/{dist/es2015/subscriptions → subscriptions}/paymentMethods.d.ts +0 -0
- package/subscriptions/paymentMethods.js +21 -0
- package/{dist/es2015/subscriptions → subscriptions}/paymentProviders.d.ts +0 -0
- package/subscriptions/paymentProviders.js +5 -0
- package/{dist/es2015/subscriptions → subscriptions}/plans.d.ts +0 -0
- package/subscriptions/plans.js +8 -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 +17 -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 +23 -0
- package/{dist/es2015/subscriptions → subscriptions}/summaries.d.ts +0 -0
- package/subscriptions/summaries.js +5 -0
- package/{dist/es2015/subscriptions → subscriptions}/tenantConfiguration.d.ts +0 -0
- package/subscriptions/tenantConfiguration.js +8 -0
- package/{dist/es2015/teams → teams}/index.d.ts +0 -0
- package/teams/index.js +79 -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 +14 -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 +6 -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 -209
- 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.d.ts +0 -447
- 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.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/fetch.ts +0 -220
- package/src/index.ts +0 -86
- package/src/interfaces.ts +0 -47
- package/src/jwt.ts +0 -92
- package/src/metadata/index.ts +0 -24
- package/src/metadata/interfaces.ts +0 -51
- package/src/notifications/index.ts +0 -40
- package/src/notifications/interfaces.ts +0 -45
- package/src/reports/index.ts +0 -116
- package/src/reports/interfaces.ts +0 -167
- package/src/roles/index.ts +0 -80
- package/src/roles/interfaces.ts +0 -64
- package/src/routers.ts +0 -18
- package/src/sub-tenants/index.ts +0 -49
- package/src/sub-tenants/interfaces.ts +0 -100
- package/src/subscriptions/enums.ts +0 -22
- package/src/subscriptions/index.ts +0 -10
- package/src/subscriptions/interfaces.ts +0 -144
- package/src/subscriptions/invoices.ts +0 -42
- package/src/subscriptions/managedSubscriptions.ts +0 -53
- package/src/subscriptions/paymentMethods.ts +0 -47
- package/src/subscriptions/paymentProviders.ts +0 -13
- package/src/subscriptions/plans.ts +0 -19
- package/src/subscriptions/providers/index.ts +0 -1
- package/src/subscriptions/providers/stripe/index.ts +0 -56
- package/src/subscriptions/providers/stripe/interfaces.ts +0 -39
- package/src/subscriptions/subscriptions.ts +0 -63
- package/src/subscriptions/summaries.ts +0 -11
- package/src/subscriptions/tenantConfiguration.ts +0 -23
- package/src/teams/index.ts +0 -224
- package/src/teams/interfaces.ts +0 -163
- package/src/tenants/index.ts +0 -46
- package/src/tenants/interfaces.ts +0 -33
- package/src/vendor/index.ts +0 -12
- package/src/vendor/interfaces.ts +0 -6
- package/yarn-error.log +0 -518
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
SecondaryAuthStrategy: true
|
|
8
|
+
};
|
|
9
|
+
exports.SecondaryAuthStrategy = void 0;
|
|
10
|
+
|
|
11
|
+
var _interfaces = require("./secutiry-poilicy/interfaces");
|
|
12
|
+
|
|
13
|
+
Object.keys(_interfaces).forEach(function (key) {
|
|
14
|
+
if (key === "default" || key === "__esModule") return;
|
|
15
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
|
+
if (key in exports && exports[key] === _interfaces[key]) return;
|
|
17
|
+
Object.defineProperty(exports, key, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return _interfaces[key];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
;
|
|
25
|
+
;
|
|
26
|
+
;
|
|
27
|
+
;
|
|
28
|
+
;
|
|
29
|
+
;
|
|
30
|
+
;
|
|
31
|
+
;
|
|
32
|
+
let SecondaryAuthStrategy;
|
|
33
|
+
exports.SecondaryAuthStrategy = SecondaryAuthStrategy;
|
|
34
|
+
|
|
35
|
+
(function (SecondaryAuthStrategy) {
|
|
36
|
+
SecondaryAuthStrategy["WebAuthnPlatform"] = "WebAuthnPlatform";
|
|
37
|
+
SecondaryAuthStrategy["WebAuthnCrossPlatform"] = "WebAuthnCrossPlatform";
|
|
38
|
+
SecondaryAuthStrategy["SmsCode"] = "SmsCode";
|
|
39
|
+
})(SecondaryAuthStrategy || (exports.SecondaryAuthStrategy = SecondaryAuthStrategy = {}));
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getCaptchaPolicy = getCaptchaPolicy;
|
|
7
|
+
exports.getGlobalSecurityPolicy = getGlobalSecurityPolicy;
|
|
8
|
+
exports.getLockoutPolicy = getLockoutPolicy;
|
|
9
|
+
exports.getMfaPolicy = getMfaPolicy;
|
|
10
|
+
exports.getPasswordConfigPolicy = getPasswordConfigPolicy;
|
|
11
|
+
exports.getPasswordHistoryPolicy = getPasswordHistoryPolicy;
|
|
12
|
+
exports.getVendorMfaPolicy = getVendorMfaPolicy;
|
|
13
|
+
exports.saveLockoutPolicy = saveLockoutPolicy;
|
|
14
|
+
exports.saveMfaPolicy = saveMfaPolicy;
|
|
15
|
+
exports.savePasswordHistoryPolicy = savePasswordHistoryPolicy;
|
|
16
|
+
|
|
17
|
+
var _fetch = require("../../fetch");
|
|
18
|
+
|
|
19
|
+
var _constants = require("../../constants");
|
|
20
|
+
|
|
21
|
+
async function getGlobalSecurityPolicy() {
|
|
22
|
+
return (0, _fetch.Get)(_constants.urls.identity.configurations.v1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
async function getMfaPolicy() {
|
|
26
|
+
return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/mfa-policy`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async function getVendorMfaPolicy() {
|
|
30
|
+
return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/mfa-policy/vendor`);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async function saveMfaPolicy(body) {
|
|
34
|
+
if (body.id) {
|
|
35
|
+
return (0, _fetch.Patch)(`${_constants.urls.identity.configurations.v1}/mfa-policy`, body);
|
|
36
|
+
} else {
|
|
37
|
+
return (0, _fetch.Post)(`${_constants.urls.identity.configurations.v1}/mfa-policy`, body);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async function getLockoutPolicy() {
|
|
42
|
+
return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/lockout-policy`);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async function saveLockoutPolicy(body) {
|
|
46
|
+
if (body.id) {
|
|
47
|
+
return (0, _fetch.Patch)(`${_constants.urls.identity.configurations.v1}/lockout-policy`, body);
|
|
48
|
+
} else {
|
|
49
|
+
return (0, _fetch.Post)(`${_constants.urls.identity.configurations.v1}/lockout-policy`, body);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function getCaptchaPolicy() {
|
|
54
|
+
try {
|
|
55
|
+
return await (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/captcha-policy/public`);
|
|
56
|
+
} catch {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function getPasswordHistoryPolicy() {
|
|
62
|
+
return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/password-history-policy`);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
async function savePasswordHistoryPolicy(body) {
|
|
66
|
+
if (body.id) {
|
|
67
|
+
return (0, _fetch.Patch)(`${_constants.urls.identity.configurations.v1}/password-history-policy`, body);
|
|
68
|
+
} else {
|
|
69
|
+
return (0, _fetch.Post)(`${_constants.urls.identity.configurations.v1}/password-history-policy`, body);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
async function getPasswordConfigPolicy() {
|
|
74
|
+
return (0, _fetch.Get)(`${_constants.urls.identity.configurations.v1}/password`);
|
|
75
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.putSMSSubscriptions = exports.putEmailSubscriptions = exports.postWebhooksConfiguration = exports.postWebhookTest = exports.postWebhookRetry = exports.postSlackConfiguration = exports.postSlackCode = exports.postSMSConfiguration = exports.postEmailConfiguration = exports.patchSMSConfiguration = exports.patchEmailConfiguration = exports.getWebhooksConfigurations = exports.getWebhookLog = exports.getSlackScope = exports.getSlackConfiguration = exports.getSlackChannels = exports.getSMSConfiguration = exports.getEmailConfiguration = exports.getChannelMaps = exports.getCategories = exports.deleteWebhooksConfiguration = exports.deleteSlackConfiguration = exports.deleteSMSSubscriptions = exports.deleteSMSConfiguration = exports.deleteEmailSubscriptions = exports.deleteEmailConfiguration = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
|
+
|
|
12
|
+
var _constants = require("../constants");
|
|
13
|
+
|
|
14
|
+
var _fetch = require("../fetch");
|
|
15
|
+
|
|
16
|
+
const _excluded = ["eventKey"],
|
|
17
|
+
_excluded2 = ["eventKey"];
|
|
18
|
+
|
|
19
|
+
const getSlackConfiguration = () => {
|
|
20
|
+
return (0, _fetch.Get)(`${_constants.urls.integrations.configurations.v1}/slack`);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.getSlackConfiguration = getSlackConfiguration;
|
|
24
|
+
|
|
25
|
+
const getSlackScope = () => {
|
|
26
|
+
return (0, _fetch.Get)(`${_constants.urls.integrations.configurations.v1}/slack/applications`);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.getSlackScope = getSlackScope;
|
|
30
|
+
|
|
31
|
+
const getSlackChannels = () => {
|
|
32
|
+
return (0, _fetch.Get)(`${_constants.urls.integrations.configurations.v1}/slack/channels`);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.getSlackChannels = getSlackChannels;
|
|
36
|
+
|
|
37
|
+
const postSlackConfiguration = data => {
|
|
38
|
+
if (data.id) {
|
|
39
|
+
return (0, _fetch.Patch)(`${_constants.urls.integrations.configurations.v1}/slack/subscription/${data.id}`, data);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return (0, _fetch.Post)(`${_constants.urls.integrations.configurations.v1}/slack/subscriptions`, data);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.postSlackConfiguration = postSlackConfiguration;
|
|
46
|
+
|
|
47
|
+
const deleteSlackConfiguration = data => {
|
|
48
|
+
return (0, _fetch.Delete)(`${_constants.urls.integrations.configurations.v1}/slack/subscriptions/${data.id}`);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
exports.deleteSlackConfiguration = deleteSlackConfiguration;
|
|
52
|
+
|
|
53
|
+
const postSlackCode = code => {
|
|
54
|
+
return (0, _fetch.Post)(`${_constants.urls.integrations.configurations.v1}/slack/applications/registrations`, {
|
|
55
|
+
code
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
exports.postSlackCode = postSlackCode;
|
|
60
|
+
|
|
61
|
+
const getEmailConfiguration = () => {
|
|
62
|
+
return (0, _fetch.Get)(`${_constants.urls.integrations.configurations.v1}/emails`);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.getEmailConfiguration = getEmailConfiguration;
|
|
66
|
+
|
|
67
|
+
const postEmailConfiguration = _ref => {
|
|
68
|
+
let {
|
|
69
|
+
eventKey
|
|
70
|
+
} = _ref,
|
|
71
|
+
data = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
72
|
+
return (0, _fetch.Post)(`${_constants.urls.integrations.configurations.v1}/emails/${eventKey}`, data);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
exports.postEmailConfiguration = postEmailConfiguration;
|
|
76
|
+
|
|
77
|
+
const patchEmailConfiguration = ({
|
|
78
|
+
eventKey,
|
|
79
|
+
enabled
|
|
80
|
+
}) => {
|
|
81
|
+
return (0, _fetch.Patch)(`${_constants.urls.integrations.configurations.v1}/emails/${eventKey}`, {
|
|
82
|
+
enabled
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
exports.patchEmailConfiguration = patchEmailConfiguration;
|
|
87
|
+
|
|
88
|
+
const deleteEmailSubscriptions = (eventKey, subscriptionId) => {
|
|
89
|
+
return (0, _fetch.Delete)(`${_constants.urls.integrations.configurations.v1}/emails/${eventKey}/subscriptions/${subscriptionId}`);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
exports.deleteEmailSubscriptions = deleteEmailSubscriptions;
|
|
93
|
+
|
|
94
|
+
const putEmailSubscriptions = (subscriptionId, eventKey, data) => {
|
|
95
|
+
return (0, _fetch.Put)(`${_constants.urls.integrations.configurations.v1}/emails/${eventKey}/subscriptions/${subscriptionId}`, data);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports.putEmailSubscriptions = putEmailSubscriptions;
|
|
99
|
+
|
|
100
|
+
const deleteEmailConfiguration = eventKey => {
|
|
101
|
+
return (0, _fetch.Delete)(`${_constants.urls.integrations.configurations.v1}/emails/${eventKey}`);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
exports.deleteEmailConfiguration = deleteEmailConfiguration;
|
|
105
|
+
|
|
106
|
+
const getSMSConfiguration = () => {
|
|
107
|
+
return (0, _fetch.Get)(`${_constants.urls.integrations.configurations.v2}/sms`);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
exports.getSMSConfiguration = getSMSConfiguration;
|
|
111
|
+
|
|
112
|
+
const postSMSConfiguration = _ref2 => {
|
|
113
|
+
let {
|
|
114
|
+
eventKey
|
|
115
|
+
} = _ref2,
|
|
116
|
+
data = (0, _objectWithoutPropertiesLoose2.default)(_ref2, _excluded2);
|
|
117
|
+
return (0, _fetch.Post)(`${_constants.urls.integrations.configurations.v2}/sms/${eventKey}`, data);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
exports.postSMSConfiguration = postSMSConfiguration;
|
|
121
|
+
|
|
122
|
+
const patchSMSConfiguration = ({
|
|
123
|
+
eventKey,
|
|
124
|
+
enabled
|
|
125
|
+
}) => {
|
|
126
|
+
return (0, _fetch.Patch)(`${_constants.urls.integrations.configurations.v2}/sms/${eventKey}`, {
|
|
127
|
+
enabled
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
exports.patchSMSConfiguration = patchSMSConfiguration;
|
|
132
|
+
|
|
133
|
+
const deleteSMSSubscriptions = (eventKey, subscriptionId) => {
|
|
134
|
+
return (0, _fetch.Delete)(`${_constants.urls.integrations.configurations.v2}/sms/${eventKey}/subscriptions/${subscriptionId}`);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
exports.deleteSMSSubscriptions = deleteSMSSubscriptions;
|
|
138
|
+
|
|
139
|
+
const putSMSSubscriptions = (subscriptionId, eventKey, data) => {
|
|
140
|
+
return (0, _fetch.Put)(`${_constants.urls.integrations.configurations.v2}/sms/${eventKey}/subscriptions/${subscriptionId}`, data);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
exports.putSMSSubscriptions = putSMSSubscriptions;
|
|
144
|
+
|
|
145
|
+
const deleteSMSConfiguration = eventKey => {
|
|
146
|
+
return (0, _fetch.Delete)(`${_constants.urls.integrations.configurations.v2}/sms/${eventKey}`);
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
exports.deleteSMSConfiguration = deleteSMSConfiguration;
|
|
150
|
+
|
|
151
|
+
const getWebhooksConfigurations = () => {
|
|
152
|
+
return (0, _fetch.Get)(_constants.urls.webhooks.v1);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
exports.getWebhooksConfigurations = getWebhooksConfigurations;
|
|
156
|
+
|
|
157
|
+
const postWebhooksConfiguration = data => {
|
|
158
|
+
if (data._id) {
|
|
159
|
+
return (0, _fetch.Patch)(`${_constants.urls.webhooks.v1}/${data._id}`, data);
|
|
160
|
+
} else {
|
|
161
|
+
return (0, _fetch.Post)(`${_constants.urls.webhooks.v1}/custom`, data);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
exports.postWebhooksConfiguration = postWebhooksConfiguration;
|
|
166
|
+
|
|
167
|
+
const deleteWebhooksConfiguration = id => {
|
|
168
|
+
return (0, _fetch.Delete)(`${_constants.urls.webhooks.v1}/${id}`);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
exports.deleteWebhooksConfiguration = deleteWebhooksConfiguration;
|
|
172
|
+
|
|
173
|
+
const getWebhookLog = (id, offset = 0, limit = 10) => {
|
|
174
|
+
const query = new URLSearchParams({
|
|
175
|
+
id,
|
|
176
|
+
offset: `${offset}`,
|
|
177
|
+
limit: `${limit}`
|
|
178
|
+
});
|
|
179
|
+
return (0, _fetch.Get)(`${_constants.urls.webhooks.v1}/logs/?${query.toString()}`);
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
exports.getWebhookLog = getWebhookLog;
|
|
183
|
+
|
|
184
|
+
const postWebhookTest = data => {
|
|
185
|
+
return (0, _fetch.Post)(`${_constants.urls.webhooks.v1}/test`, data);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
exports.postWebhookTest = postWebhookTest;
|
|
189
|
+
|
|
190
|
+
const postWebhookRetry = id => {
|
|
191
|
+
return (0, _fetch.Post)(`${_constants.urls.webhooks.v1}/logs/${id}/retries`);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
exports.postWebhookRetry = postWebhookRetry;
|
|
195
|
+
|
|
196
|
+
const getCategories = () => {
|
|
197
|
+
return (0, _fetch.Get)(`${_constants.urls.events.configurations.v1}/categories`);
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
exports.getCategories = getCategories;
|
|
201
|
+
|
|
202
|
+
const getChannelMaps = channels => {
|
|
203
|
+
return (0, _fetch.Get)(_constants.urls.events.configurations.v1, {
|
|
204
|
+
channels
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
exports.getChannelMaps = getChannelMaps;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.urls = void 0;
|
|
7
|
+
const urls = {
|
|
8
|
+
vendor: '/vendors',
|
|
9
|
+
identity: {
|
|
10
|
+
webAuthnDevices: {
|
|
11
|
+
v1: '/identity/resources/users/webauthn/v1/devices'
|
|
12
|
+
},
|
|
13
|
+
auth: {
|
|
14
|
+
v1: '/identity/resources/auth/v1',
|
|
15
|
+
v2: '/identity/resources/auth/v2'
|
|
16
|
+
},
|
|
17
|
+
users: {
|
|
18
|
+
v1: '/identity/resources/users/v1',
|
|
19
|
+
v2: '/identity/resources/users/v2',
|
|
20
|
+
apiTokens: {
|
|
21
|
+
v1: '/identity/resources/users/api-tokens/v1'
|
|
22
|
+
},
|
|
23
|
+
sessions: {
|
|
24
|
+
currentUser: {
|
|
25
|
+
v1: '/identity/resources/users/sessions/v1/me'
|
|
26
|
+
},
|
|
27
|
+
configurations: {
|
|
28
|
+
v1: '/identity/resources/configurations/sessions/v1'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
invitation: {
|
|
32
|
+
resendAll: {
|
|
33
|
+
v1: '/identity/resources/users/v1/invitation/reset/all'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
configurations: {
|
|
38
|
+
v1: '/identity/resources/configurations/v1'
|
|
39
|
+
},
|
|
40
|
+
sso: {
|
|
41
|
+
v1: '/identity/resources/sso/v1',
|
|
42
|
+
v2: '/identity/resources/sso/v2'
|
|
43
|
+
},
|
|
44
|
+
permissions: {
|
|
45
|
+
v1: '/identity/resources/permissions/v1'
|
|
46
|
+
},
|
|
47
|
+
tenants: {
|
|
48
|
+
apiTokens: {
|
|
49
|
+
v1: '/identity/resources/tenants/api-tokens/v1',
|
|
50
|
+
v2: '/identity/resources/tenants/api-tokens/v2'
|
|
51
|
+
},
|
|
52
|
+
invites: {
|
|
53
|
+
user: {
|
|
54
|
+
v1: '/identity/resources/tenants/invites/v1/user'
|
|
55
|
+
},
|
|
56
|
+
verify: {
|
|
57
|
+
v1: '/identity/resources/tenants/invites/v1/verify'
|
|
58
|
+
},
|
|
59
|
+
configuration: {
|
|
60
|
+
v1: '/identity/resources/tenants/invites/v1/configuration'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
roles: {
|
|
65
|
+
v1: '/identity/resources/roles/v1'
|
|
66
|
+
},
|
|
67
|
+
subTenants: {
|
|
68
|
+
v1: '/identity/resources/sub-tenants/users/v1'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
team: {
|
|
72
|
+
sso: {
|
|
73
|
+
v1: '/team/resources/sso/v1',
|
|
74
|
+
v2: '/team/resources/sso/v2'
|
|
75
|
+
},
|
|
76
|
+
members: {
|
|
77
|
+
v1: '/team/resources/members/v1'
|
|
78
|
+
},
|
|
79
|
+
roles: {
|
|
80
|
+
v1: '/team/resources/roles/v1'
|
|
81
|
+
},
|
|
82
|
+
stats: {
|
|
83
|
+
v1: '/team/resources/stats/v1'
|
|
84
|
+
},
|
|
85
|
+
profile: {
|
|
86
|
+
v1: '/team/resources/profile'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
tenants: {
|
|
90
|
+
accountSettings: {
|
|
91
|
+
v1: '/tenants/resources/account-settings/v1'
|
|
92
|
+
},
|
|
93
|
+
hierarchy: {
|
|
94
|
+
v1: '/tenants/resources/hierarchy/v1',
|
|
95
|
+
tree: {
|
|
96
|
+
v1: '/tenants/resources/hierarchy/v1/tree'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
integrations: {
|
|
101
|
+
configurations: {
|
|
102
|
+
v1: '/integrations/resources/configurations/v1',
|
|
103
|
+
v2: '/integrations/resources/configurations/v2'
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
subscriptions: {
|
|
107
|
+
billing: {
|
|
108
|
+
subscriptions: {
|
|
109
|
+
v1: '/subscriptions/resources/billing/subscriptions/v1'
|
|
110
|
+
},
|
|
111
|
+
plans: {
|
|
112
|
+
v1: '/subscriptions/resources/billing/plans/v1'
|
|
113
|
+
},
|
|
114
|
+
invoices: {
|
|
115
|
+
v1: '/subscriptions/resources/billing/invoices/v1'
|
|
116
|
+
},
|
|
117
|
+
paymentMethods: {
|
|
118
|
+
v1: '/subscriptions/resources/billing/payment-methods/v1'
|
|
119
|
+
},
|
|
120
|
+
summaries: {
|
|
121
|
+
v1: '/subscriptions/resources/billing/summaries/v1'
|
|
122
|
+
},
|
|
123
|
+
tenantConfiguration: {
|
|
124
|
+
v1: '/subscriptions/resources/billing/tenant-configurations/v1'
|
|
125
|
+
},
|
|
126
|
+
paymentProviders: {
|
|
127
|
+
stripe: {
|
|
128
|
+
customers: {
|
|
129
|
+
v1: '/subscriptions/resources/billing/payment-providers/stripe/customers/v1'
|
|
130
|
+
},
|
|
131
|
+
publicConfigurations: {
|
|
132
|
+
v1: '/subscriptions/resources/billing/payment-providers/stripe/public-configurations/v1'
|
|
133
|
+
},
|
|
134
|
+
subscriptions: {
|
|
135
|
+
v1: '/subscriptions/resources/billing/payment-providers/stripe/subscriptions/v1'
|
|
136
|
+
},
|
|
137
|
+
setupIntents: {
|
|
138
|
+
v1: '/subscriptions/resources/billing/payment-providers/stripe/setup-intents/v1'
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
paymentProviders: {
|
|
144
|
+
v1: '/subscriptions/resources/payment-providers/v1'
|
|
145
|
+
},
|
|
146
|
+
managedSubscriptions: {
|
|
147
|
+
v1: '/subscriptions/resources/subscriptions/v1'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
reports: {
|
|
151
|
+
service: {
|
|
152
|
+
v1: '/reports/resources/reports/v1',
|
|
153
|
+
v2: '/reports/resources/reports/v2'
|
|
154
|
+
},
|
|
155
|
+
trigger: {
|
|
156
|
+
v1: '/reports/engine/resources/triggers/v1'
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
notifications: {
|
|
160
|
+
v1: '/notification'
|
|
161
|
+
},
|
|
162
|
+
audits: {
|
|
163
|
+
v1: '/audits'
|
|
164
|
+
},
|
|
165
|
+
events: {
|
|
166
|
+
configurations: {
|
|
167
|
+
v1: '/event/resources/configurations/v1'
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
webhooks: {
|
|
171
|
+
v1: '/webhook'
|
|
172
|
+
},
|
|
173
|
+
oauth: {
|
|
174
|
+
v1: '/oauth'
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
exports.urls = urls;
|
package/node/error.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FronteggApiError = void 0;
|
|
7
|
+
|
|
8
|
+
class FronteggApiError extends Error {
|
|
9
|
+
constructor(message, statusCode) {
|
|
10
|
+
super(message);
|
|
11
|
+
this._statusCode = void 0;
|
|
12
|
+
this._statusCode = statusCode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get statusCode() {
|
|
16
|
+
return this._statusCode;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.FronteggApiError = FronteggApiError;
|