@kitalive/sfdx-plugin 0.7.0 → 0.7.2

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 CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @kitalive/sfdx-plugin
17
17
  $ sf COMMAND
18
18
  running command...
19
19
  $ sf (--version)
20
- @kitalive/sfdx-plugin/0.7.0 darwin-arm64 node-v18.16.0
20
+ @kitalive/sfdx-plugin/0.7.2 darwin-arm64 node-v18.16.0
21
21
  $ sf --help [COMMAND]
22
22
  USAGE
23
23
  $ sf COMMAND
@@ -67,7 +67,7 @@ EXAMPLES
67
67
  $ sf kit data bulk delete -q "SELECT Id FROM Opportunity WHERE CloseDate < LAST_N_YEARS:2"
68
68
  ```
69
69
 
70
- _See code: [src/commands/kit/data/bulk/delete.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/data/bulk/delete.ts)_
70
+ _See code: [src/commands/kit/data/bulk/delete.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/data/bulk/delete.ts)_
71
71
 
72
72
  ## `sf kit data bulk insert`
73
73
 
@@ -116,7 +116,7 @@ EXAMPLES
116
116
  $ sf kit data bulk insert -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10
117
117
  ```
118
118
 
119
- _See code: [src/commands/kit/data/bulk/insert.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/data/bulk/insert.ts)_
119
+ _See code: [src/commands/kit/data/bulk/insert.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/data/bulk/insert.ts)_
120
120
 
121
121
  ## `sf kit data bulk query`
122
122
 
@@ -142,7 +142,7 @@ EXAMPLES
142
142
  $ sf kit data bulk query -q "SELECT Id, Name FROM Account" -f ./path/to/Account.csv
143
143
  ```
144
144
 
145
- _See code: [src/commands/kit/data/bulk/query.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/data/bulk/query.ts)_
145
+ _See code: [src/commands/kit/data/bulk/query.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/data/bulk/query.ts)_
146
146
 
147
147
  ## `sf kit data bulk update`
148
148
 
@@ -191,7 +191,7 @@ EXAMPLES
191
191
  $ sf kit data bulk update -o MyObject__c -f ./path/to/MyObject__c.csv -c ./path/to/convert.js -w 10
192
192
  ```
193
193
 
194
- _See code: [src/commands/kit/data/bulk/update.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/data/bulk/update.ts)_
194
+ _See code: [src/commands/kit/data/bulk/update.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/data/bulk/update.ts)_
195
195
 
196
196
  ## `sf kit data bulk upsert`
197
197
 
@@ -242,7 +242,7 @@ EXAMPLES
242
242
  -w 10
243
243
  ```
244
244
 
245
- _See code: [src/commands/kit/data/bulk/upsert.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/data/bulk/upsert.ts)_
245
+ _See code: [src/commands/kit/data/bulk/upsert.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/data/bulk/upsert.ts)_
246
246
 
247
247
  ## `sf kit data csv convert`
248
248
 
@@ -274,7 +274,7 @@ EXAMPLES
274
274
  $ sf kit data csv convert -i ./path/to/input.csv -o ./path/to/output.csv -c ./path/to/convert.js
275
275
  ```
276
276
 
277
- _See code: [src/commands/kit/data/csv/convert.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/data/csv/convert.ts)_
277
+ _See code: [src/commands/kit/data/csv/convert.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/data/csv/convert.ts)_
278
278
 
279
279
  ## `sf kit graphql editor`
280
280
 
@@ -301,7 +301,7 @@ EXAMPLES
301
301
  $ sf kit graphql editor --port 8080
302
302
  ```
303
303
 
304
- _See code: [src/commands/kit/graphql/editor.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/graphql/editor.ts)_
304
+ _See code: [src/commands/kit/graphql/editor.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/graphql/editor.ts)_
305
305
 
306
306
  ## `sf kit layout assignments deploy`
307
307
 
@@ -332,7 +332,7 @@ EXAMPLES
332
332
  $ sf kit layout assignments deploy -o me@my.org -f config/layout-assignments.sandbox.json
333
333
  ```
334
334
 
335
- _See code: [src/commands/kit/layout/assignments/deploy.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/layout/assignments/deploy.ts)_
335
+ _See code: [src/commands/kit/layout/assignments/deploy.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/layout/assignments/deploy.ts)_
336
336
 
337
337
  ## `sf kit layout assignments retrieve`
338
338
 
@@ -366,7 +366,7 @@ EXAMPLES
366
366
  $ sf kit layout assignments retrieve -o me@my.org -f config/layout-assignments.sandbox.json
367
367
  ```
368
368
 
369
- _See code: [src/commands/kit/layout/assignments/retrieve.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/layout/assignments/retrieve.ts)_
369
+ _See code: [src/commands/kit/layout/assignments/retrieve.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/layout/assignments/retrieve.ts)_
370
370
 
371
371
  ## `sf kit object fields describe`
372
372
 
@@ -393,7 +393,7 @@ EXAMPLES
393
393
  $ sf kit object fields describe -o me@my.org -s CustomObject__c --json
394
394
  ```
395
395
 
396
- _See code: [src/commands/kit/object/fields/describe.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/object/fields/describe.ts)_
396
+ _See code: [src/commands/kit/object/fields/describe.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/object/fields/describe.ts)_
397
397
 
398
398
  ## `sf kit object fields setup`
399
399
 
@@ -422,7 +422,7 @@ EXAMPLES
422
422
  $ sf kit object fields setup -o me@my.org -s CustomObject__c -f path/to/custom_object_fields.csv --delete
