@wix/automations 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/automations",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/automations_activations": "1.0.3"
21
+ "@wix/automations_activations": "1.0.4"
22
22
  },
23
23
  "devDependencies": {
24
24
  "glob": "^10.4.1",
@@ -42,5 +42,5 @@
42
42
  "fqdn": ""
43
43
  }
44
44
  },
45
- "falconPackageHash": "641a4c55793cbdf6738d8058ba414a81c1317e5e40414c5588f7c4b3"
45
+ "falconPackageHash": "7cb978d6d0e8a527f39acb23d357519e0dbbd2f3ff106817546b0732"
46
46
  }
@@ -1393,48 +1393,44 @@ interface ActivationScheduleCompleted {
1393
1393
  interface ReportEventResponseNonNullableFields {
1394
1394
  activationIds: string[];
1395
1395
  }
1396
+ interface ApplicationErrorNonNullableFields {
1397
+ code: string;
1398
+ description: string;
1399
+ }
1400
+ interface ItemMetadataNonNullableFields {
1401
+ originalIndex: number;
1402
+ success: boolean;
1403
+ error?: ApplicationErrorNonNullableFields;
1404
+ }
1405
+ interface IdempotencyNonNullableFields {
1406
+ key: string;
1407
+ }
1408
+ interface EventInfoNonNullableFields {
1409
+ idempotency?: IdempotencyNonNullableFields;
1410
+ }
1411
+ interface BulkReportEventResultNonNullableFields {
1412
+ itemMetadata?: ItemMetadataNonNullableFields;
1413
+ eventInfo?: EventInfoNonNullableFields;
1414
+ activationIds: string[];
1415
+ }
1416
+ interface BulkActionMetadataNonNullableFields {
1417
+ totalSuccesses: number;
1418
+ totalFailures: number;
1419
+ undetailedFailures: number;
1420
+ }
1396
1421
  interface BulkReportEventResponseNonNullableFields {
1397
1422
  triggerKey: string;
1398
- results: {
1399
- itemMetadata?: {
1400
- originalIndex: number;
1401
- success: boolean;
1402
- error?: {
1403
- code: string;
1404
- description: string;
1405
- };
1406
- };
1407
- eventInfo?: {
1408
- idempotency?: {
1409
- key: string;
1410
- };
1411
- };
1412
- activationIds: string[];
1413
- }[];
1414
- bulkActionMetadata?: {
1415
- totalSuccesses: number;
1416
- totalFailures: number;
1417
- undetailedFailures: number;
1418
- };
1423
+ results: BulkReportEventResultNonNullableFields[];
1424
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1425
+ }
1426
+ interface BulkCancelEventResultNonNullableFields {
1427
+ itemMetadata?: ItemMetadataNonNullableFields;
1428
+ externalEntityId: string;
1419
1429
  }
1420
1430
  interface BulkCancelEventResponseNonNullableFields {
1421
1431
  triggerKey: string;
1422
- results: {
1423
- itemMetadata?: {
1424
- originalIndex: number;
1425
- success: boolean;
1426
- error?: {
1427
- code: string;
1428
- description: string;
1429
- };
1430
- };
1431
- externalEntityId: string;
1432
- }[];
1433
- bulkActionMetadata?: {
1434
- totalSuccesses: number;
1435
- totalFailures: number;
1436
- undetailedFailures: number;
1437
- };
1432
+ results: BulkCancelEventResultNonNullableFields[];
1433
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1438
1434
  }
1439
1435
  interface BaseEventMetadata {
1440
1436
  /** App instance ID. */
@@ -1393,48 +1393,44 @@ interface ActivationScheduleCompleted {
1393
1393
  interface ReportEventResponseNonNullableFields {
1394
1394
  activationIds: string[];
1395
1395
  }
1396
+ interface ApplicationErrorNonNullableFields {
1397
+ code: string;
1398
+ description: string;
1399
+ }
1400
+ interface ItemMetadataNonNullableFields {
1401
+ originalIndex: number;
1402
+ success: boolean;
1403
+ error?: ApplicationErrorNonNullableFields;
1404
+ }
1405
+ interface IdempotencyNonNullableFields {
1406
+ key: string;
1407
+ }
1408
+ interface EventInfoNonNullableFields {
1409
+ idempotency?: IdempotencyNonNullableFields;
1410
+ }
1411
+ interface BulkReportEventResultNonNullableFields {
1412
+ itemMetadata?: ItemMetadataNonNullableFields;
1413
+ eventInfo?: EventInfoNonNullableFields;
1414
+ activationIds: string[];
1415
+ }
1416
+ interface BulkActionMetadataNonNullableFields {
1417
+ totalSuccesses: number;
1418
+ totalFailures: number;
1419
+ undetailedFailures: number;
1420
+ }
1396
1421
  interface BulkReportEventResponseNonNullableFields {
1397
1422
  triggerKey: string;
1398
- results: {
1399
- itemMetadata?: {
1400
- originalIndex: number;
1401
- success: boolean;
1402
- error?: {
1403
- code: string;
1404
- description: string;
1405
- };
1406
- };
1407
- eventInfo?: {
1408
- idempotency?: {
1409
- key: string;
1410
- };
1411
- };
1412
- activationIds: string[];
1413
- }[];
1414
- bulkActionMetadata?: {
1415
- totalSuccesses: number;
1416
- totalFailures: number;
1417
- undetailedFailures: number;
1418
- };
1423
+ results: BulkReportEventResultNonNullableFields[];
1424
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1425
+ }
1426
+ interface BulkCancelEventResultNonNullableFields {
1427
+ itemMetadata?: ItemMetadataNonNullableFields;
1428
+ externalEntityId: string;
1419
1429
  }
1420
1430
  interface BulkCancelEventResponseNonNullableFields {
1421
1431
  triggerKey: string;
1422
- results: {
1423
- itemMetadata?: {
1424
- originalIndex: number;
1425
- success: boolean;
1426
- error?: {
1427
- code: string;
1428
- description: string;
1429
- };
1430
- };
1431
- externalEntityId: string;
1432
- }[];
1433
- bulkActionMetadata?: {
1434
- totalSuccesses: number;
1435
- totalFailures: number;
1436
- undetailedFailures: number;
1437
- };
1432
+ results: BulkCancelEventResultNonNullableFields[];
1433
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
1438
1434
  }
1439
1435
  interface BaseEventMetadata {
1440
1436
  /** App instance ID. */
@@ -1537,6 +1533,7 @@ interface CancelEventOptions {
1537
1533
  triggerKey: string;
1538
1534
  }
1539
1535
 
1536
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
1540
1537
  interface HttpClient {
1541
1538
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1542
1539
  fetchWithAuth: typeof fetch;
@@ -1561,6 +1558,7 @@ type APIMetadata = {
1561
1558
  entityFqdn?: string;
1562
1559
  packageName?: string;
1563
1560
  };
1561
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1564
1562
  type EventDefinition<Payload = unknown, Type extends string = string> = {
1565
1563
  __type: 'event-definition';
1566
1564
  type: Type;
@@ -1569,6 +1567,8 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
1569
1567
  __payload: Payload;
1570
1568
  };
1571
1569
  declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1570
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
1571
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
1572
1572
 
1573
1573
  declare global {
1574
1574
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -1577,14 +1577,15 @@ declare global {
1577
1577
  }
1578
1578
  }
1579
1579
 
1580
- declare const __metadata: {
1581
- PACKAGE_NAME: string;
1582
- };
1583
- declare function reportEvent(httpClient: HttpClient): (triggerKey: string, options?: ReportEventOptions) => Promise<ReportEventResponse & ReportEventResponseNonNullableFields>;
1584
- declare function bulkReportEvent(httpClient: HttpClient): (triggerKey: string, options: BulkReportEventOptions) => Promise<BulkReportEventResponse & BulkReportEventResponseNonNullableFields>;
1585
- declare function bulkCancelEvent(httpClient: HttpClient): (triggerKey: string, options: BulkCancelEventOptions) => Promise<BulkCancelEventResponse & BulkCancelEventResponseNonNullableFields>;
1586
- declare function cancelEvent(httpClient: HttpClient): (externalEntityId: string, options: CancelEventOptions) => Promise<void>;
1587
- declare const onActivationStatusChanged: EventDefinition<ActivationStatusChangedEnvelope, "wix.automations.v2.activation_activation_status_changed">;
1580
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1581
+
1582
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1583
+
1584
+ declare const reportEvent: ReturnType<typeof createRESTModule<typeof publicReportEvent>>;
1585
+ declare const bulkReportEvent: ReturnType<typeof createRESTModule<typeof publicBulkReportEvent>>;
1586
+ declare const bulkCancelEvent: ReturnType<typeof createRESTModule<typeof publicBulkCancelEvent>>;
1587
+ declare const cancelEvent: ReturnType<typeof createRESTModule<typeof publicCancelEvent>>;
1588
+ declare const onActivationStatusChanged: ReturnType<typeof createEventModule<typeof publicOnActivationStatusChanged>>;
1588
1589
 
1589
1590
  type index_d_Action = Action;
1590
1591
  type index_d_ActionActionOneOf = ActionActionOneOf;
@@ -1752,14 +1753,13 @@ type index_d_V1RunAutomationRequestIdentifierOneOf = V1RunAutomationRequestIdent
1752
1753
  type index_d_V1RunAutomationResponse = V1RunAutomationResponse;
1753
1754
  type index_d_WebhookIdentityType = WebhookIdentityType;
1754
1755
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
1755
- declare const index_d___metadata: typeof __metadata;
1756
1756
  declare const index_d_bulkCancelEvent: typeof bulkCancelEvent;
1757
1757
  declare const index_d_bulkReportEvent: typeof bulkReportEvent;
1758
1758
  declare const index_d_cancelEvent: typeof cancelEvent;
1759
1759
  declare const index_d_onActivationStatusChanged: typeof onActivationStatusChanged;
1760
1760
  declare const index_d_reportEvent: typeof reportEvent;
1761
1761
  declare namespace index_d {
1762
- export { type index_d_Action as Action, type index_d_ActionActionOneOf as ActionActionOneOf, type index_d_ActionCompletedRequest as ActionCompletedRequest, type index_d_ActionData as ActionData, type index_d_ActionEvent as ActionEvent, type index_d_ActionSettings as ActionSettings, type index_d_ActionStatus as ActionStatus, type index_d_ActionsData as ActionsData, type index_d_Activation as Activation, type index_d_ActivationActionStatusChanged as ActivationActionStatusChanged, index_d_ActivationActionStatusChangedStatus as ActivationActionStatusChangedStatus, type index_d_ActivationActionStatusChangedStatusInfoOneOf as ActivationActionStatusChangedStatusInfoOneOf, type index_d_ActivationContinuedAfterSchedule as ActivationContinuedAfterSchedule, type index_d_ActivationRequest as ActivationRequest, type index_d_ActivationResumeAfterDelay as ActivationResumeAfterDelay, type index_d_ActivationScheduleCompleted as ActivationScheduleCompleted, type index_d_ActivationScheduleRequested as ActivationScheduleRequested, type index_d_ActivationSource as ActivationSource, type index_d_ActivationSourceOfOneOf as ActivationSourceOfOneOf, type index_d_ActivationStatus as ActivationStatus, type index_d_ActivationStatusChanged as ActivationStatusChanged, type index_d_ActivationStatusChangedEnvelope as ActivationStatusChangedEnvelope, type index_d_ActivationStatusChangedFailedStatusInfo as ActivationStatusChangedFailedStatusInfo, index_d_ActivationStatusChangedStatus as ActivationStatusChangedStatus, type index_d_ActivationStatusChangedStatusInfoOneOf as ActivationStatusChangedStatusInfoOneOf, type index_d_AppDefinedAction as AppDefinedAction, type index_d_AppDefinedActionInfo as AppDefinedActionInfo, type index_d_ApplicationError as ApplicationError, type index_d_ApplicationOrigin as ApplicationOrigin, type index_d_AsyncAction as AsyncAction, type index_d_AuditInfo as AuditInfo, type index_d_AuditInfoIdOneOf as AuditInfoIdOneOf, type index_d_Automation as Automation, type index_d_AutomationConfiguration as AutomationConfiguration, type index_d_AutomationConfigurationAction as AutomationConfigurationAction, type index_d_AutomationConfigurationActionInfoOneOf as AutomationConfigurationActionInfoOneOf, index_d_AutomationConfigurationStatus as AutomationConfigurationStatus, type index_d_AutomationIdentifier as AutomationIdentifier, type index_d_AutomationInfo as AutomationInfo, type index_d_AutomationInfoOriginInfoOneOf as AutomationInfoOriginInfoOneOf, type index_d_AutomationOriginInfoOneOf as AutomationOriginInfoOneOf, type index_d_AutomationSettings as AutomationSettings, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BatchActivationRequest as BatchActivationRequest, index_d_BlockType as BlockType, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkCancelEventOptions as BulkCancelEventOptions, type index_d_BulkCancelEventRequest as BulkCancelEventRequest, type index_d_BulkCancelEventResponse as BulkCancelEventResponse, type index_d_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type index_d_BulkCancelEventResult as BulkCancelEventResult, type index_d_BulkReportEventOptions as BulkReportEventOptions, type index_d_BulkReportEventRequest as BulkReportEventRequest, type index_d_BulkReportEventResponse as BulkReportEventResponse, type index_d_BulkReportEventResponseNonNullableFields as BulkReportEventResponseNonNullableFields, type index_d_BulkReportEventResult as BulkReportEventResult, type index_d_CancelEventOptions as CancelEventOptions, type index_d_CancelEventRequest as CancelEventRequest, type index_d_CancelEventResponse as CancelEventResponse, type index_d_CancelPendingScheduleRequest as CancelPendingScheduleRequest, type index_d_CancelPendingScheduleRequestByOneOf as CancelPendingScheduleRequestByOneOf, type index_d_CancelPendingScheduleResponse as CancelPendingScheduleResponse, index_d_CancellationReason as CancellationReason, type index_d_CancelledStatusInfo as CancelledStatusInfo, type index_d_Case as Case, type index_d_ConditionAction as ConditionAction, type index_d_ConditionActionInfo as ConditionActionInfo, type index_d_ConditionBlock as ConditionBlock, type index_d_ConditionExpressionGroup as ConditionExpressionGroup, type index_d_ConditionFilter as ConditionFilter, type index_d_Delay as Delay, type index_d_DelayAction as DelayAction, type index_d_DelayActionInfo as DelayActionInfo, type index_d_DelayHelper as DelayHelper, type index_d_DelayOfOneOf as DelayOfOneOf, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EndedStatusInfo as EndedStatusInfo, type index_d_EndedStatusInfoTypeInfoOneOf as EndedStatusInfoTypeInfoOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventInfo as EventInfo, type index_d_EventMetadata as EventMetadata, type index_d_ExecuteFromActionRequest as ExecuteFromActionRequest, type index_d_ExecuteFromActionResponse as ExecuteFromActionResponse, type index_d_ExpressionEvaluationResult as ExpressionEvaluationResult, type index_d_FailedStatusInfo as FailedStatusInfo, type index_d_Filter as Filter, type index_d_FutureDateActivationOffset as FutureDateActivationOffset, type index_d_Idempotency as Idempotency, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentifierType as IdentifierType, type index_d_Identity as Identity, type index_d_IfFilter as IfFilter, type index_d_InitiatedStatusInfo as InitiatedStatusInfo, type index_d_ItemMetadata as ItemMetadata, type index_d_MessageEnvelope as MessageEnvelope, index_d_Operator as Operator, index_d_Origin as Origin, type index_d_Output as Output, type index_d_OutputAction as OutputAction, type index_d_PreinstalledIdentifier as PreinstalledIdentifier, type index_d_PreinstalledOrigin as PreinstalledOrigin, type index_d_RateLimitAction as RateLimitAction, type index_d_RateLimitActionInfo as RateLimitActionInfo, type index_d_RateLimiting as RateLimiting, type index_d_RefreshPayloadRequest as RefreshPayloadRequest, type index_d_RefreshPayloadResponse as RefreshPayloadResponse, type index_d_ReportDomainEventRequest as ReportDomainEventRequest, type index_d_ReportDomainEventResponse as ReportDomainEventResponse, type index_d_ReportEventOptions as ReportEventOptions, type index_d_ReportEventRequest as ReportEventRequest, type index_d_ReportEventResponse as ReportEventResponse, type index_d_ReportEventResponseNonNullableFields as ReportEventResponseNonNullableFields, type index_d_RunAutomationRequest as RunAutomationRequest, type index_d_RunAutomationResponse as RunAutomationResponse, type index_d_Runtime as Runtime, type index_d_Schedule as Schedule, type index_d_ScheduleRequest as ScheduleRequest, type index_d_ScheduleResponse as ScheduleResponse, index_d_ScheduleStatus as ScheduleStatus, type index_d_ScheduledAction as ScheduledAction, type index_d_ScheduledStatusInfo as ScheduledStatusInfo, type index_d_Scheduler as Scheduler, type index_d_Service as Service, type index_d_ServiceMapping as ServiceMapping, type index_d_SimpleDelay as SimpleDelay, type index_d_SpiAction as SpiAction, type index_d_StartedStatusInfo as StartedStatusInfo, type index_d_StartedStatusInfoAppDefinedActionInfo as StartedStatusInfoAppDefinedActionInfo, type index_d_StartedStatusInfoTypeInfoOneOf as StartedStatusInfoTypeInfoOneOf, index_d_Status as Status, type index_d_SwitchFilter as SwitchFilter, type index_d_SystemHelper as SystemHelper, type index_d_SystemHelperHelperOneOf as SystemHelperHelperOneOf, index_d_Target as Target, index_d_TimeUnit as TimeUnit, type index_d_Trigger as Trigger, type index_d_TriggerInfo as TriggerInfo, index_d_Type as Type, type index_d_UndeleteInfo as UndeleteInfo, index_d_Units as Units, type index_d_UpdatePendingSchedulesPayloadRequest as UpdatePendingSchedulesPayloadRequest, type index_d_UpdatePendingSchedulesPayloadResponse as UpdatePendingSchedulesPayloadResponse, type index_d_V1RunAutomationRequest as V1RunAutomationRequest, type index_d_V1RunAutomationRequestIdentifierOneOf as V1RunAutomationRequestIdentifierOneOf, type index_d_V1RunAutomationResponse as V1RunAutomationResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_bulkCancelEvent as bulkCancelEvent, index_d_bulkReportEvent as bulkReportEvent, index_d_cancelEvent as cancelEvent, index_d_onActivationStatusChanged as onActivationStatusChanged, index_d_reportEvent as reportEvent };
1762
+ export { type index_d_Action as Action, type index_d_ActionActionOneOf as ActionActionOneOf, type index_d_ActionCompletedRequest as ActionCompletedRequest, type index_d_ActionData as ActionData, type index_d_ActionEvent as ActionEvent, type index_d_ActionSettings as ActionSettings, type index_d_ActionStatus as ActionStatus, type index_d_ActionsData as ActionsData, type index_d_Activation as Activation, type index_d_ActivationActionStatusChanged as ActivationActionStatusChanged, index_d_ActivationActionStatusChangedStatus as ActivationActionStatusChangedStatus, type index_d_ActivationActionStatusChangedStatusInfoOneOf as ActivationActionStatusChangedStatusInfoOneOf, type index_d_ActivationContinuedAfterSchedule as ActivationContinuedAfterSchedule, type index_d_ActivationRequest as ActivationRequest, type index_d_ActivationResumeAfterDelay as ActivationResumeAfterDelay, type index_d_ActivationScheduleCompleted as ActivationScheduleCompleted, type index_d_ActivationScheduleRequested as ActivationScheduleRequested, type index_d_ActivationSource as ActivationSource, type index_d_ActivationSourceOfOneOf as ActivationSourceOfOneOf, type index_d_ActivationStatus as ActivationStatus, type index_d_ActivationStatusChanged as ActivationStatusChanged, type index_d_ActivationStatusChangedEnvelope as ActivationStatusChangedEnvelope, type index_d_ActivationStatusChangedFailedStatusInfo as ActivationStatusChangedFailedStatusInfo, index_d_ActivationStatusChangedStatus as ActivationStatusChangedStatus, type index_d_ActivationStatusChangedStatusInfoOneOf as ActivationStatusChangedStatusInfoOneOf, type index_d_AppDefinedAction as AppDefinedAction, type index_d_AppDefinedActionInfo as AppDefinedActionInfo, type index_d_ApplicationError as ApplicationError, type index_d_ApplicationOrigin as ApplicationOrigin, type index_d_AsyncAction as AsyncAction, type index_d_AuditInfo as AuditInfo, type index_d_AuditInfoIdOneOf as AuditInfoIdOneOf, type index_d_Automation as Automation, type index_d_AutomationConfiguration as AutomationConfiguration, type index_d_AutomationConfigurationAction as AutomationConfigurationAction, type index_d_AutomationConfigurationActionInfoOneOf as AutomationConfigurationActionInfoOneOf, index_d_AutomationConfigurationStatus as AutomationConfigurationStatus, type index_d_AutomationIdentifier as AutomationIdentifier, type index_d_AutomationInfo as AutomationInfo, type index_d_AutomationInfoOriginInfoOneOf as AutomationInfoOriginInfoOneOf, type index_d_AutomationOriginInfoOneOf as AutomationOriginInfoOneOf, type index_d_AutomationSettings as AutomationSettings, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BatchActivationRequest as BatchActivationRequest, index_d_BlockType as BlockType, type index_d_BulkActionMetadata as BulkActionMetadata, type index_d_BulkCancelEventOptions as BulkCancelEventOptions, type index_d_BulkCancelEventRequest as BulkCancelEventRequest, type index_d_BulkCancelEventResponse as BulkCancelEventResponse, type index_d_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type index_d_BulkCancelEventResult as BulkCancelEventResult, type index_d_BulkReportEventOptions as BulkReportEventOptions, type index_d_BulkReportEventRequest as BulkReportEventRequest, type index_d_BulkReportEventResponse as BulkReportEventResponse, type index_d_BulkReportEventResponseNonNullableFields as BulkReportEventResponseNonNullableFields, type index_d_BulkReportEventResult as BulkReportEventResult, type index_d_CancelEventOptions as CancelEventOptions, type index_d_CancelEventRequest as CancelEventRequest, type index_d_CancelEventResponse as CancelEventResponse, type index_d_CancelPendingScheduleRequest as CancelPendingScheduleRequest, type index_d_CancelPendingScheduleRequestByOneOf as CancelPendingScheduleRequestByOneOf, type index_d_CancelPendingScheduleResponse as CancelPendingScheduleResponse, index_d_CancellationReason as CancellationReason, type index_d_CancelledStatusInfo as CancelledStatusInfo, type index_d_Case as Case, type index_d_ConditionAction as ConditionAction, type index_d_ConditionActionInfo as ConditionActionInfo, type index_d_ConditionBlock as ConditionBlock, type index_d_ConditionExpressionGroup as ConditionExpressionGroup, type index_d_ConditionFilter as ConditionFilter, type index_d_Delay as Delay, type index_d_DelayAction as DelayAction, type index_d_DelayActionInfo as DelayActionInfo, type index_d_DelayHelper as DelayHelper, type index_d_DelayOfOneOf as DelayOfOneOf, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EndedStatusInfo as EndedStatusInfo, type index_d_EndedStatusInfoTypeInfoOneOf as EndedStatusInfoTypeInfoOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventInfo as EventInfo, type index_d_EventMetadata as EventMetadata, type index_d_ExecuteFromActionRequest as ExecuteFromActionRequest, type index_d_ExecuteFromActionResponse as ExecuteFromActionResponse, type index_d_ExpressionEvaluationResult as ExpressionEvaluationResult, type index_d_FailedStatusInfo as FailedStatusInfo, type index_d_Filter as Filter, type index_d_FutureDateActivationOffset as FutureDateActivationOffset, type index_d_Idempotency as Idempotency, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentifierType as IdentifierType, type index_d_Identity as Identity, type index_d_IfFilter as IfFilter, type index_d_InitiatedStatusInfo as InitiatedStatusInfo, type index_d_ItemMetadata as ItemMetadata, type index_d_MessageEnvelope as MessageEnvelope, index_d_Operator as Operator, index_d_Origin as Origin, type index_d_Output as Output, type index_d_OutputAction as OutputAction, type index_d_PreinstalledIdentifier as PreinstalledIdentifier, type index_d_PreinstalledOrigin as PreinstalledOrigin, type index_d_RateLimitAction as RateLimitAction, type index_d_RateLimitActionInfo as RateLimitActionInfo, type index_d_RateLimiting as RateLimiting, type index_d_RefreshPayloadRequest as RefreshPayloadRequest, type index_d_RefreshPayloadResponse as RefreshPayloadResponse, type index_d_ReportDomainEventRequest as ReportDomainEventRequest, type index_d_ReportDomainEventResponse as ReportDomainEventResponse, type index_d_ReportEventOptions as ReportEventOptions, type index_d_ReportEventRequest as ReportEventRequest, type index_d_ReportEventResponse as ReportEventResponse, type index_d_ReportEventResponseNonNullableFields as ReportEventResponseNonNullableFields, type index_d_RunAutomationRequest as RunAutomationRequest, type index_d_RunAutomationResponse as RunAutomationResponse, type index_d_Runtime as Runtime, type index_d_Schedule as Schedule, type index_d_ScheduleRequest as ScheduleRequest, type index_d_ScheduleResponse as ScheduleResponse, index_d_ScheduleStatus as ScheduleStatus, type index_d_ScheduledAction as ScheduledAction, type index_d_ScheduledStatusInfo as ScheduledStatusInfo, type index_d_Scheduler as Scheduler, type index_d_Service as Service, type index_d_ServiceMapping as ServiceMapping, type index_d_SimpleDelay as SimpleDelay, type index_d_SpiAction as SpiAction, type index_d_StartedStatusInfo as StartedStatusInfo, type index_d_StartedStatusInfoAppDefinedActionInfo as StartedStatusInfoAppDefinedActionInfo, type index_d_StartedStatusInfoTypeInfoOneOf as StartedStatusInfoTypeInfoOneOf, index_d_Status as Status, type index_d_SwitchFilter as SwitchFilter, type index_d_SystemHelper as SystemHelper, type index_d_SystemHelperHelperOneOf as SystemHelperHelperOneOf, index_d_Target as Target, index_d_TimeUnit as TimeUnit, type index_d_Trigger as Trigger, type index_d_TriggerInfo as TriggerInfo, index_d_Type as Type, type index_d_UndeleteInfo as UndeleteInfo, index_d_Units as Units, type index_d_UpdatePendingSchedulesPayloadRequest as UpdatePendingSchedulesPayloadRequest, type index_d_UpdatePendingSchedulesPayloadResponse as UpdatePendingSchedulesPayloadResponse, type index_d_V1RunAutomationRequest as V1RunAutomationRequest, type index_d_V1RunAutomationRequestIdentifierOneOf as V1RunAutomationRequestIdentifierOneOf, type index_d_V1RunAutomationResponse as V1RunAutomationResponse, index_d_WebhookIdentityType as WebhookIdentityType, index_d_bulkCancelEvent as bulkCancelEvent, index_d_bulkReportEvent as bulkReportEvent, index_d_cancelEvent as cancelEvent, index_d_onActivationStatusChanged as onActivationStatusChanged, index_d_reportEvent as reportEvent };
1763
1763
  }
1764
1764
 
1765
1765
  export { index_d as activations };
@@ -164,48 +164,44 @@ interface CancelEventResponse$1 {
164
164
  interface ReportEventResponseNonNullableFields$1 {
165
165
  activationIds: string[];
166
166
  }
167
+ interface ApplicationErrorNonNullableFields$1 {
168
+ code: string;
169
+ description: string;
170
+ }
171
+ interface ItemMetadataNonNullableFields$1 {
172
+ originalIndex: number;
173
+ success: boolean;
174
+ error?: ApplicationErrorNonNullableFields$1;
175
+ }
176
+ interface IdempotencyNonNullableFields$1 {
177
+ key: string;
178
+ }
179
+ interface EventInfoNonNullableFields$1 {
180
+ idempotency?: IdempotencyNonNullableFields$1;
181
+ }
182
+ interface BulkReportEventResultNonNullableFields$1 {
183
+ itemMetadata?: ItemMetadataNonNullableFields$1;
184
+ eventInfo?: EventInfoNonNullableFields$1;
185
+ activationIds: string[];
186
+ }
187
+ interface BulkActionMetadataNonNullableFields$1 {
188
+ totalSuccesses: number;
189
+ totalFailures: number;
190
+ undetailedFailures: number;
191
+ }
167
192
  interface BulkReportEventResponseNonNullableFields$1 {
168
193
  triggerKey: string;
169
- results: {
170
- itemMetadata?: {
171
- originalIndex: number;
172
- success: boolean;
173
- error?: {
174
- code: string;
175
- description: string;
176
- };
177
- };
178
- eventInfo?: {
179
- idempotency?: {
180
- key: string;
181
- };
182
- };
183
- activationIds: string[];
184
- }[];
185
- bulkActionMetadata?: {
186
- totalSuccesses: number;
187
- totalFailures: number;
188
- undetailedFailures: number;
189
- };
194
+ results: BulkReportEventResultNonNullableFields$1[];
195
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
196
+ }
197
+ interface BulkCancelEventResultNonNullableFields$1 {
198
+ itemMetadata?: ItemMetadataNonNullableFields$1;
199
+ externalEntityId: string;
190
200
  }
191
201
  interface BulkCancelEventResponseNonNullableFields$1 {
192
202
  triggerKey: string;
193
- results: {
194
- itemMetadata?: {
195
- originalIndex: number;
196
- success: boolean;
197
- error?: {
198
- code: string;
199
- description: string;
200
- };
201
- };
202
- externalEntityId: string;
203
- }[];
204
- bulkActionMetadata?: {
205
- totalSuccesses: number;
206
- totalFailures: number;
207
- undetailedFailures: number;
208
- };
203
+ results: BulkCancelEventResultNonNullableFields$1[];
204
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
209
205
  }
210
206
 
211
207
  interface ReportEventRequest {
@@ -374,48 +370,44 @@ interface CancelEventResponse {
374
370
  interface ReportEventResponseNonNullableFields {
375
371
  activationIds: string[];
376
372
  }
373
+ interface ApplicationErrorNonNullableFields {
374
+ code: string;
375
+ description: string;
376
+ }
377
+ interface ItemMetadataNonNullableFields {
378
+ originalIndex: number;
379
+ success: boolean;
380
+ error?: ApplicationErrorNonNullableFields;
381
+ }
382
+ interface IdempotencyNonNullableFields {
383
+ key: string;
384
+ }
385
+ interface EventInfoNonNullableFields {
386
+ idempotency?: IdempotencyNonNullableFields;
387
+ }
388
+ interface BulkReportEventResultNonNullableFields {
389
+ itemMetadata?: ItemMetadataNonNullableFields;
390
+ eventInfo?: EventInfoNonNullableFields;
391
+ activationIds: string[];
392
+ }
393
+ interface BulkActionMetadataNonNullableFields {
394
+ totalSuccesses: number;
395
+ totalFailures: number;
396
+ undetailedFailures: number;
397
+ }
377
398
  interface BulkReportEventResponseNonNullableFields {
378
399
  triggerKey: string;
379
- results: {
380
- itemMetadata?: {
381
- originalIndex: number;
382
- success: boolean;
383
- error?: {
384
- code: string;
385
- description: string;
386
- };
387
- };
388
- eventInfo?: {
389
- idempotency?: {
390
- key: string;
391
- };
392
- };
393
- activationIds: string[];
394
- }[];
395
- bulkActionMetadata?: {
396
- totalSuccesses: number;
397
- totalFailures: number;
398
- undetailedFailures: number;
399
- };
400
+ results: BulkReportEventResultNonNullableFields[];
401
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
402
+ }
403
+ interface BulkCancelEventResultNonNullableFields {
404
+ itemMetadata?: ItemMetadataNonNullableFields;
405
+ externalEntityId: string;
400
406
  }
401
407
  interface BulkCancelEventResponseNonNullableFields {
402
408
  triggerKey: string;
403
- results: {
404
- itemMetadata?: {
405
- originalIndex: number;
406
- success: boolean;
407
- error?: {
408
- code: string;
409
- description: string;
410
- };
411
- };
412
- externalEntityId: string;
413
- }[];
414
- bulkActionMetadata?: {
415
- totalSuccesses: number;
416
- totalFailures: number;
417
- undetailedFailures: number;
418
- };
409
+ results: BulkCancelEventResultNonNullableFields[];
410
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
419
411
  }
420
412
 
421
413
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {