jpsclient 2.4.1 → 2.5.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
  SHA256:
3
- metadata.gz: f5d9e62e89905a9d9f823e61ecc544ae6d621fd41d487f85a56b745850fcfbc0
4
- data.tar.gz: 217da60adbfda9012c883bdb55b2e75ab88fca6c3f98e45951ed498e98649e62
3
+ metadata.gz: d771138325d2710bf16d376600aee31d15f43fbab5d9c0613990afea84b09d0b
4
+ data.tar.gz: 4d17e00b62b9b544b88c0bdea4df3066fd761214518b05e24fdb544ffe0c8dd8
5
5
  SHA512:
6
- metadata.gz: e648f436a6b0e9b96fd6c147867e65fd4bee8efb6a57bb4ab508a260fb65a47981c6a111479413072cad41a82620073b381fda713aad992986d4fa4139160efb
7
- data.tar.gz: 577fbb50f84370446b01afd9adfa5ac11e4cde0253ce94c0194accecc5c639fa1e3aecfcd0996127bb3525d337608c742d67bc80b5644be6e693667bc5e0cf78
6
+ metadata.gz: 9249762fba3eca7c45456f9fd42703bda957e942c5ab4247990d8378eb9eb8328560a08cc9dd25f4f13353701c89677863511178c1d92401d73417a17b780c99
7
+ data.tar.gz: fe3b408d22da4ba20aa96830e4383182ac9746ec43bff05f9deb7bdbbf54238fbd51f46a25a41df4eef7b0638b859e2d37eed4b02d30cd27b3f617664b0f217e
@@ -81,6 +81,32 @@ module JPSClient
81
81
 
82
82
  return request_with_auth(:get, path, params: params)
83
83
  end
84
+
85
+ # 下发 bug 列表筛选字段
86
+ #
87
+ # @param params [Hash] 请求参数(FieldsOptionsDto: sourceId, sourceType)
88
+ # @return [Hash] API响应
89
+ def get_filter_options(params: {})
90
+ config = @request_config && @request_config["bug_filter_options"]
91
+ raise JPSClient::ExceptionError, "Missing config for bug_filter_options" unless config && config["url"]
92
+
93
+ path = config["url"]
94
+
95
+ return request_with_auth(:get, path, params: params)
96
+ end
97
+
98
+ # 个人 bug 统计
99
+ #
100
+ # @param params [Hash] 请求参数(ProjectBugStatisticDto: larkUserIds 等)
101
+ # @return [Hash] API响应
102
+ def get_statistics(params: {})
103
+ config = @request_config && @request_config["bug_statistics"]
104
+ raise JPSClient::ExceptionError, "Missing config for bug_statistics" unless config && config["url"]
105
+
106
+ path = config["url"]
107
+
108
+ return request_with_auth(:get, path, params: params)
109
+ end
84
110
  end
85
111
  end
86
112
  end
@@ -81,6 +81,77 @@ module JPSClient
81
81
 
82
82
  return request_with_auth(:get, path, params: params)
83
83
  end
