@compassdigital/sdk.typescript 4.878.0 → 4.879.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.
Files changed (44) hide show
  1. package/lib/messages/events/RedemptionRolledBackEvent.d.ts +26 -0
  2. package/lib/messages/events/RedemptionRolledBackEvent.d.ts.map +1 -0
  3. package/lib/messages/events/RedemptionRolledBackEvent.js +4 -0
  4. package/lib/messages/events/RedemptionRolledBackEvent.js.map +1 -0
  5. package/lib/messages/events/RewardCardEarnedEvent.d.ts +25 -0
  6. package/lib/messages/events/RewardCardEarnedEvent.d.ts.map +1 -0
  7. package/lib/messages/events/RewardCardEarnedEvent.js +4 -0
  8. package/lib/messages/events/RewardCardEarnedEvent.js.map +1 -0
  9. package/lib/messages/events/RewardCardPointsAdjustedEvent.d.ts +27 -0
  10. package/lib/messages/events/RewardCardPointsAdjustedEvent.d.ts.map +1 -0
  11. package/lib/messages/events/RewardCardPointsAdjustedEvent.js +4 -0
  12. package/lib/messages/events/RewardCardPointsAdjustedEvent.js.map +1 -0
  13. package/lib/messages/events/RewardMilestoneReachedEvent.d.ts +26 -0
  14. package/lib/messages/events/RewardMilestoneReachedEvent.d.ts.map +1 -0
  15. package/lib/messages/events/RewardMilestoneReachedEvent.js +4 -0
  16. package/lib/messages/events/RewardMilestoneReachedEvent.js.map +1 -0
  17. package/lib/messages/events/SegmentMembersAddedEvent.d.ts +19 -0
  18. package/lib/messages/events/SegmentMembersAddedEvent.d.ts.map +1 -0
  19. package/lib/messages/events/SegmentMembersAddedEvent.js +4 -0
  20. package/lib/messages/events/SegmentMembersAddedEvent.js.map +1 -0
  21. package/lib/messages/events/SegmentMembersRemovedEvent.d.ts +19 -0
  22. package/lib/messages/events/SegmentMembersRemovedEvent.d.ts.map +1 -0
  23. package/lib/messages/events/SegmentMembersRemovedEvent.js +4 -0
  24. package/lib/messages/events/SegmentMembersRemovedEvent.js.map +1 -0
  25. package/lib/messages/events/SegmentRuleChangedEvent.d.ts +24 -0
  26. package/lib/messages/events/SegmentRuleChangedEvent.d.ts.map +1 -0
  27. package/lib/messages/events/SegmentRuleChangedEvent.js +4 -0
  28. package/lib/messages/events/SegmentRuleChangedEvent.js.map +1 -0
  29. package/lib/messages/events/VoucherRedeemedEvent.d.ts +25 -0
  30. package/lib/messages/events/VoucherRedeemedEvent.d.ts.map +1 -0
  31. package/lib/messages/events/VoucherRedeemedEvent.js +4 -0
  32. package/lib/messages/events/VoucherRedeemedEvent.js.map +1 -0
  33. package/lib/messages/events/index.d.ts +8 -0
  34. package/lib/messages/events/index.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/src/messages/events/RedemptionRolledBackEvent.ts +41 -0
  37. package/src/messages/events/RewardCardEarnedEvent.ts +39 -0
  38. package/src/messages/events/RewardCardPointsAdjustedEvent.ts +43 -0
  39. package/src/messages/events/RewardMilestoneReachedEvent.ts +41 -0
  40. package/src/messages/events/SegmentMembersAddedEvent.ts +27 -0
  41. package/src/messages/events/SegmentMembersRemovedEvent.ts +27 -0
  42. package/src/messages/events/SegmentRuleChangedEvent.ts +36 -0
  43. package/src/messages/events/VoucherRedeemedEvent.ts +39 -0
  44. package/src/messages/events/index.ts +16 -0
