@wix/auto_sdk_loyalty_programs 1.0.55 → 1.0.56
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/schemas.d.ts +259 -0
- package/build/cjs/schemas.js +337 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +259 -0
- package/build/es/schemas.mjs +285 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +259 -0
- package/build/internal/cjs/schemas.js +337 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +259 -0
- package/build/internal/es/schemas.mjs +285 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
ActivateLoyaltyProgramRequest: () => ActivateLoyaltyProgramRequest,
|
|
34
|
+
ActivateLoyaltyProgramResponse: () => ActivateLoyaltyProgramResponse,
|
|
35
|
+
BulkGetLoyaltyProgramRequest: () => BulkGetLoyaltyProgramRequest,
|
|
36
|
+
BulkGetLoyaltyProgramResponse: () => BulkGetLoyaltyProgramResponse,
|
|
37
|
+
DisablePointsExpirationRequest: () => DisablePointsExpirationRequest,
|
|
38
|
+
DisablePointsExpirationResponse: () => DisablePointsExpirationResponse,
|
|
39
|
+
EnablePointsExpirationRequest: () => EnablePointsExpirationRequest,
|
|
40
|
+
EnablePointsExpirationResponse: () => EnablePointsExpirationResponse,
|
|
41
|
+
GetLoyaltyProgramPremiumFeaturesRequest: () => GetLoyaltyProgramPremiumFeaturesRequest,
|
|
42
|
+
GetLoyaltyProgramPremiumFeaturesResponse: () => GetLoyaltyProgramPremiumFeaturesResponse,
|
|
43
|
+
GetLoyaltyProgramRequest: () => GetLoyaltyProgramRequest,
|
|
44
|
+
GetLoyaltyProgramResponse: () => GetLoyaltyProgramResponse,
|
|
45
|
+
PauseLoyaltyProgramRequest: () => PauseLoyaltyProgramRequest,
|
|
46
|
+
PauseLoyaltyProgramResponse: () => PauseLoyaltyProgramResponse,
|
|
47
|
+
UpdateLoyaltyProgramRequest: () => UpdateLoyaltyProgramRequest,
|
|
48
|
+
UpdateLoyaltyProgramResponse: () => UpdateLoyaltyProgramResponse
|
|
49
|
+
});
|
|
50
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
51
|
+
|
|
52
|
+
// src/loyalty-v1-program-programs.schemas.ts
|
|
53
|
+
var z = __toESM(require("zod"));
|
|
54
|
+
var GetLoyaltyProgramRequest = z.object({});
|
|
55
|
+
var GetLoyaltyProgramResponse = z.object({
|
|
56
|
+
loyaltyProgram: z.object({
|
|
57
|
+
name: z.string().describe("Program name.").min(2).max(50).optional().nullable(),
|
|
58
|
+
pointDefinition: z.object({
|
|
59
|
+
customName: z.string().describe(
|
|
60
|
+
'Display name for the program\'s collectible unit.\n\nIt\'s recommended to use a plural, for example `"Stars"`.\n\nIn contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.\n\nDefault: `"Points"`.'
|
|
61
|
+
).max(20).optional().nullable(),
|
|
62
|
+
icon: z.string().describe("Details about the points icon.").optional()
|
|
63
|
+
}).describe("Details about the program's collectible unit.").optional(),
|
|
64
|
+
status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).describe(
|
|
65
|
+
'Program status.\nCustomers can only earn or redeem points while the program is `"ACTIVE"`.\n\nDefault: `"DRAFT"`'
|
|
66
|
+
).optional(),
|
|
67
|
+
_createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
|
|
68
|
+
_updatedDate: z.date().describe("Date and time the program was updated.").optional().nullable(),
|
|
69
|
+
pointsExpiration: z.object({
|
|
70
|
+
status: z.enum(["DISABLED", "ENABLED"]).describe("Status of the points expiration feature.").optional(),
|
|
71
|
+
monthsOfInactivity: z.number().int().describe(
|
|
72
|
+
"How many months a member should be inactive to lose the collected points."
|
|
73
|
+
).min(1).max(12).optional(),
|
|
74
|
+
expiringPointsPercentage: z.number().int().describe(
|
|
75
|
+
"Percentage of points that a member loses after being inactive."
|
|
76
|
+
).min(1).max(100).optional()
|
|
77
|
+
}).describe("Configuration for the points expiration feature.").optional(),
|
|
78
|
+
premiumFeatures: z.object({
|
|
79
|
+
loyaltyProgram: z.boolean().describe("Whether there are any loyalty program premium features.").optional(),
|
|
80
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
81
|
+
pointsExpiration: z.boolean().describe("Whether this loyalty program includes point expiration.").optional()
|
|
82
|
+
}).describe("Information about the available program premium features.").optional()
|
|
83
|
+
}).describe("Retrieved loyalty program.").optional()
|
|
84
|
+
});
|
|
85
|
+
var BulkGetLoyaltyProgramRequest = z.object({});
|
|
86
|
+
var BulkGetLoyaltyProgramResponse = z.object({
|
|
87
|
+
programInSites: z.array(
|
|
88
|
+
z.object({
|
|
89
|
+
metaSiteId: z.string().describe("Metasite ID.").regex(
|
|
90
|
+
/^[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}$/,
|
|
91
|
+
"Must be a valid GUID"
|
|
92
|
+
).optional(),
|
|
93
|
+
loyaltyProgram: z.object({
|
|
94
|
+
name: z.string().describe("Program name.").min(2).max(50).optional().nullable(),
|
|
95
|
+
pointDefinition: z.object({
|
|
96
|
+
customName: z.string().describe(
|
|
97
|
+
'Display name for the program\'s collectible unit.\n\nIt\'s recommended to use a plural, for example `"Stars"`.\n\nIn contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.\n\nDefault: `"Points"`.'
|
|
98
|
+
).max(20).optional().nullable(),
|
|
99
|
+
icon: z.string().describe("Details about the points icon.").optional()
|
|
100
|
+
}).describe("Details about the program's collectible unit.").optional(),
|
|
101
|
+
status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).describe(
|
|
102
|
+
'Program status.\nCustomers can only earn or redeem points while the program is `"ACTIVE"`.\n\nDefault: `"DRAFT"`'
|
|
103
|
+
).optional(),
|
|
104
|
+
_createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
|
|
105
|
+
_updatedDate: z.date().describe("Date and time the program was updated.").optional().nullable(),
|
|
106
|
+
pointsExpiration: z.object({
|
|
107
|
+
status: z.enum(["DISABLED", "ENABLED"]).describe("Status of the points expiration feature.").optional(),
|
|
108
|
+
monthsOfInactivity: z.number().int().describe(
|
|
109
|
+
"How many months a member should be inactive to lose the collected points."
|
|
110
|
+
).min(1).max(12).optional(),
|
|
111
|
+
expiringPointsPercentage: z.number().int().describe(
|
|
112
|
+
"Percentage of points that a member loses after being inactive."
|
|
113
|
+
).min(1).max(100).optional()
|
|
114
|
+
}).describe("Configuration for the points expiration feature.").optional(),
|
|
115
|
+
premiumFeatures: z.object({
|
|
116
|
+
loyaltyProgram: z.boolean().describe(
|
|
117
|
+
"Whether there are any loyalty program premium features."
|
|
118
|
+
).optional(),
|
|
119
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
120
|
+
pointsExpiration: z.boolean().describe(
|
|
121
|
+
"Whether this loyalty program includes point expiration."
|
|
122
|
+
).optional()
|
|
123
|
+
}).describe(
|
|
124
|
+
"Information about the available program premium features."
|
|
125
|
+
).optional()
|
|
126
|
+
}).describe("Loyalty program.").optional()
|
|
127
|
+
})
|
|
128
|
+
).optional()
|
|
129
|
+
});
|
|
130
|
+
var UpdateLoyaltyProgramRequest = z.object({
|
|
131
|
+
loyaltyProgram: z.object({
|
|
132
|
+
name: z.string().describe("Program name.").min(2).max(50).optional().nullable(),
|
|
133
|
+
pointDefinition: z.object({
|
|
134
|
+
customName: z.string().describe(
|
|
135
|
+
'Display name for the program\'s collectible unit.\n\nIt\'s recommended to use a plural, for example `"Stars"`.\n\nIn contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.\n\nDefault: `"Points"`.'
|
|
136
|
+
).max(20).optional().nullable(),
|
|
137
|
+
icon: z.string().describe("Details about the points icon.").optional()
|
|
138
|
+
}).describe("Details about the program's collectible unit.").optional(),
|
|
139
|
+
status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
|
|
140
|
+
_createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
|
|
141
|
+
_updatedDate: z.date().describe("Date and time the program was updated.").optional().nullable(),
|
|
142
|
+
pointsExpiration: z.object({
|
|
143
|
+
status: z.enum(["DISABLED", "ENABLED"]).optional(),
|
|
144
|
+
monthsOfInactivity: z.number().int().describe(
|
|
145
|
+
"How many months a member should be inactive to lose the collected points."
|
|
146
|
+
).min(1).max(12).optional(),
|
|
147
|
+
expiringPointsPercentage: z.number().int().describe(
|
|
148
|
+
"Percentage of points that a member loses after being inactive."
|
|
149
|
+
).min(1).max(100).optional()
|
|
150
|
+
}).describe("Configuration for the points expiration feature.").optional(),
|
|
151
|
+
premiumFeatures: z.object({
|
|
152
|
+
loyaltyProgram: z.boolean().describe("Whether there are any loyalty program premium features.").optional(),
|
|
153
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
154
|
+
pointsExpiration: z.boolean().describe("Whether this loyalty program includes point expiration.").optional()
|
|
155
|
+
}).describe("Information about the available program premium features.").optional()
|
|
156
|
+
}).describe("Loyalty program fields to update.")
|
|
157
|
+
});
|
|
158
|
+
var UpdateLoyaltyProgramResponse = z.object({
|
|
159
|
+
loyaltyProgram: z.object({
|
|
160
|
+
name: z.string().describe("Program name.").min(2).max(50).optional().nullable(),
|
|
161
|
+
pointDefinition: z.object({
|
|
162
|
+
customName: z.string().describe(
|
|
163
|
+
'Display name for the program\'s collectible unit.\n\nIt\'s recommended to use a plural, for example `"Stars"`.\n\nIn contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.\n\nDefault: `"Points"`.'
|
|
164
|
+
).max(20).optional().nullable(),
|
|
165
|
+
icon: z.string().describe("Details about the points icon.").optional()
|
|
166
|
+
}).describe("Details about the program's collectible unit.").optional(),
|
|
167
|
+
status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).describe(
|
|
168
|
+
'Program status.\nCustomers can only earn or redeem points while the program is `"ACTIVE"`.\n\nDefault: `"DRAFT"`'
|
|
169
|
+
).optional(),
|
|
170
|
+
_createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
|
|
171
|
+
_updatedDate: z.date().describe("Date and time the program was updated.").optional().nullable(),
|
|
172
|
+
pointsExpiration: z.object({
|
|
173
|
+
status: z.enum(["DISABLED", "ENABLED"]).describe("Status of the points expiration feature.").optional(),
|
|
174
|
+
monthsOfInactivity: z.number().int().describe(
|
|
175
|
+
"How many months a member should be inactive to lose the collected points."
|
|
176
|
+
).min(1).max(12).optional(),
|
|
177
|
+
expiringPointsPercentage: z.number().int().describe(
|
|
178
|
+
"Percentage of points that a member loses after being inactive."
|
|
179
|
+
).min(1).max(100).optional()
|
|
180
|
+
}).describe("Configuration for the points expiration feature.").optional(),
|
|
181
|
+
premiumFeatures: z.object({
|
|
182
|
+
loyaltyProgram: z.boolean().describe("Whether there are any loyalty program premium features.").optional(),
|
|
183
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
184
|
+
pointsExpiration: z.boolean().describe("Whether this loyalty program includes point expiration.").optional()
|
|
185
|
+
}).describe("Information about the available program premium features.").optional()
|
|
186
|
+
}).describe("Updated loyalty program.").optional()
|
|
187
|
+
});
|
|
188
|
+
var ActivateLoyaltyProgramRequest = z.object({});
|
|
189
|
+
var ActivateLoyaltyProgramResponse = z.object({
|
|
190
|
+
loyaltyProgram: z.object({
|
|
191
|
+
name: z.string().describe("Program name.").min(2).max(50).optional().nullable(),
|
|
192
|
+
pointDefinition: z.object({
|
|
193
|
+
customName: z.string().describe(
|
|
194
|
+
'Display name for the program\'s collectible unit.\n\nIt\'s recommended to use a plural, for example `"Stars"`.\n\nIn contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.\n\nDefault: `"Points"`.'
|
|
195
|
+
).max(20).optional().nullable(),
|
|
196
|
+
icon: z.string().describe("Details about the points icon.").optional()
|
|
197
|
+
}).describe("Details about the program's collectible unit.").optional(),
|
|
198
|
+
status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).describe(
|
|
199
|
+
'Program status.\nCustomers can only earn or redeem points while the program is `"ACTIVE"`.\n\nDefault: `"DRAFT"`'
|
|
200
|
+
).optional(),
|
|
201
|
+
_createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
|
|
202
|
+
_updatedDate: z.date().describe("Date and time the program was updated.").optional().nullable(),
|
|
203
|
+
pointsExpiration: z.object({
|
|
204
|
+
status: z.enum(["DISABLED", "ENABLED"]).describe("Status of the points expiration feature.").optional(),
|
|
205
|
+
monthsOfInactivity: z.number().int().describe(
|
|
206
|
+
"How many months a member should be inactive to lose the collected points."
|
|
207
|
+
).min(1).max(12).optional(),
|
|
208
|
+
expiringPointsPercentage: z.number().int().describe(
|
|
209
|
+
"Percentage of points that a member loses after being inactive."
|
|
210
|
+
).min(1).max(100).optional()
|
|
211
|
+
}).describe("Configuration for the points expiration feature.").optional(),
|
|
212
|
+
premiumFeatures: z.object({
|
|
213
|
+
loyaltyProgram: z.boolean().describe("Whether there are any loyalty program premium features.").optional(),
|
|
214
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
215
|
+
pointsExpiration: z.boolean().describe("Whether this loyalty program includes point expiration.").optional()
|
|
216
|
+
}).describe("Information about the available program premium features.").optional()
|
|
217
|
+
}).describe("Activated loyalty program.").optional()
|
|
218
|
+
});
|
|
219
|
+
var PauseLoyaltyProgramRequest = z.object({});
|
|
220
|
+
var PauseLoyaltyProgramResponse = z.object({
|
|
221
|
+
loyaltyProgram: z.object({
|
|
222
|
+
name: z.string().describe("Program name.").min(2).max(50).optional().nullable(),
|
|
223
|
+
pointDefinition: z.object({
|
|
224
|
+
customName: z.string().describe(
|
|
225
|
+
'Display name for the program\'s collectible unit.\n\nIt\'s recommended to use a plural, for example `"Stars"`.\n\nIn contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.\n\nDefault: `"Points"`.'
|
|
226
|
+
).max(20).optional().nullable(),
|
|
227
|
+
icon: z.string().describe("Details about the points icon.").optional()
|
|
228
|
+
}).describe("Details about the program's collectible unit.").optional(),
|
|
229
|
+
status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).describe(
|
|
230
|
+
'Program status.\nCustomers can only earn or redeem points while the program is `"ACTIVE"`.\n\nDefault: `"DRAFT"`'
|
|
231
|
+
).optional(),
|
|
232
|
+
_createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
|
|
233
|
+
_updatedDate: z.date().describe("Date and time the program was updated.").optional().nullable(),
|
|
234
|
+
pointsExpiration: z.object({
|
|
235
|
+
status: z.enum(["DISABLED", "ENABLED"]).describe("Status of the points expiration feature.").optional(),
|
|
236
|
+
monthsOfInactivity: z.number().int().describe(
|
|
237
|
+
"How many months a member should be inactive to lose the collected points."
|
|
238
|
+
).min(1).max(12).optional(),
|
|
239
|
+
expiringPointsPercentage: z.number().int().describe(
|
|
240
|
+
"Percentage of points that a member loses after being inactive."
|
|
241
|
+
).min(1).max(100).optional()
|
|
242
|
+
}).describe("Configuration for the points expiration feature.").optional(),
|
|
243
|
+
premiumFeatures: z.object({
|
|
244
|
+
loyaltyProgram: z.boolean().describe("Whether there are any loyalty program premium features.").optional(),
|
|
245
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
246
|
+
pointsExpiration: z.boolean().describe("Whether this loyalty program includes point expiration.").optional()
|
|
247
|
+
}).describe("Information about the available program premium features.").optional()
|
|
248
|
+
}).describe("Paused loyalty program.").optional()
|
|
249
|
+
});
|
|
250
|
+
var GetLoyaltyProgramPremiumFeaturesRequest = z.object({});
|
|
251
|
+
var GetLoyaltyProgramPremiumFeaturesResponse = z.object({
|
|
252
|
+
loyaltyProgram: z.boolean().describe("Whether there are any loyalty program premium features.").optional(),
|
|
253
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
254
|
+
pointsExpiration: z.boolean().describe("Whether this loyalty program includes point expiration.").optional()
|
|
255
|
+
});
|
|
256
|
+
var EnablePointsExpirationRequest = z.object({});
|
|
257
|
+
var EnablePointsExpirationResponse = z.object({
|
|
258
|
+
loyaltyProgram: z.object({
|
|
259
|
+
name: z.string().describe("Program name.").min(2).max(50).optional().nullable(),
|
|
260
|
+
pointDefinition: z.object({
|
|
261
|
+
customName: z.string().describe(
|
|
262
|
+
'Display name for the program\'s collectible unit.\n\nIt\'s recommended to use a plural, for example `"Stars"`.\n\nIn contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.\n\nDefault: `"Points"`.'
|
|
263
|
+
).max(20).optional().nullable(),
|
|
264
|
+
icon: z.string().describe("Details about the points icon.").optional()
|
|
265
|
+
}).describe("Details about the program's collectible unit.").optional(),
|
|
266
|
+
status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).describe(
|
|
267
|
+
'Program status.\nCustomers can only earn or redeem points while the program is `"ACTIVE"`.\n\nDefault: `"DRAFT"`'
|
|
268
|
+
).optional(),
|
|
269
|
+
_createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
|
|
270
|
+
_updatedDate: z.date().describe("Date and time the program was updated.").optional().nullable(),
|
|
271
|
+
pointsExpiration: z.object({
|
|
272
|
+
status: z.enum(["DISABLED", "ENABLED"]).describe("Status of the points expiration feature.").optional(),
|
|
273
|
+
monthsOfInactivity: z.number().int().describe(
|
|
274
|
+
"How many months a member should be inactive to lose the collected points."
|
|
275
|
+
).min(1).max(12).optional(),
|
|
276
|
+
expiringPointsPercentage: z.number().int().describe(
|
|
277
|
+
"Percentage of points that a member loses after being inactive."
|
|
278
|
+
).min(1).max(100).optional()
|
|
279
|
+
}).describe("Configuration for the points expiration feature.").optional(),
|
|
280
|
+
premiumFeatures: z.object({
|
|
281
|
+
loyaltyProgram: z.boolean().describe("Whether there are any loyalty program premium features.").optional(),
|
|
282
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
283
|
+
pointsExpiration: z.boolean().describe("Whether this loyalty program includes point expiration.").optional()
|
|
284
|
+
}).describe("Information about the available program premium features.").optional()
|
|
285
|
+
}).describe("Loyalty program with enabled points expiration feature.").optional()
|
|
286
|
+
});
|
|
287
|
+
var DisablePointsExpirationRequest = z.object({});
|
|
288
|
+
var DisablePointsExpirationResponse = z.object({
|
|
289
|
+
loyaltyProgram: z.object({
|
|
290
|
+
name: z.string().describe("Program name.").min(2).max(50).optional().nullable(),
|
|
291
|
+
pointDefinition: z.object({
|
|
292
|
+
customName: z.string().describe(
|
|
293
|
+
'Display name for the program\'s collectible unit.\n\nIt\'s recommended to use a plural, for example `"Stars"`.\n\nIn contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.\n\nDefault: `"Points"`.'
|
|
294
|
+
).max(20).optional().nullable(),
|
|
295
|
+
icon: z.string().describe("Details about the points icon.").optional()
|
|
296
|
+
}).describe("Details about the program's collectible unit.").optional(),
|
|
297
|
+
status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).describe(
|
|
298
|
+
'Program status.\nCustomers can only earn or redeem points while the program is `"ACTIVE"`.\n\nDefault: `"DRAFT"`'
|
|
299
|
+
).optional(),
|
|
300
|
+
_createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
|
|
301
|
+
_updatedDate: z.date().describe("Date and time the program was updated.").optional().nullable(),
|
|
302
|
+
pointsExpiration: z.object({
|
|
303
|
+
status: z.enum(["DISABLED", "ENABLED"]).describe("Status of the points expiration feature.").optional(),
|
|
304
|
+
monthsOfInactivity: z.number().int().describe(
|
|
305
|
+
"How many months a member should be inactive to lose the collected points."
|
|
306
|
+
).min(1).max(12).optional(),
|
|
307
|
+
expiringPointsPercentage: z.number().int().describe(
|
|
308
|
+
"Percentage of points that a member loses after being inactive."
|
|
309
|
+
).min(1).max(100).optional()
|
|
310
|
+
}).describe("Configuration for the points expiration feature.").optional(),
|
|
311
|
+
premiumFeatures: z.object({
|
|
312
|
+
loyaltyProgram: z.boolean().describe("Whether there are any loyalty program premium features.").optional(),
|
|
313
|
+
tiers: z.boolean().describe("Whether this loyalty program includes tiers.").optional(),
|
|
314
|
+
pointsExpiration: z.boolean().describe("Whether this loyalty program includes point expiration.").optional()
|
|
315
|
+
}).describe("Information about the available program premium features.").optional()
|
|
316
|
+
}).describe("Loyalty program with disabled points expiration feature.").optional()
|
|
317
|
+
});
|
|
318
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
319
|
+
0 && (module.exports = {
|
|
320
|
+
ActivateLoyaltyProgramRequest,
|
|
321
|
+
ActivateLoyaltyProgramResponse,
|
|
322
|
+
BulkGetLoyaltyProgramRequest,
|
|
323
|
+
BulkGetLoyaltyProgramResponse,
|
|
324
|
+
DisablePointsExpirationRequest,
|
|
325
|
+
DisablePointsExpirationResponse,
|
|
326
|
+
EnablePointsExpirationRequest,
|
|
327
|
+
EnablePointsExpirationResponse,
|
|
328
|
+
GetLoyaltyProgramPremiumFeaturesRequest,
|
|
329
|
+
GetLoyaltyProgramPremiumFeaturesResponse,
|
|
330
|
+
GetLoyaltyProgramRequest,
|
|
331
|
+
GetLoyaltyProgramResponse,
|
|
332
|
+
PauseLoyaltyProgramRequest,
|
|
333
|
+
PauseLoyaltyProgramResponse,
|
|
334
|
+
UpdateLoyaltyProgramRequest,
|
|
335
|
+
UpdateLoyaltyProgramResponse
|
|
336
|
+
});
|
|
337
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/loyalty-v1-program-programs.schemas.ts"],"sourcesContent":["export * from './src/loyalty-v1-program-programs.schemas.js';\n","import * as z from 'zod';\n\nexport const GetLoyaltyProgramRequest = z.object({});\nexport const GetLoyaltyProgramResponse = z.object({\n loyaltyProgram: z\n .object({\n name: z\n .string()\n .describe('Program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n pointDefinition: z\n .object({\n customName: z\n .string()\n .describe(\n 'Display name for the program\\'s collectible unit.\\n\\nIt\\'s recommended to use a plural, for example `\"Stars\"`.\\n\\nIn contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\\n\\nDefault: `\"Points\"`.'\n )\n .max(20)\n .optional()\n .nullable(),\n icon: z\n .string()\n .describe('Details about the points icon.')\n .optional(),\n })\n .describe(\"Details about the program's collectible unit.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED'])\n .describe(\n 'Program status.\\nCustomers can only earn or redeem points while the program is `\"ACTIVE\"`.\\n\\nDefault: `\"DRAFT\"`'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was updated.')\n .optional()\n .nullable(),\n pointsExpiration: z\n .object({\n status: z\n .enum(['DISABLED', 'ENABLED'])\n .describe('Status of the points expiration feature.')\n .optional(),\n monthsOfInactivity: z\n .number()\n .int()\n .describe(\n 'How many months a member should be inactive to lose the collected points.'\n )\n .min(1)\n .max(12)\n .optional(),\n expiringPointsPercentage: z\n .number()\n .int()\n .describe(\n 'Percentage of points that a member loses after being inactive.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Configuration for the points expiration feature.')\n .optional(),\n premiumFeatures: z\n .object({\n loyaltyProgram: z\n .boolean()\n .describe('Whether there are any loyalty program premium features.')\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe('Whether this loyalty program includes point expiration.')\n .optional(),\n })\n .describe('Information about the available program premium features.')\n .optional(),\n })\n .describe('Retrieved loyalty program.')\n .optional(),\n});\nexport const BulkGetLoyaltyProgramRequest = z.object({});\nexport const BulkGetLoyaltyProgramResponse = z.object({\n programInSites: z\n .array(\n z.object({\n metaSiteId: z\n .string()\n .describe('Metasite ID.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n loyaltyProgram: z\n .object({\n name: z\n .string()\n .describe('Program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n pointDefinition: z\n .object({\n customName: z\n .string()\n .describe(\n 'Display name for the program\\'s collectible unit.\\n\\nIt\\'s recommended to use a plural, for example `\"Stars\"`.\\n\\nIn contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\\n\\nDefault: `\"Points\"`.'\n )\n .max(20)\n .optional()\n .nullable(),\n icon: z\n .string()\n .describe('Details about the points icon.')\n .optional(),\n })\n .describe(\"Details about the program's collectible unit.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED'])\n .describe(\n 'Program status.\\nCustomers can only earn or redeem points while the program is `\"ACTIVE\"`.\\n\\nDefault: `\"DRAFT\"`'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was updated.')\n .optional()\n .nullable(),\n pointsExpiration: z\n .object({\n status: z\n .enum(['DISABLED', 'ENABLED'])\n .describe('Status of the points expiration feature.')\n .optional(),\n monthsOfInactivity: z\n .number()\n .int()\n .describe(\n 'How many months a member should be inactive to lose the collected points.'\n )\n .min(1)\n .max(12)\n .optional(),\n expiringPointsPercentage: z\n .number()\n .int()\n .describe(\n 'Percentage of points that a member loses after being inactive.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Configuration for the points expiration feature.')\n .optional(),\n premiumFeatures: z\n .object({\n loyaltyProgram: z\n .boolean()\n .describe(\n 'Whether there are any loyalty program premium features.'\n )\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe(\n 'Whether this loyalty program includes point expiration.'\n )\n .optional(),\n })\n .describe(\n 'Information about the available program premium features.'\n )\n .optional(),\n })\n .describe('Loyalty program.')\n .optional(),\n })\n )\n .optional(),\n});\nexport const UpdateLoyaltyProgramRequest = z.object({\n loyaltyProgram: z\n .object({\n name: z\n .string()\n .describe('Program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n pointDefinition: z\n .object({\n customName: z\n .string()\n .describe(\n 'Display name for the program\\'s collectible unit.\\n\\nIt\\'s recommended to use a plural, for example `\"Stars\"`.\\n\\nIn contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\\n\\nDefault: `\"Points\"`.'\n )\n .max(20)\n .optional()\n .nullable(),\n icon: z\n .string()\n .describe('Details about the points icon.')\n .optional(),\n })\n .describe(\"Details about the program's collectible unit.\")\n .optional(),\n status: z.enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED']).optional(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was updated.')\n .optional()\n .nullable(),\n pointsExpiration: z\n .object({\n status: z.enum(['DISABLED', 'ENABLED']).optional(),\n monthsOfInactivity: z\n .number()\n .int()\n .describe(\n 'How many months a member should be inactive to lose the collected points.'\n )\n .min(1)\n .max(12)\n .optional(),\n expiringPointsPercentage: z\n .number()\n .int()\n .describe(\n 'Percentage of points that a member loses after being inactive.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Configuration for the points expiration feature.')\n .optional(),\n premiumFeatures: z\n .object({\n loyaltyProgram: z\n .boolean()\n .describe('Whether there are any loyalty program premium features.')\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe('Whether this loyalty program includes point expiration.')\n .optional(),\n })\n .describe('Information about the available program premium features.')\n .optional(),\n })\n .describe('Loyalty program fields to update.'),\n});\nexport const UpdateLoyaltyProgramResponse = z.object({\n loyaltyProgram: z\n .object({\n name: z\n .string()\n .describe('Program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n pointDefinition: z\n .object({\n customName: z\n .string()\n .describe(\n 'Display name for the program\\'s collectible unit.\\n\\nIt\\'s recommended to use a plural, for example `\"Stars\"`.\\n\\nIn contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\\n\\nDefault: `\"Points\"`.'\n )\n .max(20)\n .optional()\n .nullable(),\n icon: z\n .string()\n .describe('Details about the points icon.')\n .optional(),\n })\n .describe(\"Details about the program's collectible unit.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED'])\n .describe(\n 'Program status.\\nCustomers can only earn or redeem points while the program is `\"ACTIVE\"`.\\n\\nDefault: `\"DRAFT\"`'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was updated.')\n .optional()\n .nullable(),\n pointsExpiration: z\n .object({\n status: z\n .enum(['DISABLED', 'ENABLED'])\n .describe('Status of the points expiration feature.')\n .optional(),\n monthsOfInactivity: z\n .number()\n .int()\n .describe(\n 'How many months a member should be inactive to lose the collected points.'\n )\n .min(1)\n .max(12)\n .optional(),\n expiringPointsPercentage: z\n .number()\n .int()\n .describe(\n 'Percentage of points that a member loses after being inactive.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Configuration for the points expiration feature.')\n .optional(),\n premiumFeatures: z\n .object({\n loyaltyProgram: z\n .boolean()\n .describe('Whether there are any loyalty program premium features.')\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe('Whether this loyalty program includes point expiration.')\n .optional(),\n })\n .describe('Information about the available program premium features.')\n .optional(),\n })\n .describe('Updated loyalty program.')\n .optional(),\n});\nexport const ActivateLoyaltyProgramRequest = z.object({});\nexport const ActivateLoyaltyProgramResponse = z.object({\n loyaltyProgram: z\n .object({\n name: z\n .string()\n .describe('Program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n pointDefinition: z\n .object({\n customName: z\n .string()\n .describe(\n 'Display name for the program\\'s collectible unit.\\n\\nIt\\'s recommended to use a plural, for example `\"Stars\"`.\\n\\nIn contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\\n\\nDefault: `\"Points\"`.'\n )\n .max(20)\n .optional()\n .nullable(),\n icon: z\n .string()\n .describe('Details about the points icon.')\n .optional(),\n })\n .describe(\"Details about the program's collectible unit.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED'])\n .describe(\n 'Program status.\\nCustomers can only earn or redeem points while the program is `\"ACTIVE\"`.\\n\\nDefault: `\"DRAFT\"`'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was updated.')\n .optional()\n .nullable(),\n pointsExpiration: z\n .object({\n status: z\n .enum(['DISABLED', 'ENABLED'])\n .describe('Status of the points expiration feature.')\n .optional(),\n monthsOfInactivity: z\n .number()\n .int()\n .describe(\n 'How many months a member should be inactive to lose the collected points.'\n )\n .min(1)\n .max(12)\n .optional(),\n expiringPointsPercentage: z\n .number()\n .int()\n .describe(\n 'Percentage of points that a member loses after being inactive.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Configuration for the points expiration feature.')\n .optional(),\n premiumFeatures: z\n .object({\n loyaltyProgram: z\n .boolean()\n .describe('Whether there are any loyalty program premium features.')\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe('Whether this loyalty program includes point expiration.')\n .optional(),\n })\n .describe('Information about the available program premium features.')\n .optional(),\n })\n .describe('Activated loyalty program.')\n .optional(),\n});\nexport const PauseLoyaltyProgramRequest = z.object({});\nexport const PauseLoyaltyProgramResponse = z.object({\n loyaltyProgram: z\n .object({\n name: z\n .string()\n .describe('Program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n pointDefinition: z\n .object({\n customName: z\n .string()\n .describe(\n 'Display name for the program\\'s collectible unit.\\n\\nIt\\'s recommended to use a plural, for example `\"Stars\"`.\\n\\nIn contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\\n\\nDefault: `\"Points\"`.'\n )\n .max(20)\n .optional()\n .nullable(),\n icon: z\n .string()\n .describe('Details about the points icon.')\n .optional(),\n })\n .describe(\"Details about the program's collectible unit.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED'])\n .describe(\n 'Program status.\\nCustomers can only earn or redeem points while the program is `\"ACTIVE\"`.\\n\\nDefault: `\"DRAFT\"`'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was updated.')\n .optional()\n .nullable(),\n pointsExpiration: z\n .object({\n status: z\n .enum(['DISABLED', 'ENABLED'])\n .describe('Status of the points expiration feature.')\n .optional(),\n monthsOfInactivity: z\n .number()\n .int()\n .describe(\n 'How many months a member should be inactive to lose the collected points.'\n )\n .min(1)\n .max(12)\n .optional(),\n expiringPointsPercentage: z\n .number()\n .int()\n .describe(\n 'Percentage of points that a member loses after being inactive.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Configuration for the points expiration feature.')\n .optional(),\n premiumFeatures: z\n .object({\n loyaltyProgram: z\n .boolean()\n .describe('Whether there are any loyalty program premium features.')\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe('Whether this loyalty program includes point expiration.')\n .optional(),\n })\n .describe('Information about the available program premium features.')\n .optional(),\n })\n .describe('Paused loyalty program.')\n .optional(),\n});\nexport const GetLoyaltyProgramPremiumFeaturesRequest = z.object({});\nexport const GetLoyaltyProgramPremiumFeaturesResponse = z.object({\n loyaltyProgram: z\n .boolean()\n .describe('Whether there are any loyalty program premium features.')\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe('Whether this loyalty program includes point expiration.')\n .optional(),\n});\nexport const EnablePointsExpirationRequest = z.object({});\nexport const EnablePointsExpirationResponse = z.object({\n loyaltyProgram: z\n .object({\n name: z\n .string()\n .describe('Program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n pointDefinition: z\n .object({\n customName: z\n .string()\n .describe(\n 'Display name for the program\\'s collectible unit.\\n\\nIt\\'s recommended to use a plural, for example `\"Stars\"`.\\n\\nIn contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\\n\\nDefault: `\"Points\"`.'\n )\n .max(20)\n .optional()\n .nullable(),\n icon: z\n .string()\n .describe('Details about the points icon.')\n .optional(),\n })\n .describe(\"Details about the program's collectible unit.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED'])\n .describe(\n 'Program status.\\nCustomers can only earn or redeem points while the program is `\"ACTIVE\"`.\\n\\nDefault: `\"DRAFT\"`'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was updated.')\n .optional()\n .nullable(),\n pointsExpiration: z\n .object({\n status: z\n .enum(['DISABLED', 'ENABLED'])\n .describe('Status of the points expiration feature.')\n .optional(),\n monthsOfInactivity: z\n .number()\n .int()\n .describe(\n 'How many months a member should be inactive to lose the collected points.'\n )\n .min(1)\n .max(12)\n .optional(),\n expiringPointsPercentage: z\n .number()\n .int()\n .describe(\n 'Percentage of points that a member loses after being inactive.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Configuration for the points expiration feature.')\n .optional(),\n premiumFeatures: z\n .object({\n loyaltyProgram: z\n .boolean()\n .describe('Whether there are any loyalty program premium features.')\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe('Whether this loyalty program includes point expiration.')\n .optional(),\n })\n .describe('Information about the available program premium features.')\n .optional(),\n })\n .describe('Loyalty program with enabled points expiration feature.')\n .optional(),\n});\nexport const DisablePointsExpirationRequest = z.object({});\nexport const DisablePointsExpirationResponse = z.object({\n loyaltyProgram: z\n .object({\n name: z\n .string()\n .describe('Program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n pointDefinition: z\n .object({\n customName: z\n .string()\n .describe(\n 'Display name for the program\\'s collectible unit.\\n\\nIt\\'s recommended to use a plural, for example `\"Stars\"`.\\n\\nIn contrast to a custom name, the default `\"Points\"` name is translated and adjusted to singular based on circumstances.\\n\\nDefault: `\"Points\"`.'\n )\n .max(20)\n .optional()\n .nullable(),\n icon: z\n .string()\n .describe('Details about the points icon.')\n .optional(),\n })\n .describe(\"Details about the program's collectible unit.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED'])\n .describe(\n 'Program status.\\nCustomers can only earn or redeem points while the program is `\"ACTIVE\"`.\\n\\nDefault: `\"DRAFT\"`'\n )\n .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was updated.')\n .optional()\n .nullable(),\n pointsExpiration: z\n .object({\n status: z\n .enum(['DISABLED', 'ENABLED'])\n .describe('Status of the points expiration feature.')\n .optional(),\n monthsOfInactivity: z\n .number()\n .int()\n .describe(\n 'How many months a member should be inactive to lose the collected points.'\n )\n .min(1)\n .max(12)\n .optional(),\n expiringPointsPercentage: z\n .number()\n .int()\n .describe(\n 'Percentage of points that a member loses after being inactive.'\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Configuration for the points expiration feature.')\n .optional(),\n premiumFeatures: z\n .object({\n loyaltyProgram: z\n .boolean()\n .describe('Whether there are any loyalty program premium features.')\n .optional(),\n tiers: z\n .boolean()\n .describe('Whether this loyalty program includes tiers.')\n .optional(),\n pointsExpiration: z\n .boolean()\n .describe('Whether this loyalty program includes point expiration.')\n .optional(),\n })\n .describe('Information about the available program premium features.')\n .optional(),\n })\n .describe('Loyalty program with disabled points expiration feature.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,2BAA6B,SAAO,CAAC,CAAC;AAC5C,IAAM,4BAA8B,SAAO;AAAA,EAChD,gBACG,SAAO;AAAA,IACN,MACG,SAAO,EACP,SAAS,eAAe,EACxB,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,IACZ,iBACG,SAAO;AAAA,MACN,YACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP,SAAS,gCAAgC,EACzC,SAAS;AAAA,IACd,CAAC,EACA,SAAS,+CAA+C,EACxD,SAAS;AAAA,IACZ,QACG,OAAK,CAAC,WAAW,SAAS,UAAU,QAAQ,CAAC,EAC7C;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,wCAAwC,EACjD,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,wCAAwC,EACjD,SAAS,EACT,SAAS;AAAA,IACZ,kBACG,SAAO;AAAA,MACN,QACG,OAAK,CAAC,YAAY,SAAS,CAAC,EAC5B,SAAS,0CAA0C,EACnD,SAAS;AAAA,MACZ,oBACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS;AAAA,MACZ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