@compassdigital/sdk.typescript 4.902.0 → 4.904.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 (31) hide show
  1. package/lib/index.d.ts +9 -1
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +8 -0
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/centricos.d.ts +2 -1
  6. package/lib/interface/centricos.d.ts.map +1 -1
  7. package/lib/interface/centricos.js.map +1 -1
  8. package/lib/interface/search.d.ts +18 -0
  9. package/lib/interface/search.d.ts.map +1 -1
  10. package/lib/messages/events/CalendarEventCreatedEvent.d.ts +56 -0
  11. package/lib/messages/events/CalendarEventCreatedEvent.d.ts.map +1 -0
  12. package/lib/messages/events/CalendarEventCreatedEvent.js +4 -0
  13. package/lib/messages/events/CalendarEventCreatedEvent.js.map +1 -0
  14. package/lib/messages/events/CalendarEventDeletedEvent.d.ts +19 -0
  15. package/lib/messages/events/CalendarEventDeletedEvent.d.ts.map +1 -0
  16. package/lib/messages/events/CalendarEventDeletedEvent.js +4 -0
  17. package/lib/messages/events/CalendarEventDeletedEvent.js.map +1 -0
  18. package/lib/messages/events/CalendarEventUpdatedEvent.d.ts +56 -0
  19. package/lib/messages/events/CalendarEventUpdatedEvent.d.ts.map +1 -0
  20. package/lib/messages/events/CalendarEventUpdatedEvent.js +4 -0
  21. package/lib/messages/events/CalendarEventUpdatedEvent.js.map +1 -0
  22. package/lib/messages/events/index.d.ts +3 -0
  23. package/lib/messages/events/index.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/src/index.ts +22 -0
  26. package/src/interface/centricos.ts +2 -0
  27. package/src/interface/search.ts +34 -0
  28. package/src/messages/events/CalendarEventCreatedEvent.ts +81 -0
  29. package/src/messages/events/CalendarEventDeletedEvent.ts +27 -0
  30. package/src/messages/events/CalendarEventUpdatedEvent.ts +81 -0
  31. package/src/messages/events/index.ts +6 -0
