Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders #361

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
29 changes: 14 additions & 15 deletions src/admin/adminRequestBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import type {Admin} from '../models/admin';
import {createAdminFromDiscriminatorValue} from '../models/createAdminFromDiscriminatorValue';
import {deserializeIntoAdmin} from '../models/deserializeIntoAdmin';
import {ODataError} from '../models/oDataErrors/';
import {createODataErrorFromDiscriminatorValue} from '../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import {deserializeIntoODataError} from '../models/oDataErrors/deserializeIntoODataError';
import {serializeODataError} from '../models/oDataErrors/serializeODataError';
import {serializeAdmin} from '../models/serializeAdmin';
import {AdminRequestBuilderGetRequestConfiguration} from './adminRequestBuilderGetRequestConfiguration';
import {AdminRequestBuilderPatchRequestConfiguration} from './adminRequestBuilderPatchRequestConfiguration';
import {EdgeRequestBuilder} from './edge/edgeRequestBuilder';
import {ServiceAnnouncementRequestBuilder} from './serviceAnnouncement/serviceAnnouncementRequestBuilder';
import {SharepointRequestBuilder} from './sharepoint/sharepointRequestBuilder';
import {BaseRequestBuilder, HttpMethod, RequestInformation} from '@microsoft/kiota-abstractions';
import type {Parsable, ParsableFactory, RequestAdapter, RequestOption} from '@microsoft/kiota-abstractions';
import { type Admin } from '../models/admin';
import { createAdminFromDiscriminatorValue } from '../models/createAdminFromDiscriminatorValue';
import { deserializeIntoAdmin } from '../models/deserializeIntoAdmin';
import { type ODataError } from '../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../models/oDataErrors/serializeODataError';
import { serializeAdmin } from '../models/serializeAdmin';
import { type AdminRequestBuilderGetRequestConfiguration } from './adminRequestBuilderGetRequestConfiguration';
import { type AdminRequestBuilderPatchRequestConfiguration } from './adminRequestBuilderPatchRequestConfiguration';
import { EdgeRequestBuilder } from './edge/edgeRequestBuilder';
import { ServiceAnnouncementRequestBuilder } from './serviceAnnouncement/serviceAnnouncementRequestBuilder';
import { SharepointRequestBuilder } from './sharepoint/sharepointRequestBuilder';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the admin singleton.
Expand Down
4 changes: 2 additions & 2 deletions src/admin/adminRequestBuilderGetRequestConfiguration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {AdminRequestBuilderGetQueryParameters} from './adminRequestBuilderGetQueryParameters';
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type AdminRequestBuilderGetQueryParameters } from './adminRequestBuilderGetQueryParameters';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface AdminRequestBuilderGetRequestConfiguration {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/admin/adminRequestBuilderPatchRequestConfiguration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface AdminRequestBuilderPatchRequestConfiguration {
/**
Expand Down
27 changes: 13 additions & 14 deletions src/admin/edge/edgeRequestBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import {createEdgeFromDiscriminatorValue} from '../../models/createEdgeFromDiscriminatorValue';
import {deserializeIntoEdge} from '../../models/deserializeIntoEdge';
import type {Edge} from '../../models/edge';
import {ODataError} from '../../models/oDataErrors/';
import {createODataErrorFromDiscriminatorValue} from '../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import {deserializeIntoODataError} from '../../models/oDataErrors/deserializeIntoODataError';
import {serializeODataError} from '../../models/oDataErrors/serializeODataError';
import {serializeEdge} from '../../models/serializeEdge';
import {EdgeRequestBuilderDeleteRequestConfiguration} from './edgeRequestBuilderDeleteRequestConfiguration';
import {EdgeRequestBuilderGetRequestConfiguration} from './edgeRequestBuilderGetRequestConfiguration';
import {EdgeRequestBuilderPatchRequestConfiguration} from './edgeRequestBuilderPatchRequestConfiguration';
import {InternetExplorerModeRequestBuilder} from './internetExplorerMode/internetExplorerModeRequestBuilder';
import {BaseRequestBuilder, HttpMethod, RequestInformation} from '@microsoft/kiota-abstractions';
import type {Parsable, ParsableFactory, RequestAdapter, RequestOption} from '@microsoft/kiota-abstractions';
import { createEdgeFromDiscriminatorValue } from '../../models/createEdgeFromDiscriminatorValue';
import { deserializeIntoEdge } from '../../models/deserializeIntoEdge';
import { type Edge } from '../../models/edge';
import { type ODataError } from '../../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../../models/oDataErrors/serializeODataError';
import { serializeEdge } from '../../models/serializeEdge';
import { type EdgeRequestBuilderDeleteRequestConfiguration } from './edgeRequestBuilderDeleteRequestConfiguration';
import { type EdgeRequestBuilderGetRequestConfiguration } from './edgeRequestBuilderGetRequestConfiguration';
import { type EdgeRequestBuilderPatchRequestConfiguration } from './edgeRequestBuilderPatchRequestConfiguration';
import { InternetExplorerModeRequestBuilder } from './internetExplorerMode/internetExplorerModeRequestBuilder';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the edge property of the microsoft.graph.admin entity.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface EdgeRequestBuilderDeleteRequestConfiguration {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/admin/edge/edgeRequestBuilderGetRequestConfiguration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {EdgeRequestBuilderGetQueryParameters} from './edgeRequestBuilderGetQueryParameters';
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type EdgeRequestBuilderGetQueryParameters } from './edgeRequestBuilderGetQueryParameters';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface EdgeRequestBuilderGetRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface EdgeRequestBuilderPatchRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import {createInternetExplorerModeFromDiscriminatorValue} from '../../../models/createInternetExplorerModeFromDiscriminatorValue';
import {deserializeIntoInternetExplorerMode} from '../../../models/deserializeIntoInternetExplorerMode';
import type {InternetExplorerMode} from '../../../models/internetExplorerMode';
import {ODataError} from '../../../models/oDataErrors/';
import {createODataErrorFromDiscriminatorValue} from '../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import {deserializeIntoODataError} from '../../../models/oDataErrors/deserializeIntoODataError';
import {serializeODataError} from '../../../models/oDataErrors/serializeODataError';
import {serializeInternetExplorerMode} from '../../../models/serializeInternetExplorerMode';
import {InternetExplorerModeRequestBuilderDeleteRequestConfiguration} from './internetExplorerModeRequestBuilderDeleteRequestConfiguration';
import {InternetExplorerModeRequestBuilderGetRequestConfiguration} from './internetExplorerModeRequestBuilderGetRequestConfiguration';
import {InternetExplorerModeRequestBuilderPatchRequestConfiguration} from './internetExplorerModeRequestBuilderPatchRequestConfiguration';
import {SiteListsRequestBuilder} from './siteLists/siteListsRequestBuilder';
import {BaseRequestBuilder, HttpMethod, RequestInformation} from '@microsoft/kiota-abstractions';
import type {Parsable, ParsableFactory, RequestAdapter, RequestOption} from '@microsoft/kiota-abstractions';
import { createInternetExplorerModeFromDiscriminatorValue } from '../../../models/createInternetExplorerModeFromDiscriminatorValue';
import { deserializeIntoInternetExplorerMode } from '../../../models/deserializeIntoInternetExplorerMode';
import { type InternetExplorerMode } from '../../../models/internetExplorerMode';
import { type ODataError } from '../../../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../../../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../../../models/oDataErrors/serializeODataError';
import { serializeInternetExplorerMode } from '../../../models/serializeInternetExplorerMode';
import { type InternetExplorerModeRequestBuilderDeleteRequestConfiguration } from './internetExplorerModeRequestBuilderDeleteRequestConfiguration';
import { type InternetExplorerModeRequestBuilderGetRequestConfiguration } from './internetExplorerModeRequestBuilderGetRequestConfiguration';
import { type InternetExplorerModeRequestBuilderPatchRequestConfiguration } from './internetExplorerModeRequestBuilderPatchRequestConfiguration';
import { SiteListsRequestBuilder } from './siteLists/siteListsRequestBuilder';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface InternetExplorerModeRequestBuilderDeleteRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {InternetExplorerModeRequestBuilderGetQueryParameters} from './internetExplorerModeRequestBuilderGetQueryParameters';
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type InternetExplorerModeRequestBuilderGetQueryParameters } from './internetExplorerModeRequestBuilderGetQueryParameters';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface InternetExplorerModeRequestBuilderGetRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface InternetExplorerModeRequestBuilderPatchRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {ODataError} from '../../../../../models/oDataErrors/';
import {createODataErrorFromDiscriminatorValue} from '../../../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import {deserializeIntoODataError} from '../../../../../models/oDataErrors/deserializeIntoODataError';
import {serializeODataError} from '../../../../../models/oDataErrors/serializeODataError';
import {CountRequestBuilderGetRequestConfiguration} from './countRequestBuilderGetRequestConfiguration';
import {BaseRequestBuilder, HttpMethod, RequestInformation} from '@microsoft/kiota-abstractions';
import type {Parsable, ParsableFactory, RequestAdapter, RequestOption} from '@microsoft/kiota-abstractions';
import { type ODataError } from '../../../../../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../../../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../../../../../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../../../../../models/oDataErrors/serializeODataError';
import { type CountRequestBuilderGetRequestConfiguration } from './countRequestBuilderGetRequestConfiguration';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

/**
* Provides operations to count the resources in the collection.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {CountRequestBuilderGetQueryParameters} from './countRequestBuilderGetQueryParameters';
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type CountRequestBuilderGetQueryParameters } from './countRequestBuilderGetQueryParameters';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface CountRequestBuilderGetRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import type {BrowserSiteList} from '../../../../../models/browserSiteList';
import {createBrowserSiteListFromDiscriminatorValue} from '../../../../../models/createBrowserSiteListFromDiscriminatorValue';
import {deserializeIntoBrowserSiteList} from '../../../../../models/deserializeIntoBrowserSiteList';
import {ODataError} from '../../../../../models/oDataErrors/';
import {createODataErrorFromDiscriminatorValue} from '../../../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import {deserializeIntoODataError} from '../../../../../models/oDataErrors/deserializeIntoODataError';
import {serializeODataError} from '../../../../../models/oDataErrors/serializeODataError';
import {serializeBrowserSiteList} from '../../../../../models/serializeBrowserSiteList';
import {BrowserSiteListItemRequestBuilderDeleteRequestConfiguration} from './browserSiteListItemRequestBuilderDeleteRequestConfiguration';
import {BrowserSiteListItemRequestBuilderGetRequestConfiguration} from './browserSiteListItemRequestBuilderGetRequestConfiguration';
import {BrowserSiteListItemRequestBuilderPatchRequestConfiguration} from './browserSiteListItemRequestBuilderPatchRequestConfiguration';
import {PublishRequestBuilder} from './publish/publishRequestBuilder';
import {SharedCookiesRequestBuilder} from './sharedCookies/sharedCookiesRequestBuilder';
import {SitesRequestBuilder} from './sites/sitesRequestBuilder';
import {BaseRequestBuilder, HttpMethod, RequestInformation} from '@microsoft/kiota-abstractions';
import type {Parsable, ParsableFactory, RequestAdapter, RequestOption} from '@microsoft/kiota-abstractions';
import { type BrowserSiteList } from '../../../../../models/browserSiteList';
import { createBrowserSiteListFromDiscriminatorValue } from '../../../../../models/createBrowserSiteListFromDiscriminatorValue';
import { deserializeIntoBrowserSiteList } from '../../../../../models/deserializeIntoBrowserSiteList';
import { type ODataError } from '../../../../../models/oDataErrors/';
import { createODataErrorFromDiscriminatorValue } from '../../../../../models/oDataErrors/createODataErrorFromDiscriminatorValue';
import { deserializeIntoODataError } from '../../../../../models/oDataErrors/deserializeIntoODataError';
import { serializeODataError } from '../../../../../models/oDataErrors/serializeODataError';
import { serializeBrowserSiteList } from '../../../../../models/serializeBrowserSiteList';
import { type BrowserSiteListItemRequestBuilderDeleteRequestConfiguration } from './browserSiteListItemRequestBuilderDeleteRequestConfiguration';
import { type BrowserSiteListItemRequestBuilderGetRequestConfiguration } from './browserSiteListItemRequestBuilderGetRequestConfiguration';
import { type BrowserSiteListItemRequestBuilderPatchRequestConfiguration } from './browserSiteListItemRequestBuilderPatchRequestConfiguration';
import { PublishRequestBuilder } from './publish/publishRequestBuilder';
import { SharedCookiesRequestBuilder } from './sharedCookies/sharedCookiesRequestBuilder';
import { SitesRequestBuilder } from './sites/sitesRequestBuilder';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestOption } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface BrowserSiteListItemRequestBuilderDeleteRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BrowserSiteListItemRequestBuilderGetQueryParameters} from './browserSiteListItemRequestBuilderGetQueryParameters';
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type BrowserSiteListItemRequestBuilderGetQueryParameters } from './browserSiteListItemRequestBuilderGetQueryParameters';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface BrowserSiteListItemRequestBuilderGetRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {RequestOption} from '@microsoft/kiota-abstractions';
import { type RequestOption } from '@microsoft/kiota-abstractions';

export interface BrowserSiteListItemRequestBuilderPatchRequestConfiguration {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {deserializeIntoPublishPostRequestBody} from './deserializeIntoPublishPostRequestBody';
import {PublishPostRequestBody} from './index';
import {ParseNode} from '@microsoft/kiota-abstractions';
import { deserializeIntoPublishPostRequestBody } from './deserializeIntoPublishPostRequestBody';
import { type PublishPostRequestBody } from './index';
import { type ParseNode } from '@microsoft/kiota-abstractions';

export function createPublishPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) {
if(!parseNode) throw new Error("parseNode cannot be undefined");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type {BrowserSharedCookie} from '../../../../../../models/browserSharedCookie';
import type {BrowserSite} from '../../../../../../models/browserSite';
import {createBrowserSharedCookieFromDiscriminatorValue} from '../../../../../../models/createBrowserSharedCookieFromDiscriminatorValue';
import {createBrowserSiteFromDiscriminatorValue} from '../../../../../../models/createBrowserSiteFromDiscriminatorValue';
import {serializeBrowserSharedCookie} from '../../../../../../models/serializeBrowserSharedCookie';
import {serializeBrowserSite} from '../../../../../../models/serializeBrowserSite';
import type {PublishPostRequestBody} from './publishPostRequestBody';
import type {AdditionalDataHolder, Parsable, ParseNode, SerializationWriter} from '@microsoft/kiota-abstractions';
import { type BrowserSharedCookie } from '../../../../../../models/browserSharedCookie';
import { type BrowserSite } from '../../../../../../models/browserSite';
import { createBrowserSharedCookieFromDiscriminatorValue } from '../../../../../../models/createBrowserSharedCookieFromDiscriminatorValue';
import { createBrowserSiteFromDiscriminatorValue } from '../../../../../../models/createBrowserSiteFromDiscriminatorValue';
import { serializeBrowserSharedCookie } from '../../../../../../models/serializeBrowserSharedCookie';
import { serializeBrowserSite } from '../../../../../../models/serializeBrowserSite';
import { type PublishPostRequestBody } from './publishPostRequestBody';
import { type AdditionalDataHolder, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';

export function deserializeIntoPublishPostRequestBody(publishPostRequestBody: PublishPostRequestBody | undefined = {} as PublishPostRequestBody) : Record<string, (node: ParseNode) => void> {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {BrowserSharedCookie} from '../../../../../../models/browserSharedCookie';
import type {BrowserSite} from '../../../../../../models/browserSite';
import type {AdditionalDataHolder, Parsable} from '@microsoft/kiota-abstractions';
import { type BrowserSharedCookie } from '../../../../../../models/browserSharedCookie';
import { type BrowserSite } from '../../../../../../models/browserSite';
import { type AdditionalDataHolder, type Parsable } from '@microsoft/kiota-abstractions';

export interface PublishPostRequestBody extends AdditionalDataHolder, Parsable {
/**
Expand Down
Loading