@gadgetinc/ggt 0.1.18 → 0.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.
- package/README.md +6 -6
- package/bin/dev.js +24 -0
- package/bin/run.js +11 -0
- package/lib/__generated__/graphql.js +6 -9
- package/lib/__generated__/graphql.js.map +1 -1
- package/lib/commands/help.js +22 -37
- package/lib/commands/help.js.map +1 -1
- package/lib/commands/list.js +30 -56
- package/lib/commands/list.js.map +1 -1
- package/lib/commands/login.js +13 -29
- package/lib/commands/login.js.map +1 -1
- package/lib/commands/logout.js +17 -34
- package/lib/commands/logout.js.map +1 -1
- package/lib/commands/sync.js +483 -456
- package/lib/commands/sync.js.map +1 -1
- package/lib/commands/whoami.js +17 -34
- package/lib/commands/whoami.js.map +1 -1
- package/lib/index.js +2 -5
- package/lib/index.js.map +1 -1
- package/lib/utils/base-command.js +106 -147
- package/lib/utils/base-command.js.map +1 -1
- package/lib/utils/client.js +104 -113
- package/lib/utils/client.js.map +1 -1
- package/lib/utils/context.js +63 -119
- package/lib/utils/context.js.map +1 -1
- package/lib/utils/errors.js +161 -242
- package/lib/utils/errors.js.map +1 -1
- package/lib/utils/flags.js +23 -26
- package/lib/utils/flags.js.map +1 -1
- package/lib/utils/fs-utils.js +46 -73
- package/lib/utils/fs-utils.js.map +1 -1
- package/lib/utils/help.js +19 -26
- package/lib/utils/help.js.map +1 -1
- package/lib/utils/promise.js +32 -78
- package/lib/utils/promise.js.map +1 -1
- package/lib/utils/sleep.js +6 -11
- package/lib/utils/sleep.js.map +1 -1
- package/npm-shrinkwrap.json +7569 -6914
- package/oclif.manifest.json +1 -1
- package/package.json +45 -45
- package/bin/dev +0 -20
- package/bin/run +0 -7
- package/lib/__generated__/graphql.d.ts +0 -294
- package/lib/commands/help.d.ts +0 -14
- package/lib/commands/list.d.ts +0 -18
- package/lib/commands/login.d.ts +0 -7
- package/lib/commands/logout.d.ts +0 -7
- package/lib/commands/sync.d.ts +0 -146
- package/lib/commands/whoami.d.ts +0 -7
- package/lib/index.d.ts +0 -1
- package/lib/utils/base-command.d.ts +0 -64
- package/lib/utils/client.d.ts +0 -42
- package/lib/utils/context.d.ts +0 -57
- package/lib/utils/errors.d.ts +0 -100
- package/lib/utils/flags.d.ts +0 -1
- package/lib/utils/fs-utils.d.ts +0 -21
- package/lib/utils/help.d.ts +0 -19
- package/lib/utils/promise.d.ts +0 -35
- package/lib/utils/sleep.d.ts +0 -5
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gadgetinc/ggt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The command-line interface for Gadget",
|
|
5
5
|
"homepage": "https://github.com/gadget-inc/ggt",
|
|
6
6
|
"bugs": "https://github.com/gadget-inc/ggt/issues",
|
|
7
7
|
"repository": "gadget-inc/ggt",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"author": "Gadget Authors",
|
|
10
|
+
"type": "module",
|
|
10
11
|
"main": "lib/index.js",
|
|
11
12
|
"bin": {
|
|
12
|
-
"ggt": "./bin/run"
|
|
13
|
+
"ggt": "./bin/run.js"
|
|
13
14
|
},
|
|
14
15
|
"files": [
|
|
15
16
|
"/assets",
|
|
@@ -21,96 +22,95 @@
|
|
|
21
22
|
"/README.md"
|
|
22
23
|
],
|
|
23
24
|
"scripts": {
|
|
24
|
-
"build": "npm run clean &&
|
|
25
|
+
"build": "npm run clean && swc src -d lib && oclif manifest",
|
|
25
26
|
"clean": "rimraf lib tmp oclif.manifest.json",
|
|
26
27
|
"generate-graphql": "graphql-codegen --config graphql-codegen.yml",
|
|
27
28
|
"lint": "concurrently --prefix none --group 'npm:lint:*(!fix)'",
|
|
28
29
|
"lint:cspell": "cspell --no-progress --show-suggestions --show-context '**'",
|
|
29
30
|
"lint:eslint": "eslint --max-warnings 0 .",
|
|
30
|
-
"lint:fix": "
|
|
31
|
+
"lint:fix": "eslint --fix . && prettier --write .",
|
|
31
32
|
"lint:prettier": "prettier --check .",
|
|
32
|
-
"lint:typescript": "tsc --project tsconfig.json
|
|
33
|
+
"lint:typescript": "tsc --project tsconfig.json",
|
|
33
34
|
"publish": "npm run build && changeset publish",
|
|
34
35
|
"readme": "patch-package && oclif readme && prettier --write README.md",
|
|
35
|
-
"test": "
|
|
36
|
+
"test": "cross-env NODE_OPTIONS=\"--no-warnings --loader ./node_modules/ts-node/esm.mjs\" vitest",
|
|
36
37
|
"version": "changeset version && npm install --package-lock-only && npm run build && npm run readme"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"@oclif/core": "^2.8.5",
|
|
40
41
|
"@oclif/errors": "^1.3.6",
|
|
41
|
-
"@oclif/plugin-not-found": "^2.3.
|
|
42
|
-
"@oclif/plugin-warn-if-update-available": "^2.0.
|
|
43
|
-
"@sentry/node": "^7.
|
|
44
|
-
"
|
|
42
|
+
"@oclif/plugin-not-found": "^2.3.24",
|
|
43
|
+
"@oclif/plugin-warn-if-update-available": "^2.0.37",
|
|
44
|
+
"@sentry/node": "^7.54.0",
|
|
45
|
+
"@swc/helpers": "^0.5.1",
|
|
46
|
+
"chalk": "^5.2.0",
|
|
47
|
+
"chalk-template": "^1.1.0",
|
|
45
48
|
"chokidar": "^3.5.3",
|
|
46
|
-
"clean-stack": "^
|
|
49
|
+
"clean-stack": "^5.2.0",
|
|
47
50
|
"date-fns": "^2.30.0",
|
|
48
51
|
"debug": "^4.3.4",
|
|
49
|
-
"execa": "^
|
|
52
|
+
"execa": "^7.1.1",
|
|
50
53
|
"fast-levenshtein": "^3.0.0",
|
|
51
54
|
"fs-extra": "^11.1.1",
|
|
52
|
-
"get-port": "^
|
|
53
|
-
"got": "^
|
|
55
|
+
"get-port": "^6.1.2",
|
|
56
|
+
"got": "^13.0.0",
|
|
54
57
|
"graphql": "^16.6.0",
|
|
55
|
-
"graphql-ws": "^5.
|
|
58
|
+
"graphql-ws": "^5.13.1",
|
|
56
59
|
"ignore": "^5.2.4",
|
|
57
|
-
"inquirer": "^
|
|
60
|
+
"inquirer": "^9.2.6",
|
|
58
61
|
"lodash": "^4.17.21",
|
|
59
62
|
"node-notifier": "^10.0.1",
|
|
60
63
|
"normalize-path": "^3.0.0",
|
|
61
|
-
"open": "^
|
|
62
|
-
"p-map": "^
|
|
63
|
-
"p-queue": "^
|
|
64
|
+
"open": "^9.1.0",
|
|
65
|
+
"p-map": "^6.0.0",
|
|
66
|
+
"p-queue": "^7.3.4",
|
|
64
67
|
"pluralize": "^8.0.0",
|
|
65
|
-
"serialize-error": "^
|
|
68
|
+
"serialize-error": "^11.0.0",
|
|
66
69
|
"ts-dedent": "^2.2.0",
|
|
67
70
|
"which": "^3.0.1",
|
|
68
71
|
"ws": "^8.13.0"
|
|
69
72
|
},
|
|
70
73
|
"devDependencies": {
|
|
71
74
|
"@changesets/cli": "^2.26.1",
|
|
72
|
-
"@graphql-codegen/add": "^
|
|
73
|
-
"@graphql-codegen/cli": "^
|
|
74
|
-
"@graphql-codegen/typescript": "^
|
|
75
|
-
"@graphql-codegen/typescript-operations": "^
|
|
76
|
-
"@oclif/plugin-plugins": "^3.
|
|
77
|
-
"@oclif/test": "^2.3.
|
|
78
|
-
"@swc/
|
|
79
|
-
"@swc/
|
|
80
|
-
"@
|
|
81
|
-
"@types/
|
|
75
|
+
"@graphql-codegen/add": "^5.0.0",
|
|
76
|
+
"@graphql-codegen/cli": "^4.0.1",
|
|
77
|
+
"@graphql-codegen/typescript": "^4.0.0",
|
|
78
|
+
"@graphql-codegen/typescript-operations": "^4.0.0",
|
|
79
|
+
"@oclif/plugin-plugins": "^3.1.2",
|
|
80
|
+
"@oclif/test": "^2.3.21",
|
|
81
|
+
"@swc/cli": "^0.1.62",
|
|
82
|
+
"@swc/core": "^1.3.61",
|
|
83
|
+
"@types/debug": "^4.1.8",
|
|
84
|
+
"@types/eslint": "^8.40.0",
|
|
82
85
|
"@types/fast-levenshtein": "^0.0.2",
|
|
83
86
|
"@types/fs-extra": "^11.0.1",
|
|
84
|
-
"@types/inquirer": "^
|
|
85
|
-
"@types/
|
|
86
|
-
"@types/
|
|
87
|
-
"@types/node": "^20.1.0",
|
|
87
|
+
"@types/inquirer": "^9.0.3",
|
|
88
|
+
"@types/lodash": "^4.14.195",
|
|
89
|
+
"@types/node": "^20.2.5",
|
|
88
90
|
"@types/node-notifier": "^8.0.2",
|
|
89
91
|
"@types/normalize-path": "^3.0.0",
|
|
90
92
|
"@types/pluralize": "^0.0.29",
|
|
91
93
|
"@types/which": "^3.0.0",
|
|
92
94
|
"@types/ws": "^8.5.4",
|
|
93
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
94
|
-
"@typescript-eslint/parser": "^5.59.
|
|
95
|
-
"concurrently": "^8.0
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
96
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
97
|
+
"concurrently": "^8.1.0",
|
|
98
|
+
"cross-env": "^7.0.3",
|
|
96
99
|
"cspell": "^6.31.1",
|
|
97
|
-
"eslint": "^8.
|
|
100
|
+
"eslint": "^8.41.0",
|
|
98
101
|
"eslint-config-prettier": "^8.8.0",
|
|
99
102
|
"eslint-plugin-import": "^2.27.5",
|
|
100
|
-
"eslint-plugin-jest": "^27.2.1",
|
|
101
103
|
"eslint-plugin-lodash": "^7.4.0",
|
|
102
|
-
"jest": "^29.5.0",
|
|
103
|
-
"jest-extended": "^3.2.4",
|
|
104
104
|
"nock": "^13.3.1",
|
|
105
105
|
"oclif": "^3.9.0",
|
|
106
106
|
"patch-package": "^7.0.0",
|
|
107
107
|
"prettier": "^2.8.8",
|
|
108
108
|
"prettier-plugin-packagejson": "^2.4.3",
|
|
109
|
-
"rimraf": "^5.0.
|
|
109
|
+
"rimraf": "^5.0.1",
|
|
110
110
|
"ts-node": "^10.9.1",
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
111
|
+
"type-fest": "^3.11.1",
|
|
112
|
+
"typescript": "^5.1.3",
|
|
113
|
+
"vitest": "^0.31.4"
|
|
114
114
|
},
|
|
115
115
|
"engines": {
|
|
116
116
|
"node": ">=16.0.0"
|
package/bin/dev
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const path = require("path");
|
|
4
|
-
|
|
5
|
-
process.env.NODE_ENV = "development";
|
|
6
|
-
process.env.GGT_ENV ??= "development";
|
|
7
|
-
|
|
8
|
-
// store files in the project's tmp directory
|
|
9
|
-
// https://github.com/oclif/core/blob/main/src/config/config.ts#L171
|
|
10
|
-
process.env["GGT_CONFIG_DIR"] = path.join(__dirname, "..", "tmp", "config");
|
|
11
|
-
process.env["GGT_CACHE_DIR"] = path.join(__dirname, "..", "tmp", "cache");
|
|
12
|
-
process.env["GGT_DATA_DIR"] = path.join(__dirname, "..", "tmp", "data");
|
|
13
|
-
|
|
14
|
-
require("ts-node").register({ project: path.join(__dirname, "..", "tsconfig.json"), swc: true });
|
|
15
|
-
|
|
16
|
-
const oclif = require("@oclif/core");
|
|
17
|
-
|
|
18
|
-
process.on("unhandledRejection", oclif.Errors.handle);
|
|
19
|
-
|
|
20
|
-
oclif.run().then(oclif.flush).catch(oclif.Errors.handle);
|
package/bin/run
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ======================================================
|
|
3
|
-
* THIS IS A GENERATED FILE! DO NOT EDIT IT MANUALLY!
|
|
4
|
-
*
|
|
5
|
-
* You can regenerate it by running `npm run generate-graphql`.
|
|
6
|
-
* ======================================================
|
|
7
|
-
*/
|
|
8
|
-
export type Maybe<T> = T | null;
|
|
9
|
-
export type InputMaybe<T> = Maybe<T>;
|
|
10
|
-
export type Exact<T extends {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}> = {
|
|
13
|
-
[K in keyof T]: T[K];
|
|
14
|
-
};
|
|
15
|
-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
16
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
17
|
-
};
|
|
18
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
19
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
20
|
-
};
|
|
21
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
22
|
-
export type Scalars = {
|
|
23
|
-
ID: string;
|
|
24
|
-
String: string;
|
|
25
|
-
Boolean: boolean;
|
|
26
|
-
Int: number;
|
|
27
|
-
Float: number;
|
|
28
|
-
/** A date string, such as 2007-12-03, compliant with the `full-date` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
|
|
29
|
-
Date: any;
|
|
30
|
-
/** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
|
|
31
|
-
DateTime: any;
|
|
32
|
-
JSON: {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export type ChangeAppDomainResult = {
|
|
37
|
-
__typename?: 'ChangeAppDomainResult';
|
|
38
|
-
onlyValidate?: Maybe<Scalars['Boolean']>;
|
|
39
|
-
reason?: Maybe<Scalars['String']>;
|
|
40
|
-
success: Scalars['Boolean'];
|
|
41
|
-
};
|
|
42
|
-
export type ContributorResult = {
|
|
43
|
-
__typename?: 'ContributorResult';
|
|
44
|
-
email: Scalars['String'];
|
|
45
|
-
isOwner: Scalars['Boolean'];
|
|
46
|
-
isPending: Scalars['Boolean'];
|
|
47
|
-
};
|
|
48
|
-
export type DeleteAppStatusResult = {
|
|
49
|
-
__typename?: 'DeleteAppStatusResult';
|
|
50
|
-
isNotCreator?: Maybe<Scalars['Boolean']>;
|
|
51
|
-
success: Scalars['Boolean'];
|
|
52
|
-
};
|
|
53
|
-
export type EnvironmentPatchResult = {
|
|
54
|
-
__typename?: 'EnvironmentPatchResult';
|
|
55
|
-
success: Scalars['Boolean'];
|
|
56
|
-
};
|
|
57
|
-
export type EnvironmentPublishResult = {
|
|
58
|
-
__typename?: 'EnvironmentPublishResult';
|
|
59
|
-
success: Scalars['Boolean'];
|
|
60
|
-
};
|
|
61
|
-
export type EnvironmentSubscriptionResult = {
|
|
62
|
-
__typename?: 'EnvironmentSubscriptionResult';
|
|
63
|
-
patches: Array<Scalars['JSON']>;
|
|
64
|
-
};
|
|
65
|
-
export type EnvironmentTreeClientId = {
|
|
66
|
-
clientType: Scalars['String'];
|
|
67
|
-
id: Scalars['String'];
|
|
68
|
-
};
|
|
69
|
-
export type FileSyncChangedEvent = {
|
|
70
|
-
__typename?: 'FileSyncChangedEvent';
|
|
71
|
-
content: Scalars['String'];
|
|
72
|
-
encoding: FileSyncEncoding;
|
|
73
|
-
mode: Scalars['Float'];
|
|
74
|
-
path: Scalars['String'];
|
|
75
|
-
};
|
|
76
|
-
export type FileSyncChangedEventInput = {
|
|
77
|
-
content: Scalars['String'];
|
|
78
|
-
encoding?: InputMaybe<FileSyncEncoding>;
|
|
79
|
-
mode: Scalars['Float'];
|
|
80
|
-
path: Scalars['String'];
|
|
81
|
-
};
|
|
82
|
-
export type FileSyncDeletedEvent = {
|
|
83
|
-
__typename?: 'FileSyncDeletedEvent';
|
|
84
|
-
path: Scalars['String'];
|
|
85
|
-
};
|
|
86
|
-
export type FileSyncDeletedEventInput = {
|
|
87
|
-
path: Scalars['String'];
|
|
88
|
-
};
|
|
89
|
-
export declare enum FileSyncEncoding {
|
|
90
|
-
Base64 = "base64",
|
|
91
|
-
Utf8 = "utf8"
|
|
92
|
-
}
|
|
93
|
-
export type GadgetRole = {
|
|
94
|
-
__typename?: 'GadgetRole';
|
|
95
|
-
key: Scalars['String'];
|
|
96
|
-
name: Scalars['String'];
|
|
97
|
-
order: Scalars['Int'];
|
|
98
|
-
selectable: Scalars['Boolean'];
|
|
99
|
-
};
|
|
100
|
-
export type LogSearchResult = {
|
|
101
|
-
__typename?: 'LogSearchResult';
|
|
102
|
-
data: Scalars['JSON'];
|
|
103
|
-
status: Scalars['String'];
|
|
104
|
-
};
|
|
105
|
-
export type MigrateEnvironmentsResult = {
|
|
106
|
-
__typename?: 'MigrateEnvironmentsResult';
|
|
107
|
-
success: Scalars['Boolean'];
|
|
108
|
-
};
|
|
109
|
-
export type Mutation = {
|
|
110
|
-
__typename?: 'Mutation';
|
|
111
|
-
changeAppDomain?: Maybe<ChangeAppDomainResult>;
|
|
112
|
-
deleteApp?: Maybe<DeleteAppStatusResult>;
|
|
113
|
-
migrateEnvironments?: Maybe<MigrateEnvironmentsResult>;
|
|
114
|
-
patchEnvironmentTree?: Maybe<EnvironmentPatchResult>;
|
|
115
|
-
publish?: Maybe<EnvironmentPublishResult>;
|
|
116
|
-
publishFileSyncEvents: PublishFileSyncEventsResult;
|
|
117
|
-
refreshScopes?: Maybe<RefreshScopesResult>;
|
|
118
|
-
registerWebhooks?: Maybe<RegisterWebhooksResult>;
|
|
119
|
-
removeContributor?: Maybe<RemoveContributorResult>;
|
|
120
|
-
sendAppInvitation?: Maybe<SendAppInvitationResult>;
|
|
121
|
-
unregisterWebhooks?: Maybe<UnregisterWebhooksResult>;
|
|
122
|
-
};
|
|
123
|
-
export type MutationChangeAppDomainArgs = {
|
|
124
|
-
newSubdomain: Scalars['String'];
|
|
125
|
-
onlyValidate?: InputMaybe<Scalars['Boolean']>;
|
|
126
|
-
};
|
|
127
|
-
export type MutationMigrateEnvironmentsArgs = {
|
|
128
|
-
existingToProduction: Scalars['Boolean'];
|
|
129
|
-
};
|
|
130
|
-
export type MutationPatchEnvironmentTreeArgs = {
|
|
131
|
-
clientID: EnvironmentTreeClientId;
|
|
132
|
-
patches: Array<Scalars['JSON']>;
|
|
133
|
-
};
|
|
134
|
-
export type MutationPublishFileSyncEventsArgs = {
|
|
135
|
-
input: PublishFileSyncEventsInput;
|
|
136
|
-
};
|
|
137
|
-
export type MutationRefreshScopesArgs = {
|
|
138
|
-
appConfigKey: Scalars['String'];
|
|
139
|
-
connectionKey: Scalars['String'];
|
|
140
|
-
shopId: Scalars['String'];
|
|
141
|
-
};
|
|
142
|
-
export type MutationRegisterWebhooksArgs = {
|
|
143
|
-
connectionKey: Scalars['String'];
|
|
144
|
-
keepExtraTopics?: InputMaybe<Scalars['Boolean']>;
|
|
145
|
-
modelKeys?: InputMaybe<Array<Scalars['String']>>;
|
|
146
|
-
shopIds: Array<Scalars['String']>;
|
|
147
|
-
};
|
|
148
|
-
export type MutationRemoveContributorArgs = {
|
|
149
|
-
email: Scalars['String'];
|
|
150
|
-
isInvitation: Scalars['Boolean'];
|
|
151
|
-
};
|
|
152
|
-
export type MutationSendAppInvitationArgs = {
|
|
153
|
-
email: Scalars['String'];
|
|
154
|
-
resend?: InputMaybe<Scalars['Boolean']>;
|
|
155
|
-
};
|
|
156
|
-
export type MutationUnregisterWebhooksArgs = {
|
|
157
|
-
connectionKey: Scalars['String'];
|
|
158
|
-
modelKeys?: InputMaybe<Array<Scalars['String']>>;
|
|
159
|
-
shopIds?: InputMaybe<Array<Scalars['String']>>;
|
|
160
|
-
};
|
|
161
|
-
export type PublishFileSyncEventsInput = {
|
|
162
|
-
changed: Array<FileSyncChangedEventInput>;
|
|
163
|
-
deleted: Array<FileSyncDeletedEventInput>;
|
|
164
|
-
expectedRemoteFilesVersion: Scalars['String'];
|
|
165
|
-
};
|
|
166
|
-
export type PublishFileSyncEventsResult = {
|
|
167
|
-
__typename?: 'PublishFileSyncEventsResult';
|
|
168
|
-
remoteFilesVersion: Scalars['String'];
|
|
169
|
-
};
|
|
170
|
-
export type Query = {
|
|
171
|
-
__typename?: 'Query';
|
|
172
|
-
currentUser: User;
|
|
173
|
-
environmentTreePath?: Maybe<Scalars['JSON']>;
|
|
174
|
-
listContributors: Array<ContributorResult>;
|
|
175
|
-
logsSearch: LogSearchResult;
|
|
176
|
-
remoteFilesVersion: Scalars['String'];
|
|
177
|
-
roles: Array<GadgetRole>;
|
|
178
|
-
runTestSupportFunction?: Maybe<Scalars['JSON']>;
|
|
179
|
-
typesManifest: TypesManifest;
|
|
180
|
-
};
|
|
181
|
-
export type QueryEnvironmentTreePathArgs = {
|
|
182
|
-
path: Scalars['String'];
|
|
183
|
-
};
|
|
184
|
-
export type QueryLogsSearchArgs = {
|
|
185
|
-
direction?: InputMaybe<Scalars['String']>;
|
|
186
|
-
end?: InputMaybe<Scalars['DateTime']>;
|
|
187
|
-
limit?: InputMaybe<Scalars['Int']>;
|
|
188
|
-
query: Scalars['String'];
|
|
189
|
-
start?: InputMaybe<Scalars['DateTime']>;
|
|
190
|
-
step?: InputMaybe<Scalars['Int']>;
|
|
191
|
-
};
|
|
192
|
-
export type RefreshScopesResult = {
|
|
193
|
-
__typename?: 'RefreshScopesResult';
|
|
194
|
-
success: Scalars['Boolean'];
|
|
195
|
-
};
|
|
196
|
-
export type RegisterWebhooksResult = {
|
|
197
|
-
__typename?: 'RegisterWebhooksResult';
|
|
198
|
-
success: Scalars['Boolean'];
|
|
199
|
-
};
|
|
200
|
-
export type RemoteFileSyncEvents = {
|
|
201
|
-
__typename?: 'RemoteFileSyncEvents';
|
|
202
|
-
changed: Array<FileSyncChangedEvent>;
|
|
203
|
-
deleted: Array<FileSyncDeletedEvent>;
|
|
204
|
-
remoteFilesVersion: Scalars['String'];
|
|
205
|
-
};
|
|
206
|
-
export type RemoveContributorResult = {
|
|
207
|
-
__typename?: 'RemoveContributorResult';
|
|
208
|
-
reason?: Maybe<Scalars['String']>;
|
|
209
|
-
success: Scalars['Boolean'];
|
|
210
|
-
};
|
|
211
|
-
export type SendAppInvitationResult = {
|
|
212
|
-
__typename?: 'SendAppInvitationResult';
|
|
213
|
-
reason?: Maybe<Scalars['String']>;
|
|
214
|
-
success: Scalars['Boolean'];
|
|
215
|
-
};
|
|
216
|
-
export type Subscription = {
|
|
217
|
-
__typename?: 'Subscription';
|
|
218
|
-
editorActive?: Maybe<Scalars['Boolean']>;
|
|
219
|
-
environmentTreePathPatches?: Maybe<EnvironmentSubscriptionResult>;
|
|
220
|
-
logsSearch: LogSearchResult;
|
|
221
|
-
remoteFileSyncEvents: RemoteFileSyncEvents;
|
|
222
|
-
typesManifestStream: TypesManifest;
|
|
223
|
-
};
|
|
224
|
-
export type SubscriptionEnvironmentTreePathPatchesArgs = {
|
|
225
|
-
clientID: EnvironmentTreeClientId;
|
|
226
|
-
path: Scalars['String'];
|
|
227
|
-
};
|
|
228
|
-
export type SubscriptionLogsSearchArgs = {
|
|
229
|
-
limit?: InputMaybe<Scalars['Int']>;
|
|
230
|
-
query: Scalars['String'];
|
|
231
|
-
start?: InputMaybe<Scalars['DateTime']>;
|
|
232
|
-
};
|
|
233
|
-
export type SubscriptionRemoteFileSyncEventsArgs = {
|
|
234
|
-
encoding?: InputMaybe<FileSyncEncoding>;
|
|
235
|
-
localFilesVersion: Scalars['String'];
|
|
236
|
-
};
|
|
237
|
-
export type TypeManifestEntry = {
|
|
238
|
-
__typename?: 'TypeManifestEntry';
|
|
239
|
-
declaration: Scalars['String'];
|
|
240
|
-
path: Scalars['String'];
|
|
241
|
-
};
|
|
242
|
-
export type TypesManifest = {
|
|
243
|
-
__typename?: 'TypesManifest';
|
|
244
|
-
dependenciesHash: Scalars['String'];
|
|
245
|
-
entries: Array<TypeManifestEntry>;
|
|
246
|
-
environmentVersion: Scalars['Int'];
|
|
247
|
-
};
|
|
248
|
-
export type UnregisterWebhooksResult = {
|
|
249
|
-
__typename?: 'UnregisterWebhooksResult';
|
|
250
|
-
success: Scalars['Boolean'];
|
|
251
|
-
};
|
|
252
|
-
export type User = {
|
|
253
|
-
__typename?: 'User';
|
|
254
|
-
email: Scalars['String'];
|
|
255
|
-
name?: Maybe<Scalars['String']>;
|
|
256
|
-
};
|
|
257
|
-
export type RemoteFileSyncEventsSubscriptionVariables = Exact<{
|
|
258
|
-
localFilesVersion: Scalars['String'];
|
|
259
|
-
}>;
|
|
260
|
-
export type RemoteFileSyncEventsSubscription = {
|
|
261
|
-
__typename?: 'Subscription';
|
|
262
|
-
remoteFileSyncEvents: {
|
|
263
|
-
__typename?: 'RemoteFileSyncEvents';
|
|
264
|
-
remoteFilesVersion: string;
|
|
265
|
-
changed: Array<{
|
|
266
|
-
__typename?: 'FileSyncChangedEvent';
|
|
267
|
-
path: string;
|
|
268
|
-
mode: number;
|
|
269
|
-
content: string;
|
|
270
|
-
encoding: FileSyncEncoding;
|
|
271
|
-
}>;
|
|
272
|
-
deleted: Array<{
|
|
273
|
-
__typename?: 'FileSyncDeletedEvent';
|
|
274
|
-
path: string;
|
|
275
|
-
}>;
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
export type RemoteFilesVersionQueryVariables = Exact<{
|
|
279
|
-
[key: string]: never;
|
|
280
|
-
}>;
|
|
281
|
-
export type RemoteFilesVersionQuery = {
|
|
282
|
-
__typename?: 'Query';
|
|
283
|
-
remoteFilesVersion: string;
|
|
284
|
-
};
|
|
285
|
-
export type PublishFileSyncEventsMutationVariables = Exact<{
|
|
286
|
-
input: PublishFileSyncEventsInput;
|
|
287
|
-
}>;
|
|
288
|
-
export type PublishFileSyncEventsMutation = {
|
|
289
|
-
__typename?: 'Mutation';
|
|
290
|
-
publishFileSyncEvents: {
|
|
291
|
-
__typename?: 'PublishFileSyncEventsResult';
|
|
292
|
-
remoteFilesVersion: string;
|
|
293
|
-
};
|
|
294
|
-
};
|
package/lib/commands/help.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from "../utils/base-command";
|
|
2
|
-
/**
|
|
3
|
-
* Copied from @oclif/plugin-help. Uses our own {@link Help} template class instead of the one from @oclif/core.
|
|
4
|
-
*
|
|
5
|
-
* @see https://github.com/oclif/plugin-help/blob/67b580570257b45e92d3a04d50bf2a432c59afe3/src/commands/help.ts
|
|
6
|
-
*/
|
|
7
|
-
export default class HelpCommand extends BaseCommand<typeof HelpCommand> {
|
|
8
|
-
static strict: boolean;
|
|
9
|
-
static summary: string;
|
|
10
|
-
static args: {
|
|
11
|
-
command: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
|
|
12
|
-
};
|
|
13
|
-
run(): Promise<void>;
|
|
14
|
-
}
|
package/lib/commands/list.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from "../utils/base-command";
|
|
2
|
-
export default class List extends BaseCommand<typeof List> {
|
|
3
|
-
static summary: string;
|
|
4
|
-
static usage: string;
|
|
5
|
-
static examples: string[];
|
|
6
|
-
static flags: {
|
|
7
|
-
columns: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
8
|
-
sort: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
9
|
-
filter: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
10
|
-
csv: import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
11
|
-
output: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
-
extended: import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
13
|
-
'no-truncate': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
14
|
-
'no-header': import("@oclif/core/lib/interfaces").Flag<boolean>;
|
|
15
|
-
};
|
|
16
|
-
requireUser: boolean;
|
|
17
|
-
run(): Promise<void>;
|
|
18
|
-
}
|
package/lib/commands/login.d.ts
DELETED