@uidu/client 3.13.1 → 3.16.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 +34 -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 +2794 -224
- package/dist/declarations/src/index.d.ts +4 -4
- package/dist/declarations/src/mutations.d.ts +179 -2
- package/dist/uidu-client.cjs.dev.js +71 -4
- package/dist/uidu-client.cjs.prod.js +71 -4
- package/dist/uidu-client.esm.js +65 -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 +2335 -280
- package/src/index.ts +8 -1
- package/src/mutations.ts +76 -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/queries/help-center/ChannelKbCollectionMutations.graphql +41 -0
- package/src/queries/people/EmployeeCertificationMutations.graphql +25 -0
- package/src/queries/people/EmploymentTermMutations.graphql +67 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @uidu/client
|
|
2
2
|
|
|
3
|
+
## 3.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4518526: Add `createChannelKbCollection` / `updateChannelKbCollection` to `@uidu/client`
|
|
8
|
+
— publishes a knowledge-base collection on a help-center channel
|
|
9
|
+
(`channelId`, `kbCollectionId`, `position`), distinct from the collection's
|
|
10
|
+
content itself (the `kb` domain). Adds a `channel-kb-collections` resource
|
|
11
|
+
(`create`, `update`) to `@uidu/cli`. Demoed on the Help Center admin page in
|
|
12
|
+
`apps/demo`.
|
|
13
|
+
|
|
14
|
+
## 3.15.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- f046e6b: Add `createEmployeeCertification` to `@uidu/client` — issues a certification
|
|
19
|
+
to an employee (`employeeId`, `certificationId`, optional `issuedAt` and
|
|
20
|
+
generated certificate `documentId`/`blobId`). Adds an
|
|
21
|
+
`employee-certifications` resource (`create`) to `@uidu/cli`. Takes an
|
|
22
|
+
existing `certificationId` directly: the SDK has no `certifications` domain
|
|
23
|
+
yet (`Certifications::Certification::Create` is still on the drift backlog).
|
|
24
|
+
Demoed on the employee detail page in `apps/demo`.
|
|
25
|
+
- 7f3c05c: Add `createEmploymentTerm` / `updateEmploymentTerm` to `@uidu/client` (contract
|
|
26
|
+
variations: hours, job title, CCNL or kind, effective from a date — distinct
|
|
27
|
+
from `employments`, the contract span itself) and an `employment-terms`
|
|
28
|
+
resource (`create`, `update`) to `@uidu/cli`. Demoed on the employee detail
|
|
29
|
+
page in `apps/demo`.
|
|
30
|
+
|
|
31
|
+
## 3.14.0
|
|
32
|
+
|
|
33
|
+
### Minor Changes
|
|
34
|
+
|
|
35
|
+
- c116054: Donations: `listDonations` reads a campaign's gifts (newest first, donor name and message, no email; needs a Bearer), with `ListDonationsDocument` for `paginate`. `getDonationCampaign` now also returns `abstract`, `category`, tags, `finishesAt`, `daysToExpiration`, `impact` and `owner`; `listDonationCampaigns` adds `abstract`, `category`, `donationsAverage`, `finishesAt` and `daysToExpiration`.
|
|
36
|
+
|
|
3
37
|
## 3.13.1
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -10,8 +10,9 @@ import { type CreateApplicationMutationVariables, type ListApplicationsQuery, ty
|
|
|
10
10
|
*
|
|
11
11
|
* Reads (`listApplications`) require a Bearer token (`apiKey`): applications
|
|
12
12
|
* hold private candidate data. Writes (`createApplication`,
|
|
13
|
-
* `updateApplication`, `completeApplication`) are
|
|
14
|
-
* job
|
|
13
|
+
* `updateApplication`, `completeApplication`) are how a candidate applies to a
|
|
14
|
+
* job — visitor-facing, but still submitted from the server (a server action),
|
|
15
|
+
* never with a publicToken from the browser.
|
|
15
16
|
*/
|
|
16
17
|
export type Application = NonNullable<NonNullable<NonNullable<NonNullable<ListApplicationsQuery['currentWorkspace']>['applications']['edges']>[number]>['node']>;
|
|
17
18
|
/** List applications across the workspace (requires a Bearer token). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UiduClient } from "./client.js";
|
|
2
|
-
import { type CreateDonationMutationVariables, type CreateDonationCampaignMutationVariables, type GetDonationCampaignQuery, type GetDonationCampaignQueryVariables, type ListDonationCampaignsQueryVariables } from "./generated/index.js";
|
|
2
|
+
import { type CreateDonationMutationVariables, type CreateDonationCampaignMutationVariables, type GetDonationCampaignQuery, type GetDonationCampaignQueryVariables, type ListDonationCampaignsQueryVariables, type ListDonationsQuery, type ListDonationsQueryVariables } from "./generated/index.js";
|
|
3
3
|
export type DonationCampaign = NonNullable<NonNullable<GetDonationCampaignQuery['currentWorkspace']>['donationCampaign']>;
|
|
4
4
|
/**
|
|
5
5
|
* One donation campaign with its body, its totals (`goal`, `donationsAmount`,
|
|
@@ -14,15 +14,29 @@ export declare function listDonationCampaigns(client: UiduClient, variables?: Li
|
|
|
14
14
|
__typename?: "DonationCampaign";
|
|
15
15
|
id: string;
|
|
16
16
|
name?: string | null;
|
|
17
|
+
abstract?: string | null;
|
|
18
|
+
category?: string | null;
|
|
17
19
|
cover?: string | null;
|
|
18
20
|
coverData?: any | null;
|
|
19
21
|
goal?: number | null;
|
|
20
22
|
donationsAmount?: number | null;
|
|
21
23
|
donationsCount?: number | null;
|
|
24
|
+
donationsAverage?: number | null;
|
|
22
25
|
startsAt?: any | null;
|
|
26
|
+
finishesAt?: any | null;
|
|
27
|
+
daysToExpiration?: number | null;
|
|
23
28
|
publishedAt?: any | null;
|
|
24
29
|
publicPath?: string | null;
|
|
25
30
|
}[]>;
|
|
31
|
+
export type Donation = NonNullable<NonNullable<NonNullable<NonNullable<ListDonationsQuery['currentWorkspace']>['donationCampaign']>['donations']['edges']>[number]>['node'] & {};
|
|
32
|
+
/**
|
|
33
|
+
* A campaign's donations, newest first, with the donor's display name and
|
|
34
|
+
* message; abandoned checkouts are left out.
|
|
35
|
+
*
|
|
36
|
+
* Reads need a Bearer. The selection stops at what a public "recent
|
|
37
|
+
* donations" list shows: no email, no payment details.
|
|
38
|
+
*/
|
|
39
|
+
export declare function listDonations(client: UiduClient, variables: ListDonationsQueryVariables): Promise<Donation[]>;
|
|
26
40
|
/**
|
|
27
41
|
* Record a donation (amount in cents) to a campaign, creating the donor's
|
|
28
42
|
* contact inline; returns `{ errors, donation }` as-is.
|