eas-cli 24.7.0 → 24.8.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 +453 -244
- package/build/build/createContext.js +1 -2
- package/build/build/runBuildAndSubmit.js +4 -1
- package/build/commandUtils/supabase.d.ts +6 -1
- package/build/commandUtils/supabase.js +53 -0
- package/build/commandUtils/workflow/validation.d.ts +1 -0
- package/build/commandUtils/workflow/validation.js +8 -3
- package/build/commands/account/view.js +12 -0
- package/build/commands/integrations/asc/connect.js +3 -0
- package/build/commands/integrations/supabase/advisors.d.ts +16 -0
- package/build/commands/integrations/supabase/advisors.js +153 -0
- package/build/commands/simulator/availability.d.ts +0 -1
- package/build/commands/simulator/availability.js +0 -1
- package/build/commands/simulator/egress.d.ts +0 -1
- package/build/commands/simulator/egress.js +0 -1
- package/build/commands/simulator/events.d.ts +0 -1
- package/build/commands/simulator/events.js +0 -1
- package/build/commands/simulator/exec.d.ts +0 -1
- package/build/commands/simulator/exec.js +0 -1
- package/build/commands/simulator/get.d.ts +0 -1
- package/build/commands/simulator/get.js +0 -1
- package/build/commands/simulator/index.d.ts +2 -1
- package/build/commands/simulator/index.js +29 -11
- package/build/commands/simulator/list.d.ts +0 -1
- package/build/commands/simulator/list.js +0 -1
- package/build/commands/simulator/stop.d.ts +0 -1
- package/build/commands/simulator/stop.js +0 -1
- package/build/commands/submit/internal.d.ts +6 -0
- package/build/commands/submit/internal.js +6 -2
- package/build/credentials/context.js +7 -0
- package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +2 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.js +43 -4
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +5 -0
- package/build/credentials/ios/appstore/AppStoreApi.js +18 -9
- package/build/credentials/ios/appstore/authenticate.d.ts +6 -0
- package/build/credentials/ios/appstore/authenticate.js +22 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +16 -4
- package/build/devices/actions/create/developerPortalMethod.js +1 -1
- package/build/env.d.ts +4 -0
- package/build/env.js +4 -0
- package/build/fetch.js +2 -2
- package/build/graphql/generated.d.ts +167 -7
- package/build/graphql/generated.js +14 -2
- package/build/graphql/queries/SupabaseQuery.d.ts +2 -1
- package/build/graphql/queries/SupabaseQuery.js +42 -0
- package/build/graphql/queries/WorkflowJobSshQuery.d.ts +1 -0
- package/build/graphql/queries/WorkflowJobSshQuery.js +43 -0
- package/build/graphql/types/SupabaseConnection.d.ts +9 -2
- package/build/graphql/types/SupabaseConnection.js +16 -1
- package/build/integrations/asc/ascApiKey.js +2 -1
- package/build/integrations/shared/envFile.js +5 -3
- package/build/integrations/supabase/provision.d.ts +2 -2
- package/build/integrations/supabase/provision.js +6 -4
- package/build/metadata/auth.js +4 -4
- package/build/submit/ios/AscApiKeySource.js +1 -1
- package/build/submit/ios/IosSubmitCommand.js +2 -2
- package/build/submit/ios/ensureTestFlightSetup.js +1 -4
- package/build/worker/upload.js +2 -2
- package/oclif.manifest.json +986 -882
- package/package.json +9 -8
- package/build/commandUtils/new/templates/CLAUDE.md +0 -1
|
@@ -992,9 +992,9 @@ export type AgentDeviceRunSessionRemoteConfig = {
|
|
|
992
992
|
* session does not use local egress.
|
|
993
993
|
*/
|
|
994
994
|
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
995
|
-
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
996
995
|
/** URL of the preview server, for reaching its API rather than its page. */
|
|
997
996
|
previewApiUrl?: Maybe<Scalars['String']['output']>;
|
|
997
|
+
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
998
998
|
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
999
999
|
/**
|
|
1000
1000
|
* URL of the web preview surface for the session. Null when a web preview is
|
|
@@ -2547,6 +2547,8 @@ export type AppObserveErrorOccurrencesFilter = {
|
|
|
2547
2547
|
appEasBuildId?: InputMaybe<Scalars['String']['input']>;
|
|
2548
2548
|
appUpdateId?: InputMaybe<Scalars['String']['input']>;
|
|
2549
2549
|
appVersion?: InputMaybe<Scalars['String']['input']>;
|
|
2550
|
+
countryCode?: InputMaybe<Scalars['String']['input']>;
|
|
2551
|
+
deviceModel?: InputMaybe<Scalars['String']['input']>;
|
|
2550
2552
|
easClientId?: InputMaybe<Scalars['String']['input']>;
|
|
2551
2553
|
endTime?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2552
2554
|
environment?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2706,6 +2708,8 @@ export type AppObserveErrorsBreakdownInput = {
|
|
|
2706
2708
|
appEasBuildId?: InputMaybe<Scalars['String']['input']>;
|
|
2707
2709
|
appUpdateId?: InputMaybe<Scalars['String']['input']>;
|
|
2708
2710
|
appVersion?: InputMaybe<Scalars['String']['input']>;
|
|
2711
|
+
countryCode?: InputMaybe<Scalars['String']['input']>;
|
|
2712
|
+
deviceModel?: InputMaybe<Scalars['String']['input']>;
|
|
2709
2713
|
dimension: AppObserveErrorBreakdownDimension;
|
|
2710
2714
|
endTime: Scalars['DateTime']['input'];
|
|
2711
2715
|
environment?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2724,6 +2728,8 @@ export type AppObserveErrorsGroupsInput = {
|
|
|
2724
2728
|
appVersion?: InputMaybe<Scalars['String']['input']>;
|
|
2725
2729
|
/** Bucket size for each group's timeSeries. Defaults to daily. */
|
|
2726
2730
|
bucketIntervalMinutes?: InputMaybe<Scalars['Int']['input']>;
|
|
2731
|
+
countryCode?: InputMaybe<Scalars['String']['input']>;
|
|
2732
|
+
deviceModel?: InputMaybe<Scalars['String']['input']>;
|
|
2727
2733
|
endTime: Scalars['DateTime']['input'];
|
|
2728
2734
|
environment?: InputMaybe<Scalars['String']['input']>;
|
|
2729
2735
|
/** Restrict to one error group. */
|
|
@@ -2743,6 +2749,8 @@ export type AppObserveErrorsStatsInput = {
|
|
|
2743
2749
|
appEasBuildId?: InputMaybe<Scalars['String']['input']>;
|
|
2744
2750
|
appUpdateId?: InputMaybe<Scalars['String']['input']>;
|
|
2745
2751
|
appVersion?: InputMaybe<Scalars['String']['input']>;
|
|
2752
|
+
countryCode?: InputMaybe<Scalars['String']['input']>;
|
|
2753
|
+
deviceModel?: InputMaybe<Scalars['String']['input']>;
|
|
2746
2754
|
endTime: Scalars['DateTime']['input'];
|
|
2747
2755
|
environment?: InputMaybe<Scalars['String']['input']>;
|
|
2748
2756
|
isEmbeddedUpdate?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -2758,6 +2766,8 @@ export type AppObserveErrorsTimeSeriesInput = {
|
|
|
2758
2766
|
appUpdateId?: InputMaybe<Scalars['String']['input']>;
|
|
2759
2767
|
appVersion?: InputMaybe<Scalars['String']['input']>;
|
|
2760
2768
|
bucketIntervalMinutes?: InputMaybe<Scalars['Int']['input']>;
|
|
2769
|
+
countryCode?: InputMaybe<Scalars['String']['input']>;
|
|
2770
|
+
deviceModel?: InputMaybe<Scalars['String']['input']>;
|
|
2761
2771
|
endTime: Scalars['DateTime']['input'];
|
|
2762
2772
|
environment?: InputMaybe<Scalars['String']['input']>;
|
|
2763
2773
|
/** Restrict to one error group. */
|
|
@@ -4091,9 +4101,9 @@ export type AppiumRunSessionRemoteConfig = {
|
|
|
4091
4101
|
* session does not use local egress.
|
|
4092
4102
|
*/
|
|
4093
4103
|
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
4094
|
-
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
4095
4104
|
/** URL of the preview server, for reaching its API rather than its page. */
|
|
4096
4105
|
previewApiUrl?: Maybe<Scalars['String']['output']>;
|
|
4106
|
+
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
4097
4107
|
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
4098
4108
|
/**
|
|
4099
4109
|
* URL of the web preview surface for the session. Null when a web preview is
|
|
@@ -4901,12 +4911,14 @@ export type BuildFilterInput = {
|
|
|
4901
4911
|
channel?: InputMaybe<Scalars['String']['input']>;
|
|
4902
4912
|
developmentClient?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4903
4913
|
distributions?: InputMaybe<Array<DistributionType>>;
|
|
4914
|
+
expired?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4904
4915
|
fingerprintHash?: InputMaybe<Scalars['String']['input']>;
|
|
4905
4916
|
hasFingerprint?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4906
4917
|
platforms?: InputMaybe<Array<AppPlatform>>;
|
|
4907
4918
|
releaseChannel?: InputMaybe<Scalars['String']['input']>;
|
|
4908
4919
|
runtimeVersion?: InputMaybe<Scalars['String']['input']>;
|
|
4909
4920
|
simulator?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4921
|
+
statuses?: InputMaybe<Array<BuildStatus>>;
|
|
4910
4922
|
};
|
|
4911
4923
|
export declare enum BuildIosEnterpriseProvisioning {
|
|
4912
4924
|
Adhoc = "ADHOC",
|
|
@@ -5689,6 +5701,13 @@ export type CreatePostHogDeepLinkInput = {
|
|
|
5689
5701
|
/** Which EAS surface opened the link; omitted lets PostHog apply its own default. */
|
|
5690
5702
|
purpose?: InputMaybe<PostHogDeepLinkPurpose>;
|
|
5691
5703
|
};
|
|
5704
|
+
export type CreateSandboxInput = {
|
|
5705
|
+
appId: Scalars['ID']['input'];
|
|
5706
|
+
image?: InputMaybe<Scalars['String']['input']>;
|
|
5707
|
+
operatingSystem: SandboxOperatingSystem;
|
|
5708
|
+
projectArchive?: InputMaybe<SandboxProjectArchiveInput>;
|
|
5709
|
+
resourceClass: SandboxResourceClass;
|
|
5710
|
+
};
|
|
5692
5711
|
export type CreateSentryProjectInput = {
|
|
5693
5712
|
appId: Scalars['ID']['input'];
|
|
5694
5713
|
sentryProjectId: Scalars['String']['input'];
|
|
@@ -8608,6 +8627,7 @@ export declare enum Permission {
|
|
|
8608
8627
|
Admin = "ADMIN",
|
|
8609
8628
|
Own = "OWN",
|
|
8610
8629
|
Publish = "PUBLISH",
|
|
8630
|
+
PublishProtected = "PUBLISH_PROTECTED",
|
|
8611
8631
|
View = "VIEW"
|
|
8612
8632
|
}
|
|
8613
8633
|
export type PinnedDashboardView = {
|
|
@@ -8734,7 +8754,6 @@ export type ProjectArchiveSourceInput = {
|
|
|
8734
8754
|
bucketKey?: InputMaybe<Scalars['String']['input']>;
|
|
8735
8755
|
gitRef?: InputMaybe<Scalars['String']['input']>;
|
|
8736
8756
|
metadataLocation?: InputMaybe<Scalars['String']['input']>;
|
|
8737
|
-
repositoryUrl?: InputMaybe<Scalars['String']['input']>;
|
|
8738
8757
|
type: ProjectArchiveSourceType;
|
|
8739
8758
|
url?: InputMaybe<Scalars['String']['input']>;
|
|
8740
8759
|
};
|
|
@@ -8782,6 +8801,7 @@ export type PublishUpdateGroupInput = {
|
|
|
8782
8801
|
isGitWorkingTreeDirty?: InputMaybe<Scalars['Boolean']['input']>;
|
|
8783
8802
|
manifestHostOverride?: InputMaybe<Scalars['String']['input']>;
|
|
8784
8803
|
message?: InputMaybe<Scalars['String']['input']>;
|
|
8804
|
+
previousRolloutUpdateToClobberIdGroup?: InputMaybe<UpdateIdGroup>;
|
|
8785
8805
|
rollBackToEmbeddedInfoGroup?: InputMaybe<UpdateRollBackToEmbeddedGroup>;
|
|
8786
8806
|
rolloutInfoGroup?: InputMaybe<UpdateRolloutInfoGroup>;
|
|
8787
8807
|
runtimeVersion: Scalars['String']['input'];
|
|
@@ -8951,6 +8971,7 @@ export declare enum Role {
|
|
|
8951
8971
|
HasAdmin = "HAS_ADMIN",
|
|
8952
8972
|
NotAdmin = "NOT_ADMIN",
|
|
8953
8973
|
Owner = "OWNER",
|
|
8974
|
+
ReleaseManager = "RELEASE_MANAGER",
|
|
8954
8975
|
ViewOnly = "VIEW_ONLY"
|
|
8955
8976
|
}
|
|
8956
8977
|
export type RootMutation = {
|
|
@@ -9076,6 +9097,7 @@ export type RootMutation = {
|
|
|
9076
9097
|
realtimeLogs: RealtimeLogsMutation;
|
|
9077
9098
|
/** Mutations that create, update, and delete Robots */
|
|
9078
9099
|
robot: RobotMutation;
|
|
9100
|
+
sandbox: SandboxMutation;
|
|
9079
9101
|
/** Mutations for Sentry installations */
|
|
9080
9102
|
sentryInstallation: SentryInstallationMutation;
|
|
9081
9103
|
/** Mutations for Sentry projects */
|
|
@@ -9091,6 +9113,7 @@ export type RootMutation = {
|
|
|
9091
9113
|
updateBranch: UpdateBranchMutation;
|
|
9092
9114
|
updateChannel: UpdateChannelMutation;
|
|
9093
9115
|
uploadSession: UploadSession;
|
|
9116
|
+
usageBudget: UsageBudgetMutation;
|
|
9094
9117
|
/** Mutations that create, update, and delete pinned apps */
|
|
9095
9118
|
userAppPins: UserAppPinMutation;
|
|
9096
9119
|
userAuditLog: UserAuditLogMutation;
|
|
@@ -9435,13 +9458,67 @@ export type Sandbox = {
|
|
|
9435
9458
|
turtleJobRun: JobRun;
|
|
9436
9459
|
updatedAt: Scalars['DateTime']['output'];
|
|
9437
9460
|
};
|
|
9461
|
+
export type SandboxConnection = {
|
|
9462
|
+
__typename?: 'SandboxConnection';
|
|
9463
|
+
edges: Array<SandboxEdge>;
|
|
9464
|
+
pageInfo: PageInfo;
|
|
9465
|
+
};
|
|
9466
|
+
export type SandboxEdge = {
|
|
9467
|
+
__typename?: 'SandboxEdge';
|
|
9468
|
+
cursor: Scalars['String']['output'];
|
|
9469
|
+
node: Sandbox;
|
|
9470
|
+
};
|
|
9471
|
+
export type SandboxFilterInput = {
|
|
9472
|
+
statuses?: InputMaybe<Array<SandboxStatus>>;
|
|
9473
|
+
};
|
|
9474
|
+
export type SandboxMutation = {
|
|
9475
|
+
__typename?: 'SandboxMutation';
|
|
9476
|
+
createSandbox: Sandbox;
|
|
9477
|
+
markSandboxReady: Sandbox;
|
|
9478
|
+
stopSandbox: Sandbox;
|
|
9479
|
+
touchSandbox: Sandbox;
|
|
9480
|
+
};
|
|
9481
|
+
export type SandboxMutation_CreateSandboxArgs = {
|
|
9482
|
+
input: CreateSandboxInput;
|
|
9483
|
+
};
|
|
9484
|
+
export type SandboxMutation_MarkSandboxReadyArgs = {
|
|
9485
|
+
sandboxId: Scalars['ID']['input'];
|
|
9486
|
+
};
|
|
9487
|
+
export type SandboxMutation_StopSandboxArgs = {
|
|
9488
|
+
sandboxId: Scalars['ID']['input'];
|
|
9489
|
+
};
|
|
9490
|
+
export type SandboxMutation_TouchSandboxArgs = {
|
|
9491
|
+
sandboxId: Scalars['ID']['input'];
|
|
9492
|
+
};
|
|
9493
|
+
export declare enum SandboxOperatingSystem {
|
|
9494
|
+
Linux = "LINUX",
|
|
9495
|
+
Macos = "MACOS"
|
|
9496
|
+
}
|
|
9497
|
+
export type SandboxProjectArchiveInput = {
|
|
9498
|
+
gitRef?: InputMaybe<Scalars['String']['input']>;
|
|
9499
|
+
url?: InputMaybe<Scalars['String']['input']>;
|
|
9500
|
+
};
|
|
9438
9501
|
export type SandboxQuery = {
|
|
9439
9502
|
__typename?: 'SandboxQuery';
|
|
9503
|
+
/** Project sandboxes, newest first. An omitted or empty status filter includes all statuses. */
|
|
9504
|
+
byAppIdPaginated: SandboxConnection;
|
|
9440
9505
|
byId: Sandbox;
|
|
9441
9506
|
};
|
|
9507
|
+
export type SandboxQuery_ByAppIdPaginatedArgs = {
|
|
9508
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
9509
|
+
appId: Scalars['ID']['input'];
|
|
9510
|
+
before?: InputMaybe<Scalars['String']['input']>;
|
|
9511
|
+
filter?: InputMaybe<SandboxFilterInput>;
|
|
9512
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
9513
|
+
last?: InputMaybe<Scalars['Int']['input']>;
|
|
9514
|
+
};
|
|
9442
9515
|
export type SandboxQuery_ByIdArgs = {
|
|
9443
9516
|
sandboxId: Scalars['ID']['input'];
|
|
9444
9517
|
};
|
|
9518
|
+
export declare enum SandboxResourceClass {
|
|
9519
|
+
Large = "LARGE",
|
|
9520
|
+
Medium = "MEDIUM"
|
|
9521
|
+
}
|
|
9445
9522
|
export declare enum SandboxStatus {
|
|
9446
9523
|
Errored = "ERRORED",
|
|
9447
9524
|
Running = "RUNNING",
|
|
@@ -9564,9 +9641,9 @@ export type ServeSimRunSessionRemoteConfig = {
|
|
|
9564
9641
|
* session does not use local egress.
|
|
9565
9642
|
*/
|
|
9566
9643
|
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
9567
|
-
/** Session token gating the preview. Null when the preview runs ungated. */
|
|
9568
9644
|
/** URL of the preview server, for reaching its API rather than its page. */
|
|
9569
9645
|
previewApiUrl?: Maybe<Scalars['String']['output']>;
|
|
9646
|
+
/** Session token gating the preview. Null when the preview runs ungated. */
|
|
9570
9647
|
previewToken?: Maybe<Scalars['String']['output']>;
|
|
9571
9648
|
previewUrl: Scalars['String']['output'];
|
|
9572
9649
|
/** @deprecated Use previewUrl instead. */
|
|
@@ -10289,7 +10366,7 @@ export type UpdateChannel = {
|
|
|
10289
10366
|
embeddedUpdateCount: Scalars['Int']['output'];
|
|
10290
10367
|
id: Scalars['ID']['output'];
|
|
10291
10368
|
isPaused: Scalars['Boolean']['output'];
|
|
10292
|
-
/** Only
|
|
10369
|
+
/** Only allowed publishers (Release Managers, Admins, Owners) may release to a protected channel. */
|
|
10293
10370
|
isProtected: Scalars['Boolean']['output'];
|
|
10294
10371
|
lastDeletionAttemptTime?: Maybe<Scalars['DateTime']['output']>;
|
|
10295
10372
|
latestRuntimes: ChannelRuntimesConnection;
|
|
@@ -10337,7 +10414,7 @@ export type UpdateChannelMutation = {
|
|
|
10337
10414
|
editUpdateChannel: UpdateChannel;
|
|
10338
10415
|
/** Pause updates for an EAS channel. */
|
|
10339
10416
|
pauseUpdateChannel: UpdateChannel;
|
|
10340
|
-
/** Protect an EAS channel, so only
|
|
10417
|
+
/** Protect an EAS channel, so only allowed publishers (Release Managers, Admins, Owners) may release to it. */
|
|
10341
10418
|
protectUpdateChannel: UpdateChannel;
|
|
10342
10419
|
/** Resume updates for an EAS channel. */
|
|
10343
10420
|
resumeUpdateChannel: UpdateChannel;
|
|
@@ -10542,6 +10619,11 @@ export type UpdateGroupsConnection = {
|
|
|
10542
10619
|
edges: Array<UpdateGroupEdge>;
|
|
10543
10620
|
pageInfo: PageInfo;
|
|
10544
10621
|
};
|
|
10622
|
+
export type UpdateIdGroup = {
|
|
10623
|
+
android?: InputMaybe<Scalars['ID']['input']>;
|
|
10624
|
+
ios?: InputMaybe<Scalars['ID']['input']>;
|
|
10625
|
+
web?: InputMaybe<Scalars['ID']['input']>;
|
|
10626
|
+
};
|
|
10545
10627
|
export type UpdateInfoGroup = {
|
|
10546
10628
|
android?: InputMaybe<PartialManifest>;
|
|
10547
10629
|
ios?: InputMaybe<PartialManifest>;
|
|
@@ -10700,6 +10782,25 @@ export declare enum UploadSessionType {
|
|
|
10700
10782
|
EasUpdateAssetsMetadata = "EAS_UPDATE_ASSETS_METADATA",
|
|
10701
10783
|
EasUpdateFingerprint = "EAS_UPDATE_FINGERPRINT"
|
|
10702
10784
|
}
|
|
10785
|
+
export type UsageBudget = {
|
|
10786
|
+
__typename?: 'UsageBudget';
|
|
10787
|
+
id: Scalars['ID']['output'];
|
|
10788
|
+
limits: UsageBudgetLimits;
|
|
10789
|
+
};
|
|
10790
|
+
export type UsageBudgetLimits = {
|
|
10791
|
+
__typename?: 'UsageBudgetLimits';
|
|
10792
|
+
builds?: Maybe<Scalars['Int']['output']>;
|
|
10793
|
+
};
|
|
10794
|
+
export type UsageBudgetLimitsInput = {
|
|
10795
|
+
builds?: InputMaybe<Scalars['Int']['input']>;
|
|
10796
|
+
};
|
|
10797
|
+
export type UsageBudgetMutation = {
|
|
10798
|
+
__typename?: 'UsageBudgetMutation';
|
|
10799
|
+
createUsageBudget: UsageBudget;
|
|
10800
|
+
};
|
|
10801
|
+
export type UsageBudgetMutation_CreateUsageBudgetArgs = {
|
|
10802
|
+
limits: UsageBudgetLimitsInput;
|
|
10803
|
+
};
|
|
10703
10804
|
export type UsageMetricTotal = {
|
|
10704
10805
|
__typename?: 'UsageMetricTotal';
|
|
10705
10806
|
billingPeriod: BillingPeriod;
|
|
@@ -11350,9 +11451,9 @@ export type WebPreviewOnlyRunSessionRemoteConfig = {
|
|
|
11350
11451
|
* session does not use local egress.
|
|
11351
11452
|
*/
|
|
11352
11453
|
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
11353
|
-
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
11354
11454
|
/** URL of the preview server, for reaching its API rather than its page. */
|
|
11355
11455
|
previewApiUrl?: Maybe<Scalars['String']['output']>;
|
|
11456
|
+
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
11356
11457
|
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
11357
11458
|
webPreviewUrl: Scalars['String']['output'];
|
|
11358
11459
|
};
|
|
@@ -12401,6 +12502,7 @@ export type WorkflowRun = ActivityTimelineProjectActivity & {
|
|
|
12401
12502
|
__typename?: 'WorkflowRun';
|
|
12402
12503
|
activityTimestamp: Scalars['DateTime']['output'];
|
|
12403
12504
|
actor?: Maybe<Actor>;
|
|
12505
|
+
app: App;
|
|
12404
12506
|
/**
|
|
12405
12507
|
* Why the server canceled this run. Null for manually canceled runs and for
|
|
12406
12508
|
* runs canceled before the reason was recorded.
|
|
@@ -21467,6 +21569,53 @@ export type SupabaseProjectByAppIdQuery = {
|
|
|
21467
21569
|
};
|
|
21468
21570
|
};
|
|
21469
21571
|
};
|
|
21572
|
+
export type SupabaseAdvisorLintsByAppIdQueryVariables = Exact<{
|
|
21573
|
+
appId: Scalars['String']['input'];
|
|
21574
|
+
security: Scalars['Boolean']['input'];
|
|
21575
|
+
performance: Scalars['Boolean']['input'];
|
|
21576
|
+
}>;
|
|
21577
|
+
export type SupabaseAdvisorLintsByAppIdQuery = {
|
|
21578
|
+
__typename?: 'RootQuery';
|
|
21579
|
+
app: {
|
|
21580
|
+
__typename?: 'AppQuery';
|
|
21581
|
+
byId: {
|
|
21582
|
+
__typename?: 'App';
|
|
21583
|
+
id: string;
|
|
21584
|
+
supabaseProject?: {
|
|
21585
|
+
__typename?: 'SupabaseProject';
|
|
21586
|
+
id: string;
|
|
21587
|
+
supabaseProjectRef: string;
|
|
21588
|
+
supabaseProjectName: string;
|
|
21589
|
+
supabaseProjectUrl: string;
|
|
21590
|
+
supabaseRegion: string;
|
|
21591
|
+
createdAt: any;
|
|
21592
|
+
updatedAt: any;
|
|
21593
|
+
security?: Array<{
|
|
21594
|
+
__typename?: 'SupabaseAdvisorLint';
|
|
21595
|
+
name: string;
|
|
21596
|
+
title: string;
|
|
21597
|
+
level: SupabaseAdvisorLintLevel;
|
|
21598
|
+
description: string;
|
|
21599
|
+
detail: string;
|
|
21600
|
+
entity?: string | null;
|
|
21601
|
+
remediation?: string | null;
|
|
21602
|
+
cacheKey: string;
|
|
21603
|
+
}> | null;
|
|
21604
|
+
performance?: Array<{
|
|
21605
|
+
__typename?: 'SupabaseAdvisorLint';
|
|
21606
|
+
name: string;
|
|
21607
|
+
title: string;
|
|
21608
|
+
level: SupabaseAdvisorLintLevel;
|
|
21609
|
+
description: string;
|
|
21610
|
+
detail: string;
|
|
21611
|
+
entity?: string | null;
|
|
21612
|
+
remediation?: string | null;
|
|
21613
|
+
cacheKey: string;
|
|
21614
|
+
}> | null;
|
|
21615
|
+
} | null;
|
|
21616
|
+
};
|
|
21617
|
+
};
|
|
21618
|
+
};
|
|
21470
21619
|
export type ViewUpdateGroupInsightsQueryVariables = Exact<{
|
|
21471
21620
|
groupId: Scalars['ID']['input'];
|
|
21472
21621
|
timespan: InsightsTimespan;
|
|
@@ -24094,6 +24243,17 @@ export type SupabaseProjectFragment = {
|
|
|
24094
24243
|
createdAt: any;
|
|
24095
24244
|
updatedAt: any;
|
|
24096
24245
|
};
|
|
24246
|
+
export type SupabaseAdvisorLintFragment = {
|
|
24247
|
+
__typename?: 'SupabaseAdvisorLint';
|
|
24248
|
+
name: string;
|
|
24249
|
+
title: string;
|
|
24250
|
+
level: SupabaseAdvisorLintLevel;
|
|
24251
|
+
description: string;
|
|
24252
|
+
detail: string;
|
|
24253
|
+
entity?: string | null;
|
|
24254
|
+
remediation?: string | null;
|
|
24255
|
+
cacheKey: string;
|
|
24256
|
+
};
|
|
24097
24257
|
export type UpdateFragment = {
|
|
24098
24258
|
__typename?: 'Update';
|
|
24099
24259
|
id: string;
|
|
@@ -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 = exports.UpdateDiffReceiptOrderByField = exports.UpdateDiffReceiptOrderByDirection = exports.TurtleSshTransportType = void 0;
|
|
11
|
+
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.SandboxResourceClass = exports.SandboxOperatingSystem = 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 = exports.TurtleSshTargetType = exports.TargetEntityMutationType = void 0;
|
|
13
13
|
var AccountAppsSortByField;
|
|
14
14
|
(function (AccountAppsSortByField) {
|
|
15
15
|
AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
|
|
@@ -909,6 +909,7 @@ var Permission;
|
|
|
909
909
|
Permission["Admin"] = "ADMIN";
|
|
910
910
|
Permission["Own"] = "OWN";
|
|
911
911
|
Permission["Publish"] = "PUBLISH";
|
|
912
|
+
Permission["PublishProtected"] = "PUBLISH_PROTECTED";
|
|
912
913
|
Permission["View"] = "VIEW";
|
|
913
914
|
})(Permission || (exports.Permission = Permission = {}));
|
|
914
915
|
/** Which EAS surface a deep link was opened from; PostHog records it as an analytics label. */
|
|
@@ -993,8 +994,19 @@ var Role;
|
|
|
993
994
|
Role["HasAdmin"] = "HAS_ADMIN";
|
|
994
995
|
Role["NotAdmin"] = "NOT_ADMIN";
|
|
995
996
|
Role["Owner"] = "OWNER";
|
|
997
|
+
Role["ReleaseManager"] = "RELEASE_MANAGER";
|
|
996
998
|
Role["ViewOnly"] = "VIEW_ONLY";
|
|
997
999
|
})(Role || (exports.Role = Role = {}));
|
|
1000
|
+
var SandboxOperatingSystem;
|
|
1001
|
+
(function (SandboxOperatingSystem) {
|
|
1002
|
+
SandboxOperatingSystem["Linux"] = "LINUX";
|
|
1003
|
+
SandboxOperatingSystem["Macos"] = "MACOS";
|
|
1004
|
+
})(SandboxOperatingSystem || (exports.SandboxOperatingSystem = SandboxOperatingSystem = {}));
|
|
1005
|
+
var SandboxResourceClass;
|
|
1006
|
+
(function (SandboxResourceClass) {
|
|
1007
|
+
SandboxResourceClass["Large"] = "LARGE";
|
|
1008
|
+
SandboxResourceClass["Medium"] = "MEDIUM";
|
|
1009
|
+
})(SandboxResourceClass || (exports.SandboxResourceClass = SandboxResourceClass = {}));
|
|
998
1010
|
var SandboxStatus;
|
|
999
1011
|
(function (SandboxStatus) {
|
|
1000
1012
|
SandboxStatus["Errored"] = "ERRORED";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { SupabaseConnectionData, SupabaseProjectData } from '../types/SupabaseConnection';
|
|
2
|
+
import { SupabaseAdvisorLintsData, SupabaseAdvisorType, SupabaseConnectionData, SupabaseProjectData } from '../types/SupabaseConnection';
|
|
3
3
|
export declare const SupabaseQuery: {
|
|
4
4
|
getSupabaseConnectionByAccountIdAsync(graphqlClient: ExpoGraphqlClient, accountId: string, { useCache }?: {
|
|
5
5
|
useCache?: boolean;
|
|
@@ -7,4 +7,5 @@ export declare const SupabaseQuery: {
|
|
|
7
7
|
getSupabaseProjectByAppIdAsync(graphqlClient: ExpoGraphqlClient, appId: string, { useCache }?: {
|
|
8
8
|
useCache?: boolean;
|
|
9
9
|
}): Promise<SupabaseProjectData | null>;
|
|
10
|
+
getSupabaseAdvisorLintsByAppIdAsync(graphqlClient: ExpoGraphqlClient, appId: string, types?: readonly SupabaseAdvisorType[]): Promise<SupabaseAdvisorLintsData | null>;
|
|
10
11
|
};
|
|
@@ -51,4 +51,46 @@ exports.SupabaseQuery = {
|
|
|
51
51
|
.toPromise());
|
|
52
52
|
return data.app.byId.supabaseProject ?? null;
|
|
53
53
|
},
|
|
54
|
+
async getSupabaseAdvisorLintsByAppIdAsync(graphqlClient, appId, types = [
|
|
55
|
+
SupabaseConnection_1.SupabaseAdvisorType.Security,
|
|
56
|
+
SupabaseConnection_1.SupabaseAdvisorType.Performance,
|
|
57
|
+
]) {
|
|
58
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
59
|
+
.query((0, graphql_tag_1.default) `
|
|
60
|
+
query SupabaseAdvisorLintsByAppId(
|
|
61
|
+
$appId: String!
|
|
62
|
+
$security: Boolean!
|
|
63
|
+
$performance: Boolean!
|
|
64
|
+
) {
|
|
65
|
+
app {
|
|
66
|
+
byId(appId: $appId) {
|
|
67
|
+
id
|
|
68
|
+
supabaseProject {
|
|
69
|
+
id
|
|
70
|
+
...SupabaseProjectFragment
|
|
71
|
+
security: advisorLints(type: SECURITY) @include(if: $security) {
|
|
72
|
+
...SupabaseAdvisorLintFragment
|
|
73
|
+
}
|
|
74
|
+
performance: advisorLints(type: PERFORMANCE) @include(if: $performance) {
|
|
75
|
+
...SupabaseAdvisorLintFragment
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
${(0, graphql_1.print)(SupabaseConnection_1.SupabaseProjectFragmentNode)}
|
|
82
|
+
${(0, graphql_1.print)(SupabaseConnection_1.SupabaseAdvisorLintFragmentNode)}
|
|
83
|
+
`, {
|
|
84
|
+
appId,
|
|
85
|
+
security: types.includes(SupabaseConnection_1.SupabaseAdvisorType.Security),
|
|
86
|
+
performance: types.includes(SupabaseConnection_1.SupabaseAdvisorType.Performance),
|
|
87
|
+
}, { additionalTypenames: ['App', 'SupabaseProject'], requestPolicy: 'network-only' })
|
|
88
|
+
.toPromise());
|
|
89
|
+
const project = data.app.byId.supabaseProject;
|
|
90
|
+
if (!project) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
const { security, performance, ...projectData } = project;
|
|
94
|
+
return { project: projectData, security: security ?? null, performance: performance ?? null };
|
|
95
|
+
},
|
|
54
96
|
};
|
|
@@ -15,6 +15,7 @@ export type WorkflowJobSshConnectInfo = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const WorkflowJobSshQuery: {
|
|
17
17
|
connectInfoForWorkflowJobAsync(graphqlClient: ExpoGraphqlClient, workflowJobId: string): Promise<WorkflowJobSshConnectInfo | null>;
|
|
18
|
+
connectInfoForBuildAsync(graphqlClient: ExpoGraphqlClient, buildId: string): Promise<WorkflowJobSshConnectInfo | null>;
|
|
18
19
|
connectInfoForJobRunAsync(graphqlClient: ExpoGraphqlClient, jobRunId: string): Promise<WorkflowJobSshConnectInfo | null>;
|
|
19
20
|
connectInfoForResourceIdAsync(graphqlClient: ExpoGraphqlClient, resourceId: string): Promise<WorkflowJobSshConnectInfo | null>;
|
|
20
21
|
};
|
|
@@ -11,6 +11,11 @@ const FINAL_WORKFLOW_JOB_STATUSES = new Set([
|
|
|
11
11
|
generated_1.WorkflowJobStatus.Canceled,
|
|
12
12
|
generated_1.WorkflowJobStatus.Skipped,
|
|
13
13
|
]);
|
|
14
|
+
const FINAL_BUILD_STATUSES = new Set([
|
|
15
|
+
generated_1.BuildStatus.Errored,
|
|
16
|
+
generated_1.BuildStatus.Finished,
|
|
17
|
+
generated_1.BuildStatus.Canceled,
|
|
18
|
+
]);
|
|
14
19
|
const FINAL_JOB_RUN_STATUSES = new Set([
|
|
15
20
|
generated_1.JobRunStatus.Errored,
|
|
16
21
|
generated_1.JobRunStatus.Finished,
|
|
@@ -88,6 +93,43 @@ exports.WorkflowJobSshQuery = {
|
|
|
88
93
|
}
|
|
89
94
|
return toConnectInfo(data.workflowJobs.byId);
|
|
90
95
|
},
|
|
96
|
+
async connectInfoForBuildAsync(graphqlClient, buildId) {
|
|
97
|
+
let data;
|
|
98
|
+
try {
|
|
99
|
+
data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
100
|
+
.query((0, graphql_tag_1.default) `
|
|
101
|
+
query BuildSshPoll($buildId: ID!) {
|
|
102
|
+
builds {
|
|
103
|
+
byId(buildId: $buildId) {
|
|
104
|
+
id
|
|
105
|
+
status
|
|
106
|
+
sshSession {
|
|
107
|
+
id
|
|
108
|
+
connectionConfig {
|
|
109
|
+
host
|
|
110
|
+
secret
|
|
111
|
+
reconnecting
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
`, { buildId }, { requestPolicy: 'network-only' })
|
|
118
|
+
.toPromise());
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
if (isNotFoundError(error)) {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
throw error;
|
|
125
|
+
}
|
|
126
|
+
const build = data.builds.byId;
|
|
127
|
+
return {
|
|
128
|
+
sshRequested: build.sshSession !== null,
|
|
129
|
+
jobCompleted: FINAL_BUILD_STATUSES.has(build.status),
|
|
130
|
+
session: build.sshSession,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
91
133
|
async connectInfoForJobRunAsync(graphqlClient, jobRunId) {
|
|
92
134
|
let data;
|
|
93
135
|
try {
|
|
@@ -128,6 +170,7 @@ exports.WorkflowJobSshQuery = {
|
|
|
128
170
|
},
|
|
129
171
|
async connectInfoForResourceIdAsync(graphqlClient, resourceId) {
|
|
130
172
|
return ((await exports.WorkflowJobSshQuery.connectInfoForWorkflowJobAsync(graphqlClient, resourceId)) ??
|
|
173
|
+
(await exports.WorkflowJobSshQuery.connectInfoForBuildAsync(graphqlClient, resourceId)) ??
|
|
131
174
|
(await exports.WorkflowJobSshQuery.connectInfoForJobRunAsync(graphqlClient, resourceId)));
|
|
132
175
|
},
|
|
133
176
|
};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { SupabaseConnection, SupabaseOAuthStart, SupabaseOrganization, SupabaseProject } from '../generated';
|
|
2
|
-
export { BeginSupabaseOAuthInput, LinkSupabaseProjectInput, ProvisionAdditionalSupabaseProjectInput, ProvisionSupabaseProjectInput, SetSupabaseConnectionOrganizationInput, } from '../generated';
|
|
1
|
+
import { SupabaseAdvisorLint, SupabaseConnection, SupabaseOAuthStart, SupabaseOrganization, SupabaseProject } from '../generated';
|
|
2
|
+
export { SupabaseAdvisorLintLevel, SupabaseAdvisorType, BeginSupabaseOAuthInput, LinkSupabaseProjectInput, ProvisionAdditionalSupabaseProjectInput, ProvisionSupabaseProjectInput, SetSupabaseConnectionOrganizationInput, } from '../generated';
|
|
3
3
|
export type SupabaseOrganizationData = Pick<SupabaseOrganization, 'id' | 'slug' | 'name'>;
|
|
4
4
|
export type SupabaseConnectionData = Pick<SupabaseConnection, 'id' | 'supabaseOrganizationSlug' | 'supabaseOrganizationName' | 'createdAt' | 'updatedAt'>;
|
|
5
5
|
export type SupabaseProjectData = Pick<SupabaseProject, 'id' | 'supabaseProjectRef' | 'supabaseProjectName' | 'supabaseProjectUrl' | 'supabaseRegion' | 'createdAt' | 'updatedAt'>;
|
|
6
6
|
export type SupabaseOAuthStartData = Pick<SupabaseOAuthStart, 'url'>;
|
|
7
|
+
export type SupabaseAdvisorLintData = Pick<SupabaseAdvisorLint, 'name' | 'title' | 'level' | 'description' | 'detail' | 'entity' | 'remediation' | 'cacheKey'>;
|
|
8
|
+
export type SupabaseAdvisorLintsData = {
|
|
9
|
+
project: SupabaseProjectData;
|
|
10
|
+
security: SupabaseAdvisorLintData[] | null;
|
|
11
|
+
performance: SupabaseAdvisorLintData[] | null;
|
|
12
|
+
};
|
|
7
13
|
export declare const SupabaseConnectionFragmentNode: import("graphql").DocumentNode;
|
|
8
14
|
export declare const SupabaseProjectFragmentNode: import("graphql").DocumentNode;
|
|
15
|
+
export declare const SupabaseAdvisorLintFragmentNode: import("graphql").DocumentNode;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SupabaseProjectFragmentNode = exports.SupabaseConnectionFragmentNode = void 0;
|
|
3
|
+
exports.SupabaseAdvisorLintFragmentNode = exports.SupabaseProjectFragmentNode = exports.SupabaseConnectionFragmentNode = exports.SupabaseAdvisorType = exports.SupabaseAdvisorLintLevel = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
var generated_1 = require("../generated");
|
|
7
|
+
Object.defineProperty(exports, "SupabaseAdvisorLintLevel", { enumerable: true, get: function () { return generated_1.SupabaseAdvisorLintLevel; } });
|
|
8
|
+
Object.defineProperty(exports, "SupabaseAdvisorType", { enumerable: true, get: function () { return generated_1.SupabaseAdvisorType; } });
|
|
6
9
|
exports.SupabaseConnectionFragmentNode = (0, graphql_tag_1.default) `
|
|
7
10
|
fragment SupabaseConnectionFragment on SupabaseConnection {
|
|
8
11
|
id
|
|
@@ -23,3 +26,15 @@ exports.SupabaseProjectFragmentNode = (0, graphql_tag_1.default) `
|
|
|
23
26
|
updatedAt
|
|
24
27
|
}
|
|
25
28
|
`;
|
|
29
|
+
exports.SupabaseAdvisorLintFragmentNode = (0, graphql_tag_1.default) `
|
|
30
|
+
fragment SupabaseAdvisorLintFragment on SupabaseAdvisorLint {
|
|
31
|
+
name
|
|
32
|
+
title
|
|
33
|
+
level
|
|
34
|
+
description
|
|
35
|
+
detail
|
|
36
|
+
entity
|
|
37
|
+
remediation
|
|
38
|
+
cacheKey
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
@@ -4,7 +4,8 @@ exports.selectOrCreateAscApiKeyIdAsync = selectOrCreateAscApiKeyIdAsync;
|
|
|
4
4
|
const prompts_1 = require("../../prompts");
|
|
5
5
|
const AscApiKeyUtils_1 = require("../../credentials/ios/actions/AscApiKeyUtils");
|
|
6
6
|
async function selectOrCreateAscApiKeyIdAsync({ credentialsContext, existingKeys, ownerAccount, }) {
|
|
7
|
-
|
|
7
|
+
// Individual API keys are not supported for the ASC connection yet.
|
|
8
|
+
const sortedKeys = (0, AscApiKeyUtils_1.sortAscApiKeysByUpdatedAtDesc)((0, AscApiKeyUtils_1.filterOutIndividualAscApiKeys)(existingKeys));
|
|
8
9
|
const createKeyOption = {
|
|
9
10
|
title: '[Create or upload a new API key]',
|
|
10
11
|
value: '__create_new_key__',
|
|
@@ -54,12 +54,14 @@ function mergeEnvContent(rawContent, newVars) {
|
|
|
54
54
|
let match;
|
|
55
55
|
while ((match = regex.exec(rawContent)) !== null) {
|
|
56
56
|
const key = match[1];
|
|
57
|
-
|
|
57
|
+
const indices = match.indices;
|
|
58
|
+
const keyRange = indices?.[1];
|
|
59
|
+
if (!Object.hasOwn(newVars, key) || !indices || !keyRange) {
|
|
58
60
|
continue;
|
|
59
61
|
}
|
|
60
62
|
// match[0] runs past the value onto a following comment line, so spans come from the groups.
|
|
61
|
-
const [keyStart, keyEnd] =
|
|
62
|
-
const valueRange =
|
|
63
|
+
const [keyStart, keyEnd] = keyRange;
|
|
64
|
+
const valueRange = indices[2];
|
|
63
65
|
const definitionEnd = valueRange
|
|
64
66
|
? valueRange[1] - (/\s+$/.exec(match[2])?.[0].length ?? 0)
|
|
65
67
|
: keyEnd + (/^[ \t]*(?:=[ \t]*|:[ \t]+)/.exec(rawContent.slice(keyEnd))?.[0].length ?? 0);
|
|
@@ -24,9 +24,9 @@ export declare function pollProvisionReceiptAsync(graphqlClient: ExpoGraphqlClie
|
|
|
24
24
|
export declare function authorizeViaBrowserAsync(graphqlClient: ExpoGraphqlClient, account: {
|
|
25
25
|
id: string;
|
|
26
26
|
name: string;
|
|
27
|
-
}, nonInteractive: boolean): Promise<SupabaseConnectionData>;
|
|
27
|
+
}, nonInteractive: boolean, previousUpdatedAt?: string): Promise<SupabaseConnectionData>;
|
|
28
28
|
export declare function loadOrganizationsBestEffortAsync(graphqlClient: ExpoGraphqlClient, accountId: string): Promise<SupabaseOrganizationData[] | null>;
|
|
29
|
-
export declare function pollForConnectionAsync(graphqlClient: ExpoGraphqlClient, accountId: string): Promise<SupabaseConnectionData>;
|
|
29
|
+
export declare function pollForConnectionAsync(graphqlClient: ExpoGraphqlClient, accountId: string, previousUpdatedAt?: string): Promise<SupabaseConnectionData>;
|
|
30
30
|
export declare function resolvePublishableKeyAsync(graphqlClient: ExpoGraphqlClient, appId: string, project: SupabaseProjectData): Promise<string>;
|
|
31
31
|
export declare function resolveRegionAsync(flagValue: string | undefined, nonInteractive: boolean): Promise<string>;
|
|
32
32
|
export declare function resolveOrganizationAsync(graphqlClient: ExpoGraphqlClient, accountId: string, connection: SupabaseConnectionData, organizationFlag: string | undefined, nonInteractive: boolean, preloadedOrganizations: SupabaseOrganizationData[] | null): Promise<SupabaseConnectionData>;
|