@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
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ILoadMessages, IMessage, IUpdateNotificationStatus, IUpdateNotificationIsPinned } from './interfaces';
|
|
2
|
-
/**
|
|
3
|
-
* get Notifications
|
|
4
|
-
*/
|
|
5
|
-
export declare function getNotifications(params: ILoadMessages): Promise<Array<IMessage>>;
|
|
6
|
-
/**
|
|
7
|
-
* update Notification status
|
|
8
|
-
*/
|
|
9
|
-
export declare function updateNotificationStatus(params: IUpdateNotificationStatus): Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* update Notification pin status
|
|
12
|
-
*/
|
|
13
|
-
export declare function updateNotificationIsPinned(params: IUpdateNotificationIsPinned): Promise<any>;
|
|
14
|
-
/**
|
|
15
|
-
* mark all notifications as read
|
|
16
|
-
*/
|
|
17
|
-
export declare function markAllAsRead(): Promise<void>;
|
|
@@ -1,56 +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.markAllAsRead = exports.updateNotificationIsPinned = exports.updateNotificationStatus = exports.getNotifications = void 0;
|
|
13
|
-
const fetch_1 = require("../fetch");
|
|
14
|
-
const constants_1 = require("../constants");
|
|
15
|
-
/**
|
|
16
|
-
* get Notifications
|
|
17
|
-
*/
|
|
18
|
-
function getNotifications(params) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
console.debug('getNotifications()');
|
|
21
|
-
return fetch_1.Get(constants_1.urls.notifications.v1, { params });
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
exports.getNotifications = getNotifications;
|
|
25
|
-
/**
|
|
26
|
-
* update Notification status
|
|
27
|
-
*/
|
|
28
|
-
function updateNotificationStatus(params) {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
console.debug('getNotifications()');
|
|
31
|
-
return fetch_1.Put(`${constants_1.urls.notifications.v1}/status`, { params });
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
exports.updateNotificationStatus = updateNotificationStatus;
|
|
35
|
-
/**
|
|
36
|
-
* update Notification pin status
|
|
37
|
-
*/
|
|
38
|
-
function updateNotificationIsPinned(params) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const { notificationId, pinStatus } = params;
|
|
41
|
-
console.debug('getNotifications()');
|
|
42
|
-
return fetch_1.Put(`${constants_1.urls.notifications.v1}/${pinStatus}`, { notificationId });
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
exports.updateNotificationIsPinned = updateNotificationIsPinned;
|
|
46
|
-
/**
|
|
47
|
-
* mark all notifications as read
|
|
48
|
-
*/
|
|
49
|
-
function markAllAsRead() {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
console.debug('getNotifications()');
|
|
52
|
-
return fetch_1.Post(`${constants_1.urls.notifications.v1}/status/mark-all-read`);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
exports.markAllAsRead = markAllAsRead;
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAwC;AACxC,4CAAkC;AAGlC;;GAEG;AAEH,SAAsB,gBAAgB,CAAC,MAAqB;;QAC1D,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACpC,OAAO,WAAG,CAAC,gBAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;IAC9C,CAAC;CAAA;AAHD,4CAGC;AAED;;GAEG;AAEH,SAAsB,wBAAwB,CAAC,MAAiC;;QAC9E,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACpC,OAAO,WAAG,CAAC,GAAG,gBAAI,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;IAC1D,CAAC;CAAA;AAHD,4DAGC;AAED;;GAEG;AAEH,SAAsB,0BAA0B,CAAC,MAAmC;;QAClF,MAAM,EAAC,cAAc,EAAE,SAAS,EAAC,GAAG,MAAM,CAAC;QAC3C,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACpC,OAAO,WAAG,CAAC,GAAG,gBAAI,CAAC,aAAa,CAAC,EAAE,IAAI,SAAS,EAAE,EAAE,EAAC,cAAc,EAAC,CAAC,CAAC;IACxE,CAAC;CAAA;AAJD,gEAIC;AAED;;GAEG;AAEH,SAAsB,aAAa;;QACjC,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACpC,OAAO,YAAI,CAAC,GAAG,gBAAI,CAAC,aAAa,CAAC,EAAE,uBAAuB,CAAC,CAAC;IAC/D,CAAC;CAAA;AAHD,sCAGC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export interface ILoadMessages {
|
|
2
|
-
count: number;
|
|
3
|
-
offset: number;
|
|
4
|
-
}
|
|
5
|
-
export interface IMessages {
|
|
6
|
-
data: Array<IMessage>;
|
|
7
|
-
current: number;
|
|
8
|
-
total: number | null;
|
|
9
|
-
unreadCount: number;
|
|
10
|
-
}
|
|
11
|
-
export interface IMessage {
|
|
12
|
-
actions: INotificationAction[];
|
|
13
|
-
id: string;
|
|
14
|
-
title: string;
|
|
15
|
-
body: string;
|
|
16
|
-
severity: string;
|
|
17
|
-
url: string;
|
|
18
|
-
viewed: boolean;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
status: string;
|
|
21
|
-
isPinned: boolean;
|
|
22
|
-
key: string;
|
|
23
|
-
}
|
|
24
|
-
export interface INotificationAction {
|
|
25
|
-
visualization: string;
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
url: string;
|
|
29
|
-
method: string;
|
|
30
|
-
createdAt: string;
|
|
31
|
-
updatedAt: string;
|
|
32
|
-
}
|
|
33
|
-
export interface IUpdateNotificationStatus {
|
|
34
|
-
notificationId: string;
|
|
35
|
-
status: 'read' | 'unread' | 'archived';
|
|
36
|
-
}
|
|
37
|
-
export interface IUpdateNotificationIsPinned {
|
|
38
|
-
pinStatus: 'pin' | 'unpin';
|
|
39
|
-
notificationId: string;
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/notifications/interfaces.ts"],"names":[],"mappings":""}
|
package/dist/reports/index.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { IDownloadReport, IGetReport, IGetReports, IRenderReport, IRenderReportResponse, IReportRecord, IScheduleReport, ISendReport } from './interfaces';
|
|
2
|
-
/**
|
|
3
|
-
* Get all active tenant reports from reports service by active vendor.
|
|
4
|
-
* Optional: pass filters and sort options to reports.
|
|
5
|
-
*
|
|
6
|
-
* @returns list of reports objects
|
|
7
|
-
*/
|
|
8
|
-
export declare function getReports(body: IGetReports): Promise<IReportRecord[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Get report record by id.
|
|
11
|
-
*
|
|
12
|
-
* @returns list of report object
|
|
13
|
-
* @throws exception if report not found.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getReport(body: IGetReport): Promise<IReportRecord>;
|
|
16
|
-
/**
|
|
17
|
-
* Render report by id.
|
|
18
|
-
* Optional: pass data filters if exists to render report by specific data.
|
|
19
|
-
*
|
|
20
|
-
* @returns html content of the rendered reports
|
|
21
|
-
* @throws exception if report not found or the data api unreached.
|
|
22
|
-
*/
|
|
23
|
-
export declare function renderReport({ dataFilters, ...body }: IRenderReport): Promise<IRenderReportResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* schedule report by providing cron expression and data filters.
|
|
26
|
-
*
|
|
27
|
-
* @returns the updated report object
|
|
28
|
-
* @throws exception if report not found or the data api unreached.
|
|
29
|
-
*/
|
|
30
|
-
export declare function scheduleReport({ templateId, dataFilters, ...body }: IScheduleReport): Promise<IReportRecord>;
|
|
31
|
-
/**
|
|
32
|
-
* download report as file in specific format.
|
|
33
|
-
* this function will add a href element with url to trigger file download.
|
|
34
|
-
* Optional: pass data filters if exists to generate report by specific data.
|
|
35
|
-
*
|
|
36
|
-
* @throws exception if report not found or the data api unreached.
|
|
37
|
-
*/
|
|
38
|
-
export declare function downloadReport({ dataFilters, ...body }: IDownloadReport): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* send report to specific email address.
|
|
41
|
-
* Optional: pass data filters if exists to send report by specific data.
|
|
42
|
-
*
|
|
43
|
-
* @throws exception if report not found or the data api unreached.
|
|
44
|
-
*/
|
|
45
|
-
export declare function sendReport(body: ISendReport): Promise<void>;
|
package/dist/reports/index.js
DELETED
|
@@ -1,127 +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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.sendReport = exports.downloadReport = exports.scheduleReport = exports.renderReport = exports.getReport = exports.getReports = void 0;
|
|
24
|
-
const fetch_1 = require("../fetch");
|
|
25
|
-
const constants_1 = require("../constants");
|
|
26
|
-
/**
|
|
27
|
-
* Get all active tenant reports from reports service by active vendor.
|
|
28
|
-
* Optional: pass filters and sort options to reports.
|
|
29
|
-
*
|
|
30
|
-
* @returns list of reports objects
|
|
31
|
-
*/
|
|
32
|
-
function getReports(body) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
console.debug('getReports()', body);
|
|
35
|
-
return fetch_1.Get(`${constants_1.urls.reports.service.v2}/tenant-reports`, body);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
exports.getReports = getReports;
|
|
39
|
-
/**
|
|
40
|
-
* Get report record by id.
|
|
41
|
-
*
|
|
42
|
-
* @returns list of report object
|
|
43
|
-
* @throws exception if report not found.
|
|
44
|
-
*/
|
|
45
|
-
function getReport(body) {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
console.debug('getReport()', body);
|
|
48
|
-
return fetch_1.Get(`${constants_1.urls.reports.service.v2}/${body.id}/tenant-reports`);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
exports.getReport = getReport;
|
|
52
|
-
/**
|
|
53
|
-
* Render report by id.
|
|
54
|
-
* Optional: pass data filters if exists to render report by specific data.
|
|
55
|
-
*
|
|
56
|
-
* @returns html content of the rendered reports
|
|
57
|
-
* @throws exception if report not found or the data api unreached.
|
|
58
|
-
*/
|
|
59
|
-
function renderReport(_a) {
|
|
60
|
-
var { dataFilters } = _a, body = __rest(_a, ["dataFilters"]);
|
|
61
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
console.debug('renderReport()', body);
|
|
63
|
-
const html = yield fetch_1.Get(`${constants_1.urls.reports.trigger.v1}/preview-report`, Object.assign(Object.assign({}, body), { dataFilters: btoa(JSON.stringify(dataFilters || {})), responseType: 'html' }), { responseType: 'plain' });
|
|
64
|
-
return { html };
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
exports.renderReport = renderReport;
|
|
68
|
-
/**
|
|
69
|
-
* schedule report by providing cron expression and data filters.
|
|
70
|
-
*
|
|
71
|
-
* @returns the updated report object
|
|
72
|
-
* @throws exception if report not found or the data api unreached.
|
|
73
|
-
*/
|
|
74
|
-
function scheduleReport(_a) {
|
|
75
|
-
var { templateId, dataFilters } = _a, body = __rest(_a, ["templateId", "dataFilters"]);
|
|
76
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
console.debug('scheduleReport()', body);
|
|
78
|
-
return fetch_1.Post(`${constants_1.urls.reports.service.v2}/${templateId}/tenant-reports`, Object.assign(Object.assign({}, body), { dataFilters: btoa(JSON.stringify(dataFilters || {})) }));
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
exports.scheduleReport = scheduleReport;
|
|
82
|
-
/**
|
|
83
|
-
* download report as file in specific format.
|
|
84
|
-
* this function will add a href element with url to trigger file download.
|
|
85
|
-
* Optional: pass data filters if exists to generate report by specific data.
|
|
86
|
-
*
|
|
87
|
-
* @throws exception if report not found or the data api unreached.
|
|
88
|
-
*/
|
|
89
|
-
function downloadReport(_a) {
|
|
90
|
-
var { dataFilters } = _a, body = __rest(_a, ["dataFilters"]);
|
|
91
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
-
console.debug('downloadReport()', body);
|
|
93
|
-
const blob = yield fetch_1.Get(`${constants_1.urls.reports.trigger.v1}/preview-report`, Object.assign(Object.assign({}, body), { dataFilters: btoa(JSON.stringify(dataFilters || {})) }), { responseType: 'blob' });
|
|
94
|
-
let contentType = 'text/html';
|
|
95
|
-
let contentExt = 'html';
|
|
96
|
-
if (body.responseType === 'pdf') {
|
|
97
|
-
contentType = 'application/pdf';
|
|
98
|
-
contentExt = 'pdf';
|
|
99
|
-
}
|
|
100
|
-
else if (body.responseType === 'image') {
|
|
101
|
-
contentType = 'image/jpeg';
|
|
102
|
-
contentExt = 'jpg';
|
|
103
|
-
}
|
|
104
|
-
const newBlob = new Blob([blob], { type: contentType });
|
|
105
|
-
const fileURL = URL.createObjectURL(newBlob);
|
|
106
|
-
const tempLink = document.createElement('a');
|
|
107
|
-
tempLink.href = fileURL;
|
|
108
|
-
tempLink.setAttribute('download', `report_${body.name || ''}.${contentExt}`);
|
|
109
|
-
tempLink.click();
|
|
110
|
-
setTimeout(tempLink.remove.bind(tempLink));
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
exports.downloadReport = downloadReport;
|
|
114
|
-
/**
|
|
115
|
-
* send report to specific email address.
|
|
116
|
-
* Optional: pass data filters if exists to send report by specific data.
|
|
117
|
-
*
|
|
118
|
-
* @throws exception if report not found or the data api unreached.
|
|
119
|
-
*/
|
|
120
|
-
function sendReport(body) {
|
|
121
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
console.debug('sendReport()', body);
|
|
123
|
-
return fetch_1.Post(`${constants_1.urls.reports.trigger.v1}/tenant-reports`, body);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
exports.sendReport = sendReport;
|
|
127
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reports/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { IFronteggRecord } from '../interfaces';
|
|
2
|
-
export interface ReportSchedule {
|
|
3
|
-
interval: 'daily' | 'weekly' | 'monthly' | 'custom';
|
|
4
|
-
cron: string;
|
|
5
|
-
tz: string;
|
|
6
|
-
active: boolean;
|
|
7
|
-
dataFilters?: {
|
|
8
|
-
[K in string]: any;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface IReportRecord extends IFronteggRecord {
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
schedule?: ReportSchedule;
|
|
16
|
-
status: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
htmlTemplate: string;
|
|
20
|
-
customerListApiUrl: string;
|
|
21
|
-
type: 'html' | 'pdf' | 'image';
|
|
22
|
-
dataFilters?: {
|
|
23
|
-
type: string;
|
|
24
|
-
config: DataFilter;
|
|
25
|
-
}[];
|
|
26
|
-
}
|
|
27
|
-
export interface DataFilterBase {
|
|
28
|
-
name: string;
|
|
29
|
-
label: string;
|
|
30
|
-
}
|
|
31
|
-
export interface DataFilterText extends DataFilterBase {
|
|
32
|
-
type: 'text';
|
|
33
|
-
placeholder?: string;
|
|
34
|
-
defaultValue?: string;
|
|
35
|
-
validation?: 'email' | 'url' | 'phone' | string;
|
|
36
|
-
validationError?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface DataFilterNumber extends DataFilterBase {
|
|
39
|
-
type: 'number';
|
|
40
|
-
placeholder?: string;
|
|
41
|
-
defaultValue?: string;
|
|
42
|
-
min?: string;
|
|
43
|
-
max?: string;
|
|
44
|
-
integer: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface DataFilterBoolean extends DataFilterBase {
|
|
47
|
-
type: 'boolean';
|
|
48
|
-
defaultValue?: boolean;
|
|
49
|
-
trueLabel?: string;
|
|
50
|
-
falseLabel?: string;
|
|
51
|
-
trueValue?: string;
|
|
52
|
-
falseValue?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface DataFilterSelect extends DataFilterBase {
|
|
55
|
-
type: 'select';
|
|
56
|
-
placeholder?: string;
|
|
57
|
-
defaultValue?: any;
|
|
58
|
-
options: {
|
|
59
|
-
label: string;
|
|
60
|
-
value: any;
|
|
61
|
-
}[];
|
|
62
|
-
}
|
|
63
|
-
export interface DataFilterMultiSelect extends DataFilterBase {
|
|
64
|
-
type: 'multi-select';
|
|
65
|
-
placeholder?: string;
|
|
66
|
-
defaultValue?: any[];
|
|
67
|
-
options: {
|
|
68
|
-
label: string;
|
|
69
|
-
value: any;
|
|
70
|
-
}[];
|
|
71
|
-
}
|
|
72
|
-
export interface DataFilterDate extends DataFilterBase {
|
|
73
|
-
type: 'date';
|
|
74
|
-
defaultValue?: {
|
|
75
|
-
startDate?: number;
|
|
76
|
-
endDate?: number;
|
|
77
|
-
};
|
|
78
|
-
placeholder?: {
|
|
79
|
-
startDate?: number;
|
|
80
|
-
endDate?: number;
|
|
81
|
-
};
|
|
82
|
-
isRange?: boolean;
|
|
83
|
-
maxDate?: {
|
|
84
|
-
type: 'fixed' | 'from-now';
|
|
85
|
-
value: number;
|
|
86
|
-
};
|
|
87
|
-
minDate?: {
|
|
88
|
-
type: 'fixed' | 'from-now';
|
|
89
|
-
value: number;
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
export interface DataFilterRelativeDate extends DataFilterBase {
|
|
93
|
-
type: 'relative-date';
|
|
94
|
-
defaultValue?: {
|
|
95
|
-
type: 'current' | 'last';
|
|
96
|
-
period: 'seconds' | 'minutes' | 'hours' | 'day' | 'week' | 'month' | 'year';
|
|
97
|
-
value: number;
|
|
98
|
-
};
|
|
99
|
-
periods: ('seconds' | 'minutes' | 'hours' | 'day' | 'week' | 'month' | 'year')[];
|
|
100
|
-
}
|
|
101
|
-
export declare type DataFilter = DataFilterText | DataFilterNumber | DataFilterBoolean | DataFilterSelect | DataFilterMultiSelect | DataFilterDate | DataFilterRelativeDate;
|
|
102
|
-
export declare type ReportColumnsNames = 'name' | 'schedule' | 'status' | 'updatedAt' | 'createdAt';
|
|
103
|
-
export interface IReportFilterBy {
|
|
104
|
-
column: ReportColumnsNames;
|
|
105
|
-
filterType: 'equal';
|
|
106
|
-
value: any;
|
|
107
|
-
}
|
|
108
|
-
export interface IReportsFilter {
|
|
109
|
-
query?: string;
|
|
110
|
-
filterBy?: IReportFilterBy;
|
|
111
|
-
}
|
|
112
|
-
export interface IReportsSort {
|
|
113
|
-
column: ReportColumnsNames;
|
|
114
|
-
direction: 'asc' | 'desc';
|
|
115
|
-
}
|
|
116
|
-
export interface IGetReports {
|
|
117
|
-
filters?: IReportsFilter;
|
|
118
|
-
sort?: IReportsSort;
|
|
119
|
-
}
|
|
120
|
-
export interface IGetReport {
|
|
121
|
-
id: string;
|
|
122
|
-
}
|
|
123
|
-
export interface IRenderReport {
|
|
124
|
-
templateId: string;
|
|
125
|
-
dataFilters?: any;
|
|
126
|
-
}
|
|
127
|
-
export interface IRenderReportResponse {
|
|
128
|
-
html: string;
|
|
129
|
-
}
|
|
130
|
-
export interface IScheduleReport {
|
|
131
|
-
templateId: string;
|
|
132
|
-
schedule: ReportSchedule;
|
|
133
|
-
status: string;
|
|
134
|
-
dataFilters: any;
|
|
135
|
-
type: 'html' | 'pdf' | 'image';
|
|
136
|
-
}
|
|
137
|
-
export interface IDownloadReport {
|
|
138
|
-
templateId: string;
|
|
139
|
-
name: string;
|
|
140
|
-
dataFilters: any;
|
|
141
|
-
responseType: 'image' | 'pdf' | 'html';
|
|
142
|
-
}
|
|
143
|
-
export interface ISendReport {
|
|
144
|
-
templateId: string;
|
|
145
|
-
to: string[];
|
|
146
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/reports/interfaces.ts"],"names":[],"mappings":""}
|
package/dist/roles/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { IRole, IRolePermission, IRolePermissionCategory, IAddRole, IDeleteRole, IUpdateRole, IAttachPermissionsToRole, IAttachPermissionToRoles } from './interfaces';
|
|
2
|
-
/**
|
|
3
|
-
* Gets tenant related roles
|
|
4
|
-
*/
|
|
5
|
-
export declare function getRoles(): Promise<IRole[]>;
|
|
6
|
-
/**
|
|
7
|
-
* Adds tenant related roles
|
|
8
|
-
* @param body: IAddRole
|
|
9
|
-
*/
|
|
10
|
-
export declare function addRole(body: IAddRole): Promise<IRole>;
|
|
11
|
-
/**
|
|
12
|
-
* Deletes role given role ID
|
|
13
|
-
*/
|
|
14
|
-
export declare function deleteRole({ roleId }: IDeleteRole): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Updates role using a given role ID and IUpdateRole object
|
|
17
|
-
*/
|
|
18
|
-
export declare function updateRole({ roleId, ...body }: IUpdateRole): Promise<IRole>;
|
|
19
|
-
/**
|
|
20
|
-
* Attaches permissions to role given a role ID
|
|
21
|
-
*/
|
|
22
|
-
export declare function attachPermissionsToRole({ roleId, ...body }: IAttachPermissionsToRole): Promise<IRole>;
|
|
23
|
-
/**
|
|
24
|
-
* Gets all vendor permissions
|
|
25
|
-
*/
|
|
26
|
-
export declare function getPermissions(): Promise<IRolePermission[]>;
|
|
27
|
-
/**
|
|
28
|
-
* Associate permission to roles
|
|
29
|
-
*/
|
|
30
|
-
export declare function attachPermissionToRoles({ permissionId, ...body }: IAttachPermissionToRoles): Promise<IRolePermission>;
|
|
31
|
-
/**
|
|
32
|
-
* Gets all vendor categories including the permissions
|
|
33
|
-
*/
|
|
34
|
-
export declare function getPermissionCategories(): Promise<IRolePermissionCategory[]>;
|
package/dist/roles/index.js
DELETED
|
@@ -1,110 +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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.getPermissionCategories = exports.attachPermissionToRoles = exports.getPermissions = exports.attachPermissionsToRole = exports.updateRole = exports.deleteRole = exports.addRole = exports.getRoles = void 0;
|
|
24
|
-
const fetch_1 = require("../fetch");
|
|
25
|
-
const constants_1 = require("../constants");
|
|
26
|
-
/**
|
|
27
|
-
* Gets tenant related roles
|
|
28
|
-
*/
|
|
29
|
-
function getRoles() {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
console.debug('getRoles()');
|
|
32
|
-
return fetch_1.Get(constants_1.urls.identity.roles.v1);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
exports.getRoles = getRoles;
|
|
36
|
-
/**
|
|
37
|
-
* Adds tenant related roles
|
|
38
|
-
* @param body: IAddRole
|
|
39
|
-
*/
|
|
40
|
-
function addRole(body) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
console.debug('addRole()', body);
|
|
43
|
-
return fetch_1.Post(constants_1.urls.identity.roles.v1, body);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
exports.addRole = addRole;
|
|
47
|
-
/**
|
|
48
|
-
* Deletes role given role ID
|
|
49
|
-
*/
|
|
50
|
-
function deleteRole({ roleId }) {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
console.debug('deleteRole()', roleId);
|
|
53
|
-
return fetch_1.Delete(`${constants_1.urls.identity.roles.v1}/${roleId}`);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
exports.deleteRole = deleteRole;
|
|
57
|
-
/**
|
|
58
|
-
* Updates role using a given role ID and IUpdateRole object
|
|
59
|
-
*/
|
|
60
|
-
function updateRole(_a) {
|
|
61
|
-
var { roleId } = _a, body = __rest(_a, ["roleId"]);
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
console.debug('updateRole()', roleId, body);
|
|
64
|
-
return fetch_1.Patch(`${constants_1.urls.identity.roles.v1}/${roleId}`, body);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
exports.updateRole = updateRole;
|
|
68
|
-
/**
|
|
69
|
-
* Attaches permissions to role given a role ID
|
|
70
|
-
*/
|
|
71
|
-
function attachPermissionsToRole(_a) {
|
|
72
|
-
var { roleId } = _a, body = __rest(_a, ["roleId"]);
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
console.debug('attachPermissionsToRole()', roleId, body);
|
|
75
|
-
return fetch_1.Put(`${constants_1.urls.identity.roles.v1}/${roleId}/permissions`, body);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
exports.attachPermissionsToRole = attachPermissionsToRole;
|
|
79
|
-
/**
|
|
80
|
-
* Gets all vendor permissions
|
|
81
|
-
*/
|
|
82
|
-
function getPermissions() {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
console.debug('getPermissions()');
|
|
85
|
-
return fetch_1.Get(constants_1.urls.identity.permissions.v1);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
exports.getPermissions = getPermissions;
|
|
89
|
-
/**
|
|
90
|
-
* Associate permission to roles
|
|
91
|
-
*/
|
|
92
|
-
function attachPermissionToRoles(_a) {
|
|
93
|
-
var { permissionId } = _a, body = __rest(_a, ["permissionId"]);
|
|
94
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
console.debug('attachPermissionToRoles()');
|
|
96
|
-
return fetch_1.Put(`${constants_1.urls.identity.permissions.v1}/${permissionId}/roles`, body);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
exports.attachPermissionToRoles = attachPermissionToRoles;
|
|
100
|
-
/**
|
|
101
|
-
* Gets all vendor categories including the permissions
|
|
102
|
-
*/
|
|
103
|
-
function getPermissionCategories() {
|
|
104
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
console.debug('getPermissionCategories()');
|
|
106
|
-
return fetch_1.Get(`${constants_1.urls.identity.permissions.v1}/categories`);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
exports.getPermissionCategories = getPermissionCategories;
|
|
110
|
-
//# sourceMappingURL=index.js.map
|
package/dist/roles/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/roles/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAUA,oCAAuD;AACvD,4CAAkC;AAElC;;GAEG;AACH,SAAsB,QAAQ;;QAC5B,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAC5B,OAAO,WAAG,CAAC,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,CAAC;CAAA;AAHD,4BAGC;AAED;;;GAGG;AACH,SAAsB,OAAO,CAAC,IAAc;;QAC1C,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjC,OAAO,YAAI,CAAC,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAC5C,CAAC;CAAA;AAHD,0BAGC;AAED;;GAEG;AACH,SAAsB,UAAU,CAAC,EAAC,MAAM,EAAc;;QACpD,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QACtC,OAAO,cAAM,CAAC,GAAG,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;CAAA;AAHD,gCAGC;AAED;;GAEG;AACH,SAAsB,UAAU,CAAC,EAA8B;QAA9B,EAAC,MAAM,OAAuB,EAAlB,IAAI,cAAhB,UAAiB,CAAD;;QAC/C,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QAC5C,OAAO,aAAK,CAAC,GAAG,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,MAAM,EAAE,EAAE,IAAI,CAAC,CAAC;;CAC3D;AAHD,gCAGC;AAED;;GAEG;AACH,SAAsB,uBAAuB,CAAC,EAA2C;QAA3C,EAAC,MAAM,OAAoC,EAA/B,IAAI,cAAhB,UAAiB,CAAD;;QAC5D,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QACzD,OAAO,WAAG,CAAC,GAAG,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,MAAM,cAAc,EAAE,IAAI,CAAC,CAAC;;CACrE;AAHD,0DAGC;AAED;;GAEG;AACH,SAAsB,cAAc;;QAClC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAClC,OAAO,WAAG,CAAC,gBAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC3C,CAAC;CAAA;AAHD,wCAGC;AAED;;GAEG;AACH,SAAsB,uBAAuB,CAAC,EAG2B;QAH3B,EACE,YAAY,OAEa,EADtB,IAAI,cAFT,gBAGC,CADQ;;QAErD,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC3C,OAAO,WAAG,CAAC,GAAG,gBAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,IAAI,YAAY,QAAQ,EAAE,IAAI,CAAC,CAAC;;CAC3E;AAND,0DAMC;AAED;;GAEG;AACH,SAAsB,uBAAuB;;QAC3C,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC3C,OAAO,WAAG,CAAC,GAAG,gBAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,CAAC;IAC3D,CAAC;CAAA;AAHD,0DAGC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export declare type IRole = {
|
|
2
|
-
id: string;
|
|
3
|
-
key: string;
|
|
4
|
-
isDefault: boolean;
|
|
5
|
-
name: string;
|
|
6
|
-
description?: null;
|
|
7
|
-
permissions: string[];
|
|
8
|
-
tenantId?: string;
|
|
9
|
-
vendorId: string;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
updatedAt: Date;
|
|
12
|
-
};
|
|
13
|
-
export declare type IRolePermission = {
|
|
14
|
-
id: string;
|
|
15
|
-
key: string;
|
|
16
|
-
name: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
categoryId: string;
|
|
19
|
-
fePermission: boolean;
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
updatedAt: Date;
|
|
22
|
-
};
|
|
23
|
-
export declare type IRolePermissionCategory = {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
description: string;
|
|
27
|
-
feCategory: boolean;
|
|
28
|
-
permissionIds: string[];
|
|
29
|
-
createdAt: Date;
|
|
30
|
-
updatedAt: Date;
|
|
31
|
-
};
|
|
32
|
-
export declare type IAddRole = {
|
|
33
|
-
key: string;
|
|
34
|
-
name: string;
|
|
35
|
-
description: string;
|
|
36
|
-
isDefault: boolean;
|
|
37
|
-
level: number;
|
|
38
|
-
permissions: string[];
|
|
39
|
-
};
|
|
40
|
-
export declare type IUpdateRole = {
|
|
41
|
-
roleId: string;
|
|
42
|
-
key?: string;
|
|
43
|
-
name?: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
isDefault?: boolean;
|
|
46
|
-
level?: number;
|
|
47
|
-
};
|
|
48
|
-
export declare type IDeleteRole = {
|
|
49
|
-
roleId: string;
|
|
50
|
-
};
|
|
51
|
-
export declare type IAttachPermissionsToRole = {
|
|
52
|
-
roleId: string;
|
|
53
|
-
permissionIds: string[];
|
|
54
|
-
};
|
|
55
|
-
export declare type IAttachPermissionToRoles = {
|
|
56
|
-
permissionId: string;
|
|
57
|
-
roleIds: string[];
|
|
58
|
-
};
|
package/dist/roles/interfaces.js
DELETED