@trigger.dev/core 0.0.0-yalt-20231214152805 → 0.0.0-yalt-timeout-20240117100229
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 +74 -1
- package/dist/index.d.ts +74 -1
- package/dist/index.js +44 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -88,6 +88,13 @@ var EventMatcherSchema = z.union([
|
|
|
88
88
|
z.number(),
|
|
89
89
|
z.boolean()
|
|
90
90
|
])
|
|
91
|
+
}),
|
|
92
|
+
z.object({
|
|
93
|
+
$not: z.union([
|
|
94
|
+
z.string(),
|
|
95
|
+
z.number(),
|
|
96
|
+
z.boolean()
|
|
97
|
+
])
|
|
91
98
|
})
|
|
92
99
|
]))
|
|
93
100
|
]);
|
|
@@ -1440,6 +1447,10 @@ var RequestWithRawBodySchema = z.object({
|
|
|
1440
1447
|
headers: z.record(z.string()),
|
|
1441
1448
|
rawBody: z.string()
|
|
1442
1449
|
});
|
|
1450
|
+
var CancelRunsForJobSchema = z.object({
|
|
1451
|
+
cancelledRunIds: z.array(z.string()),
|
|
1452
|
+
failedToCancelRunIds: z.array(z.string())
|
|
1453
|
+
});
|
|
1443
1454
|
|
|
1444
1455
|
// src/utils.ts
|
|
1445
1456
|
function deepMergeFilters(...filters) {
|
|
@@ -1588,7 +1599,9 @@ function urlWithSearchParams(url, params) {
|
|
|
1588
1599
|
}
|
|
1589
1600
|
const urlObj = new URL(url);
|
|
1590
1601
|
for (const [key, value] of Object.entries(params)) {
|
|
1591
|
-
|
|
1602
|
+
if (value !== void 0) {
|
|
1603
|
+
urlObj.searchParams.append(key, String(value));
|
|
1604
|
+
}
|
|
1592
1605
|
}
|
|
1593
1606
|
return urlObj.toString();
|
|
1594
1607
|
}
|
|
@@ -1739,6 +1752,14 @@ function contentFilterMatches(actualValue, contentFilter) {
|
|
|
1739
1752
|
}
|
|
1740
1753
|
return actualValue !== null;
|
|
1741
1754
|
}
|
|
1755
|
+
if ("$not" in contentFilter) {
|
|
1756
|
+
if (Array.isArray(actualValue)) {
|
|
1757
|
+
return !actualValue.includes(contentFilter.$not);
|
|
1758
|
+
} else if (typeof actualValue === "number" || typeof actualValue === "boolean" || typeof actualValue === "string") {
|
|
1759
|
+
return actualValue !== contentFilter.$not;
|
|
1760
|
+
}
|
|
1761
|
+
return false;
|
|
1762
|
+
}
|
|
1742
1763
|
return true;
|
|
1743
1764
|
}
|
|
1744
1765
|
__name(contentFilterMatches, "contentFilterMatches");
|
|
@@ -1814,6 +1835,23 @@ function requestMethodMatches(method, filter) {
|
|
|
1814
1835
|
return filter.includes(method);
|
|
1815
1836
|
}
|
|
1816
1837
|
__name(requestMethodMatches, "requestMethodMatches");
|
|
1838
|
+
var CreateAuthorizationCodeResponseSchema = z.object({
|
|
1839
|
+
url: z.string().url(),
|
|
1840
|
+
authorizationCode: z.string()
|
|
1841
|
+
});
|
|
1842
|
+
var GetPersonalAccessTokenRequestSchema = z.object({
|
|
1843
|
+
authorizationCode: z.string()
|
|
1844
|
+
});
|
|
1845
|
+
var GetPersonalAccessTokenResponseSchema = z.object({
|
|
1846
|
+
token: z.object({
|
|
1847
|
+
token: z.string(),
|
|
1848
|
+
obfuscatedToken: z.string()
|
|
1849
|
+
}).nullable()
|
|
1850
|
+
});
|
|
1851
|
+
var WhoAmIResponseSchema = z.object({
|
|
1852
|
+
userId: z.string(),
|
|
1853
|
+
email: z.string().email()
|
|
1854
|
+
});
|
|
1817
1855
|
|
|
1818
1856
|
// src/index.ts
|
|
1819
1857
|
var API_VERSIONS = {
|
|
@@ -1836,6 +1874,6 @@ function supportsFeature(featureName, version) {
|
|
|
1836
1874
|
}
|
|
1837
1875
|
__name(supportsFeature, "supportsFeature");
|
|
1838
1876
|
|
|
1839
|
-
export { API_VERSIONS, ApiEventLogSchema, AutoYieldConfigSchema, AutoYieldMetadataSchema, CachedTaskSchema, CancelRunsForEventSchema, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInputSchema, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, ConnectionAuthSchema, CreateExternalConnectionBodySchema, CreateRunResponseBodySchema, CronMetadataSchema, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, DeliverEventResponseSchema, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayPropertySchema, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, EndpointIndexErrorSchema, EphemeralEventDispatcherRequestBodySchema, EphemeralEventDispatcherResponseBodySchema, ErrorWithStackSchema, EventExampleSchema, EventFilterSchema, EventRuleSchema, EventSpecificationSchema, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, FailTaskBodyInputSchema, FetchOperationSchema, FetchPollOperationSchema, FetchRequestInitSchema, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategySchema, FetchRetryOptionsSchema, FetchRetryStrategySchema, FetchTimeoutOptionsSchema, GetEndpointIndexResponseSchema, GetEventSchema, GetRunSchema, GetRunStatusesSchema, GetRunsSchema, HTTPMethodUnionSchema, HandleTriggerSourceSchema, HttpEndpointRequestHeadersSchema, HttpSourceRequestHeadersSchema, HttpSourceResponseSchema, IndexEndpointResponseSchema, InitializeCronScheduleBodySchema, InitializeTriggerBodySchema, IntegrationConfigSchema, IntegrationMetadataSchema, IntervalMetadataSchema, IntervalOptionsSchema, InvokeJobRequestBodySchema, InvokeJobResponseSchema, InvokeOptionsSchema, InvokeTriggerMetadataSchema, JobMetadataSchema, JobRunStatusRecordSchema, KeyValueStoreResponseBodySchema, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequestSchema, NormalizedResponseSchema, PLATFORM_FEATURES, PongErrorResponseSchema, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBodySchema, PreprocessRunResponseSchema, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, RawEventSchema, RedactSchema, RedactStringSchema, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBodySchema, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, RegisterTriggerSourceSchema, RegisterWebhookPayloadSchema, RegisterWebhookSourceSchema, RequestFilterSchema, RequestWithRawBodySchema, ResponseFilterSchema, RetryOptionsSchema, RunJobAutoYieldExecutionErrorSchema, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, RunJobBodySchema, RunJobCanceledWithTaskSchema, RunJobErrorResponseSchema, RunJobErrorSchema, RunJobInvalidPayloadErrorSchema, RunJobResponseSchema, RunJobResumeWithParallelTaskSchema, RunJobResumeWithTaskSchema, RunJobRetryWithTaskSchema, RunJobSuccessSchema, RunJobUnresolvedAuthErrorSchema, RunJobYieldExecutionErrorSchema, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInputSchema, RunTaskBodyOutputSchema, RunTaskOptionsSchema, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadataSchema, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SchemaErrorSchema, SendBulkEventsBodySchema, SendEventBodySchema, SendEventOptionsSchema, SerializableJsonSchema, ServerTaskSchema, SourceMetadataV2Schema, StaticTriggerMetadataSchema, StatusHistorySchema, StatusUpdateSchema, StatusUpdateStateSchema, StyleSchema, TaskSchema, TaskStatusSchema, TriggerHelpSchema, TriggerMetadataSchema, TriggerSourceSchema, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2Schema, UpdateWebhookBodySchema, ValidateErrorResponseSchema, ValidateResponseSchema, ValidateSuccessResponseSchema, WebhookContextMetadataSchema, WebhookDeliveryResponseSchema, WebhookMetadataSchema, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, stringPatternMatchers, supportsFeature, urlWithSearchParams };
|
|
1877
|
+
export { API_VERSIONS, ApiEventLogSchema, AutoYieldConfigSchema, AutoYieldMetadataSchema, CachedTaskSchema, CancelRunsForEventSchema, CancelRunsForJobSchema, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInputSchema, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, ConnectionAuthSchema, CreateAuthorizationCodeResponseSchema, CreateExternalConnectionBodySchema, CreateRunResponseBodySchema, CronMetadataSchema, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, DeliverEventResponseSchema, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayPropertySchema, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, EndpointIndexErrorSchema, EphemeralEventDispatcherRequestBodySchema, EphemeralEventDispatcherResponseBodySchema, ErrorWithStackSchema, EventExampleSchema, EventFilterSchema, EventRuleSchema, EventSpecificationSchema, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, FailTaskBodyInputSchema, FetchOperationSchema, FetchPollOperationSchema, FetchRequestInitSchema, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategySchema, FetchRetryOptionsSchema, FetchRetryStrategySchema, FetchTimeoutOptionsSchema, GetEndpointIndexResponseSchema, GetEventSchema, GetPersonalAccessTokenRequestSchema, GetPersonalAccessTokenResponseSchema, GetRunSchema, GetRunStatusesSchema, GetRunsSchema, HTTPMethodUnionSchema, HandleTriggerSourceSchema, HttpEndpointRequestHeadersSchema, HttpSourceRequestHeadersSchema, HttpSourceResponseSchema, IndexEndpointResponseSchema, InitializeCronScheduleBodySchema, InitializeTriggerBodySchema, IntegrationConfigSchema, IntegrationMetadataSchema, IntervalMetadataSchema, IntervalOptionsSchema, InvokeJobRequestBodySchema, InvokeJobResponseSchema, InvokeOptionsSchema, InvokeTriggerMetadataSchema, JobMetadataSchema, JobRunStatusRecordSchema, KeyValueStoreResponseBodySchema, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequestSchema, NormalizedResponseSchema, PLATFORM_FEATURES, PongErrorResponseSchema, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBodySchema, PreprocessRunResponseSchema, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, RawEventSchema, RedactSchema, RedactStringSchema, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBodySchema, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, RegisterTriggerSourceSchema, RegisterWebhookPayloadSchema, RegisterWebhookSourceSchema, RequestFilterSchema, RequestWithRawBodySchema, ResponseFilterSchema, RetryOptionsSchema, RunJobAutoYieldExecutionErrorSchema, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, RunJobBodySchema, RunJobCanceledWithTaskSchema, RunJobErrorResponseSchema, RunJobErrorSchema, RunJobInvalidPayloadErrorSchema, RunJobResponseSchema, RunJobResumeWithParallelTaskSchema, RunJobResumeWithTaskSchema, RunJobRetryWithTaskSchema, RunJobSuccessSchema, RunJobUnresolvedAuthErrorSchema, RunJobYieldExecutionErrorSchema, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInputSchema, RunTaskBodyOutputSchema, RunTaskOptionsSchema, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadataSchema, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SchemaErrorSchema, SendBulkEventsBodySchema, SendEventBodySchema, SendEventOptionsSchema, SerializableJsonSchema, ServerTaskSchema, SourceMetadataV2Schema, StaticTriggerMetadataSchema, StatusHistorySchema, StatusUpdateSchema, StatusUpdateStateSchema, StyleSchema, TaskSchema, TaskStatusSchema, TriggerHelpSchema, TriggerMetadataSchema, TriggerSourceSchema, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2Schema, UpdateWebhookBodySchema, ValidateErrorResponseSchema, ValidateResponseSchema, ValidateSuccessResponseSchema, WebhookContextMetadataSchema, WebhookDeliveryResponseSchema, WebhookMetadataSchema, WebhookSourceRequestHeadersSchema, WhoAmIResponseSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, stringPatternMatchers, supportsFeature, urlWithSearchParams };
|
|
1840
1878
|
//# sourceMappingURL=out.js.map
|
|
1841
1879
|
//# sourceMappingURL=index.mjs.map
|