eas-cli 16.16.0 → 16.17.1

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.
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const graphql_1 = require("graphql");
6
6
  const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
7
7
  const WorkerDeployment_1 = require("./fragments/WorkerDeployment");
8
+ const WorkerDeploymentAlias_1 = require("./fragments/WorkerDeploymentAlias");
8
9
  const client_1 = require("../graphql/client");
9
10
  exports.DeploymentsQuery = {
10
11
  async getAllDeploymentsPaginatedAsync(graphqlClient, { appId, first, after, last, before }) {
@@ -58,4 +59,45 @@ exports.DeploymentsQuery = {
58
59
  .toPromise());
59
60
  return data.app.byId.suggestedDevDomainName;
60
61
  },
62
+ async getAllAliasesPaginatedAsync(graphqlClient, { appId, first, after, last, before, }) {
63
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
64
+ .query((0, graphql_tag_1.default) `
65
+ query PaginatedWorkerDeploymentAliases(
66
+ $appId: String!
67
+ $first: Int
68
+ $after: String
69
+ $last: Int
70
+ $before: String
71
+ ) {
72
+ app {
73
+ byId(appId: $appId) {
74
+ id
75
+ workerDeploymentAliases(
76
+ first: $first
77
+ after: $after
78
+ last: $last
79
+ before: $before
80
+ ) {
81
+ pageInfo {
82
+ hasNextPage
83
+ hasPreviousPage
84
+ startCursor
85
+ endCursor
86
+ }
87
+ edges {
88
+ cursor
89
+ node {
90
+ id
91
+ ...WorkerDeploymentAliasFragment
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ ${(0, graphql_1.print)(WorkerDeploymentAlias_1.WorkerDeploymentAliasFragmentNode)}
99
+ `, { appId, first, after, last, before }, { additionalTypenames: ['WorkerDeploymentAlias'] })
100
+ .toPromise());
101
+ return data.app.byId.workerDeploymentAliases;
102
+ },
61
103
  };
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.16.0",
2
+ "version": "16.17.1",
3
3
  "commands": {
4
4
  "analytics": {
5
5
  "id": "analytics",
@@ -1937,44 +1937,18 @@
1937
1937
  "vcsClient": {}
1938
1938
  }
1939
1939
  },
