jpsclient 1.2.0 → 1.3.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: 4233ce8c137760190bba8892216c037a47255db89ea076d93871a4b12bdc5e86
4
- data.tar.gz: 5d9dc78880d2fcd9dd35e43ad898a273fe321cb76d44aad1b05b99b9fdb0ed44
3
+ metadata.gz: d843d5f4064530438cd7ca9763da69d92df5d5d6a6cc552e5534e07b356060c5
4
+ data.tar.gz: 3178f83cd63dc1030b61c6f14694966c7251a48c49dc7ec13c0c67438b08700b
5
5
  SHA512:
6
- metadata.gz: ba4a25f93233b2ad78962c216d58ed50cdf8a3c83a4f8d054e47034b5d69e74fe2a2662f45938914946bc123a16bc7d12c483beb8bf7e965b895c82ebe981f90
7
- data.tar.gz: 680b63aa2e1617c58e9c08f9d30ab15682972f68a2b6bf1d024a46fa77c4d640dcef2dc890fabf65ce456deac1e26a7dd06e4ce0a826ab9a8b12b59e6fe55433
6
+ metadata.gz: ced82b03ab14e7cdd6990a0cdcd694cdaa280ec539867d83d5d3f8afb39ca5abd96969969d45b86b113dc1a48d9048ed60ec2c265840e7af0d489268e8dab16e
7
+ data.tar.gz: 0554a7c2c67981564e1972aee4308c2442bf9ac1e431ae28f20fb814a5bbfa7bea61612217a380e9271c9b4f0ddb749a73666d9afd11522a4e1e8f5110e0181b
@@ -55,6 +55,17 @@ module JPSClient
55
55
  end
56
56
 
57
57
  # 获取项目包列表
58
+ #
59
+ # @param projectId [String] 项目ID(必需)
60
+ # @param params [Hash] 可选参数
61
+ # @option params [Integer] :pageNo 页码(默认 1)
62
+ # @option params [Integer] :pageSize 每页数量(默认 20)
63
+ # @option params [String] :uploadBy 上传者筛选
64
+ # @option params [String] :nativePackageType 包类型筛选(ipa/apk/zip)
65
+ # @option params [String] :packageName 包名称筛选
66
+ # @option params [Integer] :startTimestamp 开始时间戳
67
+ # @option params [Integer] :endTimestamp 结束时间戳
68
+ # @return [Hash] API响应
58
69
  def get_project_package_list(projectId:nil, params:nil)
59
70
  params = {} if params.nil?
60
71
  config = @request_config && @request_config["project_package_list"]
@@ -70,6 +81,7 @@ module JPSClient
70
81
  # 添加可选的筛选参数
71
82
  get_params[:uploadBy] = params[:uploadBy] if params[:uploadBy]
72
83
  get_params[:nativePackageType] = params[:nativePackageType] if params[:nativePackageType]
84
+ get_params[:packageName] = params[:packageName] if params[:packageName]
73
85
  get_params[:startTimestamp] = params[:startTimestamp] if params[:startTimestamp]
74
86
  get_params[:endTimestamp] = params[:endTimestamp] if params[:endTimestamp]
75
87
 
@@ -113,6 +113,15 @@ module JPSClient
113
113
 
114
114
  return result.to_h
115
115
  end
116
+
117
+ # 获取指定项目的工作流列表
118
+ #
119
+ # @param project_id [String] 项目ID
120
+ # @return [Hash] API响应,包含工作流列表
121
+ def get_project_workflows(project_id:)
122
+ params = { projectId: project_id }
123
+ get_list(params: params)
124
+ end
116
125
  end
117
126
  end
118
127
  end
@@ -66,8 +66,8 @@ module JPSClient
66
66
 
67
67
  @token = token_data['token']
68
68
  @username = token_data['username']
69
- @expires_at = token_data['expires_at']
70
- @created_at = token_data['created_at']
69
+ @expires_at = token_data['expires_at'].to_i if token_data['expires_at']
70
+ @created_at = token_data['created_at'].to_i if token_data['created_at']
71
71
 
72
72
  return true if @token
73
73
  rescue => e
@@ -84,7 +84,7 @@ module JPSClient
84
84
 
85
85
  @token = token
86
86
  @username = username
87
- @expires_at = expires_at
87
+ @expires_at = expires_at.to_i
88
88
  @created_at = Time.now.to_i
89
89
 
90
90
  # 确保目录存在
@@ -1,3 +1,3 @@
1
1
  module JPSClient
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpsclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Your Name
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-10-05 00:00:00.000000000 Z
10
+ date: 2025-10-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday