Sha256: 968c8a2f1d57cee53d074de33ebb53f511ac00f33157c8dbfb7b9c625bbaa24c

Contents?: true

Size: 598 Bytes

Versions: 20

Compression:

Stored size: 598 Bytes

Contents

module Extension
  module Tasks
    class FetchSpecifications
      include ShopifyCLI::MethodObject

      property :context
      property :api_key

      def call
        response = ShopifyCLI::PartnersAPI
          .query(context, "fetch_specifications", api_key: api_key)
          .dig("data", "extensionSpecifications")
        context.abort(context.message("tasks.errors.parse_error")) if response.nil?

        response.reject do |line|
          ::Extension::Features::Runtimes::CheckoutUiExtension::IDENTIFIERS.include?(line["identifier"].upcase)
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
shopify-cli-2.36.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.35.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.34.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.33.1 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.33.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.32.1 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.32.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.31.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.30.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.29.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.28.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.27.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.26.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.25.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.24.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.23.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.22.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.21.0 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.20.1 lib/project_types/extension/tasks/fetch_specifications.rb
shopify-cli-2.20.0 lib/project_types/extension/tasks/fetch_specifications.rb