zaikio-mission_control 0.2.12 → 0.4.0

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: a7eb4a5c061ff33c7921513054217e3707279080b32e19f1503b0d837b112619
4
- data.tar.gz: 0ef123da30d916912d018fd682e782c84c950f29f378065adebe4e4e0d206c52
3
+ metadata.gz: 9ec4c85ff7c3aa05190a167ebc7ff944cd5866fcd596d973f620204a9dc587c8
4
+ data.tar.gz: b122daaaef138decc91215afcd7919a39ffb72aa8e8bb998e8c1d2beac086f12
5
5
  SHA512:
6
- metadata.gz: 87e0bf4d6c933bc7fdc24c40849f41534c707af4dbfa37c9d18becd1bdd5d39a36f53e51e0e125dcddbeb6a0cbe9a277e9349a0ea6539fdb09ee00a381d991eb
7
- data.tar.gz: 3f850ae85484d91f3741fd9b6ef48e68249633620d3df04b0ee378f3ef278a5c5c721c957f52bbef85a9f06e29567976c6d016d3960824f3e8d3fbdeb1b9b0c4
6
+ metadata.gz: 8ab1fcbb36d06feb296df7a3a0bfc853ed4bc340f397594c35bf4d8e33de8e75030c20316b99d880fdef1d1d1eb073cde04b74b944288c147d68674daa954da0
7
+ data.tar.gz: 6c93a4a3791fbfe1214027be00f5d0f9c60c5cf65752ef904327552cae76b883718f6196b23caa66fa9e04154de4a0a07119fad1f027c19100a192cf3faf672f
@@ -13,6 +13,8 @@ de:
13
13
  "zaikio/mission_control/jobs/cover_letter": "Anschreiben"
14
14
  "zaikio/mission_control/jobs/envelope": "Briefhülle"
15
15
  "zaikio/mission_control/jobs/flyer": "Flugblatt-Faltblatt"
16
+ "zaikio/mission_control/jobs/folder": "Mappe"
17
+ "zaikio/mission_control/jobs/folding_card": "Klappkarte"
16
18
  "zaikio/mission_control/jobs/hardcover_book": "Hardcover-Buch"
17
19
  "zaikio/mission_control/jobs/label": "Aufkleber"
18
20
  "zaikio/mission_control/jobs/leaflet": "Flugblatt"
@@ -41,6 +43,8 @@ de:
41
43
  "zaikio/mission_control/parts/endpaper": "Vor- und Nachsatz"
42
44
  "zaikio/mission_control/parts/envelope": "Briefhülle"
43
45
  "zaikio/mission_control/parts/flyer": "Flugblatt-Faltblatt"
46
+ "zaikio/mission_control/parts/folder": "Mappe"
47
+ "zaikio/mission_control/parts/folding_card": "Klappkarte"
44
48
  "zaikio/mission_control/parts/insert": "Believer"
45
49
  "zaikio/mission_control/parts/jacket": "Buchumschlag"
46
50
  "zaikio/mission_control/parts/label": "Aufkleber"
@@ -13,6 +13,8 @@ en:
13
13
  "zaikio/mission_control/jobs/cover_letter": "Cover Letter"
14
14
  "zaikio/mission_control/jobs/envelope": "Envelope"
15
15
  "zaikio/mission_control/jobs/flyer": "Flyer"
16
+ "zaikio/mission_control/jobs/folder": "Folder"
17
+ "zaikio/mission_control/jobs/folding_card": "Folding Card"
16
18
  "zaikio/mission_control/jobs/hardcover_book": "Hardcover Book"
17
19
  "zaikio/mission_control/jobs/label": "Label"
18
20
  "zaikio/mission_control/jobs/leaflet": "Leaflet"
@@ -40,6 +42,8 @@ en:
40
42
  "zaikio/mission_control/parts/endpaper": "Endpaper"
41
43
  "zaikio/mission_control/parts/envelope": "Envelope"
42
44
  "zaikio/mission_control/parts/flyer": "Flyer"
45
+ "zaikio/mission_control/parts/folder": "Folder"
46
+ "zaikio/mission_control/parts/folding_card": "Folding Card"
43
47
  "zaikio/mission_control/parts/insert": "Insert"
44
48
  "zaikio/mission_control/parts/jacket": "Jacket"
45
49
  "zaikio/mission_control/parts/label": "Label"
@@ -5,11 +5,11 @@ module Zaikio
5
5
  class Configuration < Zaikio::Client::Helpers::Configuration
6
6
  def self.hosts
7
7
  {
8
- development: "https://mc.zaikio.test/api/v1/",
9
- test: "https://mc.zaikio.test/api/v1/",
10
- staging: "https://mc.staging.zaikio.com/api/v1/",
11
- sandbox: "https://mc.sandbox.zaikio.com/api/v1/",
12
- production: "https://mc.zaikio.com/api/v1/"
8
+ development: "https://data.zaikio.test/api/v1/",
9
+ test: "https://data.sandbox.zaikio.com/api/v1/",
10
+ staging: "https://data.staging.zaikio.com/api/v1/",
11
+ sandbox: "https://data.sandbox.zaikio.com/api/v1/",
12
+ production: "https://data.zaikio.com/api/v1/"
13
13
  }.freeze
14
14
  end
15
15
  end
