@compassdigital/sdk.typescript 4.230.0 → 4.231.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/LocationGroupUpdatedEvent.d.ts +50 -0
- package/lib/messages/events/LocationGroupUpdatedEvent.d.ts.map +1 -0
- package/lib/messages/events/LocationGroupUpdatedEvent.js +4 -0
- package/lib/messages/events/LocationGroupUpdatedEvent.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/LocationGroupUpdatedEvent.ts +67 -0
- package/src/messages/events/index.ts +2 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface LocationGroupUpdatedEvent {
|
|
2
|
+
id: string;
|
|
3
|
+
type: 'LocationGroupUpdatedEvent';
|
|
4
|
+
version: '1.0.0';
|
|
5
|
+
timestamp: string;
|
|
6
|
+
traceContext: {
|
|
7
|
+
traceId?: string;
|
|
8
|
+
};
|
|
9
|
+
payload: {
|
|
10
|
+
group: {
|
|
11
|
+
id: string;
|
|
12
|
+
deletedAt?: string;
|
|
13
|
+
name: string;
|
|
14
|
+
label?: {
|
|
15
|
+
en?: string;
|
|
16
|
+
fr?: string;
|
|
17
|
+
};
|
|
18
|
+
distance?: number;
|
|
19
|
+
locations?: Record<string, any>[];
|
|
20
|
+
address?: {
|
|
21
|
+
suite?: string;
|
|
22
|
+
address?: string;
|
|
23
|
+
city?: string;
|
|
24
|
+
state?: string;
|
|
25
|
+
country?: string;
|
|
26
|
+
zip?: string;
|
|
27
|
+
coordinates?: {
|
|
28
|
+
latitude?: number;
|
|
29
|
+
longitude?: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
meta?: Record<string, any>;
|
|
33
|
+
style?: {
|
|
34
|
+
logo?: string;
|
|
35
|
+
mainLogo?: string;
|
|
36
|
+
altLogo?: string;
|
|
37
|
+
appThemeId?: string;
|
|
38
|
+
};
|
|
39
|
+
timezone?: string;
|
|
40
|
+
deviceMapping?: Record<string, any>;
|
|
41
|
+
date?: {
|
|
42
|
+
deleted?: string;
|
|
43
|
+
created?: string;
|
|
44
|
+
modified?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
source: string;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=LocationGroupUpdatedEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationGroupUpdatedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/LocationGroupUpdatedEvent.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;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,KAAK,EAAE;YAEN,EAAE,EAAE,MAAM,CAAC;YAEX,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,CAAC,EAAE;gBACP,EAAE,CAAC,EAAE,MAAM,CAAC;gBACZ,EAAE,CAAC,EAAE,MAAM,CAAC;aACZ,CAAC;YAEF,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YAClC,OAAO,CAAC,EAAE;gBAET,KAAK,CAAC,EAAE,MAAM,CAAC;gBAEf,OAAO,CAAC,EAAE,MAAM,CAAC;gBAEjB,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEd,KAAK,CAAC,EAAE,MAAM,CAAC;gBAEf,OAAO,CAAC,EAAE,MAAM,CAAC;gBAEjB,GAAG,CAAC,EAAE,MAAM,CAAC;gBACb,WAAW,CAAC,EAAE;oBAEb,QAAQ,CAAC,EAAE,MAAM,CAAC;oBAElB,SAAS,CAAC,EAAE,MAAM,CAAC;iBACnB,CAAC;aACF,CAAC;YAEF,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC3B,KAAK,CAAC,EAAE;gBACP,IAAI,CAAC,EAAE,MAAM,CAAC;gBACd,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,UAAU,CAAC,EAAE,MAAM,CAAC;aACpB,CAAC;YAEF,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACpC,IAAI,CAAC,EAAE;gBACN,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;aAClB,CAAC;SACF,CAAC;KACF,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationGroupUpdatedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/LocationGroupUpdatedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
|
|
@@ -6,6 +6,7 @@ export { LocationBrandCreatedEvent } from './LocationBrandCreatedEvent';
|
|
|
6
6
|
export { LocationBrandUpdatedEvent } from './LocationBrandUpdatedEvent';
|
|
7
7
|
export { LocationCreatedEvent } from './LocationCreatedEvent';
|
|
8
8
|
export { LocationGroupCreatedEvent } from './LocationGroupCreatedEvent';
|
|
9
|
+
export { LocationGroupUpdatedEvent } from './LocationGroupUpdatedEvent';
|
|
9
10
|
export { LocationUpdatedEvent } from './LocationUpdatedEvent';
|
|
10
11
|
export { OrderCompletedEvent } from './OrderCompletedEvent';
|
|
11
12
|
export { OrderCreatedEvent } from './OrderCreatedEvent';
|
|
@@ -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,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,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,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface LocationGroupUpdatedEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'LocationGroupUpdatedEvent';
|
|
6
|
+
version: '1.0.0';
|
|
7
|
+
timestamp: string;
|
|
8
|
+
traceContext: {
|
|
9
|
+
traceId?: string;
|
|
10
|
+
};
|
|
11
|
+
payload: {
|
|
12
|
+
group: {
|
|
13
|
+
// group id
|
|
14
|
+
id: string;
|
|
15
|
+
// ISO timestamp when the group was soft deleted
|
|
16
|
+
deletedAt?: string;
|
|
17
|
+
// Name of the group
|
|
18
|
+
name: string;
|
|
19
|
+
label?: {
|
|
20
|
+
en?: string;
|
|
21
|
+
fr?: string;
|
|
22
|
+
};
|
|
23
|
+
// Distance in meters from the group
|
|
24
|
+
distance?: number;
|
|
25
|
+
// Array of Location objects
|
|
26
|
+
locations?: Record<string, any>[];
|
|
27
|
+
address?: {
|
|
28
|
+
// Suite number of the address, if applicable
|
|
29
|
+
suite?: string;
|
|
30
|
+
// First line of the address, should include street number
|
|
31
|
+
address?: string;
|
|
32
|
+
// City of the address
|
|
33
|
+
city?: string;
|
|
34
|
+
// State of the address, also province in Canada
|
|
35
|
+
state?: string;
|
|
36
|
+
// Country of the address
|
|
37
|
+
country?: string;
|
|
38
|
+
// Zip code or postal code of the address
|
|
39
|
+
zip?: string;
|
|
40
|
+
coordinates?: {
|
|
41
|
+
// latitude of the address
|
|
42
|
+
latitude?: number;
|
|
43
|
+
// longitude of the address
|
|
44
|
+
longitude?: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
// Additional metadata
|
|
48
|
+
meta?: Record<string, any>;
|
|
49
|
+
style?: {
|
|
50
|
+
logo?: string;
|
|
51
|
+
mainLogo?: string;
|
|
52
|
+
altLogo?: string;
|
|
53
|
+
appThemeId?: string;
|
|
54
|
+
};
|
|
55
|
+
// Timezone of the group
|
|
56
|
+
timezone?: string;
|
|
57
|
+
// Device mapping configuration
|
|
58
|
+
deviceMapping?: Record<string, any>;
|
|
59
|
+
date?: {
|
|
60
|
+
deleted?: string;
|
|
61
|
+
created?: string;
|
|
62
|
+
modified?: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
source: string;
|
|
67
|
+
}
|
|
@@ -16,6 +16,8 @@ export { LocationCreatedEvent } from './LocationCreatedEvent';
|
|
|
16
16
|
|
|
17
17
|
export { LocationGroupCreatedEvent } from './LocationGroupCreatedEvent';
|
|
18
18
|
|
|
19
|
+
export { LocationGroupUpdatedEvent } from './LocationGroupUpdatedEvent';
|
|
20
|
+
|
|
19
21
|
export { LocationUpdatedEvent } from './LocationUpdatedEvent';
|
|
20
22
|
|
|
21
23
|
export { OrderCompletedEvent } from './OrderCompletedEvent';
|