Skip to content

Generated v1.0 models and request builders using Kiota #190

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

Merged
merged 7 commits into from
Dec 1, 2022
Merged
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.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16x]
node-version: [14.x, 16.x]
# Single version should work for compilation testing

steps:
Expand Down
98 changes: 22 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/msgraph-sdk-javascript",
"version": "1.0.0-preview.4",
"version": "1.0.0-preview.5",
"description": "",
"main": "lib/src/graphclient/index.js",
"types": "lib/src/graphclient/index.d.ts",
Expand All @@ -9,7 +9,7 @@
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.9",
"@microsoft/kiota-serialization-json": "1.0.0-preview.9",
"@microsoft/kiota-serialization-text": "1.0.0-preview.8",
"@microsoft/microsoft-graph-client": "4.0.0-RestPreview.1",
"@microsoft/microsoft-graph-client": "4.0.0-Preview.1",
"tslib": "^2.3.1"
},
"files": [
Expand Down
6 changes: 3 additions & 3 deletions src/admin/adminRequestBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter
/** Provides operations to manage the admin singleton. */
export class AdminRequestBuilder {
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity. */
public get serviceAnnouncement(): ServiceAnnouncementRequestBuilder {
return new ServiceAnnouncementRequestBuilder(this.pathParameters, this.requestAdapter);
}
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new AdminRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter
/** Provides operations to count the resources in the collection. */
export class CountRequestBuilder {
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new CountRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export class HealthOverviewsRequestBuilder {
return new CountRequestBuilder(this.pathParameters, this.requestAdapter);
}
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new HealthOverviewsRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter
/** Provides operations to count the resources in the collection. */
export class CountRequestBuilder {
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new CountRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export class IssuesRequestBuilder {
return new CountRequestBuilder(this.pathParameters, this.requestAdapter);
}
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new IssuesRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter
/** Provides operations to call the incidentReport method. */
export class IncidentReportRequestBuilder {
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new IncidentReportRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter
/** Provides operations to manage the issues property of the microsoft.graph.serviceHealth entity. */
export class ServiceHealthIssueItemRequestBuilder {
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new ServiceHealthIssueItemRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export class ServiceHealthItemRequestBuilder {
return new IssuesRequestBuilder(this.pathParameters, this.requestAdapter);
}
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new ServiceHealthItemRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter
/** Provides operations to count the resources in the collection. */
export class CountRequestBuilder {
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new CountRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
6 changes: 3 additions & 3 deletions src/admin/serviceAnnouncement/issues/issuesRequestBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export class IssuesRequestBuilder {
return new CountRequestBuilder(this.pathParameters, this.requestAdapter);
}
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new IssuesRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import {getPathParameters, HttpMethod, Parsable, ParsableFactory, RequestAdapter
/** Provides operations to call the incidentReport method. */
export class IncidentReportRequestBuilder {
/** Path parameters for the request */
private readonly pathParameters: Record<string, unknown>;
private pathParameters: Record<string, unknown>;
/** The request adapter to use to execute the requests. */
private readonly requestAdapter: RequestAdapter;
private requestAdapter: RequestAdapter;
/** Url template to use to build the URL for the current request builder */
private readonly urlTemplate: string;
private urlTemplate: string;
/**
* Instantiates a new IncidentReportRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand Down
Loading