@01.software/sdk 0.45.0 → 0.46.1
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 +14 -0
- package/MIGRATION.md +19 -0
- package/README.md +49 -4
- package/dist/client.cjs +13 -0
- 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 +13 -0
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-Ckfusuee.d.ts → collection-client-BEGXnfQe.d.ts} +4 -4
- package/dist/{collection-client-BSo7VXQE.d.cts → collection-client-L2rEgBaR.d.cts} +4 -4
- package/dist/{const-CaPq2AE4.d.ts → const-GYVwlXLr.d.ts} +1 -1
- package/dist/{const-BAG0MH0u.d.cts → const-y0eipvnQ.d.cts} +1 -1
- package/dist/{index-BNICJxBL.d.ts → index-Bei4WlVw.d.ts} +3 -3
- package/dist/{index-YGrZrxNn.d.cts → index-BfYL6Qb1.d.cts} +3 -3
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-CJZuXcgF.d.cts → payload-types-3WNyC0gk.d.cts} +5 -0
- package/dist/{payload-types-CJZuXcgF.d.ts → payload-types-3WNyC0gk.d.ts} +5 -0
- package/dist/query.cjs +8 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +8 -0
- 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 +99 -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 +99 -1
- package/dist/server.js.map +1 -1
- package/dist/{types-D5p7-m1l.d.cts → types-CAicTn-o.d.cts} +2 -2
- package/dist/{types-C4WuJfw7.d.cts → types-CDJ2M-MJ.d.cts} +43 -4
- package/dist/{types-BC6rVmJa.d.ts → types-DpSyNTxy.d.ts} +2 -2
- package/dist/{types-BlOvjoTX.d.ts → types-mIROvhhP.d.ts} +43 -4
- 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 +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as DebugConfig, ag as RetryConfig, i as ApiQueryOptions, P as PayloadFindResponse, K as PayloadMutationResponse,
|
|
2
|
-
import './payload-types-
|
|
1
|
+
import { F as DebugConfig, ag as RetryConfig, i as ApiQueryOptions, P as PayloadFindResponse, K as PayloadMutationResponse, bN as ApiDeleteOptions, bO as PublicReadQueryOptions } from './types-mIROvhhP.js';
|
|
2
|
+
import './payload-types-3WNyC0gk.js';
|
|
3
3
|
import { GenerateMetadataOptions, Metadata } from './metadata.js';
|
|
4
|
-
import { C as Collection, S as ServerCollection, P as PublicCollection } from './const-
|
|
5
|
-
import { C as CollectionType } from './types-
|
|
4
|
+
import { C as Collection, S as ServerCollection, P as PublicCollection } from './const-GYVwlXLr.js';
|
|
5
|
+
import { C as CollectionType } from './types-DpSyNTxy.js';
|
|
6
6
|
|
|
7
7
|
interface FetchOptions extends RequestInit {
|
|
8
8
|
apiUrl?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as DebugConfig, ag as RetryConfig, i as ApiQueryOptions, P as PayloadFindResponse, K as PayloadMutationResponse,
|
|
2
|
-
import './payload-types-
|
|
1
|
+
import { F as DebugConfig, ag as RetryConfig, i as ApiQueryOptions, P as PayloadFindResponse, K as PayloadMutationResponse, bN as ApiDeleteOptions, bO as PublicReadQueryOptions } from './types-CDJ2M-MJ.cjs';
|
|
2
|
+
import './payload-types-3WNyC0gk.cjs';
|
|
3
3
|
import { GenerateMetadataOptions, Metadata } from './metadata.cjs';
|
|
4
|
-
import { C as Collection, S as ServerCollection, P as PublicCollection } from './const-
|
|
5
|
-
import { C as CollectionType } from './types-
|
|
4
|
+
import { C as Collection, S as ServerCollection, P as PublicCollection } from './const-y0eipvnQ.cjs';
|
|
5
|
+
import { C as CollectionType } from './types-CAicTn-o.cjs';
|
|
6
6
|
|
|
7
7
|
interface FetchOptions extends RequestInit {
|
|
8
8
|
apiUrl?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Collection } from './const-
|
|
2
|
-
import { C as CollectionType } from './types-
|
|
3
|
-
import './payload-types-
|
|
1
|
+
import { C as Collection } from './const-GYVwlXLr.js';
|
|
2
|
+
import { C as CollectionType } from './types-DpSyNTxy.js';
|
|
3
|
+
import './payload-types-3WNyC0gk.js';
|
|
4
4
|
|
|
5
5
|
type WebhookOperation = string;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Collection } from './const-
|
|
2
|
-
import { C as CollectionType } from './types-
|
|
3
|
-
import './payload-types-
|
|
1
|
+
import { C as Collection } from './const-y0eipvnQ.cjs';
|
|
2
|
+
import { C as CollectionType } from './types-CAicTn-o.cjs';
|
|
3
|
+
import './payload-types-3WNyC0gk.cjs';
|
|
4
4
|
|
|
5
5
|
type WebhookOperation = string;
|
|
6
6
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -565,6 +565,11 @@ function redactSensitiveHeaders(headers) {
|
|
|
565
565
|
redacted["x-preview-token"]
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
|
+
if (redacted["x-custom-payment-signature"]) {
|
|
569
|
+
redacted["x-custom-payment-signature"] = redactSensitiveHeader(
|
|
570
|
+
redacted["x-custom-payment-signature"]
|
|
571
|
+
);
|
|
572
|
+
}
|
|
568
573
|
return redacted;
|
|
569
574
|
}
|
|
570
575
|
function getErrorSuggestion(status) {
|
|
@@ -1565,6 +1570,14 @@ var COMMERCE_ENDPOINTS = {
|
|
|
1565
1570
|
create: endpoint("POST", "/api/payment-sessions/create"),
|
|
1566
1571
|
retrieve: endpoint("POST", "/api/payment-sessions/retrieve"),
|
|
1567
1572
|
cancel: endpoint("POST", "/api/payment-sessions/cancel"),
|
|
1573
|
+
custom: {
|
|
1574
|
+
create: sharedEndpoint(
|
|
1575
|
+
COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.create
|
|
1576
|
+
),
|
|
1577
|
+
confirm: sharedEndpoint(
|
|
1578
|
+
COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.confirm
|
|
1579
|
+
)
|
|
1580
|
+
},
|
|
1568
1581
|
server: {
|
|
1569
1582
|
create: endpoint("POST", "/api/payment-sessions/server/create"),
|
|
1570
1583
|
retrieve: endpoint("POST", "/api/payment-sessions/server/retrieve"),
|