eas-cli 18.9.1 → 18.10.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 +223 -93
- package/build/build/utils/repository.js +7 -3
- package/build/commandUtils/convex.d.ts +11 -0
- package/build/commandUtils/convex.js +71 -0
- package/build/commands/build/resign.js +0 -1
- package/build/commands/integrations/convex/connect.d.ts +24 -0
- package/build/commands/integrations/convex/connect.js +258 -0
- package/build/commands/integrations/convex/dashboard.d.ts +9 -0
- package/build/commands/integrations/convex/dashboard.js +42 -0
- package/build/commands/integrations/convex/project/delete.d.ts +13 -0
- package/build/commands/integrations/convex/project/delete.js +65 -0
- package/build/commands/integrations/convex/project.d.ts +9 -0
- package/build/commands/integrations/convex/project.js +28 -0
- package/build/commands/integrations/convex/team/delete.d.ts +17 -0
- package/build/commands/integrations/convex/team/delete.js +93 -0
- package/build/commands/integrations/convex/team/invite.d.ts +19 -0
- package/build/commands/integrations/convex/team/invite.js +108 -0
- package/build/commands/integrations/convex/team.d.ts +9 -0
- package/build/commands/integrations/convex/team.js +35 -0
- package/build/fingerprint/cli.js +1 -0
- package/build/graphql/generated.d.ts +241 -1
- package/build/graphql/mutations/ConvexMutation.d.ts +10 -0
- package/build/graphql/mutations/ConvexMutation.js +89 -0
- package/build/graphql/queries/ConvexQuery.d.ts +6 -0
- package/build/graphql/queries/ConvexQuery.js +49 -0
- package/build/graphql/types/ConvexTeamConnection.d.ts +11 -0
- package/build/graphql/types/ConvexTeamConnection.js +42 -0
- package/oclif.manifest.json +3828 -3280
- package/package.json +4 -4
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConvexMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("graphql");
|
|
6
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
|
+
const client_1 = require("../client");
|
|
8
|
+
const ConvexTeamConnection_1 = require("../types/ConvexTeamConnection");
|
|
9
|
+
exports.ConvexMutation = {
|
|
10
|
+
async createConvexTeamConnectionAsync(graphqlClient, input) {
|
|
11
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
12
|
+
.mutation((0, graphql_tag_1.default) `
|
|
13
|
+
mutation CreateConvexTeamConnection(
|
|
14
|
+
$convexTeamConnectionData: CreateConvexTeamConnectionInput!
|
|
15
|
+
) {
|
|
16
|
+
convexTeamConnection {
|
|
17
|
+
createConvexTeamConnection(
|
|
18
|
+
convexTeamConnectionData: $convexTeamConnectionData
|
|
19
|
+
) {
|
|
20
|
+
id
|
|
21
|
+
...ConvexTeamConnectionFragment
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
${(0, graphql_1.print)(ConvexTeamConnection_1.ConvexTeamConnectionFragmentNode)}
|
|
26
|
+
`, { convexTeamConnectionData: input })
|
|
27
|
+
.toPromise());
|
|
28
|
+
return data.convexTeamConnection.createConvexTeamConnection;
|
|
29
|
+
},
|
|
30
|
+
async deleteConvexTeamConnectionAsync(graphqlClient, convexTeamConnectionId) {
|
|
31
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
32
|
+
.mutation((0, graphql_tag_1.default) `
|
|
33
|
+
mutation DeleteConvexTeamConnection($convexTeamConnectionId: ID!) {
|
|
34
|
+
convexTeamConnection {
|
|
35
|
+
deleteConvexTeamConnection(
|
|
36
|
+
convexTeamConnectionId: $convexTeamConnectionId
|
|
37
|
+
) {
|
|
38
|
+
id
|
|
39
|
+
...ConvexTeamConnectionFragment
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
${(0, graphql_1.print)(ConvexTeamConnection_1.ConvexTeamConnectionFragmentNode)}
|
|
44
|
+
`, { convexTeamConnectionId })
|
|
45
|
+
.toPromise());
|
|
46
|
+
return data.convexTeamConnection.deleteConvexTeamConnection;
|
|
47
|
+
},
|
|
48
|
+
async setupConvexProjectAsync(graphqlClient, input) {
|
|
49
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
50
|
+
.mutation((0, graphql_tag_1.default) `
|
|
51
|
+
mutation SetupConvexProject($input: SetupConvexProjectInput!) {
|
|
52
|
+
convexProject {
|
|
53
|
+
setupConvexProject(input: $input) {
|
|
54
|
+
...SetupConvexProjectResultFragment
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
${(0, graphql_1.print)(ConvexTeamConnection_1.ConvexTeamConnectionFragmentNode)}
|
|
59
|
+
${(0, graphql_1.print)(ConvexTeamConnection_1.ConvexProjectFragmentNode)}
|
|
60
|
+
${(0, graphql_1.print)(ConvexTeamConnection_1.SetupConvexProjectResultFragmentNode)}
|
|
61
|
+
`, { input })
|
|
62
|
+
.toPromise());
|
|
63
|
+
return data.convexProject.setupConvexProject;
|
|
64
|
+
},
|
|
65
|
+
async deleteConvexProjectAsync(graphqlClient, convexProjectId) {
|
|
66
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
67
|
+
.mutation((0, graphql_tag_1.default) `
|
|
68
|
+
mutation DeleteConvexProject($convexProjectId: ID!) {
|
|
69
|
+
convexProject {
|
|
70
|
+
deleteConvexProject(convexProjectId: $convexProjectId)
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`, { convexProjectId })
|
|
74
|
+
.toPromise());
|
|
75
|
+
return data.convexProject.deleteConvexProject;
|
|
76
|
+
},
|
|
77
|
+
async sendConvexTeamInviteToVerifiedEmailAsync(graphqlClient, input) {
|
|
78
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
79
|
+
.mutation((0, graphql_tag_1.default) `
|
|
80
|
+
mutation SendConvexTeamInviteToVerifiedEmail($input: SendConvexTeamInviteToVerifiedEmailInput!) {
|
|
81
|
+
convexTeamConnection {
|
|
82
|
+
sendConvexTeamInviteToVerifiedEmail(input: $input)
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`, { input })
|
|
86
|
+
.toPromise());
|
|
87
|
+
return data.convexTeamConnection.sendConvexTeamInviteToVerifiedEmail;
|
|
88
|
+
},
|
|
89
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
+
import { ConvexProjectData, ConvexTeamConnectionData } from '../types/ConvexTeamConnection';
|
|
3
|
+
export declare const ConvexQuery: {
|
|
4
|
+
getConvexTeamConnectionsByAccountIdAsync(graphqlClient: ExpoGraphqlClient, accountId: string): Promise<ConvexTeamConnectionData[]>;
|
|
5
|
+
getConvexProjectByAppIdAsync(graphqlClient: ExpoGraphqlClient, appId: string): Promise<ConvexProjectData | null>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConvexQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("graphql");
|
|
6
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
|
+
const client_1 = require("../client");
|
|
8
|
+
const ConvexTeamConnection_1 = require("../types/ConvexTeamConnection");
|
|
9
|
+
exports.ConvexQuery = {
|
|
10
|
+
async getConvexTeamConnectionsByAccountIdAsync(graphqlClient, accountId) {
|
|
11
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
12
|
+
.query((0, graphql_tag_1.default) `
|
|
13
|
+
query ConvexTeamConnectionsByAccountId($accountId: String!) {
|
|
14
|
+
account {
|
|
15
|
+
byId(accountId: $accountId) {
|
|
16
|
+
id
|
|
17
|
+
convexTeamConnections {
|
|
18
|
+
id
|
|
19
|
+
...ConvexTeamConnectionFragment
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
${(0, graphql_1.print)(ConvexTeamConnection_1.ConvexTeamConnectionFragmentNode)}
|
|
25
|
+
`, { accountId })
|
|
26
|
+
.toPromise());
|
|
27
|
+
return data.account.byId.convexTeamConnections;
|
|
28
|
+
},
|
|
29
|
+
async getConvexProjectByAppIdAsync(graphqlClient, appId) {
|
|
30
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
31
|
+
.query((0, graphql_tag_1.default) `
|
|
32
|
+
query ConvexProjectByAppId($appId: String!) {
|
|
33
|
+
app {
|
|
34
|
+
byId(appId: $appId) {
|
|
35
|
+
id
|
|
36
|
+
convexProject {
|
|
37
|
+
id
|
|
38
|
+
...ConvexProjectFragment
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
${(0, graphql_1.print)(ConvexTeamConnection_1.ConvexTeamConnectionFragmentNode)}
|
|
44
|
+
${(0, graphql_1.print)(ConvexTeamConnection_1.ConvexProjectFragmentNode)}
|
|
45
|
+
`, { appId }, { additionalTypenames: ['App', 'ConvexProject'] })
|
|
46
|
+
.toPromise());
|
|
47
|
+
return data.app.byId.convexProject ?? null;
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConvexProject, ConvexTeamConnection, SetupConvexProjectResult } from '../generated';
|
|
2
|
+
export type ConvexTeamConnectionData = Pick<ConvexTeamConnection, 'id' | 'convexTeamIdentifier' | 'convexTeamName' | 'convexTeamSlug' | 'createdAt' | 'updatedAt' | 'invitedAt' | 'invitedEmail'>;
|
|
3
|
+
export type ConvexProjectData = Pick<ConvexProject, 'id' | 'convexProjectIdentifier' | 'convexProjectName' | 'convexProjectSlug' | 'createdAt' | 'updatedAt'> & {
|
|
4
|
+
convexTeamConnection: ConvexTeamConnectionData;
|
|
5
|
+
};
|
|
6
|
+
export type SetupConvexProjectResultData = Pick<SetupConvexProjectResult, 'convexDeploymentName' | 'convexDeploymentUrl' | 'deployKey'> & {
|
|
7
|
+
convexProject: ConvexProjectData;
|
|
8
|
+
};
|
|
9
|
+
export declare const ConvexTeamConnectionFragmentNode: import("graphql").DocumentNode;
|
|
10
|
+
export declare const ConvexProjectFragmentNode: import("graphql").DocumentNode;
|
|
11
|
+
export declare const SetupConvexProjectResultFragmentNode: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetupConvexProjectResultFragmentNode = exports.ConvexProjectFragmentNode = exports.ConvexTeamConnectionFragmentNode = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
exports.ConvexTeamConnectionFragmentNode = (0, graphql_tag_1.default) `
|
|
7
|
+
fragment ConvexTeamConnectionFragment on ConvexTeamConnection {
|
|
8
|
+
id
|
|
9
|
+
convexTeamIdentifier
|
|
10
|
+
convexTeamName
|
|
11
|
+
convexTeamSlug
|
|
12
|
+
createdAt
|
|
13
|
+
updatedAt
|
|
14
|
+
invitedAt
|
|
15
|
+
invitedEmail
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
exports.ConvexProjectFragmentNode = (0, graphql_tag_1.default) `
|
|
19
|
+
fragment ConvexProjectFragment on ConvexProject {
|
|
20
|
+
id
|
|
21
|
+
convexProjectIdentifier
|
|
22
|
+
convexProjectName
|
|
23
|
+
convexProjectSlug
|
|
24
|
+
createdAt
|
|
25
|
+
updatedAt
|
|
26
|
+
convexTeamConnection {
|
|
27
|
+
id
|
|
28
|
+
...ConvexTeamConnectionFragment
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
exports.SetupConvexProjectResultFragmentNode = (0, graphql_tag_1.default) `
|
|
33
|
+
fragment SetupConvexProjectResultFragment on SetupConvexProjectResult {
|
|
34
|
+
convexDeploymentName
|
|
35
|
+
convexDeploymentUrl
|
|
36
|
+
deployKey
|
|
37
|
+
convexProject {
|
|
38
|
+
id
|
|
39
|
+
...ConvexProjectFragment
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`;
|