npm package diff

Package: @forge/cli

Versions: 12.2.0-next.5-experimental-255e232 - 12.2.0-next.16

File: package/out/containers/container-command.js

Index: package/out/containers/container-command.js
===================================================================
--- package/out/containers/container-command.js
+++ package/out/containers/container-command.js
@@ -1,14 +1,20 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.ContainerCommand = exports.UnexpectedAppContainerRegistryLoginError = void 0;
+exports.ContainerCommand = exports.UnexpectedAppContainerServicesError = exports.UnexpectedAppContainerRegistryLoginError = void 0;
 const cli_shared_1 = require("@forge/cli-shared");
 class UnexpectedAppContainerRegistryLoginError extends Error {
     constructor() {
         super('Unable to retrieve app container registry login details');
     }
 }
 exports.UnexpectedAppContainerRegistryLoginError = UnexpectedAppContainerRegistryLoginError;
+class UnexpectedAppContainerServicesError extends Error {
+    constructor() {
+        super('Unable to retrieve app container services');
+    }
+}
+exports.UnexpectedAppContainerServicesError = UnexpectedAppContainerServicesError;
 class ContainerCommand {
     client;
     getAppConfig;
     dockerService;
@@ -64,8 +70,46 @@
             appId
         });
         return appContainers ?? [];
     }
+    async getContainerServiceDetails(environmentKey, serviceNames) {
+        const { id: appId } = await this.getAppConfig();
+        const query = `
+      query forge_cli_appContainerServices($appId: ID!, $environmentKey: String!, $serviceNames: [String!]!) {
+        appContainerServices(appId: $appId, environmentKey: $environmentKey, serviceNames: $serviceNames) {
+          services {
+            key
+            runningCount
+            pendingCount
+            maxCount
+            minCount
+            serviceStatus
+            versionStatus
+            createdAt
+            updatedAt
+            containers {
+              key
+              instances {
+                id
+                createdAt
+                healthStatus
+                containerStatus
+                imageURI
+              }
+            }
+          }
+        }
+      }`;
+        const { appContainerServices } = await this.client.query(query, {
+            appId,
+            environmentKey,
+            serviceNames
+        });
+        if (!appContainerServices) {
+            throw new UnexpectedAppContainerServicesError();
+        }
+        return appContainerServices;
+    }
     async deleteContainer(key) {
         const { id: appId } = await this.getAppConfig();
         const mutation = `
       mutation forge_cli_deleteAppContainer($input: AppContainerInput!) {