Skip to content

Commit 13d26c0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e9cc5e6a of spec repo
1 parent c188a6b commit 13d26c0

8 files changed

+58
-31
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-31 14:19:56.991956",
8-
"spec_repo_commit": "47da2e01"
7+
"regenerated": "2024-10-31 14:51:27.376674",
8+
"spec_repo_commit": "e9cc5e6a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-31 14:19:57.012102",
13-
"spec_repo_commit": "47da2e01"
12+
"regenerated": "2024-10-31 14:51:27.396814",
13+
"spec_repo_commit": "e9cc5e6a"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

+26-15
Original file line numberDiff line numberDiff line change
@@ -15530,7 +15530,7 @@ components:
1553015530
$ref: '#/components/schemas/SyntheticsMobileStepParamsDirection'
1553115531
element:
1553215532
$ref: '#/components/schemas/SyntheticsMobileStepParamsElement'
15533-
enable:
15533+
enabled:
1553415534
description: Boolean to change the state of the wifi for a `toggleWiFi`
1553515535
step type.
1553615536
type: boolean
@@ -15546,8 +15546,7 @@ components:
1554615546
step type.
1554715547
type: string
1554815548
value:
15549-
description: Values used in the step. Used in multiple step types.
15550-
type: string
15549+
$ref: '#/components/schemas/SyntheticsMobileStepParamsValue'
1555115550
variable:
1555215551
$ref: '#/components/schemas/SyntheticsMobileStepParamsVariable'
1555315552
withEnter:
@@ -15556,12 +15555,12 @@ components:
1555615555
type: boolean
1555715556
x:
1555815557
description: Amount to scroll by on the `x` axis for a `scroll` step type.
15559-
format: int64
15560-
type: integer
15558+
format: double
15559+
type: number
1556115560
y:
1556215561
description: Amount to scroll by on the `y` axis for a `scroll` step type.
15563-
format: int64
15564-
type: integer
15562+
format: double
15563+
type: number
1556515564
type: object
1556615565
SyntheticsMobileStepParamsDirection:
1556715566
description: The direction of the scroll for a `scrollToElement` step type.
@@ -15615,12 +15614,12 @@ components:
1561515614
properties:
1561615615
x:
1561715616
description: The `relativePosition` on the `x` axis for the element.
15618-
format: int64
15619-
type: integer
15617+
format: double
15618+
type: number
1562015619
y:
1562115620
description: The `relativePosition` on the `y` axis for the element.
15622-
format: int64
15623-
type: integer
15621+
format: double
15622+
type: number
1562415623
type: object
1562515624
SyntheticsMobileStepParamsElementUserLocator:
1562615625
description: User locator to find the element.
@@ -15670,13 +15669,25 @@ components:
1567015669
properties:
1567115670
x:
1567215671
description: The `x` position for the flick.
15673-
format: int64
15674-
type: integer
15672+
format: double
15673+
type: number
1567515674
y:
1567615675
description: The `y` position for the flick.
15677-
format: int64
15678-
type: integer
15676+
format: double
15677+
type: number
1567915678
type: object
15679+
SyntheticsMobileStepParamsValue:
15680+
description: Values used in the step for in multiple step types.
15681+
oneOf:
15682+
- $ref: '#/components/schemas/SyntheticsMobileStepParamsValueString'
15683+
- $ref: '#/components/schemas/SyntheticsMobileStepParamsValueNumber'
15684+
SyntheticsMobileStepParamsValueNumber:
15685+
description: Value used in the step for in multiple step types.
15686+
format: int64
15687+
type: integer
15688+
SyntheticsMobileStepParamsValueString:
15689+
description: Value used in the step for in multiple step types.
15690+
type: string
1568015691
SyntheticsMobileStepParamsVariable:
1568115692
description: Variable object for `extractVariable` step type.
1568215693
properties:

packages/datadog-api-client-v1/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ export { SyntheticsMobileStepParamsElementUserLocator } from "./models/Synthetic
967967
export { SyntheticsMobileStepParamsElementUserLocatorValuesItems } from "./models/SyntheticsMobileStepParamsElementUserLocatorValuesItems";
968968
export { SyntheticsMobileStepParamsElementUserLocatorValuesItemsType } from "./models/SyntheticsMobileStepParamsElementUserLocatorValuesItemsType";
969969
export { SyntheticsMobileStepParamsPositionsItems } from "./models/SyntheticsMobileStepParamsPositionsItems";
970+
export { SyntheticsMobileStepParamsValue } from "./models/SyntheticsMobileStepParamsValue";
970971
export { SyntheticsMobileStepParamsVariable } from "./models/SyntheticsMobileStepParamsVariable";
971972
export { SyntheticsMobileStepType } from "./models/SyntheticsMobileStepType";
972973
export { SyntheticsMobileTest } from "./models/SyntheticsMobileTest";

