|
| 1 | +version: 4.6.2 |
| 2 | + |
| 3 | +type: DeclarativeSource |
| 4 | + |
| 5 | +description: Sync your scheduled meetings and scheduling links from SavvyCal! |
| 6 | + |
| 7 | +check: |
| 8 | + type: CheckStream |
| 9 | + stream_names: |
| 10 | + - events |
| 11 | + |
| 12 | +definitions: |
| 13 | + streams: |
| 14 | + events: |
| 15 | + type: DeclarativeStream |
| 16 | + name: events |
| 17 | + primary_key: |
| 18 | + - id |
| 19 | + retriever: |
| 20 | + type: SimpleRetriever |
| 21 | + requester: |
| 22 | + $ref: "#/definitions/base_requester" |
| 23 | + path: /v1/events |
| 24 | + http_method: GET |
| 25 | + record_selector: |
| 26 | + type: RecordSelector |
| 27 | + extractor: |
| 28 | + type: DpathExtractor |
| 29 | + field_path: |
| 30 | + - entries |
| 31 | + paginator: |
| 32 | + type: DefaultPaginator |
| 33 | + page_token_option: |
| 34 | + type: RequestOption |
| 35 | + inject_into: request_parameter |
| 36 | + field_name: after |
| 37 | + pagination_strategy: |
| 38 | + type: CursorPagination |
| 39 | + cursor_value: "{{ response.metadata.after }}" |
| 40 | + stop_condition: "{{ response.metadata.after is none }}" |
| 41 | + transformations: |
| 42 | + - type: AddFields |
| 43 | + fields: |
| 44 | + - path: |
| 45 | + - scheduler_name |
| 46 | + value: '{{ record["scheduler"]["display_name"] }}' |
| 47 | + - type: AddFields |
| 48 | + fields: |
| 49 | + - path: |
| 50 | + - scheduler_email |
| 51 | + value: '{{ record["scheduler"]["email"] }}' |
| 52 | + schema_loader: |
| 53 | + type: InlineSchemaLoader |
| 54 | + schema: |
| 55 | + $ref: "#/schemas/events" |
| 56 | + scheduling_links: |
| 57 | + type: DeclarativeStream |
| 58 | + name: scheduling_links |
| 59 | + primary_key: |
| 60 | + - id |
| 61 | + retriever: |
| 62 | + type: SimpleRetriever |
| 63 | + requester: |
| 64 | + $ref: "#/definitions/base_requester" |
| 65 | + path: /v1/links |
| 66 | + http_method: GET |
| 67 | + record_selector: |
| 68 | + type: RecordSelector |
| 69 | + extractor: |
| 70 | + type: DpathExtractor |
| 71 | + field_path: |
| 72 | + - entries |
| 73 | + paginator: |
| 74 | + type: DefaultPaginator |
| 75 | + page_token_option: |
| 76 | + type: RequestOption |
| 77 | + inject_into: request_parameter |
| 78 | + field_name: after |
| 79 | + pagination_strategy: |
| 80 | + type: CursorPagination |
| 81 | + cursor_value: "{{ response.metadata.after }}" |
| 82 | + stop_condition: "{{ response.metadata.after is none }}" |
| 83 | + schema_loader: |
| 84 | + type: InlineSchemaLoader |
| 85 | + schema: |
| 86 | + $ref: "#/schemas/scheduling_links" |
| 87 | + timezones: |
| 88 | + type: DeclarativeStream |
| 89 | + name: timezones |
| 90 | + primary_key: |
| 91 | + - id |
| 92 | + retriever: |
| 93 | + type: SimpleRetriever |
| 94 | + requester: |
| 95 | + $ref: "#/definitions/base_requester" |
| 96 | + path: /v1/time_zones |
| 97 | + http_method: GET |
| 98 | + record_selector: |
| 99 | + type: RecordSelector |
| 100 | + extractor: |
| 101 | + type: DpathExtractor |
| 102 | + field_path: [] |
| 103 | + schema_loader: |
| 104 | + type: InlineSchemaLoader |
| 105 | + schema: |
| 106 | + $ref: "#/schemas/timezones" |
| 107 | + base_requester: |
| 108 | + type: HttpRequester |
| 109 | + url_base: https://api.savvycal.com |
| 110 | + authenticator: |
| 111 | + type: BearerAuthenticator |
| 112 | + api_token: '{{ config["api_key"] }}' |
| 113 | + |
| 114 | +streams: |
| 115 | + - $ref: "#/definitions/streams/events" |
| 116 | + - $ref: "#/definitions/streams/scheduling_links" |
| 117 | + - $ref: "#/definitions/streams/timezones" |
| 118 | + |
| 119 | +spec: |
| 120 | + type: Spec |
| 121 | + connection_specification: |
| 122 | + type: object |
| 123 | + $schema: http://json-schema.org/draft-07/schema# |
| 124 | + required: |
| 125 | + - api_key |
| 126 | + properties: |
| 127 | + api_key: |
| 128 | + type: string |
| 129 | + description: >- |
| 130 | + Go to SavvyCal → Settings → Developer → Personal Tokens and make a new |
| 131 | + token. Then, copy the private key. https://savvycal.com/developers |
| 132 | + name: api_key |
| 133 | + order: 0 |
| 134 | + title: API Key |
| 135 | + airbyte_secret: true |
| 136 | + additionalProperties: true |
| 137 | + |
| 138 | +metadata: |
| 139 | + autoImportSchema: |
| 140 | + events: false |
| 141 | + scheduling_links: false |
| 142 | + timezones: false |
| 143 | + testedStreams: |
| 144 | + events: |
| 145 | + streamHash: 983fbfcd76c950fb5a2e529e77be8c8cb53153a6 |
| 146 | + hasResponse: true |
| 147 | + responsesAreSuccessful: true |
| 148 | + hasRecords: true |
| 149 | + primaryKeysArePresent: true |
| 150 | + primaryKeysAreUnique: true |
| 151 | + scheduling_links: |
| 152 | + streamHash: 41c519374dbff290916742ae064487485e0043e3 |
| 153 | + hasResponse: true |
| 154 | + responsesAreSuccessful: true |
| 155 | + hasRecords: true |
| 156 | + primaryKeysArePresent: true |
| 157 | + primaryKeysAreUnique: true |
| 158 | + timezones: |
| 159 | + streamHash: e0aa739a05ae7c75ffc6d8e624102c52241d9744 |
| 160 | + hasResponse: true |
| 161 | + responsesAreSuccessful: true |
| 162 | + hasRecords: true |
| 163 | + primaryKeysArePresent: true |
| 164 | + primaryKeysAreUnique: true |
| 165 | + assist: |
| 166 | + docsUrl: https://savvycal.com/docs/api/ |
| 167 | + |
| 168 | +schemas: |
| 169 | + events: |
| 170 | + type: object |
| 171 | + $schema: http://json-schema.org/draft-07/schema# |
| 172 | + additionalProperties: true |
| 173 | + properties: {} |
| 174 | + scheduling_links: |
| 175 | + type: object |
| 176 | + $schema: http://json-schema.org/draft-07/schema# |
| 177 | + additionalProperties: true |
| 178 | + properties: {} |
| 179 | + timezones: |
| 180 | + type: object |
| 181 | + $schema: http://json-schema.org/draft-07/schema# |
| 182 | + additionalProperties: true |
| 183 | + properties: {} |
0 commit comments