Skip to content

Commit

Permalink
Resolve lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Mar 11, 2021
1 parent f3a3a37 commit 94eb35a
Show file tree
Hide file tree
Showing 245 changed files with 11,396 additions and 192 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules

npm-debug.log
lerna-debug.log
tmp/
576 changes: 389 additions & 187 deletions packages/web-api/src/methods.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminAnalyticsGetFileResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
8 changes: 8 additions & 0 deletions packages/web-api/src/response/AdminAppsApproveResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminAppsApproveResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
61 changes: 61 additions & 0 deletions packages/web-api/src/response/AdminAppsApprovedListResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminAppsApprovedListResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
approved_apps?: ApprovedApp[];
response_metadata?: ResponseMetadata;
needed?: string;
provided?: string;
};

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

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

export interface Icons {
image_32?: string;
image_36?: string;
image_48?: 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 LastResolvedBy {
actor_id?: string;
actor_type?: string;
}

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

export interface ResponseMetadata {
next_cursor?: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminAppsClearResolutionResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
68 changes: 68 additions & 0 deletions packages/web-api/src/response/AdminAppsRequestsListResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminAppsRequestsListResponse = WebAPICallResult & {
ok?: boolean;
app_requests?: AppRequest[];
response_metadata?: ResponseMetadata;
error?: string;
needed?: string;
provided?: string;
};

export interface AppRequest {
id?: string;
app?: App;
user?: User;
team?: Team;
previous_resolution?: PreviousResolution;
message?: string;
date_created?: number;
}

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

export interface Icons {
image_32?: string;
image_36?: string;
image_48?: 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;
}

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

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

export interface ResponseMetadata {
next_cursor?: string;
}
8 changes: 8 additions & 0 deletions packages/web-api/src/response/AdminAppsRestrictResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminAppsRestrictResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
60 changes: 60 additions & 0 deletions packages/web-api/src/response/AdminAppsRestrictedListResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminAppsRestrictedListResponse = WebAPICallResult & {
ok?: boolean;
restricted_apps?: RestrictedApp[];
response_metadata?: ResponseMetadata;
error?: string;
needed?: string;
provided?: string;
};

export interface ResponseMetadata {
next_cursor?: string;
}

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

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

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

export interface LastResolvedBy {
actor_id?: string;
actor_type?: string;
}

export interface Scope {
name?: string;
description?: string;
is_sensitive?: boolean;
token_type?: string;
}
28 changes: 28 additions & 0 deletions packages/web-api/src/response/AdminBarriersCreateResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminBarriersCreateResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
response_metadata?: ResponseMetadata;
barrier?: Barrier;
};

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

export interface Usergroup {
id?: string;
name?: string;
}

export interface ResponseMetadata {
messages?: string[];
}
8 changes: 8 additions & 0 deletions packages/web-api/src/response/AdminBarriersDeleteResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminBarriersDeleteResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
23 changes: 23 additions & 0 deletions packages/web-api/src/response/AdminBarriersListResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminBarriersListResponse = WebAPICallResult & {
ok?: boolean;
barriers?: Barrier[];
error?: string;
needed?: string;
provided?: string;
};

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

export interface Usergroup {
id?: string;
name?: string;
}
23 changes: 23 additions & 0 deletions packages/web-api/src/response/AdminBarriersUpdateResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminBarriersUpdateResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
barrier?: Barrier;
needed?: string;
provided?: string;
};

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

export interface Usergroup {
id?: string;
name?: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminConversationsArchiveResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminConversationsConvertToPrivateResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminConversationsCreateResponse = WebAPICallResult & {
ok?: boolean;
channel_id?: string;
error?: string;
needed?: string;
provided?: string;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminConversationsDeleteResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminConversationsDisconnectSharedResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminConversationsEkmListOriginalConnectedChannelInfoResponse = WebAPICallResult & {
ok?: boolean;
error?: string;
needed?: string;
provided?: string;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* tslint:disable */
import { WebAPICallResult } from '../WebClient';
export type AdminConversationsGetConversationPrefsResponse = WebAPICallResult & {
ok?: boolean;
prefs?: Prefs;
error?: string;
needed?: string;
provided?: string;
};

export interface Prefs {
who_can_post?: CanThread;
can_thread?: CanThread;
}

export interface CanThread {
type?: string[];
user?: string[];
}

0 comments on commit 94eb35a

Please sign in to comment.