@madewithremy/admin 0.1.47 → 0.1.48
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/prod.js +64 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ What changed in `@madewithremy/admin`, newest first, each version under its own
|
|
|
4
4
|
|
|
5
5
|
Versions before 0.1.44 aren't recorded here.
|
|
6
6
|
|
|
7
|
+
## 0.1.48
|
|
8
|
+
|
|
9
|
+
### New
|
|
10
|
+
|
|
11
|
+
- `remy-admin feedback draft <message>` (`admin.feedback.draft`): opens Send Feedback in the user's editor with the message filled in, for them to review and send. Nothing is sent until they do; a sent report carries the conversation, the sandbox's logs and the editor's state. A deployment that takes no feedback refuses it with `feedback_not_configured`.
|
|
12
|
+
|
|
7
13
|
## 0.1.47
|
|
8
14
|
|
|
9
15
|
### New
|
package/dist/index.d.ts
CHANGED
|
@@ -1130,6 +1130,47 @@ declare namespace cron {
|
|
|
1130
1130
|
export { type cron_CronListParams as CronListParams, list$a as list, run$1 as run };
|
|
1131
1131
|
}
|
|
1132
1132
|
|
|
1133
|
+
/**
|
|
1134
|
+
* Response shapes for the feedback command group — transcribed from the api.
|
|
1135
|
+
*
|
|
1136
|
+
* Sources (apps/api/src/):
|
|
1137
|
+
* roles/http/routes/Apps/develop/feedback.ts
|
|
1138
|
+
*/
|
|
1139
|
+
/** POST /_internal/v2/apps/:appId/feedback-draft */
|
|
1140
|
+
interface FeedbackDraftResult {
|
|
1141
|
+
/** The draft went to the person's open editors on this app. */
|
|
1142
|
+
status: 'sent_to_editor';
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Feedback operations: a report about Remy itself, to the Remy team.
|
|
1147
|
+
*
|
|
1148
|
+
* Ops are pure: (ctx, params) → typed result, throwing AdminApiError /
|
|
1149
|
+
* AdminTimeoutError. No printing, no process coupling — the CLI skin in
|
|
1150
|
+
* commands/feedback.ts and the importable client both call these.
|
|
1151
|
+
*/
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Open Send Feedback in the person's editor with this message filled in.
|
|
1155
|
+
*
|
|
1156
|
+
* Nothing is sent from here. The person reviews the draft, edits it if they
|
|
1157
|
+
* like, and sends it; the report then carries Remy's conversation, the
|
|
1158
|
+
* sandbox's logs and the editor's state. Only the person's own editors on this
|
|
1159
|
+
* app open it, and only ones open at the time.
|
|
1160
|
+
*
|
|
1161
|
+
* @throws AdminApiError `feedback_not_configured` (404) — this deployment
|
|
1162
|
+
* doesn't take feedback; `missing_message` (400); `message_too_long` (400) —
|
|
1163
|
+
* over 20,000 characters.
|
|
1164
|
+
* @example
|
|
1165
|
+
* await admin.feedback.draft('The preview stopped reloading after every save.');
|
|
1166
|
+
*/
|
|
1167
|
+
declare function draft(ctx: AdminContext, message: string): Promise<FeedbackDraftResult>;
|
|
1168
|
+
|
|
1169
|
+
declare const feedback_draft: typeof draft;
|
|
1170
|
+
declare namespace feedback {
|
|
1171
|
+
export { feedback_draft as draft };
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1133
1174
|
/**
|
|
1134
1175
|
* Response types for the data command group.
|
|
1135
1176
|
*
|
|
@@ -8866,6 +8907,7 @@ declare function buildClient(ctx: AdminContext): {
|
|
|
8866
8907
|
events: BoundOps<typeof appEvents>;
|
|
8867
8908
|
crashes: BoundOps<typeof crashes>;
|
|
8868
8909
|
cron: BoundOps<typeof cron>;
|
|
8910
|
+
feedback: BoundOps<typeof feedback>;
|
|
8869
8911
|
data: BoundOps<typeof data>;
|
|
8870
8912
|
dataSources: BoundOps<typeof dataSources>;
|
|
8871
8913
|
dataSourceJobs: BoundOps<typeof dataSourceJobs>;
|
package/dist/index.js
CHANGED
|
@@ -361,6 +361,20 @@ function run(ctx, route) {
|
|
|
361
361
|
);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
+
// src/ops/feedback.ts
|
|
365
|
+
var feedback_exports = {};
|
|
366
|
+
__export(feedback_exports, {
|
|
367
|
+
draft: () => draft
|
|
368
|
+
});
|
|
369
|
+
function draft(ctx, message) {
|
|
370
|
+
return call(
|
|
371
|
+
ctx,
|
|
372
|
+
"POST",
|
|
373
|
+
`/_internal/v2/apps/${ctx.appId}/feedback-draft`,
|
|
374
|
+
{ message }
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
|
|
364
378
|
// src/ops/data.ts
|
|
365
379
|
var data_exports = {};
|
|
366
380
|
__export(data_exports, {
|
|
@@ -3181,6 +3195,7 @@ function buildClient(ctx) {
|
|
|
3181
3195
|
events: bindOps(events_exports, ctx),
|
|
3182
3196
|
crashes: bindOps(crashes_exports, ctx),
|
|
3183
3197
|
cron: bindOps(cron_exports, ctx),
|
|
3198
|
+
feedback: bindOps(feedback_exports, ctx),
|
|
3184
3199
|
data: bindOps(data_exports, ctx),
|
|
3185
3200
|
dataSources: bindOps(dataSources_exports, ctx),
|
|
3186
3201
|
dataSourceJobs: bindOps(dataSourceJobs_exports, ctx),
|