@xyo-network/payment-payload-plugins 3.2.0-rc.2 → 3.2.0-rc.3
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/Coupons/FixedAmount.d.ts +4 -4
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPercentage.d.ts +4 -4
- package/dist/neutral/Discount/Payload/Coupon/Coupons/FixedPrice.d.ts +4 -4
- package/dist/neutral/Discount/Payload/Coupon/Payload.d.ts +4 -4
- package/dist/neutral/Discount/Payload/Coupon/types/Condition.d.ts +4 -4
- package/package.json +20 -20
|
@@ -14,8 +14,8 @@ export type FixedAmountCoupon = PayloadWithOptionalSources<FixedAmountCouponFiel
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const isFixedAmountCoupon: (x?: unknown | null) => x is FixedAmountCoupon;
|
|
16
16
|
export declare const asFixedAmountCoupon: {
|
|
17
|
-
<TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
18
|
-
<TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
17
|
+
<TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
|
+
<TType extends FixedAmountCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedAmountCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Identity function for determining if an object is an FixedAmountCoupon with sources
|
|
@@ -38,7 +38,7 @@ export declare const asFixedAmountCouponWithSources: {
|
|
|
38
38
|
nbf: number;
|
|
39
39
|
amount: number;
|
|
40
40
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
41
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
41
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
42
42
|
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
43
43
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
44
44
|
conditions?: Lowercase<string>[] | undefined;
|
|
@@ -47,7 +47,7 @@ export declare const asFixedAmountCouponWithSources: {
|
|
|
47
47
|
nbf: number;
|
|
48
48
|
amount: number;
|
|
49
49
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
50
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
50
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
51
51
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
52
52
|
conditions?: Lowercase<string>[] | undefined;
|
|
53
53
|
stackable?: boolean | undefined;
|
|
@@ -14,8 +14,8 @@ export type FixedPercentageCoupon = PayloadWithOptionalSources<Payload<FixedPerc
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const isFixedPercentageCoupon: (x?: unknown | null) => x is FixedPercentageCoupon;
|
|
16
16
|
export declare const asFixedPercentageCoupon: {
|
|
17
|
-
<TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
18
|
-
<TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
17
|
+
<TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
|
+
<TType extends FixedPercentageCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedPercentageCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Identity function for determining if an object is an FixedPercentageCoupon with sources
|
|
@@ -36,7 +36,7 @@ export declare const asFixedPercentageCouponWithSources: {
|
|
|
36
36
|
stackable?: boolean | undefined;
|
|
37
37
|
exp: number;
|
|
38
38
|
nbf: number;
|
|
39
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
39
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
40
40
|
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
41
41
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
42
42
|
percentage: number;
|
|
@@ -44,7 +44,7 @@ export declare const asFixedPercentageCouponWithSources: {
|
|
|
44
44
|
stackable?: boolean | undefined;
|
|
45
45
|
exp: number;
|
|
46
46
|
nbf: number;
|
|
47
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
47
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
48
48
|
schema: "network.xyo.payments.coupon.fixed.percentage";
|
|
49
49
|
percentage: number;
|
|
50
50
|
conditions?: Lowercase<string>[] | undefined;
|
|
@@ -14,8 +14,8 @@ export type FixedPriceCoupon = PayloadWithOptionalSources<FixedPriceCouponFields
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const isFixedPriceCoupon: (x?: unknown | null) => x is FixedPriceCoupon;
|
|
16
16
|
export declare const asFixedPriceCoupon: {
|
|
17
|
-
<TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
18
|
-
<TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
17
|
+
<TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
18
|
+
<TType extends FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedPriceCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Identity function for determining if an object is an FixedPriceCoupon with sources
|
|
@@ -38,7 +38,7 @@ export declare const asFixedPriceCouponWithSources: {
|
|
|
38
38
|
nbf: number;
|
|
39
39
|
amount: number;
|
|
40
40
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
41
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
41
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
42
42
|
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
43
43
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
44
44
|
conditions?: Lowercase<string>[] | undefined;
|
|
@@ -47,7 +47,7 @@ export declare const asFixedPriceCouponWithSources: {
|
|
|
47
47
|
nbf: number;
|
|
48
48
|
amount: number;
|
|
49
49
|
currency: import("../../../../Amount/Iso4217Currency.ts").Iso4217AlphabeticalCode;
|
|
50
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
50
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
51
51
|
schema: "network.xyo.payments.coupon.fixed.price";
|
|
52
52
|
conditions?: Lowercase<string>[] | undefined;
|
|
53
53
|
stackable?: boolean | undefined;
|
|
@@ -8,8 +8,8 @@ export type Coupon = FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupo
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const isCoupon: (x?: unknown | null) => x is FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon;
|
|
10
10
|
export declare const asCoupon: {
|
|
11
|
-
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
12
|
-
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
11
|
+
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
12
|
+
<TType extends FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<FixedAmountCoupon | FixedPercentageCoupon | FixedPriceCoupon>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* Identity function for determining if an object is an Coupon with sources
|
|
@@ -62,7 +62,7 @@ export declare const asCouponWithSources: {
|
|
|
62
62
|
nbf: number;
|
|
63
63
|
amount: number;
|
|
64
64
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
65
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField)>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
65
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField)>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
66
66
|
<TType extends (import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
67
67
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
68
68
|
conditions?: Lowercase<string>[] | undefined;
|
|
@@ -86,7 +86,7 @@ export declare const asCouponWithSources: {
|
|
|
86
86
|
nbf: number;
|
|
87
87
|
amount: number;
|
|
88
88
|
currency: import("../../../index.ts").Iso4217AlphabeticalCode;
|
|
89
|
-
}> & import("@xyo-network/payload-model").SourcesMetaField)>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
89
|
+
}> & import("@xyo-network/payload-model").SourcesMetaField)>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<(import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
90
90
|
schema: "network.xyo.payments.coupon.fixed.amount";
|
|
91
91
|
conditions?: Lowercase<string>[] | undefined;
|
|
92
92
|
stackable?: boolean | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const asCondition: {
|
|
|
22
22
|
};
|
|
23
23
|
extends?: string | undefined;
|
|
24
24
|
name?: string | undefined;
|
|
25
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
25
|
+
}>>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
26
26
|
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
27
27
|
schema: "network.xyo.schema";
|
|
28
28
|
definition: {
|
|
@@ -30,7 +30,7 @@ export declare const asCondition: {
|
|
|
30
30
|
};
|
|
31
31
|
extends?: string | undefined;
|
|
32
32
|
name?: string | undefined;
|
|
33
|
-
}>>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
33
|
+
}>>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
34
34
|
schema: "network.xyo.schema";
|
|
35
35
|
definition: {
|
|
36
36
|
[x: string]: unknown;
|
|
@@ -58,7 +58,7 @@ export declare const asConditionWithSources: {
|
|
|
58
58
|
};
|
|
59
59
|
extends?: string | undefined;
|
|
60
60
|
name?: string | undefined;
|
|
61
|
-
}>>>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
61
|
+
}>>>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
62
62
|
<TType extends import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
63
63
|
schema: "network.xyo.schema";
|
|
64
64
|
definition: {
|
|
@@ -66,7 +66,7 @@ export declare const asConditionWithSources: {
|
|
|
66
66
|
};
|
|
67
67
|
extends?: string | undefined;
|
|
68
68
|
name?: string | undefined;
|
|
69
|
-
}>>>(value: import(".store/@xylabs-promise-npm-4.4.
|
|
69
|
+
}>>>(value: import(".store/@xylabs-promise-npm-4.4.25-d523bd119e/package").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
70
70
|
schema: "network.xyo.schema";
|
|
71
71
|
definition: {
|
|
72
72
|
[x: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/payment-payload-plugins",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.3",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.4.
|
|
33
|
-
"@xylabs/crypto": "^4.4.
|
|
34
|
-
"@xylabs/hex": "^4.4.
|
|
35
|
-
"@xylabs/object": "^4.4.
|
|
36
|
-
"@xyo-network/account-model": "^3.6.0-rc.
|
|
37
|
-
"@xyo-network/boundwitness-builder": "^3.6.0-rc.
|
|
38
|
-
"@xyo-network/boundwitness-model": "^3.6.0-rc.
|
|
39
|
-
"@xyo-network/boundwitness-validator": "^3.6.0-rc.
|
|
40
|
-
"@xyo-network/diviner-hash-lease": "^3.6.0-rc.
|
|
41
|
-
"@xyo-network/diviner-model": "^3.6.0-rc.
|
|
42
|
-
"@xyo-network/id-payload-plugin": "^3.6.0-rc.
|
|
43
|
-
"@xyo-network/module-model": "^3.6.0-rc.
|
|
44
|
-
"@xyo-network/payload-builder": "^3.6.0-rc.
|
|
45
|
-
"@xyo-network/payload-model": "^3.6.0-rc.
|
|
46
|
-
"@xyo-network/schema-payload-plugin": "^3.6.0-rc.
|
|
47
|
-
"@xyo-network/xns-record-payload-plugins": "^3.2.0-rc.
|
|
32
|
+
"@xylabs/assert": "^4.4.25",
|
|
33
|
+
"@xylabs/crypto": "^4.4.25",
|
|
34
|
+
"@xylabs/hex": "^4.4.25",
|
|
35
|
+
"@xylabs/object": "^4.4.25",
|
|
36
|
+
"@xyo-network/account-model": "^3.6.0-rc.13",
|
|
37
|
+
"@xyo-network/boundwitness-builder": "^3.6.0-rc.13",
|
|
38
|
+
"@xyo-network/boundwitness-model": "^3.6.0-rc.13",
|
|
39
|
+
"@xyo-network/boundwitness-validator": "^3.6.0-rc.13",
|
|
40
|
+
"@xyo-network/diviner-hash-lease": "^3.6.0-rc.13",
|
|
41
|
+
"@xyo-network/diviner-model": "^3.6.0-rc.13",
|
|
42
|
+
"@xyo-network/id-payload-plugin": "^3.6.0-rc.13",
|
|
43
|
+
"@xyo-network/module-model": "^3.6.0-rc.13",
|
|
44
|
+
"@xyo-network/payload-builder": "^3.6.0-rc.13",
|
|
45
|
+
"@xyo-network/payload-model": "^3.6.0-rc.13",
|
|
46
|
+
"@xyo-network/schema-payload-plugin": "^3.6.0-rc.13",
|
|
47
|
+
"@xyo-network/xns-record-payload-plugins": "^3.2.0-rc.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
51
51
|
"@xylabs/tsconfig": "^4.2.6",
|
|
52
|
-
"@xylabs/vitest-extended": "^4.4.
|
|
53
|
-
"@xyo-network/account": "^3.6.0-rc.
|
|
54
|
-
"@xyo-network/payload-builder": "^3.6.0-rc.
|
|
52
|
+
"@xylabs/vitest-extended": "^4.4.25",
|
|
53
|
+
"@xyo-network/account": "^3.6.0-rc.13",
|
|
54
|
+
"@xyo-network/payload-builder": "^3.6.0-rc.13",
|
|
55
55
|
"typescript": "^5.7.2",
|
|
56
56
|
"vitest": "^2.1.8"
|
|
57
57
|
},
|