@healthier-business/hub-sdk 0.4.1 → 0.4.2
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.
|
@@ -2479,16 +2479,6 @@ export type RefReferee = {
|
|
|
2479
2479
|
status_label: string;
|
|
2480
2480
|
/** The simpler status the Hub screens show a client: `received`, `rejected`, `expired`, `overdue`, `legacy` or `requested`. */
|
|
2481
2481
|
display_status: string;
|
|
2482
|
-
/** The score of the reference: the weighted average of the scored questions, rounded to two decimals. Null when the client does not use scoring, when the form has no scoring criteria, or when the answers did not match… */
|
|
2483
|
-
score: number | null;
|
|
2484
|
-
/** How the score was reached: one item per scored question with its `label`, the `value` answered, the `raw_score`, the `weight` and the `weighted_score`. Empty when the client does not use scoring or the reference is… */
|
|
2485
|
-
score_breakdown: {
|
|
2486
|
-
label: string;
|
|
2487
|
-
value: unknown;
|
|
2488
|
-
raw_score: number;
|
|
2489
|
-
weight: number;
|
|
2490
|
-
weighted_score: number;
|
|
2491
|
-
}[];
|
|
2492
2482
|
/** The reason the referee gave for declining, in their own words. It is set only when `status` is `declined` and the referee wrote one; null otherwise. It is free text from a third party: show it as plain text. It is… */
|
|
2493
2483
|
decline_reason: string | null;
|
|
2494
2484
|
/** The answers the referee gave, in the order recorded. Each has the question's `field_code` (the question id on the form), its `label` (the question text; the `field_code` again when the form no longer has that… */
|
|
@@ -4348,8 +4338,6 @@ export type WebhookReferencesReferenceSubmittedData = {
|
|
|
4348
4338
|
reference_request_uuid: string;
|
|
4349
4339
|
/** The candidate's `candidate_ref` (the Hub uuid the APIs use). The candidate's name and email are never in the webhook; read them with `GET /api/v2/references/requests/{uuid}` or the Hub core API. Always present: a… */
|
|
4350
4340
|
candidate_ref: string;
|
|
4351
|
-
/** The score of the reference as a decimal string with two decimals (for example `"4.25"`: a string, not a JSON number), as stored by the references engine. Null when the client does not use scoring or the answers could… */
|
|
4352
|
-
score: string | null;
|
|
4353
4341
|
/** When the referee submitted the reference, ISO 8601 UTC with a `Z`. */
|
|
4354
4342
|
submitted_at: string;
|
|
4355
4343
|
};
|
|
@@ -2479,16 +2479,6 @@ export type RefReferee = {
|
|
|
2479
2479
|
status_label: string;
|
|
2480
2480
|
/** The simpler status the Hub screens show a client: `received`, `rejected`, `expired`, `overdue`, `legacy` or `requested`. */
|
|
2481
2481
|
display_status: string;
|
|
2482
|
-
/** The score of the reference: the weighted average of the scored questions, rounded to two decimals. Null when the client does not use scoring, when the form has no scoring criteria, or when the answers did not match… */
|
|
2483
|
-
score: number | null;
|
|
2484
|
-
/** How the score was reached: one item per scored question with its `label`, the `value` answered, the `raw_score`, the `weight` and the `weighted_score`. Empty when the client does not use scoring or the reference is… */
|
|
2485
|
-
score_breakdown: {
|
|
2486
|
-
label: string;
|
|
2487
|
-
value: unknown;
|
|
2488
|
-
raw_score: number;
|
|
2489
|
-
weight: number;
|
|
2490
|
-
weighted_score: number;
|
|
2491
|
-
}[];
|
|
2492
2482
|
/** The reason the referee gave for declining, in their own words. It is set only when `status` is `declined` and the referee wrote one; null otherwise. It is free text from a third party: show it as plain text. It is… */
|
|
2493
2483
|
decline_reason: string | null;
|
|
2494
2484
|
/** The answers the referee gave, in the order recorded. Each has the question's `field_code` (the question id on the form), its `label` (the question text; the `field_code` again when the form no longer has that… */
|
|
@@ -4348,8 +4338,6 @@ export type WebhookReferencesReferenceSubmittedData = {
|
|
|
4348
4338
|
reference_request_uuid: string;
|
|
4349
4339
|
/** The candidate's `candidate_ref` (the Hub uuid the APIs use). The candidate's name and email are never in the webhook; read them with `GET /api/v2/references/requests/{uuid}` or the Hub core API. Always present: a… */
|
|
4350
4340
|
candidate_ref: string;
|
|
4351
|
-
/** The score of the reference as a decimal string with two decimals (for example `"4.25"`: a string, not a JSON number), as stored by the references engine. Null when the client does not use scoring or the answers could… */
|
|
4352
|
-
score: string | null;
|
|
4353
4341
|
/** When the referee submitted the reference, ISO 8601 UTC with a `Z`. */
|
|
4354
4342
|
submitted_at: string;
|
|
4355
4343
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@healthier-business/hub-sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "The official JavaScript and TypeScript SDK for the Healthier Business Hub API v2: automatic tokens, typed resources for every portal, signed webhooks and embeddable courses, tests and OH forms.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sanchit Patil",
|