@open-loyalty/mcp-server 1.1.0 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +180 -177
  2. package/dist/auth/provider.js +2 -14
  3. package/dist/auth/storage.js +22 -0
  4. package/dist/client/http.js +10 -0
  5. package/dist/config.d.ts +0 -13
  6. package/dist/config.js +0 -14
  7. package/dist/http.js +35 -3
  8. package/dist/instructions.d.ts +5 -0
  9. package/dist/instructions.js +440 -0
  10. package/dist/prompts/fan-engagement-setup.d.ts +107 -0
  11. package/dist/prompts/fan-engagement-setup.js +492 -0
  12. package/dist/server.d.ts +1 -1
  13. package/dist/server.js +60 -273
  14. package/dist/tools/achievement/handlers.d.ts +117 -0
  15. package/dist/tools/achievement/handlers.js +161 -0
  16. package/dist/tools/achievement/index.d.ts +479 -0
  17. package/dist/tools/achievement/index.js +74 -0
  18. package/dist/tools/achievement/schemas.d.ts +433 -0
  19. package/dist/tools/achievement/schemas.js +142 -0
  20. package/dist/tools/achievement.d.ts +141 -121
  21. package/dist/tools/achievement.js +60 -24
  22. package/dist/tools/admin.d.ts +6 -6
  23. package/dist/tools/admin.js +12 -12
  24. package/dist/tools/analytics.d.ts +11 -11
  25. package/dist/tools/analytics.js +30 -29
  26. package/dist/tools/apikey.d.ts +3 -3
  27. package/dist/tools/apikey.js +6 -6
  28. package/dist/tools/audit.d.ts +2 -2
  29. package/dist/tools/audit.js +4 -4
  30. package/dist/tools/badge.d.ts +6 -6
  31. package/dist/tools/badge.js +23 -18
  32. package/dist/tools/campaign/handlers.d.ts +42 -0
  33. package/dist/tools/campaign/handlers.js +223 -0
  34. package/dist/tools/campaign/index.d.ts +783 -0
  35. package/dist/tools/campaign/index.js +117 -0
  36. package/dist/tools/campaign/member-handlers.d.ts +60 -0
  37. package/dist/tools/campaign/member-handlers.js +159 -0
  38. package/dist/tools/campaign/schemas.d.ts +704 -0
  39. package/dist/tools/campaign/schemas.js +259 -0
  40. package/dist/tools/campaign/types.d.ts +161 -0
  41. package/dist/tools/campaign/types.js +2 -0
  42. package/dist/tools/custom-event.d.ts +315 -0
  43. package/dist/tools/custom-event.js +270 -0
  44. package/dist/tools/export.d.ts +4 -4
  45. package/dist/tools/export.js +12 -12
  46. package/dist/tools/import.d.ts +3 -3
  47. package/dist/tools/import.js +23 -15
  48. package/dist/tools/index.js +13 -5
  49. package/dist/tools/member/handlers.d.ts +111 -0
  50. package/dist/tools/member/handlers.js +206 -0
  51. package/dist/tools/member/index.d.ts +169 -0
  52. package/dist/tools/member/index.js +92 -0
  53. package/dist/tools/member/schemas.d.ts +89 -0
  54. package/dist/tools/member/schemas.js +65 -0
  55. package/dist/tools/points.d.ts +7 -6
  56. package/dist/tools/points.js +21 -20
  57. package/dist/tools/referral/handlers.d.ts +47 -0
  58. package/dist/tools/referral/handlers.js +115 -0
  59. package/dist/tools/referral/index.d.ts +44 -0
  60. package/dist/tools/referral/index.js +44 -0
  61. package/dist/tools/referral/schemas.d.ts +34 -0
  62. package/dist/tools/referral/schemas.js +52 -0
  63. package/dist/tools/reward/handlers.d.ts +110 -0
  64. package/dist/tools/reward/handlers.js +289 -0
  65. package/dist/tools/reward/index.d.ts +177 -0
  66. package/dist/tools/reward/index.js +93 -0
  67. package/dist/tools/reward/schemas.d.ts +116 -0
  68. package/dist/tools/reward/schemas.js +92 -0
  69. package/dist/tools/role.d.ts +6 -6
  70. package/dist/tools/role.js +12 -12
  71. package/dist/tools/segment/handlers.d.ts +87 -0
  72. package/dist/tools/segment/handlers.js +174 -0
  73. package/dist/tools/segment/index.d.ts +395 -0
  74. package/dist/tools/segment/index.js +88 -0
  75. package/dist/tools/segment/schemas.d.ts +337 -0
  76. package/dist/tools/segment/schemas.js +79 -0
  77. package/dist/tools/segment.d.ts +10 -10
  78. package/dist/tools/segment.js +55 -31
  79. package/dist/tools/store.d.ts +4 -4
  80. package/dist/tools/store.js +8 -8
  81. package/dist/tools/tierset.d.ts +10 -10
  82. package/dist/tools/tierset.js +69 -37
  83. package/dist/tools/transaction.d.ts +4 -4
  84. package/dist/tools/transaction.js +12 -12
  85. package/dist/tools/wallet-type.d.ts +221 -16
  86. package/dist/tools/wallet-type.js +248 -17
  87. package/dist/tools/webhook.d.ts +6 -6
  88. package/dist/tools/webhook.js +90 -31
  89. package/dist/types/schemas/achievement.d.ts +18 -18
  90. package/dist/types/schemas/campaign.d.ts +64 -184
  91. package/dist/types/schemas/campaign.js +2 -7
  92. package/dist/types/schemas/common.d.ts +5 -0
  93. package/dist/types/schemas/common.js +5 -0
  94. package/dist/types/schemas/member.d.ts +2 -2
  95. package/dist/types/schemas/reward.d.ts +94 -18
  96. package/dist/types/schemas/reward.js +8 -3
  97. package/dist/types/schemas/wallet-type.d.ts +306 -8
  98. package/dist/types/schemas/wallet-type.js +82 -1
  99. package/dist/utils/errors.js +32 -5
  100. package/dist/workflows/app-login-streak.d.ts +39 -0
  101. package/dist/workflows/app-login-streak.js +298 -0
  102. package/dist/workflows/early-arrival.d.ts +33 -0
  103. package/dist/workflows/early-arrival.js +148 -0
  104. package/dist/workflows/index.d.ts +101 -0
  105. package/dist/workflows/index.js +208 -0
  106. package/dist/workflows/match-attendance.d.ts +45 -0
  107. package/dist/workflows/match-attendance.js +308 -0
  108. package/dist/workflows/sportsbar-visit.d.ts +41 -0
  109. package/dist/workflows/sportsbar-visit.js +284 -0
  110. package/dist/workflows/vod-watching.d.ts +43 -0
  111. package/dist/workflows/vod-watching.js +326 -0
  112. package/package.json +8 -2
