Skip to content

Commit

Permalink
- code-gen: ts inline request/response bodies fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Nov 28, 2023
1 parent 7417518 commit f3ff9ae
Show file tree
Hide file tree
Showing 8,308 changed files with 38,069 additions and 89,765 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions src/admin/edge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// eslint-disable
// Generated by Microsoft Kiota
import { createEdgeFromDiscriminatorValue, deserializeIntoEdge, serializeEdge, type Edge } from '../../models/edge';
import { type ODataError } from '../../models/oDataErrors/';
import { type ODataError } from '../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError';
import { InternetExplorerModeRequestBuilder } from './internetExplorerMode/';
import { InternetExplorerModeRequestBuilder } from './internetExplorerMode';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface EdgeRequestBuilderGetQueryParameters {
Expand Down
4 changes: 2 additions & 2 deletions src/admin/edge/internetExplorerMode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// eslint-disable
// Generated by Microsoft Kiota
import { createInternetExplorerModeFromDiscriminatorValue, deserializeIntoInternetExplorerMode, serializeInternetExplorerMode, type InternetExplorerMode } from '../../../models/internetExplorerMode';
import { type ODataError } from '../../../models/oDataErrors/';
import { type ODataError } from '../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError';
import { SiteListsRequestBuilder } from './siteLists/';
import { SiteListsRequestBuilder } from './siteLists';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface InternetExplorerModeRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type ODataError } from '../../../../../models/oDataErrors/';
import { type ODataError } from '../../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

