@uidu/client 3.13.1 → 3.14.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 +6 -0
- package/dist/declarations/src/applications.d.ts +3 -2
- package/dist/declarations/src/donations.d.ts +15 -1
- package/dist/declarations/src/generated/index.d.ts +2602 -224
- package/dist/declarations/src/index.d.ts +3 -3
- package/dist/declarations/src/mutations.d.ts +4 -1
- package/dist/uidu-client.cjs.dev.js +21 -4
- package/dist/uidu-client.cjs.prod.js +21 -4
- package/dist/uidu-client.esm.js +20 -5
- package/package.json +2 -2
- package/src/applications.ts +3 -2
- package/src/donations.test.ts +57 -0
- package/src/donations.ts +28 -0
- package/src/generated/index.ts +2287 -280
- package/src/index.ts +3 -1
- package/src/mutations.ts +4 -1
- package/src/queries/donations/GetDonationCampaign.graphql +19 -0
- package/src/queries/donations/ListDonationCampaigns.graphql +5 -0
- package/src/queries/donations/ListDonations.graphql +29 -0
package/src/index.ts
CHANGED
|
@@ -21,6 +21,7 @@ export {
|
|
|
21
21
|
ListCoursesDocument,
|
|
22
22
|
ListDealsDocument,
|
|
23
23
|
ListDonationCampaignsDocument,
|
|
24
|
+
ListDonationsDocument,
|
|
24
25
|
ListEmployeesDocument,
|
|
25
26
|
ListEnrollmentsDocument,
|
|
26
27
|
ListEventsDocument,
|
|
@@ -149,10 +150,11 @@ export type { Application } from './applications';
|
|
|
149
150
|
export {
|
|
150
151
|
getDonationCampaign,
|
|
151
152
|
listDonationCampaigns,
|
|
153
|
+
listDonations,
|
|
152
154
|
createDonation,
|
|
153
155
|
createDonationCampaign,
|
|
154
156
|
} from './donations';
|
|
155
|
-
export type { DonationCampaign } from './donations';
|
|
157
|
+
export type { Donation, DonationCampaign } from './donations';
|
|
156
158
|
|
|
157
159
|
export { getStory, listStories, createStory } from './stories';
|
|
158
160
|
export type { Story } from './stories';
|
package/src/mutations.ts
CHANGED
|
@@ -205,7 +205,10 @@ export async function deleteEmployment(c: UiduClient, v: DeleteEmploymentMutatio
|
|
|
205
205
|
/**
|
|
206
206
|
* Terminate (cessazione) an employment by closing it with an end date and
|
|
207
207
|
* reason. Thin semantic wrapper over {@link updateEmployment}.
|
|
208
|
-
* `endReason` is one of: resignation, termination, contract_end, retirement,
|
|
208
|
+
* `endReason` is one of: resignation, termination, contract_end, retirement,
|
|
209
|
+
* other, resignation_just_cause, dismissal_just_cause,
|
|
210
|
+
* dismissal_subjective_reason, dismissal_objective_reason, collective_dismissal,
|
|
211
|
+
* mutual_agreement, probation_failed, death, business_closure.
|
|
209
212
|
*/
|
|
210
213
|
export async function terminateEmployment(
|
|
211
214
|
c: UiduClient,
|
|
@@ -3,6 +3,9 @@ query GetDonationCampaign($id: ID!) {
|
|
|
3
3
|
donationCampaign(id: $id) {
|
|
4
4
|
id
|
|
5
5
|
name
|
|
6
|
+
abstract
|
|
7
|
+
category
|
|
8
|
+
donationCampaignTagList
|
|
6
9
|
body
|
|
7
10
|
cover
|
|
8
11
|
coverData
|
|
@@ -12,6 +15,8 @@ query GetDonationCampaign($id: ID!) {
|
|
|
12
15
|
donationsCount
|
|
13
16
|
donationsAverage
|
|
14
17
|
startsAt
|
|
18
|
+
finishesAt
|
|
19
|
+
daysToExpiration
|
|
15
20
|
publishedAt
|
|
16
21
|
publicUrl
|
|
17
22
|
publicPath
|
|
@@ -20,6 +25,20 @@ query GetDonationCampaign($id: ID!) {
|
|
|
20
25
|
formattedAddress
|
|
21
26
|
city
|
|
22
27
|
}
|
|
28
|
+
impact
|
|
29
|
+
owner {
|
|
30
|
+
__typename
|
|
31
|
+
... on Workspace {
|
|
32
|
+
id
|
|
33
|
+
name
|
|
34
|
+
logo
|
|
35
|
+
}
|
|
36
|
+
... on Contact {
|
|
37
|
+
id
|
|
38
|
+
name
|
|
39
|
+
avatar
|
|
40
|
+
}
|
|
41
|
+
}
|
|
23
42
|
form {
|
|
24
43
|
...FormFields
|
|
25
44
|
}
|
|
@@ -9,12 +9,17 @@ query ListDonationCampaigns($first: Int, $after: String) {
|
|
|
9
9
|
node {
|
|
10
10
|
id
|
|
11
11
|
name
|
|
12
|
+
abstract
|
|
13
|
+
category
|
|
12
14
|
cover
|
|
13
15
|
coverData
|
|
14
16
|
goal
|
|
15
17
|
donationsAmount
|
|
16
18
|
donationsCount
|
|
19
|
+
donationsAverage
|
|
17
20
|
startsAt
|
|
21
|
+
finishesAt
|
|
22
|
+
daysToExpiration
|
|
18
23
|
publishedAt
|
|
19
24
|
publicPath
|
|
20
25
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
query ListDonations($campaignId: ID!, $first: Int, $after: String) {
|
|
2
|
+
currentWorkspace {
|
|
3
|
+
donationCampaign(id: $campaignId) {
|
|
4
|
+
donations(first: $first, after: $after) {
|
|
5
|
+
pageInfo {
|
|
6
|
+
hasNextPage
|
|
7
|
+
endCursor
|
|
8
|
+
}
|
|
9
|
+
edges {
|
|
10
|
+
node {
|
|
11
|
+
id
|
|
12
|
+
amount
|
|
13
|
+
currency
|
|
14
|
+
status
|
|
15
|
+
createdAt
|
|
16
|
+
body
|
|
17
|
+
dedication
|
|
18
|
+
preferences
|
|
19
|
+
contact {
|
|
20
|
+
id
|
|
21
|
+
name
|
|
22
|
+
avatar
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|