productive 0.6.63 → 0.6.65

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: b1415eaf4a49d7fcf48161ec813d139ca7a5c43a3ed487568aace1ac9f1ba371
4
+ data.tar.gz: 6d3e0fc4398345ce352bd0a8e852d82d6a76ff501ab7fcc25c3ba016d9dd0b29
5
5
  SHA512:
6
- metadata.gz: bef623294d725911aa4dd3c1c574f1b7dd1f6aa68caa4ea7034128f579ad465c0aa5b071fd47bc043df2b3affa528f58d297974b9b80d7e66028cb685bbd0586
7
- data.tar.gz: 711d3f7d6fb65faf4c7f1137bb399f66df5466375d390120329dae20931be472c5a5186c201335f1370eef8e57b82d2c2c8372b5f32eba5a957281e29108e432
6
+ metadata.gz: 8d414974561773d0def3ecc4b1144ccd3f825da9f67619d59dc291ad0fed89aae6750878e15a71a1722c0666f5b39f752bcd07ccbef4afa9d69fb4ed9a656c2b
7
+ data.tar.gz: d6eaf3034a87080707eb76855a3b21e2130199d70e20537b304442d757a9049a2481244985c68393fa28b1c25de702835f02f1bce19fecab482b3c615bf4f0b1
@@ -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
@@ -0,0 +1,4 @@
1
+ module Productive
2
+ class Template < BaseAccount
3
+ end
4
+ 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.65'.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'
@@ -88,6 +94,7 @@ require 'productive/resources/task'
88
94
  require 'productive/resources/task_dependency'
89
95
  require 'productive/resources/task_list'
90
96
  require 'productive/resources/team'
97
+ require 'productive/resources/template'
91
98
  require 'productive/resources/time_entry'
92
99
  require 'productive/resources/time_report'
93
100
  require 'productive/resources/todo'
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.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josip Bišćan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-24 00:00:00.000000000 Z
11
+ date: 2023-02-08 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
@@ -147,6 +153,7 @@ files:
147
153
  - lib/productive/resources/task_dependency.rb
148
154
  - lib/productive/resources/task_list.rb
149
155
  - lib/productive/resources/team.rb
156
+ - lib/productive/resources/template.rb
150
157
  - lib/productive/resources/time_entry.rb
151
158
  - lib/productive/resources/time_report.rb
152
159
  - lib/productive/resources/timer.rb
@@ -161,7 +168,7 @@ homepage: https://github.com/productiveio/api_client
161
168
  licenses:
162
169
  - MIT
163
170
  metadata: {}
164
- post_install_message:
171
+ post_install_message:
165
172
  rdoc_options: []
166
173
  require_paths:
167
174
  - lib
@@ -176,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
183
  - !ruby/object:Gem::Version
177
184
  version: '0'
178
185
  requirements: []
179
- rubygems_version: 3.3.7
180
- signing_key:
186
+ rubygems_version: 3.0.3.1
187
+ signing_key:
181
188
  specification_version: 4
182
189
  summary: A JSONAPI-based client to consume Productive API
183
190
  test_files: []