@prismatic-io/spectral 10.5.0 → 10.5.1
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/clients/http/index.d.ts +37 -0
- package/dist/clients/http/index.js +24 -0
- package/dist/generators/componentManifest/getInputs.js +1 -0
- package/dist/index.d.ts +71 -36
- package/dist/index.js +68 -33
- package/dist/serverTypes/convertComponent.d.ts +2 -1
- package/dist/serverTypes/convertComponent.js +12 -2
- package/dist/serverTypes/convertIntegration.js +17 -5
- package/dist/serverTypes/index.d.ts +1 -0
- package/dist/testing.d.ts +42 -4
- package/dist/testing.js +42 -4
- package/dist/types/ActionDefinition.d.ts +21 -10
- package/dist/types/ActionLogger.d.ts +3 -2
- package/dist/types/ActionLogger.js +1 -1
- package/dist/types/ActionPerformFunction.d.ts +12 -12
- package/dist/types/ActionPerformReturn.d.ts +11 -11
- package/dist/types/ComponentDefinition.d.ts +34 -11
- package/dist/types/ConfigVars.d.ts +36 -24
- package/dist/types/ConnectionDefinition.d.ts +92 -13
- package/dist/types/ConnectionDefinition.js +16 -0
- package/dist/types/CustomerAttributes.d.ts +6 -0
- package/dist/types/DataPayload.d.ts +4 -4
- package/dist/types/DataSourceDefinition.d.ts +11 -7
- package/dist/types/DataSourcePerformFunction.d.ts +1 -1
- package/dist/types/FlowAttributes.d.ts +2 -0
- package/dist/types/HttpResponse.d.ts +7 -0
- package/dist/types/Inputs.d.ts +80 -57
- package/dist/types/Inputs.js +1 -0
- package/dist/types/InstanceAttributes.d.ts +3 -1
- package/dist/types/IntegrationAttributes.d.ts +4 -1
- package/dist/types/IntegrationDefinition.d.ts +78 -41
- package/dist/types/TriggerDefinition.d.ts +29 -14
- package/dist/types/TriggerEventFunction.d.ts +4 -4
- package/dist/types/TriggerPayload.d.ts +6 -2
- package/dist/types/TriggerResult.d.ts +6 -6
- package/dist/types/UserAttributes.d.ts +11 -1
- package/package.json +1 -1
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { InstanceAttributes, CustomerAttributes, UserAttributes, IntegrationAttributes, FlowAttributes } from ".";
|
|
2
2
|
/** Represents a Trigger Payload, which is data passed into a Trigger to invoke an Integration execution. */
|
|
3
3
|
export interface TriggerPayload {
|
|
4
|
+
/** The headers sent in the webhook request. */
|
|
4
5
|
headers: {
|
|
5
6
|
[key: string]: string;
|
|
6
7
|
};
|
|
8
|
+
/** The search parameters included in the URL of the webhook request. */
|
|
7
9
|
queryParameters: {
|
|
8
10
|
[key: string]: string;
|
|
9
11
|
};
|
|
12
|
+
/** The unparsed body of the webhook request. */
|
|
10
13
|
rawBody: {
|
|
11
14
|
data: unknown;
|
|
12
15
|
contentType?: string;
|
|
13
16
|
};
|
|
17
|
+
/** The parsed body of the webhook request. */
|
|
14
18
|
body: {
|
|
15
19
|
data: unknown;
|
|
16
20
|
contentType?: string;
|
|
17
21
|
};
|
|
18
|
-
/** Extended path information from the webhook trigger */
|
|
22
|
+
/** Extended path information from the webhook trigger. */
|
|
19
23
|
pathFragment: string;
|
|
20
|
-
/** The webhook URLs assigned to this integration's flows upon instance deploy */
|
|
24
|
+
/** The webhook URLs assigned to this integration's flows upon instance deploy. */
|
|
21
25
|
webhookUrls: {
|
|
22
26
|
[key: string]: string;
|
|
23
27
|
};
|
|
@@ -4,15 +4,15 @@ import { HttpResponse } from "./HttpResponse";
|
|
|
4
4
|
export interface TriggerBaseResult<TPayload extends TriggerPayload> {
|
|
5
5
|
/** The payload in the request that invoked the Integration, which is returned as a result for later use. */
|
|
6
6
|
payload: TPayload;
|
|
7
|
-
/**
|
|
7
|
+
/** HTTP response to the request that invoked the integration. */
|
|
8
8
|
response?: HttpResponse;
|
|
9
|
-
/** An optional object, the keys and values of which will be persisted in the flow-specific instanceState and available for subsequent actions and executions */
|
|
9
|
+
/** An optional object, the keys and values of which will be persisted in the flow-specific instanceState and available for subsequent actions and executions. */
|
|
10
10
|
instanceState?: Record<string, unknown>;
|
|
11
|
-
/** An optional object, the keys and values of which will be persisted in the crossFlowState and available in any flow for subsequent actions and executions */
|
|
11
|
+
/** An optional object, the keys and values of which will be persisted in the crossFlowState and available in any flow for subsequent actions and executions. */
|
|
12
12
|
crossFlowState?: Record<string, unknown>;
|
|
13
|
-
/** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution */
|
|
13
|
+
/** An optional object, the keys and values of which will be persisted in the executionState and available for the duration of the execution. */
|
|
14
14
|
executionState?: Record<string, unknown>;
|
|
15
|
-
/** An optional object, the keys and values of which will be persisted in the integrationState and available in any flow of an Instance for any version of an Integration for subsequent actions and executions */
|
|
15
|
+
/** An optional object, the keys and values of which will be persisted in the integrationState and available in any flow of an Instance for any version of an Integration for subsequent actions and executions. */
|
|
16
16
|
integrationState?: Record<string, unknown>;
|
|
17
17
|
/** A field populated by the Prismatic platform which indicates whether the trigger failed with an error during execution. */
|
|
18
18
|
failed?: boolean;
|
|
@@ -26,5 +26,5 @@ export interface TriggerBranchingResult<TPayload extends TriggerPayload> extends
|
|
|
26
26
|
/** Name of the Branch to take. */
|
|
27
27
|
branch: string;
|
|
28
28
|
}
|
|
29
|
-
/** Required return type of all trigger perform functions */
|
|
29
|
+
/** Required return type of all trigger perform functions. */
|
|
30
30
|
export type TriggerResult<AllowsBranching extends boolean | undefined, TPayload extends TriggerPayload> = (AllowsBranching extends true ? TriggerBranchingResult<TPayload> : TriggerBaseResult<TPayload>) | undefined;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Contains attributes of the User whose user-level configuration is being used. See
|
|
3
|
+
* https://prismatic.io/docs/integrations/config-wizard/user-level-configuration/
|
|
4
|
+
*/
|
|
2
5
|
export interface UserAttributes {
|
|
6
|
+
/** Programmatic ID of the user whose user-level configuration is being used. */
|
|
3
7
|
id: string;
|
|
8
|
+
/** The email address (or embedded ID) of the user whose user-level configuration is being used. */
|
|
4
9
|
email: string;
|
|
10
|
+
/** The name of the user whose user-level configuration is being used. */
|
|
5
11
|
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* The external ID you assign to the user whose user-level configuration is being used. See
|
|
14
|
+
* https://prismatic.io/docs/embed/authenticate-users/#create-and-sign-a-jwt
|
|
15
|
+
*/
|
|
6
16
|
externalId: string;
|
|
7
17
|
}
|