planning-center-api
Version:
A TypeScript toolkit for building applications on top of the Planning Center API.
19 lines (18 loc) • 589 B
JavaScript
import { PersonResource } from "../resources/people/person.js";
import { PeopleListResource } from "../resources/people/people-list.js";
import { WorkflowResource } from "../resources/people/workflow.js";
export class PeopleApp {
constructor(client) {
this.client = client;
}
person(id) {
return new PersonResource(this.client, id);
}
workflow(id) {
return new WorkflowResource(this.client, id);
}
async list(options) {
const listResource = new PeopleListResource(this.client);
return listResource.list(options);
}
}