Skip to content

Commit 3700884

Browse files
feat(api): add alert methods and models (#191)
1 parent 1322c40 commit 3700884

File tree

7 files changed

+579
-10
lines changed

7 files changed

+579
-10
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 83
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-2eaf3a96bd08daefaae73e68bb28d49e8f1e0aa6cc308ef67a42be62d7eb049f.yml
1+
configured_endpoints: 90
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb-513711d9c7ecfa388704769b0eacdfaef1752c88942b061c28f4239260089651.yml

api.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,11 @@ Types:
308308

309309
Methods:
310310

311-
- <code title="post /alerts/{alert_configuration_id}/enable">client.alerts.<a href="./src/resources/alerts.ts">enable</a>(alertConfigurationId) -> Alert</code>
311+
- <code title="get /alerts/{alert_id}">client.alerts.<a href="./src/resources/alerts.ts">retrieve</a>(alertId) -> Alert</code>
312+
- <code title="get /alerts">client.alerts.<a href="./src/resources/alerts.ts">list</a>({ ...params }) -> AlertsPage</code>
313+
- <code title="post /alerts/customer_id/{customer_id}">client.alerts.<a href="./src/resources/alerts.ts">createForCustomer</a>(customerId, { ...params }) -> Alert</code>
314+
- <code title="post /alerts/external_customer_id/{external_customer_id}">client.alerts.<a href="./src/resources/alerts.ts">createForExternalCustomer</a>(externalCustomerId, { ...params }) -> Alert</code>
315+
- <code title="post /alerts/plan_id/{plan_id}">client.alerts.<a href="./src/resources/alerts.ts">createForPlan</a>(planId, { ...params }) -> Alert</code>
316+
- <code title="post /alerts/subscription_id/{subscription_id}">client.alerts.<a href="./src/resources/alerts.ts">createForSubscription</a>(subscriptionId, { ...params }) -> Alert</code>
317+
- <code title="post /alerts/{alert_configuration_id}/disable">client.alerts.<a href="./src/resources/alerts.ts">disable</a>(alertConfigurationId, { ...params }) -> Alert</code>
318+
- <code title="post /alerts/{alert_configuration_id}/enable">client.alerts.<a href="./src/resources/alerts.ts">enable</a>(alertConfigurationId, { ...params }) -> Alert</code>

src/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,14 @@ export namespace Orb {
329329

330330
export import Alerts = API.Alerts;
331331
export import Alert = API.Alert;
332+
export import AlertsPage = API.AlertsPage;
333+
export import AlertListParams = API.AlertListParams;
334+
export import AlertCreateForCustomerParams = API.AlertCreateForCustomerParams;
335+
export import AlertCreateForExternalCustomerParams = API.AlertCreateForExternalCustomerParams;
336+
export import AlertCreateForPlanParams = API.AlertCreateForPlanParams;
337+
export import AlertCreateForSubscriptionParams = API.AlertCreateForSubscriptionParams;
338+
export import AlertDisableParams = API.AlertDisableParams;
339+
export import AlertEnableParams = API.AlertEnableParams;
332340

333341
export import BillingCycleRelativeDate = API.BillingCycleRelativeDate;
334342
export import Discount = API.Discount;

0 commit comments

Comments
 (0)