eas-cli 27.1.0 → 27.2.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.
Files changed (42) hide show
  1. package/README.md +221 -146
  2. package/build/analytics/AnalyticsManager.d.ts +2 -0
  3. package/build/analytics/AnalyticsManager.js +2 -0
  4. package/build/build/build.d.ts +1 -2
  5. package/build/build/build.js +3 -4
  6. package/build/build/freeTierNearLimitAgentUpdatesTip.d.ts +98 -0
  7. package/build/build/freeTierNearLimitAgentUpdatesTip.js +205 -0
  8. package/build/build/runBuildAndSubmit.d.ts +2 -0
  9. package/build/build/runBuildAndSubmit.js +3 -0
  10. package/build/build/simulatorsLaunchHint.d.ts +7 -0
  11. package/build/build/simulatorsLaunchHint.js +40 -0
  12. package/build/commands/build/index.js +8 -1
  13. package/build/commands/observe/session.js +4 -3
  14. package/build/commands/observe/trace.d.ts +17 -0
  15. package/build/commands/observe/trace.js +58 -0
  16. package/build/commands/observe/traces.d.ts +33 -0
  17. package/build/commands/observe/traces.js +159 -0
  18. package/build/graphql/generated.d.ts +404 -0
  19. package/build/graphql/mutations/UserPreferenceMutation.d.ts +5 -0
  20. package/build/graphql/mutations/UserPreferenceMutation.js +24 -0
  21. package/build/graphql/queries/AccountQuery.d.ts +3 -1
  22. package/build/graphql/queries/AccountQuery.js +54 -0
  23. package/build/graphql/queries/ObserveQuery.d.ts +24 -1
  24. package/build/graphql/queries/ObserveQuery.js +114 -1
  25. package/build/graphql/queries/UserPreferenceQuery.d.ts +8 -0
  26. package/build/graphql/queries/UserPreferenceQuery.js +28 -0
  27. package/build/graphql/types/Observe.d.ts +1 -0
  28. package/build/graphql/types/Observe.js +53 -1
  29. package/build/observe/fetchSessions.d.ts +12 -1
  30. package/build/observe/fetchSessions.js +39 -2
  31. package/build/observe/fetchSpans.d.ts +27 -0
  32. package/build/observe/fetchSpans.js +36 -0
  33. package/build/observe/formatSessions.d.ts +3 -1
  34. package/build/observe/formatSessions.js +40 -3
  35. package/build/observe/formatSpans.d.ts +110 -0
  36. package/build/observe/formatSpans.js +250 -0
  37. package/build/observe/spanFilters.d.ts +5 -0
  38. package/build/observe/spanFilters.js +32 -0
  39. package/oclif.manifest.json +352 -2
  40. package/package.json +6 -6
  41. package/build/build/freeTierLimitGuidance.d.ts +0 -19
  42. package/build/build/freeTierLimitGuidance.js +0 -39
