@gigapay-dev/contracts 3.13.1 → 3.14.0

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.
@@ -105,9 +105,9 @@ export declare const RefundOrderEndpoint: {
105
105
  }>;
106
106
  fetchedAt: z.ZodString;
107
107
  rates: z.ZodObject<{
108
- usdRub: z.ZodString;
109
- usdUah: z.ZodString;
110
- usdKzt: z.ZodString;
108
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
109
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
110
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
111
111
  }, z.core.$strip>;
112
112
  }, z.core.$strip>;
113
113
  status: z.ZodEnum<{
@@ -117,6 +117,7 @@ export declare const RefundOrderEndpoint: {
117
117
  PROCESSING: "PROCESSING";
118
118
  SUCCESS: "SUCCESS";
119
119
  FAILED: "FAILED";
120
+ EXPIRED: "EXPIRED";
120
121
  REFUNDED: "REFUNDED";
121
122
  CANCELLED: "CANCELLED";
122
123
  }>;
@@ -131,6 +132,32 @@ export declare const RefundOrderEndpoint: {
131
132
  uah: z.ZodString;
132
133
  kzt: z.ZodString;
133
134
  }, z.core.$strip>;
135
+ product: z.ZodObject<{
136
+ title: z.ZodString;
137
+ type: z.ZodEnum<{
138
+ GAME_KEY: "GAME_KEY";
139
+ GAME_GIFT: "GAME_GIFT";
140
+ TOPUP: "TOPUP";
141
+ SUBSCRIPTION: "SUBSCRIPTION";
142
+ IN_GAME_ITEM: "IN_GAME_ITEM";
143
+ DLC: "DLC";
144
+ CURRENCY: "CURRENCY";
145
+ VOUCHER: "VOUCHER";
146
+ }>;
147
+ }, z.core.$strip>;
148
+ variant: z.ZodObject<{
149
+ name: z.ZodString;
150
+ sku: z.ZodString;
151
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
152
+ VOUCHER: "VOUCHER";
153
+ STEAM_TOPUP: "STEAM_TOPUP";
154
+ STEAM_GIFT: "STEAM_GIFT";
155
+ MOBILE_REFILL: "MOBILE_REFILL";
156
+ CRYPTO_REFILL: "CRYPTO_REFILL";
157
+ }>>;
158
+ topupAmount: z.ZodNullable<z.ZodString>;
159
+ topupCurrency: z.ZodNullable<z.ZodString>;
160
+ }, z.core.$strip>;
134
161
  deliveredAt: z.ZodNullable<z.ZodString>;
135
162
  status: z.ZodEnum<{
136
163
  PENDING: "PENDING";
@@ -229,9 +256,9 @@ export declare const OrderCommands: {
229
256
  }>;
230
257
  fetchedAt: z.ZodString;
231
258
  rates: z.ZodObject<{
232
- usdRub: z.ZodString;
233
- usdUah: z.ZodString;
234
- usdKzt: z.ZodString;
259
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
260
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
261
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
235
262
  }, z.core.$strip>;
236
263
  }, z.core.$strip>;
237
264
  status: z.ZodEnum<{
@@ -241,6 +268,7 @@ export declare const OrderCommands: {
241
268
  PROCESSING: "PROCESSING";
242
269
  SUCCESS: "SUCCESS";
243
270
  FAILED: "FAILED";
271
+ EXPIRED: "EXPIRED";
244
272
  REFUNDED: "REFUNDED";
245
273
  CANCELLED: "CANCELLED";
246
274
  }>;
@@ -255,6 +283,32 @@ export declare const OrderCommands: {
255
283
  uah: z.ZodString;
256
284
  kzt: z.ZodString;
257
285
  }, z.core.$strip>;
286
+ product: z.ZodObject<{
287
+ title: z.ZodString;
288
+ type: z.ZodEnum<{
289
+ GAME_KEY: "GAME_KEY";
290
+ GAME_GIFT: "GAME_GIFT";
291
+ TOPUP: "TOPUP";
292
+ SUBSCRIPTION: "SUBSCRIPTION";
293
+ IN_GAME_ITEM: "IN_GAME_ITEM";
294
+ DLC: "DLC";
295
+ CURRENCY: "CURRENCY";
296
+ VOUCHER: "VOUCHER";
297
+ }>;
298
+ }, z.core.$strip>;
299
+ variant: z.ZodObject<{
300
+ name: z.ZodString;
301
+ sku: z.ZodString;
302
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
303
+ VOUCHER: "VOUCHER";
304
+ STEAM_TOPUP: "STEAM_TOPUP";
305
+ STEAM_GIFT: "STEAM_GIFT";
306
+ MOBILE_REFILL: "MOBILE_REFILL";
307
+ CRYPTO_REFILL: "CRYPTO_REFILL";
308
+ }>>;
309
+ topupAmount: z.ZodNullable<z.ZodString>;
310
+ topupCurrency: z.ZodNullable<z.ZodString>;
311
+ }, z.core.$strip>;
258
312
  deliveredAt: z.ZodNullable<z.ZodString>;
259
313
  status: z.ZodEnum<{
260
314
  PENDING: "PENDING";
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;iBAMnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOK,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;;;;;;;;CAMK,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOK,CAAC;AAEtC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAC"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;iBAMnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOK,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;;;;;;;;CAMK,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOK,CAAC;AAEtC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAC"}
@@ -7,6 +7,7 @@ export declare const OrderStatusSchema: z.ZodEnum<{
7
7
  PROCESSING: "PROCESSING";
8
8
  SUCCESS: "SUCCESS";
9
9
  FAILED: "FAILED";
10
+ EXPIRED: "EXPIRED";
10
11
  REFUNDED: "REFUNDED";
11
12
  CANCELLED: "CANCELLED";
12
13
  }>;
@@ -29,6 +30,32 @@ export declare const OrderItemResponseSchema: z.ZodObject<{
29
30
  uah: z.ZodString;
30
31
  kzt: z.ZodString;
31
32
  }, z.core.$strip>;
33
+ product: z.ZodObject<{
34
+ title: z.ZodString;
35
+ type: z.ZodEnum<{
36
+ GAME_KEY: "GAME_KEY";
37
+ GAME_GIFT: "GAME_GIFT";
38
+ TOPUP: "TOPUP";
39
+ SUBSCRIPTION: "SUBSCRIPTION";
40
+ IN_GAME_ITEM: "IN_GAME_ITEM";
41
+ DLC: "DLC";
42
+ CURRENCY: "CURRENCY";
43
+ VOUCHER: "VOUCHER";
44
+ }>;
45
+ }, z.core.$strip>;
46
+ variant: z.ZodObject<{
47
+ name: z.ZodString;
48
+ sku: z.ZodString;
49
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
50
+ VOUCHER: "VOUCHER";
51
+ STEAM_TOPUP: "STEAM_TOPUP";
52
+ STEAM_GIFT: "STEAM_GIFT";
53
+ MOBILE_REFILL: "MOBILE_REFILL";
54
+ CRYPTO_REFILL: "CRYPTO_REFILL";
55
+ }>>;
56
+ topupAmount: z.ZodNullable<z.ZodString>;
57
+ topupCurrency: z.ZodNullable<z.ZodString>;
58
+ }, z.core.$strip>;
32
59
  deliveredAt: z.ZodNullable<z.ZodString>;
