@weftlabs/sdk 0.26.3 → 0.26.7
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/facilitator/middleware/index.js +1 -1
- package/dist/facilitator/middleware/index.js.map +1 -1
- package/dist/facilitator/middleware/index.mjs +1 -1
- package/dist/facilitator/middleware/index.mjs.map +1 -1
- package/dist/index.d.mts +115 -95
- package/dist/index.d.ts +115 -95
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +1 -1
- package/dist/server.mjs.map +1 -1
- package/docs/Purchase.md +4 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -216,6 +216,7 @@ __export(src_exports, {
|
|
|
216
216
|
PurchaseArtifactFromJSONTyped: () => PurchaseArtifactFromJSONTyped,
|
|
217
217
|
PurchaseArtifactToJSON: () => PurchaseArtifactToJSON,
|
|
218
218
|
PurchaseArtifactToJSONTyped: () => PurchaseArtifactToJSONTyped,
|
|
219
|
+
PurchaseAttributionStatusEnum: () => PurchaseAttributionStatusEnum,
|
|
219
220
|
PurchaseFromJSON: () => PurchaseFromJSON,
|
|
220
221
|
PurchaseFromJSONTyped: () => PurchaseFromJSONTyped,
|
|
221
222
|
PurchaseListResponseFromJSON: () => PurchaseListResponseFromJSON,
|
|
@@ -2641,6 +2642,10 @@ var PurchaseProtocolEnum = {
|
|
|
2641
2642
|
Mpp: "mpp",
|
|
2642
2643
|
X402: "x402"
|
|
2643
2644
|
};
|
|
2645
|
+
var PurchaseAttributionStatusEnum = {
|
|
2646
|
+
Attributed: "attributed",
|
|
2647
|
+
Unattributed: "unattributed"
|
|
2648
|
+
};
|
|
2644
2649
|
function instanceOfPurchase(value) {
|
|
2645
2650
|
if (!("id" in value) || value["id"] === void 0) return false;
|
|
2646
2651
|
if (!("status" in value) || value["status"] === void 0) return false;
|
|
@@ -2649,6 +2654,8 @@ function instanceOfPurchase(value) {
|
|
|
2649
2654
|
if (!("network" in value) || value["network"] === void 0) return false;
|
|
2650
2655
|
if (!("protocol" in value) || value["protocol"] === void 0) return false;
|
|
2651
2656
|
if (!("context" in value) || value["context"] === void 0) return false;
|
|
2657
|
+
if (!("searchId" in value) || value["searchId"] === void 0) return false;
|
|
2658
|
+
if (!("attributionStatus" in value) || value["attributionStatus"] === void 0) return false;
|
|
2652
2659
|
if (!("txHash" in value) || value["txHash"] === void 0) return false;
|
|
2653
2660
|
if (!("rejectReason" in value) || value["rejectReason"] === void 0) return false;
|
|
2654
2661
|
if (!("failureReason" in value) || value["failureReason"] === void 0) return false;
|
|
@@ -2673,6 +2680,8 @@ function PurchaseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2673
2680
|
"network": json["network"],
|
|
2674
2681
|
"protocol": json["protocol"],
|
|
2675
2682
|
"context": json["context"],
|
|
2683
|
+
"searchId": json["search_id"],
|
|
2684
|
+
"attributionStatus": json["attribution_status"],
|
|
2676
2685
|
"txHash": json["tx_hash"],
|
|
2677
2686
|
"rejectReason": json["reject_reason"],
|
|
2678
2687
|
"failureReason": json["failure_reason"],
|
|
@@ -2697,6 +2706,8 @@ function PurchaseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2697
2706
|
"network": value["network"],
|
|
2698
2707
|
"protocol": value["protocol"],
|
|
2699
2708
|
"context": value["context"],
|
|
2709
|
+
"search_id": value["searchId"],
|
|
2710
|
+
"attribution_status": value["attributionStatus"],
|
|
2700
2711
|
"tx_hash": value["txHash"],
|
|
2701
2712
|
"reject_reason": value["rejectReason"],
|
|
2702
2713
|
"failure_reason": value["failureReason"],
|
|
@@ -5266,6 +5277,7 @@ export {
|
|
|
5266
5277
|
PurchaseArtifactFromJSONTyped,
|
|
5267
5278
|
PurchaseArtifactToJSON,
|
|
5268
5279
|
PurchaseArtifactToJSONTyped,
|
|
5280
|
+
PurchaseAttributionStatusEnum,
|
|
5269
5281
|
PurchaseFromJSON,
|
|
5270
5282
|
PurchaseFromJSONTyped,
|
|
5271
5283
|
PurchaseListResponseFromJSON,
|