@@ -0,0 +1,33 @@
1
+ import EasCommand from '../../commandUtils/EasCommand';
2
+ export default class ObserveTraces extends EasCommand {
3
+ static description: string;
4
+ static flags: {
5
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
6
+ 'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
7
+ 'project-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ 'session-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
+ name: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
10
+ kind: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
11
+ status: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
12
+ host: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
13
+ 'http-status': import("@oclif/core/lib/interfaces").OptionFlag<number[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
14
+ 'min-duration': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
15
+ 'root-only': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
16
+ 'all-spans': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
17
+ environment: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
18
+ 'update-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
19
+ 'build-number': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
20
+ 'app-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
21
+ start: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
22
+ end: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
23
+ days: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
24
+ limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
25
+ after: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
26
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
27
+ };
28
+ static contextDefinition: {
29
+ loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
30
+ projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
31
+ };
32
+ runAsync(): Promise<void>;
33
+ }
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const core_1 = require("@oclif/core");
5
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
6
+ const flags_1 = require("../../commandUtils/flags");
7
+ const pagination_1 = require("../../commandUtils/pagination");
8
+ const ObserveQuery_1 = require("../../graphql/queries/ObserveQuery");
9
+ const log_1 = tslib_1.__importDefault(require("../../log"));
10
+ const fetchSpans_1 = require("../../observe/fetchSpans");
11
+ const flags_2 = require("../../observe/flags");
12
+ const formatSpans_1 = require("../../observe/formatSpans");
13
+ const planGating_1 = require("../../observe/planGating");
14
+ const platforms_1 = require("../../observe/platforms");
15
+ const spanFilters_1 = require("../../observe/spanFilters");
16
+ const startAndEndTime_1 = require("../../observe/startAndEndTime");
17
+ const json_1 = require("../../utils/json");
18
+ const DEFAULT_SPANS_LIMIT = 20;
19
+ class ObserveTraces extends EasCommand_1.default {
20
+ static description = 'display request trace spans recorded by the app, newest first. With no span filters, a summary of span names and kinds with counts is returned. Pass --all-spans or a span filter (--name, --kind, --status, --host, --http-status, --min-duration, --root-only, --session-id) to list individual spans';
21
+ static flags = {
22
+ ...flags_2.ObservePlatformFlag,
23
+ ...flags_2.ObserveAfterFlag,
24
+ limit: (0, pagination_1.getLimitFlagWithCustomValues)({
25
+ defaultTo: DEFAULT_SPANS_LIMIT,
26
+ limit: 100,
27
+ }),
28
+ ...flags_2.ObserveTimeRangeFlags,
29
+ ...flags_2.ObserveAppVersionFlag,
30
+ ...flags_2.ObserveBuildNumberFlag,
31
+ ...flags_2.ObserveUpdateIdFlag,
32
+ ...flags_2.ObserveEnvironmentFlag,
33
+ 'session-id': core_1.Flags.string({
34
+ description: 'Filter by session ID',
35
+ }),
36
+ name: core_1.Flags.string({
37
+ description: 'Filter by span name, such as GET or POST (can be specified multiple times)',
38
+ multiple: true,
39
+ }),
40
+ kind: core_1.Flags.option({
41
+ description: 'Filter by span kind (can be specified multiple times)',
42
+ multiple: true,
43
+ options: spanFilters_1.allowedSpanKindFlagValues,
44
+ })(),
45
+ status: core_1.Flags.option({
46
+ description: 'Filter by span status (can be specified multiple times)',
47
+ multiple: true,
48
+ options: spanFilters_1.allowedSpanStatusFlagValues,
49
+ })(),
50
+ host: core_1.Flags.string({
51
+ description: 'Filter by request host (can be specified multiple times)',
52
+ multiple: true,
53
+ }),
54
+ 'http-status': core_1.Flags.integer({
55
+ description: 'Filter by HTTP response status code (can be specified multiple times)',
56
+ multiple: true,
57
+ }),
58
+ 'min-duration': core_1.Flags.integer({
59
+ description: 'Only spans that took at least this many milliseconds',
60
+ min: 0,
61
+ }),
62
+ 'root-only': core_1.Flags.boolean({
63
+ description: 'Only root spans (spans with no parent)',
64
+ default: false,
65
+ }),
66
+ 'all-spans': core_1.Flags.boolean({
67
+ description: 'List individual spans instead of the summary of span names + counts, even with no span filter',
68
+ default: false,
69
+ }),
70
+ ...flags_1.EasProjectIdFlag,
71
+ ...flags_1.EasNonInteractiveAndJsonFlags,
72
+ };
73
+ static contextDefinition = {
74
+ ...this.ContextOptions.ProjectId,
75
+ ...this.ContextOptions.LoggedIn,
76
+ };
77
+ async runAsync() {
78
+ const { flags } = await this.parse(ObserveTraces);
79
+ const { json, nonInteractive } = (0, flags_1.resolveNonInteractiveAndJsonFlags)(flags);
80
+ const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(ObserveTraces, {
81
+ nonInteractive,
82
+ projectIdOverride: flags['project-id'],
83
+ });
84
+ if (json) {
85
+ (0, json_1.enableJsonOutput)();
86
+ }
87
+ const { daysBack, startTime, endTime } = (0, startAndEndTime_1.resolveTimeRange)(flags);
88
+ const platforms = (0, platforms_1.observePlatformsFromFlag)(flags.platform);
89
+ const hasSpanFilter = flags['session-id'] !== undefined ||
90
+ (flags.name?.length ?? 0) > 0 ||
91
+ (flags.kind?.length ?? 0) > 0 ||
92
+ (flags.status?.length ?? 0) > 0 ||
93
+ (flags.host?.length ?? 0) > 0 ||
94
+ (flags['http-status']?.length ?? 0) > 0 ||
95
+ flags['min-duration'] !== undefined ||
96
+ flags['root-only'];
97
+ // The names summary has no span-level filters and no pagination, so any of
98
+ // those (or --all-spans) means the caller wants the span list.
99
+ if (!hasSpanFilter && !flags['all-spans'] && !flags.after) {
100
+ const { names, isTruncated } = await (0, planGating_1.withObservePlanGateHandlingAsync)(() => ObserveQuery_1.ObserveQuery.spanNamesAsync(graphqlClient, {
101
+ appId: projectId,
102
+ input: {
103
+ startTime,
104
+ endTime,
105
+ ...(platforms?.length && { platforms }),
106
+ ...(flags.environment && { environment: flags.environment }),
107
+ ...(flags['app-version'] && { appVersion: flags['app-version'] }),
108
+ ...(flags['build-number'] && { appBuildNumber: flags['build-number'] }),
109
+ ...(flags['update-id'] && { appUpdateId: flags['update-id'] }),
110
+ },
111
+ }));
112
+ if (json) {
113
+ (0, json_1.printJsonOnlyOutput)((0, formatSpans_1.buildObserveSpanNamesJson)(names, isTruncated));
114
+ }
115
+ else {
116
+ log_1.default.addNewLineIfNone();
117
+ log_1.default.log((0, formatSpans_1.buildObserveSpanNamesTable)(names, {
118
+ daysBack,
119
+ startTime,
120
+ endTime,
121
+ isTruncated,
122
+ }));
123
+ }
124
+ return;
125
+ }
126
+ const { spans, pageInfo } = await (0, planGating_1.withObservePlanGateHandlingAsync)(() => (0, fetchSpans_1.fetchObserveSpansAsync)(graphqlClient, projectId, {
127
+ limit: flags.limit ?? DEFAULT_SPANS_LIMIT,
128
+ ...(flags.after && { after: flags.after }),
129
+ startTime,
130
+ endTime,
131
+ platforms,
132
+ appVersion: flags['app-version'],
133
+ buildNumber: flags['build-number'],
134
+ updateId: flags['update-id'],
135
+ environment: flags.environment,
136
+ sessionId: flags['session-id'],
137
+ names: flags.name,
138
+ kinds: (0, spanFilters_1.spanKindsFromFlag)(flags.kind),
139
+ statusCodes: (0, spanFilters_1.spanStatusCodesFromFlag)(flags.status),
140
+ hosts: flags.host,
141
+ httpStatusCodes: flags['http-status'],
142
+ minDurationMs: flags['min-duration'],
143
+ rootOnly: flags['root-only'],
144
+ }));
145
+ if (json) {
146
+ (0, json_1.printJsonOnlyOutput)((0, formatSpans_1.buildObserveSpansJson)(spans, pageInfo));
147
+ }
148
+ else {
149
+ log_1.default.addNewLineIfNone();
150
+ log_1.default.log((0, formatSpans_1.buildObserveSpansTable)(spans, pageInfo, {
151
+ daysBack,
152
+ startTime,
153
+ endTime,
154
+ sessionId: flags['session-id'],
155
+ }));
156
+ }
157
+ }
158
+ }
159
+ exports.default = ObserveTraces;
@@ -17859,6 +17859,22 @@ export type CreateAppScopedUploadSessionMutation = {
17859
17859
  createAppScopedUploadSession: any;
17860
17860
  };
17861
17861
  };
17862
+ export type SetUserPreferenceMutationVariables = Exact<{
17863
+ key: Scalars['String']['input'];
17864
+ value: Scalars['JSON']['input'];
17865
+ }>;
17866
+ export type SetUserPreferenceMutation = {
17867
+ __typename?: 'RootMutation';
17868
+ userPreference: {
17869
+ __typename?: 'UserPreferenceMutation';
17870
+ set: {
17871
+ __typename?: 'UserPreference';
17872
+ id: string;
17873
+ key: string;
17874
+ value: any;
17875
+ };
17876
+ };
17877
+ };
17862
17878
  export type CreateWebhookMutationVariables = Exact<{
17863
17879
  appId: Scalars['String']['input'];
17864
17880
  webhookInput: WebhookInput;
@@ -18298,6 +18314,59 @@ export type AccountFullUsageQuery = {
18298
18314
  };
18299
18315
  };
18300
18316
  };
18317
+ export type AccountFreeTierBuildUsageQueryVariables = Exact<{
18318
+ accountId: Scalars['String']['input'];
18319
+ currentDate: Scalars['DateTime']['input'];
18320
+ }>;
18321
+ export type AccountFreeTierBuildUsageQuery = {
18322
+ __typename?: 'RootQuery';
18323
+ account: {
18324
+ __typename?: 'AccountQuery';
18325
+ byId: {
18326
+ __typename?: 'Account';
18327
+ id: string;
18328
+ subscription?: {
18329
+ __typename?: 'SubscriptionDetails';
18330
+ id: string;
18331
+ name?: string | null;
18332
+ } | null;
18333
+ billingPeriod: {
18334
+ __typename?: 'BillingPeriod';
18335
+ id: string;
18336
+ start: any;
18337
+ end: any;
18338
+ };
18339
+ usageMetrics: {
18340
+ __typename?: 'AccountUsageMetrics';
18341
+ EAS_BUILD: {
18342
+ __typename?: 'UsageMetricTotal';
18343
+ id: string;
18344
+ planMetrics: Array<{
18345
+ __typename?: 'EstimatedUsage';
18346
+ id: string;
18347
+ serviceMetric: EasServiceMetric;
18348
+ metricType: UsageMetricType;
18349
+ value: number;
18350
+ limit: number;
18351
+ platformBreakdown?: {
18352
+ __typename?: 'EstimatedUsagePlatformBreakdown';
18353
+ ios: {
18354
+ __typename?: 'EstimatedUsagePlatformDetail';
18355
+ value: number;
18356
+ limit: number;
18357
+ };
18358
+ android: {
18359
+ __typename?: 'EstimatedUsagePlatformDetail';
18360
+ value: number;
18361
+ limit: number;
18362
+ };
18363
+ } | null;
18364
+ }>;
18365
+ };
18366
+ };
18367
+ };
18368
+ };
18369
+ };
18301
18370
  export type AccountUsageForOverageWarningQueryVariables = Exact<{
18302
18371
  accountId: Scalars['String']['input'];
18303
18372
  currentDate: Scalars['DateTime']['input'];
@@ -20829,6 +20898,7 @@ export type AppObserveSessionEventsQueryVariables = Exact<{
20829
20898
  first?: InputMaybe<Scalars['Int']['input']>;
20830
20899
  metricsOrderBy?: InputMaybe<AppObserveMetricsListOrderBy>;
20831
20900
  logsOrderBy?: InputMaybe<AppObserveLogsOrderBy>;
20901
+ spansOrderBy?: InputMaybe<AppObserveSpanListOrderBy>;
20832
20902
  }>;
20833
20903
  export type AppObserveSessionEventsQuery = {
20834
20904
  __typename?: 'RootQuery';
@@ -20937,6 +21007,271 @@ export type AppObserveSessionEventsQuery = {
20937
21007
  };
20938
21008
  }>;
20939
21009
  };
21010
+ spans: {
21011
+ __typename?: 'AppObserveSpanConnection';
21012
+ pageInfo: {
21013
+ __typename?: 'PageInfo';
21014
+ hasNextPage: boolean;
21015
+ hasPreviousPage: boolean;
21016
+ endCursor?: string | null;
21017
+ };
21018
+ edges: Array<{
21019
+ __typename?: 'AppObserveSpanEdge';
21020
+ node: {
21021
+ __typename?: 'AppObserveSpan';
21022
+ id: string;
21023
+ traceId: string;
21024
+ spanId: string;
21025
+ parentSpanId?: string | null;
21026
+ name: string;
21027
+ kind: AppObserveSpanKind;
21028
+ startTimestamp: any;
21029
+ endTimestamp: any;
21030
+ durationMs: number;
21031
+ statusCode: AppObserveSpanStatusCode;
21032
+ statusMessage?: string | null;
21033
+ sessionId?: string | null;
21034
+ droppedAttributesCount: number;
21035
+ droppedEventsCount: number;
21036
+ droppedLinksCount: number;
21037
+ ingestedAt?: any | null;
21038
+ appVersion: string;
21039
+ appBuildNumber: string;
21040
+ appUpdateId?: string | null;
21041
+ appEasBuildId?: string | null;
21042
+ expoSdkVersion?: string | null;
21043
+ reactNativeVersion?: string | null;
21044
+ deviceOs: string;
21045
+ deviceOsVersion: string;
21046
+ deviceModel: string;
21047
+ environment?: string | null;
21048
+ easClientId: string;
21049
+ countryCode?: string | null;
21050
+ http?: {
21051
+ __typename?: 'AppObserveSpanHttp';
21052
+ method?: string | null;
21053
+ statusCode?: number | null;
21054
+ urlHost?: string | null;
21055
+ urlFull?: string | null;
21056
+ protocolVersion?: string | null;
21057
+ requestSize?: number | null;
21058
+ responseSize?: number | null;
21059
+ errorType?: string | null;
21060
+ } | null;
21061
+ attributes: Array<{
21062
+ __typename?: 'AppObserveEventProperty';
21063
+ key: string;
21064
+ value: string;
21065
+ type: AppObservePropertyType;
21066
+ }>;
21067
+ events: Array<{
21068
+ __typename?: 'AppObserveSpanEvent';
21069
+ name: string;
21070
+ timestamp: any;
21071
+ attributes: any;
21072
+ }>;
21073
+ };
21074
+ }>;
21075
+ };
21076
+ };
21077
+ };
21078
+ };
21079
+ };
21080
+ };
21081
+ export type AppObserveSpanListQueryVariables = Exact<{
21082
+ appId: Scalars['String']['input'];
21083
+ filter: AppObserveSpanListFilter;
21084
+ first?: InputMaybe<Scalars['Int']['input']>;
21085
+ after?: InputMaybe<Scalars['String']['input']>;
21086
+ orderBy?: InputMaybe<AppObserveSpanListOrderBy>;
21087
+ }>;
21088
+ export type AppObserveSpanListQuery = {
21089
+ __typename?: 'RootQuery';
21090
+ app: {
21091
+ __typename?: 'AppQuery';
21092
+ byId: {
21093
+ __typename?: 'App';
21094
+ id: string;
21095
+ observe: {
21096
+ __typename?: 'AppObserve';
21097
+ traces: {
21098
+ __typename?: 'AppObserveTraces';
21099
+ spans: {
21100
+ __typename?: 'AppObserveSpanConnection';
21101
+ pageInfo: {
21102
+ __typename?: 'PageInfo';
21103
+ hasNextPage: boolean;
21104
+ hasPreviousPage: boolean;
21105
+ endCursor?: string | null;
21106
+ };
21107
+ edges: Array<{
21108
+ __typename?: 'AppObserveSpanEdge';
21109
+ cursor: string;
21110
+ node: {
21111
+ __typename?: 'AppObserveSpan';
21112
+ id: string;
21113
+ traceId: string;
21114
+ spanId: string;
21115
+ parentSpanId?: string | null;
21116
+ name: string;
21117
+ kind: AppObserveSpanKind;
21118
+ startTimestamp: any;
21119
+ endTimestamp: any;
21120
+ durationMs: number;
21121
+ statusCode: AppObserveSpanStatusCode;
21122
+ statusMessage?: string | null;
21123
+ sessionId?: string | null;
21124
+ droppedAttributesCount: number;
21125
+ droppedEventsCount: number;
21126
+ droppedLinksCount: number;
21127
+ ingestedAt?: any | null;
21128
+ appVersion: string;
21129
+ appBuildNumber: string;
21130
+ appUpdateId?: string | null;
21131
+ appEasBuildId?: string | null;
21132
+ expoSdkVersion?: string | null;
21133
+ reactNativeVersion?: string | null;
21134
+ deviceOs: string;
21135
+ deviceOsVersion: string;
21136
+ deviceModel: string;
21137
+ environment?: string | null;
21138
+ easClientId: string;
21139
+ countryCode?: string | null;
21140
+ http?: {
21141
+ __typename?: 'AppObserveSpanHttp';
21142
+ method?: string | null;
21143
+ statusCode?: number | null;
21144
+ urlHost?: string | null;
21145
+ urlFull?: string | null;
21146
+ protocolVersion?: string | null;
21147
+ requestSize?: number | null;
21148
+ responseSize?: number | null;
21149
+ errorType?: string | null;
21150
+ } | null;
21151
+ attributes: Array<{
21152
+ __typename?: 'AppObserveEventProperty';
21153
+ key: string;
21154
+ value: string;
21155
+ type: AppObservePropertyType;
21156
+ }>;
21157
+ events: Array<{
21158
+ __typename?: 'AppObserveSpanEvent';
21159
+ name: string;
21160
+ timestamp: any;
21161
+ attributes: any;
21162
+ }>;
21163
+ };
21164
+ }>;
21165
+ };
21166
+ };
21167
+ };
21168
+ };
21169
+ };
21170
+ };
21171
+ export type AppObserveSpanNamesQueryVariables = Exact<{
21172
+ appId: Scalars['String']['input'];
21173
+ input: AppObserveSpanNamesInput;
21174
+ }>;
21175
+ export type AppObserveSpanNamesQuery = {
21176
+ __typename?: 'RootQuery';
21177
+ app: {
21178
+ __typename?: 'AppQuery';
21179
+ byId: {
21180
+ __typename?: 'App';
21181
+ id: string;
21182
+ observe: {
21183
+ __typename?: 'AppObserve';
21184
+ traces: {
21185
+ __typename?: 'AppObserveTraces';
21186
+ names: {
21187
+ __typename?: 'AppObserveSpanNames';
21188
+ isTruncated: boolean;
21189
+ names: Array<{
21190
+ __typename?: 'AppObserveSpanName';
21191
+ name: string;
21192
+ kind: AppObserveSpanKind;
21193
+ count: number;
21194
+ }>;
21195
+ };
21196
+ };
21197
+ };
21198
+ };
21199
+ };
21200
+ };
21201
+ export type AppObserveTraceByIdQueryVariables = Exact<{
21202
+ appId: Scalars['String']['input'];
21203
+ id: Scalars['ID']['input'];
21204
+ }>;
21205
+ export type AppObserveTraceByIdQuery = {
21206
+ __typename?: 'RootQuery';
21207
+ app: {
21208
+ __typename?: 'AppQuery';
21209
+ byId: {
21210
+ __typename?: 'App';
21211
+ id: string;
21212
+ observe: {
21213
+ __typename?: 'AppObserve';
21214
+ traces: {
21215
+ __typename?: 'AppObserveTraces';
21216
+ trace?: {
21217
+ __typename?: 'AppObserveTrace';
21218
+ id: string;
21219
+ isTruncated: boolean;
21220
+ spans: Array<{
21221
+ __typename?: 'AppObserveSpan';
21222
+ id: string;
21223
+ traceId: string;
21224
+ spanId: string;
21225
+ parentSpanId?: string | null;
21226
+ name: string;
21227
+ kind: AppObserveSpanKind;
21228
+ startTimestamp: any;
21229
+ endTimestamp: any;
21230
+ durationMs: number;
21231
+ statusCode: AppObserveSpanStatusCode;
21232
+ statusMessage?: string | null;
21233
+ sessionId?: string | null;
21234
+ droppedAttributesCount: number;
21235
+ droppedEventsCount: number;
21236
+ droppedLinksCount: number;
21237
+ ingestedAt?: any | null;
21238
+ appVersion: string;
21239
+ appBuildNumber: string;
21240
+ appUpdateId?: string | null;
21241
+ appEasBuildId?: string | null;
21242
+ expoSdkVersion?: string | null;
21243
+ reactNativeVersion?: string | null;
21244
+ deviceOs: string;
21245
+ deviceOsVersion: string;
21246
+ deviceModel: string;
21247
+ environment?: string | null;
21248
+ easClientId: string;
21249
+ countryCode?: string | null;
21250
+ http?: {
21251
+ __typename?: 'AppObserveSpanHttp';
21252
+ method?: string | null;
21253
+ statusCode?: number | null;
21254
+ urlHost?: string | null;
21255
+ urlFull?: string | null;
21256
+ protocolVersion?: string | null;
21257
+ requestSize?: number | null;
21258
+ responseSize?: number | null;
21259
+ errorType?: string | null;
21260
+ } | null;
21261
+ attributes: Array<{
21262
+ __typename?: 'AppObserveEventProperty';
21263
+ key: string;
21264
+ value: string;
21265
+ type: AppObservePropertyType;
21266
+ }>;
21267
+ events: Array<{
21268
+ __typename?: 'AppObserveSpanEvent';
21269
+ name: string;
21270
+ timestamp: any;
21271
+ attributes: any;
21272
+ }>;
21273
+ }>;
21274
+ } | null;
20940
21275
  };
20941
21276
  };
20942
21277
  };
@@ -22208,6 +22543,21 @@ export type UpdateByIdQuery = {
22208
22543
  };
22209
22544
  };
22210
22545
  };
