Skip to content

Commit

Permalink
Update the web-api response types using the latest source
Browse files Browse the repository at this point in the history
Also, since this version, the order of fields are alphanumeric. This makes checking the diff much easier for maintainers.
  • Loading branch information
seratch committed May 20, 2022
1 parent dd9a341 commit 0fb388a
Show file tree
Hide file tree
Showing 263 changed files with 7,469 additions and 7,830 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAnalyticsGetFileResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
};
Expand Down
4 changes: 2 additions & 2 deletions packages/web-api/src/response/AdminAppsApproveResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAppsApproveResponse = WebAPICallResult & {
ok?: boolean;
warning?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
warning?: string;
};
34 changes: 17 additions & 17 deletions packages/web-api/src/response/AdminAppsApprovedListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAppsApprovedListResponse = WebAPICallResult & {
ok?: boolean;
warning?: string;
approved_apps?: ApprovedApp[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
approved_apps?: ApprovedApp[];
response_metadata?: ResponseMetadata;
warning?: string;
};

export interface ApprovedApp {
app?: App;
scopes?: Scope[];
date_updated?: number;
last_resolved_by?: LastResolvedBy;
scopes?: Scope[];
}

export interface App {
id?: string;
name?: string;
additional_info?: string;
app_directory_url?: string;
app_homepage_url?: string;
description?: string;
help_url?: string;
privacy_policy_url?: string;
app_homepage_url?: string;
app_directory_url?: string;
icons?: Icons;
id?: string;
is_app_directory_approved?: boolean;
is_internal?: boolean;
additional_info?: string;
icons?: Icons;
name?: string;
privacy_policy_url?: string;
}

export interface Icons {
image_1024?: string;
image_128?: string;
image_192?: string;
image_32?: string;
image_36?: string;
image_48?: string;
image_512?: string;
image_64?: string;
image_72?: string;
image_96?: string;
image_128?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
image_original?: string;
}

Expand All @@ -60,14 +60,14 @@ export interface LastResolvedBy {
}

export interface Scope {
name?: string;
description?: string;
is_sensitive?: boolean;
name?: string;
token_type?: string;
}

export interface ResponseMetadata {
next_cursor?: string;
messages?: string[];
next_cursor?: string;
warnings?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAppsClearResolutionResponse = WebAPICallResult & {
ok?: boolean;
warning?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
warning?: string;
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAppsRequestsCancelResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
};
48 changes: 24 additions & 24 deletions packages/web-api/src/response/AdminAppsRequestsListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,74 +10,74 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAppsRequestsListResponse = WebAPICallResult & {
ok?: boolean;
warning?: string;
app_requests?: AppRequest[];
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
app_requests?: AppRequest[];
response_metadata?: ResponseMetadata;
warning?: string;
};

export interface AppRequest {
id?: string;
app?: App;
user?: User;
team?: Team;
scopes?: any[];
previous_resolution?: PreviousResolution;
date_created?: number;
id?: string;
is_user_app_collaborator?: boolean;
message?: string;
date_created?: number;
previous_resolution?: PreviousResolution;
scopes?: any[];
team?: Team;
user?: User;
}

export interface App {
id?: string;
name?: string;
additional_info?: string;
app_directory_url?: string;
app_homepage_url?: string;
description?: string;
help_url?: string;
privacy_policy_url?: string;
app_homepage_url?: string;
app_directory_url?: string;
icons?: Icons;
id?: string;
is_app_directory_approved?: boolean;
is_internal?: boolean;
additional_info?: string;
icons?: Icons;
name?: string;
privacy_policy_url?: string;
}

export interface Icons {
image_1024?: string;
image_128?: string;
image_192?: string;
image_32?: string;
image_36?: string;
image_48?: string;
image_512?: string;
image_64?: string;
image_72?: string;
image_96?: string;
image_128?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
image_original?: string;
}

export interface PreviousResolution {
status?: string;
scopes?: any[];
status?: string;
}

export interface Team {
domain?: string;
id?: string;
name?: string;
domain?: string;
}

export interface User {
email?: string;
id?: string;
name?: string;
email?: string;
}

export interface ResponseMetadata {
next_cursor?: string;
messages?: string[];
next_cursor?: string;
warnings?: string[];
}
4 changes: 2 additions & 2 deletions packages/web-api/src/response/AdminAppsRestrictResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAppsRestrictResponse = WebAPICallResult & {
ok?: boolean;
warning?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
warning?: string;
};
34 changes: 17 additions & 17 deletions packages/web-api/src/response/AdminAppsRestrictedListResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,53 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAppsRestrictedListResponse = WebAPICallResult & {
ok?: boolean;
warning?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
restricted_apps?: RestrictedApp[];
response_metadata?: ResponseMetadata;
restricted_apps?: RestrictedApp[];
warning?: string;
};

export interface ResponseMetadata {
next_cursor?: string;
messages?: string[];
next_cursor?: string;
warnings?: string[];
}

export interface RestrictedApp {
app?: App;
scopes?: Scope[];
date_updated?: number;
last_resolved_by?: LastResolvedBy;
scopes?: Scope[];
}

export interface App {
id?: string;
name?: string;
additional_info?: string;
app_directory_url?: string;
app_homepage_url?: string;
description?: string;
help_url?: string;
privacy_policy_url?: string;
app_homepage_url?: string;
app_directory_url?: string;
icons?: Icons;
id?: string;
is_app_directory_approved?: boolean;
is_internal?: boolean;
additional_info?: string;
icons?: Icons;
name?: string;
privacy_policy_url?: string;
}

export interface Icons {
image_1024?: string;
image_128?: string;
image_192?: string;
image_32?: string;
image_36?: string;
image_48?: string;
image_512?: string;
image_64?: string;
image_72?: string;
image_96?: string;
image_128?: string;
image_192?: string;
image_512?: string;
image_1024?: string;
image_original?: string;
}

Expand All @@ -66,8 +66,8 @@ export interface LastResolvedBy {
}

export interface Scope {
name?: string;
description?: string;
is_sensitive?: boolean;
name?: string;
token_type?: string;
}
4 changes: 2 additions & 2 deletions packages/web-api/src/response/AdminAppsUninstallResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAppsUninstallResponse = WebAPICallResult & {
ok?: boolean;
warning?: string;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
warning?: string;
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAuthPolicyAssignEntitiesResponse = WebAPICallResult & {
ok?: boolean;
entity_total_count?: number;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAuthPolicyGetEntitiesResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
entities?: Entity[];
entity_total_count?: number;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
};

export interface Entity {
date_added?: number;
entity_id?: string;
entity_type?: string;
date_added?: number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import { WebAPICallResult } from '../WebClient';
export type AdminAuthPolicyRemoveEntitiesResponse = WebAPICallResult & {
ok?: boolean;
entity_total_count?: number;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
};
10 changes: 5 additions & 5 deletions packages/web-api/src/response/AdminBarriersCreateResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@

import { WebAPICallResult } from '../WebClient';
export type AdminBarriersCreateResponse = WebAPICallResult & {
ok?: boolean;
barrier?: Barrier;
error?: string;
needed?: string;
ok?: boolean;
provided?: string;
response_metadata?: ResponseMetadata;
barrier?: Barrier;
};

export interface Barrier {
id?: string;
barriered_from_usergroups?: Usergroup[];
date_update?: number;
enterprise_id?: string;
id?: string;
primary_usergroup?: Usergroup;
barriered_from_usergroups?: Usergroup[];
restricted_subjects?: string[];
date_update?: number;
}

export interface Usergroup {
Expand Down
Loading

0 comments on commit 0fb388a

Please sign in to comment.