quake_timesheets_client 0.1.0 → 0.1.5

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +74 -0
  3. data/README.md +27 -21
  4. data/build.sh +1 -1
  5. data/docs/ApprovalTypesApi.md +36 -38
  6. data/docs/ApprovalsApi.md +36 -40
  7. data/docs/CreateApprovalTypesInput.md +22 -0
  8. data/docs/CreateApprovalsInput.md +24 -0
  9. data/docs/CreateDatasetsInput.md +18 -0
  10. data/docs/CreateEntriesInput.md +30 -0
  11. data/docs/CreatePeopleInput.md +20 -0
  12. data/docs/DatasetsApi.md +51 -49
  13. data/docs/EntriesApi.md +52 -72
  14. data/docs/Entry.md +2 -0
  15. data/docs/PeopleApi.md +36 -36
  16. data/docs/UpdateEntriesInput.md +30 -0
  17. data/lib/quake_timesheets_client.rb +7 -1
  18. data/lib/quake_timesheets_client/api/approval_types_api.rb +33 -52
  19. data/lib/quake_timesheets_client/api/approvals_api.rb +34 -65
  20. data/lib/quake_timesheets_client/api/datasets_api.rb +45 -50
  21. data/lib/quake_timesheets_client/api/entries_api.rb +54 -94
  22. data/lib/quake_timesheets_client/api/people_api.rb +33 -45
  23. data/lib/quake_timesheets_client/api_client.rb +1 -1
  24. data/lib/quake_timesheets_client/api_error.rb +1 -1
  25. data/lib/quake_timesheets_client/configuration.rb +1 -1
  26. data/lib/quake_timesheets_client/models/approval.rb +1 -1
  27. data/lib/quake_timesheets_client/models/approval_type.rb +1 -1
  28. data/lib/quake_timesheets_client/models/create_approval_types_input.rb +254 -0
  29. data/lib/quake_timesheets_client/models/create_approvals_input.rb +304 -0
  30. data/lib/quake_timesheets_client/models/create_datasets_input.rb +224 -0
  31. data/lib/quake_timesheets_client/models/create_entries_input.rb +313 -0
  32. data/lib/quake_timesheets_client/models/create_people_input.rb +239 -0
  33. data/lib/quake_timesheets_client/models/dataset.rb +1 -1
  34. data/lib/quake_timesheets_client/models/entry.rb +19 -2
  35. data/lib/quake_timesheets_client/models/person.rb +1 -1
  36. data/lib/quake_timesheets_client/models/update_entries_input.rb +313 -0
  37. data/lib/quake_timesheets_client/version.rb +2 -2
  38. data/quake_timesheets_client.gemspec +1 -1
  39. data/ruby-templates/api.mustache +206 -0
  40. data/ruby.config.yaml +1 -1
  41. data/spec/api_client_spec.rb +1 -1
  42. data/spec/configuration_spec.rb +1 -1
  43. data/spec/models/create_approval_types_input_spec.rb +46 -0
  44. data/spec/models/create_approvals_input_spec.rb +56 -0
  45. data/spec/models/create_datasets_input_spec.rb +34 -0
  46. data/spec/models/create_entries_input_spec.rb +68 -0
  47. data/spec/models/create_people_input_spec.rb +40 -0
  48. data/spec/models/update_entries_input_spec.rb +68 -0
  49. data/spec/spec_helper.rb +1 -1
  50. metadata +34 -9
  51. data/commands +0 -13
data/ruby.config.yaml CHANGED
@@ -4,7 +4,7 @@ gemHomepage: https://www.quake.co.uk
4
4
  gemSummary: A client for the Quake Timesheets API
5
5
  gemDescription: Requires the Quake Timesheets system
6
6
  gemLicense: MIT
7
- gemVersion: 0.1.0
7
+ gemVersion: 0.1.5
8
8
  gemRequiredRubyVersion: ">= 2.7"
9
9
  library: faraday
10
10
  moduleName: Quake::Timesheets
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #TimesheetsApi (params in:formData)
2
+ #TimesheetsApi (params in:body)
3
3
 
4
4
  # <p>Another API description</p>
5
5
 
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #TimesheetsApi (params in:formData)
2
+ #TimesheetsApi (params in:body)
3
3
 
4
4
  # <p>Another API description</p>
