@xyo-network/payment-payload-plugins 3.0.21 → 3.0.23
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/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts +3 -0
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.d.ts.map +1 -0
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts +3 -0
- package/dist/neutral/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.d.ts.map +1 -0
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts +29 -0
- package/dist/neutral/Discount/Payload/Coupon/Conditions/BuyerCondition.d.ts.map +1 -0
- package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts +4 -0
- package/dist/neutral/Discount/Payload/Coupon/Conditions/index.d.ts.map +1 -0
- package/dist/neutral/Discount/Payload/Coupon/index.d.ts +1 -0
- package/dist/neutral/Discount/Payload/Coupon/index.d.ts.map +1 -1
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +7 -0
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts.map +1 -0
- package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts +1 -0
- package/dist/neutral/Discount/Payload/Coupon/types/index.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/agent.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +5 -5
- package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +3 -3
- package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/assets.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/buyer.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +4 -4
- package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts +2 -2
- package/dist/neutral/Escrow/validators/escrow/seller.d.ts.map +1 -1
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +4 -4
- package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts.map +1 -1
- package/dist/neutral/index.mjs +155 -60
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.ts +43 -0
- package/src/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.ts +25 -0
- package/src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts +50 -0
- package/src/Discount/Payload/Coupon/Conditions/index.ts +3 -0
- package/src/Discount/Payload/Coupon/index.ts +1 -0
- package/src/Discount/Payload/Coupon/types/Condition.ts +24 -0
- package/src/Discount/Payload/Coupon/types/index.ts +1 -0
- package/src/Escrow/validators/escrow/agent.ts +2 -2
- package/src/Escrow/validators/escrow/appraisal.ts +5 -5
- package/src/Escrow/validators/escrow/appraisalAuthorities.ts +3 -3
- package/src/Escrow/validators/escrow/assets.ts +2 -2
- package/src/Escrow/validators/escrow/buyer.ts +2 -2
- package/src/Escrow/validators/escrow/buyerSecret.ts +5 -5
- package/src/Escrow/validators/escrow/nbfExp.ts +2 -2
- package/src/Escrow/validators/escrow/paymentAuthorities.ts +2 -2
- package/src/Escrow/validators/escrow/seller.ts +2 -2
- package/src/Escrow/validators/escrow/sellerSecret.ts +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppraisalAmountCondition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAOlD,eAAO,MAAM,wCAAwC,2BAA4B,MAAM,KAAG,SAgCzF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetQuantityCondition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAOlD,eAAO,MAAM,sCAAsC,yBAA0B,MAAM,KAAG,SAerF,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
export declare const createConditionForRequiredBuyer: (buyer: Address) => BuyerCondition;
|
|
29
|
+
//# sourceMappingURL=BuyerCondition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AAOD,eAAO,MAAM,+BAA+B,UAAW,OAAO,KAAG,cAiBhE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Discount/Payload/Coupon/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA"}
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type WithMeta, type WithOptionalMeta } from '@xyo-network/payload-model';
|
|
2
|
+
import { type SchemaPayload } from '@xyo-network/schema-payload-plugin';
|
|
3
|
+
export type Condition = SchemaPayload | WithOptionalMeta<SchemaPayload> | WithMeta<SchemaPayload>;
|
|
4
|
+
export declare const isCondition: (x?: unknown | null) => x is Condition;
|
|
5
|
+
export declare const isConditionWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Condition>;
|
|
6
|
+
export declare const isConditionWithMeta: (x?: unknown | null) => x is WithMeta<Condition>;
|
|
7
|
+
//# sourceMappingURL=Condition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/Condition.ts"],"names":[],"mappings":"AAAA,OAAO,EACmF,KAAK,QAAQ,EAAE,KAAK,gBAAgB,EAC7H,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,oCAAoC,CAAA;AAKrF,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAA;AAKjG,eAAO,MAAM,WAAW,wCAAiD,CAAA;AAKzE,eAAO,MAAM,sBAAsB,0FAA4D,CAAA;AAK/F,eAAO,MAAM,mBAAmB,kDAAyD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Discount/Payload/Coupon/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
|
|
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 +1,5 @@
|
|
|
1
1
|
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
4
|
-
export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) =>
|
|
4
|
+
export declare const getEscrowAgentAllowedValidator: (allowedEscrowAgent: ModuleIdentifier) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
5
|
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAKjD,eAAO,MAAM,8BAA8B,uBAAwB,gBAAgB,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { Payload,
|
|
2
|
+
import type { Payload, SyncPayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
4
|
-
export declare const appraisalsExistValidator:
|
|
5
|
-
export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, WithMeta<Payload>>) =>
|
|
6
|
-
export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, WithMeta<Payload>>, minimumExp: number) =>
|
|
7
|
-
export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, WithMeta<Payload>>) =>
|
|
4
|
+
export declare const appraisalsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
+
export declare const getAppraisalsFromValidAuthoritiesValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
6
|
+
export declare const getAppraisalsValidValidator: (dictionary: Record<Hash, WithMeta<Payload>>, minimumExp: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
7
|
+
export declare const getAppraisalsForAllAssetsValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
8
8
|
//# sourceMappingURL=appraisal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAKvC,OAAO,KAAK,EACV,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"appraisal.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAKvC,OAAO,KAAK,EACV,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AASjD,eAAO,MAAM,wBAAwB,EAAE,6BAA6B,CAAC,WAAW,CAQ/E,CAAA;AAOD,eAAO,MAAM,0CAA0C,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CA0BjJ,CAAA;AASD,eAAO,MAAM,2BAA2B,eAC1B,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,cAC/B,MAAM,KACjB,6BAA6B,CAAC,WAAW,CAiB3C,CAAA;AAOD,eAAO,MAAM,kCAAkC,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAWzI,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
4
|
-
export declare const appraisalAuthoritiesExistValidator:
|
|
5
|
-
export declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) =>
|
|
4
|
+
export declare const appraisalAuthoritiesExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
+
export declare const getAppraisalAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
6
6
|
//# sourceMappingURL=appraisalAuthorities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"appraisalAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/appraisalAuthorities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AASjD,eAAO,MAAM,kCAAkC,EAAE,6BAA6B,CAAC,WAAW,CAazF,CAAA;AAED,eAAO,MAAM,uCAAuC,YAAa,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ9H,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
3
|
-
export declare const assetsExistValidator:
|
|
3
|
+
export declare const assetsExistValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
4
|
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAQ3E,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
3
|
-
export declare const buyerExistsValidator:
|
|
3
|
+
export declare const buyerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
4
|
//# sourceMappingURL=buyer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"buyer.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,CAAC,WAAW,CAa3E,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { Payload,
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
4
|
-
export declare const buyerSecretExistsValidator:
|
|
5
|
-
export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) =>
|
|
6
|
-
export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) =>
|
|
4
|
+
export declare const buyerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
+
export declare const getBuyerSecretSuppliedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
6
|
+
export declare const getBuyerSecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
7
7
|
//# sourceMappingURL=buyerSecret.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"buyerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/buyerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjF,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,0BAA0B,EAAE,6BAA6B,CAAC,WAAW,CAQjF,CAAA;AAOD,eAAO,MAAM,+BAA+B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CAStI,CAAA;AAOD,eAAO,MAAM,6BAA6B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,8BAA8B,CAAC,WAAW,CA4BrI,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
3
|
-
export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) =>
|
|
3
|
+
export declare const getNbfExpValidator: (now: number, minRequiredDuration: number) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
4
|
//# sourceMappingURL=nbfExp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"nbfExp.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/nbfExp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEjD,eAAO,MAAM,kBAAkB,QAAS,MAAM,uBAAuB,MAAM,KAAG,6BAA6B,CAAC,WAAW,CActH,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
4
|
-
export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) =>
|
|
4
|
+
export declare const getPaymentAuthoritiesAllowedValidator: (allowed: ModuleIdentifier[]) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
5
|
//# sourceMappingURL=paymentAuthorities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"paymentAuthorities.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/paymentAuthorities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAKjD,eAAO,MAAM,qCAAqC,YAAa,gBAAgB,EAAE,KAAG,6BAA6B,CAAC,WAAW,CAQ5H,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SyncPayloadValidationFunction } from '@xyo-network/payload-model';
|
|
2
2
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
3
|
-
export declare const sellerExistsValidator:
|
|
3
|
+
export declare const sellerExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
4
4
|
//# sourceMappingURL=seller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"seller.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/seller.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,qBAAqB,EAAE,6BAA6B,CAAC,WAAW,CAa5E,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
|
-
import type { Payload,
|
|
2
|
+
import type { AsyncPayloadValidationFunction, Payload, SyncPayloadValidationFunction, WithMeta } from '@xyo-network/payload-model';
|
|
3
3
|
import type { EscrowTerms } from '../../Terms.ts';
|
|
4
|
-
export declare const sellerSecretExistsValidator:
|
|
5
|
-
export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) =>
|
|
6
|
-
export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) =>
|
|
4
|
+
export declare const sellerSecretExistsValidator: SyncPayloadValidationFunction<EscrowTerms>;
|
|
5
|
+
export declare const getSellerSecretSuppliedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => SyncPayloadValidationFunction<EscrowTerms>;
|
|
6
|
+
export declare const getSellerSecretSignedValidator: (dictionary: Record<Hash, WithMeta<Payload>>) => AsyncPayloadValidationFunction<EscrowTerms>;
|
|
7
7
|
//# sourceMappingURL=sellerSecret.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sellerSecret.d.ts","sourceRoot":"","sources":["../../../../../src/Escrow/validators/escrow/sellerSecret.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,8BAA8B,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EACjF,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQjD,eAAO,MAAM,2BAA2B,EAAE,6BAA6B,CAAC,WAAW,CAQlF,CAAA;AAOD,eAAO,MAAM,gCAAgC,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,6BAA6B,CAAC,WAAW,CASvI,CAAA;AAOD,eAAO,MAAM,8BAA8B,eAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAG,8BAA8B,CAAC,WAAW,CA4BtI,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -217,6 +217,84 @@ var isBillingAddressWithMeta = isPayloadOfSchemaTypeWithMeta2(BillingAddressSche
|
|
|
217
217
|
// src/Discount/Config.ts
|
|
218
218
|
var PaymentDiscountDivinerConfigSchema = "network.xyo.diviner.payments.discount.config";
|
|
219
219
|
|
|
220
|
+
// src/Discount/Payload/Coupon/Conditions/AppraisalAmountCondition.ts
|
|
221
|
+
import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
|
222
|
+
var createConditionForMaximumAppraisalAmount = (maximumAppraisalAmount) => {
|
|
223
|
+
return {
|
|
224
|
+
schema: SchemaSchema,
|
|
225
|
+
definition: {
|
|
226
|
+
allOf: [
|
|
227
|
+
{
|
|
228
|
+
type: "array",
|
|
229
|
+
contains: {
|
|
230
|
+
type: "object",
|
|
231
|
+
properties: {
|
|
232
|
+
schema: { type: "string", const: "network.xyo.escrow.terms" },
|
|
233
|
+
appraisals: { type: "array", minItems: 1 }
|
|
234
|
+
},
|
|
235
|
+
required: ["schema", "appraisals"]
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
type: "array",
|
|
240
|
+
contains: {
|
|
241
|
+
type: "object",
|
|
242
|
+
properties: { schema: { type: "string", const: "network.xyo.hash.lease.estimate" } },
|
|
243
|
+
required: ["schema"]
|
|
244
|
+
},
|
|
245
|
+
items: {
|
|
246
|
+
type: "object",
|
|
247
|
+
if: { properties: { schema: { type: "string", const: "network.xyo.hash.lease.estimate" } } },
|
|
248
|
+
then: { properties: { price: { type: "number", maximum: maximumAppraisalAmount } }, required: ["price"] }
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
// src/Discount/Payload/Coupon/Conditions/AssetQuantityCondition.ts
|
|
257
|
+
import { SchemaSchema as SchemaSchema2 } from "@xyo-network/schema-payload-plugin";
|
|
258
|
+
var createConditionForMinimumAssetQuantity = (minimumAssetQuantity) => {
|
|
259
|
+
return {
|
|
260
|
+
schema: SchemaSchema2,
|
|
261
|
+
definition: {
|
|
262
|
+
type: "array",
|
|
263
|
+
contains: {
|
|
264
|
+
type: "object",
|
|
265
|
+
properties: {
|
|
266
|
+
schema: { type: "string", const: "network.xyo.escrow.terms" },
|
|
267
|
+
assets: { type: "array", minItems: minimumAssetQuantity }
|
|
268
|
+
},
|
|
269
|
+
required: ["schema", "assets"]
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
// src/Discount/Payload/Coupon/Conditions/BuyerCondition.ts
|
|
276
|
+
import { SchemaSchema as SchemaSchema3 } from "@xyo-network/schema-payload-plugin";
|
|
277
|
+
var createConditionForRequiredBuyer = (buyer) => {
|
|
278
|
+
return {
|
|
279
|
+
schema: SchemaSchema3,
|
|
280
|
+
definition: {
|
|
281
|
+
type: "array",
|
|
282
|
+
contains: {
|
|
283
|
+
type: "object",
|
|
284
|
+
properties: {
|
|
285
|
+
schema: { type: "string", const: "network.xyo.escrow.terms" },
|
|
286
|
+
buyer: {
|
|
287
|
+
type: "array",
|
|
288
|
+
items: { type: "string", const: buyer },
|
|
289
|
+
minItems: 1
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
required: ["schema", "buyer"]
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
|
|
220
298
|
// src/Discount/Payload/Coupon/Coupons/FixedAmount.ts
|
|
221
299
|
import {
|
|
222
300
|
isPayloadOfSchemaType as isPayloadOfSchemaType3,
|
|
@@ -260,19 +338,30 @@ var isCoupon = (x) => isFixedAmountCoupon(x) || isFixedPercentageCoupon(x) || is
|
|
|
260
338
|
var isCouponWithSources = (x) => isFixedAmountCouponWithSources(x) || isFixedPercentageCouponWithSources(x) || isFixedPriceCouponWithSources(x);
|
|
261
339
|
var isCouponWithMeta = (x) => isFixedAmountCouponWithMeta(x) || isFixedPercentageCouponWithMeta(x);
|
|
262
340
|
|
|
341
|
+
// src/Discount/Payload/Coupon/types/Condition.ts
|
|
342
|
+
import {
|
|
343
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType6,
|
|
344
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta6,
|
|
345
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources6
|
|
346
|
+
} from "@xyo-network/payload-model";
|
|
347
|
+
import { SchemaSchema as SchemaSchema4 } from "@xyo-network/schema-payload-plugin";
|
|
348
|
+
var isCondition = isPayloadOfSchemaType6(SchemaSchema4);
|
|
349
|
+
var isConditionWithSources = isPayloadOfSchemaTypeWithSources6(SchemaSchema4);
|
|
350
|
+
var isConditionWithMeta = isPayloadOfSchemaTypeWithMeta6(SchemaSchema4);
|
|
351
|
+
|
|
263
352
|
// src/Discount/Payload/Coupon/types/isStackable.ts
|
|
264
353
|
var isStackable = (x) => (x ?? { stackable: false })?.stackable;
|
|
265
354
|
|
|
266
355
|
// src/Discount/Payload/Discount.ts
|
|
267
356
|
import {
|
|
268
|
-
isPayloadOfSchemaType as
|
|
269
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
270
|
-
isPayloadOfSchemaTypeWithSources as
|
|
357
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType7,
|
|
358
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta7,
|
|
359
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources7
|
|
271
360
|
} from "@xyo-network/payload-model";
|
|
272
361
|
var DiscountSchema = "network.xyo.payments.discount";
|
|
273
|
-
var isDiscount =
|
|
274
|
-
var isDiscountWithSources =
|
|
275
|
-
var isDiscountWithMeta =
|
|
362
|
+
var isDiscount = isPayloadOfSchemaType7(DiscountSchema);
|
|
363
|
+
var isDiscountWithSources = isPayloadOfSchemaTypeWithSources7(DiscountSchema);
|
|
364
|
+
var isDiscountWithMeta = isPayloadOfSchemaTypeWithMeta7(DiscountSchema);
|
|
276
365
|
|
|
277
366
|
// src/Discount/Payload/NoDiscount.ts
|
|
278
367
|
var NO_DISCOUNT = {
|
|
@@ -301,9 +390,9 @@ var getEscrowSecret = () => {
|
|
|
301
390
|
|
|
302
391
|
// src/Escrow/Outcome.ts
|
|
303
392
|
import {
|
|
304
|
-
isPayloadOfSchemaType as
|
|
305
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
306
|
-
isPayloadOfSchemaTypeWithSources as
|
|
393
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType8,
|
|
394
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta8,
|
|
395
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources8
|
|
307
396
|
} from "@xyo-network/payload-model";
|
|
308
397
|
|
|
309
398
|
// src/Escrow/Schema.ts
|
|
@@ -311,20 +400,20 @@ var EscrowSchema = "network.xyo.escrow";
|
|
|
311
400
|
|
|
312
401
|
// src/Escrow/Outcome.ts
|
|
313
402
|
var EscrowOutcomeSchema = `${EscrowSchema}.outcome`;
|
|
314
|
-
var isEscrowOutcome =
|
|
315
|
-
var isEscrowOutcomeWithSources =
|
|
316
|
-
var isEscrowOutcomeWithMeta =
|
|
403
|
+
var isEscrowOutcome = isPayloadOfSchemaType8(EscrowOutcomeSchema);
|
|
404
|
+
var isEscrowOutcomeWithSources = isPayloadOfSchemaTypeWithSources8(EscrowOutcomeSchema);
|
|
405
|
+
var isEscrowOutcomeWithMeta = isPayloadOfSchemaTypeWithMeta8(EscrowOutcomeSchema);
|
|
317
406
|
|
|
318
407
|
// src/Escrow/Terms.ts
|
|
319
408
|
import {
|
|
320
|
-
isPayloadOfSchemaType as
|
|
321
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
322
|
-
isPayloadOfSchemaTypeWithSources as
|
|
409
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType9,
|
|
410
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta9,
|
|
411
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources9
|
|
323
412
|
} from "@xyo-network/payload-model";
|
|
324
413
|
var EscrowTermsSchema = `${EscrowSchema}.terms`;
|
|
325
|
-
var isEscrowTerms =
|
|
326
|
-
var isEscrowTermsWithSources =
|
|
327
|
-
var isEscrowTermsWithMeta =
|
|
414
|
+
var isEscrowTerms = isPayloadOfSchemaType9(EscrowTermsSchema);
|
|
415
|
+
var isEscrowTermsWithSources = isPayloadOfSchemaTypeWithSources9(EscrowTermsSchema);
|
|
416
|
+
var isEscrowTermsWithMeta = isPayloadOfSchemaTypeWithMeta9(EscrowTermsSchema);
|
|
328
417
|
|
|
329
418
|
// src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts
|
|
330
419
|
var moduleIdentifiersContainsOneOf = (escrowTerms, propertyExpression, moduleIdentifiers, required = true) => {
|
|
@@ -635,9 +724,9 @@ var getSellerSecretSignedValidator = (dictionary) => {
|
|
|
635
724
|
|
|
636
725
|
// src/Payment/Instrument/Card/Payload.ts
|
|
637
726
|
import {
|
|
638
|
-
isPayloadOfSchemaType as
|
|
639
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
640
|
-
isPayloadOfSchemaTypeWithSources as
|
|
727
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType10,
|
|
728
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta10,
|
|
729
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources10
|
|
641
730
|
} from "@xyo-network/payload-model";
|
|
642
731
|
|
|
643
732
|
// src/Payment/Schema.ts
|
|
@@ -650,92 +739,92 @@ var PaymentInstrumentSchema = `${PaymentSchema}.instrument`;
|
|
|
650
739
|
var PaymentCardSchema = `${PaymentInstrumentSchema}.card`;
|
|
651
740
|
|
|
652
741
|
// src/Payment/Instrument/Card/Payload.ts
|
|
653
|
-
var isPaymentCard =
|
|
654
|
-
var isPaymentCardWithSources =
|
|
655
|
-
var isPaymentCardWithMeta =
|
|
742
|
+
var isPaymentCard = isPayloadOfSchemaType10(PaymentCardSchema);
|
|
743
|
+
var isPaymentCardWithSources = isPayloadOfSchemaTypeWithSources10(PaymentCardSchema);
|
|
744
|
+
var isPaymentCardWithMeta = isPayloadOfSchemaTypeWithMeta10(PaymentCardSchema);
|
|
656
745
|
|
|
657
746
|
// src/Payment/Payload.ts
|
|
658
747
|
import {
|
|
659
|
-
isPayloadOfSchemaType as
|
|
660
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
661
|
-
isPayloadOfSchemaTypeWithSources as
|
|
748
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType11,
|
|
749
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta11,
|
|
750
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources11
|
|
662
751
|
} from "@xyo-network/payload-model";
|
|
663
|
-
var isPayment =
|
|
664
|
-
var isPaymentWithSources =
|
|
665
|
-
var isPaymentWithMeta =
|
|
752
|
+
var isPayment = isPayloadOfSchemaType11(PaymentSchema);
|
|
753
|
+
var isPaymentWithSources = isPayloadOfSchemaTypeWithSources11(PaymentSchema);
|
|
754
|
+
var isPaymentWithMeta = isPayloadOfSchemaTypeWithMeta11(PaymentSchema);
|
|
666
755
|
|
|
667
756
|
// src/Payment/Status/Payload.ts
|
|
668
757
|
import {
|
|
669
|
-
isPayloadOfSchemaType as
|
|
670
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
671
|
-
isPayloadOfSchemaTypeWithSources as
|
|
758
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType12,
|
|
759
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta12,
|
|
760
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources12
|
|
672
761
|
} from "@xyo-network/payload-model";
|
|
673
762
|
|
|
674
763
|
// src/Payment/Status/Schema.ts
|
|
675
764
|
var PaymentStatusSchema = `${PaymentSchema}.status`;
|
|
676
765
|
|
|
677
766
|
// src/Payment/Status/Payload.ts
|
|
678
|
-
var isPaymentStatus =
|
|
679
|
-
var isPaymentStatusWithSources =
|
|
680
|
-
var isPaymentStatusWithMeta =
|
|
767
|
+
var isPaymentStatus = isPayloadOfSchemaType12(PaymentStatusSchema);
|
|
768
|
+
var isPaymentStatusWithSources = isPayloadOfSchemaTypeWithSources12(PaymentStatusSchema);
|
|
769
|
+
var isPaymentStatusWithMeta = isPayloadOfSchemaTypeWithMeta12(PaymentStatusSchema);
|
|
681
770
|
|
|
682
771
|
// src/Purchase/Payload.ts
|
|
683
772
|
import {
|
|
684
|
-
isPayloadOfSchemaType as
|
|
685
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
686
|
-
isPayloadOfSchemaTypeWithSources as
|
|
773
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType13,
|
|
774
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta13,
|
|
775
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources13
|
|
687
776
|
} from "@xyo-network/payload-model";
|
|
688
777
|
|
|
689
778
|
// src/Purchase/Schema.ts
|
|
690
779
|
var PurchaseSchema = `${PaymentsSchema}.purchase`;
|
|
691
780
|
|
|
692
781
|
// src/Purchase/Payload.ts
|
|
693
|
-
var isPurchase =
|
|
694
|
-
var isPurchaseWithSources =
|
|
695
|
-
var isPurchaseWithMeta =
|
|
782
|
+
var isPurchase = isPayloadOfSchemaType13(PurchaseSchema);
|
|
783
|
+
var isPurchaseWithSources = isPayloadOfSchemaTypeWithSources13(PurchaseSchema);
|
|
784
|
+
var isPurchaseWithMeta = isPayloadOfSchemaTypeWithMeta13(PurchaseSchema);
|
|
696
785
|
|
|
697
786
|
// src/Receipt/Payload.ts
|
|
698
787
|
import {
|
|
699
|
-
isPayloadOfSchemaType as
|
|
700
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
701
|
-
isPayloadOfSchemaTypeWithSources as
|
|
788
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType14,
|
|
789
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta14,
|
|
790
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources14
|
|
702
791
|
} from "@xyo-network/payload-model";
|
|
703
792
|
|
|
704
793
|
// src/Receipt/Schema.ts
|
|
705
794
|
var ReceiptSchema = `${PaymentsSchema}.receipt`;
|
|
706
795
|
|
|
707
796
|
// src/Receipt/Payload.ts
|
|
708
|
-
var isReceipt =
|
|
709
|
-
var isReceiptWithSources =
|
|
710
|
-
var isReceiptWithMeta =
|
|
797
|
+
var isReceipt = isPayloadOfSchemaType14(ReceiptSchema);
|
|
798
|
+
var isReceiptWithSources = isPayloadOfSchemaTypeWithSources14(ReceiptSchema);
|
|
799
|
+
var isReceiptWithMeta = isPayloadOfSchemaTypeWithMeta14(ReceiptSchema);
|
|
711
800
|
|
|
712
801
|
// src/Subtotal/Diviner/Config.ts
|
|
713
802
|
var PaymentSubtotalDivinerConfigSchema = "network.xyo.diviner.payments.subtotal.config";
|
|
714
803
|
|
|
715
804
|
// src/Subtotal/Diviner/Payload.ts
|
|
716
805
|
import {
|
|
717
|
-
isPayloadOfSchemaType as
|
|
718
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
719
|
-
isPayloadOfSchemaTypeWithSources as
|
|
806
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType15,
|
|
807
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta15,
|
|
808
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources15
|
|
720
809
|
} from "@xyo-network/payload-model";
|
|
721
810
|
var SubtotalSchema = "network.xyo.payments.subtotal";
|
|
722
|
-
var isSubtotal =
|
|
723
|
-
var isSubtotalWithSources =
|
|
724
|
-
var isSubtotalWithMeta =
|
|
811
|
+
var isSubtotal = isPayloadOfSchemaType15(SubtotalSchema);
|
|
812
|
+
var isSubtotalWithSources = isPayloadOfSchemaTypeWithSources15(SubtotalSchema);
|
|
813
|
+
var isSubtotalWithMeta = isPayloadOfSchemaTypeWithMeta15(SubtotalSchema);
|
|
725
814
|
|
|
726
815
|
// src/Total/Diviner/Config.ts
|
|
727
816
|
var PaymentTotalDivinerConfigSchema = "network.xyo.diviner.payments.total.config";
|
|
728
817
|
|
|
729
818
|
// src/Total/Diviner/Payload.ts
|
|
730
819
|
import {
|
|
731
|
-
isPayloadOfSchemaType as
|
|
732
|
-
isPayloadOfSchemaTypeWithMeta as
|
|
733
|
-
isPayloadOfSchemaTypeWithSources as
|
|
820
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType16,
|
|
821
|
+
isPayloadOfSchemaTypeWithMeta as isPayloadOfSchemaTypeWithMeta16,
|
|
822
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources16
|
|
734
823
|
} from "@xyo-network/payload-model";
|
|
735
824
|
var TotalSchema = "network.xyo.payments.total";
|
|
736
|
-
var isTotal =
|
|
737
|
-
var isTotalWithSources =
|
|
738
|
-
var isTotalWithMeta =
|
|
825
|
+
var isTotal = isPayloadOfSchemaType16(TotalSchema);
|
|
826
|
+
var isTotalWithSources = isPayloadOfSchemaTypeWithSources16(TotalSchema);
|
|
827
|
+
var isTotalWithMeta = isPayloadOfSchemaTypeWithMeta16(TotalSchema);
|
|
739
828
|
export {
|
|
740
829
|
AmountSchema,
|
|
741
830
|
BillingAddressSchema,
|
|
@@ -766,6 +855,9 @@ export {
|
|
|
766
855
|
assetsExistValidator,
|
|
767
856
|
buyerExistsValidator,
|
|
768
857
|
buyerSecretExistsValidator,
|
|
858
|
+
createConditionForMaximumAppraisalAmount,
|
|
859
|
+
createConditionForMinimumAssetQuantity,
|
|
860
|
+
createConditionForRequiredBuyer,
|
|
769
861
|
createEscrowIntent,
|
|
770
862
|
createEscrowIntentWithSecret,
|
|
771
863
|
getAppraisalAuthoritiesAllowedValidator,
|
|
@@ -786,6 +878,9 @@ export {
|
|
|
786
878
|
isBillingAddress,
|
|
787
879
|
isBillingAddressWithMeta,
|
|
788
880
|
isBillingAddressWithSources,
|
|
881
|
+
isCondition,
|
|
882
|
+
isConditionWithMeta,
|
|
883
|
+
isConditionWithSources,
|
|
789
884
|
isCoupon,
|
|
790
885
|
isCouponWithMeta,
|
|
791
886
|
isCouponWithSources,
|