catalyst-relay 0.5.9 → 0.5.11
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.mts +66 -17
- package/dist/index.d.ts +66 -17
- package/dist/index.js +357 -140
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +357 -140
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -182,7 +182,7 @@ type ApiResponse<T> = SuccessResponse<T> | ErrorResponse;
|
|
|
182
182
|
/**
|
|
183
183
|
* Machine-readable error codes
|
|
184
184
|
*/
|
|
185
|
-
type ErrorCode = 'AUTH_FAILED' | 'SESSION_EXPIRED' | 'SESSION_NOT_FOUND' | 'CSRF_INVALID' | 'OBJECT_LOCKED' | 'OBJECT_NOT_FOUND' | 'TRANSPORT_REQUIRED' | 'ACTIVATION_FAILED' | 'CHECK_FAILED' | 'VALIDATION_ERROR' | 'NETWORK_ERROR' | 'UNKNOWN_ERROR';
|
|
185
|
+
type ErrorCode = 'AUTH_FAILED' | 'SESSION_EXPIRED' | 'SESSION_NOT_FOUND' | 'CSRF_INVALID' | 'OBJECT_LOCKED' | 'OBJECT_NOT_FOUND' | 'TRANSPORT_REQUIRED' | 'ACTIVATION_FAILED' | 'CHECK_FAILED' | 'VALIDATION_ERROR' | 'NETWORK_ERROR' | 'EXTERNAL_REFERENCES' | 'UNKNOWN_ERROR';
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Session management type definitions
|
|
@@ -308,6 +308,27 @@ interface ActivationMessage {
|
|
|
308
308
|
column?: number;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
+
/**
|
|
312
|
+
* Where-Used — Find object dependencies
|
|
313
|
+
*/
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Where-used dependency
|
|
317
|
+
*/
|
|
318
|
+
interface Dependency {
|
|
319
|
+
name: string;
|
|
320
|
+
extension: string;
|
|
321
|
+
package: string;
|
|
322
|
+
usageType: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
interface DeleteResult {
|
|
326
|
+
name: string;
|
|
327
|
+
extension: string;
|
|
328
|
+
status: 'success' | 'error';
|
|
329
|
+
message?: string;
|
|
330
|
+
}
|
|
331
|
+
|
|
311
332
|
interface CheckResult {
|
|
312
333
|
name: string;
|
|
313
334
|
extension: string;
|
|
@@ -459,6 +480,47 @@ interface DistinctResult {
|
|
|
459
480
|
}>;
|
|
460
481
|
}
|
|
461
482
|
|
|
483
|
+
/**
|
|
484
|
+
* Inactive Objects — Query inactive (unsaved) objects from SAP ADT
|
|
485
|
+
*
|
|
486
|
+
* Calls GET /sap/bc/adt/activation/inactiveobjects to retrieve objects
|
|
487
|
+
* and transports that have inactive versions pending activation.
|
|
488
|
+
*/
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Reference to an inactive object or transport
|
|
492
|
+
*/
|
|
493
|
+
interface InactiveRef {
|
|
494
|
+
uri: string;
|
|
495
|
+
type: string;
|
|
496
|
+
name: string;
|
|
497
|
+
description?: string;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* An inactive object entry (object with unsaved changes)
|
|
501
|
+
*/
|
|
502
|
+
interface InactiveObject {
|
|
503
|
+
user: string;
|
|
504
|
+
deleted: boolean;
|
|
505
|
+
ref: InactiveRef;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* An inactive transport entry (transport containing inactive objects)
|
|
509
|
+
*/
|
|
510
|
+
interface InactiveTransport {
|
|
511
|
+
user: string;
|
|
512
|
+
linked: boolean;
|
|
513
|
+
ref: InactiveRef;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* A single entry from the inactive objects response.
|
|
517
|
+
* Each entry has either an object, a transport, or both.
|
|
518
|
+
*/
|
|
519
|
+
interface InactiveEntry {
|
|
520
|
+
object?: InactiveObject;
|
|
521
|
+
transport?: InactiveTransport;
|
|
522
|
+
}
|
|
523
|
+
|
|
462
524
|
/**
|
|
463
525
|
* Search Objects — Quick search by name pattern
|
|
464
526
|
*/
|
|
@@ -487,20 +549,6 @@ interface SearchOptions {
|
|
|
487
549
|
includePackages?: boolean;
|
|
488
550
|
}
|
|
489
551
|
|
|
490
|
-
/**
|
|
491
|
-
* Where-Used — Find object dependencies
|
|
492
|
-
*/
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Where-used dependency
|
|
496
|
-
*/
|
|
497
|
-
interface Dependency {
|
|
498
|
-
name: string;
|
|
499
|
-
extension: string;
|
|
500
|
-
package: string;
|
|
501
|
-
usageType: string;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
552
|
/**
|
|
505
553
|
* Create Transport — Create a new transport request for a package
|
|
506
554
|
*/
|
|
@@ -608,12 +656,13 @@ interface ADTClient {
|
|
|
608
656
|
upsert(objects: ObjectContent[], packageName: string, transport?: string): AsyncResult<UpsertResult[]>;
|
|
609
657
|
activate(objects: ObjectRef[]): AsyncResult<ActivationResult[]>;
|
|
610
658
|
checkSyntax(objects: ObjectRef[]): AsyncResult<CheckResult[]>;
|
|
611
|
-
delete(objects: ObjectRef[], transport?: string): AsyncResult<
|
|
659
|
+
delete(objects: ObjectRef[], transport?: string): AsyncResult<DeleteResult[]>;
|
|
612
660
|
getPackages(options?: GetPackagesOptions): AsyncResult<Package[]>;
|
|
613
661
|
getTree(query: TreeQuery): AsyncResult<TreeResponse>;
|
|
614
662
|
getPackageStats(packageName: string): AsyncResult<PackageNode>;
|
|
615
663
|
getPackageStats(packageNames: string[]): AsyncResult<PackageNode[]>;
|
|
616
664
|
getTransports(packageName: string): AsyncResult<Transport[]>;
|
|
665
|
+
getInactiveObjects(): AsyncResult<InactiveEntry[]>;
|
|
617
666
|
previewData(query: PreviewSQL): AsyncResult<DataFrame>;
|
|
618
667
|
getDistinctValues(objectName: string, parameters: Parameter[], column: string, objectType?: 'table' | 'view'): AsyncResult<DistinctResult>;
|
|
619
668
|
countRows(objectName: string, objectType: 'table' | 'view', parameters?: Parameter[]): AsyncResult<number>;
|
|
@@ -649,4 +698,4 @@ declare function activateLogging(): void;
|
|
|
649
698
|
*/
|
|
650
699
|
declare function deactivateLogging(): void;
|
|
651
700
|
|
|
652
|
-
export { type ADTClient, type ActivationMessage, type ActivationResult, type Aggregation, type ApiResponse, type AsyncResult, type AuthConfig, type AuthType, type BasicAuthConfig, type BasicFilter, type BetweenFilter, type ClientConfig, type ColumnInfo, type DataFrame, type DataPreviewQuery, type Dependency, type DiffResult, type DistinctResult, type ErrorCode, type ErrorResponse, type ExportableSessionState, type FolderNode, type ListFilter, type ObjectConfig, type ObjectContent, type ObjectMetadata, type ObjectNode, type ObjectRef, type ObjectWithContent, type Package, type PackageNode, type Parameter, type PreviewSQL, type QueryFilter, type Result, type SamlAuthConfig, type SearchOptions, type SearchResult, type Session, type Sorting, type SsoAuthConfig, type SuccessResponse, type TaskContents, type Transport, type TransportConfig, type TransportObject, type TreeQuery, type TreeResponse, type UpsertResult, activateLogging, buildSQLQuery, createClient, deactivateLogging, err, ok };
|
|
701
|
+
export { type ADTClient, type ActivationMessage, type ActivationResult, type Aggregation, type ApiResponse, type AsyncResult, type AuthConfig, type AuthType, type BasicAuthConfig, type BasicFilter, type BetweenFilter, type ClientConfig, type ColumnInfo, type DataFrame, type DataPreviewQuery, type Dependency, type DiffResult, type DistinctResult, type ErrorCode, type ErrorResponse, type ExportableSessionState, type FolderNode, type InactiveEntry, type InactiveObject, type InactiveRef, type InactiveTransport, type ListFilter, type ObjectConfig, type ObjectContent, type ObjectMetadata, type ObjectNode, type ObjectRef, type ObjectWithContent, type Package, type PackageNode, type Parameter, type PreviewSQL, type QueryFilter, type Result, type SamlAuthConfig, type SearchOptions, type SearchResult, type Session, type Sorting, type SsoAuthConfig, type SuccessResponse, type TaskContents, type Transport, type TransportConfig, type TransportObject, type TreeQuery, type TreeResponse, type UpsertResult, activateLogging, buildSQLQuery, createClient, deactivateLogging, err, ok };
|
package/dist/index.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ type ApiResponse<T> = SuccessResponse<T> | ErrorResponse;
|
|
|
182
182
|
/**
|
|
183
183
|
* Machine-readable error codes
|
|
184
184
|
*/
|
|
185
|
-
type ErrorCode = 'AUTH_FAILED' | 'SESSION_EXPIRED' | 'SESSION_NOT_FOUND' | 'CSRF_INVALID' | 'OBJECT_LOCKED' | 'OBJECT_NOT_FOUND' | 'TRANSPORT_REQUIRED' | 'ACTIVATION_FAILED' | 'CHECK_FAILED' | 'VALIDATION_ERROR' | 'NETWORK_ERROR' | 'UNKNOWN_ERROR';
|
|
185
|
+
type ErrorCode = 'AUTH_FAILED' | 'SESSION_EXPIRED' | 'SESSION_NOT_FOUND' | 'CSRF_INVALID' | 'OBJECT_LOCKED' | 'OBJECT_NOT_FOUND' | 'TRANSPORT_REQUIRED' | 'ACTIVATION_FAILED' | 'CHECK_FAILED' | 'VALIDATION_ERROR' | 'NETWORK_ERROR' | 'EXTERNAL_REFERENCES' | 'UNKNOWN_ERROR';
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Session management type definitions
|
|
@@ -308,6 +308,27 @@ interface ActivationMessage {
|
|
|
308
308
|
column?: number;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
+
/**
|
|
312
|
+
* Where-Used — Find object dependencies
|
|
313
|
+
*/
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Where-used dependency
|
|
317
|
+
*/
|
|
318
|
+
interface Dependency {
|
|
319
|
+
name: string;
|
|
320
|
+
extension: string;
|
|
321
|
+
package: string;
|
|
322
|
+
usageType: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
interface DeleteResult {
|
|
326
|
+
name: string;
|
|
327
|
+
extension: string;
|
|
328
|
+
status: 'success' | 'error';
|
|
329
|
+
message?: string;
|
|
330
|
+
}
|
|
331
|
+
|
|
311
332
|
interface CheckResult {
|
|
312
333
|
name: string;
|
|
313
334
|
extension: string;
|
|
@@ -459,6 +480,47 @@ interface DistinctResult {
|
|
|
459
480
|
}>;
|
|
460
481
|
}
|
|
461
482
|
|
|
483
|
+
/**
|
|
484
|
+
* Inactive Objects — Query inactive (unsaved) objects from SAP ADT
|
|
485
|
+
*
|
|
486
|
+
* Calls GET /sap/bc/adt/activation/inactiveobjects to retrieve objects
|
|
487
|
+
* and transports that have inactive versions pending activation.
|
|
488
|
+
*/
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Reference to an inactive object or transport
|
|
492
|
+
*/
|
|
493
|
+
interface InactiveRef {
|
|
494
|
+
uri: string;
|
|
495
|
+
type: string;
|
|
496
|
+
name: string;
|
|
497
|
+
description?: string;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* An inactive object entry (object with unsaved changes)
|
|
501
|
+
*/
|
|
502
|
+
interface InactiveObject {
|
|
503
|
+
user: string;
|
|
504
|
+
deleted: boolean;
|
|
505
|
+
ref: InactiveRef;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* An inactive transport entry (transport containing inactive objects)
|
|
509
|
+
*/
|
|
510
|
+
interface InactiveTransport {
|
|
511
|
+
user: string;
|
|
512
|
+
linked: boolean;
|
|
513
|
+
ref: InactiveRef;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* A single entry from the inactive objects response.
|
|
517
|
+
* Each entry has either an object, a transport, or both.
|
|
518
|
+
*/
|
|
519
|
+
interface InactiveEntry {
|
|
520
|
+
object?: InactiveObject;
|
|
521
|
+
transport?: InactiveTransport;
|
|
522
|
+
}
|
|
523
|
+
|
|
462
524
|
/**
|
|
463
525
|
* Search Objects — Quick search by name pattern
|
|
464
526
|
*/
|
|
@@ -487,20 +549,6 @@ interface SearchOptions {
|
|
|
487
549
|
includePackages?: boolean;
|
|
488
550
|
}
|
|
489
551
|
|
|
490
|
-
/**
|
|
491
|
-
* Where-Used — Find object dependencies
|
|
492
|
-
*/
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Where-used dependency
|
|
496
|
-
*/
|
|
497
|
-
interface Dependency {
|
|
498
|
-
name: string;
|
|
499
|
-
extension: string;
|
|
500
|
-
package: string;
|
|
501
|
-
usageType: string;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
552
|
/**
|
|
505
553
|
* Create Transport — Create a new transport request for a package
|
|
506
554
|
*/
|
|
@@ -608,12 +656,13 @@ interface ADTClient {
|
|
|
608
656
|
upsert(objects: ObjectContent[], packageName: string, transport?: string): AsyncResult<UpsertResult[]>;
|
|
609
657
|
activate(objects: ObjectRef[]): AsyncResult<ActivationResult[]>;
|
|
610
658
|
checkSyntax(objects: ObjectRef[]): AsyncResult<CheckResult[]>;
|
|
611
|
-
delete(objects: ObjectRef[], transport?: string): AsyncResult<
|
|
659
|
+
delete(objects: ObjectRef[], transport?: string): AsyncResult<DeleteResult[]>;
|
|
612
660
|
getPackages(options?: GetPackagesOptions): AsyncResult<Package[]>;
|
|
613
661
|
getTree(query: TreeQuery): AsyncResult<TreeResponse>;
|
|
614
662
|
getPackageStats(packageName: string): AsyncResult<PackageNode>;
|
|
615
663
|
getPackageStats(packageNames: string[]): AsyncResult<PackageNode[]>;
|
|
616
664
|
getTransports(packageName: string): AsyncResult<Transport[]>;
|
|
665
|
+
getInactiveObjects(): AsyncResult<InactiveEntry[]>;
|
|
617
666
|
previewData(query: PreviewSQL): AsyncResult<DataFrame>;
|
|
618
667
|
getDistinctValues(objectName: string, parameters: Parameter[], column: string, objectType?: 'table' | 'view'): AsyncResult<DistinctResult>;
|
|
619
668
|
countRows(objectName: string, objectType: 'table' | 'view', parameters?: Parameter[]): AsyncResult<number>;
|
|
@@ -649,4 +698,4 @@ declare function activateLogging(): void;
|
|
|
649
698
|
*/
|
|
650
699
|
declare function deactivateLogging(): void;
|
|
651
700
|
|
|
652
|
-
export { type ADTClient, type ActivationMessage, type ActivationResult, type Aggregation, type ApiResponse, type AsyncResult, type AuthConfig, type AuthType, type BasicAuthConfig, type BasicFilter, type BetweenFilter, type ClientConfig, type ColumnInfo, type DataFrame, type DataPreviewQuery, type Dependency, type DiffResult, type DistinctResult, type ErrorCode, type ErrorResponse, type ExportableSessionState, type FolderNode, type ListFilter, type ObjectConfig, type ObjectContent, type ObjectMetadata, type ObjectNode, type ObjectRef, type ObjectWithContent, type Package, type PackageNode, type Parameter, type PreviewSQL, type QueryFilter, type Result, type SamlAuthConfig, type SearchOptions, type SearchResult, type Session, type Sorting, type SsoAuthConfig, type SuccessResponse, type TaskContents, type Transport, type TransportConfig, type TransportObject, type TreeQuery, type TreeResponse, type UpsertResult, activateLogging, buildSQLQuery, createClient, deactivateLogging, err, ok };
|
|
701
|
+
export { type ADTClient, type ActivationMessage, type ActivationResult, type Aggregation, type ApiResponse, type AsyncResult, type AuthConfig, type AuthType, type BasicAuthConfig, type BasicFilter, type BetweenFilter, type ClientConfig, type ColumnInfo, type DataFrame, type DataPreviewQuery, type Dependency, type DiffResult, type DistinctResult, type ErrorCode, type ErrorResponse, type ExportableSessionState, type FolderNode, type InactiveEntry, type InactiveObject, type InactiveRef, type InactiveTransport, type ListFilter, type ObjectConfig, type ObjectContent, type ObjectMetadata, type ObjectNode, type ObjectRef, type ObjectWithContent, type Package, type PackageNode, type Parameter, type PreviewSQL, type QueryFilter, type Result, type SamlAuthConfig, type SearchOptions, type SearchResult, type Session, type Sorting, type SsoAuthConfig, type SuccessResponse, type TaskContents, type Transport, type TransportConfig, type TransportObject, type TreeQuery, type TreeResponse, type UpsertResult, activateLogging, buildSQLQuery, createClient, deactivateLogging, err, ok };
|