Skip to content

Commit 05e3c5e

Browse files
bleonardlazebnyi
andauthored
source-instagram: ensure inline schemas, updated cdk, poetry (where possible) (#36643)
Co-authored-by: Serhii Lazebnyi <[email protected]> Co-authored-by: Serhii Lazebnyi <[email protected]>
1 parent 6b87ee2 commit 05e3c5e

File tree

11 files changed

+134
-26
lines changed

11 files changed

+134
-26
lines changed

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

+11-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ data:
77
connectorSubtype: api
88
connectorType: source
99
definitionId: 6acf6b55-4f1e-4fca-944e-1a3caef8aba8
10-
dockerImageTag: 3.0.5
10+
dockerImageTag: 3.0.7
1111
dockerRepository: airbyte/source-instagram
1212
githubIssueLabel: source-instagram
1313
icon: instagram.svg
@@ -27,16 +27,23 @@ data:
2727
releases:
2828
breakingChanges:
2929
3.0.0:
30-
message: "The existing Instagram API (v11) has been deprecated. Customers who use streams `Media Insights`, `Story Insights` or `User Lifetime Insights` must take action with their connections. Please follow the to update to the latest Instagram API (v18). For more details, see our <a href='https://docs.airbyte.com/integrations/sources/instagram-migrations'>migration guide</a>."
30+
message:
31+
"The existing Instagram API (v11) has been deprecated. Customers
32+
who use streams `Media Insights`, `Story Insights` or `User Lifetime Insights`
33+
must take action with their connections. Please follow the to update to
34+
the latest Instagram API (v18). For more details, see our <a href='https://docs.airbyte.com/integrations/sources/instagram-migrations'>migration
35+
guide</a>."
3136
upgradeDeadline: "2024-01-05"
3237
scopedImpact:
3338
- scopeType: stream
3439
impactedScopes:
3540
["media_insights", "story_insights", "user_lifetime_insights"]
3641
2.0.0:
3742
message:
38-
This release introduces a default primary key for the streams UserLifetimeInsights and UserInsights.
39-
Additionally, the format of timestamp fields has been updated in the UserLifetimeInsights, UserInsights, Media and Stories streams to include timezone information.
43+
This release introduces a default primary key for the streams UserLifetimeInsights
44+
and UserInsights. Additionally, the format of timestamp fields has been
45+
updated in the UserLifetimeInsights, UserInsights, Media and Stories streams
46+
to include timezone information.
4047
upgradeDeadline: "2023-12-11"
4148
suggestedStreams:
4249
streams:

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

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

airbyte-integrations/connectors/source-instagram/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 = "3.0.5"
6+
version = "3.0.7"
77
name = "source-instagram"
88
description = "Source implementation for Instagram."
99
authors = [ "Airbyte <[email protected]>",]
@@ -18,7 +18,7 @@ include = "source_instagram"
1818
[tool.poetry.dependencies]
1919
python = "^3.9,<3.12"
2020
facebook-business = "==18.0.5"
21-
airbyte-cdk = "^0"
21+
airbyte-cdk = "0.80.0"
2222
cached-property = "==1.5.2"
2323

2424
[tool.poetry.scripts]

airbyte-integrations/connectors/source-instagram/source_instagram/schemas/media.json

+31
Original file line numberDiff line numberDiff line change
@@ -2,103 +2,134 @@
22
"type": "object",
33
"properties": {
44
"business_account_id": {
5+
"description": "The unique identifier for the business account associated with the media.",
56
"type": ["null", "string"]
67
},
78
"page_id": {
9+
"description": "The unique identifier for the Instagram page associated with the media.",
810
"type": ["null", "string"]
911
},
1012
"caption": {
13+
"description": "The caption or description provided for the media.",
1114
"type": ["null", "string"]
1215
},
1316
"comments_count": {
17+
"description": "The total number of comments received on the media.",
1418
"type": ["null", "integer"]
1519
},
1620
"id": {
21+
"description": "The unique identifier for the media item.",
1722
"type": ["null", "string"]
1823
},
1924
"ig_id": {
25+
"description": "The Instagram-specific identifier for the media item.",
2026
"type": ["null", "string"]
2127
},
2228
"is_comment_enabled": {
29+
"description": "A flag indicating whether comments are enabled for the media.",
2330
"type": ["null", "boolean"]
2431
},
2532
"like_count": {
33+
"description": "The total number of likes received on the media.",
2634
"type": ["null", "integer"]
2735
},
2836
"media_type": {
37+
"description": "The type of media (e.g., image, video) of the media item.",
2938
"type": ["null", "string"]
3039
},
3140
"media_product_type": {
41+
"description": "The product type associated with the media (e.g., shopping product).",
3242
"type": ["null", "string"]
3343
},
3444
"media_url": {
45+
"description": "The URL for accessing the media content of the media item.",
3546
"type": ["null", "string"]
3647
},
3748
"owner": {
49+
"description": "Contains information about the owner of the post.",
3850
"type": ["null", "object"],
3951
"properties": {
4052
"id": {
53+
"description": "The unique identifier of the owner of the media item.",
4154
"type": ["null", "string"]
4255
}
4356
}
4457
},
4558
"permalink": {
59+
"description": "The permanent link to the media item on Instagram.",
4660
"type": ["null", "string"]
4761
},
4862
"shortcode": {
63+
"description": "The unique shortcode assigned to the media item.",
4964
"type": ["null", "string"]
5065
},
5166
"thumbnail_url": {
67+
"description": "The URL for accessing the thumbnail image of the media item.",
5268
"type": ["null", "string"]
5369
},
5470
"timestamp": {
71+
"description": "The date and time when the media item was created.",
5572
"type": ["null", "string"],
5673
"format": "date-time",
5774
"airbyte_type": "timestamp_with_timezone"
5875
},
5976
"username": {
77+
"description": "The username of the owner of the media item.",
6078
"type": ["null", "string"]
6179
},
6280
"children": {
81+
"description": "Contains an array of media items that are part of the post.",
6382
"type": ["null", "array"],
6483
"items": {
84+
"description": "Properties of each media item like image, caption, etc.",
6585
"type": "object",
6686
"properties": {
6787
"id": {
88+
"description": "The unique identifier for the child media item.",
6889
"type": ["null", "string"]
6990
},
7091
"ig_id": {
92+
"description": "The Instagram-specific identifier for the child media item.",
7193
"type": ["null", "string"]
7294
},
7395
"media_type": {
96+
"description": "The type of media of the child item (e.g., image, video).",
7497
"type": ["null", "string"]
7598
},
7699
"media_url": {
100+
"description": "The URL for accessing the media content of the child item.",
77101
"type": ["null", "string"]
78102
},
79103
"owner": {
104+
"description": "Contains information about the owner of the media item.",
80105
"type": ["null", "object"],
81106
"properties": {
82107
"id": {
108+
"description": "The unique identifier of the owner of the child media item.",
83109
"type": ["null", "string"]
84110
}
85111
}
86112
},
87113
"permalink": {
114+
"description": "The permanent link to the child media item on Instagram.",
88115
"type": ["null", "string"]
89116
},
90117
"shortcode": {
118+
"description": "The unique shortcode assigned to the child media item.",
91119
"type": ["null", "string"]
92120
},
93121
"thumbnail_url": {
122+
"description": "The URL for accessing the thumbnail image of the child media item.",
94123
"type": ["null", "string"]
95124
},
96125
"timestamp": {
126+
"description": "The date and time when the child media item was created.",
97127
"type": ["null", "string"],
98128
"format": "date-time",
99129
"airbyte_type": "timestamp_with_timezone"
100130
},
101131
"username": {
132+
"description": "The username of the owner of the child media item.",
102133
"type": ["null", "string"]
103134
}
104135
}

airbyte-integrations/connectors/source-instagram/source_instagram/schemas/media_insights.json

+14
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,59 @@
22
"type": "object",
33
"properties": {
44
"business_account_id": {
5+
"description": "The unique identifier of the Instagram business account associated with the media.",
56
"type": ["null", "string"]
67
},
78
"page_id": {
9+
"description": "The unique identifier of the Instagram page where the media is posted.",
810
"type": ["null", "string"]
911
},
1012
"id": {
13+
"description": "The unique identifier of the media.",
1114
"type": ["null", "string"]
1215
},
1316
"ig_reels_avg_watch_time": {
17+
"description": "The average watch time of Instagram Reels videos in seconds.",
1418
"type": ["null", "number"]
1519
},
1620
"ig_reels_video_view_total_time": {
21+
"description": "The total watch time of Instagram Reels videos in seconds.",
1722
"type": ["null", "number"]
1823
},
1924
"impressions": {
25+
"description": "The number of times the media has been displayed to users.",
2026
"type": ["null", "integer"]
2127
},
2228
"reach": {
29+
"description": "The number of unique users who have seen the media.",
2330
"type": ["null", "integer"]
2431
},
2532
"saved": {
33+
"description": "The number of times users have saved the media.",
2634
"type": ["null", "integer"]
2735
},
2836
"video_views": {
37+
"description": "The total number of views on video media.",
2938
"type": ["null", "integer"]
3039
},
3140
"comments": {
41+
"description": "The number of comments received on the media.",
3242
"type": ["null", "integer"]
3343
},
3444
"likes": {
45+
"description": "The number of likes received on the media.",
3546
"type": ["null", "integer"]
3647
},
3748
"shares": {
49+
"description": "The number of times the media has been shared.",
3850
"type": ["null", "integer"]
3951
},
4052
"total_interactions": {
53+
"description": "The total number of interactions (likes, comments, shares) on the media.",
4154
"type": ["null", "integer"]
4255
},
4356
"plays": {
57+
"description": "The number of times the media has been played.",
4458
"type": ["null", "integer"]
4559
}
4660
}

0 commit comments

Comments
 (0)