@xyo-network/payment-payload-plugins 7.0.2 → 7.0.4

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 (195) hide show
  1. package/dist/neutral/index.d.ts +1 -11
  2. package/dist/neutral/index.d.ts.map +1 -1
  3. package/dist/neutral/index.mjs +2 -1298
  4. package/dist/neutral/index.mjs.map +4 -4
  5. package/package.json +53 -49
  6. package/dist/neutral/Amount/Iso4217Currency.d.ts +0 -14
  7. package/dist/neutral/Amount/Iso4217Currency.d.ts.map +0 -1
  8. package/dist/neutral/Amount/Payload.d.ts +0 -68
  9. package/dist/neutral/Amount/Payload.d.ts.map +0 -1
  10. package/dist/neutral/Amount/index.d.ts +0 -3
  11. package/dist/neutral/Amount/index.d.ts.map +0 -1
  12. package/dist/neutral/Billing/Address/Address.d.ts +0 -112
  13. package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
  14. package/dist/neutral/Billing/Address/Schema.d.ts +0 -5
  15. package/dist/neutral/Billing/Address/Schema.d.ts.map +0 -1
  16. package/dist/neutral/Billing/Address/index.d.ts +0 -3
  17. package/dist/neutral/Billing/Address/index.d.ts.map +0 -1
  18. package/dist/neutral/Billing/Schema.d.ts +0 -5
  19. package/dist/neutral/Billing/Schema.d.ts.map +0 -1
  20. package/dist/neutral/Billing/index.d.ts +0 -3
  21. package/dist/neutral/Billing/index.d.ts.map +0 -1
  22. package/dist/neutral/Currency.d.ts +0 -6
  23. package/dist/neutral/Currency.d.ts.map +0 -1
  24. package/dist/neutral/Discount/Config.d.ts +0 -23
  25. package/dist/neutral/Discount/Config.d.ts.map +0 -1
  26. package/dist/neutral/Discount/Params.d.ts +0 -9
  27. package/dist/neutral/Discount/Params.d.ts.map +0 -1
  28. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -8
  29. package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -1
  30. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -8
  31. package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -1
  32. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -34
  33. package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
  34. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +0 -4
  35. package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -1
  36. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -92
  37. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
  38. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -85
  39. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
  40. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -92
  41. package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
  42. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +0 -4
  43. package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -1
  44. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -193
  45. package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
  46. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +0 -5
  47. package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +0 -1
  48. package/dist/neutral/Discount/Payload/Coupon/index.d.ts +0 -6
  49. package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +0 -1
  50. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +0 -100
  51. package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
  52. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -12
  53. package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
  54. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +0 -4
  55. package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +0 -1
  56. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +0 -5
  57. package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -1
  58. package/dist/neutral/Discount/Payload/Discount.d.ts +0 -64
  59. package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
  60. package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
  61. package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +0 -1
  62. package/dist/neutral/Discount/Payload/index.d.ts +0 -4
  63. package/dist/neutral/Discount/Payload/index.d.ts.map +0 -1
  64. package/dist/neutral/Discount/index.d.ts +0 -4
  65. package/dist/neutral/Discount/index.d.ts.map +0 -1
  66. package/dist/neutral/Escrow/Outcome.d.ts +0 -78
  67. package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
  68. package/dist/neutral/Escrow/Schema.d.ts +0 -5
  69. package/dist/neutral/Escrow/Schema.d.ts.map +0 -1
  70. package/dist/neutral/Escrow/Terms/Party.d.ts +0 -6
  71. package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
  72. package/dist/neutral/Escrow/Terms/PartySecret.d.ts +0 -6
  73. package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
  74. package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -314
  75. package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
  76. package/dist/neutral/Escrow/Terms/index.d.ts +0 -4
  77. package/dist/neutral/Escrow/Terms/index.d.ts.map +0 -1
  78. package/dist/neutral/Escrow/index.d.ts +0 -6
  79. package/dist/neutral/Escrow/index.d.ts.map +0 -1
  80. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -12
  81. package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
  82. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -12
  83. package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
  84. package/dist/neutral/Escrow/util/appraisal/index.d.ts +0 -3
  85. package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +0 -1
  86. package/dist/neutral/Escrow/util/index.d.ts +0 -3
  87. package/dist/neutral/Escrow/util/index.d.ts.map +0 -1
  88. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +0 -38
  89. package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
  90. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -12
  91. package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
  92. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +0 -7
  93. package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -1
  94. package/dist/neutral/Escrow/util/secret/index.d.ts +0 -5
  95. package/dist/neutral/Escrow/util/secret/index.d.ts.map +0 -1
  96. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +0 -40
  97. package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
  98. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -2
  99. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -1
  100. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -21
  101. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
  102. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -10
  103. package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
  104. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +0 -2
  105. package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -1
  106. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +0 -2
  107. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -1
  108. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -6
  109. package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -1
  110. package/dist/neutral/Escrow/validators/common/index.d.ts +0 -4
  111. package/dist/neutral/Escrow/validators/common/index.d.ts.map +0 -1
  112. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -4
  113. package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
  114. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +0 -29
  115. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
  116. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -9
  117. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
  118. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +0 -8
  119. package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
  120. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +0 -8
  121. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
  122. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +0 -21
  123. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
  124. package/dist/neutral/Escrow/validators/escrow/index.d.ts +0 -11
  125. package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +0 -1
  126. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
  127. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
  128. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -4
  129. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
  130. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +0 -8
  131. package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
  132. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +0 -21
  133. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
  134. package/dist/neutral/Escrow/validators/index.d.ts +0 -3
  135. package/dist/neutral/Escrow/validators/index.d.ts.map +0 -1
  136. package/dist/neutral/Invoice/Invoice.d.ts +0 -17
  137. package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
  138. package/dist/neutral/Invoice/index.d.ts +0 -2
  139. package/dist/neutral/Invoice/index.d.ts.map +0 -1
  140. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -84
  141. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
  142. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +0 -5
  143. package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +0 -1
  144. package/dist/neutral/Payment/Instrument/Card/index.d.ts +0 -3
  145. package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +0 -1
  146. package/dist/neutral/Payment/Instrument/Schema.d.ts +0 -5
  147. package/dist/neutral/Payment/Instrument/Schema.d.ts.map +0 -1
  148. package/dist/neutral/Payment/Instrument/index.d.ts +0 -3
  149. package/dist/neutral/Payment/Instrument/index.d.ts.map +0 -1
  150. package/dist/neutral/Payment/Payload.d.ts +0 -64
  151. package/dist/neutral/Payment/Payload.d.ts.map +0 -1
  152. package/dist/neutral/Payment/Schema.d.ts +0 -5
  153. package/dist/neutral/Payment/Schema.d.ts.map +0 -1
  154. package/dist/neutral/Payment/Status/Payload.d.ts +0 -60
  155. package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
  156. package/dist/neutral/Payment/Status/Schema.d.ts +0 -5
  157. package/dist/neutral/Payment/Status/Schema.d.ts.map +0 -1
  158. package/dist/neutral/Payment/Status/index.d.ts +0 -3
  159. package/dist/neutral/Payment/Status/index.d.ts.map +0 -1
  160. package/dist/neutral/Payment/index.d.ts +0 -5
  161. package/dist/neutral/Payment/index.d.ts.map +0 -1
  162. package/dist/neutral/Purchase/Payload.d.ts +0 -60
  163. package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
  164. package/dist/neutral/Purchase/Schema.d.ts +0 -5
  165. package/dist/neutral/Purchase/Schema.d.ts.map +0 -1
  166. package/dist/neutral/Purchase/index.d.ts +0 -3
  167. package/dist/neutral/Purchase/index.d.ts.map +0 -1
  168. package/dist/neutral/Receipt/Payload.d.ts +0 -64
  169. package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
  170. package/dist/neutral/Receipt/Schema.d.ts +0 -5
  171. package/dist/neutral/Receipt/Schema.d.ts.map +0 -1
  172. package/dist/neutral/Receipt/index.d.ts +0 -3
  173. package/dist/neutral/Receipt/index.d.ts.map +0 -1
  174. package/dist/neutral/Schema.d.ts +0 -5
  175. package/dist/neutral/Schema.d.ts.map +0 -1
  176. package/dist/neutral/Subtotal/Diviner/Config.d.ts +0 -10
  177. package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
  178. package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -4
  179. package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
  180. package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -64
  181. package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
  182. package/dist/neutral/Subtotal/Diviner/index.d.ts +0 -4
  183. package/dist/neutral/Subtotal/Diviner/index.d.ts.map +0 -1
  184. package/dist/neutral/Subtotal/index.d.ts +0 -2
  185. package/dist/neutral/Subtotal/index.d.ts.map +0 -1
  186. package/dist/neutral/Total/Diviner/Config.d.ts +0 -19
  187. package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
  188. package/dist/neutral/Total/Diviner/Params.d.ts +0 -4
  189. package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
  190. package/dist/neutral/Total/Diviner/Payload.d.ts +0 -64
  191. package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
  192. package/dist/neutral/Total/Diviner/index.d.ts +0 -4
  193. package/dist/neutral/Total/Diviner/index.d.ts.map +0 -1
  194. package/dist/neutral/Total/index.d.ts +0 -2
  195. package/dist/neutral/Total/index.d.ts.map +0 -1
