🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis β†’
Socket
Book a DemoInstallSign in
Socket

@procore/js-sdk-endpoints

Package Overview
Dependencies
Maintainers
27
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@procore/js-sdk-endpoints

generates endpoint functions for node-procore sdk

latest
npmnpm
Version
1.9.2
Version published
Weekly downloads
131
-35.47%
Maintainers
27
Weekly downloads
Β 
Created
Source

Procore JS SDK Endpoints

Generates TypeScript wrapper functions and interface definitions for the Procore API.

Install

yarn add -D @procore/js-sdk-endpoints

Usage

node-procore-endpoints lib -i index.ts -d endpoints

Example

interface DirectCosts {
  action: string;
  qs?: any;
  id?: number;
  project_id: number;
}

function directCosts({ action, qs, id, project_id  }: DirectCosts): any {
  return {
    base: '/vapid/projects/{project_id}/direct_costs',
    action,
    params: { id, project_id  },
    qs
  }
}

export default directCosts

File Structure

lib/endpoints
β”œβ”€β”€ accident-logs.ts
β”œβ”€β”€ authentication.ts
β”œβ”€β”€ bids.ts
β”œβ”€β”€ budget-line-items.ts
β”œβ”€β”€ budget-modifications.ts
β”œβ”€β”€ calendar-events.ts
β”œβ”€β”€ call-logs.ts
β”œβ”€β”€ change-events.ts
β”œβ”€β”€ change-order-change-reasons.ts
β”œβ”€β”€ change-order-packages.ts
β”œβ”€β”€ change-order-requests.ts
β”œβ”€β”€ change-orders.ts
β”œβ”€β”€ change-types.ts
β”œβ”€β”€ checklists.ts
β”œβ”€β”€ communications.ts
β”œβ”€β”€ companies.ts
β”œβ”€β”€ company-folders-and-files.ts
β”œβ”€β”€ company-insurances.ts
β”œβ”€β”€ company-offices.ts
β”œβ”€β”€ company-users.ts
β”œβ”€β”€ company-vendor-insurances.ts
β”œβ”€β”€ company-vendors.ts
β”œβ”€β”€ contract-payments.ts
β”œβ”€β”€ cost-codes.ts
β”œβ”€β”€ daily-construction-report-logs.ts
β”œβ”€β”€ dashboards.ts
β”œβ”€β”€ delivery-logs.ts
β”œβ”€β”€ departments.ts
β”œβ”€β”€ direct-costs.ts
β”œβ”€β”€ draw-requests.ts
β”œβ”€β”€ drawings.ts
β”œβ”€β”€ dumpster-logs.ts
β”œβ”€β”€ equipment-logs.ts
β”œβ”€β”€ equipment.ts
β”œβ”€β”€ image-categories.ts
β”œβ”€β”€ images.ts
β”œβ”€β”€ inspection-logs.ts
β”œβ”€β”€ line-item-types.ts
β”œβ”€β”€ locations.ts
β”œβ”€β”€ manpower-logs.ts
β”œβ”€β”€ markup-attachments.ts
β”œβ”€β”€ markup-layer-elements.ts
β”œβ”€β”€ markup-layers.ts
β”œβ”€β”€ me.ts
β”œβ”€β”€ meetings.ts
β”œβ”€β”€ notes-logs.ts
β”œβ”€β”€ observations.ts
β”œβ”€β”€ permission-templates.ts
β”œβ”€β”€ permissions.ts
β”œβ”€β”€ plan-revision-logs.ts
β”œβ”€β”€ potential-change-orders.ts
β”œβ”€β”€ prime-contracts.ts
β”œβ”€β”€ productivity-logs.ts
β”œβ”€β”€ programs.ts
β”œβ”€β”€ project-configuration.ts
β”œβ”€β”€ project-dates.ts
β”œβ”€β”€ project-folders-and-files.ts
β”œβ”€β”€ project-insurances.ts
β”œβ”€β”€ project-roles.ts
β”œβ”€β”€ project-stages.ts
β”œβ”€β”€ project-templates.ts
β”œβ”€β”€ project-tools.ts
β”œβ”€β”€ project-types.ts
β”œβ”€β”€ project-users.ts
β”œβ”€β”€ project-vendor-insurances.ts
β”œβ”€β”€ project-vendors.ts
β”œβ”€β”€ projects.ts
β”œβ”€β”€ punch-item-assignments.ts
β”œβ”€β”€ punch-item-types.ts
β”œβ”€β”€ punch-items.ts
β”œβ”€β”€ punch-list-assignee-options.ts
β”œβ”€β”€ purchase-order-contracts.ts
β”œβ”€β”€ quantity-logs.ts
β”œβ”€β”€ reports.ts
β”œβ”€β”€ requested-changes.ts
β”œβ”€β”€ resources.ts
β”œβ”€β”€ rfi-replies.ts
β”œβ”€β”€ rfis.ts
β”œβ”€β”€ rfqs.ts
β”œβ”€β”€ safety-violation-logs.ts
β”œβ”€β”€ schedule-integration.ts
β”œβ”€β”€ schedule-type.ts
β”œβ”€β”€ specification-section-divisions.ts
β”œβ”€β”€ specification-section-revisions.ts
β”œβ”€β”€ specification-sections.ts
β”œβ”€β”€ specification-sets.ts
β”œβ”€β”€ specification-uploads.ts
β”œβ”€β”€ sticky-filters.ts
β”œβ”€β”€ sub-jobs.ts
β”œβ”€β”€ submittals.ts
β”œβ”€β”€ tasks.ts
β”œβ”€β”€ timecard-entries.ts
β”œβ”€β”€ timecards.ts
β”œβ”€β”€ todos.ts
β”œβ”€β”€ toolfavorites.ts
β”œβ”€β”€ trades.ts
β”œβ”€β”€ transmittals.ts
β”œβ”€β”€ user-access-level.ts
β”œβ”€β”€ waste-logs.ts
β”œβ”€β”€ weather-logs.ts
β”œβ”€β”€ work-logs.ts
└── work-order-contracts.ts

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/procore/js-sdk-endpoints. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The package is available as open source under the terms of the MIT License.

About Procore

Procore Logo

Manage Version is maintained by Procore Technologies.

Procore - building the software that builds the world.

Learn more about the #1 most widely used construction management software at procore.com

FAQs

Package last updated on 09 Oct 2020

Did you know?

Socket

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.

Install

Related posts