happyco 0.1.0 → 0.2.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
  SHA1:
3
- metadata.gz: acb5aeaf9100abcd732c5508ffba6b102cad59c7
4
- data.tar.gz: c5d84086ce6253ba07518afad886b005b0b68812
3
+ metadata.gz: 05a4c28c26f235b353431f2d4c3cd4d881719135
4
+ data.tar.gz: a95cf3ef9f5171652e9c46d1ddad33d941e41b7e
5
5
  SHA512:
6
- metadata.gz: 5842979e8c7b687b0b0a54c0e19c77b6cbfd2de7adb95e90bcf55095d1e35a7191e1d2dd0ef6d3a0607fd3fc453647564daeb069b645ff405c81b50cdc5bb244
7
- data.tar.gz: a0c2af1eb645903b4d33e9b3ade6e682f7db9b7e0c3e254251d6eb63a9a5872f36a011f0b9b10ca7190b8d2334639132c3a365a11d2caf93a0ab3bd19299475c
6
+ metadata.gz: a3c0b64dd49625ac065fd885278c85d7be5a2c008a767b4028bb798a69089da1e17c60bdaff633fe6791ca692042d70448442b2a01344790d6ba55895a091796
7
+ data.tar.gz: ff5fdcd45fb88208397408d0aebd02df37f0e533571df84c3f5ecf74eb41ec3a2ff0c790427f1b563eebc4d72046f5919fbabed1f5b0233d652fd7a638075211
@@ -8,7 +8,47 @@ require 'happyco/type/v1/date_pb'
8
8
  require 'happyco/type/v1/paging_pb'
9
9
  require 'happyco/type/v1/event_pb'
10
10
  require 'happyco/inspect/type/v1/inspect_type_pb'
11
+ require 'google/api/annotations_pb'
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_message "happyco.inspect.inspection.v1.CreateDelegatedInspectionLinksRequest" do
14
+ optional :account_id, :message, 1, "happyco.type.v1.IntegrationID"
15
+ repeated :requests, :message, 2, "happyco.inspect.inspection.v1.CreateDelegatedInspectionLinkRequest"
16
+ optional :send_email, :bool, 3
17
+ optional :email_subject_template, :string, 4
18
+ optional :email_template_html, :string, 5
19
+ optional :email_template_text, :string, 6
20
+ end
21
+ add_message "happyco.inspect.inspection.v1.CreateDelegatedInspectionLinkRequest" do
22
+ optional :email, :string, 1
23
+ optional :first_name, :string, 2
24
+ optional :last_name, :string, 3
25
+ optional :inspection_id, :message, 4, "happyco.type.v1.IntegrationID"
26
+ optional :expiry, :message, 5, "happyco.type.v1.DateTime"
27
+ end
28
+ add_message "happyco.inspect.inspection.v1.CreateDelegatedInspectionLinksResponse" do
29
+ repeated :responses, :message, 1, "happyco.inspect.inspection.v1.CreateDelegatedInspectionLinkResponse"
30
+ end
31
+ add_message "happyco.inspect.inspection.v1.CreateDelegatedInspectionLinkResponse" do
32
+ optional :link, :string, 1
33
+ optional :error, :string, 2
34
+ end
35
+ add_message "happyco.inspect.inspection.v1.AddInspectionPhotosRequest" do
36
+ optional :account_id, :message, 1, "happyco.type.v1.IntegrationID"
37
+ repeated :requests, :message, 2, "happyco.inspect.inspection.v1.AddInspectionPhotoRequest"
38
+ end
39
+ add_message "happyco.inspect.inspection.v1.AddInspectionPhotoRequest" do
40
+ optional :folder_id, :message, 1, "happyco.type.v1.IntegrationID"
41
+ optional :inspection_id, :message, 2, "happyco.type.v1.IntegrationID"
42
+ optional :file_name, :string, 3
43
+ optional :data, :bytes, 4
44
+ end
45
+ add_message "happyco.inspect.inspection.v1.AddInspectionPhotosResponse" do
46
+ repeated :responses, :message, 1, "happyco.inspect.inspection.v1.AddInspectionPhotoResponse"
47
+ end
48
+ add_message "happyco.inspect.inspection.v1.AddInspectionPhotoResponse" do
49
+ optional :photo_id, :message, 1, "happyco.type.v1.IntegrationID"
50
+ optional :error, :string, 2
51
+ end
12
52
  add_message "happyco.inspect.inspection.v1.Inspection" do