@@ -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,100 +0,0 @@
1
- import type { SchemaPayload } from '@xyo-network/sdk';
2
- import * as z from 'zod/mini';
3
- /**
4
- * The payloads that can be used as conditions for a coupon
5
- */
6
- export declare const ConditionZod: z.ZodMiniCustom<{
7
- schema: "network.xyo.schema" & {
8
- readonly __schema: true;
9
- };
10
- definition: {
11
- [x: string]: unknown;
12
- $id?: string | undefined;
13
- };
14
- extends?: string | undefined;
15
- name?: string | undefined;
16
- version?: number | undefined;
17
- }, {
18
- schema: "network.xyo.schema" & {
19
- readonly __schema: true;
20
- };
21
- definition: {
22
- [x: string]: unknown;
23
- $id?: string | undefined;
24
- };
25
- extends?: string | undefined;
26
- name?: string | undefined;
27
- version?: number | undefined;
28
- }>;
29
- /**
30
- * The payloads that can be used as conditions for a coupon
31
- */
32
- export type Condition = SchemaPayload;
33
- /**
34
- * Identity function for determining if an object is a Condition payload
35
- */
36
- export declare const isCondition: <T>(value: T) => value is T & {
37
- schema: "network.xyo.schema" & {
38
- readonly __schema: true;
39
- };
40
- definition: {
41
- [x: string]: unknown;
42
- $id?: string | undefined;
43
- };
44
- extends?: string | undefined;
45
- name?: string | undefined;
46
- version?: number | undefined;
47
- };
48
- export declare const asCondition: {
49
- <T>(value: T): (T & {
50
- schema: "network.xyo.schema" & {
51
- readonly __schema: true;
52
- };
53
- definition: {
54
- [x: string]: unknown;
55
- $id?: string | undefined;
56
- };
57
- extends?: string | undefined;
58
- name?: string | undefined;
59
- version?: number | undefined;
60
- }) | undefined;
61
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
62
- schema: "network.xyo.schema" & {
63
- readonly __schema: true;
64
- };
65
- definition: {
66
- [x: string]: unknown;
67
- $id?: string | undefined;
68
- };
69
- extends?: string | undefined;
70
- name?: string | undefined;
71
- version?: number | undefined;
72
- };
73
- };
74
- export declare const toCondition: {
75
- <T>(value: T): (T & {
76
- schema: "network.xyo.schema" & {
77
- readonly __schema: true;
78
- };
79
- definition: {
80
- [x: string]: unknown;
81
- $id?: string | undefined;
82
- };
83
- extends?: string | undefined;
84
- name?: string | undefined;
85
- version?: number | undefined;
86
- }) | undefined;
87
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
88
- schema: "network.xyo.schema" & {
89
- readonly __schema: true;
90
- };
91
- definition: {
92
- [x: string]: unknown;
93
- $id?: string | undefined;
94
- };
95
- extends?: string | undefined;
96
- name?: string | undefined;
97
- version?: number | undefined;
98
- };
99
- };
100
- //# 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":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;EACiF,CAAA;AAE1G;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;CAA6B,CAAA;AACrD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA;AACpE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
@@ -1,12 +0,0 @@
1
- import * as z from 'zod/mini';
2
- /**
3
- * The fields that are common across all coupons
4
- */
5
- export declare const CouponFieldsZod: z.ZodMiniObject<{
6
- conditions: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>>>;
7
- exp: z.ZodMiniNumber<number>;
8
- nbf: z.ZodMiniNumber<number>;
9
- stackable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
10
- }, z.core.$strip>;
11
- export type CouponFields = z.infer<typeof CouponFieldsZod>;
12
- //# 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":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;iBAiB1B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -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) => 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,wBAA2D,CAAA"}
@@ -1,64 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const DiscountSchema: "network.xyo.payments.discount" & {
3
- readonly __schema: true;
4
- };
5
- export type DiscountSchema = typeof DiscountSchema;
6
- export declare const DiscountFieldsZod: z.ZodMiniObject<{
7
- amount: z.ZodMiniNumber<number>;
8
- currency: z.ZodMiniCustom<import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
9
- }, z.core.$strip>;
10
- export type DiscountFields = z.infer<typeof DiscountFieldsZod>;
11
- /**
12
- * The result of a discount
13
- */
14
- export declare const DiscountZod: z.ZodMiniObject<{
15
- schema: z.ZodMiniLiteral<"network.xyo.payments.discount" & {
16
- readonly __schema: true;
17
- }>;
18
- amount: z.ZodMiniNumber<number>;
19
- currency: z.ZodMiniCustom<import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode, import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode>;
20
- }, z.core.$strip>;
21
- export type Discount = z.infer<typeof DiscountZod>;
22
- /**
23
- * Identity function for determining if an object is an Discount
24
- */
25
- export declare const isDiscount: <T>(value: T) => value is T & {
26
- schema: "network.xyo.payments.discount" & {
27
- readonly __schema: true;
28
- };
29
- amount: number;
30
- currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
31
- };
32
- export declare const asDiscount: {
33
- <T>(value: T): (T & {
34
- schema: "network.xyo.payments.discount" & {
35
- readonly __schema: true;
36
- };
37
- amount: number;
38
- currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
39
- }) | undefined;
40
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
41
- schema: "network.xyo.payments.discount" & {
42
- readonly __schema: true;
43
- };
44
- amount: number;
45
- currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
46
- };
47
- };
48
- export declare const toDiscount: {
49
- <T>(value: T): (T & {
50
- schema: "network.xyo.payments.discount" & {
51
- readonly __schema: true;
52
- };
53
- amount: number;
54
- currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
55
- }) | undefined;
56
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
57
- schema: "network.xyo.payments.discount" & {
58
- readonly __schema: true;
59
- };
60
- amount: number;
61
- currency: import("../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
62
- };
63
- };
64
- //# sourceMappingURL=Discount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../../../src/Discount/Payload/Discount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,cAAc;;CAAkD,CAAA;AAC7E,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAA;AAElD,eAAO,MAAM,iBAAiB;;;iBAAyC,CAAA;AAEvE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;iBAA+E,CAAA;AAEvG,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;CAA4B,CAAA;AACnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAA0C,CAAA;AACjE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAA0C,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,78 +0,0 @@
1
- import * as z from 'zod/mini';
2
- export declare const EscrowOutcomeSchema: string & {
3
- readonly __schema: true;
4
- };
5
- export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema;
6
- /**
7
- * The possible outcomes for an escrow
8
- */
9
- export declare const EscrowOutcomesZod: z.ZodMiniEnum<{
10
- fulfilled: "fulfilled";
11
- expired: "expired";
12
- }>;
13
- export type EscrowOutcomes = z.infer<typeof EscrowOutcomesZod>;
14
- export declare const EscrowOutcomeFieldsZod: z.ZodMiniObject<{
15
- outcome: z.ZodMiniEnum<{
16
- fulfilled: "fulfilled";
17
- expired: "expired";
18
- }>;
19
- terms: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
20
- }, z.core.$strip>;
21
- export type EscrowOutcomeFields = z.infer<typeof EscrowOutcomeFieldsZod>;
22
- /**
23
- * The terms of an escrow
24
- */
25
- export declare const EscrowOutcomeZod: z.ZodMiniObject<{
26
- schema: z.ZodMiniLiteral<string & {
27
- readonly __schema: true;
28
- }>;
29
- outcome: z.ZodMiniEnum<{
30
- fulfilled: "fulfilled";
31
- expired: "expired";
32
- }>;
33
- terms: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@ariestools/sdk").BrandedHash, string>>;
34
- }, z.core.$strip>;
35
- export type EscrowOutcome = z.infer<typeof EscrowOutcomeZod>;
36
- /**
37
- * Identity function for determining if an object is an EscrowOutcome
38
- */
39
- export declare const isEscrowOutcome: <T>(value: T) => value is T & {
40
- schema: string & {
41
- readonly __schema: true;
42
- };
43
- outcome: "fulfilled" | "expired";
44
- terms: import("@ariestools/sdk").BrandedHash;
45
- };
46
- export declare const asEscrowOutcome: {
47
- <T>(value: T): (T & {
48
- schema: string & {
49
- readonly __schema: true;
50
- };
51
- outcome: "fulfilled" | "expired";
52
- terms: import("@ariestools/sdk").BrandedHash;
53
- }) | undefined;
54
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
55
- schema: string & {
56
- readonly __schema: true;
57
- };
58
- outcome: "fulfilled" | "expired";
59
- terms: import("@ariestools/sdk").BrandedHash;
60
- };
61
- };
62
- export declare const toEscrowOutcome: {
63
- <T>(value: T): (T & {
64
- schema: string & {
65
- readonly __schema: true;
66
- };
67
- outcome: "fulfilled" | "expired";
68
- terms: import("@ariestools/sdk").BrandedHash;
69
- }) | undefined;
70
- <T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
71
- schema: string & {
72
- readonly __schema: true;
73
- };
74
- outcome: "fulfilled" | "expired";
75
- terms: import("@ariestools/sdk").BrandedHash;
76
- };
77
- };
78
- //# sourceMappingURL=Outcome.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Outcome.d.ts","sourceRoot":"","sources":["../../../src/Escrow/Outcome.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,mBAAmB;;CAA4C,CAAA;AAC5E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;EAAmC,CAAA;AAEjE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D,eAAO,MAAM,sBAAsB;;;;;;iBAGjC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;iBAAyF,CAAA;AAEtH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;CAAiC,CAAA;AAC7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAAoD,CAAA;AAChF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAAoD,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"}