Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@digitregroup/cornerstone-client
Advanced tools
Readme
It's an api client to request Cornerstone REST Services and Reporting Services.
test/
The Reporting API is a public facing web service that allows clients programmatic read-only access to their Cornerstone data via the Realtime Data Warehouse. It adheres to the OData protocol (http://www.odata.org/)
There are some use cases in tests repository.
const params = {
apiId: Api Id, can be retrieved within the Manage API tab in Integration Center.
apiSecret: Api Secret, can be retrieved within the Manage API tab in Integration Center.
corpname: Client assigned hostname for CSOD application
region: Aws-region,
dynamodbName: Aws dynamodb,
};
const cornerstone = new Cornerstone(params);
const user = await cornerstone.getReportingUserByEmail({email: reporting_user_email});
URL Option | Syntax | Description |
---|---|---|
Get Available Resources | {baseURL}/views | This call returns a list of available resources (views). |
Get Metadata | {baseURL}/views/$metadata | This call returns a list of resources and their meta-data. This call returns XML instead of JSON**** |
Get Specific Resource | {baseURL}/views/vw_rpt_user | Returns detail payload for specific resource. |
Select | {baseURL}/views/vw_rpt_user?$select={comma separated field list} | Returns detail payload for specific selected fields for resource. |
Filter | {baseURL}/views/vw_rpt_user?$filter={query filter} | Returns specific data as per filter value for resource. Odata standards should be followed for operator types |
Top | {baseURL}/views/vw_rpt_user?$top={max records} | Limits the number of records returned by the query. |
URL Option | Syntax |
---|---|
Equals | {baseURL}/views/vw_rpt_user?$filter=user_id eq 78 |
Not Equals | {baseURL}/views/vw_rpt_user?$filter=user_id ne 78 |
Greater Than | {baseURL}/views/vw_rpt_user?$filter=user_lo_last_action_dt gt cast('2016-08-16', Edm.DateTimeOffset) |
Greater Than or Equal | {baseURL}/views/vw_rpt_user?$filter=user_lo_last_action_dt ge cast('2016-08-16', Edm.DateTimeOffset) |
Less Than | {baseURL}/views/vw_rpt_user?$filter=user_lo_last_action_dt lt cast('2016-08-16', Edm.DateTimeOffset) |
Less Than or Equal | {baseURL}/views/vw_rpt_user?$filter=user_lo_last_action_dt le cast('2016-08-16', Edm.DateTimeOffset) |
Logical 'AND' | {baseURL}/views/vw_rpt_user?$filter=user_lo_last_action_dt le cast('2016-08-16', Edm.DateTimeOffset) and user_id eq 78 |
Logical 'OR' | {baseURL}/views/vw_rpt_user?$filter=user_lo_last_action_dt le cast('2016-08-16', Edm.DateTimeOffset) or user_id eq 78 |
Logical 'NOT' | {baseURL}/views/vw_rpt_user?$filter=not (user_id eq 78) |
The REST API allows programmatic access to the REST record within the Cornerstone application. This service enables clients to create, update, and read REST data.
const params = {
apiId: Api Id, can be retrieved within the Manage API tab in Integration Center.
apiSecret: Api Secret, can be retrieved within the Manage API tab in Integration Center.
username: A valid username in the portal.
alias: An arbitrary title for your session.
corpname: Client assigned hostname for CSOD application
};
const cornerstone = new Cornerstone(params);
const user = await cornerstone.updateEmployeeByUserId({
id: rest_id,
data: {"personalEmail": rest_email}
});
const user = await cornerstone.getEmployeeByUserId({userId: rest_userId});
const user = await cornerstone.updateEmployeeByUserId({
id: 2328,
data : {"workerStatus":{active: true}}
});
active = user_status_id = 1 inActive = user_status_id = 2
FAQs
Client for Cornerstone api
The npm package @digitregroup/cornerstone-client receives a total of 27 weekly downloads. As such, @digitregroup/cornerstone-client popularity was classified as not popular.
We found that @digitregroup/cornerstone-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.