5
5
 
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #TimesheetsApi (params in:body)
3
+
4
+ # <p>Another API description</p>
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Quake::Timesheets::CreateApprovalTypesInput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Quake::Timesheets::CreateApprovalTypesInput do
21
+ let(:instance) { Quake::Timesheets::CreateApprovalTypesInput.new }
22
+
23
+ describe 'test an instance of CreateApprovalTypesInput' do
24
+ it 'should create an instance of CreateApprovalTypesInput' do
25
+ expect(instance).to be_instance_of(Quake::Timesheets::CreateApprovalTypesInput)
26
+ end
27
+ end
28
+ describe 'test attribute "dataset_id"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "name"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "weight"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,56 @@
1
+ =begin
2
+ #TimesheetsApi (params in:body)
3
+
4
+ # <p>Another API description</p>
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Quake::Timesheets::CreateApprovalsInput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Quake::Timesheets::CreateApprovalsInput do
21
+ let(:instance) { Quake::Timesheets::CreateApprovalsInput.new }
22
+
23
+ describe 'test an instance of CreateApprovalsInput' do
24
+ it 'should create an instance of CreateApprovalsInput' do
25
+ expect(instance).to be_instance_of(Quake::Timesheets::CreateApprovalsInput)
26
+ end
27
+ end
28
+ describe 'test attribute "dataset_id"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "entry_ids"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "approval_type_id"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "state"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["requested", "approved", "withdrawn"])
50
+ # validator.allowable_values.each do |value|
51
+ # expect { instance.state = value }.not_to raise_error
52
+ # end
53
+ end
54
+ end
55
+
56
+ end
@@ -0,0 +1,34 @@
1
+ =begin
2
+ #TimesheetsApi (params in:body)
3
+
4
+ # <p>Another API description</p>
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Quake::Timesheets::CreateDatasetsInput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Quake::Timesheets::CreateDatasetsInput do
21
+ let(:instance) { Quake::Timesheets::CreateDatasetsInput.new }
22
+
23
+ describe 'test an instance of CreateDatasetsInput' do
24
+ it 'should create an instance of CreateDatasetsInput' do
25
+ expect(instance).to be_instance_of(Quake::Timesheets::CreateDatasetsInput)
26
+ end
27
+ end
28
+ describe 'test attribute "name"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end
@@ -0,0 +1,68 @@
1
+ =begin
2
+ #TimesheetsApi (params in:body)
3
+
4
+ # <p>Another API description</p>
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Quake::Timesheets::CreateEntriesInput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Quake::Timesheets::CreateEntriesInput do
21
+ let(:instance) { Quake::Timesheets::CreateEntriesInput.new }
22
+
23
+ describe 'test an instance of CreateEntriesInput' do
24
+ it 'should create an instance of CreateEntriesInput' do
25
+ expect(instance).to be_instance_of(Quake::Timesheets::CreateEntriesInput)
26
+ end
27
+ end
28
+ describe 'test attribute "person_id"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "start_at"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "end_at"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "quantity"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "unit"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["hour", "day", "week", "month", "other"])
56
+ # validator.allowable_values.each do |value|
57
+ # expect { instance.unit = value }.not_to raise_error
58
+ # end
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "external_reference"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ end
@@ -0,0 +1,40 @@
1
+ =begin
2
+ #TimesheetsApi (params in:body)
3
+
4
+ # <p>Another API description</p>
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Quake::Timesheets::CreatePeopleInput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Quake::Timesheets::CreatePeopleInput do
21
+ let(:instance) { Quake::Timesheets::CreatePeopleInput.new }
22
+
23
+ describe 'test an instance of CreatePeopleInput' do
24
+ it 'should create an instance of CreatePeopleInput' do
25
+ expect(instance).to be_instance_of(Quake::Timesheets::CreatePeopleInput)
26
+ end
27
+ end
28
+ describe 'test attribute "dataset_id"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "name"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ end
@@ -0,0 +1,68 @@
1
+ =begin
2
+ #TimesheetsApi (params in:body)
3
+
4
+ # <p>Another API description</p>
5
+
6
+ The version of the OpenAPI document: 1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Quake::Timesheets::UpdateEntriesInput
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Quake::Timesheets::UpdateEntriesInput do
21
+ let(:instance) { Quake::Timesheets::UpdateEntriesInput.new }
22
+
23
+ describe 'test an instance of UpdateEntriesInput' do
24
+ it 'should create an instance of UpdateEntriesInput' do
25
+ expect(instance).to be_instance_of(Quake::Timesheets::UpdateEntriesInput)
26
+ end
27
+ end
28
+ describe 'test attribute "person_id"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "start_at"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "end_at"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "quantity"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "unit"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["hour", "day", "week", "month", "other"])
56
+ # validator.allowable_values.each do |value|
57
+ # expect { instance.unit = value }.not_to raise_error
58
+ # end
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "external_reference"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  =begin
2
- #TimesheetsApi (params in:formData)
2
+ #TimesheetsApi (params in:body)
3
3
 
4
4
  # <p>Another API description</p>
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quake_timesheets_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-03 00:00:00.000000000 Z
11
+ date: 2021-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -59,20 +59,26 @@ extra_rdoc_files: []
59
59
  files:
60
60
  - GENERATING_README.md
61
61
  - Gemfile
