bullet_train-outgoing_webhooks 1.2.23 → 1.2.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac76c8e3aa7521f2e6482ef7ef8c230a8129acc227229676a2bd5a989d31fed5
4
- data.tar.gz: ec5813e9fcd2890c2e4c27acacadd96cdf56211bc417edea6349123f0fd7563f
3
+ metadata.gz: e81637d68e3ae36f5f4fd1723c692b5d58577e5dd66db6b834ec843ed1b036a7
4
+ data.tar.gz: 9c422ab8041f69147fb38c5af3539c8742a2225073f27a70f49bf06455ee170c
5
5
  SHA512:
6
- metadata.gz: 754b0e2c9c5454fe2d3157043140f4ea363f4242c68f55589c214b436d48711cf3a8fd9713b2d07cf390560dd84a9c19ba8c663ceeb5aede543eb9daf3ba6336
7
- data.tar.gz: 34007d9cc55bf55ce6948813248f4c071548a4a92369e2e3f910f7a3ef04b765f9239d892b218c772f5f0ed3cf0de1375577992ec45b6d19f2043d7957b2eb18
6
+ metadata.gz: f68ed169a9250f8c3d5e73e848125138cec0c4a44cac49d751de96be8ac471ab00e32556e36ad6db471582836a4db38e7b71da2ca7f806da7a8677543e95eaf1
7
+ data.tar.gz: d09b381b296a9ec78084aab2cadfdfd3b1ca6d421e3e7ba75147b4bb963e4b09c6849fb921fbe6a740bc2ecd0ef3600e831f00d899813c876b8904152a940773
@@ -1,12 +1,9 @@
1
- json.data schema: {object: OpenStruct.new, object_title: I18n.t("webhooks/outgoing/events.fields.data.heading"), object_description: I18n.t("webhooks/outgoing/events.fields.data.heading")} do
2
- json.id schema: {type: :integer, description: I18n.t("webhooks/outgoing/events.fields.data.id.heading")}
3
- json.name schema: {type: :string, description: I18n.t("webhooks/outgoing/events.fields.data.name.heading")}
4
- json.description schema: {type: :string, description: I18n.t("webhooks/outgoing/events.fields.data.description.heading")}
5
- json.created_at schema: {type: :string, format: "date-time", description: I18n.t("webhooks/outgoing/events.fields.data.created_at.heading")}
6
- json.updated_at schema: {type: :string, format: "date-time", description: I18n.t("webhooks/outgoing/events.fields.data.updated_at.heading")}
7
- end
8
-
9
- json.event_id schema: {type: :string, description: I18n.t("webhooks/outgoing/events.fields.event_id.heading")}
10
- json.event_type schema: {type: :integer, description: I18n.t("webhooks/outgoing/events.fields.event_type.heading")}
11
- json.subject_id schema: {type: :integer, description: I18n.t("webhooks/outgoing/events.fields.subject_id.heading")}
12
- json.subject_type schema: {type: :string, description: I18n.t("webhooks/outgoing/events.fields.subject_type.heading")}
1
+ json.extract! event,
2
+ :id,
3
+ :team_id,
4
+ :uuid,
5
+ :event_type_id,
6
+ :subject_id,
7
+ :subject_type,
8
+ :data,
9
+ :created_at
@@ -2,45 +2,23 @@ en:
2
2
  webhooks/outgoing/events: &events
3
3
  label: &label Webhooks Events
4
4
  fields: &fields
5
- data:
6
- _: &data Event Data
7
- label: *data
8
- heading: *data
9
-
10
- id:
11
- _: &id Event ID
12
- label: *id
13
- heading: *id
14
-
15
- name:
16
- _: &name Event Name
17
- label: *name
18
- heading: *name
19
-
20
- description:
21
- _: &description Event Description
22
- label: *description
23
- heading: *description
24
-
25
- created_at:
26
- _: &created_at DateTime Event was added
27
- label: *created_at
28
- heading: *created_at
29
- updated_at:
30
- _: &updated_at DateTime Event was updated
31
- label: *updated_at
32
- heading: *updated_at
5
+ id:
6
+ _: &id Event ID
7
+ label: *id
8
+ heading: *id
33
9
 
34
- event_id:
35
- _: &event_id Event UUID
36
- label: *event_id
37
- heading: *event_id
10
+ team_id:
11
+ _: &team_id Team ID
12
+ label: *team_id
13
+ heading: *team_id
38
14
 
39
- event_type:
15
+ event_type_id: &event_type_id
40
16
  _: &event_type Event Type
41
17
  label: *event_type
42
18
  heading: *event_type
43
19
 