1940
- "deploy:alias": {
1941
- "id": "deploy:alias",
1942
- "description": "Assign deployment aliases.",
1940
+ "deploy:delete": {
1941
+ "id": "deploy:delete",
1942
+ "description": "Delete a deployment.",
1943
1943
  "strict": true,
1944
1944
  "pluginName": "eas-cli",
1945
1945
  "pluginAlias": "eas-cli",
1946
1946
  "pluginType": "core",
1947
1947
  "state": "preview",
1948
1948
  "aliases": [
1949
- "worker:alias",
1950
- "deploy:promote"
1949
+ "worker:delete"
1951
1950
  ],
1952
1951
  "flags": {
1953
- "prod": {
1954
- "name": "prod",
1955
- "type": "boolean",
1956
- "description": "Promote an existing deployment to production.",
1957
- "allowNo": false,
1958
- "aliases": [
1959
- "production"
1960
- ]
1961
- },
1962
- "alias": {
1963
- "name": "alias",
1964
- "type": "option",
1965
- "description": "Custom alias to assign to the existing deployment.",
1966
- "required": false,
1967
- "helpValue": "name",
1968
- "multiple": false
1969
- },
1970
- "id": {
1971
- "name": "id",
1972
- "type": "option",
1973
- "description": "Unique identifier of an existing deployment.",
1974
- "required": false,
1975
- "helpValue": "xyz123",
1976
- "multiple": false
1977
- },
1978
1952
  "json": {
1979
1953
  "name": "json",
1980
1954
  "type": "boolean",
@@ -1991,7 +1965,11 @@
1991
1965
  "allowNo": false
1992
1966
  }
1993
1967
  },
1994
- "args": {},
1968
+ "args": {
1969
+ "DEPLOYMENT_ID": {
1970
+ "name": "DEPLOYMENT_ID"
1971
+ }
1972
+ },
1995
1973
  "contextDefinition": {
1996
1974
  "getDynamicPublicProjectConfigAsync": {},
1997
1975
  "getDynamicPrivateProjectConfigAsync": {},
@@ -4534,6 +4512,108 @@
4534
4512
  "projectDir": {},
4535
4513
  "vcsClient": {}
4536
4514
  }
4515
+ },
4516
+ "deploy:alias:delete": {
4517
+ "id": "deploy:alias:delete",
4518
+ "description": "Delete deployment aliases.",
4519
+ "strict": true,
4520
+ "pluginName": "eas-cli",
4521
+ "pluginAlias": "eas-cli",
4522
+ "pluginType": "core",
4523
+ "state": "preview",
4524
+ "aliases": [
4525
+ "worker:alias:delete"
4526
+ ],
4527
+ "flags": {
4528
+ "json": {
4529
+ "name": "json",
4530
+ "type": "boolean",
4531
+ "description": "Enable JSON output, non-JSON messages will be printed to stderr.",
4532
+ "allowNo": false,
4533
+ "dependsOn": [
4534
+ "non-interactive"
4535
+ ]
4536
+ },
4537
+ "non-interactive": {
4538
+ "name": "non-interactive",
4539
+ "type": "boolean",
4540
+ "description": "Run the command in non-interactive mode.",
4541
+ "allowNo": false
4542
+ }
4543
+ },
4544
+ "args": {
4545
+ "ALIAS_NAME": {
4546
+ "name": "ALIAS_NAME"
4547
+ }
4548
+ },
4549
+ "contextDefinition": {
4550
+ "getDynamicPublicProjectConfigAsync": {},
4551
+ "getDynamicPrivateProjectConfigAsync": {},
4552
+ "projectDir": {},
4553
+ "loggedIn": {}
4554
+ }
4555
+ },
4556
+ "deploy:alias": {
4557
+ "id": "deploy:alias",
4558
+ "description": "Assign deployment aliases.",
4559
+ "strict": true,
4560
+ "pluginName": "eas-cli",
4561
+ "pluginAlias": "eas-cli",
4562
+ "pluginType": "core",
4563
+ "state": "preview",
4564
+ "aliases": [
4565
+ "worker:alias",
4566
+ "deploy:promote"
4567
+ ],
4568
+ "flags": {
4569
+ "prod": {
4570
+ "name": "prod",
4571
+ "type": "boolean",
4572
+ "description": "Promote an existing deployment to production.",
4573
+ "allowNo": false,
4574
+ "aliases": [
4575
+ "production"
4576
+ ]
4577
+ },
4578
+ "alias": {
4579
+ "name": "alias",
4580
+ "type": "option",
4581
+ "description": "Custom alias to assign to the existing deployment.",
4582
+ "required": false,
4583
+ "helpValue": "name",
4584
+ "multiple": false
4585
+ },
4586
+ "id": {
4587
+ "name": "id",
4588
+ "type": "option",
4589
+ "description": "Unique identifier of an existing deployment.",
4590
+ "required": false,
4591
+ "helpValue": "xyz123",
4592
+ "multiple": false
4593
+ },
4594
+ "json": {
4595
+ "name": "json",
4596
+ "type": "boolean",
4597
+ "description": "Enable JSON output, non-JSON messages will be printed to stderr.",
4598
+ "allowNo": false,
4599
+ "dependsOn": [
4600
+ "non-interactive"
4601
+ ]
4602
+ },
4603
+ "non-interactive": {
4604
+ "name": "non-interactive",
4605
+ "type": "boolean",
4606
+ "description": "Run the command in non-interactive mode.",
4607
+ "allowNo": false
4608
+ }
4609
+ },
4610
+ "args": {},
4611
+ "contextDefinition": {
4612
+ "getDynamicPublicProjectConfigAsync": {},
4613
+ "getDynamicPrivateProjectConfigAsync": {},
4614
+ "projectDir": {},
4615
+ "loggedIn": {}
4616
+ }
4537
4617
  }
4538
4618
  }
4539
4619
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eas-cli",
3
3
  "description": "EAS command line tool",
4
- "version": "16.16.0",
4
+ "version": "16.17.1",
5
5
  "author": "Expo <support@expo.dev>",
6
6
  "bin": {
7
7
  "eas": "./bin/run"
@@ -49,7 +49,7 @@
49
49
  "fast-deep-equal": "3.1.3",
50
50
  "fast-glob": "3.3.2",
51
51
  "figures": "3.2.0",
52
- "form-data": "4.0.0",
52
+ "form-data": "^4.0.4",
53
53
  "fs-extra": "11.2.0",
54
54
  "getenv": "1.0.0",
55
55
  "gradle-to-js": "2.0.1",
@@ -108,7 +108,7 @@
108
108
  "@types/getenv": "^1.0.0",
109
109
  "@types/jsonwebtoken": "8.5.1",
110
110
  "@types/mime": "3.0.1",
111
- "@types/node-fetch": "2.6.2",
111
+ "@types/node-fetch": "2.6.12",
112
112
  "@types/node-forge": "1.3.1",
113
113
  "@types/pngjs": "6.0.4",
114
114
  "@types/promise-retry": "1.1.3",
@@ -119,7 +119,7 @@
119
119
  "@types/tough-cookie": "4.0.2",
120
120
  "@types/uuid": "9.0.7",
121
121
  "@types/wrap-ansi": "3.0.0",
122
- "axios": "0.28.1",
122
+ "axios": "1.11.0",
123
123
  "eslint-plugin-graphql": "4.0.0",
124
124
  "express": "4.20.0",
125
125
  "memfs": "3.4.13",
@@ -241,5 +241,5 @@
241
241
  "node": "20.11.0",
242
242
  "yarn": "1.22.21"
243
243
  },
244
- "gitHead": "8e96143b59aa8cd4b1b1bb269670ed3b56768258"
244
+ "gitHead": "6b7e91ca6acac2727b7fba62f12c99f6c0d70b6a"
245
245
  }