@devrev/typescript-sdk 1.1.70 → 1.1.72
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/auto-generated/beta/beta-devrev-sdk.d.ts +4555 -277
- package/dist/auto-generated/beta/beta-devrev-sdk.js +713 -6
- package/dist/auto-generated/public-devrev-sdk.d.ts +7493 -421
- package/dist/auto-generated/public-devrev-sdk.js +815 -4
- package/dist/snap-ins/interfaces.d.ts +12 -1
- package/dist/snap-ins/schema.pb.d.ts +852 -11
- package/dist/snap-ins/schema.pb.js +958 -8
- package/dist/tests/timeline.js +0 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OperationOutput } from './schema.pb';
|
|
1
|
+
import { OperationOutput, ExternalOperationScopes } from './schema.pb';
|
|
2
2
|
import { OperationContext } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for the operation base class. Contains the GetContext method.
|
|
@@ -6,10 +6,21 @@ import { OperationContext } from './types';
|
|
|
6
6
|
export interface OperationBaseIfc {
|
|
7
7
|
GetContext: (...args: any[]) => OperationContext;
|
|
8
8
|
}
|
|
9
|
+
export interface OperationSchemaHandlerOutput {
|
|
10
|
+
error?: Error;
|
|
11
|
+
input_ports?: any[];
|
|
12
|
+
output_ports?: any[];
|
|
13
|
+
scopes?: ExternalOperationScopes;
|
|
14
|
+
}
|
|
9
15
|
/**
|
|
10
16
|
* Interface for the operation class. All operations should implement this interface.
|
|
11
17
|
* Extends the OperationBaseIfc interface.
|
|
12
18
|
*/
|
|
13
19
|
export interface OperationIfc extends OperationBaseIfc {
|
|
14
20
|
run(metadata: OperationContext, input: Record<string, any>, resources: Record<string, any>): Promise<OperationOutput>;
|
|
21
|
+
activate?(metadata: OperationContext, input: Record<string, any>, resources: Record<string, any>): Promise<OperationOutput>;
|
|
22
|
+
update?(metadata: OperationContext, input: Record<string, any>, resources: Record<string, any>): Promise<OperationOutput>;
|
|
23
|
+
deactivate?(metadata: OperationContext, input: Record<string, any>, resources: Record<string, any>): Promise<OperationOutput>;
|
|
24
|
+
delete?(metadata: OperationContext, input: Record<string, any>, resources: Record<string, any>): Promise<OperationOutput>;
|
|
25
|
+
schema_handler?(metadata: OperationContext, input: Record<string, any>): Promise<OperationSchemaHandlerOutput>;
|
|
15
26
|
}
|