@xyo-network/payment-payload-plugins 3.1.2 → 3.2.0-rc.2
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/neutral/Amount/Payload.d.ts +0 -4
- package/dist/neutral/Amount/Payload.d.ts.map +1 -1
- package/dist/neutral/Billing/Address/Address.d.ts +46 -10
- package/dist/neutral/Billing/Address/Address.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +44 -8
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +40 -8
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +44 -8
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +101 -5
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +68 -9
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +7 -7
- package/dist/neutral/Discount/Payload/Discount.d.ts.map +1 -1
- package/dist/neutral/Escrow/Outcome.d.ts +0 -4
- package/dist/neutral/Escrow/Outcome.d.ts.map +1 -1
- package/dist/neutral/Escrow/Terms/Terms.d.ts +28 -10
- package/dist/neutral/Escrow/Terms/Terms.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +2 -2
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +2 -2
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +32 -11
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +3 -3
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +1 -1
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +32 -11
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +2 -2
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +4 -4
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +3 -3
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +3 -3
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +22 -10
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Payload.d.ts +0 -4
- package/dist/neutral/Payment/Payload.d.ts.map +1 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +0 -4
- package/dist/neutral/Payment/Status/Payload.d.ts.map +1 -1
- package/dist/neutral/Purchase/Payload.d.ts +0 -4
- package/dist/neutral/Purchase/Payload.d.ts.map +1 -1
- package/dist/neutral/Receipt/Payload.d.ts +0 -4
- package/dist/neutral/Receipt/Payload.d.ts.map +1 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -4
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts +0 -4
- package/dist/neutral/Total/Diviner/Payload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +39 -76
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +25 -23
- package/src/Amount/Payload.ts +0 -6
- package/src/Billing/Address/Address.ts +1 -8
- package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +6 -9
- package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +6 -9
- package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +6 -9
- package/src/Discount/Payload/Coupon/Payload.ts +5 -11
- package/src/Discount/Payload/Coupon/types/Condition.ts +6 -10
- package/src/Discount/Payload/Discount.ts +2 -8
- package/src/Escrow/Outcome.ts +0 -6
- package/src/Escrow/Terms/Terms.ts +1 -8
- package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +5 -7
- package/src/Escrow/util/appraisal/getSignaturesByAppraisal.ts +7 -7
- package/src/Escrow/util/secret/createEscrowIntent.ts +1 -1
- package/src/Escrow/util/secret/findEscrowPartySecretSignatures.ts +4 -5
- package/src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts +2 -4
- package/src/Escrow/validators/escrow/appraisal.ts +8 -9
- package/src/Escrow/validators/escrow/buyerSecret.ts +3 -3
- package/src/Escrow/validators/escrow/sellerSecret.ts +3 -3
- package/src/Payment/Instrument/Card/Payload.ts +1 -8
- package/src/Payment/Payload.ts +0 -6
- package/src/Payment/Status/Payload.ts +0 -6
- package/src/Purchase/Payload.ts +0 -6
- package/src/Receipt/Payload.ts +0 -6
- package/src/Subtotal/Diviner/Payload.ts +0 -6
- package/src/Total/Diviner/Payload.ts +0 -6
|
@@ -59,19 +59,37 @@ export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>
|
|
|
59
59
|
/**
|
|
60
60
|
* Identity function for determining if an object is an EscrowTerms
|
|
61
61
|
*/
|
|
62
|
-
export declare const isEscrowTerms: (x?: unknown | null) => x is import("@
|
|
63
|
-
schema: "network.xyo.escrow.terms";
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Identity function for determining if an object is an EscrowTerms with sources
|
|
67
|
-
*/
|
|
68
|
-
export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Partial<EscrowTermsFields> & {
|
|
62
|
+
export declare const isEscrowTerms: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
69
63
|
schema: "network.xyo.escrow.terms";
|
|
64
|
+
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
65
|
+
appraisals?: Lowercase<string>[] | undefined;
|
|
66
|
+
assets?: Lowercase<string>[] | undefined;
|
|
67
|
+
buyer?: Lowercase<string>[] | undefined;
|
|
68
|
+
buyerSecret?: Lowercase<string> | undefined;
|
|
69
|
+
discounts?: Lowercase<string>[] | undefined;
|
|
70
|
+
escrowAgent?: Lowercase<string> | undefined;
|
|
71
|
+
exp?: number | undefined;
|
|
72
|
+
nbf?: number | undefined;
|
|
73
|
+
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
74
|
+
seller?: Lowercase<string>[] | undefined;
|
|
75
|
+
sellerSecret?: Lowercase<string> | undefined;
|
|
70
76
|
}>;
|
|
71
77
|
/**
|
|
72
|
-
* Identity function for determining if an object is an EscrowTerms with
|
|
78
|
+
* Identity function for determining if an object is an EscrowTerms with sources
|
|
73
79
|
*/
|
|
74
|
-
export declare const
|
|
80
|
+
export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
75
81
|
schema: "network.xyo.escrow.terms";
|
|
76
|
-
|
|
82
|
+
appraisalAuthorities?: Lowercase<string>[] | undefined;
|
|
83
|
+
appraisals?: Lowercase<string>[] | undefined;
|
|
84
|
+
assets?: Lowercase<string>[] | undefined;
|
|
85
|
+
buyer?: Lowercase<string>[] | undefined;
|
|
86
|
+
buyerSecret?: Lowercase<string> | undefined;
|
|
87
|
+
discounts?: Lowercase<string>[] | undefined;
|
|
88
|
+
escrowAgent?: Lowercase<string> | undefined;
|
|
89
|
+
exp?: number | undefined;
|
|
90
|
+
nbf?: number | undefined;
|
|
91
|
+
paymentAuthorities?: Lowercase<string>[] | undefined;
|
|
92
|
+
seller?: Lowercase<string>[] | undefined;
|
|
93
|
+
sellerSecret?: Lowercase<string> | undefined;
|
|
94
|
+
}>>;
|
|
77
95
|
//# sourceMappingURL=Terms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,eAAO,MAAM,iBAAiB,4BAAmC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,IAAI,EAAE,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;EAAwD,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;GAAmE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import { type HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
|
|
3
|
-
import type { Payload,
|
|
3
|
+
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
4
4
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
5
5
|
/**
|
|
6
6
|
* Returns a dictionary of asset hashes and their associated appraisals
|
|
@@ -8,5 +8,5 @@ import type { EscrowTerms } from '../../Terms/index.ts';
|
|
|
8
8
|
* @param dictionary The dictionary of payloads associated with the escrow terms
|
|
9
9
|
* @returns A dictionary of asset hashes and their associated appraisals
|
|
10
10
|
*/
|
|
11
|
-
export declare const getAppraisalsByAsset: (terms: EscrowTerms, dictionary: Record<Hash,
|
|
11
|
+
export declare const getAppraisalsByAsset: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, WithSources<HashLeaseEstimate>[]>;
|
|
12
12
|
//# sourceMappingURL=getAppraisalsByAsset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAppraisalsByAsset.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getAppraisalsByAsset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,iBAAiB,EAAkC,MAAM,iCAAiC,CAAA;AACxG,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getAppraisalsByAsset.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getAppraisalsByAsset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,iBAAiB,EAAkC,MAAM,iCAAiC,CAAA;AACxG,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,UAAW,WAAW,cAAc,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAkBzI,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import { type BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
-
import type { Payload
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
5
5
|
/**
|
|
6
6
|
* Returns a dictionary of appraisals and their associated bound witnesses which are signed by
|
|
@@ -9,5 +9,5 @@ import type { EscrowTerms } from '../../Terms/index.ts';
|
|
|
9
9
|
* @param dictionary The diction of payloads associated with the escrow terms
|
|
10
10
|
* @returns A dictionary of appraisals and their associated bound witnesses
|
|
11
11
|
*/
|
|
12
|
-
export declare const getSignaturesByAppraisal: (terms: EscrowTerms, dictionary: Record<Hash,
|
|
12
|
+
export declare const getSignaturesByAppraisal: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, BoundWitness[]>;
|
|
13
13
|
//# sourceMappingURL=getSignaturesByAppraisal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSignaturesByAppraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getSignaturesByAppraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"getSignaturesByAppraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getSignaturesByAppraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,UAC5B,WAAW,cACN,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAChC,MAAM,CAAC,IAAI,EAAE,YAAY,EAAE,CAsB7B,CAAA"}
|
|
@@ -8,16 +8,37 @@ import type { EscrowTerms } from '../../Terms/index.ts';
|
|
|
8
8
|
* @param account The account to create the escrow intent with
|
|
9
9
|
* @returns The escrow intent
|
|
10
10
|
*/
|
|
11
|
-
export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: IdPayload, account: AccountInstance) => Promise<[import("@xyo-network/
|
|
12
|
-
schema: "network.
|
|
13
|
-
}
|
|
14
|
-
schema:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: IdPayload, account: AccountInstance) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
12
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
13
|
+
}>[], import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
14
|
+
schema: "network.xyo.error.module";
|
|
15
|
+
details?: string | number | boolean | {
|
|
16
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
17
|
+
} | (string | number | boolean | {
|
|
18
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
19
|
+
} | (string | number | boolean | {
|
|
20
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
21
|
+
} | (string | number | boolean | {
|
|
22
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
23
|
+
} | (string | number | boolean | {
|
|
24
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
25
|
+
} | (string | number | boolean | {
|
|
26
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
27
|
+
} | (string | number | boolean | {
|
|
28
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
29
|
+
} | (string | number | boolean | {
|
|
30
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
|
|
31
|
+
} | (string | number | boolean | {
|
|
32
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
|
|
33
|
+
} | (string | number | boolean | {
|
|
34
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
|
|
35
|
+
} | (string | number | boolean | {
|
|
36
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
|
|
37
|
+
} | (string | number | boolean | {
|
|
38
|
+
[x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
39
|
+
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null | undefined;
|
|
40
|
+
message?: string | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
query?: import("@xylabs/hex").Hash | undefined;
|
|
22
43
|
}>[]]>;
|
|
23
44
|
//# sourceMappingURL=createEscrowIntent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,UAAiB,WAAW,UAAU,SAAS,WAAW,eAAe
|
|
1
|
+
{"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,UAAiB,WAAW,UAAU,SAAS,WAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGjH,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type
|
|
3
|
-
import type { Payload
|
|
2
|
+
import { type BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
5
5
|
/**
|
|
6
6
|
* Returns an array of BoundWitnesses containing the secret signed by all the parties
|
|
@@ -9,5 +9,5 @@ import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
|
9
9
|
* @param party The party to get the secret signatures for
|
|
10
10
|
* @returns An array of BoundWitnesses containing the secret signed by all the parties
|
|
11
11
|
*/
|
|
12
|
-
export declare const findEscrowPartySecretSignatures: (terms: EscrowTerms, dictionary: Record<Hash,
|
|
12
|
+
export declare const findEscrowPartySecretSignatures: (terms: EscrowTerms, dictionary: Record<Hash, Payload>, party: EscrowParty) => BoundWitness[];
|
|
13
13
|
//# sourceMappingURL=findEscrowPartySecretSignatures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findEscrowPartySecretSignatures.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/findEscrowPartySecretSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"findEscrowPartySecretSignatures.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/findEscrowPartySecretSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,iCAAiC,CAAA;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAW7B;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,UAAW,WAAW,cAAc,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,WAAW,KAAG,YAAY,EAqBvI,CAAA"}
|
|
@@ -10,16 +10,37 @@ import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
|
10
10
|
* not provided, a cryptographically random secret will be generated.
|
|
11
11
|
* @returns The escrow intent
|
|
12
12
|
*/
|
|
13
|
-
export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[import("@xyo-network/
|
|
14
|
-
schema: "network.
|
|
15
|
-
}
|
|
16
|
-
schema:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: IdPayload) => Promise<[import("@xyo-network/boundwitness-model").Signed<import("@xyo-network/boundwitness-model").UnsignedBoundWitness>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
14
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
15
|
+
}>[], import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
16
|
+
schema: "network.xyo.error.module";
|
|
17
|
+
details?: string | number | boolean | {
|
|
18
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
19
|
+
} | (string | number | boolean | {
|
|
20
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
21
|
+
} | (string | number | boolean | {
|
|
22
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
23
|
+
} | (string | number | boolean | {
|
|
24
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
25
|
+
} | (string | number | boolean | {
|
|
26
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
27
|
+
} | (string | number | boolean | {
|
|
28
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
29
|
+
} | (string | number | boolean | {
|
|
30
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
|
31
|
+
} | (string | number | boolean | {
|
|
32
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
|
|
33
|
+
} | (string | number | boolean | {
|
|
34
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
|
|
35
|
+
} | (string | number | boolean | {
|
|
36
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
|
|
37
|
+
} | (string | number | boolean | {
|
|
38
|
+
[x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
|
|
39
|
+
} | (string | number | boolean | {
|
|
40
|
+
[x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
|
|
41
|
+
} | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null | undefined;
|
|
42
|
+
message?: string | undefined;
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
query?: import("@xylabs/hex").Hash | undefined;
|
|
24
45
|
}>[]]>;
|
|
25
46
|
//# sourceMappingURL=updateEscrowTermsWithSecret.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,UAC/B,WAAW,eACL,WAAW,WACf,eAAe,GAAG,eAAe,EAAE,WACnC,SAAS
|
|
1
|
+
{"version":3,"file":"updateEscrowTermsWithSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/updateEscrowTermsWithSecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,UAC/B,WAAW,eACL,WAAW,WACf,eAAe,GAAG,eAAe,EAAE,WACnC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAanB,CAAA"}
|
package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowParty, EscrowTerms } from '../../../Terms/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Returns a function that validates the escrow terms for the existence of the party secret signed by the party
|
|
6
6
|
* @param dictionary Payload dictionary of the escrow terms
|
|
7
7
|
* @returns A function that validates the escrow terms for the existence of the party secret signed by the party
|
|
8
8
|
*/
|
|
9
|
-
export declare const getPartySecretSignedValidator: (dictionary: Record<Hash,
|
|
9
|
+
export declare const getPartySecretSignedValidator: (dictionary: Record<Hash, Payload>, party: EscrowParty) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
10
10
|
//# sourceMappingURL=getPartySecretSignedValidator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"getPartySecretSignedValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzF,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,yBAAyB,CAAA;AAahC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAqB/I,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { Payload, SyncPayloadValidationFunction
|
|
2
|
+
import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* A function that validates the escrow terms for tbe existence of appraisals
|
|
@@ -11,7 +11,7 @@ export declare const appraisalsExistValidator: SyncPayloadValidationFunction<Esc
|
|
|
11
11
|
* @param dictionary Payload dictionary of the escrow terms
|
|
12
12
|
* @returns A function that validates the escrow terms for appraisals which are from valid authorities
|
|
13
13
|
*/
|
|
14
|
-
export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash,
|
|
14
|
+
export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
15
|
/**
|
|
16
16
|
* Returns a function that validates the escrow terms for appraisals which are valid
|
|
17
17
|
* @param dictionary Payload dictionary of the escrow terms
|
|
@@ -19,11 +19,11 @@ export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Re
|
|
|
19
19
|
* for in the future (so as not to expire before the escrow is complete)
|
|
20
20
|
* @returns A function that validates the escrow terms for appraisals which are valid
|
|
21
21
|
*/
|
|
22
|
-
export declare const getAppraisalsValidValidator: (dictionary: Record<Hash,
|
|
22
|
+
export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, Payload>, minimumExp: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
23
23
|
/**
|
|
24
24
|
* Returns a function that validates the escrow terms to ensure that they contain an appraisal for each asset
|
|
25
25
|
* @param dictionary Payload dictionary of the escrow terms
|
|
26
26
|
* @returns A function that validates the escrow terms for appraisals
|
|
27
27
|
*/
|
|
28
|
-
export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash,
|
|
28
|
+
export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
29
29
|
//# sourceMappingURL=appraisal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,OAAO,EAAE,6BAA6B,EACvC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAMvD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAQ/E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0CAA0C,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA0BvI,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,eAC1B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,cACrB,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAW/H,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Returns a function that validates the escrow terms for buyerSecret
|
|
@@ -11,11 +11,11 @@ export declare const buyerSecretExistsValidator: SyncPayloadValidationFunction<E
|
|
|
11
11
|
* @param dictionary Payload dictionary of the escrow terms
|
|
12
12
|
* @returns A function that validates the escrow terms for the existence of the buyerSecret in the dictionary
|
|
13
13
|
*/
|
|
14
|
-
export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash,
|
|
14
|
+
export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
15
|
/**
|
|
16
16
|
* Returns a function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
|
|
17
17
|
* @param dictionary Payload dictionary of the escrow terms
|
|
18
18
|
* @returns A function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
|
|
19
19
|
*/
|
|
20
|
-
export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash,
|
|
20
|
+
export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
21
21
|
//# sourceMappingURL=buyerSecret.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,6BAA6B,CAAC,WAAW,CAQjF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS5H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE3H,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Returns a function that validates the escrow terms for sellerSecret
|
|
@@ -11,11 +11,11 @@ export declare const sellerSecretExistsValidator: SyncPayloadValidationFunction<
|
|
|
11
11
|
* @param dictionary Payload dictionary of the escrow terms
|
|
12
12
|
* @returns A function that validates the escrow terms for the existence of the sellerSecret in the dictionary
|
|
13
13
|
*/
|
|
14
|
-
export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash,
|
|
14
|
+
export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
15
|
/**
|
|
16
16
|
* Returns a function that validates the escrow terms for the existence of the sellerSecret signed by the seller
|
|
17
17
|
* @param dictionary Payload dictionary of the escrow terms
|
|
18
18
|
* @returns A function that validates the escrow terms for the existence of the sellerSecret signed by the seller
|
|
19
19
|
*/
|
|
20
|
-
export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash,
|
|
20
|
+
export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
21
21
|
//# sourceMappingURL=sellerSecret.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EACvE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,6BAA6B,CAAC,WAAW,CAQlF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS7H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,eAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE5H,CAAA"}
|
|
@@ -32,19 +32,31 @@ export type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
|
|
|
32
32
|
/**
|
|
33
33
|
* Identity function for determine if an object is a PaymentCard
|
|
34
34
|
*/
|
|
35
|
-
export declare const isPaymentCard: (x?: unknown | null) => x is import("@
|
|
36
|
-
schema: "network.xyo.payments.payment.instrument.card";
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Identity function for determine if an object is a PaymentCard with sources
|
|
40
|
-
*/
|
|
41
|
-
export declare const isPaymentCardWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & PaymentCardFields & {
|
|
35
|
+
export declare const isPaymentCard: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
42
36
|
schema: "network.xyo.payments.payment.instrument.card";
|
|
37
|
+
cardNumber: string;
|
|
38
|
+
cardholderName?: string
|
|
39
|
+
/**
|
|
40
|
+
* Card Verification Value (CVV/CVC) of the payment card.
|
|
41
|
+
*/
|
|
42
|
+
| undefined;
|
|
43
|
+
cvv: string;
|
|
44
|
+
expMonth: number;
|
|
45
|
+
expYear: number;
|
|
43
46
|
}>;
|
|
44
47
|
/**
|
|
45
|
-
* Identity function for determine if an object is a PaymentCard with
|
|
48
|
+
* Identity function for determine if an object is a PaymentCard with sources
|
|
46
49
|
*/
|
|
47
|
-
export declare const
|
|
50
|
+
export declare const isPaymentCardWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
48
51
|
schema: "network.xyo.payments.payment.instrument.card";
|
|
49
|
-
|
|
52
|
+
cardNumber: string;
|
|
53
|
+
cardholderName?: string
|
|
54
|
+
/**
|
|
55
|
+
* Card Verification Value (CVV/CVC) of the payment card.
|
|
56
|
+
*/
|
|
57
|
+
| undefined;
|
|
58
|
+
cvv: string;
|
|
59
|
+
expMonth: number;
|
|
60
|
+
expYear: number;
|
|
61
|
+
}>>;
|
|
50
62
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAA;AAEvE;;GAEG;AACH,eAAO,MAAM,aAAa;;gBA3BZ,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;EAWiE,CAAA;AAElF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;gBAhCvB,MAAM;qBAID,MAAM;IACvB;;OAEG;;SACE,MAAM;cAID,MAAM;aAIP,MAAM;GAgBuF,CAAA"}
|
|
@@ -23,8 +23,4 @@ export declare const isPayment: (x?: unknown | null) => x is Payment;
|
|
|
23
23
|
* Identity function for determine if an object is a Payment with sources
|
|
24
24
|
*/
|
|
25
25
|
export declare const isPaymentWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Payment>;
|
|
26
|
-
/**
|
|
27
|
-
* Identity function for determine if an object is a Payment with meta
|
|
28
|
-
*/
|
|
29
|
-
export declare const isPaymentWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Payment>;
|
|
30
26
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,wFAA2D,CAAA"}
|
|
@@ -22,8 +22,4 @@ export declare const isPaymentStatus: (x?: unknown | null) => x is PaymentStatus
|
|
|
22
22
|
* Identity function for determine if an object is a PaymentStatus with sources
|
|
23
23
|
*/
|
|
24
24
|
export declare const isPaymentStatusWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<PaymentStatus>;
|
|
25
|
-
/**
|
|
26
|
-
* Identity function for determine if an object is a PaymentStatus with meta
|
|
27
|
-
*/
|
|
28
|
-
export declare const isPaymentStatusWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<PaymentStatus>;
|
|
29
25
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,eAAe,4CAA4D,CAAA;AAExF;;GAEG;AACH,eAAO,MAAM,0BAA0B,8FAAuE,CAAA"}
|
|
@@ -24,8 +24,4 @@ export declare const isPurchase: (x?: unknown | null) => x is Purchase;
|
|
|
24
24
|
* Identity function for determine if an object is a Purchase with sources
|
|
25
25
|
*/
|
|
26
26
|
export declare const isPurchaseWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Purchase>;
|
|
27
|
-
/**
|
|
28
|
-
* Identity function for determine if an object is a Purchase with meta
|
|
29
|
-
*/
|
|
30
|
-
export declare const isPurchaseWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Purchase>;
|
|
31
27
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Purchase/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;;OAGG;IACH,QAAQ,EAAE,IAAI,EAAE,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA"}
|
|
@@ -23,8 +23,4 @@ export declare const isReceipt: (x?: unknown | null) => x is Receipt;
|
|
|
23
23
|
* Identity function for determine if an object is a Receipt with sources
|
|
24
24
|
*/
|
|
25
25
|
export declare const isReceiptWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Receipt>;
|
|
26
|
-
/**
|
|
27
|
-
* Identity function for determine if an object is a Receipt with meta
|
|
28
|
-
*/
|
|
29
|
-
export declare const isReceiptWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Receipt>;
|
|
30
26
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Receipt/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,SAAS,sCAAgD,CAAA;AAEtE;;GAEG;AACH,eAAO,MAAM,oBAAoB,wFAA2D,CAAA"}
|
|
@@ -16,8 +16,4 @@ export declare const isSubtotal: (x?: unknown | null) => x is Subtotal;
|
|
|
16
16
|
* Identity function for determining if an object is an Subtotal with sources
|
|
17
17
|
*/
|
|
18
18
|
export declare const isSubtotalWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Subtotal>;
|
|
19
|
-
/**
|
|
20
|
-
* Identity function for determining if an object is an Subtotal with meta
|
|
21
|
-
*/
|
|
22
|
-
export declare const isSubtotalWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Subtotal>;
|
|
23
19
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Subtotal/Diviner/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Subtotal/Diviner/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc,EAAG,+BAAwC,CAAA;AACtE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA;AAElD,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAG;AAEvD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,yFAA6D,CAAA"}
|
|
@@ -16,8 +16,4 @@ export declare const isTotal: (x?: unknown | null) => x is Total;
|
|
|
16
16
|
* Identity function for determining if an object is an Total with sources
|
|
17
17
|
*/
|
|
18
18
|
export declare const isTotalWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Total>;
|
|
19
|
-
/**
|
|
20
|
-
* Identity function for determining if an object is an Total with meta
|
|
21
|
-
*/
|
|
22
|
-
export declare const isTotalWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<Total>;
|
|
23
19
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Total/Diviner/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Total/Diviner/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAMpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,WAAW,EAAG,4BAAqC,CAAA;AAChE,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA;AAE5C,MAAM,WAAW,WAAY,SAAQ,YAAY;CAAG;AAEpD;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,kBAAkB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,OAAO,oCAA4C,CAAA;AAEhE;;GAEG;AACH,eAAO,MAAM,kBAAkB,sFAAuD,CAAA"}
|