@gravity-rail/cli 0.8.0 → 0.10.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 +13 -0
- package/dist/{account-verify-phone-TC73QIIE.js → account-verify-phone-XNXA7HNG.js} +4 -4
- package/dist/{chunk-H62EC2CF.js → chunk-GVUGFPCN.js} +25 -11
- package/dist/chunk-GVUGFPCN.js.map +1 -0
- package/dist/{chunk-7VZ4JLAJ.js → chunk-WZVMWN3S.js} +2 -1
- package/dist/{chunk-7VZ4JLAJ.js.map → chunk-WZVMWN3S.js.map} +1 -1
- package/dist/{chunk-L5YCPUAM.js → chunk-XJ2EBXJZ.js} +17 -16
- package/dist/chunk-XJ2EBXJZ.js.map +1 -0
- package/dist/{cli-client-context-9KRUt6O-.d.ts → cli-client-context-BbyBEGcg.d.ts} +1 -0
- package/dist/cli-utils.d.ts +7 -3
- package/dist/cli-utils.js +1 -1
- package/dist/{errors-VK4QO3QZ.js → errors-YHGVIDPO.js} +2 -2
- package/dist/gr.js +3647 -1146
- package/dist/gr.js.map +1 -1
- package/dist/lib.d.ts +14 -2
- package/dist/lib.js +2080 -284
- package/dist/lib.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-H62EC2CF.js.map +0 -1
- package/dist/chunk-L5YCPUAM.js.map +0 -1
- /package/dist/{account-verify-phone-TC73QIIE.js.map → account-verify-phone-XNXA7HNG.js.map} +0 -0
- /package/dist/{errors-VK4QO3QZ.js.map → errors-YHGVIDPO.js.map} +0 -0
package/dist/lib.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GravityRailClient, PhoneCall } from '@gravity-rail/sdk';
|
|
2
|
-
import { E as EnvironmentConfig, C as CredentialsManager } from './cli-client-context-
|
|
3
|
-
export { a as ConciergeAppContextPayload, b as buildCliConciergeAppContext } from './cli-client-context-
|
|
2
|
+
import { E as EnvironmentConfig, C as CredentialsManager } from './cli-client-context-BbyBEGcg.js';
|
|
3
|
+
export { a as ConciergeAppContextPayload, b as buildCliConciergeAppContext } from './cli-client-context-BbyBEGcg.js';
|
|
4
4
|
|
|
5
5
|
/** Metadata extracted from a paginated API response */
|
|
6
6
|
interface PaginationMeta {
|
|
@@ -319,6 +319,18 @@ interface CrudConfig<T = unknown> {
|
|
|
319
319
|
* Default: `false` (safe — never forwards pagination options unless opted in).
|
|
320
320
|
*/
|
|
321
321
|
paginationSupport?: 'full' | 'client-only' | false;
|
|
322
|
+
/**
|
|
323
|
+
* Optional resolver for the client object that string methods are dispatched
|
|
324
|
+
* against. Defaults to the context's plain `apiClient` (`GravityRailClient`).
|
|
325
|
+
*
|
|
326
|
+
* Domains whose CRUD methods live on an extended/rebound surface (e.g. the
|
|
327
|
+
* gr-cli admin client, where `adminApi(ctx)` lazily binds `*AsAdmin` methods
|
|
328
|
+
* onto the instance) must pass a resolver so the generic dispatcher targets
|
|
329
|
+
* the rebound client instead of the stale bare `apiClient` — otherwise the
|
|
330
|
+
* methods are undefined and dispatch fails with "API method not found".
|
|
331
|
+
* See issue #17508.
|
|
332
|
+
*/
|
|
333
|
+
resolveClient?: (ctx: AuthenticatedContext | CommandContext) => unknown;
|
|
322
334
|
}
|
|
323
335
|
/**
|
|
324
336
|
* @deprecated Use `simpleCrudCommands()` for new code — it provides compile-time
|