api_models 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api_models/version.rb +1 -1
- data/lib/models/agent.rb +1 -1
- data/lib/models/app.rb +1 -1
- data/lib/models/app_active_build.rb +1 -1
- data/lib/models/app_policy.rb +1 -1
- data/lib/models/app_shield_policy.rb +20 -20
- data/lib/models/authorized_user_policy.rb +1 -1
- data/lib/models/concerns/app47_app_analyzable.rb +6 -6
- data/lib/models/concerns/app47_app_buildable.rb +2 -2
- data/lib/models/concerns/app47_app_configurable.rb +1 -1
- data/lib/models/concerns/app47_email_sendable.rb +1 -1
- data/lib/models/configuration_group.rb +1 -1
- data/lib/models/configuration_rule.rb +1 -1
- data/lib/models/external_app.rb +1 -1
- data/lib/models/product_app.rb +3 -3
- data/lib/models/sso_directory_group.rb +2 -2
- data/lib/models/sso_directory_server.rb +2 -2
- data/lib/models/sso_server.rb +2 -2
- data/lib/models/time_bomb_policy.rb +3 -3
- data/lib/models/user.rb +2 -2
- data/lib/models/user_app_permission.rb +1 -1
- data/lib/models/web_app.rb +1 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d15654bae2fdd8b1d84425ceaabd11cc0a548be34c79136775480d73c83b0359
|
4
|
+
data.tar.gz: 19ecccad09c67196d4da2554bacf3f9978fe446a6a27a0c43f502ecaf0ebdf89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1f7142c73a205258042d362a331137363b201ab6b11a2b83255948620b8707767e581a2256364848dd7b86addeb66b5e937e0f43d322d02f0d4b8faae2a6480
|
7
|
+
data.tar.gz: 75f78e47b17485e02fe992488763ff5aa149343a61ec7508998d01a764f1556f0a512891763b24560f1e639d98d22fe09dcaed1ff88f8fdf5347d12ac15b4851
|
data/lib/api_models/version.rb
CHANGED
data/lib/models/agent.rb
CHANGED
@@ -15,7 +15,7 @@ class Agent
|
|
15
15
|
field :app_version, type: String
|
16
16
|
field :app_version_code, type: String
|
17
17
|
field :app_environment, type: String, default: 'production'
|
18
|
-
field :net_new_counted, type: Boolean, default: false
|
18
|
+
field :net_new_counted, type: Mongoid::Boolean, default: false
|
19
19
|
# field :installed_version, type: String
|
20
20
|
#
|
21
21
|
# Relationships
|
data/lib/models/app.rb
CHANGED
data/lib/models/app_policy.rb
CHANGED
@@ -7,27 +7,27 @@ class AppShieldPolicy < AppPolicy
|
|
7
7
|
#
|
8
8
|
# iOS fields
|
9
9
|
#
|
10
|
-
field :ios_debug, type: Boolean, default: false
|
11
|
-
field :ios_jail_break, type: Boolean, default: false
|
12
|
-
field :ios_hooking_frameworks, type: Boolean, default: false
|
13
|
-
field :ios_repackaging, type: Boolean, default: false
|
14
|
-
field :ios_user_screenshot, type: Boolean, default: false
|
15
|
-
field :ios_system_screenshot, type: Boolean, default: false
|
16
|
-
field :ios_run_time_library, type: Boolean, default: false
|
17
|
-
field :ios_library_injection, type: Boolean, default: false
|
18
|
-
field :ios_keyboard_cache_monitor, type: Boolean, default: false
|
19
|
-
field :ios_block_external_screens, type: Boolean, default: false
|
10
|
+
field :ios_debug, type: Mongoid::Boolean, default: false
|
11
|
+
field :ios_jail_break, type: Mongoid::Boolean, default: false
|
12
|
+
field :ios_hooking_frameworks, type: Mongoid::Boolean, default: false
|
13
|
+
field :ios_repackaging, type: Mongoid::Boolean, default: false
|
14
|
+
field :ios_user_screenshot, type: Mongoid::Boolean, default: false
|
15
|
+
field :ios_system_screenshot, type: Mongoid::Boolean, default: false
|
16
|
+
field :ios_run_time_library, type: Mongoid::Boolean, default: false
|
17
|
+
field :ios_library_injection, type: Mongoid::Boolean, default: false
|
18
|
+
field :ios_keyboard_cache_monitor, type: Mongoid::Boolean, default: false
|
19
|
+
field :ios_block_external_screens, type: Mongoid::Boolean, default: false
|
20
20
|
# Android fields
|
21
|
-
field :android_debug, type: Boolean, default: false
|
22
|
-
field :android_jail_break, type: Boolean, default: false
|
23
|
-
field :android_hooking_frameworks, type: Boolean, default: false
|
24
|
-
field :android_repackaging, type: Boolean, default: false
|
25
|
-
field :android_user_screenshot, type: Boolean, default: false
|
26
|
-
field :android_system_screenshot, type: Boolean, default: false
|
27
|
-
field :android_run_time_library, type: Boolean, default: false
|
28
|
-
field :android_library_injection, type: Boolean, default: false
|
29
|
-
field :android_keyboard_cache_monitor, type: Boolean, default: false
|
30
|
-
field :android_block_external_screens, type: Boolean, default: false
|
21
|
+
field :android_debug, type: Mongoid::Boolean, default: false
|
22
|
+
field :android_jail_break, type: Mongoid::Boolean, default: false
|
23
|
+
field :android_hooking_frameworks, type: Mongoid::Boolean, default: false
|
24
|
+
field :android_repackaging, type: Mongoid::Boolean, default: false
|
25
|
+
field :android_user_screenshot, type: Mongoid::Boolean, default: false
|
26
|
+
field :android_system_screenshot, type: Mongoid::Boolean, default: false
|
27
|
+
field :android_run_time_library, type: Mongoid::Boolean, default: false
|
28
|
+
field :android_library_injection, type: Mongoid::Boolean, default: false
|
29
|
+
field :android_keyboard_cache_monitor, type: Mongoid::Boolean, default: false
|
30
|
+
field :android_block_external_screens, type: Mongoid::Boolean, default: false
|
31
31
|
|
32
32
|
def enforce_policy(_agent)
|
33
33
|
{}
|
@@ -16,14 +16,14 @@ module App47AppAnalyzable
|
|
16
16
|
# Fields
|
17
17
|
#
|
18
18
|
field :usage_ranking, type: Integer, default: 0
|
19
|
-
field :analyzable, type: Boolean, default: true
|
19
|
+
field :analyzable, type: Mongoid::Boolean, default: true
|
20
20
|
field :agent_count, type: Integer, default: 0
|
21
21
|
field :agent_log_level, type: String, default: 'Info'
|
22
|
-
field :agent_capture_timed_events, type: Boolean, default: true
|
23
|
-
field :agent_capture_generic_events, type: Boolean, default: true
|
24
|
-
field :agent_capture_sessions, type: Boolean, default: true
|
25
|
-
field :agent_enabled, type: Boolean, default: true
|
26
|
-
field :agent_upload_on_exit, type: Boolean, default: true
|
22
|
+
field :agent_capture_timed_events, type: Mongoid::Boolean, default: true
|
23
|
+
field :agent_capture_generic_events, type: Mongoid::Boolean, default: true
|
24
|
+
field :agent_capture_sessions, type: Mongoid::Boolean, default: true
|
25
|
+
field :agent_enabled, type: Mongoid::Boolean, default: true
|
26
|
+
field :agent_upload_on_exit, type: Mongoid::Boolean, default: true
|
27
27
|
field :agent_capture_crash_format, type: String, default: 'none'
|
28
28
|
field :agent_delay_data_upload_interval, type: Integer, default: 1
|
29
29
|
field :agent_configuration_update_frequency, type: Float, default: 1
|
@@ -16,9 +16,9 @@ module App47AppBuildable
|
|
16
16
|
#
|
17
17
|
# Fields
|
18
18
|
#
|
19
|
-
field :notify_users_on_build_activation, type: Boolean, default: true
|
19
|
+
field :notify_users_on_build_activation, type: Mongoid::Boolean, default: true
|
20
20
|
field :max_builds, type: Integer, default: 10
|
21
|
-
field :buildable, type: Boolean, default: true
|
21
|
+
field :buildable, type: Mongoid::Boolean, default: true
|
22
22
|
field :ios_tracked_version, type: String, default: TRACKED_VERSION
|
23
23
|
field :android_tracked_version, type: String, default: TRACKED_VERSION
|
24
24
|
#
|
@@ -12,7 +12,7 @@ module App47EmailSendable
|
|
12
12
|
field :email_bounce_date, type: Time
|
13
13
|
field :email_bounce_reason, type: String
|
14
14
|
field :unconfirmed_email, type: String
|
15
|
-
field :email_enabled, type: Boolean, default: true
|
15
|
+
field :email_enabled, type: Mongoid::Boolean, default: true
|
16
16
|
|
17
17
|
before_validation :downcase_email
|
18
18
|
end
|
@@ -9,7 +9,7 @@ class ConfigurationRule
|
|
9
9
|
#
|
10
10
|
# Fields
|
11
11
|
#
|
12
|
-
field :active, type: Boolean, default: false
|
12
|
+
field :active, type: Mongoid::Boolean, default: false
|
13
13
|
field :option, type: String
|
14
14
|
field :operator, type: String
|
15
15
|
field :platform, type: Array, default: %w[android ios]
|
data/lib/models/external_app.rb
CHANGED
@@ -11,5 +11,5 @@ class ExternalApp < App
|
|
11
11
|
field :windows_external_id, type: String
|
12
12
|
field :additional_note, type: String
|
13
13
|
field :windows_external_url, type: String
|
14
|
-
field :external_auto_update, type: Boolean, default: true
|
14
|
+
field :external_auto_update, type: Mongoid::Boolean, default: true
|
15
15
|
end
|
data/lib/models/product_app.rb
CHANGED
@@ -16,7 +16,7 @@ class ProductApp < App
|
|
16
16
|
#
|
17
17
|
# Fields
|
18
18
|
#
|
19
|
-
field :restart_required, type: Boolean, default: false
|
20
|
-
field :accept_permissions, type: Boolean, default: false
|
21
|
-
field :return_to_update, type: Boolean, default: false
|
19
|
+
field :restart_required, type: Mongoid::Boolean, default: false
|
20
|
+
field :accept_permissions, type: Mongoid::Boolean, default: false
|
21
|
+
field :return_to_update, type: Mongoid::Boolean, default: false
|
22
22
|
end
|
@@ -8,6 +8,6 @@ class SsoDirectoryGroup < Group
|
|
8
8
|
# Fields
|
9
9
|
#
|
10
10
|
field :dn, type: String
|
11
|
-
field :synchronize, type: Boolean, default: false
|
12
|
-
field :auto_approve_devices, type: Boolean, default: true
|
11
|
+
field :synchronize, type: Mongoid::Boolean, default: false
|
12
|
+
field :auto_approve_devices, type: Mongoid::Boolean, default: true
|
13
13
|
end
|
@@ -5,8 +5,8 @@
|
|
5
5
|
#
|
6
6
|
class SsoDirectoryServer < SsoServer
|
7
7
|
# fields
|
8
|
-
field :ssl, type: Boolean, default: false
|
9
|
-
field :currently_syncing, type: Boolean, default: false
|
8
|
+
field :ssl, type: Mongoid::Boolean, default: false
|
9
|
+
field :currently_syncing, type: Mongoid::Boolean, default: false
|
10
10
|
field :server_name, type: String
|
11
11
|
field :port, type: String, default: '389'
|
12
12
|
field :username, type: String
|
data/lib/models/sso_server.rb
CHANGED
@@ -10,8 +10,8 @@ class SsoServer
|
|
10
10
|
#
|
11
11
|
# fields
|
12
12
|
#
|
13
|
-
field :active, type: Boolean, default: false
|
14
|
-
field :external_authentication, type: Boolean, default: false
|
13
|
+
field :active, type: Mongoid::Boolean, default: false
|
14
|
+
field :external_authentication, type: Mongoid::Boolean, default: false
|
15
15
|
field :name, type: String
|
16
16
|
field :default_user_invitation_message, type: String
|
17
17
|
#
|
@@ -38,9 +38,9 @@ class TimeBombPolicy < AppPolicy
|
|
38
38
|
field :time_window_time_zone, type: String, default: 'local'
|
39
39
|
field :days, type: String, default: 'MTWHFSU'
|
40
40
|
field :time_window_message, type: String, default: 'The application is trying to run outside of the allowed time'
|
41
|
-
field :time_window_active, type: Boolean, default: false
|
42
|
-
field :expiration_active, type: Boolean, default: false
|
43
|
-
field :check_in_active, type: Boolean, default: false
|
41
|
+
field :time_window_active, type: Mongoid::Boolean, default: false
|
42
|
+
field :expiration_active, type: Mongoid::Boolean, default: false
|
43
|
+
field :check_in_active, type: Mongoid::Boolean, default: false
|
44
44
|
|
45
45
|
#
|
46
46
|
# return the policy hash for this agent
|
data/lib/models/user.rb
CHANGED
@@ -13,9 +13,9 @@ class User
|
|
13
13
|
# Fields
|
14
14
|
#
|
15
15
|
field :name, type: String
|
16
|
-
field :active, type: Boolean, default: true
|
16
|
+
field :active, type: Mongoid::Boolean, default: true
|
17
17
|
field :pin_code, type: String
|
18
|
-
field :pin_code_locked, type: Boolean, default: false
|
18
|
+
field :pin_code_locked, type: Mongoid::Boolean, default: false
|
19
19
|
#
|
20
20
|
# Relationships
|
21
21
|
#
|
@@ -8,7 +8,7 @@ class UserAppPermission
|
|
8
8
|
include Mongoid::Timestamps
|
9
9
|
|
10
10
|
# Fast access to determine if this is added by belonging to a group.
|
11
|
-
field :group_app, default: false, type: Boolean
|
11
|
+
field :group_app, default: false, type: Mongoid::Boolean
|
12
12
|
|
13
13
|
belongs_to :group, inverse_of: :user_app_permissions, optional: true
|
14
14
|
belongs_to :app, inverse_of: :user_app_permissions
|
data/lib/models/web_app.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schroeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -234,6 +234,20 @@ dependencies:
|
|
234
234
|
version: '0'
|
235
235
|
- !ruby/object:Gem::Dependency
|
236
236
|
name: shoulda
|
237
|
+
requirement: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - "~>"
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '4.0'
|
242
|
+
type: :development
|
243
|
+
prerelease: false
|
244
|
+
version_requirements: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - "~>"
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: '4.0'
|
249
|
+
- !ruby/object:Gem::Dependency
|
250
|
+
name: shoulda-matchers
|
237
251
|
requirement: !ruby/object:Gem::Requirement
|
238
252
|
requirements:
|
239
253
|
- - ">="
|
@@ -247,7 +261,21 @@ dependencies:
|
|
247
261
|
- !ruby/object:Gem::Version
|
248
262
|
version: '0'
|
249
263
|
- !ruby/object:Gem::Dependency
|
250
|
-
name: shoulda-
|
264
|
+
name: shoulda-context
|
265
|
+
requirement: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - ">="
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
270
|
+
type: :development
|
271
|
+
prerelease: false
|
272
|
+
version_requirements: !ruby/object:Gem::Requirement
|
273
|
+
requirements:
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: '0'
|
277
|
+
- !ruby/object:Gem::Dependency
|
278
|
+
name: shoulda-activemodel
|
251
279
|
requirement: !ruby/object:Gem::Requirement
|
252
280
|
requirements:
|
253
281
|
- - ">="
|
@@ -401,7 +429,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
401
429
|
- !ruby/object:Gem::Version
|
402
430
|
version: '0'
|
403
431
|
requirements: []
|
404
|
-
rubygems_version: 3.
|
432
|
+
rubygems_version: 3.1.2
|
405
433
|
signing_key:
|
406
434
|
specification_version: 4
|
407
435
|
summary: App47 API Model Library.
|