workstream_protocol 0.2.0 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +2 -2
- data/lib/workstream_protocol.rb +7 -1
- data/lib/workstream_protocol/Common/Date_pb.rb +22 -0
- data/lib/workstream_protocol/Onboarding_pb.rb +62 -59
- data/lib/workstream_protocol/utils/date.rb +12 -0
- data/lib/workstream_protocol/utils/timestamp.rb +10 -0
- data/lib/workstream_protocol/version.rb +1 -1
- data/workstream_protocol.gemspec +7 -7
- metadata +6 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8ffaa0ed31f777f2e0715eebdbfcf61364382eab00432df2b691adec99bc57b
|
4
|
+
data.tar.gz: a5fe9fcf1a33c89d512db618fab16f6b1f9c491eb83306a8dab7a295ee452dab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ecf35cb2a39760accdddc4263f67f4981a38833f2b26a4e4674a3dec0a9679d476baf50901067bfa7d9f139beec8fd5bfc0a8f85dfc4a5ff1fed91e995e69e
|
7
|
+
data.tar.gz: 5258e3d036fe64015e06de5bb0ba6515d3b140143555e8a481947e6dc6db2af027151e0a6b0a1c869d5ed2861b40867b6e26151938255eaa581569918951002c
|
data/bin/console
CHANGED
data/lib/workstream_protocol.rb
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
protocols = File.expand_path("../workstream_protocol", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(protocols) unless $LOAD_PATH.include?(protocols)
|
3
|
+
|
4
|
+
require 'Onboarding_pb'
|
5
|
+
require 'utils/timestamp'
|
6
|
+
require 'utils/date'
|
7
|
+
|
2
8
|
|
3
9
|
module WorkstreamProtocol
|
4
10
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: Common/Date.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("Common/Date.proto", :syntax => :proto3) do
|
8
|
+
add_message "Workstream.Protocol.Common.Date" do
|
9
|
+
optional :year, :int32, 1
|
10
|
+
optional :month, :int32, 2
|
11
|
+
optional :day, :int32, 3
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Workstream
|
17
|
+
module Protocol
|
18
|
+
module Common
|
19
|
+
Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Common.Date").msgclass
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -6,43 +6,54 @@ require 'google/protobuf'
|
|
6
6
|
require 'Common/Phone_pb'
|
7
7
|
require 'Common/Address_pb'
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'Common/Date_pb'
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("Onboarding.proto", :syntax => :proto3) do
|
11
|
-
add_message "Workstream.Protocol.Onboarding.
|
12
|
-
optional :
|
13
|
-
optional :id, :int64, 2
|
12
|
+
add_message "Workstream.Protocol.Onboarding.EmployeeOnboardingEvent" do
|
13
|
+
optional :id, :string, 1
|
14
14
|
optional :created_at, :message, 3, "google.protobuf.Timestamp"
|
15
15
|
optional :updated_at, :message, 4, "google.protobuf.Timestamp"
|
16
|
-
optional :
|
17
|
-
optional :
|
16
|
+
optional :deleted_at, :message, 5, "google.protobuf.Timestamp"
|
17
|
+
optional :company_id, :string, 6
|
18
|
+
optional :employee_id, :string, 7
|
19
|
+
optional :app_name, :string, 8
|
20
|
+
optional :app_version, :string, 9
|
21
|
+
optional :configuration_id, :string, 10
|
18
22
|
end
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
23
|
+
add_message "Workstream.Protocol.Onboarding.CompanyEvent" do
|
24
|
+
optional :id, :string, 1
|
25
|
+
optional :created_at, :message, 3, "google.protobuf.Timestamp"
|
26
|
+
optional :updated_at, :message, 4, "google.protobuf.Timestamp"
|
27
|
+
optional :deleted_at, :message, 5, "google.protobuf.Timestamp"
|
28
|
+
optional :name, :string, 6
|
29
|
+
optional :status, :string, 7
|
24
30
|
end
|
25
31
|
add_message "Workstream.Protocol.Onboarding.EmployeeEvent" do
|
26
|
-
optional :
|
27
|
-
optional :id, :int64, 2
|
32
|
+
optional :id, :string, 1
|
28
33
|
optional :created_at, :message, 3, "google.protobuf.Timestamp"
|
29
34
|
optional :updated_at, :message, 4, "google.protobuf.Timestamp"
|
30
|
-
optional :
|
35
|
+
optional :deleted_at, :message, 5, "google.protobuf.Timestamp"
|
36
|
+
optional :company_id, :string, 6
|
31
37
|
end
|
32
38
|
add_message "Workstream.Protocol.Onboarding.CompanyStaffEvent" do
|
33
|
-
optional :
|
34
|
-
optional :id, :int64, 2
|
39
|
+
optional :id, :string, 1
|
35
40
|
optional :created_at, :message, 3, "google.protobuf.Timestamp"
|
36
41
|
optional :updated_at, :message, 4, "google.protobuf.Timestamp"
|
37
|
-
optional :
|
38
|
-
optional :company_id, :
|
39
|
-
optional :
|
40
|
-
optional :
|
41
|
-
optional :
|
42
|
+
optional :deleted_at, :message, 5, "google.protobuf.Timestamp"
|
43
|
+
optional :company_id, :string, 6
|
44
|
+
optional :status, :string, 7
|
45
|
+
optional :name, :string, 8
|
46
|
+
optional :email, :string, 9
|
47
|
+
optional :phone, :message, 10, "Workstream.Protocol.Common.Phone"
|
42
48
|
end
|
43
|
-
|
44
|
-
|
45
|
-
|
49
|
+
add_message "Workstream.Protocol.Onboarding.CompanyRoleEvent" do
|
50
|
+
optional :id, :string, 1
|
51
|
+
optional :name, :string, 2
|
52
|
+
optional :status, :string, 3
|
53
|
+
optional :company_id, :string, 4
|
54
|
+
optional :created_at, :message, 5, "google.protobuf.Timestamp"
|
55
|
+
optional :updated_at, :message, 6, "google.protobuf.Timestamp"
|
56
|
+
optional :deleted_at, :message, 7, "google.protobuf.Timestamp"
|
46
57
|
end
|
47
58
|
add_message "Workstream.Protocol.Onboarding.EmergencyContact" do
|
48
59
|
optional :relationship, :string, 1
|
@@ -54,25 +65,25 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
54
65
|
optional :address, :message, 7, "Workstream.Protocol.Common.Address"
|
55
66
|
end
|
56
67
|
add_message "Workstream.Protocol.Onboarding.EmployeeInformationEvent" do
|
57
|
-
optional :
|
58
|
-
optional :id, :int64, 2
|
68
|
+
optional :id, :string, 1
|
59
69
|
optional :created_at, :message, 3, "google.protobuf.Timestamp"
|
60
70
|
optional :updated_at, :message, 4, "google.protobuf.Timestamp"
|
61
|
-
optional :
|
62
|
-
optional :employee_id, :
|
63
|
-
optional :first_name, :string,
|
64
|
-
optional :middle_name, :string,
|
65
|
-
optional :last_name, :string,
|
66
|
-
optional :prior_last_name, :string,
|
67
|
-
optional :
|
68
|
-
optional :salutation, :string,
|
69
|
-
optional :ethnicity, :string,
|
70
|
-
optional :gender, :string,
|
71
|
-
optional :marital_status, :
|
72
|
-
optional :ssn, :string,
|
73
|
-
optional :smoker, :bool,
|
74
|
-
optional :nationality, :string,
|
75
|
-
optional :date_of_birth, :
|
71
|
+
optional :deleted_at, :message, 5, "google.protobuf.Timestamp"
|
72
|
+
optional :employee_id, :string, 8
|
73
|
+
optional :first_name, :string, 11
|
74
|
+
optional :middle_name, :string, 12
|
75
|
+
optional :last_name, :string, 13
|
76
|
+
optional :prior_last_name, :string, 14
|
77
|
+
optional :preferred_name, :string, 15
|
78
|
+
optional :salutation, :string, 16
|
79
|
+
optional :ethnicity, :string, 17
|
80
|
+
optional :gender, :string, 18
|
81
|
+
optional :marital_status, :string, 19
|
82
|
+
optional :ssn, :string, 20
|
83
|
+
optional :smoker, :bool, 21
|
84
|
+
optional :nationality, :string, 22
|
85
|
+
optional :date_of_birth, :message, 23, "Workstream.Protocol.Common.Date"
|
86
|
+
optional :middle_initial, :string, 24
|
76
87
|
optional :home_email, :string, 31
|
77
88
|
optional :home_phone, :message, 32, "Workstream.Protocol.Common.Phone"
|
78
89
|
optional :home_address, :message, 33, "Workstream.Protocol.Common.Address"
|
@@ -81,28 +92,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
81
92
|
optional :work_phone, :message, 43, "Workstream.Protocol.Common.Phone"
|
82
93
|
optional :work_address, :message, 44, "Workstream.Protocol.Common.Address"
|
83
94
|
repeated :emergency_contact, :message, 51, "Workstream.Protocol.Onboarding.EmergencyContact"
|
84
|
-
optional :apply_date, :
|
85
|
-
optional :hire_date, :
|
86
|
-
optional :start_date, :
|
87
|
-
optional :termination_date, :
|
95
|
+
optional :apply_date, :message, 52, "Workstream.Protocol.Common.Date"
|
96
|
+
optional :hire_date, :message, 53, "Workstream.Protocol.Common.Date"
|
97
|
+
optional :start_date, :message, 54, "Workstream.Protocol.Common.Date"
|
98
|
+
optional :termination_date, :message, 55, "Workstream.Protocol.Common.Date"
|
88
99
|
optional :job_title, :string, 56
|
89
100
|
optional :department_name, :string, 57
|
90
101
|
end
|
91
102
|
add_message "Workstream.Protocol.Onboarding.EmployeeInitialStateEvent" do
|
92
|
-
optional :
|
93
|
-
optional :id, :int64, 2
|
103
|
+
optional :id, :string, 1
|
94
104
|
optional :created_at, :message, 3, "google.protobuf.Timestamp"
|
95
105
|
optional :updated_at, :message, 4, "google.protobuf.Timestamp"
|
96
|
-
optional :
|
97
|
-
optional :
|
98
|
-
optional :
|
99
|
-
|
100
|
-
add_enum "Workstream.Protocol.Onboarding.MaritalStatus" do
|
101
|
-
value :MARRIED, 0
|
102
|
-
value :DIVORCED, 1
|
103
|
-
value :WIDOWED, 2
|
104
|
-
value :NEVER_MARRIED, 3
|
105
|
-
value :SEPARATED, 4
|
106
|
+
optional :deleted_at, :message, 5, "google.protobuf.Timestamp"
|
107
|
+
optional :employee_id, :string, 6
|
108
|
+
optional :first_name, :string, 7
|
109
|
+
optional :last_name, :string, 8
|
106
110
|
end
|
107
111
|
end
|
108
112
|
end
|
@@ -110,15 +114,14 @@ end
|
|
110
114
|
module Workstream
|
111
115
|
module Protocol
|
112
116
|
module Onboarding
|
117
|
+
EmployeeOnboardingEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.EmployeeOnboardingEvent").msgclass
|
113
118
|
CompanyEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.CompanyEvent").msgclass
|
114
|
-
CompanyEvent::CompanyStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.CompanyEvent.CompanyStatus").enummodule
|
115
119
|
EmployeeEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.EmployeeEvent").msgclass
|
116
120
|
CompanyStaffEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.CompanyStaffEvent").msgclass
|
117
|
-
|
121
|
+
CompanyRoleEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.CompanyRoleEvent").msgclass
|
118
122
|
EmergencyContact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.EmergencyContact").msgclass
|
119
123
|
EmployeeInformationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.EmployeeInformationEvent").msgclass
|
120
124
|
EmployeeInitialStateEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.EmployeeInitialStateEvent").msgclass
|
121
|
-
MaritalStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Workstream.Protocol.Onboarding.MaritalStatus").enummodule
|
122
125
|
end
|
123
126
|
end
|
124
127
|
end
|
data/workstream_protocol.gemspec
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
lib = File.expand_path("../lib", __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
1
|
+
# lib = File.expand_path("../lib", __FILE__)
|
2
|
+
# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
|
4
|
-
protocols = File.expand_path("../lib/workstream_protocol", __FILE__)
|
5
|
-
$LOAD_PATH.unshift(protocols) unless $LOAD_PATH.include?(protocols)
|
6
4
|
|
7
|
-
require "workstream_protocol/version"
|
5
|
+
# require "workstream_protocol/version"
|
8
6
|
|
7
|
+
require_relative "lib/workstream_protocol/version"
|
9
8
|
Gem::Specification.new do |spec|
|
10
9
|
spec.name = "workstream_protocol"
|
11
10
|
spec.version = WorkstreamProtocol::VERSION
|
@@ -35,6 +34,7 @@ Gem::Specification.new do |spec|
|
|
35
34
|
|
36
35
|
spec.add_dependency 'google-protobuf'
|
37
36
|
spec.add_development_dependency "pry"
|
38
|
-
spec.add_development_dependency "aws"
|
39
|
-
spec.add_development_dependency "aws-sdk-sns"
|
37
|
+
# spec.add_development_dependency "aws"
|
38
|
+
# spec.add_development_dependency "aws-sdk-sns"
|
39
|
+
spec.add_development_dependency 'gem-release'
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workstream_protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Lv
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -39,21 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: aws-sdk-sns
|
42
|
+
name: gem-release
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - ">="
|
@@ -87,8 +73,11 @@ files:
|
|
87
73
|
- lib/workstream_protocol.rb
|
88
74
|
- lib/workstream_protocol/Common/Address_pb.rb
|
89
75
|
- lib/workstream_protocol/Common/CountryCode_pb.rb
|
76
|
+
- lib/workstream_protocol/Common/Date_pb.rb
|
90
77
|
- lib/workstream_protocol/Common/Phone_pb.rb
|
91
78
|
- lib/workstream_protocol/Onboarding_pb.rb
|
79
|
+
- lib/workstream_protocol/utils/date.rb
|
80
|
+
- lib/workstream_protocol/utils/timestamp.rb
|
92
81
|
- lib/workstream_protocol/version.rb
|
93
82
|
- workstream_protocol.gemspec
|
94
83
|
homepage: https://github.com/helloworld1812/Protocol/tree/master/packages/sdk-ruby/src/workstream_protocol
|