Expand Down
8 changes: 4 additions & 4 deletions src/admin/edge/internetExplorerMode/siteLists/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type BrowserSiteListCollectionResponse } from '../../../../models/';
import { type BrowserSiteListCollectionResponse } from '../../../../models';
import { createBrowserSiteListFromDiscriminatorValue, deserializeIntoBrowserSiteList, serializeBrowserSiteList, type BrowserSiteList } from '../../../../models/browserSiteList';
import { createBrowserSiteListCollectionResponseFromDiscriminatorValue } from '../../../../models/browserSiteListCollectionResponse';
import { type ODataError } from '../../../../models/oDataErrors/';
import { type ODataError } from '../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError';
import { CountRequestBuilder } from './count/';
import { BrowserSiteListItemRequestBuilder } from './item/';
import { CountRequestBuilder } from './count';
import { BrowserSiteListItemRequestBuilder } from './item';
import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface SiteListsRequestBuilderGetQueryParameters {
Expand Down
8 changes: 4 additions & 4 deletions src/admin/edge/internetExplorerMode/siteLists/item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// eslint-disable
// Generated by Microsoft Kiota
import { createBrowserSiteListFromDiscriminatorValue, deserializeIntoBrowserSiteList, serializeBrowserSiteList, type BrowserSiteList } from '../../../../../models/browserSiteList';
import { type ODataError } from '../../../../../models/oDataErrors/';
import { type ODataError } from '../../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../models/oDataErrors/oDataError';
import { PublishRequestBuilder } from './publish/';
import { SharedCookiesRequestBuilder } from './sharedCookies/';
import { SitesRequestBuilder } from './sites/';
import { PublishRequestBuilder } from './publish';

Check failure on line 7 in src/admin/edge/internetExplorerMode/siteLists/item/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Module '"./publish"' has no exported member 'PublishRequestBuilder'.

Check failure on line 7 in src/admin/edge/internetExplorerMode/siteLists/item/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Module '"./publish"' has no exported member 'PublishRequestBuilder'.

Check failure on line 7 in src/admin/edge/internetExplorerMode/siteLists/item/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Module '"./publish"' has no exported member 'PublishRequestBuilder'.
import { SharedCookiesRequestBuilder } from './sharedCookies';
import { SitesRequestBuilder } from './sites';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface BrowserSiteListItemRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
// Generated by Microsoft Kiota
import { createBrowserSharedCookieFromDiscriminatorValue, serializeBrowserSharedCookie, type BrowserSharedCookie } from '../../../../../../models/browserSharedCookie';
import { createBrowserSiteFromDiscriminatorValue, serializeBrowserSite, type BrowserSite } from '../../../../../../models/browserSite';
import { createBrowserSiteListFromDiscriminatorValue, deserializeIntoBrowserSiteList, serializeBrowserSiteList, type BrowserSiteList } from '../../../../../../models/browserSiteList';
import { type ODataError } from '../../../../../../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions';
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';

export function createPublishPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) {
if(!parseNode) throw new Error("parseNode cannot be undefined");
Expand Down Expand Up @@ -43,58 +40,5 @@ export function serializePublishPostRequestBody(writer: SerializationWriter, pub
writer.writeCollectionOfObjectValues<BrowserSite>("sites", publishPostRequestBody.sites, serializeBrowserSite);
writer.writeAdditionalData(publishPostRequestBody.additionalData);
}
/**
* Provides operations to call the publish method.
*/
export class PublishRequestBuilder extends BaseRequestBuilder {
/**
* Instantiates a new PublishRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
* @param requestAdapter The request adapter to use to execute the requests.
*/
public constructor(pathParameters: Record<string, unknown> | string | undefined, requestAdapter: RequestAdapter) {
super(pathParameters, requestAdapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/publish");
};
/**
* Publish the specified browserSiteList for devices to download.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of BrowserSiteList
* @see {@link https://learn.microsoft.com/graph/api/browsersitelist-publish?view=graph-rest-1.0|Find more info here}
*/
public post(body: PublishPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<BrowserSiteList | undefined> {
const requestInfo = this.toPostRequestInformation(
body, requestConfiguration
);
const errorMapping = {
"4XX": createODataErrorFromDiscriminatorValue,
"5XX": createODataErrorFromDiscriminatorValue,
} as Record<string, ParsableFactory<Parsable>>;
return this.requestAdapter.sendAsync<BrowserSiteList>(requestInfo, createBrowserSiteListFromDiscriminatorValue, errorMapping);
};
/**
* Publish the specified browserSiteList for devices to download.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
public toPostRequestInformation(body: PublishPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation {
if(!body) throw new Error("body cannot be undefined");
const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters);
requestInfo.configure(requestConfiguration);
requestInfo.headers.tryAdd("Accept", "application/json");
requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePublishPostRequestBody);
return requestInfo;
};
/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @returns a publishRequestBuilder
*/
public withUrl(rawUrl: string) : PublishRequestBuilder {
if(!rawUrl) throw new Error("rawUrl cannot be undefined");
return new PublishRequestBuilder(rawUrl, this.requestAdapter);
};
}
// tslint:enable
// eslint-enable
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type ODataError } from '../../../../../../../models/oDataErrors/';
import { type ODataError } from '../../../../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type BrowserSharedCookieCollectionResponse } from '../../../../../../models/';
import { type BrowserSharedCookieCollectionResponse } from '../../../../../../models';
import { createBrowserSharedCookieFromDiscriminatorValue, deserializeIntoBrowserSharedCookie, serializeBrowserSharedCookie, type BrowserSharedCookie } from '../../../../../../models/browserSharedCookie';
import { createBrowserSharedCookieCollectionResponseFromDiscriminatorValue } from '../../../../../../models/browserSharedCookieCollectionResponse';
import { type ODataError } from '../../../../../../models/oDataErrors/';
import { type ODataError } from '../../../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError';
import { CountRequestBuilder } from './count/';
import { BrowserSharedCookieItemRequestBuilder } from './item/';
import { CountRequestBuilder } from './count';
import { BrowserSharedCookieItemRequestBuilder } from './item';
import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface SharedCookiesRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// eslint-disable
// Generated by Microsoft Kiota
import { createBrowserSharedCookieFromDiscriminatorValue, deserializeIntoBrowserSharedCookie, serializeBrowserSharedCookie, type BrowserSharedCookie } from '../../../../../../../models/browserSharedCookie';
import { type ODataError } from '../../../../../../../models/oDataErrors/';
import { type ODataError } from '../../../../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type ODataError } from '../../../../../../../models/oDataErrors/';
import { type ODataError } from '../../../../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type BrowserSiteCollectionResponse } from '../../../../../../models/';
import { type BrowserSiteCollectionResponse } from '../../../../../../models';
import { createBrowserSiteFromDiscriminatorValue, deserializeIntoBrowserSite, serializeBrowserSite, type BrowserSite } from '../../../../../../models/browserSite';
import { createBrowserSiteCollectionResponseFromDiscriminatorValue } from '../../../../../../models/browserSiteCollectionResponse';
import { type ODataError } from '../../../../../../models/oDataErrors/';
import { type ODataError } from '../../../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../models/oDataErrors/oDataError';
import { CountRequestBuilder } from './count/';
import { BrowserSiteItemRequestBuilder } from './item/';
import { CountRequestBuilder } from './count';
import { BrowserSiteItemRequestBuilder } from './item';
import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface SitesRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// eslint-disable
// Generated by Microsoft Kiota
import { createBrowserSiteFromDiscriminatorValue, deserializeIntoBrowserSite, serializeBrowserSite, type BrowserSite } from '../../../../../../../models/browserSite';
import { type ODataError } from '../../../../../../../models/oDataErrors/';
import { type ODataError } from '../../../../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../../../../models/oDataErrors/oDataError';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

Expand Down
10 changes: 5 additions & 5 deletions src/admin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// eslint-disable
// Generated by Microsoft Kiota
import { createAdminFromDiscriminatorValue, deserializeIntoAdmin, serializeAdmin, type Admin } from '../models/admin';
import { type ODataError } from '../models/oDataErrors/';
import { type ODataError } from '../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../models/oDataErrors/oDataError';
import { EdgeRequestBuilder } from './edge/';
import { PeopleRequestBuilder } from './people/';
import { ServiceAnnouncementRequestBuilder } from './serviceAnnouncement/';
import { SharepointRequestBuilder } from './sharepoint/';
import { EdgeRequestBuilder } from './edge';
import { PeopleRequestBuilder } from './people';
import { ServiceAnnouncementRequestBuilder } from './serviceAnnouncement';
import { SharepointRequestBuilder } from './sharepoint';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface AdminRequestBuilderGetQueryParameters {
Expand Down
4 changes: 2 additions & 2 deletions src/admin/people/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type ODataError } from '../../models/oDataErrors/';
import { type ODataError } from '../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../models/oDataErrors/oDataError';
import { createPeopleAdminSettingsFromDiscriminatorValue, deserializeIntoPeopleAdminSettings, serializePeopleAdminSettings, type PeopleAdminSettings } from '../../models/peopleAdminSettings';
import { ProfileCardPropertiesRequestBuilder } from './profileCardProperties/';
import { ProfileCardPropertiesRequestBuilder } from './profileCardProperties';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface PeopleRequestBuilderGetQueryParameters {
Expand Down
2 changes: 1 addition & 1 deletion src/admin/people/profileCardProperties/count/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type ODataError } from '../../../../models/oDataErrors/';
import { type ODataError } from '../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

Expand Down
8 changes: 4 additions & 4 deletions src/admin/people/profileCardProperties/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type ProfileCardPropertyCollectionResponse } from '../../../models/';
import { type ODataError } from '../../../models/oDataErrors/';
import { type ProfileCardPropertyCollectionResponse } from '../../../models';
import { type ODataError } from '../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../models/oDataErrors/oDataError';
import { createProfileCardPropertyFromDiscriminatorValue, deserializeIntoProfileCardProperty, serializeProfileCardProperty, type ProfileCardProperty } from '../../../models/profileCardProperty';
import { createProfileCardPropertyCollectionResponseFromDiscriminatorValue } from '../../../models/profileCardPropertyCollectionResponse';
import { CountRequestBuilder } from './count/';
import { ProfileCardPropertyItemRequestBuilder } from './item/';
import { CountRequestBuilder } from './count';
import { ProfileCardPropertyItemRequestBuilder } from './item';
import { BaseRequestBuilder, getPathParameters, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface ProfileCardPropertiesRequestBuilderGetQueryParameters {
Expand Down
2 changes: 1 addition & 1 deletion src/admin/people/profileCardProperties/item/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { type ODataError } from '../../../../models/oDataErrors/';
import { type ODataError } from '../../../../models/oDataErrors';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError } from '../../../../models/oDataErrors/oDataError';
import { createProfileCardPropertyFromDiscriminatorValue, deserializeIntoProfileCardProperty, serializeProfileCardProperty, type ProfileCardProperty } from '../../../../models/profileCardProperty';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';
Expand Down
Loading

0 comments on commit f3ff9ae

Please sign in to comment.