@frontegg/rest-api 2.10.90 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/ContextHolder.d.ts → ContextHolder.d.ts} +0 -0
- package/ContextHolder.js +114 -0
- package/{dist/account-settings → account-settings}/index.d.ts +0 -0
- package/account-settings/index.js +47 -0
- package/{dist/account-settings → account-settings}/interfaces.d.ts +0 -0
- package/account-settings/interfaces.js +1 -0
- package/account-settings/package.json +6 -0
- package/{dist/audits → audits}/index.d.ts +0 -0
- package/audits/index.js +74 -0
- package/{dist/audits → audits}/interfaces.d.ts +0 -0
- package/audits/interfaces.js +1 -0
- package/audits/package.json +6 -0
- package/{dist/auth → auth}/enums.d.ts +0 -0
- package/auth/enums.js +18 -0
- package/{dist/auth → auth}/index.d.ts +0 -0
- package/auth/index.js +2102 -0
- package/{dist/auth → auth}/interfaces.d.ts +0 -0
- package/auth/interfaces.js +16 -0
- package/auth/package.json +6 -0
- package/{dist/auth → auth}/secutiry-poilicy/index.d.ts +0 -0
- package/auth/secutiry-poilicy/index.js +257 -0
- package/{dist/auth → auth}/secutiry-poilicy/interfaces.d.ts +0 -0
- package/auth/secutiry-poilicy/interfaces.js +1 -0
- package/{dist/connectivity → connectivity}/index.d.ts +0 -0
- package/connectivity/index.js +114 -0
- package/{dist/connectivity → connectivity}/interfaces.d.ts +0 -0
- package/connectivity/interfaces.js +1 -0
- package/connectivity/package.json +6 -0
- package/{dist/constants.d.ts → constants.d.ts} +0 -0
- package/{src/constants.ts → constants.js} +13 -13
- package/{dist/error.d.ts → error.d.ts} +0 -0
- package/error.js +36 -0
- package/fetch.d.ts +19 -0
- package/fetch.js +557 -0
- package/{dist/es2015/index.d.ts → index.d.ts} +0 -0
- package/{dist/es2015/index.js → index.js} +32 -28
- package/{dist/es2015/interfaces.d.ts → interfaces.d.ts} +0 -0
- package/interfaces.js +1 -0
- package/{dist/es2015/jwt.d.ts → jwt.d.ts} +0 -0
- package/jwt.js +105 -0
- package/{dist/es2015/metadata → metadata}/index.d.ts +0 -0
- package/metadata/index.js +166 -0
- package/{dist/es2015/metadata → metadata}/interfaces.d.ts +0 -0
- package/metadata/interfaces.js +1 -0
- package/metadata/package.json +6 -0
- package/node/ContextHolder.js +126 -0
- package/node/account-settings/index.js +61 -0
- package/node/account-settings/interfaces.js +5 -0
- package/node/audits/index.js +90 -0
- package/node/audits/interfaces.js +5 -0
- package/node/auth/enums.js +26 -0
- package/node/auth/index.js +2327 -0
- package/node/auth/interfaces.js +39 -0
- package/node/auth/secutiry-poilicy/index.js +279 -0
- package/node/auth/secutiry-poilicy/interfaces.js +5 -0
- package/node/connectivity/index.js +201 -0
- package/node/connectivity/interfaces.js +5 -0
- package/node/constants.js +177 -0
- package/node/error.js +50 -0
- package/node/fetch.js +589 -0
- package/node/index.js +359 -0
- package/node/interfaces.js +5 -0
- package/node/jwt.js +125 -0
- package/node/metadata/index.js +188 -0
- package/node/metadata/interfaces.js +5 -0
- package/node/notifications/index.js +115 -0
- package/node/notifications/interfaces.js +5 -0
- package/node/reports/index.js +205 -0
- package/node/reports/interfaces.js +5 -0
- package/node/roles/index.js +209 -0
- package/node/roles/interfaces.js +5 -0
- package/node/routers.js +13 -0
- package/node/sub-tenants/index.js +153 -0
- package/node/sub-tenants/interfaces.js +5 -0
- package/node/subscriptions/enums.js +39 -0
- package/node/subscriptions/index.js +135 -0
- package/node/subscriptions/interfaces.js +18 -0
- package/node/subscriptions/invoices.js +88 -0
- package/node/subscriptions/managedSubscriptions.js +135 -0
- package/node/subscriptions/paymentMethods.js +91 -0
- package/node/subscriptions/paymentProviders.js +38 -0
- package/node/subscriptions/plans.js +61 -0
- package/node/subscriptions/providers/index.js +18 -0
- package/node/subscriptions/providers/stripe/index.js +130 -0
- package/node/subscriptions/providers/stripe/interfaces.js +5 -0
- package/node/subscriptions/subscriptions.js +135 -0
- package/node/subscriptions/summaries.js +38 -0
- package/node/subscriptions/tenantConfiguration.js +61 -0
- package/node/teams/index.js +478 -0
- package/node/teams/interfaces.js +5 -0
- package/node/tenants/index.js +107 -0
- package/node/tenants/interfaces.js +5 -0
- package/node/vendor/index.js +40 -0
- package/node/vendor/interfaces.js +5 -0
- package/{dist/es2015/notifications → notifications}/index.d.ts +0 -0
- package/notifications/index.js +99 -0
- package/{dist/es2015/notifications → notifications}/interfaces.d.ts +0 -0
- package/notifications/interfaces.js +1 -0
- package/notifications/package.json +6 -0
- package/package.json +9 -32
- package/{dist/es2015/reports → reports}/index.d.ts +0 -0
- package/reports/index.js +185 -0
- package/{dist/es2015/reports → reports}/interfaces.d.ts +0 -0
- package/reports/interfaces.js +1 -0
- package/reports/package.json +6 -0
- package/{dist/es2015/roles → roles}/index.d.ts +0 -0
- package/roles/index.js +188 -0
- package/{dist/es2015/roles → roles}/interfaces.d.ts +0 -0
- package/roles/interfaces.js +1 -0
- package/roles/package.json +6 -0
- package/{dist/es2015/routers.d.ts → routers.d.ts} +0 -0
- package/routers.js +3 -0
- package/{dist/es2015/sub-tenants → sub-tenants}/index.d.ts +0 -0
- package/sub-tenants/index.js +135 -0
- package/{dist/es2015/sub-tenants → sub-tenants}/interfaces.d.ts +0 -0
- package/sub-tenants/interfaces.js +1 -0
- package/sub-tenants/package.json +6 -0
- package/{dist/es2015/subscriptions → subscriptions}/enums.d.ts +0 -0
- package/subscriptions/enums.js +29 -0
- package/{dist/es2015/subscriptions → subscriptions}/index.d.ts +0 -0
- package/{dist/subscriptions/index.d.ts → subscriptions/index.js} +1 -1
- package/{dist/es2015/subscriptions → subscriptions}/interfaces.d.ts +0 -0
- package/{dist/es2015/subscriptions → subscriptions}/interfaces.js +1 -1
- package/{dist/es2015/subscriptions → subscriptions}/invoices.d.ts +0 -0
- package/subscriptions/invoices.js +73 -0
- package/{dist/es2015/subscriptions → subscriptions}/managedSubscriptions.d.ts +0 -0
- package/subscriptions/managedSubscriptions.js +118 -0
- package/subscriptions/package.json +6 -0
- package/{dist/es2015/subscriptions → subscriptions}/paymentMethods.d.ts +0 -0
- package/subscriptions/paymentMethods.js +75 -0
- package/{dist/es2015/subscriptions → subscriptions}/paymentProviders.d.ts +0 -0
- package/subscriptions/paymentProviders.js +25 -0
- package/{dist/es2015/subscriptions → subscriptions}/plans.d.ts +0 -0
- package/subscriptions/plans.js +47 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/index.d.ts +0 -0
- package/subscriptions/providers/index.js +1 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/stripe/index.d.ts +0 -0
- package/subscriptions/providers/stripe/index.js +113 -0
- package/{dist/es2015/subscriptions → subscriptions}/providers/stripe/interfaces.d.ts +0 -0
- package/subscriptions/providers/stripe/interfaces.js +1 -0
- package/{dist/es2015/subscriptions → subscriptions}/subscriptions.d.ts +0 -0
- package/subscriptions/subscriptions.js +118 -0
- package/{dist/es2015/subscriptions → subscriptions}/summaries.d.ts +0 -0
- package/subscriptions/summaries.js +25 -0
- package/{dist/es2015/subscriptions → subscriptions}/tenantConfiguration.d.ts +0 -0
- package/subscriptions/tenantConfiguration.js +47 -0
- package/{dist/es2015/teams → teams}/index.d.ts +0 -0
- package/teams/index.js +445 -0
- package/{dist/es2015/teams → teams}/interfaces.d.ts +0 -0
- package/teams/interfaces.js +1 -0
- package/teams/package.json +6 -0
- package/{dist/es2015/tenants → tenants}/index.d.ts +0 -0
- package/tenants/index.js +91 -0
- package/{dist/es2015/tenants → tenants}/interfaces.d.ts +0 -0
- package/tenants/interfaces.js +1 -0
- package/tenants/package.json +6 -0
- package/{dist/es2015/vendor → vendor}/index.d.ts +0 -0
- package/vendor/index.js +27 -0
- package/{dist/es2015/vendor → vendor}/interfaces.d.ts +0 -0
- package/vendor/interfaces.js +1 -0
- package/vendor/package.json +6 -0
- package/CHANGELOG.md +0 -211
- package/README.md +0 -139
- package/SECURITY.md +0 -13
- package/dist/ContextHolder.js +0 -69
- package/dist/ContextHolder.js.map +0 -1
- package/dist/account-settings/index.js +0 -33
- package/dist/account-settings/index.js.map +0 -1
- package/dist/account-settings/interfaces.js +0 -3
- package/dist/account-settings/interfaces.js.map +0 -1
- package/dist/audits/index.js +0 -59
- package/dist/audits/index.js.map +0 -1
- package/dist/audits/interfaces.js +0 -3
- package/dist/audits/interfaces.js.map +0 -1
- package/dist/auth/enums.js +0 -19
- package/dist/auth/enums.js.map +0 -1
- package/dist/auth/index.js +0 -1042
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/interfaces.js +0 -29
- package/dist/auth/interfaces.js.map +0 -1
- package/dist/auth/secutiry-poilicy/index.js +0 -134
- package/dist/auth/secutiry-poilicy/index.js.map +0 -1
- package/dist/auth/secutiry-poilicy/interfaces.js +0 -3
- package/dist/auth/secutiry-poilicy/interfaces.js.map +0 -1
- package/dist/connectivity/index.js +0 -158
- package/dist/connectivity/index.js.map +0 -1
- package/dist/connectivity/interfaces.js +0 -3
- package/dist/connectivity/interfaces.js.map +0 -1
- package/dist/constants.js +0 -174
- package/dist/constants.js.map +0 -1
- package/dist/error.js +0 -14
- package/dist/error.js.map +0 -1
- package/dist/es2015/ContextHolder.d.ts +0 -29
- package/dist/es2015/ContextHolder.js +0 -65
- package/dist/es2015/ContextHolder.js.map +0 -1
- package/dist/es2015/account-settings/index.d.ts +0 -7
- package/dist/es2015/account-settings/index.js +0 -28
- package/dist/es2015/account-settings/index.js.map +0 -1
- package/dist/es2015/account-settings/interfaces.d.ts +0 -9
- package/dist/es2015/account-settings/interfaces.js +0 -2
- package/dist/es2015/account-settings/interfaces.js.map +0 -1
- package/dist/es2015/audits/index.d.ts +0 -16
- package/dist/es2015/audits/index.js +0 -53
- package/dist/es2015/audits/index.js.map +0 -1
- package/dist/es2015/audits/interfaces.d.ts +0 -61
- package/dist/es2015/audits/interfaces.js +0 -2
- package/dist/es2015/audits/interfaces.js.map +0 -1
- package/dist/es2015/auth/enums.d.ts +0 -13
- package/dist/es2015/auth/enums.js +0 -16
- package/dist/es2015/auth/enums.js.map +0 -1
- package/dist/es2015/auth/index.d.ts +0 -447
- package/dist/es2015/auth/index.js +0 -943
- package/dist/es2015/auth/index.js.map +0 -1
- package/dist/es2015/auth/interfaces.d.ts +0 -430
- package/dist/es2015/auth/interfaces.js +0 -16
- package/dist/es2015/auth/interfaces.js.map +0 -1
- package/dist/es2015/auth/secutiry-poilicy/index.d.ts +0 -41
- package/dist/es2015/auth/secutiry-poilicy/index.js +0 -121
- package/dist/es2015/auth/secutiry-poilicy/index.js.map +0 -1
- package/dist/es2015/auth/secutiry-poilicy/interfaces.d.ts +0 -70
- package/dist/es2015/auth/secutiry-poilicy/interfaces.js +0 -2
- package/dist/es2015/auth/secutiry-poilicy/interfaces.js.map +0 -1
- package/dist/es2015/connectivity/index.d.ts +0 -27
- package/dist/es2015/connectivity/index.js +0 -129
- package/dist/es2015/connectivity/index.js.map +0 -1
- package/dist/es2015/connectivity/interfaces.d.ts +0 -95
- package/dist/es2015/connectivity/interfaces.js +0 -2
- package/dist/es2015/connectivity/interfaces.js.map +0 -1
- package/dist/es2015/constants.d.ts +0 -170
- package/dist/es2015/constants.js +0 -171
- package/dist/es2015/constants.js.map +0 -1
- package/dist/es2015/error.d.ts +0 -5
- package/dist/es2015/error.js +0 -10
- package/dist/es2015/error.js.map +0 -1
- package/dist/es2015/fetch.d.ts +0 -19
- package/dist/es2015/fetch.js +0 -177
- package/dist/es2015/fetch.js.map +0 -1
- package/dist/es2015/index.js.map +0 -1
- package/dist/es2015/interfaces.js +0 -2
- package/dist/es2015/interfaces.js.map +0 -1
- package/dist/es2015/jwt.js +0 -83
- package/dist/es2015/jwt.js.map +0 -1
- package/dist/es2015/metadata/index.js +0 -32
- package/dist/es2015/metadata/index.js.map +0 -1
- package/dist/es2015/metadata/interfaces.js +0 -2
- package/dist/es2015/metadata/interfaces.js.map +0 -1
- package/dist/es2015/notifications/index.js +0 -49
- package/dist/es2015/notifications/index.js.map +0 -1
- package/dist/es2015/notifications/interfaces.js +0 -2
- package/dist/es2015/notifications/interfaces.js.map +0 -1
- package/dist/es2015/reports/index.js +0 -118
- package/dist/es2015/reports/index.js.map +0 -1
- package/dist/es2015/reports/interfaces.js +0 -2
- package/dist/es2015/reports/interfaces.js.map +0 -1
- package/dist/es2015/roles/index.js +0 -99
- package/dist/es2015/roles/index.js.map +0 -1
- package/dist/es2015/roles/interfaces.js +0 -2
- package/dist/es2015/roles/interfaces.js.map +0 -1
- package/dist/es2015/routers.js +0 -17
- package/dist/es2015/routers.js.map +0 -1
- package/dist/es2015/sub-tenants/index.js +0 -42
- package/dist/es2015/sub-tenants/index.js.map +0 -1
- package/dist/es2015/sub-tenants/interfaces.js +0 -2
- package/dist/es2015/sub-tenants/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/enums.js +0 -23
- package/dist/es2015/subscriptions/enums.js.map +0 -1
- package/dist/es2015/subscriptions/index.js +0 -11
- package/dist/es2015/subscriptions/index.js.map +0 -1
- package/dist/es2015/subscriptions/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/invoices.js +0 -43
- package/dist/es2015/subscriptions/invoices.js.map +0 -1
- package/dist/es2015/subscriptions/managedSubscriptions.js +0 -51
- package/dist/es2015/subscriptions/managedSubscriptions.js.map +0 -1
- package/dist/es2015/subscriptions/paymentMethods.js +0 -55
- package/dist/es2015/subscriptions/paymentMethods.js.map +0 -1
- package/dist/es2015/subscriptions/paymentProviders.js +0 -21
- package/dist/es2015/subscriptions/paymentProviders.js.map +0 -1
- package/dist/es2015/subscriptions/plans.js +0 -30
- package/dist/es2015/subscriptions/plans.js.map +0 -1
- package/dist/es2015/subscriptions/providers/index.js +0 -2
- package/dist/es2015/subscriptions/providers/index.js.map +0 -1
- package/dist/es2015/subscriptions/providers/stripe/index.js +0 -57
- package/dist/es2015/subscriptions/providers/stripe/index.js.map +0 -1
- package/dist/es2015/subscriptions/providers/stripe/interfaces.js +0 -2
- package/dist/es2015/subscriptions/providers/stripe/interfaces.js.map +0 -1
- package/dist/es2015/subscriptions/subscriptions.js +0 -57
- package/dist/es2015/subscriptions/subscriptions.js.map +0 -1
- package/dist/es2015/subscriptions/summaries.js +0 -21
- package/dist/es2015/subscriptions/summaries.js.map +0 -1
- package/dist/es2015/subscriptions/tenantConfiguration.js +0 -24
- package/dist/es2015/subscriptions/tenantConfiguration.js.map +0 -1
- package/dist/es2015/teams/index.js +0 -228
- package/dist/es2015/teams/index.js.map +0 -1
- package/dist/es2015/teams/interfaces.js +0 -2
- package/dist/es2015/teams/interfaces.js.map +0 -1
- package/dist/es2015/tenants/index.js +0 -57
- package/dist/es2015/tenants/index.js.map +0 -1
- package/dist/es2015/tenants/interfaces.js +0 -2
- package/dist/es2015/tenants/interfaces.js.map +0 -1
- package/dist/es2015/vendor/index.js +0 -23
- package/dist/es2015/vendor/index.js.map +0 -1
- package/dist/es2015/vendor/interfaces.js +0 -2
- package/dist/es2015/vendor/interfaces.js.map +0 -1
- package/dist/fetch.d.ts +0 -19
- package/dist/fetch.js +0 -187
- package/dist/fetch.js.map +0 -1
- package/dist/index.d.ts +0 -83
- package/dist/index.js +0 -98
- package/dist/index.js.map +0 -1
- package/dist/interfaces.d.ts +0 -40
- package/dist/interfaces.js +0 -3
- package/dist/interfaces.js.map +0 -1
- package/dist/jwt.d.ts +0 -13
- package/dist/jwt.js +0 -89
- package/dist/jwt.js.map +0 -1
- package/dist/metadata/index.d.ts +0 -5
- package/dist/metadata/index.js +0 -39
- package/dist/metadata/index.js.map +0 -1
- package/dist/metadata/interfaces.d.ts +0 -46
- package/dist/metadata/interfaces.js +0 -3
- package/dist/metadata/interfaces.js.map +0 -1
- package/dist/notifications/index.d.ts +0 -17
- package/dist/notifications/index.js +0 -56
- package/dist/notifications/index.js.map +0 -1
- package/dist/notifications/interfaces.d.ts +0 -40
- package/dist/notifications/interfaces.js +0 -3
- package/dist/notifications/interfaces.js.map +0 -1
- package/dist/reports/index.d.ts +0 -45
- package/dist/reports/index.js +0 -127
- package/dist/reports/index.js.map +0 -1
- package/dist/reports/interfaces.d.ts +0 -146
- package/dist/reports/interfaces.js +0 -3
- package/dist/reports/interfaces.js.map +0 -1
- package/dist/roles/index.d.ts +0 -34
- package/dist/roles/index.js +0 -110
- package/dist/roles/index.js.map +0 -1
- package/dist/roles/interfaces.d.ts +0 -58
- package/dist/roles/interfaces.js +0 -3
- package/dist/roles/interfaces.js.map +0 -1
- package/dist/routers.d.ts +0 -2
- package/dist/routers.js +0 -20
- package/dist/routers.js.map +0 -1
- package/dist/sub-tenants/index.d.ts +0 -8
- package/dist/sub-tenants/index.js +0 -51
- package/dist/sub-tenants/index.js.map +0 -1
- package/dist/sub-tenants/interfaces.d.ts +0 -87
- package/dist/sub-tenants/interfaces.js +0 -3
- package/dist/sub-tenants/interfaces.js.map +0 -1
- package/dist/subscriptions/enums.d.ts +0 -18
- package/dist/subscriptions/enums.js +0 -26
- package/dist/subscriptions/enums.js.map +0 -1
- package/dist/subscriptions/index.js +0 -23
- package/dist/subscriptions/index.js.map +0 -1
- package/dist/subscriptions/interfaces.d.ts +0 -117
- package/dist/subscriptions/interfaces.js +0 -14
- package/dist/subscriptions/interfaces.js.map +0 -1
- package/dist/subscriptions/invoices.d.ts +0 -13
- package/dist/subscriptions/invoices.js +0 -49
- package/dist/subscriptions/invoices.js.map +0 -1
- package/dist/subscriptions/managedSubscriptions.d.ts +0 -15
- package/dist/subscriptions/managedSubscriptions.js +0 -59
- package/dist/subscriptions/managedSubscriptions.js.map +0 -1
- package/dist/subscriptions/paymentMethods.d.ts +0 -13
- package/dist/subscriptions/paymentMethods.js +0 -61
- package/dist/subscriptions/paymentMethods.js.map +0 -1
- package/dist/subscriptions/paymentProviders.d.ts +0 -5
- package/dist/subscriptions/paymentProviders.js +0 -25
- package/dist/subscriptions/paymentProviders.js.map +0 -1
- package/dist/subscriptions/plans.d.ts +0 -9
- package/dist/subscriptions/plans.js +0 -35
- package/dist/subscriptions/plans.js.map +0 -1
- package/dist/subscriptions/providers/index.d.ts +0 -1
- package/dist/subscriptions/providers/index.js +0 -14
- package/dist/subscriptions/providers/index.js.map +0 -1
- package/dist/subscriptions/providers/stripe/index.d.ts +0 -21
- package/dist/subscriptions/providers/stripe/index.js +0 -65
- package/dist/subscriptions/providers/stripe/index.js.map +0 -1
- package/dist/subscriptions/providers/stripe/interfaces.d.ts +0 -32
- package/dist/subscriptions/providers/stripe/interfaces.js +0 -3
- package/dist/subscriptions/providers/stripe/interfaces.js.map +0 -1
- package/dist/subscriptions/subscriptions.d.ts +0 -21
- package/dist/subscriptions/subscriptions.js +0 -65
- package/dist/subscriptions/subscriptions.js.map +0 -1
- package/dist/subscriptions/summaries.d.ts +0 -5
- package/dist/subscriptions/summaries.js +0 -25
- package/dist/subscriptions/summaries.js.map +0 -1
- package/dist/subscriptions/tenantConfiguration.d.ts +0 -3
- package/dist/subscriptions/tenantConfiguration.js +0 -29
- package/dist/subscriptions/tenantConfiguration.js.map +0 -1
- package/dist/teams/index.d.ts +0 -116
- package/dist/teams/index.js +0 -250
- package/dist/teams/index.js.map +0 -1
- package/dist/teams/interfaces.d.ts +0 -136
- package/dist/teams/interfaces.js +0 -3
- package/dist/teams/interfaces.js.map +0 -1
- package/dist/tenants/index.d.ts +0 -26
- package/dist/tenants/index.js +0 -64
- package/dist/tenants/index.js.map +0 -1
- package/dist/tenants/interfaces.d.ts +0 -30
- package/dist/tenants/interfaces.js +0 -3
- package/dist/tenants/interfaces.js.map +0 -1
- package/dist/umd/index.js +0 -2891
- package/dist/vendor/index.d.ts +0 -6
- package/dist/vendor/index.js +0 -27
- package/dist/vendor/index.js.map +0 -1
- package/dist/vendor/interfaces.d.ts +0 -6
- package/dist/vendor/interfaces.js +0 -3
- package/dist/vendor/interfaces.js.map +0 -1
- package/src/ContextHolder.ts +0 -81
- package/src/account-settings/index.ts +0 -18
- package/src/account-settings/interfaces.ts +0 -10
- package/src/audits/index.ts +0 -35
- package/src/audits/interfaces.ts +0 -70
- package/src/auth/enums.ts +0 -17
- package/src/auth/index.ts +0 -935
- package/src/auth/interfaces.ts +0 -488
- package/src/auth/secutiry-poilicy/index.ts +0 -109
- package/src/auth/secutiry-poilicy/interfaces.ts +0 -81
- package/src/connectivity/index.ts +0 -160
- package/src/connectivity/interfaces.ts +0 -106
- package/src/error.ts +0 -13
- package/src/fetch.ts +0 -220
- package/src/index.ts +0 -86
- package/src/interfaces.ts +0 -47
- package/src/jwt.ts +0 -92
- package/src/metadata/index.ts +0 -24
- package/src/metadata/interfaces.ts +0 -51
- package/src/notifications/index.ts +0 -40
- package/src/notifications/interfaces.ts +0 -45
- package/src/reports/index.ts +0 -116
- package/src/reports/interfaces.ts +0 -167
- package/src/roles/index.ts +0 -80
- package/src/roles/interfaces.ts +0 -64
- package/src/routers.ts +0 -18
- package/src/sub-tenants/index.ts +0 -49
- package/src/sub-tenants/interfaces.ts +0 -100
- package/src/subscriptions/enums.ts +0 -22
- package/src/subscriptions/index.ts +0 -10
- package/src/subscriptions/interfaces.ts +0 -144
- package/src/subscriptions/invoices.ts +0 -42
- package/src/subscriptions/managedSubscriptions.ts +0 -53
- package/src/subscriptions/paymentMethods.ts +0 -47
- package/src/subscriptions/paymentProviders.ts +0 -13
- package/src/subscriptions/plans.ts +0 -19
- package/src/subscriptions/providers/index.ts +0 -1
- package/src/subscriptions/providers/stripe/index.ts +0 -56
- package/src/subscriptions/providers/stripe/interfaces.ts +0 -39
- package/src/subscriptions/subscriptions.ts +0 -63
- package/src/subscriptions/summaries.ts +0 -11
- package/src/subscriptions/tenantConfiguration.ts +0 -23
- package/src/teams/index.ts +0 -224
- package/src/teams/interfaces.ts +0 -163
- package/src/tenants/index.ts +0 -46
- package/src/tenants/interfaces.ts +0 -33
- package/src/vendor/index.ts +0 -12
- package/src/vendor/interfaces.ts +0 -6
- package/yarn-error.log +0 -518
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
SecondaryAuthStrategy: true
|
|
8
|
+
};
|
|
9
|
+
exports.SecondaryAuthStrategy = void 0;
|
|
10
|
+
|
|
11
|
+
var _interfaces = require("./secutiry-poilicy/interfaces");
|
|
12
|
+
|
|
13
|
+
Object.keys(_interfaces).forEach(function (key) {
|
|
14
|
+
if (key === "default" || key === "__esModule") return;
|
|
15
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
16
|
+
if (key in exports && exports[key] === _interfaces[key]) return;
|
|
17
|
+
Object.defineProperty(exports, key, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function get() {
|
|
20
|
+
return _interfaces[key];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
;
|
|
25
|
+
;
|
|
26
|
+
;
|
|
27
|
+
;
|
|
28
|
+
;
|
|
29
|
+
;
|
|
30
|
+
;
|
|
31
|
+
;
|
|
32
|
+
var SecondaryAuthStrategy;
|
|
33
|
+
exports.SecondaryAuthStrategy = SecondaryAuthStrategy;
|
|
34
|
+
|
|
35
|
+
(function (SecondaryAuthStrategy) {
|
|
36
|
+
SecondaryAuthStrategy["WebAuthnPlatform"] = "WebAuthnPlatform";
|
|
37
|
+
SecondaryAuthStrategy["WebAuthnCrossPlatform"] = "WebAuthnCrossPlatform";
|
|
38
|
+
SecondaryAuthStrategy["SmsCode"] = "SmsCode";
|
|
39
|
+
})(SecondaryAuthStrategy || (exports.SecondaryAuthStrategy = SecondaryAuthStrategy = {}));
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.getCaptchaPolicy = getCaptchaPolicy;
|
|
9
|
+
exports.getGlobalSecurityPolicy = getGlobalSecurityPolicy;
|
|
10
|
+
exports.getLockoutPolicy = getLockoutPolicy;
|
|
11
|
+
exports.getMfaPolicy = getMfaPolicy;
|
|
12
|
+
exports.getPasswordConfigPolicy = getPasswordConfigPolicy;
|
|
13
|
+
exports.getPasswordHistoryPolicy = getPasswordHistoryPolicy;
|
|
14
|
+
exports.getVendorMfaPolicy = getVendorMfaPolicy;
|
|
15
|
+
exports.saveLockoutPolicy = saveLockoutPolicy;
|
|
16
|
+
exports.saveMfaPolicy = saveMfaPolicy;
|
|
17
|
+
exports.savePasswordHistoryPolicy = savePasswordHistoryPolicy;
|
|
18
|
+
|
|
19
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
20
|
+
|
|
21
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
22
|
+
|
|
23
|
+
var _fetch = require("../../fetch");
|
|
24
|
+
|
|
25
|
+
var _constants = require("../../constants");
|
|
26
|
+
|
|
27
|
+
function getGlobalSecurityPolicy() {
|
|
28
|
+
return _getGlobalSecurityPolicy.apply(this, arguments);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _getGlobalSecurityPolicy() {
|
|
32
|
+
_getGlobalSecurityPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee() {
|
|
33
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
34
|
+
while (1) {
|
|
35
|
+
switch (_context.prev = _context.next) {
|
|
36
|
+
case 0:
|
|
37
|
+
return _context.abrupt("return", (0, _fetch.Get)(_constants.urls.identity.configurations.v1));
|
|
38
|
+
|
|
39
|
+
case 1:
|
|
40
|
+
case "end":
|
|
41
|
+
return _context.stop();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, _callee);
|
|
45
|
+
}));
|
|
46
|
+
return _getGlobalSecurityPolicy.apply(this, arguments);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function getMfaPolicy() {
|
|
50
|
+
return _getMfaPolicy.apply(this, arguments);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function _getMfaPolicy() {
|
|
54
|
+
_getMfaPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee2() {
|
|
55
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
56
|
+
while (1) {
|
|
57
|
+
switch (_context2.prev = _context2.next) {
|
|
58
|
+
case 0:
|
|
59
|
+
return _context2.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/mfa-policy")));
|
|
60
|
+
|
|
61
|
+
case 1:
|
|
62
|
+
case "end":
|
|
63
|
+
return _context2.stop();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, _callee2);
|
|
67
|
+
}));
|
|
68
|
+
return _getMfaPolicy.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function getVendorMfaPolicy() {
|
|
72
|
+
return _getVendorMfaPolicy.apply(this, arguments);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function _getVendorMfaPolicy() {
|
|
76
|
+
_getVendorMfaPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3() {
|
|
77
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
78
|
+
while (1) {
|
|
79
|
+
switch (_context3.prev = _context3.next) {
|
|
80
|
+
case 0:
|
|
81
|
+
return _context3.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/mfa-policy/vendor")));
|
|
82
|
+
|
|
83
|
+
case 1:
|
|
84
|
+
case "end":
|
|
85
|
+
return _context3.stop();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, _callee3);
|
|
89
|
+
}));
|
|
90
|
+
return _getVendorMfaPolicy.apply(this, arguments);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function saveMfaPolicy(_x) {
|
|
94
|
+
return _saveMfaPolicy.apply(this, arguments);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function _saveMfaPolicy() {
|
|
98
|
+
_saveMfaPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee4(body) {
|
|
99
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
100
|
+
while (1) {
|
|
101
|
+
switch (_context4.prev = _context4.next) {
|
|
102
|
+
case 0:
|
|
103
|
+
if (!body.id) {
|
|
104
|
+
_context4.next = 4;
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return _context4.abrupt("return", (0, _fetch.Patch)("".concat(_constants.urls.identity.configurations.v1, "/mfa-policy"), body));
|
|
109
|
+
|
|
110
|
+
case 4:
|
|
111
|
+
return _context4.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.configurations.v1, "/mfa-policy"), body));
|
|
112
|
+
|
|
113
|
+
case 5:
|
|
114
|
+
case "end":
|
|
115
|
+
return _context4.stop();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}, _callee4);
|
|
119
|
+
}));
|
|
120
|
+
return _saveMfaPolicy.apply(this, arguments);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function getLockoutPolicy() {
|
|
124
|
+
return _getLockoutPolicy.apply(this, arguments);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function _getLockoutPolicy() {
|
|
128
|
+
_getLockoutPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee5() {
|
|
129
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
130
|
+
while (1) {
|
|
131
|
+
switch (_context5.prev = _context5.next) {
|
|
132
|
+
case 0:
|
|
133
|
+
return _context5.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/lockout-policy")));
|
|
134
|
+
|
|
135
|
+
case 1:
|
|
136
|
+
case "end":
|
|
137
|
+
return _context5.stop();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}, _callee5);
|
|
141
|
+
}));
|
|
142
|
+
return _getLockoutPolicy.apply(this, arguments);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function saveLockoutPolicy(_x2) {
|
|
146
|
+
return _saveLockoutPolicy.apply(this, arguments);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function _saveLockoutPolicy() {
|
|
150
|
+
_saveLockoutPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee6(body) {
|
|
151
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
152
|
+
while (1) {
|
|
153
|
+
switch (_context6.prev = _context6.next) {
|
|
154
|
+
case 0:
|
|
155
|
+
if (!body.id) {
|
|
156
|
+
_context6.next = 4;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return _context6.abrupt("return", (0, _fetch.Patch)("".concat(_constants.urls.identity.configurations.v1, "/lockout-policy"), body));
|
|
161
|
+
|
|
162
|
+
case 4:
|
|
163
|
+
return _context6.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.configurations.v1, "/lockout-policy"), body));
|
|
164
|
+
|
|
165
|
+
case 5:
|
|
166
|
+
case "end":
|
|
167
|
+
return _context6.stop();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}, _callee6);
|
|
171
|
+
}));
|
|
172
|
+
return _saveLockoutPolicy.apply(this, arguments);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function getCaptchaPolicy() {
|
|
176
|
+
return _getCaptchaPolicy.apply(this, arguments);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function _getCaptchaPolicy() {
|
|
180
|
+
_getCaptchaPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee7() {
|
|
181
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
182
|
+
while (1) {
|
|
183
|
+
switch (_context7.prev = _context7.next) {
|
|
184
|
+
case 0:
|
|
185
|
+
_context7.prev = 0;
|
|
186
|
+
_context7.next = 3;
|
|
187
|
+
return (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/captcha-policy/public"));
|
|
188
|
+
|
|
189
|
+
case 3:
|
|
190
|
+
return _context7.abrupt("return", _context7.sent);
|
|
191
|
+
|
|
192
|
+
case 6:
|
|
193
|
+
_context7.prev = 6;
|
|
194
|
+
_context7.t0 = _context7["catch"](0);
|
|
195
|
+
return _context7.abrupt("return", null);
|
|
196
|
+
|
|
197
|
+
case 9:
|
|
198
|
+
case "end":
|
|
199
|
+
return _context7.stop();
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}, _callee7, null, [[0, 6]]);
|
|
203
|
+
}));
|
|
204
|
+
return _getCaptchaPolicy.apply(this, arguments);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function getPasswordHistoryPolicy() {
|
|
208
|
+
return _getPasswordHistoryPolicy.apply(this, arguments);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function _getPasswordHistoryPolicy() {
|
|
212
|
+
_getPasswordHistoryPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee8() {
|
|
213
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
214
|
+
while (1) {
|
|
215
|
+
switch (_context8.prev = _context8.next) {
|
|
216
|
+
case 0:
|
|
217
|
+
return _context8.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/password-history-policy")));
|
|
218
|
+
|
|
219
|
+
case 1:
|
|
220
|
+
case "end":
|
|
221
|
+
return _context8.stop();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}, _callee8);
|
|
225
|
+
}));
|
|
226
|
+
return _getPasswordHistoryPolicy.apply(this, arguments);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function savePasswordHistoryPolicy(_x3) {
|
|
230
|
+
return _savePasswordHistoryPolicy.apply(this, arguments);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function _savePasswordHistoryPolicy() {
|
|
234
|
+
_savePasswordHistoryPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee9(body) {
|
|
235
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
236
|
+
while (1) {
|
|
237
|
+
switch (_context9.prev = _context9.next) {
|
|
238
|
+
case 0:
|
|
239
|
+
if (!body.id) {
|
|
240
|
+
_context9.next = 4;
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return _context9.abrupt("return", (0, _fetch.Patch)("".concat(_constants.urls.identity.configurations.v1, "/password-history-policy"), body));
|
|
245
|
+
|
|
246
|
+
case 4:
|
|
247
|
+
return _context9.abrupt("return", (0, _fetch.Post)("".concat(_constants.urls.identity.configurations.v1, "/password-history-policy"), body));
|
|
248
|
+
|
|
249
|
+
case 5:
|
|
250
|
+
case "end":
|
|
251
|
+
return _context9.stop();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}, _callee9);
|
|
255
|
+
}));
|
|
256
|
+
return _savePasswordHistoryPolicy.apply(this, arguments);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function getPasswordConfigPolicy() {
|
|
260
|
+
return _getPasswordConfigPolicy.apply(this, arguments);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function _getPasswordConfigPolicy() {
|
|
264
|
+
_getPasswordConfigPolicy = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee10() {
|
|
265
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
266
|
+
while (1) {
|
|
267
|
+
switch (_context10.prev = _context10.next) {
|
|
268
|
+
case 0:
|
|
269
|
+
return _context10.abrupt("return", (0, _fetch.Get)("".concat(_constants.urls.identity.configurations.v1, "/password")));
|
|
270
|
+
|
|
271
|
+
case 1:
|
|
272
|
+
case "end":
|
|
273
|
+
return _context10.stop();
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}, _callee10);
|
|
277
|
+
}));
|
|
278
|
+
return _getPasswordConfigPolicy.apply(this, arguments);
|
|
279
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.putSMSSubscriptions = exports.putEmailSubscriptions = exports.postWebhooksConfiguration = exports.postWebhookTest = exports.postWebhookRetry = exports.postSlackConfiguration = exports.postSlackCode = exports.postSMSConfiguration = exports.postEmailConfiguration = exports.patchSMSConfiguration = exports.patchEmailConfiguration = exports.getWebhooksConfigurations = exports.getWebhookLog = exports.getSlackScope = exports.getSlackConfiguration = exports.getSlackChannels = exports.getSMSConfiguration = exports.getEmailConfiguration = exports.getChannelMaps = exports.getCategories = exports.deleteWebhooksConfiguration = exports.deleteSlackConfiguration = exports.deleteSMSSubscriptions = exports.deleteSMSConfiguration = exports.deleteEmailSubscriptions = exports.deleteEmailConfiguration = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
|
|
12
|
+
var _constants = require("../constants");
|
|
13
|
+
|
|
14
|
+
var _fetch = require("../fetch");
|
|
15
|
+
|
|
16
|
+
var getSlackConfiguration = function getSlackConfiguration() {
|
|
17
|
+
return (0, _fetch.Get)("".concat(_constants.urls.integrations.configurations.v1, "/slack"));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.getSlackConfiguration = getSlackConfiguration;
|
|
21
|
+
|
|
22
|
+
var getSlackScope = function getSlackScope() {
|
|
23
|
+
return (0, _fetch.Get)("".concat(_constants.urls.integrations.configurations.v1, "/slack/applications"));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.getSlackScope = getSlackScope;
|
|
27
|
+
|
|
28
|
+
var getSlackChannels = function getSlackChannels() {
|
|
29
|
+
return (0, _fetch.Get)("".concat(_constants.urls.integrations.configurations.v1, "/slack/channels"));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.getSlackChannels = getSlackChannels;
|
|
33
|
+
|
|
34
|
+
var postSlackConfiguration = function postSlackConfiguration(data) {
|
|
35
|
+
if (data.id) {
|
|
36
|
+
return (0, _fetch.Patch)("".concat(_constants.urls.integrations.configurations.v1, "/slack/subscription/").concat(data.id), data);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return (0, _fetch.Post)("".concat(_constants.urls.integrations.configurations.v1, "/slack/subscriptions"), data);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.postSlackConfiguration = postSlackConfiguration;
|
|
43
|
+
|
|
44
|
+
var deleteSlackConfiguration = function deleteSlackConfiguration(data) {
|
|
45
|
+
return (0, _fetch.Delete)("".concat(_constants.urls.integrations.configurations.v1, "/slack/subscriptions/").concat(data.id));
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
exports.deleteSlackConfiguration = deleteSlackConfiguration;
|
|
49
|
+
|
|
50
|
+
var postSlackCode = function postSlackCode(code) {
|
|
51
|
+
return (0, _fetch.Post)("".concat(_constants.urls.integrations.configurations.v1, "/slack/applications/registrations"), {
|
|
52
|
+
code: code
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.postSlackCode = postSlackCode;
|
|
57
|
+
|
|
58
|
+
var getEmailConfiguration = function getEmailConfiguration() {
|
|
59
|
+
return (0, _fetch.Get)("".concat(_constants.urls.integrations.configurations.v1, "/emails"));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
exports.getEmailConfiguration = getEmailConfiguration;
|
|
63
|
+
|
|
64
|
+
var postEmailConfiguration = function postEmailConfiguration(_ref) {
|
|
65
|
+
var eventKey = _ref.eventKey,
|
|
66
|
+
data = (0, _objectWithoutProperties2["default"])(_ref, ["eventKey"]);
|
|
67
|
+
return (0, _fetch.Post)("".concat(_constants.urls.integrations.configurations.v1, "/emails/").concat(eventKey), data);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
exports.postEmailConfiguration = postEmailConfiguration;
|
|
71
|
+
|
|
72
|
+
var patchEmailConfiguration = function patchEmailConfiguration(_ref2) {
|
|
73
|
+
var eventKey = _ref2.eventKey,
|
|
74
|
+
enabled = _ref2.enabled;
|
|
75
|
+
return (0, _fetch.Patch)("".concat(_constants.urls.integrations.configurations.v1, "/emails/").concat(eventKey), {
|
|
76
|
+
enabled: enabled
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
exports.patchEmailConfiguration = patchEmailConfiguration;
|
|
81
|
+
|
|
82
|
+
var deleteEmailSubscriptions = function deleteEmailSubscriptions(eventKey, subscriptionId) {
|
|
83
|
+
return (0, _fetch.Delete)("".concat(_constants.urls.integrations.configurations.v1, "/emails/").concat(eventKey, "/subscriptions/").concat(subscriptionId));
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
exports.deleteEmailSubscriptions = deleteEmailSubscriptions;
|
|
87
|
+
|
|
88
|
+
var putEmailSubscriptions = function putEmailSubscriptions(subscriptionId, eventKey, data) {
|
|
89
|
+
return (0, _fetch.Put)("".concat(_constants.urls.integrations.configurations.v1, "/emails/").concat(eventKey, "/subscriptions/").concat(subscriptionId), data);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
exports.putEmailSubscriptions = putEmailSubscriptions;
|
|
93
|
+
|
|
94
|
+
var deleteEmailConfiguration = function deleteEmailConfiguration(eventKey) {
|
|
95
|
+
return (0, _fetch.Delete)("".concat(_constants.urls.integrations.configurations.v1, "/emails/").concat(eventKey));
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports.deleteEmailConfiguration = deleteEmailConfiguration;
|
|
99
|
+
|
|
100
|
+
var getSMSConfiguration = function getSMSConfiguration() {
|
|
101
|
+
return (0, _fetch.Get)("".concat(_constants.urls.integrations.configurations.v2, "/sms"));
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
exports.getSMSConfiguration = getSMSConfiguration;
|
|
105
|
+
|
|
106
|
+
var postSMSConfiguration = function postSMSConfiguration(_ref3) {
|
|
107
|
+
var eventKey = _ref3.eventKey,
|
|
108
|
+
data = (0, _objectWithoutProperties2["default"])(_ref3, ["eventKey"]);
|
|
109
|
+
return (0, _fetch.Post)("".concat(_constants.urls.integrations.configurations.v2, "/sms/").concat(eventKey), data);
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
exports.postSMSConfiguration = postSMSConfiguration;
|
|
113
|
+
|
|
114
|
+
var patchSMSConfiguration = function patchSMSConfiguration(_ref4) {
|
|
115
|
+
var eventKey = _ref4.eventKey,
|
|
116
|
+
enabled = _ref4.enabled;
|
|
117
|
+
return (0, _fetch.Patch)("".concat(_constants.urls.integrations.configurations.v2, "/sms/").concat(eventKey), {
|
|
118
|
+
enabled: enabled
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
exports.patchSMSConfiguration = patchSMSConfiguration;
|
|
123
|
+
|
|
124
|
+
var deleteSMSSubscriptions = function deleteSMSSubscriptions(eventKey, subscriptionId) {
|
|
125
|
+
return (0, _fetch.Delete)("".concat(_constants.urls.integrations.configurations.v2, "/sms/").concat(eventKey, "/subscriptions/").concat(subscriptionId));
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
exports.deleteSMSSubscriptions = deleteSMSSubscriptions;
|
|
129
|
+
|
|
130
|
+
var putSMSSubscriptions = function putSMSSubscriptions(subscriptionId, eventKey, data) {
|
|
131
|
+
return (0, _fetch.Put)("".concat(_constants.urls.integrations.configurations.v2, "/sms/").concat(eventKey, "/subscriptions/").concat(subscriptionId), data);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
exports.putSMSSubscriptions = putSMSSubscriptions;
|
|
135
|
+
|
|
136
|
+
var deleteSMSConfiguration = function deleteSMSConfiguration(eventKey) {
|
|
137
|
+
return (0, _fetch.Delete)("".concat(_constants.urls.integrations.configurations.v2, "/sms/").concat(eventKey));
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
exports.deleteSMSConfiguration = deleteSMSConfiguration;
|
|
141
|
+
|
|
142
|
+
var getWebhooksConfigurations = function getWebhooksConfigurations() {
|
|
143
|
+
return (0, _fetch.Get)(_constants.urls.webhooks.v1);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
exports.getWebhooksConfigurations = getWebhooksConfigurations;
|
|
147
|
+
|
|
148
|
+
var postWebhooksConfiguration = function postWebhooksConfiguration(data) {
|
|
149
|
+
if (data._id) {
|
|
150
|
+
return (0, _fetch.Patch)("".concat(_constants.urls.webhooks.v1, "/").concat(data._id), data);
|
|
151
|
+
} else {
|
|
152
|
+
return (0, _fetch.Post)("".concat(_constants.urls.webhooks.v1, "/custom"), data);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
exports.postWebhooksConfiguration = postWebhooksConfiguration;
|
|
157
|
+
|
|
158
|
+
var deleteWebhooksConfiguration = function deleteWebhooksConfiguration(id) {
|
|
159
|
+
return (0, _fetch.Delete)("".concat(_constants.urls.webhooks.v1, "/").concat(id));
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
exports.deleteWebhooksConfiguration = deleteWebhooksConfiguration;
|
|
163
|
+
|
|
164
|
+
var getWebhookLog = function getWebhookLog(id) {
|
|
165
|
+
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
166
|
+
var limit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
|
|
167
|
+
var query = new URLSearchParams({
|
|
168
|
+
id: id,
|
|
169
|
+
offset: "".concat(offset),
|
|
170
|
+
limit: "".concat(limit)
|
|
171
|
+
});
|
|
172
|
+
return (0, _fetch.Get)("".concat(_constants.urls.webhooks.v1, "/logs/?").concat(query.toString()));
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
exports.getWebhookLog = getWebhookLog;
|
|
176
|
+
|
|
177
|
+
var postWebhookTest = function postWebhookTest(data) {
|
|
178
|
+
return (0, _fetch.Post)("".concat(_constants.urls.webhooks.v1, "/test"), data);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
exports.postWebhookTest = postWebhookTest;
|
|
182
|
+
|
|
183
|
+
var postWebhookRetry = function postWebhookRetry(id) {
|
|
184
|
+
return (0, _fetch.Post)("".concat(_constants.urls.webhooks.v1, "/logs/").concat(id, "/retries"));
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
exports.postWebhookRetry = postWebhookRetry;
|
|
188
|
+
|
|
189
|
+
var getCategories = function getCategories() {
|
|
190
|
+
return (0, _fetch.Get)("".concat(_constants.urls.events.configurations.v1, "/categories"));
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
exports.getCategories = getCategories;
|
|
194
|
+
|
|
195
|
+
var getChannelMaps = function getChannelMaps(channels) {
|
|
196
|
+
return (0, _fetch.Get)(_constants.urls.events.configurations.v1, {
|
|
197
|
+
channels: channels
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
exports.getChannelMaps = getChannelMaps;
|