@xyo-network/payment-payload-plugins 5.3.1 → 5.3.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/package.json +25 -25
- package/src/Amount/Payload.ts +1 -1
- package/src/Billing/Address/Address.ts +1 -1
- package/src/Discount/Config.ts +2 -2
- package/src/Discount/Params.ts +1 -1
- package/src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts +1 -1
- package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +1 -1
- package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +1 -1
- package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +1 -1
- package/src/Discount/Payload/Coupon/Payload.ts +1 -1
- package/src/Discount/Payload/Coupon/types/Condition.ts +1 -1
- package/src/Discount/Payload/Coupon/types/CouponFields.ts +1 -1
- package/src/Discount/Payload/Discount.ts +1 -1
- package/src/Escrow/Outcome.ts +2 -2
- package/src/Escrow/Terms/Terms.ts +2 -2
- package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +1 -1
- package/src/Escrow/util/appraisal/getSignaturesByAppraisal.ts +1 -1
- package/src/Escrow/util/secret/findEscrowPartySecretSignatures.ts +1 -1
- package/src/Escrow/util/secret/updateEscrowTermsWithSecret.ts +1 -1
- package/src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts +1 -1
- package/src/Escrow/validators/escrow/appraisal.ts +2 -2
- package/src/Escrow/validators/escrow/appraisalAuthorities.ts +1 -1
- package/src/Escrow/validators/escrow/buyer.ts +1 -1
- package/src/Escrow/validators/escrow/buyerSecret.ts +2 -2
- package/src/Escrow/validators/escrow/seller.ts +1 -1
- package/src/Escrow/validators/escrow/sellerSecret.ts +2 -2
- package/src/Payment/Instrument/Card/Payload.ts +1 -1
- package/src/Payment/Payload.ts +1 -1
- package/src/Payment/Status/Payload.ts +1 -1
- package/src/Purchase/Payload.ts +2 -2
- package/src/Receipt/Payload.ts +1 -1
- package/src/Subtotal/Diviner/Config.ts +1 -1
- package/src/Subtotal/Diviner/Payload.ts +1 -1
- package/src/Total/Diviner/Config.ts +1 -1
- package/src/Total/Diviner/Payload.ts +1 -1
- package/dist/neutral/Amount/Iso4217Currency.d.ts +0 -14
- package/dist/neutral/Amount/Iso4217Currency.d.ts.map +0 -1
- package/dist/neutral/Amount/Payload.d.ts +0 -27
- package/dist/neutral/Amount/Payload.d.ts.map +0 -1
- package/dist/neutral/Amount/index.d.ts +0 -3
- package/dist/neutral/Amount/index.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/Address.d.ts +0 -42
- package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/Schema.d.ts +0 -5
- package/dist/neutral/Billing/Address/Schema.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/index.d.ts +0 -3
- package/dist/neutral/Billing/Address/index.d.ts.map +0 -1
- package/dist/neutral/Billing/Schema.d.ts +0 -5
- package/dist/neutral/Billing/Schema.d.ts.map +0 -1
- package/dist/neutral/Billing/index.d.ts +0 -3
- package/dist/neutral/Billing/index.d.ts.map +0 -1
- package/dist/neutral/Currency.d.ts +0 -2
- package/dist/neutral/Currency.d.ts.map +0 -1
- package/dist/neutral/Discount/Config.d.ts +0 -25
- package/dist/neutral/Discount/Config.d.ts.map +0 -1
- package/dist/neutral/Discount/Params.d.ts +0 -11
- package/dist/neutral/Discount/Params.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -8
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -8
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -34
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -26
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -26
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -26
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -16
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +0 -5
- package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/index.d.ts +0 -6
- package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +0 -16
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -16
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +0 -5
- package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +0 -25
- package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
- package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/index.d.ts.map +0 -1
- package/dist/neutral/Discount/index.d.ts +0 -4
- package/dist/neutral/Discount/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/Outcome.d.ts +0 -31
- package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
- package/dist/neutral/Escrow/Schema.d.ts +0 -5
- package/dist/neutral/Escrow/Schema.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/Party.d.ts +0 -6
- package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/PartySecret.d.ts +0 -6
- package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -73
- package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/index.d.ts +0 -4
- package/dist/neutral/Escrow/Terms/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/index.d.ts +0 -6
- package/dist/neutral/Escrow/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -12
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -13
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/index.d.ts +0 -3
- package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/index.d.ts +0 -3
- package/dist/neutral/Escrow/util/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +0 -31
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -13
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +0 -7
- package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/index.d.ts +0 -5
- package/dist/neutral/Escrow/util/secret/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +0 -33
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -22
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -10
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -6
- package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/index.d.ts +0 -4
- package/dist/neutral/Escrow/validators/common/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -5
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +0 -29
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -10
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +0 -21
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/index.d.ts +0 -11
- package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -5
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +0 -21
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/index.d.ts +0 -3
- package/dist/neutral/Escrow/validators/index.d.ts.map +0 -1
- package/dist/neutral/Invoice/Invoice.d.ts +0 -17
- package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
- package/dist/neutral/Invoice/index.d.ts +0 -2
- package/dist/neutral/Invoice/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -44
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +0 -5
- package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/index.d.ts +0 -3
- package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Schema.d.ts +0 -5
- package/dist/neutral/Payment/Instrument/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/index.d.ts +0 -3
- package/dist/neutral/Payment/Instrument/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Payload.d.ts +0 -30
- package/dist/neutral/Payment/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Schema.d.ts +0 -5
- package/dist/neutral/Payment/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +0 -29
- package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/Schema.d.ts +0 -5
- package/dist/neutral/Payment/Status/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/index.d.ts +0 -3
- package/dist/neutral/Payment/Status/index.d.ts.map +0 -1
- package/dist/neutral/Payment/index.d.ts +0 -5
- package/dist/neutral/Payment/index.d.ts.map +0 -1
- package/dist/neutral/Purchase/Payload.d.ts +0 -31
- package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
- package/dist/neutral/Purchase/Schema.d.ts +0 -5
- package/dist/neutral/Purchase/Schema.d.ts.map +0 -1
- package/dist/neutral/Purchase/index.d.ts +0 -3
- package/dist/neutral/Purchase/index.d.ts.map +0 -1
- package/dist/neutral/Receipt/Payload.d.ts +0 -30
- package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
- package/dist/neutral/Receipt/Schema.d.ts +0 -5
- package/dist/neutral/Receipt/Schema.d.ts.map +0 -1
- package/dist/neutral/Receipt/index.d.ts +0 -3
- package/dist/neutral/Receipt/index.d.ts.map +0 -1
- package/dist/neutral/Schema.d.ts +0 -5
- package/dist/neutral/Schema.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Config.d.ts +0 -10
- package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -5
- package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -25
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/index.d.ts +0 -4
- package/dist/neutral/Subtotal/Diviner/index.d.ts.map +0 -1
- package/dist/neutral/Subtotal/index.d.ts +0 -2
- package/dist/neutral/Subtotal/index.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Config.d.ts +0 -20
- package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Params.d.ts +0 -5
- package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts +0 -25
- package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/index.d.ts +0 -4
- package/dist/neutral/Total/Diviner/index.d.ts.map +0 -1
- package/dist/neutral/Total/index.d.ts +0 -2
- package/dist/neutral/Total/index.d.ts.map +0 -1
- package/dist/neutral/index.d.ts +0 -12
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/index.mjs +0 -1097
- package/dist/neutral/index.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getEscrowSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/getEscrowSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAA;AAGxD;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,EAElC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sCAAsC,CAAA;AACpD,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
-
import type { Id } from '@xyo-network/id-payload-plugin';
|
|
3
|
-
import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Creates an escrow intent (for a buyer or seller) using the supplied secret
|
|
6
|
-
* @param terms The payload describing the terms for the escrow
|
|
7
|
-
* @param escrowParty The party in the escrow transaction
|
|
8
|
-
* @param account The account(s) to create the escrow intent with
|
|
9
|
-
* @param secret The secret for the escrow principal party to use for the escrow. If
|
|
10
|
-
* not provided, a cryptographically random secret will be generated.
|
|
11
|
-
* @returns The escrow intent
|
|
12
|
-
*/
|
|
13
|
-
export declare const updateEscrowTermsWithSecret: (terms: EscrowTerms, escrowParty: EscrowParty, account: AccountInstance | AccountInstance[], secret?: Id) => Promise<[import("@xyo-network/boundwitness-model").Signed<{
|
|
14
|
-
schema: "network.xyo.boundwitness" & {
|
|
15
|
-
readonly __schema: true;
|
|
16
|
-
};
|
|
17
|
-
addresses: (Lowercase<string> & {
|
|
18
|
-
readonly __hex: true;
|
|
19
|
-
} & {
|
|
20
|
-
readonly __address: true;
|
|
21
|
-
})[];
|
|
22
|
-
payload_hashes: import("@xylabs/hex").BrandedHash[];
|
|
23
|
-
payload_schemas: import("@xyo-network/payload-model").BrandedSchema<string>[];
|
|
24
|
-
previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
|
|
25
|
-
$signatures: (import("@xylabs/hex").BrandedHex | null)[];
|
|
26
|
-
$destination?: (Lowercase<string> & {
|
|
27
|
-
readonly __hex: true;
|
|
28
|
-
} & {
|
|
29
|
-
readonly __address: true;
|
|
30
|
-
}) | undefined;
|
|
31
|
-
$sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
|
|
32
|
-
}>, import("@xyo-network/payload-model").Payload[], import("@xyo-network/payload-model").ModuleError[]]>;
|
|
33
|
-
//# sourceMappingURL=updateEscrowTermsWithSecret.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAE,EAAE,MAAM,gCAAgC,CAAA;AAGxD,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,WAAW,EAClB,aAAa,WAAW,EACxB,SAAS,eAAe,GAAG,eAAe,EAAE,EAC5C,SAAS,EAAE;;;;;;;;;;;;;;;;;;;wGAaZ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
|
package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
import type { PayloadValueExpression } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
|
|
6
|
-
* @param escrowTerms The escrow terms to validate
|
|
7
|
-
* @param propertyExpression The selector to get the property containing the moduleIdentifier(s) from the escrow terms
|
|
8
|
-
* @param moduleIdentifiers The list of allowed moduleIdentifiers
|
|
9
|
-
* @param required Is the property required to be present
|
|
10
|
-
* @returns True if the property value contains one of the valid moduleIdentifiers
|
|
11
|
-
*/
|
|
12
|
-
export declare const moduleIdentifiersContainsOneOf: (escrowTerms: EscrowTerms, propertyExpression: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Checks if property value of the escrow terms contains all of the valid moduleIdentifiers
|
|
15
|
-
* @param escrowTerms The escrow terms to validate
|
|
16
|
-
* @param selector The selector to get the property containing the moduleIdentifier(s) from the escrow terms
|
|
17
|
-
* @param moduleIdentifiers The list of allowed moduleIdentifiers
|
|
18
|
-
* @param required Is the property required to be present
|
|
19
|
-
* @returns True if the property value contains all of the valid moduleIdentifiers
|
|
20
|
-
*/
|
|
21
|
-
export declare const moduleIdentifiersContainsAllOf: (escrowTerms: EscrowTerms, selector: PayloadValueExpression<EscrowTerms, "appraisalAuthorities" | "buyer" | "escrowAgent" | "paymentAuthorities" | "seller">, moduleIdentifiers: ModuleIdentifier[], required?: boolean) => boolean;
|
|
22
|
-
//# sourceMappingURL=moduleInstanceValidators.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"moduleInstanceValidators.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,oBAAoB,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EAC3I,mBAAmB,gBAAgB,EAAE,EACrC,WAAU,OAAc,YAQzB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GACzC,aAAa,WAAW,EACxB,UAAU,sBAAsB,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,QAAQ,CAAC,EACjI,mBAAmB,gBAAgB,EAAE,EACrC,WAAU,OAAc,YAQzB,CAAA"}
|
package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowParty, EscrowTerms } from '../../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Returns a function that validates the escrow terms for the existence of the party secret signed by the party
|
|
6
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
7
|
-
* @returns A function that validates the escrow terms for the existence of the party secret signed by the party
|
|
8
|
-
*/
|
|
9
|
-
export declare const getPartySecretSignedValidator: (dictionary: Record<Hash, Payload>, party: EscrowParty) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
10
|
-
//# sourceMappingURL=getPartySecretSignedValidator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,8BAA8B,CAAC,WAAW,CAqB/I,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/SecretValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validateWithinWindow.d.ts","sourceRoot":"","sources":["../../../../../../src/Escrow/validators/common/TemporalValidators/validateWithinWindow.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAErD,eAAO,MAAM,oBAAoB,GAAI,OAAO,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAK,MAAmB,KAAG,OAG7F,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
-
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,gBAAgB,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* A function that validates the escrow terms for tbe existence of appraisals
|
|
6
|
-
* @returns True if the escrow terms contain appraisals, false otherwise
|
|
7
|
-
*/
|
|
8
|
-
export declare const appraisalsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
-
/**
|
|
10
|
-
* Returns a function that validates the escrow terms for appraisals which are from valid authorities
|
|
11
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
12
|
-
* @returns A function that validates the escrow terms for appraisals which are from valid authorities
|
|
13
|
-
*/
|
|
14
|
-
export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a function that validates the escrow terms for appraisals which are valid
|
|
17
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
18
|
-
* @param minimumExp The minium amount of time an estimate needs to be valid
|
|
19
|
-
* for in the future (so as not to expire before the escrow is complete)
|
|
20
|
-
* @returns A function that validates the escrow terms for appraisals which are valid
|
|
21
|
-
*/
|
|
22
|
-
export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, Payload>, minimumExp: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
23
|
-
/**
|
|
24
|
-
* Returns a function that validates the escrow terms to ensure that they contain an appraisal for each asset
|
|
25
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
26
|
-
* @returns A function that validates the escrow terms for appraisals
|
|
27
|
-
*/
|
|
28
|
-
export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
29
|
-
//# sourceMappingURL=appraisal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAIvC,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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA0BvI,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GACtC,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EACjC,YAAY,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAW/H,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* A function that validates the escrow terms for appraisalAuthorities
|
|
6
|
-
* @returns True if the escrow terms contain appraisalAuthorities, false otherwise
|
|
7
|
-
*/
|
|
8
|
-
export declare const appraisalAuthoritiesExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
-
export declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
10
|
-
//# sourceMappingURL=appraisalAuthorities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Returns a function that validates the escrow terms for assets
|
|
5
|
-
* @returns A function that validates the escrow terms for assets
|
|
6
|
-
*/
|
|
7
|
-
export declare const assetsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
-
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* A function that validates the escrow terms for buyer
|
|
5
|
-
* @returns True if the escrow terms contain buyer, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare const buyerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
-
//# sourceMappingURL=buyer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Returns a function that validates the escrow terms for buyerSecret
|
|
6
|
-
* @returns A function that validates the escrow terms for buyerSecret
|
|
7
|
-
*/
|
|
8
|
-
export declare const buyerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
-
/**
|
|
10
|
-
* Returns a function that validates the escrow terms for the existence of the buyerSecret in the dictionary
|
|
11
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
12
|
-
* @returns A function that validates the escrow terms for the existence of the buyerSecret in the dictionary
|
|
13
|
-
*/
|
|
14
|
-
export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
|
|
17
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
18
|
-
* @returns A function that validates the escrow terms for the existence of the buyerSecret signed by the buyer
|
|
19
|
-
*/
|
|
20
|
-
export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
21
|
-
//# sourceMappingURL=buyerSecret.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS5H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE3H,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './agent.ts';
|
|
2
|
-
export * from './appraisal.ts';
|
|
3
|
-
export * from './appraisalAuthorities.ts';
|
|
4
|
-
export * from './assets.ts';
|
|
5
|
-
export * from './buyer.ts';
|
|
6
|
-
export * from './buyerSecret.ts';
|
|
7
|
-
export * from './nbfExp.ts';
|
|
8
|
-
export * from './paymentAuthorities.ts';
|
|
9
|
-
export * from './seller.ts';
|
|
10
|
-
export * from './sellerSecret.ts';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
-
export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
|
-
//# sourceMappingURL=nbfExp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,qBAAqB,MAAM,KAAG,6BAA6B,CAAC,WAAW,CActH,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
-
//# sourceMappingURL=paymentAuthorities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKvD,eAAO,MAAM,qCAAqC,GAAI,SAAS,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ5H,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* A function that validates the escrow terms for seller
|
|
5
|
-
* @returns True if the escrow terms contain seller, false otherwise
|
|
6
|
-
*/
|
|
7
|
-
export declare const sellerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
|
-
//# sourceMappingURL=seller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAIvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
|
-
import type { EscrowTerms } from '../../Terms/index.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Returns a function that validates the escrow terms for sellerSecret
|
|
6
|
-
* @returns A function that validates the escrow terms for sellerSecret
|
|
7
|
-
*/
|
|
8
|
-
export declare const sellerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
9
|
-
/**
|
|
10
|
-
* Returns a function that validates the escrow terms for the existence of the sellerSecret in the dictionary
|
|
11
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
12
|
-
* @returns A function that validates the escrow terms for the existence of the sellerSecret in the dictionary
|
|
13
|
-
*/
|
|
14
|
-
export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, Payload>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns a function that validates the escrow terms for the existence of the sellerSecret signed by the seller
|
|
17
|
-
* @param dictionary Payload dictionary of the escrow terms
|
|
18
|
-
* @returns A function that validates the escrow terms for the existence of the sellerSecret signed by the seller
|
|
19
|
-
*/
|
|
20
|
-
export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, Payload>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
21
|
-
//# sourceMappingURL=sellerSecret.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAS7H,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,GAAI,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,8BAA8B,CAAC,WAAW,CAE5H,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Discount } from '../Discount/index.ts';
|
|
2
|
-
import type { Payment } from '../Payment/index.ts';
|
|
3
|
-
import type { Subtotal } from '../Subtotal/index.ts';
|
|
4
|
-
import type { Total } from '../Total/index.ts';
|
|
5
|
-
/**
|
|
6
|
-
* A tuple containing the subtotal, total, and payment for an invoice.
|
|
7
|
-
*/
|
|
8
|
-
export type StandardInvoice = [Subtotal, Total, Payment];
|
|
9
|
-
/**
|
|
10
|
-
* A tuple containing the subtotal, total, payment, and discount for an invoice.
|
|
11
|
-
*/
|
|
12
|
-
export type DiscountedInvoice = [...StandardInvoice, Discount];
|
|
13
|
-
/**
|
|
14
|
-
* An invoice.
|
|
15
|
-
*/
|
|
16
|
-
export type Invoice = StandardInvoice | DiscountedInvoice;
|
|
17
|
-
//# sourceMappingURL=Invoice.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../src/Invoice/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;AAExD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,GAAG,eAAe,EAAE,QAAQ,CAAC,CAAA;AAE9D;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Invoice/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import { PaymentCardSchema } from './Schema.ts';
|
|
3
|
-
/**
|
|
4
|
-
* The fields describing a payment card.
|
|
5
|
-
*/
|
|
6
|
-
export interface PaymentCardFields {
|
|
7
|
-
/**
|
|
8
|
-
* Card Number (PAN) of the payment card. This value is required to perform a payment.
|
|
9
|
-
*/
|
|
10
|
-
cardNumber: string;
|
|
11
|
-
/**
|
|
12
|
-
* The name as it appears on the payment card.
|
|
13
|
-
*/
|
|
14
|
-
cardholderName?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Card Verification Value (CVV/CVC) of the payment card.
|
|
17
|
-
*/
|
|
18
|
-
cvv: string;
|
|
19
|
-
/**
|
|
20
|
-
* Expiration month of the payment card.
|
|
21
|
-
*/
|
|
22
|
-
expMonth: number;
|
|
23
|
-
/**
|
|
24
|
-
* Expiration year of the payment card.
|
|
25
|
-
*/
|
|
26
|
-
expYear: number;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* A PaymentCard Payload
|
|
30
|
-
*/
|
|
31
|
-
export type PaymentCard = Payload<PaymentCardFields, PaymentCardSchema>;
|
|
32
|
-
/**
|
|
33
|
-
* Identity function for determine if an object is a PaymentCard
|
|
34
|
-
*/
|
|
35
|
-
export declare const isPaymentCard: (x?: unknown | null) => x is PaymentCard;
|
|
36
|
-
export declare const asPaymentCard: import("@xylabs/object").AsTypeFunction<PaymentCard>;
|
|
37
|
-
export declare const asOptionalPaymentCard: (value: import("@xylabs/promise").AnyNonPromise) => PaymentCard | undefined;
|
|
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 WithSources<PaymentCard>;
|
|
42
|
-
export declare const asPaymentCardWithSources: import("@xylabs/object").AsTypeFunction<WithSources<PaymentCard>>;
|
|
43
|
-
export declare const asOptionalPaymentCardWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<PaymentCard> | undefined;
|
|
44
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGtE,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,0CAAwD,CAAA;AAClF,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,6EAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,uDAAmE,CAAA;AACxG,eAAO,MAAM,wBAAwB,mEAA6E,CAAA;AAClH,eAAO,MAAM,gCAAgC,0FAAqF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;CAAoD,CAAA;AAClF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Payment/Instrument/Card/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Instrument/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB;;CAAgD,CAAA;AACpF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Instrument/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import type { SupportedCurrency } from '../Currency.ts';
|
|
3
|
-
import { PaymentSchema } from './Schema.ts';
|
|
4
|
-
export interface PaymentFields {
|
|
5
|
-
/**
|
|
6
|
-
* The amount paid
|
|
7
|
-
*/
|
|
8
|
-
amount: number;
|
|
9
|
-
/**
|
|
10
|
-
* The currency of the amount paid
|
|
11
|
-
*/
|
|
12
|
-
currency: SupportedCurrency;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A payment is a record of an amount to be paid
|
|
16
|
-
*/
|
|
17
|
-
export type Payment = PayloadWithSources<PaymentFields, PaymentSchema>;
|
|
18
|
-
/**
|
|
19
|
-
* Identity function for determine if an object is a Payment
|
|
20
|
-
*/
|
|
21
|
-
export declare const isPayment: (x?: unknown | null) => x is Payment;
|
|
22
|
-
export declare const asPayment: import("@xylabs/object").AsTypeFunction<Payment>;
|
|
23
|
-
export declare const asOptionalPayment: (value: import("@xylabs/promise").AnyNonPromise) => Payment | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Identity function for determine if an object is a Payment with sources
|
|
26
|
-
*/
|
|
27
|
-
export declare const isPaymentWithSources: (x?: unknown | null) => x is WithSources<Payment>;
|
|
28
|
-
export declare const asPaymentWithSources: import("@xylabs/object").AsTypeFunction<WithSources<Payment>>;
|
|
29
|
-
export declare const asOptionalPaymentWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<Payment> | undefined;
|
|
30
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payment/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,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;AACtE,eAAO,MAAM,SAAS,kDAA6C,CAAA;AACnE,eAAO,MAAM,iBAAiB,yEAAqD,CAAA;AAEnF;;GAEG;AACH,eAAO,MAAM,oBAAoB,mDAA2D,CAAA;AAC5F,eAAO,MAAM,oBAAoB,+DAAqE,CAAA;AACtG,eAAO,MAAM,4BAA4B,sFAA6E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Payment/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;CAA8C,CAAA;AACxE,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
import { PaymentStatusSchema } from './Schema.ts';
|
|
3
|
-
export interface PaymentStatusFields {
|
|
4
|
-
/**
|
|
5
|
-
* The result of the payment (i.e. declined)
|
|
6
|
-
*/
|
|
7
|
-
result?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The status of the payment (i.e. completed)
|
|
10
|
-
*/
|
|
11
|
-
status: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A payment status is the outcome of a payment attempt
|
|
15
|
-
*/
|
|
16
|
-
export type PaymentStatus = PayloadWithSources<PaymentStatusFields, PaymentStatusSchema>;
|
|
17
|
-
/**
|
|
18
|
-
* Identity function for determine if an object is a PaymentStatus
|
|
19
|
-
*/
|
|
20
|
-
export declare const isPaymentStatus: (x?: unknown | null) => x is PaymentStatus;
|
|
21
|
-
export declare const asPaymentStatus: import("@xylabs/object").AsTypeFunction<PaymentStatus>;
|
|
22
|
-
export declare const asOptionalPaymentStatus: (value: import("@xylabs/promise").AnyNonPromise) => PaymentStatus | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Identity function for determine if an object is a PaymentStatus with sources
|
|
25
|
-
*/
|
|
26
|
-
export declare const isPaymentStatusWithSources: (x?: unknown | null) => x is WithSources<PaymentStatus>;
|
|
27
|
-
export declare const asPaymentStatusWithSources: import("@xylabs/object").AsTypeFunction<WithSources<PaymentStatus>>;
|
|
28
|
-
export declare const asOptionalPaymentStatusWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<PaymentStatus> | undefined;
|
|
29
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Payload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAMjF,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;AACxF,eAAO,MAAM,eAAe,wDAAyD,CAAA;AACrF,eAAO,MAAM,uBAAuB,+EAAiE,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,0BAA0B,yDAAuE,CAAA;AAC9G,eAAO,MAAM,0BAA0B,qEAAiF,CAAA;AACxH,eAAO,MAAM,kCAAkC,4FAAyF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;CAA4C,CAAA;AAC5E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Payment/Status/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payment/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
|