@@ -0,0 +1,81 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface Event {
4
+ data?: {
5
+ title?: string;
6
+ description?: string;
7
+ color?: string;
8
+ forecolor?: string;
9
+ icon?: string;
10
+ busy?: boolean;
11
+ calendar?: string;
12
+ location?: string;
13
+ id?: string;
14
+ menu?: string;
15
+ version?: number;
16
+ [index: string]: any;
17
+ };
18
+ schedule?: Schedule;
19
+ [index: string]: any;
20
+ }
21
+
22
+ export interface Schedule {
23
+ // Start timestamp in milliseconds (Unix epoch).
24
+ start?: number;
25
+ // End timestamp in milliseconds (Unix epoch). If omitted, the schedule continues indefinitely.
26
+ end?: number;
27
+ // Array of time strings specifying the start time of the event each day it occurs.
28
+ times?: string[];
29
+ // Duration of the event, combined with times to calculate the end time.
30
+ duration?: number;
31
+ // Duration unit for the schedule.
32
+ durationUnit?: 'minutes' | 'hours' | 'days' | 'weeks';
33
+ // Array of specific years when schedule applies (full year values, e.g., 2024).
34
+ year?: number[];
35
+ // Array of specific months when schedule applies (0-indexed, 0 = January, 11 = December).
36
+ month?: number[];
37
+ // Array of days of the week when this schedule is active.
38
+ dayOfWeek?: number[];
39
+ // Array of specific weeks of the month when schedule applies.
40
+ weekOfMonth?: number[];
41
+ // Array of specific weeks of the year when schedule applies (ISO week numbers).
42
+ weekOfYear?: number[];
43
+ // Array of week spans within the month (0-indexed week blocks).
44
+ weekspanOfMonth?: number[];
45
+ // Array of week spans within the year (0-indexed week blocks).
46
+ weekspanOfYear?: number[];
47
+ // Array of specific days of the year when schedule applies.
48
+ dayOfYear?: number[];
49
+ // Array of specific days of month when schedule applies.
50
+ dayOfMonth?: number[];
51
+ [index: string]: any;
52
+ }
53
+
54
+ export interface CalendarEventCreatedEvent {
55
+ id: string;
56
+ type: 'CalendarEventCreatedEvent';
57
+ version: '0.0.1';
58
+ timestamp: string;
59
+ traceContext: {
60
+ // W3C traceparent, injected by MessageBus from the active trace context
61
+ traceparent?: string;
62
+ };
63
+ source: string;
64
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
65
+ domain?: string;
66
+ // Whether other domains may integrate against this message. Absent means private.
67
+ visibility?: 'public' | 'private';
68
+ payload: {
69
+ // CDL-encoded location group (site) id of the station
70
+ site_id: string;
71
+ // CDL-encoded location brand (station) id. The calendar id is the same id
72
+ station_id: string;
73
+ // Calendar revision after the write. Matches `revision` returned by GET /calendar/{id} and the external-edge calendar endpoint
74
+ revision: number;
75
+ // Calendar event id (`data.id` of the event)
76
+ event_id: string;
77
+ // Calendar timezone, e.g. America/Toronto. Schedule times are interpreted in it
78
+ timezone?: string;
79
+ event: Event;
80
+ };
81
+ }
@@ -0,0 +1,27 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface CalendarEventDeletedEvent {
4
+ id: string;
5
+ type: 'CalendarEventDeletedEvent';
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
+ // CDL-encoded location group (site) id of the station
19
+ site_id: string;
20
+ // CDL-encoded location brand (station) id. The calendar id is the same id
21
+ station_id: string;
22
+ // Calendar revision after the write. Matches `revision` returned by GET /calendar/{id} and the external-edge calendar endpoint
23
+ revision: number;
24
+ // Calendar event id (`data.id` of the event)
25
+ event_id: string;
26
+ };
27
+ }
@@ -0,0 +1,81 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface Event {
4
+ data?: {
5
+ title?: string;
6
+ description?: string;
7
+ color?: string;
8
+ forecolor?: string;
9
+ icon?: string;
10
+ busy?: boolean;
11
+ calendar?: string;
12
+ location?: string;
13
+ id?: string;
14
+ menu?: string;
15
+ version?: number;
16
+ [index: string]: any;
17
+ };
18
+ schedule?: Schedule;
19
+ [index: string]: any;
20
+ }
21
+
22
+ export interface Schedule {
23
+ // Start timestamp in milliseconds (Unix epoch).
24
+ start?: number;
25
+ // End timestamp in milliseconds (Unix epoch). If omitted, the schedule continues indefinitely.
26
+ end?: number;
27
+ // Array of time strings specifying the start time of the event each day it occurs.
28
+ times?: string[];
29
+ // Duration of the event, combined with times to calculate the end time.
30
+ duration?: number;
31
+ // Duration unit for the schedule.
32
+ durationUnit?: 'minutes' | 'hours' | 'days' | 'weeks';
33
+ // Array of specific years when schedule applies (full year values, e.g., 2024).
34
+ year?: number[];
35
+ // Array of specific months when schedule applies (0-indexed, 0 = January, 11 = December).
36
+ month?: number[];
37
+ // Array of days of the week when this schedule is active.
38
+ dayOfWeek?: number[];
39
+ // Array of specific weeks of the month when schedule applies.
40
+ weekOfMonth?: number[];
41
+ // Array of specific weeks of the year when schedule applies (ISO week numbers).
42
+ weekOfYear?: number[];
43
+ // Array of week spans within the month (0-indexed week blocks).
44
+ weekspanOfMonth?: number[];
45
+ // Array of week spans within the year (0-indexed week blocks).
46
+ weekspanOfYear?: number[];
47
+ // Array of specific days of the year when schedule applies.
48
+ dayOfYear?: number[];
49
+ // Array of specific days of month when schedule applies.
50
+ dayOfMonth?: number[];
51
+ [index: string]: any;
52
+ }
53
+
54
+ export interface CalendarEventUpdatedEvent {
55
+ id: string;
56
+ type: 'CalendarEventUpdatedEvent';
57
+ version: '0.0.1';
58
+ timestamp: string;
59
+ traceContext: {
60
+ // W3C traceparent, injected by MessageBus from the active trace context
61
+ traceparent?: string;
62
+ };
63
+ source: string;
64
+ // Owning domain, optionally dotted for subdomains. Names the Kafka topic; absent keeps the superseded naming.
65
+ domain?: string;
66
+ // Whether other domains may integrate against this message. Absent means private.
67
+ visibility?: 'public' | 'private';
68
+ payload: {
69
+ // CDL-encoded location group (site) id of the station
70
+ site_id: string;
71
+ // CDL-encoded location brand (station) id. The calendar id is the same id
72
+ station_id: string;
73
+ // Calendar revision after the write. Matches `revision` returned by GET /calendar/{id} and the external-edge calendar endpoint
74
+ revision: number;
75
+ // Calendar event id (`data.id` of the event)
76
+ event_id: string;
77
+ // Calendar timezone, e.g. America/Toronto. Schedule times are interpreted in it
78
+ timezone?: string;
79
+ event: Event;
80
+ };
81
+ }
@@ -4,6 +4,12 @@ export { AuditEvent } from './AuditEvent';
4
4
 
5
5
  export { AvrideOrderStatusUpdatedEvent } from './AvrideOrderStatusUpdatedEvent';
6
6
 
7
+ export { CalendarEventCreatedEvent } from './CalendarEventCreatedEvent';
8
+
9
+ export { CalendarEventDeletedEvent } from './CalendarEventDeletedEvent';
10
+
11
+ export { CalendarEventUpdatedEvent } from './CalendarEventUpdatedEvent';
12
+
7
13
  export { CampaignStatusChangedEvent } from './CampaignStatusChangedEvent';
8
14
 
9
15
  export { DeliveryDropOffLeaveWarningEvent } from './DeliveryDropOffLeaveWarningEvent';