eas-cli 24.5.0 → 24.6.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.
- package/README.md +133 -133
- package/build/build/build.js +71 -17
- package/build/build/logs.d.ts +10 -0
- package/build/build/logs.js +91 -0
- package/build/commandUtils/logs/format.d.ts +10 -0
- package/build/commandUtils/logs/format.js +21 -0
- package/build/commandUtils/logs/parseLogs.d.ts +7 -0
- package/build/commandUtils/{workflow/logs → logs}/parseLogs.js +1 -21
- package/build/commandUtils/logs/state.d.ts +14 -0
- package/build/commandUtils/logs/state.js +71 -0
- package/build/commandUtils/logs/types.d.ts +19 -0
- package/build/commandUtils/logs/types.js +2 -0
- package/build/commandUtils/logs/watcher.d.ts +23 -0
- package/build/commandUtils/logs/watcher.js +80 -0
- package/build/commandUtils/workflow/{logs/fetchLogs.d.ts → fetchLogs.d.ts} +2 -2
- package/build/commandUtils/workflow/{logs/fetchLogs.js → fetchLogs.js} +1 -1
- package/build/commandUtils/workflow/logs.d.ts +8 -0
- package/build/commandUtils/workflow/logs.js +43 -0
- package/build/commandUtils/workflow/stateMachine.d.ts +4 -3
- package/build/commandUtils/workflow/stateMachine.js +4 -3
- package/build/commandUtils/workflow/types.d.ts +0 -19
- package/build/commandUtils/workflow/utils.d.ts +3 -7
- package/build/commandUtils/workflow/utils.js +12 -29
- package/build/commands/go.js +15 -16
- package/build/credentials/manager/ManageIos.js +2 -2
- package/build/credentials/manager/SetUpIosBuildCredentials.js +2 -2
- package/build/graphql/generated.d.ts +206 -17
- package/build/graphql/generated.js +22 -2
- package/build/graphql/queries/UserQuery.d.ts +2 -1
- package/build/graphql/queries/UserQuery.js +39 -23
- package/build/graphql/types/Actor.d.ts +1 -0
- package/build/graphql/types/Actor.js +34 -0
- package/build/ora.d.ts +1 -0
- package/build/ora.js +5 -1
- package/build/utils/centrifuge.js +2 -0
- package/oclif.manifest.json +1101 -1101
- package/package.json +2 -2
- package/build/commandUtils/workflow/logs/parseLogs.d.ts +0 -14
- package/build/commandUtils/workflow/logs/watcher.d.ts +0 -32
- package/build/commandUtils/workflow/logs/watcher.js +0 -162
- package/build/user/actions.d.ts +0 -3
- package/build/user/actions.js +0 -9
|
@@ -3157,7 +3157,8 @@ export type AppObserveOverviewEngagementInput = {
|
|
|
3157
3157
|
};
|
|
3158
3158
|
export type AppObserveOverviewEngagementStat = {
|
|
3159
3159
|
__typename?: 'AppObserveOverviewEngagementStat';
|
|
3160
|
-
|
|
3160
|
+
/** Total for the equal-length window before startTime. Null when the window is longer than 45 days, since the previous period would fall outside the 90-day retention. */
|
|
3161
|
+
previousPeriodTotal?: Maybe<Scalars['Int']['output']>;
|
|
3161
3162
|
/** Per-bucket approximate uniques; buckets do not sum to `total`. */
|
|
3162
3163
|
series: Array<AppObserveOverviewEngagementBucket>;
|
|
3163
3164
|
total: Scalars['Int']['output'];
|
|
@@ -3172,12 +3173,13 @@ export type AppObserveOverviewStability = {
|
|
|
3172
3173
|
crashFreeUsers: Scalars['Float']['output'];
|
|
3173
3174
|
/** Distinct users that hit a fatal error in range. */
|
|
3174
3175
|
crashedUsers: Scalars['Int']['output'];
|
|
3175
|
-
/** Fatal exception events in the equal-length window before startTime. */
|
|
3176
|
-
previousPeriodCrashCount
|
|
3177
|
-
/** Same fractions for the equal-length window before startTime; null when it had no activity. */
|
|
3176
|
+
/** Fatal exception events in the equal-length window before startTime. Null when the window is longer than 45 days. */
|
|
3177
|
+
previousPeriodCrashCount?: Maybe<Scalars['Int']['output']>;
|
|
3178
|
+
/** Same fractions for the equal-length window before startTime; null when it had no activity, or when the window is longer than 45 days and the previous period falls outside the 90-day retention. */
|
|
3178
3179
|
previousPeriodCrashFreeSessions?: Maybe<Scalars['Float']['output']>;
|
|
3179
3180
|
previousPeriodCrashFreeUsers?: Maybe<Scalars['Float']['output']>;
|
|
3180
|
-
|
|
3181
|
+
/** Null when the window is longer than 45 days. */
|
|
3182
|
+
previousPeriodCrashedUsers?: Maybe<Scalars['Int']['output']>;
|
|
3181
3183
|
series: Array<AppObserveOverviewStabilityBucket>;
|
|
3182
3184
|
/** All exception events in range, for distinguishing quiet apps from crash-free ones. */
|
|
3183
3185
|
totalErrors: Scalars['Int']['output'];
|
|
@@ -3596,6 +3598,8 @@ export declare enum AppObserveUserEventListOrderByField {
|
|
|
3596
3598
|
export type AppObserveUserEventName = {
|
|
3597
3599
|
__typename?: 'AppObserveUserEventName';
|
|
3598
3600
|
count: Scalars['Int']['output'];
|
|
3601
|
+
firstSeenAt: Scalars['DateTime']['output'];
|
|
3602
|
+
lastSeenAt: Scalars['DateTime']['output'];
|
|
3599
3603
|
name: Scalars['String']['output'];
|
|
3600
3604
|
};
|
|
3601
3605
|
export type AppObserveUserEventNames = {
|
|
@@ -3622,6 +3626,8 @@ export type AppObserveUserEventNamesOrderBy = {
|
|
|
3622
3626
|
};
|
|
3623
3627
|
export declare enum AppObserveUserEventNamesOrderByField {
|
|
3624
3628
|
Count = "COUNT",
|
|
3629
|
+
FirstSeen = "FIRST_SEEN",
|
|
3630
|
+
LastSeen = "LAST_SEEN",
|
|
3625
3631
|
Name = "NAME"
|
|
3626
3632
|
}
|
|
3627
3633
|
export type AppObserveUserEventPropertyFilter = {
|
|
@@ -9202,6 +9208,7 @@ export type RootQuery = {
|
|
|
9202
9208
|
posthogIntegration: PostHogIntegrationQuery;
|
|
9203
9209
|
/** Top-level query object for querying Runtimes. */
|
|
9204
9210
|
runtimes: RuntimeQuery;
|
|
9211
|
+
sandboxes: SandboxQuery;
|
|
9205
9212
|
snack: SnackQuery;
|
|
9206
9213
|
/** Top-level query object for querying Expo status page services. */
|
|
9207
9214
|
statuspageService: StatuspageServiceQuery;
|
|
@@ -9410,6 +9417,31 @@ export type SsoUserDataInput = {
|
|
|
9410
9417
|
firstName?: InputMaybe<Scalars['String']['input']>;
|
|
9411
9418
|
lastName?: InputMaybe<Scalars['String']['input']>;
|
|
9412
9419
|
};
|
|
9420
|
+
export type Sandbox = {
|
|
9421
|
+
__typename?: 'Sandbox';
|
|
9422
|
+
app: App;
|
|
9423
|
+
createdAt: Scalars['DateTime']['output'];
|
|
9424
|
+
finishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
9425
|
+
id: Scalars['ID']['output'];
|
|
9426
|
+
lastUsedAt: Scalars['DateTime']['output'];
|
|
9427
|
+
startedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
9428
|
+
status: SandboxStatus;
|
|
9429
|
+
turtleJobRun: JobRun;
|
|
9430
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
9431
|
+
};
|
|
9432
|
+
export type SandboxQuery = {
|
|
9433
|
+
__typename?: 'SandboxQuery';
|
|
9434
|
+
byId: Sandbox;
|
|
9435
|
+
};
|
|
9436
|
+
export type SandboxQuery_ByIdArgs = {
|
|
9437
|
+
sandboxId: Scalars['ID']['input'];
|
|
9438
|
+
};
|
|
9439
|
+
export declare enum SandboxStatus {
|
|
9440
|
+
Errored = "ERRORED",
|
|
9441
|
+
Running = "RUNNING",
|
|
9442
|
+
Starting = "STARTING",
|
|
9443
|
+
Stopped = "STOPPED"
|
|
9444
|
+
}
|
|
9413
9445
|
export type SecondFactorBooleanResult = {
|
|
9414
9446
|
__typename?: 'SecondFactorBooleanResult';
|
|
9415
9447
|
success: Scalars['Boolean']['output'];
|
|
@@ -9847,6 +9879,32 @@ export type SubscriptionDetails = {
|
|
|
9847
9879
|
export type SubscriptionDetails_PlanEnablementArgs = {
|
|
9848
9880
|
serviceMetric: EasServiceMetric;
|
|
9849
9881
|
};
|
|
9882
|
+
/** An unresolved finding from Supabase's Security or Performance Advisor (database linter). */
|
|
9883
|
+
export type SupabaseAdvisorLint = {
|
|
9884
|
+
__typename?: 'SupabaseAdvisorLint';
|
|
9885
|
+
/** Stable identifier for this finding on this project. */
|
|
9886
|
+
cacheKey: Scalars['String']['output'];
|
|
9887
|
+
description: Scalars['String']['output'];
|
|
9888
|
+
/** Project-specific explanation naming the affected schema object. */
|
|
9889
|
+
detail: Scalars['String']['output'];
|
|
9890
|
+
/** Affected schema object, e.g. public.todos, when the lint names one. */
|
|
9891
|
+
entity?: Maybe<Scalars['String']['output']>;
|
|
9892
|
+
level: SupabaseAdvisorLintLevel;
|
|
9893
|
+
/** Lint rule identifier, e.g. rls_disabled_in_public. */
|
|
9894
|
+
name: Scalars['String']['output'];
|
|
9895
|
+
/** Link to the remediation guide, when Supabase provides one. */
|
|
9896
|
+
remediation?: Maybe<Scalars['String']['output']>;
|
|
9897
|
+
title: Scalars['String']['output'];
|
|
9898
|
+
};
|
|
9899
|
+
export declare enum SupabaseAdvisorLintLevel {
|
|
9900
|
+
Error = "ERROR",
|
|
9901
|
+
Info = "INFO",
|
|
9902
|
+
Warn = "WARN"
|
|
9903
|
+
}
|
|
9904
|
+
export declare enum SupabaseAdvisorType {
|
|
9905
|
+
Performance = "PERFORMANCE",
|
|
9906
|
+
Security = "SECURITY"
|
|
9907
|
+
}
|
|
9850
9908
|
export type SupabaseConnection = {
|
|
9851
9909
|
__typename?: 'SupabaseConnection';
|
|
9852
9910
|
account: Account;
|
|
@@ -9909,6 +9967,12 @@ export type SupabaseOrganization = {
|
|
|
9909
9967
|
};
|
|
9910
9968
|
export type SupabaseProject = {
|
|
9911
9969
|
__typename?: 'SupabaseProject';
|
|
9970
|
+
/**
|
|
9971
|
+
* Live unresolved lints from the project's Security or Performance Advisor, ordered by severity.
|
|
9972
|
+
* Readable with view permission; a token refresh triggered by a read is persisted with elevated
|
|
9973
|
+
* privileges. Null when Supabase cannot be reached.
|
|
9974
|
+
*/
|
|
9975
|
+
advisorLints?: Maybe<Array<SupabaseAdvisorLint>>;
|
|
9912
9976
|
app: App;
|
|
9913
9977
|
createdAt: Scalars['DateTime']['output'];
|
|
9914
9978
|
id: Scalars['ID']['output'];
|
|
@@ -9919,6 +9983,9 @@ export type SupabaseProject = {
|
|
|
9919
9983
|
supabaseRegion: Scalars['String']['output'];
|
|
9920
9984
|
updatedAt: Scalars['DateTime']['output'];
|
|
9921
9985
|
};
|
|
9986
|
+
export type SupabaseProject_AdvisorLintsArgs = {
|
|
9987
|
+
type: SupabaseAdvisorType;
|
|
9988
|
+
};
|
|
9922
9989
|
export type SupabaseProjectMutation = {
|
|
9923
9990
|
__typename?: 'SupabaseProjectMutation';
|
|
9924
9991
|
/** Removes the Expo-side project link only; the Supabase project is preserved. */
|
|
@@ -21856,8 +21923,8 @@ export type CurrentUserQuery = {
|
|
|
21856
21923
|
__typename?: 'RootQuery';
|
|
21857
21924
|
meActor?: {
|
|
21858
21925
|
__typename: 'PartnerActor';
|
|
21859
|
-
username: string;
|
|
21860
21926
|
id: string;
|
|
21927
|
+
username: string;
|
|
21861
21928
|
featureGates: any;
|
|
21862
21929
|
isExpoAdmin: boolean;
|
|
21863
21930
|
accounts: Array<{
|
|
@@ -21880,8 +21947,8 @@ export type CurrentUserQuery = {
|
|
|
21880
21947
|
}>;
|
|
21881
21948
|
} | {
|
|
21882
21949
|
__typename: 'Robot';
|
|
21883
|
-
firstName?: string | null;
|
|
21884
21950
|
id: string;
|
|
21951
|
+
firstName?: string | null;
|
|
21885
21952
|
featureGates: any;
|
|
21886
21953
|
isExpoAdmin: boolean;
|
|
21887
21954
|
accounts: Array<{
|
|
@@ -21904,11 +21971,11 @@ export type CurrentUserQuery = {
|
|
|
21904
21971
|
}>;
|
|
21905
21972
|
} | {
|
|
21906
21973
|
__typename: 'SSOUser';
|
|
21907
|
-
username: string;
|
|
21908
21974
|
id: string;
|
|
21975
|
+
username: string;
|
|
21909
21976
|
featureGates: any;
|
|
21910
21977
|
isExpoAdmin: boolean;
|
|
21911
|
-
|
|
21978
|
+
accounts: Array<{
|
|
21912
21979
|
__typename?: 'Account';
|
|
21913
21980
|
id: string;
|
|
21914
21981
|
name: string;
|
|
@@ -21925,7 +21992,14 @@ export type CurrentUserQuery = {
|
|
|
21925
21992
|
__typename?: 'UserPermission';
|
|
21926
21993
|
role: Role;
|
|
21927
21994
|
};
|
|
21928
|
-
}
|
|
21995
|
+
}>;
|
|
21996
|
+
} | {
|
|
21997
|
+
__typename: 'User';
|
|
21998
|
+
id: string;
|
|
21999
|
+
email: string;
|
|
22000
|
+
username: string;
|
|
22001
|
+
featureGates: any;
|
|
22002
|
+
isExpoAdmin: boolean;
|
|
21929
22003
|
accounts: Array<{
|
|
21930
22004
|
__typename?: 'Account';
|
|
21931
22005
|
id: string;
|
|
@@ -21944,13 +22018,22 @@ export type CurrentUserQuery = {
|
|
|
21944
22018
|
role: Role;
|
|
21945
22019
|
};
|
|
21946
22020
|
}>;
|
|
22021
|
+
} | null;
|
|
22022
|
+
};
|
|
22023
|
+
export type CurrentUserWithPrimaryAccountQueryVariables = Exact<{
|
|
22024
|
+
[key: string]: never;
|
|
22025
|
+
}>;
|
|
22026
|
+
export type CurrentUserWithPrimaryAccountQuery = {
|
|
22027
|
+
__typename?: 'RootQuery';
|
|
22028
|
+
meActor?: {
|
|
22029
|
+
__typename: 'PartnerActor';
|
|
22030
|
+
id: string;
|
|
21947
22031
|
} | {
|
|
21948
|
-
__typename: '
|
|
21949
|
-
|
|
21950
|
-
|
|
22032
|
+
__typename: 'Robot';
|
|
22033
|
+
id: string;
|
|
22034
|
+
} | {
|
|
22035
|
+
__typename: 'SSOUser';
|
|
21951
22036
|
id: string;
|
|
21952
|
-
featureGates: any;
|
|
21953
|
-
isExpoAdmin: boolean;
|
|
21954
22037
|
primaryAccount: {
|
|
21955
22038
|
__typename?: 'Account';
|
|
21956
22039
|
id: string;
|
|
@@ -21969,7 +22052,10 @@ export type CurrentUserQuery = {
|
|
|
21969
22052
|
role: Role;
|
|
21970
22053
|
};
|
|
21971
22054
|
};
|
|
21972
|
-
|
|
22055
|
+
} | {
|
|
22056
|
+
__typename: 'User';
|
|
22057
|
+
id: string;
|
|
22058
|
+
primaryAccount: {
|
|
21973
22059
|
__typename?: 'Account';
|
|
21974
22060
|
id: string;
|
|
21975
22061
|
name: string;
|
|
@@ -21986,7 +22072,7 @@ export type CurrentUserQuery = {
|
|
|
21986
22072
|
__typename?: 'UserPermission';
|
|
21987
22073
|
role: Role;
|
|
21988
22074
|
};
|
|
21989
|
-
}
|
|
22075
|
+
};
|
|
21990
22076
|
} | null;
|
|
21991
22077
|
};
|
|
21992
22078
|
export type WebhooksByAppIdQueryVariables = Exact<{
|
|
@@ -22984,6 +23070,108 @@ export type AccountUsageMetricFragment = {
|
|
|
22984
23070
|
metricType: UsageMetricType;
|
|
22985
23071
|
value: number;
|
|
22986
23072
|
};
|
|
23073
|
+
type MeActorFragment_PartnerActor = {
|
|
23074
|
+
__typename: 'PartnerActor';
|
|
23075
|
+
username: string;
|
|
23076
|
+
id: string;
|
|
23077
|
+
featureGates: any;
|
|
23078
|
+
isExpoAdmin: boolean;
|
|
23079
|
+
accounts: Array<{
|
|
23080
|
+
__typename?: 'Account';
|
|
23081
|
+
id: string;
|
|
23082
|
+
name: string;
|
|
23083
|
+
ownerUserActor?: {
|
|
23084
|
+
__typename?: 'SSOUser';
|
|
23085
|
+
id: string;
|
|
23086
|
+
username: string;
|
|
23087
|
+
} | {
|
|
23088
|
+
__typename?: 'User';
|
|
23089
|
+
id: string;
|
|
23090
|
+
username: string;
|
|
23091
|
+
} | null;
|
|
23092
|
+
viewerUserPermission: {
|
|
23093
|
+
__typename?: 'UserPermission';
|
|
23094
|
+
role: Role;
|
|
23095
|
+
};
|
|
23096
|
+
}>;
|
|
23097
|
+
};
|
|
23098
|
+
type MeActorFragment_Robot = {
|
|
23099
|
+
__typename: 'Robot';
|
|
23100
|
+
firstName?: string | null;
|
|
23101
|
+
id: string;
|
|
23102
|
+
featureGates: any;
|
|
23103
|
+
isExpoAdmin: boolean;
|
|
23104
|
+
accounts: Array<{
|
|
23105
|
+
__typename?: 'Account';
|
|
23106
|
+
id: string;
|
|
23107
|
+
name: string;
|
|
23108
|
+
ownerUserActor?: {
|
|
23109
|
+
__typename?: 'SSOUser';
|
|
23110
|
+
id: string;
|
|
23111
|
+
username: string;
|
|
23112
|
+
} | {
|
|
23113
|
+
__typename?: 'User';
|
|
23114
|
+
id: string;
|
|
23115
|
+
username: string;
|
|
23116
|
+
} | null;
|
|
23117
|
+
viewerUserPermission: {
|
|
23118
|
+
__typename?: 'UserPermission';
|
|
23119
|
+
role: Role;
|
|
23120
|
+
};
|
|
23121
|
+
}>;
|
|
23122
|
+
};
|
|
23123
|
+
type MeActorFragment_SsoUser = {
|
|
23124
|
+
__typename: 'SSOUser';
|
|
23125
|
+
username: string;
|
|
23126
|
+
id: string;
|
|
23127
|
+
featureGates: any;
|
|
23128
|
+
isExpoAdmin: boolean;
|
|
23129
|
+
accounts: Array<{
|
|
23130
|
+
__typename?: 'Account';
|
|
23131
|
+
id: string;
|
|
23132
|
+
name: string;
|
|
23133
|
+
ownerUserActor?: {
|
|
23134
|
+
__typename?: 'SSOUser';
|
|
23135
|
+
id: string;
|
|
23136
|
+
username: string;
|
|
23137
|
+
} | {
|
|
23138
|
+
__typename?: 'User';
|
|
23139
|
+
id: string;
|
|
23140
|
+
username: string;
|
|
23141
|
+
} | null;
|
|
23142
|
+
viewerUserPermission: {
|
|
23143
|
+
__typename?: 'UserPermission';
|
|
23144
|
+
role: Role;
|
|
23145
|
+
};
|
|
23146
|
+
}>;
|
|
23147
|
+
};
|
|
23148
|
+
type MeActorFragment_User = {
|
|
23149
|
+
__typename: 'User';
|
|
23150
|
+
email: string;
|
|
23151
|
+
username: string;
|
|
23152
|
+
id: string;
|
|
23153
|
+
featureGates: any;
|
|
23154
|
+
isExpoAdmin: boolean;
|
|
23155
|
+
accounts: Array<{
|
|
23156
|
+
__typename?: 'Account';
|
|
23157
|
+
id: string;
|
|
23158
|
+
name: string;
|
|
23159
|
+
ownerUserActor?: {
|
|
23160
|
+
__typename?: 'SSOUser';
|
|
23161
|
+
id: string;
|
|
23162
|
+
username: string;
|
|
23163
|
+
} | {
|
|
23164
|
+
__typename?: 'User';
|
|
23165
|
+
id: string;
|
|
23166
|
+
username: string;
|
|
23167
|
+
} | null;
|
|
23168
|
+
viewerUserPermission: {
|
|
23169
|
+
__typename?: 'UserPermission';
|
|
23170
|
+
role: Role;
|
|
23171
|
+
};
|
|
23172
|
+
}>;
|
|
23173
|
+
};
|
|
23174
|
+
export type MeActorFragment = MeActorFragment_PartnerActor | MeActorFragment_Robot | MeActorFragment_SsoUser | MeActorFragment_User;
|
|
22987
23175
|
export type AppFragment = {
|
|
22988
23176
|
__typename?: 'App';
|
|
22989
23177
|
id: string;
|
|
@@ -25287,3 +25475,4 @@ export type PaginatedWorkerDeploymentAliasesQuery = {
|
|
|
25287
25475
|
};
|
|
25288
25476
|
};
|
|
25289
25477
|
};
|
|
25478
|
+
export {};
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BuildAnnotationType = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProviderIdentifier = exports.AuthProtocolType = exports.AuditLogsExportFormat = exports.AssetMetadataStatus = exports.AssetMapSourceType = exports.AppleTeamType = exports.AppleDeviceClass = exports.AppUploadSessionType = exports.AppStoreConnectWorkflowConnectionStatus = exports.AppStoreConnectUserRole = exports.AppStoreConnectBuildUploadState = exports.AppStoreConnectBuildProcessingState = exports.AppProfileImageWidth = exports.AppPrivacy = exports.AppPlatform = exports.AppObserveUserEventNamesOrderByField = exports.AppObserveUserEventListOrderByField = exports.AppObserveUserEventBreakdownDimension = exports.AppObserveUpdatesOrderByField = exports.AppObserveUpdatesOrderByDirection = exports.AppObservePropertyType = exports.AppObservePlatform = exports.AppObserveOrderDirection = exports.AppObserveNavigationRoutesOrderByField = exports.AppObserveMetricsListOrderByField = exports.AppObserveLogsOrderByField = exports.AppObserveEventsOrderByField = exports.AppObserveEventsOrderByDirection = exports.AppObserveErrorSeverity = exports.AppObserveErrorOccurrencesOrderByField = exports.AppObserveErrorKind = exports.AppObserveErrorGroupsOrderBy = exports.AppObserveErrorBreakdownDimension = exports.AppObserveCustomEventNamesOrderByField = exports.AppObserveCustomEventNamesOrderByDirection = exports.AppObserveCustomEventListOrderByField = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.AgentProviderConnectionStatus = exports.AgentProviderConnectionAuthorizationStatus = exports.AgentProvider = exports.ActivityTimelineProjectActivityType = exports.AccountUploadSessionType = exports.AccountMemberType = exports.AccountAppsSortByField = void 0;
|
|
10
10
|
exports.GitHubAppInstallationStatus = exports.GitHubAppInstallationAccountType = exports.GitHubAppEnvironment = exports.FingerprintSourceType = exports.Feature = exports.Experiment = exports.ExitInterviewOutcome = exports.ExitInterviewMessageRole = exports.EnvironmentVariableVisibility = exports.EnvironmentVariableScope = exports.EnvironmentSecretType = exports.EntityTypeName = exports.EchoVersionSource = exports.EchoTurnCompletionStatus = exports.EchoProjectVisibility = exports.EchoProjectUploadSessionType = exports.EchoProjectIconSource = exports.EchoMessageRole = exports.EchoMessagePartType = exports.EchoChatState = exports.EchoChangeType = exports.EchoBuildStatus = exports.EchoAgentType = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildWaiverType = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.DeviceRunSessionType = exports.DeviceRunSessionStatus = exports.DeviceRunSessionResourceClass = exports.DeviceRunSessionEgress = exports.DashboardViewPin = exports.CustomDomainStatus = exports.CustomDomainDnsRecordType = exports.CrashSampleFor = exports.ContinentCode = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = void 0;
|
|
11
|
-
exports.
|
|
12
|
-
exports.WorkflowsInsightsRunsOverTimeGranularity = exports.WorkflowsInsightsExportFormat = exports.WorkflowRunTriggerEventType = exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkflowJobReviewDecision = exports.WorkflowDispatchInputType = exports.WorkflowDeviceTestCaseStatusFilter = exports.WorkflowDeviceTestCaseStatus = exports.WorkflowDeviceTestCaseStatSortField = exports.WorkflowDeviceTestCaseSortDirection = exports.WorkflowDeviceTestCaseInsightsTimeSeriesGranularity = exports.WorkflowArtifactStorageType = exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WorkerDeploymentCrashKind = exports.WebhookType = exports.UserSpecifiedAccountUsage = exports.UserEntityTypeName = exports.UserAgentPlatform = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.UpdatesTimelineItemType = exports.UpdateDiffReceiptStateValue = void 0;
|
|
11
|
+
exports.TurtleSshTargetType = exports.TargetEntityMutationType = exports.SupabaseAdvisorType = exports.SupabaseAdvisorLintLevel = exports.SubmissionStatus = exports.SubmissionPriority = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidReleaseStatus = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.SandboxStatus = exports.Role = exports.ResponseType = exports.ResponseStatusType = exports.ResponseCacheStatus = exports.ResourceClassExperiment = exports.RequestsOrderByField = exports.RequestsOrderByDirection = exports.RequestMethod = exports.RealtimeLogsTargetType = exports.ProjectArchiveSourceType = exports.PostHogRegion = exports.PostHogDeepLinkPurpose = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.OAuthProvider = exports.NotificationType = exports.NotificationEvent = exports.LocalBuildArchiveSourceType = exports.JobRunStatus = exports.JobRunPriority = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.InsightsFilterType = exports.GitHubJobRunTriggerType = exports.GitHubJobRunTriggerRunStatus = exports.GitHubJobRunJobType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubBuildTriggerExecutionBehavior = void 0;
|
|
12
|
+
exports.WorkflowsInsightsRunsOverTimeGranularity = exports.WorkflowsInsightsExportFormat = exports.WorkflowRunTriggerEventType = exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkflowJobReviewDecision = exports.WorkflowDispatchInputType = exports.WorkflowDeviceTestCaseStatusFilter = exports.WorkflowDeviceTestCaseStatus = exports.WorkflowDeviceTestCaseStatSortField = exports.WorkflowDeviceTestCaseSortDirection = exports.WorkflowDeviceTestCaseInsightsTimeSeriesGranularity = exports.WorkflowArtifactStorageType = exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WorkerDeploymentCrashKind = exports.WebhookType = exports.UserSpecifiedAccountUsage = exports.UserEntityTypeName = exports.UserAgentPlatform = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.UpdatesTimelineItemType = exports.UpdateDiffReceiptStateValue = exports.UpdateDiffReceiptOrderByField = exports.UpdateDiffReceiptOrderByDirection = exports.TurtleSshTransportType = void 0;
|
|
13
13
|
var AccountAppsSortByField;
|
|
14
14
|
(function (AccountAppsSortByField) {
|
|
15
15
|
AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
|
|
@@ -206,6 +206,8 @@ var AppObserveUserEventListOrderByField;
|
|
|
206
206
|
var AppObserveUserEventNamesOrderByField;
|
|
207
207
|
(function (AppObserveUserEventNamesOrderByField) {
|
|
208
208
|
AppObserveUserEventNamesOrderByField["Count"] = "COUNT";
|
|
209
|
+
AppObserveUserEventNamesOrderByField["FirstSeen"] = "FIRST_SEEN";
|
|
210
|
+
AppObserveUserEventNamesOrderByField["LastSeen"] = "LAST_SEEN";
|
|
209
211
|
AppObserveUserEventNamesOrderByField["Name"] = "NAME";
|
|
210
212
|
})(AppObserveUserEventNamesOrderByField || (exports.AppObserveUserEventNamesOrderByField = AppObserveUserEventNamesOrderByField = {}));
|
|
211
213
|
var AppPlatform;
|
|
@@ -993,6 +995,13 @@ var Role;
|
|
|
993
995
|
Role["Owner"] = "OWNER";
|
|
994
996
|
Role["ViewOnly"] = "VIEW_ONLY";
|
|
995
997
|
})(Role || (exports.Role = Role = {}));
|
|
998
|
+
var SandboxStatus;
|
|
999
|
+
(function (SandboxStatus) {
|
|
1000
|
+
SandboxStatus["Errored"] = "ERRORED";
|
|
1001
|
+
SandboxStatus["Running"] = "RUNNING";
|
|
1002
|
+
SandboxStatus["Starting"] = "STARTING";
|
|
1003
|
+
SandboxStatus["Stopped"] = "STOPPED";
|
|
1004
|
+
})(SandboxStatus || (exports.SandboxStatus = SandboxStatus = {}));
|
|
996
1005
|
var SecondFactorMethod;
|
|
997
1006
|
(function (SecondFactorMethod) {
|
|
998
1007
|
/** Google Authenticator (TOTP) */
|
|
@@ -1082,6 +1091,17 @@ var SubmissionStatus;
|
|
|
1082
1091
|
SubmissionStatus["InProgress"] = "IN_PROGRESS";
|
|
1083
1092
|
SubmissionStatus["InQueue"] = "IN_QUEUE";
|
|
1084
1093
|
})(SubmissionStatus || (exports.SubmissionStatus = SubmissionStatus = {}));
|
|
1094
|
+
var SupabaseAdvisorLintLevel;
|
|
1095
|
+
(function (SupabaseAdvisorLintLevel) {
|
|
1096
|
+
SupabaseAdvisorLintLevel["Error"] = "ERROR";
|
|
1097
|
+
SupabaseAdvisorLintLevel["Info"] = "INFO";
|
|
1098
|
+
SupabaseAdvisorLintLevel["Warn"] = "WARN";
|
|
1099
|
+
})(SupabaseAdvisorLintLevel || (exports.SupabaseAdvisorLintLevel = SupabaseAdvisorLintLevel = {}));
|
|
1100
|
+
var SupabaseAdvisorType;
|
|
1101
|
+
(function (SupabaseAdvisorType) {
|
|
1102
|
+
SupabaseAdvisorType["Performance"] = "PERFORMANCE";
|
|
1103
|
+
SupabaseAdvisorType["Security"] = "SECURITY";
|
|
1104
|
+
})(SupabaseAdvisorType || (exports.SupabaseAdvisorType = SupabaseAdvisorType = {}));
|
|
1085
1105
|
var TargetEntityMutationType;
|
|
1086
1106
|
(function (TargetEntityMutationType) {
|
|
1087
1107
|
TargetEntityMutationType["Create"] = "CREATE";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { CurrentUserQuery } from '../generated';
|
|
2
|
+
import { AccountFragment, CurrentUserQuery } from '../generated';
|
|
3
3
|
export declare const UserQuery: {
|
|
4
4
|
currentUserAsync(graphqlClient: ExpoGraphqlClient): Promise<CurrentUserQuery["meActor"]>;
|
|
5
|
+
requireCurrentUserPrimaryAccountAsync(graphqlClient: ExpoGraphqlClient): Promise<AccountFragment>;
|
|
5
6
|
};
|
|
@@ -6,6 +6,7 @@ const graphql_1 = require("graphql");
|
|
|
6
6
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
7
|
const client_1 = require("../client");
|
|
8
8
|
const Account_1 = require("../types/Account");
|
|
9
|
+
const Actor_1 = require("../types/Actor");
|
|
9
10
|
exports.UserQuery = {
|
|
10
11
|
async currentUserAsync(graphqlClient) {
|
|
11
12
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
@@ -14,35 +15,50 @@ exports.UserQuery = {
|
|
|
14
15
|
meActor {
|
|
15
16
|
__typename
|
|
16
17
|
id
|
|
17
|
-
...
|
|
18
|
-
email
|
|
19
|
-
}
|
|
20
|
-
... on UserActor {
|
|
21
|
-
username
|
|
22
|
-
primaryAccount {
|
|
23
|
-
id
|
|
24
|
-
...AccountFragment
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
... on Robot {
|
|
28
|
-
firstName
|
|
29
|
-
}
|
|
30
|
-
accounts {
|
|
31
|
-
id
|
|
32
|
-
...AccountFragment
|
|
33
|
-
}
|
|
34
|
-
... on PartnerActor {
|
|
35
|
-
username
|
|
36
|
-
}
|
|
37
|
-
featureGates
|
|
38
|
-
isExpoAdmin
|
|
18
|
+
...MeActorFragment
|
|
39
19
|
}
|
|
40
20
|
}
|
|
41
|
-
${(0, graphql_1.print)(
|
|
21
|
+
${(0, graphql_1.print)(Actor_1.MeActorFragmentNode)}
|
|
42
22
|
`, {}, {
|
|
43
23
|
additionalTypenames: ['User', 'SSOUser'],
|
|
44
24
|
})
|
|
45
25
|
.toPromise());
|
|
46
26
|
return data.meActor;
|
|
47
27
|
},
|
|
28
|
+
async requireCurrentUserPrimaryAccountAsync(graphqlClient) {
|
|
29
|
+
let data;
|
|
30
|
+
try {
|
|
31
|
+
data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
32
|
+
.query((0, graphql_tag_1.default) `
|
|
33
|
+
query CurrentUserWithPrimaryAccount {
|
|
34
|
+
meActor {
|
|
35
|
+
__typename
|
|
36
|
+
id
|
|
37
|
+
... on UserActor {
|
|
38
|
+
primaryAccount {
|
|
39
|
+
id
|
|
40
|
+
...AccountFragment
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
${(0, graphql_1.print)(Account_1.AccountFragmentNode)}
|
|
47
|
+
`, {}, {
|
|
48
|
+
additionalTypenames: ['User', 'SSOUser'],
|
|
49
|
+
})
|
|
50
|
+
.toPromise());
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
throw new Error('An error occurred while fetching the primary account of the current user. Check to ensure your session has sufficient scope on your primary account.');
|
|
54
|
+
}
|
|
55
|
+
const actor = data.meActor;
|
|
56
|
+
if (!actor) {
|
|
57
|
+
throw new Error('Must be logged in to perform this action.');
|
|
58
|
+
}
|
|
59
|
+
if (actor.__typename === 'User' || actor.__typename === 'SSOUser') {
|
|
60
|
+
return actor.primaryAccount;
|
|
61
|
+
}
|
|
62
|
+
throw new Error(`This action is not supported for the ${actor.__typename} user type.`);
|
|
63
|
+
},
|
|
48
64
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MeActorFragmentNode: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MeActorFragmentNode = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/* eslint-disable graphql/required-fields */
|
|
6
|
+
const graphql_1 = require("graphql");
|
|
7
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
8
|
+
const Account_1 = require("./Account");
|
|
9
|
+
exports.MeActorFragmentNode = (0, graphql_tag_1.default) `
|
|
10
|
+
${(0, graphql_1.print)(Account_1.AccountFragmentNode)}
|
|
11
|
+
|
|
12
|
+
fragment MeActorFragment on Actor {
|
|
13
|
+
__typename
|
|
14
|
+
id
|
|
15
|
+
... on User {
|
|
16
|
+
email
|
|
17
|
+
}
|
|
18
|
+
... on UserActor {
|
|
19
|
+
username
|
|
20
|
+
}
|
|
21
|
+
... on Robot {
|
|
22
|
+
firstName
|
|
23
|
+
}
|
|
24
|
+
accounts {
|
|
25
|
+
id
|
|
26
|
+
...AccountFragment
|
|
27
|
+
}
|
|
28
|
+
... on PartnerActor {
|
|
29
|
+
username
|
|
30
|
+
}
|
|
31
|
+
featureGates
|
|
32
|
+
isExpoAdmin
|
|
33
|
+
}
|
|
34
|
+
`;
|
package/build/ora.d.ts
CHANGED
package/build/ora.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isSpinnerEnabled = isSpinnerEnabled;
|
|
3
4
|
exports.ora = ora;
|
|
4
5
|
exports.updateSpinnerText = updateSpinnerText;
|
|
5
6
|
const tslib_1 = require("tslib");
|
|
@@ -16,6 +17,9 @@ const warnReal = console.warn;
|
|
|
16
17
|
// eslint-disable-next-line no-console
|
|
17
18
|
const errorReal = console.error;
|
|
18
19
|
const isCi = (0, getenv_1.boolish)('CI', false);
|
|
20
|
+
function isSpinnerEnabled() {
|
|
21
|
+
return !(log_1.default.isDebug || !process.stdin.isTTY || isCi);
|
|
22
|
+
}
|
|
19
23
|
/**
|
|
20
24
|
* A custom ora spinner that sends the stream to stdout in CI, or non-TTY, instead of stderr (the default).
|
|
21
25
|
*
|
|
@@ -24,7 +28,7 @@ const isCi = (0, getenv_1.boolish)('CI', false);
|
|
|
24
28
|
*/
|
|
25
29
|
function ora(options) {
|
|
26
30
|
const inputOptions = typeof options === 'string' ? { text: options } : (options ?? {});
|
|
27
|
-
const disabled =
|
|
31
|
+
const disabled = !isSpinnerEnabled();
|
|
28
32
|
const spinner = (0, ora_1.default)({
|
|
29
33
|
// Ensure our non-interactive mode emulates CI mode.
|
|
30
34
|
isEnabled: !disabled,
|
|
@@ -18,6 +18,7 @@ function createProxiedWebSocketConstructor(agent) {
|
|
|
18
18
|
function createWebSocketConstructor() {
|
|
19
19
|
return fetch_1.httpsProxyAgent ? createProxiedWebSocketConstructor(fetch_1.httpsProxyAgent) : ws_1.default;
|
|
20
20
|
}
|
|
21
|
+
const LOGS_WEBSOCKET_TIMEOUT_MS = 5_000;
|
|
21
22
|
function createRealtimeLogsClient(graphqlClient) {
|
|
22
23
|
const getTokenAsync = async () => {
|
|
23
24
|
const { token } = await RealtimeLogsMutation_1.RealtimeLogsMutation.generateCentrifugoConnectionTokenAsync(graphqlClient);
|
|
@@ -28,6 +29,7 @@ function createRealtimeLogsClient(graphqlClient) {
|
|
|
28
29
|
client = new centrifuge_1.Centrifuge((0, api_1.getEASLogsWebsocketUrl)(), {
|
|
29
30
|
websocket: createWebSocketConstructor(),
|
|
30
31
|
getToken: getTokenAsync,
|
|
32
|
+
timeout: LOGS_WEBSOCKET_TIMEOUT_MS,
|
|
31
33
|
});
|
|
32
34
|
client.on('error', ({ error }) => {
|
|
33
35
|
log_1.default.debug(`Realtime logs connection error: ${error.message}`);
|