great 1.2.1 → 1.3.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 +96 -40
- package/dist/clone/index.d.ts +2 -2
- package/dist/clone/index.js.map +1 -1
- package/dist/deploy/index.d.ts +2 -2
- package/dist/deploy/index.js.map +1 -1
- package/dist/explode/index.d.ts +2 -2
- package/dist/explode/index.js.map +1 -1
- package/dist/explode/transform.js +2 -2
- package/dist/explode/transform.js.map +1 -1
- package/dist/generated/operations.d.ts +7 -7
- package/dist/generated/schema.d.ts +122 -2
- package/dist/generated/schema.js +15 -0
- package/dist/generated/schema.js.map +1 -1
- package/dist/implode/index.d.ts +2 -2
- package/dist/implode/index.js +1 -0
- package/dist/implode/index.js.map +1 -1
- package/dist/implode/transform.d.ts +1 -0
- package/dist/implode/transform.js +16 -2
- package/dist/implode/transform.js.map +1 -1
- package/dist/import/index.d.ts +2 -2
- package/dist/import/index.js.map +1 -1
- package/dist/include/index.d.ts +2 -2
- package/dist/include/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/init/index.d.ts +2 -2
- package/dist/init/index.js +3 -3
- package/dist/init/index.js.map +1 -1
- package/dist/integrations/create.js +1 -1
- package/dist/integrations/create.js.map +1 -1
- package/dist/integrations/index.js +1 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/migrate/index.d.ts +5 -2
- package/dist/migrate/index.js +102 -4
- package/dist/migrate/index.js.map +1 -1
- package/dist/pull/index.d.ts +2 -2
- package/dist/pull/index.js.map +1 -1
- package/dist/push/index.d.ts +3 -2
- package/dist/push/index.js +133 -61
- package/dist/push/index.js.map +1 -1
- package/dist/rename/index.d.ts +2 -2
- package/dist/rename/index.js +51 -21
- package/dist/rename/index.js.map +1 -1
- package/dist/run/index.d.ts +29 -2
- package/dist/run/index.js.map +1 -1
- package/dist/status/index.d.ts +2 -2
- package/dist/status/index.js +1 -1
- package/dist/status/index.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/utils/createIntegrationFromFile.d.ts +2 -2
- package/dist/utils/createIntegrationFromFile.js.map +1 -1
- package/dist/utils/detectPullConflicts.d.ts +2 -2
- package/dist/utils/detectPullConflicts.js +9 -14
- package/dist/utils/detectPullConflicts.js.map +1 -1
- package/dist/utils/elementFiles.d.ts +18 -7
- package/dist/utils/elementFiles.js +114 -8
- package/dist/utils/elementFiles.js.map +1 -1
- package/dist/utils/fetchLocal.d.ts +4 -4
- package/dist/utils/fetchLocal.js.map +1 -1
- package/dist/utils/greatFile.d.ts +3 -3
- package/dist/utils/greatFile.js.map +1 -1
- package/dist/utils/promptForDetach.d.ts +6 -0
- package/dist/utils/promptForDetach.js +15 -0
- package/dist/utils/promptForDetach.js.map +1 -0
- package/dist/utils/resolveAccount.d.ts +2 -2
- package/dist/utils/resolveAccount.js.map +1 -1
- package/dist/utils/resolveElement.d.ts +2 -0
- package/dist/utils/resolveElement.js +8 -0
- package/dist/utils/resolveElement.js.map +1 -1
- package/dist/utils/saveIntegration.d.ts +2 -2
- package/dist/utils/saveIntegration.js +54 -30
- package/dist/utils/saveIntegration.js.map +1 -1
- package/dist/utils/serviceFile.d.ts +31 -0
- package/dist/utils/serviceFile.js +89 -0
- package/dist/utils/serviceFile.js.map +1 -0
- package/dist/utils/shadowMarker.d.ts +5 -0
- package/dist/utils/shadowMarker.js +16 -0
- package/dist/utils/shadowMarker.js.map +1 -0
- package/dist/utils/valueTypes.js +2 -2
- package/dist/utils/valueTypes.js.map +1 -1
- package/dist/utils/verifyISODate.d.ts +1 -0
- package/dist/utils/verifyISODate.js +5 -0
- package/dist/utils/verifyISODate.js.map +1 -0
- package/dist/utils/writeShadowElement.d.ts +2 -3
- package/dist/utils/writeShadowElement.js +20 -19
- package/dist/utils/writeShadowElement.js.map +1 -1
- package/dist/values/get.d.ts +2 -2
- package/dist/values/get.js.map +1 -1
- package/dist/values/list.d.ts +2 -2
- package/dist/values/list.js.map +1 -1
- package/dist/values/set.d.ts +2 -2
- package/dist/values/set.js.map +1 -1
- package/dist/values/unset.d.ts +2 -2
- package/dist/values/unset.js.map +1 -1
- package/package.json +16 -17
- package/quality.toml +4 -0
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Integreat CLI
|
|
2
2
|
|
|
3
|
-
A command line interface for
|
|
3
|
+
A command line interface for
|
|
4
|
+
[Integreat](https://github.com/integreat-io/integreat).
|
|
4
5
|
|
|
5
6
|
## Installation
|
|
6
7
|
|
|
@@ -39,10 +40,10 @@ note which of these they support.
|
|
|
39
40
|
positional `<integration>` argument. An explicit integration overrides the
|
|
40
41
|
folder.
|
|
41
42
|
- **Account** — needed only when an integration is addressed by key rather than
|
|
42
|
-
id (a key is resolved within an account), or by commands that act on an
|
|
43
|
-
directly. Provide it with the `-a <account-id-or-key>` flag. When
|
|
44
|
-
falls back to the current folder's account (from `.great.json`),
|
|
45
|
-
default account from config (`great config set account <id>`).
|
|
43
|
+
id (a key is resolved within an account), or by commands that act on an
|
|
44
|
+
account directly. Provide it with the `-a <account-id-or-key>` flag. When
|
|
45
|
+
omitted, it falls back to the current folder's account (from `.great.json`),
|
|
46
|
+
then the default account from config (`great config set account <id>`).
|
|
46
47
|
|
|
47
48
|
An integration or account passed explicitly that does not exist is an error —
|
|
48
49
|
commands never silently fall back to the current folder in that case.
|
|
@@ -64,15 +65,15 @@ commands never silently fall back to the current folder in that case.
|
|
|
64
65
|
- `great integrations` or `great integrations list`: Display list of
|
|
65
66
|
integrations. Supports `-a` to filter by account, or `--all` to list all
|
|
66
67
|
integrations ignoring the default account.
|
|
67
|
-
- `great integrations create <name>`: Create a new integration
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
- `great integrations create <name>`: Create a new integration in Integreat.
|
|
69
|
+
Requires `-a`. Returns integration ID to add to local `integration.json` for
|
|
70
|
+
linking with workspace.
|
|
70
71
|
|
|
71
72
|
### Local Workspace
|
|
72
73
|
|
|
73
74
|
- `great init [name]`: Initialize a new integration workspace locally. Creates
|
|
74
|
-
`integration.json` and folder structure without creating anything
|
|
75
|
-
|
|
75
|
+
`integration.json` and folder structure without creating anything in
|
|
76
|
+
Integreat. If name is omitted, uses the current directory name.
|
|
76
77
|
- `great clone <integration>`: Clone an integration to a new folder.
|
|
77
78
|
`<integration>` can be an integration id or key; supports `-a`. Creates a new
|
|
78
79
|
directory with the integration key (or id) and downloads all integration
|
|
@@ -81,7 +82,7 @@ commands never silently fall back to the current folder in that case.
|
|
|
81
82
|
run from a folder with an `integration.json` file. Writes the integration
|
|
82
83
|
config to `integration.json` and each element to its file under the matching
|
|
83
84
|
folder, and updates `.great.json` with the remote links. Element files that no
|
|
84
|
-
longer exist
|
|
85
|
+
longer exist in Integreat are deleted, while local-only files are left alone.
|
|
85
86
|
Will check for conflicts and abort.
|
|
86
87
|
- `great push`: Push local changes to Integreat. Must be run from a folder with
|
|
87
88
|
an `integration.json` file; supports `-a` when creating a new integration, to
|
|
@@ -91,9 +92,11 @@ commands never silently fall back to the current folder in that case.
|
|
|
91
92
|
`$shadow: true` marker; it does not own its content (that lives in the source
|
|
92
93
|
element) — the link to the source and the template import are recorded in
|
|
93
94
|
`.great.json`. Several templates may import the same element; re-importing
|
|
94
|
-
updates the existing shadow.
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
updates the existing shadow. Editing a shadow's content locally and pushing
|
|
96
|
+
detaches it from its source (push asks first). Aborts without writing anything
|
|
97
|
+
if any imported element clashes with a local element or a shadow of a
|
|
98
|
+
different source. Must be run from a folder with an `integration.json` file
|
|
99
|
+
(no push required first).
|
|
97
100
|
- `great include <element>`: Include a single element from another integration
|
|
98
101
|
as a shadow file, like `great import` but for one element and with no template
|
|
99
102
|
bookkeeping. Use `-p, --pinned-at <timestamp>` to pin the shadow to the source
|
|
@@ -104,8 +107,10 @@ commands never silently fall back to the current folder in that case.
|
|
|
104
107
|
`"<folder>/<key>"` for an element (e.g. `schemas/entry`), or the literal
|
|
105
108
|
`account`. Use this instead of renaming an element file by hand — a plain
|
|
106
109
|
rename is treated as deleting the old element and creating a new one.
|
|
107
|
-
Already-pushed targets are renamed
|
|
108
|
-
|
|
110
|
+
Already-pushed targets are renamed in Integreat too (requires login). Renaming
|
|
111
|
+
a service also renames its endpoint list, and renaming an endpoint updates
|
|
112
|
+
every service listing it. An endpoint list can't be renamed on its own. (To
|
|
113
|
+
rename the integration itself, rename its folder — the folder name is the
|
|
109
114
|
integration key.)
|
|
110
115
|
|
|
111
116
|
### Deployment & Runtime
|
|
@@ -135,7 +140,10 @@ commands never silently fall back to the current folder in that case.
|
|
|
135
140
|
`<element>` can be either an element ID or key (a key needs integration
|
|
136
141
|
context). Supports `-i` and `-a`. The value will be automatically cast to the
|
|
137
142
|
appropriate type (string, number, boolean, date, or secret) based on the
|
|
138
|
-
element's type definition.
|
|
143
|
+
element's type definition. If the value starts with a dash (e.g. a PEM key
|
|
144
|
+
like `-----BEGIN PRIVATE KEY-----`), put a bare `--` before it so it isn't
|
|
145
|
+
parsed as an option: `great values set <element> -- '-----BEGIN ...'`. Use
|
|
146
|
+
`$'...'` quoting if you need `\n` sequences turned into real newlines.
|
|
139
147
|
- `great values unset <element>`: Clear the value of a value element, so it may
|
|
140
148
|
fall back to an inherited value from a source element when present. The
|
|
141
149
|
`<element>` can be either an element ID or key (a key needs integration
|
|
@@ -145,11 +153,11 @@ commands never silently fall back to the current folder in that case.
|
|
|
145
153
|
|
|
146
154
|
- `great env list`: List configured environments. The built-in `prod`
|
|
147
155
|
environment is always present, and the active one is marked.
|
|
148
|
-
- `great env set <name> --api-url <url> --app-url <url>`: Add or update a
|
|
149
|
-
|
|
150
|
-
- `great env use <name>`: Switch the active environment. Use `prod` to reset
|
|
151
|
-
|
|
152
|
-
|
|
156
|
+
- `great env set <name> --api-url <url> --app-url <url>`: Add or update a named
|
|
157
|
+
environment. The name `prod` is reserved.
|
|
158
|
+
- `great env use <name>`: Switch the active environment. Use `prod` to reset to
|
|
159
|
+
the default. When a non-prod environment is active, commands that contact the
|
|
160
|
+
API print a warning.
|
|
153
161
|
- `great env remove <name>`: Remove a named environment.
|
|
154
162
|
|
|
155
163
|
### Utilities
|
|
@@ -158,12 +166,19 @@ commands never silently fall back to the current folder in that case.
|
|
|
158
166
|
Specify the path to a legacy JSON file as the first argument.
|
|
159
167
|
- `great implode [folder]`: Combine integration file structure into a single
|
|
160
168
|
legacy JSON file. Specify the path to an integration folder as the first
|
|
161
|
-
argument (defaults to current directory).
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
argument (defaults to current directory). Endpoint keys on services are
|
|
170
|
+
resolved back to inline endpoint definitions. Note: value elements will have
|
|
171
|
+
empty values in the output.
|
|
172
|
+
- `great migrate`: Migrate an existing workspace to the newest layout. Run it
|
|
173
|
+
from the integration folder; it is safe to re-run. It does two things:
|
|
174
|
+
- Moves sync bookkeeping stored inline as `__id`/`__key`/`__timestamp` props
|
|
175
|
+
(the old layout) to a `.great.json` file (see Workspace files below).
|
|
176
|
+
- Extracts inline endpoint definitions on services to `endpoints/` files,
|
|
177
|
+
leaving the endpoint keys on the service (see Services and endpoints below).
|
|
178
|
+
Each key is the endpoint's `id`, or `endpoint<N>` by position, and is
|
|
179
|
+
prefixed with the service key and a dash, unless `--no-prefix` is given.
|
|
180
|
+
Keys are kept within 50 chars and made unique with a number suffix if
|
|
181
|
+
needed. Run `great push` afterwards to create the endpoints in Integreat.
|
|
167
182
|
- `great now`: Prints the current Unix timestamp.
|
|
168
183
|
|
|
169
184
|
## Workspace files
|
|
@@ -173,14 +188,14 @@ An integration folder contains:
|
|
|
173
188
|
- `integration.json` at the folder root. This holds the integration's own
|
|
174
189
|
configuration: its `name`, `description`, `status`, `type`, and `flags`. The
|
|
175
190
|
`type` is one of `integration` (the default), `template`, or `library`. The
|
|
176
|
-
integration's key is the folder name, so renaming its folder to change the
|
|
177
|
-
|
|
178
|
-
- Per-type folders (`schemas/`, `services/`, `
|
|
179
|
-
`dictionaries/`, `jobs/`, `values/`, `flows/`, `retryRules/`)
|
|
180
|
-
file per element. These hold only configuration. Keys come from
|
|
181
|
-
stored fields: an element's key is its file name without the
|
|
182
|
-
`schemas/entry.json` has key `entry`). Rename an element with
|
|
183
|
-
(a plain file rename is treated as delete + recreate).
|
|
191
|
+
integration's key is the folder name, so renaming its folder to change the key
|
|
192
|
+
(not yet implemented).
|
|
193
|
+
- Per-type folders (`schemas/`, `services/`, `endpoints/`, `auths/`,
|
|
194
|
+
`mutations/`, `dictionaries/`, `jobs/`, `values/`, `flows/`, `retryRules/`)
|
|
195
|
+
with one JSON file per element. These hold only configuration. Keys come from
|
|
196
|
+
names, not stored fields: an element's key is its file name without the
|
|
197
|
+
extension (e.g. `schemas/entry.json` has key `entry`). Rename an element with
|
|
198
|
+
`great rename` (a plain file rename is treated as delete + recreate).
|
|
184
199
|
- `.great.json` at the folder root. This holds the sync bookkeeping that links
|
|
185
200
|
local files to their remote counterparts — the integration and element ids,
|
|
186
201
|
the owning account, the last-synced timestamps and content hashes. It is
|
|
@@ -189,6 +204,46 @@ An integration folder contains:
|
|
|
189
204
|
recreates the remote elements; this is the clean way to regenerate a folder
|
|
190
205
|
against a new environment.
|
|
191
206
|
|
|
207
|
+
### Services and endpoints
|
|
208
|
+
|
|
209
|
+
A service is one file in `services/`, and each of its endpoints is a file of its
|
|
210
|
+
own in `endpoints/`. The service refers to the endpoints it uses by key:
|
|
211
|
+
|
|
212
|
+
```jsonc
|
|
213
|
+
// services/crm.json
|
|
214
|
+
{
|
|
215
|
+
"name": "CRM",
|
|
216
|
+
"transporter": "http",
|
|
217
|
+
"endpoints": ["crm-getEntries", "crm-setEntry"],
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
```jsonc
|
|
222
|
+
// endpoints/crm-getEntries.json
|
|
223
|
+
{
|
|
224
|
+
"name": "Get entries",
|
|
225
|
+
"match": { "action": "GET", "type": "entry" },
|
|
226
|
+
"options": { "uri": "/entries" },
|
|
227
|
+
}
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
The order matters, as Integreat composes the endpoints in the order they are
|
|
231
|
+
listed. Endpoints have a folder of their own because several services may list
|
|
232
|
+
the same one, and their keys must be unique across the whole integration, so
|
|
233
|
+
prefixing them with the service key is a good convention.
|
|
234
|
+
|
|
235
|
+
In Integreat the service consists of three element types: the service, one
|
|
236
|
+
element per endpoint, and an **endpoint list** of ordered endpoint keys, tied to
|
|
237
|
+
its service by having the same key. The `endpoints` array is that list, so one
|
|
238
|
+
file gives you two elements in Integreat. The `$shadow` marker in this file says
|
|
239
|
+
which of the two elements are shadows: `true` for both, `"service"` or
|
|
240
|
+
`"endpoints"` for one of them.
|
|
241
|
+
|
|
242
|
+
Integreat still accepts an older "monolitic" endpoints format, where the
|
|
243
|
+
endpoints are included directly in the endpoints array. This can't be mixed, so
|
|
244
|
+
run `great migrate` to extract the inline endpoints to their own files before
|
|
245
|
+
adding more endpoints.
|
|
246
|
+
|
|
192
247
|
## Typical Workflow
|
|
193
248
|
|
|
194
249
|
For new integrations:
|
|
@@ -196,7 +251,7 @@ For new integrations:
|
|
|
196
251
|
1. **Initialize local workspace**: `great init "My Integration"`
|
|
197
252
|
2. **Create element files** (schemas, services, etc.) in their respective
|
|
198
253
|
folders
|
|
199
|
-
3. **Push local files to
|
|
254
|
+
3. **Push local files to Integreat**: `great push`
|
|
200
255
|
4. **Deploy**: `great deploy`
|
|
201
256
|
|
|
202
257
|
For existing integrations:
|
|
@@ -209,13 +264,14 @@ For existing integrations:
|
|
|
209
264
|
Setting values:
|
|
210
265
|
|
|
211
266
|
- **From integration directory**: `great value set apiKey "my-secret-value"`
|
|
212
|
-
- **With integration flag**:
|
|
267
|
+
- **With integration flag**:
|
|
268
|
+
`great value set apiKey "my-secret" -i my-integration`
|
|
213
269
|
- **By element ID**: `great value set val-123 "my-value"`
|
|
214
270
|
|
|
215
271
|
## Development and testing
|
|
216
272
|
|
|
217
|
-
To run against a non-prod setup (QA, local, etc.), configure a named
|
|
218
|
-
|
|
273
|
+
To run against a non-prod setup (QA, local, etc.), configure a named environment
|
|
274
|
+
once and switch to it:
|
|
219
275
|
|
|
220
276
|
```bash
|
|
221
277
|
great env set local --api-url http://localhost:3001 --app-url http://localhost:3000
|
package/dist/clone/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
1
|
import Conf from 'conf';
|
|
3
2
|
import { type GraphQLRequestClient } from '../utils/graphqlClient.js';
|
|
4
3
|
import type { ConfigSchema } from '../utils/config.js';
|
|
5
4
|
import type { Command } from 'commander';
|
|
6
|
-
|
|
5
|
+
import type { GreatFs } from '../types.js';
|
|
6
|
+
export declare const action: (log: (message: string) => void, apiToken?: string, client?: GraphQLRequestClient, fsImpl?: GreatFs, config?: Conf<ConfigSchema>) => (integrationIdOrKey: string, options?: {
|
|
7
7
|
account?: string;
|
|
8
8
|
}) => Promise<void>;
|
|
9
9
|
declare const _default: (program: Command, apiToken?: string) => Command;
|
package/dist/clone/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/clone/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/clone/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,eAAe,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,SAAS,EAA6B,MAAM,2BAA2B,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAA;AAEnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAInE,MAAM,CAAC,MAAM,MAAM,GAAG,CACpB,GAA8B,EAC9B,QAAiB,EACjB,MAA6B,EAC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Ae,CAAC,OAAgB,EAAE,QAAiB,EAAE,EAAE,CACrD,OAAO;KACJ,OAAO,CAAC,qBAAqB,CAAC;KAC9B,WAAW,CAAC,sCAAsC,CAAC;KACnD,MAAM,CACL,oBAAoB,EACpB,8DAA8D,CAC/D;KACA,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA"}
|
package/dist/deploy/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
1
|
import Conf from 'conf';
|
|
3
2
|
import { type GraphQLRequestClient } from '../utils/graphqlClient.js';
|
|
4
3
|
import type { ConfigSchema } from '../utils/config.js';
|
|
5
4
|
import type { Command } from 'commander';
|
|
6
|
-
|
|
5
|
+
import type { GreatFs } from '../types.js';
|
|
6
|
+
export declare const action: (log: (message: string) => void, apiToken?: string, client?: GraphQLRequestClient, fsImpl?: GreatFs, config?: Conf<ConfigSchema>) => (integrationIdOrKey?: string, options?: {
|
|
7
7
|
account?: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
}) => Promise<void>;
|
package/dist/deploy/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/deploy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EAAE,SAAS,EAA6B,MAAM,2BAA2B,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AASxD,OAAO,EAAE,GAAG,EA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
|
1
|
-
import fs from 'node:fs';
|
|
2
1
|
import type { Command } from 'commander';
|
|
3
|
-
|
|
2
|
+
import type { GreatFs } from '../types.js';
|
|
3
|
+
export declare const action: (log: (message: string) => void, fsImpl?: GreatFs) => (filePath?: string) => Promise<void>;
|
|
4
4
|
declare const _default: (program: Command) => Command;
|
|
5
5
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/explode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,eAAe,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/explode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,eAAe,MAAM,6BAA6B,CAAA;AAIzD,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAA8B,EAAE,SAAkB,EAAE,EAAE,EAAE,CAC7E,KAAK,UAAU,kBAAkB,CAAC,QAAiB;IAEjD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,CAAA;QACvC,OAAM;IACR,CAAC;IAGD,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,mBAAmB,QAAQ,EAAE,CAAC,CAAC,CAAA;QAC7C,OAAM;IACR,CAAC;IAGD,IAAI,UAAU,CAAA;IACd,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QAC1D,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;IACtC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,yBAAyB,KAAK,EAAE,CAAC,CAAC,CAAA;QAChD,OAAM;IACR,CAAC;IAGD,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,0BAA0B,CAAC,UAAU,CAAC,CAAA;IAGzE,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAA;IACjC,eAAe,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;AACzD,CAAC,CAAA;AAEH,eAAe,CAAC,OAAgB,EAAE,EAAE,CAClC,OAAO;KACJ,OAAO,CAAC,SAAS,CAAC;KAClB,WAAW,CAAC,uDAAuD,CAAC;KACpE,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { unescapeMongo } from './unescapeMongo.js';
|
|
2
2
|
import { DEFAULT_INTEGRATION_TYPE } from '../utils/integrationType.js';
|
|
3
|
+
import verifyISODate from '../utils/verifyISODate.js';
|
|
3
4
|
export function transformMutations(mutations) {
|
|
4
5
|
return Object.entries(mutations).map(([key, value]) => ({
|
|
5
6
|
id: '',
|
|
@@ -16,7 +17,6 @@ export function transformDictionaries(dictionaries) {
|
|
|
16
17
|
createdAt: undefined,
|
|
17
18
|
}));
|
|
18
19
|
}
|
|
19
|
-
const ISO_DATE_PATTERN = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d\d\d)?Z?$/;
|
|
20
20
|
function detectValueType(value, isSecret) {
|
|
21
21
|
if (isSecret) {
|
|
22
22
|
return 'secret';
|
|
@@ -27,7 +27,7 @@ function detectValueType(value, isSecret) {
|
|
|
27
27
|
if (typeof value === 'number') {
|
|
28
28
|
return 'number';
|
|
29
29
|
}
|
|
30
|
-
if (typeof value === 'string' &&
|
|
30
|
+
if (typeof value === 'string' && verifyISODate(value)) {
|
|
31
31
|
return 'date';
|
|
32
32
|
}
|
|
33
33
|
return 'string';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../src/explode/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../src/explode/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,aAAa,MAAM,2BAA2B,CAAA;AAkCrD,MAAM,UAAU,kBAAkB,CAChC,SAAkC;IAElC,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACtD,EAAE,EAAE,EAAE;QACN,GAAG;QACH,OAAO,EAAE,EAAE,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE;QAC3C,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC,CAAA;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,YAAqC;IAErC,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACzD,EAAE,EAAE,EAAE;QACN,GAAG;QACH,OAAO,EAAE,EAAE,UAAU,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE;QAC7C,SAAS,E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B,CAAC,CAAC,qBAAqB,CAAC,WAAW,CAAC,YAAY,CAAC;YACjD,CAAC,CAAC,EAAE,EACN,YAAY,CACb;QACD,GAAG,UAAU,CAAC,WAAW,EAAE,IAAI,EAAE,GAAG,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC;QACpE,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,CAAC;QAC7D,GAAG,UAAU,CAAC,UAAU,EAAE,GAAG,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC;KACpE,CAAA;IAGD,IAAI,WAAW,EAAE,KAAK,EAAE,CAAC;QACvB,QAAQ,CAAC,IAAI,CAAC;YACZ,GAAG,EAAE,QAAQ;YACb,UAAU,EAAE,eAAe;YAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,CAAC,KAAK,EAAE;SACrC,CAAC,CAAA;IACJ,CAAC;IAED,OAAO;QACL;YACE,GAAG,EAAE,SAAS;YACd,IAAI;YACJ,WAAW,EAAE,IAAI;YACjB,MAAM,EAAE,MAAgB;YACxB,IAAI,EAAE,wBAAwB;SAC/B;QACD;YACE,SAAS,EAAE,SAAS;YACpB,QAAQ;SACT;KACF,CAAA;AACH,CAAC"}
|
|
@@ -72,7 +72,7 @@ export type ValuesListKeyValueQuery = {
|
|
|
72
72
|
id: string;
|
|
73
73
|
latest: {
|
|
74
74
|
elements: Array<{
|
|
75
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
75
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
76
76
|
} | ({
|
|
77
77
|
key: string;
|
|
78
78
|
value: unknown;
|
|
@@ -167,7 +167,7 @@ export type IntegrationForPushQuery = {
|
|
|
167
167
|
provenance: Array<string>;
|
|
168
168
|
} | null;
|
|
169
169
|
} & {
|
|
170
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
170
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
171
171
|
})>;
|
|
172
172
|
};
|
|
173
173
|
} | null;
|
|
@@ -303,7 +303,7 @@ export type IntegrationElementsQuery = {
|
|
|
303
303
|
name: string;
|
|
304
304
|
description: string | null;
|
|
305
305
|
} & {
|
|
306
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
306
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
307
307
|
}) | ({
|
|
308
308
|
sort: number | null;
|
|
309
309
|
id: string;
|
|
@@ -417,7 +417,7 @@ export type IntegrationDefinitionQuery = {
|
|
|
417
417
|
provenance: Array<string>;
|
|
418
418
|
} | null;
|
|
419
419
|
} & {
|
|
420
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
420
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
421
421
|
})>;
|
|
422
422
|
};
|
|
423
423
|
} | null;
|
|
@@ -464,7 +464,7 @@ export type ElementByIdQuery = {
|
|
|
464
464
|
data: Record<string, unknown> | null;
|
|
465
465
|
} | null;
|
|
466
466
|
} & {
|
|
467
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
467
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
468
468
|
}) | ({
|
|
469
469
|
value: unknown;
|
|
470
470
|
id: string;
|
|
@@ -489,7 +489,7 @@ export type ElementByKeyQuery = {
|
|
|
489
489
|
data: Record<string, unknown> | null;
|
|
490
490
|
} | null;
|
|
491
491
|
} & {
|
|
492
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
492
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
493
493
|
}) | ({
|
|
494
494
|
value: unknown;
|
|
495
495
|
id: string;
|
|
@@ -583,7 +583,7 @@ export type ValuesListQuery = {
|
|
|
583
583
|
name: string;
|
|
584
584
|
latest: {
|
|
585
585
|
elements: Array<{
|
|
586
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
586
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
587
587
|
} | ({
|
|
588
588
|
id: string;
|
|
589
589
|
key: string;
|