@peable.to/contracts 6.2.0 → 6.3.0
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/cjs/resources/connect/reporting.js +250 -2
- package/dist/cjs/vocabulary/errors.js +1 -0
- package/dist/cjs/vocabulary/reporting.js +28 -1
- package/dist/esm/resources/connect/reporting.js +251 -3
- package/dist/esm/vocabulary/errors.js +1 -0
- package/dist/esm/vocabulary/reporting.js +27 -0
- package/dist/types/resources/connect/index.d.ts +671 -0
- package/dist/types/resources/connect/reporting.d.ts +894 -0
- package/dist/types/vocabulary/errors.d.ts +1 -0
- package/dist/types/vocabulary/reporting.d.ts +23 -0
- package/package.json +1 -1
|
@@ -96,6 +96,7 @@ export declare const ERROR_CODE_DESCRIPTIONS: {
|
|
|
96
96
|
readonly quote_expired: "The quote expired.";
|
|
97
97
|
readonly invoice_payment_intent_requires_action: "The invoice's payment needs the customer to act (a card challenge).";
|
|
98
98
|
readonly subscription_unexpected_state: "The subscription is in a status that does not allow this operation.";
|
|
99
|
+
readonly report_schedule_unexpected_state: "A canceled report schedule never changes.";
|
|
99
100
|
readonly customer_currency_mismatch: "The currency differs from the customer's billing currency.";
|
|
100
101
|
readonly customer_test_clock_mismatch: "The objects live on different test clocks.";
|
|
101
102
|
readonly coupon_invalid: "The coupon does not exist or is no longer valid.";
|
|
@@ -16,3 +16,26 @@ export declare const REQUEST_LOG_STATUS_CLASSES: readonly ["2xx", "3xx", "4xx",
|
|
|
16
16
|
export type RequestLogStatusClass = (typeof REQUEST_LOG_STATUS_CLASSES)[number];
|
|
17
17
|
/** How long a request log is kept (and served). */
|
|
18
18
|
export declare const REQUEST_LOG_RETENTION_DAYS = 30;
|
|
19
|
+
/**
|
|
20
|
+
* A report schedule's lifecycle: `active` fires at each occurrence, `paused`
|
|
21
|
+
* fires nothing until resumed (resuming never backfills), `canceled` is
|
|
22
|
+
* terminal.
|
|
23
|
+
*/
|
|
24
|
+
export declare const REPORT_SCHEDULE_STATUSES: readonly ["active", "paused", "canceled"];
|
|
25
|
+
export type ReportScheduleStatus = (typeof REPORT_SCHEDULE_STATUSES)[number];
|
|
26
|
+
/**
|
|
27
|
+
* How often a schedule fires — Stripe's payout-schedule spelling: every day,
|
|
28
|
+
* once a week on `weekly_anchor`, once a month on `monthly_anchor`. Each
|
|
29
|
+
* occurrence is local midnight in the schedule's timezone, and its run covers
|
|
30
|
+
* the time since the previous occurrence.
|
|
31
|
+
*/
|
|
32
|
+
export declare const REPORT_SCHEDULE_INTERVALS: readonly ["daily", "weekly", "monthly"];
|
|
33
|
+
export type ReportScheduleInterval = (typeof REPORT_SCHEDULE_INTERVALS)[number];
|
|
34
|
+
/** A weekly schedule's day, Monday first (ISO 8601). */
|
|
35
|
+
export declare const REPORT_SCHEDULE_WEEKDAYS: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
|
36
|
+
export type ReportScheduleWeekday = (typeof REPORT_SCHEDULE_WEEKDAYS)[number];
|
|
37
|
+
/** The languages a schedule's emails are written in — Orbit's own. */
|
|
38
|
+
export declare const REPORT_SCHEDULE_LOCALES: readonly ["en", "es"];
|
|
39
|
+
export type ReportScheduleLocale = (typeof REPORT_SCHEDULE_LOCALES)[number];
|
|
40
|
+
/** How many addresses one schedule may email. */
|
|
41
|
+
export declare const REPORT_SCHEDULE_MAX_RECIPIENTS = 10;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peable.to/contracts",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "The Peable wire, declared once: Zod contracts of every public route, the OpenAPI 3.1 generator and the closed value sets (ADR 0014 D5).",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|