productive 0.6.63 → 0.6.64

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
2
  SHA256:
3
- metadata.gz: 1ac8061f2aa70de3c7b88a356617295333a825380a1a1f7e45bdcf7f9ad637be
4
- data.tar.gz: b4148dfd4f33c91b123bd1624fe4baf934dea4cbda33704253b57e8fc37a7f41
3
+ metadata.gz: a8fde6a3ff65fb5aa99e87ac2160d03904a1822abf74da0ab775d8552f03d4a2
4
+ data.tar.gz: e9a32965b81b7b09ee2bdc348261e155be2cf47bb0229eb94fcbf4519c0290ca
5
5
  SHA512:
6
- metadata.gz: bef623294d725911aa4dd3c1c574f1b7dd1f6aa68caa4ea7034128f579ad465c0aa5b071fd47bc043df2b3affa528f58d297974b9b80d7e66028cb685bbd0586
7
- data.tar.gz: 711d3f7d6fb65faf4c7f1137bb399f66df5466375d390120329dae20931be472c5a5186c201335f1370eef8e57b82d2c2c8372b5f32eba5a957281e29108e432
6
+ metadata.gz: 16bc7ceef3ebbf23ffe42e89a2af5138953f22e0736b0544128209bd9e234a8be3432dce9d0ef50e2940e1f4125abf8fd2f748c863372b7490a99e5340fe0905
7
+ data.tar.gz: 74b4cdfc879b1c0561d33ec394b8b337e14d19b21ebb3bc9b62ccc59cb394d802d433646cffb49335dd8625486fa355f0bff8a589a08c88f8aa10054f87da5a7
@@ -0,0 +1,7 @@
1
+ module Productive
2
+ class Allocation < BaseAccount
3
+ has_one :person
4
+ has_one :client
5
+ has_one :responsible, class_name: :person
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Productive
2
+ class Automation < BaseAccount
3
+ has_one :project
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ module Productive
2
+ class AutomationRun < BaseAccount
3
+ has_one :creator, class_name: :person
4
+ has_one :automation_version
5
+ end
6
+ end
@@ -0,0 +1,7 @@
1
+ module Productive
2
+ class AutomationVersion < BaseAccount
3
+ has_one :automation
4
+
5
+ has_many :automation_runs
6
+ end
7
+ end
@@ -2,5 +2,9 @@ module Productive
2
2
  class Deal < BaseAccount
3
3
  has_one :deal_status
4
4
  has_one :lost_reason
5
+
6
+ custom_endpoint :open, on: :member, request_method: :put
7
+ custom_endpoint :close, on: :member, request_method: :put
8
+ custom_endpoint :convert_to_budget, on: :member, request_method: :put
5
9
  end
6
10
  end
@@ -0,0 +1,5 @@
1
+ module Productive
2
+ class DeletedItem < BaseAccount
3
+ has_one :deleter, class_name: :person
4
+ end
5
+ end
@@ -1,4 +1,5 @@
1
1
  module Productive
2
2
  class DocumentStyle < BaseAccount
3
+ has_many :attachments
3
4
  end
4
5
  end
@@ -1,4 +1,6 @@
1
1
  module Productive
2
2
  class Holiday < BaseAccount
3
+ has_one :subsidiary
4
+ has_one :holiday_calendar
3
5
  end
4
6
  end
@@ -1,4 +1,6 @@
1
1
  module Productive
2
2
  class Overhead < BaseAccount
3
+ has_one :updater, class_name: :person
4
+ has_one :subsidiary
3
5
  end
4
6
  end
@@ -0,0 +1,10 @@
1
+ module Productive
2
+ class ProjectPreference < BaseAccount
3
+ has_one :person
4
+ has_one :project
5
+ has_one :favorite_filter, class_name: :filter
6
+ has_one :budgets_favorite_filter, class_name: :filter
7
+ has_one :invoices_favorite_filter, class_name: :filter
8
+ has_one :docs_favorite_filter, class_name: :filter
9
+ end
10
+ end
@@ -1,5 +1,6 @@
1
1
  module Productive
2
2
  class Widget < BaseAccount
3
3
  has_one :dashboard
4
+ has_one :filter
4
5
  end
5
6
  end
@@ -1,3 +1,3 @@
1
1
  module Productive
2
- VERSION = '0.6.63'.freeze
2
+ VERSION = '0.6.64'.freeze
3
3
  end
data/lib/productive.rb CHANGED
@@ -6,9 +6,13 @@ require 'productive/configuration'
6
6
  require 'productive/resources/base'
7
7
  require 'productive/resources/base_account'
8
8
  require 'productive/resources/activity'
9
+ require 'productive/resources/allocation'
9
10
  require 'productive/resources/attachment'
10
11
  require 'productive/resources/approval_status'
11
12
  require 'productive/resources/approval_workflow'
13
+ require 'productive/resources/automation'
14
+ require 'productive/resources/automation_run'
15
+ require 'productive/resources/automation_version'
12
16
  require 'productive/resources/billability_report'
13
17
  require 'productive/resources/board'
14
18
  require 'productive/resources/booking'
@@ -22,6 +26,7 @@ require 'productive/resources/custom_field_option'
22
26
  require 'productive/resources/dashboard'
23
27
  require 'productive/resources/deal'
24
28
  require 'productive/resources/deal_status'
29
+ require 'productive/resources/deleted_item'
25
30
  require 'productive/resources/document_style'
26
31
  require 'productive/resources/document_type'
27
32
  require 'productive/resources/email'
@@ -50,6 +55,7 @@ require 'productive/resources/pipeline'
50
55
  require 'productive/resources/price'
51
56
  require 'productive/resources/project'
52
57
  require 'productive/resources/project_assignment'
58
+ require 'productive/resources/project_preference'
53
59
  require 'productive/resources/pulse'
54
60
  require 'productive/resources/rate_card'
55
61
  require 'productive/resources/report_category'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: productive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.63
4
+ version: 0.6.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josip Bišćan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-24 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_api_client
@@ -62,9 +62,13 @@ files:
62
62
  - lib/productive/configuration.rb
63
63
  - lib/productive/railtie.rb
64
64
  - lib/productive/resources/activity.rb
65
+ - lib/productive/resources/allocation.rb
65
66
  - lib/productive/resources/approval_status.rb
66
67
  - lib/productive/resources/approval_workflow.rb
67
68
  - lib/productive/resources/attachment.rb
69
+ - lib/productive/resources/automation.rb
70
+ - lib/productive/resources/automation_run.rb
71
+ - lib/productive/resources/automation_version.rb
68
72
  - lib/productive/resources/base.rb
69
73
  - lib/productive/resources/base_account.rb
70
74
  - lib/productive/resources/billability_report.rb
@@ -80,6 +84,7 @@ files:
80
84
  - lib/productive/resources/dashboard.rb
81
85
  - lib/productive/resources/deal.rb
82
86
  - lib/productive/resources/deal_status.rb
87
+ - lib/productive/resources/deleted_item.rb
83
88
  - lib/productive/resources/discussion.rb
84
89
  - lib/productive/resources/document_style.rb
85
90
  - lib/productive/resources/document_type.rb
@@ -109,6 +114,7 @@ files:
109
114
  - lib/productive/resources/price.rb
110
115
  - lib/productive/resources/project.rb
111
116
  - lib/productive/resources/project_assignment.rb
117
+ - lib/productive/resources/project_preference.rb
112
118
  - lib/productive/resources/pulse.rb
113
119
  - lib/productive/resources/rate_card.rb
114
120
  - lib/productive/resources/report_category.rb