@delopay/sdk 0.326.0 → 0.329.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/{chunk-DB725WRJ.js → chunk-NKAIFOCG.js} +9 -1
- package/dist/chunk-NKAIFOCG.js.map +1 -0
- package/dist/{index-AF0ehsYg.d.cts → index-CuVWRoHh.d.cts} +33 -3
- package/dist/{index-AF0ehsYg.d.ts → index-CuVWRoHh.d.ts} +33 -3
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +8 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/package.json +18 -17
- package/dist/chunk-DB725WRJ.js.map +0 -1
|
@@ -6734,7 +6734,12 @@ type CheckoutThemeConversionCaveat =
|
|
|
6734
6734
|
*/
|
|
6735
6735
|
| 'unstamped_selection_excluded'
|
|
6736
6736
|
/** A device, country or selection filter was applied and matched no render. */
|
|
6737
|
-
| 'filter_matched_nothing'
|
|
6737
|
+
| 'filter_matched_nothing'
|
|
6738
|
+
/**
|
|
6739
|
+
* Some renders in the window named a look that no longer exists. They showed
|
|
6740
|
+
* the shop default and are counted with it.
|
|
6741
|
+
*/
|
|
6742
|
+
| 'missing_look_shown_default';
|
|
6738
6743
|
/**
|
|
6739
6744
|
* Which way the looks counted were chosen: `automatic` by the shop's theme
|
|
6740
6745
|
* rules, `explicit` by the buyer's link (an explicit `?theme=`, the checkout
|
|
@@ -10519,7 +10524,19 @@ interface EventResponse {
|
|
|
10519
10524
|
* `null` on events written before the column existed.
|
|
10520
10525
|
*/
|
|
10521
10526
|
delivery_attempt?: WebhookDeliveryAttempt | null;
|
|
10527
|
+
/**
|
|
10528
|
+
* Whether the event was ultimately delivered, by any of its attempts. The
|
|
10529
|
+
* same on every attempt of one event: it describes the event, not the row
|
|
10530
|
+
* it appears on. See `attempt_delivered` for this attempt.
|
|
10531
|
+
*/
|
|
10522
10532
|
is_delivery_successful?: boolean | null;
|
|
10533
|
+
/**
|
|
10534
|
+
* Whether this attempt itself was delivered: `true` when the endpoint
|
|
10535
|
+
* answered it with a 2xx status, `false` when it answered otherwise or
|
|
10536
|
+
* could not be reached. `null` while no answer has been recorded for this
|
|
10537
|
+
* attempt yet.
|
|
10538
|
+
*/
|
|
10539
|
+
attempt_delivered?: boolean | null;
|
|
10523
10540
|
delivery_terminal_reason?: WebhookDeliveryTerminalReason | null;
|
|
10524
10541
|
latest_attempt_id?: string | null;
|
|
10525
10542
|
/**
|
|
@@ -10573,6 +10590,11 @@ interface EventManualTriggerResponse extends EventDetailResponse {
|
|
|
10573
10590
|
*/
|
|
10574
10591
|
status_overridden: boolean;
|
|
10575
10592
|
}
|
|
10593
|
+
/**
|
|
10594
|
+
* @deprecated Not what the server returns: `events.listDeliveryAttempts`
|
|
10595
|
+
* answers with {@link EventDetailResponse} entries, which is what it is typed
|
|
10596
|
+
* as now. Kept only so existing imports keep compiling.
|
|
10597
|
+
*/
|
|
10576
10598
|
interface EventDeliveryAttemptResponse {
|
|
10577
10599
|
attempt_id: string;
|
|
10578
10600
|
status: string;
|
|
@@ -13851,7 +13873,7 @@ interface BuyerBlocklistRadarState {
|
|
|
13851
13873
|
status: RadarSyncAggregate;
|
|
13852
13874
|
connections: RadarSyncConnection[];
|
|
13853
13875
|
/** Why the entry is `local_only`, when the router says. */
|
|
13854
|
-
local_only_reason
|
|
13876
|
+
local_only_reason: RadarLocalOnlyReason | null;
|
|
13855
13877
|
}
|
|
13856
13878
|
/**
|
|
13857
13879
|
* Why an entry stays DeloPay-only: a card BIN that is not six digits, a
|
|
@@ -24916,7 +24938,15 @@ declare class Events {
|
|
|
24916
24938
|
private readonly request;
|
|
24917
24939
|
constructor(request: RequestFn);
|
|
24918
24940
|
list(merchantId: string, params?: EventListParams): Promise<EventListResponse>;
|
|
24919
|
-
|
|
24941
|
+
/**
|
|
24942
|
+
* Every delivery attempt of one event, initial attempt first.
|
|
24943
|
+
* `GET /events/{merchant_id}/{event_id}/attempts`
|
|
24944
|
+
*
|
|
24945
|
+
* Each entry describes one attempt: `attempt_delivered` is that attempt's own
|
|
24946
|
+
* result, while `is_delivery_successful` and `delivery_terminal_reason` are
|
|
24947
|
+
* the event's and read the same on every entry.
|
|
24948
|
+
*/
|
|
24949
|
+
listDeliveryAttempts(merchantId: string, eventId: string): Promise<EventDetailResponse[]>;
|
|
24920
24950
|
retryDelivery(merchantId: string, eventId: string): Promise<EventDetailResponse>;
|
|
24921
24951
|
/**
|
|
24922
24952
|
* Fire an outgoing webhook event by hand for one object.
|
|
@@ -6734,7 +6734,12 @@ type CheckoutThemeConversionCaveat =
|
|
|
6734
6734
|
*/
|
|
6735
6735
|
| 'unstamped_selection_excluded'
|
|
6736
6736
|
/** A device, country or selection filter was applied and matched no render. */
|
|
6737
|
-
| 'filter_matched_nothing'
|
|
6737
|
+
| 'filter_matched_nothing'
|
|
6738
|
+
/**
|
|
6739
|
+
* Some renders in the window named a look that no longer exists. They showed
|
|
6740
|
+
* the shop default and are counted with it.
|
|
6741
|
+
*/
|
|
6742
|
+
| 'missing_look_shown_default';
|
|
6738
6743
|
/**
|
|
6739
6744
|
* Which way the looks counted were chosen: `automatic` by the shop's theme
|
|
6740
6745
|
* rules, `explicit` by the buyer's link (an explicit `?theme=`, the checkout
|
|
@@ -10519,7 +10524,19 @@ interface EventResponse {
|
|
|
10519
10524
|
* `null` on events written before the column existed.
|
|
10520
10525
|
*/
|
|
10521
10526
|
delivery_attempt?: WebhookDeliveryAttempt | null;
|
|
10527
|
+
/**
|
|
10528
|
+
* Whether the event was ultimately delivered, by any of its attempts. The
|
|
10529
|
+
* same on every attempt of one event: it describes the event, not the row
|
|
10530
|
+
* it appears on. See `attempt_delivered` for this attempt.
|
|
10531
|
+
*/
|
|
10522
10532
|
is_delivery_successful?: boolean | null;
|
|
10533
|
+
/**
|
|
10534
|
+
* Whether this attempt itself was delivered: `true` when the endpoint
|
|
10535
|
+
* answered it with a 2xx status, `false` when it answered otherwise or
|
|
10536
|
+
* could not be reached. `null` while no answer has been recorded for this
|
|
10537
|
+
* attempt yet.
|
|
10538
|
+
*/
|
|
10539
|
+
attempt_delivered?: boolean | null;
|
|
10523
10540
|
delivery_terminal_reason?: WebhookDeliveryTerminalReason | null;
|
|
10524
10541
|
latest_attempt_id?: string | null;
|
|
10525
10542
|
/**
|
|
@@ -10573,6 +10590,11 @@ interface EventManualTriggerResponse extends EventDetailResponse {
|
|
|
10573
10590
|
*/
|
|
10574
10591
|
status_overridden: boolean;
|
|
10575
10592
|
}
|
|
10593
|
+
/**
|
|
10594
|
+
* @deprecated Not what the server returns: `events.listDeliveryAttempts`
|
|
10595
|
+
* answers with {@link EventDetailResponse} entries, which is what it is typed
|
|
10596
|
+
* as now. Kept only so existing imports keep compiling.
|
|
10597
|
+
*/
|
|
10576
10598
|
interface EventDeliveryAttemptResponse {
|
|
10577
10599
|
attempt_id: string;
|
|
10578
10600
|
status: string;
|
|
@@ -13851,7 +13873,7 @@ interface BuyerBlocklistRadarState {
|
|
|
13851
13873
|
status: RadarSyncAggregate;
|
|
13852
13874
|
connections: RadarSyncConnection[];
|
|
13853
13875
|
/** Why the entry is `local_only`, when the router says. */
|
|
13854
|
-
local_only_reason
|
|
13876
|
+
local_only_reason: RadarLocalOnlyReason | null;
|
|
13855
13877
|
}
|
|
13856
13878
|
/**
|
|
13857
13879
|
* Why an entry stays DeloPay-only: a card BIN that is not six digits, a
|
|
@@ -24916,7 +24938,15 @@ declare class Events {
|
|
|
24916
24938
|
private readonly request;
|
|
24917
24939
|
constructor(request: RequestFn);
|
|
24918
24940
|
list(merchantId: string, params?: EventListParams): Promise<EventListResponse>;
|
|
24919
|
-
|
|
24941
|
+
/**
|
|
24942
|
+
* Every delivery attempt of one event, initial attempt first.
|
|
24943
|
+
* `GET /events/{merchant_id}/{event_id}/attempts`
|
|
24944
|
+
*
|
|
24945
|
+
* Each entry describes one attempt: `attempt_delivered` is that attempt's own
|
|
24946
|
+
* result, while `is_delivery_successful` and `delivery_terminal_reason` are
|
|
24947
|
+
* the event's and read the same on every entry.
|
|
24948
|
+
*/
|
|
24949
|
+
listDeliveryAttempts(merchantId: string, eventId: string): Promise<EventDetailResponse[]>;
|
|
24920
24950
|
retryDelivery(merchantId: string, eventId: string): Promise<EventDetailResponse>;
|
|
24921
24951
|
/**
|
|
24922
24952
|
* Fire an outgoing webhook event by hand for one object.
|
package/dist/index.cjs
CHANGED
|
@@ -2322,6 +2322,14 @@ var Events = class {
|
|
|
2322
2322
|
async list(merchantId, params) {
|
|
2323
2323
|
return this.request("POST", `/events/${encodeURIComponent(merchantId)}`, { body: params });
|
|
2324
2324
|
}
|
|
2325
|
+
/**
|
|
2326
|
+
* Every delivery attempt of one event, initial attempt first.
|
|
2327
|
+
* `GET /events/{merchant_id}/{event_id}/attempts`
|
|
2328
|
+
*
|
|
2329
|
+
* Each entry describes one attempt: `attempt_delivered` is that attempt's own
|
|
2330
|
+
* result, while `is_delivery_successful` and `delivery_terminal_reason` are
|
|
2331
|
+
* the event's and read the same on every entry.
|
|
2332
|
+
*/
|
|
2325
2333
|
async listDeliveryAttempts(merchantId, eventId) {
|
|
2326
2334
|
return this.request(
|
|
2327
2335
|
"GET",
|