zendesk_apps_support 4.6.4 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zendesk_apps_support/location.rb +21 -18
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5f380d93312cbad637e1308b61fd50c5ee5e99f
|
4
|
+
data.tar.gz: 735b32435835edbfb61f5fc9fefbf3dceef504bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b34a05f19120bc943742eeb50f59d6a13e2b92fd506225ed0bc6fb849c18218e75680f02d71bdbf94fa9a4daae2b206bf888eb7113d975e0239af66c5938c6e
|
7
|
+
data.tar.gz: 8d77191fd9e3ac310a255c45af6dc899070794f12edeeecf2f3038ea2123b73284b2c98589aafc18c3e5d74faa786ba0e6cabe15b3351da3b9cf1030409568c9
|
@@ -2,7 +2,7 @@
|
|
2
2
|
module ZendeskAppsSupport
|
3
3
|
class Location
|
4
4
|
extend ZendeskAppsSupport::Finders
|
5
|
-
attr_reader :id, :name, :orderable, :product_code, :v2_only
|
5
|
+
attr_reader :id, :name, :orderable, :collapsible, :product_code, :v2_only
|
6
6
|
|
7
7
|
def self.unique_ids
|
8
8
|
@ids ||= Set.new
|
@@ -13,7 +13,8 @@ module ZendeskAppsSupport
|
|
13
13
|
raise 'Duplicate id' if Location.unique_ids.include? @id
|
14
14
|
Location.unique_ids.add @id
|
15
15
|
@name = attrs.fetch(:name)
|
16
|
-
@orderable = attrs.fetch(:orderable)
|
16
|
+
@orderable = attrs.fetch(:orderable, false)
|
17
|
+
@collapsible = attrs.fetch(:collapsible, false)
|
17
18
|
@product_code = attrs.fetch(:product_code)
|
18
19
|
@v2_only = attrs.fetch(:v2_only, product != Product::SUPPORT)
|
19
20
|
end
|
@@ -30,22 +31,24 @@ module ZendeskAppsSupport
|
|
30
31
|
LOCATIONS_AVAILABLE = [
|
31
32
|
Location.new(id: 1, orderable: true, name: 'top_bar', product_code: Product::SUPPORT.code),
|
32
33
|
Location.new(id: 2, orderable: true, name: 'nav_bar', product_code: Product::SUPPORT.code),
|
33
|
-
Location.new(id: 3, orderable: true, name: 'ticket_sidebar',
|
34
|
-
|
35
|
-
Location.new(id:
|
36
|
-
|
37
|
-
Location.new(id:
|
38
|
-
|
39
|
-
Location.new(id:
|
40
|
-
|
41
|
-
Location.new(id:
|
42
|
-
|
43
|
-
Location.new(id:
|
44
|
-
|
45
|
-
Location.new(id:
|
46
|
-
Location.new(id:
|
47
|
-
|
48
|
-
|
34
|
+
Location.new(id: 3, orderable: true, collapsible: true, name: 'ticket_sidebar',
|
35
|
+
product_code: Product::SUPPORT.code),
|
36
|
+
Location.new(id: 4, orderable: true, collapsible: true, name: 'new_ticket_sidebar',
|
37
|
+
product_code: Product::SUPPORT.code),
|
38
|
+
Location.new(id: 5, orderable: true, collapsible: true, name: 'user_sidebar',
|
39
|
+
product_code: Product::SUPPORT.code),
|
40
|
+
Location.new(id: 6, orderable: true, collapsible: true, name: 'organization_sidebar',
|
41
|
+
product_code: Product::SUPPORT.code),
|
42
|
+
Location.new(id: 7, name: 'background', product_code: Product::SUPPORT.code),
|
43
|
+
Location.new(id: 8, orderable: true, collapsible: true, name: 'chat_sidebar', product_code: Product::CHAT.code),
|
44
|
+
Location.new(id: 9, name: 'modal', product_code: Product::SUPPORT.code, v2_only: true),
|
45
|
+
Location.new(id: 10, name: 'ticket_editor', product_code: Product::SUPPORT.code, v2_only: true),
|
46
|
+
Location.new(id: 11, name: 'nav_bar', product_code: Product::STANDALONE_CHAT.code, v2_only: false),
|
47
|
+
Location.new(id: 12, name: 'system_top_bar', product_code: Product::SUPPORT.code),
|
48
|
+
Location.new(id: 13, name: 'system_top_bar',
|
49
|
+
product_code: Product::STANDALONE_CHAT.code, v2_only: false),
|
50
|
+
Location.new(id: 14, name: 'background',
|
51
|
+
product_code: Product::CHAT.code)
|
49
52
|
].freeze
|
50
53
|
end
|
51
54
|
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.
|
4
|
+
version: 4.7.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:
|
14
|
+
date: 2018-01-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: i18n
|