@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,34 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- import { SchemaSchema } from '@xyo-network/schema-payload-plugin';
3
- import type { Condition } from '../types/index.ts';
4
- export type BuyerCondition = Condition & {
5
- definition: {
6
- contains: {
7
- properties: {
8
- buyer: {
9
- items: {
10
- const: Address;
11
- type: 'string';
12
- };
13
- minItems: 1;
14
- type: 'array';
15
- };
16
- schema: {
17
- const: 'network.xyo.escrow.terms';
18
- type: 'string';
19
- };
20
- };
21
- required: ['schema', 'buyer'];
22
- type: 'object';
23
- };
24
- type: 'array';
25
- };
26
- schema: SchemaSchema;
27
- };
28
- /**
29
- * Creates a coupon condition that requires a specific buyer
30
- * @param buyer The buyer's address
31
- * @returns A coupon condition that requires a specific buyer
32
- */
33
- export declare const createConditionForRequiredBuyer: (buyer: Address) => BuyerCondition;
34
- //# sourceMappingURL=BuyerCondition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BuyerCondition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL,KAAK,EAAE,OAAO,CAAA;wBACd,IAAI,EAAE,QAAQ,CAAA;qBACf,CAAA;oBACD,QAAQ,EAAE,CAAC,CAAA;oBACX,IAAI,EAAE,OAAO,CAAA;iBACd,CAAA;gBACD,MAAM,EAAE;oBAAE,KAAK,EAAE,0BAA0B,CAAC;oBAAC,IAAI,EAAE,QAAQ,CAAA;iBAAE,CAAA;aAC9D,CAAA;YACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;YAC7B,IAAI,EAAE,QAAQ,CAAA;SACf,CAAA;QACD,IAAI,EAAE,OAAO,CAAA;KACd,CAAA;IACD,MAAM,EAAE,YAAY,CAAA;CACrB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,GAAI,OAAO,OAAO,KAAG,cAiBhE,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './AppraisalAmountCondition.ts';
2
- export * from './AssetQuantityCondition.ts';
3
- export * from './BuyerCondition.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA"}
@@ -1,26 +0,0 @@
1
- import type { Payload, WithSources } from '@xyo-network/payload-model';
2
- import type { AmountFields } from '../../../../Amount/index.ts';
3
- import type { CouponFields } from '../types/index.ts';
4
- export declare const FixedAmountCouponSchema: string & {
5
- readonly __schema: true;
6
- };
7
- export type FixedAmountCouponSchema = typeof FixedAmountCouponSchema;
8
- export interface FixedAmountCouponFields extends CouponFields, AmountFields {
9
- }
10
- /**
11
- * A coupon that provides a fixed discount amount
12
- */
13
- export type FixedAmountCoupon = Payload<FixedAmountCouponFields, FixedAmountCouponSchema>;
14
- /**
15
- * Identity function for determining if an object is an FixedAmountCoupon
16
- */
17
- export declare const isFixedAmountCoupon: (x?: unknown | null) => x is FixedAmountCoupon;
18
- export declare const asFixedAmountCoupon: import("@xylabs/object").AsTypeFunction<FixedAmountCoupon>;
19
- export declare const asOptionalFixedAmountCoupon: (value: import("@xylabs/promise").AnyNonPromise) => FixedAmountCoupon | undefined;
20
- /**
21
- * Identity function for determining if an object is an FixedAmountCoupon with sources
22
- */
23
- export declare const isFixedAmountCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedAmountCoupon>>;
24
- export declare const asFixedAmountCouponWithSources: import("@xylabs/object").AsTypeFunction<WithSources<FixedAmountCoupon>>;
25
- export declare const asOptionalFixedAmountCouponWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<FixedAmountCoupon> | undefined;
26
- //# sourceMappingURL=FixedAmount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FixedAmount.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedAmount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAOtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,uBAAuB;;CAAiD,CAAA;AACrF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,YAAY;CAAG;AAE9E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB,gDAAoE,CAAA;AACpG,eAAO,MAAM,mBAAmB,4DAAiE,CAAA;AACjG,eAAO,MAAM,2BAA2B,mFAAyE,CAAA;AAEjH;;EAEE;AACF,eAAO,MAAM,8BAA8B,0EAA4F,CAAA;AACvI,eAAO,MAAM,8BAA8B,yEAAyF,CAAA;AACpI,eAAO,MAAM,sCAAsC,gGAAiG,CAAA"}
@@ -1,26 +0,0 @@
1
- import type { Payload, WithSources } from '@xyo-network/payload-model';
2
- import type { CouponFields } from '../types/index.ts';
3
- export declare const FixedPercentageCouponSchema: string & {
4
- readonly __schema: true;
5
- };
6
- export type FixedPercentageCouponSchema = typeof FixedPercentageCouponSchema;
7
- export interface FixedPercentageCouponFields extends CouponFields {
8
- percentage: number;
9
- }
10
- /**
11
- * A coupon that provides a fixed discount amount
12
- */
13
- export type FixedPercentageCoupon = Payload<FixedPercentageCouponFields, FixedPercentageCouponSchema>;
14
- /**
15
- * Identity function for determining if an object is an FixedPercentageCoupon
16
- */
17
- export declare const isFixedPercentageCoupon: (x?: unknown | null) => x is FixedPercentageCoupon;
18
- export declare const asFixedPercentageCoupon: import("@xylabs/object").AsTypeFunction<FixedPercentageCoupon>;
19
- export declare const asOptionalFixedPercentageCoupon: (value: import("@xylabs/promise").AnyNonPromise) => FixedPercentageCoupon | undefined;
20
- /**
21
- * Identity function for determining if an object is an FixedPercentageCoupon with sources
22
- */
23
- export declare const isFixedPercentageCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedPercentageCoupon>>;
24
- export declare const asFixedPercentageCouponWithSources: import("@xylabs/object").AsTypeFunction<WithSources<FixedPercentageCoupon>>;
25
- export declare const asOptionalFixedPercentageCouponWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<FixedPercentageCoupon> | undefined;
26
- //# sourceMappingURL=FixedPercentage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FixedPercentage.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPercentage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAQtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,2BAA2B;;CAAqD,CAAA;AAC7F,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,2BAA2B,EAAE,2BAA2B,CAAC,CAAA;AAErG;;GAEG;AACH,eAAO,MAAM,uBAAuB,oDAA4E,CAAA;AAChH,eAAO,MAAM,uBAAuB,gEAAyE,CAAA;AAC7G,eAAO,MAAM,+BAA+B,uFAAiF,CAAA;AAE7H;;EAEE;AACF,eAAO,MAAM,kCAAkC,8EAAoG,CAAA;AACnJ,eAAO,MAAM,kCAAkC,6EAAiG,CAAA;AAChJ,eAAO,MAAM,0CAA0C,oGAAyG,CAAA"}
@@ -1,26 +0,0 @@
1
- import type { Payload, WithSources } from '@xyo-network/payload-model';
2
- import type { AmountFields } from '../../../../Amount/index.ts';
3
- import type { CouponFields } from '../types/index.ts';
4
- export declare const FixedPriceCouponSchema: string & {
5
- readonly __schema: true;
6
- };
7
- export type FixedPriceCouponSchema = typeof FixedPriceCouponSchema;
8
- export interface FixedPriceCouponFields extends CouponFields, AmountFields {
9
- }
10
- /**
11
- * A coupon that provides a fixed total price
12
- */
13
- export type FixedPriceCoupon = Payload<FixedPriceCouponFields, FixedPriceCouponSchema>;
14
- /**
15
- * Identity function for determining if an object is an FixedPriceCoupon
16
- */
17
- export declare const isFixedPriceCoupon: (x?: unknown | null) => x is FixedPriceCoupon;
18
- export declare const asFixedPriceCoupon: import("@xylabs/object").AsTypeFunction<FixedPriceCoupon>;
19
- export declare const asOptionalFixedPriceCoupon: (value: import("@xylabs/promise").AnyNonPromise) => FixedPriceCoupon | undefined;
20
- /**
21
- * Identity function for determining if an object is an FixedPriceCoupon with sources
22
- */
23
- export declare const isFixedPriceCouponWithSources: (x?: unknown | null) => x is WithSources<WithSources<FixedPriceCoupon>>;
24
- export declare const asFixedPriceCouponWithSources: import("@xylabs/object").AsTypeFunction<WithSources<FixedPriceCoupon>>;
25
- export declare const asOptionalFixedPriceCouponWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<FixedPriceCoupon> | undefined;
26
- //# sourceMappingURL=FixedPrice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FixedPrice.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/FixedPrice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAOtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,sBAAsB;;CAAgD,CAAA;AACnF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,sBAAuB,SAAQ,YAAY,EAAE,YAAY;CAAI;AAE9E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,kBAAkB,+CAAkE,CAAA;AACjG,eAAO,MAAM,kBAAkB,2DAA+D,CAAA;AAC9F,eAAO,MAAM,0BAA0B,kFAAuE,CAAA;AAE9G;;EAEE;AACF,eAAO,MAAM,6BAA6B,yEAA0F,CAAA;AACpI,eAAO,MAAM,6BAA6B,wEAAuF,CAAA;AACjI,eAAO,MAAM,qCAAqC,+FAA+F,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './FixedAmount.ts';
2
- export * from './FixedPercentage.ts';
3
- export * from './FixedPrice.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Coupons/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA"}
@@ -1,16 +0,0 @@
1
- import type { FixedAmountCoupon, FixedPercentageCoupon, FixedPriceCoupon } from './Coupons/index.ts';
2
- /**
3
- * The type of coupons
4
- */
5
- export type Coupon = FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
6
- /**
7
- * Identity function for determining if an object is an Coupon
8
- */
9
- export declare const isCoupon: (x?: unknown | null) => x is FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
10
- export declare const asCoupon: import("@xylabs/object").AsTypeFunction<FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>;
11
- /**
12
- * Identity function for determining if an object is an Coupon with sources
13
- */
14
- export declare const isCouponWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>>;
15
- export declare const asCouponWithSources: import("@xylabs/object").AsTypeFunction<import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedAmountCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPercentageCoupon>> | import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").WithSources<FixedPriceCoupon>>>;
16
- //# sourceMappingURL=Payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/Payload.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAAE,qBAAqB,EAAE,gBAAgB,EAC3D,MAAM,oBAAoB,CAAA;AAQ3B;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,iBAAiB,GACf,qBAAqB,GACrB,gBAAgB,CAAA;AAEtB;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,IAAI,OAAO,GAAG,IAAI,sEAGjB,CAAA;AAC1B,eAAO,MAAM,QAAQ,uGAAmC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,OAAO,GAAG,IAAI,kXAGjB,CAAA;AACrC,eAAO,MAAM,mBAAmB,mZAA8C,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const CouponSchema: "network.xyo.payments.coupon" & {
2
- readonly __schema: true;
3
- };
4
- export type CouponSchema = typeof CouponSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;CAAgD,CAAA;AACzE,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA"}
@@ -1,6 +0,0 @@
1
- export * from './Conditions/index.ts';
2
- export * from './Coupons/index.ts';
3
- export * from './Payload.ts';
4
- export * from './Schema.ts';
5
- export * from './types/index.ts';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA"}
@@ -1,16 +0,0 @@
1
- import type { SchemaPayload } from '@xyo-network/schema-payload-plugin';
2
- /**
3
- * The payloads that can be used as conditions for a coupon
4
- */
5
- export type Condition = SchemaPayload;
6
- /**
7
- * Identity function for determining if an object is a Condition payload
8
- */
9
- export declare const isCondition: (x?: unknown | null) => x is SchemaPayload;
10
- export declare const asCondition: import("@xylabs/object").AsTypeFunction<SchemaPayload>;
11
- /**
12
- * Identity function for determining if an object is a Condition payload with sources
13
- */
14
- export declare const isConditionWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<SchemaPayload>;
15
- export declare const asConditionWithSources: import("@xylabs/object").AsTypeFunction<import("@xyo-network/payload-model").WithSources<SchemaPayload>>;
16
- //# sourceMappingURL=Condition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/Condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGvE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,WAAW,4CAAiD,CAAA;AACzE,eAAO,MAAM,WAAW,wDAAsC,CAAA;AAE9D;;EAEE;AACF,eAAO,MAAM,sBAAsB,8FAA4D,CAAA;AAC/F,eAAO,MAAM,sBAAsB,0GAAiD,CAAA"}
@@ -1,16 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { DurationFields } from '@xyo-network/xns-record-payload-plugins';
3
- /**
4
- * The fields that are common across all coupons
5
- */
6
- export interface CouponFields extends DurationFields {
7
- /**
8
- * The conditions that must be met in order for this coupon to be applied
9
- */
10
- conditions?: Hash[];
11
- /**
12
- * Whether or not this discount can be stacked with other discounts
13
- */
14
- stackable?: boolean;
15
- }
16
- //# sourceMappingURL=CouponFields.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CouponFields.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/CouponFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAE7E;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,EAAE,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
@@ -1,4 +0,0 @@
1
- export * from './Condition.ts';
2
- export * from './CouponFields.ts';
3
- export * from './isStackable.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Identity function for determining if coupon is stackable
3
- */
4
- export declare const isStackable: (x?: unknown | null) => boolean | undefined;
5
- //# sourceMappingURL=isStackable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isStackable.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/isStackable.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,IAAI,OAAO,GAAG,IAAI,wBAA2D,CAAA"}
@@ -1,25 +0,0 @@
1
- import type { Payload, WithSources } from '@xyo-network/payload-model';
2
- import type { AmountFields } from '../../Amount/index.ts';
3
- export declare const DiscountSchema: "network.xyo.payments.discount" & {
4
- readonly __schema: true;
5
- };
6
- export type DiscountSchema = typeof DiscountSchema;
7
- export interface DiscountFields extends AmountFields {
8
- }
9
- /**
10
- * The result of a discount
11
- */
12
- export type Discount = Payload<DiscountFields, DiscountSchema>;
13
- /**
14
- * Identity function for determining if an object is an Discount
15
- */
16
- export declare const isDiscount: (x?: unknown | null) => x is Discount;
17
- export declare const asDiscount: import("@xylabs/object").AsTypeFunction<Discount>;
18
- export declare const asOptionalDiscount: (value: import("@xylabs/promise").AnyNonPromise) => Discount | undefined;
19
- /**
20
- * Identity function for determining if an object is an Discount with sources
21
- */
22
- export declare const isDiscountWithSources: (x?: unknown | null) => x is WithSources<Discount>;
23
- export declare const asDiscountWithSources: import("@xylabs/object").AsTypeFunction<WithSources<Discount>>;
24
- export declare const asOptionalDiscountWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<Discount> | undefined;
25
- //# sourceMappingURL=Discount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/Discount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAOtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,eAAO,MAAM,cAAc;;CAAkD,CAAA;AAC7E,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA;AAElD,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAI;AAExD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,uCAAkD,CAAA;AACzE,eAAO,MAAM,UAAU,mDAA+C,CAAA;AACtE,eAAO,MAAM,kBAAkB,0EAAuD,CAAA;AAEtF;;GAEG;AACH,eAAO,MAAM,qBAAqB,oDAA6D,CAAA;AAC/F,eAAO,MAAM,qBAAqB,gEAAuE,CAAA;AACzG,eAAO,MAAM,6BAA6B,uFAA+E,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { Discount } from './Discount.ts';
2
- export declare const NO_DISCOUNT: Discount;
3
- //# sourceMappingURL=NoDiscount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NoDiscount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/NoDiscount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,eAAO,MAAM,WAAW,EAAE,QAIzB,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Coupon/index.ts';
2
- export * from './Discount.ts';
3
- export * from './NoDiscount.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Config.ts';
2
- export * from './Params.ts';
3
- export * from './Payload/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Discount/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA"}
@@ -1,31 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { PayloadWithSources, WithSources } from '@xyo-network/payload-model';
3
- export declare const EscrowOutcomeSchema: string & {
4
- readonly __schema: true;
5
- };
6
- export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
7
- /**
8
- * The possible outcomes for an escrow
9
- */
10
- export type EscrowOutcomes = 'fulfilled' | 'expired';
11
- export interface EscrowOutcomeFields {
12
- outcome: EscrowOutcomes;
13
- terms: Hash;
14
- }
15
- /**
16
- * The terms of an escrow
17
- */
18
- export type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>;
19
- /**
20
- * Identity function for determining if an object is an EscrowOutcome
21
- */
22
- export declare const isEscrowOutcome: (x?: unknown | null) => x is EscrowOutcome;
23
- export declare const asEscrowOutcome: import("@xylabs/object").AsTypeFunction<EscrowOutcome>;
24
- export declare const asOptionalEscrowOutcome: (value: import("@xylabs/promise").AnyNonPromise) => EscrowOutcome | undefined;
25
- /**
26
- * Identity function for determining if an object is an EscrowOutcome with sources
27
- */
28
- export declare const isEscrowOutcomeWithSources: (x?: unknown | null) => x is WithSources<EscrowOutcome>;
29
- export declare const asEscrowOutcomeWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<EscrowOutcome> | undefined;
30
- export declare const asOptionalEscrowOutcomeWithSources: (value: import("@xylabs/promise").AnyNonPromise) => WithSources<EscrowOutcome> | undefined;
31
- //# sourceMappingURL=Outcome.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Outcome.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Outcome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AASjF,eAAO,MAAM,mBAAmB;;CAA4C,CAAA;AAC5E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;IACvB,KAAK,EAAE,IAAI,CAAA;CACZ;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,4FAAyF,CAAA;AAChI,eAAO,MAAM,kCAAkC,4FAAyF,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const EscrowSchema: "network.xyo.escrow" & {
2
- readonly __schema: true;
3
- };
4
- export type EscrowSchema = typeof EscrowSchema;
5
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;CAAuC,CAAA;AAChE,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { EscrowTermsFields } from './Terms.ts';
2
- /**
3
- * The party in an escrow transaction
4
- */
5
- export type EscrowParty = keyof Pick<EscrowTermsFields, 'buyer' | 'seller'>;
6
- //# sourceMappingURL=Party.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Party.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Party.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { EscrowTermsFields } from './Terms.ts';
2
- /**
3
- * The party's secret in an escrow transaction
4
- */
5
- export type EscrowPartySecret = keyof Pick<EscrowTermsFields, 'buyerSecret' | 'sellerSecret'>;
6
- //# sourceMappingURL=PartySecret.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PartySecret.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/PartySecret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,cAAc,CAAC,CAAA"}
@@ -1,73 +0,0 @@
1
- import type { Address, Hash } from '@xylabs/hex';
2
- import type { Payload } from '@xyo-network/payload-model';
3
- export declare const EscrowTermsSchema: string & {
4
- readonly __schema: true;
5
- };
6
- export type EscrowTermsSchema = typeof EscrowTermsSchema;
7
- export interface EscrowTermsFields {
8
- /**
9
- * The trusted estimators for the worth of the things being sold
10
- */
11
- appraisalAuthorities: Address[];
12
- /**
13
- * The estimated worths of the things being sold
14
- */
15
- appraisals: Hash[];
16
- /**
17
- * The things being sold
18
- */
19
- assets: Hash[];
20
- /**
21
- * The buyer
22
- */
23
- buyer: Address[];
24
- /**
25
- * The buyer
26
- */
27
- buyerSecret: Hash;
28
- /**
29
- * Any discounts (coupons, vouchers, credits, etc.) to be applied to the escrow
30
- */
31
- discounts: Hash[];
32
- /**
33
- * The escrow agent responsible for the escrow
34
- */
35
- escrowAgent: Address;
36
- /**
37
- * The time the escrow expires
38
- */
39
- exp: number;
40
- /**
41
- * The time the escrow starts
42
- */
43
- nbf: number;
44
- /**
45
- * The trusted payment authorities
46
- */
47
- paymentAuthorities: Address[];
48
- /**
49
- * The seller
50
- */
51
- seller: Address[];
52
- /**
53
- * The seller
54
- */
55
- sellerSecret: Hash;
56
- }
57
- /**
58
- * The terms of an escrow
59
- */
60
- export type EscrowTerms = Payload<Partial<EscrowTermsFields>, EscrowTermsSchema>;
61
- /**
62
- * Identity function for determining if an object is an EscrowTerms
63
- */
64
- export declare const isEscrowTerms: (x?: unknown | null) => x is EscrowTerms;
65
- export declare const asEscrowTerms: import("@xylabs/object").AsTypeFunction<EscrowTerms>;
66
- export declare const asOptionalEscrowTerms: (value: import("@xylabs/promise").AnyNonPromise) => EscrowTerms | undefined;
67
- /**
68
- * Identity function for determining if an object is an EscrowTerms with sources
69
- */
70
- export declare const isEscrowTermsWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<EscrowTerms>;
71
- export declare const asEscrowTermsWithSources: import("@xylabs/object").AsTypeFunction<EscrowTerms>;
72
- export declare const asOptionalEscrowTermsWithSources: (value: import("@xylabs/promise").AnyNonPromise) => EscrowTerms | undefined;
73
- //# sourceMappingURL=Terms.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Terms.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/Terms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAOzD,eAAO,MAAM,iBAAiB;;CAA0C,CAAA;AACxE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAA;AAGxD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,oBAAoB,EAAE,OAAO,EAAE,CAAA;IAC/B;;OAEG;IACH,UAAU,EAAE,IAAI,EAAE,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,IAAI,EAAE,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,IAAI,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,IAAI,EAAE,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,kBAAkB,EAAE,OAAO,EAAE,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,CAAA;AAEhF;;GAEG;AACH,eAAO,MAAM,aAAa,0CAAwD,CAAA;AAClF,eAAO,MAAM,aAAa,sDAAqD,CAAA;AAC/E,eAAO,MAAM,qBAAqB,6EAA6D,CAAA;AAE/F;;GAEG;AACH,eAAO,MAAM,wBAAwB,4FAAmE,CAAA;AACxG,eAAO,MAAM,wBAAwB,sDAAgE,CAAA;AACrG,eAAO,MAAM,gCAAgC,6EAAwE,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Party.ts';
2
- export * from './PartySecret.ts';
3
- export * from './Terms.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/Terms/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA"}
@@ -1,6 +0,0 @@
1
- export * from './Outcome.ts';
2
- export * from './Schema.ts';
3
- export * from './Terms/index.ts';
4
- export * from './util/index.ts';
5
- export * from './validators/index.ts';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Escrow/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA"}
@@ -1,12 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { HashLeaseEstimate } from '@xyo-network/diviner-hash-lease';
3
- import type { Payload, WithSources } from '@xyo-network/payload-model';
4
- import type { EscrowTerms } from '../../Terms/index.ts';
5
- /**
6
- * Returns a dictionary of asset hashes and their associated appraisals
7
- * @param terms The escrow terms
8
- * @param dictionary The dictionary of payloads associated with the escrow terms
9
- * @returns A dictionary of asset hashes and their associated appraisals
10
- */
11
- export declare const getAppraisalsByAsset: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, WithSources<HashLeaseEstimate>[]>;
12
- //# sourceMappingURL=getAppraisalsByAsset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAppraisalsByAsset.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getAppraisalsByAsset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAExE,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAEtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,WAAW,EAAE,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC,EAAE,CAkBzI,CAAA"}
@@ -1,13 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { BoundWitness } from '@xyo-network/boundwitness-model';
3
- import type { Payload } from '@xyo-network/payload-model';
4
- import type { EscrowTerms } from '../../Terms/index.ts';
5
- /**
6
- * Returns a dictionary of appraisals and their associated bound witnesses which are signed by
7
- * valid appraisal authorities from the escrow terms
8
- * @param terms The escrow terms
9
- * @param dictionary The diction of payloads associated with the escrow terms
10
- * @returns A dictionary of appraisals and their associated bound witnesses
11
- */
12
- export declare const getSignaturesByAppraisal: (terms: EscrowTerms, dictionary: Record<Hash, Payload>) => Record<Hash, BoundWitness[]>;
13
- //# sourceMappingURL=getSignaturesByAppraisal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getSignaturesByAppraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/getSignaturesByAppraisal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,WAAW,EAClB,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAChC,MAAM,CAAC,IAAI,EAAE,YAAY,EAAE,CAsB7B,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './getAppraisalsByAsset.ts';
2
- export * from './getSignaturesByAppraisal.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/appraisal/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './appraisal/index.ts';
2
- export * from './secret/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Escrow/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA"}
@@ -1,31 +0,0 @@
1
- import type { AccountInstance } from '@xyo-network/account-model';
2
- import type { Id } from '@xyo-network/id-payload-plugin';
3
- import type { 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 secret The secret for the escrow principal party to use for the escrow
8
- * @param account The account to create the escrow intent with
9
- * @returns The escrow intent
10
- */
11
- export declare const createEscrowIntentWithSecret: (terms: EscrowTerms, secret: Id, account: AccountInstance) => Promise<[import("@xyo-network/boundwitness-model").Signed<{
12
- schema: "network.xyo.boundwitness" & {
13
- readonly __schema: true;
14
- };
15
- addresses: (Lowercase<string> & {
16
- readonly __hex: true;
17
- } & {
18
- readonly __address: true;
19
- })[];
20
- payload_hashes: import("@xylabs/hex").BrandedHash[];
21
- payload_schemas: import("@xyo-network/payload-model").BrandedSchema<string>[];
22
- previous_hashes: (import("@xylabs/hex").BrandedHash | null)[];
23
- $signatures: (import("@xylabs/hex").BrandedHex | null)[];
24
- $destination?: (Lowercase<string> & {
25
- readonly __hex: true;
26
- } & {
27
- readonly __address: true;
28
- }) | undefined;
29
- $sourceQuery?: import("@xylabs/hex").BrandedHash | undefined;
30
- }>, import("@xyo-network/payload-model").Payload[], import("@xyo-network/payload-model").ModuleError[]]>;
31
- //# sourceMappingURL=createEscrowIntent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createEscrowIntent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/createEscrowIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAA;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,GAAU,OAAO,WAAW,EAAE,QAAQ,EAAE,EAAE,SAAS,eAAe;;;;;;;;;;;;;;;;;;;wGAG1G,CAAA"}
@@ -1,13 +0,0 @@
1
- import type { Hash } from '@xylabs/hex';
2
- import type { BoundWitness } from '@xyo-network/boundwitness-model';
3
- import type { Payload } from '@xyo-network/payload-model';
4
- import type { EscrowParty, EscrowTerms } from '../../Terms/index.ts';
5
- /**
6
- * Returns an array of BoundWitnesses containing the secret signed by all the parties
7
- * @param terms The escrow terms
8
- * @param dictionary A dictionary of all the payloads associated with the escrow
9
- * @param party The party to get the secret signatures for
10
- * @returns An array of BoundWitnesses containing the secret signed by all the parties
11
- */
12
- export declare const findEscrowPartySecretSignatures: (terms: EscrowTerms, dictionary: Record<Hash, Payload>, party: EscrowParty) => BoundWitness[];
13
- //# sourceMappingURL=findEscrowPartySecretSignatures.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"findEscrowPartySecretSignatures.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/util/secret/findEscrowPartySecretSignatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EACV,WAAW,EAAqB,WAAW,EAC5C,MAAM,sBAAsB,CAAA;AAW7B;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,GAAI,OAAO,WAAW,EAAE,YAAY,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,WAAW,KAAG,YAAY,EAqBvI,CAAA"}