@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.
Files changed (229) hide show
  1. package/package.json +25 -25
  2. package/src/Amount/Payload.ts +1 -1
  3. package/src/Billing/Address/Address.ts +1 -1
  4. package/src/Discount/Config.ts +2 -2
  5. package/src/Discount/Params.ts +1 -1
  6. package/src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts +1 -1
  7. package/src/Discount/Payload/Coupon/Coupons/FixedAmount.ts +1 -1
  8. package/src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts +1 -1
  9. package/src/Discount/Payload/Coupon/Coupons/FixedPrice.ts +1 -1
  10. package/src/Discount/Payload/Coupon/Payload.ts +1 -1
  11. package/src/Discount/Payload/Coupon/types/Condition.ts +1 -1
  12. package/src/Discount/Payload/Coupon/types/CouponFields.ts +1 -1
  13. package/src/Discount/Payload/Discount.ts +1 -1
  14. package/src/Escrow/Outcome.ts +2 -2
  15. package/src/Escrow/Terms/Terms.ts +2 -2
  16. package/src/Escrow/util/appraisal/getAppraisalsByAsset.ts +1 -1
  17. package/src/Escrow/util/appraisal/getSignaturesByAppraisal.ts +1 -1
  18. package/src/Escrow/util/secret/findEscrowPartySecretSignatures.ts +1 -1
  19. package/src/Escrow/util/secret/updateEscrowTermsWithSecret.ts +1 -1
  20. package/src/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.ts +1 -1
  21. package/src/Escrow/validators/escrow/appraisal.ts +2 -2
  22. package/src/Escrow/validators/escrow/appraisalAuthorities.ts +1 -1
  23. package/src/Escrow/validators/escrow/buyer.ts +1 -1
  24. package/src/Escrow/validators/escrow/buyerSecret.ts +2 -2
  25. package/src/Escrow/validators/escrow/seller.ts +1 -1
  26. package/src/Escrow/validators/escrow/sellerSecret.ts +2 -2
  27. package/src/Payment/Instrument/Card/Payload.ts +1 -1
  28. package/src/Payment/Payload.ts +1 -1
  29. package/src/Payment/Status/Payload.ts +1 -1
  30. package/src/Purchase/Payload.ts +2 -2
  31. package/src/Receipt/Payload.ts +1 -1
  32. package/src/Subtotal/Diviner/Config.ts +1 -1
  33. package/src/Subtotal/Diviner/Payload.ts +1 -1
  34. package/src/Total/Diviner/Config.ts +1 -1
  35. package/src/Total/Diviner/Payload.ts +1 -1
  36. package/dist/neutral/Amount/Iso4217Currency.d.ts +0 -14
  37. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +0 -1
  38. package/dist/neutral/Amount/Payload.d.ts +0 -27
  39. package/dist/neutral/Amount/Payload.d.ts.map +0 -1
  40. package/dist/neutral/Amount/index.d.ts +0 -3
  41. package/dist/neutral/Amount/index.d.ts.map +0 -1
  42. package/dist/neutral/Billing/Address/Address.d.ts +0 -42
  43. package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
  44. package/dist/neutral/Billing/Address/Schema.d.ts +0 -5
  45. package/dist/neutral/Billing/Address/Schema.d.ts.map +0 -1
  46. package/dist/neutral/Billing/Address/index.d.ts +0 -3
  47. package/dist/neutral/Billing/Address/index.d.ts.map +0 -1
  48. package/dist/neutral/Billing/Schema.d.ts +0 -5
  49. package/dist/neutral/Billing/Schema.d.ts.map +0 -1
  50. package/dist/neutral/Billing/index.d.ts +0 -3
  51. package/dist/neutral/Billing/index.d.ts.map +0 -1
  52. package/dist/neutral/Currency.d.ts +0 -2
  53. package/dist/neutral/Currency.d.ts.map +0 -1
  54. package/dist/neutral/Discount/Config.d.ts +0 -25
  55. package/dist/neutral/Discount/Config.d.ts.map +0 -1
  56. package/dist/neutral/Discount/Params.d.ts +0 -11
  57. package/dist/neutral/Discount/Params.d.ts.map +0 -1
  58. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -8
  59. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -1
  60. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -8
  61. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -1
  62. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -34
  63. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
  64. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +0 -4
  65. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -1
  66. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -26
  67. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
  68. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -26
  69. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
  70. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -26
  71. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
  72. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +0 -4
  73. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -1
  74. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -16
  75. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
  76. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +0 -5
  77. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +0 -1
  78. package/dist/neutral/Discount/Payload/Coupon/index.d.ts +0 -6
  79. package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +0 -1
  80. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +0 -16
  81. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
  82. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -16
  83. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
  84. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +0 -4
  85. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +0 -1
  86. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +0 -5
  87. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -1
  88. package/dist/neutral/Discount/Payload/Discount.d.ts +0 -25
  89. package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
  90. package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
  91. package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +0 -1
  92. package/dist/neutral/Discount/Payload/index.d.ts +0 -4
  93. package/dist/neutral/Discount/Payload/index.d.ts.map +0 -1
  94. package/dist/neutral/Discount/index.d.ts +0 -4
  95. package/dist/neutral/Discount/index.d.ts.map +0 -1
  96. package/dist/neutral/Escrow/Outcome.d.ts +0 -31
  97. package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
  98. package/dist/neutral/Escrow/Schema.d.ts +0 -5
  99. package/dist/neutral/Escrow/Schema.d.ts.map +0 -1
  100. package/dist/neutral/Escrow/Terms/Party.d.ts +0 -6
  101. package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
  102. package/dist/neutral/Escrow/Terms/PartySecret.d.ts +0 -6
  103. package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
  104. package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -73
  105. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
  106. package/dist/neutral/Escrow/Terms/index.d.ts +0 -4
  107. package/dist/neutral/Escrow/Terms/index.d.ts.map +0 -1
  108. package/dist/neutral/Escrow/index.d.ts +0 -6
  109. package/dist/neutral/Escrow/index.d.ts.map +0 -1
  110. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -12
  111. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
  112. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -13
  113. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
  114. package/dist/neutral/Escrow/util/appraisal/index.d.ts +0 -3
  115. package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +0 -1
  116. package/dist/neutral/Escrow/util/index.d.ts +0 -3
  117. package/dist/neutral/Escrow/util/index.d.ts.map +0 -1
  118. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +0 -31
  119. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
  120. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -13
  121. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
  122. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +0 -7
  123. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -1
  124. package/dist/neutral/Escrow/util/secret/index.d.ts +0 -5
  125. package/dist/neutral/Escrow/util/secret/index.d.ts.map +0 -1
  126. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +0 -33
  127. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
  128. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -2
  129. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -1
  130. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -22
  131. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
  132. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -10
  133. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
  134. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +0 -2
  135. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -1
  136. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +0 -2
  137. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -1
  138. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -6
  139. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -1
  140. package/dist/neutral/Escrow/validators/common/index.d.ts +0 -4
  141. package/dist/neutral/Escrow/validators/common/index.d.ts.map +0 -1
  142. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -5
  143. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
  144. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +0 -29
  145. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
  146. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -10
  147. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
  148. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +0 -8
  149. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
  150. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +0 -8
  151. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
  152. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +0 -21
  153. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
  154. package/dist/neutral/Escrow/validators/escrow/index.d.ts +0 -11
  155. package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +0 -1
  156. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
  157. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
  158. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -5
  159. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
  160. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +0 -8
  161. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
  162. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +0 -21
  163. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
  164. package/dist/neutral/Escrow/validators/index.d.ts +0 -3
  165. package/dist/neutral/Escrow/validators/index.d.ts.map +0 -1
  166. package/dist/neutral/Invoice/Invoice.d.ts +0 -17
  167. package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
  168. package/dist/neutral/Invoice/index.d.ts +0 -2
  169. package/dist/neutral/Invoice/index.d.ts.map +0 -1
  170. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -44
  171. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
  172. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +0 -5
  173. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +0 -1
  174. package/dist/neutral/Payment/Instrument/Card/index.d.ts +0 -3
  175. package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +0 -1
  176. package/dist/neutral/Payment/Instrument/Schema.d.ts +0 -5
  177. package/dist/neutral/Payment/Instrument/Schema.d.ts.map +0 -1
  178. package/dist/neutral/Payment/Instrument/index.d.ts +0 -3
  179. package/dist/neutral/Payment/Instrument/index.d.ts.map +0 -1
  180. package/dist/neutral/Payment/Payload.d.ts +0 -30
  181. package/dist/neutral/Payment/Payload.d.ts.map +0 -1
  182. package/dist/neutral/Payment/Schema.d.ts +0 -5
  183. package/dist/neutral/Payment/Schema.d.ts.map +0 -1
  184. package/dist/neutral/Payment/Status/Payload.d.ts +0 -29
  185. package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
  186. package/dist/neutral/Payment/Status/Schema.d.ts +0 -5
  187. package/dist/neutral/Payment/Status/Schema.d.ts.map +0 -1
  188. package/dist/neutral/Payment/Status/index.d.ts +0 -3
  189. package/dist/neutral/Payment/Status/index.d.ts.map +0 -1
  190. package/dist/neutral/Payment/index.d.ts +0 -5
  191. package/dist/neutral/Payment/index.d.ts.map +0 -1
  192. package/dist/neutral/Purchase/Payload.d.ts +0 -31
  193. package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
  194. package/dist/neutral/Purchase/Schema.d.ts +0 -5
  195. package/dist/neutral/Purchase/Schema.d.ts.map +0 -1
  196. package/dist/neutral/Purchase/index.d.ts +0 -3
  197. package/dist/neutral/Purchase/index.d.ts.map +0 -1
  198. package/dist/neutral/Receipt/Payload.d.ts +0 -30
  199. package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
  200. package/dist/neutral/Receipt/Schema.d.ts +0 -5
  201. package/dist/neutral/Receipt/Schema.d.ts.map +0 -1
  202. package/dist/neutral/Receipt/index.d.ts +0 -3
  203. package/dist/neutral/Receipt/index.d.ts.map +0 -1
  204. package/dist/neutral/Schema.d.ts +0 -5
  205. package/dist/neutral/Schema.d.ts.map +0 -1
  206. package/dist/neutral/Subtotal/Diviner/Config.d.ts +0 -10
  207. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
  208. package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -5
  209. package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
  210. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -25
  211. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
  212. package/dist/neutral/Subtotal/Diviner/index.d.ts +0 -4
  213. package/dist/neutral/Subtotal/Diviner/index.d.ts.map +0 -1
  214. package/dist/neutral/Subtotal/index.d.ts +0 -2
  215. package/dist/neutral/Subtotal/index.d.ts.map +0 -1
  216. package/dist/neutral/Total/Diviner/Config.d.ts +0 -20
  217. package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
  218. package/dist/neutral/Total/Diviner/Params.d.ts +0 -5
  219. package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
  220. package/dist/neutral/Total/Diviner/Payload.d.ts +0 -25
  221. package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
  222. package/dist/neutral/Total/Diviner/index.d.ts +0 -4
  223. package/dist/neutral/Total/Diviner/index.d.ts.map +0 -1
  224. package/dist/neutral/Total/index.d.ts +0 -2
  225. package/dist/neutral/Total/index.d.ts.map +0 -1
  226. package/dist/neutral/index.d.ts +0 -12
  227. package/dist/neutral/index.d.ts.map +0 -1
  228. package/dist/neutral/index.mjs +0 -1097
  229. package/dist/neutral/index.mjs.map +0 -1