423
423
  ```
424
424
 
425
- _See code: [src/commands/kit/object/fields/setup.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/object/fields/setup.ts)_
425
+ _See code: [src/commands/kit/object/fields/setup.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/object/fields/setup.ts)_
426
426
 
427
427
  ## `sf kit script`
428
428
 
@@ -508,5 +508,5 @@ EXAMPLES
508
508
  > await conn.query('SELECT Id, Name FROM Account LIMIT 1')
509
509
  ```
510
510
 
511
- _See code: [src/commands/kit/script/execute.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.0/src/commands/kit/script/execute.ts)_
511
+ _See code: [src/commands/kit/script/execute.ts](https://github.com/Kitalive-Inc/sfdx-plugin/blob/v0.7.2/src/commands/kit/script/execute.ts)_
512
512
  <!-- commandsstop -->
@@ -20,12 +20,21 @@ class GraphqlEditor extends sf_plugins_core_1.SfCommand {
20
20
  app.post('/graphql', async (req, res) => {
21
21
  res.json(await conn.requestPost(endpoint, req.body));
22
22
  });
23
- app.listen(flags.port, async () => {
23
+ app.post('/quit', () => process.exit(0));
24
+ app.listen(flags.port, '127.0.0.1', async () => {
24
25
  this.log(`Listening on port ${flags.port}`);
25
26
  this.log('Use Ctrl-C to stop');
26
27
  await (0, open_1.default)(`http://localhost:${flags.port}`);
27
28
  });
28
29
  }
30
+ exit(code = 0) {
31
+ if (code === 130) {
32
+ process.exit(0);
33
+ }
34
+ else {
35
+ super.exit(code);
36
+ }
37
+ }
29
38
  }
30
39
  GraphqlEditor.summary = messages.getMessage('summary');
31
40
  GraphqlEditor.description = messages.getMessage('description');
@@ -1 +1 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,EAAE,uBAAK,CAAC,OAAO,CAAC;QAClB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAClD,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,IAAI;KACd,CAAC;IACF,YAAY,EAAE,uBAAK,CAAC,WAAW,EAAE;IACjC,aAAa,EAAE,uBAAK,CAAC,aAAa,EAAE;CACrC,CAAC;kBAbiB,aAAa"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.0",
2
+ "version": "0.7.2",
3
3
  "commands": {
4
4
  "kit:graphql:editor": {
5
5
  "id": "kit:graphql:editor",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kitalive/sfdx-plugin",
3
3
  "description": "Kitalive SFDX plugin",
4
- "version": "0.7.0",
4
+ "version": "0.7.2",
5
5
  "author": "Akihiro Ono",
6
6
  "bugs": "https://github.com/Kitalive-Inc/sfdx-plugin/issues",
7
7
  "dependencies": {
@@ -57,7 +57,8 @@
57
57
  "files": [
58
58
  "/lib",
59
59
  "/messages",
60
- "/oclif.manifest.json"
60
+ "/oclif.manifest.json",
61
+ "/public"
61
62
  ],
62
63
  "homepage": "https://github.com/Kitalive-Inc/sfdx-plugin",
63
64
  "keywords": [
@@ -0,0 +1,82 @@
1
+ <!--
2
+ * Copyright (c) 2021 GraphQL Contributors
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ -->
8
+ <!DOCTYPE html>
9
+ <html lang="en">
10
+ <head>
11
+ <title>GraphiQL</title>
12
+ <style>
13
+ body {
14
+ height: 100%;
15
+ margin: 0;
16
+ width: 100%;
17
+ overflow: hidden;
18
+ }
19
+
20
+ #graphiql {
21
+ height: 100vh;
22
+ }
23
+ </style>
24
+ <!--
25
+ This GraphiQL example depends on Promise and fetch, which are available in
26
+ modern browsers, but can be "polyfilled" for older browsers.
27
+ GraphiQL itself depends on React DOM.
28
+ If you do not want to rely on a CDN, you can host these files locally or
29
+ include them directly in your favored resource bundler.
30
+ -->
31
+ <script
32
+ crossorigin
33
+ src="https://unpkg.com/react@18/umd/react.development.js"
34
+ ></script>
35
+ <script
36
+ crossorigin
37
+ src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"
38
+ ></script>
39
+ <!--
40
+ These two files can be found in the npm module, however you may wish to
41
+ copy them directly into your environment, or perhaps include them in your
42
+ favored resource bundler.
43
+ -->
44
+ <script
45
+ src="https://unpkg.com/graphiql/graphiql.min.js"
46
+ type="application/javascript"
47
+ ></script>
48
+ <link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" />
49
+ <!--
50
+ These are imports for the GraphIQL Explorer plugin.
51
+ -->
52
+ <script
53
+ src="https://unpkg.com/@graphiql/plugin-explorer/dist/index.umd.js"
54
+ crossorigin
55
+ ></script>
56
+
57
+ <link
58
+ rel="stylesheet"
59
+ href="https://unpkg.com/@graphiql/plugin-explorer/dist/style.css"
60
+ />
61
+ </head>
62
+
63
+ <body>
64
+ <div id="graphiql">Loading...</div>
65
+ <script crossorigin>
66
+ const root = ReactDOM.createRoot(document.getElementById('graphiql'));
67
+ const fetcher = GraphiQL.createFetcher({ url: '/graphql' });
68
+ const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin();
69
+ root.render(
70
+ React.createElement(GraphiQL, {
71
+ fetcher,
72
+ dangerouslyAssumeSchemaIsValid: true,
73
+ defaultEditorToolsVisibility: true,
74
+ plugins: [explorerPlugin],
75
+ })
76
+ );
77
+ window.addEventListener('beforeunload', () =>
78
+ navigator.sendBeacon('/quit')
79
+ );
80
+ </script>
81
+ </body>
82
+ </html>