@compassdigital/sdk.typescript 4.221.0 → 4.222.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.
- package/lib/messages/events/LocationCreatedEvent.d.ts +88 -0
- package/lib/messages/events/LocationCreatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationCreatedEvent.js +4 -0
- package/lib/messages/events/LocationCreatedEvent.js.map +1 -0
- package/lib/messages/events/index.d.ts +1 -0
- package/lib/messages/events/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/messages/events/LocationCreatedEvent.ts +121 -0
- package/src/messages/events/index.ts +2 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export interface LocationAddress {
|
|
2
|
+
address?: string;
|
|
3
|
+
city?: string;
|
|
4
|
+
state?: string;
|
|
5
|
+
zip?: string;
|
|
6
|
+
country?: string;
|
|
7
|
+
coordinates?: {
|
|
8
|
+
latitude: number;
|
|
9
|
+
longitude: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface LocationIs {
|
|
13
|
+
scanAndGoSupported?: boolean;
|
|
14
|
+
frictionlessSupported?: boolean;
|
|
15
|
+
pickupSupported?: boolean;
|
|
16
|
+
deliverySupported?: boolean;
|
|
17
|
+
specialInstructionsEnabled?: boolean;
|
|
18
|
+
cafe360?: boolean;
|
|
19
|
+
hidden?: boolean;
|
|
20
|
+
webOrderEnabled?: boolean;
|
|
21
|
+
itemLabelEditEnabled?: boolean;
|
|
22
|
+
localImagesEnabled?: boolean;
|
|
23
|
+
pluEnabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface LocationTimeslots {
|
|
26
|
+
averagePrepTime?: string;
|
|
27
|
+
customersPerSlot?: number;
|
|
28
|
+
time?: string;
|
|
29
|
+
deliveryPrepTime?: string;
|
|
30
|
+
deliveryIsUserDefined?: boolean;
|
|
31
|
+
deliveryTime?: string;
|
|
32
|
+
deliveryDestinations?: string[];
|
|
33
|
+
deliveryUserDefined?: string[];
|
|
34
|
+
deliveryCustomersPerSlot?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface LocationCreatedEvent {
|
|
37
|
+
id: string;
|
|
38
|
+
type: 'LocationCreatedEvent';
|
|
39
|
+
version: '0.0.1';
|
|
40
|
+
timestamp: string;
|
|
41
|
+
traceContext: {
|
|
42
|
+
traceId?: string;
|
|
43
|
+
};
|
|
44
|
+
payload: {
|
|
45
|
+
location: {
|
|
46
|
+
id: string;
|
|
47
|
+
createdBy: string;
|
|
48
|
+
updatedBy?: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
51
|
+
name: string;
|
|
52
|
+
type: string;
|
|
53
|
+
multiGroup?: string;
|
|
54
|
+
group?: string;
|
|
55
|
+
location?: string;
|
|
56
|
+
sector?: string;
|
|
57
|
+
company?: string;
|
|
58
|
+
externalId?: string;
|
|
59
|
+
address?: LocationAddress;
|
|
60
|
+
label?: Record<string, any>;
|
|
61
|
+
style?: Record<string, any>;
|
|
62
|
+
meta?: Record<string, any>;
|
|
63
|
+
deviceMapping?: Record<string, any>;
|
|
64
|
+
is?: LocationIs;
|
|
65
|
+
timeslots?: LocationTimeslots;
|
|
66
|
+
menus?: Record<string, any>[];
|
|
67
|
+
hours?: Record<string, any>[];
|
|
68
|
+
deliveryHours?: Record<string, any>[];
|
|
69
|
+
descriptions?: Record<string, any>;
|
|
70
|
+
paymentProvider?: string;
|
|
71
|
+
latitude?: number;
|
|
72
|
+
longitude?: number;
|
|
73
|
+
timezone?: string;
|
|
74
|
+
geohash?: string;
|
|
75
|
+
operationId?: number;
|
|
76
|
+
locationDescription?: string;
|
|
77
|
+
pos?: string;
|
|
78
|
+
terminals?: Record<string, any>[];
|
|
79
|
+
marketPlace?: Record<string, any>;
|
|
80
|
+
foodlocker?: boolean;
|
|
81
|
+
archived?: boolean;
|
|
82
|
+
sortSequence?: number;
|
|
83
|
+
information?: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
source: string;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=LocationCreatedEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/LocationCreatedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KAClB,CAAC;CACF;AAED,MAAM,WAAW,UAAU;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,E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,CAAC;YAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YAC9B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YAEtC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAEnC,eAAe,CAAC,EAAE,MAAM,CAAC;YAEzB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,mBAAmB,CAAC,EAAE,MAAM,CAAC;YAE7B,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YAElC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAElC,UAAU,CAAC,EAAE,OAAO,CAAC;YAErB,QAAQ,CAAC,EAAE,OAAO,CAAC;YAEnB,YAAY,CAAC,EAAE,MAAM,CAAC;YAEtB,WAAW,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;KACF,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationCreatedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/LocationCreatedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
|
|
@@ -2,6 +2,7 @@ export { DiscountCreatedEvent } from './DiscountCreatedEvent';
|
|
|
2
2
|
export { DiscountDeletedEvent } from './DiscountDeletedEvent';
|
|
3
3
|
export { DiscountUpdatedEvent } from './DiscountUpdatedEvent';
|
|
4
4
|
export { FakeEvent } from './FakeEvent';
|
|
5
|
+
export { LocationCreatedEvent } from './LocationCreatedEvent';
|
|
5
6
|
export { LocationUpdatedEvent } from './LocationUpdatedEvent';
|
|
6
7
|
export { OrderCompletedEvent } from './OrderCompletedEvent';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface LocationAddress {
|
|
4
|
+
address?: string;
|
|
5
|
+
city?: string;
|
|
6
|
+
state?: string;
|
|
7
|
+
zip?: string;
|
|
8
|
+
country?: string;
|
|
9
|
+
coordinates?: {
|
|
10
|
+
latitude: number;
|
|
11
|
+
longitude: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface LocationIs {
|
|
16
|
+
scanAndGoSupported?: boolean;
|
|
17
|
+
frictionlessSupported?: boolean;
|
|
18
|
+
pickupSupported?: boolean;
|
|
19
|
+
deliverySupported?: boolean;
|
|
20
|
+
specialInstructionsEnabled?: boolean;
|
|
21
|
+
cafe360?: boolean;
|
|
22
|
+
hidden?: boolean;
|
|
23
|
+
webOrderEnabled?: boolean;
|
|
24
|
+
itemLabelEditEnabled?: boolean;
|
|
25
|
+
localImagesEnabled?: boolean;
|
|
26
|
+
pluEnabled?: boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface LocationTimeslots {
|
|
30
|
+
averagePrepTime?: string;
|
|
31
|
+
customersPerSlot?: number;
|
|
32
|
+
time?: string;
|
|
33
|
+
deliveryPrepTime?: string;
|
|
34
|
+
deliveryIsUserDefined?: boolean;
|
|
35
|
+
deliveryTime?: string;
|
|
36
|
+
deliveryDestinations?: string[];
|
|
37
|
+
deliveryUserDefined?: string[];
|
|
38
|
+
deliveryCustomersPerSlot?: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface LocationCreatedEvent {
|
|
42
|
+
id: string;
|
|
43
|
+
type: 'LocationCreatedEvent';
|
|
44
|
+
version: '0.0.1';
|
|
45
|
+
timestamp: string;
|
|
46
|
+
traceContext: {
|
|
47
|
+
traceId?: string;
|
|
48
|
+
};
|
|
49
|
+
payload: {
|
|
50
|
+
location: {
|
|
51
|
+
// location id
|
|
52
|
+
id: string;
|
|
53
|
+
// user id of location creator
|
|
54
|
+
createdBy: string;
|
|
55
|
+
// user id of most recent update
|
|
56
|
+
updatedBy?: string;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
// Name of the location
|
|
60
|
+
name: string;
|
|
61
|
+
// Type of entity (e.g., brand, location, group, etc.)
|
|
62
|
+
type: string;
|
|
63
|
+
// Multi-group association
|
|
64
|
+
multiGroup?: string;
|
|
65
|
+
// Group association
|
|
66
|
+
group?: string;
|
|
67
|
+
// Location identifier
|
|
68
|
+
location?: string;
|
|
69
|
+
// Sector identifier
|
|
70
|
+
sector?: string;
|
|
71
|
+
// Company identifier
|
|
72
|
+
company?: string;
|
|
73
|
+
// External identifier for cross-system references
|
|
74
|
+
externalId?: string;
|
|
75
|
+
address?: LocationAddress;
|
|
76
|
+
// Labeling metadata
|
|
77
|
+
label?: Record<string, any>;
|
|
78
|
+
// Styling metadata
|
|
79
|
+
style?: Record<string, any>;
|
|
80
|
+
// Additional metadata
|
|
81
|
+
meta?: Record<string, any>;
|
|
82
|
+
// Device mapping information
|
|
83
|
+
deviceMapping?: Record<string, any>;
|
|
84
|
+
is?: LocationIs;
|
|
85
|
+
timeslots?: LocationTimeslots;
|
|
86
|
+
menus?: Record<string, any>[];
|
|
87
|
+
hours?: Record<string, any>[];
|
|
88
|
+
deliveryHours?: Record<string, any>[];
|
|
89
|
+
// Description data for the entity
|
|
90
|
+
descriptions?: Record<string, any>;
|
|
91
|
+
// Payment provider associated with the entity
|
|
92
|
+
paymentProvider?: string;
|
|
93
|
+
// Latitude coordinate
|
|
94
|
+
latitude?: number;
|
|
95
|
+
// Longitude coordinate
|
|
96
|
+
longitude?: number;
|
|
97
|
+
// Timezone for the entity
|
|
98
|
+
timezone?: string;
|
|
99
|
+
// Geohash of the entity's location
|
|
100
|
+
geohash?: string;
|
|
101
|
+
// Associated operation ID
|
|
102
|
+
operationId?: number;
|
|
103
|
+
// Description of the location
|
|
104
|
+
locationDescription?: string;
|
|
105
|
+
// Point-of-sale system identifier
|
|
106
|
+
pos?: string;
|
|
107
|
+
terminals?: Record<string, any>[];
|
|
108
|
+
// Marketplace information
|
|
109
|
+
marketPlace?: Record<string, any>;
|
|
110
|
+
// Indicates if the location has a food locker
|
|
111
|
+
foodlocker?: boolean;
|
|
112
|
+
// Indicates if the entity is archived
|
|
113
|
+
archived?: boolean;
|
|
114
|
+
// Sorting order for listings
|
|
115
|
+
sortSequence?: number;
|
|
116
|
+
// Additional information
|
|
117
|
+
information?: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
source: string;
|
|
121
|
+
}
|
|
@@ -8,6 +8,8 @@ export { DiscountUpdatedEvent } from './DiscountUpdatedEvent';
|
|
|
8
8
|
|
|
9
9
|
export { FakeEvent } from './FakeEvent';
|
|
10
10
|
|
|
11
|
+
export { LocationCreatedEvent } from './LocationCreatedEvent';
|
|
12
|
+
|
|
11
13
|
export { LocationUpdatedEvent } from './LocationUpdatedEvent';
|
|
12
14
|
|
|
13
15
|
export { OrderCompletedEvent } from './OrderCompletedEvent';
|