@madewithremy/admin 0.1.33 → 0.1.34
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/dist/index.d.ts +16 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4100,8 +4100,8 @@ declare namespace dataSourceMappers {
|
|
|
4100
4100
|
* Response types for the db command group.
|
|
4101
4101
|
*
|
|
4102
4102
|
* Sources in youai-api:
|
|
4103
|
-
* POST /db/query → src/http/routes/
|
|
4104
|
-
*
|
|
4103
|
+
* POST /db/query → apps/api/src/roles/http/routes/Apps/manage/dbQuery.ts
|
|
4104
|
+
* AppDatabasesDao.executeSqlBatch returns
|
|
4105
4105
|
* Array<{ rows: any[]; changes: number }>
|
|
4106
4106
|
*/
|
|
4107
4107
|
/**
|
|
@@ -4116,6 +4116,16 @@ interface DbQueryResult {
|
|
|
4116
4116
|
/** Rows modified by a DML statement; 0 for SELECT. */
|
|
4117
4117
|
changes: number;
|
|
4118
4118
|
}>;
|
|
4119
|
+
/**
|
|
4120
|
+
* Display info for the people the rows reference (user-typed columns hold
|
|
4121
|
+
* `@@user@@<id>`), keyed by user id. Only people the workspace may see.
|
|
4122
|
+
*/
|
|
4123
|
+
resolvedUsers: Record<string, {
|
|
4124
|
+
id: string;
|
|
4125
|
+
username: string;
|
|
4126
|
+
displayName: string | null;
|
|
4127
|
+
profilePictureUrl: string | null;
|
|
4128
|
+
}>;
|
|
4119
4129
|
}
|
|
4120
4130
|
|
|
4121
4131
|
/**
|
|
@@ -4134,16 +4144,15 @@ interface DbQueryResult {
|
|
|
4134
4144
|
* accepted. The `results` array always has exactly one element for a single
|
|
4135
4145
|
* statement; `changes` is 0 for SELECT.
|
|
4136
4146
|
*
|
|
4137
|
-
*
|
|
4138
|
-
*
|
|
4139
|
-
*
|
|
4147
|
+
* A statement the database refuses (a syntax error, a constraint, a result
|
|
4148
|
+
* too large) throws with `errorString: 'sql_error'`, and the body's
|
|
4149
|
+
* `errorMessage` is the database's own message.
|
|
4140
4150
|
*
|
|
4141
4151
|
* @param sql The SQL statement to execute.
|
|
4142
4152
|
* @throws AdminApiError `no_live_release` (404) — the app has not been
|
|
4143
4153
|
* deployed; `no_database` (404) — the live release has no database;
|
|
4144
4154
|
* `invalid_request` (400) — `queries[]` missing or malformed;
|
|
4145
|
-
* `
|
|
4146
|
-
* `unique_constraint_violated` (400) — a UNIQUE constraint was violated.
|
|
4155
|
+
* `sql_error` (400) — the database refused the statement.
|
|
4147
4156
|
* @example
|
|
4148
4157
|
* const { results } = await admin.db.query('SELECT * FROM users LIMIT 10');
|
|
4149
4158
|
*/
|