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: 5fe5a39adf599efda50c338932071c3bbdc8bcd4417befecf63608013020fa67
4
- data.tar.gz: 682b86fdd57a57f52f21b6da8466e2f17e0b9274d9908f3ba7e5b3bf638329a9
3
+ metadata.gz: 9847d662584c7c6e24d429e5e9e24f923eb736370da526d1836353b6a053858f
4
+ data.tar.gz: b7a1b12002895720567370b5faf1b3ba39988733105a97ae478a7e0b05f29a63
5
5
  SHA512:
6
- metadata.gz: 8ee5307d3c799c13ce59ab81869d6f4ad2965c7931fe213d5043089d1484d235613a7b54d74d3e7a4b42b06a98111ef57bb572f8b0389a27345d52ffcecc7465
7
- data.tar.gz: 84487b11ba75fe8ddc69526e1075399c954e18fc3d8dbb2aa6fa8785fd70b1768f59a6899df199f673cbfc90b64e9789d65241157f190ead31f9d2bf1dcfa13f
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, validate_custom_objects_v2:)
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 = 10
9
- MAX_TRIGGERS_PER_OBJECT = 20
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, validate_custom_objects_v2: false)
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, validate_custom_objects_v2:)
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, validate_custom_objects_v2: false)
84
- return unless validate_custom_objects_v2 && requirements.key?(AppRequirement::CUSTOM_OBJECTS_V2_KEY)
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)
@@ -1,3 +1,3 @@
1
1
  module ZendeskAppsSupport
2
- VERSION = '4.47.0'
2
+ VERSION = '4.49.0'
3
3
  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.47.0
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-02-17 00:00:00.000000000 Z
14
+ date: 2026-04-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n