@@ -0,0 +1,704 @@
1
+ import { z } from "zod";
2
+ export declare const CampaignListInputSchema: {
3
+ storeCode: z.ZodOptional<z.ZodString>;
4
+ page: z.ZodOptional<z.ZodNumber>;
5
+ perPage: z.ZodOptional<z.ZodNumber>;
6
+ active: z.ZodOptional<z.ZodBoolean>;
7
+ type: z.ZodOptional<z.ZodEnum<["direct", "referral"]>>;
8
+ trigger: z.ZodOptional<z.ZodEnum<["transaction", "custom_event", "time", "achievement", "custom_event_unique_code", "leaderboard", "internal_event", "return_transaction", "challenge", "fortune_wheel"]>>;
9
+ };
10
+ export declare const CampaignGetInputSchema: {
11
+ storeCode: z.ZodOptional<z.ZodString>;
12
+ campaignId: z.ZodString;
13
+ };
14
+ export declare const CampaignUpdateInputSchema: {
15
+ storeCode: z.ZodOptional<z.ZodString>;
16
+ campaignId: z.ZodString;
17
+ type: z.ZodEnum<["direct", "referral"]>;
18
+ trigger: z.ZodEnum<["transaction", "custom_event", "time", "achievement", "custom_event_unique_code", "leaderboard", "internal_event", "return_transaction", "challenge", "fortune_wheel"]>;
19
+ translations: z.ZodObject<{
20
+ en: z.ZodObject<{
21
+ name: z.ZodString;
22
+ description: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ name: string;
25
+ description?: string | undefined;
26
+ }, {
27
+ name: string;
28
+ description?: string | undefined;
29
+ }>;
30
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
31
+ en: z.ZodObject<{
32
+ name: z.ZodString;
33
+ description: z.ZodOptional<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ name: string;
36
+ description?: string | undefined;
37
+ }, {
38
+ name: string;
39
+ description?: string | undefined;
40
+ }>;
41
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
42
+ en: z.ZodObject<{
43
+ name: z.ZodString;
44
+ description: z.ZodOptional<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ name: string;
47
+ description?: string | undefined;
48
+ }, {
49
+ name: string;
50
+ description?: string | undefined;
51
+ }>;
52
+ }, z.ZodTypeAny, "passthrough">>;
53
+ activity: z.ZodObject<{
54
+ startsAt: z.ZodString;
55
+ endsAt: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ startsAt: string;
58
+ endsAt?: string | undefined;
59
+ }, {
60
+ startsAt: string;
61
+ endsAt?: string | undefined;
62
+ }>;
63
+ rules: z.ZodArray<z.ZodObject<{
64
+ name: z.ZodString;
65
+ description: z.ZodOptional<z.ZodString>;
66
+ target: z.ZodOptional<z.ZodEnum<["self", "referrer"]>>;
67
+ effects: z.ZodArray<z.ZodObject<{
68
+ effect: z.ZodString;
69
+ pointsRule: z.ZodOptional<z.ZodString>;
70
+ walletCode: z.ZodOptional<z.ZodString>;
71
+ rewardId: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ effect: string;
74
+ walletCode?: string | undefined;
75
+ rewardId?: string | undefined;
76
+ pointsRule?: string | undefined;
77
+ }, {
78
+ effect: string;
79
+ walletCode?: string | undefined;
80
+ rewardId?: string | undefined;
81
+ pointsRule?: string | undefined;
82
+ }>, "many">;
83
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
+ operator: z.ZodString;
85
+ attribute: z.ZodString;
86
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ attribute: string;
89
+ operator: string;
90
+ data?: Record<string, unknown> | undefined;
91
+ }, {
92
+ attribute: string;
93
+ operator: string;
94
+ data?: Record<string, unknown> | undefined;
95
+ }>, "many">>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ name: string;
98
+ effects: {
99
+ effect: string;
100
+ walletCode?: string | undefined;
101
+ rewardId?: string | undefined;
102
+ pointsRule?: string | undefined;
103
+ }[];
104
+ description?: string | undefined;
105
+ conditions?: {
106
+ attribute: string;
107
+ operator: string;
108
+ data?: Record<string, unknown> | undefined;
109
+ }[] | undefined;
110
+ target?: "self" | "referrer" | undefined;
111
+ }, {
112
+ name: string;
113
+ effects: {
114
+ effect: string;
115
+ walletCode?: string | undefined;
116
+ rewardId?: string | undefined;
117
+ pointsRule?: string | undefined;
118
+ }[];
119
+ description?: string | undefined;
120
+ conditions?: {
121
+ attribute: string;
122
+ operator: string;
123
+ data?: Record<string, unknown> | undefined;
124
+ }[] | undefined;
125
+ target?: "self" | "referrer" | undefined;
126
+ }>, "many">;
127
+ visibility: z.ZodOptional<z.ZodObject<{
128
+ target: z.ZodEnum<["all", "tier", "segment"]>;
129
+ tiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
+ segments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ target: "all" | "segment" | "tier";
133
+ tiers?: string[] | undefined;
134
+ segments?: string[] | undefined;
135
+ }, {
136
+ target: "all" | "segment" | "tier";
137
+ tiers?: string[] | undefined;
138
+ segments?: string[] | undefined;
139
+ }>>;
140
+ audience: z.ZodOptional<z.ZodObject<{
141
+ target: z.ZodEnum<["tier", "segment"]>;
142
+ tiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
143
+ segments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ target: "segment" | "tier";
146
+ tiers?: string[] | undefined;
147
+ segments?: string[] | undefined;
148
+ }, {
149
+ target: "segment" | "tier";
150
+ tiers?: string[] | undefined;
151
+ segments?: string[] | undefined;
152
+ }>>;
153
+ limits: z.ZodOptional<z.ZodObject<{
154
+ points: z.ZodOptional<z.ZodObject<{
155
+ value: z.ZodNumber;
156
+ interval: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ value: number;
159
+ interval?: Record<string, unknown> | undefined;
160
+ }, {
161
+ value: number;
162
+ interval?: Record<string, unknown> | undefined;
163
+ }>>;
164
+ pointsPerMember: z.ZodOptional<z.ZodObject<{
165
+ value: z.ZodNumber;
166
+ interval: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ value: number;
169
+ interval?: Record<string, unknown> | undefined;
170
+ }, {
171
+ value: number;
172
+ interval?: Record<string, unknown> | undefined;
173
+ }>>;
174
+ executionsPerMember: z.ZodOptional<z.ZodObject<{
175
+ value: z.ZodNumber;
176
+ interval: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ value: number;
179
+ interval?: Record<string, unknown> | undefined;
180
+ }, {
181
+ value: number;
182
+ interval?: Record<string, unknown> | undefined;
183
+ }>>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ points?: {
186
+ value: number;
187
+ interval?: Record<string, unknown> | undefined;
188
+ } | undefined;
189
+ pointsPerMember?: {
190
+ value: number;
191
+ interval?: Record<string, unknown> | undefined;
192
+ } | undefined;
193
+ executionsPerMember?: {
194
+ value: number;
195
+ interval?: Record<string, unknown> | undefined;
196
+ } | undefined;
197
+ }, {
198
+ points?: {
199
+ value: number;
200
+ interval?: Record<string, unknown> | undefined;
201
+ } | undefined;
202
+ pointsPerMember?: {
203
+ value: number;
204
+ interval?: Record<string, unknown> | undefined;
205
+ } | undefined;
206
+ executionsPerMember?: {
207
+ value: number;
208
+ interval?: Record<string, unknown> | undefined;
209
+ } | undefined;
210
+ }>>;
211
+ active: z.ZodOptional<z.ZodBoolean>;
212
+ displayOrder: z.ZodOptional<z.ZodNumber>;
213
+ labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
+ key: z.ZodString;
215
+ value: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ value: string;
218
+ key: string;
219
+ }, {
220
+ value: string;
221
+ key: string;
222
+ }>, "many">>;
223
+ event: z.ZodOptional<z.ZodString>;
224
+ };
225
+ export declare const CampaignPatchInputSchema: {
226
+ storeCode: z.ZodOptional<z.ZodString>;
227
+ campaignId: z.ZodString;
228
+ active: z.ZodOptional<z.ZodBoolean>;
229
+ displayOrder: z.ZodOptional<z.ZodNumber>;
230
+ };
231
+ export declare const CampaignDeleteInputSchema: {
232
+ storeCode: z.ZodOptional<z.ZodString>;
233
+ campaignId: z.ZodString;
234
+ };
235
+ export declare const CampaignSimulateInputSchema: {
236
+ storeCode: z.ZodOptional<z.ZodString>;
237
+ trigger: z.ZodEnum<["transaction", "custom_event", "time", "achievement", "custom_event_unique_code", "leaderboard", "internal_event", "return_transaction", "challenge", "fortune_wheel"]>;
238
+ transaction: z.ZodOptional<z.ZodObject<{
239
+ grossValue: z.ZodOptional<z.ZodNumber>;
240
+ documentNumber: z.ZodOptional<z.ZodString>;
241
+ purchasedAt: z.ZodOptional<z.ZodString>;
242
+ documentType: z.ZodOptional<z.ZodEnum<["sell", "return"]>>;
243
+ purchasePlace: z.ZodOptional<z.ZodString>;
244
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
245
+ sku: z.ZodString;
246
+ name: z.ZodString;
247
+ qty: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
248
+ grossValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
249
+ category: z.ZodOptional<z.ZodString>;
250
+ maker: z.ZodOptional<z.ZodString>;
251
+ labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
252
+ key: z.ZodString;
253
+ value: z.ZodString;
254
+ }, "strip", z.ZodTypeAny, {
255
+ value: string;
256
+ key: string;
257
+ }, {
258
+ value: string;
259
+ key: string;
260
+ }>, "many">>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ name: string;
263
+ sku: string;
264
+ grossValue: string | number;
265
+ labels?: {
266
+ value: string;
267
+ key: string;
268
+ }[] | undefined;
269
+ category?: string | undefined;
270
+ maker?: string | undefined;
271
+ qty?: string | number | undefined;
272
+ }, {
273
+ name: string;
274
+ sku: string;
275
+ grossValue: string | number;
276
+ labels?: {
277
+ value: string;
278
+ key: string;
279
+ }[] | undefined;
280
+ category?: string | undefined;
281
+ maker?: string | undefined;
282
+ qty?: string | number | undefined;
283
+ }>, "many">>;
284
+ labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
285
+ key: z.ZodString;
286
+ value: z.ZodString;
287
+ }, "strip", z.ZodTypeAny, {
288
+ value: string;
289
+ key: string;
290
+ }, {
291
+ value: string;
292
+ key: string;
293
+ }>, "many">>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ items?: {
296
+ name: string;
297
+ sku: string;
298
+ grossValue: string | number;
299
+ labels?: {
300
+ value: string;
301
+ key: string;
302
+ }[] | undefined;
303
+ category?: string | undefined;
304
+ maker?: string | undefined;
305
+ qty?: string | number | undefined;
306
+ }[] | undefined;
307
+ documentNumber?: string | undefined;
308
+ purchasedAt?: string | undefined;
309
+ documentType?: "sell" | "return" | undefined;
310
+ purchasePlace?: string | undefined;
311
+ labels?: {
312
+ value: string;
313
+ key: string;
314
+ }[] | undefined;
315
+ grossValue?: number | undefined;
316
+ }, {
317
+ items?: {
318
+ name: string;
319
+ sku: string;
320
+ grossValue: string | number;
321
+ labels?: {
322
+ value: string;
323
+ key: string;
324
+ }[] | undefined;
325
+ category?: string | undefined;
326
+ maker?: string | undefined;
327
+ qty?: string | number | undefined;
328
+ }[] | undefined;
329
+ documentNumber?: string | undefined;
330
+ purchasedAt?: string | undefined;
331
+ documentType?: "sell" | "return" | undefined;
332
+ purchasePlace?: string | undefined;
333
+ labels?: {
334
+ value: string;
335
+ key: string;
336
+ }[] | undefined;
337
+ grossValue?: number | undefined;
338
+ }>>;
339
+ customEvent: z.ZodOptional<z.ZodObject<{
340
+ eventCode: z.ZodString;
341
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ eventCode: string;
344
+ attributes?: Record<string, unknown> | undefined;
345
+ }, {
346
+ eventCode: string;
347
+ attributes?: Record<string, unknown> | undefined;
348
+ }>>;
349
+ customer: z.ZodObject<{
350
+ customerId: z.ZodOptional<z.ZodString>;
351
+ id: z.ZodOptional<z.ZodString>;
352
+ email: z.ZodOptional<z.ZodString>;
353
+ loyaltyCardNumber: z.ZodOptional<z.ZodString>;
354
+ phone: z.ZodOptional<z.ZodString>;
355
+ firstName: z.ZodOptional<z.ZodString>;
356
+ lastName: z.ZodOptional<z.ZodString>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ email?: string | undefined;
359
+ phone?: string | undefined;
360
+ loyaltyCardNumber?: string | undefined;
361
+ firstName?: string | undefined;
362
+ lastName?: string | undefined;
363
+ id?: string | undefined;
364
+ customerId?: string | undefined;
365
+ }, {
366
+ email?: string | undefined;
367
+ phone?: string | undefined;
368
+ loyaltyCardNumber?: string | undefined;
369
+ firstName?: string | undefined;
370
+ lastName?: string | undefined;
371
+ id?: string | undefined;
372
+ customerId?: string | undefined;
373
+ }>;
374
+ referrer: z.ZodOptional<z.ZodObject<{
375
+ id: z.ZodOptional<z.ZodString>;
376
+ email: z.ZodOptional<z.ZodString>;
377
+ loyaltyCardNumber: z.ZodOptional<z.ZodString>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ email?: string | undefined;
380
+ loyaltyCardNumber?: string | undefined;
381
+ id?: string | undefined;
382
+ }, {
383
+ email?: string | undefined;
384
+ loyaltyCardNumber?: string | undefined;
385
+ id?: string | undefined;
386
+ }>>;
387
+ };
388
+ export declare const CampaignGenerateCodesInputSchema: {
389
+ storeCode: z.ZodOptional<z.ZodString>;
390
+ campaignId: z.ZodString;
391
+ quantity: z.ZodNumber;
392
+ };
393
+ export declare const CampaignListCodesInputSchema: {
394
+ storeCode: z.ZodOptional<z.ZodString>;
395
+ campaignId: z.ZodString;
396
+ page: z.ZodOptional<z.ZodNumber>;
397
+ perPage: z.ZodOptional<z.ZodNumber>;
398
+ status: z.ZodOptional<z.ZodString>;
399
+ code: z.ZodOptional<z.ZodString>;
400
+ };
401
+ export declare const CampaignGetAvailableInputSchema: {
402
+ storeCode: z.ZodOptional<z.ZodString>;
403
+ memberId: z.ZodString;
404
+ page: z.ZodOptional<z.ZodNumber>;
405
+ perPage: z.ZodOptional<z.ZodNumber>;
406
+ type: z.ZodOptional<z.ZodEnum<["direct", "referral"]>>;
407
+ trigger: z.ZodOptional<z.ZodEnum<["transaction", "custom_event", "time", "achievement", "custom_event_unique_code", "leaderboard", "internal_event", "return_transaction", "challenge", "fortune_wheel"]>>;
408
+ };
409
+ export declare const CampaignGetVisibleInputSchema: {
410
+ storeCode: z.ZodOptional<z.ZodString>;
411
+ memberId: z.ZodString;
412
+ page: z.ZodOptional<z.ZodNumber>;
413
+ perPage: z.ZodOptional<z.ZodNumber>;
414
+ active: z.ZodOptional<z.ZodBoolean>;
415
+ };
416
+ export declare const CampaignGetLeaderboardInputSchema: {
417
+ storeCode: z.ZodOptional<z.ZodString>;
418
+ campaignId: z.ZodString;
419
+ type: z.ZodOptional<z.ZodString>;
420
+ };
421
+ export declare const CampaignCreateInputSchema: {
422
+ storeCode: z.ZodOptional<z.ZodString>;
423
+ type: z.ZodEnum<["direct", "referral"]>;
424
+ trigger: z.ZodEnum<["transaction", "custom_event", "time", "achievement", "custom_event_unique_code", "leaderboard", "internal_event", "return_transaction", "challenge", "fortune_wheel"]>;
425
+ translations: z.ZodObject<{
426
+ en: z.ZodObject<{
427
+ name: z.ZodString;
428
+ description: z.ZodOptional<z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ name: string;
431
+ description?: string | undefined;
432
+ }, {
433
+ name: string;
434
+ description?: string | undefined;
435
+ }>;
436
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
437
+ en: z.ZodObject<{
438
+ name: z.ZodString;
439
+ description: z.ZodOptional<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ name: string;
442
+ description?: string | undefined;
443
+ }, {
444
+ name: string;
445
+ description?: string | undefined;
446
+ }>;
447
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
448
+ en: z.ZodObject<{
449
+ name: z.ZodString;
450
+ description: z.ZodOptional<z.ZodString>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ name: string;
453
+ description?: string | undefined;
454
+ }, {
455
+ name: string;
456
+ description?: string | undefined;
457
+ }>;
458
+ }, z.ZodTypeAny, "passthrough">>;
459
+ activity: z.ZodObject<{
460
+ startsAt: z.ZodString;
461
+ endsAt: z.ZodOptional<z.ZodString>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ startsAt: string;
464
+ endsAt?: string | undefined;
465
+ }, {
466
+ startsAt: string;
467
+ endsAt?: string | undefined;
468
+ }>;
469
+ rules: z.ZodArray<z.ZodObject<{
470
+ name: z.ZodString;
471
+ description: z.ZodOptional<z.ZodString>;
472
+ target: z.ZodOptional<z.ZodEnum<["self", "referrer"]>>;
473
+ effects: z.ZodArray<z.ZodObject<{
474
+ effect: z.ZodEnum<["give_points", "give_reward", "deduct_unit", "assign_member_custom_attribute", "remove_member_custom_attribute"]>;
475
+ pointsRule: z.ZodOptional<z.ZodString>;
476
+ walletCode: z.ZodOptional<z.ZodString>;
477
+ rewardId: z.ZodOptional<z.ZodString>;
478
+ customAttributeKey: z.ZodOptional<z.ZodString>;
479
+ customAttributeValueRule: z.ZodOptional<z.ZodString>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ effect: "give_points" | "give_reward" | "deduct_unit" | "assign_member_custom_attribute" | "remove_member_custom_attribute";
482
+ walletCode?: string | undefined;
483
+ rewardId?: string | undefined;
484
+ pointsRule?: string | undefined;
485
+ customAttributeKey?: string | undefined;
486
+ customAttributeValueRule?: string | undefined;
487
+ }, {
488
+ effect: "give_points" | "give_reward" | "deduct_unit" | "assign_member_custom_attribute" | "remove_member_custom_attribute";
489
+ walletCode?: string | undefined;
490
+ rewardId?: string | undefined;
491
+ pointsRule?: string | undefined;
492
+ customAttributeKey?: string | undefined;
493
+ customAttributeValueRule?: string | undefined;
494
+ }>, "many">;
495
+ conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
496
+ operator: z.ZodString;
497
+ attribute: z.ZodString;
498
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ attribute: string;
501
+ operator: string;
502
+ data?: Record<string, unknown> | undefined;
503
+ }, {
504
+ attribute: string;
505
+ operator: string;
506
+ data?: Record<string, unknown> | undefined;
507
+ }>, "many">>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ name: string;
510
+ effects: {
511
+ effect: "give_points" | "give_reward" | "deduct_unit" | "assign_member_custom_attribute" | "remove_member_custom_attribute";
512
+ walletCode?: string | undefined;
513
+ rewardId?: string | undefined;
514
+ pointsRule?: string | undefined;
515
+ customAttributeKey?: string | undefined;
516
+ customAttributeValueRule?: string | undefined;
517
+ }[];
518
+ description?: string | undefined;
519
+ conditions?: {
520
+ attribute: string;
521
+ operator: string;
522
+ data?: Record<string, unknown> | undefined;
523
+ }[] | undefined;
524
+ target?: "self" | "referrer" | undefined;
525
+ }, {
526
+ name: string;
527
+ effects: {
528
+ effect: "give_points" | "give_reward" | "deduct_unit" | "assign_member_custom_attribute" | "remove_member_custom_attribute";
529
+ walletCode?: string | undefined;
530
+ rewardId?: string | undefined;
531
+ pointsRule?: string | undefined;
532
+ customAttributeKey?: string | undefined;
533
+ customAttributeValueRule?: string | undefined;
534
+ }[];
535
+ description?: string | undefined;
536
+ conditions?: {
537
+ attribute: string;
538
+ operator: string;
539
+ data?: Record<string, unknown> | undefined;
540
+ }[] | undefined;
541
+ target?: "self" | "referrer" | undefined;
542
+ }>, "many">;
543
+ visibility: z.ZodOptional<z.ZodObject<{
544
+ target: z.ZodEnum<["all", "tier", "segment"]>;
545
+ tiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
546
+ segments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ target: "all" | "segment" | "tier";
549
+ tiers?: string[] | undefined;
550
+ segments?: string[] | undefined;
551
+ }, {
552
+ target: "all" | "segment" | "tier";
553
+ tiers?: string[] | undefined;
554
+ segments?: string[] | undefined;
555
+ }>>;
556
+ audience: z.ZodOptional<z.ZodObject<{
557
+ target: z.ZodEnum<["tier", "segment"]>;
558
+ tiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
559
+ segments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ target: "segment" | "tier";
562
+ tiers?: string[] | undefined;
563
+ segments?: string[] | undefined;
564
+ }, {
565
+ target: "segment" | "tier";
566
+ tiers?: string[] | undefined;
567
+ segments?: string[] | undefined;
568
+ }>>;
569
+ limits: z.ZodOptional<z.ZodObject<{
570
+ points: z.ZodOptional<z.ZodObject<{
571
+ value: z.ZodNumber;
572
+ interval: z.ZodOptional<z.ZodObject<{
573
+ type: z.ZodEnum<["calendarDays", "calendarWeeks", "calendarMonths", "calendarYears"]>;
574
+ value: z.ZodOptional<z.ZodNumber>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
577
+ value?: number | undefined;
578
+ }, {
579
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
580
+ value?: number | undefined;
581
+ }>>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ value: number;
584
+ interval?: {
585
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
586
+ value?: number | undefined;
587
+ } | undefined;
588
+ }, {
589
+ value: number;
590
+ interval?: {
591
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
592
+ value?: number | undefined;
593
+ } | undefined;
594
+ }>>;
595
+ pointsPerMember: z.ZodOptional<z.ZodObject<{
596
+ value: z.ZodNumber;
597
+ interval: z.ZodOptional<z.ZodObject<{
598
+ type: z.ZodEnum<["calendarDays", "calendarWeeks", "calendarMonths", "calendarYears"]>;
599
+ value: z.ZodOptional<z.ZodNumber>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
602
+ value?: number | undefined;
603
+ }, {
604
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
605
+ value?: number | undefined;
606
+ }>>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ value: number;
609
+ interval?: {
610
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
611
+ value?: number | undefined;
612
+ } | undefined;
613
+ }, {
614
+ value: number;
615
+ interval?: {
616
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
617
+ value?: number | undefined;
618
+ } | undefined;
619
+ }>>;
620
+ executionsPerMember: z.ZodOptional<z.ZodObject<{
621
+ value: z.ZodNumber;
622
+ interval: z.ZodOptional<z.ZodObject<{
623
+ type: z.ZodEnum<["calendarDays", "calendarWeeks", "calendarMonths", "calendarYears"]>;
624
+ value: z.ZodOptional<z.ZodNumber>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
627
+ value?: number | undefined;
628
+ }, {
629
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
630
+ value?: number | undefined;
631
+ }>>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ value: number;
634
+ interval?: {
635
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
636
+ value?: number | undefined;
637
+ } | undefined;
638
+ }, {
639
+ value: number;
640
+ interval?: {
641
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
642
+ value?: number | undefined;
643
+ } | undefined;
644
+ }>>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ points?: {
647
+ value: number;
648
+ interval?: {
649
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
650
+ value?: number | undefined;
651
+ } | undefined;
652
+ } | undefined;
653
+ pointsPerMember?: {
654
+ value: number;
655
+ interval?: {
656
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
657
+ value?: number | undefined;
658
+ } | undefined;
659
+ } | undefined;
660
+ executionsPerMember?: {
661
+ value: number;
662
+ interval?: {
663
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
664
+ value?: number | undefined;
665
+ } | undefined;
666
+ } | undefined;
667
+ }, {
668
+ points?: {
669
+ value: number;
670
+ interval?: {
671
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
672
+ value?: number | undefined;
673
+ } | undefined;
674
+ } | undefined;
675
+ pointsPerMember?: {
676
+ value: number;
677
+ interval?: {
678
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
679
+ value?: number | undefined;
680
+ } | undefined;
681
+ } | undefined;
682
+ executionsPerMember?: {
683
+ value: number;
684
+ interval?: {
685
+ type: "calendarDays" | "calendarWeeks" | "calendarMonths" | "calendarYears";
686
+ value?: number | undefined;
687
+ } | undefined;
688
+ } | undefined;
689
+ }>>;
690
+ active: z.ZodOptional<z.ZodBoolean>;
691
+ displayOrder: z.ZodOptional<z.ZodNumber>;
692
+ labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
693
+ key: z.ZodString;
694
+ value: z.ZodString;
695
+ }, "strip", z.ZodTypeAny, {
696
+ value: string;
697
+ key: string;
698
+ }, {
699
+ value: string;
700
+ key: string;
701
+ }>, "many">>;
702
+ event: z.ZodOptional<z.ZodString>;
703
+ achievementId: z.ZodOptional<z.ZodString>;
704
+ };