33
60
  status: z.ZodEnum<{
34
61
  PENDING: "PENDING";
@@ -75,9 +102,9 @@ export declare const OrderResponseSchema: z.ZodObject<{
75
102
  }>;
76
103
  fetchedAt: z.ZodString;
77
104
  rates: z.ZodObject<{
78
- usdRub: z.ZodString;
79
- usdUah: z.ZodString;
80
- usdKzt: z.ZodString;
105
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
106
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
107
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
81
108
  }, z.core.$strip>;
82
109
  }, z.core.$strip>;
83
110
  status: z.ZodEnum<{
@@ -87,6 +114,7 @@ export declare const OrderResponseSchema: z.ZodObject<{
87
114
  PROCESSING: "PROCESSING";
88
115
  SUCCESS: "SUCCESS";
89
116
  FAILED: "FAILED";
117
+ EXPIRED: "EXPIRED";
90
118
  REFUNDED: "REFUNDED";
91
119
  CANCELLED: "CANCELLED";
92
120
  }>;
@@ -101,6 +129,32 @@ export declare const OrderResponseSchema: z.ZodObject<{
101
129
  uah: z.ZodString;
102
130
  kzt: z.ZodString;
103
131
  }, z.core.$strip>;
132
+ product: z.ZodObject<{
133
+ title: z.ZodString;
134
+ type: z.ZodEnum<{
135
+ GAME_KEY: "GAME_KEY";
136
+ GAME_GIFT: "GAME_GIFT";
137
+ TOPUP: "TOPUP";
138
+ SUBSCRIPTION: "SUBSCRIPTION";
139
+ IN_GAME_ITEM: "IN_GAME_ITEM";
140
+ DLC: "DLC";
141
+ CURRENCY: "CURRENCY";
142
+ VOUCHER: "VOUCHER";
143
+ }>;
144
+ }, z.core.$strip>;
145
+ variant: z.ZodObject<{
146
+ name: z.ZodString;
147
+ sku: z.ZodString;
148
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
149
+ VOUCHER: "VOUCHER";
150
+ STEAM_TOPUP: "STEAM_TOPUP";
151
+ STEAM_GIFT: "STEAM_GIFT";
152
+ MOBILE_REFILL: "MOBILE_REFILL";
153
+ CRYPTO_REFILL: "CRYPTO_REFILL";
154
+ }>>;
155
+ topupAmount: z.ZodNullable<z.ZodString>;
156
+ topupCurrency: z.ZodNullable<z.ZodString>;
157
+ }, z.core.$strip>;
104
158
  deliveredAt: z.ZodNullable<z.ZodString>;
