@rachelallyson/planning-center-people-ts 1.1.0 → 2.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 (56) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/README.md +16 -0
  3. package/dist/batch.d.ts +47 -0
  4. package/dist/batch.js +376 -0
  5. package/dist/client-manager.d.ts +66 -0
  6. package/dist/client-manager.js +150 -0
  7. package/dist/client.d.ts +71 -0
  8. package/dist/client.js +123 -0
  9. package/dist/core/http.d.ts +47 -0
  10. package/dist/core/http.js +242 -0
  11. package/dist/core/pagination.d.ts +34 -0
  12. package/dist/core/pagination.js +164 -0
  13. package/dist/index.d.ts +13 -3
  14. package/dist/index.js +23 -5
  15. package/dist/matching/matcher.d.ts +41 -0
  16. package/dist/matching/matcher.js +161 -0
  17. package/dist/matching/scoring.d.ts +35 -0
  18. package/dist/matching/scoring.js +141 -0
  19. package/dist/matching/strategies.d.ts +35 -0
  20. package/dist/matching/strategies.js +79 -0
  21. package/dist/modules/base.d.ts +46 -0
  22. package/dist/modules/base.js +82 -0
  23. package/dist/modules/contacts.d.ts +103 -0
  24. package/dist/modules/contacts.js +130 -0
  25. package/dist/modules/fields.d.ts +157 -0
  26. package/dist/modules/fields.js +294 -0
  27. package/dist/modules/households.d.ts +42 -0
  28. package/dist/modules/households.js +74 -0
  29. package/dist/modules/lists.d.ts +62 -0
  30. package/dist/modules/lists.js +92 -0
  31. package/dist/modules/notes.d.ts +74 -0
  32. package/dist/modules/notes.js +125 -0
  33. package/dist/modules/people.d.ts +196 -0
  34. package/dist/modules/people.js +221 -0
  35. package/dist/modules/workflows.d.ts +131 -0
  36. package/dist/modules/workflows.js +221 -0
  37. package/dist/monitoring.d.ts +53 -0
  38. package/dist/monitoring.js +142 -0
  39. package/dist/testing/index.d.ts +9 -0
  40. package/dist/testing/index.js +24 -0
  41. package/dist/testing/recorder.d.ts +58 -0
  42. package/dist/testing/recorder.js +195 -0
  43. package/dist/testing/simple-builders.d.ts +33 -0
  44. package/dist/testing/simple-builders.js +124 -0
  45. package/dist/testing/simple-factories.d.ts +91 -0
  46. package/dist/testing/simple-factories.js +279 -0
  47. package/dist/testing/types.d.ts +160 -0
  48. package/dist/testing/types.js +5 -0
  49. package/dist/types/batch.d.ts +50 -0
  50. package/dist/types/batch.js +5 -0
  51. package/dist/types/client.d.ts +81 -0
  52. package/dist/types/client.js +5 -0
  53. package/dist/types/events.d.ts +85 -0
  54. package/dist/types/events.js +5 -0
  55. package/dist/types/people.d.ts +20 -1
  56. package/package.json +9 -3
@@ -305,15 +305,34 @@ export interface WorkflowCardAttributes extends Attributes {
305
305
  status?: string;
306
306
  created_at?: string;
307
307
  updated_at?: string;
308
+ stage?: string;
308
309
  completed_at?: string | null;
309
- removed_at?: string | null;
310
+ overdue?: boolean;
311
+ calculated_due_at_in_days_ago?: number;
312
+ flagged_for_notification_at?: string | null;
313
+ moved_to_step_at?: string | null;
310
314
  snooze_until?: string | null;
315
+ removed_at?: string | null;
311
316
  overdue_at?: string | null;
312
317
  stage_id?: string;
313
318
  }
319
+ export interface WorkflowCardAssignableAttributes {
320
+ sticky_assignment?: boolean;
321
+ assignee_id?: string;
322
+ person_id?: string;
323
+ }
324
+ export interface WorkflowCardSnoozeAttributes {
325
+ duration: number;
326
+ }
327
+ export interface WorkflowCardEmailAttributes {
328
+ subject: string;
329
+ note: string;
330
+ }
314
331
  export interface WorkflowCardRelationships {
315
332
  workflow?: Relationship;
316
333
  person?: Relationship;
334
+ assignee?: Relationship;
335
+ current_step?: Relationship;
317
336
  }
318
337
  export interface WorkflowCardResource extends ResourceObject<'WorkflowCard', WorkflowCardAttributes, WorkflowCardRelationships> {
319
338
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rachelallyson/planning-center-people-ts",
3
- "version": "1.1.0",
4
- "description": "A strictly typed TypeScript client for Planning Center Online People API",
3
+ "version": "2.0.0",
4
+ "description": "A strictly typed TypeScript client for Planning Center Online People API with smart matching, batch operations, and enhanced developer experience",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
@@ -15,6 +15,7 @@
15
15
  "test:ci": "jest --ci --coverage --watchAll=false --testPathIgnorePatterns=integration.test.ts",
16
16
  "test:integration": "dotenv -e .env.test -- jest --testPathPatterns=integration.test.ts --setupFilesAfterEnv='<rootDir>/tests/integration-setup.ts' --testTimeout=30000",
17
17
  "test:integration:people-all": "dotenv -e .env.test -- jest --testPathPatterns=integration/people-.*.integration.test.ts --setupFilesAfterEnv='<rootDir>/tests/integration-setup.ts' --testTimeout=30000",
18
+ "test:integration:v2:all": "dotenv -e .env.test -- jest --testPathPatterns=integration/v2/.*.integration.test.ts --setupFilesAfterEnv='<rootDir>/tests/integration-setup.ts' --testTimeout=30000",
18
19
  "test:edge-cases": "jest --testPathPatterns=edge-cases.test.ts --testTimeout=30000",
19
20
  "test:all": "npm run test && npm run test:edge-cases",
20
21
  "prepublishOnly": "npm run build"
@@ -34,7 +35,12 @@
34
35
  "rate-limiting",
35
36
  "error-handling",
36
37
  "performance",
37
- "caching"
38
+ "caching",
39
+ "batch-operations",
40
+ "smart-matching",
41
+ "fluent-api",
42
+ "event-system",
43
+ "client-manager"
38
44
  ],
39
45
  "author": "Rachel Higley",
40
46
  "license": "MIT",