20
+ event_type: *event_type_id
21
+
44
22
  subject_id:
45
23
  _: &subject_id Subject ID
46
24
  label: *subject_id
@@ -70,3 +48,13 @@ en:
70
48
  _: &event_type_name Event Type Name
71
49
  label: *event_type_name
72
50
  heading: *event_type_name
51
+
52
+ data:
53
+ _: &data Object Data
54
+ label: *data
55
+ heading: *data
56
+
57
+ created_at:
58
+ _: &created_at Happened At
59
+ label: *created_at
60
+ heading: *created_at
@@ -0,0 +1,5 @@
1
+ class AddApiVersionToWebhooksOutgoingEndpoints < ActiveRecord::Migration[7.0]
2
+ def change
3
+ add_column :webhooks_outgoing_endpoints, :api_version, :integer, null: false, default: 1
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddApiVersionToWebhooksOutgoingEvents < ActiveRecord::Migration[7.0]
2
+ def change
3
+ add_column :webhooks_outgoing_events, :api_version, :integer, null: false, default: 1
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RemoveDefaultFromWebhooksOutgoingEndpoints < ActiveRecord::Migration[7.0]
2
+ def change
3
+ change_column_default :webhooks_outgoing_endpoints, :api_version, from: 1, to: nil
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RemoveDefaultFromWebhooksOutgoingEvents < ActiveRecord::Migration[7.0]
2
+ def change
3
+ change_column_default :webhooks_outgoing_events, :api_version, from: 1, to: nil
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module OutgoingWebhooks
3
- VERSION = "1.2.23"
3
+ VERSION = "1.2.25"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-outgoing_webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.23
4
+ version: 1.2.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-01 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -114,7 +114,6 @@ files:
114
114
  - app/views/account/webhooks/outgoing/endpoints/index.html.erb
115
115
  - app/views/account/webhooks/outgoing/endpoints/new.html.erb
116
116
  - app/views/account/webhooks/outgoing/endpoints/show.html.erb
117
- - app/views/api/v1/open_api/index.yaml.erb
118
117
  - app/views/api/v1/webhooks/outgoing/endpoints/_endpoint.json.jbuilder
119
118
  - app/views/api/v1/webhooks/outgoing/endpoints/index.json.jbuilder
120
119
  - app/views/api/v1/webhooks/outgoing/endpoints/show.json.jbuilder
@@ -148,6 +147,10 @@ files:
148
147
  - db/migrate/20211127015712_drop_webhooks_outgoing_endpoint_event_types.rb
149
148
  - db/migrate/20211127015713_drop_webhooks_outgoing_event_types.rb
150
149
  - db/migrate/20221130063357_add_creative_concept_to_endpoints.rb
150
+ - db/migrate/20221230223200_add_api_version_to_webhooks_outgoing_endpoints.rb
151
+ - db/migrate/20221230235326_add_api_version_to_webhooks_outgoing_events.rb
152
+ - db/migrate/20221231003437_remove_default_from_webhooks_outgoing_endpoints.rb
153
+ - db/migrate/20221231003438_remove_default_from_webhooks_outgoing_events.rb
151
154
  - lib/bullet_train/outgoing_webhooks.rb
152
155
  - lib/bullet_train/outgoing_webhooks/engine.rb
153
156
  - lib/bullet_train/outgoing_webhooks/version.rb
@@ -1,33 +0,0 @@
1
- openapi: 3.1.0
2
- info:
3
- title: Bullet Train API
4
- description: |
5
- The baseline API of a new Bullet Train application.
6
- license:
7
- name: MIT
8
- url: https://opensource.org/licenses/MIT
9
- version: "<%= @version.upcase %>"
10
- servers:
11
- - url: <%= ENV["BASE_URL"] %>/api/<%= @version %>
12
- components:
13
- securitySchemes:
14
- BearerAuth:
15
- type: http
16
- scheme: bearer
17
- schemas:
18
- <%= automatic_components_for Webhooks::Outgoing::Endpoint %>
19
- <%= automatic_components_for Webhooks::Outgoing::Event %>
20
- <%# 🚅 super scaffolding will insert new components above this line. %>
21
- parameters:
22
- id:
23
- name: id
24
- in: path
25
- required: true
26
- schema:
27
- type: string
28
- security:
29
- - BearerAuth: []
30
- paths:
31
- <%= automatic_paths_for Webhooks::Outgoing::Endpoint, Team %>
32
- <%= automatic_paths_for Webhooks::Outgoing::Event, Team, except: %i[create update delete] %>
33
- <%# 🚅 super scaffolding will insert new paths above this line. %>