react-native-gizwits-sdk-v5 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +4 -4
- package/package.json +1 -1
- package/react-native-gizwits-sdk-v5.podspec +1 -1
- package/.DS_Store +0 -0
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -11
- package/.gitignore +0 -67
- package/.idea/.gitignore +0 -3
- package/.idea/MarsCodeWorkspaceAppSettings.xml +0 -6
- package/.idea/caches/deviceStreaming.xml +0 -1041
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/react-native-gizwits-sdk-v5.iml +0 -9
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -52
- package/.prettierrc.js +0 -5
- package/android/.DS_Store +0 -0
- package/android/src/main/java/com/gizwits/.DS_Store +0 -0
- package/babel.config.js +0 -3
- package/ios/.DS_Store +0 -0
- package/ios/RNGizSDKManagerModule.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/RNGizSDKManagerModule.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/RNGizSDKManagerModule.xcodeproj/project.xcworkspace/xcuserdata/roc.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNGizSDKManagerModule.xcodeproj/xcuserdata/roc.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/src/Base.tsx +0 -28
- package/src/__tests__/index.test.ts +0 -5
- package/src/device.tsx +0 -314
- package/src/index.tsx +0 -433
- package/src/types.ts +0 -253
- package/src/user.tsx +0 -125
- package/tsconfig.json +0 -18
- package/yarn.lock +0 -6942
package/src/user.tsx
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { NativeModules } from 'react-native'
|
|
2
|
-
|
|
3
|
-
import Base from './Base'
|
|
4
|
-
import { GizCallback, GizResult, IUpdateAuthorizeDataParams } from './types'
|
|
5
|
-
|
|
6
|
-
class RNGizUserManagerModule extends Base {
|
|
7
|
-
logout(): Promise<GizResult<any, any>> {
|
|
8
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
9
|
-
NativeModules.RNGizUserManagerModule.logout({}, callback)
|
|
10
|
-
})
|
|
11
|
-
}
|
|
12
|
-
updateAuthorizeData(
|
|
13
|
-
params: IUpdateAuthorizeDataParams
|
|
14
|
-
): Promise<GizResult<any, any>> {
|
|
15
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
16
|
-
NativeModules.RNGizUserManagerModule.updateAuthorizeData(params, callback)
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
getAuthorizeData(): Promise<GizResult<IUpdateAuthorizeDataParams, any>> {
|
|
20
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
21
|
-
NativeModules.RNGizUserManagerModule.getAuthorizeData({}, callback)
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
loginByAnonymous(): Promise<GizResult<IUpdateAuthorizeDataParams, any>> {
|
|
25
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
26
|
-
NativeModules.RNGizUserManagerModule.loginByAnonymous({}, callback)
|
|
27
|
-
})
|
|
28
|
-
}
|
|
29
|
-
registerWithAccount(username: string, password: string): Promise<GizResult<IUpdateAuthorizeDataParams, any>> {
|
|
30
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
31
|
-
NativeModules.RNGizUserManagerModule.registerWithAccount({username, password}, callback)
|
|
32
|
-
})
|
|
33
|
-
}
|
|
34
|
-
loginWithAccount(username: string, password: string): Promise<GizResult<IUpdateAuthorizeDataParams, any>> {
|
|
35
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
36
|
-
NativeModules.RNGizUserManagerModule.loginWithAccount({username, password}, callback)
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
sendMobileLoginVerifyCode(phoneCode: string, phone: string, lang?: string): Promise<GizResult<any, any>> {
|
|
41
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
42
|
-
NativeModules.RNGizUserManagerModule.sendMobileLoginVerifyCode({phoneCode, phone, lang}, callback)
|
|
43
|
-
})
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
loginWithMobile(phoneCode: string, phone: string, code: string): Promise<GizResult<IUpdateAuthorizeDataParams, any>> {
|
|
47
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
48
|
-
NativeModules.RNGizUserManagerModule.loginWithMobile({phoneCode, phone, code}, callback)
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
loginWithEmail(email: string, code: string): Promise<GizResult<IUpdateAuthorizeDataParams, any>> {
|
|
53
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
54
|
-
NativeModules.RNGizUserManagerModule.loginWithEmail({email, code}, callback)
|
|
55
|
-
})
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
sendEmailLoginVerifyCode(email: string, lang?: string): Promise<GizResult<any, any>> {
|
|
59
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
60
|
-
NativeModules.RNGizUserManagerModule.sendEmailLoginVerifyCode({email, lang}, callback)
|
|
61
|
-
})
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
registerWithMobile(phoneCode: string, phone: string, code: string, password: string): Promise<GizResult<any, any>> {
|
|
65
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
66
|
-
NativeModules.RNGizUserManagerModule.registerWithMobile({phoneCode, phone, code, password}, callback)
|
|
67
|
-
})
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
registerWithEmail(email: string, code: string, password: string,): Promise<GizResult<any, any>> {
|
|
71
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
72
|
-
NativeModules.RNGizUserManagerModule.registerWithEmail({email, password, code}, callback)
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
destroyAccount(): Promise<GizResult<any, any>> {
|
|
77
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
78
|
-
NativeModules.RNGizUserManagerModule.destroyAccount({}, callback)
|
|
79
|
-
})
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
sendMobileRegisterVerifyCode(phoneCode: string,phone: string, lang?: string): Promise<GizResult<any, any>> {
|
|
83
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
84
|
-
NativeModules.RNGizUserManagerModule.sendMobileRegisterVerifyCode({phoneCode, phone,lang}, callback)
|
|
85
|
-
})
|
|
86
|
-
}
|
|
87
|
-
sendEmailRegisterVerifyCode(email: string, lang?: string): Promise<GizResult<any, any>> {
|
|
88
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
89
|
-
NativeModules.RNGizUserManagerModule.sendEmailRegisterVerifyCode({email, lang}, callback)
|
|
90
|
-
})
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
changePasswordWithOldPassword(oldPassword: string, newPassword: string): Promise<GizResult<any, any>> {
|
|
94
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
95
|
-
NativeModules.RNGizUserManagerModule.changePasswordWithOldPassword({oldPassword, newPassword}, callback)
|
|
96
|
-
})
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
sendMobileForgotPasswordVerifyCode(phoneCode: string, phone: string, lang?: string): Promise<GizResult<any, any>> {
|
|
100
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
101
|
-
NativeModules.RNGizUserManagerModule.sendMobileForgotPasswordVerifyCode({phoneCode, phone,lang}, callback)
|
|
102
|
-
})
|
|
103
|
-
}
|
|
104
|
-
sendEmailForgotPasswordVerifyCode(email: string, lang?: string): Promise<GizResult<any, any>> {
|
|
105
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
106
|
-
NativeModules.RNGizUserManagerModule.sendEmailForgotPasswordVerifyCode({email, lang}, callback)
|
|
107
|
-
})
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
forgotWithEmail(email: string, code: string, password: string): Promise<GizResult<any, any>> {
|
|
111
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
112
|
-
NativeModules.RNGizUserManagerModule.forgotWithEmail({email, code, password}, callback)
|
|
113
|
-
})
|
|
114
|
-
}
|
|
115
|
-
forgotWithMobile(phoneCode: string, phone: string, code: string, password: string): Promise<GizResult<any, any>> {
|
|
116
|
-
return this.callbackWapper((callback: GizCallback<any, any>) => {
|
|
117
|
-
NativeModules.RNGizUserManagerModule.forgotWithMobile({phoneCode, phone, code, password}, callback)
|
|
118
|
-
})
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export default new RNGizUserManagerModule()
|
|
124
|
-
|
|
125
|
-
export { RNGizUserManagerModule }
|
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"declaration": true,
|
|
4
|
-
"esModuleInterop": true,
|
|
5
|
-
"jsx": "react",
|
|
6
|
-
"lib": ["ESNext"],
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"moduleResolution": "Node",
|
|
9
|
-
"noEmitOnError": true,
|
|
10
|
-
"outDir": "./lib",
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"sourceMap": true,
|
|
13
|
-
"strict": true,
|
|
14
|
-
"target": "ES2018",
|
|
15
|
-
},
|
|
16
|
-
"exclude": ["**/__tests__/*"],
|
|
17
|
-
"include": ["src"]
|
|
18
|
-
}
|