@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
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.addUser = addUser;
|
|
9
|
+
exports.changePassword = changePassword;
|
|
10
|
+
exports.createInviteUserLink = createInviteUserLink;
|
|
11
|
+
exports.deleteInviteUserLink = deleteInviteUserLink;
|
|
12
|
+
exports.deleteUser = deleteUser;
|
|
13
|
+
exports.getInviteLinkConfiguration = getInviteLinkConfiguration;
|
|
14
|
+
exports.getInviteUserLink = getInviteUserLink;
|
|
15
|
+
exports.getProfile = getProfile;
|
|
16
|
+
exports.loadAvailablePermissions = loadAvailablePermissions;
|
|
17
|
+
exports.loadAvailableRoles = loadAvailableRoles;
|
|
18
|
+
exports.loadStats = loadStats;
|
|
19
|
+
exports.loadUsers = loadUsers;
|
|
20
|
+
exports.resendActivationLink = resendActivationLink;
|
|
21
|
+
exports.resendInvitationLink = resendInvitationLink;
|
|
22
|
+
exports.resendInvitationLinkToAllTenants = resendInvitationLinkToAllTenants;
|
|
23
|
+
exports.updateInviteUserLink = updateInviteUserLink;
|
|
24
|
+
exports.updateProfile = updateProfile;
|
|
25
|
+
exports.updateProfileImage = updateProfileImage;
|
|
26
|
+
exports.updateUser = updateUser;
|
|
27
|
+
|
|
28
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
29
|
+
|
|
30
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
31
|
+
|
|
32
|
+
var _extends3 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
33
|
+
|
|
34
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
35
|
+
|
|
36
|
+
var _fetch = require("../fetch");
|
|
37
|
+
|
|
38
|
+
var _constants = require("../constants");
|
|
39
|
+
|
|
40
|
+
function getProfile(_x) {
|
|
41
|
+
return _getProfile.apply(this, arguments);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function _getProfile() {
|
|
45
|
+
_getProfile = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(params) {
|
|
46
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
47
|
+
while (1) {
|
|
48
|
+
switch (_context.prev = _context.next) {
|
|
49
|
+
case 0:
|
|
50
|
+
return _context.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.users.v2, "/me"), params != null ? params : {
|
|
51
|
+
addRoles: true
|
|
52
|
+
}));
|
|
53
|
+
|
|
54
|
+
case 1:
|
|
55
|
+
case "end":
|
|
56
|
+
return _context.stop();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}, _callee);
|
|
60
|
+
}));
|
|
61
|
+
return _getProfile.apply(this, arguments);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function updateProfile(_x2) {
|
|
65
|
+
return _updateProfile.apply(this, arguments);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function _updateProfile() {
|
|
69
|
+
_updateProfile = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2(body) {
|
|
70
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
71
|
+
while (1) {
|
|
72
|
+
switch (_context2.prev = _context2.next) {
|
|
73
|
+
case 0:
|
|
74
|
+
return _context2.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.identity.users.v2, "/me"), body));
|
|
75
|
+
|
|
76
|
+
case 1:
|
|
77
|
+
case "end":
|
|
78
|
+
return _context2.stop();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}, _callee2);
|
|
82
|
+
}));
|
|
83
|
+
return _updateProfile.apply(this, arguments);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function updateProfileImage(_x3) {
|
|
87
|
+
return _updateProfileImage.apply(this, arguments);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function _updateProfileImage() {
|
|
91
|
+
_updateProfileImage = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3(body) {
|
|
92
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
93
|
+
while (1) {
|
|
94
|
+
switch (_context3.prev = _context3.next) {
|
|
95
|
+
case 0:
|
|
96
|
+
return _context3.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.team.profile.v1, "/me/image/v1"), body, {
|
|
97
|
+
responseType: 'plain',
|
|
98
|
+
contentType: undefined
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
case 1:
|
|
102
|
+
case "end":
|
|
103
|
+
return _context3.stop();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}, _callee3);
|
|
107
|
+
}));
|
|
108
|
+
return _updateProfileImage.apply(this, arguments);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function changePassword(_x4) {
|
|
112
|
+
return _changePassword.apply(this, arguments);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function _changePassword() {
|
|
116
|
+
_changePassword = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee4(body) {
|
|
117
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
118
|
+
while (1) {
|
|
119
|
+
switch (_context4.prev = _context4.next) {
|
|
120
|
+
case 0:
|
|
121
|
+
return _context4.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.users.v1, "/passwords/change"), body));
|
|
122
|
+
|
|
123
|
+
case 1:
|
|
124
|
+
case "end":
|
|
125
|
+
return _context4.stop();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}, _callee4);
|
|
129
|
+
}));
|
|
130
|
+
return _changePassword.apply(this, arguments);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function loadUsers(_x5) {
|
|
134
|
+
return _loadUsers.apply(this, arguments);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function _loadUsers() {
|
|
138
|
+
_loadUsers = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee5(params) {
|
|
139
|
+
var _params$sort, _params$sort$0$id, _params$sort2, _params$sort2$, _params$sort3, _params$sort3$;
|
|
140
|
+
|
|
141
|
+
var filters, sorts;
|
|
142
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
143
|
+
while (1) {
|
|
144
|
+
switch (_context5.prev = _context5.next) {
|
|
145
|
+
case 0:
|
|
146
|
+
filters = (params.filter || []).reduce(function (p, n) {
|
|
147
|
+
return (0, _extends3["default"])({}, p, (0, _defineProperty2["default"])({}, n.id, n.value));
|
|
148
|
+
}, {});
|
|
149
|
+
sorts = (_params$sort = params.sort) != null && _params$sort.length ? {
|
|
150
|
+
sortBy: (_params$sort$0$id = (_params$sort2 = params.sort) == null ? void 0 : (_params$sort2$ = _params$sort2[0]) == null ? void 0 : _params$sort2$.id) != null ? _params$sort$0$id : 'name',
|
|
151
|
+
sortDirection: (_params$sort3 = params.sort) != null && (_params$sort3$ = _params$sort3[0]) != null && _params$sort3$.desc ? 'desc' : 'asc'
|
|
152
|
+
} : null;
|
|
153
|
+
return _context5.abrupt("return", (0, _fetch.Get)(_constants.urls.team.members.v1, (0, _extends3["default"])({
|
|
154
|
+
pageOffset: params.pageOffset,
|
|
155
|
+
pageSize: params.pageSize
|
|
156
|
+
}, filters, sorts)));
|
|
157
|
+
|
|
158
|
+
case 3:
|
|
159
|
+
case "end":
|
|
160
|
+
return _context5.stop();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}, _callee5);
|
|
164
|
+
}));
|
|
165
|
+
return _loadUsers.apply(this, arguments);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function addUser(_x6) {
|
|
169
|
+
return _addUser.apply(this, arguments);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function _addUser() {
|
|
173
|
+
_addUser = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee6(body) {
|
|
174
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
175
|
+
while (1) {
|
|
176
|
+
switch (_context6.prev = _context6.next) {
|
|
177
|
+
case 0:
|
|
178
|
+
return _context6.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.users.v2, (0, _extends3["default"])({}, body, {
|
|
179
|
+
provider: 'local'
|
|
180
|
+
})));
|
|
181
|
+
|
|
182
|
+
case 1:
|
|
183
|
+
case "end":
|
|
184
|
+
return _context6.stop();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}, _callee6);
|
|
188
|
+
}));
|
|
189
|
+
return _addUser.apply(this, arguments);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function deleteUser(_x7) {
|
|
193
|
+
return _deleteUser.apply(this, arguments);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function _deleteUser() {
|
|
197
|
+
_deleteUser = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee7(body) {
|
|
198
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
199
|
+
while (1) {
|
|
200
|
+
switch (_context7.prev = _context7.next) {
|
|
201
|
+
case 0:
|
|
202
|
+
return _context7.abrupt("return", (0, _fetch.Delete)("".concat(_constants.urls.team.members.v1, "/").concat(body.userId)));
|
|
203
|
+
|
|
204
|
+
case 1:
|
|
205
|
+
case "end":
|
|
206
|
+
return _context7.stop();
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}, _callee7);
|
|
210
|
+
}));
|
|
211
|
+
return _deleteUser.apply(this, arguments);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function updateUser(_x8) {
|
|
215
|
+
return _updateUser.apply(this, arguments);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function _updateUser() {
|
|
219
|
+
_updateUser = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee8(body) {
|
|
220
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
221
|
+
while (1) {
|
|
222
|
+
switch (_context8.prev = _context8.next) {
|
|
223
|
+
case 0:
|
|
224
|
+
return _context8.abrupt("return", (0, _fetch.Put)(_constants.urls.team.members.v1, body));
|
|
225
|
+
|
|
226
|
+
case 1:
|
|
227
|
+
case "end":
|
|
228
|
+
return _context8.stop();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}, _callee8);
|
|
232
|
+
}));
|
|
233
|
+
return _updateUser.apply(this, arguments);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function createInviteUserLink(_x9) {
|
|
237
|
+
return _createInviteUserLink.apply(this, arguments);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
function _createInviteUserLink() {
|
|
241
|
+
_createInviteUserLink = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee9(body) {
|
|
242
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
243
|
+
while (1) {
|
|
244
|
+
switch (_context9.prev = _context9.next) {
|
|
245
|
+
case 0:
|
|
246
|
+
return _context9.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.tenants.invites.user.v1, (0, _extends3["default"])({}, body)));
|
|
247
|
+
|
|
248
|
+
case 1:
|
|
249
|
+
case "end":
|
|
250
|
+
return _context9.stop();
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}, _callee9);
|
|
254
|
+
}));
|
|
255
|
+
return _createInviteUserLink.apply(this, arguments);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function updateInviteUserLink(_x10) {
|
|
259
|
+
return _updateInviteUserLink.apply(this, arguments);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function _updateInviteUserLink() {
|
|
263
|
+
_updateInviteUserLink = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee10(body) {
|
|
264
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
265
|
+
while (1) {
|
|
266
|
+
switch (_context10.prev = _context10.next) {
|
|
267
|
+
case 0:
|
|
268
|
+
return _context10.abrupt("return", (0, _fetch.Patch)(_constants.urls.identity.tenants.invites.user.v1, (0, _extends3["default"])({}, body)));
|
|
269
|
+
|
|
270
|
+
case 1:
|
|
271
|
+
case "end":
|
|
272
|
+
return _context10.stop();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}, _callee10);
|
|
276
|
+
}));
|
|
277
|
+
return _updateInviteUserLink.apply(this, arguments);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function deleteInviteUserLink() {
|
|
281
|
+
return _deleteInviteUserLink.apply(this, arguments);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function _deleteInviteUserLink() {
|
|
285
|
+
_deleteInviteUserLink = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee11() {
|
|
286
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
287
|
+
while (1) {
|
|
288
|
+
switch (_context11.prev = _context11.next) {
|
|
289
|
+
case 0:
|
|
290
|
+
return _context11.abrupt("return", (0, _fetch.Delete)(_constants.urls.identity.tenants.invites.user.v1));
|
|
291
|
+
|
|
292
|
+
case 1:
|
|
293
|
+
case "end":
|
|
294
|
+
return _context11.stop();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}, _callee11);
|
|
298
|
+
}));
|
|
299
|
+
return _deleteInviteUserLink.apply(this, arguments);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function getInviteUserLink() {
|
|
303
|
+
return _getInviteUserLink.apply(this, arguments);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function _getInviteUserLink() {
|
|
307
|
+
_getInviteUserLink = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee12() {
|
|
308
|
+
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
|
309
|
+
while (1) {
|
|
310
|
+
switch (_context12.prev = _context12.next) {
|
|
311
|
+
case 0:
|
|
312
|
+
return _context12.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.tenants.invites.user.v1));
|
|
313
|
+
|
|
314
|
+
case 1:
|
|
315
|
+
case "end":
|
|
316
|
+
return _context12.stop();
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}, _callee12);
|
|
320
|
+
}));
|
|
321
|
+
return _getInviteUserLink.apply(this, arguments);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
function getInviteLinkConfiguration() {
|
|
325
|
+
return _getInviteLinkConfiguration.apply(this, arguments);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function _getInviteLinkConfiguration() {
|
|
329
|
+
_getInviteLinkConfiguration = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee13() {
|
|
330
|
+
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
|
331
|
+
while (1) {
|
|
332
|
+
switch (_context13.prev = _context13.next) {
|
|
333
|
+
case 0:
|
|
334
|
+
return _context13.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.tenants.invites.configuration.v1));
|
|
335
|
+
|
|
336
|
+
case 1:
|
|
337
|
+
case "end":
|
|
338
|
+
return _context13.stop();
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}, _callee13);
|
|
342
|
+
}));
|
|
343
|
+
return _getInviteLinkConfiguration.apply(this, arguments);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
function loadAvailableRoles() {
|
|
347
|
+
return _loadAvailableRoles.apply(this, arguments);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
function _loadAvailableRoles() {
|
|
351
|
+
_loadAvailableRoles = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee14() {
|
|
352
|
+
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
|
353
|
+
while (1) {
|
|
354
|
+
switch (_context14.prev = _context14.next) {
|
|
355
|
+
case 0:
|
|
356
|
+
return _context14.abrupt("return", (0, _fetch.Get)(_constants.urls.team.roles.v1));
|
|
357
|
+
|
|
358
|
+
case 1:
|
|
359
|
+
case "end":
|
|
360
|
+
return _context14.stop();
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}, _callee14);
|
|
364
|
+
}));
|
|
365
|
+
return _loadAvailableRoles.apply(this, arguments);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
function loadAvailablePermissions() {
|
|
369
|
+
return _loadAvailablePermissions.apply(this, arguments);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
function _loadAvailablePermissions() {
|
|
373
|
+
_loadAvailablePermissions = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee15() {
|
|
374
|
+
return _regenerator["default"].wrap(function _callee15$(_context15) {
|
|
375
|
+
while (1) {
|
|
376
|
+
switch (_context15.prev = _context15.next) {
|
|
377
|
+
case 0:
|
|
378
|
+
return _context15.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.permissions.v1));
|
|
379
|
+
|
|
380
|
+
case 1:
|
|
381
|
+
case "end":
|
|
382
|
+
return _context15.stop();
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}, _callee15);
|
|
386
|
+
}));
|
|
387
|
+
return _loadAvailablePermissions.apply(this, arguments);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
function loadStats() {
|
|
391
|
+
return _loadStats.apply(this, arguments);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
function _loadStats() {
|
|
395
|
+
_loadStats = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee16() {
|
|
396
|
+
return _regenerator["default"].wrap(function _callee16$(_context16) {
|
|
397
|
+
while (1) {
|
|
398
|
+
switch (_context16.prev = _context16.next) {
|
|
399
|
+
case 0:
|
|
400
|
+
return _context16.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.team.stats.v1, "/members")));
|
|
401
|
+
|
|
402
|
+
case 1:
|
|
403
|
+
case "end":
|
|
404
|
+
return _context16.stop();
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}, _callee16);
|
|
408
|
+
}));
|
|
409
|
+
return _loadStats.apply(this, arguments);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
function resendActivationLink(_x11) {
|
|
413
|
+
return _resendActivationLink.apply(this, arguments);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
function _resendActivationLink() {
|
|
417
|
+
_resendActivationLink = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee17(body) {
|
|
418
|
+
return _regenerator["default"].wrap(function _callee17$(_context17) {
|
|
419
|
+
while (1) {
|
|
420
|
+
switch (_context17.prev = _context17.next) {
|
|
421
|
+
case 0:
|
|
422
|
+
return _context17.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.team.members.v1, "/").concat(body.userId, "/resendActivationEmail"), {}));
|
|
423
|
+
|
|
424
|
+
case 1:
|
|
425
|
+
case "end":
|
|
426
|
+
return _context17.stop();
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}, _callee17);
|
|
430
|
+
}));
|
|
431
|
+
return _resendActivationLink.apply(this, arguments);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
function resendInvitationLink(_x12) {
|
|
435
|
+
return _resendInvitationLink.apply(this, arguments);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
function _resendInvitationLink() {
|
|
439
|
+
_resendInvitationLink = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee18(body) {
|
|
440
|
+
return _regenerator["default"].wrap(function _callee18$(_context18) {
|
|
441
|
+
while (1) {
|
|
442
|
+
switch (_context18.prev = _context18.next) {
|
|
443
|
+
case 0:
|
|
444
|
+
return _context18.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.users.v2, (0, _extends3["default"])({}, body, {
|
|
445
|
+
provider: 'local'
|
|
446
|
+
})));
|
|
447
|
+
|
|
448
|
+
case 1:
|
|
449
|
+
case "end":
|
|
450
|
+
return _context18.stop();
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}, _callee18);
|
|
454
|
+
}));
|
|
455
|
+
return _resendInvitationLink.apply(this, arguments);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
function resendInvitationLinkToAllTenants(_x13) {
|
|
459
|
+
return _resendInvitationLinkToAllTenants.apply(this, arguments);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function _resendInvitationLinkToAllTenants() {
|
|
463
|
+
_resendInvitationLinkToAllTenants = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee19(body) {
|
|
464
|
+
return _regenerator["default"].wrap(function _callee19$(_context19) {
|
|
465
|
+
while (1) {
|
|
466
|
+
switch (_context19.prev = _context19.next) {
|
|
467
|
+
case 0:
|
|
468
|
+
return _context19.abrupt("return", (0, _fetch.Post)(_constants.urls.identity.users.invitation.resendAll.v1, (0, _extends3["default"])({}, body)));
|
|
469
|
+
|
|
470
|
+
case 1:
|
|
471
|
+
case "end":
|
|
472
|
+
return _context19.stop();
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}, _callee19);
|
|
476
|
+
}));
|
|
477
|
+
return _resendInvitationLinkToAllTenants.apply(this, arguments);
|
|
478
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getSubTenants = getSubTenants;
|
|
9
|
+
exports.getSubTenantsAsTree = getSubTenantsAsTree;
|
|
10
|
+
exports.getTenants = getTenants;
|
|
11
|
+
exports.switchTenant = switchTenant;
|
|
12
|
+
|
|
13
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
14
|
+
|
|
15
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
16
|
+
|
|
17
|
+
var _fetch = require("../fetch");
|
|
18
|
+
|
|
19
|
+
var _constants = require("../constants");
|
|
20
|
+
|
|
21
|
+
function switchTenant(_x) {
|
|
22
|
+
return _switchTenant.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function _switchTenant() {
|
|
26
|
+
_switchTenant = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee(body) {
|
|
27
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
28
|
+
while (1) {
|
|
29
|
+
switch (_context.prev = _context.next) {
|
|
30
|
+
case 0:
|
|
31
|
+
return _context.abrupt("return", (0, _fetch.Put)("".concat(_constants.urls.identity.users.v1, "/tenant"), body));
|
|
32
|
+
|
|
33
|
+
case 1:
|
|
34
|
+
case "end":
|
|
35
|
+
return _context.stop();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, _callee);
|
|
39
|
+
}));
|
|
40
|
+
return _switchTenant.apply(this, arguments);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function getTenants() {
|
|
44
|
+
return _getTenants.apply(this, arguments);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _getTenants() {
|
|
48
|
+
_getTenants = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2() {
|
|
49
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
50
|
+
while (1) {
|
|
51
|
+
switch (_context2.prev = _context2.next) {
|
|
52
|
+
case 0:
|
|
53
|
+
return _context2.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.users.v2, "/me/tenants")));
|
|
54
|
+
|
|
55
|
+
case 1:
|
|
56
|
+
case "end":
|
|
57
|
+
return _context2.stop();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, _callee2);
|
|
61
|
+
}));
|
|
62
|
+
return _getTenants.apply(this, arguments);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function getSubTenants() {
|
|
66
|
+
return _getSubTenants.apply(this, arguments);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function _getSubTenants() {
|
|
70
|
+
_getSubTenants = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3() {
|
|
71
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
72
|
+
while (1) {
|
|
73
|
+
switch (_context3.prev = _context3.next) {
|
|
74
|
+
case 0:
|
|
75
|
+
return _context3.abrupt("return", (0, _fetch.Get)(_constants.urls.tenants.hierarchy.v1));
|
|
76
|
+
|
|
77
|
+
case 1:
|
|
78
|
+
case "end":
|
|
79
|
+
return _context3.stop();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}, _callee3);
|
|
83
|
+
}));
|
|
84
|
+
return _getSubTenants.apply(this, arguments);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function getSubTenantsAsTree() {
|
|
88
|
+
return _getSubTenantsAsTree.apply(this, arguments);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function _getSubTenantsAsTree() {
|
|
92
|
+
_getSubTenantsAsTree = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee4() {
|
|
93
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
94
|
+
while (1) {
|
|
95
|
+
switch (_context4.prev = _context4.next) {
|
|
96
|
+
case 0:
|
|
97
|
+
return _context4.abrupt("return", (0, _fetch.Get)(_constants.urls.tenants.hierarchy.tree.v1));
|
|
98
|
+
|
|
99
|
+
case 1:
|
|
100
|
+
case "end":
|
|
101
|
+
return _context4.stop();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}, _callee4);
|
|
105
|
+
}));
|
|
106
|
+
return _getSubTenantsAsTree.apply(this, arguments);
|
|
107
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getVendorPublicInfo = getVendorPublicInfo;
|
|
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
|
+
var _constants = require("../constants");
|
|
17
|
+
|
|
18
|
+
function getVendorPublicInfo() {
|
|
19
|
+
return _getVendorPublicInfo.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function _getVendorPublicInfo() {
|
|
23
|
+
_getVendorPublicInfo = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee() {
|
|
24
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
25
|
+
while (1) {
|
|
26
|
+
switch (_context.prev = _context.next) {
|
|
27
|
+
case 0:
|
|
28
|
+
return _context.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.vendor, "/public")));
|
|
29
|
+
|
|
30
|
+
case 1:
|
|
31
|
+
case "end":
|
|
32
|
+
return _context.stop();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, _callee);
|
|
36
|
+
}));
|
|
37
|
+
return _getVendorPublicInfo.apply(this, arguments);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
;
|
|
File without changes
|