@compassdigital/sdk.typescript 4.143.0 → 4.145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,80 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface DiscountStatus {
4
+ live?: boolean;
5
+ publishedTo3rdParty?: boolean;
6
+ readyToPublish?: boolean;
7
+ active?: boolean;
8
+ }
9
+
10
+ export interface DiscountIs {
11
+ badgepayPromo?: boolean;
12
+ mealplanPromo?: boolean;
13
+ decliningBalancePromo?: boolean;
14
+ voucherPromo?: boolean;
15
+ }
16
+
17
+ export interface VoucherifyMetaDataDiscount {
18
+ type: 'AMOUNT_OFF' | 'PERCENT_OFF';
19
+ amountOff?: number;
20
+ percentOff?: number;
21
+ }
22
+
23
+ export interface VoucherifyMetaData {
24
+ id?: string;
25
+ code?: string;
26
+ discount?: VoucherifyMetaDataDiscount;
27
+ }
28
+
29
+ export interface MetaProvider {
30
+ voucherify?: VoucherifyMetaData;
31
+ }
32
+
33
+ export interface DiscountMeta {
34
+ provider: MetaProvider;
35
+ }
36
+
37
+ export interface DiscountAssociation {
38
+ id: string;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ discount: string;
42
+ site?: string;
43
+ brand?: string;
44
+ providerData?: ProviderData;
45
+ }
46
+
47
+ export interface ProviderData {
48
+ voucherify?: {
49
+ id?: string;
50
+ code?: string;
51
+ };
52
+ }
53
+
54
+ export interface DiscountCreatedEvent {
55
+ id: string;
56
+ type: 'DiscountCreatedEvent';
57
+ version: '0.0.1';
58
+ timestamp: string;
59
+ traceContext: {
60
+ traceId?: string;
61
+ };
62
+ payload: {
63
+ discount: {
64
+ // discount id
65
+ id: string;
66
+ // user id of discount creator
67
+ createdBy: string;
68
+ // user id of most recent update
69
+ updatedBy?: string;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ name: string;
73
+ status?: DiscountStatus;
74
+ is?: DiscountIs;
75
+ meta?: DiscountMeta;
76
+ };
77
+ discountAssociations?: DiscountAssociation[];
78
+ };
79
+ source: string;
80
+ }
@@ -1,3 +1,5 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ export { DiscountCreatedEvent } from './DiscountCreatedEvent';
4
+
3
5
  export { FakeEvent } from './FakeEvent';