Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface O365OrgCreateRequestJson {
application_id: string | null;
application_secret: string | null;
is_exchange_online: boolean;
is_teams_online: boolean;
is_share_point_online: boolean;
create_default_jobs: boolean;
repository_id: string | null;
}
23 changes: 12 additions & 11 deletions src/sdk/model/company/o365-org-create-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export class O365OrgCreateRequest {
constructor(o365OrgCreateRequestJson: O365OrgCreateRequestJson);
constructor(firstParam: string | O365OrgCreateRequest | O365OrgCreateRequestJson, account?: string, password?: string,
useModernAuth?: boolean, applicationId?: string | null, applicationSecret?: string | null,
isExchangeOnline?: boolean, isSharePointOnline?: boolean, defaultJobs?: boolean, repoId?: string | null) {
isExchangeOnline?: boolean, isTeamsOnline?: boolean, isSharePointOnline?: boolean,
defaultJobs?: boolean) {
if (typeof firstParam === 'string') {
// parameters constructor
this._json = {
Expand All @@ -23,9 +24,9 @@ export class O365OrgCreateRequest {
application_id: applicationId,
application_secret: applicationSecret,
is_exchange_online: isExchangeOnline,
is_teams_online: isTeamsOnline,
is_share_point_online: isSharePointOnline,
create_default_jobs: defaultJobs,
repository_id: repoId
create_default_jobs: defaultJobs
} as O365OrgCreateRequestJson;
} else if (firstParam instanceof O365OrgCreateRequest) {
// copy constructor
Expand Down Expand Up @@ -94,6 +95,14 @@ export class O365OrgCreateRequest {
return this._json.is_exchange_online;
}

/**
* Get isTeamsOnline.
* @returns {boolean}
*/
get isTeamsOnline(): boolean {
return this._json.is_teams_online;
}

/**
* Get isSharePointOnline.
* @returns {boolean}
Expand All @@ -110,14 +119,6 @@ export class O365OrgCreateRequest {
return this._json.create_default_jobs;
}

/**
* Get repository id if create default jobs is true
* @returns {string}
*/
get repositoryId(): string | null {
return this._json.repository_id;
}

/**
* Get the json representation of this class.
* @returns {O365OrgCreateRequestJson}
Expand Down