Skip to content

Commit

Permalink
Issue #SB-0000 merge: Merge pull request #238 from swayangjit/release…
Browse files Browse the repository at this point in the history
…-2.7.0

Issue #SB-000 merge: Merge branch 'release-2.6.0' into release-2.7.0.
  • Loading branch information
AmiableAnil authored Jan 9, 2020
2 parents 181a4ce + 8d63d6b commit 9e71d31
Show file tree
Hide file tree
Showing 13 changed files with 453 additions and 105 deletions.
12 changes: 8 additions & 4 deletions dist/device-register/def/request.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { DeviceSpec } from '../../util/device';
export interface UserDeclaredLocation {
declaredOffline?: boolean;
state: string;
stateId?: string;
district: string;
districtId?: string;
}
export interface DeviceRegisterRequest {
dspec?: DeviceSpec;
channel?: string;
fcmToken?: string;
producer?: string;
first_access?: number;
userDeclaredLocation?: {
state: string;
district: string;
};
userDeclaredLocation?: UserDeclaredLocation;
}
4 changes: 3 additions & 1 deletion dist/device-register/handler/device-register-handler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ import { AppInfo } from '../../util/app';
import { SdkConfig } from '../../sdk-config';
import { FrameworkService } from '../../framework';
import { SharedPreferences } from '../../util/shared-preferences';
import { GetDeviceProfileHandler } from './get-device-profile-handler';
export declare class DeviceRegisterHandler implements ApiRequestHandler<DeviceRegisterRequest, DeviceRegisterResponse> {
private sdkConfig;
private deviceInfo;
private sharedPreferences;
private frameworkService;
private appInfoService;
private apiService;
private getDeviceProfileHandler;
private static readonly DEVICE_REGISTER_ENDPOINT;
private readonly deviceRegisterConfig;
private readonly apiConfig;
constructor(sdkConfig: SdkConfig, deviceInfo: DeviceInfo, sharedPreferences: SharedPreferences, frameworkService: FrameworkService, appInfoService: AppInfo, apiService: ApiService);
constructor(sdkConfig: SdkConfig, deviceInfo: DeviceInfo, sharedPreferences: SharedPreferences, frameworkService: FrameworkService, appInfoService: AppInfo, apiService: ApiService, getDeviceProfileHandler: GetDeviceProfileHandler);
handle(request?: DeviceRegisterRequest): Observable<DeviceRegisterResponse>;
private registerDevice;
}
2 changes: 2 additions & 0 deletions dist/device-register/impl/device-register-service-impl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export declare class DeviceRegisterServiceImpl implements DeviceRegisterService
private frameworkService;
private appInfoService;
private apiService;
private readonly deviceRegisterHandler;
private readonly getDeviceProfileHandler;
constructor(sdkConfig: SdkConfig, deviceInfo: DeviceInfo, sharedPreferences: SharedPreferences, frameworkService: FrameworkService, appInfoService: AppInfo, apiService: ApiService);
registerDevice(request?: DeviceRegisterRequest): Observable<DeviceRegisterResponse>;
getDeviceProfile(): Observable<DeviceProfileResponse>;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/preference-keys.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export declare namespace CodePush {
}
export declare namespace CodePushExperiment {
const DEFAULT_DEPLOYMENT_KEY = "default_deployment_key";
const EXPERIMENT_KEY = "emperiment_key";
const EXPERIMENT_KEY = "experiment_key";
const EXPERIMENT_APP_VERSION = "emperiment_app_version";
}
export declare namespace DeviceRegister {
Expand Down
1 change: 1 addition & 0 deletions dist/profile/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ export * from './def/tenant-info-request';
export * from './def/merge-server-profiles-request';
export * from './def/user-feed-response';
export * from './def/user-migrate-request';
export * from './def/location-search-result';
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sunbird-sdk",
"version": "2.7.5",
"version": "2.7.6",
"description": "Heart of the sunbird mobile app.",
"main": "dist/index.js",
"scripts": {
Expand Down
13 changes: 9 additions & 4 deletions src/device-register/def/request.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import {DeviceSpec} from '../../util/device';

export interface UserDeclaredLocation {
declaredOffline?: boolean,
state: string;
stateId?: string;
district: string;
districtId?: string;
}

export interface DeviceRegisterRequest {
dspec?: DeviceSpec;
channel?: string;
fcmToken?: string;
producer?: string;
first_access?: number;
userDeclaredLocation?: {
state: string;
district: string;
};
userDeclaredLocation?: UserDeclaredLocation;
}
Loading

0 comments on commit 9e71d31

Please sign in to comment.