Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@36node/adventurer-core-sdk

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@36node/adventurer-core-sdk - npm Package Compare versions

Comparing version 0.1.5 to 0.2.0

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

## [0.2.0](https://github.com/36node/adventurer-core-sdk-js/compare/v0.1.5...v0.2.0) (2020-02-14)
### Features
* add trade summary by month api ([5b2a955](https://github.com/36node/adventurer-core-sdk-js/commit/5b2a955))
### [0.1.5](https://github.com/36node/adventurer-core-sdk-js/compare/v0.1.4...v0.1.5) (2020-01-04)

@@ -7,0 +16,0 @@

2

dist/index.js

@@ -1,2 +0,2 @@

var e,r=(e=require("@36node/fetch"))&&"object"==typeof e&&"default"in e?e.default:e,t=require("@36node/query-normalizr"),o=function(e){var o=this;void 0===e&&(e={}),this.repository={listRepositories:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/repositories",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},getRepository:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.headers;if(!t)throw new Error("repositoryId is required for getRepository");return r(o.base+"/repositories/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},updateRepository:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.headers,a=e.body;if(!t)throw new Error("repositoryId is required for updateRepository");if(!a)throw new Error("requetBody is required for updateRepository");return r(o.base+"/repositories/"+t,{method:"PATCH",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},createRelease:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.headers,a=e.body;if(!t)throw new Error("repositoryId is required for createRelease");if(!a)throw new Error("requetBody is required for createRelease");return r(o.base+"/repositories/"+t+"/release",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},addCollaborator:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.github,a=e.headers;if(!t)throw new Error("repositoryId is required for addCollaborator");if(!i)throw new Error("github is required for addCollaborator");return r(o.base+"/repositories/"+t+"/collaborator/"+i,{method:"PUT",headers:Object.assign({},{Authorization:o.auth},a)})},deleteCollaborator:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.github,a=e.headers;if(!t)throw new Error("repositoryId is required for deleteCollaborator");if(!i)throw new Error("github is required for deleteCollaborator");return r(o.base+"/repositories/"+t+"/collaborator/"+i,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},a)})}},this.issue={listIssues:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/issues",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},getIssue:function(e){void 0===e&&(e={});var t=e.issueId,i=e.headers;if(!t)throw new Error("issueId is required for getIssue");return r(o.base+"/issues/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},getComments:function(e){void 0===e&&(e={});var t=e.issueId,i=e.headers;if(!t)throw new Error("issueId is required for getComments");return r(o.base+"/issues/"+t+"/comments",{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})}},this.label={listLabels:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/labels",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})}},this.ticket={createTicket:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createTicket");return r(o.base+"/tickets",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})},listTickets:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/tickets",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},getTicket:function(e){void 0===e&&(e={});var t=e.ticketId,i=e.headers;if(!t)throw new Error("ticketId is required for getTicket");return r(o.base+"/tickets/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},deleteTicket:function(e){void 0===e&&(e={});var t=e.ticketId,i=e.headers;if(!t)throw new Error("ticketId is required for deleteTicket");return r(o.base+"/tickets/"+t,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},i)})},createTicketEvent:function(e){void 0===e&&(e={});var t=e.ticketId,i=e.headers,a=e.body;if(!t)throw new Error("ticketId is required for createTicketEvent");if(!a)throw new Error("requetBody is required for createTicketEvent");return r(o.base+"/tickets/"+t+"/events",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})}},this.project={listInterations:function(e){void 0===e&&(e={});var i=e.projectId,a=e.query,s=e.headers;if(!i)throw new Error("projectId is required for listInterations");return r(o.base+"/projects/"+i+"/interations",{method:"GET",query:t.denormalize(a),headers:Object.assign({},{Authorization:o.auth},s)})},createInteraction:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers,a=e.body;if(!t)throw new Error("projectId is required for createInteraction");if(!a)throw new Error("requetBody is required for createInteraction");return r(o.base+"/projects/"+t+"/interations",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},getInteration:function(e){void 0===e&&(e={});var t=e.projectId,i=e.interationId,a=e.headers;if(!t)throw new Error("projectId is required for getInteration");if(!i)throw new Error("interationId is required for getInteration");return r(o.base+"/projects/"+t+"/interations/"+i,{method:"GET",headers:Object.assign({},{Authorization:o.auth},a)})},updateInteration:function(e){void 0===e&&(e={});var t=e.projectId,i=e.interationId,a=e.headers,s=e.body;if(!t)throw new Error("projectId is required for updateInteration");if(!i)throw new Error("interationId is required for updateInteration");if(!s)throw new Error("requetBody is required for updateInteration");return r(o.base+"/projects/"+t+"/interations/"+i,{method:"PATCH",body:s,headers:Object.assign({},{Authorization:o.auth},a)})},deleteInteration:function(e){void 0===e&&(e={});var t=e.projectId,i=e.interationId,a=e.headers;if(!t)throw new Error("projectId is required for deleteInteration");if(!i)throw new Error("interationId is required for deleteInteration");return r(o.base+"/projects/"+t+"/interations/"+i,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},a)})},listProjects:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/projects",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},createProject:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createProject");return r(o.base+"/projects",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})},getProject:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers;if(!t)throw new Error("projectId is required for getProject");return r(o.base+"/projects/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},updateProject:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers,a=e.body;if(!t)throw new Error("projectId is required for updateProject");if(!a)throw new Error("requetBody is required for updateProject");return r(o.base+"/projects/"+t,{method:"PATCH",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},deleteProject:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers;if(!t)throw new Error("projectId is required for deleteProject");return r(o.base+"/projects/"+t,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},i)})},createProjectDoc:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers,a=e.body;if(!t)throw new Error("projectId is required for createProjectDoc");if(!a)throw new Error("requetBody is required for createProjectDoc");return r(o.base+"/projects/"+t+"/docs",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},getProjectSummary:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers;if(!t)throw new Error("projectId is required for getProjectSummary");return r(o.base+"/projects/"+t+"/summary",{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},updateProjectDoc:function(e){void 0===e&&(e={});var t=e.projectId,i=e.docId,a=e.headers,s=e.body;if(!t)throw new Error("projectId is required for updateProjectDoc");if(!i)throw new Error("docId is required for updateProjectDoc");if(!s)throw new Error("requetBody is required for updateProjectDoc");return r(o.base+"/projects/"+t+"/docs/"+i,{method:"PATCH",body:s,headers:Object.assign({},{Authorization:o.auth},a)})},createProjectEvent:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers,a=e.body;if(!t)throw new Error("projectId is required for createProjectEvent");if(!a)throw new Error("requetBody is required for createProjectEvent");return r(o.base+"/projects/"+t+"/events",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})}},this.summary={getInteractionsSummary:function(e){void 0===e&&(e={});var i=e.query,a=e.headers;if(!i)throw new Error("query is required for summary");return r(o.base+"/summary/interations",{method:"GET",query:t.denormalize(i),headers:Object.assign({},{Authorization:o.auth},a)})},getTicketsSummary:function(e){void 0===e&&(e={});var i=e.query,a=e.headers;if(!i)throw new Error("query is required for summary");return r(o.base+"/summary/tickets",{method:"GET",query:t.denormalize(i),headers:Object.assign({},{Authorization:o.auth},a)})},getTradeSummary:function(e){void 0===e&&(e={});var i=e.query,a=e.headers;if(!i)throw new Error("query is required for summary");return r(o.base+"/summary/trades",{method:"GET",query:t.denormalize(i),headers:Object.assign({},{Authorization:o.auth},a)})}},this.staff={listStaffs:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/staffs",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},createStaff:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createStaff");return r(o.base+"/staffs",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})},upsertStaff:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for upsertStaff");return r(o.base+"/staffs",{method:"PUT",body:i,headers:Object.assign({},{Authorization:o.auth},t)})},updateStaff:function(e){void 0===e&&(e={});var t=e.staffId,i=e.headers,a=e.body;if(!t)throw new Error("staffId is required for updateStaff");if(!a)throw new Error("requetBody is required for updateStaff");return r(o.base+"/staffs/"+t,{method:"PATCH",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},getStaff:function(e){void 0===e&&(e={});var t=e.staffId,i=e.headers;if(!t)throw new Error("staffId is required for getStaff");return r(o.base+"/staffs/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},deleteStaff:function(e){void 0===e&&(e={});var t=e.staffId,i=e.headers;if(!t)throw new Error("staffId is required for deleteStaff");return r(o.base+"/staffs/"+t,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},i)})}},this.wallet={getStaffWallet:function(e){void 0===e&&(e={});var t=e.staffId,i=e.headers;if(!t)throw new Error("staffId is required for getStaffWallet");return r(o.base+"/staffs/"+t+"/wallet",{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},listWallets:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/wallets",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})}},this.trade={listTrades:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/trades",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},createTrade:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createTrade");return r(o.base+"/trades",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})}},this.invitation={createInvitation:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createInvitation");return r(o.base+"/invitations",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})}},this.base=e.base||"",this.token=e.token||""},i={auth:{configurable:!0}};i.auth.get=function(){return this.token?"Bearer "+this.token:""},Object.defineProperties(o.prototype,i),module.exports=o;
var e,r=(e=require("@36node/fetch"))&&"object"==typeof e&&"default"in e?e.default:e,t=require("@36node/query-normalizr"),o=function(e){var o=this;void 0===e&&(e={}),this.repository={listRepositories:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/repositories",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},getRepository:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.headers;if(!t)throw new Error("repositoryId is required for getRepository");return r(o.base+"/repositories/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},updateRepository:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.headers,a=e.body;if(!t)throw new Error("repositoryId is required for updateRepository");if(!a)throw new Error("requetBody is required for updateRepository");return r(o.base+"/repositories/"+t,{method:"PATCH",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},createRelease:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.headers,a=e.body;if(!t)throw new Error("repositoryId is required for createRelease");if(!a)throw new Error("requetBody is required for createRelease");return r(o.base+"/repositories/"+t+"/release",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},addCollaborator:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.github,a=e.headers;if(!t)throw new Error("repositoryId is required for addCollaborator");if(!i)throw new Error("github is required for addCollaborator");return r(o.base+"/repositories/"+t+"/collaborator/"+i,{method:"PUT",headers:Object.assign({},{Authorization:o.auth},a)})},deleteCollaborator:function(e){void 0===e&&(e={});var t=e.repositoryId,i=e.github,a=e.headers;if(!t)throw new Error("repositoryId is required for deleteCollaborator");if(!i)throw new Error("github is required for deleteCollaborator");return r(o.base+"/repositories/"+t+"/collaborator/"+i,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},a)})}},this.issue={listIssues:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/issues",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},getIssue:function(e){void 0===e&&(e={});var t=e.issueId,i=e.headers;if(!t)throw new Error("issueId is required for getIssue");return r(o.base+"/issues/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},getComments:function(e){void 0===e&&(e={});var t=e.issueId,i=e.headers;if(!t)throw new Error("issueId is required for getComments");return r(o.base+"/issues/"+t+"/comments",{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})}},this.label={listLabels:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/labels",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})}},this.ticket={createTicket:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createTicket");return r(o.base+"/tickets",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})},listTickets:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/tickets",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},getTicket:function(e){void 0===e&&(e={});var t=e.ticketId,i=e.headers;if(!t)throw new Error("ticketId is required for getTicket");return r(o.base+"/tickets/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},deleteTicket:function(e){void 0===e&&(e={});var t=e.ticketId,i=e.headers;if(!t)throw new Error("ticketId is required for deleteTicket");return r(o.base+"/tickets/"+t,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},i)})},createTicketEvent:function(e){void 0===e&&(e={});var t=e.ticketId,i=e.headers,a=e.body;if(!t)throw new Error("ticketId is required for createTicketEvent");if(!a)throw new Error("requetBody is required for createTicketEvent");return r(o.base+"/tickets/"+t+"/events",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})}},this.project={listInterations:function(e){void 0===e&&(e={});var i=e.projectId,a=e.query,s=e.headers;if(!i)throw new Error("projectId is required for listInterations");return r(o.base+"/projects/"+i+"/interations",{method:"GET",query:t.denormalize(a),headers:Object.assign({},{Authorization:o.auth},s)})},createInteraction:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers,a=e.body;if(!t)throw new Error("projectId is required for createInteraction");if(!a)throw new Error("requetBody is required for createInteraction");return r(o.base+"/projects/"+t+"/interations",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},getInteration:function(e){void 0===e&&(e={});var t=e.projectId,i=e.interationId,a=e.headers;if(!t)throw new Error("projectId is required for getInteration");if(!i)throw new Error("interationId is required for getInteration");return r(o.base+"/projects/"+t+"/interations/"+i,{method:"GET",headers:Object.assign({},{Authorization:o.auth},a)})},updateInteration:function(e){void 0===e&&(e={});var t=e.projectId,i=e.interationId,a=e.headers,s=e.body;if(!t)throw new Error("projectId is required for updateInteration");if(!i)throw new Error("interationId is required for updateInteration");if(!s)throw new Error("requetBody is required for updateInteration");return r(o.base+"/projects/"+t+"/interations/"+i,{method:"PATCH",body:s,headers:Object.assign({},{Authorization:o.auth},a)})},deleteInteration:function(e){void 0===e&&(e={});var t=e.projectId,i=e.interationId,a=e.headers;if(!t)throw new Error("projectId is required for deleteInteration");if(!i)throw new Error("interationId is required for deleteInteration");return r(o.base+"/projects/"+t+"/interations/"+i,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},a)})},listProjects:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/projects",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},createProject:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createProject");return r(o.base+"/projects",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})},getProject:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers;if(!t)throw new Error("projectId is required for getProject");return r(o.base+"/projects/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},updateProject:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers,a=e.body;if(!t)throw new Error("projectId is required for updateProject");if(!a)throw new Error("requetBody is required for updateProject");return r(o.base+"/projects/"+t,{method:"PATCH",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},deleteProject:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers;if(!t)throw new Error("projectId is required for deleteProject");return r(o.base+"/projects/"+t,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},i)})},createProjectDoc:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers,a=e.body;if(!t)throw new Error("projectId is required for createProjectDoc");if(!a)throw new Error("requetBody is required for createProjectDoc");return r(o.base+"/projects/"+t+"/docs",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},getProjectSummary:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers;if(!t)throw new Error("projectId is required for getProjectSummary");return r(o.base+"/projects/"+t+"/summary",{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},updateProjectDoc:function(e){void 0===e&&(e={});var t=e.projectId,i=e.docId,a=e.headers,s=e.body;if(!t)throw new Error("projectId is required for updateProjectDoc");if(!i)throw new Error("docId is required for updateProjectDoc");if(!s)throw new Error("requetBody is required for updateProjectDoc");return r(o.base+"/projects/"+t+"/docs/"+i,{method:"PATCH",body:s,headers:Object.assign({},{Authorization:o.auth},a)})},createProjectEvent:function(e){void 0===e&&(e={});var t=e.projectId,i=e.headers,a=e.body;if(!t)throw new Error("projectId is required for createProjectEvent");if(!a)throw new Error("requetBody is required for createProjectEvent");return r(o.base+"/projects/"+t+"/events",{method:"POST",body:a,headers:Object.assign({},{Authorization:o.auth},i)})}},this.summary={getInteractionsSummary:function(e){void 0===e&&(e={});var i=e.query,a=e.headers;if(!i)throw new Error("query is required for summary");return r(o.base+"/summary/interations",{method:"GET",query:t.denormalize(i),headers:Object.assign({},{Authorization:o.auth},a)})},getTicketsSummary:function(e){void 0===e&&(e={});var i=e.query,a=e.headers;if(!i)throw new Error("query is required for summary");return r(o.base+"/summary/tickets",{method:"GET",query:t.denormalize(i),headers:Object.assign({},{Authorization:o.auth},a)})},getTradeSummary:function(e){void 0===e&&(e={});var i=e.query,a=e.headers;if(!i)throw new Error("query is required for summary");return r(o.base+"/summary/trades",{method:"GET",query:t.denormalize(i),headers:Object.assign({},{Authorization:o.auth},a)})},getTradeSummaryByMonth:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/summary/tradesByMonth",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})}},this.staff={listStaffs:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/staffs",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},createStaff:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createStaff");return r(o.base+"/staffs",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})},upsertStaff:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for upsertStaff");return r(o.base+"/staffs",{method:"PUT",body:i,headers:Object.assign({},{Authorization:o.auth},t)})},updateStaff:function(e){void 0===e&&(e={});var t=e.staffId,i=e.headers,a=e.body;if(!t)throw new Error("staffId is required for updateStaff");if(!a)throw new Error("requetBody is required for updateStaff");return r(o.base+"/staffs/"+t,{method:"PATCH",body:a,headers:Object.assign({},{Authorization:o.auth},i)})},getStaff:function(e){void 0===e&&(e={});var t=e.staffId,i=e.headers;if(!t)throw new Error("staffId is required for getStaff");return r(o.base+"/staffs/"+t,{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},deleteStaff:function(e){void 0===e&&(e={});var t=e.staffId,i=e.headers;if(!t)throw new Error("staffId is required for deleteStaff");return r(o.base+"/staffs/"+t,{method:"DELETE",headers:Object.assign({},{Authorization:o.auth},i)})}},this.wallet={getStaffWallet:function(e){void 0===e&&(e={});var t=e.staffId,i=e.headers;if(!t)throw new Error("staffId is required for getStaffWallet");return r(o.base+"/staffs/"+t+"/wallet",{method:"GET",headers:Object.assign({},{Authorization:o.auth},i)})},listWallets:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/wallets",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})}},this.trade={listTrades:function(e){void 0===e&&(e={});var i=e.headers;return r(o.base+"/trades",{method:"GET",query:t.denormalize(e.query),headers:Object.assign({},{Authorization:o.auth},i)})},createTrade:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createTrade");return r(o.base+"/trades",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})}},this.invitation={createInvitation:function(e){void 0===e&&(e={});var t=e.headers,i=e.body;if(!i)throw new Error("requetBody is required for createInvitation");return r(o.base+"/invitations",{method:"POST",body:i,headers:Object.assign({},{Authorization:o.auth},t)})}},this.base=e.base||"",this.token=e.token||""},i={auth:{configurable:!0}};i.auth.get=function(){return this.token?"Bearer "+this.token:""},Object.defineProperties(o.prototype,i),module.exports=o;
//# sourceMappingURL=index.js.map
{
"name": "@36node/adventurer-core-sdk",
"version": "0.1.5",
"version": "0.2.0",
"description": "A SDK boilerplate.",

@@ -5,0 +5,0 @@ "repository": {

@@ -169,2 +169,8 @@ export = SDK;

getTradeSummary(req: GetTradeSummaryRequest): Promise<GetTradeSummaryResponse>;
/**
* Get trades summary by month
*/
getTradeSummaryByMonth(
req: GetTradeSummaryByMonthRequest
): Promise<GetTradeSummaryByMonthResponse>;
}

@@ -625,2 +631,14 @@ export interface StaffAPI {

type GetTradeSummaryByMonthRequest = {
query: {
filter: {
staff?: string;
};
};
};
type GetTradeSummaryByMonthResponse = {
body: [TradeSummary];
};
type ListStaffsRequest = {

@@ -894,3 +912,3 @@ query: {

remark: string;
bounds: number;
bonus: number;
labels: [string];

@@ -906,3 +924,3 @@ events: [

| "PRIORITY"
| "BOUNDS"
| "BONUS"
| "DEADLINE"

@@ -920,3 +938,3 @@ | "DONE"

interation: string;
bounds: number;
bonus: number;
takenBy: string;

@@ -929,2 +947,4 @@ publishBy: string;

];
reopened: boolean;
reopenedAt: string;
};

@@ -944,3 +964,3 @@ type Label = {

| "PRIORITY"
| "BOUNDS"
| "BONUS"
| "DEADLINE"

@@ -958,3 +978,3 @@ | "DONE"

interation: string;
bounds: number;
bonus: number;
takenBy: string;

@@ -985,3 +1005,3 @@ publishBy: string;

remark: string;
bounds: number;
bonus: number;
labels: [string];

@@ -997,3 +1017,3 @@ events: [

| "PRIORITY"
| "BOUNDS"
| "BONUS"
| "DEADLINE"

@@ -1011,3 +1031,3 @@ | "DONE"

interation: string;
bounds: number;
bonus: number;
takenBy: string;

@@ -1020,2 +1040,4 @@ publishBy: string;

];
reopened: boolean;
reopenedAt: string;
};

@@ -1022,0 +1044,0 @@ type StaffDoc = {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc