zendesk_apps_support 4.22.0 → 4.23.0

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
- SHA256:
3
- metadata.gz: f5e7624f0698a1aff9b173819bca559434dd3baffe49e9fa4d7276867dbed41f
4
- data.tar.gz: b98003482ec9bb0b011d228d61a9385df451ea569c71fd775eccafb30e731b23
2
+ SHA1:
3
+ metadata.gz: 40c2caa76f6951364c92953a7bdb0c41e3d9d9b9
4
+ data.tar.gz: 465900fbbd27294f5410e6e6069f371bb679d6cd
5
5
  SHA512:
6
- metadata.gz: e4b9b3fd92f5fc1de2198f99e8442de953f4e23e77833cb8a67e0100c5fdefc01f98662c6377112f08ca9daf7eb04fb4b9c924406ce9bbd5d01fe3faa1532d29
7
- data.tar.gz: 518d3295fca2a66d0035e1c2a6859db891b2ac3d6cb6548bd98f1638bc0311616369f25bcfb8ce8530ac503adde61ca65f05de414728f972ed36a9b7bd56a50c
6
+ metadata.gz: d53c27eaf542b51a4ec004fdc44856b6ca20d08400095b892e27e0bd691de51b2118347e1db530bd2c940b0404e18913ee9b02d6e20fd928319a5ae118a0a57f
7
+ data.tar.gz: 9c554449f03a09400edb1e040113c6db43fe1426a476487415ae2f639ff34ff4ff24baf349e1c585f0deeaaa2dede8b54b50b8cfa476e90e78522ce7da52643b
@@ -3,7 +3,7 @@
3
3
  module ZendeskAppsSupport
4
4
  class Location
5
5
  extend ZendeskAppsSupport::Finders
6
- attr_reader :id, :name, :orderable, :collapsible, :product_code, :v2_only
6
+ attr_reader :id, :name, :orderable, :collapsible, :visible, :product_code, :v2_only
7
7
 
8
8
  def self.unique_ids
9
9
  @ids ||= Set.new
@@ -16,6 +16,7 @@ module ZendeskAppsSupport
16
16
  @name = attrs.fetch(:name)
17
17
  @orderable = attrs.fetch(:orderable, false)
18
18
  @collapsible = attrs.fetch(:collapsible, false)
19
+ @visible = attrs.fetch(:visible, false)
19
20
  @product_code = attrs.fetch(:product_code)
20
21
  @v2_only = attrs.fetch(:v2_only, product != Product::SUPPORT)
21
22
  end
@@ -30,36 +31,39 @@ module ZendeskAppsSupport
30
31
 
31
32
  # the ids below match the enum values on the database, do not change them!
32
33
  LOCATIONS_AVAILABLE = [
33
- Location.new(id: 1, orderable: true, name: 'top_bar', product_code: Product::SUPPORT.code),
34
- Location.new(id: 2, orderable: true, name: 'nav_bar', product_code: Product::SUPPORT.code),
34
+ Location.new(id: 1, orderable: true, name: 'top_bar',
35
+ product_code: Product::SUPPORT.code, visible: true),
36
+ Location.new(id: 2, orderable: true, name: 'nav_bar',
37
+ product_code: Product::SUPPORT.code, visible: true),
35
38
  Location.new(id: 3, orderable: true, collapsible: true, name: 'ticket_sidebar',
36
- product_code: Product::SUPPORT.code),
39
+ product_code: Product::SUPPORT.code, visible: true),
37
40
  Location.new(id: 4, orderable: true, collapsible: true, name: 'new_ticket_sidebar',
38
- product_code: Product::SUPPORT.code),
41
+ product_code: Product::SUPPORT.code, visible: true),
39
42
  Location.new(id: 5, orderable: true, collapsible: true, name: 'user_sidebar',
40
- product_code: Product::SUPPORT.code),
43
+ product_code: Product::SUPPORT.code, visible: true),
41
44
  Location.new(id: 6, orderable: true, collapsible: true, name: 'organization_sidebar',
42
- product_code: Product::SUPPORT.code),
45
+ product_code: Product::SUPPORT.code, visible: true),
43
46
  Location.new(id: 7, name: 'background', product_code: Product::SUPPORT.code),
44
- Location.new(id: 8, orderable: true, collapsible: true, name: 'chat_sidebar', product_code: Product::CHAT.code),
47
+ Location.new(id: 8, orderable: true, collapsible: true, name: 'chat_sidebar',
48
+ product_code: Product::CHAT.code, visible: true),
45
49
  Location.new(id: 9, name: 'modal', product_code: Product::SUPPORT.code, v2_only: true),
46
- Location.new(id: 10, name: 'ticket_editor', product_code: Product::SUPPORT.code, v2_only: true),
47
- Location.new(id: 11, name: 'nav_bar', product_code: Product::STANDALONE_CHAT.code, v2_only: false),
50
+ Location.new(id: 10, name: 'ticket_editor', product_code: Product::SUPPORT.code, v2_only: true, visible: true),
51
+ Location.new(id: 11, name: 'nav_bar', product_code: Product::STANDALONE_CHAT.code, v2_only: false, visible: true),
48
52
  Location.new(id: 12, name: 'system_top_bar', product_code: Product::SUPPORT.code),
49
53
  Location.new(id: 13, name: 'system_top_bar',
50
54
  product_code: Product::STANDALONE_CHAT.code, v2_only: false),
51
55
  Location.new(id: 14, name: 'background',
52
56
  product_code: Product::CHAT.code),
53
- Location.new(id: 15, name: 'deal_card', product_code: Product::SELL.code, collapsible: true),
54
- Location.new(id: 16, name: 'person_card', product_code: Product::SELL.code, collapsible: true),
55
- Location.new(id: 17, name: 'company_card', product_code: Product::SELL.code, collapsible: true),
56
- Location.new(id: 18, name: 'lead_card', product_code: Product::SELL.code, collapsible: true),
57
+ Location.new(id: 15, name: 'deal_card', product_code: Product::SELL.code, collapsible: true, visible: true),
58
+ Location.new(id: 16, name: 'person_card', product_code: Product::SELL.code, collapsible: true, visible: true),
59
+ Location.new(id: 17, name: 'company_card', product_code: Product::SELL.code, collapsible: true, visible: true),
60
+ Location.new(id: 18, name: 'lead_card', product_code: Product::SELL.code, collapsible: true, visible: true),
57
61
  Location.new(id: 19, name: 'background', product_code: Product::SELL.code),
58
62
  Location.new(id: 20, name: 'modal', product_code: Product::SELL.code),
59
- Location.new(id: 21, name: 'dashboard', product_code: Product::SELL.code),
60
- Location.new(id: 22, name: 'note_editor', product_code: Product::SELL.code),
61
- Location.new(id: 23, name: 'call_log_editor', product_code: Product::SELL.code),
62
- Location.new(id: 24, name: 'email_editor', product_code: Product::SELL.code)
63
+ Location.new(id: 21, name: 'dashboard', product_code: Product::SELL.code, visible: true),
64
+ Location.new(id: 22, name: 'note_editor', product_code: Product::SELL.code, visible: true),
65
+ Location.new(id: 23, name: 'call_log_editor', product_code: Product::SELL.code, visible: true),
66
+ Location.new(id: 24, name: 'email_editor', product_code: Product::SELL.code, visible: true)
63
67
  ].freeze
64
68
  end
65
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_apps_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.22.0
4
+ version: 4.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-10-11 00:00:00.000000000 Z
14
+ date: 2019-10-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -319,7 +319,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  - !ruby/object:Gem::Version
320
320
  version: 1.3.6
321
321
  requirements: []
322
- rubygems_version: 3.0.6
322
+ rubyforge_project:
323
+ rubygems_version: 2.6.8
323
324
  signing_key:
324
325
  specification_version: 4
325
326
  summary: Support to help you develop Zendesk Apps.