zendesk_apps_support 4.47.0 → 4.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9847d662584c7c6e24d429e5e9e24f923eb736370da526d1836353b6a053858f
|
|
4
|
+
data.tar.gz: b7a1b12002895720567370b5faf1b3ba39988733105a97ae478a7e0b05f29a63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d38f0dc8642c9648c208630ac40b4fa7241da7bc6c21affd6fdbd0b493a21b970f8a3fee8e3cca9de21041f6f5bed0365732bc706cff5fbb2976a7a3d7ecff95
|
|
7
|
+
data.tar.gz: 8f91250bc04ca3e190c298135f4e403e2493d703381258db3ff98f645a24d400068da3f8a8eb08f92c17ced77c916f5c8bc8f01654c3894fcba0e334a13270f5
|
|
@@ -35,7 +35,6 @@ module ZendeskAppsSupport
|
|
|
35
35
|
marketplace = options.fetch(:marketplace, true)
|
|
36
36
|
skip_marketplace_translations = options.fetch(:skip_marketplace_translations, false)
|
|
37
37
|
error_on_password_parameter = options.fetch(:error_on_password_parameter, false)
|
|
38
|
-
validate_custom_objects_v2 = options.fetch(:validate_custom_objects_v2, false)
|
|
39
38
|
|
|
40
39
|
errors = []
|
|
41
40
|
errors << Validations::Manifest.call(self, error_on_password_parameter: error_on_password_parameter)
|
|
@@ -44,7 +43,7 @@ module ZendeskAppsSupport
|
|
|
44
43
|
errors << Validations::Marketplace.call(self) if marketplace
|
|
45
44
|
errors << Validations::Source.call(self)
|
|
46
45
|
errors << Validations::Translations.call(self, skip_marketplace_translations: skip_marketplace_translations)
|
|
47
|
-
errors << Validations::Requirements.call(self
|
|
46
|
+
errors << Validations::Requirements.call(self)
|
|
48
47
|
|
|
49
48
|
# only adds warnings
|
|
50
49
|
Validations::SecureSettings.call(self)
|
|
@@ -5,8 +5,8 @@ module ZendeskAppsSupport
|
|
|
5
5
|
module CustomObjectsV2
|
|
6
6
|
module Constants
|
|
7
7
|
MAX_OBJECTS = 50
|
|
8
|
-
MAX_FIELDS_PER_OBJECT =
|
|
9
|
-
MAX_TRIGGERS_PER_OBJECT =
|
|
8
|
+
MAX_FIELDS_PER_OBJECT = 20
|
|
9
|
+
MAX_TRIGGERS_PER_OBJECT = 10
|
|
10
10
|
MAX_CONDITIONS_PER_TRIGGER = 50
|
|
11
11
|
MAX_ACTIONS_PER_TRIGGER = 25
|
|
12
12
|
MAX_CONDITIONS_IN_RELATIONSHIP_FILTER_PER_OBJECT = 20
|
|
@@ -7,7 +7,7 @@ module ZendeskAppsSupport
|
|
|
7
7
|
MAX_CUSTOM_OBJECTS_REQUIREMENTS = 50
|
|
8
8
|
|
|
9
9
|
class << self
|
|
10
|
-
def call(package
|
|
10
|
+
def call(package)
|
|
11
11
|
if package.manifest.requirements_only? && !package.has_requirements?
|
|
12
12
|
return [ValidationError.new(:missing_requirements)]
|
|
13
13
|
elsif !supports_requirements(package) && package.has_requirements?
|
|
@@ -31,7 +31,7 @@ module ZendeskAppsSupport
|
|
|
31
31
|
errors << invalid_custom_objects(requirements)
|
|
32
32
|
errors << invalid_webhooks(requirements)
|
|
33
33
|
errors << invalid_target_types(requirements)
|
|
34
|
-
errors << validate_custom_objects_v2_requirements(requirements
|
|
34
|
+
errors << validate_custom_objects_v2_requirements(requirements)
|
|
35
35
|
errors << missing_required_fields(requirements)
|
|
36
36
|
errors.flatten!
|
|
37
37
|
errors.compact!
|
|
@@ -80,8 +80,8 @@ module ZendeskAppsSupport
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
def validate_custom_objects_v2_requirements(requirements
|
|
84
|
-
return unless
|
|
83
|
+
def validate_custom_objects_v2_requirements(requirements)
|
|
84
|
+
return unless requirements.key?(AppRequirement::CUSTOM_OBJECTS_V2_KEY)
|
|
85
85
|
|
|
86
86
|
cov2_requirements = requirements[AppRequirement::CUSTOM_OBJECTS_V2_KEY]
|
|
87
87
|
CustomObjectsV2.call(cov2_requirements)
|
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.49.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: 2026-
|
|
14
|
+
date: 2026-04-21 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: i18n
|