@gpc-cli/core 0.9.12 → 0.9.14
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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -25
- package/dist/index.js.map +1 -1
- package/package.json +15 -15
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GPC Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -501,7 +501,7 @@ interface GitReleaseNotes {
|
|
|
501
501
|
}
|
|
502
502
|
declare function generateNotesFromGit(options?: GitNotesOptions): Promise<GitReleaseNotes>;
|
|
503
503
|
|
|
504
|
-
declare function listRecoveryActions(client: PlayApiClient, packageName: string): Promise<AppRecoveryAction[]>;
|
|
504
|
+
declare function listRecoveryActions(client: PlayApiClient, packageName: string, versionCode?: number): Promise<AppRecoveryAction[]>;
|
|
505
505
|
declare function cancelRecoveryAction(client: PlayApiClient, packageName: string, recoveryId: string): Promise<void>;
|
|
506
506
|
declare function deployRecoveryAction(client: PlayApiClient, packageName: string, recoveryId: string): Promise<void>;
|
|
507
507
|
declare function createRecoveryAction(client: PlayApiClient, packageName: string, request: CreateAppRecoveryActionRequest): Promise<AppRecoveryAction>;
|
package/dist/index.js
CHANGED
|
@@ -2075,7 +2075,7 @@ async function getSubscription(client, packageName, productId) {
|
|
|
2075
2075
|
}
|
|
2076
2076
|
async function createSubscription(client, packageName, data) {
|
|
2077
2077
|
validatePackageName(packageName);
|
|
2078
|
-
return client.subscriptions.create(packageName, data);
|
|
2078
|
+
return client.subscriptions.create(packageName, data, data.productId);
|
|
2079
2079
|
}
|
|
2080
2080
|
async function updateSubscription(client, packageName, productId, data, updateMask) {
|
|
2081
2081
|
validatePackageName(packageName);
|
|
@@ -2120,7 +2120,7 @@ async function getOffer(client, packageName, productId, basePlanId, offerId) {
|
|
|
2120
2120
|
async function createOffer(client, packageName, productId, basePlanId, data) {
|
|
2121
2121
|
validatePackageName(packageName);
|
|
2122
2122
|
validateSku(productId);
|
|
2123
|
-
return client.subscriptions.createOffer(packageName, productId, basePlanId, data);
|
|
2123
|
+
return client.subscriptions.createOffer(packageName, productId, basePlanId, data, data.offerId);
|
|
2124
2124
|
}
|
|
2125
2125
|
async function updateOffer(client, packageName, productId, basePlanId, offerId, data, updateMask) {
|
|
2126
2126
|
validatePackageName(packageName);
|
|
@@ -2706,8 +2706,8 @@ async function generateNotesFromGit(options) {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
|
|
2708
2708
|
// src/commands/app-recovery.ts
|
|
2709
|
-
async function listRecoveryActions(client, packageName) {
|
|
2710
|
-
return client.appRecovery.list(packageName);
|
|
2709
|
+
async function listRecoveryActions(client, packageName, versionCode) {
|
|
2710
|
+
return client.appRecovery.list(packageName, versionCode);
|
|
2711
2711
|
}
|
|
2712
2712
|
async function cancelRecoveryAction(client, packageName, recoveryId) {
|
|
2713
2713
|
return client.appRecovery.cancel(packageName, recoveryId);
|
|
@@ -2725,29 +2725,10 @@ async function addRecoveryTargeting(client, packageName, actionId, targeting) {
|
|
|
2725
2725
|
// src/commands/data-safety.ts
|
|
2726
2726
|
import { readFile as readFile7, writeFile as writeFile3 } from "fs/promises";
|
|
2727
2727
|
async function getDataSafety(client, packageName) {
|
|
2728
|
-
|
|
2729
|
-
try {
|
|
2730
|
-
const dataSafety = await client.dataSafety.get(packageName, edit.id);
|
|
2731
|
-
await client.edits.delete(packageName, edit.id);
|
|
2732
|
-
return dataSafety;
|
|
2733
|
-
} catch (error) {
|
|
2734
|
-
await client.edits.delete(packageName, edit.id).catch(() => {
|
|
2735
|
-
});
|
|
2736
|
-
throw error;
|
|
2737
|
-
}
|
|
2728
|
+
return client.dataSafety.get(packageName);
|
|
2738
2729
|
}
|
|
2739
2730
|
async function updateDataSafety(client, packageName, data) {
|
|
2740
|
-
|
|
2741
|
-
try {
|
|
2742
|
-
const result = await client.dataSafety.update(packageName, edit.id, data);
|
|
2743
|
-
await client.edits.validate(packageName, edit.id);
|
|
2744
|
-
await client.edits.commit(packageName, edit.id);
|
|
2745
|
-
return result;
|
|
2746
|
-
} catch (error) {
|
|
2747
|
-
await client.edits.delete(packageName, edit.id).catch(() => {
|
|
2748
|
-
});
|
|
2749
|
-
throw error;
|
|
2750
|
-
}
|
|
2731
|
+
return client.dataSafety.update(packageName, data);
|
|
2751
2732
|
}
|
|
2752
2733
|
async function exportDataSafety(client, packageName, outputPath) {
|
|
2753
2734
|
const dataSafety = await getDataSafety(client, packageName);
|