@billkit-eu/sdk 0.4.0 → 0.5.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/CHANGELOG.md +15 -0
- package/README.md +9 -5
- package/dist/index.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/resources.ts +16 -1
- package/src/version.ts +1 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/resources.ts
CHANGED
|
@@ -1167,10 +1167,25 @@ export class WebhookEndpoints extends BaseResource {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
/** Fetch one delivery row for inspection before deciding to redeliver. */
|
|
1170
|
-
|
|
1170
|
+
retrieveDelivery<T = unknown>(endpointId: string, deliveryId: string): Promise<T> {
|
|
1171
1171
|
return this.get<T>(`/v1/webhook_endpoints/${endpointId}/deliveries/${deliveryId}`);
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
|
+
/**
|
|
1175
|
+
* @deprecated Renamed to {@link WebhookEndpoints.retrieveDelivery}.
|
|
1176
|
+
*
|
|
1177
|
+
* Every other single-row fetch in every BillKit SDK is `retrieve`; this
|
|
1178
|
+
* one method was `get`, which meant reaching for the obvious name and
|
|
1179
|
+
* getting a type error. The python and php clients already spell it
|
|
1180
|
+
* `retrieve_delivery` / `retrieveDelivery`, so node was the outlier.
|
|
1181
|
+
*
|
|
1182
|
+
* Kept as an alias because removing it would break callers for a naming
|
|
1183
|
+
* preference. It will go in the next major.
|
|
1184
|
+
*/
|
|
1185
|
+
getDelivery<T = unknown>(endpointId: string, deliveryId: string): Promise<T> {
|
|
1186
|
+
return this.retrieveDelivery<T>(endpointId, deliveryId);
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1174
1189
|
/**
|
|
1175
1190
|
* Re-enqueue a delivery row for the dispatcher.
|
|
1176
1191
|
*
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.
|
|
1
|
+
export const VERSION = "0.5.0";
|