faithteams-api 4.2.0 → 4.6.1

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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/editorconfig.yml +2 -2
  3. data/.github/workflows/rubocop.yml +2 -2
  4. data/.github/workflows/rubygems.yml +2 -2
  5. data/.github/workflows/tester.yml +2 -2
  6. data/.github/workflows/yard.yml +2 -2
  7. data/.gitignore +1 -0
  8. data/.rubocop.yml +1 -2
  9. data/.tool-versions +1 -2
  10. data/CHANGELOG.md +37 -0
  11. data/Gemfile +5 -0
  12. data/Gemfile.lock +81 -70
  13. data/README.md +19 -0
  14. data/faithteams-api/.env.template +4 -0
  15. data/faithteams-api/Authenticate.bru +25 -0
  16. data/faithteams-api/api-v2.faithteams.com/Batch/Batch Create.bru +23 -0
  17. data/faithteams-api/api-v2.faithteams.com/Batch/Batch Totals.bru +19 -0
  18. data/faithteams-api/api-v2.faithteams.com/Batch/Batch Update.bru +27 -0
  19. data/faithteams-api/api-v2.faithteams.com/Batch/Batch.bru +15 -0
  20. data/faithteams-api/api-v2.faithteams.com/Batch/Batches.bru +32 -0
  21. data/faithteams-api/api-v2.faithteams.com/Batch/folder.bru +8 -0
  22. data/faithteams-api/api-v2.faithteams.com/Contribution/Contribution Create.bru +40 -0
  23. data/faithteams-api/api-v2.faithteams.com/Contribution/Contribution.bru +15 -0
  24. data/faithteams-api/api-v2.faithteams.com/Contribution/Contributions.bru +34 -0
  25. data/faithteams-api/api-v2.faithteams.com/Contribution/folder.bru +8 -0
  26. data/faithteams-api/api-v2.faithteams.com/Contribution Type/Contribution Type.bru +15 -0
  27. data/faithteams-api/api-v2.faithteams.com/Contribution Type/Contribution Types.bru +20 -0
  28. data/faithteams-api/api-v2.faithteams.com/Contribution Type/folder.bru +8 -0
  29. data/faithteams-api/api-v2.faithteams.com/Error/Integer Too Big.bru +15 -0
  30. data/faithteams-api/api-v2.faithteams.com/Error/Not Found.bru +15 -0
  31. data/faithteams-api/api-v2.faithteams.com/Error/folder.bru +8 -0
  32. data/faithteams-api/api-v2.faithteams.com/Fund/Fund Create.bru +30 -0
  33. data/faithteams-api/api-v2.faithteams.com/Fund/Fund Update.bru +32 -0
  34. data/faithteams-api/api-v2.faithteams.com/Fund/Fund.bru +15 -0
  35. data/faithteams-api/api-v2.faithteams.com/Fund/Funds.bru +20 -0
  36. data/faithteams-api/api-v2.faithteams.com/Fund/folder.bru +8 -0
  37. data/faithteams-api/api-v2.faithteams.com/folder.bru +13 -0
  38. data/faithteams-api/app.faithteams.com-api-v2/Authenticate.bru +26 -0
  39. data/faithteams-api/app.faithteams.com-api-v2/Checkins.bru +15 -0
  40. data/faithteams-api/app.faithteams.com-api-v2/Error/Not Found 2.bru +15 -0
  41. data/faithteams-api/app.faithteams.com-api-v2/Error/Not Found.bru +15 -0
  42. data/faithteams-api/app.faithteams.com-api-v2/Error/folder.bru +8 -0
  43. data/faithteams-api/app.faithteams.com-api-v2/People/Create Person.bru +28 -0
  44. data/faithteams-api/app.faithteams.com-api-v2/People/People Memberships.bru +15 -0
  45. data/faithteams-api/app.faithteams.com-api-v2/People/People.bru +27 -0
  46. data/faithteams-api/app.faithteams.com-api-v2/People/Person Tags.bru +15 -0
  47. data/faithteams-api/app.faithteams.com-api-v2/People/Person.bru +15 -0
  48. data/faithteams-api/app.faithteams.com-api-v2/People/Update Person.bru +26 -0
  49. data/faithteams-api/app.faithteams.com-api-v2/People/folder.bru +8 -0
  50. data/faithteams-api/app.faithteams.com-api-v2/Rules.bru +15 -0
  51. data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/Organization.bru +15 -0
  52. data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/Teams.bru +21 -0
  53. data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/folder.bru +8 -0
  54. data/faithteams-api/app.faithteams.com-api-v2/Unsubscribes.bru +19 -0
  55. data/faithteams-api/app.faithteams.com-api-v2/User/User.bru +15 -0
  56. data/faithteams-api/app.faithteams.com-api-v2/User/Users.bru +24 -0
  57. data/faithteams-api/app.faithteams.com-api-v2/User/folder.bru +8 -0
  58. data/faithteams-api/app.faithteams.com-api-v2/folder.bru +12 -0
  59. data/faithteams-api/bruno.json +9 -0
  60. data/faithteams-api/environments/FaithTeams.bru +17 -0
  61. data/faithteams-api.gemspec +6 -9
  62. data/lib/faithteams/version.rb +1 -1
  63. metadata +64 -56
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10f45f4810b75e3d6f104533b17ec47223cfeb29b88247785962794b292d281e
4
- data.tar.gz: 85e76ed90626d4d8e30ee4abfbac772543211c7040b0a454086c9af0e744a472
3
+ metadata.gz: 7094affc4f1e85b777c3c0753bb70419dbfc5fc837026f3eadce7c4e5016fde7
4
+ data.tar.gz: 23d30acf16c0e1873848e13600ebb7ec5c7224ed30bfa60f5534d08fe429d1d5
5
5
  SHA512:
