@wix/auto_sdk_benefit-programs_pools 1.0.76 → 1.0.77
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/build/cjs/index.js +3 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -12
- package/build/cjs/index.typings.js +2 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +18 -18
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +3 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -12
- package/build/es/index.typings.mjs +2 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +18 -18
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +3 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +138 -12
- package/build/internal/cjs/index.typings.js +2 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +239 -0
- package/build/internal/cjs/meta.js +1 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +18 -18
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +3 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +138 -12
- package/build/internal/es/index.typings.mjs +2 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +239 -0
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +18 -18
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/benefit-programs-v1-pool-pools.schemas.ts
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
var GetPoolRequest = z.object({
|
|
3
|
+
var GetPoolRequest = /* @__PURE__ */ z.object({
|
|
4
4
|
poolId: z.string().describe("ID of the pool to retrieve.").regex(
|
|
5
5
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
6
6
|
"Must be a valid GUID"
|
|
7
7
|
)
|
|
8
8
|
});
|
|
9
|
-
var GetPoolResponse = z.object({
|
|
9
|
+
var GetPoolResponse = /* @__PURE__ */ z.object({
|
|
10
10
|
_id: z.string().describe("Pool ID.").regex(
|
|
11
11
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
12
12
|
"Must be a valid GUID"
|
|
@@ -142,7 +142,7 @@ var GetPoolResponse = z.object({
|
|
|
142
142
|
poolDefinitionRevision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Version of the pool definition that this pool was created from.").optional().nullable(),
|
|
143
143
|
renewalCount: z.number().int().describe("Number of times this pool has been renewed.").optional().nullable()
|
|
144
144
|
});
|
|
145
|
-
var UpdatePoolRequest = z.object({
|
|
145
|
+
var UpdatePoolRequest = /* @__PURE__ */ z.object({
|
|
146
146
|
_id: z.string().describe("Pool ID.").regex(
|
|
147
147
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
148
148
|
"Must be a valid GUID"
|
|
@@ -295,7 +295,7 @@ var UpdatePoolRequest = z.object({
|
|
|
295
295
|
renewalCount: z.number().int().describe("Number of times this pool has been renewed.").optional().nullable()
|
|
296
296
|
}).describe("Pool to update.")
|
|
297
297
|
});
|
|
298
|
-
var UpdatePoolResponse = z.object({
|
|
298
|
+
var UpdatePoolResponse = /* @__PURE__ */ z.object({
|
|
299
299
|
_id: z.string().describe("Pool ID.").regex(
|
|
300
300
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
301
301
|
"Must be a valid GUID"
|
|
@@ -431,7 +431,7 @@ var UpdatePoolResponse = z.object({
|
|
|
431
431
|
poolDefinitionRevision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Version of the pool definition that this pool was created from.").optional().nullable(),
|
|
432
432
|
renewalCount: z.number().int().describe("Number of times this pool has been renewed.").optional().nullable()
|
|
433
433
|
});
|
|
434
|
-
var QueryPoolsRequest = z.object({
|
|
434
|
+
var QueryPoolsRequest = /* @__PURE__ */ z.object({
|
|
435
435
|
query: z.intersection(
|
|
436
436
|
z.object({
|
|
437
437
|
filter: z.record(z.string(), z.any()).describe(
|
|
@@ -459,7 +459,7 @@ var QueryPoolsRequest = z.object({
|
|
|
459
459
|
])
|
|
460
460
|
).describe("Filter, sort, and paging to apply to the query.")
|
|
461
461
|
});
|
|
462
|
-
var QueryPoolsResponse = z.object({
|
|
462
|
+
var QueryPoolsResponse = /* @__PURE__ */ z.object({
|
|
463
463
|
pools: z.array(
|
|
464
464
|
z.object({
|
|
465
465
|
_id: z.string().describe("Pool ID.").regex(
|
|
@@ -626,7 +626,7 @@ var QueryPoolsResponse = z.object({
|
|
|
626
626
|
).optional().nullable()
|
|
627
627
|
}).describe("Metadata for the paginated results.").optional()
|
|
628
628
|
});
|
|
629
|
-
var RedeemBenefitRequest = z.object({
|
|
629
|
+
var RedeemBenefitRequest = /* @__PURE__ */ z.object({
|
|
630
630
|
poolId: z.string().describe("ID of the pool that contains the benefit to redeem.").regex(
|
|
631
631
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
632
632
|
"Must be a valid GUID"
|
|
@@ -693,7 +693,7 @@ var RedeemBenefitRequest = z.object({
|
|
|
693
693
|
).min(1).max(20)
|
|
694
694
|
})
|
|
695
695
|
});
|
|
696
|
-
var RedeemBenefitResponse = z.object({
|
|
696
|
+
var RedeemBenefitResponse = /* @__PURE__ */ z.object({
|
|
697
697
|
transactionId: z.string().describe(
|
|
698
698
|
"ID of the transaction recording the associated change in balance."
|
|
699
699
|
).regex(
|
|
@@ -701,7 +701,7 @@ var RedeemBenefitResponse = z.object({
|
|
|
701
701
|
"Must be a valid GUID"
|
|
702
702
|
).optional()
|
|
703
703
|
});
|
|
704
|
-
var CheckBenefitEligibilityRequest = z.object({
|
|
704
|
+
var CheckBenefitEligibilityRequest = /* @__PURE__ */ z.object({
|
|
705
705
|
poolId: z.string().describe("ID of the pool that the benefit to check belongs to.").regex(
|
|
706
706
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
707
707
|
"Must be a valid GUID"
|
|
@@ -767,7 +767,7 @@ var CheckBenefitEligibilityRequest = z.object({
|
|
|
767
767
|
).min(1).max(20)
|
|
768
768
|
})
|
|
769
769
|
});
|
|
770
|
-
var CheckBenefitEligibilityResponse = z.object({
|
|
770
|
+
var CheckBenefitEligibilityResponse = /* @__PURE__ */ z.object({
|
|
771
771
|
result: z.object({
|
|
772
772
|
benefitResults: z.array(
|
|
773
773
|
z.intersection(
|
|
@@ -937,7 +937,7 @@ var CheckBenefitEligibilityResponse = z.object({
|
|
|
937
937
|
).max(10).optional()
|
|
938
938
|
}).describe("Result of the eligibility check.").optional()
|
|
939
939
|
});
|
|
940
|
-
var BulkCheckBenefitEligibilityRequest = z.object({
|
|
940
|
+
var BulkCheckBenefitEligibilityRequest = /* @__PURE__ */ z.object({
|
|
941
941
|
options: z.object({
|
|
942
942
|
benefitSelectors: z.array(
|
|
943
943
|
z.object({
|
|
@@ -1007,7 +1007,7 @@ var BulkCheckBenefitEligibilityRequest = z.object({
|
|
|
1007
1007
|
).describe("Pool beneficiary.").optional()
|
|
1008
1008
|
})
|
|
1009
1009
|
});
|
|
1010
|
-
var BulkCheckBenefitEligibilityResponse = z.object({
|
|
1010
|
+
var BulkCheckBenefitEligibilityResponse = /* @__PURE__ */ z.object({
|
|
1011
1011
|
results: z.array(
|
|
1012
1012
|
z.object({
|
|
1013
1013
|
benefitSelector: z.object({
|
|
@@ -1214,7 +1214,7 @@ var BulkCheckBenefitEligibilityResponse = z.object({
|
|
|
1214
1214
|
})
|
|
1215
1215
|
).min(1).max(100).optional()
|
|
1216
1216
|
});
|
|
1217
|
-
var GetEligibleBenefitsRequest = z.object({
|
|
1217
|
+
var GetEligibleBenefitsRequest = /* @__PURE__ */ z.object({
|
|
1218
1218
|
itemReference: z.object({
|
|
1219
1219
|
externalId: z.string().describe("External ID of the item.").regex(
|
|
1220
1220
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
@@ -1275,7 +1275,7 @@ var GetEligibleBenefitsRequest = z.object({
|
|
|
1275
1275
|
).min(1).max(20)
|
|
1276
1276
|
})
|
|
1277
1277
|
});
|
|
1278
|
-
var GetEligibleBenefitsResponse = z.object({
|
|
1278
|
+
var GetEligibleBenefitsResponse = /* @__PURE__ */ z.object({
|
|
1279
1279
|
eligibleBenefits: z.array(
|
|
1280
1280
|
z.object({
|
|
1281
1281
|
poolId: z.string().describe("Pool ID.").regex(
|
|
@@ -1298,7 +1298,7 @@ var GetEligibleBenefitsResponse = z.object({
|
|
|
1298
1298
|
})
|
|
1299
1299
|
).optional()
|
|
1300
1300
|
});
|
|
1301
|
-
var BulkUpdatePoolsRequest = z.object({
|
|
1301
|
+
var BulkUpdatePoolsRequest = /* @__PURE__ */ z.object({
|
|
1302
1302
|
options: z.object({
|
|
1303
1303
|
pools: z.array(
|
|
1304
1304
|
z.object({
|
|
@@ -1467,7 +1467,7 @@ var BulkUpdatePoolsRequest = z.object({
|
|
|
1467
1467
|
).optional()
|
|
1468
1468
|
}).optional()
|
|
1469
1469
|
});
|
|
1470
|
-
var BulkUpdatePoolsResponse = z.object({
|
|
1470
|
+
var BulkUpdatePoolsResponse = /* @__PURE__ */ z.object({
|
|
1471
1471
|
results: z.array(
|
|
1472
1472
|
z.object({
|
|
1473
1473
|
itemMetadata: z.object({
|
|
@@ -1648,7 +1648,7 @@ var BulkUpdatePoolsResponse = z.object({
|
|
|
1648
1648
|
).optional()
|
|
1649
1649
|
}).describe("Bulk action metadata.").optional()
|
|
1650
1650
|
});
|
|
1651
|
-
var CheckBenefitEligibilityByFilterRequest = z.object({
|
|
1651
|
+
var CheckBenefitEligibilityByFilterRequest = /* @__PURE__ */ z.object({
|
|
1652
1652
|
options: z.object({
|
|
1653
1653
|
poolFilter: z.object({
|
|
1654
1654
|
filter: z.record(z.string(), z.any()).describe(
|
|
@@ -1738,7 +1738,7 @@ var CheckBenefitEligibilityByFilterRequest = z.object({
|
|
|
1738
1738
|
).optional()
|
|
1739
1739
|
})
|
|
1740
1740
|
});
|
|
1741
|
-
var CheckBenefitEligibilityByFilterResponse = z.object({
|
|
1741
|
+
var CheckBenefitEligibilityByFilterResponse = /* @__PURE__ */ z.object({
|
|
1742
1742
|
results: z.array(
|
|
1743
1743
|
z.object({
|
|
1744
1744
|
benefitResults: z.array(
|