13
53
  optional :id, :message, 1, "happyco.type.v1.IntegrationID"
14
54
  optional :account_id, :message, 2, "happyco.type.v1.IntegrationID"
@@ -23,16 +63,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
23
63
  end
24
64
  end
25
65
  add_message "happyco.inspect.inspection.v1.ScheduledInspection" do
26
- optional :schedule_date, :message, 1, "happyco.type.v1.Date"
66
+ optional :schedule_date, :message, 1, "happyco.type.v1.DateTime"
27
67
  repeated :header_fields, :message, 2, "happyco.inspect.type.v1.HeaderField"
28
68
  repeated :footer_fields, :message, 3, "happyco.inspect.type.v1.FooterField"
29
69
  repeated :sections, :message, 4, "happyco.inspect.type.v1.Section"
30
70
  end
31
71
  add_message "happyco.inspect.inspection.v1.InspectionData" do
32
- optional :started_at, :message, 1, "happyco.type.v1.Date"
33
- optional :ended_at, :message, 2, "happyco.type.v1.Date"
34
- optional :user_started_at, :message, 3, "happyco.type.v1.Date"
35
- optional :user_ended_at, :message, 4, "happyco.type.v1.Date"
72
+ optional :started_at, :message, 1, "happyco.type.v1.DateTime"
73
+ optional :ended_at, :message, 2, "happyco.type.v1.DateTime"
74
+ optional :user_started_at, :message, 3, "happyco.type.v1.DateTime"
75
+ optional :user_ended_at, :message, 4, "happyco.type.v1.DateTime"
36
76
  repeated :header_fields, :message, 7, "happyco.inspect.type.v1.HeaderField"
37
77
  repeated :sections, :message, 6, "happyco.inspect.type.v1.Section"
38
78
  repeated :footer_fields, :message, 8, "happyco.inspect.type.v1.FooterField"
@@ -99,6 +139,14 @@ module Happyco
99
139
  module Inspect
100
140
  module Inspection
101
141
  module V1
142
+ CreateDelegatedInspectionLinksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.CreateDelegatedInspectionLinksRequest").msgclass
143
+ CreateDelegatedInspectionLinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.CreateDelegatedInspectionLinkRequest").msgclass
144
+ CreateDelegatedInspectionLinksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.CreateDelegatedInspectionLinksResponse").msgclass
145
+ CreateDelegatedInspectionLinkResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.CreateDelegatedInspectionLinkResponse").msgclass
146
+ AddInspectionPhotosRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.AddInspectionPhotosRequest").msgclass
147
+ AddInspectionPhotoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.AddInspectionPhotoRequest").msgclass
148
+ AddInspectionPhotosResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.AddInspectionPhotosResponse").msgclass
149
+ AddInspectionPhotoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.AddInspectionPhotoResponse").msgclass
102
150
  Inspection = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.Inspection").msgclass
103
151
  ScheduledInspection = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.ScheduledInspection").msgclass
104
152
  InspectionData = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.inspection.v1.InspectionData").msgclass
@@ -38,6 +38,12 @@ module Happyco
38
38
  # * Unarchive inspections should be used if previously archived
39
39
  # inspections need to be restored.
40
40
  rpc :UnarchiveInspections, SetInspectionsArchivedRequest, SetInspectionsArchivedResponse
