Sha256: 86ed0abeb297192005aaaedff3e4a145f2b26f0fed47837b9475d0069ca81fbb

Contents?: true

Size: 701 Bytes

Versions: 15

Compression:

Stored size: 701 Bytes

Contents

require 'sequel'
require 'pact_broker/repositories/helpers'

module PactBroker
  module Webhooks
    class WebhookEvent < Sequel::Model

      CONTRACT_CONTENT_CHANGED = 'contract_content_changed'
      VERIFICATION_PUBLISHED = 'provider_verification_published'
      DEFAULT_EVENT_NAME = CONTRACT_CONTENT_CHANGED
      #CONTRACT_VERIFIABLE_CONTENT_CHANGED = 'contract_verifiable_content_changed'
      #VERIFICATION_STATUS_CHANGED = 'verification_status_changed'

      EVENT_NAMES = [CONTRACT_CONTENT_CHANGED, VERIFICATION_PUBLISHED]

      dataset_module do
        include PactBroker::Repositories::Helpers
      end

    end

    WebhookEvent.plugin :timestamps, update_on_create: true
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pact_broker-2.22.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.21.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.20.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.19.2 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.19.1 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.19.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.18.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.17.1 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.17.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.16.1 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.16.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.15.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.14.0 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.13.1 lib/pact_broker/webhooks/webhook_event.rb
pact_broker-2.13.0 lib/pact_broker/webhooks/webhook_event.rb