faithteams-api 4.6.1 → 4.6.2

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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/faithteams-api.gemspec +8 -2
  4. data/lib/faithteams/version.rb +1 -1
  5. metadata +2 -76
  6. data/.editorconfig +0 -11
  7. data/.github/CODEOWNERS +0 -1
  8. data/.github/CONTRIBUTING.md +0 -35
  9. data/.github/PULL_REQUEST_TEMPLATE.md +0 -8
  10. data/.github/workflows/editorconfig.yml +0 -23
  11. data/.github/workflows/rubocop.yml +0 -21
  12. data/.github/workflows/rubygems.yml +0 -36
  13. data/.github/workflows/tester.yml +0 -21
  14. data/.github/workflows/yard.yml +0 -21
  15. data/.gitignore +0 -17
  16. data/.rspec +0 -2
  17. data/.rubocop.yml +0 -228
  18. data/.tool-versions +0 -1
  19. data/CODE_OF_CONDUCT.md +0 -128
  20. data/Gemfile +0 -11
  21. data/Gemfile.lock +0 -189
  22. data/Guardfile +0 -50
  23. data/Rakefile +0 -8
  24. data/bin/console +0 -15
  25. data/bin/setup +0 -8
  26. data/faithteams-api/.env.template +0 -4
  27. data/faithteams-api/Authenticate.bru +0 -25
  28. data/faithteams-api/api-v2.faithteams.com/Batch/Batch Create.bru +0 -23
  29. data/faithteams-api/api-v2.faithteams.com/Batch/Batch Totals.bru +0 -19
  30. data/faithteams-api/api-v2.faithteams.com/Batch/Batch Update.bru +0 -27
  31. data/faithteams-api/api-v2.faithteams.com/Batch/Batch.bru +0 -15
  32. data/faithteams-api/api-v2.faithteams.com/Batch/Batches.bru +0 -32
  33. data/faithteams-api/api-v2.faithteams.com/Batch/folder.bru +0 -8
  34. data/faithteams-api/api-v2.faithteams.com/Contribution/Contribution Create.bru +0 -40
  35. data/faithteams-api/api-v2.faithteams.com/Contribution/Contribution.bru +0 -15
  36. data/faithteams-api/api-v2.faithteams.com/Contribution/Contributions.bru +0 -34
  37. data/faithteams-api/api-v2.faithteams.com/Contribution/folder.bru +0 -8
  38. data/faithteams-api/api-v2.faithteams.com/Contribution Type/Contribution Type.bru +0 -15
  39. data/faithteams-api/api-v2.faithteams.com/Contribution Type/Contribution Types.bru +0 -20
  40. data/faithteams-api/api-v2.faithteams.com/Contribution Type/folder.bru +0 -8
  41. data/faithteams-api/api-v2.faithteams.com/Error/Integer Too Big.bru +0 -15
  42. data/faithteams-api/api-v2.faithteams.com/Error/Not Found.bru +0 -15
  43. data/faithteams-api/api-v2.faithteams.com/Error/folder.bru +0 -8
  44. data/faithteams-api/api-v2.faithteams.com/Fund/Fund Create.bru +0 -30
  45. data/faithteams-api/api-v2.faithteams.com/Fund/Fund Update.bru +0 -32
  46. data/faithteams-api/api-v2.faithteams.com/Fund/Fund.bru +0 -15
  47. data/faithteams-api/api-v2.faithteams.com/Fund/Funds.bru +0 -20
  48. data/faithteams-api/api-v2.faithteams.com/Fund/folder.bru +0 -8
  49. data/faithteams-api/api-v2.faithteams.com/folder.bru +0 -13
  50. data/faithteams-api/app.faithteams.com-api-v2/Authenticate.bru +0 -26
  51. data/faithteams-api/app.faithteams.com-api-v2/Checkins.bru +0 -15
  52. data/faithteams-api/app.faithteams.com-api-v2/Error/Not Found 2.bru +0 -15
  53. data/faithteams-api/app.faithteams.com-api-v2/Error/Not Found.bru +0 -15
  54. data/faithteams-api/app.faithteams.com-api-v2/Error/folder.bru +0 -8
  55. data/faithteams-api/app.faithteams.com-api-v2/People/Create Person.bru +0 -28
  56. data/faithteams-api/app.faithteams.com-api-v2/People/People Memberships.bru +0 -15
  57. data/faithteams-api/app.faithteams.com-api-v2/People/People.bru +0 -27
  58. data/faithteams-api/app.faithteams.com-api-v2/People/Person Tags.bru +0 -15
  59. data/faithteams-api/app.faithteams.com-api-v2/People/Person.bru +0 -15
  60. data/faithteams-api/app.faithteams.com-api-v2/People/Update Person.bru +0 -26
  61. data/faithteams-api/app.faithteams.com-api-v2/People/folder.bru +0 -8
  62. data/faithteams-api/app.faithteams.com-api-v2/Rules.bru +0 -15
  63. data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/Organization.bru +0 -15
  64. data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/Teams.bru +0 -21
  65. data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/folder.bru +0 -8
  66. data/faithteams-api/app.faithteams.com-api-v2/Unsubscribes.bru +0 -19
  67. data/faithteams-api/app.faithteams.com-api-v2/User/User.bru +0 -15
  68. data/faithteams-api/app.faithteams.com-api-v2/User/Users.bru +0 -24
  69. data/faithteams-api/app.faithteams.com-api-v2/User/folder.bru +0 -8
  70. data/faithteams-api/app.faithteams.com-api-v2/folder.bru +0 -12
  71. data/faithteams-api/bruno.json +0 -9
  72. data/faithteams-api/environments/FaithTeams.bru +0 -17
  73. data/guides/api_client_interface.md +0 -18
  74. data/guides/release-process.md +0 -11
  75. data/thunder-tests/.gitignore +0 -2
  76. data/thunder-tests/collections/tc_col_faithteams-api.json +0 -1301
  77. data/thunder-tests/collections/tc_col_faithteams-app.json +0 -1189
  78. data/thunder-tests/environments/tc_env_faithteams.json +0 -59
  79. data/thunder-tests/faithteams.env.template +0 -4