@@ -0,0 +1,26 @@
1
+ export interface RedemptionRolledBackEvent {
2
+ id: string;
3
+ type: 'RedemptionRolledBackEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceparent?: string;
8
+ };
9
+ source: string;
10
+ domain?: string;
11
+ visibility?: 'public' | 'private';
12
+ payload: {
13
+ redemptionId: string;
14
+ voucherId: string;
15
+ campaignId: string;
16
+ orderId: string;
17
+ customerId: string;
18
+ siteId: string;
19
+ sector: string;
20
+ country: 'CA' | 'US';
21
+ discountAmountCents: number;
22
+ reason: string;
23
+ rolledBackAt: string;
24
+ };
25
+ }
26
+ //# sourceMappingURL=RedemptionRolledBackEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedemptionRolledBackEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/RedemptionRolledBackEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,yBAAyB;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,2BAA2B,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QAEb,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE;QAER,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;QAElB,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,MAAM,CAAC;QAEhB,UAAU,EAAE,MAAM,CAAC;QAEnB,MAAM,EAAE,MAAM,CAAC;QAEf,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QAErB,mBAAmB,EAAE,MAAM,CAAC;QAE5B,MAAM,EAAE,MAAM,CAAC;QAEf,YAAY,EAAE,MAAM,CAAC;KACrB,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=RedemptionRolledBackEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedemptionRolledBackEvent.js","sourceRoot":"","sources":["../../../src/messages/events/RedemptionRolledBackEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -0,0 +1,25 @@
1
+ export interface RewardCardEarnedEvent {
2
+ id: string;
3
+ type: 'RewardCardEarnedEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceparent?: string;
8
+ };
9
+ source: string;
10
+ domain?: string;
11
+ visibility?: 'public' | 'private';
12
+ payload: {
13
+ cardId: string;
14
+ rewardId: string;
15
+ customerId: string;
16
+ orderId: string;
17
+ pointsDelta: number;
18
+ pointsBalance: number;
19
+ sector: string;
20
+ country: 'CA' | 'US';
21
+ siteId: string;
22
+ earnedAt: string;
23
+ };
24
+ }
25
+ //# sourceMappingURL=RewardCardEarnedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardCardEarnedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/RewardCardEarnedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QAEb,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE;QAER,MAAM,EAAE,MAAM,CAAC;QAEf,QAAQ,EAAE,MAAM,CAAC;QAEjB,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,MAAM,CAAC;QAEhB,WAAW,EAAE,MAAM,CAAC;QAEpB,aAAa,EAAE,MAAM,CAAC;QAEtB,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QAErB,MAAM,EAAE,MAAM,CAAC;QAEf,QAAQ,EAAE,MAAM,CAAC;KACjB,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=RewardCardEarnedEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardCardEarnedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/RewardCardEarnedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -0,0 +1,27 @@
1
+ export interface RewardCardPointsAdjustedEvent {
2
+ id: string;
3
+ type: 'RewardCardPointsAdjustedEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceparent?: string;
8
+ };
9
+ source: string;
10
+ domain?: string;
11
+ visibility?: 'public' | 'private';
12
+ payload: {
13
+ cardId: string;
14
+ rewardId: string;
15
+ customerId: string;
16
+ pointsDelta: number;
17
+ previousBalance: number;
18
+ pointsBalance: number;
19
+ sector: string;
20
+ country: 'CA' | 'US';
21
+ siteId: string | null;
22
+ description: string;
23
+ adjustedBy: string;
24
+ adjustedAt: string;
25
+ };
26
+ }
27
+ //# sourceMappingURL=RewardCardPointsAdjustedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardCardPointsAdjustedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/RewardCardPointsAdjustedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,6BAA6B;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,+BAA+B,CAAC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QAEb,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE;QAER,MAAM,EAAE,MAAM,CAAC;QAEf,QAAQ,EAAE,MAAM,CAAC;QAEjB,UAAU,EAAE,MAAM,CAAC;QAEnB,WAAW,EAAE,MAAM,CAAC;QAEpB,eAAe,EAAE,MAAM,CAAC;QAExB,aAAa,EAAE,MAAM,CAAC;QAEtB,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QAErB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtB,WAAW,EAAE,MAAM,CAAC;QAEpB,UAAU,EAAE,MAAM,CAAC;QAEnB,UAAU,EAAE,MAAM,CAAC;KACnB,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=RewardCardPointsAdjustedEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardCardPointsAdjustedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/RewardCardPointsAdjustedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -0,0 +1,26 @@
1
+ export interface RewardMilestoneReachedEvent {
2
+ id: string;
3
+ type: 'RewardMilestoneReachedEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceparent?: string;
8
+ };
9
+ source: string;
10
+ domain?: string;
11
+ visibility?: 'public' | 'private';
12
+ payload: {
13
+ cardId: string;
14
+ rewardId: string;
15
+ customerId: string;
16
+ orderId: string;
17
+ campaignId: string;
18
+ voucherId: string;
19
+ voucherCode: string;
20
+ sector: string;
21
+ country: 'CA' | 'US';
22
+ siteId: string;
23
+ pointsRequired: number;
24
+ };
25
+ }
26
+ //# sourceMappingURL=RewardMilestoneReachedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardMilestoneReachedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/RewardMilestoneReachedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,2BAA2B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QAEb,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE;QAER,MAAM,EAAE,MAAM,CAAC;QAEf,QAAQ,EAAE,MAAM,CAAC;QAEjB,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,MAAM,CAAC;QAEhB,UAAU,EAAE,MAAM,CAAC;QAEnB,SAAS,EAAE,MAAM,CAAC;QAElB,WAAW,EAAE,MAAM,CAAC;QAEpB,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QAErB,MAAM,EAAE,MAAM,CAAC;QAEf,cAAc,EAAE,MAAM,CAAC;KACvB,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=RewardMilestoneReachedEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardMilestoneReachedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/RewardMilestoneReachedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -0,0 +1,19 @@
1
+ export interface SegmentMembersAddedEvent {
2
+ id: string;
3
+ type: 'SegmentMembersAddedEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceparent?: string;
8
+ };
9
+ source: string;
10
+ domain?: string;
11
+ visibility?: 'public' | 'private';
12
+ payload: {
13
+ segmentId: string;
14
+ sector: string;
15
+ country: 'CA' | 'US';
16
+ count: number;
17
+ };
18
+ }
19
+ //# sourceMappingURL=SegmentMembersAddedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentMembersAddedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/SegmentMembersAddedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QAEb,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE;QAER,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QAErB,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=SegmentMembersAddedEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentMembersAddedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/SegmentMembersAddedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -0,0 +1,19 @@
1
+ export interface SegmentMembersRemovedEvent {
2
+ id: string;
3
+ type: 'SegmentMembersRemovedEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceparent?: string;
8
+ };
9
+ source: string;
10
+ domain?: string;
11
+ visibility?: 'public' | 'private';
12
+ payload: {
13
+ segmentId: string;
14
+ sector: string;
15
+ country: 'CA' | 'US';
16
+ count: number;
17
+ };
18
+ }
19
+ //# sourceMappingURL=SegmentMembersRemovedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentMembersRemovedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/SegmentMembersRemovedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,0BAA0B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,4BAA4B,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QAEb,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE;QAER,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QAErB,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=SegmentMembersRemovedEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentMembersRemovedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/SegmentMembersRemovedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -0,0 +1,24 @@
1
+ export interface SegmentRuleChangedEvent {
2
+ id: string;
3
+ type: 'SegmentRuleChangedEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceparent?: string;
8
+ };
9
+ source: string;
10
+ domain?: string;
11
+ visibility?: 'public' | 'private';
12
+ payload: {
13
+ segmentId: string;
14
+ ruleJson: {
15
+ attribute: string;
16
+ operator: string;
17
+ value: string;
18
+ };
19
+ sector: string;
20
+ country: 'CA' | 'US';
21
+ updatedAt: string;
22
+ };
23
+ }
24
+ //# sourceMappingURL=SegmentRuleChangedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentRuleChangedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/SegmentRuleChangedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QAEb,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE;QAER,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE;YAET,SAAS,EAAE,MAAM,CAAC;YAElB,QAAQ,EAAE,MAAM,CAAC;YAEjB,KAAK,EAAE,MAAM,CAAC;SACd,CAAC;QAEF,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;KAClB,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=SegmentRuleChangedEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentRuleChangedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/SegmentRuleChangedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -0,0 +1,25 @@
1
+ export interface VoucherRedeemedEvent {
2
+ id: string;
3
+ type: 'VoucherRedeemedEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceparent?: string;
8
+ };
9
+ source: string;
10
+ domain?: string;
11
+ visibility?: 'public' | 'private';
12
+ payload: {
13
+ redemptionId: string;
14
+ voucherId: string;
15
+ voucherCode: string;
16
+ campaignId: string;
17
+ orderId: string;
18
+ customerId: string;
19
+ siteId: string;
20
+ sector: string;
21
+ country: 'CA' | 'US';
22
+ discountAmountCents: number;
23
+ };
24
+ }
25
+ //# sourceMappingURL=VoucherRedeemedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoucherRedeemedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/VoucherRedeemedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QAEb,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE;QAER,YAAY,EAAE,MAAM,CAAC;QAErB,SAAS,EAAE,MAAM,CAAC;QAElB,WAAW,EAAE,MAAM,CAAC;QAEpB,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,MAAM,CAAC;QAEhB,UAAU,EAAE,MAAM,CAAC;QAEnB,MAAM,EAAE,MAAM,CAAC;QAEf,MAAM,EAAE,MAAM,CAAC;QAEf,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QAErB,mBAAmB,EAAE,MAAM,CAAC;KAC5B,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=VoucherRedeemedEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoucherRedeemedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/VoucherRedeemedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -34,11 +34,18 @@ export { OrderRefundDeniedEvent } from './OrderRefundDeniedEvent';
34
34
  export { OrderUpdatedEvent } from './OrderUpdatedEvent';
