@smplkit/sdk 3.0.27 → 3.0.29
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/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -69,7 +69,7 @@ interface HttpHeader {
|
|
|
69
69
|
* runtime values are a subset of the published constant
|
|
70
70
|
* {@link FORWARDER_TYPES} for callers that need to iterate.
|
|
71
71
|
*/
|
|
72
|
-
type ForwarderType = "
|
|
72
|
+
type ForwarderType = "HTTP" | "DATADOG" | "SPLUNK_HEC" | "SUMO_LOGIC" | "NEW_RELIC" | "HONEYCOMB" | "ELASTIC";
|
|
73
73
|
interface ForwarderHttp {
|
|
74
74
|
method: string;
|
|
75
75
|
url: string;
|
|
@@ -118,7 +118,7 @@ interface ListForwardersPage {
|
|
|
118
118
|
forwarders: Forwarder[];
|
|
119
119
|
nextCursor: string | null;
|
|
120
120
|
}
|
|
121
|
-
type ForwarderDeliveryStatus = "
|
|
121
|
+
type ForwarderDeliveryStatus = "SUCCEEDED" | "FAILED" | "FILTERED_OUT" | "SKIPPED_DO_NOT_FORWARD";
|
|
122
122
|
interface ForwarderDelivery {
|
|
123
123
|
id: string;
|
|
124
124
|
forwarderId: string;
|
|
@@ -136,6 +136,7 @@ interface ListDeliveriesParams {
|
|
|
136
136
|
status?: ForwarderDeliveryStatus;
|
|
137
137
|
/** Range notation per ADR-014, e.g. `[2026-01-01T00:00:00Z,*)`. */
|
|
138
138
|
createdAtRange?: string;
|
|
139
|
+
eventId?: string;
|
|
139
140
|
pageSize?: number;
|
|
140
141
|
pageAfter?: string;
|
|
141
142
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ interface HttpHeader {
|
|
|
69
69
|
* runtime values are a subset of the published constant
|
|
70
70
|
* {@link FORWARDER_TYPES} for callers that need to iterate.
|
|
71
71
|
*/
|
|
72
|
-
type ForwarderType = "
|
|
72
|
+
type ForwarderType = "HTTP" | "DATADOG" | "SPLUNK_HEC" | "SUMO_LOGIC" | "NEW_RELIC" | "HONEYCOMB" | "ELASTIC";
|
|
73
73
|
interface ForwarderHttp {
|
|
74
74
|
method: string;
|
|
75
75
|
url: string;
|
|
@@ -118,7 +118,7 @@ interface ListForwardersPage {
|
|
|
118
118
|
forwarders: Forwarder[];
|
|
119
119
|
nextCursor: string | null;
|
|
120
120
|
}
|
|
121
|
-
type ForwarderDeliveryStatus = "
|
|
121
|
+
type ForwarderDeliveryStatus = "SUCCEEDED" | "FAILED" | "FILTERED_OUT" | "SKIPPED_DO_NOT_FORWARD";
|
|
122
122
|
interface ForwarderDelivery {
|
|
123
123
|
id: string;
|
|
124
124
|
forwarderId: string;
|
|
@@ -136,6 +136,7 @@ interface ListDeliveriesParams {
|
|
|
136
136
|
status?: ForwarderDeliveryStatus;
|
|
137
137
|
/** Range notation per ADR-014, e.g. `[2026-01-01T00:00:00Z,*)`. */
|
|
138
138
|
createdAtRange?: string;
|
|
139
|
+
eventId?: string;
|
|
139
140
|
pageSize?: number;
|
|
140
141
|
pageAfter?: string;
|
|
141
142
|
}
|
package/dist/index.js
CHANGED
|
@@ -16826,7 +16826,7 @@ function _deliveryFromResource(resource) {
|
|
|
16826
16826
|
forwarderId: String(a.forwarder_id ?? ""),
|
|
16827
16827
|
eventId: String(a.event_id ?? ""),
|
|
16828
16828
|
attemptNumber: Number(a.attempt_number ?? 1),
|
|
16829
|
-
status: a.status ?? "
|
|
16829
|
+
status: a.status ?? "FAILED",
|
|
16830
16830
|
request: a.request ?? null,
|
|
16831
16831
|
responseStatus: a.response_status ?? null,
|
|
16832
16832
|
responseBody: a.response_body ?? null,
|
|
@@ -16959,6 +16959,7 @@ var DeliveriesClient = class {
|
|
|
16959
16959
|
const query = {};
|
|
16960
16960
|
if (params.status !== void 0) query["filter[status]"] = params.status;
|
|
16961
16961
|
if (params.createdAtRange !== void 0) query["filter[created_at]"] = params.createdAtRange;
|
|
16962
|
+
if (params.eventId !== void 0) query["filter[event_id]"] = params.eventId;
|
|
16962
16963
|
if (params.pageSize !== void 0) query["page[size]"] = params.pageSize;
|
|
16963
16964
|
if (params.pageAfter !== void 0) query["page[after]"] = params.pageAfter;
|
|
16964
16965
|
const result = await this._http.GET("/api/v1/forwarders/{forwarder_id}/deliveries", {
|