@@ -20,7 +20,7 @@ type Query {
20
20
}
21
21
22
22
type Company @doc (description : " Company entity output data schema." ) {
23
- id : ID ! @doc (description : " Company id." )
23
+ uid : ID ! @doc (description : " Company id." )
24
24
name : String @doc (description : " Company name." )
25
25
email : String @doc (description : " Company email address." )
26
26
legal_name : String @doc (description : " Company legal name." )
@@ -35,18 +35,18 @@ type Company @doc(description: "Company entity output data schema.") {
35
35
pageSize : Int = 20 @doc (description : " Specifies the maximum number of results to return at once. Defaults to 20." ),
36
36
currentPage : Int = 1 @doc (description : " Specifies which page of results to return. The default value is 1." ),
37
37
): CompanyUsers @doc (description : "Information about the company users." )
38
- user (id : ID ! ): Customer @doc (description : " Returns company user by id." )
38
+ user (uid : ID ! ): Customer @doc (description : " Returns company user by id." )
39
39
roles (
40
40
pageSize : Int = 20 @doc (description : " Specifies the maximum number of results to return at once. Optional. Defaults to 20." ),
41
41
currentPage : Int = 1 @doc (description : " Specifies which page of results to return. The default value is 1." ),
42
42
): CompanyRoles! @doc (description : "Returns the list of defined roles at Company." )
43
- role (id : ID ! ): CompanyRole @doc (description : " Returns company role by id." )
43
+ role (uid : ID ! ): CompanyRole @doc (description : " Returns company role by id." )
44
44
acl_resources : [CompanyAclResource ] @doc (description : " Returns the list of all permission resources." )
45
45
structure (
46
46
root_id : ID = 0 @doc (description : " Tree depth to begin query" )
47
47
depth : Int = 10 @doc (description : " Specifies how deeply results are fetched" )
48
48
): CompanyStructure @doc (description : " Company structure of teams and customers in depth-first order" )
49
- team (id : ID ! ): CompanyTeam @doc (description : " Returns company team data by id." )
49
+ team (uid : ID ! ): CompanyTeam @doc (description : " Returns company team data by id." )
50
50
}
51
51
52
52
type CompanyLegalAddress @doc (description : " Company legal address output data schema." ) {
@@ -59,7 +59,7 @@ type CompanyLegalAddress @doc(description: "Company legal address output data sc
59
59
}
60
60
61
61
type CompanyAdmin @doc (description : " Company Administrator (Customer with corresponding privileges) output data schema." ) {
62
- id : ID ! @doc (description : " Company Administrator's id." )
62
+ uid : ID ! @doc (description : " Company Administrator's id." )
63
63
email : String @doc (description : " Company Administrator email address." )
64
64
firstname : String @doc (description : " Company Administrator first name." )
65
65
lastname : String @doc (description : " Company Administrator last name." )
@@ -86,14 +86,14 @@ type CompanyRoles @doc(description: "Output data schema for an object returned b
86
86
}
87
87
88
88
type CompanyRole @doc (description : " Company role output data schema returned in response to a query by Role id." ) {
89
- id : ID ! @doc (description : " Role id." )
89
+ uid : ID ! @doc (description : " Role id." )
90
90
name : String @doc (description : " Role name." )
91
91
users_count : Int @doc (description : " Total number of Users with such Role within Company Structure." )
92
92
permissions : [CompanyAclResource ] @doc (description : " A list of permission resources defined for a Role." )
93
93
}
94
94
95
95
type CompanyAclResource @doc (description : " Output data schema for an object with Role permission resource information." ) {
96
- id : ID ! @doc (description : " ACL resource id." )
96
+ uid : ID ! @doc (description : " ACL resource id." )
97
97
text : String @doc (description : " ACL resource label." )
98
98
sortOrder : Int @doc (description : " ACL resource sort order." )
99
99
children : [CompanyAclResource ! ] @doc (description : " An array of sub-resources." )
@@ -118,7 +118,7 @@ type CompanyEmailCheckResponse @doc(description: "Response object schema for a C
118
118
union CompanyStructureEntity = CompanyTeam | Customer
119
119
120
120
type CompanyStructureItem @doc (description : " Company Team and Customer structure" ) {
121
- id : ID ! @doc (description : " ID of the item in the hierarchy" )
121
+ uid : ID ! @doc (description : " ID of the item in the hierarchy" )
122
122
parent_id : ID @doc (description : " ID of the parent item in the hierarchy" )
123
123
entity : CompanyStructureEntity
124
124
}
@@ -128,7 +128,7 @@ type CompanyStructure {
128
128
}
129
129
130
130
type CompanyTeam @doc (description : " Company Team entity output data schema." ) {
131
- id : ID ! @doc (description : " Team id." )
131
+ uid : ID ! @doc (description : " Team id." )
132
132
name : String @doc (description : " Team name." )
133
133
description : String @doc (description : " Team description." )
134
134
}
@@ -151,14 +151,14 @@ type Mutation {
151
151
updateCompany (input : CompanyUpdateInput ! ): UpdateCompanyOutput @doc (description :"Update Company information." )
152
152
createCompanyUser (input : CompanyUserCreateInput ! ): CreateCompanyUserOutput @doc (description :"Create new Company User (Customer assigned to Company)." )
153
153
updateCompanyUser (input : CompanyUserUpdateInput ! ): UpdateCompanyUserOutput @doc (description :"Update Company User information." )
154
- deleteCompanyUser (id : ID ! ): DeleteCompanyUserOutput @doc (description :"Delete Company User by ID." )
154
+ deleteCompanyUser (uid : ID ! ): DeleteCompanyUserOutput @doc (description :"Delete Company User by ID." )
155
155
createCompanyRole (input : CompanyRoleCreateInput ! ): CreateCompanyRoleOutput @doc (description :"Create new Company role." )
156
156
updateCompanyRole (input : CompanyRoleUpdateInput ! ): UpdateCompanyRoleOutput @doc (description :"Update Company role data." )
157
- deleteCompanyRole (id : ID ! ): DeleteCompanyRoleOutput @doc (description :"Delete Company Role by ID." )
157
+ deleteCompanyRole (uid : ID ! ): DeleteCompanyRoleOutput @doc (description :"Delete Company Role by ID." )
158
158
updateCompanyStructure (input : CompanyStructureUpdateInput ! ): UpdateCompanyStructureOutput @doc (description :"Update Company Structure element's parent node assignment." )
159
159
createCompanyTeam (input : CompanyTeamCreateInput ! ): CreateCompanyTeamOutput @doc (description :"Create Company Team." )
160
160
updateCompanyTeam (input : CompanyTeamUpdateInput ! ): UpdateCompanyTeamOutput @doc (description :"Update Company Team data." )
161
- deleteCompanyTeam (id : ID ! ): DeleteCompanyTeamOutput @doc (description :"Delete Company Team entity by ID." )
161
+ deleteCompanyTeam (uid : ID ! ): DeleteCompanyTeamOutput @doc (description :"Delete Company Team entity by ID." )
162
162
}
163
163
164
164
type CreateCompanyTeamOutput @doc (description : " Create company team output data schema." ) {
@@ -267,7 +267,7 @@ input CompanyUserCreateInput @doc(description: "Defines the input data schema fo
267
267
}
268
268
269
269
input CompanyUserUpdateInput @doc (description : " Defines the input data schema for updating an existing Customer - Company user." ) {
270
- id : ID ! @doc (description : " Company user's ID (Customer ID). Required." )
270
+ uid : ID ! @doc (description : " Company user's ID (Customer ID). Required." )
271
271
role_id : ID @doc (description : " Company user's role ID." )
272
272
status : Int @doc (description : " Company user's status ID." )
273
273
job_title : String @doc (description : " Company user's job title." )
@@ -283,7 +283,7 @@ input CompanyRoleCreateInput @doc(description: "Defines the input data schema fo
283
283
}
284
284
285
285
input CompanyRoleUpdateInput @doc (description : " Defines the input data schema for updating an existing Company role." ) {
286
- id : ID ! @doc (description : " Role ID. Required." )
286
+ uid : ID ! @doc (description : " Role ID. Required." )
287
287
name : String @doc (description : " Role name." )
288
288
permissions : [String ! ] @doc (description : " A list of Role permission resources. Array value for a field, if provided, should consist only of string values." )
289
289
}
@@ -300,7 +300,7 @@ input CompanyTeamCreateInput @doc(description: "Defines the input data schema fo
300
300
}
301
301
302
302
input CompanyTeamUpdateInput @doc (description : " Defines the input data schema for updating an existing Company team." ) {
303
- id : ID ! @doc (description : " Team ID. Required." )
303
+ uid : ID ! @doc (description : " Team ID. Required." )
304
304
name : String @doc (description : " Team name." )
305
305
description : String @doc (description : " Team description." )
306
306
}
0 commit comments