35
35
  export { PublishedMenuCreatedEvent } from './PublishedMenuCreatedEvent';
36
36
  export { PublishedMenuUpdatedEvent } from './PublishedMenuUpdatedEvent';
37
+ export { RedemptionRolledBackEvent } from './RedemptionRolledBackEvent';
37
38
  export { ReportConfigUpdatedEvent } from './ReportConfigUpdatedEvent';
38
39
  export { ReviewCreatedEvent } from './ReviewCreatedEvent';
39
40
  export { RewardCampaignPublishedEvent } from './RewardCampaignPublishedEvent';
41
+ export { RewardCardEarnedEvent } from './RewardCardEarnedEvent';
42
+ export { RewardCardPointsAdjustedEvent } from './RewardCardPointsAdjustedEvent';
40
43
  export { RewardCreatedEvent } from './RewardCreatedEvent';
44
+ export { RewardMilestoneReachedEvent } from './RewardMilestoneReachedEvent';
41
45
  export { RewardRedeemedEvent } from './RewardRedeemedEvent';
46
+ export { SegmentMembersAddedEvent } from './SegmentMembersAddedEvent';
47
+ export { SegmentMembersRemovedEvent } from './SegmentMembersRemovedEvent';
48
+ export { SegmentRuleChangedEvent } from './SegmentRuleChangedEvent';
42
49
  export { ShoppingCartCreatedEvent } from './ShoppingCartCreatedEvent';
