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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/faithteams-api.gemspec +8 -2
- data/lib/faithteams/version.rb +1 -1
- metadata +2 -76
- data/.editorconfig +0 -11
- data/.github/CODEOWNERS +0 -1
- data/.github/CONTRIBUTING.md +0 -35
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -8
- data/.github/workflows/editorconfig.yml +0 -23
- data/.github/workflows/rubocop.yml +0 -21
- data/.github/workflows/rubygems.yml +0 -36
- data/.github/workflows/tester.yml +0 -21
- data/.github/workflows/yard.yml +0 -21
- data/.gitignore +0 -17
- data/.rspec +0 -2
- data/.rubocop.yml +0 -228
- data/.tool-versions +0 -1
- data/CODE_OF_CONDUCT.md +0 -128
- data/Gemfile +0 -11
- data/Gemfile.lock +0 -189
- data/Guardfile +0 -50
- data/Rakefile +0 -8
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/faithteams-api/.env.template +0 -4
- data/faithteams-api/Authenticate.bru +0 -25
- data/faithteams-api/api-v2.faithteams.com/Batch/Batch Create.bru +0 -23
- data/faithteams-api/api-v2.faithteams.com/Batch/Batch Totals.bru +0 -19
- data/faithteams-api/api-v2.faithteams.com/Batch/Batch Update.bru +0 -27
- data/faithteams-api/api-v2.faithteams.com/Batch/Batch.bru +0 -15
- data/faithteams-api/api-v2.faithteams.com/Batch/Batches.bru +0 -32
- data/faithteams-api/api-v2.faithteams.com/Batch/folder.bru +0 -8
- data/faithteams-api/api-v2.faithteams.com/Contribution/Contribution Create.bru +0 -40
- data/faithteams-api/api-v2.faithteams.com/Contribution/Contribution.bru +0 -15
- data/faithteams-api/api-v2.faithteams.com/Contribution/Contributions.bru +0 -34
- data/faithteams-api/api-v2.faithteams.com/Contribution/folder.bru +0 -8
- data/faithteams-api/api-v2.faithteams.com/Contribution Type/Contribution Type.bru +0 -15
- data/faithteams-api/api-v2.faithteams.com/Contribution Type/Contribution Types.bru +0 -20
- data/faithteams-api/api-v2.faithteams.com/Contribution Type/folder.bru +0 -8
- data/faithteams-api/api-v2.faithteams.com/Error/Integer Too Big.bru +0 -15
- data/faithteams-api/api-v2.faithteams.com/Error/Not Found.bru +0 -15
- data/faithteams-api/api-v2.faithteams.com/Error/folder.bru +0 -8
- data/faithteams-api/api-v2.faithteams.com/Fund/Fund Create.bru +0 -30
- data/faithteams-api/api-v2.faithteams.com/Fund/Fund Update.bru +0 -32
- data/faithteams-api/api-v2.faithteams.com/Fund/Fund.bru +0 -15
- data/faithteams-api/api-v2.faithteams.com/Fund/Funds.bru +0 -20
- data/faithteams-api/api-v2.faithteams.com/Fund/folder.bru +0 -8
- data/faithteams-api/api-v2.faithteams.com/folder.bru +0 -13
- data/faithteams-api/app.faithteams.com-api-v2/Authenticate.bru +0 -26
- data/faithteams-api/app.faithteams.com-api-v2/Checkins.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/Error/Not Found 2.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/Error/Not Found.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/Error/folder.bru +0 -8
- data/faithteams-api/app.faithteams.com-api-v2/People/Create Person.bru +0 -28
- data/faithteams-api/app.faithteams.com-api-v2/People/People Memberships.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/People/People.bru +0 -27
- data/faithteams-api/app.faithteams.com-api-v2/People/Person Tags.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/People/Person.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/People/Update Person.bru +0 -26
- data/faithteams-api/app.faithteams.com-api-v2/People/folder.bru +0 -8
- data/faithteams-api/app.faithteams.com-api-v2/Rules.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/Organization.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/Teams.bru +0 -21
- data/faithteams-api/app.faithteams.com-api-v2/Team & Organization/folder.bru +0 -8
- data/faithteams-api/app.faithteams.com-api-v2/Unsubscribes.bru +0 -19
- data/faithteams-api/app.faithteams.com-api-v2/User/User.bru +0 -15
- data/faithteams-api/app.faithteams.com-api-v2/User/Users.bru +0 -24
- data/faithteams-api/app.faithteams.com-api-v2/User/folder.bru +0 -8
- data/faithteams-api/app.faithteams.com-api-v2/folder.bru +0 -12
- data/faithteams-api/bruno.json +0 -9
- data/faithteams-api/environments/FaithTeams.bru +0 -17
- data/guides/api_client_interface.md +0 -18
- data/guides/release-process.md +0 -11
- data/thunder-tests/.gitignore +0 -2
- data/thunder-tests/collections/tc_col_faithteams-api.json +0 -1301
- data/thunder-tests/collections/tc_col_faithteams-app.json +0 -1189
- data/thunder-tests/environments/tc_env_faithteams.json +0 -59
- 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,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,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,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,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,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,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,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,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,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
|
-
}
|
data/faithteams-api/bruno.json
DELETED
|
@@ -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.
|
data/guides/release-process.md
DELETED
|
@@ -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).
|
data/thunder-tests/.gitignore
DELETED