-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from CS506-MS3/milestone/iteration-1-remainders
Milestone/iteration 1 remainders
- Loading branch information
Showing
169 changed files
with
12,475 additions
and
443 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as CrudActions from './crud.actions'; | ||
import {PropertyOptions} from '../_domains/property-options'; | ||
|
||
export const ACTION_NAME = 'PropertyOptionsActions'; | ||
|
||
export const SET = ACTION_NAME + CrudActions.SET; | ||
|
||
export class Set extends CrudActions.Set { | ||
constructor(public payload: PropertyOptions) { | ||
super(ACTION_NAME); | ||
} | ||
} | ||
|
||
export type All | ||
= Set; |
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,17 @@ | ||
import {Action} from '@ngrx/store'; | ||
import * as PropertyOptionsActions from './property-options.actions'; | ||
import * as Crud from './crud.reducer'; | ||
import {Property} from '../_domains/property'; | ||
import {PropertyOptions} from '../_domains/property-options'; | ||
|
||
const prefix = PropertyOptionsActions.ACTION_NAME; | ||
const INIT = 'INIT'; | ||
const initialState: PropertyOptions = { | ||
list: [] | ||
}; | ||
|
||
export function reducer(state = initialState, action: Action = {type: INIT}): Property { | ||
const newState = Crud.reducer(state, action, prefix, initialState); | ||
|
||
return newState === null ? initialState : newState; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export interface Access { | ||
id: number; | ||
// TODO: Needs configuration | ||
id: string; | ||
cancelled: boolean; | ||
nextPaymentDate: string; | ||
paymentAmount: number; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import {Access} from './access'; | ||
|
||
export interface Accesses { | ||
list: Access[]; | ||
vendor: Access; | ||
customer: Access; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface ChangePasswordForm { | ||
password: string; | ||
new_password: string; | ||
} |
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,7 @@ | ||
import {NotificationSettings} from './notification-settings'; | ||
|
||
export interface EditUserInfoForm { | ||
phone: string; | ||
notification: NotificationSettings; | ||
password: string; | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export interface ItemId { | ||
id: number; | ||
id: number | string; | ||
} |
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,4 @@ | ||
export interface PasswordResetForm { | ||
token: string; | ||
password: string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface PropertyOption { | ||
id: number; | ||
alias: string; | ||
type: string; | ||
createTime?: string; | ||
updateTime?: string; | ||
} |
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,5 @@ | ||
import {PropertyOption} from './property-option'; | ||
|
||
export interface PropertyOptions { | ||
list: PropertyOption[]; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export interface PropertyQueryParams { | ||
sortBy?: string; | ||
sortOrder?: boolean; | ||
sortBy: string; | ||
direction: string; | ||
cursor?: string; | ||
searchBy?: string; | ||
filters?: any; | ||
} |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ export interface PropertySummary { | |
startDate: string; | ||
duration: number; | ||
thumbnailUrl: string; | ||
status?: boolean; | ||
} |
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 |
---|---|---|
@@ -1,4 +1,27 @@ | ||
export interface Property { | ||
id: string; | ||
status: boolean; | ||
title: string; | ||
// TODO: Implementation required | ||
address: { | ||
geocode: { | ||
lat: number; | ||
lng: number; | ||
}; | ||
detailLevel1: string; | ||
detailLevel2: string; | ||
city: string; | ||
state: string; | ||
zipcode: string; | ||
type: string; | ||
}; | ||
description: string; | ||
roomType: string; | ||
price: number; | ||
startDate: string; | ||
duration: number; | ||
options: number[]; | ||
imageUrls: string[]; | ||
owner?: string; | ||
createTime?: string; | ||
updateTime?: string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface SubscriptionCancelForm { | ||
password: string; | ||
type: string; | ||
} |
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,29 @@ | ||
import {RequestError} from '../_domains/request-error'; | ||
import {Action} from '@ngrx/store'; | ||
import {ChangePasswordForm} from '../_domains/change-password-form'; | ||
import {AuthResponse} from '../_domains/auth-response'; | ||
|
||
export const REQUEST = 'PasswordChangeActions.REQUEST'; | ||
export const SUCCESS = 'PasswordChangeActions.SUCCESS'; | ||
export const ERROR = 'PasswordChangeActions.ERROR'; | ||
|
||
export class Request implements Action { | ||
readonly type = REQUEST; | ||
|
||
constructor(public payload: ChangePasswordForm, public userId) { | ||
} | ||
} | ||
|
||
export class Success implements Action { | ||
readonly type = SUCCESS; | ||
|
||
constructor(public payload: AuthResponse) { | ||
} | ||
} | ||
|
||
export class Error implements Action { | ||
readonly type = ERROR; | ||
|
||
constructor(public payload: RequestError) { | ||
} | ||
} |
Oops, something went wrong.