105
159
  status: z.ZodEnum<{
106
160
  PENDING: "PENDING";
@@ -1 +1 @@
1
- {"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/dtos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvH,eAAO,MAAM,iBAAiB;;;;;;;;;EAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -4,6 +4,7 @@ exports.MoneyAmountSchema = exports.OrderResponseSchema = exports.OrderItemRespo
4
4
  const zod_1 = require("zod");
5
5
  const money_1 = require("../../shared/money");
6
6
  Object.defineProperty(exports, "MoneyAmountSchema", { enumerable: true, get: function () { return money_1.MoneyAmountSchema; } });
7
+ const dtos_1 = require("../products/dtos");
7
8
  exports.OrderStatusSchema = zod_1.z.enum([
8
9
  "PENDING",
9
10
  "AWAITING_PAYMENT",
@@ -11,6 +12,7 @@ exports.OrderStatusSchema = zod_1.z.enum([
11
12
  "PROCESSING",
12
13
  "SUCCESS",
13
14
  "FAILED",
15
+ "EXPIRED",
14
16
  "REFUNDED",
15
17
  "CANCELLED",
16
18
  ]);
@@ -26,6 +28,17 @@ exports.OrderItemResponseSchema = zod_1.z.object({
26
28
  variantId: zod_1.z.number().int().positive(),
27
29
  quantity: zod_1.z.number().int().positive(),
28
30
  price: money_1.MoneyTripletSchema,
31
+ product: zod_1.z.object({
32
+ title: zod_1.z.string(),
33
+ type: dtos_1.ProductTypeSchema,
34
+ }),
35
+ variant: zod_1.z.object({
36
+ name: zod_1.z.string(),
37
+ sku: zod_1.z.string(),
38
+ desslyServiceType: dtos_1.DesslyServiceTypeSchema.nullable(),
39
+ topupAmount: money_1.MoneyAmountSchema.nullable(),
40
+ topupCurrency: zod_1.z.string().nullable(),
41
+ }),
29
42
  deliveredAt: zod_1.z.string().nullable(),
30
43
  status: zod_1.z.enum(["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]),
31
44
  });
@@ -1 +1 @@
1
- {"version":3,"file":"dtos.js","sourceRoot":"","sources":["../../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,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACzB,eAAe,EAAE,sBAAc;IAC/B,QAAQ,EAAE,0BAAkB;IAC5B,QAAQ,EAAE,0BAAkB;IAC5B,KAAK,EAAE,0BAAkB;IACzB,oBAAoB,EAAE,kCAA0B;IAChD,MAAM,EAAE,yBAAiB;IACzB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC"}
@@ -45,9 +45,9 @@ export declare const OrderEndpoints: {
45
45
  }>;
46
46
  fetchedAt: import("zod").ZodString;
47
47
  rates: import("zod").ZodObject<{
48
- usdRub: import("zod").ZodString;
49
- usdUah: import("zod").ZodString;
50
- usdKzt: import("zod").ZodString;
48
+ usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
49
+ usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
50
+ usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
51
51
  }, import("zod/v4/core").$strip>;
52
52
  }, import("zod/v4/core").$strip>;
53
53
  status: import("zod").ZodEnum<{
@@ -57,6 +57,7 @@ export declare const OrderEndpoints: {
57
57
  PROCESSING: "PROCESSING";
58
58
  SUCCESS: "SUCCESS";
59
59
  FAILED: "FAILED";
60
+ EXPIRED: "EXPIRED";
60
61
  REFUNDED: "REFUNDED";
61
62
  CANCELLED: "CANCELLED";
62
63
  }>;
@@ -71,6 +72,32 @@ export declare const OrderEndpoints: {
71
72
  uah: import("zod").ZodString;
72
73
  kzt: import("zod").ZodString;
73
74
  }, import("zod/v4/core").$strip>;
75
+ product: import("zod").ZodObject<{
76
+ title: import("zod").ZodString;
77
+ type: import("zod").ZodEnum<{
78
+ GAME_KEY: "GAME_KEY";
79
+ GAME_GIFT: "GAME_GIFT";
80
+ TOPUP: "TOPUP";
81
+ SUBSCRIPTION: "SUBSCRIPTION";
82
+ IN_GAME_ITEM: "IN_GAME_ITEM";
83
+ DLC: "DLC";
84
+ CURRENCY: "CURRENCY";
85
+ VOUCHER: "VOUCHER";
86
+ }>;
87
+ }, import("zod/v4/core").$strip>;
88
+ variant: import("zod").ZodObject<{
89
+ name: import("zod").ZodString;
90
+ sku: import("zod").ZodString;
91
+ desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
92
+ VOUCHER: "VOUCHER";
93
+ STEAM_TOPUP: "STEAM_TOPUP";
94
+ STEAM_GIFT: "STEAM_GIFT";
95
+ MOBILE_REFILL: "MOBILE_REFILL";
96
+ CRYPTO_REFILL: "CRYPTO_REFILL";
97
+ }>>;
98
+ topupAmount: import("zod").ZodNullable<import("zod").ZodString>;
99
+ topupCurrency: import("zod").ZodNullable<import("zod").ZodString>;
100
+ }, import("zod/v4/core").$strip>;
74
101
  deliveredAt: import("zod").ZodNullable<import("zod").ZodString>;
75
102
  status: import("zod").ZodEnum<{
76
103
  PENDING: "PENDING";
@@ -128,9 +155,9 @@ export declare const OrderEndpoints: {
128
155
  }>;
129
156
  fetchedAt: import("zod").ZodString;
130
157
  rates: import("zod").ZodObject<{
131
- usdRub: import("zod").ZodString;
132
- usdUah: import("zod").ZodString;
133
- usdKzt: import("zod").ZodString;
158
+ usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
159
+ usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
160
+ usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
134
161
  }, import("zod/v4/core").$strip>;
135
162
  }, import("zod/v4/core").$strip>;
136
163
  status: import("zod").ZodEnum<{
@@ -140,6 +167,7 @@ export declare const OrderEndpoints: {
140
167
  PROCESSING: "PROCESSING";
141
168
  SUCCESS: "SUCCESS";
142
169
  FAILED: "FAILED";
170
+ EXPIRED: "EXPIRED";
143
171
  REFUNDED: "REFUNDED";
144
172
  CANCELLED: "CANCELLED";
145
173
  }>;
@@ -154,6 +182,32 @@ export declare const OrderEndpoints: {
154
182
  uah: import("zod").ZodString;
155
183
  kzt: import("zod").ZodString;
156
184
  }, import("zod/v4/core").$strip>;
185
+ product: import("zod").ZodObject<{
186
+ title: import("zod").ZodString;
187
+ type: import("zod").ZodEnum<{
188
+ GAME_KEY: "GAME_KEY";
189
+ GAME_GIFT: "GAME_GIFT";
190
+ TOPUP: "TOPUP";
191
+ SUBSCRIPTION: "SUBSCRIPTION";
192
+ IN_GAME_ITEM: "IN_GAME_ITEM";
193
+ DLC: "DLC";
194
+ CURRENCY: "CURRENCY";
195
+ VOUCHER: "VOUCHER";
196
+ }>;
197
+ }, import("zod/v4/core").$strip>;
198
+ variant: import("zod").ZodObject<{
199
+ name: import("zod").ZodString;
200
+ sku: import("zod").ZodString;
201
+ desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
202
+ VOUCHER: "VOUCHER";
203
+ STEAM_TOPUP: "STEAM_TOPUP";
204
+ STEAM_GIFT: "STEAM_GIFT";
205
+ MOBILE_REFILL: "MOBILE_REFILL";
206
+ CRYPTO_REFILL: "CRYPTO_REFILL";
207
+ }>>;
208
+ topupAmount: import("zod").ZodNullable<import("zod").ZodString>;
209
+ topupCurrency: import("zod").ZodNullable<import("zod").ZodString>;
210
+ }, import("zod/v4/core").$strip>;
157
211
  deliveredAt: import("zod").ZodNullable<import("zod").ZodString>;
158
212
  status: import("zod").ZodEnum<{
159
213
  PENDING: "PENDING";
@@ -184,6 +238,7 @@ export declare const OrderEndpoints: {
184
238
  PROCESSING: "PROCESSING";
185
239
  SUCCESS: "SUCCESS";
186
240
  FAILED: "FAILED";
241
+ EXPIRED: "EXPIRED";
187
242
  REFUNDED: "REFUNDED";
188
243
  CANCELLED: "CANCELLED";
189
244
  }>>;
@@ -227,9 +282,9 @@ export declare const OrderEndpoints: {
227
282
  }>;
228
283
  fetchedAt: import("zod").ZodString;
229
284
  rates: import("zod").ZodObject<{
230
- usdRub: import("zod").ZodString;
231
- usdUah: import("zod").ZodString;
232
- usdKzt: import("zod").ZodString;
285
+ usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
286
+ usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
287
+ usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
233
288
  }, import("zod/v4/core").$strip>;
234
289
  }, import("zod/v4/core").$strip>;
235
290
  status: import("zod").ZodEnum<{
@@ -239,6 +294,7 @@ export declare const OrderEndpoints: {
239
294
  PROCESSING: "PROCESSING";
240
295
  SUCCESS: "SUCCESS";
241
296
  FAILED: "FAILED";
297
+ EXPIRED: "EXPIRED";
242
298
  REFUNDED: "REFUNDED";
243
299
  CANCELLED: "CANCELLED";
244
300
  }>;
@@ -253,6 +309,32 @@ export declare const OrderEndpoints: {
253
309
  uah: import("zod").ZodString;
254
310
  kzt: import("zod").ZodString;
255
311
  }, import("zod/v4/core").$strip>;
312
+ product: import("zod").ZodObject<{
313
+ title: import("zod").ZodString;
314
+ type: import("zod").ZodEnum<{
315
+ GAME_KEY: "GAME_KEY";
316
+ GAME_GIFT: "GAME_GIFT";
317
+ TOPUP: "TOPUP";
318
+ SUBSCRIPTION: "SUBSCRIPTION";
319
+ IN_GAME_ITEM: "IN_GAME_ITEM";
320
+ DLC: "DLC";
321
+ CURRENCY: "CURRENCY";
322
+ VOUCHER: "VOUCHER";
323
+ }>;
324
+ }, import("zod/v4/core").$strip>;
325
+ variant: import("zod").ZodObject<{
326
+ name: import("zod").ZodString;
327
+ sku: import("zod").ZodString;
328
+ desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
329
+ VOUCHER: "VOUCHER";
330
+ STEAM_TOPUP: "STEAM_TOPUP";
331
+ STEAM_GIFT: "STEAM_GIFT";
332
+ MOBILE_REFILL: "MOBILE_REFILL";
333
+ CRYPTO_REFILL: "CRYPTO_REFILL";
334
+ }>>;
335
+ topupAmount: import("zod").ZodNullable<import("zod").ZodString>;
336
+ topupCurrency: import("zod").ZodNullable<import("zod").ZodString>;
337
+ }, import("zod/v4/core").$strip>;
256
338
  deliveredAt: import("zod").ZodNullable<import("zod").ZodString>;
257
339
  status: import("zod").ZodEnum<{
258
340
  PENDING: "PENDING";
@@ -354,9 +436,9 @@ export declare const OrderEndpoints: {
354
436
  }>;
355
437
  fetchedAt: import("zod").ZodString;
356
438
  rates: import("zod").ZodObject<{
357
- usdRub: import("zod").ZodString;
358
- usdUah: import("zod").ZodString;
359
- usdKzt: import("zod").ZodString;
439
+ usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
440
+ usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
441
+ usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
360
442
  }, import("zod/v4/core").$strip>;
361
443
  }, import("zod/v4/core").$strip>;
362
444
  status: import("zod").ZodEnum<{
@@ -366,6 +448,7 @@ export declare const OrderEndpoints: {
366
448
  PROCESSING: "PROCESSING";
367
449
  SUCCESS: "SUCCESS";
368
450
  FAILED: "FAILED";
451
+ EXPIRED: "EXPIRED";
369
452
  REFUNDED: "REFUNDED";
370
453
  CANCELLED: "CANCELLED";
371
454
  }>;
@@ -380,6 +463,32 @@ export declare const OrderEndpoints: {
380
463
  uah: import("zod").ZodString;
381
464
  kzt: import("zod").ZodString;
382
465
  }, import("zod/v4/core").$strip>;
466
+ product: import("zod").ZodObject<{
467
+ title: import("zod").ZodString;
468
+ type: import("zod").ZodEnum<{
469
+ GAME_KEY: "GAME_KEY";
470
+ GAME_GIFT: "GAME_GIFT";
471
+ TOPUP: "TOPUP";
472
+ SUBSCRIPTION: "SUBSCRIPTION";
473
+ IN_GAME_ITEM: "IN_GAME_ITEM";
474
+ DLC: "DLC";
475
+ CURRENCY: "CURRENCY";
476
+ VOUCHER: "VOUCHER";
477
+ }>;
478
+ }, import("zod/v4/core").$strip>;
479
+ variant: import("zod").ZodObject<{
480
+ name: import("zod").ZodString;
481
+ sku: import("zod").ZodString;
482
+ desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
483
+ VOUCHER: "VOUCHER";
484
+ STEAM_TOPUP: "STEAM_TOPUP";
485
+ STEAM_GIFT: "STEAM_GIFT";
486
+ MOBILE_REFILL: "MOBILE_REFILL";
487
+ CRYPTO_REFILL: "CRYPTO_REFILL";
488
+ }>>;
489
+ topupAmount: import("zod").ZodNullable<import("zod").ZodString>;
490
+ topupCurrency: import("zod").ZodNullable<import("zod").ZodString>;
491
+ }, import("zod/v4/core").$strip>;
383
492
  deliveredAt: import("zod").ZodNullable<import("zod").ZodString>;
384
493
  status: import("zod").ZodEnum<{
385
494
  PENDING: "PENDING";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAKzB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAKzB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjB,CAAC"}
@@ -41,9 +41,9 @@ export declare const GetOrderByIdEndpoint: {
41
41
  }>;
42
42
  fetchedAt: z.ZodString;
43
43
  rates: z.ZodObject<{
44
- usdRub: z.ZodString;
45
- usdUah: z.ZodString;
46
- usdKzt: z.ZodString;
44
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
45
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
46
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
47
47
  }, z.core.$strip>;
48
48
  }, z.core.$strip>;
49
49
  status: z.ZodEnum<{
@@ -53,6 +53,7 @@ export declare const GetOrderByIdEndpoint: {
53
53
  PROCESSING: "PROCESSING";
54
54
  SUCCESS: "SUCCESS";
55
55
  FAILED: "FAILED";
56
+ EXPIRED: "EXPIRED";
56
57
  REFUNDED: "REFUNDED";
57
58
  CANCELLED: "CANCELLED";
58
59
  }>;
@@ -67,6 +68,32 @@ export declare const GetOrderByIdEndpoint: {
67
68
  uah: z.ZodString;
68
69
  kzt: z.ZodString;
69
70
  }, z.core.$strip>;
71
+ product: z.ZodObject<{
72
+ title: z.ZodString;
73
+ type: z.ZodEnum<{
74
+ GAME_KEY: "GAME_KEY";
75
+ GAME_GIFT: "GAME_GIFT";
76
+ TOPUP: "TOPUP";
77
+ SUBSCRIPTION: "SUBSCRIPTION";
78
+ IN_GAME_ITEM: "IN_GAME_ITEM";
79
+ DLC: "DLC";
80
+ CURRENCY: "CURRENCY";
81
+ VOUCHER: "VOUCHER";
82
+ }>;
83
+ }, z.core.$strip>;
84
+ variant: z.ZodObject<{
85
+ name: z.ZodString;
86
+ sku: z.ZodString;
87
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
88
+ VOUCHER: "VOUCHER";
89
+ STEAM_TOPUP: "STEAM_TOPUP";
90
+ STEAM_GIFT: "STEAM_GIFT";
91
+ MOBILE_REFILL: "MOBILE_REFILL";
92
+ CRYPTO_REFILL: "CRYPTO_REFILL";
93
+ }>>;
94
+ topupAmount: z.ZodNullable<z.ZodString>;
95
+ topupCurrency: z.ZodNullable<z.ZodString>;
96
+ }, z.core.$strip>;
70
97
  deliveredAt: z.ZodNullable<z.ZodString>;
71
98
  status: z.ZodEnum<{
72
99
  PENDING: "PENDING";
@@ -124,9 +151,9 @@ export declare const ListOrdersForUserEndpoint: {
124
151
  }>;
125
152
  fetchedAt: z.ZodString;
126
153
  rates: z.ZodObject<{
127
- usdRub: z.ZodString;
128
- usdUah: z.ZodString;
129
- usdKzt: z.ZodString;
154
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
155
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
156
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
130
157
  }, z.core.$strip>;
131
158
  }, z.core.$strip>;
132
159
  status: z.ZodEnum<{
@@ -136,6 +163,7 @@ export declare const ListOrdersForUserEndpoint: {
136
163
  PROCESSING: "PROCESSING";
137
164
  SUCCESS: "SUCCESS";
138
165
  FAILED: "FAILED";
166
+ EXPIRED: "EXPIRED";
139
167
  REFUNDED: "REFUNDED";
140
168
  CANCELLED: "CANCELLED";
141
169
  }>;
@@ -150,6 +178,32 @@ export declare const ListOrdersForUserEndpoint: {
150
178
  uah: z.ZodString;
151
179
  kzt: z.ZodString;
152
180
  }, z.core.$strip>;
181
+ product: z.ZodObject<{
182
+ title: z.ZodString;
183
+ type: z.ZodEnum<{
184
+ GAME_KEY: "GAME_KEY";
185
+ GAME_GIFT: "GAME_GIFT";
186
+ TOPUP: "TOPUP";
187
+ SUBSCRIPTION: "SUBSCRIPTION";
188
+ IN_GAME_ITEM: "IN_GAME_ITEM";
189
+ DLC: "DLC";
190
+ CURRENCY: "CURRENCY";
191
+ VOUCHER: "VOUCHER";
192
+ }>;
193
+ }, z.core.$strip>;
194
+ variant: z.ZodObject<{
195
+ name: z.ZodString;
196
+ sku: z.ZodString;
197
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
198
+ VOUCHER: "VOUCHER";
199
+ STEAM_TOPUP: "STEAM_TOPUP";
200
+ STEAM_GIFT: "STEAM_GIFT";
201
+ MOBILE_REFILL: "MOBILE_REFILL";
202
+ CRYPTO_REFILL: "CRYPTO_REFILL";
203
+ }>>;
204
+ topupAmount: z.ZodNullable<z.ZodString>;
205
+ topupCurrency: z.ZodNullable<z.ZodString>;
206
+ }, z.core.$strip>;
153
207
  deliveredAt: z.ZodNullable<z.ZodString>;
154
208
  status: z.ZodEnum<{
155
209
  PENDING: "PENDING";
@@ -177,6 +231,7 @@ export declare const ListOrdersAdminQuerySchema: z.ZodObject<{
177
231
  PROCESSING: "PROCESSING";
178
232
  SUCCESS: "SUCCESS";
179
233
  FAILED: "FAILED";
234
+ EXPIRED: "EXPIRED";
180
235
  REFUNDED: "REFUNDED";
181
236
  CANCELLED: "CANCELLED";
182
237
  }>>;
@@ -196,6 +251,7 @@ export declare const ListOrdersAdminEndpoint: {
196
251
  PROCESSING: "PROCESSING";
197
252
  SUCCESS: "SUCCESS";
198
253
  FAILED: "FAILED";
254
+ EXPIRED: "EXPIRED";
199
255
  REFUNDED: "REFUNDED";
200
256
  CANCELLED: "CANCELLED";
201
257
  }>>;
@@ -239,9 +295,9 @@ export declare const ListOrdersAdminEndpoint: {
239
295
  }>;
240
296
  fetchedAt: z.ZodString;
241
297
  rates: z.ZodObject<{
242
- usdRub: z.ZodString;
243
- usdUah: z.ZodString;
244
- usdKzt: z.ZodString;
298
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
299
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
300
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
245
301
  }, z.core.$strip>;
246
302
  }, z.core.$strip>;
247
303
  status: z.ZodEnum<{
@@ -251,6 +307,7 @@ export declare const ListOrdersAdminEndpoint: {
251
307
  PROCESSING: "PROCESSING";
252
308
  SUCCESS: "SUCCESS";
253
309
  FAILED: "FAILED";
310
+ EXPIRED: "EXPIRED";
254
311
  REFUNDED: "REFUNDED";
255
312
  CANCELLED: "CANCELLED";
256
313
  }>;
@@ -265,6 +322,32 @@ export declare const ListOrdersAdminEndpoint: {
265
322
  uah: z.ZodString;
266
323
  kzt: z.ZodString;
267
324
  }, z.core.$strip>;
325
+ product: z.ZodObject<{
326
+ title: z.ZodString;
327
+ type: z.ZodEnum<{
328
+ GAME_KEY: "GAME_KEY";
329
+ GAME_GIFT: "GAME_GIFT";
330
+ TOPUP: "TOPUP";
331
+ SUBSCRIPTION: "SUBSCRIPTION";
332
+ IN_GAME_ITEM: "IN_GAME_ITEM";
333
+ DLC: "DLC";
334
+ CURRENCY: "CURRENCY";
335
+ VOUCHER: "VOUCHER";
336
+ }>;
337
+ }, z.core.$strip>;
338
+ variant: z.ZodObject<{
339
+ name: z.ZodString;
340
+ sku: z.ZodString;
341
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
342
+ VOUCHER: "VOUCHER";
343
+ STEAM_TOPUP: "STEAM_TOPUP";
344
+ STEAM_GIFT: "STEAM_GIFT";
345
+ MOBILE_REFILL: "MOBILE_REFILL";
346
+ CRYPTO_REFILL: "CRYPTO_REFILL";
347
+ }>>;
348
+ topupAmount: z.ZodNullable<z.ZodString>;
349
+ topupCurrency: z.ZodNullable<z.ZodString>;
350
+ }, z.core.$strip>;
268
351
  deliveredAt: z.ZodNullable<z.ZodString>;
269
352
  status: z.ZodEnum<{
270
353
  PENDING: "PENDING";
@@ -326,9 +409,9 @@ export declare const OrderQueries: {
326
409
  }>;
327
410
  fetchedAt: z.ZodString;
328
411
  rates: z.ZodObject<{
329
- usdRub: z.ZodString;
330
- usdUah: z.ZodString;
331
- usdKzt: z.ZodString;
412
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
413
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
414
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
332
415
  }, z.core.$strip>;
333
416
  }, z.core.$strip>;
334
417
  status: z.ZodEnum<{
@@ -338,6 +421,7 @@ export declare const OrderQueries: {
338
421
  PROCESSING: "PROCESSING";
339
422
  SUCCESS: "SUCCESS";
340
423
  FAILED: "FAILED";
424
+ EXPIRED: "EXPIRED";
341
425
  REFUNDED: "REFUNDED";
342
426
  CANCELLED: "CANCELLED";
343
427
  }>;
@@ -352,6 +436,32 @@ export declare const OrderQueries: {
352
436
  uah: z.ZodString;
353
437
  kzt: z.ZodString;
354
438
  }, z.core.$strip>;
439
+ product: z.ZodObject<{
440
+ title: z.ZodString;
441
+ type: z.ZodEnum<{
442
+ GAME_KEY: "GAME_KEY";
443
+ GAME_GIFT: "GAME_GIFT";
444
+ TOPUP: "TOPUP";
445
+ SUBSCRIPTION: "SUBSCRIPTION";
446
+ IN_GAME_ITEM: "IN_GAME_ITEM";
447
+ DLC: "DLC";
448
+ CURRENCY: "CURRENCY";
449
+ VOUCHER: "VOUCHER";
450
+ }>;
451
+ }, z.core.$strip>;
452
+ variant: z.ZodObject<{
453
+ name: z.ZodString;
454
+ sku: z.ZodString;
455
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
456
+ VOUCHER: "VOUCHER";
457
+ STEAM_TOPUP: "STEAM_TOPUP";
458
+ STEAM_GIFT: "STEAM_GIFT";
459
+ MOBILE_REFILL: "MOBILE_REFILL";
460
+ CRYPTO_REFILL: "CRYPTO_REFILL";
461
+ }>>;
462
+ topupAmount: z.ZodNullable<z.ZodString>;
463
+ topupCurrency: z.ZodNullable<z.ZodString>;
464
+ }, z.core.$strip>;
355
465
  deliveredAt: z.ZodNullable<z.ZodString>;
356
466
  status: z.ZodEnum<{
357
467
  PENDING: "PENDING";
@@ -409,9 +519,9 @@ export declare const OrderQueries: {
409
519
  }>;
410
520
  fetchedAt: z.ZodString;
411
521
  rates: z.ZodObject<{
412
- usdRub: z.ZodString;
413
- usdUah: z.ZodString;
414
- usdKzt: z.ZodString;
522
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
523
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
524
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
415
525
  }, z.core.$strip>;
416
526
  }, z.core.$strip>;
417
527
  status: z.ZodEnum<{
@@ -421,6 +531,7 @@ export declare const OrderQueries: {
421
531
  PROCESSING: "PROCESSING";
422
532
  SUCCESS: "SUCCESS";
423
533
  FAILED: "FAILED";
534
+ EXPIRED: "EXPIRED";
424
535
  REFUNDED: "REFUNDED";
425
536
  CANCELLED: "CANCELLED";
426
537
  }>;
@@ -435,6 +546,32 @@ export declare const OrderQueries: {
435
546
  uah: z.ZodString;
436
547
  kzt: z.ZodString;
437
548
  }, z.core.$strip>;
549
+ product: z.ZodObject<{
550
+ title: z.ZodString;
551
+ type: z.ZodEnum<{
552
+ GAME_KEY: "GAME_KEY";
553
+ GAME_GIFT: "GAME_GIFT";
554
+ TOPUP: "TOPUP";
555
+ SUBSCRIPTION: "SUBSCRIPTION";
556
+ IN_GAME_ITEM: "IN_GAME_ITEM";
557
+ DLC: "DLC";
558
+ CURRENCY: "CURRENCY";
559
+ VOUCHER: "VOUCHER";
560
+ }>;
561
+ }, z.core.$strip>;
562
+ variant: z.ZodObject<{
563
+ name: z.ZodString;
564
+ sku: z.ZodString;
565
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
566
+ VOUCHER: "VOUCHER";
567
+ STEAM_TOPUP: "STEAM_TOPUP";
568
+ STEAM_GIFT: "STEAM_GIFT";
569
+ MOBILE_REFILL: "MOBILE_REFILL";
570
+ CRYPTO_REFILL: "CRYPTO_REFILL";
571
+ }>>;
572
+ topupAmount: z.ZodNullable<z.ZodString>;
573
+ topupCurrency: z.ZodNullable<z.ZodString>;
574
+ }, z.core.$strip>;
438
575
  deliveredAt: z.ZodNullable<z.ZodString>;
439
576
  status: z.ZodEnum<{
440
577
  PENDING: "PENDING";
@@ -465,6 +602,7 @@ export declare const OrderQueries: {
465
602
  PROCESSING: "PROCESSING";
466
603
  SUCCESS: "SUCCESS";
467
604
  FAILED: "FAILED";
605
+ EXPIRED: "EXPIRED";
468
606
  REFUNDED: "REFUNDED";
469
607
  CANCELLED: "CANCELLED";
470
608
  }>>;
@@ -508,9 +646,9 @@ export declare const OrderQueries: {
508
646
  }>;
509
647
  fetchedAt: z.ZodString;
510
648
  rates: z.ZodObject<{
511
- usdRub: z.ZodString;
512
- usdUah: z.ZodString;
513
- usdKzt: z.ZodString;
649
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
650
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
651
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
514
652
  }, z.core.$strip>;
515
653
  }, z.core.$strip>;
516
654
  status: z.ZodEnum<{
@@ -520,6 +658,7 @@ export declare const OrderQueries: {
520
658
  PROCESSING: "PROCESSING";
521
659
  SUCCESS: "SUCCESS";
522
660
  FAILED: "FAILED";
661
+ EXPIRED: "EXPIRED";
523
662
  REFUNDED: "REFUNDED";
524
663
  CANCELLED: "CANCELLED";
525
664
  }>;
@@ -534,6 +673,32 @@ export declare const OrderQueries: {
534
673
  uah: z.ZodString;
535
674
  kzt: z.ZodString;
536
675
  }, z.core.$strip>;
676
+ product: z.ZodObject<{
677
+ title: z.ZodString;
678
+ type: z.ZodEnum<{
679
+ GAME_KEY: "GAME_KEY";
680
+ GAME_GIFT: "GAME_GIFT";
681
+ TOPUP: "TOPUP";
682
+ SUBSCRIPTION: "SUBSCRIPTION";
683
+ IN_GAME_ITEM: "IN_GAME_ITEM";
684
+ DLC: "DLC";
685
+ CURRENCY: "CURRENCY";
686
+ VOUCHER: "VOUCHER";
687
+ }>;
688
+ }, z.core.$strip>;
689
+ variant: z.ZodObject<{
690
+ name: z.ZodString;
691
+ sku: z.ZodString;
692
+ desslyServiceType: z.ZodNullable<z.ZodEnum<{
693
+ VOUCHER: "VOUCHER";
694
+ STEAM_TOPUP: "STEAM_TOPUP";
695
+ STEAM_GIFT: "STEAM_GIFT";
696
+ MOBILE_REFILL: "MOBILE_REFILL";
697
+ CRYPTO_REFILL: "CRYPTO_REFILL";
698
+ }>>;
699
+ topupAmount: z.ZodNullable<z.ZodString>;
700
+ topupCurrency: z.ZodNullable<z.ZodString>;
701
+ }, z.core.$strip>;
537
702
  deliveredAt: z.ZodNullable<z.ZodString>;
538
703
  status: z.ZodEnum<{
539
704
  PENDING: "PENDING";
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMI,CAAC;AAEtC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMD,CAAC;AAEtC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAIrC,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOC,CAAC;AAEtC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIf,CAAC"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domains/orders/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMI,CAAC;AAEtC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMD,CAAC;AAEtC,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;iBAIrC,CAAC;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOC,CAAC;AAEtC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIf,CAAC"}
@@ -6,9 +6,9 @@ export declare const PromoCodeTypeSchema: z.ZodEnum<{
6
6
  }>;
7
7
  export declare const PromoCodeStatusSchema: z.ZodEnum<{
8
8
  ACTIVE: "ACTIVE";
9
+ EXPIRED: "EXPIRED";
9
10
  INACTIVE: "INACTIVE";
10
11
  LIMITED: "LIMITED";
11
- EXPIRED: "EXPIRED";
12
12
  DELETED: "DELETED";
13
13
  }>;
14
14
  export declare const PromoDiscountTypeSchema: z.ZodEnum<{
@@ -25,9 +25,9 @@ export declare const PromoCodeRecordSchema: z.ZodObject<{
25
25
  }>;
26
26
  status: z.ZodEnum<{
27
27
  ACTIVE: "ACTIVE";
28
+ EXPIRED: "EXPIRED";
28
29
  INACTIVE: "INACTIVE";
29
30
  LIMITED: "LIMITED";
30
- EXPIRED: "EXPIRED";
31
31
  DELETED: "DELETED";
32
32
  }>;
33
33
  discountType: z.ZodEnum<{
package/build/index.d.ts CHANGED
@@ -265,9 +265,9 @@ export declare const AllEndpoints: {
265
265
  }>;
266
266
  fetchedAt: import("zod").ZodString;
267
267
  rates: import("zod").ZodObject<{
268
- usdRub: import("zod").ZodString;
269
- usdUah: import("zod").ZodString;
270
- usdKzt: import("zod").ZodString;
268
+ usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
269
+ usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
270
+ usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
271
271
  }, import("zod/v4/core").$strip>;
272
272
  }, import("zod/v4/core").$strip>;
273
273
  status: import("zod").ZodEnum<{
@@ -277,6 +277,7 @@ export declare const AllEndpoints: {
277
277
  PROCESSING: "PROCESSING";
278
278
  SUCCESS: "SUCCESS";
279
279
  FAILED: "FAILED";
280
+ EXPIRED: "EXPIRED";
280
281
  REFUNDED: "REFUNDED";
281
282
  CANCELLED: "CANCELLED";
282
283
  }>;
@@ -291,6 +292,32 @@ export declare const AllEndpoints: {
291
292
  uah: import("zod").ZodString;
292
293
  kzt: import("zod").ZodString;
293
294
  }, import("zod/v4/core").$strip>;
295
+ product: import("zod").ZodObject<{
296
+ title: import("zod").ZodString;
297
+ type: import("zod").ZodEnum<{
298
+ GAME_KEY: "GAME_KEY";
299
+ GAME_GIFT: "GAME_GIFT";
300
+ TOPUP: "TOPUP";
301
+ SUBSCRIPTION: "SUBSCRIPTION";
302
+ IN_GAME_ITEM: "IN_GAME_ITEM";
303
+ DLC: "DLC";
304
+ CURRENCY: "CURRENCY";
305
+ VOUCHER: "VOUCHER";
306
+ }>;
307
+ }, import("zod/v4/core").$strip>;
308
+ variant: import("zod").ZodObject<{
309
+ name: import("zod").ZodString;
310
+ sku: import("zod").ZodString;
311
+ desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
312
+ VOUCHER: "VOUCHER";
313
+ STEAM_TOPUP: "STEAM_TOPUP";
314
+ STEAM_GIFT: "STEAM_GIFT";
315
+ MOBILE_REFILL: "MOBILE_REFILL";
316
+ CRYPTO_REFILL: "CRYPTO_REFILL";
317
+ }>>;
318
+ topupAmount: import("zod").ZodNullable<import("zod").ZodString>;
319
+ topupCurrency: import("zod").ZodNullable<import("zod").ZodString>;
320
+ }, import("zod/v4/core").$strip>;
294
321
  deliveredAt: import("zod").ZodNullable<import("zod").ZodString>;
295
322
  status: import("zod").ZodEnum<{
296
323
  PENDING: "PENDING";
@@ -348,9 +375,9 @@ export declare const AllEndpoints: {
348
375
  }>;
349
376
  fetchedAt: import("zod").ZodString;
350
377
  rates: import("zod").ZodObject<{
351
- usdRub: import("zod").ZodString;
352
- usdUah: import("zod").ZodString;
353
- usdKzt: import("zod").ZodString;
378
+ usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
379
+ usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
380
+ usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
354
381
  }, import("zod/v4/core").$strip>;
355
382
  }, import("zod/v4/core").$strip>;
356
383
  status: import("zod").ZodEnum<{
@@ -360,6 +387,7 @@ export declare const AllEndpoints: {
360
387
  PROCESSING: "PROCESSING";
361
388
  SUCCESS: "SUCCESS";
362
389
  FAILED: "FAILED";
390
+ EXPIRED: "EXPIRED";
363
391
  REFUNDED: "REFUNDED";
364
392
  CANCELLED: "CANCELLED";
365
393
  }>;
@@ -374,6 +402,32 @@ export declare const AllEndpoints: {
374
402
  uah: import("zod").ZodString;
375
403
  kzt: import("zod").ZodString;
376
404
  }, import("zod/v4/core").$strip>;
405
+ product: import("zod").ZodObject<{
406
+ title: import("zod").ZodString;
407
+ type: import("zod").ZodEnum<{
408
+ GAME_KEY: "GAME_KEY";
409
+ GAME_GIFT: "GAME_GIFT";
410
+ TOPUP: "TOPUP";
411
+ SUBSCRIPTION: "SUBSCRIPTION";
412
+ IN_GAME_ITEM: "IN_GAME_ITEM";
413
+ DLC: "DLC";
414
+ CURRENCY: "CURRENCY";
415
+ VOUCHER: "VOUCHER";
416
+ }>;
417
+ }, import("zod/v4/core").$strip>;
418
+ variant: import("zod").ZodObject<{
419
+ name: import("zod").ZodString;
420
+ sku: import("zod").ZodString;
421
+ desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
422
+ VOUCHER: "VOUCHER";
423
+ STEAM_TOPUP: "STEAM_TOPUP";
424
+ STEAM_GIFT: "STEAM_GIFT";
425
+ MOBILE_REFILL: "MOBILE_REFILL";
426
+ CRYPTO_REFILL: "CRYPTO_REFILL";
427
+ }>>;
428
+ topupAmount: import("zod").ZodNullable<import("zod").ZodString>;
429
+ topupCurrency: import("zod").ZodNullable<import("zod").ZodString>;
430
+ }, import("zod/v4/core").$strip>;
377
431
  deliveredAt: import("zod").ZodNullable<import("zod").ZodString>;
378
432
  status: import("zod").ZodEnum<{
379
433
  PENDING: "PENDING";
@@ -404,6 +458,7 @@ export declare const AllEndpoints: {
404
458
  PROCESSING: "PROCESSING";
405
459
  SUCCESS: "SUCCESS";
406
460
  FAILED: "FAILED";
461
+ EXPIRED: "EXPIRED";
407
462
  REFUNDED: "REFUNDED";
408
463
  CANCELLED: "CANCELLED";
409
464
  }>>;
@@ -447,9 +502,9 @@ export declare const AllEndpoints: {
447
502
  }>;
448
503
  fetchedAt: import("zod").ZodString;
449
504
  rates: import("zod").ZodObject<{
450
- usdRub: import("zod").ZodString;
451
- usdUah: import("zod").ZodString;
452
- usdKzt: import("zod").ZodString;
505
+ usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
506
+ usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
507
+ usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
453
508
  }, import("zod/v4/core").$strip>;
454
509
  }, import("zod/v4/core").$strip>;
455
510
  status: import("zod").ZodEnum<{
@@ -459,6 +514,7 @@ export declare const AllEndpoints: {
459
514
  PROCESSING: "PROCESSING";
460
515
  SUCCESS: "SUCCESS";
461
516
  FAILED: "FAILED";
517
+ EXPIRED: "EXPIRED";
462
518
  REFUNDED: "REFUNDED";
463
519
  CANCELLED: "CANCELLED";
464
520
  }>;
@@ -473,6 +529,32 @@ export declare const AllEndpoints: {
473
529
  uah: import("zod").ZodString;
474
530
  kzt: import("zod").ZodString;
475
531
  }, import("zod/v4/core").$strip>;
532
+ product: import("zod").ZodObject<{
533
+ title: import("zod").ZodString;
534
+ type: import("zod").ZodEnum<{
535
+ GAME_KEY: "GAME_KEY";
536
+ GAME_GIFT: "GAME_GIFT";
537
+ TOPUP: "TOPUP";
538
+ SUBSCRIPTION: "SUBSCRIPTION";
539
+ IN_GAME_ITEM: "IN_GAME_ITEM";
540
+ DLC: "DLC";
541
+ CURRENCY: "CURRENCY";
542
+ VOUCHER: "VOUCHER";
543
+ }>;
544
+ }, import("zod/v4/core").$strip>;
545
+ variant: import("zod").ZodObject<{
546
+ name: import("zod").ZodString;
547
+ sku: import("zod").ZodString;
548
+ desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
549
+ VOUCHER: "VOUCHER";
550
+ STEAM_TOPUP: "STEAM_TOPUP";
551
+ STEAM_GIFT: "STEAM_GIFT";
552
+ MOBILE_REFILL: "MOBILE_REFILL";
553
+ CRYPTO_REFILL: "CRYPTO_REFILL";
554
+ }>>;
555
+ topupAmount: import("zod").ZodNullable<import("zod").ZodString>;
556
+ topupCurrency: import("zod").ZodNullable<import("zod").ZodString>;
557
+ }, import("zod/v4/core").$strip>;
476
558
  deliveredAt: import("zod").ZodNullable<import("zod").ZodString>;
477
559
  status: import("zod").ZodEnum<{
478
560
  PENDING: "PENDING";
@@ -574,9 +656,9 @@ export declare const AllEndpoints: {
574
656
  }>;
575
657
  fetchedAt: import("zod").ZodString;
576
658
  rates: import("zod").ZodObject<{
577
- usdRub: import("zod").ZodString;
578
- usdUah: import("zod").ZodString;
579
- usdKzt: import("zod").ZodString;
659
+ usdRub: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
660
+ usdUah: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
661
+ usdKzt: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
580
662
  }, import("zod/v4/core").$strip>;
581
663
  }, import("zod/v4/core").$strip>;
582
664
  status: import("zod").ZodEnum<{
@@ -586,6 +668,7 @@ export declare const AllEndpoints: {
586
668
  PROCESSING: "PROCESSING";
587
669
  SUCCESS: "SUCCESS";
588
670
  FAILED: "FAILED";
671
+ EXPIRED: "EXPIRED";
589
672
  REFUNDED: "REFUNDED";
590
673
  CANCELLED: "CANCELLED";
591
674
  }>;
@@ -600,6 +683,32 @@ export declare const AllEndpoints: {
600
683
  uah: import("zod").ZodString;
601
684
  kzt: import("zod").ZodString;
602
685
  }, import("zod/v4/core").$strip>;
686
+ product: import("zod").ZodObject<{
687
+ title: import("zod").ZodString;
688
+ type: import("zod").ZodEnum<{
689
+ GAME_KEY: "GAME_KEY";
690
+ GAME_GIFT: "GAME_GIFT";
691
+ TOPUP: "TOPUP";
692
+ SUBSCRIPTION: "SUBSCRIPTION";
693
+ IN_GAME_ITEM: "IN_GAME_ITEM";
694
+ DLC: "DLC";
695
+ CURRENCY: "CURRENCY";
696
+ VOUCHER: "VOUCHER";
697
+ }>;
698
+ }, import("zod/v4/core").$strip>;
699
+ variant: import("zod").ZodObject<{
700
+ name: import("zod").ZodString;
701
+ sku: import("zod").ZodString;
702
+ desslyServiceType: import("zod").ZodNullable<import("zod").ZodEnum<{
703
+ VOUCHER: "VOUCHER";
704
+ STEAM_TOPUP: "STEAM_TOPUP";
705
+ STEAM_GIFT: "STEAM_GIFT";
706
+ MOBILE_REFILL: "MOBILE_REFILL";
707
+ CRYPTO_REFILL: "CRYPTO_REFILL";
708
+ }>>;
709
+ topupAmount: import("zod").ZodNullable<import("zod").ZodString>;
710
+ topupCurrency: import("zod").ZodNullable<import("zod").ZodString>;
711
+ }, import("zod/v4/core").$strip>;
603
712
  deliveredAt: import("zod").ZodNullable<import("zod").ZodString>;
604
713
  status: import("zod").ZodEnum<{
605
714
  PENDING: "PENDING";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AAepC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,CAAC;AACrE,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -8,6 +8,8 @@ export declare const CurrencySchema: z.ZodEnum<{
8
8
  export type Currency = z.infer<typeof CurrencySchema>;
9
9
  export declare const MoneyAmountSchema: z.ZodString;
10
10
  export type MoneyAmount = z.infer<typeof MoneyAmountSchema>;
11
+ export declare const ExchangeRateAmountSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
12
+ export type ExchangeRateAmount = z.infer<typeof ExchangeRateAmountSchema>;
11
13
  export declare const MoneyTripletSchema: z.ZodObject<{
12
14
  usd: z.ZodString;
13
15
  rub: z.ZodString;
@@ -24,9 +26,9 @@ export declare const ExchangeRateSnapshotSchema: z.ZodObject<{
24
26
  }>;
25
27
  fetchedAt: z.ZodString;
26
28
  rates: z.ZodObject<{
27
- usdRub: z.ZodString;
28
- usdUah: z.ZodString;
29
- usdKzt: z.ZodString;
29
+ usdRub: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
30
+ usdUah: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
31
+ usdKzt: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
30
32
  }, z.core.$strip>;
31
33
  }, z.core.$strip>;
32
34
  export type ExchangeRateSnapshot = z.infer<typeof ExchangeRateSnapshotSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../../src/shared/money.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;EAAuC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,iBAAiB,aAA0F,CAAC;AACzH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;iBAQrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../../src/shared/money.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;EAAuC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,iBAAiB,aAA0F,CAAC;AACzH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,wBAAwB,iDAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;iBAQrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExchangeRateSnapshotSchema = exports.MoneyTripletSchema = exports.MoneyAmountSchema = exports.CurrencySchema = void 0;
3
+ exports.ExchangeRateSnapshotSchema = exports.MoneyTripletSchema = exports.ExchangeRateAmountSchema = exports.MoneyAmountSchema = exports.CurrencySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CurrencySchema = zod_1.z.enum(["USD", "RUB", "UAH", "KZT"]);
6
6
  exports.MoneyAmountSchema = zod_1.z.string().regex(/^\d+(\.\d{1,8})?$/, "must be a decimal string with up to 8 decimals");
7
+ exports.ExchangeRateAmountSchema = zod_1.z.union([
8
+ exports.MoneyAmountSchema,
9
+ zod_1.z.number().finite().nonnegative(),
10
+ ]);
7
11
  exports.MoneyTripletSchema = zod_1.z.object({
8
12
  usd: exports.MoneyAmountSchema,
9
13
  rub: exports.MoneyAmountSchema,
@@ -14,9 +18,9 @@ exports.ExchangeRateSnapshotSchema = zod_1.z.object({
14
18
  source: zod_1.z.enum(["dessly", "cache", "fallback", "mixed"]),
15
19
  fetchedAt: zod_1.z.string(),
16
20
  rates: zod_1.z.object({
17
- usdRub: exports.MoneyAmountSchema,
18
- usdUah: exports.MoneyAmountSchema,
19
- usdKzt: exports.MoneyAmountSchema,
21
+ usdRub: exports.ExchangeRateAmountSchema,
22
+ usdUah: exports.ExchangeRateAmountSchema,
23
+ usdKzt: exports.ExchangeRateAmountSchema,
20
24
  }),
21
25
  });
22
26
  //# sourceMappingURL=money.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"money.js","sourceRoot":"","sources":["../../src/shared/money.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAGtD,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAmB,EAAE,gDAAgD,CAAC,CAAC;AAG5G,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,yBAAiB;IACtB,G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,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,gCAAwB;QAChC,MAAM,EAAE,gCAAwB;QAChC,MAAM,EAAE,gCAAwB;KAChC,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gigapay-dev/contracts",
3
- "version": "3.13.1",
3
+ "version": "3.14.0",
4
4
  "description": "API contracts for GigaPay v3 platform — Zod schemas, endpoint definitions, typed client",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",