app_store_connect 0.30.0 → 0.33.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 +4 -4
- data/.github/workflows/default.yml +3 -6
- data/Gemfile.lock +6 -6
- data/README.md +2 -1
- data/bin/console +15 -0
- data/lib/app_store_connect/beta_build_localization_create_request.rb +16 -0
- data/lib/app_store_connect/beta_build_localization_modify_request.rb +15 -0
- data/lib/app_store_connect/modify_request.rb +14 -0
- data/lib/app_store_connect/requests/v2/in_app_purchase/create.rb +26 -0
- data/lib/app_store_connect/requests/v2/in_app_purchase/update.rb +25 -0
- data/lib/app_store_connect/version.rb +1 -1
- data/lib/app_store_connect.rb +4 -0
- data/lib/config/schema.json +65 -3
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ddbcb353c883b2dba3f10c3aa52bb0a3a9d6160d48dbe73550428ddef595291
|
4
|
+
data.tar.gz: 594356c9b235dc4e1dd6a930ba47d5ee3d67d12e887d1e931aa699f2d2b26e25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ac96e24758197bb8e096379d2a128c5aa6a46508baa1664ec001ca999ffa1cf8314f0150a23fdc949e05e4a8e28396ab97a1923f78bdcc50ffd8fdc16174f9e
|
7
|
+
data.tar.gz: 4324ba606bd03e91ec5df28de19d5681d19b7c71d9dde9ed096bbcfe610e158a38d0410f7be6dc692ac499bc628712dc2f33fcba9c06cbe87e056fbe1a37284c
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
name:
|
2
|
+
name: CI/CD
|
3
3
|
|
4
4
|
on:
|
5
5
|
push:
|
@@ -100,16 +100,13 @@ jobs:
|
|
100
100
|
runs-on: ubuntu-latest
|
101
101
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
102
102
|
needs: [test, lint]
|
103
|
-
strategy:
|
104
|
-
matrix:
|
105
|
-
ruby_versions: [2.7, 3.0, 3.1, 3.2]
|
106
103
|
|
107
104
|
steps:
|
108
105
|
- uses: actions/checkout@v3
|
109
|
-
- name: Set up Ruby
|
106
|
+
- name: Set up Ruby 3.2
|
110
107
|
uses: ruby/setup-ruby@v1
|
111
108
|
with:
|
112
|
-
ruby-version:
|
109
|
+
ruby-version: 3.2
|
113
110
|
- uses: actions/cache@v3
|
114
111
|
with:
|
115
112
|
path: vendor/bundle
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
app_store_connect (0.
|
4
|
+
app_store_connect (0.33.0)
|
5
5
|
activesupport (>= 6.0.0)
|
6
6
|
jwt (>= 1.4)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (7.0.4)
|
11
|
+
activesupport (7.0.4.2)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (>= 1.6, < 2)
|
14
14
|
minitest (>= 5.1)
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
public_suffix (>= 2.0.2, < 6.0)
|
18
18
|
ast (2.4.2)
|
19
19
|
coderay (1.1.3)
|
20
|
-
concurrent-ruby (1.
|
20
|
+
concurrent-ruby (1.2.0)
|
21
21
|
crack (0.4.5)
|
22
22
|
rexml
|
23
23
|
diff-lcs (1.5.0)
|
@@ -50,7 +50,7 @@ GEM
|
|
50
50
|
rb-inotify (~> 0.9, >= 0.9.10)
|
51
51
|
lumberjack (1.2.8)
|
52
52
|
method_source (1.0.0)
|
53
|
-
minitest (5.
|
53
|
+
minitest (5.17.0)
|
54
54
|
nenv (0.3.0)
|
55
55
|
notiffany (0.1.3)
|
56
56
|
nenv (~> 0.1)
|
@@ -105,7 +105,7 @@ GEM
|
|
105
105
|
simplecov_json_formatter (0.1.4)
|
106
106
|
thor (1.2.1)
|
107
107
|
timecop (0.9.5)
|
108
|
-
tzinfo (2.0.
|
108
|
+
tzinfo (2.0.6)
|
109
109
|
concurrent-ruby (~> 1.0)
|
110
110
|
unicode-display_width (2.3.0)
|
111
111
|
webmock (3.18.1)
|
@@ -133,4 +133,4 @@ DEPENDENCIES
|
|
133
133
|
webmock (~> 3.18.1)
|
134
134
|
|
135
135
|
BUNDLED WITH
|
136
|
-
2.3.
|
136
|
+
2.3.24
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# App Store Connect
|
2
|
-
|
2
|
+
|
3
|
+
[](https://github.com/kyledecot/app_store_connect/actions/workflows/default.yml)
|
3
4
|
|
4
5
|
A Ruby interface to the [App Store Connect API](https://developer.apple.com/app-store-connect/api/)
|
5
6
|
|
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'app_store_connect'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'app_store_connect/create_request'
|
4
|
+
|
5
|
+
module AppStoreConnect
|
6
|
+
class BetaBuildLocalizationCreateRequest < CreateRequest
|
7
|
+
data do
|
8
|
+
type 'betaBuildLocalizations'
|
9
|
+
|
10
|
+
attributes do
|
11
|
+
property :locale, required: true
|
12
|
+
property :whats_new
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'app_store_connect/modify_request'
|
4
|
+
|
5
|
+
module AppStoreConnect
|
6
|
+
class BetaBuildLocalizationModifyRequest < ModifyRequest
|
7
|
+
data do
|
8
|
+
type 'betaBuildLocalizations'
|
9
|
+
|
10
|
+
attributes do
|
11
|
+
property :whats_new
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'app_store_connect/create_request'
|
4
|
+
|
5
|
+
module AppStoreConnect
|
6
|
+
module Requests
|
7
|
+
module V2
|
8
|
+
module InAppPurchase
|
9
|
+
class Create < CreateRequest
|
10
|
+
data do
|
11
|
+
type 'inAppPurchases'
|
12
|
+
|
13
|
+
attributes do
|
14
|
+
property :name, required: true
|
15
|
+
property :product_id, required: true
|
16
|
+
property :in_app_purchase_type, required: true
|
17
|
+
property :available_in_all_territories
|
18
|
+
property :family_sharable
|
19
|
+
property :review_note
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'app_store_connect/create_request'
|
4
|
+
|
5
|
+
module AppStoreConnect
|
6
|
+
module Requests
|
7
|
+
module V2
|
8
|
+
module InAppPurchase
|
9
|
+
class Update < CreateRequest
|
10
|
+
data do
|
11
|
+
id
|
12
|
+
type 'inAppPurchases'
|
13
|
+
|
14
|
+
attributes do
|
15
|
+
property :name
|
16
|
+
property :available_in_all_territories
|
17
|
+
property :family_sharable
|
18
|
+
property :review_note
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/app_store_connect.rb
CHANGED
@@ -19,7 +19,11 @@ require 'app_store_connect/bundle_id_capability_create_request'
|
|
19
19
|
require 'app_store_connect/bundle_id_create_request'
|
20
20
|
require 'app_store_connect/certificate_create_request'
|
21
21
|
require 'app_store_connect/device_create_request'
|
22
|
+
require 'app_store_connect/requests/v2/in_app_purchase/create'
|
23
|
+
require 'app_store_connect/requests/v2/in_app_purchase/update'
|
22
24
|
require 'app_store_connect/profile_create_request'
|
25
|
+
require 'app_store_connect/beta_build_localization_create_request'
|
26
|
+
require 'app_store_connect/beta_build_localization_modify_request'
|
23
27
|
require 'app_store_connect/review_submission_create_request'
|
24
28
|
require 'app_store_connect/review_submission_item_create_request'
|
25
29
|
require 'app_store_connect/review_submission_update_request'
|
data/lib/config/schema.json
CHANGED
@@ -132,6 +132,18 @@
|
|
132
132
|
"http_body_type": "BundleIdCapabilityCreateRequest",
|
133
133
|
"http_method": "post"
|
134
134
|
},
|
135
|
+
{
|
136
|
+
"alias": "create_beta_build_localization",
|
137
|
+
"url": "https://api.appstoreconnect.apple.com/v1/betaBuildLocalizations",
|
138
|
+
"http_body_type": "BetaBuildLocalizationCreateRequest",
|
139
|
+
"http_method": "post"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"alias": "modify_beta_build_localization",
|
143
|
+
"url": "https://api.appstoreconnect.apple.com/v1/betaBuildLocalizations/{id}",
|
144
|
+
"http_body_type": "BetaBuildLocalizationModifyRequest",
|
145
|
+
"http_method": "patch"
|
146
|
+
},
|
135
147
|
{
|
136
148
|
"http_method": "get",
|
137
149
|
"url": "https://api.appstoreconnect.apple.com/v1/users",
|
@@ -322,6 +334,48 @@
|
|
322
334
|
"url": "https://api.appstoreconnect.apple.com/v1/apps/{id}",
|
323
335
|
"alias": "app"
|
324
336
|
},
|
337
|
+
{
|
338
|
+
"http_method": "get",
|
339
|
+
"url": "https://api.appstoreconnect.apple.com/v1/apps/{id}/pricePoints",
|
340
|
+
"alias": "app_price_points"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"alias": "create_in_app_purchase",
|
344
|
+
"http_body_type": "Requests::V2::InAppPurchase::Create",
|
345
|
+
"http_method": "post",
|
346
|
+
"url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"alias": "update_in_app_purchase",
|
350
|
+
"http_body_type": "Requests::V2::InAppPurchase::Update",
|
351
|
+
"http_method": "patch",
|
352
|
+
"url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}"
|
353
|
+
},
|
354
|
+
{
|
355
|
+
"alias": "delete_in_app_purchase",
|
356
|
+
"http_method": "delete",
|
357
|
+
"url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
"http_method": "get",
|
361
|
+
"url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}",
|
362
|
+
"alias": "in_app_purchase"
|
363
|
+
},
|
364
|
+
{
|
365
|
+
"http_method": "get",
|
366
|
+
"url": "https://api.appstoreconnect.apple.com/v1/apps/{id}/inAppPurchasesV2",
|
367
|
+
"alias": "app_in_app_purchases"
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"http_method": "get",
|
371
|
+
"url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/pricePoints",
|
372
|
+
"alias": "in_app_purchase_price_points"
|
373
|
+
},
|
374
|
+
{
|
375
|
+
"http_method": "get",
|
376
|
+
"url": "https://api.appstoreconnect.apple.com/v2/inAppPurchases/{id}/inAppPurchaseLocalizations",
|
377
|
+
"alias": "in_app_purchase_localizations"
|
378
|
+
},
|
325
379
|
{
|
326
380
|
"http_method": "get",
|
327
381
|
"url": "https://api.appstoreconnect.apple.com/v1/apps/{id}/betaGroups",
|
@@ -780,6 +834,13 @@
|
|
780
834
|
}
|
781
835
|
],
|
782
836
|
"types": [
|
837
|
+
{
|
838
|
+
"type": "BundleIdPlatform",
|
839
|
+
"values": [
|
840
|
+
"IOS",
|
841
|
+
"MAC_OS"
|
842
|
+
]
|
843
|
+
},
|
783
844
|
{
|
784
845
|
"type": "CapabilityType",
|
785
846
|
"values": [
|
@@ -821,10 +882,11 @@
|
|
821
882
|
]
|
822
883
|
},
|
823
884
|
{
|
824
|
-
"type": "
|
885
|
+
"type": "InAppPurchaseType",
|
825
886
|
"values": [
|
826
|
-
"
|
827
|
-
"
|
887
|
+
"CONSUMABLE",
|
888
|
+
"NON_CONSUMABLE",
|
889
|
+
"NON_RENEWING_SUBSCRIPTION"
|
828
890
|
]
|
829
891
|
},
|
830
892
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_store_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Decot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -215,6 +215,7 @@ files:
|
|
215
215
|
- README.md
|
216
216
|
- Rakefile
|
217
217
|
- app_store_connect.gemspec
|
218
|
+
- bin/console
|
218
219
|
- lib/app_store_connect.rb
|
219
220
|
- lib/app_store_connect/app_store_version_build_linkage_request.rb
|
220
221
|
- lib/app_store_connect/app_store_version_create_request.rb
|
@@ -222,6 +223,8 @@ files:
|
|
222
223
|
- lib/app_store_connect/app_store_version_phased_release_update_request.rb
|
223
224
|
- lib/app_store_connect/app_store_version_release_request_create_request.rb
|
224
225
|
- lib/app_store_connect/app_store_version_update_request.rb
|
226
|
+
- lib/app_store_connect/beta_build_localization_create_request.rb
|
227
|
+
- lib/app_store_connect/beta_build_localization_modify_request.rb
|
225
228
|
- lib/app_store_connect/build_update_request.rb
|
226
229
|
- lib/app_store_connect/bundle_id_capability_create_request.rb
|
227
230
|
- lib/app_store_connect/bundle_id_create_request.rb
|
@@ -233,6 +236,7 @@ files:
|
|
233
236
|
- lib/app_store_connect/client/utils.rb
|
234
237
|
- lib/app_store_connect/create_request.rb
|
235
238
|
- lib/app_store_connect/device_create_request.rb
|
239
|
+
- lib/app_store_connect/modify_request.rb
|
236
240
|
- lib/app_store_connect/object/attributes.rb
|
237
241
|
- lib/app_store_connect/object/data.rb
|
238
242
|
- lib/app_store_connect/object/id.rb
|
@@ -240,6 +244,8 @@ files:
|
|
240
244
|
- lib/app_store_connect/object/type.rb
|
241
245
|
- lib/app_store_connect/profile_create_request.rb
|
242
246
|
- lib/app_store_connect/request.rb
|
247
|
+
- lib/app_store_connect/requests/v2/in_app_purchase/create.rb
|
248
|
+
- lib/app_store_connect/requests/v2/in_app_purchase/update.rb
|
243
249
|
- lib/app_store_connect/review_submission_create_request.rb
|
244
250
|
- lib/app_store_connect/review_submission_item_create_request.rb
|
245
251
|
- lib/app_store_connect/review_submission_update_request.rb
|