airbyte-source-shopify 3.2.0.dev202602040050__py3-none-any.whl → 3.2.1.dev202602031830__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {airbyte_source_shopify-3.2.0.dev202602040050.dist-info → airbyte_source_shopify-3.2.1.dev202602031830.dist-info}/METADATA +1 -1
- {airbyte_source_shopify-3.2.0.dev202602040050.dist-info → airbyte_source_shopify-3.2.1.dev202602031830.dist-info}/RECORD +6 -6
- source_shopify/schemas/product_variants.json +4 -4
- source_shopify/shopify_graphql/bulk/query.py +12 -14
- {airbyte_source_shopify-3.2.0.dev202602040050.dist-info → airbyte_source_shopify-3.2.1.dev202602031830.dist-info}/WHEEL +0 -0
- {airbyte_source_shopify-3.2.0.dev202602040050.dist-info → airbyte_source_shopify-3.2.1.dev202602031830.dist-info}/entry_points.txt +0 -0
|
@@ -44,7 +44,7 @@ source_shopify/schemas/orders.json,sha256=SxX6fDtMnEkvm-58uNgaoF47Ep8DIwLpXK09C2
|
|
|
44
44
|
source_shopify/schemas/pages.json,sha256=J7jxtk2nE_q-0oHmGz8orFq3EfSjJqUvF6qPJtiZCrg,2093
|
|
45
45
|
source_shopify/schemas/price_rules.json,sha256=aZ-Re9Oc9g0ci8SPn0_ufvKPsGDBcTaXHVsq_9-Ygq4,7004
|
|
46
46
|
source_shopify/schemas/product_images.json,sha256=0l3ACfOfnXz8N8oMHwvvfZUFKeeuZ2DlRRu5-FxUhaI,1760
|
|
47
|
-
source_shopify/schemas/product_variants.json,sha256=
|
|
47
|
+
source_shopify/schemas/product_variants.json,sha256=VpVxC9gJLkk8LTtg4sSQui-_XIWQi5JHC7cZ3_264hU,8415
|
|
48
48
|
source_shopify/schemas/products.json,sha256=n7m1ndEnAM7Pee5ca0JZWCl5Y0VffGmTZjqjHhiht1I,22609
|
|
49
49
|
source_shopify/schemas/profile_location_groups.json,sha256=2_QdfMeM_WNDT-06fQfFUHXjN9D6ndKIGcviJxEl8kM,189
|
|
50
50
|
source_shopify/schemas/shop.json,sha256=vEGiTvEYX7qnMq06MRVBycqih49h49xjTNC6gJuxTWs,8137
|
|
@@ -55,7 +55,7 @@ source_shopify/scopes.py,sha256=R6f7t211n_nrh0T897u72ODo_hI6mzPC1NbN0vq-upI,6579
|
|
|
55
55
|
source_shopify/shopify_graphql/bulk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
56
|
source_shopify/shopify_graphql/bulk/exceptions.py,sha256=4dj7Za4xIfwL-zf8joT9svF_RSoGlE3GviMiIl1e1rs,2532
|
|
57
57
|
source_shopify/shopify_graphql/bulk/job.py,sha256=c3Cg70_Io9jTD-rU-5MvjHaPmJCtcpeqEYnRtFECGOo,28673
|
|
58
|
-
source_shopify/shopify_graphql/bulk/query.py,sha256=
|
|
58
|
+
source_shopify/shopify_graphql/bulk/query.py,sha256=IvpYW4wh6RUJGBlaRWWutHEmvgtDT_viOHu28PR4-5A,136420
|
|
59
59
|
source_shopify/shopify_graphql/bulk/record.py,sha256=X6VGngugv7a_S8UEeDo121BkdCVLj5nWlHK76A21kyo,16898
|
|
60
60
|
source_shopify/shopify_graphql/bulk/retry.py,sha256=R5rSJJE8D5zcj6mN-OmmNO2aFZEIdjAlWclDDVW5KPI,2626
|
|
61
61
|
source_shopify/shopify_graphql/bulk/status.py,sha256=RmuQ2XsYL3iRCpVGxea9F1wXGmbwasDCSXjaTyL4LMA,328
|
|
@@ -66,7 +66,7 @@ source_shopify/streams/base_streams.py,sha256=k_4uLaLADLRTUcSmP8uA_830uuzRvnqUaC
|
|
|
66
66
|
source_shopify/streams/streams.py,sha256=I68Li0EPR9acj3Jhk7qd-zWhESkPHRzLA_b-LmbTjsE,20044
|
|
67
67
|
source_shopify/transform.py,sha256=mn0htL812_90zc_YszGQa0hHcIZQpYYdmk8IqpZm5TI,4685
|
|
68
68
|
source_shopify/utils.py,sha256=DSqEchu-MQJ7zust7CNfqOkGIv9OSR-5UUsuD-bsDa8,16224
|
|
69
|
-
airbyte_source_shopify-3.2.
|
|
70
|
-
airbyte_source_shopify-3.2.
|
|
71
|
-
airbyte_source_shopify-3.2.
|
|
72
|
-
airbyte_source_shopify-3.2.
|
|
69
|
+
airbyte_source_shopify-3.2.1.dev202602031830.dist-info/METADATA,sha256=16HYNIXt-1MUug3pX0Fc9KTBlk6TwJFKsA_cfdZt-FA,5313
|
|
70
|
+
airbyte_source_shopify-3.2.1.dev202602031830.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
71
|
+
airbyte_source_shopify-3.2.1.dev202602031830.dist-info/entry_points.txt,sha256=SyTwKSsPk9MCdPf01saWpnp8hcmZOgBssVcSIvMbBeQ,57
|
|
72
|
+
airbyte_source_shopify-3.2.1.dev202602031830.dist-info/RECORD,,
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"description": "The unique identifier for the product option.",
|
|
57
57
|
"type": ["null", "integer"]
|
|
58
58
|
},
|
|
59
|
+
"position": {
|
|
60
|
+
"description": "The display position of the product option.",
|
|
61
|
+
"type": ["null", "integer"]
|
|
62
|
+
},
|
|
59
63
|
"name": {
|
|
60
64
|
"description": "The product option's name.",
|
|
61
65
|
"type": ["null", "string"]
|
|
62
66
|
},
|
|
63
|
-
"position": {
|
|
64
|
-
"description": "The display order of the product option.",
|
|
65
|
-
"type": ["null", "integer"]
|
|
66
|
-
},
|
|
67
67
|
"value": {
|
|
68
68
|
"description": "The product option's value.",
|
|
69
69
|
"type": ["null", "string"]
|
|
@@ -2853,24 +2853,22 @@ class ProductVariant(ShopifyBulkQuery):
|
|
|
2853
2853
|
product = record.get("product") or {}
|
|
2854
2854
|
product_options = product.get("product_options") or []
|
|
2855
2855
|
|
|
2856
|
-
#
|
|
2857
|
-
|
|
2856
|
+
# Create a lookup map from option name to ProductOption data
|
|
2857
|
+
option_lookup = {}
|
|
2858
2858
|
for product_option in product_options:
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
}
|
|
2859
|
+
option_name = product_option.get("name")
|
|
2860
|
+
if option_name:
|
|
2861
|
+
option_lookup[option_name] = {
|
|
2862
|
+
"id": self.tools.resolve_str_id(product_option.get("id")),
|
|
2863
|
+
"position": product_option.get("position"),
|
|
2864
|
+
}
|
|
2866
2865
|
|
|
2867
2866
|
# Enrich each option with id and position from the matching ProductOption
|
|
2868
2867
|
for option in options:
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
option["position"] = product_options_map[option_name]["position"]
|
|
2868
|
+
option_name = option.get("name")
|
|
2869
|
+
if option_name and option_name in option_lookup:
|
|
2870
|
+
option["id"] = option_lookup[option_name]["id"]
|
|
2871
|
+
option["position"] = option_lookup[option_name]["position"]
|
|
2874
2872
|
|
|
2875
2873
|
def record_process_components(self, record: MutableMapping[str, Any]) -> Iterable[MutableMapping[str, Any]]:
|
|
2876
2874
|
"""
|
|
File without changes
|