@phpsandbox/sdk 0.2.1 → 0.2.2
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.
|
@@ -2,7 +2,7 @@ import type { Client } from '../index.js';
|
|
|
2
2
|
import { PublicationInstance } from './instance.js';
|
|
3
3
|
import { PublicationRun } from './run.js';
|
|
4
4
|
import { PublicationResources } from './resources.js';
|
|
5
|
-
import type { PlannedPublishInput, PublicationApplicationPlan, PublicationApplicationPlanInput, PublicationApplicationData, PublicationPlan, PublicationPlanInput, PublicationProviderName, PublicationReadiness, PublicationResourceCatalog } from './types.js';
|
|
5
|
+
import type { PlannedPublishInput, PublicationApplicationPlan, PublicationApplicationPlanInput, PublicationApplicationPublishInput, PublicationApplicationData, PublicationPlan, PublicationPlanInput, PublicationProviderName, PublicationReadiness, PublicationResourceCatalog } from './types.js';
|
|
6
6
|
export declare class NotebookPublication {
|
|
7
7
|
private readonly notebookId;
|
|
8
8
|
private readonly client;
|
|
@@ -16,7 +16,7 @@ export declare class NotebookPublication {
|
|
|
16
16
|
/** Review a multi-component publishing plan without creating resources or starting releases. */
|
|
17
17
|
prepareApplication(input: PublicationApplicationPlanInput): Promise<PublicationApplicationPlan>;
|
|
18
18
|
/** Publish every component in a reviewed application plan. */
|
|
19
|
-
publishApplication(input:
|
|
19
|
+
publishApplication(input: PublicationApplicationPublishInput): Promise<PublicationApplicationData>;
|
|
20
20
|
application(applicationId: string): Promise<PublicationApplicationData>;
|
|
21
21
|
/** Retry only failed components while leaving healthy components untouched. */
|
|
22
22
|
retryApplication(applicationId: string): Promise<PublicationApplicationData>;
|
|
@@ -232,13 +232,6 @@ export interface PublicationApplicationRouteInput {
|
|
|
232
232
|
hostname: string;
|
|
233
233
|
component: string;
|
|
234
234
|
}
|
|
235
|
-
export interface PublicationPlanAssumption {
|
|
236
|
-
id: string;
|
|
237
|
-
statement: string;
|
|
238
|
-
basis?: string;
|
|
239
|
-
confidence?: 'low' | 'medium' | 'high';
|
|
240
|
-
requiresConfirmation?: boolean;
|
|
241
|
-
}
|
|
242
235
|
export interface PublicationApplicationPlanInput {
|
|
243
236
|
schemaVersion: 1;
|
|
244
237
|
slug?: string;
|
|
@@ -250,32 +243,35 @@ export interface PublicationApplicationPlanInput {
|
|
|
250
243
|
components: PublicationApplicationComponentInput[];
|
|
251
244
|
resources?: PublicationApplicationResourceInput[];
|
|
252
245
|
routes?: PublicationApplicationRouteInput[];
|
|
253
|
-
assumptions?: PublicationPlanAssumption[];
|
|
254
246
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
247
|
+
/** A draft becomes executable only through its server-owned review reference. */
|
|
248
|
+
export interface PublicationApplicationPlan extends PublicationApplicationPlanInput {
|
|
249
|
+
review: {
|
|
250
|
+
id: string;
|
|
251
|
+
ready: boolean;
|
|
252
|
+
blockers: Array<{
|
|
253
|
+
code: string;
|
|
254
|
+
message: string;
|
|
255
|
+
}>;
|
|
256
|
+
action: 'create' | 'update' | 'retry';
|
|
257
|
+
publicationId: string | null;
|
|
258
|
+
destinations: Record<string, string | null>;
|
|
259
|
+
productionVariables: string[];
|
|
260
|
+
configuration: Array<{
|
|
261
|
+
name: string;
|
|
262
|
+
requirement: 'required' | 'optional' | 'platform';
|
|
263
|
+
source: string;
|
|
264
|
+
}>;
|
|
265
|
+
source: {
|
|
266
|
+
type: 'workspace' | 'git';
|
|
267
|
+
repository: string | null;
|
|
268
|
+
branch: string | null;
|
|
269
|
+
};
|
|
270
|
+
digest: string;
|
|
266
271
|
};
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
assumptions: PublicationPlanAssumption[];
|
|
271
|
-
blockers: Array<{
|
|
272
|
-
code: string;
|
|
273
|
-
message: string;
|
|
274
|
-
component?: string;
|
|
275
|
-
resource?: string;
|
|
276
|
-
}>;
|
|
277
|
-
ready: boolean;
|
|
278
|
-
input: PublicationApplicationPlanInput;
|
|
272
|
+
}
|
|
273
|
+
export interface PublicationApplicationPublishInput {
|
|
274
|
+
reviewId: string;
|
|
279
275
|
}
|
|
280
276
|
export interface PublicationApplicationComponentData {
|
|
281
277
|
componentId: string;
|