@frontegg/rest-api 3.1.74-alpha.9437937621 → 3.1.74-alpha.9446418922
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/connectivity/index.d.ts +8 -8
- package/index.js +1 -1
- package/node/index.js +1 -1
- package/node/subscriptions/index.js +14 -24
- package/package.json +1 -1
- package/subscriptions/index.d.ts +2 -2
- package/subscriptions/index.js +14 -24
package/connectivity/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IWebhookTest, IWebhooksSaveData, ISlackSubscription, IEmailSMSConfigResponse, IEmailSMSSubscriptionResponse } from './interfaces';
|
|
1
|
+
import { IWebhookTest, IWebhooksSaveData, ISlackSubscription, IEmailSMSConfigResponse, IEmailSMSSubscriptionResponse, ISlackChannel, ISlackConfigurations, IWebhookLog, ICategory, IChannelsMap } from './interfaces';
|
|
2
2
|
import { BaseApiClient } from '../BaseApiClient';
|
|
3
3
|
export declare class ConnectivityApi extends BaseApiClient {
|
|
4
4
|
constructor(appName: string);
|
|
5
5
|
/** Get Slack configuration */
|
|
6
|
-
getSlackConfiguration: () => Promise<
|
|
6
|
+
getSlackConfiguration: () => Promise<ISlackConfigurations>;
|
|
7
7
|
/** Get Slack scope */
|
|
8
8
|
getSlackScope: () => Promise<unknown>;
|
|
9
9
|
/** Get Slack channels */
|
|
10
|
-
getSlackChannels: () => Promise<
|
|
10
|
+
getSlackChannels: () => Promise<ISlackChannel[] | undefined>;
|
|
11
11
|
/**
|
|
12
12
|
* Post Slack configuration
|
|
13
13
|
* @param data Slack subscription data
|
|
14
14
|
*/
|
|
15
|
-
postSlackConfiguration: (data: ISlackSubscription) => Promise<
|
|
15
|
+
postSlackConfiguration: (data: ISlackSubscription) => Promise<any>;
|
|
16
16
|
/**
|
|
17
17
|
* Delete Slack configuration
|
|
18
18
|
* @param data Required Slack subscription data
|
|
@@ -108,19 +108,19 @@ export declare class ConnectivityApi extends BaseApiClient {
|
|
|
108
108
|
* Post webhook test
|
|
109
109
|
* @param data Webhook test data
|
|
110
110
|
*/
|
|
111
|
-
postWebhookTest: (data: IWebhookTest) => Promise<
|
|
111
|
+
postWebhookTest: (data: IWebhookTest) => Promise<IWebhookLog>;
|
|
112
112
|
/**
|
|
113
113
|
* Post webhook retry
|
|
114
114
|
* @param id Webhook log ID
|
|
115
115
|
*/
|
|
116
|
-
postWebhookRetry: (id: string) => Promise<
|
|
116
|
+
postWebhookRetry: (id: string) => Promise<IWebhookLog>;
|
|
117
117
|
/** Get event categories */
|
|
118
|
-
getCategories: () => Promise<
|
|
118
|
+
getCategories: () => Promise<ICategory[]>;
|
|
119
119
|
/**
|
|
120
120
|
* Get channel maps
|
|
121
121
|
* @param channels Channel names
|
|
122
122
|
*/
|
|
123
|
-
getChannelMaps: (channels: string) => Promise<
|
|
123
|
+
getChannelMaps: (channels: string) => Promise<IChannelsMap[]>;
|
|
124
124
|
}
|
|
125
125
|
declare const _default: ConnectivityApi;
|
|
126
126
|
export default _default;
|
package/index.js
CHANGED
package/node/index.js
CHANGED
|
@@ -61,19 +61,19 @@ Object.keys(_enums).forEach(function (key) {
|
|
|
61
61
|
class SubscriptionsApi extends _BaseApiClient.BaseApiClient {
|
|
62
62
|
constructor(appName) {
|
|
63
63
|
super(appName);
|
|
64
|
-
this.invoicesApi =
|
|
65
|
-
this.managedSubscriptionApi =
|
|
66
|
-
this.paymentMethodsApi =
|
|
67
|
-
this.paymentProvidersApi =
|
|
68
|
-
this.plansApi =
|
|
69
|
-
this.subscriptionApi =
|
|
70
|
-
this.
|
|
71
|
-
this.subscriptionTenantConfigApi =
|
|
72
|
-
this.vendorPublicConfigApi =
|
|
73
|
-
this.stripeProviderApi =
|
|
74
|
-
this.getSubscriptionInvoices = this.invoicesApi.getSubscriptionInvoices.bind(this.
|
|
75
|
-
this.getSubscriptionInvoice = this.invoicesApi.getSubscriptionInvoice.bind(this.
|
|
76
|
-
this.getSubscriptionInvoicePdf = this.invoicesApi.getSubscriptionInvoicePdf.bind(this.
|
|
64
|
+
this.invoicesApi = new _invoices.InvoicesApi(this.appName);
|
|
65
|
+
this.managedSubscriptionApi = new _managedSubscriptions.ManagedSubscriptionApi(this.appName);
|
|
66
|
+
this.paymentMethodsApi = new _paymentMethods.PaymentMethodsApi(this.appName);
|
|
67
|
+
this.paymentProvidersApi = new _paymentProviders.PaymentProvidersApi(this.appName);
|
|
68
|
+
this.plansApi = new _plans.PlansApi(this.appName);
|
|
69
|
+
this.subscriptionApi = new _subscriptions.SubscriptionApi(this.appName);
|
|
70
|
+
this.summariesApi = new _summaries.SummariesApi(this.appName);
|
|
71
|
+
this.subscriptionTenantConfigApi = new _tenantConfiguration.SubscriptionTenantConfigApi(this.appName);
|
|
72
|
+
this.vendorPublicConfigApi = new _vendorPublicConfigurations.VendorPublicConfigApi(this.appName);
|
|
73
|
+
this.stripeProviderApi = new _stripe.StripeProviderApi(this.appName);
|
|
74
|
+
this.getSubscriptionInvoices = this.invoicesApi.getSubscriptionInvoices.bind(this.invoicesApi);
|
|
75
|
+
this.getSubscriptionInvoice = this.invoicesApi.getSubscriptionInvoice.bind(this.invoicesApi);
|
|
76
|
+
this.getSubscriptionInvoicePdf = this.invoicesApi.getSubscriptionInvoicePdf.bind(this.invoicesApi);
|
|
77
77
|
this.getManagedSubscription = this.managedSubscriptionApi.getManagedSubscription.bind(this.managedSubscriptionApi);
|
|
78
78
|
this.getManagedSubscriptions = this.managedSubscriptionApi.getManagedSubscriptions.bind(this.managedSubscriptionApi);
|
|
79
79
|
this.cancelManagedSubscription = this.managedSubscriptionApi.cancelManagedSubscription.bind(this.managedSubscriptionApi);
|
|
@@ -90,7 +90,7 @@ class SubscriptionsApi extends _BaseApiClient.BaseApiClient {
|
|
|
90
90
|
this.cancelSubscription = this.subscriptionApi.cancelSubscription.bind(this.subscriptionApi);
|
|
91
91
|
this.renewSubscription = this.subscriptionApi.renewSubscription.bind(this.subscriptionApi);
|
|
92
92
|
this.updateSubscription = this.subscriptionApi.updateSubscription.bind(this.subscriptionApi);
|
|
93
|
-
this.getSubscriptionSummaries = this.
|
|
93
|
+
this.getSubscriptionSummaries = this.summariesApi.getSubscriptionSummaries.bind(this.summariesApi);
|
|
94
94
|
this.getTenantConfiguration = this.subscriptionTenantConfigApi.getTenantConfiguration.bind(this.subscriptionTenantConfigApi);
|
|
95
95
|
this.createTenantConfiguration = this.subscriptionTenantConfigApi.createTenantConfiguration.bind(this.subscriptionTenantConfigApi);
|
|
96
96
|
this.getVendorPublicConfigurations = this.vendorPublicConfigApi.getVendorPublicConfigurations.bind(this.vendorPublicConfigApi);
|
|
@@ -99,16 +99,6 @@ class SubscriptionsApi extends _BaseApiClient.BaseApiClient {
|
|
|
99
99
|
this.createStripeCustomer = this.stripeProviderApi.createStripeCustomer.bind(this.stripeProviderApi);
|
|
100
100
|
this.getStripePaymentProviderConfiguration = this.stripeProviderApi.getStripePaymentProviderConfiguration.bind(this.stripeProviderApi);
|
|
101
101
|
this.createStripePaymentMethodSetupIntentSecret = this.stripeProviderApi.createStripePaymentMethodSetupIntentSecret.bind(this.stripeProviderApi);
|
|
102
|
-
this.invoicesApi = new _invoices.InvoicesApi(appName);
|
|
103
|
-
this.managedSubscriptionApi = new _managedSubscriptions.ManagedSubscriptionApi(appName);
|
|
104
|
-
this.paymentMethodsApi = new _paymentMethods.PaymentMethodsApi(appName);
|
|
105
|
-
this.paymentProvidersApi = new _paymentProviders.PaymentProvidersApi(appName);
|
|
106
|
-
this.plansApi = new _plans.PlansApi(appName);
|
|
107
|
-
this.subscriptionApi = new _subscriptions.SubscriptionApi(appName);
|
|
108
|
-
this.summaries = new _summaries.SummariesApi(appName);
|
|
109
|
-
this.subscriptionTenantConfigApi = new _tenantConfiguration.SubscriptionTenantConfigApi(appName);
|
|
110
|
-
this.vendorPublicConfigApi = new _vendorPublicConfigurations.VendorPublicConfigApi(appName);
|
|
111
|
-
this.stripeProviderApi = new _stripe.StripeProviderApi(appName);
|
|
112
102
|
}
|
|
113
103
|
|
|
114
104
|
}
|
package/package.json
CHANGED
package/subscriptions/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { BaseApiClient } from '../BaseApiClient';
|
|
2
2
|
export declare class SubscriptionsApi extends BaseApiClient {
|
|
3
|
+
constructor(appName: string);
|
|
3
4
|
private readonly invoicesApi;
|
|
4
5
|
private readonly managedSubscriptionApi;
|
|
5
6
|
private readonly paymentMethodsApi;
|
|
6
7
|
private readonly paymentProvidersApi;
|
|
7
8
|
private readonly plansApi;
|
|
8
9
|
private readonly subscriptionApi;
|
|
9
|
-
private readonly
|
|
10
|
+
private readonly summariesApi;
|
|
10
11
|
private readonly subscriptionTenantConfigApi;
|
|
11
12
|
private readonly vendorPublicConfigApi;
|
|
12
13
|
private readonly stripeProviderApi;
|
|
13
|
-
constructor(appName: string);
|
|
14
14
|
/** InvoicesApi **/
|
|
15
15
|
getSubscriptionInvoices: () => Promise<import("./interfaces").ISubscriptionInvoiceResponse[]>;
|
|
16
16
|
getSubscriptionInvoice: (invoiceId: string) => Promise<import("./interfaces").ISubscriptionInvoiceResponse>;
|
package/subscriptions/index.js
CHANGED
|
@@ -12,19 +12,19 @@ import { StripeProviderApi } from './providers/stripe';
|
|
|
12
12
|
export class SubscriptionsApi extends BaseApiClient {
|
|
13
13
|
constructor(appName) {
|
|
14
14
|
super(appName);
|
|
15
|
-
this.invoicesApi =
|
|
16
|
-
this.managedSubscriptionApi =
|
|
17
|
-
this.paymentMethodsApi =
|
|
18
|
-
this.paymentProvidersApi =
|
|
19
|
-
this.plansApi =
|
|
20
|
-
this.subscriptionApi =
|
|
21
|
-
this.
|
|
22
|
-
this.subscriptionTenantConfigApi =
|
|
23
|
-
this.vendorPublicConfigApi =
|
|
24
|
-
this.stripeProviderApi =
|
|
25
|
-
this.getSubscriptionInvoices = this.invoicesApi.getSubscriptionInvoices.bind(this.
|
|
26
|
-
this.getSubscriptionInvoice = this.invoicesApi.getSubscriptionInvoice.bind(this.
|
|
27
|
-
this.getSubscriptionInvoicePdf = this.invoicesApi.getSubscriptionInvoicePdf.bind(this.
|
|
15
|
+
this.invoicesApi = new InvoicesApi(this.appName);
|
|
16
|
+
this.managedSubscriptionApi = new ManagedSubscriptionApi(this.appName);
|
|
17
|
+
this.paymentMethodsApi = new PaymentMethodsApi(this.appName);
|
|
18
|
+
this.paymentProvidersApi = new PaymentProvidersApi(this.appName);
|
|
19
|
+
this.plansApi = new PlansApi(this.appName);
|
|
20
|
+
this.subscriptionApi = new SubscriptionApi(this.appName);
|
|
21
|
+
this.summariesApi = new SummariesApi(this.appName);
|
|
22
|
+
this.subscriptionTenantConfigApi = new SubscriptionTenantConfigApi(this.appName);
|
|
23
|
+
this.vendorPublicConfigApi = new VendorPublicConfigApi(this.appName);
|
|
24
|
+
this.stripeProviderApi = new StripeProviderApi(this.appName);
|
|
25
|
+
this.getSubscriptionInvoices = this.invoicesApi.getSubscriptionInvoices.bind(this.invoicesApi);
|
|
26
|
+
this.getSubscriptionInvoice = this.invoicesApi.getSubscriptionInvoice.bind(this.invoicesApi);
|
|
27
|
+
this.getSubscriptionInvoicePdf = this.invoicesApi.getSubscriptionInvoicePdf.bind(this.invoicesApi);
|
|
28
28
|
this.getManagedSubscription = this.managedSubscriptionApi.getManagedSubscription.bind(this.managedSubscriptionApi);
|
|
29
29
|
this.getManagedSubscriptions = this.managedSubscriptionApi.getManagedSubscriptions.bind(this.managedSubscriptionApi);
|
|
30
30
|
this.cancelManagedSubscription = this.managedSubscriptionApi.cancelManagedSubscription.bind(this.managedSubscriptionApi);
|
|
@@ -41,7 +41,7 @@ export class SubscriptionsApi extends BaseApiClient {
|
|
|
41
41
|
this.cancelSubscription = this.subscriptionApi.cancelSubscription.bind(this.subscriptionApi);
|
|
42
42
|
this.renewSubscription = this.subscriptionApi.renewSubscription.bind(this.subscriptionApi);
|
|
43
43
|
this.updateSubscription = this.subscriptionApi.updateSubscription.bind(this.subscriptionApi);
|
|
44
|
-
this.getSubscriptionSummaries = this.
|
|
44
|
+
this.getSubscriptionSummaries = this.summariesApi.getSubscriptionSummaries.bind(this.summariesApi);
|
|
45
45
|
this.getTenantConfiguration = this.subscriptionTenantConfigApi.getTenantConfiguration.bind(this.subscriptionTenantConfigApi);
|
|
46
46
|
this.createTenantConfiguration = this.subscriptionTenantConfigApi.createTenantConfiguration.bind(this.subscriptionTenantConfigApi);
|
|
47
47
|
this.getVendorPublicConfigurations = this.vendorPublicConfigApi.getVendorPublicConfigurations.bind(this.vendorPublicConfigApi);
|
|
@@ -50,16 +50,6 @@ export class SubscriptionsApi extends BaseApiClient {
|
|
|
50
50
|
this.createStripeCustomer = this.stripeProviderApi.createStripeCustomer.bind(this.stripeProviderApi);
|
|
51
51
|
this.getStripePaymentProviderConfiguration = this.stripeProviderApi.getStripePaymentProviderConfiguration.bind(this.stripeProviderApi);
|
|
52
52
|
this.createStripePaymentMethodSetupIntentSecret = this.stripeProviderApi.createStripePaymentMethodSetupIntentSecret.bind(this.stripeProviderApi);
|
|
53
|
-
this.invoicesApi = new InvoicesApi(appName);
|
|
54
|
-
this.managedSubscriptionApi = new ManagedSubscriptionApi(appName);
|
|
55
|
-
this.paymentMethodsApi = new PaymentMethodsApi(appName);
|
|
56
|
-
this.paymentProvidersApi = new PaymentProvidersApi(appName);
|
|
57
|
-
this.plansApi = new PlansApi(appName);
|
|
58
|
-
this.subscriptionApi = new SubscriptionApi(appName);
|
|
59
|
-
this.summaries = new SummariesApi(appName);
|
|
60
|
-
this.subscriptionTenantConfigApi = new SubscriptionTenantConfigApi(appName);
|
|
61
|
-
this.vendorPublicConfigApi = new VendorPublicConfigApi(appName);
|
|
62
|
-
this.stripeProviderApi = new StripeProviderApi(appName);
|
|
63
53
|
}
|
|
64
54
|
|
|
65
55
|
}
|