@01.software/sdk 0.34.0 → 0.36.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/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-DkREjhQ9.d.ts → collection-client-Bq5Zd7p7.d.ts} +3 -3
- package/dist/{collection-client-CR2B8c1v.d.cts → collection-client-Cv0D2w1Q.d.cts} +3 -3
- package/dist/{const-CdqCauHQ.d.ts → const-BDUKFP9w.d.ts} +1 -1
- package/dist/{const-BTvdrXtY.d.cts → const-DVcM7Ac_.d.cts} +1 -1
- package/dist/errors.cjs +300 -0
- package/dist/errors.cjs.map +1 -0
- package/dist/{index-BGEhoDUs.d.cts → errors.d.cts} +13 -1
- package/dist/{index-BGEhoDUs.d.ts → errors.d.ts} +13 -1
- package/dist/errors.js +277 -0
- package/dist/errors.js.map +1 -0
- package/dist/{index-CjA3U6X3.d.cts → index-BHDKJ6B3.d.cts} +3 -3
- package/dist/{index-DK8_NXkh.d.ts → index-DTSXUYkr.d.ts} +3 -3
- package/dist/index.cjs +58 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +58 -5
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-C7tb7Xbs.d.cts → payload-types-BCui2Oml.d.cts} +0 -20
- package/dist/{payload-types-C7tb7Xbs.d.ts → payload-types-BCui2Oml.d.ts} +0 -20
- package/dist/query.cjs +1 -1
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +6 -6
- package/dist/query.d.ts +6 -6
- package/dist/query.js +1 -1
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +16 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +16 -1
- package/dist/server.js.map +1 -1
- package/dist/{types-1ylMrCuW.d.ts → types-3qV6sY7T.d.ts} +1 -1
- package/dist/{types-Bx558PU6.d.cts → types-CEzLf3PX.d.cts} +1 -1
- package/dist/{types-Byo_Rty4.d.ts → types-DK9EnLwJ.d.ts} +83 -17
- package/dist/{types-DDhtZI6E.d.cts → types-Dib-zdK6.d.cts} +83 -17
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +4 -4
- package/dist/webhook.d.ts +4 -4
- package/package.json +11 -1
package/dist/realtime.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RealtimeEvent } from './realtime-D7HtUpqt.cjs';
|
|
2
2
|
export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
3
|
-
import { P as PublicCollection } from './const-
|
|
4
|
-
import './payload-types-
|
|
3
|
+
import { P as PublicCollection } from './const-DVcM7Ac_.cjs';
|
|
4
|
+
import './payload-types-BCui2Oml.cjs';
|
|
5
5
|
|
|
6
6
|
interface UseRealtimeQueryOptions {
|
|
7
7
|
/** Filter events to specific collections. Empty/undefined = all collections. */
|
package/dist/realtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { R as RealtimeEvent } from './realtime-D7HtUpqt.js';
|
|
2
2
|
export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
3
|
-
import { P as PublicCollection } from './const-
|
|
4
|
-
import './payload-types-
|
|
3
|
+
import { P as PublicCollection } from './const-BDUKFP9w.js';
|
|
4
|
+
import './payload-types-BCui2Oml.js';
|
|
5
5
|
|
|
6
6
|
interface UseRealtimeQueryOptions {
|
|
7
7
|
/** Filter events to specific collections. Empty/undefined = all collections. */
|
package/dist/server.cjs
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
36
36
|
// src/core/collection/http-client.ts
|
|
37
37
|
var import_qs_esm = require("qs-esm");
|
|
38
38
|
|
|
39
|
-
// src/core/
|
|
39
|
+
// src/core/errors.ts
|
|
40
40
|
var SDKError = class extends Error {
|
|
41
41
|
constructor(code, message, status, details, userMessage, suggestion, requestId) {
|
|
42
42
|
super(message);
|
|
@@ -1815,6 +1815,20 @@ var OrderApi = class extends BaseApi {
|
|
|
1815
1815
|
idempotencyKey ? { headers: { "X-Idempotency-Key": idempotencyKey } } : void 0
|
|
1816
1816
|
);
|
|
1817
1817
|
}
|
|
1818
|
+
resolveCancelRefund(params) {
|
|
1819
|
+
return this.request(
|
|
1820
|
+
"/api/orders/resolve-cancel-refund",
|
|
1821
|
+
{
|
|
1822
|
+
orderNumber: params.orderNumber,
|
|
1823
|
+
idempotencyKey: params.idempotencyKey,
|
|
1824
|
+
outcome: params.outcome,
|
|
1825
|
+
refundedAmount: params.refundedAmount,
|
|
1826
|
+
pgProvider: params.pgProvider,
|
|
1827
|
+
...params.pgRefundId ? { pgRefundId: params.pgRefundId } : {}
|
|
1828
|
+
},
|
|
1829
|
+
idempotencyRequestOptions(params.idempotencyKey)
|
|
1830
|
+
);
|
|
1831
|
+
}
|
|
1818
1832
|
checkout(params) {
|
|
1819
1833
|
const { body, idempotencyKey } = splitIdempotencyKey(params);
|
|
1820
1834
|
return this.request(
|
|
@@ -1957,6 +1971,7 @@ var ServerCommerceClient = class {
|
|
|
1957
1971
|
updateTransaction: orderApi.updateTransaction.bind(orderApi),
|
|
1958
1972
|
confirmPayment: orderApi.confirmPayment.bind(orderApi),
|
|
1959
1973
|
cancelOrder: orderApi.cancelOrder.bind(orderApi),
|
|
1974
|
+
resolveCancelRefund: orderApi.resolveCancelRefund.bind(orderApi),
|
|
1960
1975
|
createFulfillment: orderApi.createFulfillment.bind(orderApi),
|
|
1961
1976
|
updateFulfillment: orderApi.updateFulfillment.bind(orderApi),
|
|
1962
1977
|
bulkImportFulfillments: orderApi.bulkImportFulfillments.bind(orderApi),
|