43
50
  export { ShoppingCartUpdatedEvent } from './ShoppingCartUpdatedEvent';
44
51
  export { TaskCreatedEvent } from './TaskCreatedEvent';
@@ -49,4 +56,5 @@ export { UserEmailVerificationRequestedEvent } from './UserEmailVerificationRequ
49
56
  export { UserPasswordChangedEvent } from './UserPasswordChangedEvent';
50
57
  export { UserPasswordResetRequestedEvent } from './UserPasswordResetRequestedEvent';
51
58
  export { UserUpdatedEvent } from './UserUpdatedEvent';
59
+ export { VoucherRedeemedEvent } from './VoucherRedeemedEvent';
52
60
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":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TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -0,0 +1,41 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface RedemptionRolledBackEvent {
4
+ id: string;
5
+ type: 'RedemptionRolledBackEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ // W3C traceparent, injected by MessageBus from the active trace context
10
+ traceparent?: string;
11
+ };
12
+ source: string;
13
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
14
+ domain?: string;
15
+ // Whether other domains may integrate against this message. Absent means private.
16
+ visibility?: 'public' | 'private';
17
+ payload: {
18
+ // Id of the rolled-back redemption, the same id its VoucherRedeemedEvent carried.
19
+ redemptionId: string;
20
+ // Id of the voucher the redemption used.
21
+ voucherId: string;
22
+ // Id of the campaign the voucher belongs to.
23
+ campaignId: string;
24
+ // Id of the order the redemption applied to, the same value its VoucherRedeemedEvent carried.
25
+ orderId: string;
26
+ // Customer the redemption belongs to, the same identifier its VoucherRedeemedEvent carried: the customer's source id, or their email when the redeem request had none.
27
+ customerId: string;
28
+ // Id of the site the order was placed at, the same value its VoucherRedeemedEvent carried.
29
+ siteId: string;
30
+ // Sector the voucher's campaign is scoped to, as a location-service sector name (e.g. Eurest). Copied onto the redemption when it was written.
31
+ sector: string;
32
+ // Country the voucher's campaign is scoped to. Copied onto the redemption when it was written.
33
+ country: 'CA' | 'US';
34
+ // Discount the redemption had applied to the order, in cents. This is the amount to reverse.
35
+ discountAmountCents: number;
36
+ // Why the redemption was rolled back, as given by the caller of the rollback endpoint. Free text, trimmed, never blank.
37
+ reason: string;
38
+ // When loyalty recorded the rollback.
39
+ rolledBackAt: string;
40
+ };
41
+ }
@@ -0,0 +1,39 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface RewardCardEarnedEvent {
4
+ id: string;
5
+ type: 'RewardCardEarnedEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ // W3C traceparent, injected by MessageBus from the active trace context
10
+ traceparent?: string;
11
+ };
12
+ source: string;
13
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
14
+ domain?: string;
15
+ // Whether other domains may integrate against this message. Absent means private.
16
+ visibility?: 'public' | 'private';
17
+ payload: {
18
+ // Reward card that earned the points
19
+ cardId: string;
20
+ // Reward the card belongs to
21
+ rewardId: string;
22
+ // Customer the card belongs to: the customerId sent on the earn request
23
+ customerId: string;
24
+ // Order that earned the points, as sent on the earn request
25
+ orderId: string;
26
+ // Points credited to the card for this order: the sum of the reward's matched earning rules. Same field as on RewardCardPointsAdjustedEvent, so one ledger handler can fold both events
27
+ pointsDelta: number;
28
+ // Card points balance after the credit
29
+ pointsBalance: number;
30
+ // Sector of the site the order was placed at, as sent on the earn request (location-service sector name, e.g. Eurest)
31
+ sector: string;
32
+ // Country of the site the order was placed at, as sent on the earn request
33
+ country: 'CA' | 'US';
34
+ // Site the order was placed at, as sent on the earn request. This is the order's site, unlike siteId on RewardCardPointsAdjustedEvent, which is the reward's scope
35
+ siteId: string;
36
+ // When the points were credited
37
+ earnedAt: string;
38
+ };
39
+ }
@@ -0,0 +1,43 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface RewardCardPointsAdjustedEvent {
4
+ id: string;
5
+ type: 'RewardCardPointsAdjustedEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ // W3C traceparent, injected by MessageBus from the active trace context
10
+ traceparent?: string;
11
+ };
12
+ source: string;
13
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
14
+ domain?: string;
15
+ // Whether other domains may integrate against this message. Absent means private.
16
+ visibility?: 'public' | 'private';
17
+ payload: {
18
+ // Reward card whose balance was adjusted
19
+ cardId: string;
20
+ // Reward the card belongs to
21
+ rewardId: string;
22
+ // Customer the card belongs to: the customerId the earn request sent when the card was created
23
+ customerId: string;
24
+ // Points the adjustment added (positive) or deducted (negative). Never 0. Same field as on RewardCardEarnedEvent, so one ledger handler can fold both events
25
+ pointsDelta: number;
26
+ // Card points balance before the adjustment
27
+ previousBalance: number;
28
+ // Card points balance after the adjustment: previousBalance plus pointsDelta
29
+ pointsBalance: number;
30
+ // Sector the card's reward is scoped to (location-service sector name, e.g. Eurest)
31
+ sector: string;
32
+ // Country the card's reward is scoped to
33
+ country: 'CA' | 'US';
34
+ // Site the card's reward is scoped to, or null when the reward is sector-wide. This is the reward's scope, unlike siteId on RewardCardEarnedEvent, which is the order's site
35
+ siteId: string | null;
36
+ // Reason the operator gave for the adjustment, trimmed
37
+ description: string;
38
+ // Subject of the authenticated caller that made the adjustment, typically a user id
39
+ adjustedBy: string;
40
+ // When the adjustment was recorded
41
+ adjustedAt: string;
42
+ };
43
+ }
@@ -0,0 +1,41 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface RewardMilestoneReachedEvent {
4
+ id: string;
5
+ type: 'RewardMilestoneReachedEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ // W3C traceparent, injected by MessageBus from the active trace context
10
+ traceparent?: string;
11
+ };
12
+ source: string;
13
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
14
+ domain?: string;
15
+ // Whether other domains may integrate against this message. Absent means private.
16
+ visibility?: 'public' | 'private';
17
+ payload: {
18
+ // Reward card that crossed the milestone
19
+ cardId: string;
20
+ // Reward the card and the milestone belong to
21
+ rewardId: string;
22
+ // Customer the card belongs to and the voucher was issued to: the customerId sent on the earn request
23
+ customerId: string;
24
+ // Order whose points took the card across the milestone, as sent on the earn request
25
+ orderId: string;
26
+ // Campaign the milestone issues its voucher from
27
+ campaignId: string;
28
+ // Personal voucher issued for this milestone crossing
29
+ voucherId: string;
30
+ // Code of the issued voucher: the campaign's consumer-app prefix (boore for Boost, thrre for Thrive) followed by eight lowercase letters
31
+ voucherCode: string;
32
+ // Sector of the site the order was placed at, as sent on the earn request (location-service sector name, e.g. Eurest)
33
+ sector: string;
34
+ // Country of the site the order was placed at, as sent on the earn request
35
+ country: 'CA' | 'US';
36
+ // Site the order was placed at, as sent on the earn request
37
+ siteId: string;
38
+ // Points threshold of the milestone the card crossed
39
+ pointsRequired: number;
40
+ };
41
+ }
@@ -0,0 +1,27 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface SegmentMembersAddedEvent {
4
+ id: string;
5
+ type: 'SegmentMembersAddedEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ // W3C traceparent, injected by MessageBus from the active trace context
10
+ traceparent?: string;
11
+ };
12
+ source: string;
13
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
14
+ domain?: string;
15
+ // Whether other domains may integrate against this message. Absent means private.
16
+ visibility?: 'public' | 'private';
17
+ payload: {
18
+ // Id of the static-list segment the customers were added to
19
+ segmentId: string;
20
+ // Location-service sector name the segment is scoped to, e.g. Eurest. A name, not a sector id
21
+ sector: string;
22
+ // Country the segment is scoped to
23
+ country: 'CA' | 'US';
24
+ // Number of customers who became members in this request, including previously removed customers added back. Customers who were already members are not counted, and no event is published when no one became a member.
25
+ count: number;
26
+ };
27
+ }
@@ -0,0 +1,27 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface SegmentMembersRemovedEvent {
4
+ id: string;
5
+ type: 'SegmentMembersRemovedEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ // W3C traceparent, injected by MessageBus from the active trace context
10
+ traceparent?: string;
11
+ };
12
+ source: string;
13
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
14
+ domain?: string;
15
+ // Whether other domains may integrate against this message. Absent means private.
16
+ visibility?: 'public' | 'private';
17
+ payload: {
18
+ // Id of the static-list segment the customers were removed from
19
+ segmentId: string;
20
+ // Location-service sector name the segment is scoped to, e.g. Eurest. A name, not a sector id
21
+ sector: string;
22
+ // Country the segment is scoped to
23
+ country: 'CA' | 'US';
24
+ // Number of customers whose membership this request ended. Customers who were not members are not counted, and no event is published when no one was removed.
25
+ count: number;
26
+ };
27
+ }
@@ -0,0 +1,36 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface SegmentRuleChangedEvent {
4
+ id: string;
5
+ type: 'SegmentRuleChangedEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ // W3C traceparent, injected by MessageBus from the active trace context
10
+ traceparent?: string;
11
+ };
12
+ source: string;
13
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
14
+ domain?: string;
15
+ // Whether other domains may integrate against this message. Absent means private.
16
+ visibility?: 'public' | 'private';
17
+ payload: {
18
+ // Id of the attribute-rule segment whose rule changed
19
+ segmentId: string;
20
+ // The segment's membership rule as stored after the update
21
+ ruleJson: {
22
+ // Attribute key the rule evaluates (e.g. points_balance, enrollment_date)
23
+ attribute: string;
24
+ // Operator key (eq, neq, gt, gte, lt, lte)
25
+ operator: string;
26
+ // Value to compare against
27
+ value: string;
28
+ };
29
+ // Location-service sector name the segment is scoped to, e.g. Eurest. A name, not a sector id
30
+ sector: string;
31
+ // Country the segment is scoped to
32
+ country: 'CA' | 'US';
33
+ // The segment updatedAt written by the update that changed the rule, the same value the segment API returns. Orders rule events for a segment
34
+ updatedAt: string;
35
+ };
36
+ }
@@ -0,0 +1,39 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface VoucherRedeemedEvent {
4
+ id: string;
5
+ type: 'VoucherRedeemedEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ // W3C traceparent, injected by MessageBus from the active trace context
10
+ traceparent?: string;
11
+ };
12
+ source: string;
13
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
14
+ domain?: string;
15
+ // Whether other domains may integrate against this message. Absent means private.
16
+ visibility?: 'public' | 'private';
17
+ payload: {
18
+ // Id of the redemption this event records. A RedemptionRolledBackEvent for the same redemption carries the same id, so consumers pair the two on it.
19
+ redemptionId: string;
20
+ // Id of the redeemed voucher.
21
+ voucherId: string;
22
+ // Code of the redeemed voucher, exactly as loyalty stores it: upper-cased, except reward codes (boore, boorb, thrre and thrrb prefixes), which stay lower-case. Compare it as-is.
23
+ voucherCode: string;
24
+ // Id of the campaign the voucher belongs to.
25
+ campaignId: string;
26
+ // Id of the order the voucher was redeemed against: order.metadata.order_id from the redeem request, or order.source_id when that is absent.
27
+ orderId: string;
28
+ // Customer who redeemed the voucher: customer.source_id from the redeem request, or the customer's email when no source_id was sent. The redemption stores the same value, so the paired RedemptionRolledBackEvent carries the same identifier.
29
+ customerId: string;
30
+ // Id of the site the order was placed at: order.metadata.site_id from the redeem request, or order.metadata.location_group_id when that is absent.
31
+ siteId: string;
32
+ // Sector the voucher's campaign is scoped to, as a location-service sector name (e.g. Eurest). Copied onto the redemption when it is written.
33
+ sector: string;
34
+ // Country the voucher's campaign is scoped to. Copied onto the redemption when it is written.
35
+ country: 'CA' | 'US';
36
+ // Discount this redemption applied to the order, in cents.
37
+ discountAmountCents: number;
38
+ };
39
+ }
@@ -72,16 +72,30 @@ export { PublishedMenuCreatedEvent } from './PublishedMenuCreatedEvent';
72
72
 
