Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit e160d89

Browse files
committed
refactor(style): reformat source
1 parent e56f651 commit e160d89

59 files changed

Lines changed: 191 additions & 191 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

agps/deviceRequestHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ import {
33
IoTDataPlaneClient,
44
PublishCommand,
55
} from '@aws-sdk/client-iot-data-plane'
6+
import { SFNClient, StartExecutionCommand } from '@aws-sdk/client-sfn'
67
import {
7-
SQSClient,
88
SendMessageBatchCommand,
99
SendMessageBatchRequestEntry,
10+
SQSClient,
1011
} from '@aws-sdk/client-sqs'
11-
import { SFNClient, StartExecutionCommand } from '@aws-sdk/client-sfn'
12+
import { Static } from '@sinclair/typebox'
1213
import { SQSEvent, SQSMessageAttributes } from 'aws-lambda'
1314
import { isRight } from 'fp-ts/lib/These'
1415
import { v4 } from 'uuid'
1516
import { fromEnv } from '../util/fromEnv'
1617
import { cacheKey } from './cacheKey'
1718
import { AGPSDataCache, getCache } from './getCache'
18-
import { Static } from '@sinclair/typebox'
1919
import { agpsRequestSchema } from './types'
2020

2121
const {

agps/getCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { DynamoDBClient, GetItemCommand } from '@aws-sdk/client-dynamodb'
2-
import { ErrorInfo, ErrorType } from '../api/ErrorInfo'
32
import { unmarshall } from '@aws-sdk/util-dynamodb'
4-
import { Either, right, left } from 'fp-ts/lib/Either'
53
import { Static } from '@sinclair/typebox'
4+
import { Either, left, right } from 'fp-ts/lib/Either'
5+
import { ErrorInfo, ErrorType } from '../api/ErrorInfo'
66
import { agpsRequestSchema } from './types'
77

88
export type AGPSDataCache = Static<typeof agpsRequestSchema> & {

api/validateWithJSONSchema.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { validateWithJSONSchema } from './validateWithJSONSchema'
2-
import { Type, Static } from '@sinclair/typebox'
1+
import { Static, Type } from '@sinclair/typebox'
32
import { isRight, Right } from 'fp-ts/lib/Either'
43
import { isLeft } from 'fp-ts/lib/These'
4+
import { validateWithJSONSchema } from './validateWithJSONSchema'
55

66
const typedInputSchema = Type.Object(
77
{

api/validateWithJSONSchema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as E from 'fp-ts/lib/Either'
2-
import Ajv from 'ajv'
31
import { Static, TSchema } from '@sinclair/typebox'
2+
import Ajv from 'ajv'
3+
import * as E from 'fp-ts/lib/Either'
44
import { ErrorInfo, ErrorType } from './ErrorInfo'
55

66
export const validateWithJSONSchema = <T extends TSchema>(

cdk/createThingGroup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import {
1111
ListThingsInThingGroupCommand,
1212
UpdateCertificateCommand,
1313
} from '@aws-sdk/client-iot'
14-
import { CloudFormationCustomResourceEvent } from 'aws-lambda'
15-
import { paginate } from '../util/paginate'
1614
import {
1715
cfnResponse,
1816
ResponseStatus,
1917
} from '@nordicsemiconductor/cloudformation-helpers'
18+
import { CloudFormationCustomResourceEvent } from 'aws-lambda'
19+
import { paginate } from '../util/paginate'
2020

2121
const iot = new IoTClient({})
2222

cdk/helper/enabledInContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Node } from 'constructs'
21
import * as chalk from 'chalk'
2+
import { Node } from 'constructs'
33

44
const ENABLED = 'enabled'
55
const DISABLED = 'disabled'

cdk/helper/lambdas/outDir.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as path from 'path'
21
import { promises as fs } from 'fs'
2+
import * as path from 'path'
33

44
// Prepares the storage director for packed lambdas
55
export const preparePackagedLambdaStorageDir = async ({

cdk/resources/AGPSDeviceRequestHandler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import * as CloudFormation from 'aws-cdk-lib'
2+
import { Duration } from 'aws-cdk-lib'
23
import * as IAM from 'aws-cdk-lib/aws-iam'
34
import * as IoT from 'aws-cdk-lib/aws-iot'
4-
import { iotRuleSqlCheckUndefined } from '../helper/iotRuleSqlCheckUndefined'
5+
import * as Lambda from 'aws-cdk-lib/aws-lambda'
56
import * as SQS from 'aws-cdk-lib/aws-sqs'
6-
import { Duration } from 'aws-cdk-lib'
7-
import { LambdasWithLayer } from './LambdasWithLayer'
7+
import { iotRuleSqlCheckUndefined } from '../helper/iotRuleSqlCheckUndefined'
88
import { AssetTrackerLambdas } from '../stacks/AssetTracker/lambdas'
9-
import * as Lambda from 'aws-cdk-lib/aws-lambda'
10-
import { LambdaLogGroup } from './LambdaLogGroup'
119
import { AGPSResolver } from './AGPSResolver'
1210
import { AGPSStorage } from './AGPSStorage'
11+
import { LambdaLogGroup } from './LambdaLogGroup'
12+
import { LambdasWithLayer } from './LambdasWithLayer'
1313

1414
export const MAX_RESOLUTION_TIME_IN_MINUTES = 10
1515

cdk/resources/AGPSResolver.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import * as CloudFormation from 'aws-cdk-lib'
22
import * as IAM from 'aws-cdk-lib/aws-iam'
3+
import * as Lambda from 'aws-cdk-lib/aws-lambda'
34
import * as StepFunctions from 'aws-cdk-lib/aws-stepfunctions'
45
import * as StepFunctionTasks from 'aws-cdk-lib/aws-stepfunctions-tasks'
5-
import * as Lambda from 'aws-cdk-lib/aws-lambda'
6-
import { LambdaLogGroup } from './LambdaLogGroup'
7-
import { LambdasWithLayer } from './LambdasWithLayer'
8-
import { CORE_STACK_NAME } from '../stacks/stackName'
96
import { enabledInContext } from '../helper/enabledInContext'
107
import { AssetTrackerLambdas } from '../stacks/AssetTracker/lambdas'
8+
import { CORE_STACK_NAME } from '../stacks/stackName'
119
import { AGPSStorage } from './AGPSStorage'
10+
import { LambdaLogGroup } from './LambdaLogGroup'
11+
import { LambdasWithLayer } from './LambdasWithLayer'
1212
import { logToCloudWatch } from './logToCloudWatch'
1313

1414
/**

cdk/resources/CellGeolocation.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import * as CloudFormation from 'aws-cdk-lib'
2-
import * as IAM from 'aws-cdk-lib/aws-iam'
32
import * as DynamoDB from 'aws-cdk-lib/aws-dynamodb'
3+
import * as IAM from 'aws-cdk-lib/aws-iam'
4+
import * as Lambda from 'aws-cdk-lib/aws-lambda'
45
import * as StepFunctions from 'aws-cdk-lib/aws-stepfunctions'
56
import * as StepFunctionTasks from 'aws-cdk-lib/aws-stepfunctions-tasks'
6-
import * as Lambda from 'aws-cdk-lib/aws-lambda'
7-
import { logToCloudWatch } from './logToCloudWatch'
8-
import { LambdaLogGroup } from './LambdaLogGroup'
9-
import { LambdasWithLayer } from './LambdasWithLayer'
10-
import { CORE_STACK_NAME } from '../stacks/stackName'
117
import { enabledInContext } from '../helper/enabledInContext'
128
import { AssetTrackerLambdas } from '../stacks/AssetTracker/lambdas'
9+
import { CORE_STACK_NAME } from '../stacks/stackName'
1310
import { DeviceCellGeolocations } from './DeviceCellGeolocations'
11+
import { LambdaLogGroup } from './LambdaLogGroup'
12+
import { LambdasWithLayer } from './LambdasWithLayer'
13+
import { logToCloudWatch } from './logToCloudWatch'
1414

1515
/**
1616
* Describes the step functions which resolves the geolocation of LTE/NB-IoT network cells using third-party location providers

0 commit comments

Comments
 (0)