-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding site service and generalizing conditional-http-client (#2266)
* Adding site service and generalizing conditional-http-client * Removing arm-preconditions * Moving precondition.ts back to where it was originally
- Loading branch information
Showing
18 changed files
with
363 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
AzureFunctions.AngularClient/src/app/shared/models/function-app-http-result.ts
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
AzureFunctions.AngularClient/src/app/shared/models/http-result.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export interface HttpError { | ||
errorId: string; | ||
message?: string; | ||
result?: any; | ||
} | ||
|
||
export interface HttpResult<T> { | ||
isSuccessful: boolean; | ||
error: HttpError | null; | ||
result: T | null; | ||
} | ||
|
||
export interface ArmError { | ||
error: { | ||
code: 'InvalidAuthenticationTokenTenant' | 'ScopeLocked'; | ||
message: string; | ||
} | ||
} | ||
|
||
export interface HttpErrorResponse<T> { | ||
message: string; | ||
error: any | null; | ||
ok: boolean; | ||
headers: Headers; | ||
status: number; | ||
statusText: string; | ||
url: string | null; | ||
json(): T; | ||
text(): string; | ||
} |
Oops, something went wrong.