62
+ - Gemfile.lock
62
63
  - README.md
63
64
  - Rakefile
64
65
  - build.sh
65
- - commands
66
66
  - docs/Approval.md
67
67
  - docs/ApprovalType.md
68
68
  - docs/ApprovalTypesApi.md
69
69
  - docs/ApprovalsApi.md
70
+ - docs/CreateApprovalTypesInput.md
71
+ - docs/CreateApprovalsInput.md
72
+ - docs/CreateDatasetsInput.md
73
+ - docs/CreateEntriesInput.md
74
+ - docs/CreatePeopleInput.md
70
75
  - docs/Dataset.md
71
76
  - docs/DatasetsApi.md
72
77
  - docs/EntriesApi.md
73
78
  - docs/Entry.md
74
79
  - docs/PeopleApi.md
75
80
  - docs/Person.md
81
+ - docs/UpdateEntriesInput.md
76
82
  - git_push.sh
77
83
  - lib/quake_timesheets_client.rb
78
84
  - lib/quake_timesheets_client/api/approval_types_api.rb
@@ -85,12 +91,19 @@ files:
85
91
  - lib/quake_timesheets_client/configuration.rb
86
92
  - lib/quake_timesheets_client/models/approval.rb
87
93
  - lib/quake_timesheets_client/models/approval_type.rb
94
+ - lib/quake_timesheets_client/models/create_approval_types_input.rb
95
+ - lib/quake_timesheets_client/models/create_approvals_input.rb
96
+ - lib/quake_timesheets_client/models/create_datasets_input.rb
97
+ - lib/quake_timesheets_client/models/create_entries_input.rb
98
+ - lib/quake_timesheets_client/models/create_people_input.rb
88
99
  - lib/quake_timesheets_client/models/dataset.rb
89
100
  - lib/quake_timesheets_client/models/entry.rb
90
101
  - lib/quake_timesheets_client/models/person.rb
102
+ - lib/quake_timesheets_client/models/update_entries_input.rb
91
103
  - lib/quake_timesheets_client/version.rb
92
104
  - quake_timesheets_client.gemspec
93
105
  - ruby-templates/README.mustache
106
+ - ruby-templates/api.mustache
94
107
  - ruby-templates/api_client.mustache
95
108
  - ruby-templates/api_client_faraday_partial.mustache
96
109
  - ruby-templates/configuration.mustache
@@ -106,9 +119,15 @@ files:
106
119
  - spec/configuration_spec.rb
107
120
  - spec/models/approval_spec.rb
108
121
  - spec/models/approval_type_spec.rb
122
+ - spec/models/create_approval_types_input_spec.rb
123
+ - spec/models/create_approvals_input_spec.rb
124
+ - spec/models/create_datasets_input_spec.rb
125
+ - spec/models/create_entries_input_spec.rb
126
+ - spec/models/create_people_input_spec.rb
109
127
  - spec/models/dataset_spec.rb
110
128
  - spec/models/entry_spec.rb
111
129
  - spec/models/person_spec.rb
130
+ - spec/models/update_entries_input_spec.rb
112
131
  - spec/spec_helper.rb
113
132
  homepage: https://www.quake.co.uk
114
133
  licenses:
@@ -129,21 +148,27 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
148
  - !ruby/object:Gem::Version
130
149
  version: '0'
131
150
  requirements: []
132
- rubygems_version: 3.1.4
151
+ rubygems_version: 3.1.6
133
152
  signing_key:
134
153
  specification_version: 4
135
154
  summary: A client for the Quake Timesheets API
136
155
  test_files:
137
- - spec/api/approvals_api_spec.rb
156
+ - spec/api/people_api_spec.rb
157
+ - spec/api/approval_types_api_spec.rb
138
158
  - spec/api/entries_api_spec.rb
139
159
  - spec/api/datasets_api_spec.rb
140
- - spec/api/approval_types_api_spec.rb
141
- - spec/api/people_api_spec.rb
160
+ - spec/api/approvals_api_spec.rb
142
161
  - spec/api_client_spec.rb
143
162
  - spec/configuration_spec.rb
163
+ - spec/models/approval_type_spec.rb
164
+ - spec/models/approval_spec.rb
165
+ - spec/models/create_datasets_input_spec.rb
144
166
  - spec/models/entry_spec.rb
145
167
  - spec/models/dataset_spec.rb
168
+ - spec/models/create_approvals_input_spec.rb
146
169
  - spec/models/person_spec.rb
147
- - spec/models/approval_type_spec.rb
148
- - spec/models/approval_spec.rb
170
+ - spec/models/update_entries_input_spec.rb
171
+ - spec/models/create_people_input_spec.rb
172
+ - spec/models/create_approval_types_input_spec.rb
173
+ - spec/models/create_entries_input_spec.rb
149
174
  - spec/spec_helper.rb