great 1.2.2 → 1.4.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 +122 -50
- 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/generated/operations.d.ts +30 -8
- package/dist/generated/schema.d.ts +138 -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 +4 -2
- package/dist/import/index.js +27 -6
- package/dist/import/index.js.map +1 -1
- package/dist/include/index.d.ts +4 -2
- package/dist/include/index.js +129 -11
- package/dist/include/index.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +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 +6 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/list.d.ts +2 -0
- package/dist/integrations/list.js +30 -16
- package/dist/integrations/list.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 +168 -73
- package/dist/push/index.js.map +1 -1
- package/dist/remove/index.d.ts +5 -0
- package/dist/remove/index.js +71 -0
- package/dist/remove/index.js.map +1 -0
- package/dist/rename/index.d.ts +2 -2
- package/dist/rename/index.js +54 -23
- 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 +24 -5
- package/dist/utils/elementFiles.js +147 -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/graphqlError.js +16 -2
- package/dist/utils/graphqlError.js.map +1 -1
- package/dist/utils/greatFile.d.ts +3 -3
- package/dist/utils/greatFile.js.map +1 -1
- package/dist/utils/mergeEndpointLists.d.ts +7 -0
- package/dist/utils/mergeEndpointLists.js +32 -0
- package/dist/utils/mergeEndpointLists.js.map +1 -0
- 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/promptForEndpoints.d.ts +5 -0
- package/dist/utils/promptForEndpoints.js +37 -0
- package/dist/utils/promptForEndpoints.js.map +1 -0
- package/dist/utils/promptForReplaceLocal.d.ts +5 -0
- package/dist/utils/promptForReplaceLocal.js +18 -0
- package/dist/utils/promptForReplaceLocal.js.map +1 -0
- package/dist/utils/promptForValue.d.ts +1 -0
- package/dist/utils/promptForValue.js +5 -3
- package/dist/utils/promptForValue.js.map +1 -1
- 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/resolveElementIncludes.d.ts +6 -0
- package/dist/utils/resolveElementIncludes.js +113 -0
- package/dist/utils/resolveElementIncludes.js.map +1 -0
- 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 +34 -0
- package/dist/utils/serviceFile.js +95 -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/writeShadowElement.d.ts +12 -10
- package/dist/utils/writeShadowElement.js +98 -58
- 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/dist/utils/resolveElementInclude.d.ts +0 -3
- package/dist/utils/resolveElementInclude.js +0 -27
- package/dist/utils/resolveElementInclude.js.map +0 -1
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.
|
|
@@ -62,17 +63,19 @@ commands never silently fall back to the current folder in that case.
|
|
|
62
63
|
### Integration Management
|
|
63
64
|
|
|
64
65
|
- `great integrations` or `great integrations list`: Display list of
|
|
65
|
-
integrations. Supports `-a` to filter by account,
|
|
66
|
-
integrations ignoring the default account.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
integrations, with their type and account. Supports `-a` to filter by account,
|
|
67
|
+
or `--all` to list all integrations ignoring the default account. Use
|
|
68
|
+
`-t <type>` to only list integrations of a given type (`integration`,
|
|
69
|
+
`library`, or `template`).
|
|
70
|
+
- `great integrations create <name>`: Create a new integration in Integreat.
|
|
71
|
+
Requires `-a`. Returns integration ID to add to local `integration.json` for
|
|
72
|
+
linking with workspace.
|
|
70
73
|
|
|
71
74
|
### Local Workspace
|
|
72
75
|
|
|
73
76
|
- `great init [name]`: Initialize a new integration workspace locally. Creates
|
|
74
|
-
`integration.json` and folder structure without creating anything
|
|
75
|
-
|
|
77
|
+
`integration.json` and folder structure without creating anything in
|
|
78
|
+
Integreat. If name is omitted, uses the current directory name.
|
|
76
79
|
- `great clone <integration>`: Clone an integration to a new folder.
|
|
77
80
|
`<integration>` can be an integration id or key; supports `-a`. Creates a new
|
|
78
81
|
directory with the integration key (or id) and downloads all integration
|
|
@@ -81,32 +84,49 @@ commands never silently fall back to the current folder in that case.
|
|
|
81
84
|
run from a folder with an `integration.json` file. Writes the integration
|
|
82
85
|
config to `integration.json` and each element to its file under the matching
|
|
83
86
|
folder, and updates `.great.json` with the remote links. Element files that no
|
|
84
|
-
longer exist
|
|
87
|
+
longer exist in Integreat are deleted, while local-only files are left alone.
|
|
85
88
|
Will check for conflicts and abort.
|
|
86
89
|
- `great push`: Push local changes to Integreat. Must be run from a folder with
|
|
87
90
|
an `integration.json` file; supports `-a` when creating a new integration, to
|
|
88
91
|
create it in the right account. Will check for conflicts and abort.
|
|
89
92
|
- `great import <template>`: Import a template, creating a local **shadow file**
|
|
90
|
-
for each of its elements.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
for each of its elements. `<template>` can be a template id or key; supports
|
|
94
|
+
`-a`. A shadow file is an ordinary element file carrying a `$shadow: true`
|
|
95
|
+
marker; it does not own its content (that lives in the source element) — the
|
|
96
|
+
link to the source and the template import are recorded in `.great.json`.
|
|
97
|
+
Several templates may import the same element; re-importing updates the
|
|
98
|
+
existing shadow. Editing a shadow's content locally and pushing detaches it
|
|
99
|
+
from its source (push asks first). When templates share a service with
|
|
100
|
+
different endpoint lists, the lists are merged into a local endpoint list that
|
|
101
|
+
remembers every template it came from. This fails only when the lists order
|
|
102
|
+
their endpoints differently.Must be run from a folder with an
|
|
103
|
+
`integration.json` file (no push required first).
|
|
97
104
|
- `great include <element>`: Include a single element from another integration
|
|
98
|
-
as a shadow file
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
105
|
+
as a shadow file. Use `-p, --pinned-at <timestamp>` to pin the shadow to the
|
|
106
|
+
source as it stood at that ISO timestamp; omit it to follow the source's
|
|
107
|
+
latest content. Including a service with an endpoint list, you're asked which
|
|
108
|
+
endpoints to include with it as shadow elements. Leaving any out makes the
|
|
109
|
+
endpoint list a local element with only the selected endpoints, detached from
|
|
110
|
+
its source. Including an element that already exists replaces it with a
|
|
111
|
+
shadow. You're asked first when local content would be overwritten. Must be
|
|
112
|
+
run from a folder with an `integration.json` file.
|
|
102
113
|
- `great rename <target> <new-key>`: Rename an element or the account key,
|
|
103
114
|
keeping the link to the remote element intact. `<target>` is
|
|
104
115
|
`"<folder>/<key>"` for an element (e.g. `schemas/entry`), or the literal
|
|
105
116
|
`account`. Use this instead of renaming an element file by hand — a plain
|
|
106
117
|
rename is treated as deleting the old element and creating a new one.
|
|
107
|
-
Already-pushed targets are renamed
|
|
108
|
-
|
|
118
|
+
Already-pushed targets are renamed in Integreat too (requires login). Renaming
|
|
119
|
+
a service also renames its endpoint list, and renaming an endpoint updates
|
|
120
|
+
every service listing it. An endpoint list can't be renamed on its own. (To
|
|
121
|
+
rename the integration itself, rename its folder — the folder name is the
|
|
109
122
|
integration key.)
|
|
123
|
+
- `great remove <target>`: Remove an element file and its link in `.great.json`.
|
|
124
|
+
`<target>` is `"<folder>/<key>"` (e.g. `schemas/entry`). Removing an endpoint
|
|
125
|
+
also drops it from every service listing it. Nothing is changed in Integreat
|
|
126
|
+
right away: the next `great push` deletes the removed elements there. Use this
|
|
127
|
+
instead of deleting an element file by hand, which leaves a stale link behind
|
|
128
|
+
for an element that hasn't been pushed. Must be run from a folder with an
|
|
129
|
+
`integration.json` file.
|
|
110
130
|
|
|
111
131
|
### Deployment & Runtime
|
|
112
132
|
|
|
@@ -135,7 +155,10 @@ commands never silently fall back to the current folder in that case.
|
|
|
135
155
|
`<element>` can be either an element ID or key (a key needs integration
|
|
136
156
|
context). Supports `-i` and `-a`. The value will be automatically cast to the
|
|
137
157
|
appropriate type (string, number, boolean, date, or secret) based on the
|
|
138
|
-
element's type definition.
|
|
158
|
+
element's type definition. If the value starts with a dash (e.g. a PEM key
|
|
159
|
+
like `-----BEGIN PRIVATE KEY-----`), put a bare `--` before it so it isn't
|
|
160
|
+
parsed as an option: `great values set <element> -- '-----BEGIN ...'`. Use
|
|
161
|
+
`$'...'` quoting if you need `\n` sequences turned into real newlines.
|
|
139
162
|
- `great values unset <element>`: Clear the value of a value element, so it may
|
|
140
163
|
fall back to an inherited value from a source element when present. The
|
|
141
164
|
`<element>` can be either an element ID or key (a key needs integration
|
|
@@ -145,11 +168,11 @@ commands never silently fall back to the current folder in that case.
|
|
|
145
168
|
|
|
146
169
|
- `great env list`: List configured environments. The built-in `prod`
|
|
147
170
|
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
|
-
|
|
171
|
+
- `great env set <name> --api-url <url> --app-url <url>`: Add or update a named
|
|
172
|
+
environment. The name `prod` is reserved.
|
|
173
|
+
- `great env use <name>`: Switch the active environment. Use `prod` to reset to
|
|
174
|
+
the default. When a non-prod environment is active, commands that contact the
|
|
175
|
+
API print a warning.
|
|
153
176
|
- `great env remove <name>`: Remove a named environment.
|
|
154
177
|
|
|
155
178
|
### Utilities
|
|
@@ -158,12 +181,19 @@ commands never silently fall back to the current folder in that case.
|
|
|
158
181
|
Specify the path to a legacy JSON file as the first argument.
|
|
159
182
|
- `great implode [folder]`: Combine integration file structure into a single
|
|
160
183
|
legacy JSON file. Specify the path to an integration folder as the first
|
|
161
|
-
argument (defaults to current directory).
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
184
|
+
argument (defaults to current directory). Endpoint keys on services are
|
|
185
|
+
resolved back to inline endpoint definitions. Note: value elements will have
|
|
186
|
+
empty values in the output.
|
|
187
|
+
- `great migrate`: Migrate an existing workspace to the newest layout. Run it
|
|
188
|
+
from the integration folder; it is safe to re-run. It does two things:
|
|
189
|
+
- Moves sync bookkeeping stored inline as `__id`/`__key`/`__timestamp` props
|
|
190
|
+
(the old layout) to a `.great.json` file (see Workspace files below).
|
|
191
|
+
- Extracts inline endpoint definitions on services to `endpoints/` files,
|
|
192
|
+
leaving the endpoint keys on the service (see Services and endpoints below).
|
|
193
|
+
Each key is the endpoint's `id`, or `endpoint<N>` by position, and is
|
|
194
|
+
prefixed with the service key and a dash, unless `--no-prefix` is given.
|
|
195
|
+
Keys are kept within 50 chars and made unique with a number suffix if
|
|
196
|
+
needed. Run `great push` afterwards to create the endpoints in Integreat.
|
|
167
197
|
- `great now`: Prints the current Unix timestamp.
|
|
168
198
|
|
|
169
199
|
## Workspace files
|
|
@@ -173,14 +203,15 @@ An integration folder contains:
|
|
|
173
203
|
- `integration.json` at the folder root. This holds the integration's own
|
|
174
204
|
configuration: its `name`, `description`, `status`, `type`, and `flags`. The
|
|
175
205
|
`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)
|
|
206
|
+
integration's key is the folder name, so renaming its folder to change the key
|
|
207
|
+
(not yet implemented).
|
|
208
|
+
- Per-type folders (`schemas/`, `services/`, `endpoints/`, `auths/`,
|
|
209
|
+
`mutations/`, `dictionaries/`, `jobs/`, `values/`, `flows/`, `retryRules/`)
|
|
210
|
+
with one JSON file per element. These hold only configuration. Keys come from
|
|
211
|
+
names, not stored fields: an element's key is its file name without the
|
|
212
|
+
extension (e.g. `schemas/entry.json` has key `entry`). Rename an element with
|
|
213
|
+
`great rename` (a plain file rename is treated as delete + recreate), and
|
|
214
|
+
remove one with `great remove`.
|
|
184
215
|
- `.great.json` at the folder root. This holds the sync bookkeeping that links
|
|
185
216
|
local files to their remote counterparts — the integration and element ids,
|
|
186
217
|
the owning account, the last-synced timestamps and content hashes. It is
|
|
@@ -189,6 +220,46 @@ An integration folder contains:
|
|
|
189
220
|
recreates the remote elements; this is the clean way to regenerate a folder
|
|
190
221
|
against a new environment.
|
|
191
222
|
|
|
223
|
+
### Services and endpoints
|
|
224
|
+
|
|
225
|
+
A service is one file in `services/`, and each of its endpoints is a file of its
|
|
226
|
+
own in `endpoints/`. The service refers to the endpoints it uses by key:
|
|
227
|
+
|
|
228
|
+
```jsonc
|
|
229
|
+
// services/crm.json
|
|
230
|
+
{
|
|
231
|
+
"name": "CRM",
|
|
232
|
+
"transporter": "http",
|
|
233
|
+
"endpoints": ["crm-getEntries", "crm-setEntry"],
|
|
234
|
+
}
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
```jsonc
|
|
238
|
+
// endpoints/crm-getEntries.json
|
|
239
|
+
{
|
|
240
|
+
"name": "Get entries",
|
|
241
|
+
"match": { "action": "GET", "type": "entry" },
|
|
242
|
+
"options": { "uri": "/entries" },
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
The order matters, as Integreat composes the endpoints in the order they are
|
|
247
|
+
listed. Endpoints have a folder of their own because several services may list
|
|
248
|
+
the same one, and their keys must be unique across the whole integration, so
|
|
249
|
+
prefixing them with the service key is a good convention.
|
|
250
|
+
|
|
251
|
+
In Integreat the service consists of three element types: the service, one
|
|
252
|
+
element per endpoint, and an **endpoint list** of ordered endpoint keys, tied to
|
|
253
|
+
its service by having the same key. The `endpoints` array is that list, so one
|
|
254
|
+
file gives you two elements in Integreat. The `$shadow` marker in this file says
|
|
255
|
+
which of the two elements are shadows: `true` for both, `"service"` or
|
|
256
|
+
`"endpoints"` for one of them.
|
|
257
|
+
|
|
258
|
+
Integreat still accepts an older "monolitic" endpoints format, where the
|
|
259
|
+
endpoints are included directly in the endpoints array. This can't be mixed, so
|
|
260
|
+
run `great migrate` to extract the inline endpoints to their own files before
|
|
261
|
+
adding more endpoints.
|
|
262
|
+
|
|
192
263
|
## Typical Workflow
|
|
193
264
|
|
|
194
265
|
For new integrations:
|
|
@@ -196,7 +267,7 @@ For new integrations:
|
|
|
196
267
|
1. **Initialize local workspace**: `great init "My Integration"`
|
|
197
268
|
2. **Create element files** (schemas, services, etc.) in their respective
|
|
198
269
|
folders
|
|
199
|
-
3. **Push local files to
|
|
270
|
+
3. **Push local files to Integreat**: `great push`
|
|
200
271
|
4. **Deploy**: `great deploy`
|
|
201
272
|
|
|
202
273
|
For existing integrations:
|
|
@@ -209,13 +280,14 @@ For existing integrations:
|
|
|
209
280
|
Setting values:
|
|
210
281
|
|
|
211
282
|
- **From integration directory**: `great value set apiKey "my-secret-value"`
|
|
212
|
-
- **With integration flag**:
|
|
283
|
+
- **With integration flag**:
|
|
284
|
+
`great value set apiKey "my-secret" -i my-integration`
|
|
213
285
|
- **By element ID**: `great value set val-123 "my-value"`
|
|
214
286
|
|
|
215
287
|
## Development and testing
|
|
216
288
|
|
|
217
|
-
To run against a non-prod setup (QA, local, etc.), configure a named
|
|
218
|
-
|
|
289
|
+
To run against a non-prod setup (QA, local, etc.), configure a named environment
|
|
290
|
+
once and switch to it:
|
|
219
291
|
|
|
220
292
|
```bash
|
|
221
293
|
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,KAA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AQ,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAA;QAClD,OAAM;IACR,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,0BAA0B,CAClD,aAAa,EACb,QAAQ,CAAC,EAAE,EACX,GAAG,CACJ,CAAA;IACD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAM;IACR,CAAC;IAGD,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,IAAI,WAAW,CAAC,EAAE,CAAA;IAC9C,eAAe,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;AAChE,CAAC,CAAA;AAEH,eAAe,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,OAA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AC,CAAA;AAEH,eAAe,CAAC,OAAgB,EAAE,QAAiB,EAAE,EAAE,CACrD,OAAO;KACJ,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,4CAA4C,CAAC;KACzD,QAAQ,CAAC,eAAe,EAAE,uBAAuB,CAAC;KAClD,MAAM,CACL,oBAAoB,EACpB,8DAA8D,CAC/D;KACA,MAAM,CAAC,mBAAmB,EAAE,cAAc,CAAC;KAC3C,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA"}
|
package/dist/explode/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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,kBAA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ement' | '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;
|
|
@@ -108,7 +108,7 @@ export type CreateIntegrationMutation = {
|
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
110
|
export type IntegrationsQueryVariables = Exact<{
|
|
111
|
-
|
|
111
|
+
type?: Types.IntegrationType | null | undefined;
|
|
112
112
|
}>;
|
|
113
113
|
export type IntegrationsQuery = {
|
|
114
114
|
integrations: {
|
|
@@ -117,21 +117,28 @@ export type IntegrationsQuery = {
|
|
|
117
117
|
id: string;
|
|
118
118
|
name: string;
|
|
119
119
|
key: string;
|
|
120
|
+
type: Types.IntegrationType;
|
|
121
|
+
account: {
|
|
122
|
+
key: string;
|
|
123
|
+
};
|
|
120
124
|
}>;
|
|
121
125
|
};
|
|
122
126
|
};
|
|
123
127
|
export type IntegrationsForAccountQueryVariables = Exact<{
|
|
124
128
|
accountId: string | number;
|
|
129
|
+
type?: Types.IntegrationType | null | undefined;
|
|
125
130
|
}>;
|
|
126
131
|
export type IntegrationsForAccountQuery = {
|
|
127
132
|
account: {
|
|
128
133
|
name: string;
|
|
134
|
+
key: string;
|
|
129
135
|
integrations: {
|
|
130
136
|
totalCount: number;
|
|
131
137
|
nodes: Array<{
|
|
132
138
|
id: string;
|
|
133
139
|
name: string;
|
|
134
140
|
key: string;
|
|
141
|
+
type: Types.IntegrationType;
|
|
135
142
|
}>;
|
|
136
143
|
};
|
|
137
144
|
} | null;
|
|
@@ -163,11 +170,12 @@ export type IntegrationForPushQuery = {
|
|
|
163
170
|
content: {
|
|
164
171
|
checksum: string | null;
|
|
165
172
|
createdAt: string;
|
|
173
|
+
sourceId: string | null;
|
|
166
174
|
sourceTimestamp: string | null;
|
|
167
175
|
provenance: Array<string>;
|
|
168
176
|
} | null;
|
|
169
177
|
} & {
|
|
170
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
178
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
171
179
|
})>;
|
|
172
180
|
};
|
|
173
181
|
} | null;
|
|
@@ -245,6 +253,7 @@ export type UpdateElementMutation = {
|
|
|
245
253
|
export type SetElementContentMutationVariables = Exact<{
|
|
246
254
|
id: string | number;
|
|
247
255
|
content?: Record<string, unknown> | null | undefined;
|
|
256
|
+
provenance?: Array<string | number> | string | number | null | undefined;
|
|
248
257
|
}>;
|
|
249
258
|
export type SetElementContentMutation = {
|
|
250
259
|
setElementContent: {
|
|
@@ -303,7 +312,7 @@ export type IntegrationElementsQuery = {
|
|
|
303
312
|
name: string;
|
|
304
313
|
description: string | null;
|
|
305
314
|
} & {
|
|
306
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
315
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
307
316
|
}) | ({
|
|
308
317
|
sort: number | null;
|
|
309
318
|
id: string;
|
|
@@ -417,7 +426,7 @@ export type IntegrationDefinitionQuery = {
|
|
|
417
426
|
provenance: Array<string>;
|
|
418
427
|
} | null;
|
|
419
428
|
} & {
|
|
420
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
429
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service' | 'Value';
|
|
421
430
|
})>;
|
|
422
431
|
};
|
|
423
432
|
} | null;
|
|
@@ -464,7 +473,7 @@ export type ElementByIdQuery = {
|
|
|
464
473
|
data: Record<string, unknown> | null;
|
|
465
474
|
} | null;
|
|
466
475
|
} & {
|
|
467
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
476
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
468
477
|
}) | ({
|
|
469
478
|
value: unknown;
|
|
470
479
|
id: string;
|
|
@@ -489,7 +498,7 @@ export type ElementByKeyQuery = {
|
|
|
489
498
|
data: Record<string, unknown> | null;
|
|
490
499
|
} | null;
|
|
491
500
|
} & {
|
|
492
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
501
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
493
502
|
}) | ({
|
|
494
503
|
value: unknown;
|
|
495
504
|
id: string;
|
|
@@ -511,6 +520,9 @@ export type ResolveElementIncludeQuery = {
|
|
|
511
520
|
name: string;
|
|
512
521
|
description: string | null;
|
|
513
522
|
type: Types.ElementType;
|
|
523
|
+
integration: {
|
|
524
|
+
id: string;
|
|
525
|
+
} | null;
|
|
514
526
|
content: {
|
|
515
527
|
sourceId: string | null;
|
|
516
528
|
sourceTimestamp: string | null;
|
|
@@ -519,6 +531,16 @@ export type ResolveElementIncludeQuery = {
|
|
|
519
531
|
} | null;
|
|
520
532
|
};
|
|
521
533
|
};
|
|
534
|
+
export type ElementIdByKeyQueryVariables = Exact<{
|
|
535
|
+
integrationId: string | number;
|
|
536
|
+
key: string | number;
|
|
537
|
+
type: Types.ElementType;
|
|
538
|
+
}>;
|
|
539
|
+
export type ElementIdByKeyQuery = {
|
|
540
|
+
elementByKey: {
|
|
541
|
+
id: string;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
522
544
|
export type IntegrationQueryVariables = Exact<{
|
|
523
545
|
id: string | number;
|
|
524
546
|
}>;
|
|
@@ -583,7 +605,7 @@ export type ValuesListQuery = {
|
|
|
583
605
|
name: string;
|
|
584
606
|
latest: {
|
|
585
607
|
elements: Array<{
|
|
586
|
-
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
608
|
+
__typename: 'Auth' | 'ConfigElement' | 'Dictionary' | 'Endpoint' | 'EndpointList' | 'Flow' | 'Job' | 'RetryRule' | 'Schema' | 'SchemaMutation' | 'Service';
|
|
587
609
|
} | ({
|
|
588
610
|
id: string;
|
|
589
611
|
key: string;
|