@uidu/client 3.19.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/src/index.ts CHANGED
@@ -208,7 +208,17 @@ export type { WorkspaceSkill } from './skills';
208
208
  export { listWorkSites } from './work-sites';
209
209
  export type { WorkSite } from './work-sites';
210
210
 
211
- export { listContracts, getContract } from './contracts';
211
+ export {
212
+ listContracts,
213
+ getContract,
214
+ createContract,
215
+ updateContract,
216
+ activateContract,
217
+ discardContract,
218
+ createContractItem,
219
+ updateContractItem,
220
+ deleteContractItem,
221
+ } from './contracts';
212
222
  export type { Contract, ContractDetail } from './contracts';
213
223
 
214
224
  export {
@@ -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
+ }
@@ -10,12 +10,29 @@ fragment ContractSummary on Contract {
10
10
  startsOn
11
11
  endsOn
12
12
  noticePeriodDays
13
+ body
13
14
  createdAt
14
15
  updatedAt
15
16
  analyticAccount {
16
17
  id
17
18
  name
18
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
+ }
19
36
  }
20
37
  counterpart {
21
38
  __typename
@@ -13,6 +13,10 @@ query ListAnalyticAccounts($first: Int, $after: String, $parentId: ID) {
13
13
  name
14
14
  status
15
15
  currency
16
+ effectiveResponsibleCircle {
17
+ id
18
+ name
19
+ }
16
20
  }
17
21
  }
18
22
  }