@salla.sa/twilight 2.0.264 → 2.0.265
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/dist/@salla.sa/twilight.min.js +2 -2
- package/dist/@salla.sa/twilight.min.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/types/api/product.d.ts +1 -1
- package/types/api/profile.d.ts +1 -2
- package/types/event/profile.d.ts +2 -4
package/package.json
CHANGED
package/types/api/product.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface Category {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export interface GetCategoriesResponse extends SuccessResponse {
|
|
57
|
-
data: Category[];
|
|
57
|
+
data: Category | Category[]; //single category when getting subCategories by passing categoryId
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export default interface ProductApi {
|
package/types/api/profile.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ export interface UpdateProfileResponse extends SuccessResponse {
|
|
|
36
36
|
|
|
37
37
|
export default interface ProfileApi {
|
|
38
38
|
update: (data: ProfileUpdatePayload) => Promise<UpdateProfileResponse>;
|
|
39
|
-
updateMobile: (data: ProfileUpdateMobilePayload) => Promise<UpdateProfileResponse>;
|
|
40
|
-
updateEmail: (data: ProfileUpdateEmailPayload) => Promise<UpdateProfileResponse>;
|
|
41
39
|
verify: (data: AuthRequest.verifyByMobile | AuthRequest.verifyByEmail) => Promise<SuccessResponse>;
|
|
40
|
+
updateContacts: (data: ProfileUpdateMobilePayload | ProfileUpdateEmailPayload) => Promise<UpdateProfileResponse>;
|
|
42
41
|
}
|
package/types/event/profile.d.ts
CHANGED
|
@@ -3,13 +3,11 @@ import {RequestErrorEvent, SuccessResponse} from "../common";
|
|
|
3
3
|
|
|
4
4
|
export default interface ProfileEvent {
|
|
5
5
|
onUpdated: (callback: (response: UpdateProfileResponse) => void) => void;
|
|
6
|
-
onMobileUpdated: (callback: (response: UpdateProfileResponse) => void) => void;
|
|
7
|
-
onEmailUpdated: (callback: (response: UpdateProfileResponse) => void) => void;
|
|
8
6
|
onVerified: (callback: (response: SuccessResponse) => void) => void;
|
|
7
|
+
onContactsUpdated: (callback: (response: UpdateProfileResponse) => void) => void;
|
|
9
8
|
|
|
10
9
|
//errors
|
|
11
10
|
onUpdateFailed: RequestErrorEvent;
|
|
12
|
-
onUpdateMobileFailed: RequestErrorEvent;
|
|
13
|
-
onUpdateEmailFailed: RequestErrorEvent;
|
|
14
11
|
onUnverified: RequestErrorEvent;
|
|
12
|
+
onUpdateContactsFailed: RequestErrorEvent;
|
|
15
13
|
}
|