Skip to content

Instantly share code, notes, and snippets.

@jjrasche
Created June 25, 2019 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjrasche/c3abe783dfea8997e50f58668b895ffe to your computer and use it in GitHub Desktop.
Save jjrasche/c3abe783dfea8997e50f58668b895ffe to your computer and use it in GitHub Desktop.
// Models
import { BidType } from "@vms/shared/objects/bid-type";
import { ApiResult } from "@vms/shared/objects/data-request";
import { George, GeorgeOfficeDto } from "@vms/shared/objects/admin/george";
import { PaymentType } from "@vms/shared/objects/payment-type";
import { Proposal } from "@vms/proposal/objects/proposal";
import { ProposalCertificationStatus } from "@vms/shared/objects/proposal-certification-status";
import { ProposalStatus } from "@vms/shared/objects/proposal-status";
import { TestHttpRequest } from "@vms/test/front-end-testing/test-objects";
import { User } from "@vms/shared/objects/admin/user";
// tslint:disable: max-line-length
export const getProposal = (): Proposal => {
return {
"proposal_id": 18957,
"sale_name": "Doug's second test sale",
"sale_num": "11-999-18",
"sale_num_first_2": 11,
"sale_num_last_5": "999-18",
"status_cycle_count": 1,
"max_sequence": 1,
"proposal_status_code": "01",
// "status_code_desc": null,
"owner": 73,
"fiscal_year": 2019,
"is_fiscal_year_editable": false,
"george_id": 280,
"compartment": null,
"proposal_type_code": "01",
"sale_accomplished": false,
// "previous_proposal_status_code": "12",
"bid_type_code": "02",
"payment_type_code": "01",
"proposal_certification_status_id": 3,
"salvage_sale": false,
"prospectus_id": null,
"contract_id": null,
"bid_open_date": null,
"fc_key": null,
"proposal_is_editable": true,
"use_bond_amount": false,
"duration_of_contract_comment": null,
"bond_amount": 0.0,
"bond_percent": 0.0,
"sale_expiration_date": null
} as Proposal;
};
export const getBidTypes = (): ApiResult<BidType[]> => {
return {
"data": [
{ "bid_type_code_key": "01", "short_desc": "Sealed Bid", "long_desc": "Sealed Bid" },
{ "bid_type_code_key": "02", "short_desc": "Oral Auction", "long_desc": "Oral Auction" },
{ "bid_type_code_key": "03", "short_desc": "Direct Sale", "long_desc": "Direct Sale" },
],
"success": true
} as ApiResult<BidType[]>;
};
export const getPaymentTypes = (): ApiResult<PaymentType[]> => {
return {
"data": [
{ "payment_type_code_key": "01", "short_desc": "Lump Sum", "long_desc": "Lump Sum" },
{ "payment_type_code_key": "02", "short_desc": "Scaled", "long_desc": "Scaled" },
{ "payment_type_code_key": "03", "short_desc": "Mixed", "long_desc": "Mixed" }
],
"success": true
} as ApiResult<PaymentType[]>;
};
export const getProposalOwners = (): ApiResult<User[]> => {
return {
"data": [
{ "user_id": 73, "user_name": "Heym, Doug (HEYMDxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 500, "user_name": "Brodeur, Mike (BrodeurMxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 24, "user_name": "Carlson, Brad (CARLSONBxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 530, "user_name": "Collins, Jason (CollinsJ24xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 559, "user_name": "Cut, T (CUTLERT)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 469, "user_name": "DePue, John (DePueJ1xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 62, "user_name": "Hansen, Fred (HANSENFxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 337, "user_name": "Houghton, Ernie (HOUGHTONExxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 471, "user_name": "Kakuk, Jeff (KakukJxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 470, "user_name": "Madison, George (MadisonGxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 108, "user_name": "Mankee, Donald (MANKEEDxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 111, "user_name": "Mattila, John (MATTILAJxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 294, "user_name": "Mattila, Ryan (MATTILARxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 120, "user_name": "Mittlestat, Jason (MITTLESTATJxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 529, "user_name": "Ritchie, Tyler (RitchieT1xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 184, "user_name": "Tarnowski, Gregory (TARNOWSKIGxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 199, "user_name": "Tylka, Robert (TYLKARxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 336, "user_name": "Willis, Gary (WILLISG2xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 },
{ "user_id": 551, "user_name": "Witz, Amanda (WitzAxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0 }
],
"success": true
} as ApiResult<User[]>;
};
export const getFiscalYears = (): ApiResult<string[]> => {
return {
"data": [
"2019"
],
"success": true
} as ApiResult<string[]>;
};
export const getProposalManageGeorges = (): ApiResult<GeorgeOfficeDto[]> => {
return {
"data": [
{ "george_id": 3340, "george_name": "Muskegon Office-WILD" },
{ "george_id": 280, "george_name": "Baraga Office" },
{ "george_id": 360, "george_name": "Crystal Falls Office" },
{ "george_id": 380, "george_name": "Felch Office" },
{ "george_id": 410, "george_name": "Escanaba Office" },
{ "george_id": 415, "george_name": "Stephenson Office" },
{ "george_id": 440, "george_name": "Gwinn Office" },
{ "george_id": 460, "george_name": "Ishpeming Office" },
{ "george_id": 600, "george_name": "Newberry Office" },
{ "george_id": 640, "george_name": "Sault Ste Marie Office" },
{ "george_id": 680, "george_name": "Naubinway Office" },
{ "george_id": 720, "george_name": "Shingleton Office" },
{ "george_id": 760, "george_name": "Wyman Nursery Office" },
{ "george_id": 860, "george_name": "Baldwin Field Office" },
{ "george_id": 900, "george_name": "Manton Office" },
{ "george_id": 960, "george_name": "Gladwin Office" },
{ "george_id": 1035, "george_name": "Roscommon Office" },
{ "george_id": 1075, "george_name": "Traverse City Office" },
{ "george_id": 1085, "george_name": "Kalkaska Office" },
{ "george_id": 1340, "george_name": "Atlanta Office" },
{ "george_id": 1420, "george_name": "Gaylord Office" },
{ "george_id": 1460, "george_name": "Indian River Office" },
{ "george_id": 1520, "george_name": "Grayling Office" },
{ "george_id": 1600, "george_name": "Pigeon River Country Office" },
{ "george_id": 2400, "george_name": "Paris Office-WILD" },
{ "george_id": 2440, "george_name": "Traverse City Office-WILD" },
{ "george_id": 2520, "george_name": "Bay City Office-WILD" },
{ "george_id": 2560, "george_name": "Cass City Office-WILD" },
{ "george_id": 2600, "george_name": "Fish Point Office-WILD" },
{ "george_id": 2640, "george_name": "Gladwin Office-WILD" },
{ "george_id": 2680, "george_name": "Nayanquing Point Office-WILD" },
{ "george_id": 2720, "george_name": "St Charles Office-WILD" },
{ "george_id": 2780, "george_name": "Flat River Office-WILD" },
{ "george_id": 2820, "george_name": "Rose Lake Office-WILD" },
{ "george_id": 2860, "george_name": "Waterloo Office-WILD" },
{ "george_id": 2960, "george_name": "Lapeer Office-WILD" },
{ "george_id": 3000, "george_name": "Mt Clemens Fish St Office-WILD" },
{ "george_id": 3040, "george_name": "Pte Mouillee Office-WILD" },
{ "george_id": 3080, "george_name": "St Clair Flats Office-WILD" },
{ "george_id": 3200, "george_name": "Allegan Office-WILD" },
{ "george_id": 3260, "george_name": "Barry Office-WILD" },
{ "george_id": 3300, "george_name": "Crane Pond Office-WILD" },
{ "george_id": 4820, "george_name": "Proud Lake Office-PARKS" }
],
"success": true
} as ApiResult<GeorgeOfficeDto[]>;
};
export const getProposalCertStatuses = (): ApiResult<ProposalCertificationStatus[]> => {
return {
"data": [
{
"proposal_certification_status_id": 1,
"name": "Sale not on Certified Land, GNA",
"description": "Check this item if the timber sale is on Forest Service land and is being prepared as part of the Good Neighbor Authority (GNA). \r\nNote that in the Approvals panel, the Action for the TSS will be set to On-hold with GNA in the Comments. This is to ensure that the sale is reviewed by the Forest Service before approval.",
},
{
"proposal_certification_status_id": 2,
"name": "Sale not on Certified Land, Other",
"description": "Check this item if the timber sale proposal is <u>not</u> on certified land. Certified land is described in the following memo:\r\n<a href=\"http://inside.michigan.gov/dnr/divisions/fr/Timber%20Policy%20and%20Procedures/Timber%20Policy%20Memos%20and%20Other%20References/Dealing with Timber Sale Contracts on DNR Lands not Certified under SFI or FSC (8-11-2006).doc\" tabindex=\"0\">Dealing with Timber Sale Contracts on DNR Lands not Certified under SFI or FSC (08-11-2006).doc</a>",
},
{
"proposal_certification_status_id": 3,
"name": "Certified",
"description": "State forest lands that are in the scope of forest certification are those that meet all of the following criteria: identified in state forest compartments; inventoried in Michigan Forest Inventory (MiFI); and evaluated for treatment prescriptions through the compartment review process.",
}
],
"success": true
} as ApiResult<ProposalCertificationStatus[]>;
};
export const getProposalStatuses = (): ApiResult<ProposalStatus[]> => {
return {
"data": [
{ "proposal_status_id": 4, "proposal_status_code": "01", "short_desc": "Draft", "long_desc": "Proposal has been created in VMS or MiFI and may be edited.", "logical_order": 1, },
{ "proposal_status_id": 12, "proposal_status_code": "09", "short_desc": "Frozen", "long_desc": "Proposal has gone thru the VMS error check and is no longer editable. The Proposal can be submitted for approval which will update the status to Submitted. Or, the proposal can be unfrozen, which will set the status to Draft. A sale in the Frozen status or higher will be counted as prepared in the fiscal year in which it was frozen.", "logical_order": 2, },
{ "proposal_status_id": 15, "proposal_status_code": "12", "short_desc": "Submitted", "long_desc": "The approval process has been initiated. The Unit Manager can Approve, Reject or place the proposal On-Hold. A person with the Proposal role can un-submit the proposal from the approval process. An approved proposal will advance to the Reviewing status. A rejected or un-submitted proposal will go to the Draft status. A proposal that is On-Hold is waiting for further action.", "logical_order": 3, },
{ "proposal_status_id": 17, "proposal_status_code": "14", "short_desc": "Reviewing", "long_desc": "The Unit Manager has approved the proposal and the 21-day reviewing process has been initiated. Users listed on the Approval tab under Review/Approve have 21 days from the Unit Manager's approval to Approve, Reject or place the proposal On-Hold. Users listed under Notify have 21 days to submit a comment. A person with the Proposal role can un-submit the proposal from the reviewing process. If no actions are taken, the proposal is advanced to the Approved status after 21 days. A rejected or un-submitted proposal will go to the Draft status. A proposal that is On-Hold is waiting for further action by the User that placed the hold. The automated approval will not occur when a proposal is On-Hold, but the 21 day 'time clock' continues. If the On-Hold is removed after 21 days the proposal will advance to Approved on the next day. The 21 day review can be shortened by the TSS. The TSS can initiate an Override Approval which will immediately advance the status to Approved.", "logical_order": 4, },
{ "proposal_status_id": 16, "proposal_status_code": "13", "short_desc": "Approved", "long_desc": "The proposal review has been completed. A sealed bid proposal can now be published on a prospectus. A contract can now be created for a direct sale. A person with the Proposal role can un-submit the proposal from the Approved status which will change the proposal status to Draft.", "logical_order": 5, },
{ "proposal_status_id": 5, "proposal_status_code": "02", "short_desc": "Prospectus", "long_desc": "Proposal has been published on a prospectus. The TSS can un-publish the prospectus if mailing has not occurred. This will set the status of all proposals on the prospectus back to Approved. A prospectus revision can change the status of a proposal from Prospectus to Withdrawn. During bid opening, the status can be changed to Withdrawn or No Bid. When a contract is created, the status is changed to Sold.", "logical_order": 6, },
{ "proposal_status_id": 6, "proposal_status_code": "03", "short_desc": "Withdrawn", "long_desc": "Proposal was pulled from a prospectus with a revision or during bid opening. The proposal can be Incremented, creating a new sequence number which can be re-offered or the sale can be Discontinued.", "logical_order": 7, },
{ "proposal_status_id": 7, "proposal_status_code": "04", "short_desc": "No Bid", "long_desc": "During bid opening, no bids were received. The proposal can be Sold, Incremented or Discontinued. If the proposal is Incremented, a new sequence number is created in Draft status.", "logical_order": 8, },
{ "proposal_status_id": 18, "proposal_status_code": "15", "short_desc": "Incremented", "long_desc": "The proposal has been incremented to the next proposal sequence number. This is a final status for the original sequence number. Further actions can be taken on the new sequence number which will be in Draft status.", "logical_order": 9, },
{ "proposal_status_id": 13, "proposal_status_code": "10", "short_desc": "Forfeit", "long_desc": "The high bidder for the sale failed to execute the contract. The proposal can be Sold, Incremented or Discontinued. If the proposal is Incremented, a new sequence number is created in Draft status.", "logical_order": 10, },
{ "proposal_status_id": 14, "proposal_status_code": "11", "short_desc": "Discontinued", "long_desc": "Proposal is being abandoned. This is a final status for the sale. No further actions will be taken.", "logical_order": 11, },
{ "proposal_status_id": 8, "proposal_status_code": "05", "short_desc": "Sold", "long_desc": "A contract has been created in TSale. The proposal is currently under contract.", "logical_order": 12, },
{ "proposal_status_id": 19, "proposal_status_code": "16", "short_desc": "Contract Closed", "long_desc": "Contract was closed-out in VMS. A final sale status.", "logical_order": 13, },
{ "proposal_status_id": 9, "proposal_status_code": "06", "short_desc": "Completed", "long_desc": "Pre-VMS 5.2 - Contract was closed-out in TSale with all payment units harvested. A final sale status.", "logical_order": 14, },
{ "proposal_status_id": 10, "proposal_status_code": "07", "short_desc": "Closed", "long_desc": "Pre-VMS 5.2 - Contract was closed-out in TSale but partially harvested. A final sale status.", "logical_order": 15, },
{ "proposal_status_id": 11, "proposal_status_code": "08", "short_desc": "Canceled", "long_desc": "Pre-VMS 5.2 - Contract was closed-out in TSale and no harvesting occurred. A final sale status.", "logical_order": 16, }
],
"success": true
} as ApiResult<ProposalStatus[]>;
};
export const getResponseOwners = (): Array<User> => {
return [
{ "user_id": 0, "user_name": " ", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 4, "user_name": "Anderson, Mark (AndersonM10xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 500, "user_name": "Brodeur, Mike (BrodeurMxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 502, "user_name": "Brolin, Eric (BrolinExxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 277, "user_name": "Church, Andrew (CHURCHA1xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 51, "user_name": "Goupell, Deborah (GOUPELLDxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 549, "user_name": "Goupell, Rich (GoupellRxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 114, "user_name": "McNamee, Dan (MCNAMEEDxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 278, "user_name": "Rice, Edward (RICEE1xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 529, "user_name": "Ritchie, Tyler (RitchieT1xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 170, "user_name": "Sebero, Scott (SEBEROSxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 377, "user_name": "Sigfred, Mary (SIGFREDMxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 518, "user_name": "Siler, Jacob (SilerJ3xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 188, "user_name": "Thompson, Eric (THOMPSONE3xxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null },
{ "user_id": 199, "user_name": "Tylka, Robert (TYLKARxxx)", "first_name": null, "last_name": null, "email_address": null, "last_activity_date": null, "is_approved": false, "thru_date": null, "thru_date_as_string": null, "active": false, "george_id": null, "george_name": null, "user_dashboard_georges": null, "user_roles": null, "role_count": 0, "created_by": null, "created_on": null, "modified_by": null, "modified_on": null, "modified_on_as_string": null }
];
};
export const getChangeGeorgeResponse = (): any => {
return {
"contentEncoding": null,
"contentType": null,
"data": {
"activities": null,
"data": {
"owners": getResponseOwners(),
"tsale_unit_num": 12
},
"validationErrors": null,
"errors": null,
"success": true
},
"jsonRequestBehavior": 1,
"maxJsonLength": null,
"recursionLimit": null
};
};
export const getFailedSaveResponse = (): TestHttpRequest => {
return {
"data": {
"activities": null,
"data": null,
"validationErrors": {
"sale_num_last_5": [
"unique"
]
},
"errors": null,
"success": false
}
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment