@approvio/ts-sdk 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +3 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -407,6 +407,9 @@ var BaseApprovioClient = class {
|
|
|
407
407
|
getEntityInfo() {
|
|
408
408
|
return this.get("/auth/info");
|
|
409
409
|
}
|
|
410
|
+
listVotes(workflowId, params) {
|
|
411
|
+
return this.get(`/workflows/${workflowId}/votes`, params);
|
|
412
|
+
}
|
|
410
413
|
};
|
|
411
414
|
//#endregion
|
|
412
415
|
//#region src/client/user.client.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { APIError, AddGroupEntitiesRequest, AgentGet200Response, AgentRegistrationRequest, AgentRegistrationResponse, AgentTokenResponse, CanVoteResponse, GetEntityInfo200Response, GetWorkflowParams, Group, GroupCreate, ListGroupEntities200Response, ListGroups200Response, ListGroupsParams, ListOrganizationAdminsForOrg200Response, ListRoleTemplates200Response, ListSpaces200Response, ListSpacesParams, ListUsers200Response, ListUsersParams, ListWorkflowTemplates200Response, ListWorkflowTemplatesParams, ListWorkflows200Response, ListWorkflowsParams, OrganizationAdminCreate, OrganizationAdminRemove, RemoveGroupEntitiesRequest, RoleAssignmentRequest, RoleRemovalRequest, Space, SpaceCreate, TokenResponse, User, UserCreate, Workflow, WorkflowCreate, WorkflowTemplate, WorkflowTemplateCreate, WorkflowTemplateDeprecate, WorkflowTemplateUpdate, WorkflowVoteRequest } from "@approvio/api";
|
|
2
|
+
import { APIError, AddGroupEntitiesRequest, AgentGet200Response, AgentRegistrationRequest, AgentRegistrationResponse, AgentTokenResponse, CanVoteResponse, GetEntityInfo200Response, GetWorkflowParams, GetWorkflowVotes200Response, Group, GroupCreate, ListGroupEntities200Response, ListGroups200Response, ListGroupsParams, ListOrganizationAdminsForOrg200Response, ListRoleTemplates200Response, ListSpaces200Response, ListSpacesParams, ListUsers200Response, ListUsersParams, ListWorkflowTemplates200Response, ListWorkflowTemplatesParams, ListWorkflowVotesParams, ListWorkflows200Response, ListWorkflowsParams, OrganizationAdminCreate, OrganizationAdminRemove, RemoveGroupEntitiesRequest, RoleAssignmentRequest, RoleRemovalRequest, Space, SpaceCreate, TokenResponse, User, UserCreate, Workflow, WorkflowCreate, WorkflowTemplate, WorkflowTemplateCreate, WorkflowTemplateDeprecate, WorkflowTemplateUpdate, WorkflowVoteRequest } from "@approvio/api";
|
|
3
3
|
import * as TE from "fp-ts/TaskEither";
|
|
4
4
|
|
|
5
5
|
//#region src/interfaces.d.ts
|
|
@@ -59,6 +59,7 @@ declare abstract class BaseApprovioClient {
|
|
|
59
59
|
canVoteOnWorkflow(workflowId: string): TE.TaskEither<ApprovioError, CanVoteResponse>;
|
|
60
60
|
listRoleTemplates(): TE.TaskEither<ApprovioError, ListRoleTemplates200Response>;
|
|
61
61
|
getEntityInfo(): TE.TaskEither<ApprovioError, GetEntityInfo200Response>;
|
|
62
|
+
listVotes(workflowId: string, params?: ListWorkflowVotesParams): TE.TaskEither<ApprovioError, GetWorkflowVotes200Response>;
|
|
62
63
|
}
|
|
63
64
|
//#endregion
|
|
64
65
|
//#region src/auth/auth.helpers.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { APIError, AddGroupEntitiesRequest, AgentGet200Response, AgentRegistrationRequest, AgentRegistrationResponse, AgentTokenResponse, CanVoteResponse, GetEntityInfo200Response, GetWorkflowParams, Group, GroupCreate, ListGroupEntities200Response, ListGroups200Response, ListGroupsParams, ListOrganizationAdminsForOrg200Response, ListRoleTemplates200Response, ListSpaces200Response, ListSpacesParams, ListUsers200Response, ListUsersParams, ListWorkflowTemplates200Response, ListWorkflowTemplatesParams, ListWorkflows200Response, ListWorkflowsParams, OrganizationAdminCreate, OrganizationAdminRemove, RemoveGroupEntitiesRequest, RoleAssignmentRequest, RoleRemovalRequest, Space, SpaceCreate, TokenResponse, User, UserCreate, Workflow, WorkflowCreate, WorkflowTemplate, WorkflowTemplateCreate, WorkflowTemplateDeprecate, WorkflowTemplateUpdate, WorkflowVoteRequest } from "@approvio/api";
|
|
2
|
+
import { APIError, AddGroupEntitiesRequest, AgentGet200Response, AgentRegistrationRequest, AgentRegistrationResponse, AgentTokenResponse, CanVoteResponse, GetEntityInfo200Response, GetWorkflowParams, GetWorkflowVotes200Response, Group, GroupCreate, ListGroupEntities200Response, ListGroups200Response, ListGroupsParams, ListOrganizationAdminsForOrg200Response, ListRoleTemplates200Response, ListSpaces200Response, ListSpacesParams, ListUsers200Response, ListUsersParams, ListWorkflowTemplates200Response, ListWorkflowTemplatesParams, ListWorkflowVotesParams, ListWorkflows200Response, ListWorkflowsParams, OrganizationAdminCreate, OrganizationAdminRemove, RemoveGroupEntitiesRequest, RoleAssignmentRequest, RoleRemovalRequest, Space, SpaceCreate, TokenResponse, User, UserCreate, Workflow, WorkflowCreate, WorkflowTemplate, WorkflowTemplateCreate, WorkflowTemplateDeprecate, WorkflowTemplateUpdate, WorkflowVoteRequest } from "@approvio/api";
|
|
3
3
|
import * as TE from "fp-ts/TaskEither";
|
|
4
4
|
|
|
5
5
|
//#region src/interfaces.d.ts
|
|
@@ -59,6 +59,7 @@ declare abstract class BaseApprovioClient {
|
|
|
59
59
|
canVoteOnWorkflow(workflowId: string): TE.TaskEither<ApprovioError, CanVoteResponse>;
|
|
60
60
|
listRoleTemplates(): TE.TaskEither<ApprovioError, ListRoleTemplates200Response>;
|
|
61
61
|
getEntityInfo(): TE.TaskEither<ApprovioError, GetEntityInfo200Response>;
|
|
62
|
+
listVotes(workflowId: string, params?: ListWorkflowVotesParams): TE.TaskEither<ApprovioError, GetWorkflowVotes200Response>;
|
|
62
63
|
}
|
|
63
64
|
//#endregion
|
|
64
65
|
//#region src/auth/auth.helpers.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -381,6 +381,9 @@ var BaseApprovioClient = class {
|
|
|
381
381
|
getEntityInfo() {
|
|
382
382
|
return this.get("/auth/info");
|
|
383
383
|
}
|
|
384
|
+
listVotes(workflowId, params) {
|
|
385
|
+
return this.get(`/workflows/${workflowId}/votes`, params);
|
|
386
|
+
}
|
|
384
387
|
};
|
|
385
388
|
//#endregion
|
|
386
389
|
//#region src/client/user.client.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@approvio/ts-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepublishOnly": "yarn format && yarn lint && yarn build"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@approvio/api": "0.0.
|
|
33
|
+
"@approvio/api": "0.0.42",
|
|
34
34
|
"axios": "1.13.2",
|
|
35
35
|
"jose": "6.1.3"
|
|
36
36
|
},
|