@01.software/sdk 0.26.0 → 0.27.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/README.md +28 -3
- package/dist/analytics/react.cjs +249 -0
- package/dist/analytics/react.cjs.map +1 -0
- package/dist/analytics/react.d.cts +8 -0
- package/dist/analytics/react.d.ts +8 -0
- package/dist/analytics/react.js +228 -0
- package/dist/analytics/react.js.map +1 -0
- package/dist/{const-CEiFBZMW.d.cts → const-C0GlmeJ_.d.cts} +5 -5
- package/dist/{const-R3AyqOHY.d.ts → const-D-xucnw4.d.ts} +5 -5
- package/dist/{image-TT8lTsk5.d.cts → image-BDz2-AaO.d.cts} +1 -1
- package/dist/{image-TT8lTsk5.d.ts → image-BDz2-AaO.d.ts} +1 -1
- package/dist/index.cjs +13 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BF8VVFt6.d.cts → payload-types-BPvUmPAq.d.cts} +221 -53
- package/dist/{payload-types-BF8VVFt6.d.ts → payload-types-BPvUmPAq.d.ts} +221 -53
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/{server-DLdbWJVv.d.cts → server-BINWywT8.d.cts} +1 -1
- package/dist/{server-DLdbWJVv.d.ts → server-BINWywT8.d.ts} +1 -1
- package/dist/{server-CZrUwqDs.d.cts → server-_zvihptw.d.ts} +27 -4
- package/dist/{server-DULueNYi.d.ts → server-n3xK4Nks.d.cts} +27 -4
- package/dist/server.cjs +8 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +8 -0
- package/dist/server.js.map +1 -1
- package/dist/{types-CZ1laT6s.d.ts → types-BLdthWiW.d.ts} +1 -1
- package/dist/{types-lPRgx_rC.d.cts → types-DzWNu9pw.d.cts} +1 -1
- package/dist/ui/canvas/server.d.cts +1 -1
- package/dist/ui/canvas/server.d.ts +1 -1
- package/dist/ui/canvas.d.cts +3 -3
- package/dist/ui/canvas.d.ts +3 -3
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/image.d.cts +1 -1
- package/dist/ui/image.d.ts +1 -1
- package/dist/ui/video.d.cts +2 -2
- package/dist/ui/video.d.ts +2 -2
- package/dist/{video-DbLL8yuc.d.cts → video-WR_TFO9a.d.cts} +1 -1
- package/dist/{video-DbLL8yuc.d.ts → video-WR_TFO9a.d.ts} +1 -1
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +42 -26
package/dist/server.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import './payload-types-
|
|
1
|
+
export { z as ClientServerConfig, D as CollectionClient, m as CommunityClient, ad as ModerationApi, aL as ServerClient, aM as ServerCollectionClient, aO as ServerCommerceClient, bb as createServerClient } from './server-n3xK4Nks.cjs';
|
|
2
|
+
import './payload-types-BPvUmPAq.cjs';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'payload';
|
|
5
5
|
import 'next';
|
|
6
|
-
import './types-
|
|
7
|
-
import './const-
|
|
6
|
+
import './types-DzWNu9pw.cjs';
|
|
7
|
+
import './const-C0GlmeJ_.cjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import './payload-types-
|
|
1
|
+
export { z as ClientServerConfig, D as CollectionClient, m as CommunityClient, ad as ModerationApi, aL as ServerClient, aM as ServerCollectionClient, aO as ServerCommerceClient, bb as createServerClient } from './server-_zvihptw.js';
|
|
2
|
+
import './payload-types-BPvUmPAq.js';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'payload';
|
|
5
5
|
import 'next';
|
|
6
|
-
import './types-
|
|
7
|
-
import './const-
|
|
6
|
+
import './types-BLdthWiW.js';
|
|
7
|
+
import './const-D-xucnw4.js';
|
package/dist/server.js
CHANGED
|
@@ -1378,6 +1378,13 @@ var OrderApi = class extends BaseApi {
|
|
|
1378
1378
|
updateTransaction(params) {
|
|
1379
1379
|
return this.request("/api/transactions/update", params);
|
|
1380
1380
|
}
|
|
1381
|
+
confirmPayment(params) {
|
|
1382
|
+
return this.request(
|
|
1383
|
+
"/api/orders/confirm-payment",
|
|
1384
|
+
params,
|
|
1385
|
+
params.providerEventId ? { headers: { "X-Idempotency-Key": params.providerEventId } } : void 0
|
|
1386
|
+
);
|
|
1387
|
+
}
|
|
1381
1388
|
checkout(params) {
|
|
1382
1389
|
return this.request("/api/orders/checkout", params);
|
|
1383
1390
|
}
|
|
@@ -1443,6 +1450,7 @@ var ServerCommerceClient = class {
|
|
|
1443
1450
|
create: orderApi.createOrder.bind(orderApi),
|
|
1444
1451
|
update: orderApi.updateOrder.bind(orderApi),
|
|
1445
1452
|
updateTransaction: orderApi.updateTransaction.bind(orderApi),
|
|
1453
|
+
confirmPayment: orderApi.confirmPayment.bind(orderApi),
|
|
1446
1454
|
createFulfillment: orderApi.createFulfillment.bind(orderApi),
|
|
1447
1455
|
updateFulfillment: orderApi.updateFulfillment.bind(orderApi),
|
|
1448
1456
|
bulkImportFulfillments: orderApi.bulkImportFulfillments.bind(orderApi),
|