shopify_oracle 0.1.3 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b35519332d1d38355d4daa026e704e845cf387dfd805b8517214785b605f13f0
4
- data.tar.gz: bc6ae5b3a99a9ea9cf7aad3dc2dcccb45a6add087bb1e0d8bb5f29e726e4ff41
3
+ metadata.gz: 35ab3941be194ae7c93b03eb2a58c0847c96622ca991beeccf50930353b98337
4
+ data.tar.gz: d36f14367ddc8be222c267cc841f739f4f4b6b8cae30bd60a2857e23ef4735ff
5
5
  SHA512:
6
- metadata.gz: 4f6c87b6980ba27873ef12e66327a5dd4c627154970bc2924730279b782b04e205216da3120a9526891fc482c091bf849992e27dfa3ecf266740b0257db03e43
7
- data.tar.gz: d0082b84aed9577d9ec90011ddbdd330616edf5551465101b45c14b0d15379503b4984a422b587f82af9f47972a816d2b55e200d33f32f14e3aad147b15f3195
6
+ metadata.gz: 3e5e6d972b466b2965fa23f9d1371617cddcf3075274b18d02c8c541a63de47251685e63ee37a31001f9fe9db24ee4ae79e075a336bb5f97b2e83248371d2b4a
7
+ data.tar.gz: 736a06b2033f891778c87a90c6bb4ee2acc08a77490b879a7f0e1dd8aa84a5e5555374b3be384cb900cf203f76e099b73ec87b4562490231229dc0b0bc1a2809
@@ -5,7 +5,7 @@ module ShopifyOracle
5
5
  class Customer < Base
6
6
  attr_reader :customer
7
7
 
8
- def initialize(id:, oracle: nil)
8
+ def initialize(id:)
9
9
  super
10
10
  @customer = @object
11
11
  end
@@ -11,7 +11,7 @@ module ShopifyOracle
11
11
 
12
12
  attr_reader :selling_plan_group
13
13
 
14
- def initialize(id:, oracle: nil)
14
+ def initialize(id:)
15
15
  super
16
16
  @selling_plan_group = @object
17
17
  end
@@ -88,7 +88,7 @@ module ShopifyOracle
88
88
 
89
89
  attr_reader :contract
90
90
 
91
- def initialize(id:, oracle: nil)
91
+ def initialize(id:)
92
92
  super
93
93
  @contract = @object
94
94
  end
@@ -7,7 +7,7 @@ module ShopifyOracle
7
7
  class SubscriptionDraft < Base
8
8
  attr_reader :draft
9
9
 
10
- def initialize(id:, oracle: nil)
10
+ def initialize(id:)
11
11
  super
12
12
  @draft = @object
13
13
  end
@@ -3,9 +3,9 @@
3
3
  module ShopifyOracle
4
4
  module Connector
5
5
  class Mutater < Base
6
- def mutate(method, **args)
6
+ def mutate(method, variables:)
7
7
  mutation = ShopifyOracle::Mutations.const_get("#{method.to_s.upcase}_MUTATION".to_sym)
8
- @client.query(query: mutation, variables: args)
8
+ @client.query(query: mutation, variables:)
9
9
  end
10
10
  end
11
11
  end
@@ -3,9 +3,9 @@
3
3
  module ShopifyOracle
4
4
  module Connector
5
5
  class Querier < Base
6
- def query(method, **args)
6
+ def query(method, variables:)
7
7
  query = ShopifyOracle::Queries.const_get("#{method.to_s.upcase}_QUERY".to_sym)
8
- @client.query(query:, variables: args)
8
+ @client.query(query:, variables:)
9
9
  end
10
10
  end
11
11
  end
@@ -73,6 +73,13 @@ module ShopifyOracle
73
73
  options
74
74
  position
75
75
  productCount
76
+ products(first: $first) {
77
+ edges {
78
+ node {
79
+ id
80
+ }
81
+ }
82
+ }
76
83
  productVariantCount
77
84
  productVariants(first: $first) {
78
85
  edges {
@@ -29,7 +29,7 @@ module ShopifyOracle
29
29
  shop ||= @shop
30
30
 
31
31
  @querier = ShopifyOracle::Connector::Querier.new(shop:)
32
- @mutater = ShopifyOracle::Connector::Mutater.new(shop:)
32
+ @mutator = ShopifyOracle::Connector::Mutater.new(shop:)
33
33
  @initialized = true
34
34
  end
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_oracle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yari Labs