@argent/x-shared 1.66.1 → 1.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("zod"),o=t.z.object({tokenType:t.z.string(),tokenAddress:t.z.string(),tokenAmount:t.z.string()}),n=t.z.object({type:t.z.enum(["lootbox"]),status:t.z.enum(["notEligible","win","loss","disabled"]),prizes:t.z.array(o).nullable().optional()}),e=t.z.object({transactionState:t.z.enum(["submitted","rejected"]).optional(),transactionHash:t.z.string(),rejectReason:t.z.string().nullable().optional(),promotions:t.z.array(n).nullable().optional()});exports.transactionExecutionResponseSchema=e;exports.transactionPromotionPrizeSchema=o;exports.transactionPromotionSchema=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("zod"),o=t.z.object({tokenType:t.z.string(),tokenAddress:t.z.string(),tokenAmount:t.z.string()}),n=t.z.object({type:t.z.enum(["lootbox"]),status:t.z.enum(["notEligible","win","loss","disabled"]),prizes:t.z.array(o).nullable().optional(),prizeTierLevel:t.z.number().nullable().optional(),prizeUsdAmount:t.z.number().nullable().optional()}),e=t.z.object({transactionState:t.z.enum(["submitted","rejected"]).optional(),transactionHash:t.z.string(),rejectReason:t.z.string().nullable().optional(),promotions:t.z.array(n).nullable().optional()});exports.transactionExecutionResponseSchema=e;exports.transactionPromotionPrizeSchema=o;exports.transactionPromotionSchema=n;
@@ -28,6 +28,8 @@ export declare const transactionPromotionSchema: z.ZodObject<{
28
28
  tokenType: string;
29
29
  tokenAmount: string;
30
30
  }>, "many">>>;
31
+ prizeTierLevel: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ prizeUsdAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
33
  }, "strip", z.ZodTypeAny, {
32
34
  type: "lootbox";
33
35
  status: "notEligible" | "win" | "loss" | "disabled";
@@ -36,6 +38,8 @@ export declare const transactionPromotionSchema: z.ZodObject<{
36
38
  tokenType: string;
37
39
  tokenAmount: string;
38
40
  }[] | null | undefined;
41
+ prizeTierLevel?: number | null | undefined;
42
+ prizeUsdAmount?: number | null | undefined;
39
43
  }, {
40
44
  type: "lootbox";
41
45
  status: "notEligible" | "win" | "loss" | "disabled";
@@ -44,6 +48,8 @@ export declare const transactionPromotionSchema: z.ZodObject<{
44
48
  tokenType: string;
45
49
  tokenAmount: string;
46
50
  }[] | null | undefined;
51
+ prizeTierLevel?: number | null | undefined;
52
+ prizeUsdAmount?: number | null | undefined;
47
53
  }>;
48
54
  export declare const transactionExecutionResponseSchema: z.ZodObject<{
49
55
  transactionState: z.ZodOptional<z.ZodEnum<["submitted", "rejected"]>>;
@@ -65,6 +71,8 @@ export declare const transactionExecutionResponseSchema: z.ZodObject<{
65
71
  tokenType: string;
66
72
  tokenAmount: string;
67
73
  }>, "many">>>;
74
+ prizeTierLevel: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
75
+ prizeUsdAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
76
  }, "strip", z.ZodTypeAny, {
69
77
  type: "lootbox";
70
78
  status: "notEligible" | "win" | "loss" | "disabled";
@@ -73,6 +81,8 @@ export declare const transactionExecutionResponseSchema: z.ZodObject<{
73
81
  tokenType: string;
74
82
  tokenAmount: string;
75
83
  }[] | null | undefined;
84
+ prizeTierLevel?: number | null | undefined;
85
+ prizeUsdAmount?: number | null | undefined;
76
86
  }, {
77
87
  type: "lootbox";
78
88
  status: "notEligible" | "win" | "loss" | "disabled";
@@ -81,6 +91,8 @@ export declare const transactionExecutionResponseSchema: z.ZodObject<{
81
91
  tokenType: string;
82
92
  tokenAmount: string;
83
93
  }[] | null | undefined;
94
+ prizeTierLevel?: number | null | undefined;
95
+ prizeUsdAmount?: number | null | undefined;
84
96
  }>, "many">>>;
85
97
  }, "strip", z.ZodTypeAny, {
86
98
  transactionHash: string;
@@ -92,6 +104,8 @@ export declare const transactionExecutionResponseSchema: z.ZodObject<{
92
104
  tokenType: string;
93
105
  tokenAmount: string;
94
106
  }[] | null | undefined;
107
+ prizeTierLevel?: number | null | undefined;
108
+ prizeUsdAmount?: number | null | undefined;
95
109
  }[] | null | undefined;
96
110
  transactionState?: "rejected" | "submitted" | undefined;
97
111
  rejectReason?: string | null | undefined;
@@ -105,6 +119,8 @@ export declare const transactionExecutionResponseSchema: z.ZodObject<{
105
119
  tokenType: string;
106
120
  tokenAmount: string;
107
121
  }[] | null | undefined;
122
+ prizeTierLevel?: number | null | undefined;
123
+ prizeUsdAmount?: number | null | undefined;
108
124
  }[] | null | undefined;
109
125
  transactionState?: "rejected" | "submitted" | undefined;
110
126
  rejectReason?: string | null | undefined;
@@ -6,8 +6,10 @@ const o = t.object({
6
6
  }), n = t.object({
7
7
  type: t.enum(["lootbox"]),
8
8
  status: t.enum(["notEligible", "win", "loss", "disabled"]),
9
- prizes: t.array(o).nullable().optional()
9
+ prizes: t.array(o).nullable().optional(),
10
10
  // need to support null values too
11
+ prizeTierLevel: t.number().nullable().optional(),
12
+ prizeUsdAmount: t.number().nullable().optional()
11
13
  }), a = t.object({
12
14
  transactionState: t.enum(["submitted", "rejected"]).optional(),
13
15
  transactionHash: t.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.66.1",
3
+ "version": "1.66.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"