@centrali-io/centrali-sdk 9.14.0 → 9.16.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 +4 -0
- package/dist/index.d.ts +33 -8
- package/package.json +1 -1
- package/src/types/insights.ts +8 -2
- package/src/types/orchestrations.ts +1 -0
- package/src/types/realtime.ts +16 -4
- package/src/types/validation.ts +8 -2
package/README.md
CHANGED
|
@@ -24,6 +24,10 @@ await client.validation.getSummary('orders');
|
|
|
24
24
|
await client.validation.triggerScan('orders');
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
> **Deprecated:** `structureSlug` is deprecated since 9.15.0 and will be removed
|
|
28
|
+
> in 10.0.0, across every API and type in this SDK. Use `recordSlug`, which
|
|
29
|
+
> carries the same value.
|
|
30
|
+
|
|
27
31
|
`structureSlug` remains accepted as a legacy alias. When both names are supplied,
|
|
28
32
|
nonempty values must match; conflicting aliases are rejected asynchronously. Empty
|
|
29
33
|
list/summary filters are treated as omitted for backward compatibility. The SDK sends both names for
|
package/dist/index.d.ts
CHANGED
|
@@ -514,7 +514,10 @@ interface RealtimeRecordEvent {
|
|
|
514
514
|
* Validation suggestion data nested in the event.
|
|
515
515
|
*/
|
|
516
516
|
interface ValidationSuggestionData {
|
|
517
|
-
/**
|
|
517
|
+
/**
|
|
518
|
+
* Structure slug
|
|
519
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
520
|
+
*/
|
|
518
521
|
structureSlug: string;
|
|
519
522
|
/**
|
|
520
523
|
* Collection slug; same value as `structureSlug`. Optional because
|
|
@@ -558,7 +561,10 @@ interface RealtimeValidationSuggestionEvent {
|
|
|
558
561
|
* Validation batch data nested in the event.
|
|
559
562
|
*/
|
|
560
563
|
interface ValidationBatchData {
|
|
561
|
-
/**
|
|
564
|
+
/**
|
|
565
|
+
* Structure slug that was scanned
|
|
566
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
567
|
+
*/
|
|
562
568
|
structureSlug: string;
|
|
563
569
|
/**
|
|
564
570
|
* Collection slug; same value as `structureSlug`. Optional because
|
|
@@ -606,7 +612,10 @@ interface RealtimeValidationBatchEvent {
|
|
|
606
612
|
interface AnomalyInsightData {
|
|
607
613
|
/** Structure ID */
|
|
608
614
|
structureId: string;
|
|
609
|
-
/**
|
|
615
|
+
/**
|
|
616
|
+
* Structure slug
|
|
617
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
618
|
+
*/
|
|
610
619
|
structureSlug: string;
|
|
611
620
|
/**
|
|
612
621
|
* Collection slug; same value as `structureSlug`. Optional because
|
|
@@ -656,7 +665,10 @@ interface RealtimeAnomalyInsightEvent {
|
|
|
656
665
|
interface AnomalyDetectionData {
|
|
657
666
|
/** Structure ID */
|
|
658
667
|
structureId: string;
|
|
659
|
-
/**
|
|
668
|
+
/**
|
|
669
|
+
* Structure slug
|
|
670
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
671
|
+
*/
|
|
660
672
|
structureSlug: string;
|
|
661
673
|
/**
|
|
662
674
|
* Collection slug; same value as `structureSlug`. Optional because
|
|
@@ -1639,6 +1651,7 @@ interface OrchestrationTrigger {
|
|
|
1639
1651
|
* Legacy alias for `recordSlug`. If both are sent they must match, so when
|
|
1640
1652
|
* editing a trigger read from the API, change `recordSlug` and drop
|
|
1641
1653
|
* `structureSlug` (or change both).
|
|
1654
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
1642
1655
|
*/
|
|
1643
1656
|
structureSlug?: string;
|
|
1644
1657
|
/** Schedule type for scheduled triggers */
|
|
@@ -2626,7 +2639,10 @@ interface AnomalyInsight {
|
|
|
2626
2639
|
structureId: string;
|
|
2627
2640
|
/** Collection slug. Optional because older servers return only `structureSlug`. */
|
|
2628
2641
|
recordSlug?: string;
|
|
2629
|
-
/**
|
|
2642
|
+
/**
|
|
2643
|
+
* Legacy name for `recordSlug`; carries the same value.
|
|
2644
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
2645
|
+
*/
|
|
2630
2646
|
structureSlug: string;
|
|
2631
2647
|
/** Batch ID if created in batch */
|
|
2632
2648
|
batchId: string | null;
|
|
@@ -2669,7 +2685,10 @@ interface ListInsightsOptions {
|
|
|
2669
2685
|
type?: InsightType;
|
|
2670
2686
|
/** Filter by collection slug */
|
|
2671
2687
|
recordSlug?: string;
|
|
2672
|
-
/**
|
|
2688
|
+
/**
|
|
2689
|
+
* Legacy alias of `recordSlug`. If both are supplied they must match.
|
|
2690
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
2691
|
+
*/
|
|
2673
2692
|
structureSlug?: string;
|
|
2674
2693
|
/** Maximum results */
|
|
2675
2694
|
limit?: number;
|
|
@@ -2915,7 +2934,10 @@ interface ValidationSuggestion {
|
|
|
2915
2934
|
interface ListValidationSuggestionsOptions {
|
|
2916
2935
|
/** Filter by collection slug. Empty aliases are omitted; nonempty aliases must match. */
|
|
2917
2936
|
recordSlug?: string;
|
|
2918
|
-
/**
|
|
2937
|
+
/**
|
|
2938
|
+
* Legacy alias for recordSlug.
|
|
2939
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
2940
|
+
*/
|
|
2919
2941
|
structureSlug?: string;
|
|
2920
2942
|
/** Filter by record ID */
|
|
2921
2943
|
recordId?: string;
|
|
@@ -3019,7 +3041,10 @@ interface BulkOperationResult {
|
|
|
3019
3041
|
interface ValidationPendingCount {
|
|
3020
3042
|
/** Collection slug. Absent on older servers. */
|
|
3021
3043
|
recordSlug?: string;
|
|
3022
|
-
/**
|
|
3044
|
+
/**
|
|
3045
|
+
* Legacy alias for the collection slug.
|
|
3046
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
3047
|
+
*/
|
|
3023
3048
|
structureSlug: string;
|
|
3024
3049
|
pendingCount: number;
|
|
3025
3050
|
}
|
package/package.json
CHANGED
package/src/types/insights.ts
CHANGED
|
@@ -29,7 +29,10 @@ export interface AnomalyInsight {
|
|
|
29
29
|
structureId: string;
|
|
30
30
|
/** Collection slug. Optional because older servers return only `structureSlug`. */
|
|
31
31
|
recordSlug?: string;
|
|
32
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Legacy name for `recordSlug`; carries the same value.
|
|
34
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
35
|
+
*/
|
|
33
36
|
structureSlug: string;
|
|
34
37
|
/** Batch ID if created in batch */
|
|
35
38
|
batchId: string | null;
|
|
@@ -73,7 +76,10 @@ export interface ListInsightsOptions {
|
|
|
73
76
|
type?: InsightType;
|
|
74
77
|
/** Filter by collection slug */
|
|
75
78
|
recordSlug?: string;
|
|
76
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Legacy alias of `recordSlug`. If both are supplied they must match.
|
|
81
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
82
|
+
*/
|
|
77
83
|
structureSlug?: string;
|
|
78
84
|
/** Maximum results */
|
|
79
85
|
limit?: number;
|
|
@@ -53,6 +53,7 @@ export interface OrchestrationTrigger {
|
|
|
53
53
|
* Legacy alias for `recordSlug`. If both are sent they must match, so when
|
|
54
54
|
* editing a trigger read from the API, change `recordSlug` and drop
|
|
55
55
|
* `structureSlug` (or change both).
|
|
56
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
56
57
|
*/
|
|
57
58
|
structureSlug?: string;
|
|
58
59
|
|
package/src/types/realtime.ts
CHANGED
|
@@ -62,7 +62,10 @@ export interface RealtimeRecordEvent {
|
|
|
62
62
|
* Validation suggestion data nested in the event.
|
|
63
63
|
*/
|
|
64
64
|
export interface ValidationSuggestionData {
|
|
65
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* Structure slug
|
|
67
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
68
|
+
*/
|
|
66
69
|
structureSlug: string;
|
|
67
70
|
/**
|
|
68
71
|
* Collection slug; same value as `structureSlug`. Optional because
|
|
@@ -108,7 +111,10 @@ export interface RealtimeValidationSuggestionEvent {
|
|
|
108
111
|
* Validation batch data nested in the event.
|
|
109
112
|
*/
|
|
110
113
|
export interface ValidationBatchData {
|
|
111
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* Structure slug that was scanned
|
|
116
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
117
|
+
*/
|
|
112
118
|
structureSlug: string;
|
|
113
119
|
/**
|
|
114
120
|
* Collection slug; same value as `structureSlug`. Optional because
|
|
@@ -158,7 +164,10 @@ export interface RealtimeValidationBatchEvent {
|
|
|
158
164
|
export interface AnomalyInsightData {
|
|
159
165
|
/** Structure ID */
|
|
160
166
|
structureId: string;
|
|
161
|
-
/**
|
|
167
|
+
/**
|
|
168
|
+
* Structure slug
|
|
169
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
170
|
+
*/
|
|
162
171
|
structureSlug: string;
|
|
163
172
|
/**
|
|
164
173
|
* Collection slug; same value as `structureSlug`. Optional because
|
|
@@ -210,7 +219,10 @@ export interface RealtimeAnomalyInsightEvent {
|
|
|
210
219
|
export interface AnomalyDetectionData {
|
|
211
220
|
/** Structure ID */
|
|
212
221
|
structureId: string;
|
|
213
|
-
/**
|
|
222
|
+
/**
|
|
223
|
+
* Structure slug
|
|
224
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
225
|
+
*/
|
|
214
226
|
structureSlug: string;
|
|
215
227
|
/**
|
|
216
228
|
* Collection slug; same value as `structureSlug`. Optional because
|
package/src/types/validation.ts
CHANGED
|
@@ -63,7 +63,10 @@ export interface ValidationSuggestion {
|
|
|
63
63
|
export interface ListValidationSuggestionsOptions {
|
|
64
64
|
/** Filter by collection slug. Empty aliases are omitted; nonempty aliases must match. */
|
|
65
65
|
recordSlug?: string;
|
|
66
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* Legacy alias for recordSlug.
|
|
68
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
69
|
+
*/
|
|
67
70
|
structureSlug?: string;
|
|
68
71
|
/** Filter by record ID */
|
|
69
72
|
recordId?: string;
|
|
@@ -172,7 +175,10 @@ export interface BulkOperationResult {
|
|
|
172
175
|
export interface ValidationPendingCount {
|
|
173
176
|
/** Collection slug. Absent on older servers. */
|
|
174
177
|
recordSlug?: string;
|
|
175
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Legacy alias for the collection slug.
|
|
180
|
+
* @deprecated Since 9.15.0. Use `recordSlug`, which carries the same value. Will be removed in 10.0.0.
|
|
181
|
+
*/
|
|
176
182
|
structureSlug: string;
|
|
177
183
|
pendingCount: number;
|
|
178
184
|
}
|