@compassdigital/sdk.typescript 4.536.0 → 4.538.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/index.d.ts +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/kds.d.ts +14 -0
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/messages/events/UserEmailVerificationRequestedEvent.d.ts +28 -0
- package/lib/messages/events/UserEmailVerificationRequestedEvent.d.ts.map +1 -0
- package/lib/messages/events/UserEmailVerificationRequestedEvent.js +4 -0
- package/lib/messages/events/UserEmailVerificationRequestedEvent.js.map +1 -0
- package/lib/messages/events/UserPasswordChangedEvent.d.ts +28 -0
- package/lib/messages/events/UserPasswordChangedEvent.d.ts.map +1 -0
- package/lib/messages/events/UserPasswordChangedEvent.js +4 -0
- package/lib/messages/events/UserPasswordChangedEvent.js.map +1 -0
- package/lib/messages/events/UserPasswordResetRequestedEvent.d.ts +28 -0
- package/lib/messages/events/UserPasswordResetRequestedEvent.d.ts.map +1 -0
- package/lib/messages/events/UserPasswordResetRequestedEvent.js +4 -0
- package/lib/messages/events/UserPasswordResetRequestedEvent.js.map +1 -0
- package/lib/messages/events/index.d.ts +3 -0
- package/lib/messages/events/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -0
- package/src/interface/kds.ts +24 -0
- package/src/messages/events/UserEmailVerificationRequestedEvent.ts +30 -0
- package/src/messages/events/UserPasswordChangedEvent.ts +30 -0
- package/src/messages/events/UserPasswordResetRequestedEvent.ts +30 -0
- package/src/messages/events/index.ts +6 -0
package/lib/interface/kds.d.ts
CHANGED
|
@@ -45,6 +45,14 @@ export interface DeviceInfo {
|
|
|
45
45
|
brands?: string[];
|
|
46
46
|
[index: string]: any;
|
|
47
47
|
}
|
|
48
|
+
export interface DeviceLocations {
|
|
49
|
+
unit_id: string;
|
|
50
|
+
location_name: string;
|
|
51
|
+
location_group: string;
|
|
52
|
+
}
|
|
53
|
+
export interface DeviceLocationsResponse {
|
|
54
|
+
locations: DeviceLocations[];
|
|
55
|
+
}
|
|
48
56
|
export interface GetKdsDevicesQuery {
|
|
49
57
|
unitNumber: string;
|
|
50
58
|
nocache?: boolean;
|
|
@@ -52,6 +60,12 @@ export interface GetKdsDevicesQuery {
|
|
|
52
60
|
export type GetKdsDevicesResponse = Units;
|
|
53
61
|
export interface GetKdsDevicesRequest extends BaseRequest, RequestQuery<GetKdsDevicesQuery> {
|
|
54
62
|
}
|
|
63
|
+
export interface GetKdsDeviceLocationsQuery {
|
|
64
|
+
serial_number: string;
|
|
65
|
+
}
|
|
66
|
+
export type GetKdsDeviceLocationsResponse = DeviceLocationsResponse;
|
|
67
|
+
export interface GetKdsDeviceLocationsRequest extends BaseRequest, RequestQuery<GetKdsDeviceLocationsQuery> {
|
|
68
|
+
}
|
|
55
69
|
export type PostKdsDeviceAuthBody = AuthPostBody;
|
|
56
70
|
export type PostKdsDeviceAuthResponse = AuthPostBodyResponse;
|
|
57
71
|
export interface PostKdsDeviceAuthRequest extends BaseRequest {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kds.d.ts","sourceRoot":"","sources":["../../src/interface/kds.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,OAAO;IACvB,OAAO,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,KAAK;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,MAAM;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACr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string;
|
|
5
|
+
Subject?: string;
|
|
6
|
+
TemplateId: string;
|
|
7
|
+
Tag?: string;
|
|
8
|
+
TemplateModel: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
export interface UserEmailVerificationRequestedEvent {
|
|
11
|
+
id: string;
|
|
12
|
+
type: 'UserEmailVerificationRequestedEvent';
|
|
13
|
+
version: '0.0.1';
|
|
14
|
+
timestamp: string;
|
|
15
|
+
traceContext: {
|
|
16
|
+
traceId?: string;
|
|
17
|
+
};
|
|
18
|
+
payload: {
|
|
19
|
+
email: TemplatedEmail;
|
|
20
|
+
context: {
|
|
21
|
+
userId: string;
|
|
22
|
+
realm: string;
|
|
23
|
+
lang: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
source: 'user-service';
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=UserEmailVerificationRequestedEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserEmailVerificationRequestedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/UserEmailVerificationRequestedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,mCAAmC;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,qCAAqC,CAAC;IAC5C,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,cAAc,CAAC;QACtB,OAAO,EAAE;YACR,MAAM,EAAE,MAAM,CAAC;YACf,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;SACb,CAAC;KACF,CAAC;IACF,MAAM,EAAE,cAAc,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserEmailVerificationRequestedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/UserEmailVerificationRequestedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface TemplatedEmail {
|
|
2
|
+
To: string;
|
|
3
|
+
From: string;
|
|
4
|
+
ReplyTo?: string;
|
|
5
|
+
Subject?: string;
|
|
6
|
+
TemplateId: string;
|
|
7
|
+
Tag?: string;
|
|
8
|
+
TemplateModel: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
export interface UserPasswordChangedEvent {
|
|
11
|
+
id: string;
|
|
12
|
+
type: 'UserPasswordChangedEvent';
|
|
13
|
+
version: '0.0.1';
|
|
14
|
+
timestamp: string;
|
|
15
|
+
traceContext: {
|
|
16
|
+
traceId?: string;
|
|
17
|
+
};
|
|
18
|
+
payload: {
|
|
19
|
+
email: TemplatedEmail;
|
|
20
|
+
context: {
|
|
21
|
+
userId: string;
|
|
22
|
+
realm: string;
|
|
23
|
+
lang: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
source: 'user-service';
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=UserPasswordChangedEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserPasswordChangedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/UserPasswordChangedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,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;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,KAAK,EAAE,cAAc,CAAC;QACtB,OAAO,EAAE;YACR,MAAM,EAAE,MAAM,CAAC;YACf,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;SACb,CAAC;KACF,CAAC;IACF,MAAM,EAAE,cAAc,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserPasswordChangedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/UserPasswordChangedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface TemplatedEmail {
|
|
2
|
+
To: string;
|
|
3
|
+
From: string;
|
|
4
|
+
ReplyTo?: string;
|
|
5
|
+
Subject?: string;
|
|
6
|
+
TemplateId: string;
|
|
7
|
+
Tag?: string;
|
|
8
|
+
TemplateModel: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
export interface UserPasswordResetRequestedEvent {
|
|
11
|
+
id: string;
|
|
12
|
+
type: 'UserPasswordResetRequestedEvent';
|
|
13
|
+
version: '0.0.1';
|
|
14
|
+
timestamp: string;
|
|
15
|
+
traceContext: {
|
|
16
|
+
traceId?: string;
|
|
17
|
+
};
|
|
18
|
+
payload: {
|
|
19
|
+
email: TemplatedEmail;
|
|
20
|
+
context: {
|
|
21
|
+
userId: string;
|
|
22
|
+
realm: string;
|
|
23
|
+
lang: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
source: 'user-service';
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=UserPasswordResetRequestedEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserPasswordResetRequestedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/UserPasswordResetRequestedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,+BAA+B;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,iCAAiC,CAAC;IACxC,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,cAAc,CAAC;QACtB,OAAO,EAAE;YACR,MAAM,EAAE,MAAM,CAAC;YACf,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;SACb,CAAC;KACF,CAAC;IACF,MAAM,EAAE,cAAc,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserPasswordResetRequestedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/UserPasswordResetRequestedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
|
|
@@ -37,5 +37,8 @@ export { TaskCreatedEvent } from './TaskCreatedEvent';
|
|
|
37
37
|
export { TaskDeletedEvent } from './TaskDeletedEvent';
|
|
38
38
|
export { TaskUpdatedEvent } from './TaskUpdatedEvent';
|
|
39
39
|
export { UserCreatedEvent } from './UserCreatedEvent';
|
|
40
|
+
export { UserEmailVerificationRequestedEvent } from './UserEmailVerificationRequestedEvent';
|
|
41
|
+
export { UserPasswordChangedEvent } from './UserPasswordChangedEvent';
|
|
42
|
+
export { UserPasswordResetRequestedEvent } from './UserPasswordResetRequestedEvent';
|
|
40
43
|
export { UserUpdatedEvent } from './UserUpdatedEvent';
|
|
41
44
|
//# 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,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,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AAEpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -250,6 +250,8 @@ import {
|
|
|
250
250
|
import {
|
|
251
251
|
GetKdsDevicesQuery,
|
|
252
252
|
GetKdsDevicesResponse,
|
|
253
|
+
GetKdsDeviceLocationsQuery,
|
|
254
|
+
GetKdsDeviceLocationsResponse,
|
|
253
255
|
PostKdsDeviceAuthBody,
|
|
254
256
|
PostKdsDeviceAuthResponse,
|
|
255
257
|
DeleteKdsDeviceAuthResponse,
|
|
@@ -3812,6 +3814,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3812
3814
|
return this.request('kds', '/kds/devices', 'GET', `/kds/devices`, null, options);
|
|
3813
3815
|
}
|
|
3814
3816
|
|
|
3817
|
+
/**
|
|
3818
|
+
* GET /kds/device/locations - List unit ids and location names for a serial number
|
|
3819
|
+
*
|
|
3820
|
+
* @param options - additional request options
|
|
3821
|
+
*/
|
|
3822
|
+
get_kds_device_locations(
|
|
3823
|
+
options: {
|
|
3824
|
+
query: GetKdsDeviceLocationsQuery;
|
|
3825
|
+
} & RequestOptions,
|
|
3826
|
+
): ResponsePromise<GetKdsDeviceLocationsResponse> {
|
|
3827
|
+
return this.request(
|
|
3828
|
+
'kds',
|
|
3829
|
+
'/kds/device/locations',
|
|
3830
|
+
'GET',
|
|
3831
|
+
`/kds/device/locations`,
|
|
3832
|
+
null,
|
|
3833
|
+
options,
|
|
3834
|
+
);
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3815
3837
|
/**
|
|
3816
3838
|
* POST /kds/device/auth - Get auth token for a device
|
|
3817
3839
|
*
|
package/src/interface/kds.ts
CHANGED
|
@@ -58,6 +58,17 @@ export interface DeviceInfo {
|
|
|
58
58
|
[index: string]: any;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export interface DeviceLocations {
|
|
62
|
+
unit_id: string;
|
|
63
|
+
location_name: string;
|
|
64
|
+
// CDL location group id
|
|
65
|
+
location_group: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface DeviceLocationsResponse {
|
|
69
|
+
locations: DeviceLocations[];
|
|
70
|
+
}
|
|
71
|
+
|
|
61
72
|
// GET /kds/devices - Get kds devices for a specified unit number
|
|
62
73
|
|
|
63
74
|
export interface GetKdsDevicesQuery {
|
|
@@ -71,6 +82,19 @@ export type GetKdsDevicesResponse = Units;
|
|
|
71
82
|
|
|
72
83
|
export interface GetKdsDevicesRequest extends BaseRequest, RequestQuery<GetKdsDevicesQuery> {}
|
|
73
84
|
|
|
85
|
+
// GET /kds/device/locations - List unit ids and location names for a serial number
|
|
86
|
+
|
|
87
|
+
export interface GetKdsDeviceLocationsQuery {
|
|
88
|
+
// KDS device serial number
|
|
89
|
+
serial_number: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type GetKdsDeviceLocationsResponse = DeviceLocationsResponse;
|
|
93
|
+
|
|
94
|
+
export interface GetKdsDeviceLocationsRequest
|
|
95
|
+
extends BaseRequest,
|
|
96
|
+
RequestQuery<GetKdsDeviceLocationsQuery> {}
|
|
97
|
+
|
|
74
98
|
// POST /kds/device/auth - Get auth token for a device
|
|
75
99
|
|
|
76
100
|
export type PostKdsDeviceAuthBody = AuthPostBody;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface TemplatedEmail {
|
|
4
|
+
To: string;
|
|
5
|
+
From: string;
|
|
6
|
+
ReplyTo?: string;
|
|
7
|
+
Subject?: string;
|
|
8
|
+
TemplateId: string;
|
|
9
|
+
Tag?: string;
|
|
10
|
+
TemplateModel: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface UserEmailVerificationRequestedEvent {
|
|
14
|
+
id: string;
|
|
15
|
+
type: 'UserEmailVerificationRequestedEvent';
|
|
16
|
+
version: '0.0.1';
|
|
17
|
+
timestamp: string;
|
|
18
|
+
traceContext: {
|
|
19
|
+
traceId?: string;
|
|
20
|
+
};
|
|
21
|
+
payload: {
|
|
22
|
+
email: TemplatedEmail;
|
|
23
|
+
context: {
|
|
24
|
+
userId: string;
|
|
25
|
+
realm: string;
|
|
26
|
+
lang: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
source: 'user-service';
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface TemplatedEmail {
|
|
4
|
+
To: string;
|
|
5
|
+
From: string;
|
|
6
|
+
ReplyTo?: string;
|
|
7
|
+
Subject?: string;
|
|
8
|
+
TemplateId: string;
|
|
9
|
+
Tag?: string;
|
|
10
|
+
TemplateModel: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface UserPasswordChangedEvent {
|
|
14
|
+
id: string;
|
|
15
|
+
type: 'UserPasswordChangedEvent';
|
|
16
|
+
version: '0.0.1';
|
|
17
|
+
timestamp: string;
|
|
18
|
+
traceContext: {
|
|
19
|
+
traceId?: string;
|
|
20
|
+
};
|
|
21
|
+
payload: {
|
|
22
|
+
email: TemplatedEmail;
|
|
23
|
+
context: {
|
|
24
|
+
userId: string;
|
|
25
|
+
realm: string;
|
|
26
|
+
lang: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
source: 'user-service';
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface TemplatedEmail {
|
|
4
|
+
To: string;
|
|
5
|
+
From: string;
|
|
6
|
+
ReplyTo?: string;
|
|
7
|
+
Subject?: string;
|
|
8
|
+
TemplateId: string;
|
|
9
|
+
Tag?: string;
|
|
10
|
+
TemplateModel: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface UserPasswordResetRequestedEvent {
|
|
14
|
+
id: string;
|
|
15
|
+
type: 'UserPasswordResetRequestedEvent';
|
|
16
|
+
version: '0.0.1';
|
|
17
|
+
timestamp: string;
|
|
18
|
+
traceContext: {
|
|
19
|
+
traceId?: string;
|
|
20
|
+
};
|
|
21
|
+
payload: {
|
|
22
|
+
email: TemplatedEmail;
|
|
23
|
+
context: {
|
|
24
|
+
userId: string;
|
|
25
|
+
realm: string;
|
|
26
|
+
lang: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
source: 'user-service';
|
|
30
|
+
}
|
|
@@ -78,4 +78,10 @@ export { TaskUpdatedEvent } from './TaskUpdatedEvent';
|
|
|
78
78
|
|
|
79
79
|
export { UserCreatedEvent } from './UserCreatedEvent';
|
|
80
80
|
|
|
81
|
+
export { UserEmailVerificationRequestedEvent } from './UserEmailVerificationRequestedEvent';
|
|
82
|
+
|
|
83
|
+
export { UserPasswordChangedEvent } from './UserPasswordChangedEvent';
|
|
84
|
+
|
|
85
|
+
export { UserPasswordResetRequestedEvent } from './UserPasswordResetRequestedEvent';
|
|
86
|
+
|
|
81
87
|
export { UserUpdatedEvent } from './UserUpdatedEvent';
|