Skip to content

Commit 82b2e67

Browse files
authored
Remove unused and likely broken api clients (#221)
* cleanup * add make cmds
1 parent fd55a4a commit 82b2e67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+6
-307731
lines changed

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
[workspace]
22
members = [
3-
"commonroom",
4-
"gusto",
53
"hubspot-contacts",
64
"hubspot-tickets",
75
"hubspot-users",
8-
"pagerduty",
96
"ramp",
107
"remote",
118
"rippling",
129
"twilio",
1310
"vercel",
1411
]
12+
resolver = "2"

Makefile

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,5 @@
11
openapitor_exe = kittycad.rs/target/debug/openapitor
22

3-
.PHONY: commonroom
4-
commonroom: openapitor
5-
pwd
6-
$(openapitor_exe) \
7-
--input specs/commonroom.json \
8-
--target-version 0.1.0 \
9-
--output ./commonroom \
10-
--name commonroom-api \
11-
--description "A fully generated & opinionated API client for the Common Room API." \
12-
--request-timeout-seconds 60 \
13-
--base-url "https://api.commonroom.io/community/v1" $(EXTRA_ARGS)
14-
15-
.PHONY: gusto
16-
gusto: openapitor
17-
$(openapitor_exe) \
18-
--input specs/gusto.v1.yaml \
19-
--target-version 2.1.17 \
20-
--output ./gusto \
21-
--name gusto-api \
22-
--base-url https://api.gusto.com \
23-
--description "A fully generated & opinionated API client for the Gusto API." \
24-
--token-endpoint "https://api.gusto.com/oauth/token" \
25-
--request-timeout-seconds 60 \
26-
--user-consent-endpoint "https://api.gusto.com/oauth/authorize"
27-
283
# root spec for hubspot api:
294
# https://api.hubspot.com/api-catalog-public/v1/apis
305
# We've just plucked crm -> contacts api spec below.
@@ -71,19 +46,6 @@ hubspot-users: openapitor
7146
--description "A fully generated & opinionated API client for the Hubspot Users API." \
7247
--request-timeout-seconds 60 \
7348

74-
# Spec is from: npx swagger2openapi --outfile ./specs/mailchimp.json --patch https://api.mailchimp.com/schema/3.0/Swagger.json?expand
75-
.PHONY: mailchimp
76-
mailchimp: openapitor
77-
$(openapitor_exe) \
78-
--input specs/mailchimp.json \
79-
--target-version 0.0.2 \
80-
--output ./mailchimp \
81-
--name mailchimp-api \
82-
--base-url https://us1.api.mailchimp.com \
83-
--description "A fully generated & opinionated API client for the MailChimp API." \
84-
--token-endpoint "https://login.mailchimp.com/oauth2/token" \
85-
--request-timeout-seconds 60 \
86-
--user-consent-endpoint "https://login.mailchimp.com/oauth2/authorize"
8749

8850
.PHONY: ramp
8951
ramp: openapitor
@@ -156,8 +118,11 @@ openapitor:
156118
.PHONY: all
157119
all:
158120
make openapitor
159-
make commonroom
160-
make gusto
161121
make ramp
162122
make remote
163123
make twilio
124+
make vercel
125+
make rippling
126+
make hubspot-contacts
127+
make hubspot-tickets
128+
make hubspot-users

commonroom/Cargo.toml

Lines changed: 0 additions & 71 deletions
This file was deleted.

commonroom/README.md

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)