Skip to content

Commit 78bf371

Browse files
bleonardlazebnyi
andauthored
source-surveymonkey: ensure inline schemas, updated cdk, poetry (where possible) (#36664)
Co-authored-by: Serhii Lazebnyi <[email protected]>
1 parent 3cfffd5 commit 78bf371

File tree

11 files changed

+138
-8
lines changed

11 files changed

+138
-8
lines changed

airbyte-integrations/connectors/source-surveymonkey/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: badc5925-0485-42be-8caa-b34096cb71b5
13-
dockerImageTag: 0.3.0
13+
dockerImageTag: 0.3.1
1414
dockerRepository: airbyte/source-surveymonkey
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/surveymonkey
1616
githubIssueLabel: source-surveymonkey

airbyte-integrations/connectors/source-surveymonkey/poetry.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

airbyte-integrations/connectors/source-surveymonkey/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "0.3.0"
6+
version = "0.3.1"
77
name = "source-surveymonkey"
88
description = "Source implementation for Surveymonkey."
99
authors = [ "Airbyte <[email protected]>",]
@@ -17,7 +17,7 @@ include = "source_surveymonkey"
1717

1818
[tool.poetry.dependencies]
1919
python = "^3.9,<3.12"
20-
airbyte-cdk = "^0"
20+
airbyte-cdk = "0.80.0"
2121
vcrpy = "==4.1.1"
2222
urllib3 = "==1.26.18"
2323

airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/collectors.json

+25
Original file line numberDiff line numberDiff line change
@@ -4,83 +4,108 @@
44
"additionalProperties": true,
55
"properties": {
66
"id": {
7+
"description": "The unique identifier of the collector.",
78
"type": ["string", "null"]
89
},
910
"status": {
11+
"description": "Current status of the collector (ex: open, closed).",
1012
"type": ["string", "null"]
1113
},
1214
"survey_id": {
15+
"description": "The unique identifier of the survey associated with the collector.",
1316
"type": ["string", "null"]
1417
},
1518
"type": {
19+
"description": "Type of collector.",
1620
"type": ["string", "null"]
1721
},
1822
"name": {
23+
"description": "The name or title of the collector.",
1924
"type": ["string", "null"]
2025
},
2126
"thank_you_message": {
27+
"description": "Message displayed after respondent completes the survey.",
2228
"type": ["string", "null"]
2329
},
2430
"thank_you_page": {
31+
"description": "Settings for the thank you page displayed post-survey submission.",
2532
"type": ["object", "null"],
2633
"additionalProperties": true,
2734
"properties": {
2835
"is_enabled": {
36+
"description": "Indicates if the thank you page is enabled.",
2937
"type": ["boolean", "null"]
3038
},
3139
"message": {
40+
"description": "Custom message to be displayed on the thank you page.",
3241
"type": ["string", "null"]
3342
}
3443
}
3544
},
3645
"disqualification_message": {
46+
"description": "Message displayed if respondent is disqualified from survey.",
3747
"type": ["string", "null"]
3848
},
3949
"disqualification_url": {
50+
"description": "URL to redirect disqualified respondent to another page.",
4051
"type": ["string", "null"]
4152
},
4253
"close_date": {
54+
"description": "The date and time when the collector is set to close.",
4355
"type": ["string", "null"],
4456
"format": "date-time"
4557
},
4658
"closed_page_message": {
59+
"description": "Message displayed on the closed page of the collector.",
4760
"type": ["string", "null"]
4861
},
4962
"redirect_url": {
63+
"description": "URL for redirection after survey completion.",
5064
"type": ["string", "null"]
5165
},
5266
"display_survey_results": {
67+
"description": "Indicates whether respondents can view survey results.",
5368
"type": ["boolean", "null"]
5469
},
5570
"edit_response_type": {
71+
"description": "Type of editing available for responses.",
5672
"type": ["string", "null"]
5773
},
5874
"anonymous_type": {
75+
"description": "Specifies the anonymity type of the respondent (ex: ",
5976
"type": ["string", "null"]
6077
},
6178
"allow_multiple_responses": {
79+
"description": "Indicates whether multiple responses are allowed for this collector.",
6280
"type": ["boolean", "null"]
6381
},
6482
"date_modified": {
83+
"description": "The date and time when the collector was last modified.",
6584
"type": ["string", "null"],
6685
"format": "date-time"
6786
},
6887
"sender_email": {
88+
"description": "Email address used as the sender of collector notifications.",
6989
"type": ["string", "null"]
7090
},
7191
"password_enabled": {
92+
"description": "Indicates whether password protection is enabled for the collector.",
7293
"type": ["boolean", "null"]
7394
},
7495
"response_limit": {
96+
"description": "Limit on the number of responses allowed for the collector.",
7597
"type": ["number", "null"]
7698
},
7799
"redirect_type": {
100+
"description": "Type of redirect behavior after respondent submits the survey.",
78101
"type": ["string", "null"]
79102
},
80103
"respondent_authentication": {
104+
"description": "Authentication method required for respondents.",
81105
"type": ["boolean", "null"]
82106
},
83107
"href": {
108+
"description": "The unique URL of the collector.",
84109
"type": ["string", "null"]
85110
}
86111
}

airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/survey_collectors.json

+4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44
"additionalProperties": true,
55
"properties": {
66
"id": {
7+
"description": "The unique identifier for the survey collector.",
78
"type": ["string", "null"]
89
},
910
"name": {
11+
"description": "The name or title of the survey collector.",
1012
"type": ["string", "null"]
1113
},
1214
"href": {
15+
"description": "The URL to access the specific survey collector data.",
1316
"type": ["string", "null"]
1417
},
1518
"survey_id": {
19+
"description": "The unique identifier of the survey associated with the collector.",
1620
"type": ["string", "null"]
1721
}
1822
}

airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/survey_ids.json

+4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
"type": "object",
44
"properties": {
55
"id": {
6+
"description": "Unique identifier for the survey.",
67
"type": ["string", "null"]
78
},
89
"title": {
10+
"description": "Title of the survey.",
911
"type": ["string", "null"]
1012
},
1113
"nickname": {
14+
"description": "User-assigned nickname for the survey to easily identify it.",
1215
"type": ["string", "null"]
1316
},
1417
"href": {
18+
"description": "URL for fetching detailed information about the survey.",
1519
"type": ["string", "null"]
1620
}
1721
}

airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/survey_pages.json

+6
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,27 @@
33
"type": "object",
44
"properties": {
55
"title": {
6+
"description": "Title or name of the survey page.",
67
"type": ["string", "null"]
78
},
89
"description": {
10+
"description": "Description of the survey page.",
911
"type": ["string", "null"]
1012
},
1113
"position": {
14+
"description": "Position of the survey page within the survey.",
1215
"type": ["integer", "null"]
1316
},
1417
"question_count": {
18+
"description": "Number of questions on the survey page.",
1519
"type": ["integer", "null"]
1620
},
1721
"id": {
22+
"description": "Unique identifier of the survey page.",
1823
"type": ["string", "null"]
1924
},
2025
"href": {
26+
"description": "The URL link to the survey page.",
2127
"type": ["string", "null"]
2228
}
2329
}

airbyte-integrations/connectors/source-surveymonkey/source_surveymonkey/schemas/survey_questions.json

+35
Original file line numberDiff line numberDiff line change
@@ -3,117 +3,152 @@
33
"type": "object",
44
"properties": {
55
"page_id": {
6+
"description": "Identifier of the page the question belongs to",
67
"type": ["string", "null"]
78
},
89
"id": {
10+
"description": "Unique identifier for the question",
911
"type": ["string", "null"]
1012
},
1113
"position": {
14+
"description": "Position of the question within the survey",
1215
"type": ["integer", "null"]
1316
},
1417
"visible": {
18+
"description": "Indicates if the question is visible",
1519
"type": ["boolean", "null"]
1620
},
1721
"family": {
22+
"description": "Family to which the question belongs",
1823
"type": ["string", "null"]
1924
},
2025
"subtype": {
26+
"description": "Specific type of question",
2127
"type": ["string", "null"]
2228
},
2329
"layout": {
30+
"description": "Layout style of the question",
2431
"type": ["object", "null"]
2532
},
2633
"sorting": {
34+
"description": "Sorting options for the question",
2735
"type": ["object", "null"],
2836
"properties": {
2937
"ignore_last": {
38+
"description": "Boolean to ignore the last option for sorting",
3039
"type": ["boolean", "null"]
3140
},
3241
"type": {
42+
"description": "Type of sorting",
3343
"type": ["string", "null"]
3444
}
3545
}
3646
},
3747
"required": {
48+
"description": "Indicates if the question is required",
3849
"type": ["object", "null"],
3950
"properties": {
4051
"amount": {
52+
"description": "Number of required choices",
4153
"type": ["string", "null"]
4254
},
4355
"text": {
56+
"description": "Text specifying requirement",
4457
"type": ["string", "null"]
4558
},
4659
"type": {
60+
"description": "Type of requirement",
4761
"type": ["string", "null"]
4862
}
4963
}
5064
},
5165
"validation": {
66+
"description": "Validation rules for the question",
5267
"type": ["object", "null"],
5368
"properties": {
5469
"max": {
70+
"description": "Maximum value for validation",
5571
"type": ["integer", "null"]
5672
},
5773
"min": {
74+
"description": "Minimum value for validation",
5875
"type": ["integer", "null"]
5976
},
6077
"sum": {
78+
"description": "Sum value for validation",
6179
"type": ["integer", "null"]
6280
},
6381
"sum_text": {
82+
"description": "Sum text for validation",
6483
"type": ["string", "null"]
6584
},
6685
"text": {
86+
"description": "Text validation message",
6787
"type": ["string", "null"]
6888
},
6989
"type": {
90+
"description": "Type of validation",
7091
"type": ["string", "null"]
7192
}
7293
}
7394
},
7495
"forced_ranking": {
96+
"description": "Indicates if the question uses forced ranking",
7597
"type": ["boolean", "null"]
7698
},
7799
"headings": {
100+
"description": "Array of headings for the question",
78101
"type": ["array", "null"],
79102
"items": {
103+
"description": "Represents an individual heading",
80104
"type": ["object", "null"],
81105
"properties": {
82106
"heading": {
107+
"description": "Text of the heading",
83108
"type": ["string", "null"]
84109
}
85110
}
86111
}
87112
},
88113
"href": {
114+
"description": "Hyperlink reference for the question",
89115
"type": ["string", "null"]
90116
},
91117
"answers": {
118+
"description": "Contains information about answer choices for the question",
92119
"type": ["object", "null"],
93120
"properties": {
94121
"choices": {
122+
"description": "An array of answer choices for the question",
95123
"type": ["array", "null"],
96124
"items": {
125+
"description": "Represents an individual answer choice",
97126
"type": ["object", "null"],
98127
"properties": {
99128
"position": {
129+
"description": "Position of the answer choice in the list",
100130
"type": ["integer", "null"]
101131
},
102132
"visible": {
133+
"description": "Boolean indicating if the answer choice is visible",
103134
"type": ["boolean", "null"]
104135
},
105136
"text": {
137+
"description": "Text of the answer choice",
106138
"type": ["string", "null"]
107139
},
108140
"quiz_options": {
141+
"description": "Optional properties specific to quiz questions",
109142
"type": ["object", "null"],
110143
"properties": {
111144
"score": {
145+
"description": "Score associated with the answer choice",
112146
"type": ["integer", "null"]
113147
}
114148
}
115149
},
116150
"id": {
151+
"description": "Unique identifier for the answer choice",
117152
"type": ["string", "null"]
118153
}
119154
}

0 commit comments

Comments
 (0)