6
- metadata.gz: 4ceb2ed942dfcacaf51d6b8668b32bc49570f3b20bc3175b5880d83b3b7b4cd8e4172610d297a567bcd15559d4557e4d37d1ca715a8da6e21a155c97a6d078b4
7
- data.tar.gz: 23144cd0b3b2a4ad6672d307253d4ea3119c91e42154c9f829604fbd611f20a7db836391a42912fd134db7735b1547ee04f6bac0a914b1b240a7b31fb5b314f9
6
+ metadata.gz: e5821e8131f2a41b8049095e177dd1ef60585d9ee9713e4d3d254e68ca1d87794ee561aa6608d8ccd819faba90828b914eb269bde83676cc06dae1f780405bdb
7
+ data.tar.gz: d7d99a29756dbd95b214694029f1cd7b35c3a1f42d57a99fc40bcb5ae5fa64b56d25f68af8430c36d1a97eb9274d4dc95dd669fce69ef628baafd1cc28ee657d
@@ -11,11 +11,11 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout Code
14
- uses: actions/checkout@v4
14
+ uses: actions/checkout@v6
15
15
  - name: Setup Node
16
16
  uses: actions/setup-node@v4
17
17
  with:
18
- node-version: 20
18
+ node-version: 24
19
19
  - name: Install editorconfig-checker
20
20
  run: npm install --global editorconfig-checker
21
21
  - name: Run editorconfig-checker
@@ -10,11 +10,11 @@ jobs:
10
10
  name: Check
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v4
13
+ - uses: actions/checkout@v6
14
14
  - name: Set up Ruby
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
17
- ruby-version: 3.0
17
+ ruby-version: 3.3
18
18
  - name: Install dependencies
19
19
  run: bundle install
20
20
  - name: Run Rubocop
@@ -25,12 +25,12 @@ jobs:
25
25
 
26
26
  steps:
27
27
  # Set up
28
- - uses: actions/checkout@v4
28
+ - uses: actions/checkout@v6
29
29
  - name: Set up Ruby
30
30
  uses: ruby/setup-ruby@v1
31
31
  with:
32
32
  bundler-cache: true
33
- ruby-version: ruby
33
+ ruby-version: 3.3
34
34
 
35
35
  # Release
36
36
  - uses: rubygems/release-gem@v1
@@ -10,11 +10,11 @@ jobs:
10
10
  name: Test
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v4
13
+ - uses: actions/checkout@v6
14
14
  - name: Set up Ruby
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
17
- ruby-version: 3.0
17
+ ruby-version: 3.3
18
18
  - name: Install dependencies
19
19
  run: bundle install
20
20
  - name: Run tests
