File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import EnvoyPluginStoragePipelineMock from './mocks/EnvoyPluginStoragePipelineMo
1515import EntryPayload from './payloads/EntryPayload' ;
1616import InvitePayload from './payloads/InvitePayload' ;
1717import EmployeePayload from './payloads/EmployeePayload' ;
18+ import { ConnectEmployeePayload } from './payloads/ConnectEmployee' ;
1819
1920import EnvoyMeta from './sdk/EnvoyMeta' ;
2021import EnvoyPluginJob from './sdk/EnvoyPluginJob' ;
@@ -65,6 +66,7 @@ export {
6566 EntryPayload ,
6667 InvitePayload ,
6768 EmployeePayload ,
69+ ConnectEmployeePayload ,
6870 EnvoyJWT ,
6971 EnvoyMeta ,
7072 EnvoyPluginJob ,
Original file line number Diff line number Diff line change 1+ export type ConnectEmployeePayload = {
2+ data : ConnectEmployeeData ,
3+ included : ConnectIncluded ,
4+ } ;
5+
6+ type ConnectEmployeeData = {
7+ 'id' : string ,
8+ 'type' : 'connect-employees' ,
9+ 'attributes' : ConnectEmployeeDataAttributes ,
10+ 'relationships' : ConnectEmployeeDataRelationships ,
11+ } ;
12+
13+ type ConnectEmployeeDataAttributes = {
14+ 'name' : string ,
15+ 'profile-picture-url' : string | null ,
16+ } ;
17+
18+ type ConnectEmployeeDataRelationships = {
19+ 'properties' : ConnectEmployeeDataRelationshipsPropertiesData ,
20+ 'tenants' : ConnectEmployeeDataRelationshipsPropertiesData
21+ } ;
22+
23+ type ConnectEmployeeDataRelationshipsPropertiesData = {
24+ 'data' : [ { 'type' : string , 'id' : string } ]
25+ } ;
26+
27+ type ConnectIncluded = {
28+ 'included' : [
29+ {
30+ 'id' : string ,
31+ 'type' : 'zones' ,
32+ 'attributes' : {
33+ 'address' : string ,
34+ 'name' : string ,
35+ 'visitor-photos-enabled' : boolean ,
36+ 'employee-rebadging-enabled' : boolean
37+ }
38+ } ,
39+ {
40+ 'id' : string ,
41+ 'type' : 'tenants' ,
42+ 'attributes' : { 'name' : string }
43+ } ,
44+ ] ,
45+ 'meta' : {
46+ 'limit' : number ,
47+ 'offset' : number
48+ }
49+ } ;
You can’t perform that action at this time.
0 commit comments