e_plat 1.0.0.pre.rc.3 → 1.0.0.pre.rc.5
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.
- checksums.yaml +4 -4
- data/README.md +23 -1
- data/lib/e_plat/mapping/shopify/v_2025_01/metafield.rb +26 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/order/billing_address.rb +14 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/order/shipping_address.rb +30 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/order.rb +26 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/product/image.rb +52 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/product/option.rb +45 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/product/variant/option_value.rb +58 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/product/variant.rb +186 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/product.rb +100 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/script_tag.rb +26 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/shop.rb +26 -0
- data/lib/e_plat/mapping/shopify/v_2025_01/webhook.rb +29 -0
- data/lib/e_plat/resource/base.rb +8 -3
- data/lib/e_plat/resource/concerns/graph_q_lable.rb +17 -11
- data/lib/e_plat/resource/concerns/overwrite_request_methods.rb +7 -1
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input/product/variant.rb +90 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input/product/variants_bulk.rb +60 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input/product.rb +36 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input.rb +133 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/mutation/product/variant.rb +86 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/mutation/product.rb +55 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/mutation.rb +5 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/query/product/variant.rb +44 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/query/product.rb +58 -0
- data/lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/query.rb +5 -0
- data/lib/e_plat/resource/platform_specific/shopify/product/variant.rb +3 -3
- data/lib/e_plat/resource/platform_specific/shopify/product.rb +1 -5
- data/lib/e_plat/resource/product/variant.rb +1 -1
- data/lib/e_plat/version.rb +1 -1
- data/lib/e_plat.rb +3 -4
- metadata +24 -2
@@ -67,12 +67,8 @@ module EPlat::Shopify
|
|
67
67
|
|
68
68
|
def variants_bulk_update_fragment
|
69
69
|
graphql_proc = eval "EPlat::Shopify::GraphQL::#{ EPlat.shopify_graphql_version }::Mutation.product_variants_bulk_update_fragment"
|
70
|
-
native_attributes = mapping.via_native_attributes_where_possible(as_json)
|
71
70
|
|
72
|
-
graphql_proc.call product_variants_bulk_input.
|
73
|
-
product_id: native_attributes.dig("product", "id"),
|
74
|
-
variants: native_attributes.dig("product", "variants")
|
75
|
-
).to_graphql_args
|
71
|
+
graphql_proc.call product_variants_bulk_input.mutation_input(self, :update)
|
76
72
|
end
|
77
73
|
|
78
74
|
end
|
data/lib/e_plat/version.rb
CHANGED
data/lib/e_plat.rb
CHANGED
@@ -22,7 +22,7 @@ loader.setup
|
|
22
22
|
|
23
23
|
module EPlat
|
24
24
|
extend Dry::Configurable
|
25
|
-
SUPPORTED_SHOPIFY_API_VERSIONS = ['2024_01', '2024_07']
|
25
|
+
SUPPORTED_SHOPIFY_API_VERSIONS = ['2024_01', '2024_07', '2025_01']
|
26
26
|
SUPPORTED_BIGCOMMERCE_API_VERSIONS = ['3']
|
27
27
|
|
28
28
|
SUPPORTED_PLATFORMS = ["shopify", "bigcommerce"]
|
@@ -42,7 +42,7 @@ module EPlat
|
|
42
42
|
"metafield"
|
43
43
|
]
|
44
44
|
|
45
|
-
setting(:shopify_api_version, default: ENV['EPLAT_SHOPIFY_API_VERSION'] || "
|
45
|
+
setting(:shopify_api_version, default: ENV['EPLAT_SHOPIFY_API_VERSION'] || "2025_01", constructor: ->(value) do
|
46
46
|
SUPPORTED_SHOPIFY_API_VERSIONS.include?(value.underscore) ? value.underscore : raise(ArgumentError, "Shopify API version #{value} is not supported")
|
47
47
|
end)
|
48
48
|
|
@@ -65,8 +65,7 @@ module EPlat
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def self.shopify_graphql_version
|
68
|
-
|
69
|
-
"V202407"
|
68
|
+
"V#{ EPlat.config.shopify_api_version.gsub("_", "") }"
|
70
69
|
end
|
71
70
|
|
72
71
|
class Error < StandardError; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: e_plat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.rc.
|
4
|
+
version: 1.0.0.pre.rc.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oliwoodsuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -288,6 +288,18 @@ files:
|
|
288
288
|
- lib/e_plat/mapping/shopify/v_2024_07/script_tag.rb
|
289
289
|
- lib/e_plat/mapping/shopify/v_2024_07/shop.rb
|
290
290
|
- lib/e_plat/mapping/shopify/v_2024_07/webhook.rb
|
291
|
+
- lib/e_plat/mapping/shopify/v_2025_01/metafield.rb
|
292
|
+
- lib/e_plat/mapping/shopify/v_2025_01/order.rb
|
293
|
+
- lib/e_plat/mapping/shopify/v_2025_01/order/billing_address.rb
|
294
|
+
- lib/e_plat/mapping/shopify/v_2025_01/order/shipping_address.rb
|
295
|
+
- lib/e_plat/mapping/shopify/v_2025_01/product.rb
|
296
|
+
- lib/e_plat/mapping/shopify/v_2025_01/product/image.rb
|
297
|
+
- lib/e_plat/mapping/shopify/v_2025_01/product/option.rb
|
298
|
+
- lib/e_plat/mapping/shopify/v_2025_01/product/variant.rb
|
299
|
+
- lib/e_plat/mapping/shopify/v_2025_01/product/variant/option_value.rb
|
300
|
+
- lib/e_plat/mapping/shopify/v_2025_01/script_tag.rb
|
301
|
+
- lib/e_plat/mapping/shopify/v_2025_01/shop.rb
|
302
|
+
- lib/e_plat/mapping/shopify/v_2025_01/webhook.rb
|
291
303
|
- lib/e_plat/mapping/virtual_collection/base.rb
|
292
304
|
- lib/e_plat/mapping/virtual_collection/bigcommerce/order_line_items.rb
|
293
305
|
- lib/e_plat/mapping/virtual_collection/shopify/product/variant/option_value.rb
|
@@ -338,6 +350,16 @@ files:
|
|
338
350
|
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2024_07/query.rb
|
339
351
|
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2024_07/query/product.rb
|
340
352
|
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2024_07/query/product/variant.rb
|
353
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input.rb
|
354
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input/product.rb
|
355
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input/product/variant.rb
|
356
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input/product/variants_bulk.rb
|
357
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/mutation.rb
|
358
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/mutation/product.rb
|
359
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/mutation/product/variant.rb
|
360
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/query.rb
|
361
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/query/product.rb
|
362
|
+
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/query/product/variant.rb
|
341
363
|
- lib/e_plat/resource/platform_specific/shopify/metafield.rb
|
342
364
|
- lib/e_plat/resource/platform_specific/shopify/order.rb
|
343
365
|
- lib/e_plat/resource/platform_specific/shopify/order/Consignment.rb
|