84
+
85
+ # 获取有飞书任务的 app 列表
86
+ #
87
+ # @param params [Hash] 请求参数(LarkTaskAppsDto: keyword, larkUserId)
88
+ # @return [Hash] API响应
89
+ def get_apps(params: {})
90
+ config = @request_config && @request_config["lark_task_apps"]
91
+ raise JPSClient::ExceptionError, "Missing config for lark_task_apps" unless config && config["url"]
92
+
93
+ path = config["url"]
94
+
95
+ return request_with_auth(:get, path, params: params)
96
+ end
97
+
98
+ # 查询当前用户完成的任务和 Bug
99
+ #
100
+ # spec 标注 startTime / endTime 均为 required(int64 毫秒时间戳)。
101
+ #
102
+ # @return [Hash] API响应
103
+ def get_completed_items(start_time: nil, end_time: nil, params: {})
104
+ config = @request_config && @request_config["lark_task_completed_items"]
105
+ raise JPSClient::ExceptionError, "Missing config for lark_task_completed_items" unless config && config["url"]
106
+
107
+ path = config["url"]
108
+
109
+ # TODO(human): 决定如何把 start_time/end_time 与 params 合并成最终的 query
110
+ # 候选策略见对话中的 Learn by Doing 说明,最终需要返回一个能直接交给
111
+ # request_with_auth(:get, path, params: ...) 的 Hash。
112
+ query = nil
113
+
114
+ return request_with_auth(:get, path, params: query)
115
+ end
116
+
117
+ # 任务字段列表
118
+ #
119
+ # @param params [Hash] 请求参数(spec 未声明字段,预留以保持调用风格统一)
120
+ # @return [Hash] API响应
121
+ def get_fields(params: {})
122
+ config = @request_config && @request_config["lark_task_fields"]
123
+ raise JPSClient::ExceptionError, "Missing config for lark_task_fields" unless config && config["url"]
124
+
125
+ path = config["url"]
126
+
127
+ return request_with_auth(:get, path, params: params)
128
+ end
129
+
130
+ # 下发 task 列表筛选字段
131
+ #
132
+ # @param params [Hash] 请求参数(FieldsOptionsDto: sourceId, sourceType)
133
+ # @return [Hash] API响应
134
+ def get_filter_options(params: {})
135
+ config = @request_config && @request_config["lark_task_filter_options"]
136
+ raise JPSClient::ExceptionError, "Missing config for lark_task_filter_options" unless config && config["url"]
137
+
138
+ path = config["url"]
139
+
140
+ return request_with_auth(:get, path, params: params)
141
+ end
142
+
143
+ # 个人任务统计
144
+ #
145
+ # @param params [Hash] 请求参数(ProjectTaskStatisticDto: larkUserIds 等)
146
+ # @return [Hash] API响应
147
+ def get_statistics(params: {})
148
+ config = @request_config && @request_config["lark_task_statistics"]
149
+ raise JPSClient::ExceptionError, "Missing config for lark_task_statistics" unless config && config["url"]
150
+
151
+ path = config["url"]
152
+
153
+ return request_with_auth(:get, path, params: params)
154
+ end
84
155
  end
85
156
  end
86
157
  end
@@ -1,3 +1,3 @@
1
1
  module JPSClient
2
- VERSION = '2.4.1'
2
+ VERSION = '2.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpsclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name
@@ -83,16 +83,16 @@ dependencies:
83
83
  name: logger
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0'
88
+ version: '1.0'
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '0'
95
+ version: '1.0'
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: bundler
98
98
  requirement: !ruby/object:Gem::Requirement
@@ -274,13 +274,11 @@ files:
274
274
  - lib/jpsclient/utils/aes.rb
275
275
  - lib/jpsclient/utils/logger.rb
276
276
  - lib/jpsclient/version.rb
277
- homepage: https://github.com/yourusername/jpsclient
277
+ homepage: https://gitee.com/goodtools/JPSClient
278
278
  licenses:
279
279
  - MIT
280
280
  metadata:
281
- homepage_uri: https://github.com/yourusername/jpsclient
282
- source_code_uri: https://github.com/yourusername/jpsclient
283
- changelog_uri: https://github.com/yourusername/jpsclient/blob/main/CHANGELOG.md
281
+ homepage_uri: https://gitee.com/goodtools/JPSClient
284
282
  rdoc_options: []
285
283
  require_paths:
286
284
  - lib
@@ -295,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
295
293
  - !ruby/object:Gem::Version
296
294
  version: '0'
297
295
  requirements: []
298
- rubygems_version: 3.6.9
296
+ rubygems_version: 4.0.10
299
297
  specification_version: 4
300
298
  summary: JPS Platform API Client with Full API Support
301
299
  test_files: []