@delopay/sdk 0.133.0 → 0.134.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-GK3QZSRX.js → chunk-R4MDAZWF.js} +30 -2
- package/dist/chunk-R4MDAZWF.js.map +1 -0
- package/dist/index.cjs +29 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +101 -6
- package/dist/index.d.ts +101 -6
- package/dist/index.js +1 -1
- package/dist/internal.cjs +29 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-GK3QZSRX.js.map +0 -1
|
@@ -1043,11 +1043,39 @@ var Events = class {
|
|
|
1043
1043
|
`/events/${encodeURIComponent(merchantId)}/${encodeURIComponent(eventId)}/retry`
|
|
1044
1044
|
);
|
|
1045
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Fire an outgoing webhook event by hand for one object.
|
|
1048
|
+
* `POST /events/{merchant_id}/trigger` (be#318)
|
|
1049
|
+
*
|
|
1050
|
+
* Not a replay — see {@link EventManualTriggerRequest}. Needs the
|
|
1051
|
+
* `WebhookEventTrigger` permission, which is separate from the one that
|
|
1052
|
+
* authorizes {@link retryDelivery}, and is JWT-only: a forged payload must
|
|
1053
|
+
* be attributable to a person.
|
|
1054
|
+
*/
|
|
1055
|
+
async trigger(merchantId, body) {
|
|
1056
|
+
return this.request("POST", `/events/${encodeURIComponent(merchantId)}/trigger`, { body });
|
|
1057
|
+
}
|
|
1046
1058
|
// --- Profile-scoped listing (Task 4.12) ---
|
|
1047
|
-
/**
|
|
1059
|
+
/**
|
|
1060
|
+
* List events (profile-scoped). `POST /events/profile/list`
|
|
1061
|
+
*
|
|
1062
|
+
* Takes the same constraints as {@link list} — it is the same endpoint
|
|
1063
|
+
* narrowed to the caller's own shop, so `profile_id` is redundant and
|
|
1064
|
+
* ignored there.
|
|
1065
|
+
*/
|
|
1048
1066
|
async listByProfile(params) {
|
|
1049
1067
|
return this.request("POST", "/events/profile/list", { body: params });
|
|
1050
1068
|
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Fire an outgoing webhook event by hand (profile-scoped).
|
|
1071
|
+
* `POST /events/profile/trigger` (be#318)
|
|
1072
|
+
*
|
|
1073
|
+
* The shop-user twin of {@link trigger}; the shop is taken from the auth
|
|
1074
|
+
* context, so `profile_id` on the body is ignored.
|
|
1075
|
+
*/
|
|
1076
|
+
async triggerByProfile(body) {
|
|
1077
|
+
return this.request("POST", "/events/profile/trigger", { body });
|
|
1078
|
+
}
|
|
1051
1079
|
};
|
|
1052
1080
|
|
|
1053
1081
|
// src/resources/fees.ts
|
|
@@ -7671,4 +7699,4 @@ export {
|
|
|
7671
7699
|
decodeNativePanes,
|
|
7672
7700
|
encodeNativePanes
|
|
7673
7701
|
};
|
|
7674
|
-
//# sourceMappingURL=chunk-
|
|
7702
|
+
//# sourceMappingURL=chunk-R4MDAZWF.js.map
|