@@ -1,7 +0,0 @@
1
- import type { Id } from '@xyo-network/id-payload-plugin';
2
- /**
3
- * Returns a cryptographically random secret to use for escrow
4
- * @returns The escrow secret
5
- */
6
- export declare const getEscrowSecret: () => Id;
7
- //# sourceMappingURL=getEscrowSecret.d.ts.map
@@ -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,5 +0,0 @@
1
- export * from './createEscrowIntent.ts';
2
- export * from './findEscrowPartySecretSignatures.ts';
3
- export * from './getEscrowSecret.ts';
4
- export * from './updateEscrowTermsWithSecret.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -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,2 +0,0 @@
1
- export * from './moduleInstanceValidators.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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"}
@@ -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,2 +0,0 @@
1
- export * from './getPartySecretSignedValidator.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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,2 +0,0 @@
1
- export * from './validateWithinWindow.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,6 +0,0 @@
1
- export type Windowed = {
2
- exp?: number;
3
- nbf?: number;
4
- };
5
- export declare const validateWithinWindow: (value: Windowed, exp: number, nbf?: number) => boolean;
6
- //# sourceMappingURL=validateWithinWindow.d.ts.map
@@ -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,4 +0,0 @@
1
- export * from './ModuleInstanceValidators/index.ts';
2
- export * from './SecretValidators/index.ts';
3
- export * from './TemporalValidators/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -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,3 +0,0 @@
1
- export * from './common/index.ts';
2
- export * from './escrow/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -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,2 +0,0 @@
1
- export * from './Invoice.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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,5 +0,0 @@
1
- export declare const PaymentCardSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PaymentCardSchema = typeof PaymentCardSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -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,5 +0,0 @@
1
- export declare const PaymentInstrumentSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PaymentInstrumentSchema = typeof PaymentInstrumentSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 +0,0 @@
1
- export * from './Card/index.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -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,5 +0,0 @@
1
- export declare const PaymentSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PaymentSchema = typeof PaymentSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -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,5 +0,0 @@
1
- export declare const PaymentStatusSchema: string & {
2
- readonly __schema: true;
3
- };
4
- export type PaymentStatusSchema = typeof PaymentStatusSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 +0,0 @@
1
- export * from './Payload.ts';
2
- export * from './Schema.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -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,5 +0,0 @@
1
- export * from './Instrument/index.ts';
2
- export * from './Payload.ts';
3
- export * from './Schema.ts';
4
- export * from './Status/index.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -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"}