@deliverart/sdk-js-integration 2.29.0 → 2.31.0

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/README.md CHANGED
@@ -67,6 +67,41 @@ const integration = await sdk.call(new GetIntegrationDetails('integration-123'))
67
67
 
68
68
  ---
69
69
 
70
+ ### Integration Operational Issues
71
+
72
+ Integration issues expose a provider-neutral workflow for operational anomalies. Issues include
73
+ their flow scope, severity, status, remote resource key, consecutive failure count, operator
74
+ acknowledgement, resolution, and last successful execution.
75
+
76
+ ```typescript
77
+ import {
78
+ AcknowledgeIntegrationIssue,
79
+ GetAdminIntegrationIssues,
80
+ ResolveIntegrationIssue,
81
+ } from '@deliverart/sdk-js-integration'
82
+
83
+ const issues = await sdk.call(
84
+ new GetAdminIntegrationIssues({
85
+ query: {
86
+ service: ['deliveroo', 'glovo'],
87
+ status: 'attention_required',
88
+ severity: ['error', 'critical'],
89
+ 'resolvedAt[exists]': false,
90
+ page: 1,
91
+ },
92
+ }),
93
+ )
94
+
95
+ await sdk.call(new AcknowledgeIntegrationIssue('integration-id', 'issue-id'))
96
+ await sdk.call(new ResolveIntegrationIssue('integration-id', 'issue-id'))
97
+ ```
98
+
99
+ Both workflow actions send an empty `application/merge-patch+json` request. The paginated
100
+ `/integration_issues` collection is reserved for integration administrators; the existing
101
+ `/integrations/{id}/issues` collection remains available for integration-scoped views.
102
+
103
+ ---
104
+
70
105
  ### ActivateIntegration
71
106
 
72
107
  Request activation of an integration.