packages/datadog-api-client-v1/models/ObjectSerializer.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2420,6 +2420,7 @@ const oneOfMap: { [index: string]: string[] } = {
24202420
"SyntheticsBasicAuthOauthClient",
24212421
"SyntheticsBasicAuthOauthROP",
24222422
],
2423+
SyntheticsMobileStepParamsValue: ["string", "number"],
24232424
SyntheticsTestRequestPort: ["number", "string"],
24242425
TableWidgetTextFormatReplace: [
24252426
"TableWidgetTextFormatReplaceAll",

packages/datadog-api-client-v1/models/SyntheticsMobileStepParams.ts

+9-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { SyntheticsCheckType } from "./SyntheticsCheckType";
77
import { SyntheticsMobileStepParamsDirection } from "./SyntheticsMobileStepParamsDirection";
88
import { SyntheticsMobileStepParamsElement } from "./SyntheticsMobileStepParamsElement";
99
import { SyntheticsMobileStepParamsPositionsItems } from "./SyntheticsMobileStepParamsPositionsItems";
10+
import { SyntheticsMobileStepParamsValue } from "./SyntheticsMobileStepParamsValue";
1011
import { SyntheticsMobileStepParamsVariable } from "./SyntheticsMobileStepParamsVariable";
1112

1213
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -34,7 +35,7 @@ export class SyntheticsMobileStepParams {
3435
/**
3536
* Boolean to change the state of the wifi for a `toggleWiFi` step type.
3637
*/
37-
"enable"?: boolean;
38+
"enabled"?: boolean;
3839
/**
3940
* Maximum number of scrolls to do for a `scrollToElement` step type.
4041
*/
@@ -48,9 +49,9 @@ export class SyntheticsMobileStepParams {
4849
*/
4950
"subtestPublicId"?: string;
5051
/**
51-
* Values used in the step. Used in multiple step types.
52+
* Values used in the step for in multiple step types.
5253
*/
53-
"value"?: string;
54+
"value"?: SyntheticsMobileStepParamsValue;
5455
/**
5556
* Variable object for `extractVariable` step type.
5657
*/
@@ -101,8 +102,8 @@ export class SyntheticsMobileStepParams {
101102
baseName: "element",
102103
type: "SyntheticsMobileStepParamsElement",
103104
},
104-
enable: {
105-
baseName: "enable",
105+
enabled: {
106+
baseName: "enabled",
106107
type: "boolean",
107108
},
108109
maxScrolls: {
@@ -120,7 +121,7 @@ export class SyntheticsMobileStepParams {
120121
},
121122
value: {
122123
baseName: "value",
123-
type: "string",
124+
type: "SyntheticsMobileStepParamsValue",
124125
},
125126
variable: {
126127
baseName: "variable",
@@ -133,12 +134,12 @@ export class SyntheticsMobileStepParams {
133134
x: {
134135
baseName: "x",
135136
type: "number",
136-
format: "int64",
137+
format: "double",
137138
},
138139
y: {
139140
baseName: "y",
140141
type: "number",
141-
format: "int64",
142+
format: "double",
142143
},
143144
additionalProperties: {
144145
baseName: "additionalProperties",

packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsElementRelativePosition.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ export class SyntheticsMobileStepParamsElementRelativePosition {
3838
x: {
3939
baseName: "x",
4040
type: "number",
41-
format: "int64",
41+
format: "double",
4242
},
4343
y: {
4444
baseName: "y",
4545
type: "number",
46-
format: "int64",
46+
format: "double",
4747
},
4848
additionalProperties: {
4949
baseName: "additionalProperties",

packages/datadog-api-client-v1/models/SyntheticsMobileStepParamsPositionsItems.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ export class SyntheticsMobileStepParamsPositionsItems {
3838
x: {
3939
baseName: "x",
4040
type: "number",
41-
format: "int64",
41+
format: "double",
4242
},
4343
y: {
4444
baseName: "y",
4545
type: "number",
46-
format: "int64",
46+
format: "double",
4747
},
4848
additionalProperties: {
4949
baseName: "additionalProperties",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { UnparsedObject } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* Values used in the step for in multiple step types.
11+
*/
12+
13+
export type SyntheticsMobileStepParamsValue = string | number | UnparsedObject;

0 commit comments

Comments
 (0)