@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.
- package/dist/neutral/index.d.ts +1 -11
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2 -1298
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +53 -49
- package/dist/neutral/Amount/Iso4217Currency.d.ts +0 -14
- package/dist/neutral/Amount/Iso4217Currency.d.ts.map +0 -1
- package/dist/neutral/Amount/Payload.d.ts +0 -68
- package/dist/neutral/Amount/Payload.d.ts.map +0 -1
- package/dist/neutral/Amount/index.d.ts +0 -3
- package/dist/neutral/Amount/index.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/Address.d.ts +0 -112
- package/dist/neutral/Billing/Address/Address.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/Schema.d.ts +0 -5
- package/dist/neutral/Billing/Address/Schema.d.ts.map +0 -1
- package/dist/neutral/Billing/Address/index.d.ts +0 -3
- package/dist/neutral/Billing/Address/index.d.ts.map +0 -1
- package/dist/neutral/Billing/Schema.d.ts +0 -5
- package/dist/neutral/Billing/Schema.d.ts.map +0 -1
- package/dist/neutral/Billing/index.d.ts +0 -3
- package/dist/neutral/Billing/index.d.ts.map +0 -1
- package/dist/neutral/Currency.d.ts +0 -6
- package/dist/neutral/Currency.d.ts.map +0 -1
- package/dist/neutral/Discount/Config.d.ts +0 -23
- package/dist/neutral/Discount/Config.d.ts.map +0 -1
- package/dist/neutral/Discount/Params.d.ts +0 -9
- package/dist/neutral/Discount/Params.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +0 -8
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +0 -8
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +0 -34
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts +0 -92
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedAmount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +0 -85
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +0 -92
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/Coupons/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +0 -193
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts +0 -5
- package/dist/neutral/Discount/Payload/Coupon/Schema.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/index.d.ts +0 -6
- package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +0 -100
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts +0 -12
- package/dist/neutral/Discount/Payload/Coupon/types/CouponFields.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts +0 -5
- package/dist/neutral/Discount/Payload/Coupon/types/isStackable.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/Discount.d.ts +0 -64
- package/dist/neutral/Discount/Payload/Discount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/NoDiscount.d.ts +0 -3
- package/dist/neutral/Discount/Payload/NoDiscount.d.ts.map +0 -1
- package/dist/neutral/Discount/Payload/index.d.ts +0 -4
- package/dist/neutral/Discount/Payload/index.d.ts.map +0 -1
- package/dist/neutral/Discount/index.d.ts +0 -4
- package/dist/neutral/Discount/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/Outcome.d.ts +0 -78
- package/dist/neutral/Escrow/Outcome.d.ts.map +0 -1
- package/dist/neutral/Escrow/Schema.d.ts +0 -5
- package/dist/neutral/Escrow/Schema.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/Party.d.ts +0 -6
- package/dist/neutral/Escrow/Terms/Party.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/PartySecret.d.ts +0 -6
- package/dist/neutral/Escrow/Terms/PartySecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/Terms.d.ts +0 -314
- package/dist/neutral/Escrow/Terms/Terms.d.ts.map +0 -1
- package/dist/neutral/Escrow/Terms/index.d.ts +0 -4
- package/dist/neutral/Escrow/Terms/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/index.d.ts +0 -6
- package/dist/neutral/Escrow/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts +0 -12
- package/dist/neutral/Escrow/util/appraisal/getAppraisalsByAsset.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts +0 -12
- package/dist/neutral/Escrow/util/appraisal/getSignaturesByAppraisal.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/appraisal/index.d.ts +0 -3
- package/dist/neutral/Escrow/util/appraisal/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/index.d.ts +0 -3
- package/dist/neutral/Escrow/util/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts +0 -38
- package/dist/neutral/Escrow/util/secret/createEscrowIntent.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts +0 -12
- package/dist/neutral/Escrow/util/secret/findEscrowPartySecretSignatures.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts +0 -7
- package/dist/neutral/Escrow/util/secret/getEscrowSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/index.d.ts +0 -5
- package/dist/neutral/Escrow/util/secret/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts +0 -40
- package/dist/neutral/Escrow/util/secret/updateEscrowTermsWithSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +0 -21
- package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts +0 -10
- package/dist/neutral/Escrow/validators/common/SecretValidators/getPartySecretSignedValidator.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/SecretValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +0 -2
- package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts +0 -6
- package/dist/neutral/Escrow/validators/common/TemporalValidators/validateWithinWindow.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/common/index.d.ts +0 -4
- package/dist/neutral/Escrow/validators/common/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts +0 -4
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +0 -29
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +0 -9
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +0 -21
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/index.d.ts +0 -11
- package/dist/neutral/Escrow/validators/escrow/index.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +0 -4
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +0 -4
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts +0 -8
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +0 -21
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +0 -1
- package/dist/neutral/Escrow/validators/index.d.ts +0 -3
- package/dist/neutral/Escrow/validators/index.d.ts.map +0 -1
- package/dist/neutral/Invoice/Invoice.d.ts +0 -17
- package/dist/neutral/Invoice/Invoice.d.ts.map +0 -1
- package/dist/neutral/Invoice/index.d.ts +0 -2
- package/dist/neutral/Invoice/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +0 -84
- package/dist/neutral/Payment/Instrument/Card/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/Schema.d.ts +0 -5
- package/dist/neutral/Payment/Instrument/Card/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Card/index.d.ts +0 -3
- package/dist/neutral/Payment/Instrument/Card/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/Schema.d.ts +0 -5
- package/dist/neutral/Payment/Instrument/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Instrument/index.d.ts +0 -3
- package/dist/neutral/Payment/Instrument/index.d.ts.map +0 -1
- package/dist/neutral/Payment/Payload.d.ts +0 -64
- package/dist/neutral/Payment/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Schema.d.ts +0 -5
- package/dist/neutral/Payment/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/Payload.d.ts +0 -60
- package/dist/neutral/Payment/Status/Payload.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/Schema.d.ts +0 -5
- package/dist/neutral/Payment/Status/Schema.d.ts.map +0 -1
- package/dist/neutral/Payment/Status/index.d.ts +0 -3
- package/dist/neutral/Payment/Status/index.d.ts.map +0 -1
- package/dist/neutral/Payment/index.d.ts +0 -5
- package/dist/neutral/Payment/index.d.ts.map +0 -1
- package/dist/neutral/Purchase/Payload.d.ts +0 -60
- package/dist/neutral/Purchase/Payload.d.ts.map +0 -1
- package/dist/neutral/Purchase/Schema.d.ts +0 -5
- package/dist/neutral/Purchase/Schema.d.ts.map +0 -1
- package/dist/neutral/Purchase/index.d.ts +0 -3
- package/dist/neutral/Purchase/index.d.ts.map +0 -1
- package/dist/neutral/Receipt/Payload.d.ts +0 -64
- package/dist/neutral/Receipt/Payload.d.ts.map +0 -1
- package/dist/neutral/Receipt/Schema.d.ts +0 -5
- package/dist/neutral/Receipt/Schema.d.ts.map +0 -1
- package/dist/neutral/Receipt/index.d.ts +0 -3
- package/dist/neutral/Receipt/index.d.ts.map +0 -1
- package/dist/neutral/Schema.d.ts +0 -5
- package/dist/neutral/Schema.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Config.d.ts +0 -10
- package/dist/neutral/Subtotal/Diviner/Config.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Params.d.ts +0 -4
- package/dist/neutral/Subtotal/Diviner/Params.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts +0 -64
- package/dist/neutral/Subtotal/Diviner/Payload.d.ts.map +0 -1
- package/dist/neutral/Subtotal/Diviner/index.d.ts +0 -4
- package/dist/neutral/Subtotal/Diviner/index.d.ts.map +0 -1
- package/dist/neutral/Subtotal/index.d.ts +0 -2
- package/dist/neutral/Subtotal/index.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Config.d.ts +0 -19
- package/dist/neutral/Total/Diviner/Config.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Params.d.ts +0 -4
- package/dist/neutral/Total/Diviner/Params.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/Payload.d.ts +0 -64
- package/dist/neutral/Total/Diviner/Payload.d.ts.map +0 -1
- package/dist/neutral/Total/Diviner/index.d.ts +0 -4
- package/dist/neutral/Total/Diviner/index.d.ts.map +0 -1
- package/dist/neutral/Total/index.d.ts +0 -2
- package/dist/neutral/Total/index.d.ts.map +0 -1
|
@@ -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 +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 +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 +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 +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 +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 +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 +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 +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 +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"}
|