@stack-spot/portal-network 0.27.2 → 0.28.0-beta
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 +8 -0
- package/dist/api/apiManagement.d.ts +289 -0
- package/dist/api/apiManagement.d.ts.map +1 -0
- package/dist/api/apiManagement.js +143 -0
- package/dist/api/apiManagement.js.map +1 -0
- package/dist/api/workspace.d.ts +320 -216
- package/dist/api/workspace.d.ts.map +1 -1
- package/dist/api/workspace.js +255 -184
- package/dist/api/workspace.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +320 -218
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +68 -20
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/apis.json +8 -8
- package/dist/client/content.d.ts +52 -0
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +64 -1
- package/dist/client/content.js.map +1 -1
- package/dist/client/notification.d.ts +1 -1
- package/dist/client/types.d.ts +29 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workspace-manager.d.ts +121 -0
- package/dist/client/workspace-manager.d.ts.map +1 -0
- package/dist/client/workspace-manager.js +204 -0
- package/dist/client/workspace-manager.js.map +1 -0
- package/dist/client/workspace.d.ts +105 -22
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +156 -74
- package/dist/client/workspace.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/network/ManualOperation.js +1 -1
- package/package.json +1 -1
- package/src/api/apiManagement.ts +498 -0
- package/src/api/workspace.ts +497 -288
- package/src/api/workspaceManager.ts +402 -234
- package/src/apis.json +8 -8
- package/src/client/content.ts +42 -2
- package/src/client/types.ts +38 -0
- package/src/client/workspace-manager.ts +171 -0
- package/src/client/workspace.ts +180 -123
- package/src/index.ts +1 -1
- package/src/network/ManualOperation.ts +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime';
|
|
2
2
|
import { StackspotAPIError } from '../error/StackspotAPIError.js';
|
|
3
3
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
4
|
+
import { OperationObject } from '../network/types.js';
|
|
4
5
|
declare class WorkspaceClient extends ReactQueryNetworkClient {
|
|
5
6
|
constructor();
|
|
6
7
|
protected buildStackSpotError(error: HttpError): StackspotAPIError;
|
|
@@ -314,40 +315,78 @@ declare class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
314
315
|
workflowId: string;
|
|
315
316
|
}, unknown>;
|
|
316
317
|
/**
|
|
317
|
-
*
|
|
318
|
+
* Find all account variables
|
|
318
319
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
accountVariables: import("../network/types.js").QueryObject<{
|
|
321
|
+
accountId?: string | undefined;
|
|
322
|
+
name?: string | undefined;
|
|
323
|
+
page?: number | undefined;
|
|
324
|
+
size?: number | undefined;
|
|
325
|
+
sortBy?: "NAME" | "VALUE" | "CREATED_AT" | undefined;
|
|
326
|
+
sortDir?: "ASC" | "DESC" | undefined;
|
|
327
|
+
}, import("../api/workspace.js").PaginatedAccountVariableResponse>;
|
|
323
328
|
/**
|
|
324
|
-
*
|
|
329
|
+
* Get an account variable by name
|
|
325
330
|
*/
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}, import("../api/workspace.js").
|
|
331
|
+
getAccountVariable: import("../network/types.js").QueryObject<{
|
|
332
|
+
accountId?: string | undefined;
|
|
333
|
+
name: string;
|
|
334
|
+
}, import("../api/workspace.js").AccountVariableResponse>;
|
|
330
335
|
/**
|
|
331
|
-
*
|
|
336
|
+
* Get account variable usage
|
|
332
337
|
*/
|
|
333
|
-
|
|
334
|
-
|
|
338
|
+
accountVariableUsage: import("../network/types.js").QueryObject<{
|
|
339
|
+
accountId?: string | undefined;
|
|
340
|
+
name: string;
|
|
341
|
+
}, import("../api/workspace.js").AccountVariableUsageResponse>;
|
|
342
|
+
/**
|
|
343
|
+
* Create account variable
|
|
344
|
+
*/
|
|
345
|
+
createAccountVariable: import("../network/types.js").MutationObject<{
|
|
346
|
+
createAccountVariableRequest: import("../api/workspace.js").CreateAccountVariableRequest;
|
|
347
|
+
}, unknown>;
|
|
348
|
+
/**
|
|
349
|
+
* Update account variable
|
|
350
|
+
*/
|
|
351
|
+
updateAccountVariable: import("../network/types.js").MutationObject<{
|
|
352
|
+
name: string;
|
|
353
|
+
updateAccountVariableRequest: import("../api/workspace.js").UpdateAccountVariableRequest;
|
|
354
|
+
}, unknown>;
|
|
355
|
+
/**
|
|
356
|
+
* Delete account variable
|
|
357
|
+
*/
|
|
358
|
+
deleteAccountVariable: import("../network/types.js").MutationObject<{
|
|
335
359
|
name: string;
|
|
336
|
-
},
|
|
360
|
+
}, unknown>;
|
|
361
|
+
/**
|
|
362
|
+
* Find all workspace variables
|
|
363
|
+
*/
|
|
364
|
+
workspaceVariables: import("../network/types.js").QueryObject<{
|
|
365
|
+
workspaceId: string;
|
|
366
|
+
accountId?: string | undefined;
|
|
367
|
+
page?: number | undefined;
|
|
368
|
+
size?: number | undefined;
|
|
369
|
+
sortBy?: "NAME" | "VALUE" | "CREATED_AT" | undefined;
|
|
370
|
+
sortDir?: "ASC" | "DESC" | undefined;
|
|
371
|
+
mandate?: boolean | undefined;
|
|
372
|
+
name?: string | undefined;
|
|
373
|
+
showEmptyValues?: boolean | undefined;
|
|
374
|
+
}, import("../api/workspace.js").PaginatedWorkspaceVariableResponse>;
|
|
337
375
|
/**
|
|
338
|
-
*
|
|
376
|
+
* Get a workspace variable by name
|
|
339
377
|
*/
|
|
340
|
-
|
|
378
|
+
getWorkspaceVariable: import("../network/types.js").QueryObject<{
|
|
379
|
+
accountId?: string | undefined;
|
|
341
380
|
workspaceId: string;
|
|
342
381
|
name: string;
|
|
343
|
-
|
|
344
|
-
}, import("../api/workspace.js").WorkspaceVariableReadResponse>;
|
|
382
|
+
}, import("../api/workspace.js").WorkspaceVariableResponse>;
|
|
345
383
|
/**
|
|
346
|
-
*
|
|
384
|
+
* Upsert workspace variable based on existing account variable
|
|
347
385
|
*/
|
|
348
|
-
|
|
386
|
+
updateWorkspaceVariable: import("../network/types.js").MutationObject<{
|
|
349
387
|
workspaceId: string;
|
|
350
388
|
name: string;
|
|
389
|
+
upsertWorkspaceVariableRequest: import("../api/workspace.js").UpsertWorkspaceVariableRequest;
|
|
351
390
|
}, unknown>;
|
|
352
391
|
/**
|
|
353
392
|
* Gets shared infra links
|
|
@@ -445,13 +484,57 @@ declare class WorkspaceClient extends ReactQueryNetworkClient {
|
|
|
445
484
|
updateSharedInfraLinkRequest: import("../api/workspace.js").UpdateSharedInfraLinkRequest;
|
|
446
485
|
}, import("../api/workspace.js").IdResponse>;
|
|
447
486
|
/**
|
|
448
|
-
|
|
449
|
-
|
|
487
|
+
* Updates infra links visibility
|
|
488
|
+
*/
|
|
450
489
|
updateLinkVisibilityInInfra: import("../network/types.js").MutationObject<{
|
|
451
490
|
workspaceId: string;
|
|
452
491
|
sharedInfraId: string;
|
|
453
492
|
body: import("../api/workspace.js").UpdateSharedInfraLinkVisibilityRequest[];
|
|
454
493
|
}, unknown>;
|
|
494
|
+
/**
|
|
495
|
+
* Gets stacks in a workspace. This fn is only used for permission purposes.
|
|
496
|
+
*/
|
|
497
|
+
stacks: OperationObject<{
|
|
498
|
+
workspaceId: string;
|
|
499
|
+
}>;
|
|
500
|
+
/**
|
|
501
|
+
* List workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
502
|
+
*/
|
|
503
|
+
listConsolidatedWorkspaceContext: OperationObject<{
|
|
504
|
+
workspaceId: string;
|
|
505
|
+
stackVersionId: string;
|
|
506
|
+
$type: "action" | "plugin";
|
|
507
|
+
environmentId?: string | undefined;
|
|
508
|
+
externalId?: string | undefined;
|
|
509
|
+
}>;
|
|
510
|
+
/**
|
|
511
|
+
* List account context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
512
|
+
*/
|
|
513
|
+
listConsolidatedContext: OperationObject<{
|
|
514
|
+
stackVersionId: string;
|
|
515
|
+
$type: "action" | "plugin";
|
|
516
|
+
environmentId?: string | undefined;
|
|
517
|
+
externalId?: string | undefined;
|
|
518
|
+
}>;
|
|
519
|
+
/**
|
|
520
|
+
* Save workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
521
|
+
*/
|
|
522
|
+
saveContextInWorkspace: OperationObject<{
|
|
523
|
+
workspaceId: string;
|
|
524
|
+
stackVersionId: string;
|
|
525
|
+
externalId: string;
|
|
526
|
+
$type: "action" | "plugin";
|
|
527
|
+
addTypedContextRequest: import("../api/workspace.js").AddTypedContextRequest;
|
|
528
|
+
}>;
|
|
529
|
+
/**
|
|
530
|
+
* Save workspace context inputs for a plugin or action in a stack. This fn is only used for permission purposes.
|
|
531
|
+
*/
|
|
532
|
+
saveContextInAccount: OperationObject<{
|
|
533
|
+
stackVersionId: string;
|
|
534
|
+
externalId: string;
|
|
535
|
+
$type: "action" | "plugin";
|
|
536
|
+
addTypedContextRequest: import("../api/workspace.js").AddTypedContextRequest;
|
|
537
|
+
}>;
|
|
455
538
|
}
|
|
456
539
|
export declare const workspaceClient: WorkspaceClient;
|
|
457
540
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/client/workspace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/client/workspace.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AA4E7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;A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