|
1 |
| -// TODO: Construct a configured catalog that can be used for testing. Each stream's `json_schema` field should match the corresponding json schema file. |
2 | 1 | {
|
3 | 2 | "streams": [
|
4 | 3 | {
|
| 4 | + "sync_mode": "incremental", |
| 5 | + "destination_sync_mode": "append", |
| 6 | + "cursor_field": ["updated_at"], |
5 | 7 | "stream": {
|
6 |
| - "name": "customers", |
| 8 | + "name": "conversation_export", |
| 9 | + "supported_sync_modes": ["full_refresh", "incremental"], |
| 10 | + "source_defined_cursor": true, |
| 11 | + "default_cursor_field": ["updated_at"], |
| 12 | + "source_defined_primary_key": [["id"]], |
7 | 13 | "json_schema": {
|
8 |
| - "$schema": "http://json-schema.org/draft-07/schema#", |
9 | 14 | "type": "object",
|
| 15 | + "required": [ |
| 16 | + "id", "created_at", "initial_channel", "requester_id" |
| 17 | + ], |
| 18 | + "$schema": "http://json-schema.org/draft-07/schema#", |
10 | 19 | "properties": {
|
11 | 20 | "id": {
|
| 21 | + "type": "integer" |
| 22 | + }, |
| 23 | + "created_at": { |
| 24 | + "type": "integer" |
| 25 | + }, |
| 26 | + "initial_channel": { |
| 27 | + "type": "string" |
| 28 | + }, |
| 29 | + "requester_id": { |
| 30 | + "type": "string" |
| 31 | + }, |
| 32 | + "requester_name": { |
12 | 33 | "type": ["null", "string"]
|
13 | 34 | },
|
14 |
| - "name": { |
| 35 | + "requester_email": { |
15 | 36 | "type": ["null", "string"]
|
16 | 37 | },
|
17 |
| - "signup_date": { |
18 |
| - "type": ["null", "string"], |
19 |
| - "format": "date-time" |
20 |
| - } |
21 |
| - } |
22 |
| - }, |
23 |
| - "supported_sync_modes": ["full_refresh"] |
24 |
| - }, |
25 |
| - "sync_mode": "full_refresh", |
26 |
| - "destination_sync_mode": "overwrite" |
27 |
| - }, |
28 |
| - { |
29 |
| - "stream": { |
30 |
| - "name": "employees", |
31 |
| - "json_schema": { |
32 |
| - "$schema": "http://json-schema.org/draft-07/schema#", |
33 |
| - "type": "object", |
34 |
| - "properties": { |
35 |
| - "id": { |
| 38 | + "requester_phone_number": { |
36 | 39 | "type": ["null", "string"]
|
37 | 40 | },
|
38 |
| - "name": { |
| 41 | + "queued_at": { |
| 42 | + "type": ["null", "integer"] |
| 43 | + }, |
| 44 | + "queue_id": { |
39 | 45 | "type": ["null", "string"]
|
40 | 46 | },
|
41 |
| - "years_of_service": { |
| 47 | + "queue_name": { |
| 48 | + "type": ["null", "string"] |
| 49 | + }, |
| 50 | + "closed_at": { |
42 | 51 | "type": ["null", "integer"]
|
43 | 52 | },
|
44 |
| - "start_date": { |
45 |
| - "type": ["null", "string"], |
46 |
| - "format": "date-time" |
| 53 | + "rating_score": { |
| 54 | + "type": ["null", "integer"] |
| 55 | + }, |
| 56 | + "rating_message": { |
| 57 | + "type": ["null", "string"] |
| 58 | + }, |
| 59 | + "ratings": { |
| 60 | + "type": "object", |
| 61 | + "properties": { |
| 62 | + "rating_score": { |
| 63 | + "type": ["null", "integer"] |
| 64 | + }, |
| 65 | + "rating_message": { |
| 66 | + "type": ["null", "string"] |
| 67 | + }, |
| 68 | + "rating_type": { |
| 69 | + "type": ["null", "string"] |
| 70 | + }, |
| 71 | + "rating_created_timestamp": { |
| 72 | + "type": ["null", "integer"] |
| 73 | + }, |
| 74 | + "rating_offered_timestamp": { |
| 75 | + "type": ["null", "integer"] |
| 76 | + }, |
| 77 | + "rating_status": { |
| 78 | + "type": ["null", "string"] |
| 79 | + }, |
| 80 | + "rating_language": { |
| 81 | + "type": ["null", "string"] |
| 82 | + }, |
| 83 | + "rating_modified_timestamp": { |
| 84 | + "type": ["null", "integer"] |
| 85 | + }, |
| 86 | + "rating_rated_timestamp": { |
| 87 | + "type": ["null", "integer"] |
| 88 | + }, |
| 89 | + "rating_scheduled_timestamp": { |
| 90 | + "type": ["null", "integer"] |
| 91 | + }, |
| 92 | + "rating_scheduled_for_timestamp": { |
| 93 | + "type": ["null", "integer"] |
| 94 | + }, |
| 95 | + "rating_unscheduled_timestamp": { |
| 96 | + "type": ["null", "integer"] |
| 97 | + }, |
| 98 | + "rating_cancelled_timestamp": { |
| 99 | + "type": ["null", "integer"] |
| 100 | + } |
| 101 | + } |
| 102 | + }, |
| 103 | + "direction": { |
| 104 | + "type": ["null", "string"] |
| 105 | + }, |
| 106 | + "assigned_at": { |
| 107 | + "type": ["null", "integer"] |
| 108 | + }, |
| 109 | + "assignee_id": { |
| 110 | + "type": ["null", "string"] |
| 111 | + }, |
| 112 | + "assignee_name": { |
| 113 | + "type": ["null", "string"] |
| 114 | + }, |
| 115 | + "assignee_email": { |
| 116 | + "type": ["null", "string"] |
| 117 | + }, |
| 118 | + "assignee_phone_number": { |
| 119 | + "type": ["null", "string"] |
| 120 | + }, |
| 121 | + "to_provisioned_phone_number_id": { |
| 122 | + "type": ["null", "string"] |
| 123 | + }, |
| 124 | + "to_provisioned_phone_number_name": { |
| 125 | + "type": ["null", "string"] |
| 126 | + }, |
| 127 | + "total_duration": { |
| 128 | + "type": ["null", "integer"] |
| 129 | + }, |
| 130 | + "handling_duration": { |
| 131 | + "type": ["null", "integer"] |
| 132 | + }, |
| 133 | + "dixa_email_integration_id": { |
| 134 | + "type": ["null", "string"] |
| 135 | + }, |
| 136 | + "dixa_email_integration_sender_name": { |
| 137 | + "type": ["null", "string"] |
| 138 | + }, |
| 139 | + "forwarding_email": { |
| 140 | + "type": ["null", "string"] |
| 141 | + }, |
| 142 | + "facebook_page_id": { |
| 143 | + "type": ["null", "string"] |
| 144 | + }, |
| 145 | + "facebook_page_name": { |
| 146 | + "type": ["null", "string"] |
| 147 | + }, |
| 148 | + "widget_id": { |
| 149 | + "type": ["null", "string"] |
| 150 | + }, |
| 151 | + "widget_name": { |
| 152 | + "type": ["null", "string"] |
| 153 | + }, |
| 154 | + "tags": { |
| 155 | + "type": ["null", "array"], |
| 156 | + "items": { |
| 157 | + "type": "string" |
| 158 | + } |
| 159 | + }, |
| 160 | + "conversation_wrapup_notes": { |
| 161 | + "type": ["null", "array"], |
| 162 | + "items": { |
| 163 | + "type": "string" |
| 164 | + } |
| 165 | + }, |
| 166 | + "transferee_name": { |
| 167 | + "type": ["null", "string"] |
| 168 | + }, |
| 169 | + "transfer_time": { |
| 170 | + "type": ["null", "integer"] |
| 171 | + }, |
| 172 | + "originating_country": { |
| 173 | + "type": ["null", "string"] |
| 174 | + }, |
| 175 | + "status": { |
| 176 | + "type": ["null", "string"] |
| 177 | + }, |
| 178 | + "updated_at": { |
| 179 | + "type": ["null", "integer"] |
| 180 | + }, |
| 181 | + "last_message_created_at": { |
| 182 | + "type": ["null", "integer"] |
| 183 | + }, |
| 184 | + "from_provisioned_phone_number_id": { |
| 185 | + "type": ["null", "string"] |
| 186 | + }, |
| 187 | + "from_provisioned_phone_number_name": { |
| 188 | + "type": ["null", "string"] |
| 189 | + }, |
| 190 | + "subject": { |
| 191 | + "type": ["null", "string"] |
| 192 | + }, |
| 193 | + "anonymized_at": { |
| 194 | + "type": ["null", "integer"] |
47 | 195 | }
|
48 | 196 | }
|
49 |
| - }, |
50 |
| - "supported_sync_modes": ["full_refresh", "incremental"] |
51 |
| - }, |
52 |
| - "sync_mode": "incremental", |
53 |
| - "destination_sync_mode": "append" |
| 197 | + } |
| 198 | + } |
54 | 199 | }
|
55 | 200 | ]
|
56 | 201 | }
|
0 commit comments