@distilled.cloud/expo-eas 1.0.0-rc.2 → 1.0.0-rc.4
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/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/services/eas.d.ts +13166 -46381
- package/lib/services/eas.d.ts.map +1 -1
- package/lib/services/eas.js +9353 -54967
- package/lib/services/eas.js.map +1 -1
- package/package.json +7 -5
- package/src/errors.ts +16 -16
- package/src/services/eas.ts +22987 -105007
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/expo-eas",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -73,12 +73,14 @@
|
|
|
73
73
|
"specs:update": "git -C specs/eas-cli fetch && git -C specs/eas-cli checkout main && git -C specs/eas-cli pull"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "1.0.0-rc.
|
|
77
|
-
"@effect/platform-bun": ">=4.0.0-beta.102 || >=4.0.0",
|
|
78
|
-
"effect": ">=4.0.0-beta.102 || >=4.0.0"
|
|
76
|
+
"@distilled.cloud/core": "1.0.0-rc.4"
|
|
79
77
|
},
|
|
80
78
|
"devDependencies": {
|
|
81
79
|
"@types/bun": "latest",
|
|
82
|
-
"@types/node": "latest"
|
|
80
|
+
"@types/node": "latest",
|
|
81
|
+
"@effect/platform-bun": ">=4.0.0-beta.104 || >=4.0.0"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"effect": ">=4.0.0-beta.104 || >=4.0.0"
|
|
83
85
|
}
|
|
84
86
|
}
|
package/src/errors.ts
CHANGED
|
@@ -43,7 +43,7 @@ import * as Category from "@distilled.cloud/core/category";
|
|
|
43
43
|
* Catch-all for EAS GraphQL errors that don't match any other tagged class.
|
|
44
44
|
* Carries the raw `errors[]` envelope and a best-effort `code` / `message`.
|
|
45
45
|
*/
|
|
46
|
-
export class UnknownEasError extends Schema.
|
|
46
|
+
export class UnknownEasError extends Schema.TaggedError<UnknownEasError>()(
|
|
47
47
|
"UnknownEasError",
|
|
48
48
|
{
|
|
49
49
|
code: Schema.optional(Schema.String),
|
|
@@ -53,7 +53,7 @@ export class UnknownEasError extends Schema.TaggedErrorClass<UnknownEasError>()(
|
|
|
53
53
|
).pipe(Category.withServerError) {}
|
|
54
54
|
|
|
55
55
|
/** Schema parse error wrapper (response body did not match the operation schema). */
|
|
56
|
-
export class EasParseError extends Schema.
|
|
56
|
+
export class EasParseError extends Schema.TaggedError<EasParseError>()(
|
|
57
57
|
"EasParseError",
|
|
58
58
|
{
|
|
59
59
|
body: Schema.Unknown,
|
|
@@ -65,7 +65,7 @@ export class EasParseError extends Schema.TaggedErrorClass<EasParseError>()(
|
|
|
65
65
|
* The installed eas-cli / API client is too old. Returned with errorCode
|
|
66
66
|
* `EAS_CLI_UPGRADE_REQUIRED_ERROR` after a backward-incompatible schema change.
|
|
67
67
|
*/
|
|
68
|
-
export class EasUpgradeRequired extends Schema.
|
|
68
|
+
export class EasUpgradeRequired extends Schema.TaggedError<EasUpgradeRequired>()(
|
|
69
69
|
"EasUpgradeRequired",
|
|
70
70
|
{
|
|
71
71
|
message: Schema.String,
|
|
@@ -73,7 +73,7 @@ export class EasUpgradeRequired extends Schema.TaggedErrorClass<EasUpgradeRequir
|
|
|
73
73
|
).pipe(Category.withServerError) {}
|
|
74
74
|
|
|
75
75
|
/** Generic input validation failure (errorCode `VALIDATION_ERROR`). */
|
|
76
|
-
export class EasValidationError extends Schema.
|
|
76
|
+
export class EasValidationError extends Schema.TaggedError<EasValidationError>()(
|
|
77
77
|
"EasValidationError",
|
|
78
78
|
{
|
|
79
79
|
message: Schema.String,
|
|
@@ -84,7 +84,7 @@ export class EasValidationError extends Schema.TaggedErrorClass<EasValidationErr
|
|
|
84
84
|
* Build was submitted using a deprecated job format
|
|
85
85
|
* (errorCode `TURTLE_DEPRECATED_JOB_FORMAT`).
|
|
86
86
|
*/
|
|
87
|
-
export class EasDeprecatedJobFormat extends Schema.
|
|
87
|
+
export class EasDeprecatedJobFormat extends Schema.TaggedError<EasDeprecatedJobFormat>()(
|
|
88
88
|
"EasDeprecatedJobFormat",
|
|
89
89
|
{
|
|
90
90
|
message: Schema.String,
|
|
@@ -92,7 +92,7 @@ export class EasDeprecatedJobFormat extends Schema.TaggedErrorClass<EasDeprecate
|
|
|
92
92
|
).pipe(Category.withServerError) {}
|
|
93
93
|
|
|
94
94
|
/** EAS Build is temporarily down for maintenance. */
|
|
95
|
-
export class EasBuildDownForMaintenance extends Schema.
|
|
95
|
+
export class EasBuildDownForMaintenance extends Schema.TaggedError<EasBuildDownForMaintenance>()(
|
|
96
96
|
"EasBuildDownForMaintenance",
|
|
97
97
|
{
|
|
98
98
|
message: Schema.String,
|
|
@@ -100,7 +100,7 @@ export class EasBuildDownForMaintenance extends Schema.TaggedErrorClass<EasBuild
|
|
|
100
100
|
).pipe(Category.withServerError) {}
|
|
101
101
|
|
|
102
102
|
/** Account is on the free tier and EAS Build has been disabled for it. */
|
|
103
|
-
export class EasBuildFreeTierDisabled extends Schema.
|
|
103
|
+
export class EasBuildFreeTierDisabled extends Schema.TaggedError<EasBuildFreeTierDisabled>()(
|
|
104
104
|
"EasBuildFreeTierDisabled",
|
|
105
105
|
{
|
|
106
106
|
message: Schema.String,
|
|
@@ -109,7 +109,7 @@ export class EasBuildFreeTierDisabled extends Schema.TaggedErrorClass<EasBuildFr
|
|
|
109
109
|
).pipe(Category.withServerError) {}
|
|
110
110
|
|
|
111
111
|
/** Free-tier monthly build quota has been exhausted. */
|
|
112
|
-
export class EasBuildFreeTierLimitExceeded extends Schema.
|
|
112
|
+
export class EasBuildFreeTierLimitExceeded extends Schema.TaggedError<EasBuildFreeTierLimitExceeded>()(
|
|
113
113
|
"EasBuildFreeTierLimitExceeded",
|
|
114
114
|
{
|
|
115
115
|
message: Schema.String,
|
|
@@ -118,7 +118,7 @@ export class EasBuildFreeTierLimitExceeded extends Schema.TaggedErrorClass<EasBu
|
|
|
118
118
|
).pipe(Category.withServerError) {}
|
|
119
119
|
|
|
120
120
|
/** Account already has too many pending builds queued (back-pressure). */
|
|
121
|
-
export class EasBuildTooManyPendingBuilds extends Schema.
|
|
121
|
+
export class EasBuildTooManyPendingBuilds extends Schema.TaggedError<EasBuildTooManyPendingBuilds>()(
|
|
122
122
|
"EasBuildTooManyPendingBuilds",
|
|
123
123
|
{
|
|
124
124
|
message: Schema.String,
|
|
@@ -130,7 +130,7 @@ export class EasBuildTooManyPendingBuilds extends Schema.TaggedErrorClass<EasBui
|
|
|
130
130
|
* (errorCode `EAS_BUILD_RESOURCE_CLASS_NOT_AVAILABLE_IN_FREE_TIER`).
|
|
131
131
|
* Upgrade the account or pick a free-tier-eligible resource class.
|
|
132
132
|
*/
|
|
133
|
-
export class EasBuildResourceClassNotAvailableInFreeTier extends Schema.
|
|
133
|
+
export class EasBuildResourceClassNotAvailableInFreeTier extends Schema.TaggedError<EasBuildResourceClassNotAvailableInFreeTier>()(
|
|
134
134
|
"EasBuildResourceClassNotAvailableInFreeTier",
|
|
135
135
|
{
|
|
136
136
|
message: Schema.String,
|
|
@@ -141,7 +141,7 @@ export class EasBuildResourceClassNotAvailableInFreeTier extends Schema.TaggedEr
|
|
|
141
141
|
* The requested legacy build resource class has been retired
|
|
142
142
|
* (errorCode `EAS_BUILD_LEGACY_RESOURCE_CLASS_NOT_AVAILABLE`).
|
|
143
143
|
*/
|
|
144
|
-
export class EasBuildLegacyResourceClassNotAvailable extends Schema.
|
|
144
|
+
export class EasBuildLegacyResourceClassNotAvailable extends Schema.TaggedError<EasBuildLegacyResourceClassNotAvailable>()(
|
|
145
145
|
"EasBuildLegacyResourceClassNotAvailable",
|
|
146
146
|
{
|
|
147
147
|
message: Schema.String,
|
|
@@ -152,7 +152,7 @@ export class EasBuildLegacyResourceClassNotAvailable extends Schema.TaggedErrorC
|
|
|
152
152
|
* Update channel with the same name already exists for the app
|
|
153
153
|
* (errorCode `CHANNEL_ALREADY_EXISTS`).
|
|
154
154
|
*/
|
|
155
|
-
export class EasChannelAlreadyExists extends Schema.
|
|
155
|
+
export class EasChannelAlreadyExists extends Schema.TaggedError<EasChannelAlreadyExists>()(
|
|
156
156
|
"EasChannelAlreadyExists",
|
|
157
157
|
{
|
|
158
158
|
message: Schema.String,
|
|
@@ -166,7 +166,7 @@ export class EasChannelAlreadyExists extends Schema.TaggedErrorClass<EasChannelA
|
|
|
166
166
|
* (errorCode `UNAUTHORIZED_ERROR`). Distinct from a missing/invalid token —
|
|
167
167
|
* the token is valid but lacks the privacy/role grant required for the request.
|
|
168
168
|
*/
|
|
169
|
-
export class EasUnauthorizedOperation extends Schema.
|
|
169
|
+
export class EasUnauthorizedOperation extends Schema.TaggedError<EasUnauthorizedOperation>()(
|
|
170
170
|
"EasUnauthorizedOperation",
|
|
171
171
|
{
|
|
172
172
|
message: Schema.String,
|
|
@@ -177,7 +177,7 @@ export class EasUnauthorizedOperation extends Schema.TaggedErrorClass<EasUnautho
|
|
|
177
177
|
* The Expo experience (project) referenced by slug/account does not exist
|
|
178
178
|
* (errorCode `EXPERIENCE_NOT_FOUND`).
|
|
179
179
|
*/
|
|
180
|
-
export class EasExperienceNotFound extends Schema.
|
|
180
|
+
export class EasExperienceNotFound extends Schema.TaggedError<EasExperienceNotFound>()(
|
|
181
181
|
"EasExperienceNotFound",
|
|
182
182
|
{
|
|
183
183
|
message: Schema.String,
|
|
@@ -189,7 +189,7 @@ export class EasExperienceNotFound extends Schema.TaggedErrorClass<EasExperience
|
|
|
189
189
|
* (errorCode `APP_NO_DEV_DOMAIN_NAME`). Required before creating
|
|
190
190
|
* a hosting deployment URL — call `assignDevDomainName` first.
|
|
191
191
|
*/
|
|
192
|
-
export class EasAppNoDevDomainName extends Schema.
|
|
192
|
+
export class EasAppNoDevDomainName extends Schema.TaggedError<EasAppNoDevDomainName>()(
|
|
193
193
|
"EasAppNoDevDomainName",
|
|
194
194
|
{
|
|
195
195
|
message: Schema.String,
|
|
@@ -200,7 +200,7 @@ export class EasAppNoDevDomainName extends Schema.TaggedErrorClass<EasAppNoDevDo
|
|
|
200
200
|
* The requested dev domain name is already taken by another app
|
|
201
201
|
* (errorCode `DEV_DOMAIN_NAME_TAKEN`).
|
|
202
202
|
*/
|
|
203
|
-
export class EasDevDomainNameTaken extends Schema.
|
|
203
|
+
export class EasDevDomainNameTaken extends Schema.TaggedError<EasDevDomainNameTaken>()(
|
|
204
204
|
"EasDevDomainNameTaken",
|
|
205
205
|
{
|
|
206
206
|
message: Schema.String,
|