@@ -1,20 +0,0 @@
1
- meta {
2
- name: Contribution Types
3
- type: http
4
- seq: 1
5
- }
6
-
7
- get {
8
- url: https://api-v2.faithteams.com/contributiontypes
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- script:post-response {
14
- let body = res.getBody();
15
- bru.setEnvVar("contribution_type_id", String(body.data[0].contributionTypeId));
16
- }
17
-
18
- settings {
19
- encodeUrl: true
20
- }
@@ -1,8 +0,0 @@
1
- meta {
2
- name: Contribution Type
3
- seq: 4
4
- }
5
-
6
- auth {
7
- mode: inherit
8
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Integer Too Big
3
- type: http
4
- seq: 2
5
- }
6
-
7
- get {
8
- url: https://api-v2.faithteams.com/contributiontypes/9999999999999
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Not Found
3
- type: http
4
- seq: 1
5
- }
6
-
7
- get {
8
- url: https://api-v2.faithteams.com/contributiontypes/9999999
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,8 +0,0 @@
1
- meta {
2
- name: Error
3
- seq: 5
4
- }
5
-
6
- auth {
7
- mode: inherit
8
- }
@@ -1,30 +0,0 @@
1
- meta {
2
- name: Fund Create
3
- type: http
4
- seq: 3
5
- }
6
-
7
- post {
8
- url: https://api-v2.faithteams.com/funds
9
- body: json
10
- auth: inherit
11
- }
12
-
13
- body:json {
14
- {
15
- "fundId":-1,
16
- "name":"Cat Fund",
17
- "description":"$$ for kitties",
18
- "status":"A",
19
- "onlineStatus":"I",
20
- "taxDeductible":"Y",
21
- "isDefault":"N",
22
- "sort":1,
23
- "showInternally":true,
24
- "showExternally":false
25
- }
26
- }
27
-
28
- settings {
29
- encodeUrl: true
30
- }
@@ -1,32 +0,0 @@
1
- meta {
2
- name: Fund Update
3
- type: http
4
- seq: 4
5
- }
6
-
7
- put {
8
- url: https://api-v2.faithteams.com/funds/{{fund_id}}
9
- body: json
10
- auth: inherit
11
- }
12
-
13
- body:json {
14
- {
15
- "name": "Doggy Fund",
16
- "description": "$ for the pups",
17
- "status": "A",
18
- "onlineStatus": "I",
19
- "sort": 0,
20
- "taxDeductible": "Y",
21
- "isDefault": "Y",
22
- "createdDtm": "2023-04-17 15:01:26",
23
- "createdUser": 27850,
24
- "updatedDtm": "2023-04-17 15:21:37",
25
- "updatedUser": 27850,
26
- "defaultFund": true
27
- }
28
- }
29
-
30
- settings {
31
- encodeUrl: true
32
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Fund
3
- type: http
4
- seq: 2
5
- }
6
-
7
- get {
8
- url: https://api-v2.faithteams.com/funds/{{fund_id}}
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,20 +0,0 @@
1
- meta {
2
- name: Funds
3
- type: http
4
- seq: 1
5
- }
6
-
7
- get {
8
- url: https://api-v2.faithteams.com/funds
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- script:post-response {
14
- let body = res.getBody();
15
- bru.setEnvVar("fund_id", String(body.data[0].fundId));
16
- }
17
-
18
- settings {
19
- encodeUrl: true
20
- }
@@ -1,8 +0,0 @@
1
- meta {
2
- name: Fund
3
- seq: 2
4
- }
5
-
6
- auth {
7
- mode: inherit
8
- }
@@ -1,13 +0,0 @@
1
- meta {
2
- name: api-v2.faithteams.com
3
- seq: 3
4
- }
5
-
6
- auth {
7
- mode: basic
8
- }
9
-
10
- auth:basic {
11
- username: {{process.env.user_id}}
12
- password: {{process.env.password}}
13
- }
@@ -1,26 +0,0 @@
1
- meta {
2
- name: Authenticate
3
- type: http
4
- seq: 8
5
- }
6
-
7
- post {
8
- url: https://app.faithteams.com/api/v2/authenticate
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- script:pre-request {
14
- // Require the btoa library
15
- const btoa = require('btoa');
16
- // Get the username and password from environment variables
17
- const authorization = bru.getEnvVar("user_id") + ":" + bru.getEnvVar("password");
18
- // Encode the credentials using btoa()
19
- const authorizationBase64 = btoa(authorization);
20
- // Set the Authorization header with the Base64-encoded string
21
- req.setHeader("Authorization", "Basic " + authorizationBase64);
22
- }
23
-
24
- settings {
25
- encodeUrl: true
26
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Checkins
3
- type: http
4
- seq: 6
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/checkins
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Not Found 2
3
- type: http
4
- seq: 2
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/people/memberships/10
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Not Found
3
- type: http
4
- seq: 1
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/tags
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,8 +0,0 @@
1
- meta {
2
- name: Error
3
- seq: 4
4
- }
5
-
6
- auth {
7
- mode: inherit
8
- }
@@ -1,28 +0,0 @@
1
- meta {
2
- name: Create Person
3
- type: http
4
- seq: 3
5
- }
6
-
7
- post {
8
- url: https://app.faithteams.com/api/v2/people
9
- body: json
10
- auth: inherit
11
- }
12
-
13
- body:json {
14
- {
15
- "firstName": "Bart",
16
- "lastName": "Simpson",
17
- "gender": "M"
18
- }
19
- }
20
-
21
- script:post-response {
22
- let body = res.getBody();
23
- bru.setEnvVar("person_id_created", body.data.personId);
24
- }
25
-
26
- settings {
27
- encodeUrl: true
28
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: People Memberships
3
- type: http
4
- seq: 5
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/people/memberships
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,27 +0,0 @@
1
- meta {
2
- name: People
3
- type: http
4
- seq: 1
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/people?status=A
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- params:query {
14
- status: A
15
- ~lastName: Simpson
16
- ~firstName: Homer
17
- ~homeEmail: bart@simpsons.com
18
- }
19
-
20
- script:post-response {
21
- let body = res.getBody();
22
- bru.setEnvVar("person_id", body.data[0].personId);
23
- }
24
-
25
- settings {
26
- encodeUrl: true
27
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Person Tags
3
- type: http
4
- seq: 6
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/people/{{person_id}}/tags
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Person
3
- type: http
4
- seq: 2
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/people/{{person_id}}
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,26 +0,0 @@
1
- meta {
2
- name: Update Person
3
- type: http
4
- seq: 4
5
- }
6
-
7
- put {
8
- url: https://app.faithteams.com/api/v2/people/{{person_id_created}}
9
- body: json
10
- auth: inherit
11
- }
12
-
13
- body:json {
14
- {
15
- "firstName": "Maggie",
16
- "lastName": "Simpson",
17
- "status":"A",
18
- "homeEmail":"bart@the_simpsons.com",
19
- "createdDtm":"2023-04-21 13:08:51",
20
- "createdUser":"27850"
21
- }
22
- }
23
-
24
- settings {
25
- encodeUrl: true
26
- }
@@ -1,8 +0,0 @@
1
- meta {
2
- name: People
3
- seq: 1
4
- }
5
-
6
- auth {
7
- mode: inherit
8
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Rules
3
- type: http
4
- seq: 5
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/rules
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: Organization
3
- type: http
4
- seq: 2
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/orgs/{{organization_id}}
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,21 +0,0 @@
1
- meta {
2
- name: Teams
3
- type: http
4
- seq: 1
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/teams
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- script:post-response {
14
- let body = res.getBody();
15
- bru.setEnvVar("organization_id", body.data[0].orgId);
16
- bru.setEnvVar("team_id", body.data[0].teamId);
17
- }
18
-
19
- settings {
20
- encodeUrl: true
21
- }
@@ -1,8 +0,0 @@
1
- meta {
2
- name: Team & Organization
3
- seq: 3
4
- }
5
-
6
- auth {
7
- mode: inherit
8
- }
@@ -1,19 +0,0 @@
1
- meta {
2
- name: Unsubscribes
3
- type: http
4
- seq: 7
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/unsubscribes?personId={{person_id}}
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- params:query {
14
- personId: {{person_id}}
15
- }
16
-
17
- settings {
18
- encodeUrl: true
19
- }
@@ -1,15 +0,0 @@
1
- meta {
2
- name: User
3
- type: http
4
- seq: 2
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/users/{{user_id}}
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- settings {
14
- encodeUrl: true
15
- }
@@ -1,24 +0,0 @@
1
- meta {
2
- name: Users
3
- type: http
4
- seq: 1
5
- }
6
-
7
- get {
8
- url: https://app.faithteams.com/api/v2/users?noloadmask=true
9
- body: none
10
- auth: inherit
11
- }
12
-
13
- params:query {
14
- noloadmask: true
15
- }
16
-
17
- script:post-response {
18
- let body = res.getBody();
19
- bru.setEnvVar("user_id", String(body.data[0].userId));
20
- }
21
-
22
- settings {
23
- encodeUrl: true
24
- }
@@ -1,8 +0,0 @@
1
- meta {
2
- name: User
3
- seq: 2
4
- }
5
-
6
- auth {
7
- mode: inherit
8
- }
@@ -1,12 +0,0 @@
1
- meta {
2
- name: app.faithteams.com/api/v2
3
- seq: 2
4
- }
5
-
6
- headers {
7
- Token: {{auth_token}}
8
- }
9
-
10
- auth {
11
- mode: inherit
12
- }
@@ -1,9 +0,0 @@
1
- {
2
- "version": "1",
3
- "name": "faithteams-api",
4
- "type": "collection",
5
- "ignore": [
6
- "node_modules",
7
- ".git"
8
- ]
9
- }
@@ -1,17 +0,0 @@
1
- vars {
2
- person_id: 1011272
3
- person_id_created: 1109570
4
- organization_id: 3425
5
- team_id: 7257
6
- batch_id: 204480
7
- batch_id_2: 204482
8
- fund_id: 7895
9
- contribution_id: 5384950
10
- contribution_parent_id: 5384949
11
- contribution_type_id: 8004
12
- }
13
- vars:secret [
14
- auth_token,
15
- user_id,
16
- password
17
- ]
@@ -1,18 +0,0 @@
1
- # API Client Interface (ACI)
2
-
3
- The ACI should provide at minimum the following functions in its Gateway to allow interaction with the client API in a standard way. These resources should descend from a common base that provides authentication and a request mechanism (via HTTP gem).
4
- - batch
5
- - contribution
6
- - contribution_type
7
- - fund
8
- - person
9
-
10
- The methods above return an object that should have the following methods:
11
- - **find(id:)** - Finds a single record by id. Returns an entity or nil.
12
- - **search(\*\*args)** - Potentially returns multiple records given various parameters. Returns an array of entities or empty array.
13
- - **create(entity:)** - Create a new record. Returns entity or nil on failure.
14
- - **update(entity:)** - Update an existing record. Returns boolean.
15
- - **delete(id:)** - Remove an existing record. Returns boolean.
16
- - **<nested_resource>(resource_id:)** - This is another resource which is nested under the current resource (e.g. /people/:person_id/emails/:email_id). The nested resource would be the same as if the it was at the top level in the Gateway. We would then call it with something like this to find emails on a specific person:
17
- gateway.person.email(person_id: <id>).search(<param>: <param-value>)
18
- Any method can raise an exception on failure.
@@ -1,11 +0,0 @@
1
- # Release Process
2
-
3
- 1. Branch off of the commit you want to release (`git checkout -b x.x.x`).
4
- 1. Update the changelog version information and make sure that all changes to be released have been documented.
5
- 1. Bump the version number in `lib/faithteams/version.rb` to the version to be released.
6
- 1. Create a PR, look for approvals and merge this in to master.
7
- 1. Tag master at the new commit with the version number (`git tag -a x.x.x`).
8
- 1. Push this tag up to origin `git push origin x.x.x`.
9
- 1. Head over to GitHub to create a [new release](https://github.com/tithely/faithteams-api/releases/new). Make sure to select the tag that you just pushed, place the version number as the release name and copy in the associated changelog contents into the description. Publish this release.
10
- 1. This will kick off a deploy action which you can watch [here](https://github.com/tithely/faithteams-api/actions?query=workflow%3A%22Ruby+Gem%22).
11
- 1. Once the action completes, verify the new version of the package is available [here](https://github.com/tithely/faithteams-api/packages).
@@ -1,2 +0,0 @@
1
- *.env
2
-