73
73
  export { PublishedMenuUpdatedEvent } from './PublishedMenuUpdatedEvent';
74
74
 
75
+ export { RedemptionRolledBackEvent } from './RedemptionRolledBackEvent';
76
+
75
77
  export { ReportConfigUpdatedEvent } from './ReportConfigUpdatedEvent';
76
78
 
77
79
  export { ReviewCreatedEvent } from './ReviewCreatedEvent';
78
80
 
79
81
  export { RewardCampaignPublishedEvent } from './RewardCampaignPublishedEvent';
80
82
 
83
+ export { RewardCardEarnedEvent } from './RewardCardEarnedEvent';
84
+
85
+ export { RewardCardPointsAdjustedEvent } from './RewardCardPointsAdjustedEvent';
86
+
81
87
  export { RewardCreatedEvent } from './RewardCreatedEvent';
82
88
 
89
+ export { RewardMilestoneReachedEvent } from './RewardMilestoneReachedEvent';
90
+
83
91
  export { RewardRedeemedEvent } from './RewardRedeemedEvent';
84
92
 
93
+ export { SegmentMembersAddedEvent } from './SegmentMembersAddedEvent';
94
+
95
+ export { SegmentMembersRemovedEvent } from './SegmentMembersRemovedEvent';
96
+
97
+ export { SegmentRuleChangedEvent } from './SegmentRuleChangedEvent';
98
+
85
99
  export { ShoppingCartCreatedEvent } from './ShoppingCartCreatedEvent';
86
100
 
87
101
  export { ShoppingCartUpdatedEvent } from './ShoppingCartUpdatedEvent';
@@ -101,3 +115,5 @@ export { UserPasswordChangedEvent } from './UserPasswordChangedEvent';
101
115
  export { UserPasswordResetRequestedEvent } from './UserPasswordResetRequestedEvent';
102
116
 
103
117
  export { UserUpdatedEvent } from './UserUpdatedEvent';
118
+
119
+ export { VoucherRedeemedEvent } from './VoucherRedeemedEvent';