22546
+ export type UserPreferenceByKeyQueryVariables = Exact<{
22547
+ key: Scalars['String']['input'];
22548
+ }>;
22549
+ export type UserPreferenceByKeyQuery = {
22550
+ __typename?: 'RootQuery';
22551
+ userPreference: {
22552
+ __typename?: 'UserPreferenceQuery';
22553
+ get?: {
22554
+ __typename?: 'UserPreference';
22555
+ id: string;
22556
+ key: string;
22557
+ value: any;
22558
+ } | null;
22559
+ };
22560
+ };
22211
22561
  export type CurrentUserQueryVariables = Exact<{
22212
22562
  [key: string]: never;
22213
22563
  }>;
@@ -24229,6 +24579,60 @@ export type AppObserveAppVersionFragment = {
24229
24579
  };
24230
24580
  }>;
24231
24581
  };
24582
+ export type AppObserveSpanFragment = {
24583
+ __typename?: 'AppObserveSpan';
24584
+ id: string;
24585
+ traceId: string;
24586
+ spanId: string;
24587
+ parentSpanId?: string | null;
24588
+ name: string;
24589
+ kind: AppObserveSpanKind;
24590
+ startTimestamp: any;
24591
+ endTimestamp: any;
24592
+ durationMs: number;
24593
+ statusCode: AppObserveSpanStatusCode;
24594
+ statusMessage?: string | null;
24595
+ sessionId?: string | null;
24596
+ droppedAttributesCount: number;
24597
+ droppedEventsCount: number;
24598
+ droppedLinksCount: number;
24599
+ ingestedAt?: any | null;
24600
+ appVersion: string;
24601
+ appBuildNumber: string;
24602
+ appUpdateId?: string | null;
24603
+ appEasBuildId?: string | null;
24604
+ expoSdkVersion?: string | null;
24605
+ reactNativeVersion?: string | null;
24606
+ deviceOs: string;
24607
+ deviceOsVersion: string;
24608
+ deviceModel: string;
24609
+ environment?: string | null;
24610
+ easClientId: string;
24611
+ countryCode?: string | null;
24612
+ http?: {
24613
+ __typename?: 'AppObserveSpanHttp';
24614
+ method?: string | null;
24615
+ statusCode?: number | null;
24616
+ urlHost?: string | null;
24617
+ urlFull?: string | null;
24618
+ protocolVersion?: string | null;
24619
+ requestSize?: number | null;
24620
+ responseSize?: number | null;
24621
+ errorType?: string | null;
24622
+ } | null;
24623
+ attributes: Array<{
24624
+ __typename?: 'AppObserveEventProperty';
24625
+ key: string;
24626
+ value: string;
24627
+ type: AppObservePropertyType;
24628
+ }>;
24629
+ events: Array<{
24630
+ __typename?: 'AppObserveSpanEvent';
24631
+ name: string;
24632
+ timestamp: any;
24633
+ attributes: any;
24634
+ }>;
24635
+ };
24232
24636
  export type PostHogOrganizationConnectionFragment = {
24233
24637
  __typename?: 'PostHogOrganizationConnection';
24234
24638
  id: string;
@@ -0,0 +1,5 @@
1
+ import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
+ export declare const UserPreferenceMutation: {
3
+ /** Stores the JSON value under the key for the current user. Rejects for robot viewers. */
4
+ setAsync(graphqlClient: ExpoGraphqlClient, key: string, value: unknown): Promise<void>;
5
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserPreferenceMutation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
+ const client_1 = require("../client");
7
+ exports.UserPreferenceMutation = {
8
+ /** Stores the JSON value under the key for the current user. Rejects for robot viewers. */
9
+ async setAsync(graphqlClient, key, value) {
10
+ await (0, client_1.withErrorHandlingAsync)(graphqlClient
11
+ .mutation((0, graphql_tag_1.default) `
12
+ mutation SetUserPreference($key: String!, $value: JSON!) {
13
+ userPreference {
14
+ set(key: $key, value: $value) {
15
+ id
16
+ key
17
+ value
18
+ }
19
+ }
20
+ }
21
+ `, { key, value }, { additionalTypenames: ['UserPreference'], noRetry: true })
22
+ .toPromise());
23
+ },
24
+ };