41
+ # * Adds photos to inspections. The returned photo IDs must be inserted
42
+ # into the inspection for them to be displayed. This inspection does
43
+ # not occur in a transaction and you will receive a response for each
44
+ # photo.
45
+ rpc :AddInspectionPhotos, AddInspectionPhotosRequest, AddInspectionPhotosResponse
46
+ rpc :CreateDelegatedInspectionLinks, CreateDelegatedInspectionLinksRequest, CreateDelegatedInspectionLinksResponse
41
47
  end
42
48
 
43
49
  Stub = Service.rpc_stub_class
@@ -7,6 +7,7 @@ require 'happyco/type/v1/integration_id_pb'
7
7
  require 'happyco/type/v1/date_pb'
8
8
  require 'happyco/type/v1/paging_pb'
9
9
  require 'happyco/type/v1/event_pb'
10
+ require 'google/api/annotations_pb'
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  add_message "happyco.inspect.report.v1.Report" do
12
13
  optional :id, :message, 1, "happyco.type.v1.IntegrationID"
@@ -7,6 +7,7 @@ require 'happyco/type/v1/integration_id_pb'
7
7
  require 'happyco/type/v1/paging_pb'
8
8
  require 'happyco/type/v1/varia_pb'
9
9
  require 'happyco/inspect/type/v1/inspect_type_pb'
10
+ require 'google/api/annotations_pb'
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  add_message "happyco.inspect.template.v1.Template" do
12
13
  optional :id, :message, 1, "happyco.type.v1.IntegrationID"
@@ -4,6 +4,7 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'happyco/type/v1/varia_pb'
7
+ require 'happyco/type/v1/integration_id_pb'
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_message "happyco.inspect.type.v1.HeaderField" do
9
10
  optional :label, :string, 1
@@ -18,11 +19,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
19
  optional :name, :string, 1
19
20
  optional :notes, :string, 2
20
21
  optional :info, :string, 3
21
- repeated :photo_urls, :string, 4
22
+ repeated :photos, :message, 8, "happyco.inspect.type.v1.Photo"
22
23
  optional :rating_group_key, :string, 5
23
24
  map :values, :string, :message, 6, "happyco.inspect.type.v1.RatingValues"
24
25
  map :scores, :string, :message, 7, "happyco.type.v1.FloatArray"
25
26
  end
27
+ add_message "happyco.inspect.type.v1.Photo" do
28
+ optional :id, :message, 1, "happyco.type.v1.IntegrationID"
29
+ optional :url, :string, 2
30
+ end
26
31
  add_message "happyco.inspect.type.v1.FooterField" do
27
32
  optional :label, :string, 1
28
33
  optional :type, :string, 2
@@ -44,7 +49,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
44
49
  optional :label, :string, 1
45
50
  optional :value, :string, 2
46
51
  optional :score, :float, 3
47
- optional :color, :enum, 4, "happyco.inspect.type.v1.RatingColor"
52
+ optional :color, :string, 4
48
53
  optional :image, :enum, 5, "happyco.inspect.type.v1.RatingImage"
49
54
  end
50
55
  add_message "happyco.inspect.type.v1.RatingRadioGroup" do
@@ -54,7 +59,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
54
59
  add_message "happyco.inspect.type.v1.RatingRadioGroupOption" do
55
60
  optional :value, :string, 2
56
61
  optional :score, :float, 3
57
- optional :color, :enum, 4, "happyco.inspect.type.v1.RatingColor"
62
+ optional :color, :string, 4
58
63
  optional :image, :enum, 5, "happyco.inspect.type.v1.RatingImage"
59
64
  end
60
65
  add_message "happyco.inspect.type.v1.RatingDropDown" do
@@ -65,7 +70,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
65
70
  optional :label, :string, 1
66
71
  optional :value, :string, 2
67
72
  optional :score, :float, 3
68
- optional :color, :enum, 4, "happyco.inspect.type.v1.RatingColor"
73
+ optional :color, :string, 4
69
74
  optional :image, :enum, 5, "happyco.inspect.type.v1.RatingImage"