@@ -10,11 +10,11 @@ jobs:
10
10
  name: Check
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v4
13
+ - uses: actions/checkout@v6
14
14
  - name: Set up Ruby
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
17
- ruby-version: 3.0
17
+ ruby-version: 3.3
18
18
  - name: Install dependencies
19
19
  run: bundle install
20
20
  - name: Run Yard
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /faithteams-api/*.env
10
11
 
11
12
  # rspec failure tracking
12
13
  .rspec_status
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-performance
3
3
  - rubocop-rake
4
4
  - rubocop-rspec
@@ -7,7 +7,6 @@ AllCops:
7
7
  # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
8
8
  # to ignore them, so only the ones explicitly set in this file are enabled.
9
9
  DisabledByDefault: true
10
- TargetRubyVersion: 3.0
11
10
 
12
11
  Performance:
13
12
  Exclude:
data/.tool-versions CHANGED
@@ -1,2 +1 @@
1
- ruby 3.3.5
2
-
1
+ ruby 3.3.0
data/CHANGELOG.md CHANGED
@@ -7,6 +7,43 @@ All notable changes to this project will be documented in this file.
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
+ ## [4.6.1]
11
+
12
+ ### Changed
13
+
14
+ 1. Use GH actions for Node 24. (ISG-92)
15
+
16
+ ### Fixed
17
+
18
+ 1. Lock rubygems.yml ruby version to 3.3. (ISG-92)
19
+
20
+ ## [4.6.0]
21
+
22
+ ### Changed
23
+
24
+ 1. Relax patch-level dependency pins to minor-level to allow security patch updates. (ISG-92)
25
+ 1. Remove transitive dependencies (logger, ostruct, rexml, thor) from gemspec; add rexml and thor as Gemfile security floor constraints. (ISG-92)
26
+
27
+ ## [4.5.0]
28
+
29
+ ### Added
30
+
31
+ 1. Add Bruno API Client (to eventually replace ThunderClient). (IN-2728)
32
+
33
+ ## [4.4.0]
34
+
35
+ ### Changed
36
+
37
+ 1. Update GH Workflows to use Ruby 3.3.0. (IN-2722)
38
+ 1. Update .tool-versions to use Ruby 3.3.0. (IN-2722)
39
+ 1. Update Rubocop. (IN-2722)
40
+
41
+ ## [4.3.0]
42
+
43
+ ### Changed
44
+
45
+ 1. Bump dependencies to address security vulnerabilities. (IN-2714)
46
+
10
47
  ## [4.2.0] - 2025-02-18
11
48
 
12
49
  ### Changed
data/Gemfile CHANGED
@@ -4,3 +4,8 @@ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in faithteams-api.gemspec
6
6
  gemspec
7
+
8
+ # Security floors for transitive dependencies not declared in the gemspec.
9
+ # These are not upper-bounded — bundle audit is the ongoing security check.
10
+ gem "rexml", ">= 3.4.2" # webmock → crack → rexml
11
+ gem "thor", ">= 1.4.0" # guard-rspec → guard → thor
data/Gemfile.lock CHANGED
@@ -1,17 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faithteams-api (4.2.0)
5
- activesupport (~> 7.2.2)
4
+ faithteams-api (4.6.1)
5
+ activesupport (~> 7.2)
6
6
  http (~> 5.1)
7
- logger (~> 1.6.1)
8
- ostruct (~> 0.6.0)
9
- rexml (~> 3.3.6)
10
7
 
11
8
  GEM
12
9
  remote: https://rubygems.org/
13
10
  specs:
14
- activesupport (7.2.2.1)
11
+ activesupport (7.2.3.1)
15
12
  base64
16
13
  benchmark (>= 0.3)
17
14
  bigdecimal
@@ -20,34 +17,36 @@ GEM
20
17
  drb
21
18
  i18n (>= 1.6, < 2)
22
19
  logger (>= 1.4.2)
23
- minitest (>= 5.1)
20
+ minitest (>= 5.1, < 6)
24
21
  securerandom (>= 0.3)
25
22
  tzinfo (~> 2.0, >= 2.0.5)
26
- addressable (2.8.7)
27
- public_suffix (>= 2.0.2, < 7.0)
28
- ast (2.4.2)
29
- base64 (0.2.0)
30
- benchmark (0.4.0)
31
- bigdecimal (3.1.8)
23
+ addressable (2.8.9)
24
+ public_suffix (>= 2.0.2, < 8.0)
25
+ ast (2.4.3)
26
+ base64 (0.3.0)
27
+ benchmark (0.5.0)
28
+ bigdecimal (4.0.1)
32
29
  byebug (11.1.3)
33
30
  coderay (1.1.3)
34
- concurrent-ruby (1.3.4)
35
- connection_pool (2.4.1)
36
- crack (1.0.0)
31
+ concurrent-ruby (1.3.6)
32
+ connection_pool (3.0.2)
33
+ crack (1.0.1)
37
34
  bigdecimal
38
35
  rexml
39
- diff-lcs (1.5.1)
36
+ diff-lcs (1.6.2)
40
37
  docile (1.4.1)
41
38
  domain_name (0.6.20240107)
42
- drb (2.2.1)
43
- ffi (1.17.0)
39
+ drb (2.2.3)
40
+ ffi (1.17.4)
44
41
  ffi-compiler (1.3.2)
45
42
  ffi (>= 1.15.5)
46
43
  rake
47
- formatador (1.1.0)
48
- guard (2.19.0)
44
+ formatador (1.2.3)
45
+ reline
46
+ guard (2.20.1)
49
47
  formatador (>= 0.2.4)
50
48
  listen (>= 2.7, < 4.0)
49
+ logger (~> 1.6)
51
50
  lumberjack (>= 1.0.12, < 2.0)
52
51
  nenv (~> 0.1)
53
52
  notiffany (~> 0.0)
@@ -59,83 +58,93 @@ GEM
59
58
  guard (~> 2.1)
60
59
  guard-compat (~> 1.1)
61
60
  rspec (>= 2.99.0, < 4.0)
62
- hashdiff (1.1.2)
63
- http (5.2.0)
61
+ hashdiff (1.2.1)
62
+ http (5.3.1)
64
63
  addressable (~> 2.8)
65
- base64 (~> 0.1)
66
64
  http-cookie (~> 1.0)
67
65
  http-form_data (~> 2.2)
68
66
  llhttp-ffi (~> 0.5.0)
69
- http-cookie (1.0.8)
67
+ http-cookie (1.1.0)
70
68
  domain_name (~> 0.5)
71
69
  http-form_data (2.3.0)
72
- i18n (1.14.6)
70
+ i18n (1.14.8)
73
71
  concurrent-ruby (~> 1.0)
74
- json (2.9.0)
75
- language_server-protocol (3.17.0.3)
76
- listen (3.9.0)
72
+ io-console (0.8.2)
73
+ json (2.19.3)
74
+ language_server-protocol (3.17.0.5)
75
+ lint_roller (1.1.0)
76
+ listen (3.10.0)
77
+ logger
77
78
  rb-fsevent (~> 0.10, >= 0.10.3)
78
79
  rb-inotify (~> 0.9, >= 0.9.10)
79
- llhttp-ffi (0.5.0)
80
+ llhttp-ffi (0.5.1)
80
81
  ffi-compiler (~> 1.0)
81
82
  rake (~> 13.0)
82
- logger (1.6.3)
83
- lumberjack (1.2.10)
83
+ logger (1.7.0)
84
+ lumberjack (1.4.2)
84
85
  method_source (1.1.0)
85
- minitest (5.25.4)
86
+ minitest (5.27.0)
86
87
  nenv (0.3.0)
87
88
  notiffany (0.1.3)
88
89
  nenv (~> 0.1)
89
90
  shellany (~> 0.0)
90
- ostruct (0.6.1)
91
- parallel (1.26.3)
92
- parser (3.3.6.0)
91
+ parallel (1.27.0)
92
+ parser (3.3.11.0)
93
93
  ast (~> 2.4.1)
94
94
  racc
95
- pry (0.15.0)
95
+ prism (1.9.0)
96
+ pry (0.16.0)
96
97
  coderay (~> 1.1)
97
98
  method_source (~> 1.0)
98
- public_suffix (6.0.1)
99
+ reline (>= 0.6.0)
100
+ public_suffix (7.0.5)
99
101
  racc (1.8.1)
100
102
  rainbow (3.1.1)
101
- rake (13.2.1)
103
+ rake (13.3.1)
102
104
  rb-fsevent (0.11.2)
103
105
  rb-inotify (0.11.1)
104
106
  ffi (~> 1.0)
105
- regexp_parser (2.9.3)
106
- rexml (3.3.9)
107
- rspec (3.13.0)
107
+ regexp_parser (2.11.3)
108
+ reline (0.6.3)
109
+ io-console (~> 0.5)
110
+ rexml (3.4.4)
111
+ rspec (3.13.2)
108
112
  rspec-core (~> 3.13.0)
109
113
  rspec-expectations (~> 3.13.0)
110
114
  rspec-mocks (~> 3.13.0)
111
- rspec-core (3.13.2)
115
+ rspec-core (3.13.6)
112
116
  rspec-support (~> 3.13.0)
113
- rspec-expectations (3.13.3)
117
+ rspec-expectations (3.13.5)
114
118
  diff-lcs (>= 1.2.0, < 2.0)
115
119
  rspec-support (~> 3.13.0)
116
- rspec-mocks (3.13.2)
120
+ rspec-mocks (3.13.8)
117
121
  diff-lcs (>= 1.2.0, < 2.0)
118
122
  rspec-support (~> 3.13.0)
119
- rspec-support (3.13.2)
120
- rubocop (1.69.2)
123
+ rspec-support (3.13.7)
124
+ rubocop (1.86.0)
121
125
  json (~> 2.3)
122
- language_server-protocol (>= 3.17.0)
126
+ language_server-protocol (~> 3.17.0.2)
127
+ lint_roller (~> 1.1.0)
123
128
  parallel (~> 1.10)
124
129
  parser (>= 3.3.0.2)
125
130
  rainbow (>= 2.2.2, < 4.0)
126
131
  regexp_parser (>= 2.9.3, < 3.0)
127
- rubocop-ast (>= 1.36.2, < 2.0)
132
+ rubocop-ast (>= 1.49.0, < 2.0)
128
133
  ruby-progressbar (~> 1.7)
129
134
  unicode-display_width (>= 2.4.0, < 4.0)
130
- rubocop-ast (1.37.0)
131
- parser (>= 3.3.1.0)
132
- rubocop-performance (1.23.0)
133
- rubocop (>= 1.48.1, < 2.0)
134
- rubocop-ast (>= 1.31.1, < 2.0)
135
- rubocop-rake (0.6.0)
136
- rubocop (~> 1.0)
137
- rubocop-rspec (1.42.0)
138
- rubocop (>= 0.87.0)
135
+ rubocop-ast (1.49.1)
136
+ parser (>= 3.3.7.2)
137
+ prism (~> 1.7)
138
+ rubocop-performance (1.26.1)
139
+ lint_roller (~> 1.1)
140
+ rubocop (>= 1.75.0, < 2.0)
141
+ rubocop-ast (>= 1.47.1, < 2.0)
142
+ rubocop-rake (0.7.1)
143
+ lint_roller (~> 1.1)
144
+ rubocop (>= 1.72.1)
145
+ rubocop-rspec (3.9.0)
146
+ lint_roller (~> 1.1)
147
+ rubocop (~> 1.81)
139
148
  ruby-progressbar (1.13.0)
140
149
  securerandom (0.4.1)
141
150
  shellany (0.0.1)
@@ -143,19 +152,19 @@ GEM
143
152
  docile (~> 1.1)
144
153
  simplecov-html (~> 0.11)
145
154
  simplecov_json_formatter (~> 0.1)
146
- simplecov-html (0.13.1)
155
+ simplecov-html (0.13.2)
147
156
  simplecov_json_formatter (0.1.4)
148
- thor (1.3.2)
157
+ thor (1.5.0)
149
158
  tzinfo (2.0.6)
150
159
  concurrent-ruby (~> 1.0)
151
- unicode-display_width (3.1.2)
152
- unicode-emoji (~> 4.0, >= 4.0.4)
153
- unicode-emoji (4.0.4)
154
- webmock (3.24.0)
160
+ unicode-display_width (3.2.0)
161
+ unicode-emoji (~> 4.1)
162
+ unicode-emoji (4.2.0)
163
+ webmock (3.26.2)
155
164
  addressable (>= 2.8.0)
156
165
  crack (>= 0.3.2)
157
166
  hashdiff (>= 0.4.0, < 2.0.0)
158
- yard (0.9.37)
167
+ yard (0.9.38)
159
168
 
160
169
  PLATFORMS
161
170
  ruby
@@ -165,14 +174,16 @@ DEPENDENCIES
165
174
  faithteams-api!
166
175
  guard-rspec (~> 4.7)
167
176
  rake (~> 13.0)
177
+ rexml (>= 3.4.2)
168
178
  rspec (~> 3.12)
169
- rubocop (~> 1.42)
170
- rubocop-performance (~> 1.17)
171
- rubocop-rake (~> 0.6)
172
- rubocop-rspec (~> 1.42)
179
+ rubocop (~> 1.73)
180
+ rubocop-performance (~> 1.24)
181
+ rubocop-rake (~> 0.7)
182
+ rubocop-rspec (~> 3.5)
173
183
  simplecov (~> 0.21)
184
+ thor (>= 1.4.0)
174
185
  webmock (~> 3.18)
175
186
  yard (~> 0.9)
176
187
 
177
188
  BUNDLED WITH
178
- 2.5.7
189
+ 2.5.17
data/README.md CHANGED
@@ -29,6 +29,25 @@ Or install it yourself as:
29
29
 
30
30
  `gem install faithteams`
31
31
 
32
+ ## VS Code Bruno Extension
33
+
34
+ We are now using the [Bruno API Client](https://docs.usebruno.com/introduction/what-is-bruno) for developing and testing 2nd party API requests. You can use a desktop app or VS Code extension to use Bruno.
35
+
36
+ ### Desktop App
37
+
38
+ 1. Simply follow these instructions for your desktop app [installation options](https://docs.usebruno.com/get-started/bruno-basics/download).
39
+
40
+ ### VS Code Extension
41
+
42
+ 1. If you don't already have it, install the VS Code Bruno Extension.
43
+ 1. After opening the extension, click the + button to open a "collection".
44
+ 1. Find the root level '[second_party]-api' directory. (ie 'faithteams-api')
45
+ 1. Make a copy of the .env.template file (and make sure to just call it .env) and fill in the necessary values from 1Password.
46
+ 1. In the left pane, open the ... menu beside faithteams-api and select *settings*.
47
+ 1. Select your desired environment to use with this collection in the upper right (most likely *FaithTeams*).
48
+ 1. You should now be ready to make some API calls!
49
+ 1. See Bruno's [VS Code Extension Documentation](https://docs.usebruno.com/vs-code-extension/overview) for more details.
50
+
32
51
  ## Contributing
33
52
 
34
53
  ### How to Contribute
@@ -0,0 +1,4 @@
1
+ # API V1 & V2
2
+ user_id=
3
+ password=
4
+ user_credentials=<user_id>:<password>
@@ -0,0 +1,25 @@
1
+ meta {
2
+ name: Authenticate
3
+ type: http
4
+ seq: 1
5
+ }
6
+
7
+ get {
8
+ url: https://api.faithteams.com/api/v1/authenticate
9
+ body: none
10
+ auth: basic
11
+ }
12
+
13
+ auth:basic {
14
+ username: {{process.env.user_id}}
15
+ password: {{process.env.password}}
16
+ }
17
+
18
+ script:post-response {
19
+ let body = res.getBody();
20
+ bru.setEnvVar("auth_token", body.data.token);
21
+ }
22
+
23
+ settings {
24
+ encodeUrl: true
25
+ }
@@ -0,0 +1,23 @@
1
+ meta {
2
+ name: Batch Create
3
+ type: http
4
+ seq: 3
5
+ }
6
+
7
+ post {
8
+ url: https://api-v2.faithteams.com/batches
9
+ body: json
10
+ auth: inherit
11
+ }
12
+
13
+ body:json {
14
+ {
15
+ "title":"Tithely 2023-07-19 Bank",
16
+ "dtm":"2023-07-19 00:00:00",
17
+ "status":"O"
18
+ }
19
+ }
20
+
21
+ settings {
22
+ encodeUrl: true
23
+ }
@@ -0,0 +1,19 @@
1
+ meta {
2
+ name: Batch Totals
3
+ type: http
4
+ seq: 4
5
+ }
6
+
7
+ get {
8
+ url: https://api-v2.faithteams.com/batches/totals?batchIds={{batch_id}},{{batch_id_2}}
9
+ body: none
10
+ auth: inherit
11
+ }
12
+
13
+ params:query {
14
+ batchIds: {{batch_id}},{{batch_id_2}}
15
+ }
16
+
17
+ settings {
18
+ encodeUrl: true
19
+ }
@@ -0,0 +1,27 @@
1
+ meta {
2
+ name: Batch Update
3
+ type: http
4
+ seq: 5
5
+ }
6
+
7
+ put {
8
+ url: https://api-v2.faithteams.com/batches/{{batch_id}}
9
+ body: json
10
+ auth: inherit
11
+ }
12
+
13
+ body:json {
14
+ {
15
+ "orgId": {{organization_id}},
16
+ "status": "D",
17
+ "title": "Tithely 2023-07-19 Bank",
18
+ "dtm": "2023-07-19 00:00:00",
19
+ "updatedDtm": "2023-08-28 23:45:44",
20
+ "updatedUser": 27985,
21
+ "contributions": []
22
+ }
23
+ }
24
+
25
+ settings {
26
+ encodeUrl: true
27
+ }
@@ -0,0 +1,15 @@
1
+ meta {
2
+ name: Batch
3
+ type: http
4
+ seq: 2
5
+ }
6
+
7
+ get {
8
+ url: https://api-v2.faithteams.com/batches/{{batch_id}}
9
+ body: none
10
+ auth: inherit
11
+ }
12
+
13
+ settings {
14
+ encodeUrl: true
15
+ }
@@ -0,0 +1,32 @@
1
+ meta {
2
+ name: Batches
3
+ type: http
4
+ seq: 1
5
+ }
6
+
7
+ get {
8
+ url: https://api-v2.faithteams.com/batches?sort=dtm&sortDirection=desc&dtm=2023-08-28
9
+ body: none
10
+ auth: inherit
11
+ }
12
+
13
+ params:query {
14
+ sort: dtm
15
+ sortDirection: desc
16
+ dtm: 2023-08-28
17
+ ~status: O
18
+ ~title: 2023-08-28 Central Campus Tithely Card
19
+ ~limit:
20
+ ~start:
21
+ ~batchIds: 200782
22
+ }
23
+
24
+ script:post-response {
25
+ let body = res.getBody();
26
+ bru.setEnvVar("batch_id", String(body.data[0].batchId));
27
+ bru.setEnvVar("batch_id_2", String(body.data[1].batchId));
28
+ }
29
+
30
+ settings {
31
+ encodeUrl: true
32
+ }
@@ -0,0 +1,8 @@
1
+ meta {
2
+ name: Batch
3
+ seq: 1
4
+ }
5
+
6
+ auth {
7
+ mode: inherit
8
+ }
@@ -0,0 +1,40 @@
1
+ meta {
2
+ name: Contribution Create
3
+ type: http
4
+ seq: 3
5
+ }
6
+
7
+ post {
8
+ url: https://api-v2.faithteams.com/contributions
9
+ body: json
10
+ auth: inherit
11
+ }
12
+
13
+ body:json {
14
+ [
15
+ {
16
+ "recordType":"H",
17
+ "personId":779137,
18
+ "batchId":195770,
19
+ "amount":"100.00",
20
+ "fee":"2.00",
21
+ "netAmount":"98.00",
22
+ "contributionTypeId":24,
23
+ "status":"A",
24
+ "note":"Date: 2023-07-17, Method: card, Memo: for the animals"
25
+ },
26
+ {
27
+ "recordType":"D",
28
+ "fundId":7894,
29
+ "personId":779137,
30
+ "batchId":195770,
31
+ "amount":"100.00",
32
+ "fee":"2.00",
33
+ "netAmount":"98.00"
34
+ }
35
+ ]
36
+ }
37
+
38
+ settings {
39
+ encodeUrl: true
40
+ }
@@ -0,0 +1,15 @@
1
+ meta {
2
+ name: Contribution
3
+ type: http
4
+ seq: 2
5
+ }
6
+
7
+ get {
8
+ url: https://api-v2.faithteams.com/contributions/{{contribution_parent_id}}
9
+ body: none
10
+ auth: inherit
11
+ }
12
+
13
+ settings {
14
+ encodeUrl: true
15
+ }