eas-cli 24.13.0 → 24.14.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.
@@ -11,7 +11,7 @@ const ChannelQuery_1 = require("../../graphql/queries/ChannelQuery");
11
11
  const log_1 = tslib_1.__importDefault(require("../../log"));
12
12
  const json_1 = require("../../utils/json");
13
13
  class ChannelProtect extends EasCommand_1.default {
14
- static description = 'protect a channel so only account admins can publish to it';
14
+ static description = 'protect a channel so only Release Managers, Admins, and Owners can publish to it';
15
15
  static args = {
16
16
  name: core_1.Args.string({
17
17
  required: false,
@@ -12,7 +12,7 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
12
12
  const prompts_1 = require("../../prompts");
13
13
  const json_1 = require("../../utils/json");
14
14
  class ChannelUnprotect extends EasCommand_1.default {
15
- static description = "remove a channel's admin-only publishing restriction";
15
+ static description = "remove a channel's protected publishing restriction";
16
16
  static args = {
17
17
  name: core_1.Args.string({
18
18
  required: false,
@@ -1,3 +1,4 @@
1
+ import { Platform } from '@expo/eas-build-job';
1
2
  import EasCommand from '../../../commandUtils/EasCommand';
2
3
  export default class WorkflowInsightsMaestro extends EasCommand {
3
4
  static description: string;
@@ -9,6 +10,7 @@ export default class WorkflowInsightsMaestro extends EasCommand {
9
10
  days: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
11
  start: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
11
12
  end: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<Platform[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
12
14
  status: import("@oclif/core/lib/interfaces").OptionFlag<("FAILED" | "PASSED" | "FLAKY")[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
15
  tag: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
14
16
  search: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ const eas_build_job_1 = require("@expo/eas-build-job");
4
5
  const core_1 = require("@oclif/core");
5
6
  const EasCommand_1 = tslib_1.__importDefault(require("../../../commandUtils/EasCommand"));
6
7
  const flags_1 = require("../../../commandUtils/flags");
@@ -24,6 +25,11 @@ class WorkflowInsightsMaestro extends EasCommand_1.default {
24
25
  static description = "display Maestro test insights for a time range: pass and flake rates, per-flow stats, and a single flow's history";
25
26
  static flags = {
26
27
  ...filters_1.WorkflowsInsightsSharedFilterFlags,
28
+ platform: core_1.Flags.option({
29
+ description: 'Only include flow runs on this platform (can be specified multiple times).',
30
+ options: [eas_build_job_1.Platform.IOS, eas_build_job_1.Platform.ANDROID],
31
+ multiple: true,
32
+ })(),
27
33
  status: core_1.Flags.option({
28
34
  description: 'Only include flow runs with this status (can be specified multiple times). PASSED means passed on the first attempt.',
29
35
  options: maestroFilters_1.MAESTRO_STATUS_OPTIONS,
@@ -2323,6 +2323,7 @@ export type AppObserveCustomEvent = {
2323
2323
  errorSource?: Maybe<Scalars['String']['output']>;
2324
2324
  eventName: Scalars['String']['output'];
2325
2325
  exceptionMessage?: Maybe<Scalars['String']['output']>;
2326
+ /** Symbolicated when a build or update with a matching source map exists; otherwise as reported. */
2326
2327
  exceptionStacktrace?: Maybe<Scalars['String']['output']>;
2327
2328
  /** Error fields below are populated only for exception events (eventName: exception). */
2328
2329
  exceptionType?: Maybe<Scalars['String']['output']>;
@@ -2335,8 +2336,10 @@ export type AppObserveCustomEvent = {
2335
2336
  sessionId?: Maybe<Scalars['String']['output']>;
2336
2337
  severityNumber?: Maybe<Scalars['Int']['output']>;
2337
2338
  severityText?: Maybe<Scalars['String']['output']>;
2338
- /** Build whose uploaded source map symbolicated exceptionStacktrace; null when the stack trace is shown as reported. */
2339
+ /** Build whose uploaded source map symbolicated exceptionStacktrace; null when the stack trace is shown as reported or was symbolicated from an update. */
2339
2340
  symbolicationBuild?: Maybe<Build>;
2341
+ /** Update whose uploaded source map symbolicated exceptionStacktrace; null when the stack trace is shown as reported or was symbolicated from a build. */
2342
+ symbolicationUpdate?: Maybe<Update>;
2340
2343
  timestamp: Scalars['DateTime']['output'];
2341
2344
  };
2342
2345
  export type AppObserveCustomEventEdge = {
@@ -2473,10 +2476,12 @@ export type AppObserveError = AppObserveLog & {
2473
2476
  severityNumber?: Maybe<Scalars['Int']['output']>;
2474
2477
  severityText?: Maybe<Scalars['String']['output']>;
2475
2478
  source?: Maybe<Scalars['String']['output']>;
2476
- /** Symbolicated when a build with a matching source map exists; otherwise as reported. */
2479
+ /** Symbolicated when a build or update with a matching source map exists; otherwise as reported. */
2477
2480
  stacktrace?: Maybe<Scalars['String']['output']>;
2478
- /** Build whose uploaded source map symbolicated stacktrace; null when the stack trace is shown as reported. */
2481
+ /** Build whose uploaded source map symbolicated stacktrace; null when the stack trace is shown as reported or was symbolicated from an update. */
2479
2482
  symbolicationBuild?: Maybe<Build>;
2483
+ /** Update whose uploaded source map symbolicated stacktrace; null when the stack trace is shown as reported or was symbolicated from a build. */
2484
+ symbolicationUpdate?: Maybe<Update>;
2480
2485
  timestamp: Scalars['DateTime']['output'];
2481
2486
  type?: Maybe<Scalars['String']['output']>;
2482
2487
  };
@@ -5815,6 +5820,16 @@ export type CreatePostHogDeepLinkInput = {
5815
5820
  /** Which EAS surface opened the link; omitted lets PostHog apply its own default. */
5816
5821
  purpose?: InputMaybe<PostHogDeepLinkPurpose>;
5817
5822
  };
5823
+ export type CreateSandboxArtifactUploadSessionInput = {
5824
+ filename: Scalars['String']['input'];
5825
+ name: Scalars['String']['input'];
5826
+ size: Scalars['ByteSize']['input'];
5827
+ };
5828
+ export type CreateSandboxArtifactUploadSessionResult = {
5829
+ __typename?: 'CreateSandboxArtifactUploadSessionResult';
5830
+ artifact: SandboxArtifact;
5831
+ uploadSession: SandboxArtifactUploadSession;
5832
+ };
5818
5833
  export type CreateSandboxInput = {
5819
5834
  agentRunId?: InputMaybe<Scalars['ID']['input']>;
5820
5835
  appId: Scalars['ID']['input'];
@@ -9420,6 +9435,7 @@ export type RootQuery = {
9420
9435
  posthogIntegration: PostHogIntegrationQuery;
9421
9436
  /** Top-level query object for querying Runtimes. */
9422
9437
  runtimes: RuntimeQuery;
9438
+ sandboxArtifacts: SandboxArtifactQuery;
9423
9439
  sandboxes: SandboxQuery;
9424
9440
  snack: SnackQuery;
9425
9441
  /** Top-level query object for querying Expo status page services. */
@@ -9633,6 +9649,7 @@ export type SsoUserDataInput = {
9633
9649
  export type Sandbox = {
9634
9650
  __typename?: 'Sandbox';
9635
9651
  app: App;
9652
+ artifacts: Array<SandboxArtifact>;
9636
9653
  createdAt: Scalars['DateTime']['output'];
9637
9654
  finishedAt?: Maybe<Scalars['DateTime']['output']>;
9638
9655
  id: Scalars['ID']['output'];
@@ -9642,6 +9659,29 @@ export type Sandbox = {
9642
9659
  turtleJobRun: JobRun;
9643
9660
  updatedAt: Scalars['DateTime']['output'];
9644
9661
  };
9662
+ export type SandboxArtifact = {
9663
+ __typename?: 'SandboxArtifact';
9664
+ createdAt: Scalars['DateTime']['output'];
9665
+ downloadUrl?: Maybe<Scalars['String']['output']>;
9666
+ fileSizeBytes?: Maybe<Scalars['ByteSize']['output']>;
9667
+ filename: Scalars['String']['output'];
9668
+ id: Scalars['ID']['output'];
9669
+ name: Scalars['String']['output'];
9670
+ sandbox: Sandbox;
9671
+ updatedAt: Scalars['DateTime']['output'];
9672
+ };
9673
+ export type SandboxArtifactQuery = {
9674
+ __typename?: 'SandboxArtifactQuery';
9675
+ byId: SandboxArtifact;
9676
+ };
9677
+ export type SandboxArtifactQuery_ByIdArgs = {
9678
+ sandboxArtifactId: Scalars['ID']['input'];
9679
+ };
9680
+ export type SandboxArtifactUploadSession = {
9681
+ __typename?: 'SandboxArtifactUploadSession';
9682
+ headers: Scalars['JSONObject']['output'];
9683
+ url: Scalars['String']['output'];
9684
+ };
9645
9685
  export type SandboxConnection = {
9646
9686
  __typename?: 'SandboxConnection';
9647
9687
  edges: Array<SandboxEdge>;
@@ -9657,14 +9697,23 @@ export type SandboxFilterInput = {
9657
9697
  };
9658
9698
  export type SandboxMutation = {
9659
9699
  __typename?: 'SandboxMutation';
9700
+ createArtifactUploadSession: CreateSandboxArtifactUploadSessionResult;
9660
9701
  createSandbox: Sandbox;
9702
+ finalizeArtifact: SandboxArtifact;
9661
9703
  markSandboxReady: Sandbox;
9662
9704
  stopSandbox: Sandbox;
9663
9705
  touchSandbox: Sandbox;
9664
9706
  };
9707
+ export type SandboxMutation_CreateArtifactUploadSessionArgs = {
9708
+ input: CreateSandboxArtifactUploadSessionInput;
9709
+ sandboxId: Scalars['ID']['input'];
9710
+ };
9665
9711
  export type SandboxMutation_CreateSandboxArgs = {
9666
9712
  input: CreateSandboxInput;
9667
9713
  };
9714
+ export type SandboxMutation_FinalizeArtifactArgs = {
9715
+ artifactId: Scalars['ID']['input'];
9716
+ };
9668
9717
  export type SandboxMutation_MarkSandboxReadyArgs = {
9669
9718
  sandboxId: Scalars['ID']['input'];
9670
9719
  };
@@ -12281,6 +12330,8 @@ export type WorkflowDeviceTestCaseHistory_TimeSeriesArgs = {
12281
12330
  };
12282
12331
  export type WorkflowDeviceTestCaseHistoryFiltersInput = {
12283
12332
  gitRefs?: InputMaybe<Array<Scalars['String']['input']>>;
12333
+ /** Runs whose platform is unknown match no platforms filter. */
12334
+ platforms?: InputMaybe<Array<AppPlatform>>;
12284
12335
  workflowIds?: InputMaybe<Array<Scalars['ID']['input']>>;
12285
12336
  };
12286
12337
  export type WorkflowDeviceTestCaseInsights = {
@@ -12321,6 +12372,8 @@ export type WorkflowDeviceTestCaseInsightsFacets = {
12321
12372
  };
12322
12373
  export type WorkflowDeviceTestCaseInsightsFiltersInput = {
12323
12374
  gitRefs?: InputMaybe<Array<Scalars['String']['input']>>;
12375
+ /** Runs whose platform is unknown match no platforms filter. */
12376
+ platforms?: InputMaybe<Array<AppPlatform>>;
12324
12377
  statuses?: InputMaybe<Array<WorkflowDeviceTestCaseStatusFilter>>;
12325
12378
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
12326
12379
  workflowIds?: InputMaybe<Array<Scalars['ID']['input']>>;
@@ -12365,6 +12418,7 @@ export type WorkflowDeviceTestCaseInsightsTimespanInput = {
12365
12418
  * pair on each metric.
12366
12419
  *
12367
12420
  * totalRuns = passedCleanCount + flakyCount + failedCount (over is_final_attempt=1 rows).
12421
+ * platforms splits totalRuns by platform.
12368
12422
  * distinctFlakyTestCount cannot be derived in the frontend from per-test rows
12369
12423
  * because pagination means the frontend doesn't see all test paths.
12370
12424
  */
@@ -12376,6 +12430,21 @@ export type WorkflowDeviceTestCaseInsightsTotals = {
12376
12430
  flakyCount: WorkflowDeviceTestCaseInsightsMetric;
12377
12431
  p90DurationMs: WorkflowDeviceTestCaseInsightsNullableMetric;
12378
12432
  passedCleanCount: WorkflowDeviceTestCaseInsightsMetric;
12433
+ /**
12434
+ * One entry per platform with runs in the current or previous window, in the order iOS,
12435
+ * Android, unknown.
12436
+ */
12437
+ platforms: Array<WorkflowDeviceTestCasePlatformTotals>;
12438
+ totalRuns: WorkflowDeviceTestCaseInsightsMetric;
12439
+ };
12440
+ export type WorkflowDeviceTestCasePlatformTotals = {
12441
+ __typename?: 'WorkflowDeviceTestCasePlatformTotals';
12442
+ distinctTestCount: WorkflowDeviceTestCaseInsightsMetric;
12443
+ /**
12444
+ * Null for runs whose platform could not be derived: Maestro runs in custom jobs, and
12445
+ * runs ingested before the platform was recorded.
12446
+ */
12447
+ platform?: Maybe<AppPlatform>;
12379
12448
  totalRuns: WorkflowDeviceTestCaseInsightsMetric;
12380
12449
  };
12381
12450
  /**
@@ -22668,6 +22737,20 @@ export type WorkflowDeviceTestCaseInsightsByAppIdQuery = {
22668
22737
  currentValue?: number | null;
22669
22738
  previousValue?: number | null;
22670
22739
  };
22740
+ platforms: Array<{
22741
+ __typename?: 'WorkflowDeviceTestCasePlatformTotals';
22742
+ platform?: AppPlatform | null;
22743
+ totalRuns: {
22744
+ __typename?: 'WorkflowDeviceTestCaseInsightsMetric';
22745
+ currentValue: number;
22746
+ previousValue: number;
22747
+ };
22748
+ distinctTestCount: {
22749
+ __typename?: 'WorkflowDeviceTestCaseInsightsMetric';
22750
+ currentValue: number;
22751
+ previousValue: number;
22752
+ };
22753
+ }>;
22671
22754
  };
22672
22755
  timeSeries: Array<{
22673
22756
  __typename?: 'WorkflowDeviceTestCaseInsightsBucket';
@@ -45,6 +45,17 @@ exports.WorkflowDeviceTestCaseInsightsQuery = {
45
45
  currentValue
46
46
  previousValue
47
47
  }
48
+ platforms {
49
+ platform
50
+ totalRuns {
51
+ currentValue
52
+ previousValue
53
+ }
54
+ distinctTestCount {
55
+ currentValue
56
+ previousValue
57
+ }
58
+ }
48
59
  }
49
60
  timeSeries(granularity: $granularity) {
50
61
  bucketStartAt
@@ -1,15 +1,22 @@
1
- import { WorkflowDeviceTestCaseInsightsTimeSeriesGranularity, WorkflowDeviceTestCaseStatus } from '../../graphql/generated';
1
+ import { AppPlatform, WorkflowDeviceTestCaseInsightsTimeSeriesGranularity, WorkflowDeviceTestCaseStatus } from '../../graphql/generated';
2
2
  import { AppWithMaestroFlowHistoryObject, AppWithMaestroInsightsObject } from '../../graphql/queries/WorkflowDeviceTestCaseInsightsQuery';
3
3
  import { InsightsTimespanFields } from '../../insights/formatTimespan';
4
4
  import { AppliedMaestroInsightsFilters } from './maestroFilters';
5
5
  import { MaestroSortDirection, MaestroSortOption } from './maestroSort';
6
6
  import { InsightsMetricSummary, NullableMetricSummary } from '../../insights/metrics';
7
+ /** Runs on one platform; `platform` is null for runs whose platform is not recorded. */
8
+ export interface MaestroPlatformTotals {
9
+ platform: AppPlatform | null;
10
+ totalRuns: InsightsMetricSummary;
11
+ distinctFlows: InsightsMetricSummary;
12
+ }
7
13
  /** The Maestro tab's overview tiles. */
8
14
  export interface MaestroInsightsTotals {
9
15
  totalRuns: InsightsMetricSummary;
10
16
  passRatePercent: InsightsMetricSummary;
11
17
  distinctFlakyFlows: InsightsMetricSummary;
12
18
  avgDurationMs: NullableMetricSummary;
19
+ platforms: MaestroPlatformTotals[];
13
20
  }
14
21
  /** The tiles of one flow's detail view, which shows no previous-period comparison. */
15
22
  export interface MaestroFlowTotals {
@@ -69,7 +76,7 @@ export interface MaestroFlowHistorySummary extends InsightsTimespanFields {
69
76
  appFullName: string;
70
77
  flowPath: string;
71
78
  granularity: WorkflowDeviceTestCaseInsightsTimeSeriesGranularity;
72
- filters?: Pick<AppliedMaestroInsightsFilters, 'workflows' | 'gitRef'>;
79
+ filters?: Pick<AppliedMaestroInsightsFilters, 'workflows' | 'gitRef' | 'platforms'>;
73
80
  totals: MaestroFlowTotals;
74
81
  runsOverTime: MaestroInsightsBucket[];
75
82
  errorPatterns: MaestroErrorPatternSummary[];
@@ -13,6 +13,7 @@ const indent_string_1 = tslib_1.__importDefault(require("indent-string"));
13
13
  const formatRunsOverTime_1 = require("../../insights/formatRunsOverTime");
14
14
  const formatTimespan_1 = require("../../insights/formatTimespan");
15
15
  const formatFilters_1 = require("../../insights/formatFilters");
16
+ const platform_1 = require("../../platform");
16
17
  const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
17
18
  const renderTextTable_1 = tslib_1.__importDefault(require("../../utils/renderTextTable"));
18
19
  const terminalText_1 = require("../../utils/terminalText");
@@ -84,6 +85,11 @@ function toOverviewTotals(totals) {
84
85
  },
85
86
  distinctFlakyFlows: (0, metrics_1.toMetricSummary)(totals.distinctFlakyTestCount),
86
87
  avgDurationMs: (0, metrics_1.toNullableMetricSummary)(totals.avgDurationMs),
88
+ platforms: totals.platforms.map(entry => ({
89
+ platform: entry.platform ?? null,
90
+ totalRuns: (0, metrics_1.toMetricSummary)(entry.totalRuns),
91
+ distinctFlows: (0, metrics_1.toMetricSummary)(entry.distinctTestCount),
92
+ })),
87
93
  };
88
94
  }
89
95
  function toFlowTotals(totals) {
@@ -142,6 +148,7 @@ function buildMaestroInsightsTable(summary) {
142
148
  sections.push('');
143
149
  sections.push(chalk_1.default.bold('Overview (compared with the previous period):'));
144
150
  sections.push((0, formatFields_1.default)(buildOverviewTotalsFields(summary.totals)));
151
+ sections.push(...buildPlatformTotalsSection(summary.totals.platforms));
145
152
  sections.push(...buildMaestroRunsOverTimeSection(summary.runsOverTime, summary.granularity));
146
153
  sections.push('');
147
154
  if (summary.flows.length === 0) {
@@ -208,6 +215,22 @@ function buildOverviewTotalsFields(totals) {
208
215
  },
209
216
  ];
210
217
  }
218
+ function buildPlatformTotalsSection(platforms) {
219
+ if (platforms.length === 0) {
220
+ return [];
221
+ }
222
+ return [
223
+ '',
224
+ chalk_1.default.bold('By platform (compared with the previous period):'),
225
+ (0, formatFields_1.default)(platforms.flatMap(entry => {
226
+ const name = entry.platform === null ? 'Unknown' : platform_1.appPlatformDisplayNames[entry.platform];
227
+ return [
228
+ { label: `${name} runs`, value: (0, metrics_1.formatCountWithTrend)(entry.totalRuns) },
229
+ { label: `${name} flows`, value: (0, metrics_1.formatCountWithTrend)(entry.distinctFlows) },
230
+ ];
231
+ })),
232
+ ];
233
+ }
211
234
  function buildFlowTotalsFields(totals) {
212
235
  return [
213
236
  { label: 'Maestro runs', value: totals.totalRuns.toLocaleString() },
@@ -270,6 +293,7 @@ function formatFilters(filters) {
270
293
  ['workflows', filters.workflows],
271
294
  ['statuses', filters.statuses],
272
295
  ['tags', filters.tags],
296
+ ['platforms', filters.platforms?.map(platform => platform_1.appPlatformDisplayNames[platform])],
273
297
  ['search', filters.search],
274
298
  ['git ref', filters.gitRef],
275
299
  ]);
@@ -1,5 +1,6 @@
1
+ import { Platform } from '@expo/eas-build-job';
1
2
  import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
- import { WorkflowDeviceTestCaseHistoryFiltersInput, WorkflowDeviceTestCaseInsightsFiltersInput } from '../../graphql/generated';
3
+ import { AppPlatform, WorkflowDeviceTestCaseHistoryFiltersInput, WorkflowDeviceTestCaseInsightsFiltersInput } from '../../graphql/generated';
3
4
  /** Statuses as the dashboard names them; `PASSED` means passed on the first attempt. */
4
5
  export declare const MAESTRO_STATUS_OPTIONS: readonly ["PASSED", "FLAKY", "FAILED"];
5
6
  export type MaestroStatusOption = (typeof MAESTRO_STATUS_OPTIONS)[number];
@@ -7,17 +8,18 @@ export interface MaestroInsightsFilterFlags {
7
8
  workflow?: string[];
8
9
  status?: MaestroStatusOption[];
9
10
  tag?: string[];
11
+ platform?: Platform[];
10
12
  search?: string;
11
13
  'git-ref'?: string;
12
14
  }
13
- /** The filters as the user typed them, before workflow file names are resolved to IDs. */
14
15
  export interface AppliedMaestroInsightsFilters {
15
16
  workflows?: string[];
16
17
  statuses?: MaestroStatusOption[];
17
18
  tags?: string[];
19
+ platforms?: AppPlatform[];
18
20
  search?: string;
19
21
  gitRef?: string;
20
22
  }
21
- export declare function resolveMaestroHistoryFiltersInputAsync(graphqlClient: ExpoGraphqlClient, appId: string, flags: Pick<MaestroInsightsFilterFlags, 'workflow' | 'git-ref'>): Promise<WorkflowDeviceTestCaseHistoryFiltersInput | undefined>;
23
+ export declare function resolveMaestroHistoryFiltersInputAsync(graphqlClient: ExpoGraphqlClient, appId: string, flags: Pick<MaestroInsightsFilterFlags, 'workflow' | 'git-ref' | 'platform'>): Promise<WorkflowDeviceTestCaseHistoryFiltersInput | undefined>;
22
24
  export declare function resolveMaestroInsightsFiltersInputAsync(graphqlClient: ExpoGraphqlClient, appId: string, flags: MaestroInsightsFilterFlags): Promise<WorkflowDeviceTestCaseInsightsFiltersInput | undefined>;
23
25
  export declare function getAppliedMaestroInsightsFilters(flags: MaestroInsightsFilterFlags): AppliedMaestroInsightsFilters | undefined;
@@ -5,6 +5,7 @@ exports.resolveMaestroHistoryFiltersInputAsync = resolveMaestroHistoryFiltersInp
5
5
  exports.resolveMaestroInsightsFiltersInputAsync = resolveMaestroInsightsFiltersInputAsync;
6
6
  exports.getAppliedMaestroInsightsFilters = getAppliedMaestroInsightsFilters;
7
7
  const generated_1 = require("../../graphql/generated");
8
+ const AppPlatform_1 = require("../../graphql/types/AppPlatform");
8
9
  const filters_1 = require("./filters");
9
10
  /** Statuses as the dashboard names them; `PASSED` means passed on the first attempt. */
10
11
  exports.MAESTRO_STATUS_OPTIONS = ['PASSED', 'FLAKY', 'FAILED'];
@@ -21,6 +22,9 @@ async function resolveMaestroHistoryFiltersInputAsync(graphqlClient, appId, flag
21
22
  if (flags['git-ref']) {
22
23
  input.gitRefs = [(0, filters_1.normalizeGitRef)(flags['git-ref'])];
23
24
  }
25
+ if (flags.platform?.length) {
26
+ input.platforms = flags.platform.map(AppPlatform_1.toAppPlatform);
27
+ }
24
28
  return Object.keys(input).length === 0 ? undefined : input;
25
29
  }
26
30
  async function resolveMaestroInsightsFiltersInputAsync(graphqlClient, appId, flags) {
@@ -40,6 +44,7 @@ function getAppliedMaestroInsightsFilters(flags) {
40
44
  ...(flags.workflow?.length ? { workflows: flags.workflow } : {}),
41
45
  ...(flags.status?.length ? { statuses: flags.status } : {}),
42
46
  ...(flags.tag?.length ? { tags: flags.tag } : {}),
47
+ ...(flags.platform?.length ? { platforms: flags.platform.map(AppPlatform_1.toAppPlatform) } : {}),
43
48
  ...(flags.search ? { search: flags.search } : {}),
44
49
  ...(flags['git-ref'] ? { gitRef: (0, filters_1.normalizeGitRef)(flags['git-ref']) } : {}),
45
50
  };
@@ -4118,7 +4118,7 @@
4118
4118
  "required": false
4119
4119
  }
4120
4120
  },
4121
- "description": "protect a channel so only account admins can publish to it",
4121
+ "description": "protect a channel so only Release Managers, Admins, and Owners can publish to it",
4122
4122
  "flags": {
4123
4123
  "json": {
4124
4124
  "description": "Enable JSON output, non-JSON messages will be printed to stderr. Implies --non-interactive.",
@@ -4457,7 +4457,7 @@
4457
4457
  "required": false
4458
4458
  }
4459
4459
  },
4460
- "description": "remove a channel's admin-only publishing restriction",
4460
+ "description": "remove a channel's protected publishing restriction",
4461
4461
  "flags": {
4462
4462
  "json": {
4463
4463
  "description": "Enable JSON output, non-JSON messages will be printed to stderr. Implies --non-interactive.",
@@ -16201,6 +16201,17 @@
16201
16201
  "multiple": false,
16202
16202
  "type": "option"
16203
16203
  },
16204
+ "platform": {
16205
+ "description": "Only include flow runs on this platform (can be specified multiple times).",
16206
+ "name": "platform",
16207
+ "hasDynamicHelp": false,
16208
+ "multiple": true,
16209
+ "options": [
16210
+ "ios",
16211
+ "android"
16212
+ ],
16213
+ "type": "option"
16214
+ },
16204
16215
  "status": {
16205
16216
  "description": "Only include flow runs with this status (can be specified multiple times). PASSED means passed on the first attempt.",
16206
16217
  "exclusive": [
@@ -16657,5 +16668,5 @@
16657
16668
  ]
16658
16669
  }
16659
16670
  },
16660
- "version": "24.13.0"
16671
+ "version": "24.14.0"
16661
16672
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eas-cli",
3
- "version": "24.13.0",
3
+ "version": "24.14.0",
4
4
  "description": "EAS command line tool",
5
5
  "keywords": [
6
6
  "cli",
@@ -269,5 +269,5 @@
269
269
  "engines": {
270
270
  "node": "^20.18.3 || >=22.0.0"
271
271
  },
272
- "gitHead": "34e8b45bad68ab35e657a401b3d8d555bdce2512"
272
+ "gitHead": "102f06cc50e84dbdb0251c81de9899729c9fc485"
273
273
  }