Skip to content

Commit

Permalink
updated with respect to sort-imports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
bzhang0 committed Dec 8, 2021
1 parent 1ad665c commit db53d96
Show file tree
Hide file tree
Showing 9 changed files with 259 additions and 260 deletions.
424 changes: 212 additions & 212 deletions sdk/agrifood/agrifood-farming-rest/src/farmBeats.ts

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sdk/agrifood/agrifood-farming-rest/src/getPoller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Licensed under the MIT license.

import {
getLongRunningPoller,
PollerLike,
PollOperationState,
PollerLike,
PollerOptions,
getLongRunningPoller
} from "@azure-rest/core-client-lro";
import { HttpResponse } from "@azure-rest/core-client";
import { FarmBeatsRestClient } from "./farmBeats";
import { HttpResponse } from "@azure-rest/core-client";

/**
* Gets a poller object to help polling for a long running operation status.
Expand Down
2 changes: 1 addition & 1 deletion sdk/agrifood/agrifood-farming-rest/src/paging.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { paginateResponse, PagedAsyncIterableIterator } from "@azure-rest/core-client-paging";
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
import { PagedAsyncIterableIterator, paginateResponse } from "@azure-rest/core-client-paging";

/**
* Helper type to extract the type of an array
Expand Down
14 changes: 7 additions & 7 deletions sdk/agrifood/agrifood-farming-rest/src/parameters.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { RequestParameters } from "@azure-rest/core-client";
import {
ApplicationData,
SearchBoundaryQuery,
Boundary,
Crop,
CropVariety,
Farmer,
FarmOperationDataIngestionJob,
Farm,
FarmOperationDataIngestionJob,
Farmer,
Field,
HarvestData,
ImageProcessingRasterizeJob,
OAuthProvider,
OAuthConnectRequest,
OAuthProvider,
PlantingData,
SatelliteDataIngestionJob,
SeasonalField,
SearchBoundaryQuery,
Season,
SeasonalField,
TillageData,
WeatherDataIngestionJob,
WeatherDataDeleteJob,
WeatherDataIngestionJob
} from "./models";
import { RequestParameters } from "@azure-rest/core-client";

export interface ApplicationDataListByFarmerIdQueryParamProperties {
/** Minimum average amount of material applied during the application (inclusive). */
Expand Down
44 changes: 22 additions & 22 deletions sdk/agrifood/agrifood-farming-rest/src/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,45 @@
// Licensed under the MIT license.

import {
ApplicationDataListResponse,
ErrorResponse,
ApplicationData,
AttachmentListResponse,
ApplicationDataListResponse,
Attachment,
BoundaryListResponse,
CascadeDeleteJob,
AttachmentListResponse,
Boundary,
BoundaryListResponse,
BoundaryOverlapResponse,
CropListResponse,
CascadeDeleteJob,
Crop,
CropVarietyListResponse,
CropListResponse,
CropVariety,
FarmerListResponse,
Farmer,
FarmOperationDataIngestionJob,
FarmListResponse,
CropVarietyListResponse,
ErrorResponse,
Farm,
FieldListResponse,
FarmListResponse,
FarmOperationDataIngestionJob,
Farmer,
FarmerListResponse,
Field,
HarvestDataListResponse,
FieldListResponse,
HarvestData,
HarvestDataListResponse,
ImageProcessingRasterizeJob,
OAuthProviderListResponse,
OAuthProvider,
OAuthProviderListResponse,
OAuthTokenListResponse,
PlantingDataListResponse,
PlantingData,
SceneListResponse,
PlantingDataListResponse,
SatelliteDataIngestionJob,
SeasonalFieldListResponse,
SeasonalField,
SeasonListResponse,
SceneListResponse,
Season,
TillageDataListResponse,
SeasonListResponse,
SeasonalField,
SeasonalFieldListResponse,
TillageData,
WeatherDataListResponse,
WeatherDataIngestionJob,
TillageDataListResponse,
WeatherDataDeleteJob,
WeatherDataIngestionJob,
WeatherDataListResponse
} from "./models";
import { HttpResponse } from "@azure-rest/core-client";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { FarmBeatsRestClient, getPoller } from "../../src";
import { Recorder } from "@azure-tools/test-recorder";
import { isNode } from "@azure/core-util";

import { assert } from "chai";
import { FarmBeatsRestClient, getPoller } from "../../src";
import { createClient, createRecorder } from "./utils/recordedClient";
import { Context } from "mocha";
import { Recorder } from "@azure-tools/test-recorder";
import { assert } from "chai";
import { isNode } from "@azure/core-util";

const startDateTime = new Date("2020-02-01T08:00:00.000Z");
const endDateTime = new Date("2020-03-02T08:00:00.000Z");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { FarmBeatsRestClient } from "../../src";
import { Recorder } from "@azure-tools/test-recorder";

import { assert } from "chai";
import { createClient, createRecorder } from "./utils/recordedClient";
import { Context } from "mocha";
import { FarmBeatsRestClient } from "../../src";
import { Recorder } from "@azure-tools/test-recorder";
import { assert } from "chai";

const farmerId = "test-farmer-1";
const testFarmer = {
Expand Down
6 changes: 3 additions & 3 deletions sdk/agrifood/agrifood-farming-rest/test/public/smoke.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { FarmBeatsRestClient, Farmer, paginate } from "../../src";
import { Recorder } from "@azure-tools/test-recorder";

import { assert } from "chai";
import { FarmBeatsRestClient, Farmer, paginate } from "../../src";
import { createClient, createRecorder } from "./utils/recordedClient";
import { Context } from "mocha";
import { Recorder } from "@azure-tools/test-recorder";
import { assert } from "chai";

const farmerId = "test-farmer";
const boundaryId = "test-boundary";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@

/// <reference lib="esnext.asynciterable" />

import { Context } from "mocha";
import "./env";

import { env, Recorder, record, RecorderEnvironmentSetup } from "@azure-tools/test-recorder";
import FarmBeats, { FarmBeatsRestClient } from "../../../src";
import { ClientSecretCredential } from "@azure/identity";

import "./env";
import { Recorder, RecorderEnvironmentSetup, env, record } from "@azure-tools/test-recorder";
import { ClientOptions } from "@azure-rest/core-client";
import { ClientSecretCredential } from "@azure/identity";
import { Context } from "mocha";

const replaceableVariables: { [k: string]: string } = {
FARMBEATS_ENDPOINT: "https://endpoint",
Expand Down

0 comments on commit db53d96

Please sign in to comment.