@rachelallyson/planning-center-check-ins-ts 1.0.0

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +22 -0
  3. package/README.md +102 -0
  4. package/dist/client.d.ts +95 -0
  5. package/dist/client.js +167 -0
  6. package/dist/index.d.ts +12 -0
  7. package/dist/index.js +38 -0
  8. package/dist/modules/attendance-types.d.ts +27 -0
  9. package/dist/modules/attendance-types.js +44 -0
  10. package/dist/modules/check-in-groups.d.ts +27 -0
  11. package/dist/modules/check-in-groups.js +44 -0
  12. package/dist/modules/check-in-times.d.ts +27 -0
  13. package/dist/modules/check-in-times.js +44 -0
  14. package/dist/modules/check-ins.d.ts +88 -0
  15. package/dist/modules/check-ins.js +157 -0
  16. package/dist/modules/event-periods.d.ts +57 -0
  17. package/dist/modules/event-periods.js +75 -0
  18. package/dist/modules/event-times.d.ts +51 -0
  19. package/dist/modules/event-times.js +69 -0
  20. package/dist/modules/events.d.ts +93 -0
  21. package/dist/modules/events.js +101 -0
  22. package/dist/modules/headcounts.d.ts +27 -0
  23. package/dist/modules/headcounts.js +44 -0
  24. package/dist/modules/integration-links.d.ts +27 -0
  25. package/dist/modules/integration-links.js +44 -0
  26. package/dist/modules/labels.d.ts +51 -0
  27. package/dist/modules/labels.js +108 -0
  28. package/dist/modules/locations.d.ts +51 -0
  29. package/dist/modules/locations.js +63 -0
  30. package/dist/modules/options.d.ts +27 -0
  31. package/dist/modules/options.js +44 -0
  32. package/dist/modules/organization.d.ts +13 -0
  33. package/dist/modules/organization.js +19 -0
  34. package/dist/modules/passes.d.ts +27 -0
  35. package/dist/modules/passes.js +44 -0
  36. package/dist/modules/person-events.d.ts +27 -0
  37. package/dist/modules/person-events.js +44 -0
  38. package/dist/modules/pre-checks.d.ts +27 -0
  39. package/dist/modules/pre-checks.js +44 -0
  40. package/dist/modules/roster-list-persons.d.ts +27 -0
  41. package/dist/modules/roster-list-persons.js +44 -0
  42. package/dist/modules/stations.d.ts +27 -0
  43. package/dist/modules/stations.js +44 -0
  44. package/dist/modules/themes.d.ts +27 -0
  45. package/dist/modules/themes.js +44 -0
  46. package/dist/types/check-ins.d.ts +325 -0
  47. package/dist/types/check-ins.js +6 -0
  48. package/dist/types/client.d.ts +12 -0
  49. package/dist/types/client.js +5 -0
  50. package/dist/types/index.d.ts +3 -0
  51. package/dist/types/index.js +18 -0
  52. package/package.json +75 -0
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ /**
3
+ * Events Module for Check-Ins API
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EventsModule = void 0;
7
+ const planning_center_base_ts_1 = require("@rachelallyson/planning-center-base-ts");
8
+ class EventsModule extends planning_center_base_ts_1.BaseModule {
9
+ constructor(httpClient, paginationHelper, eventEmitter) {
10
+ super(httpClient, paginationHelper, eventEmitter);
11
+ }
12
+ /**
13
+ * Get all events with optional filtering
14
+ */
15
+ async getAll(options = {}) {
16
+ const params = {};
17
+ if (options.where) {
18
+ Object.entries(options.where).forEach(([key, value]) => {
19
+ params[`where[${key}]`] = value;
20
+ });
21
+ }
22
+ if (options.include) {
23
+ params.include = options.include.join(',');
24
+ }
25
+ if (options.perPage) {
26
+ params.per_page = options.perPage;
27
+ }
28
+ if (options.page) {
29
+ params.page = options.page;
30
+ }
31
+ return this.getList('/check-ins/v2/events', params);
32
+ }
33
+ /**
34
+ * Get a single event by ID
35
+ */
36
+ async getById(id, include) {
37
+ const params = {};
38
+ if (include) {
39
+ params.include = include.join(',');
40
+ }
41
+ return this.getSingle(`/check-ins/v2/events/${id}`, params);
42
+ }
43
+ // ===== Associations =====
44
+ /**
45
+ * Get attendance types for an event
46
+ */
47
+ async getAttendanceTypes(eventId) {
48
+ return this.getList(`/check-ins/v2/events/${eventId}/attendance_types`);
49
+ }
50
+ /**
51
+ * Get check-ins for an event
52
+ */
53
+ async getCheckIns(eventId, options = {}) {
54
+ const params = {};
55
+ // Apply filters: attendee, checked_out, first_time, guest, not_checked_out,
56
+ // not_one_time_guest, one_time_guest, regular, volunteer
57
+ if (options.filter && options.filter.length > 0) {
58
+ options.filter.forEach(filter => {
59
+ params[filter] = 'true';
60
+ });
61
+ }
62
+ return this.getList(`/check-ins/v2/events/${eventId}/check_ins`, params);
63
+ }
64
+ /**
65
+ * Get current event times for an event
66
+ */
67
+ async getCurrentEventTimes(eventId) {
68
+ return this.getList(`/check-ins/v2/events/${eventId}/current_event_times`);
69
+ }
70
+ /**
71
+ * Get event labels for an event
72
+ */
73
+ async getEventLabels(eventId) {
74
+ return this.getList(`/check-ins/v2/events/${eventId}/event_labels`);
75
+ }
76
+ /**
77
+ * Get event periods for an event
78
+ */
79
+ async getEventPeriods(eventId) {
80
+ return this.getList(`/check-ins/v2/events/${eventId}/event_periods`);
81
+ }
82
+ /**
83
+ * Get integration links for an event
84
+ */
85
+ async getIntegrationLinks(eventId) {
86
+ return this.getList(`/check-ins/v2/events/${eventId}/integration_links`);
87
+ }
88
+ /**
89
+ * Get locations for an event
90
+ */
91
+ async getLocations(eventId) {
92
+ return this.getList(`/check-ins/v2/events/${eventId}/locations`);
93
+ }
94
+ /**
95
+ * Get person events for an event
96
+ */
97
+ async getPersonEvents(eventId) {
98
+ return this.getList(`/check-ins/v2/events/${eventId}/person_events`);
99
+ }
100
+ }
101
+ exports.EventsModule = EventsModule;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Headcounts Module for Check-Ins API
3
+ */
4
+ import { BaseModule } from '@rachelallyson/planning-center-base-ts';
5
+ import type { PcoHttpClient, PaginationHelper, PcoEventEmitter } from '@rachelallyson/planning-center-base-ts';
6
+ import type { HeadcountResource } from '../types';
7
+ export interface HeadcountsListOptions {
8
+ where?: Record<string, any>;
9
+ include?: string[];
10
+ perPage?: number;
11
+ page?: number;
12
+ }
13
+ export declare class HeadcountsModule extends BaseModule {
14
+ constructor(httpClient: PcoHttpClient, paginationHelper: PaginationHelper, eventEmitter: PcoEventEmitter);
15
+ /**
16
+ * Get all headcounts with optional filtering
17
+ */
18
+ getAll(options?: HeadcountsListOptions): Promise<{
19
+ data: HeadcountResource[];
20
+ meta?: any;
21
+ links?: any;
22
+ }>;
23
+ /**
24
+ * Get a single headcount by ID
25
+ */
26
+ getById(id: string, include?: string[]): Promise<HeadcountResource>;
27
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * Headcounts Module for Check-Ins API
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.HeadcountsModule = void 0;
7
+ const planning_center_base_ts_1 = require("@rachelallyson/planning-center-base-ts");
8
+ class HeadcountsModule extends planning_center_base_ts_1.BaseModule {
9
+ constructor(httpClient, paginationHelper, eventEmitter) {
10
+ super(httpClient, paginationHelper, eventEmitter);
11
+ }
12
+ /**
13
+ * Get all headcounts with optional filtering
14
+ */
15
+ async getAll(options = {}) {
16
+ const params = {};
17
+ if (options.where) {
18
+ Object.entries(options.where).forEach(([key, value]) => {
19
+ params[`where[${key}]`] = value;
20
+ });
21
+ }
22
+ if (options.include) {
23
+ params.include = options.include.join(',');
24
+ }
25
+ if (options.perPage) {
26
+ params.per_page = options.perPage;
27
+ }
28
+ if (options.page) {
29
+ params.page = options.page;
30
+ }
31
+ return this.getList('/check-ins/v2/headcounts', params);
32
+ }
33
+ /**
34
+ * Get a single headcount by ID
35
+ */
36
+ async getById(id, include) {
37
+ const params = {};
38
+ if (include) {
39
+ params.include = include.join(',');
40
+ }
41
+ return this.getSingle(`/check-ins/v2/headcounts/${id}`, params);
42
+ }
43
+ }
44
+ exports.HeadcountsModule = HeadcountsModule;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * IntegrationLinks Module for Check-Ins API
3
+ */
4
+ import { BaseModule } from '@rachelallyson/planning-center-base-ts';
5
+ import type { PcoHttpClient, PaginationHelper, PcoEventEmitter } from '@rachelallyson/planning-center-base-ts';
6
+ import type { IntegrationLinkResource } from '../types';
7
+ export interface IntegrationLinksListOptions {
8
+ where?: Record<string, any>;
9
+ include?: string[];
10
+ perPage?: number;
11
+ page?: number;
12
+ }
13
+ export declare class IntegrationLinksModule extends BaseModule {
14
+ constructor(httpClient: PcoHttpClient, paginationHelper: PaginationHelper, eventEmitter: PcoEventEmitter);
15
+ /**
16
+ * Get all integration links with optional filtering
17
+ */
18
+ getAll(options?: IntegrationLinksListOptions): Promise<{
19
+ data: IntegrationLinkResource[];
20
+ meta?: any;
21
+ links?: any;
22
+ }>;
23
+ /**
24
+ * Get a single integration link by ID
25
+ */
26
+ getById(id: string, include?: string[]): Promise<IntegrationLinkResource>;
27
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * IntegrationLinks Module for Check-Ins API
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IntegrationLinksModule = void 0;
7
+ const planning_center_base_ts_1 = require("@rachelallyson/planning-center-base-ts");
8
+ class IntegrationLinksModule extends planning_center_base_ts_1.BaseModule {
9
+ constructor(httpClient, paginationHelper, eventEmitter) {
10
+ super(httpClient, paginationHelper, eventEmitter);
11
+ }
12
+ /**
13
+ * Get all integration links with optional filtering
14
+ */
15
+ async getAll(options = {}) {
16
+ const params = {};
17
+ if (options.where) {
18
+ Object.entries(options.where).forEach(([key, value]) => {
19
+ params[`where[${key}]`] = value;
20
+ });
21
+ }
22
+ if (options.include) {
23
+ params.include = options.include.join(',');
24
+ }
25
+ if (options.perPage) {
26
+ params.per_page = options.perPage;
27
+ }
28
+ if (options.page) {
29
+ params.page = options.page;
30
+ }
31
+ return this.getList('/check-ins/v2/integration_links', params);
32
+ }
33
+ /**
34
+ * Get a single integration link by ID
35
+ */
36
+ async getById(id, include) {
37
+ const params = {};
38
+ if (include) {
39
+ params.include = include.join(',');
40
+ }
41
+ return this.getSingle(`/check-ins/v2/integration_links/${id}`, params);
42
+ }
43
+ }
44
+ exports.IntegrationLinksModule = IntegrationLinksModule;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Labels Module for Check-Ins API
3
+ */
4
+ import { BaseModule } from '@rachelallyson/planning-center-base-ts';
5
+ import type { PcoHttpClient, PaginationHelper, PcoEventEmitter } from '@rachelallyson/planning-center-base-ts';
6
+ import type { LabelResource, EventLabelResource, LocationLabelResource } from '../types';
7
+ export interface LabelsListOptions {
8
+ where?: Record<string, any>;
9
+ include?: string[];
10
+ perPage?: number;
11
+ page?: number;
12
+ }
13
+ export declare class LabelsModule extends BaseModule {
14
+ constructor(httpClient: PcoHttpClient, paginationHelper: PaginationHelper, eventEmitter: PcoEventEmitter);
15
+ /**
16
+ * Get all labels with optional filtering
17
+ */
18
+ getAll(options?: LabelsListOptions): Promise<{
19
+ data: LabelResource[];
20
+ meta?: any;
21
+ links?: any;
22
+ }>;
23
+ /**
24
+ * Get a single label by ID
25
+ */
26
+ getById(id: string, include?: string[]): Promise<LabelResource>;
27
+ /**
28
+ * Get all event labels
29
+ */
30
+ getEventLabels(options?: LabelsListOptions): Promise<{
31
+ data: EventLabelResource[];
32
+ meta?: any;
33
+ links?: any;
34
+ }>;
35
+ /**
36
+ * Get a single event label by ID
37
+ */
38
+ getEventLabelById(id: string, include?: string[]): Promise<EventLabelResource>;
39
+ /**
40
+ * Get all location labels
41
+ */
42
+ getLocationLabels(options?: LabelsListOptions): Promise<{
43
+ data: LocationLabelResource[];
44
+ meta?: any;
45
+ links?: any;
46
+ }>;
47
+ /**
48
+ * Get a single location label by ID
49
+ */
50
+ getLocationLabelById(id: string, include?: string[]): Promise<LocationLabelResource>;
51
+ }
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ /**
3
+ * Labels Module for Check-Ins API
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LabelsModule = void 0;
7
+ const planning_center_base_ts_1 = require("@rachelallyson/planning-center-base-ts");
8
+ class LabelsModule extends planning_center_base_ts_1.BaseModule {
9
+ constructor(httpClient, paginationHelper, eventEmitter) {
10
+ super(httpClient, paginationHelper, eventEmitter);
11
+ }
12
+ /**
13
+ * Get all labels with optional filtering
14
+ */
15
+ async getAll(options = {}) {
16
+ const params = {};
17
+ if (options.where) {
18
+ Object.entries(options.where).forEach(([key, value]) => {
19
+ params[`where[${key}]`] = value;
20
+ });
21
+ }
22
+ if (options.include) {
23
+ params.include = options.include.join(',');
24
+ }
25
+ if (options.perPage) {
26
+ params.per_page = options.perPage;
27
+ }
28
+ if (options.page) {
29
+ params.page = options.page;
30
+ }
31
+ return this.getList('/check-ins/v2/labels', params);
32
+ }
33
+ /**
34
+ * Get a single label by ID
35
+ */
36
+ async getById(id, include) {
37
+ const params = {};
38
+ if (include) {
39
+ params.include = include.join(',');
40
+ }
41
+ return this.getSingle(`/check-ins/v2/labels/${id}`, params);
42
+ }
43
+ // ===== Event Labels =====
44
+ /**
45
+ * Get all event labels
46
+ */
47
+ async getEventLabels(options = {}) {
48
+ const params = {};
49
+ if (options.where) {
50
+ Object.entries(options.where).forEach(([key, value]) => {
51
+ params[`where[${key}]`] = value;
52
+ });
53
+ }
54
+ if (options.include) {
55
+ params.include = options.include.join(',');
56
+ }
57
+ if (options.perPage) {
58
+ params.per_page = options.perPage;
59
+ }
60
+ if (options.page) {
61
+ params.page = options.page;
62
+ }
63
+ return this.getList('/check-ins/v2/event_labels', params);
64
+ }
65
+ /**
66
+ * Get a single event label by ID
67
+ */
68
+ async getEventLabelById(id, include) {
69
+ const params = {};
70
+ if (include) {
71
+ params.include = include.join(',');
72
+ }
73
+ return this.getSingle(`/check-ins/v2/event_labels/${id}`, params);
74
+ }
75
+ // ===== Location Labels =====
76
+ /**
77
+ * Get all location labels
78
+ */
79
+ async getLocationLabels(options = {}) {
80
+ const params = {};
81
+ if (options.where) {
82
+ Object.entries(options.where).forEach(([key, value]) => {
83
+ params[`where[${key}]`] = value;
84
+ });
85
+ }
86
+ if (options.include) {
87
+ params.include = options.include.join(',');
88
+ }
89
+ if (options.perPage) {
90
+ params.per_page = options.perPage;
91
+ }
92
+ if (options.page) {
93
+ params.page = options.page;
94
+ }
95
+ return this.getList('/check-ins/v2/location_labels', params);
96
+ }
97
+ /**
98
+ * Get a single location label by ID
99
+ */
100
+ async getLocationLabelById(id, include) {
101
+ const params = {};
102
+ if (include) {
103
+ params.include = include.join(',');
104
+ }
105
+ return this.getSingle(`/check-ins/v2/location_labels/${id}`, params);
106
+ }
107
+ }
108
+ exports.LabelsModule = LabelsModule;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Locations Module for Check-Ins API
3
+ */
4
+ import { BaseModule } from '@rachelallyson/planning-center-base-ts';
5
+ import type { PcoHttpClient, PaginationHelper, PcoEventEmitter } from '@rachelallyson/planning-center-base-ts';
6
+ import type { LocationResource, LocationEventPeriodResource, LocationEventTimeResource, LocationLabelResource } from '../types';
7
+ export interface LocationsListOptions {
8
+ where?: Record<string, any>;
9
+ include?: string[];
10
+ perPage?: number;
11
+ page?: number;
12
+ }
13
+ export declare class LocationsModule extends BaseModule {
14
+ constructor(httpClient: PcoHttpClient, paginationHelper: PaginationHelper, eventEmitter: PcoEventEmitter);
15
+ /**
16
+ * Get all locations with optional filtering
17
+ */
18
+ getAll(options?: LocationsListOptions): Promise<{
19
+ data: LocationResource[];
20
+ meta?: any;
21
+ links?: any;
22
+ }>;
23
+ /**
24
+ * Get a single location by ID
25
+ */
26
+ getById(id: string, include?: string[]): Promise<LocationResource>;
27
+ /**
28
+ * Get location event periods for a location
29
+ */
30
+ getLocationEventPeriods(locationId: string): Promise<{
31
+ data: LocationEventPeriodResource[];
32
+ meta?: any;
33
+ links?: any;
34
+ }>;
35
+ /**
36
+ * Get location event times for a location
37
+ */
38
+ getLocationEventTimes(locationId: string): Promise<{
39
+ data: LocationEventTimeResource[];
40
+ meta?: any;
41
+ links?: any;
42
+ }>;
43
+ /**
44
+ * Get location labels for a location
45
+ */
46
+ getLocationLabels(locationId: string): Promise<{
47
+ data: LocationLabelResource[];
48
+ meta?: any;
49
+ links?: any;
50
+ }>;
51
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /**
3
+ * Locations Module for Check-Ins API
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LocationsModule = void 0;
7
+ const planning_center_base_ts_1 = require("@rachelallyson/planning-center-base-ts");
8
+ class LocationsModule extends planning_center_base_ts_1.BaseModule {
9
+ constructor(httpClient, paginationHelper, eventEmitter) {
10
+ super(httpClient, paginationHelper, eventEmitter);
11
+ }
12
+ /**
13
+ * Get all locations with optional filtering
14
+ */
15
+ async getAll(options = {}) {
16
+ const params = {};
17
+ if (options.where) {
18
+ Object.entries(options.where).forEach(([key, value]) => {
19
+ params[`where[${key}]`] = value;
20
+ });
21
+ }
22
+ if (options.include) {
23
+ params.include = options.include.join(',');
24
+ }
25
+ if (options.perPage) {
26
+ params.per_page = options.perPage;
27
+ }
28
+ if (options.page) {
29
+ params.page = options.page;
30
+ }
31
+ return this.getList('/check-ins/v2/locations', params);
32
+ }
33
+ /**
34
+ * Get a single location by ID
35
+ */
36
+ async getById(id, include) {
37
+ const params = {};
38
+ if (include) {
39
+ params.include = include.join(',');
40
+ }
41
+ return this.getSingle(`/check-ins/v2/locations/${id}`, params);
42
+ }
43
+ // ===== Associations =====
44
+ /**
45
+ * Get location event periods for a location
46
+ */
47
+ async getLocationEventPeriods(locationId) {
48
+ return this.getList(`/check-ins/v2/locations/${locationId}/location_event_periods`);
49
+ }
50
+ /**
51
+ * Get location event times for a location
52
+ */
53
+ async getLocationEventTimes(locationId) {
54
+ return this.getList(`/check-ins/v2/locations/${locationId}/location_event_times`);
55
+ }
56
+ /**
57
+ * Get location labels for a location
58
+ */
59
+ async getLocationLabels(locationId) {
60
+ return this.getList(`/check-ins/v2/locations/${locationId}/location_labels`);
61
+ }
62
+ }
63
+ exports.LocationsModule = LocationsModule;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Options Module for Check-Ins API
3
+ */
4
+ import { BaseModule } from '@rachelallyson/planning-center-base-ts';
5
+ import type { PcoHttpClient, PaginationHelper, PcoEventEmitter } from '@rachelallyson/planning-center-base-ts';
6
+ import type { OptionResource } from '../types';
7
+ export interface OptionsListOptions {
8
+ where?: Record<string, any>;
9
+ include?: string[];
10
+ perPage?: number;
11
+ page?: number;
12
+ }
13
+ export declare class OptionsModule extends BaseModule {
14
+ constructor(httpClient: PcoHttpClient, paginationHelper: PaginationHelper, eventEmitter: PcoEventEmitter);
15
+ /**
16
+ * Get all options with optional filtering
17
+ */
18
+ getAll(options?: OptionsListOptions): Promise<{
19
+ data: OptionResource[];
20
+ meta?: any;
21
+ links?: any;
22
+ }>;
23
+ /**
24
+ * Get a single option by ID
25
+ */
26
+ getById(id: string, include?: string[]): Promise<OptionResource>;
27
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * Options Module for Check-Ins API
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.OptionsModule = void 0;
7
+ const planning_center_base_ts_1 = require("@rachelallyson/planning-center-base-ts");
8
+ class OptionsModule extends planning_center_base_ts_1.BaseModule {
9
+ constructor(httpClient, paginationHelper, eventEmitter) {
10
+ super(httpClient, paginationHelper, eventEmitter);
11
+ }
12
+ /**
13
+ * Get all options with optional filtering
14
+ */
15
+ async getAll(options = {}) {
16
+ const params = {};
17
+ if (options.where) {
18
+ Object.entries(options.where).forEach(([key, value]) => {
19
+ params[`where[${key}]`] = value;
20
+ });
21
+ }
22
+ if (options.include) {
23
+ params.include = options.include.join(',');
24
+ }
25
+ if (options.perPage) {
26
+ params.per_page = options.perPage;
27
+ }
28
+ if (options.page) {
29
+ params.page = options.page;
30
+ }
31
+ return this.getList('/check-ins/v2/options', params);
32
+ }
33
+ /**
34
+ * Get a single option by ID
35
+ */
36
+ async getById(id, include) {
37
+ const params = {};
38
+ if (include) {
39
+ params.include = include.join(',');
40
+ }
41
+ return this.getSingle(`/check-ins/v2/options/${id}`, params);
42
+ }
43
+ }
44
+ exports.OptionsModule = OptionsModule;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Organization Module for Check-Ins API
3
+ */
4
+ import { BaseModule } from '@rachelallyson/planning-center-base-ts';
5
+ import type { PcoHttpClient, PaginationHelper, PcoEventEmitter } from '@rachelallyson/planning-center-base-ts';
6
+ import type { OrganizationResource } from '../types';
7
+ export declare class OrganizationModule extends BaseModule {
8
+ constructor(httpClient: PcoHttpClient, paginationHelper: PaginationHelper, eventEmitter: PcoEventEmitter);
9
+ /**
10
+ * Get organization information
11
+ */
12
+ get(): Promise<OrganizationResource>;
13
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /**
3
+ * Organization Module for Check-Ins API
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.OrganizationModule = void 0;
7
+ const planning_center_base_ts_1 = require("@rachelallyson/planning-center-base-ts");
8
+ class OrganizationModule extends planning_center_base_ts_1.BaseModule {
9
+ constructor(httpClient, paginationHelper, eventEmitter) {
10
+ super(httpClient, paginationHelper, eventEmitter);
11
+ }
12
+ /**
13
+ * Get organization information
14
+ */
15
+ async get() {
16
+ return this.getSingle('/check-ins/v2/organization');
17
+ }
18
+ }
19
+ exports.OrganizationModule = OrganizationModule;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Passes Module for Check-Ins API
3
+ */
4
+ import { BaseModule } from '@rachelallyson/planning-center-base-ts';
5
+ import type { PcoHttpClient, PaginationHelper, PcoEventEmitter } from '@rachelallyson/planning-center-base-ts';
6
+ import type { PassResource } from '../types';
7
+ export interface PassesListOptions {
8
+ where?: Record<string, any>;
9
+ include?: string[];
10
+ perPage?: number;
11
+ page?: number;
12
+ }
13
+ export declare class PassesModule extends BaseModule {
14
+ constructor(httpClient: PcoHttpClient, paginationHelper: PaginationHelper, eventEmitter: PcoEventEmitter);
15
+ /**
16
+ * Get all passes with optional filtering
17
+ */
18
+ getAll(options?: PassesListOptions): Promise<{
19
+ data: PassResource[];
20
+ meta?: any;
21
+ links?: any;
22
+ }>;
23
+ /**
24
+ * Get a single pass by ID
25
+ */
26
+ getById(id: string, include?: string[]): Promise<PassResource>;
27
+ }