@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
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ICreateTenantConfigurationRequest,
|
|
3
|
-
ICreateTenantConfigurationResponse,
|
|
4
|
-
ITenantConfigurationResponse,
|
|
5
|
-
} from "./interfaces";
|
|
6
|
-
import { Get, Post } from "../fetch";
|
|
7
|
-
import { urls } from "../constants";
|
|
8
|
-
|
|
9
|
-
export async function getTenantConfiguration(
|
|
10
|
-
tenantId: string
|
|
11
|
-
): Promise<ITenantConfigurationResponse> {
|
|
12
|
-
console.debug("getTenantConfiguration()");
|
|
13
|
-
return Get(
|
|
14
|
-
`${urls.subscriptions.billing.tenantConfiguration.v1}/${tenantId}`
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export async function createTenantConfiguration(
|
|
19
|
-
request: ICreateTenantConfigurationRequest
|
|
20
|
-
): Promise<ICreateTenantConfigurationResponse> {
|
|
21
|
-
console.debug("createTenantConfiguration()");
|
|
22
|
-
return Post(`${urls.subscriptions.billing.tenantConfiguration.v1}`, request);
|
|
23
|
-
}
|
package/src/teams/index.ts
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import {Get, Post, Put, Delete, Patch} from '../fetch';
|
|
2
|
-
import {urls,} from '../constants';
|
|
3
|
-
import {
|
|
4
|
-
IAddUser,
|
|
5
|
-
IChangePassword,
|
|
6
|
-
ILoadUsers,
|
|
7
|
-
IResendActivationLink,
|
|
8
|
-
ITeamUserRole,
|
|
9
|
-
ITeamStats,
|
|
10
|
-
ITeamUser,
|
|
11
|
-
IUpdateProfile,
|
|
12
|
-
IUserProfile,
|
|
13
|
-
IUpdateUser,
|
|
14
|
-
IDeleteUser,
|
|
15
|
-
ITeamUserPermission,
|
|
16
|
-
IResendInvitationLink,
|
|
17
|
-
IInviteUserLinkResponse,
|
|
18
|
-
ICreateOrUpdateInviteUserLink,
|
|
19
|
-
IInviteLinkConfiguration,
|
|
20
|
-
} from './interfaces';
|
|
21
|
-
import {PaginationResult} from '../interfaces';
|
|
22
|
-
|
|
23
|
-
/*****************************************
|
|
24
|
-
* Profile Api
|
|
25
|
-
*****************************************/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* change user password by providing current password and the new password.
|
|
29
|
-
*
|
|
30
|
-
* @throws exception if the current password incorrect or new password validation failed.
|
|
31
|
-
* ``authorized user``
|
|
32
|
-
*/
|
|
33
|
-
export async function getProfile(params?: object): Promise<IUserProfile> {
|
|
34
|
-
console.debug('getProfile()');
|
|
35
|
-
return Get(`${urls.identity.users.v2}/me`, params ?? {addRoles: true});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* update user profile by providing updated fields.
|
|
40
|
-
* ``authorized user``
|
|
41
|
-
*/
|
|
42
|
-
export async function updateProfile(body: Partial<IUpdateProfile>): Promise<IUserProfile> {
|
|
43
|
-
console.debug('updateProfile()', body);
|
|
44
|
-
return Put(`${urls.identity.users.v2}/me`, body);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* update user profile image
|
|
49
|
-
* ``authorized user``
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
export async function updateProfileImage(body: FormData): Promise<string> {
|
|
53
|
-
console.debug('updateProfileImage()', body);
|
|
54
|
-
return Put(`${urls.team.profile.v1}/me/image/v1`, body, {responseType: 'plain', contentType: undefined});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* change user password by providing current password and the new password.
|
|
59
|
-
*
|
|
60
|
-
* @throws exception if the current password incorrect or new password validation failed.
|
|
61
|
-
* ``authorized user``
|
|
62
|
-
*/
|
|
63
|
-
export async function changePassword(body: IChangePassword): Promise<void> {
|
|
64
|
-
console.debug('changePassword()');
|
|
65
|
-
return Post(`${urls.identity.users.v1}/passwords/change`, body);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/*****************************************
|
|
69
|
-
* Team Api
|
|
70
|
-
*****************************************/
|
|
71
|
-
/**
|
|
72
|
-
* load users from team-management-service
|
|
73
|
-
*
|
|
74
|
-
* ``authorized user``
|
|
75
|
-
*/
|
|
76
|
-
export async function loadUsers(params: ILoadUsers): Promise<PaginationResult<ITeamUser>> {
|
|
77
|
-
const filters = (params.filter || []).reduce((p, n) => ({...p, [n.id]: n.value}), {});
|
|
78
|
-
const sorts = params.sort?.length
|
|
79
|
-
? {
|
|
80
|
-
sortBy: params.sort?.[0]?.id ?? 'name',
|
|
81
|
-
sortDirection: params.sort?.[0]?.desc ? 'desc' : 'asc',
|
|
82
|
-
}
|
|
83
|
-
: null;
|
|
84
|
-
return Get(urls.team.members.v1, {
|
|
85
|
-
pageOffset: params.pageOffset,
|
|
86
|
-
pageSize: params.pageSize,
|
|
87
|
-
...filters,
|
|
88
|
-
...sorts,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* add user to team, invitation link will be sent to the added user.
|
|
94
|
-
*
|
|
95
|
-
* ``authorized user``
|
|
96
|
-
*/
|
|
97
|
-
export async function addUser(body: IAddUser): Promise<ITeamUser> {
|
|
98
|
-
console.debug('addUser()', body);
|
|
99
|
-
return Post(urls.identity.users.v2, {...body, provider: 'local'});
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* delete user from team, user will be deleted.
|
|
104
|
-
*
|
|
105
|
-
* ``authorized user``
|
|
106
|
-
*/
|
|
107
|
-
export async function deleteUser(body: IDeleteUser): Promise<ITeamUser> {
|
|
108
|
-
console.debug('deleteUser()', body);
|
|
109
|
-
return Delete(`${urls.team.members.v1}/${body.userId}`);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* edit user roles in team
|
|
114
|
-
*
|
|
115
|
-
* ``authorized user``
|
|
116
|
-
*/
|
|
117
|
-
export async function updateUser(body: IUpdateUser): Promise<ITeamUser> {
|
|
118
|
-
console.debug('editUser()', body);
|
|
119
|
-
return Put(urls.team.members.v1, body);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* create link to invite user
|
|
124
|
-
*
|
|
125
|
-
* ``authorized user``
|
|
126
|
-
*/
|
|
127
|
-
export async function createInviteUserLink(body: ICreateOrUpdateInviteUserLink): Promise<IInviteUserLinkResponse> {
|
|
128
|
-
console.debug('createInviteUserLink()');
|
|
129
|
-
return Post(urls.identity.tenants.invites.user.v1, { ...body });
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* update link to invite user
|
|
134
|
-
*
|
|
135
|
-
* ``authorized user``
|
|
136
|
-
*/
|
|
137
|
-
export async function updateInviteUserLink(body: ICreateOrUpdateInviteUserLink): Promise<IInviteUserLinkResponse> {
|
|
138
|
-
console.debug('updateInviteUserLink()', body);
|
|
139
|
-
return Patch(urls.identity.tenants.invites.user.v1, { ...body });
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* delete link to invite user
|
|
144
|
-
*
|
|
145
|
-
* ``authorized user``
|
|
146
|
-
*/
|
|
147
|
-
export async function deleteInviteUserLink(): Promise<void> {
|
|
148
|
-
console.debug('deleteInviteUserLink()');
|
|
149
|
-
return Delete(urls.identity.tenants.invites.user.v1);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* get link to invite user
|
|
154
|
-
*
|
|
155
|
-
* ``authorized user``
|
|
156
|
-
*/
|
|
157
|
-
export async function getInviteUserLink(): Promise<IInviteUserLinkResponse> {
|
|
158
|
-
console.debug('getInviteUserLink()');
|
|
159
|
-
return Get(urls.identity.tenants.invites.user.v1);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* get invite link configuration
|
|
164
|
-
*
|
|
165
|
-
*/
|
|
166
|
-
export async function getInviteLinkConfiguration(): Promise<IInviteLinkConfiguration> {
|
|
167
|
-
console.debug('getInviteLinkConfiguration()');
|
|
168
|
-
return Get(urls.identity.tenants.invites.configuration.v1);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* load available roles that can be assigned to team users from team-management-service
|
|
173
|
-
*
|
|
174
|
-
* ``authorized user``
|
|
175
|
-
*/
|
|
176
|
-
export async function loadAvailableRoles(): Promise<ITeamUserRole[]> {
|
|
177
|
-
console.debug('loadAvailableRoles()');
|
|
178
|
-
return Get(urls.team.roles.v1);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export async function loadAvailablePermissions(): Promise<ITeamUserPermission[]> {
|
|
182
|
-
console.debug('loadAvailablePermissions()');
|
|
183
|
-
return Get(urls.identity.permissions.v1);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* load users stats from team-management-service
|
|
188
|
-
*
|
|
189
|
-
* ``authorized user``
|
|
190
|
-
*/
|
|
191
|
-
export async function loadStats(): Promise<ITeamStats> {
|
|
192
|
-
console.debug('loadStats()');
|
|
193
|
-
return Get(`${urls.team.stats.v1}/members`);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* resend activation link to specific user
|
|
198
|
-
*
|
|
199
|
-
* ``authorized user``
|
|
200
|
-
*/
|
|
201
|
-
export async function resendActivationLink(body: IResendActivationLink): Promise<void> {
|
|
202
|
-
console.debug('resendActivationLink()', body);
|
|
203
|
-
return Post(`${urls.team.members.v1}/${body.userId}/resendActivationEmail`, {});
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* resend accept join tenant invitation link to specific user
|
|
208
|
-
*
|
|
209
|
-
* ``authorized user``
|
|
210
|
-
*/
|
|
211
|
-
export async function resendInvitationLink(body: IResendInvitationLink): Promise<void> {
|
|
212
|
-
console.debug('resendInvitationLink()', body);
|
|
213
|
-
return Post(urls.identity.users.v2, {...body, provider: 'local'});
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* resend accept join all pending tenant for current hierarchy invitation link to specific user
|
|
218
|
-
*
|
|
219
|
-
* ``authorized user``
|
|
220
|
-
*/
|
|
221
|
-
export async function resendInvitationLinkToAllTenants(body: IResendInvitationLink): Promise<void> {
|
|
222
|
-
console.debug('resendInvitationLinkToAllTenants()', body);
|
|
223
|
-
return Post(urls.identity.users.invitation.resendAll.v1, {...body });
|
|
224
|
-
}
|
package/src/teams/interfaces.ts
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { QueryFilter, QuerySort } from '../interfaces';
|
|
2
|
-
import { IRole, IRolePermission } from '../roles/interfaces';
|
|
3
|
-
|
|
4
|
-
export type IUserProfile = {
|
|
5
|
-
id: string;
|
|
6
|
-
email: string;
|
|
7
|
-
mfaEnrolled: boolean;
|
|
8
|
-
name: string;
|
|
9
|
-
phoneNumber?: string;
|
|
10
|
-
profileImage?: string;
|
|
11
|
-
profilePictureUrl: string;
|
|
12
|
-
roles: IRole[];
|
|
13
|
-
permissions: IRolePermission[];
|
|
14
|
-
tenantId: string;
|
|
15
|
-
tenantIds: string[];
|
|
16
|
-
activatedForTenant?: boolean;
|
|
17
|
-
metadata: any;
|
|
18
|
-
roleIds?: string[]; // { addRoles: true } params
|
|
19
|
-
verified?: boolean;
|
|
20
|
-
superUser?: boolean;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export type ITeamUserTenant = {
|
|
24
|
-
tenantId: string;
|
|
25
|
-
roles: IRole[]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type ITeamUser = {
|
|
29
|
-
// info
|
|
30
|
-
id: string;
|
|
31
|
-
email: string;
|
|
32
|
-
name: string;
|
|
33
|
-
phone?: string;
|
|
34
|
-
profileImage?: string;
|
|
35
|
-
profileImageUrl?: string;
|
|
36
|
-
// association
|
|
37
|
-
tenantId: string;
|
|
38
|
-
vendorId: string;
|
|
39
|
-
roleIds: string[];
|
|
40
|
-
roles: IRole[];
|
|
41
|
-
activatedForTenant: boolean;
|
|
42
|
-
|
|
43
|
-
// other
|
|
44
|
-
createdAt: string;
|
|
45
|
-
customData?: any;
|
|
46
|
-
lastLogin?: string;
|
|
47
|
-
mfaEnabled?: boolean;
|
|
48
|
-
tenants?: ITeamUserTenant;
|
|
49
|
-
verified?: boolean;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export type ITeamUserRole = {
|
|
53
|
-
id: string;
|
|
54
|
-
description: string;
|
|
55
|
-
key: string;
|
|
56
|
-
name: string;
|
|
57
|
-
permissions?: string[];
|
|
58
|
-
permissionLevel?: number;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export type ITeamUserPermission = {
|
|
62
|
-
description: string;
|
|
63
|
-
fePermission: boolean;
|
|
64
|
-
id: string;
|
|
65
|
-
key: string;
|
|
66
|
-
name: string;
|
|
67
|
-
roleIds: string[];
|
|
68
|
-
createdAt: Date;
|
|
69
|
-
updatedAt: Date;
|
|
70
|
-
categoryId: string;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
export interface ISamlRolesGroup {
|
|
74
|
-
id: string;
|
|
75
|
-
group: string;
|
|
76
|
-
roleIds: string[];
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type ITeamStats = {
|
|
80
|
-
totalItems: number;
|
|
81
|
-
addedThisWeek: number;
|
|
82
|
-
superAdmins: number;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
// api actions
|
|
86
|
-
|
|
87
|
-
export type IUpdateProfile = {
|
|
88
|
-
title: 'Mr' | 'Miss' | 'Mrs' | 'Ms';
|
|
89
|
-
name: string;
|
|
90
|
-
country: string;
|
|
91
|
-
phoneNumber: string;
|
|
92
|
-
// time since 1970
|
|
93
|
-
dateOfBirth: number;
|
|
94
|
-
// profile picture in base64
|
|
95
|
-
profilePicture: string;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export type IUpdateProfileImage = {
|
|
99
|
-
profileImage: string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export type IChangePassword = {
|
|
103
|
-
password: string;
|
|
104
|
-
newPassword: string;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export type ILoadUsers = {
|
|
108
|
-
silentLoading?: boolean;
|
|
109
|
-
filter?: QueryFilter[];
|
|
110
|
-
sort?: QuerySort[];
|
|
111
|
-
pageOffset: number;
|
|
112
|
-
pageSize?: number;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export type IAddUser = {
|
|
116
|
-
name: string;
|
|
117
|
-
email: string;
|
|
118
|
-
phone?: string;
|
|
119
|
-
roleIds: string[];
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export type IDeleteUser = {
|
|
123
|
-
userId: string;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export type IUpdateUser = Partial<ITeamUser>;
|
|
127
|
-
|
|
128
|
-
export type IResendActivationLink = {
|
|
129
|
-
userId: string;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
export type IResendInvitationLink = {
|
|
133
|
-
email: string;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export type ISendResetPasswordLink = {
|
|
137
|
-
userId: string;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
export type ICreateOrUpdateInviteUserLink = {
|
|
141
|
-
expiresInMinutes?: number;
|
|
142
|
-
shouldSendEmail?: boolean;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* invite config
|
|
147
|
-
*/
|
|
148
|
-
export type IInviteUserLinkResponse = {
|
|
149
|
-
id: string;
|
|
150
|
-
vendorId: string;
|
|
151
|
-
tenantId: string;
|
|
152
|
-
userId?: string;
|
|
153
|
-
token: string;
|
|
154
|
-
expires: Date;
|
|
155
|
-
shouldSendEmail?: boolean;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* vendor config
|
|
159
|
-
*/
|
|
160
|
-
export type IInviteLinkConfiguration = {
|
|
161
|
-
tenantInvitationsAllowed: boolean;
|
|
162
|
-
emailsEnabled: boolean;
|
|
163
|
-
}
|
package/src/tenants/index.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ISubTenant, ISubTenantTree, ISwitchTenant, ITenantsResponse } from './interfaces';
|
|
2
|
-
import { Get, Put } from '../fetch';
|
|
3
|
-
import { urls } from '../constants';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* switch logged in user to specific tenant by providing tenantId.
|
|
7
|
-
*
|
|
8
|
-
* @throws exception if invalid tenantId.
|
|
9
|
-
* ``authorized user``
|
|
10
|
-
*/
|
|
11
|
-
export async function switchTenant(body: ISwitchTenant): Promise<void> {
|
|
12
|
-
console.debug('switchTenant()', body);
|
|
13
|
-
return Put(`${urls.identity.users.v1}/tenant`, body);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* retrieve logged in user's available tenants.
|
|
18
|
-
*
|
|
19
|
-
* ``authorized user``
|
|
20
|
-
*/
|
|
21
|
-
export async function getTenants(): Promise<ITenantsResponse[]> {
|
|
22
|
-
console.debug('getTenants()');
|
|
23
|
-
return Get(`${urls.identity.users.v2}/me/tenants`);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* retrieve logged in user's available sub tenants.
|
|
29
|
-
*
|
|
30
|
-
* ``authorized user``
|
|
31
|
-
*/
|
|
32
|
-
export async function getSubTenants(): Promise<ISubTenant> {
|
|
33
|
-
console.debug('getSubTenants()');
|
|
34
|
-
return Get(urls.tenants.hierarchy.v1);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* retrieve logged in user's available sub tenants as a tree.
|
|
39
|
-
*
|
|
40
|
-
* ``authorized user``
|
|
41
|
-
*/
|
|
42
|
-
export async function getSubTenantsAsTree(): Promise<ISubTenantTree> {
|
|
43
|
-
console.debug('getSubTenantsAsTree()');
|
|
44
|
-
return Get(urls.tenants.hierarchy.tree.v1);
|
|
45
|
-
}
|
|
46
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface ISwitchTenant {
|
|
2
|
-
tenantId: string;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export interface ITenantsResponse {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
deletedAt: null;
|
|
9
|
-
metadata: any;
|
|
10
|
-
tenantId: string;
|
|
11
|
-
vendorId: string;
|
|
12
|
-
isReseller: boolean;
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
updatedAt: Date;
|
|
15
|
-
address?: string;
|
|
16
|
-
timezone?: string;
|
|
17
|
-
dateFormat?: string;
|
|
18
|
-
timeFormat?: string;
|
|
19
|
-
currency?: string;
|
|
20
|
-
logo?: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface ISubTenant {
|
|
24
|
-
tenantId: string;
|
|
25
|
-
tenantName?: string;
|
|
26
|
-
level: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface ISubTenantTree {
|
|
30
|
-
tenantId: string;
|
|
31
|
-
tenantName?: string;
|
|
32
|
-
children: ISubTenantTree[];
|
|
33
|
-
}
|
package/src/vendor/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {Get} from '../fetch';
|
|
2
|
-
import {urls} from '../constants';
|
|
3
|
-
import {IVendorPublicInfoResponse} from "./interfaces";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* provide vendor public info by providing the vendor context.
|
|
7
|
-
* @return IVendorPublicInfoResponse
|
|
8
|
-
*/
|
|
9
|
-
export async function getVendorPublicInfo(): Promise<IVendorPublicInfoResponse> {
|
|
10
|
-
console.debug('getVendorPublicInfo()');
|
|
11
|
-
return Get(`${urls.vendor}/public`);
|
|
12
|
-
};
|