diff --git a/src/data/queries/alertNonReusable.ts b/src/data/queries/alertNonReusable.ts index 71dea9355..18e81ae6d 100644 --- a/src/data/queries/alertNonReusable.ts +++ b/src/data/queries/alertNonReusable.ts @@ -1,5 +1,4 @@ // Define the query params for fetching block--alert. -import { BlockAlert } from '@/types/drupal/block' import { QueryFormatter } from 'next-drupal-query' import { AlertType, AlertNonReusable } from '@/types/formatted/alert' import { ParagraphNonReusableAlert } from '@/types/drupal/paragraph' diff --git a/src/data/queries/tests/__snapshots__/alert.test.tsx.snap b/src/data/queries/tests/__snapshots__/alert.test.tsx.snap new file mode 100644 index 000000000..f6e570b6e --- /dev/null +++ b/src/data/queries/tests/__snapshots__/alert.test.tsx.snap @@ -0,0 +1,19 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`alert formatData outputs formatted data 1`] = ` +{ + "alertType": "information", + "blockReference": null, + "entityId": 6003, + "heading": "Blue Water Navy Veterans and Agent Orange", + "id": "019070f3-9e3e-4c69-83e4-c7eace8c414f", + "paragraphs": [ + { + "html": "
Blue Water Navy Veterans are now entitled to a presumption of service connection for illnesses related to Agent Orange exposure. This is a result of Public Law 116-23, the Blue Water Navy Vietnam Veterans Act of 2019. The law was signed on June 25, 2019, and takes effect on January 1, 2020.
Read below to learn more about eligibility requirements and how to file a claim. If we denied your claim in the past, you can file a new claim based on this change in law.
", + "id": "abb45dcb-b33f-4080-b20f-2f89d4281806", + "type": "paragraph--wysiwyg", + }, + ], + "type": "paragraph--alert", +} +`; diff --git a/src/data/queries/tests/__snapshots__/alertNonReusable.test.tsx.snap b/src/data/queries/tests/__snapshots__/alertNonReusable.test.tsx.snap new file mode 100644 index 000000000..c45dee28c --- /dev/null +++ b/src/data/queries/tests/__snapshots__/alertNonReusable.test.tsx.snap @@ -0,0 +1,18 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`alert non reusable formatData outputs formatted data 1`] = ` +{ + "alertType": "info", + "entityId": 13072, + "heading": "Sample non-reusable alert", + "id": "4eff76c1-5e3e-410b-a56a-64b572f98756", + "paragraphs": [ + { + "html": "This is where the text goes for the alert
", + "id": "2fc092f1-969a-4136-9039-4fc50a9f93c4", + "type": "paragraph--wysiwyg", + }, + ], + "type": "paragraph--non_reusable_alert", +} +`; diff --git a/src/data/queries/tests/__snapshots__/alertSingle.test.tsx.snap b/src/data/queries/tests/__snapshots__/alertSingle.test.tsx.snap new file mode 100644 index 000000000..5ca83073f --- /dev/null +++ b/src/data/queries/tests/__snapshots__/alertSingle.test.tsx.snap @@ -0,0 +1,23 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`alert single formatData outputs formatted data 1`] = ` +{ + "alertSelection": "R", + "blockReference": { + "alertType": "info", + "content": { + "html": "Get the latest information about in-person services, claim exams, extensions, paperwork, decision reviews and appeals, and how best to contact us during this time.
+ +", + "id": "65fda9e9-1bbb-45f2-bc39-d3c659ba30d1", + "type": "paragraph--wysiwyg", + }, + "id": "ba9dd3f4-4260-4e21-bbf9-a5cf0db49fc1", + "title": "You can still file a claim and apply for benefits during the coronavirus pandemic", + }, + "entityId": 13070, + "id": "0e71c5cd-a4e2-4dec-9b1e-0ef1c5666f65", + "nonReusableRef": null, + "type": "paragraph--alert_single", +} +`; diff --git a/src/data/queries/tests/__snapshots__/banners.test.tsx.snap b/src/data/queries/tests/__snapshots__/banners.test.tsx.snap index 4a0236464..b6170b462 100644 --- a/src/data/queries/tests/__snapshots__/banners.test.tsx.snap +++ b/src/data/queries/tests/__snapshots__/banners.test.tsx.snap @@ -19,6 +19,15 @@ exports[`Banners return formatted data outputs formatted data 1`] = ` }, { "alertType": "warning", + "bannerAlertVamcs": [ + { + "id": 2363, + "office": { + "path": null, + }, + "path": "/butler-health-care/operating-status", + }, + ], "body": "this is a full width banner alert
", "dismiss": true, "emailUpdatesButton": true, diff --git a/src/data/queries/tests/__snapshots__/collapsiblePanel.test.tsx.snap b/src/data/queries/tests/__snapshots__/collapsiblePanel.test.tsx.snap new file mode 100644 index 000000000..1d59f5d2a --- /dev/null +++ b/src/data/queries/tests/__snapshots__/collapsiblePanel.test.tsx.snap @@ -0,0 +1,127 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Collapsible Panel formatData outputs formatted data 1`] = ` +{ + "bordered": false, + "entityId": 2862, + "id": "cc597ad6-123b-49b4-bf90-2edae8b355bc", + "multiSelect": false, + "paragraphs": [ + { + "entityId": 2861, + "id": "768a4d33-0552-49d8-a9e1-c66d5ae689f5", + "paragraphs": [], + "title": "Homeless services", + "type": "paragraph--collapsible_panel_item", + "wysiwyg": "@Shelley's team If functionality is available, this could be an alert box or similar component
+ +If you are a Veteran who is homeless or at risk of becoming homeless due to financial hardship, unemployment, addiction, depression, or transition from jail, VA Pittsburgh can help you with:
+ +@Shelley's team may want to consider whether different care coordinators should be listed on different accordions. For example, should Mary Frances be listed here because she handles all general incoming requests for homeless services, while Linda should be listed on the "permanent housing" accordion because she handles HUD-VASH cases?
+ +For local help getting started with any of these services, contact a VA Pittsburgh homeless services care coordinator. We can help determine what programs are right for you.
+ +Mary Frances Pilarski
+Coordinator for homeless Veterans health care
+412-822-1272 (direct)
+866-482-7488, ext. 221272 (outside the Pittsburgh area)
+Mary.Pilarski@va.gov
Keather Likins
+Outreach social worker
+412-822-1409
+Keather.Likins@va.gov
Linda Crawford
+HUD-VASH social worker
+412-822-1271
+linda.crawford2@va.gov
Joseph Savino
+Transitional housing liaison
+412-822-1295
+Joseph.Savino2@va.gov
Mary Henderson
+Veterans benefits counselor
+412-822-1275
+<insert email>
You can also come in person to this office at this location to talk to someone about which homeless services are right for you.
+ +You can enroll in our intensive 14 or 21-day behavioral health program to start your recovery from alcohol or drug addiction. Call us at 412-360-6110 or 412-360-6092
+ +University Drive campus [Link to: University Drive campus page, API]
+First floor, check-in area 3
We can help you develop the skills to find and keep a job. We can also connect you with VA programs that allow you to earn a competitive wage (such as the state minimum wage).
+ +@Shelley team: For contacts like this, we need to answer these questions: Does Joseph only handle transitional housing cases? (If so, only list him with the transitional housing info.) Does John act as a care coordinator for ALL homeless services? (If so, consider listing him here but leaving off the title "Transitional housing liaison", which is distracting to the user and makes them wonder if he's the right person to be contacting.)
+ +@Shelley team: This name and number is on a PDF brochure for Pittsburgh VA homeless services, but not on the web page. Not sure whether to include.
+ +@Shelley team: to fill in, if this is a viable way to get help with homeless services
+ +@Shelley team: Both these numbers are listed in the directory. Only the first is listed on the website page. Which is better? Why?
+ +@Shelley team: Giving the name and location of this program here might be distracting, as the CTA is really just to call the number.
+ +John Erskine
+412-822-1285
+John.Erskine@va.gov
We connect Veterans in local courts and jails with services to help them reintegrate back into their communities as smoothly as possible. We can provide housing and employment opportunities, health care, and access to VA benefits. Call us at 412-822-1275.
+ +We provide residential programs for Veterans struggling with psychiatric disorders and help them transition back into their communities. Contact:
+ +Bridget Wright
+412-822-1403
+<email>
Tim Morrison
+412-822-1399
+Timothy.Morrison@va.gov
@Shelley: Is this a common term? If I were a user I don’t know that I’d understand it.
+ +Listed as contact on a resources page for homeless Veterans
+ +Listed on brochure for the Recovery Center for Veterans under the header for Residential Treatment for Psychiatric Disorders
+ +@Shelley: Can we specify what they do/what their titles are?
", + }, + ], + "startExpanded": false, + "type": "paragraph--collapsible_panel", +} +`; diff --git a/src/data/queries/tests/__snapshots__/collapsiblePanelItem.test.tsx.snap b/src/data/queries/tests/__snapshots__/collapsiblePanelItem.test.tsx.snap new file mode 100644 index 000000000..a6e0a7d64 --- /dev/null +++ b/src/data/queries/tests/__snapshots__/collapsiblePanelItem.test.tsx.snap @@ -0,0 +1,12 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Collapsible Panel Item formatData outputs formatted data 1`] = ` +{ + "entityId": 17, + "id": "c6436d3e-9c0f-4ead-a930-a20bc53dae12", + "paragraphs": [], + "title": "I have a service-connected dental disability or condition for which I receive compensation (monthly payments).", + "type": "paragraph--collapsible_panel_item", + "wysiwyg": "You’re in: Class I
You may qualify for: Any needed dental care
", +} +`; diff --git a/src/data/queries/tests/__snapshots__/eventTeaser.test.tsx.snap b/src/data/queries/tests/__snapshots__/eventTeaser.test.tsx.snap new file mode 100644 index 000000000..6d0eb88a3 --- /dev/null +++ b/src/data/queries/tests/__snapshots__/eventTeaser.test.tsx.snap @@ -0,0 +1,85 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`event teaser formatData outputs formatted data 1`] = ` +{ + "changed": "2023-08-16T15:20:30+00:00", + "entityBundle": "node--event", + "entityId": "16349f16-be65-46e3-9660-1d3d598a4a0b", + "entityPublished": true, + "entityUrl": { + "path": "/central-iowa-health-care/events/52265", + }, + "fieldAdditionalInformationAbo": null, + "fieldAdditionalListings": null, + "fieldAddress": { + "addressLine1": "9000 Douglas Ave", + "addressLine2": null, + "administrativeArea": "IA", + "countryCode": "US", + "locality": "Urbandale", + "postalCode": null, + }, + "fieldAdministration": { + "entity": { + "entityId": "3a530a55-e922-48de-b18c-9c9f92a9ae98", + }, + }, + "fieldBody": { + "format": "rich_text", + "processed": "Pickleball Club
+ +Meets Thursdays from 9 to 11 a.m.
+ +Contact Kay Queck (515) 214-4578
", + "value": "Pickleball Club
+ +Meets Thursdays from 9 to 11 a.m.
+ +Contact Kay Queck (515) 214-4578
+", + }, + "fieldCtaEmail": "test@va.gov", + "fieldDatetimeRangeTimezone": [ + { + "duration": 120, + "endTime": "2023-09-07T16:00:00+00:00", + "endValue": 1694102400, + "end_value": "2023-09-07T16:00:00+00:00", + "rrule": 180, + "rrule_index": 1, + "startTime": "2023-09-07T14:00:00+00:00", + "timezone": "America/Chicago", + "value": 1694095200, + }, + { + "duration": 120, + "endTime": "2023-09-14T16:00:00+00:00", + "endValue": 1694707200, + "end_value": "2023-09-14T16:00:00+00:00", + "rrule": 180, + "rrule_index": 2, + "startTime": "2023-09-14T14:00:00+00:00", + "timezone": "America/Chicago", + "value": 1694700000, + }, + ], + "fieldDescription": "Pickleball ", + "fieldEventCost": "Free", + "fieldEventCta": null, + "fieldEventRegistrationrequired": false, + "fieldFacilityLocation": null, + "fieldFeatured": false, + "fieldHowToSignUp": "email", + "fieldLink": null, + "fieldListing": { + "entity": { + "entityId": "55cb823c-df6d-4f77-814d-6024e08cd4f6", + }, + }, + "fieldLocationHumanreadable": "Walker Johnston Park", + "fieldLocationType": "non_facility", + "fieldOrder": null, + "fieldUrlOfAnOnlineEvent": null, + "title": "Pickleball Club", +} +`; diff --git a/src/data/queries/tests/__snapshots__/healthServices.test.tsx.snap b/src/data/queries/tests/__snapshots__/healthServices.test.tsx.snap new file mode 100644 index 000000000..cc5b2696c --- /dev/null +++ b/src/data/queries/tests/__snapshots__/healthServices.test.tsx.snap @@ -0,0 +1,18 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`healthServices formatData outputs formatted data 1`] = ` +[ + { + "alsoKnownAs": null, + "body": "Military sexual trauma can happen to both men and women. If you experienced sexual assault or harassment during military service - no matter when you served – we provide counseling and treatment.
+", + "commonlyTreatedCondition": null, + "description": "Military sexual trauma can happen to both genders. If you experienced sexual assault or harassment during military service—no matter when you served—we provide counseling and treatment.", + "name": "Military sexual trauma care", + "vetCenterComConditions": null, + "vetCenterFriendlyName": null, + "vetCenterServiceDescription": "If you experienced sexual assault or harassment during military service, we can help you get the counseling you need. Any Veteran or service member, including members of the National Guard and Reserve forces, who experienced military sexual trauma is eligible to receive counseling. This applies to people of all genders from any service era.", + "vetCenterTypeOfCare": "counseling", + }, +] +`; diff --git a/src/data/queries/tests/__snapshots__/promoBlock.test.tsx.snap b/src/data/queries/tests/__snapshots__/promoBlock.test.tsx.snap new file mode 100644 index 000000000..d2f2539b2 --- /dev/null +++ b/src/data/queries/tests/__snapshots__/promoBlock.test.tsx.snap @@ -0,0 +1,16 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`promoBlock formatData outputs formatted data 1`] = ` +{ + "description": "Download letters like your eligibility or award letter for certain benefits.", + "id": 14, + "img": { + "alt": null, + "src": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/sites/default/files/styles/7_2_medium_thumbnail/public/2020-04/040120_FEATURE_MarchFCVet20.png", + }, + "link": { + "href": "internal:/records/download-va-letters/", + "text": "Confirm your VA benefit status", + }, +} +`; diff --git a/src/data/queries/tests/__snapshots__/reactWidget.test.tsx.snap b/src/data/queries/tests/__snapshots__/reactWidget.test.tsx.snap new file mode 100644 index 000000000..1b66e038c --- /dev/null +++ b/src/data/queries/tests/__snapshots__/reactWidget.test.tsx.snap @@ -0,0 +1,19 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`React widget formatData outputs formatted data 1`] = ` +{ + "buttonFormat": true, + "ctaWidget": false, + "defaultLink": { + "title": "Apply for Veterans Pension Benefits", + "url": "/pension/application/527EZ", + }, + "entityId": 4102, + "errorMessage": "We’re sorry. Something went wrong when we tried to load your saved application.We offer some life insurance programs to service members and Veterans that are now closed to new enrollees. Learn more about these programs and what to do if you want to convert your policy.
+", + "lastUpdated": "2020-12-18T18:21:27+00:00", + "mainContent": [ + { + "html": "Veterans insured: WWI
+Years issued: 1919 to 1951
+Policies still in force: Fewer than 8,000
+Average age of policyholders: 88 years old
Policies were issued in a variety of permanent plans and as renewable term insurance. The maximum face amount of a USGLI policy is $10,000. All USGLI policies were declared paid up as of January 1, 1983, meaning that no further premium payments were due. Annual dividends continue to be paid on these policies.
+ +Veterans with a 5-Year Level Premium plan under the USGLI program had the opportunity to exchange it for a special endowment plan payable at age 96.
+ +This is a term life insurance plan that provides coverage until the year of the Veteran's 96th birthday. If the Veteran dies before age 96, the insurance payout goes to the plan beneficiary. If the Veteran reaches the policy anniversary closest to their 96th birthday, they receive the face value of the policy, minus any amount borrowed against it.
+ +For example, if the Veteran's policy anniversary is September 1 and their birthday is October 1, they would receive the policy payout on September 1.
+ +Policy proceeds are paid either in a lump sum or on an installment basis.
+ +This plan doesn't provide permanent and total disability benefits.
+ +It doesn't provide a waiver of premium once in force, though a waiver of premium provision could have been purchased at the time this plan was exchanged for the 5-Year Level Premium plan.
+ +Veterans insured: WWII
+Years issued: 1940 to 1951
+Policies still in force: 950,000
+Average age of policyholders: 81 years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit doesn't include paid-up additional insurance, which can be purchased with the annual dividends. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
+ +Premium rates are capped at age 70. This means that a term policyholder's premium will never increase over the age 70 premium rate.
+ +Effective September 11, 2000, "capped" NSLI term policies receive a termination dividend if a policy lapses, or if the policyholder voluntarily cancels their policy. The termination dividend will be used to purchase paid-up additional whole life insurance.
+ +Veterans insured: Korean War
+Years issued: 1951 to 1956
+Policies still in force: 181,000
+Average age of policyholders: 75 years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit does not include paid-up additional insurance, which can be purchased with the annual dividends. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
+ +Premium rates are capped at age 70. This means that a term policyholder's premium will never increase over the age 70 premium rate. This means that the annual premium for these policies will not exceed $69.73 per $1,000 of coverage.
+ +Effective September 11, 2000, "capped" VSLI term policies receive a termination dividend if a policy lapses, or if the policyholder voluntarily cancels their policy. The termination dividend will be used to purchase paid-up additional whole life insurance.
+ +Veterans insured: Disabled WWII and Korean War
+Years issued: 1965 to 1966
+Policies still in force: More than 41,000
+Average age of policyholders: ?? years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit doesn't include paid-up additional insurance, which can be purchased with the dividends that are paid annually on these policies. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
+ +Call our VA Insurance Center at 800-669-8477. We're here Monday through Friday, 8:30 a.m. to 6:00 p.m. ET.
", + "id": "6f28ef70-df39-413f-b867-ba7ba63ecb30", + "type": "paragraph--wysiwyg", + }, + ], + "metatags": [ + { + "attributes": { + "content": "Closed life insurance programs | Veterans Affairs", + "name": "title", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "We offer some life insurance programs to service members and Veterans that are now closed to new enrollees. Learn more about these programs and what to do if you want to convert your policy.", + "name": "description", + }, + "tag": "meta", + }, + { + "attributes": { + "href": "https://www.va.gov/img/design/logo/va-og-image.png", + "rel": "image_src", + }, + "tag": "link", + }, + { + "attributes": { + "content": "Veterans Affairs", + "property": "og:site_name", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "Closed life insurance programs | Veterans Affairs", + "property": "og:title", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "We offer some life insurance programs to service members and Veterans that are now closed to new enrollees. Learn more about these programs and what to do if you want to convert your policy.", + "property": "og:description", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "https://www.va.gov/img/design/logo/va-og-image.png", + "property": "og:image", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "U.S. Department of Veterans Affairs", + "property": "og:image:alt", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "summary_large_image", + "name": "twitter:card", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "@DeptVetAffairs", + "name": "twitter:site", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "Closed life insurance programs | Veterans Affairs", + "name": "twitter:title", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "https://www.va.gov/img/design/logo/va-og-image.png", + "name": "twitter:image", + }, + "tag": "meta", + }, + { + "attributes": { + "content": "U.S. Department of Veterans Affairs", + "name": "twitter:image:alt", + }, + "tag": "meta", + }, + ], + "moderationState": "draft", + "published": false, + "repeatButtons": true, + "tags": { + "entityId": 23312, + "id": "fdac0715-f3eb-4a9d-bf5e-298da4a82ef3", + "tags": [ + { + "categoryLabel": "Audience", + "href": "/resources/tag/all-veterans", + "id": "386eb70d-696c-4af3-8986-306ce63d90de", + "name": "All Veterans", + }, + ], + "type": "paragraph--audience_topics", + }, + "title": "Closed life insurance programs", + "toc": false, + "type": "node--support_resources_detail_page", +} +`; diff --git a/src/data/queries/tests/__snapshots__/table.test.tsx.snap b/src/data/queries/tests/__snapshots__/table.test.tsx.snap new file mode 100644 index 000000000..8e290f34c --- /dev/null +++ b/src/data/queries/tests/__snapshots__/table.test.tsx.snap @@ -0,0 +1,27 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`table formatData outputs formatted data 1`] = ` +{ + "data": [ + [ + "School name", + "VSOC counselor email address", + "Regional office", + ], + [ + "Troy University", + "Rickey Jones Rickey.Jones@va.gov", + "Montgomery (322)", + ], + [ + "University of Alabama", + "Lisa Fells Lisa.Fells@va.gov", + "Montgomery (322)", + ], + ], + "entityId": 4528, + "id": "90824b6b-bc4d-4082-96c9-d82a5ce5ee15", + "title": "", + "type": "paragraph--table", +} +`; diff --git a/src/data/queries/tests/alert.test.tsx b/src/data/queries/tests/alert.test.tsx new file mode 100644 index 000000000..175ddc49e --- /dev/null +++ b/src/data/queries/tests/alert.test.tsx @@ -0,0 +1,23 @@ +import { ParagraphAlert } from '@/types/drupal/paragraph' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/alert.mock.js' + +const AlertMock: ParagraphAlert = mockResponse + +describe('alert formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect(queries.formatData('paragraph--alert', AlertMock)).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/alertNonReusable.test.tsx b/src/data/queries/tests/alertNonReusable.test.tsx new file mode 100644 index 000000000..87849ade6 --- /dev/null +++ b/src/data/queries/tests/alertNonReusable.test.tsx @@ -0,0 +1,25 @@ +import { ParagraphNonReusableAlert } from '@/types/drupal/paragraph' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/alertNonReusable.mock' + +const AlertNonResuableMock: ParagraphNonReusableAlert = mockResponse + +describe('alert non reusable formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData('paragraph--non_reusable_alert', AlertNonResuableMock) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/alertSingle.test.tsx b/src/data/queries/tests/alertSingle.test.tsx new file mode 100644 index 000000000..1780b9928 --- /dev/null +++ b/src/data/queries/tests/alertSingle.test.tsx @@ -0,0 +1,25 @@ +import { ParagraphAlertSingle } from '@/types/drupal/paragraph' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/alertSingle.mock' + +const AlertSingle: ParagraphAlertSingle = mockResponse + +describe('alert single formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData('paragraph--alert_single', AlertSingle) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/collapsiblePanel.test.tsx b/src/data/queries/tests/collapsiblePanel.test.tsx new file mode 100644 index 000000000..2fcc1acfe --- /dev/null +++ b/src/data/queries/tests/collapsiblePanel.test.tsx @@ -0,0 +1,25 @@ +import { ParagraphCollapsiblePanel } from '@/types/drupal/paragraph' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/collapsiblePanel.mock' + +const CollapsiblePanel: ParagraphCollapsiblePanel = mockResponse + +describe('Collapsible Panel formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData('paragraph--collapsible_panel', CollapsiblePanel) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/collapsiblePanelItem.test.tsx b/src/data/queries/tests/collapsiblePanelItem.test.tsx new file mode 100644 index 000000000..d747dc535 --- /dev/null +++ b/src/data/queries/tests/collapsiblePanelItem.test.tsx @@ -0,0 +1,28 @@ +import { ParagraphCollapsiblePanelItem } from '@/types/drupal/paragraph' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/collapsiblePanelItem.mock' + +const CollapsiblePanelItem: ParagraphCollapsiblePanelItem = mockResponse + +describe('Collapsible Panel Item formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData( + 'paragraph--collapsible_panel_item', + CollapsiblePanelItem + ) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/eventTeaser.test.tsx b/src/data/queries/tests/eventTeaser.test.tsx new file mode 100644 index 000000000..7a630ce9a --- /dev/null +++ b/src/data/queries/tests/eventTeaser.test.tsx @@ -0,0 +1,25 @@ +import { NodeEvent } from '@/types/drupal/node' +import { queries } from '@/data/queries' +import mockData from '@/mocks/event.mock.json' + +const nodeEventMock: NodeEvent = mockData + +describe('event teaser formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData('node--event--teaser', nodeEventMock) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/healthServices.test.tsx b/src/data/queries/tests/healthServices.test.tsx new file mode 100644 index 000000000..eb75ee374 --- /dev/null +++ b/src/data/queries/tests/healthServices.test.tsx @@ -0,0 +1,28 @@ +import { FieldHealthServicesArray } from '@/types/drupal/field_type' +import { queries } from '@/data/queries' +import mockResponse from '@/mocks/healthServices.mock.json' + +const HealthServicesMock: FieldHealthServicesArray = mockResponse + +describe('healthServices formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData( + 'node--vet_center_facility_health_servi', + HealthServicesMock + ) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/promoBlock.test.tsx b/src/data/queries/tests/promoBlock.test.tsx new file mode 100644 index 000000000..3d183e038 --- /dev/null +++ b/src/data/queries/tests/promoBlock.test.tsx @@ -0,0 +1,26 @@ +import { BlockPromo } from '@/types/drupal/block' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/promoBlock.mock' + +//eslint-disable-next-line +const PromoBlock: BlockPromo | any = mockResponse + +describe('promoBlock formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData('block_content--promo', PromoBlock) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/reactWidget.test.tsx b/src/data/queries/tests/reactWidget.test.tsx new file mode 100644 index 000000000..b48c06183 --- /dev/null +++ b/src/data/queries/tests/reactWidget.test.tsx @@ -0,0 +1,25 @@ +import { ParagraphReactWidget } from '@/types/drupal/paragraph' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/reactWidget.mock' + +const ReactWidgetMock: ParagraphReactWidget = mockResponse + +describe('React widget formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData('paragraph--react_widget', ReactWidgetMock) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/resourcesSupport.test.tsx b/src/data/queries/tests/resourcesSupport.test.tsx new file mode 100644 index 000000000..a8874fa24 --- /dev/null +++ b/src/data/queries/tests/resourcesSupport.test.tsx @@ -0,0 +1,29 @@ +import { NodeSupportResourcesDetailPage } from '@/types/drupal/node' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/resourcesSupport.mock' + +//eslint-disable-next-line +const MockSupportResources: NodeSupportResourcesDetailPage | any = mockResponse + +describe('Resources Support formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect( + queries.formatData( + 'node--support_resources_detail_page', + MockSupportResources + ) + ).toMatchSnapshot() + }) +}) diff --git a/src/data/queries/tests/table.test.tsx b/src/data/queries/tests/table.test.tsx new file mode 100644 index 000000000..40544835d --- /dev/null +++ b/src/data/queries/tests/table.test.tsx @@ -0,0 +1,23 @@ +import { ParagraphTable } from '@/types/drupal/paragraph' +import { queries } from '@/data/queries' +import { mockResponse } from '@/mocks/table.mock' + +const TableMock: ParagraphTable = mockResponse + +describe('table formatData', () => { + let windowSpy + + beforeEach(() => { + windowSpy = jest.spyOn(window, 'window', 'get') + }) + + afterEach(() => { + windowSpy.mockRestore() + }) + + test('outputs formatted data', () => { + windowSpy.mockImplementation(() => undefined) + + expect(queries.formatData('paragraph--table', TableMock)).toMatchSnapshot() + }) +}) diff --git a/src/lib/utils/events.test.ts b/src/lib/utils/events.test.ts index a4c9a557c..96ccc6315 100644 --- a/src/lib/utils/events.test.ts +++ b/src/lib/utils/events.test.ts @@ -30,22 +30,4 @@ describe('formatEventCTA', () => { expect(result).toBe(expected) }) }) - describe('createMailToLink', () => { - it('should create a correct mailto link with all parameters', () => { - const emailCTA = 'example@example.com' - const title = 'Event Title' - const mostRecentDate = { - startTime: new Date('2023-09-07T14:00:00Z'), - endTime: new Date('2023-09-07T16:00:00Z'), - } - - const linkPath = '/event-path' - - const result = createMailToLink(emailCTA, title, mostRecentDate, linkPath) - - expect(result).toBe( - 'mailto:example@example.com?subject=RSVP%20for%20Event%20Title%20on%20Thu%2C%20Sep%207%2C%202023%2C%2010%3A00%20AM%20EDT%20%E2%80%93%2012%3A00%20PM%20EDT&body=I%20would%20like%20to%20register%20for%20Event%20Title%20on%20Thu%2C%20Sep%207%2C%202023%2C%2010%3A00%20AM%20EDT%20%E2%80%93%2012%3A00%20PM%20EDT.%20(https%3A%2F%2Fva.gov%2Fevent-path)' - ) - }) - }) }) diff --git a/src/lib/utils/helpers.test.ts b/src/lib/utils/helpers.test.ts index a02af8fdd..e392be885 100644 --- a/src/lib/utils/helpers.test.ts +++ b/src/lib/utils/helpers.test.ts @@ -1,6 +1,208 @@ -import { conditionalAttr } from './helpers' -import { numToWord } from './helpers' +import { + conditionalAttr, + truncateWordsOrChar, + regionBaseURL, + isRelative, + isValidData, + drupalToVaPath, + toString, + escape, + numToWord, +} from './helpers' +describe('truncateWordsOrChar', () => { + // Truncating Words Mode + test('should truncate words when string length is greater than specified length', () => { + const result = truncateWordsOrChar('Lorem ipsum dolor sit amet', 3, true) + expect(result).toBe('Lorem ipsum dolor...') + }) + + test('should not truncate words when string length is less than or equal to specified length', () => { + const result = truncateWordsOrChar('Lorem ipsum dolor sit amet', 5, true) + expect(result).toBe('Lorem ipsum dolor sit amet') + }) + + test('should handle strings with special characters or punctuation for words', () => { + const result = truncateWordsOrChar('Hello, World!', 1, true) + expect(result).toBe('Hello,...') + }) + + // Truncating Characters Mode + test('should truncate characters when string length is greater than specified length', () => { + const result = truncateWordsOrChar('Lorem ipsum dolor sit amet', 10, false) + expect(result).toBe('Lorem ipsu...') + }) + + test('should not truncate characters when string length is less than or equal to specified length', () => { + const result = truncateWordsOrChar('Lorem ipsum dolor sit amet', 30, false) + expect(result).toBe('Lorem ipsum dolor sit amet') + }) + + test('should handle strings with special characters or punctuation for characters', () => { + const result = truncateWordsOrChar('Hello, World!', 5, false) + expect(result).toBe('Hello...') + }) +}) + +describe('regionBaseURL', () => { + test('should return "some" when path does not contain a valid region base URL', () => { + const path = '/some/invalid/path' + const result = regionBaseURL(path) + expect(result).toBe('some') + }) + + test('should return undefined when path is not provided', () => { + const result = regionBaseURL(undefined) + expect(result).toBeUndefined() + }) +}) + +describe('isRelative', () => { + test('should return true for an empty string', () => { + const url = '' + const result = isRelative(url) + expect(result).toBe(true) + }) + + test('should return true for null or undefined', () => { + const resultNull = isRelative(null) + const resultUndefined = isRelative(undefined) + expect(resultNull).toBe(true) + expect(resultUndefined).toBe(true) + }) +}) + +describe('isValidData', () => { + test('should return true for valid data', () => { + const validData = 'example' + const result = isValidData(validData) + expect(result).toBe(true) + }) + + test('should return false for null data', () => { + const nullData = null + const result = isValidData(nullData) + expect(result).toBe(false) + }) + + test('should return false for undefined data', () => { + const undefinedData = undefined + const result = isValidData(undefinedData) + expect(result).toBe(false) + }) +}) + +describe('drupalToVaPath', () => { + test('should replace image links with correct path', () => { + const content = + 'Image Link' + const expectedOutput = 'Image Link' + const result = drupalToVaPath(content) + expect(result).toBe(expectedOutput) + }) + + test('should replace file links with correct path', () => { + const content = + 'File Link' + const expectedOutput = 'File Link' + const result = drupalToVaPath(content) + expect(result).toBe(expectedOutput) + }) + + test('should handle content with mixed image and file links', () => { + const content = + 'Image Link File Link' + const expectedOutput = + 'Image Link File Link' + const result = drupalToVaPath(content) + expect(result).toBe(expectedOutput) + }) + + test('should handle content without any image or file links', () => { + const content = 'No image or file links in this content' + const result = drupalToVaPath(content) + expect(result).toBe(content) + }) + + test('should return empty string if content is null or undefined', () => { + const resultNull = drupalToVaPath(null) + const resultUndefined = drupalToVaPath(undefined) + expect(resultNull).toBe(null) + expect(resultUndefined).toBe(undefined) + }) +}) + +describe('toString', () => { + test('should convert string input to string', () => { + const input = 'Hello' + const result = toString(input) + expect(result).toBe('Hello') + }) + + test('should convert number input to string', () => { + const input = 123 + const result = toString(input) + expect(result).toBe('123') + }) + + test('should convert boolean input to string', () => { + const input = true + const result = toString(input) + expect(result).toBe('true') + }) + + test('should handle null input', () => { + const input = null + const result = toString(input) + expect(result).toBe('') + }) + + test('should handle undefined input', () => { + const input = undefined + const result = toString(input) + expect(result).toBe('') + }) + + test('should handle empty string input', () => { + const input = '' + const result = toString(input) + expect(result).toBe('') + }) +}) + +describe('escape', () => { + test('should escape special characters in the input string', () => { + const input = '' + const result = escape(input) + const expected = + '<script>alert("Hello & Goodbye")</script>' + expect(result).toBe(expected) + }) + + test('should handle empty input', () => { + const input = '' + const result = escape(input) + expect(result).toBe('') + }) + + test('should handle null input', () => { + const input = null + const result = escape(input) + expect(result).toBe('') + }) + + test('should handle undefined input', () => { + const input = undefined + const result = escape(input) + expect(result).toBe('') + }) + + test('should not escape already escaped characters', () => { + const input = '<div>Hello</div>' + const result = escape(input) + expect(result).toBe('<div>Hello</div>') + }) +}) describe('conditionalAttr', () => { describe('boolean condition', () => { test('should include attr when condition is true', () => { @@ -11,7 +213,7 @@ describe('conditionalAttr', () => { }) }) - test('should include blank attr when condition is true and value is not passed', () => { + test('should include blank attr when condition is true and value is not passed for bool', () => { const result = conditionalAttr(true, 'test-attr') expect(result).toStrictEqual({ @@ -35,7 +237,7 @@ describe('conditionalAttr', () => { }) }) - test('should include blank attr when function returns true and value is not passed', () => { + test('should include blank attr when function returns true and value is not passed for function', () => { const result = conditionalAttr(() => true, 'test-attr') expect(result).toStrictEqual({ diff --git a/src/mocks/alert.mock.js b/src/mocks/alert.mock.js new file mode 100644 index 000000000..27beb8f2c --- /dev/null +++ b/src/mocks/alert.mock.js @@ -0,0 +1,82 @@ +export const mockResponse = { + type: 'paragraph--alert', + id: '019070f3-9e3e-4c69-83e4-c7eace8c414f', + drupal_internal__id: 6003, + drupal_internal__revision_id: 27807, + langcode: 'en', + status: true, + created: '2019-09-04T13:45:29+00:00', + parent_id: '876', + parent_type: 'node', + parent_field_name: 'field_content_block', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_alert_heading: 'Blue Water Navy Veterans and Agent Orange', + field_alert_type: 'information', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/alert/019070f3-9e3e-4c69-83e4-c7eace8c414f?resourceVersion=id%3A27807', + }, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: 'daa6bb41-1b12-46f7-a355-96ceb6fa18dc', + resourceIdObjMeta: { + drupal_internal__target_id: 'alert', + }, + }, + field_alert_block_reference: null, + field_va_paragraphs: [ + { + type: 'paragraph--wysiwyg', + id: 'abb45dcb-b33f-4080-b20f-2f89d4281806', + drupal_internal__id: 6004, + drupal_internal__revision_id: 27808, + langcode: 'en', + status: true, + created: '2019-09-04T13:45:29+00:00', + parent_id: '6003', + parent_type: 'paragraph', + parent_field_name: 'field_va_paragraphs', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_wysiwyg: { + value: + 'Blue Water Navy Veterans are now entitled to a presumption of service connection for illnesses related to Agent Orange exposure. This is a result of Public Law 116-23, the Blue Water Navy Vietnam Veterans Act of 2019. The law was signed on June 25, 2019, and takes effect on January 1, 2020.
Read below to learn more about eligibility requirements and how to file a claim. If we denied your claim in the past, you can file a new claim based on this change in law.
Blue Water Navy Veterans are now entitled to a presumption of service connection for illnesses related to Agent Orange exposure. This is a result of Public Law 116-23, the Blue Water Navy Vietnam Veterans Act of 2019. The law was signed on June 25, 2019, and takes effect on January 1, 2020.
Read below to learn more about eligibility requirements and how to file a claim. If we denied your claim in the past, you can file a new claim based on this change in law.
', + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/wysiwyg/abb45dcb-b33f-4080-b20f-2f89d4281806?resourceVersion=id%3A27808', + }, + }, + resourceIdObjMeta: { + target_revision_id: 27808, + drupal_internal__target_id: 6004, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '885e4b61-cfd2-44b9-94ae-f068ba2b48b6', + resourceIdObjMeta: { + drupal_internal__target_id: 'wysiwyg', + }, + }, + relationshipNames: ['paragraph_type'], + }, + ], + relationshipNames: [ + 'paragraph_type', + 'field_alert_block_reference', + 'field_va_paragraphs', + ], +} diff --git a/src/mocks/alertNonReusable.mock.js b/src/mocks/alertNonReusable.mock.js new file mode 100644 index 000000000..cc5620fd6 --- /dev/null +++ b/src/mocks/alertNonReusable.mock.js @@ -0,0 +1,75 @@ +export const mockResponse = { + type: 'paragraph--non_reusable_alert', + id: '4eff76c1-5e3e-410b-a56a-64b572f98756', + drupal_internal__id: 13072, + drupal_internal__revision_id: 145559, + langcode: 'en', + status: true, + created: '2020-10-01T17:08:59+00:00', + parent_id: '13073', + parent_type: 'paragraph', + parent_field_name: 'field_alert_non_reusable_ref', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: null, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_alert_heading: 'Sample non-reusable alert', + field_alert_type: 'information', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/non_reusable_alert/4eff76c1-5e3e-410b-a56a-64b572f98756?resourceVersion=id%3A145559', + }, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '3d633fc0-97d6-4087-b709-edfa2d1e6a1e', + resourceIdObjMeta: { + drupal_internal__target_id: 'non_reusable_alert', + }, + }, + field_va_paragraphs: [ + { + type: 'paragraph--wysiwyg', + id: '2fc092f1-969a-4136-9039-4fc50a9f93c4', + drupal_internal__id: 13071, + drupal_internal__revision_id: 141493, + langcode: 'en', + status: true, + created: '2020-10-01T17:09:17+00:00', + parent_id: '13072', + parent_type: 'paragraph', + parent_field_name: 'field_va_paragraphs', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_wysiwyg: { + value: 'This is where the text goes for the alert
\r\n', + format: 'rich_text', + processed: 'This is where the text goes for the alert
', + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/wysiwyg/2fc092f1-969a-4136-9039-4fc50a9f93c4?resourceVersion=id%3A141493', + }, + }, + resourceIdObjMeta: { + target_revision_id: 141493, + drupal_internal__target_id: 13071, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '885e4b61-cfd2-44b9-94ae-f068ba2b48b6', + resourceIdObjMeta: { + drupal_internal__target_id: 'wysiwyg', + }, + }, + relationshipNames: ['paragraph_type'], + }, + ], + relationshipNames: ['paragraph_type', 'field_va_paragraphs'], +} diff --git a/src/mocks/alertSingle.mock.js b/src/mocks/alertSingle.mock.js new file mode 100644 index 000000000..4d2366110 --- /dev/null +++ b/src/mocks/alertSingle.mock.js @@ -0,0 +1,143 @@ +export const mockResponse = { + type: 'paragraph--alert_single', + id: '0e71c5cd-a4e2-4dec-9b1e-0ef1c5666f65', + drupal_internal__id: 13070, + drupal_internal__revision_id: 145553, + langcode: 'en', + status: true, + created: '2020-10-01T15:35:24+00:00', + parent_id: '12696', + parent_type: 'paragraph', + parent_field_name: 'field_alert', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: null, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_alert_selection: 'R', + field_markup: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/alert_single/0e71c5cd-a4e2-4dec-9b1e-0ef1c5666f65?resourceVersion=id%3A145553', + }, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: 'f2e64319-f14b-4bc1-8674-4661358e4242', + resourceIdObjMeta: { + drupal_internal__target_id: 'alert_single', + }, + }, + field_alert_block_reference: { + type: 'block_content--alert', + id: 'ba9dd3f4-4260-4e21-bbf9-a5cf0db49fc1', + drupal_internal__id: 45, + drupal_internal__revision_id: 994, + langcode: 'en', + revision_created: '2022-09-06T17:30:19+00:00', + status: false, + info: 'COVID-19 alert: Claims and other services', + changed: '2022-09-06T17:30:19+00:00', + reusable: true, + default_langcode: true, + revision_translation_affected: true, + moderation_state: 'archived', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: '| Veterans Affairs', + }, + }, + ], + field_alert_title: + 'You can still file a claim and apply for benefits during the coronavirus pandemic', + field_alert_type: 'information', + field_reusability: 'reusable', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/block_content/alert/ba9dd3f4-4260-4e21-bbf9-a5cf0db49fc1?resourceVersion=id%3A994', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 45, + }, + block_content_type: { + type: 'block_content_type--block_content_type', + id: '278a3f4b-8d89-4768-ab03-869b8cc98613', + resourceIdObjMeta: { + drupal_internal__target_id: 'alert', + }, + }, + revision_user: { + type: 'user--user', + id: '38daa8d4-3d05-48a3-bb95-a9c75988e382', + resourceIdObjMeta: { + drupal_internal__target_id: 295, + }, + }, + field_alert_content: { + type: 'paragraph--wysiwyg', + id: '65fda9e9-1bbb-45f2-bc39-d3c659ba30d1', + drupal_internal__id: 10536, + drupal_internal__revision_id: 729754, + langcode: 'en', + status: true, + created: '2020-05-30T16:44:57+00:00', + parent_id: '45', + parent_type: 'block_content', + parent_field_name: 'field_alert_content', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_wysiwyg: { + value: + 'Get the latest information about in-person services, claim exams, extensions, paperwork, decision reviews and appeals, and how best to contact us during this time.
\r\n\r\n\r\n', + format: 'rich_text', + processed: + 'Get the latest information about in-person services, claim exams, extensions, paperwork, decision reviews and appeals, and how best to contact us during this time.
\n\n', + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/wysiwyg/65fda9e9-1bbb-45f2-bc39-d3c659ba30d1?resourceVersion=id%3A729754', + }, + }, + resourceIdObjMeta: { + target_revision_id: 729754, + drupal_internal__target_id: 10536, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '885e4b61-cfd2-44b9-94ae-f068ba2b48b6', + resourceIdObjMeta: { + drupal_internal__target_id: 'wysiwyg', + }, + }, + relationshipNames: ['paragraph_type'], + }, + field_owner: { + type: 'taxonomy_term--administration', + id: '40ef8d64-fa92-41b6-88c0-4d85dc24e191', + resourceIdObjMeta: { + drupal_internal__target_id: 194, + }, + }, + relationshipNames: [ + 'block_content_type', + 'revision_user', + 'field_alert_content', + 'field_owner', + ], + }, + field_alert_non_reusable_ref: null, + relationshipNames: [ + 'paragraph_type', + 'field_alert_block_reference', + 'field_alert_non_reusable_ref', + ], +} diff --git a/src/mocks/collapsiblePanel.mock.js b/src/mocks/collapsiblePanel.mock.js new file mode 100644 index 000000000..047a5424b --- /dev/null +++ b/src/mocks/collapsiblePanel.mock.js @@ -0,0 +1,80 @@ +export const mockResponse = { + type: 'paragraph--collapsible_panel', + id: 'cc597ad6-123b-49b4-bf90-2edae8b355bc', + drupal_internal__id: 2862, + drupal_internal__revision_id: 3804, + langcode: 'en', + status: true, + created: '2019-03-20T15:31:12+00:00', + parent_id: '202', + parent_type: 'node', + parent_field_name: 'field_content_block', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: null, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_collapsible_panel_bordered: false, + field_collapsible_panel_expand: false, + field_collapsible_panel_multi: false, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/collapsible_panel/cc597ad6-123b-49b4-bf90-2edae8b355bc?resourceVersion=id%3A3804', + }, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '9d342344-615c-4c0b-b4c8-991d7ec4d20c', + resourceIdObjMeta: { + drupal_internal__target_id: 'collapsible_panel', + }, + }, + field_va_paragraphs: [ + { + type: 'paragraph--collapsible_panel_item', + id: '768a4d33-0552-49d8-a9e1-c66d5ae689f5', + drupal_internal__id: 2861, + drupal_internal__revision_id: 3789, + langcode: 'en', + status: true, + created: '2019-03-20T15:31:12+00:00', + parent_id: '2862', + parent_type: 'paragraph', + parent_field_name: 'field_va_paragraphs', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_title: 'Homeless services', + field_wysiwyg: { + value: + '@Shelley\'s team If functionality is available, this could be an alert box or similar component
\r\n\r\nIf you are a Veteran who is homeless or at risk of becoming homeless due to financial hardship, unemployment, addiction, depression, or transition from jail, VA Pittsburgh can help you with:
\r\n\r\n@Shelley\'s team may want to consider whether different care coordinators should be listed on different accordions. For example, should Mary Frances be listed here because she handles all general incoming requests for homeless services, while Linda should be listed on the "permanent housing" accordion because she handles HUD-VASH cases?
\r\n\r\nFor local help getting started with any of these services, contact a VA Pittsburgh homeless services care coordinator. We can help determine what programs are right for you.
\r\n\r\nMary Frances Pilarski
\r\nCoordinator for homeless Veterans health care
\r\n412-822-1272 (direct)
\r\n866-482-7488, ext. 221272 (outside the Pittsburgh area)
\r\nMary.Pilarski@va.gov
Keather Likins
\r\nOutreach social worker
\r\n412-822-1409
\r\nKeather.Likins@va.gov
Linda Crawford
\r\nHUD-VASH social worker
\r\n412-822-1271
\r\nlinda.crawford2@va.gov
Joseph Savino
\r\nTransitional housing liaison
\r\n412-822-1295
\r\nJoseph.Savino2@va.gov
Mary Henderson
\r\nVeterans benefits counselor
\r\n412-822-1275
\r\n<insert email>
You can also come in person to this office at this location to talk to someone about which homeless services are right for you.
\r\n\r\nYou can enroll in our intensive 14 or 21-day behavioral health program to start your recovery from alcohol or drug addiction. Call us at 412-360-6110 or 412-360-6092
\r\n\r\nUniversity Drive campus [Link to: University Drive campus page, API]
\r\nFirst floor, check-in area 3
We can help you develop the skills to find and keep a job. We can also connect you with VA programs that allow you to earn a competitive wage (such as the state minimum wage).
\r\n\r\n@Shelley team: For contacts like this, we need to answer these questions: Does Joseph only handle transitional housing cases? (If so, only list him with the transitional housing info.) Does John act as a care coordinator for ALL homeless services? (If so, consider listing him here but leaving off the title "Transitional housing liaison", which is distracting to the user and makes them wonder if he\'s the right person to be contacting.)
\r\n\r\n@Shelley team: This name and number is on a PDF brochure for Pittsburgh VA homeless services, but not on the web page. Not sure whether to include.
\r\n\r\n@Shelley team: to fill in, if this is a viable way to get help with homeless services
\r\n\r\n@Shelley team: Both these numbers are listed in the directory. Only the first is listed on the website page. Which is better? Why?
\r\n\r\n@Shelley team: Giving the name and location of this program here might be distracting, as the CTA is really just to call the number.
\r\n\r\nJohn Erskine
\r\n412-822-1285
\r\nJohn.Erskine@va.gov
We connect Veterans in local courts and jails with services to help them reintegrate back into their communities as smoothly as possible. We can provide housing and employment opportunities, health care, and access to VA benefits. Call us at 412-822-1275.
\r\n\r\nWe provide residential programs for Veterans struggling with psychiatric disorders and help them transition back into their communities. Contact:
\r\n\r\nBridget Wright
\r\n412-822-1403
\r\n<email>
Tim Morrison
\r\n412-822-1399
\r\nTimothy.Morrison@va.gov
@Shelley: Is this a common term? If I were a user I don’t know that I’d understand it.
\r\n\r\nListed as contact on a resources page for homeless Veterans
\r\n\r\nListed on brochure for the Recovery Center for Veterans under the header for Residential Treatment for Psychiatric Disorders
\r\n\r\n@Shelley: Can we specify what they do/what their titles are?
\r\n', + format: 'rich_text', + processed: + '@Shelley\'s team If functionality is available, this could be an alert box or similar component
\n\nIf you are a Veteran who is homeless or at risk of becoming homeless due to financial hardship, unemployment, addiction, depression, or transition from jail, VA Pittsburgh can help you with:
\n\n@Shelley\'s team may want to consider whether different care coordinators should be listed on different accordions. For example, should Mary Frances be listed here because she handles all general incoming requests for homeless services, while Linda should be listed on the "permanent housing" accordion because she handles HUD-VASH cases?
\n\nFor local help getting started with any of these services, contact a VA Pittsburgh homeless services care coordinator. We can help determine what programs are right for you.
\n\nMary Frances Pilarski
\nCoordinator for homeless Veterans health care
\n412-822-1272 (direct)
\n866-482-7488, ext. 221272 (outside the Pittsburgh area)
\nMary.Pilarski@va.gov
Keather Likins
\nOutreach social worker
\n412-822-1409
\nKeather.Likins@va.gov
Linda Crawford
\nHUD-VASH social worker
\n412-822-1271
\nlinda.crawford2@va.gov
Joseph Savino
\nTransitional housing liaison
\n412-822-1295
\nJoseph.Savino2@va.gov
Mary Henderson
\nVeterans benefits counselor
\n412-822-1275
\n<insert email>
You can also come in person to this office at this location to talk to someone about which homeless services are right for you.
\n\nYou can enroll in our intensive 14 or 21-day behavioral health program to start your recovery from alcohol or drug addiction. Call us at 412-360-6110 or 412-360-6092
\n\nUniversity Drive campus [Link to: University Drive campus page, API]
\nFirst floor, check-in area 3
We can help you develop the skills to find and keep a job. We can also connect you with VA programs that allow you to earn a competitive wage (such as the state minimum wage).
\n\n@Shelley team: For contacts like this, we need to answer these questions: Does Joseph only handle transitional housing cases? (If so, only list him with the transitional housing info.) Does John act as a care coordinator for ALL homeless services? (If so, consider listing him here but leaving off the title "Transitional housing liaison", which is distracting to the user and makes them wonder if he\'s the right person to be contacting.)
\n\n@Shelley team: This name and number is on a PDF brochure for Pittsburgh VA homeless services, but not on the web page. Not sure whether to include.
\n\n@Shelley team: to fill in, if this is a viable way to get help with homeless services
\n\n@Shelley team: Both these numbers are listed in the directory. Only the first is listed on the website page. Which is better? Why?
\n\n@Shelley team: Giving the name and location of this program here might be distracting, as the CTA is really just to call the number.
\n\nJohn Erskine
\n412-822-1285
\nJohn.Erskine@va.gov
We connect Veterans in local courts and jails with services to help them reintegrate back into their communities as smoothly as possible. We can provide housing and employment opportunities, health care, and access to VA benefits. Call us at 412-822-1275.
\n\nWe provide residential programs for Veterans struggling with psychiatric disorders and help them transition back into their communities. Contact:
\n\nBridget Wright
\n412-822-1403
\n<email>
Tim Morrison
\n412-822-1399
\nTimothy.Morrison@va.gov
@Shelley: Is this a common term? If I were a user I don’t know that I’d understand it.
\n\nListed as contact on a resources page for homeless Veterans
\n\nListed on brochure for the Recovery Center for Veterans under the header for Residential Treatment for Psychiatric Disorders
\n\n@Shelley: Can we specify what they do/what their titles are?
', + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/collapsible_panel_item/768a4d33-0552-49d8-a9e1-c66d5ae689f5?resourceVersion=id%3A3789', + }, + }, + resourceIdObjMeta: { + target_revision_id: 3789, + drupal_internal__target_id: 2861, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: 'e2a6831d-9d06-45d6-940e-dc542830f6ec', + resourceIdObjMeta: { + drupal_internal__target_id: 'collapsible_panel_item', + }, + }, + field_va_paragraphs: [], + relationshipNames: ['paragraph_type', 'field_va_paragraphs'], + }, + ], + relationshipNames: ['paragraph_type', 'field_va_paragraphs'], +} diff --git a/src/mocks/collapsiblePanelItem.mock.js b/src/mocks/collapsiblePanelItem.mock.js new file mode 100644 index 000000000..935461fa3 --- /dev/null +++ b/src/mocks/collapsiblePanelItem.mock.js @@ -0,0 +1,41 @@ +export const mockResponse = { + type: 'paragraph--collapsible_panel_item', + id: 'c6436d3e-9c0f-4ead-a930-a20bc53dae12', + drupal_internal__id: 17, + drupal_internal__revision_id: 17, + langcode: 'en', + status: true, + created: '2019-01-10T17:56:47+00:00', + parent_id: '16', + parent_type: 'paragraph', + parent_field_name: 'field_va_paragraphs', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_title: + 'I have a service-connected dental disability or condition for which I receive compensation (monthly payments).', + field_wysiwyg: { + value: + 'You’re in: Class I
You may qualify for: Any needed dental care
You’re in: Class I
You may qualify for: Any needed dental care
', + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/collapsible_panel_item/c6436d3e-9c0f-4ead-a930-a20bc53dae12?resourceVersion=id%3A17', + }, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: 'e2a6831d-9d06-45d6-940e-dc542830f6ec', + resourceIdObjMeta: { + drupal_internal__target_id: 'collapsible_panel_item', + }, + }, + field_va_paragraphs: [], + relationshipNames: ['paragraph_type', 'field_va_paragraphs'], +} diff --git a/src/mocks/healthServices.mock.json b/src/mocks/healthServices.mock.json index 070c56a5c..2e61b604c 100644 --- a/src/mocks/healthServices.mock.json +++ b/src/mocks/healthServices.mock.json @@ -1,313 +1,315 @@ -{ - "type": "node--vet_center_facility_health_servi", - "id": "e03928d8-ec40-4f0d-b53a-515d4625aa2c", - "drupal_internal__nid": 34316, - "drupal_internal__vid": 518499, - "langcode": "en", - "revision_timestamp": "2021-08-24T20:51:58+00:00", - "status": false, - "title": "Nashville Vet Center - Military sexual trauma care", - "created": "2021-08-24T20:40:07+00:00", - "changed": "2021-08-24T20:54:35+00:00", - "promote": true, - "sticky": false, - "default_langcode": true, - "revision_translation_affected": true, - "breadcrumbs": [ - { - "uri": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/", - "title": "Home", - "options": [] - }, - { - "uri": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/nashville-vet-center", - "title": "Nashville Vet Center", - "options": [] - }, - { - "uri": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/nashville-vet-center/service/nashville-vet-center-military-sexual-trauma-care", - "title": "Nashville Vet Center - Military sexual trauma care", - "options": [] - } - ], - "moderation_state": "draft", - "metatag": [ - { - "tag": "meta", - "attributes": { - "name": "title", - "content": "Nashville Vet Center - Military sexual trauma care | Veterans Affairs" - } - }, - { - "tag": "link", - "attributes": { - "rel": "image_src", - "href": "https://www.va.gov/img/design/logo/va-og-image.png" - } - }, - { - "tag": "meta", - "attributes": { - "property": "og:site_name", - "content": "Veterans Affairs" - } - }, - { - "tag": "meta", - "attributes": { - "property": "og:title", - "content": "Nashville Vet Center - Military sexual trauma care | Veterans Affairs" - } - }, - { - "tag": "meta", - "attributes": { - "property": "og:image", - "content": "https://www.va.gov/img/design/logo/va-og-image.png" - } - }, - { - "tag": "meta", - "attributes": { - "property": "og:image:alt", - "content": "U.S. Department of Veterans Affairs" - } - }, - { - "tag": "meta", - "attributes": { - "name": "twitter:card", - "content": "summary_large_image" - } - }, - { - "tag": "meta", - "attributes": { - "name": "twitter:site", - "content": "@DeptVetAffairs" - } - }, - { - "tag": "meta", - "attributes": { - "name": "twitter:title", - "content": "Nashville Vet Center - Military sexual trauma care | Veterans Affairs" - } - }, - { - "tag": "meta", - "attributes": { - "name": "twitter:image", - "content": "https://www.va.gov/img/design/logo/va-og-image.png" - } - }, - { - "tag": "meta", - "attributes": { - "name": "twitter:image:alt", - "content": "U.S. Department of Veterans Affairs" - } - } - ], - "path": { - "alias": "/nashville-vet-center/service/nashville-vet-center-military-sexual-trauma-care", - "pid": 40773, - "langcode": "en" - }, - "content_translation_source": "und", - "content_translation_outdated": false, - "field_body": { - "value": "Military sexual trauma can happen to both men and women. If you experienced sexual assault or harassment during military service - no matter when you served – we provide counseling and treatment.
\r\n", - "format": "rich_text_limited", - "processed": "Military sexual trauma can happen to both men and women. If you experienced sexual assault or harassment during military service - no matter when you served – we provide counseling and treatment.
\n" - }, - "field_enforce_unique_combo": false, - "field_last_saved_by_an_editor": null, - "links": { - "self": { - "href": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/vet_center_facility_health_servi/e03928d8-ec40-4f0d-b53a-515d4625aa2c?resourceVersion=id%3A518499" - } - }, - "node_type": { - "type": "node_type--node_type", - "id": "c04196ba-18ef-4627-b057-966bda224bb1", - "resourceIdObjMeta": { - "drupal_internal__target_id": "vet_center_facility_health_servi" - } - }, - "revision_uid": { - "type": "user--user", - "id": "612f6a71-2e48-4d71-884b-58ec5b533e6d", - "resourceIdObjMeta": { - "drupal_internal__target_id": 2019 - } - }, - "uid": { - "type": "user--user", - "id": "612f6a71-2e48-4d71-884b-58ec5b533e6d", - "resourceIdObjMeta": { - "drupal_internal__target_id": 2019 - } - }, - "field_administration": { - "type": "taxonomy_term--administration", - "id": "27a3b37c-2a81-4736-8027-5488611fbbd4", - "resourceIdObjMeta": { - "drupal_internal__target_id": 396 - } - }, - "field_office": { - "type": "node--vet_center", - "id": "e16bc5b7-dd30-481a-8dfd-0ff288e64024", - "resourceIdObjMeta": { - "drupal_internal__target_id": 3877 - } - }, - "field_service_name_and_descripti": { - "type": "taxonomy_term--health_care_service_taxonomy", - "id": "cbf56f2b-8941-4925-960b-875ec1c2f89e", - "drupal_internal__tid": 116, - "drupal_internal__revision_id": 1272, +[ + { + "type": "node--vet_center_facility_health_servi", + "id": "e03928d8-ec40-4f0d-b53a-515d4625aa2c", + "drupal_internal__nid": 34316, + "drupal_internal__vid": 518499, "langcode": "en", - "revision_created": "2022-11-04T19:41:27+00:00", - "status": true, - "name": "Military sexual trauma care", - "description": { - "value": "Military sexual trauma can happen to both genders. If you experienced sexual assault or harassment during military service—no matter when you served—we provide counseling and treatment.\r\n", - "format": "rich_text", - "processed": "Military sexual trauma can happen to both genders. If you experienced sexual assault or harassment during military service—no matter when you served—we provide counseling and treatment." - }, - "weight": 0, - "changed": "2022-11-04T20:00:51+00:00", + "revision_timestamp": "2021-08-24T20:51:58+00:00", + "status": false, + "title": "Nashville Vet Center - Military sexual trauma care", + "created": "2021-08-24T20:40:07+00:00", + "changed": "2021-08-24T20:54:35+00:00", + "promote": true, + "sticky": false, "default_langcode": true, - "revision_translation_affected": null, - "moderation_state": "published", + "revision_translation_affected": true, + "breadcrumbs": [ + { + "uri": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/", + "title": "Home", + "options": [] + }, + { + "uri": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/nashville-vet-center", + "title": "Nashville Vet Center", + "options": [] + }, + { + "uri": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/nashville-vet-center/service/nashville-vet-center-military-sexual-trauma-care", + "title": "Nashville Vet Center - Military sexual trauma care", + "options": [] + } + ], + "moderation_state": "draft", "metatag": [ { "tag": "meta", "attributes": { "name": "title", - "content": "Military sexual trauma care | VA.gov CMS" + "content": "Nashville Vet Center - Military sexual trauma care | Veterans Affairs" + } + }, + { + "tag": "link", + "attributes": { + "rel": "image_src", + "href": "https://www.va.gov/img/design/logo/va-og-image.png" } }, { "tag": "meta", "attributes": { - "name": "description", - "content": "Military sexual trauma can happen to both genders. If you experienced sexual assault or harassment during military service—no matter when you served—we provide counseling and treatment." + "property": "og:site_name", + "content": "Veterans Affairs" } }, { - "tag": "link", + "tag": "meta", + "attributes": { + "property": "og:title", + "content": "Nashville Vet Center - Military sexual trauma care | Veterans Affairs" + } + }, + { + "tag": "meta", + "attributes": { + "property": "og:image", + "content": "https://www.va.gov/img/design/logo/va-og-image.png" + } + }, + { + "tag": "meta", + "attributes": { + "property": "og:image:alt", + "content": "U.S. Department of Veterans Affairs" + } + }, + { + "tag": "meta", + "attributes": { + "name": "twitter:card", + "content": "summary_large_image" + } + }, + { + "tag": "meta", + "attributes": { + "name": "twitter:site", + "content": "@DeptVetAffairs" + } + }, + { + "tag": "meta", "attributes": { - "rel": "canonical", - "href": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/health-care/military-sexual-trauma-care" + "name": "twitter:title", + "content": "Nashville Vet Center - Military sexual trauma care | Veterans Affairs" + } + }, + { + "tag": "meta", + "attributes": { + "name": "twitter:image", + "content": "https://www.va.gov/img/design/logo/va-og-image.png" + } + }, + { + "tag": "meta", + "attributes": { + "name": "twitter:image:alt", + "content": "U.S. Department of Veterans Affairs" } } ], "path": { - "alias": "/health-care/military-sexual-trauma-care", - "pid": 624, + "alias": "/nashville-vet-center/service/nashville-vet-center-military-sexual-trauma-care", + "pid": 40773, "langcode": "en" }, "content_translation_source": "und", "content_translation_outdated": false, - "content_translation_created": null, - "field_facility_service_header": null, - "field_health_service_api_id": "militarySexualTrauma", - "field_online_self_service": null, - "field_regional_service_descripti": null, - "field_regional_service_header": null, - "field_service_type_of_care": "Mental health care", - "field_show_for_vamc_facilities": true, - "field_show_for_vba_facilities": null, - "field_show_for_vet_centers": true, - "field_tricare_description": null, - "field_tricare_specific_service": null, - "field_vba_com_conditions": null, - "field_vba_friendly_name": null, - "field_vba_service_descrip": null, - "field_vba_type_of_care": null, - "field_vet_center_com_conditions": null, - "field_vet_center_friendly_name": null, - "field_vet_center_required_servic": true, - "field_vet_center_service_descrip": "If you experienced sexual assault or harassment during military service, we can help you get the counseling you need. Any Veteran or service member, including members of the National Guard and Reserve forces, who experienced military sexual trauma is eligible to receive counseling. This applies to people of all genders from any service era.", - "field_vet_center_type_of_care": "counseling", - "field_vha_healthservice_stopcode": null, - "field_also_known_as": null, - "field_commonly_treated_condition": null, - "field_enforce_unique_combo_servi": null, - "field_facility_service_descripti": null, + "field_body": { + "value": "Military sexual trauma can happen to both men and women. If you experienced sexual assault or harassment during military service - no matter when you served – we provide counseling and treatment.
\r\n", + "format": "rich_text_limited", + "processed": "Military sexual trauma can happen to both men and women. If you experienced sexual assault or harassment during military service - no matter when you served – we provide counseling and treatment.
\n" + }, + "field_enforce_unique_combo": false, + "field_last_saved_by_an_editor": null, "links": { "self": { - "href": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/taxonomy_term/health_care_service_taxonomy/cbf56f2b-8941-4925-960b-875ec1c2f89e?resourceVersion=id%3A1272" + "href": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/vet_center_facility_health_servi/e03928d8-ec40-4f0d-b53a-515d4625aa2c?resourceVersion=id%3A518499" } }, - "resourceIdObjMeta": { - "drupal_internal__target_id": 116 + "node_type": { + "type": "node_type--node_type", + "id": "c04196ba-18ef-4627-b057-966bda224bb1", + "resourceIdObjMeta": { + "drupal_internal__target_id": "vet_center_facility_health_servi" + } }, - "vid": { - "type": "taxonomy_vocabulary--taxonomy_vocabulary", - "id": "1ae4c52e-f750-44eb-9e53-e10234617743", + "revision_uid": { + "type": "user--user", + "id": "612f6a71-2e48-4d71-884b-58ec5b533e6d", "resourceIdObjMeta": { - "drupal_internal__target_id": "health_care_service_taxonomy" + "drupal_internal__target_id": 2019 } }, - "revision_user": { + "uid": { "type": "user--user", - "id": "20b2bc97-2210-4def-9a0f-46c22d250eb7", + "id": "612f6a71-2e48-4d71-884b-58ec5b533e6d", "resourceIdObjMeta": { - "drupal_internal__target_id": 0 + "drupal_internal__target_id": 2019 } }, - "parent": [ - { - "type": "taxonomy_term--health_care_service_taxonomy", - "id": "virtual", + "field_administration": { + "type": "taxonomy_term--administration", + "id": "27a3b37c-2a81-4736-8027-5488611fbbd4", + "resourceIdObjMeta": { + "drupal_internal__target_id": 396 + } + }, + "field_office": { + "type": "node--vet_center", + "id": "e16bc5b7-dd30-481a-8dfd-0ff288e64024", + "resourceIdObjMeta": { + "drupal_internal__target_id": 3877 + } + }, + "field_service_name_and_descripti": { + "type": "taxonomy_term--health_care_service_taxonomy", + "id": "cbf56f2b-8941-4925-960b-875ec1c2f89e", + "drupal_internal__tid": 116, + "drupal_internal__revision_id": 1272, + "langcode": "en", + "revision_created": "2022-11-04T19:41:27+00:00", + "status": true, + "name": "Military sexual trauma care", + "description": { + "value": "Military sexual trauma can happen to both genders. If you experienced sexual assault or harassment during military service—no matter when you served—we provide counseling and treatment.\r\n", + "format": "rich_text", + "processed": "Military sexual trauma can happen to both genders. If you experienced sexual assault or harassment during military service—no matter when you served—we provide counseling and treatment." + }, + "weight": 0, + "changed": "2022-11-04T20:00:51+00:00", + "default_langcode": true, + "revision_translation_affected": null, + "moderation_state": "published", + "metatag": [ + { + "tag": "meta", + "attributes": { + "name": "title", + "content": "Military sexual trauma care | VA.gov CMS" + } + }, + { + "tag": "meta", + "attributes": { + "name": "description", + "content": "Military sexual trauma can happen to both genders. If you experienced sexual assault or harassment during military service—no matter when you served—we provide counseling and treatment." + } + }, + { + "tag": "link", + "attributes": { + "rel": "canonical", + "href": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/health-care/military-sexual-trauma-care" + } + } + ], + "path": { + "alias": "/health-care/military-sexual-trauma-care", + "pid": 624, + "langcode": "en" + }, + "content_translation_source": "und", + "content_translation_outdated": false, + "content_translation_created": null, + "field_facility_service_header": null, + "field_health_service_api_id": "militarySexualTrauma", + "field_online_self_service": null, + "field_regional_service_descripti": null, + "field_regional_service_header": null, + "field_service_type_of_care": "Mental health care", + "field_show_for_vamc_facilities": true, + "field_show_for_vba_facilities": null, + "field_show_for_vet_centers": true, + "field_tricare_description": null, + "field_tricare_specific_service": null, + "field_vba_com_conditions": null, + "field_vba_friendly_name": null, + "field_vba_service_descrip": null, + "field_vba_type_of_care": null, + "field_vet_center_com_conditions": null, + "field_vet_center_friendly_name": null, + "field_vet_center_required_servic": true, + "field_vet_center_service_descrip": "If you experienced sexual assault or harassment during military service, we can help you get the counseling you need. Any Veteran or service member, including members of the National Guard and Reserve forces, who experienced military sexual trauma is eligible to receive counseling. This applies to people of all genders from any service era.", + "field_vet_center_type_of_care": "counseling", + "field_vha_healthservice_stopcode": null, + "field_also_known_as": null, + "field_commonly_treated_condition": null, + "field_enforce_unique_combo_servi": null, + "field_facility_service_descripti": null, + "links": { + "self": { + "href": "https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/taxonomy_term/health_care_service_taxonomy/cbf56f2b-8941-4925-960b-875ec1c2f89e?resourceVersion=id%3A1272" + } + }, + "resourceIdObjMeta": { + "drupal_internal__target_id": 116 + }, + "vid": { + "type": "taxonomy_vocabulary--taxonomy_vocabulary", + "id": "1ae4c52e-f750-44eb-9e53-e10234617743", "resourceIdObjMeta": { - "links": { - "help": { - "href": "https://www.drupal.org/docs/8/modules/json-api/core-concepts#virtual", - "meta": { - "about": "Usage and meaning of the 'virtual' resource identifier." + "drupal_internal__target_id": "health_care_service_taxonomy" + } + }, + "revision_user": { + "type": "user--user", + "id": "20b2bc97-2210-4def-9a0f-46c22d250eb7", + "resourceIdObjMeta": { + "drupal_internal__target_id": 0 + } + }, + "parent": [ + { + "type": "taxonomy_term--health_care_service_taxonomy", + "id": "virtual", + "resourceIdObjMeta": { + "links": { + "help": { + "href": "https://www.drupal.org/docs/8/modules/json-api/core-concepts#virtual", + "meta": { + "about": "Usage and meaning of the 'virtual' resource identifier." + } } } } } - } - ], - "content_translation_uid": null, - "field_owner": { - "type": "taxonomy_term--administration", - "id": "missing", - "resourceIdObjMeta": { - "links": { - "help": { - "href": "https://www.drupal.org/docs/8/modules/json-api/core-concepts#missing", - "meta": { - "about": "Usage and meaning of the 'missing' resource identifier." + ], + "content_translation_uid": null, + "field_owner": { + "type": "taxonomy_term--administration", + "id": "missing", + "resourceIdObjMeta": { + "links": { + "help": { + "href": "https://www.drupal.org/docs/8/modules/json-api/core-concepts#missing", + "meta": { + "about": "Usage and meaning of the 'missing' resource identifier." + } } } } - } + }, + "field_vba_service_regions": [], + "relationshipNames": [ + "vid", + "revision_user", + "parent", + "content_translation_uid", + "field_owner", + "field_vba_service_regions" + ] }, - "field_vba_service_regions": [], "relationshipNames": [ - "vid", - "revision_user", - "parent", - "content_translation_uid", - "field_owner", - "field_vba_service_regions" + "node_type", + "revision_uid", + "uid", + "field_administration", + "field_office", + "field_service_name_and_descripti" ] - }, - "relationshipNames": [ - "node_type", - "revision_uid", - "uid", - "field_administration", - "field_office", - "field_service_name_and_descripti" - ] -} + } +] diff --git a/src/mocks/promoBlock.mock.js b/src/mocks/promoBlock.mock.js new file mode 100644 index 000000000..f907cfdf0 --- /dev/null +++ b/src/mocks/promoBlock.mock.js @@ -0,0 +1,224 @@ +export const mockResponse = { + type: 'block_content--promo', + id: '4a9807dc-7656-4792-b5f9-1a0a80eb2424', + drupal_internal__id: 14, + drupal_internal__revision_id: 166, + langcode: 'en', + revision_created: '2019-06-04T20:02:48+00:00', + status: true, + info: 'Confirm your VA benefit status', + changed: '2019-06-04T20:02:48+00:00', + reusable: true, + default_langcode: true, + revision_translation_affected: true, + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: '| Veterans Affairs', + }, + }, + ], + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/block_content/promo/4a9807dc-7656-4792-b5f9-1a0a80eb2424?resourceVersion=id%3A166', + }, + }, + block_content_type: { + type: 'block_content_type--block_content_type', + id: '0a87c177-4b3c-4cf5-bcae-1f0c432da52b', + resourceIdObjMeta: { + drupal_internal__target_id: 'promo', + }, + }, + revision_user: { + type: 'user--user', + id: 'c0745381-8e20-40da-9540-5a7d2eee1b35', + resourceIdObjMeta: { + drupal_internal__target_id: 86, + }, + }, + field_image: { + type: 'media--image', + id: '84efa2f5-9d94-4d54-8fc7-9c9d43021e76', + drupal_internal__mid: 9, + drupal_internal__vid: 9, + langcode: 'en', + status: true, + name: 'records.png', + created: '2019-01-28T20:46:40+00:00', + changed: '2019-03-22T19:01:43+00:00', + path: { + alias: '/media/image/9', + pid: 70, + langcode: 'en', + }, + field_description: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/media/image/84efa2f5-9d94-4d54-8fc7-9c9d43021e76?resourceVersion=id%3A9', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 9, + }, + bundle: { + type: 'media_type--media_type', + id: '92f64a34-81e5-4094-82a9-4fe61d7f2227', + resourceIdObjMeta: { + drupal_internal__target_id: 'image', + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + thumbnail: { + type: 'file--file', + id: '63ab88b7-ab8d-4a52-b59e-b93b63056cd2', + drupal_internal__fid: 9, + langcode: 'en', + filename: 'records.png', + uri: { + value: 'public://hub_promos/records.png', + url: '/sites/default/files/hub_promos/records.png', + }, + filemime: 'image/png', + filesize: 58286, + status: true, + created: '2019-01-28T20:45:49+00:00', + changed: '2019-01-28T20:46:40+00:00', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/file/file/63ab88b7-ab8d-4a52-b59e-b93b63056cd2', + }, + }, + resourceIdObjMeta: { + alt: null, + title: null, + width: 456, + height: 304, + drupal_internal__target_id: 9, + }, + uid: null, + relationshipNames: ['uid'], + }, + image: { + type: 'file--file', + id: '63ab88b7-ab8d-4a52-b59e-b93b63056cd2', + drupal_internal__fid: '9', + langcode: 'en', + filename: 'records.png', + uri: { + value: 'public://hub_promos/records.png', + url: '/sites/default/files/hub_promos/records.png', + }, + filemime: 'image/png', + filesize: 58286, + status: true, + created: '2019-01-28T20:45:49+00:00', + changed: '2019-01-28T20:46:40+00:00', + links: { + '2_1_large': { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/sites/default/files/styles/2_1_large/public/2020-04/040120_FEATURE_MarchFCVet20.png', + meta: { + linkParams: { + width: 200, + height: 200, + }, + }, + }, + '3_2_medium_thumbnail': { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/sites/default/files/styles/7_2_medium_thumbnail/public/2020-04/040120_FEATURE_MarchFCVet20.png', + meta: { + linkParams: { + width: 400, + height: 100, + }, + }, + }, + full_content_width: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/sites/default/files/styles/full_content_width/public/2020-04/040120_FEATURE_MarchFCVet20.png', + meta: { + linkParams: { + width: 200, + height: 200, + }, + }, + }, + }, + resourceIdObjMeta: { + alt: null, + title: null, + width: 456, + height: 304, + drupal_internal__target_id: 9, + }, + uid: null, + relationshipNames: ['uid'], + }, + relationshipNames: ['bundle', 'uid', 'thumbnail', 'image'], + }, + field_owner: { + type: 'taxonomy_term--administration', + id: 'cf0807aa-0b82-45cb-9c66-6bedae9555f2', + resourceIdObjMeta: { + drupal_internal__target_id: 76, + }, + }, + field_promo_link: { + type: 'paragraph--link_teaser', + id: '69620159-bb03-45bc-915e-35147050d1d8', + drupal_internal__id: 3546, + drupal_internal__revision_id: 14619, + langcode: 'en', + status: true, + created: '2019-03-22T19:02:00+00:00', + parent_id: '14', + parent_type: 'block_content', + parent_field_name: 'field_promo_link', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_link: { + uri: 'internal:/records/download-va-letters/', + title: 'Confirm your VA benefit status', + options: [], + url: '/records/download-va-letters', + }, + field_link_summary: + 'Download letters like your eligibility or award letter for certain benefits.', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/link_teaser/69620159-bb03-45bc-915e-35147050d1d8?resourceVersion=id%3A14619', + }, + }, + resourceIdObjMeta: { + target_revision_id: 14619, + drupal_internal__target_id: 3546, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '072db7a4-476e-41a6-ab49-c44184281451', + resourceIdObjMeta: { + drupal_internal__target_id: 'link_teaser', + }, + }, + relationshipNames: ['paragraph_type'], + }, + relationshipNames: [ + 'block_content_type', + 'revision_user', + 'field_image', + 'field_owner', + 'field_promo_link', + ], +} diff --git a/src/mocks/reactWidget.mock.js b/src/mocks/reactWidget.mock.js new file mode 100644 index 000000000..927711340 --- /dev/null +++ b/src/mocks/reactWidget.mock.js @@ -0,0 +1,49 @@ +export const mockResponse = { + type: 'paragraph--react_widget', + id: '5663a0dd-a69c-40b7-b50b-526646e32204', + drupal_internal__id: 4102, + drupal_internal__revision_id: 16094, + langcode: 'en', + status: true, + created: '2019-06-14T19:08:46+00:00', + parent_id: '4100', + parent_type: 'paragraph', + parent_field_name: 'field_answer', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_cta_widget: false, + field_default_link: { + uri: 'internal:/pension/application/527EZ', + title: 'Apply for Veterans Pension Benefits', + options: [], + url: '/pension/application/527EZ', + }, + field_error_message: { + value: + 'We’re sorry. Something went wrong when we tried to load your saved application.We offer some life insurance programs to service members and Veterans that are now closed to new enrollees. Learn more about these programs and what to do if you want to convert your policy.
\r\n', + format: 'rich_text_limited', + processed: + 'We offer some life insurance programs to service members and Veterans that are now closed to new enrollees. Learn more about these programs and what to do if you want to convert your policy.
\n', + }, + field_last_saved_by_an_editor: null, + field_table_of_contents_boolean: false, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/support_resources_detail_page/5b4943dc-764e-454c-a698-dd3f0bc0df32?resourceVersion=id%3A357850', + }, + }, + node_type: { + type: 'node_type--node_type', + id: '01022f3a-faa7-4df6-8394-989eb6230b77', + resourceIdObjMeta: { + drupal_internal__target_id: 'support_resources_detail_page', + }, + }, + revision_uid: { + type: 'user--user', + id: '38daa8d4-3d05-48a3-bb95-a9c75988e382', + resourceIdObjMeta: { + drupal_internal__target_id: 295, + }, + }, + uid: { + type: 'user--user', + id: 'ee1fb49c-70d5-4e82-9b0d-e6c73dde0489', + resourceIdObjMeta: { + drupal_internal__target_id: 1343, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: '40ef8d64-fa92-41b6-88c0-4d85dc24e191', + resourceIdObjMeta: { + drupal_internal__target_id: 194, + }, + }, + field_alert_single: { + type: 'paragraph--alert_single', + id: 'd275ba42-1992-45bf-862a-9b04d5f98c48', + drupal_internal__id: 23307, + drupal_internal__revision_id: 193879, + langcode: 'en', + status: true, + created: '2020-12-18T18:21:27+00:00', + parent_id: '15063', + parent_type: 'node', + parent_field_name: 'field_alert_single', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: null, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_alert_selection: 'NA', + field_markup: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/alert_single/d275ba42-1992-45bf-862a-9b04d5f98c48?resourceVersion=id%3A193879', + }, + }, + resourceIdObjMeta: { + target_revision_id: 193879, + drupal_internal__target_id: 23307, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: 'f2e64319-f14b-4bc1-8674-4661358e4242', + resourceIdObjMeta: { + drupal_internal__target_id: 'alert_single', + }, + }, + field_alert_block_reference: null, + field_alert_non_reusable_ref: null, + relationshipNames: [ + 'paragraph_type', + 'field_alert_block_reference', + 'field_alert_non_reusable_ref', + ], + }, + field_buttons: [ + { + type: 'paragraph--button', + id: 'b5c88633-834f-4fc6-b119-2d1f95999820', + drupal_internal__id: 23308, + drupal_internal__revision_id: 193880, + langcode: 'en', + status: true, + created: '2020-12-18T18:21:27+00:00', + parent_id: '15063', + parent_type: 'node', + parent_field_name: 'field_buttons', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: null, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_button_label: 'Explore VA life insurance ', + field_button_link: { + uri: 'entity:node/77', + title: 'VA life insurance', + options: [], + url: '/life-insurance', + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/button/b5c88633-834f-4fc6-b119-2d1f95999820?resourceVersion=id%3A193880', + }, + }, + resourceIdObjMeta: { + target_revision_id: 193880, + drupal_internal__target_id: 23308, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: 'f2ea2f57-89da-43d4-be22-ba46d728a286', + resourceIdObjMeta: { + drupal_internal__target_id: 'button', + }, + }, + relationshipNames: ['paragraph_type'], + }, + ], + field_content_block: [ + { + type: 'paragraph--wysiwyg', + id: '6f28ef70-df39-413f-b867-ba7ba63ecb30', + drupal_internal__id: 23310, + drupal_internal__revision_id: 193882, + langcode: 'en', + status: true, + created: '2020-12-18T18:22:01+00:00', + parent_id: '15063', + parent_type: 'node', + parent_field_name: 'field_content_block', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_wysiwyg: { + value: + "Veterans insured: WWI
\r\nYears issued: 1919 to 1951
\r\nPolicies still in force: Fewer than 8,000
\r\nAverage age of policyholders: 88 years old
Policies were issued in a variety of permanent plans and as renewable term insurance. The maximum face amount of a USGLI policy is $10,000. All USGLI policies were declared paid up as of January 1, 1983, meaning that no further premium payments were due. Annual dividends continue to be paid on these policies.
\r\n\r\nVeterans with a 5-Year Level Premium plan under the USGLI program had the opportunity to exchange it for a special endowment plan payable at age 96.
\r\n\r\nThis is a term life insurance plan that provides coverage until the year of the Veteran's 96th birthday. If the Veteran dies before age 96, the insurance payout goes to the plan beneficiary. If the Veteran reaches the policy anniversary closest to their 96th birthday, they receive the face value of the policy, minus any amount borrowed against it.
\r\n\r\nFor example, if the Veteran's policy anniversary is September 1 and their birthday is October 1, they would receive the policy payout on September 1.
\r\n\r\nPolicy proceeds are paid either in a lump sum or on an installment basis.
\r\n\r\nThis plan doesn't provide permanent and total disability benefits.
\r\n\r\nIt doesn't provide a waiver of premium once in force, though a waiver of premium provision could have been purchased at the time this plan was exchanged for the 5-Year Level Premium plan.
\r\n\r\nVeterans insured: WWII
\r\nYears issued: 1940 to 1951
\r\nPolicies still in force: 950,000
\r\nAverage age of policyholders: 81 years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit doesn't include paid-up additional insurance, which can be purchased with the annual dividends. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
\r\n\r\nPremium rates are capped at age 70. This means that a term policyholder's premium will never increase over the age 70 premium rate.
\r\n\r\nEffective September 11, 2000, \"capped\" NSLI term policies receive a termination dividend if a policy lapses, or if the policyholder voluntarily cancels their policy. The termination dividend will be used to purchase paid-up additional whole life insurance.
\r\n\r\nVeterans insured: Korean War
\r\nYears issued: 1951 to 1956
\r\nPolicies still in force: 181,000
\r\nAverage age of policyholders: 75 years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit does not include paid-up additional insurance, which can be purchased with the annual dividends. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
\r\n\r\nPremium rates are capped at age 70. This means that a term policyholder's premium will never increase over the age 70 premium rate. This means that the annual premium for these policies will not exceed $69.73 per $1,000 of coverage.
\r\n\r\nEffective September 11, 2000, \"capped\" VSLI term policies receive a termination dividend if a policy lapses, or if the policyholder voluntarily cancels their policy. The termination dividend will be used to purchase paid-up additional whole life insurance.
\r\n\r\nVeterans insured: Disabled WWII and Korean War
\r\nYears issued: 1965 to 1966
\r\nPolicies still in force: More than 41,000
\r\nAverage age of policyholders: ?? years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit doesn't include paid-up additional insurance, which can be purchased with the dividends that are paid annually on these policies. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
\r\n\r\nCall our VA Insurance Center at 800-669-8477. We're here Monday through Friday, 8:30 a.m. to 6:00 p.m. ET.
\r\n", + format: 'rich_text', + processed: + "Veterans insured: WWI
\nYears issued: 1919 to 1951
\nPolicies still in force: Fewer than 8,000
\nAverage age of policyholders: 88 years old
Policies were issued in a variety of permanent plans and as renewable term insurance. The maximum face amount of a USGLI policy is $10,000. All USGLI policies were declared paid up as of January 1, 1983, meaning that no further premium payments were due. Annual dividends continue to be paid on these policies.
\n\nVeterans with a 5-Year Level Premium plan under the USGLI program had the opportunity to exchange it for a special endowment plan payable at age 96.
\n\nThis is a term life insurance plan that provides coverage until the year of the Veteran's 96th birthday. If the Veteran dies before age 96, the insurance payout goes to the plan beneficiary. If the Veteran reaches the policy anniversary closest to their 96th birthday, they receive the face value of the policy, minus any amount borrowed against it.
\n\nFor example, if the Veteran's policy anniversary is September 1 and their birthday is October 1, they would receive the policy payout on September 1.
\n\nPolicy proceeds are paid either in a lump sum or on an installment basis.
\n\nThis plan doesn't provide permanent and total disability benefits.
\n\nIt doesn't provide a waiver of premium once in force, though a waiver of premium provision could have been purchased at the time this plan was exchanged for the 5-Year Level Premium plan.
\n\nVeterans insured: WWII
\nYears issued: 1940 to 1951
\nPolicies still in force: 950,000
\nAverage age of policyholders: 81 years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit doesn't include paid-up additional insurance, which can be purchased with the annual dividends. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
\n\nPremium rates are capped at age 70. This means that a term policyholder's premium will never increase over the age 70 premium rate.
\n\nEffective September 11, 2000, \"capped\" NSLI term policies receive a termination dividend if a policy lapses, or if the policyholder voluntarily cancels their policy. The termination dividend will be used to purchase paid-up additional whole life insurance.
\n\nVeterans insured: Korean War
\nYears issued: 1951 to 1956
\nPolicies still in force: 181,000
\nAverage age of policyholders: 75 years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit does not include paid-up additional insurance, which can be purchased with the annual dividends. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
\n\nPremium rates are capped at age 70. This means that a term policyholder's premium will never increase over the age 70 premium rate. This means that the annual premium for these policies will not exceed $69.73 per $1,000 of coverage.
\n\nEffective September 11, 2000, \"capped\" VSLI term policies receive a termination dividend if a policy lapses, or if the policyholder voluntarily cancels their policy. The termination dividend will be used to purchase paid-up additional whole life insurance.
\n\nVeterans insured: Disabled WWII and Korean War
\nYears issued: 1965 to 1966
\nPolicies still in force: More than 41,000
\nAverage age of policyholders: ?? years old
Annual dividends are paid on these policies. The maximum face amount of a policy is $10,000. However, this limit doesn't include paid-up additional insurance, which can be purchased with the dividends that are paid annually on these policies. Certain disability benefits are available under these policies for policyholders who become totally disabled before their 65th birthday.
\n\nCall our VA Insurance Center at 800-669-8477. We're here Monday through Friday, 8:30 a.m. to 6:00 p.m. ET.
", + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/wysiwyg/6f28ef70-df39-413f-b867-ba7ba63ecb30?resourceVersion=id%3A193882', + }, + }, + resourceIdObjMeta: { + target_revision_id: 193882, + drupal_internal__target_id: 23310, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '885e4b61-cfd2-44b9-94ae-f068ba2b48b6', + resourceIdObjMeta: { + drupal_internal__target_id: 'wysiwyg', + }, + }, + relationshipNames: ['paragraph_type'], + }, + ], + field_contact_information: { + type: 'paragraph--contact_information', + id: 'ab6ce4bb-c9c4-426a-a157-7db1b9c4e70e', + drupal_internal__id: 23309, + drupal_internal__revision_id: 193881, + langcode: 'en', + status: true, + created: '2020-12-18T18:21:27+00:00', + parent_id: '15063', + parent_type: 'node', + parent_field_name: 'field_contact_information', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: null, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_contact_info_switch: 'DC', + field_markup: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/contact_information/ab6ce4bb-c9c4-426a-a157-7db1b9c4e70e?resourceVersion=id%3A193881', + }, + }, + resourceIdObjMeta: { + target_revision_id: 193881, + drupal_internal__target_id: 23309, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '4619702e-c2f3-4e29-90c0-a0e2a89c20c4', + resourceIdObjMeta: { + drupal_internal__target_id: 'contact_information', + }, + }, + field_additional_contact: null, + field_benefit_hub_contacts: null, + field_contact_default: { + type: 'node--support_service', + id: '79938f13-7be8-4ce6-92ea-35671532c645', + drupal_internal__nid: 61, + drupal_internal__vid: 338480, + langcode: 'en', + revision_timestamp: '2019-06-03T18:39:41+00:00', + status: true, + title: 'MyVA411 main information line:', + created: '2019-01-28T20:48:53+00:00', + changed: '2019-06-03T18:39:41+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office/myva411-main-information-line', + title: 'MyVA411 main information line:', + options: [], + }, + ], + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'MyVA411 main information line: | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'MyVA411 main information line: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'MyVA411 main information line: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office/myva411-main-information-line', + pid: 199, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_last_saved_by_an_editor: '2019-06-03T18:39:40+00:00', + field_link: { + uri: 'tel:1-800-698-2411', + title: '', + options: [], + url: 'tel:1-800-698-2411', + }, + field_phone_number: '800-698-2411', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645?resourceVersion=id%3A338480', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 61, + }, + node_type: { + type: 'node_type--node_type', + id: '27533ffc-851f-4edc-8465-518ea2414b27', + resourceIdObjMeta: { + drupal_internal__target_id: 'support_service', + }, + }, + revision_uid: { + type: 'user--user', + id: 'e62ded06-1de9-4617-bd70-595036edc7ee', + resourceIdObjMeta: { + drupal_internal__target_id: 89, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: '2c331a6d-b525-4f0c-8bea-4ecde41c7ef0', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_office: { + type: 'node--office', + id: 'c715d441-b6cb-4067-92eb-0650e97b7d62', + drupal_internal__nid: 126, + drupal_internal__vid: 10606, + langcode: 'en', + revision_timestamp: '2019-09-04T19:14:37+00:00', + status: false, + title: 'VA Central Office', + created: '2019-03-04T14:12:28+00:00', + changed: '2019-09-04T19:14:37+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + ], + moderation_state: 'archived', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office', + pid: 192, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_body: null, + field_description: null, + field_email_updates_link: null, + field_external_link: null, + field_last_saved_by_an_editor: null, + field_meta_tags: null, + field_office_id: null, + field_social_media_links: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/office/c715d441-b6cb-4067-92eb-0650e97b7d62?resourceVersion=id%3A10606', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 126, + }, + node_type: { + type: 'node_type--node_type', + id: '60cde818-b36c-4c05-a3c9-4c045a14787a', + resourceIdObjMeta: { + drupal_internal__target_id: 'office', + }, + }, + revision_uid: { + type: 'user--user', + id: '8bea8773-6a06-4afd-99b5-1dfa7a2192ea', + resourceIdObjMeta: { + drupal_internal__target_id: 197, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_parent_office: null, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_parent_office', + ], + }, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_office', + ], + }, + relationshipNames: [ + 'paragraph_type', + 'field_additional_contact', + 'field_benefit_hub_contacts', + 'field_contact_default', + ], + }, + field_other_categories: [], + field_primary_category: { + type: 'taxonomy_term--lc_categories', + id: '3f79ad6d-7146-464c-9f6a-c3546a90d9a7', + drupal_internal__tid: '283', + drupal_internal__revision_id: 1404, + langcode: 'en', + revision_created: '2022-11-04T20:07:29+00:00', + status: true, + name: 'Other topics and questions', + description: null, + weight: 1, + changed: '2022-11-04T20:07:29+00:00', + default_langcode: true, + revision_translation_affected: true, + moderation_state: null, + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'Other topics and questions | VA.gov CMS', + }, + }, + { + tag: 'link', + attributes: { + rel: 'canonical', + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/resources/other-topics-and-questions', + }, + }, + ], + path: { + alias: '/resources/other-topics-and-questions', + pid: 11286, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_created: null, + field_enforce_unique_value: null, + field_topic_id: 'other', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/taxonomy_term/lc_categories/3f79ad6d-7146-464c-9f6a-c3546a90d9a7?resourceVersion=id%3A1404', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 283, + }, + vid: { + type: 'taxonomy_vocabulary--taxonomy_vocabulary', + id: '31c71133-d63c-4b27-91e7-e3583ec1eb63', + resourceIdObjMeta: { + drupal_internal__target_id: 'lc_categories', + }, + }, + revision_user: { + type: 'user--user', + id: '20b2bc97-2210-4def-9a0f-46c22d250eb7', + resourceIdObjMeta: { + drupal_internal__target_id: 0, + }, + }, + parent: [ + { + type: 'taxonomy_term--lc_categories', + id: 'virtual', + resourceIdObjMeta: { + links: { + help: { + href: 'https://www.drupal.org/docs/8/modules/json-api/core-concepts#virtual', + meta: { + about: + "Usage and meaning of the 'virtual' resource identifier.", + }, + }, + }, + }, + }, + ], + content_translation_uid: null, + relationshipNames: [ + 'vid', + 'revision_user', + 'parent', + 'content_translation_uid', + ], + }, + field_related_benefit_hubs: [ + { + type: 'node--landing_page', + id: '33cd69ba-e93c-460a-bf9e-41aaf8ff67af', + drupal_internal__nid: 77, + drupal_internal__vid: 846756, + langcode: 'en', + revision_timestamp: '2024-02-28T19:04:51+00:00', + status: true, + title: 'VA life insurance', + created: '2019-02-06T16:37:17+00:00', + changed: '2024-02-28T19:04:51+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'internal:#', + title: 'Life insurance', + options: [], + }, + ], + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'VA life insurance | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'description', + content: + "VA life insurance can offer financial security for Veterans, service members, and their spouses and dependent children. Explore your options, manage your policy, and file claims to get the insurance benefits you've earned.", + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'http://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/sites/default/files/hub_promos/life-insurance.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'VA life insurance | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:description', + content: + "VA life insurance can offer financial security for Veterans, service members, and their spouses and dependent children. Explore your options, manage your policy, and file claims to get the insurance benefits you've earned.", + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: + 'http://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/sites/default/files/hub_promos/life-insurance.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:description', + content: + 'Explore VA life insurance options for Veterans, service members, and eligible family members. Manage your Veterans life insurance policy online, file claims for benefits, and access helpful resources.', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'VA life insurance | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: + 'http://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/sites/default/files/hub_promos/life-insurance.png', + }, + }, + ], + path: { + alias: '/life-insurance', + pid: 1122, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_description: + 'Explore VA life insurance options for Veterans, service members, and eligible family members. Manage your Veterans life insurance policy online, file claims for benefits, and access helpful resources.', + field_home_page_hub_label: 'Life insurance', + field_intro_text: + "VA life insurance can offer financial security for Veterans, service members, and their spouses and dependent children. Explore your options, manage your policy, and file claims to get the insurance benefits you've earned.", + field_last_saved_by_an_editor: '2024-02-28T19:04:51+00:00', + field_links: [], + field_meta_tags: null, + field_plainlanguage_date: null, + field_teaser_text: + 'Explore VA life insurance options for Veterans, service members, and families. Manage your policy online, file claims for benefits, and access helpful resources.', + field_title_icon: 'life-insurance', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/landing_page/33cd69ba-e93c-460a-bf9e-41aaf8ff67af?resourceVersion=id%3A846756', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 77, + }, + node_type: { + type: 'node_type--node_type', + id: '9bf68a65-e5fb-42ab-b13e-ee905507aeac', + resourceIdObjMeta: { + drupal_internal__target_id: 'landing_page', + }, + }, + revision_uid: { + type: 'user--user', + id: '6502418d-3e06-427d-99a6-0717afaad249', + resourceIdObjMeta: { + drupal_internal__target_id: 4031, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: '2c331a6d-b525-4f0c-8bea-4ecde41c7ef0', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_alert: null, + field_promo: { + type: 'block_content--promo', + id: 'a80e6a18-967e-4b05-a03b-aaeab1b3c0ee', + drupal_internal__id: 26, + drupal_internal__revision_id: 232, + langcode: 'en', + revision_created: '2019-09-09T13:40:56+00:00', + status: true, + info: 'VA Transition Assistance Program', + changed: '2019-09-09T13:40:56+00:00', + reusable: true, + default_langcode: true, + revision_translation_affected: true, + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: '| Veterans Affairs', + }, + }, + ], + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/block_content/promo/a80e6a18-967e-4b05-a03b-aaeab1b3c0ee?resourceVersion=id%3A232', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 26, + }, + block_content_type: { + type: 'block_content_type--block_content_type', + id: '0a87c177-4b3c-4cf5-bcae-1f0c432da52b', + resourceIdObjMeta: { + drupal_internal__target_id: 'promo', + }, + }, + revision_user: { + type: 'user--user', + id: '8bea8773-6a06-4afd-99b5-1dfa7a2192ea', + resourceIdObjMeta: { + drupal_internal__target_id: 197, + }, + }, + field_image: { + type: 'media--image', + id: 'a547d06c-2465-4927-80a3-aa28e7f0f380', + drupal_internal__mid: 7, + drupal_internal__vid: 7, + status: true, + name: 'life-insurance.png', + created: '2019-01-28T20:46:39+00:00', + changed: '2019-03-22T19:01:43+00:00', + path: { + alias: '/media/image/7', + pid: 68, + langcode: 'en', + }, + field_description: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/media/image/a547d06c-2465-4927-80a3-aa28e7f0f380?resourceVersion=id%3A7', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 7, + }, + bundle: { + type: 'media_type--media_type', + id: '92f64a34-81e5-4094-82a9-4fe61d7f2227', + resourceIdObjMeta: { + drupal_internal__target_id: 'image', + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + thumbnail: { + type: 'file--file', + id: '18990d80-b850-4d42-81a2-d0c8421f9b30', + resourceIdObjMeta: { + alt: null, + title: null, + width: 456, + height: 304, + drupal_internal__target_id: 7, + }, + }, + image: { + type: 'file--file', + id: '18990d80-b850-4d42-81a2-d0c8421f9b30', + resourceIdObjMeta: { + alt: null, + title: null, + width: 456, + height: 304, + drupal_internal__target_id: 7, + }, + }, + relationshipNames: ['bundle', 'uid', 'thumbnail', 'image'], + }, + field_owner: { + type: 'taxonomy_term--administration', + id: 'missing', + resourceIdObjMeta: { + links: { + help: { + href: 'https://www.drupal.org/docs/8/modules/json-api/core-concepts#missing', + meta: { + about: + "Usage and meaning of the 'missing' resource identifier.", + }, + }, + }, + }, + }, + field_promo_link: { + type: 'paragraph--link_teaser', + id: '3cf24be4-f28b-41ed-97ea-74b4f79a3133', + resourceIdObjMeta: { + target_revision_id: 29599, + drupal_internal__target_id: 5534, + }, + }, + relationshipNames: [ + 'block_content_type', + 'revision_user', + 'field_image', + 'field_owner', + 'field_promo_link', + ], + }, + field_related_links: { + type: 'paragraph--list_of_link_teasers', + id: 'c12b1e10-9fea-4a15-83b5-3298ee796a06', + drupal_internal__id: 4839, + drupal_internal__revision_id: 1214734, + langcode: 'en', + status: true, + created: '2019-07-30T18:46:32+00:00', + parent_id: '77', + parent_type: 'node', + parent_field_name: 'field_related_links', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_title: 'Other VA benefits and services', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/list_of_link_teasers/c12b1e10-9fea-4a15-83b5-3298ee796a06?resourceVersion=id%3A1214734', + }, + }, + resourceIdObjMeta: { + target_revision_id: 1214734, + drupal_internal__target_id: 4839, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '17be725c-343b-4050-a3c0-4e953226233e', + resourceIdObjMeta: { + drupal_internal__target_id: 'list_of_link_teasers', + }, + }, + field_va_paragraphs: [ + { + type: 'paragraph--link_teaser', + id: 'cf0ca732-e65c-46c8-958d-13e95056bdb1', + resourceIdObjMeta: { + target_revision_id: 1214731, + drupal_internal__target_id: 4840, + }, + }, + { + type: 'paragraph--link_teaser', + id: 'b7790ed3-1223-4340-b236-0615880e88ca', + resourceIdObjMeta: { + target_revision_id: 1214732, + drupal_internal__target_id: 4841, + }, + }, + { + type: 'paragraph--link_teaser', + id: '861129d0-ae46-42c8-9eff-8b6574f54996', + resourceIdObjMeta: { + target_revision_id: 1214733, + drupal_internal__target_id: 4842, + }, + }, + ], + relationshipNames: ['paragraph_type', 'field_va_paragraphs'], + }, + field_related_office: { + type: 'node--office', + id: 'd7357aee-37bd-45e3-b8df-9f405614e56d', + drupal_internal__nid: 38442, + drupal_internal__vid: 605216, + langcode: 'en', + revision_timestamp: '2022-01-11T21:13:42+00:00', + status: false, + title: 'VACO', + created: '2021-11-10T16:02:33+00:00', + changed: '2022-01-11T21:13:42+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/vaco', + title: 'VACO', + options: [], + }, + ], + moderation_state: 'draft', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'VACO | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'VACO | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'VACO | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/vaco', + pid: 47721, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_body: null, + field_description: null, + field_email_updates_link: { + uri: 'https://public.govdelivery.com/accounts/USVA/subscriber/new/', + title: 'VACO Email Updates', + options: [], + url: 'https://public.govdelivery.com/accounts/USVA/subscriber/new/', + }, + field_external_link: { + uri: 'https://www.va.gov/', + title: 'Veterans Affairs', + options: [], + url: 'https://www.va.gov/', + }, + field_last_saved_by_an_editor: null, + field_meta_tags: null, + field_office_id: null, + field_social_media_links: { + platform: null, + value: null, + platform_values: { + twitter: { + value: 'DeptVetAffairs', + }, + facebook: { + value: 'VeteransAffairs', + }, + youtube: { + value: 'DeptVetAffairs', + }, + instagram: { + value: 'deptvetaffairs', + }, + linkedin: { + value: '', + }, + }, + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/office/d7357aee-37bd-45e3-b8df-9f405614e56d?resourceVersion=id%3A605216', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 38442, + }, + node_type: { + type: 'node_type--node_type', + id: '60cde818-b36c-4c05-a3c9-4c045a14787a', + resourceIdObjMeta: { + drupal_internal__target_id: 'office', + }, + }, + revision_uid: { + type: 'user--user', + id: 'c487c496-7d2f-45b5-86b9-5afa00640084', + resourceIdObjMeta: { + drupal_internal__target_id: 3237, + }, + }, + uid: { + type: 'user--user', + id: 'c487c496-7d2f-45b5-86b9-5afa00640084', + resourceIdObjMeta: { + drupal_internal__target_id: 3237, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_parent_office: null, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_parent_office', + ], + }, + field_spokes: [ + { + type: 'paragraph--list_of_link_teasers', + id: '76d7c99b-13a7-4c96-a546-441ddf500e0a', + resourceIdObjMeta: { + target_revision_id: 1214738, + drupal_internal__target_id: 4843, + }, + }, + { + type: 'paragraph--list_of_link_teasers', + id: 'ec3e2bd9-6279-4c00-bec2-d953c3fc523e', + resourceIdObjMeta: { + target_revision_id: 1214748, + drupal_internal__target_id: 4847, + }, + }, + { + type: 'paragraph--list_of_link_teasers', + id: 'db01009d-6d01-4aad-b27a-99a01434220c', + resourceIdObjMeta: { + target_revision_id: 1214758, + drupal_internal__target_id: 4856, + }, + }, + ], + field_support_services: [ + { + type: 'node--support_service', + id: '0590d931-f955-4b85-83f1-2077f6f45225', + drupal_internal__nid: 76, + drupal_internal__vid: 646803, + langcode: 'en', + revision_timestamp: '2021-10-27T19:17:22+00:00', + status: true, + title: 'Support for VALife, S-DVI, and VMLI:', + created: '2019-02-06T16:37:17+00:00', + changed: '2021-10-27T19:17:22+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office/all-other-va-life-insurance-programs', + title: 'Support for VALife, S-DVI, and VMLI:', + options: [], + }, + ], + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: + 'Support for VALife, S-DVI, and VMLI: | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: + 'Support for VALife, S-DVI, and VMLI: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: + 'Support for VALife, S-DVI, and VMLI: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office/all-other-va-life-insurance-programs', + pid: 208, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_last_saved_by_an_editor: '2021-10-27T19:17:21+00:00', + field_link: { + uri: 'tel:+1-800-669-8477', + title: '', + options: [], + url: 'tel:+1-800-669-8477', + }, + field_phone_number: '800-669-8477', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/support_service/0590d931-f955-4b85-83f1-2077f6f45225?resourceVersion=id%3A646803', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 76, + }, + node_type: { + type: 'node_type--node_type', + id: '27533ffc-851f-4edc-8465-518ea2414b27', + resourceIdObjMeta: { + drupal_internal__target_id: 'support_service', + }, + }, + revision_uid: { + type: 'user--user', + id: '38daa8d4-3d05-48a3-bb95-a9c75988e382', + resourceIdObjMeta: { + drupal_internal__target_id: 295, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_office: { + type: 'node--office', + id: 'c715d441-b6cb-4067-92eb-0650e97b7d62', + drupal_internal__nid: 126, + drupal_internal__vid: 10606, + langcode: 'en', + revision_timestamp: '2019-09-04T19:14:37+00:00', + status: false, + title: 'VA Central Office', + created: '2019-03-04T14:12:28+00:00', + changed: '2019-09-04T19:14:37+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + ], + moderation_state: 'archived', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office', + pid: 192, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_body: null, + field_description: null, + field_email_updates_link: null, + field_external_link: null, + field_last_saved_by_an_editor: null, + field_meta_tags: null, + field_office_id: null, + field_social_media_links: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/office/c715d441-b6cb-4067-92eb-0650e97b7d62?resourceVersion=id%3A10606', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 126, + }, + node_type: { + type: 'node_type--node_type', + id: '60cde818-b36c-4c05-a3c9-4c045a14787a', + resourceIdObjMeta: { + drupal_internal__target_id: 'office', + }, + }, + revision_uid: { + type: 'user--user', + id: '8bea8773-6a06-4afd-99b5-1dfa7a2192ea', + resourceIdObjMeta: { + drupal_internal__target_id: 197, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_parent_office: null, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_parent_office', + ], + }, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_office', + ], + }, + { + type: 'node--support_service', + id: 'c52e1b29-46d0-4302-8d16-1b03aa6dbf27', + drupal_internal__nid: 37465, + drupal_internal__vid: 571263, + langcode: 'en', + revision_timestamp: '2021-10-27T19:18:03+00:00', + status: true, + title: 'Support for WWI, WWII, and Korean War era programs:', + created: '2021-10-27T19:15:57+00:00', + changed: '2021-10-27T19:18:03+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office/support-for-wwi-wwii-and-korean-war-era-programs', + title: 'Support for WWI, WWII, and Korean War era programs:', + options: [], + }, + ], + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: + 'Support for WWI, WWII, and Korean War era programs: | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: + 'Support for WWI, WWII, and Korean War era programs: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: + 'Support for WWI, WWII, and Korean War era programs: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: + '/va-central-office/support-for-wwi-wwii-and-korean-war-era-programs', + pid: 46076, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_last_saved_by_an_editor: '2021-10-27T19:18:02+00:00', + field_link: { + uri: 'tel:+1-800-669-8477', + title: '', + options: [], + url: 'tel:+1-800-669-8477', + }, + field_phone_number: '800-669-8477', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/support_service/c52e1b29-46d0-4302-8d16-1b03aa6dbf27?resourceVersion=id%3A571263', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 37465, + }, + node_type: { + type: 'node_type--node_type', + id: '27533ffc-851f-4edc-8465-518ea2414b27', + resourceIdObjMeta: { + drupal_internal__target_id: 'support_service', + }, + }, + revision_uid: { + type: 'user--user', + id: '38daa8d4-3d05-48a3-bb95-a9c75988e382', + resourceIdObjMeta: { + drupal_internal__target_id: 295, + }, + }, + uid: { + type: 'user--user', + id: '38daa8d4-3d05-48a3-bb95-a9c75988e382', + resourceIdObjMeta: { + drupal_internal__target_id: 295, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_office: { + type: 'node--office', + id: 'c715d441-b6cb-4067-92eb-0650e97b7d62', + drupal_internal__nid: 126, + drupal_internal__vid: 10606, + langcode: 'en', + revision_timestamp: '2019-09-04T19:14:37+00:00', + status: false, + title: 'VA Central Office', + created: '2019-03-04T14:12:28+00:00', + changed: '2019-09-04T19:14:37+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + ], + moderation_state: 'archived', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office', + pid: 192, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_body: null, + field_description: null, + field_email_updates_link: null, + field_external_link: null, + field_last_saved_by_an_editor: null, + field_meta_tags: null, + field_office_id: null, + field_social_media_links: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/office/c715d441-b6cb-4067-92eb-0650e97b7d62?resourceVersion=id%3A10606', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 126, + }, + node_type: { + type: 'node_type--node_type', + id: '60cde818-b36c-4c05-a3c9-4c045a14787a', + resourceIdObjMeta: { + drupal_internal__target_id: 'office', + }, + }, + revision_uid: { + type: 'user--user', + id: '8bea8773-6a06-4afd-99b5-1dfa7a2192ea', + resourceIdObjMeta: { + drupal_internal__target_id: 197, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_parent_office: null, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_parent_office', + ], + }, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_office', + ], + }, + { + type: 'node--support_service', + id: 'a16b5d5d-d821-40a6-aeb2-8e3488b2893e', + drupal_internal__nid: 75, + drupal_internal__vid: 571262, + langcode: 'en', + revision_timestamp: '2021-10-27T19:17:52+00:00', + status: true, + title: 'Support for the VGLI program, SGLI claims, and FSGLI claims:', + created: '2019-02-06T16:37:17+00:00', + changed: '2021-10-27T19:17:52+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office/support-for-sgli-or-vgli', + title: + 'Support for the VGLI program, SGLI claims, and FSGLI claims:', + options: [], + }, + ], + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: + 'Support for the VGLI program, SGLI claims, and FSGLI claims: | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: + 'Support for the VGLI program, SGLI claims, and FSGLI claims: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: + 'Support for the VGLI program, SGLI claims, and FSGLI claims: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office/support-for-sgli-or-vgli', + pid: 207, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_last_saved_by_an_editor: '2021-10-27T19:17:51+00:00', + field_link: { + uri: 'tel:+1-800-419-1473', + title: '', + options: [], + url: 'tel:+1-800-419-1473', + }, + field_phone_number: '800-419-1473', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/support_service/a16b5d5d-d821-40a6-aeb2-8e3488b2893e?resourceVersion=id%3A571262', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 75, + }, + node_type: { + type: 'node_type--node_type', + id: '27533ffc-851f-4edc-8465-518ea2414b27', + resourceIdObjMeta: { + drupal_internal__target_id: 'support_service', + }, + }, + revision_uid: { + type: 'user--user', + id: '38daa8d4-3d05-48a3-bb95-a9c75988e382', + resourceIdObjMeta: { + drupal_internal__target_id: 295, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_office: { + type: 'node--office', + id: 'c715d441-b6cb-4067-92eb-0650e97b7d62', + drupal_internal__nid: 126, + drupal_internal__vid: 10606, + langcode: 'en', + revision_timestamp: '2019-09-04T19:14:37+00:00', + status: false, + title: 'VA Central Office', + created: '2019-03-04T14:12:28+00:00', + changed: '2019-09-04T19:14:37+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + ], + moderation_state: 'archived', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office', + pid: 192, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_body: null, + field_description: null, + field_email_updates_link: null, + field_external_link: null, + field_last_saved_by_an_editor: null, + field_meta_tags: null, + field_office_id: null, + field_social_media_links: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/office/c715d441-b6cb-4067-92eb-0650e97b7d62?resourceVersion=id%3A10606', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 126, + }, + node_type: { + type: 'node_type--node_type', + id: '60cde818-b36c-4c05-a3c9-4c045a14787a', + resourceIdObjMeta: { + drupal_internal__target_id: 'office', + }, + }, + revision_uid: { + type: 'user--user', + id: '8bea8773-6a06-4afd-99b5-1dfa7a2192ea', + resourceIdObjMeta: { + drupal_internal__target_id: 197, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_parent_office: null, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_parent_office', + ], + }, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_office', + ], + }, + { + type: 'node--support_service', + id: '79938f13-7be8-4ce6-92ea-35671532c645', + drupal_internal__nid: 61, + drupal_internal__vid: 338480, + langcode: 'en', + revision_timestamp: '2019-06-03T18:39:41+00:00', + status: true, + title: 'MyVA411 main information line:', + created: '2019-01-28T20:48:53+00:00', + changed: '2019-06-03T18:39:41+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office/myva411-main-information-line', + title: 'MyVA411 main information line:', + options: [], + }, + ], + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'MyVA411 main information line: | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'MyVA411 main information line: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'MyVA411 main information line: | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office/myva411-main-information-line', + pid: 199, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_last_saved_by_an_editor: '2019-06-03T18:39:40+00:00', + field_link: { + uri: 'tel:1-800-698-2411', + title: '', + options: [], + url: 'tel:1-800-698-2411', + }, + field_phone_number: '800-698-2411', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/support_service/79938f13-7be8-4ce6-92ea-35671532c645?resourceVersion=id%3A338480', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 61, + }, + node_type: { + type: 'node_type--node_type', + id: '27533ffc-851f-4edc-8465-518ea2414b27', + resourceIdObjMeta: { + drupal_internal__target_id: 'support_service', + }, + }, + revision_uid: { + type: 'user--user', + id: 'e62ded06-1de9-4617-bd70-595036edc7ee', + resourceIdObjMeta: { + drupal_internal__target_id: 89, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: '2c331a6d-b525-4f0c-8bea-4ecde41c7ef0', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_office: { + type: 'node--office', + id: 'c715d441-b6cb-4067-92eb-0650e97b7d62', + drupal_internal__nid: 126, + drupal_internal__vid: 10606, + langcode: 'en', + revision_timestamp: '2019-09-04T19:14:37+00:00', + status: false, + title: 'VA Central Office', + created: '2019-03-04T14:12:28+00:00', + changed: '2019-09-04T19:14:37+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + ], + moderation_state: 'archived', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office', + pid: 192, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_body: null, + field_description: null, + field_email_updates_link: null, + field_external_link: null, + field_last_saved_by_an_editor: null, + field_meta_tags: null, + field_office_id: null, + field_social_media_links: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/office/c715d441-b6cb-4067-92eb-0650e97b7d62?resourceVersion=id%3A10606', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 126, + }, + node_type: { + type: 'node_type--node_type', + id: '60cde818-b36c-4c05-a3c9-4c045a14787a', + resourceIdObjMeta: { + drupal_internal__target_id: 'office', + }, + }, + revision_uid: { + type: 'user--user', + id: '8bea8773-6a06-4afd-99b5-1dfa7a2192ea', + resourceIdObjMeta: { + drupal_internal__target_id: 197, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_parent_office: null, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_parent_office', + ], + }, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_office', + ], + }, + { + type: 'node--support_service', + id: 'f01de83a-b111-444a-b7cc-748e0faf10fd', + drupal_internal__nid: 62, + drupal_internal__vid: 781876, + langcode: 'en', + revision_timestamp: '2019-06-03T18:39:41+00:00', + status: true, + title: 'Telecommunications Relay Services (using TTY)', + created: '2019-01-28T20:48:53+00:00', + changed: '2023-06-14T23:15:19+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office/if-you-have-hearing-loss-call-tty-711', + title: 'Telecommunications Relay Services (using TTY)', + options: [], + }, + ], + moderation_state: 'published', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: + 'Telecommunications Relay Services (using TTY) | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: + 'Telecommunications Relay Services (using TTY) | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: + 'Telecommunications Relay Services (using TTY) | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office/if-you-have-hearing-loss-call-tty-711', + pid: 200, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_last_saved_by_an_editor: '2019-06-03T18:39:40+00:00', + field_link: { + uri: 'tel:1+711', + title: '', + options: [], + url: 'tel:1+711', + }, + field_phone_number: 'TTY: 711', + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/support_service/f01de83a-b111-444a-b7cc-748e0faf10fd?resourceVersion=id%3A781876', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 62, + }, + node_type: { + type: 'node_type--node_type', + id: '27533ffc-851f-4edc-8465-518ea2414b27', + resourceIdObjMeta: { + drupal_internal__target_id: 'support_service', + }, + }, + revision_uid: { + type: 'user--user', + id: 'e62ded06-1de9-4617-bd70-595036edc7ee', + resourceIdObjMeta: { + drupal_internal__target_id: 89, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: '2c331a6d-b525-4f0c-8bea-4ecde41c7ef0', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_office: { + type: 'node--office', + id: 'c715d441-b6cb-4067-92eb-0650e97b7d62', + drupal_internal__nid: 126, + drupal_internal__vid: 10606, + langcode: 'en', + revision_timestamp: '2019-09-04T19:14:37+00:00', + status: false, + title: 'VA Central Office', + created: '2019-03-04T14:12:28+00:00', + changed: '2019-09-04T19:14:37+00:00', + promote: false, + sticky: false, + default_langcode: true, + revision_translation_affected: true, + breadcrumbs: [ + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/', + title: 'Home', + options: [], + }, + { + uri: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/va-central-office', + title: 'VA Central Office', + options: [], + }, + ], + moderation_state: 'archived', + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'link', + attributes: { + rel: 'image_src', + href: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:site_name', + content: 'Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + property: 'og:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:card', + content: 'summary_large_image', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:site', + content: '@DeptVetAffairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:title', + content: 'VA Central Office | Veterans Affairs', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image', + content: 'https://www.va.gov/img/design/logo/va-og-image.png', + }, + }, + { + tag: 'meta', + attributes: { + name: 'twitter:image:alt', + content: 'U.S. Department of Veterans Affairs', + }, + }, + ], + path: { + alias: '/va-central-office', + pid: 192, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + field_body: null, + field_description: null, + field_email_updates_link: null, + field_external_link: null, + field_last_saved_by_an_editor: null, + field_meta_tags: null, + field_office_id: null, + field_social_media_links: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/node/office/c715d441-b6cb-4067-92eb-0650e97b7d62?resourceVersion=id%3A10606', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 126, + }, + node_type: { + type: 'node_type--node_type', + id: '60cde818-b36c-4c05-a3c9-4c045a14787a', + resourceIdObjMeta: { + drupal_internal__target_id: 'office', + }, + }, + revision_uid: { + type: 'user--user', + id: '8bea8773-6a06-4afd-99b5-1dfa7a2192ea', + resourceIdObjMeta: { + drupal_internal__target_id: 197, + }, + }, + uid: { + type: 'user--user', + id: 'b02c2ff5-dfe1-4542-beec-3fd410a3f267', + resourceIdObjMeta: { + drupal_internal__target_id: 1, + }, + }, + field_administration: { + type: 'taxonomy_term--administration', + id: 'c20f3989-e93e-49bd-8c95-ad3821042a02', + resourceIdObjMeta: { + drupal_internal__target_id: 5, + }, + }, + field_parent_office: null, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_parent_office', + ], + }, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_office', + ], + }, + ], + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_alert', + 'field_promo', + 'field_related_links', + 'field_related_office', + 'field_spokes', + 'field_support_services', + ], + }, + ], + field_related_information: [ + { + type: 'paragraph--link_teaser', + id: '00ba642e-ee1a-4bb8-85ba-8e8d5fd46163', + drupal_internal__id: 23311, + drupal_internal__revision_id: 193883, + langcode: 'en', + status: true, + created: '2020-12-18T18:21:27+00:00', + parent_id: '15063', + parent_type: 'node', + parent_field_name: 'field_related_information', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_link: { + uri: 'entity:node/15060', + title: 'How much life insurance do I need?', + options: [], + url: '/resources/deciding-how-much-life-insurance-to-get', + }, + field_link_summary: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/link_teaser/00ba642e-ee1a-4bb8-85ba-8e8d5fd46163?resourceVersion=id%3A193883', + }, + }, + resourceIdObjMeta: { + target_revision_id: 193883, + drupal_internal__target_id: 23311, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '072db7a4-476e-41a6-ab49-c44184281451', + resourceIdObjMeta: { + drupal_internal__target_id: 'link_teaser', + }, + }, + relationshipNames: ['paragraph_type'], + }, + ], + field_tags: { + type: 'paragraph--audience_topics', + id: 'fdac0715-f3eb-4a9d-bf5e-298da4a82ef3', + drupal_internal__id: 23312, + drupal_internal__revision_id: 193884, + langcode: 'en', + status: true, + created: '2020-12-18T18:21:27+00:00', + parent_id: '15063', + parent_type: 'node', + parent_field_name: 'field_tags', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: true, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_audience_selection: 'beneficiaries', + field_markup: null, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/audience_topics/fdac0715-f3eb-4a9d-bf5e-298da4a82ef3?resourceVersion=id%3A193884', + }, + }, + resourceIdObjMeta: { + target_revision_id: 193884, + drupal_internal__target_id: 23312, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '1b952f0b-ff2c-486b-8404-266e1aad73fb', + resourceIdObjMeta: { + drupal_internal__target_id: 'audience_topics', + }, + }, + field_audience_beneficiares: [ + { + type: 'taxonomy_term--audience_beneficiaries', + id: '386eb70d-696c-4af3-8986-306ce63d90de', + drupal_internal__tid: '268', + drupal_internal__revision_id: 268, + langcode: 'en', + revision_created: '2020-09-10T22:27:56+00:00', + status: true, + name: 'All Veterans', + description: null, + weight: 0, + changed: '2021-01-13T20:20:40+00:00', + default_langcode: true, + revision_translation_affected: true, + moderation_state: null, + metatag: [ + { + tag: 'meta', + attributes: { + name: 'title', + content: 'All Veterans | VA.gov CMS', + }, + }, + { + tag: 'link', + attributes: { + rel: 'canonical', + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/resources/tag/all-veterans', + }, + }, + ], + path: { + alias: '/resources/tag/all-veterans', + pid: 11290, + langcode: 'en', + }, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_created: null, + field_audience_rs_homepage: true, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/taxonomy_term/audience_beneficiaries/386eb70d-696c-4af3-8986-306ce63d90de?resourceVersion=id%3A268', + }, + }, + resourceIdObjMeta: { + drupal_internal__target_id: 268, + }, + vid: { + type: 'taxonomy_vocabulary--taxonomy_vocabulary', + id: '181dd6ed-50cb-4c8f-a1ec-3529ea20869f', + resourceIdObjMeta: { + drupal_internal__target_id: 'audience_beneficiaries', + }, + }, + revision_user: null, + parent: [ + { + type: 'taxonomy_term--audience_beneficiaries', + id: 'virtual', + resourceIdObjMeta: { + links: { + help: { + href: 'https://www.drupal.org/docs/8/modules/json-api/core-concepts#virtual', + meta: { + about: + "Usage and meaning of the 'virtual' resource identifier.", + }, + }, + }, + }, + }, + ], + content_translation_uid: null, + relationshipNames: [ + 'vid', + 'revision_user', + 'parent', + 'content_translation_uid', + ], + }, + ], + field_non_beneficiares: null, + field_topics: [], + relationshipNames: [ + 'paragraph_type', + 'field_audience_beneficiares', + 'field_non_beneficiares', + 'field_topics', + ], + }, + relationshipNames: [ + 'node_type', + 'revision_uid', + 'uid', + 'field_administration', + 'field_alert_single', + 'field_buttons', + 'field_content_block', + 'field_contact_information', + 'field_other_categories', + 'field_primary_category', + 'field_related_benefit_hubs', + 'field_related_information', + 'field_tags', + ], +} diff --git a/src/mocks/table.mock.js b/src/mocks/table.mock.js new file mode 100644 index 000000000..dfdc72916 --- /dev/null +++ b/src/mocks/table.mock.js @@ -0,0 +1,52 @@ +export const mockResponse = { + type: 'paragraph--table', + id: '90824b6b-bc4d-4082-96c9-d82a5ce5ee15', + drupal_internal__id: 4528, + drupal_internal__revision_id: 22866, + langcode: 'en', + status: true, + created: '2019-07-12T16:47:43+00:00', + parent_id: '4527', + parent_type: 'paragraph', + parent_field_name: 'field_va_paragraphs', + behavior_settings: [], + default_langcode: true, + revision_translation_affected: null, + content_translation_source: 'und', + content_translation_outdated: false, + content_translation_changed: null, + field_table: { + value: [ + [ + 'School name', + 'VSOC counselor email address', + 'Regional office', + ], + [ + 'Troy University', + 'Rickey Jones Rickey.Jones@va.gov', + 'Montgomery (322)', + ], + [ + 'University of Alabama', + 'Lisa Fells Lisa.Fells@va.gov', + 'Montgomery (322)', + ], + ], + format: 'rich_text', + caption: '', + }, + links: { + self: { + href: 'https://content-build-medc0xjkxm4jmpzxl3tfbcs7qcddsivh.ci.cms.va.gov/jsonapi/paragraph/table/90824b6b-bc4d-4082-96c9-d82a5ce5ee15?resourceVersion=id%3A22866', + }, + }, + paragraph_type: { + type: 'paragraphs_type--paragraphs_type', + id: '80b23186-37b2-4c2b-8223-24e952485df8', + resourceIdObjMeta: { + drupal_internal__target_id: 'table', + }, + }, + relationshipNames: ['paragraph_type'], +} diff --git a/src/templates/common/commonAndPopular/index.test.tsx b/src/templates/common/commonAndPopular/index.test.tsx new file mode 100644 index 000000000..64956a11e --- /dev/null +++ b/src/templates/common/commonAndPopular/index.test.tsx @@ -0,0 +1,26 @@ +import { render, screen } from '@testing-library/react' +import { CommonAndPopular } from './' + +describe('CommonAndPopular Component', () => { + test('renders common and popular links correctly', () => { + render(test html
', + }, +] + +const wysiwyg: Wysiwyg = { + id: 'wysiwyg-1', + type: 'paragraph--wysiwyg', + html: "To use this feature, you'll need a Premium DS Logon account.
", +} + +const mockAlert: FormattedAlert = { + type: 'paragraph--alert', + id: '1', + alertType: 'info', + heading: 'Test Alert Heading', + blockReference: null, + paragraphs: mockParagraphs, +} + +describe('Test text
', +} + +describe('This is a Wysiwyg component.
', + } + + it('renders correctly with valid props', () => { + render(This is an alert block content.
', + }, + } + + const alertData: FormattedAlert = { + type: 'paragraph--alert', + id: '5', + alertType: 'info', + heading: 'Alert Heading', + blockReference: alertBlockData, + } + + it('renders correctly with valid props', () => { + render(Additional Info
', + value: 'Additional Info
', + format: 'text', + }, + eventCTA: 'Register Now', + emailCTA: 'Register via Email', + howToSignUp: 'email', + body: { + processed: 'Event Body
', + value: 'Event Body
', + format: 'text', + }, + } + + beforeEach(() => { + render( +Test Intro
', + alert: null, + buttons: [ + { + id: '1', + label: 'Button 1', + url: '/button-1', + type: 'paragraph--button' as Button['type'], + }, + { + id: '2', + label: 'Button 2', + url: '/button-2', + type: 'paragraph--button' as Button['type'], + }, + ], + repeatButtons: true, + toc: true, + mainContent: [ + { + id: '1', + html: 'If you need support...', + className: '', + type: 'paragraph--wysiwyg' as Wysiwyg['type'], + }, + ], + tags: { + type: 'paragraph--audience_topics' as AudienceTopics['type'], + id: '1', + tags: [ + { + id: '1', + name: 'Test Audience', + href: '/audience', + categoryLabel: 'Audience Category', + }, + { + id: '2', + name: 'Test Topic', + href: '/topic', + categoryLabel: 'Topic Category', + }, + ], + }, + contactInformation: { + id: '1', + type: 'paragraph--contact_information' as ContactInfo['type'], + contactType: 'DC' as ContactInfo['contactType'], + defaultContact: { + name: 'Test Name', + phone: '123-456-7890', + email: 'test@example.com', + title: 'Test contact title', + value: 'Test Value', + href: '/test-contact-href/', + }, + }, + benefitsHubLinks: [ + { + id: '1', + title: 'Benefit 1', + label: 'Benefit 1 Label', + path: '/benefit-1', + teaserText: 'Benefit 1 Teaser Text', + }, + { + id: '2', + title: 'Benefit 2', + label: 'Benefit 2 Label', + path: '/benefit-2', + teaserText: 'Benefit 2 Teaser Text', + }, + ], + lastUpdated: '2024-03-22', + } + + beforeEach(() => { + render( +