Skip to content

Commit e15b4bf

Browse files
committed
[REF] upgrade dependencies
1 parent 440a1bb commit e15b4bf

10 files changed

+1095
-1122
lines changed

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
node_modules
33

44
# don't lint build output (make sure it's set to your correct build folder name)
5-
lib
5+
# lib
66

77
# don't lint nyc coverage output
88
coverage

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
'@typescript-eslint/no-explicit-any': 'off',
2222
'@typescript-eslint/no-use-before-define': 'off',
2323
'@typescript-eslint/no-non-null-assertion': 'off',
24+
"@typescript-eslint/no-empty-function": "off",
2425
'@typescript-eslint/ban-types': ['error', {
2526
'types': {
2627
'Function': false,

lib/client/common/enums/videoPosition.enum.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ export enum VideoPositionType {
55
/**
66
* The value returned if the actual value is not exposed by the requested API version.
77
*/
8-
UNKNOWN = "UNKNOWN",
8+
UNKNOWN = 'UNKNOWN',
99

1010
/**
1111
* This position targets all of the above video positions.
1212
*/
13-
ALL = "ALL",
13+
ALL = 'ALL',
1414

1515
/**
1616
* The position defined as showing before the video starts playing.
1717
*/
18-
PREROLL = "PREROLL",
18+
PREROLL = 'PREROLL',
1919

2020
/**
2121
* The position defined as showing within the middle of the playing video.
2222
*/
23-
MIDROLL = "MIDROLL",
23+
MIDROLL = 'MIDROLL',
2424

2525
/**
2626
* The position defined as showing after the video is completed.
2727
*/
28-
POSTROLL = "POSTROLL",
28+
POSTROLL = 'POSTROLL',
2929
}
3030

3131
/**
@@ -35,10 +35,10 @@ export enum VideoBumperType {
3535
/**
3636
* Represents the bumper position before the ad pod.
3737
*/
38-
BEFORE = "BEFORE",
38+
BEFORE = 'BEFORE',
3939

4040
/**
4141
* Represents the bumper position after the ad pod.
4242
*/
43-
AFTER = "AFTER",
44-
}
43+
AFTER = 'AFTER',
44+
}

lib/client/common/types/customCriteria.type.ts

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
CmsMetadataCriteriaComparisonOperator,
3-
ComparisonOperator,
4-
LogicalOperator,
5-
} from '../enums';
1+
import { CmsMetadataCriteriaComparisonOperator, ComparisonOperator, LogicalOperator } from '../enums';
62

73
/**
84
* A CustomCriteria object is used to perform custom criteria targeting on custom targeting keys of type CustomTargetingKey.Type.PREDEFINED or CustomTargetingKey.Type.FREEFORM.
@@ -66,10 +62,5 @@ export type CustomCriteriaSet = {
6662
/**
6763
* The custom criteria. This attribute is required.
6864
*/
69-
children: (
70-
| CustomCriteriaSet
71-
| CustomCriteria
72-
| CmsMetadataCriteria
73-
| AudienceSegmentCriteria
74-
)[];
65+
children: (CustomCriteriaSet | CustomCriteria | CmsMetadataCriteria | AudienceSegmentCriteria)[];
7566
};

lib/client/common/types/grpSettings.type.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import {
2-
GrpProvider,
3-
GrpTargetGender,
4-
NielsenCtvPacingType,
5-
PacingDeviceCategorizationType,
6-
} from '../enums';
1+
import { GrpProvider, GrpTargetGender, NielsenCtvPacingType, PacingDeviceCategorizationType } from '../enums';
72

83
/**
94
* GrpSettings contains information for a line item that will have a target demographic when serving.

lib/client/services/forecast/forecast.service.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,14 @@ export class ForecastService implements ForecastServiceOperations {
4141
return this._client.getDeliveryForecast({ lineItems, forecastOptions });
4242
}
4343

44-
getDeliveryForecastByIds(
45-
lineItemIds: number[],
46-
forecastOptions: DeliveryForecastOptions,
47-
): Promise<DeliveryForecast> {
44+
getDeliveryForecastByIds(lineItemIds: number[], forecastOptions: DeliveryForecastOptions): Promise<DeliveryForecast> {
4845
return this._client.getDeliveryForecastByIds({
4946
lineItemIds,
5047
forecastOptions,
5148
});
5249
}
5350

54-
getTrafficData(
55-
trafficDataRequest: TrafficDataRequest,
56-
): Promise<TrafficDataResponse> {
51+
getTrafficData(trafficDataRequest: TrafficDataRequest): Promise<TrafficDataResponse> {
5752
return this._client.getTrafficData({ trafficDataRequest });
5853
}
5954
}

lib/client/services/forecast/forecastService.interface.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ export interface ForecastServiceOperations {
6262
* @param lineItemIds the IDs of line items to be forecasted for delivery
6363
* @param forecastOptions options controlling the forecast
6464
*/
65-
getDeliveryForecastByIds(
66-
lineItemIds: number[],
67-
forecastOptions: DeliveryForecastOptions,
68-
): Promise<DeliveryForecast>;
65+
getDeliveryForecastByIds(lineItemIds: number[], forecastOptions: DeliveryForecastOptions): Promise<DeliveryForecast>;
6966
/**
7067
* Returns forecasted and historical traffic data for the segment of traffic specified by the provided request.
7168
*
@@ -74,7 +71,5 @@ export interface ForecastServiceOperations {
7471
* @param trafficDataRequest the request specifying the segment of traffic for which data should be returned
7572
* @returns a dto containing forecasted and historical traffic data for the specified segment of traffic
7673
*/
77-
getTrafficData(
78-
trafficDataRequest: TrafficDataRequest,
79-
): Promise<TrafficDataResponse>;
74+
getTrafficData(trafficDataRequest: TrafficDataRequest): Promise<TrafficDataResponse>;
8075
}

lib/common/types/statement.type.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,7 @@ export type String_ValueMapEntry = {
7070
value: Value;
7171
};
7272

73-
export type Value =
74-
| string
75-
| number
76-
| object
77-
| boolean
78-
| DateTime
79-
| Date
80-
| Value[];
73+
export type Value = string | number | object | boolean | DateTime | Date | Value[];
8174

8275
/**
8376
* Captures a page of any objects.

0 commit comments

Comments
 (0)