@@ -0,0 +1,14 @@
1
+ module Zaikio
2
+ module MissionControl
3
+ class IntermediateProduct < Base
4
+ attributes :created_at,
5
+ :updated_at,
6
+ :kind,
7
+ :expected_quantity,
8
+ :actual_quantity,
9
+ :expected_waste,
10
+ :actual_waste,
11
+ :suspicious_quantities
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ module Zaikio
2
+ module MissionControl
3
+ module Jobs
4
+ class Folder < Base
5
+ has_many_parts :folders, required: true
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Zaikio
2
+ module MissionControl
3
+ module Jobs
4
+ class FoldingCard < Base
5
+ has_many_parts :folding_cards, required: true
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ module Zaikio
2
+ module MissionControl
3
+ module Parts
4
+ class Folder < Base
5
+ end
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Zaikio
2
+ module MissionControl
3
+ module Parts
4
+ class FoldingCard < Base
5
+ end
6
+ end
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  module Zaikio
2
2
  module MissionControl
3
- VERSION = "0.2.12".freeze
3
+ VERSION = "0.4.0".freeze
4
4
  end
5
5
  end
@@ -0,0 +1,34 @@
1
+ module Zaikio
2
+ module MissionControl
3
+ class Workstep < Base
4
+ include_root_in_json :workstep
5
+
6
+ uri "worksteps(/:id)"
7
+
8
+ attributes :kind, :state, :progress, :expected_costs_for_work, :actual_costs_for_work,
9
+ :expected_costs_for_materials, :actual_costs_for_materials, :expected_total_costs,
10
+ :actual_total_costs, :expected_duration_for_preparation, :actual_duration_for_preparation,
11
+ :expected_duration_for_execution, :actual_duration_for_execution, :expected_duration_for_cleanup,
12
+ :actual_duration_for_cleanup, :actual_duration_for_exception, :expected_total_duration,
13
+ :actual_total_duration, :started_at, :completed_at, :canceled_at, :material_demands_ready_at,
14
+ :unfulfillable_material_demands_reported_at, :created_at, :updated_at, :network_role, :outsourced
15
+
16
+ # Associations
17
+ has_many :executions, class_name: "Zaikio::MissionControl::Execution", uri: "worksteps/:workstep_id/executions"
18
+
19
+ # TODO: change it to return a +Spyke+ +HasMany+ association
20
+ def created_intermediates
21
+ @created_intermediates ||= self["intermediates"]["created"].map do |slot|
22
+ Zaikio::MissionControl::IntermediateProduct.new(slot)
23
+ end
24
+ end
25
+
26
+ # TODO: change it to return a +Spyke+ +HasMany+ association
27
+ def consumed_intermediates
28
+ @consumed_intermediates ||= get(:workstep)["intermediates"]["consumed"].map do |slot|
29
+ Zaikio::MissionControl::IntermediateProduct.new(slot)
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -93,6 +93,8 @@ require "zaikio/mission_control/order_line_item"
93
93
  require "zaikio/mission_control/shipping_option"
94
94
  require "zaikio/mission_control/slot"
95
95
  require "zaikio/mission_control/production_frame"
96
+ require "zaikio/mission_control/workstep"
97
+ require "zaikio/mission_control/intermediate_product"
96
98
 
97
99
  module Zaikio
98
100
  module MissionControl
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaikio-mission_control
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaikio GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-19 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -132,6 +132,7 @@ files:
132
132
  - lib/zaikio/mission_control/finishings/spiral_binding.rb
133
133
  - lib/zaikio/mission_control/finishings/strip_binding.rb
134
134
  - lib/zaikio/mission_control/finishings/thread_sewing.rb
135
+ - lib/zaikio/mission_control/intermediate_product.rb
135
136
  - lib/zaikio/mission_control/job.rb
136
137
  - lib/zaikio/mission_control/jobs/base.rb
137
138
  - lib/zaikio/mission_control/jobs/booklet.rb
@@ -145,6 +146,8 @@ files:
145
146
  - lib/zaikio/mission_control/jobs/cover_letter.rb
146
147
  - lib/zaikio/mission_control/jobs/envelope.rb
147
148
  - lib/zaikio/mission_control/jobs/flyer.rb
149
+ - lib/zaikio/mission_control/jobs/folder.rb
150
+ - lib/zaikio/mission_control/jobs/folding_card.rb
148
151
  - lib/zaikio/mission_control/jobs/hardcover_book.rb
149
152
  - lib/zaikio/mission_control/jobs/label.rb
150
153
  - lib/zaikio/mission_control/jobs/leaflet.rb
@@ -176,6 +179,8 @@ files:
176
179
  - lib/zaikio/mission_control/parts/endpaper.rb
177
180
  - lib/zaikio/mission_control/parts/envelope.rb
178
181
  - lib/zaikio/mission_control/parts/flyer.rb
182
+ - lib/zaikio/mission_control/parts/folder.rb
183
+ - lib/zaikio/mission_control/parts/folding_card.rb
179
184
  - lib/zaikio/mission_control/parts/insert.rb
180
185
  - lib/zaikio/mission_control/parts/jacket.rb
181
186
  - lib/zaikio/mission_control/parts/label.rb
@@ -192,6 +197,7 @@ files:
192
197
  - lib/zaikio/mission_control/shipping_option.rb
193
198
  - lib/zaikio/mission_control/slot.rb
194
199
  - lib/zaikio/mission_control/version.rb
200
+ - lib/zaikio/mission_control/workstep.rb
195
201
  homepage: https://www.zaikio.com/
196
202
  licenses:
197
203
  - MIT