@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
package/dist/teams/index.js
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.resendInvitationLinkToAllTenants = exports.resendInvitationLink = exports.resendActivationLink = exports.loadStats = exports.loadAvailablePermissions = exports.loadAvailableRoles = exports.getInviteLinkConfiguration = exports.getInviteUserLink = exports.deleteInviteUserLink = exports.updateInviteUserLink = exports.createInviteUserLink = exports.updateUser = exports.deleteUser = exports.addUser = exports.loadUsers = exports.changePassword = exports.updateProfileImage = exports.updateProfile = exports.getProfile = void 0;
|
|
13
|
-
const fetch_1 = require("../fetch");
|
|
14
|
-
const constants_1 = require("../constants");
|
|
15
|
-
/*****************************************
|
|
16
|
-
* Profile Api
|
|
17
|
-
*****************************************/
|
|
18
|
-
/**
|
|
19
|
-
* change user password by providing current password and the new password.
|
|
20
|
-
*
|
|
21
|
-
* @throws exception if the current password incorrect or new password validation failed.
|
|
22
|
-
* ``authorized user``
|
|
23
|
-
*/
|
|
24
|
-
function getProfile(params) {
|
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
console.debug('getProfile()');
|
|
27
|
-
return fetch_1.Get(`${constants_1.urls.identity.users.v2}/me`, params !== null && params !== void 0 ? params : { addRoles: true });
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
exports.getProfile = getProfile;
|
|
31
|
-
/**
|
|
32
|
-
* update user profile by providing updated fields.
|
|
33
|
-
* ``authorized user``
|
|
34
|
-
*/
|
|
35
|
-
function updateProfile(body) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
console.debug('updateProfile()', body);
|
|
38
|
-
return fetch_1.Put(`${constants_1.urls.identity.users.v2}/me`, body);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
exports.updateProfile = updateProfile;
|
|
42
|
-
/**
|
|
43
|
-
* update user profile image
|
|
44
|
-
* ``authorized user``
|
|
45
|
-
*/
|
|
46
|
-
function updateProfileImage(body) {
|
|
47
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
console.debug('updateProfileImage()', body);
|
|
49
|
-
return fetch_1.Put(`${constants_1.urls.team.profile.v1}/me/image/v1`, body, { responseType: 'plain', contentType: undefined });
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
exports.updateProfileImage = updateProfileImage;
|
|
53
|
-
/**
|
|
54
|
-
* change user password by providing current password and the new password.
|
|
55
|
-
*
|
|
56
|
-
* @throws exception if the current password incorrect or new password validation failed.
|
|
57
|
-
* ``authorized user``
|
|
58
|
-
*/
|
|
59
|
-
function changePassword(body) {
|
|
60
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
console.debug('changePassword()');
|
|
62
|
-
return fetch_1.Post(`${constants_1.urls.identity.users.v1}/passwords/change`, body);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
exports.changePassword = changePassword;
|
|
66
|
-
/*****************************************
|
|
67
|
-
* Team Api
|
|
68
|
-
*****************************************/
|
|
69
|
-
/**
|
|
70
|
-
* load users from team-management-service
|
|
71
|
-
*
|
|
72
|
-
* ``authorized user``
|
|
73
|
-
*/
|
|
74
|
-
function loadUsers(params) {
|
|
75
|
-
var _a, _b, _c, _d, _e, _f;
|
|
76
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
const filters = (params.filter || []).reduce((p, n) => (Object.assign(Object.assign({}, p), { [n.id]: n.value })), {});
|
|
78
|
-
const sorts = ((_a = params.sort) === null || _a === void 0 ? void 0 : _a.length)
|
|
79
|
-
? {
|
|
80
|
-
sortBy: (_d = (_c = (_b = params.sort) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : 'name',
|
|
81
|
-
sortDirection: ((_f = (_e = params.sort) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.desc) ? 'desc' : 'asc',
|
|
82
|
-
}
|
|
83
|
-
: null;
|
|
84
|
-
return fetch_1.Get(constants_1.urls.team.members.v1, Object.assign(Object.assign({ pageOffset: params.pageOffset, pageSize: params.pageSize }, filters), sorts));
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
exports.loadUsers = loadUsers;
|
|
88
|
-
/**
|
|
89
|
-
* add user to team, invitation link will be sent to the added user.
|
|
90
|
-
*
|
|
91
|
-
* ``authorized user``
|
|
92
|
-
*/
|
|
93
|
-
function addUser(body) {
|
|
94
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
console.debug('addUser()', body);
|
|
96
|
-
return fetch_1.Post(constants_1.urls.identity.users.v2, Object.assign(Object.assign({}, body), { provider: 'local' }));
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
exports.addUser = addUser;
|
|
100
|
-
/**
|
|
101
|
-
* delete user from team, user will be deleted.
|
|
102
|
-
*
|
|
103
|
-
* ``authorized user``
|
|
104
|
-
*/
|
|
105
|
-
function deleteUser(body) {
|
|
106
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
console.debug('deleteUser()', body);
|
|
108
|
-
return fetch_1.Delete(`${constants_1.urls.team.members.v1}/${body.userId}`);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
exports.deleteUser = deleteUser;
|
|
112
|
-
/**
|
|
113
|
-
* edit user roles in team
|
|
114
|
-
*
|
|
115
|
-
* ``authorized user``
|
|
116
|
-
*/
|
|
117
|
-
function updateUser(body) {
|
|
118
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
-
console.debug('editUser()', body);
|
|
120
|
-
return fetch_1.Put(constants_1.urls.team.members.v1, body);
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
exports.updateUser = updateUser;
|
|
124
|
-
/**
|
|
125
|
-
* create link to invite user
|
|
126
|
-
*
|
|
127
|
-
* ``authorized user``
|
|
128
|
-
*/
|
|
129
|
-
function createInviteUserLink(body) {
|
|
130
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
console.debug('createInviteUserLink()');
|
|
132
|
-
return fetch_1.Post(constants_1.urls.identity.tenants.invites.user.v1, Object.assign({}, body));
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
exports.createInviteUserLink = createInviteUserLink;
|
|
136
|
-
/**
|
|
137
|
-
* update link to invite user
|
|
138
|
-
*
|
|
139
|
-
* ``authorized user``
|
|
140
|
-
*/
|
|
141
|
-
function updateInviteUserLink(body) {
|
|
142
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
console.debug('updateInviteUserLink()', body);
|
|
144
|
-
return fetch_1.Patch(constants_1.urls.identity.tenants.invites.user.v1, Object.assign({}, body));
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
exports.updateInviteUserLink = updateInviteUserLink;
|
|
148
|
-
/**
|
|
149
|
-
* delete link to invite user
|
|
150
|
-
*
|
|
151
|
-
* ``authorized user``
|
|
152
|
-
*/
|
|
153
|
-
function deleteInviteUserLink() {
|
|
154
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
-
console.debug('deleteInviteUserLink()');
|
|
156
|
-
return fetch_1.Delete(constants_1.urls.identity.tenants.invites.user.v1);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
exports.deleteInviteUserLink = deleteInviteUserLink;
|
|
160
|
-
/**
|
|
161
|
-
* get link to invite user
|
|
162
|
-
*
|
|
163
|
-
* ``authorized user``
|
|
164
|
-
*/
|
|
165
|
-
function getInviteUserLink() {
|
|
166
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
-
console.debug('getInviteUserLink()');
|
|
168
|
-
return fetch_1.Get(constants_1.urls.identity.tenants.invites.user.v1);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
exports.getInviteUserLink = getInviteUserLink;
|
|
172
|
-
/**
|
|
173
|
-
* get invite link configuration
|
|
174
|
-
*
|
|
175
|
-
*/
|
|
176
|
-
function getInviteLinkConfiguration() {
|
|
177
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
-
console.debug('getInviteLinkConfiguration()');
|
|
179
|
-
return fetch_1.Get(constants_1.urls.identity.tenants.invites.configuration.v1);
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
exports.getInviteLinkConfiguration = getInviteLinkConfiguration;
|
|
183
|
-
/**
|
|
184
|
-
* load available roles that can be assigned to team users from team-management-service
|
|
185
|
-
*
|
|
186
|
-
* ``authorized user``
|
|
187
|
-
*/
|
|
188
|
-
function loadAvailableRoles() {
|
|
189
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
-
console.debug('loadAvailableRoles()');
|
|
191
|
-
return fetch_1.Get(constants_1.urls.team.roles.v1);
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
exports.loadAvailableRoles = loadAvailableRoles;
|
|
195
|
-
function loadAvailablePermissions() {
|
|
196
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
-
console.debug('loadAvailablePermissions()');
|
|
198
|
-
return fetch_1.Get(constants_1.urls.identity.permissions.v1);
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
exports.loadAvailablePermissions = loadAvailablePermissions;
|
|
202
|
-
/**
|
|
203
|
-
* load users stats from team-management-service
|
|
204
|
-
*
|
|
205
|
-
* ``authorized user``
|
|
206
|
-
*/
|
|
207
|
-
function loadStats() {
|
|
208
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
-
console.debug('loadStats()');
|
|
210
|
-
return fetch_1.Get(`${constants_1.urls.team.stats.v1}/members`);
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
exports.loadStats = loadStats;
|
|
214
|
-
/**
|
|
215
|
-
* resend activation link to specific user
|
|
216
|
-
*
|
|
217
|
-
* ``authorized user``
|
|
218
|
-
*/
|
|
219
|
-
function resendActivationLink(body) {
|
|
220
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
-
console.debug('resendActivationLink()', body);
|
|
222
|
-
return fetch_1.Post(`${constants_1.urls.team.members.v1}/${body.userId}/resendActivationEmail`, {});
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
exports.resendActivationLink = resendActivationLink;
|
|
226
|
-
/**
|
|
227
|
-
* resend accept join tenant invitation link to specific user
|
|
228
|
-
*
|
|
229
|
-
* ``authorized user``
|
|
230
|
-
*/
|
|
231
|
-
function resendInvitationLink(body) {
|
|
232
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
-
console.debug('resendInvitationLink()', body);
|
|
234
|
-
return fetch_1.Post(constants_1.urls.identity.users.v2, Object.assign(Object.assign({}, body), { provider: 'local' }));
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
exports.resendInvitationLink = resendInvitationLink;
|
|
238
|
-
/**
|
|
239
|
-
* resend accept join all pending tenant for current hierarchy invitation link to specific user
|
|
240
|
-
*
|
|
241
|
-
* ``authorized user``
|
|
242
|
-
*/
|
|
243
|
-
function resendInvitationLinkToAllTenants(body) {
|
|
244
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
245
|
-
console.debug('resendInvitationLinkToAllTenants()', body);
|
|
246
|
-
return fetch_1.Post(constants_1.urls.identity.users.invitation.resendAll.v1, Object.assign({}, body));
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
exports.resendInvitationLinkToAllTenants = resendInvitationLinkToAllTenants;
|
|
250
|
-
//# sourceMappingURL=index.js.map
|
package/dist/teams/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/teams/index.ts"],"names":[],"m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CAAC,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,kCAAM,IAAI,KAAE,QAAQ,EAAE,OAAO,IAAE,CAAC;IACpE,CAAC;CAAA;AAHD,oDAGC;AAED;;;;GAIG;AACH,SAAsB,gCAAgC,CAAC,IAA2B;;QAChF,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,IAAI,CAAC,CAAC;QAC1D,OAAO,YAAI,CAAC,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,oBAAM,IAAI,EAAG,CAAC;IACvE,CAAC;CAAA;AAHD,4EAGC"}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { QueryFilter, QuerySort } from '../interfaces';
|
|
2
|
-
import { IRole, IRolePermission } from '../roles/interfaces';
|
|
3
|
-
export declare type IUserProfile = {
|
|
4
|
-
id: string;
|
|
5
|
-
email: string;
|
|
6
|
-
mfaEnrolled: boolean;
|
|
7
|
-
name: string;
|
|
8
|
-
phoneNumber?: string;
|
|
9
|
-
profileImage?: string;
|
|
10
|
-
profilePictureUrl: string;
|
|
11
|
-
roles: IRole[];
|
|
12
|
-
permissions: IRolePermission[];
|
|
13
|
-
tenantId: string;
|
|
14
|
-
tenantIds: string[];
|
|
15
|
-
activatedForTenant?: boolean;
|
|
16
|
-
metadata: any;
|
|
17
|
-
roleIds?: string[];
|
|
18
|
-
verified?: boolean;
|
|
19
|
-
superUser?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare type ITeamUserTenant = {
|
|
22
|
-
tenantId: string;
|
|
23
|
-
roles: IRole[];
|
|
24
|
-
};
|
|
25
|
-
export declare type ITeamUser = {
|
|
26
|
-
id: string;
|
|
27
|
-
email: string;
|
|
28
|
-
name: string;
|
|
29
|
-
phone?: string;
|
|
30
|
-
profileImage?: string;
|
|
31
|
-
profileImageUrl?: string;
|
|
32
|
-
tenantId: string;
|
|
33
|
-
vendorId: string;
|
|
34
|
-
roleIds: string[];
|
|
35
|
-
roles: IRole[];
|
|
36
|
-
activatedForTenant: boolean;
|
|
37
|
-
createdAt: string;
|
|
38
|
-
customData?: any;
|
|
39
|
-
lastLogin?: string;
|
|
40
|
-
mfaEnabled?: boolean;
|
|
41
|
-
tenants?: ITeamUserTenant;
|
|
42
|
-
verified?: boolean;
|
|
43
|
-
};
|
|
44
|
-
export declare type ITeamUserRole = {
|
|
45
|
-
id: string;
|
|
46
|
-
description: string;
|
|
47
|
-
key: string;
|
|
48
|
-
name: string;
|
|
49
|
-
permissions?: string[];
|
|
50
|
-
permissionLevel?: number;
|
|
51
|
-
};
|
|
52
|
-
export declare type ITeamUserPermission = {
|
|
53
|
-
description: string;
|
|
54
|
-
fePermission: boolean;
|
|
55
|
-
id: string;
|
|
56
|
-
key: string;
|
|
57
|
-
name: string;
|
|
58
|
-
roleIds: string[];
|
|
59
|
-
createdAt: Date;
|
|
60
|
-
updatedAt: Date;
|
|
61
|
-
categoryId: string;
|
|
62
|
-
};
|
|
63
|
-
export interface ISamlRolesGroup {
|
|
64
|
-
id: string;
|
|
65
|
-
group: string;
|
|
66
|
-
roleIds: string[];
|
|
67
|
-
}
|
|
68
|
-
export declare type ITeamStats = {
|
|
69
|
-
totalItems: number;
|
|
70
|
-
addedThisWeek: number;
|
|
71
|
-
superAdmins: number;
|
|
72
|
-
};
|
|
73
|
-
export declare type IUpdateProfile = {
|
|
74
|
-
title: 'Mr' | 'Miss' | 'Mrs' | 'Ms';
|
|
75
|
-
name: string;
|
|
76
|
-
country: string;
|
|
77
|
-
phoneNumber: string;
|
|
78
|
-
dateOfBirth: number;
|
|
79
|
-
profilePicture: string;
|
|
80
|
-
};
|
|
81
|
-
export declare type IUpdateProfileImage = {
|
|
82
|
-
profileImage: string;
|
|
83
|
-
};
|
|
84
|
-
export declare type IChangePassword = {
|
|
85
|
-
password: string;
|
|
86
|
-
newPassword: string;
|
|
87
|
-
};
|
|
88
|
-
export declare type ILoadUsers = {
|
|
89
|
-
silentLoading?: boolean;
|
|
90
|
-
filter?: QueryFilter[];
|
|
91
|
-
sort?: QuerySort[];
|
|
92
|
-
pageOffset: number;
|
|
93
|
-
pageSize?: number;
|
|
94
|
-
};
|
|
95
|
-
export declare type IAddUser = {
|
|
96
|
-
name: string;
|
|
97
|
-
email: string;
|
|
98
|
-
phone?: string;
|
|
99
|
-
roleIds: string[];
|
|
100
|
-
};
|
|
101
|
-
export declare type IDeleteUser = {
|
|
102
|
-
userId: string;
|
|
103
|
-
};
|
|
104
|
-
export declare type IUpdateUser = Partial<ITeamUser>;
|
|
105
|
-
export declare type IResendActivationLink = {
|
|
106
|
-
userId: string;
|
|
107
|
-
};
|
|
108
|
-
export declare type IResendInvitationLink = {
|
|
109
|
-
email: string;
|
|
110
|
-
};
|
|
111
|
-
export declare type ISendResetPasswordLink = {
|
|
112
|
-
userId: string;
|
|
113
|
-
};
|
|
114
|
-
export declare type ICreateOrUpdateInviteUserLink = {
|
|
115
|
-
expiresInMinutes?: number;
|
|
116
|
-
shouldSendEmail?: boolean;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* invite config
|
|
120
|
-
*/
|
|
121
|
-
export declare type IInviteUserLinkResponse = {
|
|
122
|
-
id: string;
|
|
123
|
-
vendorId: string;
|
|
124
|
-
tenantId: string;
|
|
125
|
-
userId?: string;
|
|
126
|
-
token: string;
|
|
127
|
-
expires: Date;
|
|
128
|
-
shouldSendEmail?: boolean;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* vendor config
|
|
132
|
-
*/
|
|
133
|
-
export declare type IInviteLinkConfiguration = {
|
|
134
|
-
tenantInvitationsAllowed: boolean;
|
|
135
|
-
emailsEnabled: boolean;
|
|
136
|
-
};
|
package/dist/teams/interfaces.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/teams/interfaces.ts"],"names":[],"mappings":""}
|
package/dist/tenants/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ISubTenant, ISubTenantTree, ISwitchTenant, ITenantsResponse } from './interfaces';
|
|
2
|
-
/**
|
|
3
|
-
* switch logged in user to specific tenant by providing tenantId.
|
|
4
|
-
*
|
|
5
|
-
* @throws exception if invalid tenantId.
|
|
6
|
-
* ``authorized user``
|
|
7
|
-
*/
|
|
8
|
-
export declare function switchTenant(body: ISwitchTenant): Promise<void>;
|
|
9
|
-
/**
|
|
10
|
-
* retrieve logged in user's available tenants.
|
|
11
|
-
*
|
|
12
|
-
* ``authorized user``
|
|
13
|
-
*/
|
|
14
|
-
export declare function getTenants(): Promise<ITenantsResponse[]>;
|
|
15
|
-
/**
|
|
16
|
-
* retrieve logged in user's available sub tenants.
|
|
17
|
-
*
|
|
18
|
-
* ``authorized user``
|
|
19
|
-
*/
|
|
20
|
-
export declare function getSubTenants(): Promise<ISubTenant>;
|
|
21
|
-
/**
|
|
22
|
-
* retrieve logged in user's available sub tenants as a tree.
|
|
23
|
-
*
|
|
24
|
-
* ``authorized user``
|
|
25
|
-
*/
|
|
26
|
-
export declare function getSubTenantsAsTree(): Promise<ISubTenantTree>;
|
package/dist/tenants/index.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getSubTenantsAsTree = exports.getSubTenants = exports.getTenants = exports.switchTenant = void 0;
|
|
13
|
-
const fetch_1 = require("../fetch");
|
|
14
|
-
const constants_1 = require("../constants");
|
|
15
|
-
/**
|
|
16
|
-
* switch logged in user to specific tenant by providing tenantId.
|
|
17
|
-
*
|
|
18
|
-
* @throws exception if invalid tenantId.
|
|
19
|
-
* ``authorized user``
|
|
20
|
-
*/
|
|
21
|
-
function switchTenant(body) {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
console.debug('switchTenant()', body);
|
|
24
|
-
return fetch_1.Put(`${constants_1.urls.identity.users.v1}/tenant`, body);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
exports.switchTenant = switchTenant;
|
|
28
|
-
/**
|
|
29
|
-
* retrieve logged in user's available tenants.
|
|
30
|
-
*
|
|
31
|
-
* ``authorized user``
|
|
32
|
-
*/
|
|
33
|
-
function getTenants() {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
console.debug('getTenants()');
|
|
36
|
-
return fetch_1.Get(`${constants_1.urls.identity.users.v2}/me/tenants`);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
exports.getTenants = getTenants;
|
|
40
|
-
/**
|
|
41
|
-
* retrieve logged in user's available sub tenants.
|
|
42
|
-
*
|
|
43
|
-
* ``authorized user``
|
|
44
|
-
*/
|
|
45
|
-
function getSubTenants() {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
console.debug('getSubTenants()');
|
|
48
|
-
return fetch_1.Get(constants_1.urls.tenants.hierarchy.v1);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
exports.getSubTenants = getSubTenants;
|
|
52
|
-
/**
|
|
53
|
-
* retrieve logged in user's available sub tenants as a tree.
|
|
54
|
-
*
|
|
55
|
-
* ``authorized user``
|
|
56
|
-
*/
|
|
57
|
-
function getSubTenantsAsTree() {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
console.debug('getSubTenantsAsTree()');
|
|
60
|
-
return fetch_1.Get(constants_1.urls.tenants.hierarchy.tree.v1);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
exports.getSubTenantsAsTree = getSubTenantsAsTree;
|
|
64
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tenants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oCAAoC;AACpC,4CAAoC;AAEpC;;;;;GAKG;AACH,SAAsB,YAAY,CAAC,IAAmB;;QACpD,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;QACtC,OAAO,WAAG,CAAC,GAAG,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;CAAA;AAHD,oCAGC;AAED;;;;GAIG;AACH,SAAsB,UAAU;;QAC9B,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC9B,OAAO,WAAG,CAAC,GAAG,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,CAAC;IACrD,CAAC;CAAA;AAHD,gCAGC;AAGD;;;;GAIG;AACH,SAAsB,aAAa;;QACjC,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACjC,OAAO,WAAG,CAAC,gBAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC;CAAA;AAHD,sCAGC;AAED;;;;GAIG;AACH,SAAsB,mBAAmB;;QACvC,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QACvC,OAAO,WAAG,CAAC,gBAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7C,CAAC;CAAA;AAHD,kDAGC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface ISwitchTenant {
|
|
2
|
-
tenantId: string;
|
|
3
|
-
}
|
|
4
|
-
export interface ITenantsResponse {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
deletedAt: null;
|
|
8
|
-
metadata: any;
|
|
9
|
-
tenantId: string;
|
|
10
|
-
vendorId: string;
|
|
11
|
-
isReseller: boolean;
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
updatedAt: Date;
|
|
14
|
-
address?: string;
|
|
15
|
-
timezone?: string;
|
|
16
|
-
dateFormat?: string;
|
|
17
|
-
timeFormat?: string;
|
|
18
|
-
currency?: string;
|
|
19
|
-
logo?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ISubTenant {
|
|
22
|
-
tenantId: string;
|
|
23
|
-
tenantName?: string;
|
|
24
|
-
level: number;
|
|
25
|
-
}
|
|
26
|
-
export interface ISubTenantTree {
|
|
27
|
-
tenantId: string;
|
|
28
|
-
tenantName?: string;
|
|
29
|
-
children: ISubTenantTree[];
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/tenants/interfaces.ts"],"names":[],"mappings":""}
|