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 @@ -7,6 +7,7 @@ export interface O365ModifyCredentialsRequestJson {
use_modern_auth: boolean;
application_id: string | null;
application_secret: string | null;
is_teams_online: boolean;
is_share_point_online: boolean;
is_exchange_online: boolean;
}
2 changes: 2 additions & 0 deletions src/sdk/model/o365/__json__/o365-organization-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ export interface O365OrganizationJson extends EntityJson {
contract_uuid: string;
type: O365OrganizationType;
region: O365OrganizationRegion;
use_modern_auth: boolean;
is_backed_up: boolean;
first_backup_time: Date;
last_backup_time: Date;
is_teams_online: boolean;
is_exchange_online: boolean;
is_share_point_online: boolean;
exchange_online_settings: any;
Expand Down
8 changes: 8 additions & 0 deletions src/sdk/model/o365/o365-modify-credentials-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ export class O365ModifyCredentialsRequest {
return this._json.application_secret;
}

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

/**
* Get isSharePointOnline.
* @returns {boolean}
Expand Down
28 changes: 28 additions & 0 deletions src/sdk/model/o365/o365-organization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,83 +43,111 @@ export class O365Organization extends Entity {

/**
* Get the O365 Organization entity type
* @returns {EntityType}
*/
get entityType(): EntityType {
return 'O365_ORGANIZATION';
}

/**
* Gets the CRM of the O365 Organization
* @returns {string}
*/
get crm(): string {
return this._json.crm;
}

/**
* Gets the location id of the O365 Organization
* @returns {string}
*/
get locationId(): string {
return this._json.location_id;
}

/**
* Gets the contract uuid of the O365 Organization
* @returns {string}
*/
get contractUuid(): string {
return this._json.contract_uuid;
}

/**
* Gets the Type of the O365 Organization
* @returns {O365OrganizationType}
*/
get type(): O365OrganizationType {
return this._json.type;
}

/**
* Gets the region of the O365 Organization
* @returns {O365OrganizationRegion}
*/
get region(): O365OrganizationRegion {
return this._json.region;
}

/**
* Get whether to use modern authentication.
* @returns {boolean}
*/
get useModernAuth(): boolean {
return this._json.use_modern_auth;
}

/**
* Is O365 Organization backed up
* @returns {boolean}
*/
get isBackedUp(): boolean {
return this._json.is_backed_up;
}

/**
* Gets the first backup time of the O365 Organization
* @returns {Date}
*/
get firstBackupTime(): Date {
return this._json.first_backup_time;
}

/**
* Gets the last backup time of the O365 Organization
* @returns {Date}
*/
get lastBackupTime(): Date {
return this._json.last_backup_time;
}

/**
* Is the O365 Organization teams online
* @returns {boolean}
*/
get isTeamsOnline(): boolean {
return this._json.is_teams_online;
}

/**
* Is the O365 Organization exchange online
* @returns {boolean}
*/
get isExchangeOnline(): boolean {
return this._json.is_exchange_online;
}

/**
* Is the O365 Organization sharePoint online
* @returns {boolean}
*/
get isSharePointOnline(): boolean {
return this._json.is_share_point_online;
}

/**
* Is O365 Organization in trial
* @returns {boolean}
*/
get isTrial(): boolean {
return this._json.is_trial;
Expand Down