70
75
  end
71
76
  add_message "happyco.inspect.type.v1.RatingValues" do
@@ -74,17 +79,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
74
79
  optional :array, :message, 2, "happyco.type.v1.StringArray"
75
80
  end
76
81
  end
77
- add_enum "happyco.inspect.type.v1.RatingColor" do
78
- value :UNKNOWN, 0
79
- value :RED, 1
80
- value :ORANGE, 2
81
- value :YELLOW, 3
82
- value :GREEN, 4
83
- value :LIGHT_BLUE, 5
84
- value :DARK_BLUE, 6
85
- value :PURPLE, 7
86
- value :PINK, 8
87
- end
88
82
  add_enum "happyco.inspect.type.v1.RatingImage" do
89
83
  value :UNDEFINED, 0
90
84
  value :STAR_FULL, 1
@@ -214,6 +208,7 @@ module Happyco
214
208
  HeaderField = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.HeaderField").msgclass
215
209
  Section = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.Section").msgclass
216
210
  Item = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.Item").msgclass
211
+ Photo = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.Photo").msgclass
217
212
  FooterField = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.FooterField").msgclass
218
213
  RatingGroups = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.RatingGroups").msgclass
219
214
  RatingControl = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.RatingControl").msgclass
@@ -223,7 +218,6 @@ module Happyco
223
218
  RatingDropDown = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.RatingDropDown").msgclass
224
219
  RatingDropDownOption = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.RatingDropDownOption").msgclass
225
220
  RatingValues = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.RatingValues").msgclass
226
- RatingColor = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.RatingColor").enummodule
227
221
  RatingImage = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.inspect.type.v1.RatingImage").enummodule
228
222
  end
229
223
  end
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'happyco/type/v1/integration_id_pb'
7
7
  require 'happyco/type/v1/paging_pb'
8
+ require 'google/api/annotations_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_message "happyco.manage.account.v1.Account" do
10
11
  optional :id, :message, 1, "happyco.type.v1.IntegrationID"
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'happyco/manage/account/v1/account_pb'
7
7
  require 'happyco/type/v1/integration_id_pb'
8
+ require 'google/api/annotations_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_message "happyco.manage.account_provisioning.v1.CreateAccountsRequest" do
10
11
  repeated :account_with_admins, :message, 1, "happyco.manage.account_provisioning.v1.CreateAccountsRequest.AccountWithAdmin"
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'happyco/type/v1/integration_id_pb'
7
7
  require 'happyco/type/v1/paging_pb'
8
+ require 'google/api/annotations_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_message "happyco.manage.asset.v1.Asset" do
10
11
  optional :id, :message, 1, "happyco.type.v1.IntegrationID"
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'happyco/type/v1/integration_id_pb'
7
7
  require 'happyco/type/v1/paging_pb'
8
+ require 'google/api/annotations_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_message "happyco.manage.folder.v1.Folder" do
10
11
  optional :id, :message, 1, "happyco.type.v1.IntegrationID"
@@ -9,12 +9,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  optional :month, :int32, 2
10
10
  optional :day, :int32, 3
11
11
  end
12
+ add_message "happyco.type.v1.DateTime" do
13
+ optional :year, :int32, 1
14
+ optional :month, :int32, 2
15
+ optional :day, :int32, 3
16
+ optional :hour24, :int32, 4
17
+ optional :minute, :int32, 5
18
+ optional :second, :int32, 6
19
+ end
12
20
  end
13
21
 
14
22
  module Happyco
15
23
  module Type
16
24
  module V1
17
25
  Date = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.type.v1.Date").msgclass
26
+ DateTime = Google::Protobuf::DescriptorPool.generated_pool.lookup("happyco.type.v1.DateTime").msgclass
18
27
  end
19
28
  end
20
29
  end
data/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Happyco
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happyco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - HappyCo Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc