@useparagon/core 1.1.5-canary.1 → 1.1.5-canary.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.
|
@@ -12,7 +12,7 @@ interface ICustomTriggerContext<InputResultMap extends Record<string, unknown> =
|
|
|
12
12
|
}
|
|
13
13
|
export type ICreateTriggerContext<T extends Record<string, unknown>> = Pick<ICustomTriggerContext<T>, 'webhookURL' | 'credential' | 'getEnvironmentSecret' | 'getInput' | 'providerData'>;
|
|
14
14
|
export type ITeardownTriggerContext<T extends Record<string, unknown>> = Pick<ICustomTriggerContext<T>, 'setupResponse' | 'credential' | 'getEnvironmentSecret' | 'getInput' | 'providerData'>;
|
|
15
|
-
export type ISetupTriggerResponseContext<T extends Record<string, unknown>> = Pick<ICustomTriggerContext<T>, 'getEnvironmentSecret'>;
|
|
15
|
+
export type ISetupTriggerResponseContext<T extends Record<string, unknown>> = Pick<ICustomTriggerContext<T>, 'getEnvironmentSecret' | 'webhookRequest' | 'credential'>;
|
|
16
16
|
export type IPayloadValidationContext<T extends Record<string, unknown>> = Pick<ICustomTriggerContext<T>, 'credential' | 'getEnvironmentSecret' | 'persistData' | 'webhookRequest'>;
|
|
17
17
|
export type IProfileConfigContext = Pick<ICustomTriggerContext, 'profileData'>;
|
|
18
18
|
export type IProviderIdContext = Pick<ICustomTriggerContext, 'webhookRequest'>;
|
|
@@ -11,7 +11,7 @@ class CustomTriggerContext {
|
|
|
11
11
|
return (0, context_utils_1.createProxyInputReference)({}, () => '', context_interface_1.ProxyVariableSourceType.CUSTOM_WEBHOOK_TRIGGER_SETUP_RESPONSE);
|
|
12
12
|
}
|
|
13
13
|
get webhookRequest() {
|
|
14
|
-
return (0, context_utils_1.createProxyInputReference)({}, () => '', context_interface_1.ProxyVariableSourceType.CUSTOM_WEBHOOK_TRIGGER_WEBHOOK_RESPONSE
|
|
14
|
+
return (0, context_utils_1.createProxyInputReference)({}, () => '', context_interface_1.ProxyVariableSourceType.CUSTOM_WEBHOOK_TRIGGER_WEBHOOK_RESPONSE);
|
|
15
15
|
}
|
|
16
16
|
get credential() {
|
|
17
17
|
return (0, context_utils_1.createProxyInputReference)({}, () => '', context_interface_1.ProxyVariableSourceType.CREDENTIAL_VALUES);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customTrigger.context.js","sourceRoot":"","sources":["../../../src/triggers/customTrigger/customTrigger.context.ts"],"names":[],"mappings":";;;AAAA,yEAA4E;AAC5E,iEAA0E;AAG1E,MAAa,oBAAoB;IAI/B,IAAI,UAAU;QACZ,OAAO,IAAA,yCAAyB,EAC9B,EAAE,EACF,GAAG,EAAE,CAAC,EAAE,EACR,2CAAuB,CAAC,0BAA0B,CACnD,CAAC;IACJ,CAAC;IAKD,IAAI,aAAa;QACf,OAAO,IAAA,yCAAyB,EAC9B,EAAE,EACF,GAAG,EAAE,CAAC,EAAE,EACR,2CAAuB,CAAC,qCAAqC,CAC9D,CAAC;IACJ,CAAC;IAKD,IAAI,cAAc;QAKhB,OAAO,IAAA,yCAAyB,EAC9B,EAAE,EACF,GAAG,EAAE,CAAC,EAAE,EACR,2CAAuB,CAAC,uCAAuC,
|
|
1
|
+
{"version":3,"file":"customTrigger.context.js","sourceRoot":"","sources":["../../../src/triggers/customTrigger/customTrigger.context.ts"],"names":[],"mappings":";;;AAAA,yEAA4E;AAC5E,iEAA0E;AAG1E,MAAa,oBAAoB;IAI/B,IAAI,UAAU;QACZ,OAAO,IAAA,yCAAyB,EAC9B,EAAE,EACF,GAAG,EAAE,CAAC,EAAE,EACR,2CAAuB,CAAC,0BAA0B,CACnD,CAAC;IACJ,CAAC;IAKD,IAAI,aAAa;QACf,OAAO,IAAA,yCAAyB,EAC9B,EAAE,EACF,GAAG,EAAE,CAAC,EAAE,EACR,2CAAuB,CAAC,qCAAqC,CAC9D,CAAC;IACJ,CAAC;IAKD,IAAI,cAAc;QAKhB,OAAO,IAAA,yCAAyB,EAC9B,EAAE,EACF,GAAG,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