@epcc-sdk/rule-promotions 0.0.1 → 0.0.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.
- package/README.md +424 -17
- package/dist/client/index.cjs +25 -0
- package/dist/client/index.cjs.map +1 -0
- package/dist/client/index.d.cts +3 -0
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.mjs +3 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/client/sdk.gen.cjs +254 -0
- package/dist/client/sdk.gen.cjs.map +1 -0
- package/dist/client/{sdk.gen.js → sdk.gen.d.cts} +49 -138
- package/dist/client/sdk.gen.d.ts +33 -29
- package/dist/client/sdk.gen.mjs +214 -0
- package/dist/client/sdk.gen.mjs.map +1 -0
- package/dist/client/transformers.gen.cjs +192 -0
- package/dist/client/transformers.gen.cjs.map +1 -0
- package/dist/client/transformers.gen.d.cts +14 -0
- package/dist/client/transformers.gen.d.ts +14 -11
- package/dist/client/transformers.gen.mjs +159 -0
- package/dist/client/transformers.gen.mjs.map +1 -0
- package/dist/client/types.gen.cjs +17 -0
- package/dist/client/types.gen.cjs.map +1 -0
- package/dist/client/types.gen.d.cts +1023 -0
- package/dist/client/types.gen.d.ts +89 -83
- package/dist/client/types.gen.mjs +1 -0
- package/dist/client/types.gen.mjs.map +1 -0
- package/dist/index.cjs +35 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -4
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +18 -10
- package/dist/client/index.js +0 -3
- package/dist/client/transformers.gen.js +0 -191
- package/dist/client/types.gen.js +0 -2
- package/dist/index.js +0 -4
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# @epcc-sdk/rule-promotions SDK
|
|
2
2
|
|
|
3
|
-
Below you
|
|
3
|
+
Below you'll find instructions on how to install, set up, and use the client, along with a list of available operations.
|
|
4
|
+
|
|
4
5
|
|
|
5
6
|
## Features
|
|
6
7
|
|
|
@@ -12,6 +13,7 @@ Below you’ll find instructions on how to install, set up, and use the client,
|
|
|
12
13
|
|
|
13
14
|
---
|
|
14
15
|
|
|
16
|
+
|
|
15
17
|
## Installation
|
|
16
18
|
|
|
17
19
|
```bash
|
|
@@ -206,39 +208,444 @@ const product = await getRulePromotions({
|
|
|
206
208
|
## Available Operations
|
|
207
209
|
|
|
208
210
|
|
|
211
|
+
### **`getRulePromotions`**
|
|
212
|
+
|
|
213
|
+
**Endpoint:** `GET /v2/rule-promotions`
|
|
214
|
+
|
|
215
|
+
**Summary:** Get Rule Promotions
|
|
216
|
+
|
|
217
|
+
**Description:** GET operation
|
|
218
|
+
|
|
219
|
+
**TypeScript Example:**
|
|
220
|
+
|
|
221
|
+
```typescript
|
|
222
|
+
import { getRulePromotions, type GetRulePromotionsData, type GetRulePromotionsResponse } from "@epcc-sdk/rule-promotions";
|
|
209
223
|
|
|
210
|
-
|
|
224
|
+
const params: GetRulePromotionsData = {
|
|
225
|
+
query: {
|
|
226
|
+
"filter": "eq(name,\"Product Name\")", // OPTIONAL
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
const result: GetRulePromotionsResponse = await getRulePromotions(params);
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
211
234
|
|
|
212
|
-
|
|
235
|
+
### **`createRulePromotion`**
|
|
213
236
|
|
|
214
|
-
|
|
237
|
+
**Endpoint:** `POST /v2/rule-promotions`
|
|
215
238
|
|
|
216
|
-
|
|
239
|
+
**Summary:** Create a Rule Promotion
|
|
217
240
|
|
|
218
|
-
|
|
241
|
+
**Description:** POST operation
|
|
219
242
|
|
|
220
|
-
|
|
243
|
+
**TypeScript Example:**
|
|
221
244
|
|
|
222
|
-
|
|
245
|
+
```typescript
|
|
246
|
+
import { createRulePromotion, type CreateRulePromotionData, type CreateRulePromotionResponse } from "@epcc-sdk/rule-promotions";
|
|
223
247
|
|
|
224
|
-
|
|
248
|
+
const params: CreateRulePromotionData = {
|
|
249
|
+
body: {
|
|
250
|
+
data: {
|
|
251
|
+
type: "resource",
|
|
252
|
+
attributes: {
|
|
253
|
+
name: "Resource Name",
|
|
254
|
+
description: "Resource Description"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
};
|
|
225
259
|
|
|
226
|
-
|
|
260
|
+
const result: CreateRulePromotionResponse = await createRulePromotion(params);
|
|
261
|
+
```
|
|
227
262
|
|
|
228
|
-
|
|
263
|
+
---
|
|
229
264
|
|
|
230
|
-
|
|
265
|
+
### **`deleteRulePromotion`**
|
|
231
266
|
|
|
232
|
-
|
|
267
|
+
**Endpoint:** `DELETE /v2/rule-promotions/{promotionID}`
|
|
233
268
|
|
|
234
|
-
|
|
269
|
+
**Summary:** Delete a Rule Promotion
|
|
235
270
|
|
|
236
|
-
|
|
271
|
+
**Description:** DELETE operation
|
|
237
272
|
|
|
238
|
-
|
|
273
|
+
**TypeScript Example:**
|
|
239
274
|
|
|
240
|
-
|
|
275
|
+
```typescript
|
|
276
|
+
import { deleteRulePromotion, type DeleteRulePromotionData, type DeleteRulePromotionResponse } from "@epcc-sdk/rule-promotions";
|
|
241
277
|
|
|
278
|
+
const params: DeleteRulePromotionData = {
|
|
279
|
+
path: {
|
|
280
|
+
promotionID: "promotionID",
|
|
281
|
+
},
|
|
282
|
+
};
|
|
242
283
|
|
|
284
|
+
const result: DeleteRulePromotionResponse = await deleteRulePromotion(params);
|
|
285
|
+
```
|
|
243
286
|
|
|
244
287
|
---
|
|
288
|
+
|
|
289
|
+
### **`getRulePromotionById`**
|
|
290
|
+
|
|
291
|
+
**Endpoint:** `GET /v2/rule-promotions/{promotionID}`
|
|
292
|
+
|
|
293
|
+
**Summary:** Get a Rule Promotion by ID
|
|
294
|
+
|
|
295
|
+
**Description:** GET operation
|
|
296
|
+
|
|
297
|
+
**TypeScript Example:**
|
|
298
|
+
|
|
299
|
+
```typescript
|
|
300
|
+
import { getRulePromotionById, type GetRulePromotionByIdData, type GetRulePromotionByIdResponse } from "@epcc-sdk/rule-promotions";
|
|
301
|
+
|
|
302
|
+
const params: GetRulePromotionByIdData = {
|
|
303
|
+
path: {
|
|
304
|
+
promotionID: "promotionID",
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
const result: GetRulePromotionByIdResponse = await getRulePromotionById(params);
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
### **`updateRulePromotion`**
|
|
314
|
+
|
|
315
|
+
**Endpoint:** `PUT /v2/rule-promotions/{promotionID}`
|
|
316
|
+
|
|
317
|
+
**Summary:** Update a Rule Promotion
|
|
318
|
+
|
|
319
|
+
**Description:** PUT operation
|
|
320
|
+
|
|
321
|
+
**TypeScript Example:**
|
|
322
|
+
|
|
323
|
+
```typescript
|
|
324
|
+
import { updateRulePromotion, type UpdateRulePromotionData, type UpdateRulePromotionResponse } from "@epcc-sdk/rule-promotions";
|
|
325
|
+
|
|
326
|
+
const params: UpdateRulePromotionData = {
|
|
327
|
+
path: {
|
|
328
|
+
promotionID: "promotionID",
|
|
329
|
+
},
|
|
330
|
+
body: {
|
|
331
|
+
data: {
|
|
332
|
+
type: "resource",
|
|
333
|
+
attributes: {
|
|
334
|
+
name: "Resource Name",
|
|
335
|
+
description: "Resource Description"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
const result: UpdateRulePromotionResponse = await updateRulePromotion(params);
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
### **`deleteRulePromotionCodes`**
|
|
347
|
+
|
|
348
|
+
**Endpoint:** `DELETE /v2/rule-promotions/{promotionID}/codes`
|
|
349
|
+
|
|
350
|
+
**Summary:** Delete Rule Promotion Codes
|
|
351
|
+
|
|
352
|
+
**Description:** DELETE operation
|
|
353
|
+
|
|
354
|
+
**TypeScript Example:**
|
|
355
|
+
|
|
356
|
+
```typescript
|
|
357
|
+
import { deleteRulePromotionCodes, type DeleteRulePromotionCodesData, type DeleteRulePromotionCodesResponse } from "@epcc-sdk/rule-promotions";
|
|
358
|
+
|
|
359
|
+
const params: DeleteRulePromotionCodesData = {
|
|
360
|
+
path: {
|
|
361
|
+
promotionID: "promotionID",
|
|
362
|
+
},
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
const result: DeleteRulePromotionCodesResponse = await deleteRulePromotionCodes(params);
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
### **`getRulePromotionCodes`**
|
|
371
|
+
|
|
372
|
+
**Endpoint:** `GET /v2/rule-promotions/{promotionID}/codes`
|
|
373
|
+
|
|
374
|
+
**Summary:** Get Rule Promotion Codes
|
|
375
|
+
|
|
376
|
+
**Description:** GET operation
|
|
377
|
+
|
|
378
|
+
**TypeScript Example:**
|
|
379
|
+
|
|
380
|
+
```typescript
|
|
381
|
+
import { getRulePromotionCodes, type GetRulePromotionCodesData, type GetRulePromotionCodesResponse } from "@epcc-sdk/rule-promotions";
|
|
382
|
+
|
|
383
|
+
const params: GetRulePromotionCodesData = {
|
|
384
|
+
path: {
|
|
385
|
+
promotionID: "promotionID",
|
|
386
|
+
},
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
const result: GetRulePromotionCodesResponse = await getRulePromotionCodes(params);
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
### **`createRulePromotionCodes`**
|
|
395
|
+
|
|
396
|
+
**Endpoint:** `POST /v2/rule-promotions/{promotionID}/codes`
|
|
397
|
+
|
|
398
|
+
**Summary:** Create Rule Promotion Codes
|
|
399
|
+
|
|
400
|
+
**Description:** POST operation
|
|
401
|
+
|
|
402
|
+
**TypeScript Example:**
|
|
403
|
+
|
|
404
|
+
```typescript
|
|
405
|
+
import { createRulePromotionCodes, type CreateRulePromotionCodesData, type CreateRulePromotionCodesResponse } from "@epcc-sdk/rule-promotions";
|
|
406
|
+
|
|
407
|
+
const params: CreateRulePromotionCodesData = {
|
|
408
|
+
path: {
|
|
409
|
+
promotionID: "promotionID",
|
|
410
|
+
},
|
|
411
|
+
body: {
|
|
412
|
+
data: {
|
|
413
|
+
type: "resource",
|
|
414
|
+
attributes: {
|
|
415
|
+
name: "Resource Name",
|
|
416
|
+
description: "Resource Description"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
const result: CreateRulePromotionCodesResponse = await createRulePromotionCodes(params);
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
427
|
+
### **`deleteSingleRulePromotionCode`**
|
|
428
|
+
|
|
429
|
+
**Endpoint:** `DELETE /v2/rule-promotions/{promotionID}/codes/{codeID}`
|
|
430
|
+
|
|
431
|
+
**Summary:** Delete A Single Rule Promotion Code
|
|
432
|
+
|
|
433
|
+
**Description:** DELETE operation
|
|
434
|
+
|
|
435
|
+
**TypeScript Example:**
|
|
436
|
+
|
|
437
|
+
```typescript
|
|
438
|
+
import { deleteSingleRulePromotionCode, type DeleteSingleRulePromotionCodeData, type DeleteSingleRulePromotionCodeResponse } from "@epcc-sdk/rule-promotions";
|
|
439
|
+
|
|
440
|
+
const params: DeleteSingleRulePromotionCodeData = {
|
|
441
|
+
path: {
|
|
442
|
+
promotionID: "promotionID",
|
|
443
|
+
codeID: "CODE123",
|
|
444
|
+
},
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
const result: DeleteSingleRulePromotionCodeResponse = await deleteSingleRulePromotionCode(params);
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
### **`getV2RulePromotionsByUuidJobs`**
|
|
453
|
+
|
|
454
|
+
**Endpoint:** `GET /v2/rule-promotions/{uuid}/jobs`
|
|
455
|
+
|
|
456
|
+
**Summary:** Get Rule Promotion Jobs
|
|
457
|
+
|
|
458
|
+
**Description:** GET operation
|
|
459
|
+
|
|
460
|
+
**TypeScript Example:**
|
|
461
|
+
|
|
462
|
+
```typescript
|
|
463
|
+
import { getV2RulePromotionsByUuidJobs, type GetV2RulePromotionsByUuidJobsData, type GetV2RulePromotionsByUuidJobsResponse } from "@epcc-sdk/rule-promotions";
|
|
464
|
+
|
|
465
|
+
const params: GetV2RulePromotionsByUuidJobsData = {
|
|
466
|
+
path: {
|
|
467
|
+
uuid: "12345678-1234-5678-9012-123456789012",
|
|
468
|
+
},
|
|
469
|
+
query: {
|
|
470
|
+
"filter": "eq(name,\"Product Name\")", // OPTIONAL
|
|
471
|
+
},
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
const result: GetV2RulePromotionsByUuidJobsResponse = await getV2RulePromotionsByUuidJobs(params);
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
---
|
|
478
|
+
|
|
479
|
+
### **`postV2RulePromotionsByUuidJobs`**
|
|
480
|
+
|
|
481
|
+
**Endpoint:** `POST /v2/rule-promotions/{uuid}/jobs`
|
|
482
|
+
|
|
483
|
+
**Summary:** Create a Rule Promotion Job
|
|
484
|
+
|
|
485
|
+
**Description:** POST operation
|
|
486
|
+
|
|
487
|
+
**TypeScript Example:**
|
|
488
|
+
|
|
489
|
+
```typescript
|
|
490
|
+
import { postV2RulePromotionsByUuidJobs, type PostV2RulePromotionsByUuidJobsData, type PostV2RulePromotionsByUuidJobsResponse } from "@epcc-sdk/rule-promotions";
|
|
491
|
+
|
|
492
|
+
const params: PostV2RulePromotionsByUuidJobsData = {
|
|
493
|
+
path: {
|
|
494
|
+
uuid: "12345678-1234-5678-9012-123456789012",
|
|
495
|
+
},
|
|
496
|
+
body: {
|
|
497
|
+
data: {
|
|
498
|
+
type: "resource"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
const result: PostV2RulePromotionsByUuidJobsResponse = await postV2RulePromotionsByUuidJobs(params);
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
---
|
|
507
|
+
|
|
508
|
+
### **`getV2RulePromotionsByUuidJobsByJobUuidFile`**
|
|
509
|
+
|
|
510
|
+
**Endpoint:** `GET /v2/rule-promotions/{uuid}/jobs/{job-uuid}/file`
|
|
511
|
+
|
|
512
|
+
**Summary:** Get Rule Promotion Code Exported File
|
|
513
|
+
|
|
514
|
+
**Description:** GET operation
|
|
515
|
+
|
|
516
|
+
**TypeScript Example:**
|
|
517
|
+
|
|
518
|
+
```typescript
|
|
519
|
+
import { getV2RulePromotionsByUuidJobsByJobUuidFile, type GetV2RulePromotionsByUuidJobsByJobUuidFileData, type GetV2RulePromotionsByUuidJobsByJobUuidFileResponse } from "@epcc-sdk/rule-promotions";
|
|
520
|
+
|
|
521
|
+
const params: GetV2RulePromotionsByUuidJobsByJobUuidFileData = {
|
|
522
|
+
path: {
|
|
523
|
+
uuid: "12345678-1234-5678-9012-123456789012",
|
|
524
|
+
job-uuid: "12345678-1234-5678-9012-123456789012",
|
|
525
|
+
},
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
const result: GetV2RulePromotionsByUuidJobsByJobUuidFileResponse = await getV2RulePromotionsByUuidJobsByJobUuidFile(params);
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
---
|
|
532
|
+
|
|
533
|
+
### **`postV2RulePromotionsByUuidJobsByJobUuidCancel`**
|
|
534
|
+
|
|
535
|
+
**Endpoint:** `POST /v2/rule-promotions/{uuid}/jobs/{job-uuid}/cancel`
|
|
536
|
+
|
|
537
|
+
**Summary:** Cancel a Rule Promotion Job
|
|
538
|
+
|
|
539
|
+
**Description:** POST operation
|
|
540
|
+
|
|
541
|
+
**TypeScript Example:**
|
|
542
|
+
|
|
543
|
+
```typescript
|
|
544
|
+
import { postV2RulePromotionsByUuidJobsByJobUuidCancel, type PostV2RulePromotionsByUuidJobsByJobUuidCancelData, type PostV2RulePromotionsByUuidJobsByJobUuidCancelResponse } from "@epcc-sdk/rule-promotions";
|
|
545
|
+
|
|
546
|
+
const params: PostV2RulePromotionsByUuidJobsByJobUuidCancelData = {
|
|
547
|
+
path: {
|
|
548
|
+
uuid: "12345678-1234-5678-9012-123456789012",
|
|
549
|
+
job-uuid: "12345678-1234-5678-9012-123456789012",
|
|
550
|
+
},
|
|
551
|
+
body: {
|
|
552
|
+
data: {
|
|
553
|
+
type: "resource"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
const result: PostV2RulePromotionsByUuidJobsByJobUuidCancelResponse = await postV2RulePromotionsByUuidJobsByJobUuidCancel(params);
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
---
|
|
562
|
+
|
|
563
|
+
### **`anonymizeRulePromotionUsages`**
|
|
564
|
+
|
|
565
|
+
**Endpoint:** `POST /v2/rule-promotions/usages/anonymize`
|
|
566
|
+
|
|
567
|
+
**Summary:** Anonymize Rule Promotion Usages
|
|
568
|
+
|
|
569
|
+
**Description:** POST operation
|
|
570
|
+
|
|
571
|
+
**TypeScript Example:**
|
|
572
|
+
|
|
573
|
+
```typescript
|
|
574
|
+
import { anonymizeRulePromotionUsages, type AnonymizeRulePromotionUsagesData, type AnonymizeRulePromotionUsagesResponse } from "@epcc-sdk/rule-promotions";
|
|
575
|
+
|
|
576
|
+
const params: AnonymizeRulePromotionUsagesData = {
|
|
577
|
+
body: {
|
|
578
|
+
data: {
|
|
579
|
+
type: "resource"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
const result: AnonymizeRulePromotionUsagesResponse = await anonymizeRulePromotionUsages(params);
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
---
|
|
588
|
+
|
|
589
|
+
### **`getRulePromotionUsages`**
|
|
590
|
+
|
|
591
|
+
**Endpoint:** `GET /v2/rule-promotions/{promotionID}/usages`
|
|
592
|
+
|
|
593
|
+
**Summary:** Get Rule Promotion Usages
|
|
594
|
+
|
|
595
|
+
**Description:** GET operation
|
|
596
|
+
|
|
597
|
+
**TypeScript Example:**
|
|
598
|
+
|
|
599
|
+
```typescript
|
|
600
|
+
import { getRulePromotionUsages, type GetRulePromotionUsagesData, type GetRulePromotionUsagesResponse } from "@epcc-sdk/rule-promotions";
|
|
601
|
+
|
|
602
|
+
const params: GetRulePromotionUsagesData = {
|
|
603
|
+
path: {
|
|
604
|
+
promotionID: "promotionID",
|
|
605
|
+
},
|
|
606
|
+
query: {
|
|
607
|
+
"filter": "eq(name,\"Product Name\")", // OPTIONAL
|
|
608
|
+
"page[limit]": 10, // OPTIONAL
|
|
609
|
+
"page[offset]": 0, // OPTIONAL
|
|
610
|
+
},
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
const result: GetRulePromotionUsagesResponse = await getRulePromotionUsages(params);
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
---
|
|
617
|
+
|
|
618
|
+
### **`getRulePromotionCodeUsages`**
|
|
619
|
+
|
|
620
|
+
**Endpoint:** `GET /v2/rule-promotions/{promotionID}/codes/{code}/usages`
|
|
621
|
+
|
|
622
|
+
**Summary:** Get Rule Promotion Code Usages
|
|
623
|
+
|
|
624
|
+
**Description:** GET operation
|
|
625
|
+
|
|
626
|
+
**TypeScript Example:**
|
|
627
|
+
|
|
628
|
+
```typescript
|
|
629
|
+
import { getRulePromotionCodeUsages, type GetRulePromotionCodeUsagesData, type GetRulePromotionCodeUsagesResponse } from "@epcc-sdk/rule-promotions";
|
|
630
|
+
|
|
631
|
+
const params: GetRulePromotionCodeUsagesData = {
|
|
632
|
+
path: {
|
|
633
|
+
promotionID: "promotionID",
|
|
634
|
+
code: "CODE123",
|
|
635
|
+
},
|
|
636
|
+
query: {
|
|
637
|
+
"filter": "eq(name,\"Product Name\")", // OPTIONAL
|
|
638
|
+
"page[limit]": 10, // OPTIONAL
|
|
639
|
+
"page[offset]": 0, // OPTIONAL
|
|
640
|
+
},
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
const result: GetRulePromotionCodeUsagesResponse = await getRulePromotionCodeUsages(params);
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
---
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
---
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var client_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(client_exports);
|
|
18
|
+
__reExport(client_exports, require('./types.gen.cjs'), module.exports);
|
|
19
|
+
__reExport(client_exports, require('./sdk.gen.cjs'), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require('./types.gen.cjs'),
|
|
23
|
+
...require('./sdk.gen.cjs')
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/client/index.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\nexport * from \"./types.gen\"\nexport * from \"./sdk.gen\"\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AACA,2BAAc,wBADd;AAEA,2BAAc,sBAFd;","names":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AnonymizeRulePromotionUsagesData, AnonymizeRulePromotionUsagesError, AnonymizeRulePromotionUsagesErrors, AnonymizeRulePromotionUsagesResponse, AnonymizeRulePromotionUsagesResponses, Authorization, ConsumeUnit, CreatePromotionCodeResponse, CreatePromotionCodesResponse, CreateRulePromotionCodesData, CreateRulePromotionCodesError, CreateRulePromotionCodesErrors, CreateRulePromotionCodesResponse, CreateRulePromotionCodesResponses, CreateRulePromotionData, CreateRulePromotionResponse, CreateRulePromotionResponses, DeleteRulePromotionCodesData, DeleteRulePromotionCodesResponse, DeleteRulePromotionCodesResponses, DeleteRulePromotionData, DeleteRulePromotionResponse, DeleteRulePromotionResponses, DeleteSingleRulePromotionCodeData, DeleteSingleRulePromotionCodeResponse, DeleteSingleRulePromotionCodeResponses, GenerateResult, GetPromotionCodeResponse, GetPromotionCodesResponse, GetRulePromotionByIdData, GetRulePromotionByIdResponse, GetRulePromotionByIdResponses, GetRulePromotionCodeUsagesData, GetRulePromotionCodeUsagesError, GetRulePromotionCodeUsagesErrors, GetRulePromotionCodeUsagesResponse, GetRulePromotionCodeUsagesResponses, GetRulePromotionCodesData, GetRulePromotionCodesResponse, GetRulePromotionCodesResponses, GetRulePromotionUsagesData, GetRulePromotionUsagesError, GetRulePromotionUsagesErrors, GetRulePromotionUsagesResponse, GetRulePromotionUsagesResponses, GetRulePromotionsData, GetRulePromotionsResponse, GetRulePromotionsResponses, GetV2RulePromotionsByUuidJobsByJobUuidFileData, GetV2RulePromotionsByUuidJobsByJobUuidFileResponse, GetV2RulePromotionsByUuidJobsByJobUuidFileResponses, GetV2RulePromotionsByUuidJobsData, GetV2RulePromotionsByUuidJobsResponse, GetV2RulePromotionsByUuidJobsResponses, JobType, MaxUsesPerShopper, PostV2RulePromotionsByUuidJobsByJobUuidCancelData, PostV2RulePromotionsByUuidJobsByJobUuidCancelError, PostV2RulePromotionsByUuidJobsByJobUuidCancelErrors, PostV2RulePromotionsByUuidJobsByJobUuidCancelResponse, PostV2RulePromotionsByUuidJobsByJobUuidCancelResponses, PostV2RulePromotionsByUuidJobsData, PostV2RulePromotionsByUuidJobsError, PostV2RulePromotionsByUuidJobsErrors, PostV2RulePromotionsByUuidJobsResponse, PostV2RulePromotionsByUuidJobsResponses, PriceStrategy, PromotionCodeExportedFileResponse, PromotionCodeMessage, PromotionCodesRequest, PromotionJob, PromotionJobCanceledResponse, PromotionJobCreatedResponse, PromotionJobsListResponse, ResponseError, ResponsePaginationMeta, RulePromotionRequest, RulePromotionResponse, RulePromotionUsage, Type, UpdateRulePromotionData, UpdateRulePromotionResponse, UpdateRulePromotionResponses } from './types.gen.cjs';
|
|
2
|
+
export { anonymizeRulePromotionUsages, client, createRulePromotion, createRulePromotionCodes, deleteRulePromotion, deleteRulePromotionCodes, deleteSingleRulePromotionCode, getRulePromotionById, getRulePromotionCodeUsages, getRulePromotionCodes, getRulePromotionUsages, getRulePromotions, getV2RulePromotionsByUuidJobs, getV2RulePromotionsByUuidJobsByJobUuidFile, postV2RulePromotionsByUuidJobs, postV2RulePromotionsByUuidJobsByJobUuidCancel, updateRulePromotion } from './sdk.gen.cjs';
|
|
3
|
+
import '@hey-api/client-fetch';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { AnonymizeRulePromotionUsagesData, AnonymizeRulePromotionUsagesError, AnonymizeRulePromotionUsagesErrors, AnonymizeRulePromotionUsagesResponse, AnonymizeRulePromotionUsagesResponses, Authorization, ConsumeUnit, CreatePromotionCodeResponse, CreatePromotionCodesResponse, CreateRulePromotionCodesData, CreateRulePromotionCodesError, CreateRulePromotionCodesErrors, CreateRulePromotionCodesResponse, CreateRulePromotionCodesResponses, CreateRulePromotionData, CreateRulePromotionResponse, CreateRulePromotionResponses, DeleteRulePromotionCodesData, DeleteRulePromotionCodesResponse, DeleteRulePromotionCodesResponses, DeleteRulePromotionData, DeleteRulePromotionResponse, DeleteRulePromotionResponses, DeleteSingleRulePromotionCodeData, DeleteSingleRulePromotionCodeResponse, DeleteSingleRulePromotionCodeResponses, GenerateResult, GetPromotionCodeResponse, GetPromotionCodesResponse, GetRulePromotionByIdData, GetRulePromotionByIdResponse, GetRulePromotionByIdResponses, GetRulePromotionCodeUsagesData, GetRulePromotionCodeUsagesError, GetRulePromotionCodeUsagesErrors, GetRulePromotionCodeUsagesResponse, GetRulePromotionCodeUsagesResponses, GetRulePromotionCodesData, GetRulePromotionCodesResponse, GetRulePromotionCodesResponses, GetRulePromotionUsagesData, GetRulePromotionUsagesError, GetRulePromotionUsagesErrors, GetRulePromotionUsagesResponse, GetRulePromotionUsagesResponses, GetRulePromotionsData, GetRulePromotionsResponse, GetRulePromotionsResponses, GetV2RulePromotionsByUuidJobsByJobUuidFileData, GetV2RulePromotionsByUuidJobsByJobUuidFileResponse, GetV2RulePromotionsByUuidJobsByJobUuidFileResponses, GetV2RulePromotionsByUuidJobsData, GetV2RulePromotionsByUuidJobsResponse, GetV2RulePromotionsByUuidJobsResponses, JobType, MaxUsesPerShopper, PostV2RulePromotionsByUuidJobsByJobUuidCancelData, PostV2RulePromotionsByUuidJobsByJobUuidCancelError, PostV2RulePromotionsByUuidJobsByJobUuidCancelErrors, PostV2RulePromotionsByUuidJobsByJobUuidCancelResponse, PostV2RulePromotionsByUuidJobsByJobUuidCancelResponses, PostV2RulePromotionsByUuidJobsData, PostV2RulePromotionsByUuidJobsError, PostV2RulePromotionsByUuidJobsErrors, PostV2RulePromotionsByUuidJobsResponse, PostV2RulePromotionsByUuidJobsResponses, PriceStrategy, PromotionCodeExportedFileResponse, PromotionCodeMessage, PromotionCodesRequest, PromotionJob, PromotionJobCanceledResponse, PromotionJobCreatedResponse, PromotionJobsListResponse, ResponseError, ResponsePaginationMeta, RulePromotionRequest, RulePromotionResponse, RulePromotionUsage, Type, UpdateRulePromotionData, UpdateRulePromotionResponse, UpdateRulePromotionResponses } from './types.gen.js';
|
|
2
|
+
export { anonymizeRulePromotionUsages, client, createRulePromotion, createRulePromotionCodes, deleteRulePromotion, deleteRulePromotionCodes, deleteSingleRulePromotionCode, getRulePromotionById, getRulePromotionCodeUsages, getRulePromotionCodes, getRulePromotionUsages, getRulePromotions, getV2RulePromotionsByUuidJobs, getV2RulePromotionsByUuidJobsByJobUuidFile, postV2RulePromotionsByUuidJobs, postV2RulePromotionsByUuidJobsByJobUuidCancel, updateRulePromotion } from './sdk.gen.js';
|
|
3
|
+
import '@hey-api/client-fetch';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/client/index.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\nexport * from \"./types.gen\"\nexport * from \"./sdk.gen\"\n"],"mappings":"AACA,cAAc;AACd,cAAc;","names":[]}
|