@uidu/client 3.18.0 → 3.20.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/CHANGELOG.md +26 -0
- package/dist/declarations/src/calls.d.ts +9 -1
- package/dist/declarations/src/candidates.d.ts +102 -0
- package/dist/declarations/src/contracts.d.ts +503 -0
- package/dist/declarations/src/expenses.d.ts +5 -0
- package/dist/declarations/src/field-values.d.ts +34 -0
- package/dist/declarations/src/generated/index.d.ts +12104 -4367
- package/dist/declarations/src/index.d.ts +17 -3
- package/dist/declarations/src/meetings.d.ts +41 -0
- package/dist/declarations/src/mutations.d.ts +80 -131
- package/dist/declarations/src/reviews.d.ts +195 -0
- package/dist/declarations/src/skills.d.ts +34 -0
- package/dist/declarations/src/work-sites.d.ts +9 -0
- package/dist/uidu-client.cjs.dev.js +469 -31
- package/dist/uidu-client.cjs.prod.js +469 -31
- package/dist/uidu-client.esm.js +433 -32
- package/package.json +1 -1
- package/src/calls.ts +37 -0
- package/src/candidates.ts +105 -0
- package/src/contracts.test.ts +97 -0
- package/src/contracts.ts +139 -0
- package/src/field-values.ts +95 -0
- package/src/generated/index.ts +841 -343
- package/src/index.ts +63 -2
- package/src/meetings.ts +37 -0
- package/src/mutations.test.ts +40 -1
- package/src/mutations.ts +122 -60
- package/src/queries/calls/ListCallStatuses.graphql +26 -0
- package/src/queries/candidates/CandidateFields.graphql +28 -0
- package/src/queries/candidates/CandidateMutations.graphql +35 -0
- package/src/queries/candidates/CandidateQueries.graphql +94 -0
- package/src/queries/contacts/ContactMutations.graphql +0 -13
- package/src/queries/contracts/ContractMutations.graphql +108 -0
- package/src/queries/contracts/ContractQueries.graphql +84 -0
- package/src/queries/courses/CourseMutations.graphql +0 -13
- package/src/queries/discardable/DiscardableMutations.graphql +32 -0
- package/src/queries/expenses/ListAnalyticAccounts.graphql +4 -0
- package/src/queries/field-values/FieldValueFields.graphql +18 -0
- package/src/queries/field-values/FieldValueQueries.graphql +43 -0
- package/src/queries/forms/FormMutations.graphql +0 -13
- package/src/queries/help-center/ChannelMutations.graphql +0 -13
- package/src/queries/kb/KbMutations.graphql +0 -26
- package/src/queries/meetings/MeetingQueries.graphql +48 -0
- package/src/queries/notes/NoteMutations.graphql +0 -13
- package/src/queries/people/PeopleMutations.graphql +0 -13
- package/src/queries/reviews/ReviewFields.graphql +35 -0
- package/src/queries/reviews/ReviewMutations.graphql +32 -0
- package/src/queries/reviews/ReviewQueries.graphql +86 -0
- package/src/queries/skills/SkillQueries.graphql +53 -0
- package/src/queries/spaces/SpaceMutations.graphql +0 -13
- package/src/queries/tasks/TaskMutations.graphql +0 -13
- package/src/queries/work-sites/ListWorkSites.graphql +32 -0
- package/src/recruiting.test.ts +196 -0
- package/src/reviews.ts +114 -0
- package/src/skills.ts +47 -0
- package/src/work-sites.ts +28 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
fragment ContractItemFields on ContractItem {
|
|
2
|
+
id
|
|
3
|
+
description
|
|
4
|
+
quantity
|
|
5
|
+
unitAmount
|
|
6
|
+
startsAt
|
|
7
|
+
endsAt
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
mutation CreateContract($input: CreateContractInput!) {
|
|
11
|
+
createContract(input: $input) {
|
|
12
|
+
contract {
|
|
13
|
+
node {
|
|
14
|
+
...ContractSummary
|
|
15
|
+
fieldValuesByShortname
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
errors {
|
|
19
|
+
key
|
|
20
|
+
name
|
|
21
|
+
type
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
mutation UpdateContract($input: UpdateContractInput!) {
|
|
27
|
+
updateContract(input: $input) {
|
|
28
|
+
contract {
|
|
29
|
+
...ContractSummary
|
|
30
|
+
fieldValuesByShortname
|
|
31
|
+
}
|
|
32
|
+
errors {
|
|
33
|
+
key
|
|
34
|
+
name
|
|
35
|
+
type
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
mutation ActivateContract($input: ActivateContractInput!) {
|
|
41
|
+
activateContract(input: $input) {
|
|
42
|
+
contract {
|
|
43
|
+
id
|
|
44
|
+
aasmState
|
|
45
|
+
}
|
|
46
|
+
errors {
|
|
47
|
+
key
|
|
48
|
+
name
|
|
49
|
+
type
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
mutation DiscardContract($input: DiscardInput!) {
|
|
55
|
+
discardableDiscard(input: $input) {
|
|
56
|
+
discardable {
|
|
57
|
+
... on Contract {
|
|
58
|
+
id
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
errors {
|
|
62
|
+
key
|
|
63
|
+
name
|
|
64
|
+
type
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
mutation CreateContractItem($input: CreateContractItemInput!) {
|
|
70
|
+
createContractItem(input: $input) {
|
|
71
|
+
contractItem {
|
|
72
|
+
node {
|
|
73
|
+
...ContractItemFields
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
errors {
|
|
77
|
+
key
|
|
78
|
+
name
|
|
79
|
+
type
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
mutation UpdateContractItem($input: UpdateContractItemInput!) {
|
|
85
|
+
updateContractItem(input: $input) {
|
|
86
|
+
contractItem {
|
|
87
|
+
...ContractItemFields
|
|
88
|
+
}
|
|
89
|
+
errors {
|
|
90
|
+
key
|
|
91
|
+
name
|
|
92
|
+
type
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
mutation DeleteContractItem($input: DeleteContractItemInput!) {
|
|
98
|
+
deleteContractItem(input: $input) {
|
|
99
|
+
contractItem {
|
|
100
|
+
id
|
|
101
|
+
}
|
|
102
|
+
errors {
|
|
103
|
+
key
|
|
104
|
+
name
|
|
105
|
+
type
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
fragment ContractSummary on Contract {
|
|
2
|
+
id
|
|
3
|
+
name
|
|
4
|
+
reference
|
|
5
|
+
aasmState
|
|
6
|
+
direction
|
|
7
|
+
renewal
|
|
8
|
+
currency
|
|
9
|
+
recurringAmount
|
|
10
|
+
startsOn
|
|
11
|
+
endsOn
|
|
12
|
+
noticePeriodDays
|
|
13
|
+
body
|
|
14
|
+
createdAt
|
|
15
|
+
updatedAt
|
|
16
|
+
analyticAccount {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
code
|
|
20
|
+
effectiveResponsibleCircle {
|
|
21
|
+
id
|
|
22
|
+
name
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
contractItems {
|
|
26
|
+
edges {
|
|
27
|
+
node {
|
|
28
|
+
id
|
|
29
|
+
description
|
|
30
|
+
quantity
|
|
31
|
+
unitAmount
|
|
32
|
+
startsAt
|
|
33
|
+
endsAt
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
counterpart {
|
|
38
|
+
__typename
|
|
39
|
+
... on Contact {
|
|
40
|
+
id
|
|
41
|
+
name
|
|
42
|
+
}
|
|
43
|
+
... on Organization {
|
|
44
|
+
id
|
|
45
|
+
name
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
query ListContracts($first: Int, $after: String, $params: SearchParams) {
|
|
51
|
+
currentWorkspace {
|
|
52
|
+
contracts(first: $first, after: $after, params: $params) {
|
|
53
|
+
pageInfo {
|
|
54
|
+
hasNextPage
|
|
55
|
+
endCursor
|
|
56
|
+
}
|
|
57
|
+
edges {
|
|
58
|
+
node {
|
|
59
|
+
...ContractSummary
|
|
60
|
+
fieldValuesByShortname
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
query GetContract($id: ID!) {
|
|
68
|
+
currentWorkspace {
|
|
69
|
+
contract(id: $id) {
|
|
70
|
+
...ContractSummary
|
|
71
|
+
body
|
|
72
|
+
fieldValuesByShortname
|
|
73
|
+
fieldValues {
|
|
74
|
+
...RecordFieldValue
|
|
75
|
+
}
|
|
76
|
+
applicableFields {
|
|
77
|
+
id
|
|
78
|
+
name
|
|
79
|
+
shortname
|
|
80
|
+
kind
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# The polymorphic trash of uidu's discardable records (the per-entity deleteX
|
|
2
|
+
# mutations are gone from the schema). `discardableDiscard` moves a record to
|
|
3
|
+
# the 30-day trash, `discardableDelete` destroys it for good.
|
|
4
|
+
mutation DiscardRecord($input: DiscardInput!) {
|
|
5
|
+
discardableDiscard(input: $input) {
|
|
6
|
+
discardable {
|
|
7
|
+
... on Node {
|
|
8
|
+
id
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
errors {
|
|
12
|
+
key
|
|
13
|
+
name
|
|
14
|
+
type
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
mutation DeleteRecord($input: DeleteInput!) {
|
|
20
|
+
discardableDelete(input: $input) {
|
|
21
|
+
discardable {
|
|
22
|
+
... on Node {
|
|
23
|
+
id
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
errors {
|
|
27
|
+
key
|
|
28
|
+
name
|
|
29
|
+
type
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# One field value as the recruiting app reads it: the value, the field it
|
|
2
|
+
# belongs to, and its two dates. `validFrom` is the day the value starts to
|
|
3
|
+
# hold; `createdAt` is when the row was written (a row without `validFrom`
|
|
4
|
+
# counts from the day of its `createdAt`).
|
|
5
|
+
fragment RecordFieldValue on FieldValue {
|
|
6
|
+
id
|
|
7
|
+
content
|
|
8
|
+
value
|
|
9
|
+
valueAsString
|
|
10
|
+
validFrom
|
|
11
|
+
createdAt
|
|
12
|
+
field {
|
|
13
|
+
id
|
|
14
|
+
name
|
|
15
|
+
shortname
|
|
16
|
+
kind
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# The current field values of any record that carries them (contact,
|
|
2
|
+
# employee, contract, work site, application…), read through `node(id:)`.
|
|
3
|
+
query GetRecordFieldValues($id: ID!) {
|
|
4
|
+
node(id: $id) {
|
|
5
|
+
__typename
|
|
6
|
+
id
|
|
7
|
+
... on WithFieldValues {
|
|
8
|
+
fieldValuesByShortname
|
|
9
|
+
fieldValues {
|
|
10
|
+
...RecordFieldValue
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
# Every value a field has held on one record, oldest first — the history a
|
|
17
|
+
# report reads "what did it say on 30/06/2024?" from.
|
|
18
|
+
query ListFieldValueHistory(
|
|
19
|
+
$fieldId: ID!
|
|
20
|
+
$modelId: ID!
|
|
21
|
+
$first: Int
|
|
22
|
+
$after: String
|
|
23
|
+
) {
|
|
24
|
+
currentWorkspace {
|
|
25
|
+
field(id: $fieldId) {
|
|
26
|
+
id
|
|
27
|
+
name
|
|
28
|
+
shortname
|
|
29
|
+
kind
|
|
30
|
+
fieldValues(modelId: $modelId, first: $first, after: $after) {
|
|
31
|
+
pageInfo {
|
|
32
|
+
hasNextPage
|
|
33
|
+
endCursor
|
|
34
|
+
}
|
|
35
|
+
edges {
|
|
36
|
+
node {
|
|
37
|
+
...RecordFieldValue
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -26,19 +26,6 @@ mutation UpdateKbCollection($input: UpdateKbCollectionInput!) {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
mutation DeleteKbCollection($input: DeleteKbCollectionInput!) {
|
|
30
|
-
deleteKbCollection(input: $input) {
|
|
31
|
-
kbCollection {
|
|
32
|
-
id
|
|
33
|
-
}
|
|
34
|
-
errors {
|
|
35
|
-
key
|
|
36
|
-
name
|
|
37
|
-
type
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
29
|
mutation CreateKbArticle($input: CreateKbArticleInput!) {
|
|
43
30
|
createKbArticle(input: $input) {
|
|
44
31
|
kbArticle {
|
|
@@ -66,16 +53,3 @@ mutation UpdateKbArticle($input: UpdateKbArticleInput!) {
|
|
|
66
53
|
}
|
|
67
54
|
}
|
|
68
55
|
}
|
|
69
|
-
|
|
70
|
-
mutation DeleteKbArticle($input: DeleteKbArticleInput!) {
|
|
71
|
-
deleteKbArticle(input: $input) {
|
|
72
|
-
kbArticle {
|
|
73
|
-
id
|
|
74
|
-
}
|
|
75
|
-
errors {
|
|
76
|
-
key
|
|
77
|
-
name
|
|
78
|
-
type
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
fragment MeetingSummary on Meeting {
|
|
2
|
+
id
|
|
3
|
+
name
|
|
4
|
+
status
|
|
5
|
+
source
|
|
6
|
+
startsAt
|
|
7
|
+
endsAt
|
|
8
|
+
timeZone
|
|
9
|
+
durationInSeconds
|
|
10
|
+
recordingUrl
|
|
11
|
+
transcriptUrl
|
|
12
|
+
createdAt
|
|
13
|
+
createdByUser {
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
query ListMeetings($first: Int, $after: String, $params: SearchParams) {
|
|
20
|
+
currentWorkspace {
|
|
21
|
+
meetings(first: $first, after: $after, params: $params) {
|
|
22
|
+
pageInfo {
|
|
23
|
+
hasNextPage
|
|
24
|
+
endCursor
|
|
25
|
+
}
|
|
26
|
+
edges {
|
|
27
|
+
node {
|
|
28
|
+
...MeetingSummary
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
mutation CreateMeeting($input: CreateMeetingInput!) {
|
|
36
|
+
createMeeting(input: $input) {
|
|
37
|
+
meeting {
|
|
38
|
+
node {
|
|
39
|
+
...MeetingSummary
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
errors {
|
|
43
|
+
key
|
|
44
|
+
name
|
|
45
|
+
type
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -79,16 +79,3 @@ mutation UpdateEmployment($input: UpdateEmploymentInput!) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
mutation DeleteEmployment($input: DeleteEmploymentInput!) {
|
|
84
|
-
deleteEmployment(input: $input) {
|
|
85
|
-
employment {
|
|
86
|
-
id
|
|
87
|
-
}
|
|
88
|
-
errors {
|
|
89
|
-
key
|
|
90
|
-
name
|
|
91
|
-
type
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
fragment ReviewSummary on Review {
|
|
2
|
+
id
|
|
3
|
+
name
|
|
4
|
+
aasmState
|
|
5
|
+
completed
|
|
6
|
+
completedAt
|
|
7
|
+
dispatchedAt
|
|
8
|
+
dueOn
|
|
9
|
+
createdAt
|
|
10
|
+
updatedAt
|
|
11
|
+
user {
|
|
12
|
+
id
|
|
13
|
+
name
|
|
14
|
+
email
|
|
15
|
+
}
|
|
16
|
+
role {
|
|
17
|
+
id
|
|
18
|
+
name
|
|
19
|
+
}
|
|
20
|
+
reviewTemplate {
|
|
21
|
+
id
|
|
22
|
+
name
|
|
23
|
+
kind
|
|
24
|
+
}
|
|
25
|
+
reviewCycle {
|
|
26
|
+
id
|
|
27
|
+
name
|
|
28
|
+
}
|
|
29
|
+
parent {
|
|
30
|
+
id
|
|
31
|
+
}
|
|
32
|
+
formResponse {
|
|
33
|
+
id
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# `createReviews` takes a list of attributes; a review without a cycle passes
|
|
2
|
+
# `reviewTemplateId` (and optionally `dueOn`) instead of `reviewCycleId`.
|
|
3
|
+
mutation CreateReviews($input: CreateReviewsInput!) {
|
|
4
|
+
createReviews(input: $input) {
|
|
5
|
+
reviews {
|
|
6
|
+
node {
|
|
7
|
+
...ReviewSummary
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
reviewCycle {
|
|
11
|
+
id
|
|
12
|
+
}
|
|
13
|
+
errors {
|
|
14
|
+
key
|
|
15
|
+
name
|
|
16
|
+
type
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
mutation UpdateReview($input: UpdateReviewInput!) {
|
|
22
|
+
updateReview(input: $input) {
|
|
23
|
+
review {
|
|
24
|
+
...ReviewSummary
|
|
25
|
+
}
|
|
26
|
+
errors {
|
|
27
|
+
key
|
|
28
|
+
name
|
|
29
|
+
type
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# The workspace has no `reviews` connection of its own: reviews hang off the
|
|
2
|
+
# person reviewed (Employee or User) or the cycle they belong to. `ownerId`
|
|
3
|
+
# is the GlobalID of any of the three.
|
|
4
|
+
query ListReviews($ownerId: ID!, $first: Int, $after: String) {
|
|
5
|
+
node(id: $ownerId) {
|
|
6
|
+
__typename
|
|
7
|
+
... on Employee {
|
|
8
|
+
employeeReviews: reviews(first: $first, after: $after) {
|
|
9
|
+
pageInfo {
|
|
10
|
+
hasNextPage
|
|
11
|
+
endCursor
|
|
12
|
+
}
|
|
13
|
+
edges {
|
|
14
|
+
node {
|
|
15
|
+
...ReviewSummary
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
... on User {
|
|
21
|
+
userReviews: reviews(first: $first, after: $after) {
|
|
22
|
+
pageInfo {
|
|
23
|
+
hasNextPage
|
|
24
|
+
endCursor
|
|
25
|
+
}
|
|
26
|
+
edges {
|
|
27
|
+
node {
|
|
28
|
+
...ReviewSummary
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
... on ReviewCycle {
|
|
34
|
+
cycleReviews: reviews(first: $first, after: $after) {
|
|
35
|
+
pageInfo {
|
|
36
|
+
hasNextPage
|
|
37
|
+
endCursor
|
|
38
|
+
}
|
|
39
|
+
edges {
|
|
40
|
+
node {
|
|
41
|
+
...ReviewSummary
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
query GetReview($id: ID!) {
|
|
50
|
+
currentWorkspace {
|
|
51
|
+
review(id: $id) {
|
|
52
|
+
...ReviewSummary
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
query ListReviewTemplates(
|
|
58
|
+
$first: Int
|
|
59
|
+
$after: String
|
|
60
|
+
$scopes: [String!]
|
|
61
|
+
$orderBy: String
|
|
62
|
+
) {
|
|
63
|
+
currentWorkspace {
|
|
64
|
+
reviewTemplates(
|
|
65
|
+
first: $first
|
|
66
|
+
after: $after
|
|
67
|
+
scopes: $scopes
|
|
68
|
+
orderBy: $orderBy
|
|
69
|
+
) {
|
|
70
|
+
pageInfo {
|
|
71
|
+
hasNextPage
|
|
72
|
+
endCursor
|
|
73
|
+
}
|
|
74
|
+
edges {
|
|
75
|
+
node {
|
|
76
|
+
id
|
|
77
|
+
name
|
|
78
|
+
kind
|
|
79
|
+
description
|
|
80
|
+
preferences
|
|
81
|
+
createdAt
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Workspace skills are the catalog (e.g. "Forklift licence", "Italian B2");
|
|
2
|
+
# a `Skill` is one of them held by a person (`skillable`), with a score.
|
|
3
|
+
query ListSkills(
|
|
4
|
+
$first: Int
|
|
5
|
+
$after: String
|
|
6
|
+
$scopes: [String!]
|
|
7
|
+
$orderBy: String
|
|
8
|
+
) {
|
|
9
|
+
currentWorkspace {
|
|
10
|
+
workspaceSkills(
|
|
11
|
+
first: $first
|
|
12
|
+
after: $after
|
|
13
|
+
scopes: $scopes
|
|
14
|
+
orderBy: $orderBy
|
|
15
|
+
) {
|
|
16
|
+
pageInfo {
|
|
17
|
+
hasNextPage
|
|
18
|
+
endCursor
|
|
19
|
+
}
|
|
20
|
+
edges {
|
|
21
|
+
node {
|
|
22
|
+
id
|
|
23
|
+
name
|
|
24
|
+
icon
|
|
25
|
+
description
|
|
26
|
+
scores
|
|
27
|
+
createdAt
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
mutation CreateSkill($input: CreateSkillInput!) {
|
|
35
|
+
createSkill(input: $input) {
|
|
36
|
+
skill {
|
|
37
|
+
node {
|
|
38
|
+
id
|
|
39
|
+
score
|
|
40
|
+
body
|
|
41
|
+
workspaceSkill {
|
|
42
|
+
id
|
|
43
|
+
name
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
errors {
|
|
48
|
+
key
|
|
49
|
+
name
|
|
50
|
+
type
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|