You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cal.com is an [open startup](https://cal.com/open) and [Jitsu](https://github.com/jitsucom/jitsu) (an open-source Segment alternative) helps us to track most of the usage metrics.
Copy file name to clipboardexpand all lines: packages/app-store-cli/readme.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
- Create a folder in packages/app-store/{APP_NAME} = {APP}
4
4
- Fill it with a sample app
5
-
- Modify {APP}/_metadata.ts with the data provided
5
+
- Modify {APP}/\_metadata.ts with the data provided
6
6
7
7
## Approach
8
8
9
9
- appType is derived from App Name(a slugify operation that makes a string that can be used as a director name, a variable name for imports and a URL path).
10
10
- appType is then used to create the app directory. It becomes `config.type` of config.json. config.type is the value used to create an entry in App table and retrieve any apps or credentials. It also becomes App.dirName
11
-
- dirnames that don't start with _ are considered apps in packages/app-store and based on those apps .generated.ts* files are created. This allows pre-cli apps to keep on working.
12
-
- app directory is populated with app-store/_baseApp with newly updated config.json and package.json
11
+
- dirnames that don't start with \_ are considered apps in packages/app-store and based on those apps .generated.ts\* files are created. This allows pre-cli apps to keep on working.
12
+
- app directory is populated with app-store/\_baseApp with newly updated config.json and package.json
13
13
-`packages/prisma/seed-app-store.config.json` is updated with new app.
14
14
15
15
NOTE: After app-store-cli is live, Credential.appId and Credential.type would be same for new apps. For old apps they would remain different. Credential.type would be used to identify credentials in integrations call and Credential.appId/App.slug would be used to identify apps.
@@ -20,20 +20,20 @@ If we rename all existing apps to their slug names, we can remove type and then
20
20
- Beta Release
21
21
- Show a warning somewhere that app directory must not be renamed manually, edit command must be used.
22
22
- edit command should ask for slug and verify if it exists
23
-
24
23
- Improvements
25
24
- Prefill fields in edit command
26
25
- Merge app-store:watch and app-store commands, introduce app-store --watch
27
26
- Allow inputs in non interactive way as well - That would allow easily copy pasting commands.
28
27
- App already exists check. Ask user to run edit/regenerate command
29
28
- An app created through CLI should be able to completely skip API validation for testing purposes. Credentials should be created with no API specified specific to the app. It would allow us to test any app end to end not worrying about the corresponding API endpoint.
30
-
-Require assets path relative to app dir.
29
+
- Require assets path relative to app dir.
31
30
32
31
## Roadmap
32
+
33
33
- Avoid delete and edit on apps created outside of cli
34
34
- Someone can add wrong directory name(which doesn't satisfy slug requirements) manually. How to handle it.
35
35
- Allow editing and updating app from the cal app itself - including assets uploading when developing locally.
36
36
- Improvements in shared code across app
37
37
- Use baseApp/api/add.ts for all apps with configuration of credentials creation and redirection URL.
38
38
- Delete creation side effects if App creation fails - Might make debugging difficult
39
-
- This is so that web app doesn't break because of additional app folders or faulty db-seed
39
+
- This is so that web app doesn't break because of additional app folders or faulty db-seed
Copy file name to clipboardexpand all lines: packages/app-store/zapier/README.md
+27-27
Original file line number
Diff line number
Diff line change
@@ -13,49 +13,49 @@ If you run it on localhost, check out the [additional information](https://githu
13
13
2. If not redirected to developer account, go to: [Zapier Developer Account](https://developer.zapier.com)
14
14
3. Click **Start a Zapier Integration**
15
15
4. Create Integration
16
-
- Name: Cal.com
17
-
- Description: Cal.com is a scheduling infrastructure for absolutely everyone.
18
-
- Intended Audience: Private
19
-
- Role: choose whatever is appropriate
20
-
- Category: Calendar
16
+
- Name: Cal.com
17
+
- Description: Cal.com is a scheduling infrastructure for absolutely everyone.
18
+
- Intended Audience: Private
19
+
- Role: choose whatever is appropriate
20
+
- Category: Calendar
21
21
22
22
## Authentication
23
23
24
24
1. Go to Authentication, choose Api key and click save
25
25
2. Click Add Fields
26
-
- Key: apiKey
27
-
- Check the box ‘is this field required?’
26
+
- Key: apiKey
27
+
- Check the box ‘is this field required?’
28
28
3. Configure a Test
29
-
- Test: GET ```<baseUrl>```/api/integrations/zapier/listBookings
30
-
- URL Params
31
-
- apiKey: {{bundle.authData.apiKey}}
29
+
- Test: GET `<baseUrl>`/api/integrations/zapier/listBookings
30
+
- URL Params
31
+
- apiKey: {{bundle.authData.apiKey}}
32
32
4. Test your authentication —> First you have to install Zapier in the Cal.com App Store and generate an API key, use this API key to test your authentication (only zapier Api key works)
- PerformList: GET `<baseUrl>`/api/integrations/zapier/listBookings
55
55
3. Test your API request
56
56
57
57
Create the other two triggers (booking rescheduled, booking cancelled) exactly like this one, just use the appropriate naming (e.g. booking_rescheduled instead of booking_created)
58
-
58
+
59
59
### Set ZAPIER_INVITE_LINK
60
60
61
61
The invite link can be found under under Manage → Sharing.
@@ -68,4 +68,4 @@ Possible solution: using [https://ngrok.com/](https://ngrok.com/)
68
68
69
69
1. Create Account
70
70
2.[Download](https://ngrok.com/download) gnork and start a tunnel to your running localhost
71
-
- Use forwarding url as your baseUrl for the URL endpoints
71
+
- Use forwarding url as your baseUrl for the URL endpoints
0 commit comments