simpo-component-library 3.8.20 → 3.8.22
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/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +6 -3
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +97 -5
- package/esm2022/lib/ecommerce/sections/passbook-redemption/passbook-redemption.component.mjs +100 -0
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
- package/esm2022/lib/elements/add-section/add-section.component.mjs +8 -6
- package/esm2022/lib/services/rest.service.mjs +25 -1
- package/fesm2022/simpo-component-library.mjs +222 -13
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -0
- package/lib/ecommerce/sections/cart/cart.component.d.ts +15 -0
- package/lib/ecommerce/sections/passbook-redemption/passbook-redemption.component.d.ts +40 -0
- package/lib/services/rest.service.d.ts +5 -0
- package/package.json +1 -1
- package/simpo-component-library-3.8.22.tgz +0 -0
- package/simpo-component-library-3.8.20.tgz +0 -0
package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
115
115
|
isEmailOrNumberValid(): boolean;
|
|
116
116
|
emailOrNumberDebounceTimer: any;
|
|
117
117
|
onEmailOrNumberChange(): void;
|
|
118
|
+
get currentYear(): number;
|
|
118
119
|
get isMobile(): boolean;
|
|
119
120
|
get stylesLayout(): LayOutModel;
|
|
120
121
|
get accentColor(): string;
|
|
@@ -169,10 +169,16 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
169
169
|
viewPendingVideoCart(): void;
|
|
170
170
|
getButtonId(index: number): string;
|
|
171
171
|
getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
|
|
172
|
+
/** "Continue shopping" uses the 2nd button; legacy data with a single button falls back to the first. */
|
|
173
|
+
get continueShoppingIdx(): number;
|
|
174
|
+
/** "Place order" uses the 3rd button; legacy data with fewer buttons falls back to the first. */
|
|
175
|
+
get placeOrderIdx(): number;
|
|
172
176
|
changeQuantity(quantity: any, item: OrderedItems): void;
|
|
173
177
|
showReedemError: boolean;
|
|
174
178
|
vaildAmount: number;
|
|
175
179
|
redeemScheme(scheme: any, action: boolean): void;
|
|
180
|
+
selectPassbookScheme(): void;
|
|
181
|
+
removePassbookRedemption(): void;
|
|
176
182
|
getUrl(): boolean;
|
|
177
183
|
get fontColor(): string;
|
|
178
184
|
get accentBackground(): string;
|
|
@@ -183,6 +189,15 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
183
189
|
isPointsRedeeming: boolean;
|
|
184
190
|
redemptionPoints: any;
|
|
185
191
|
checkAppInstalled(): void;
|
|
192
|
+
passbookAppInstalled: boolean;
|
|
193
|
+
isLoggedInForSchemes: boolean;
|
|
194
|
+
jewellerySchemes: any[];
|
|
195
|
+
jewellerySchemesLoaded: boolean;
|
|
196
|
+
get hasAnyJewellerySchemes(): boolean;
|
|
197
|
+
get jewellerySchemeAvailableAmount(): number;
|
|
198
|
+
checkPassbookAppInstalled(): void;
|
|
199
|
+
loadJewellerySchemesForCart(): void;
|
|
200
|
+
goToLoginForSchemes(): void;
|
|
186
201
|
totalSavingAmt: number;
|
|
187
202
|
totalSavingPoints: number;
|
|
188
203
|
pointsConverted: number;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { RestService } from '../../../services/rest.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PassbookRedemptionComponent implements OnInit {
|
|
7
|
+
dialogRef: MatDialogRef<PassbookRedemptionComponent>;
|
|
8
|
+
data: {
|
|
9
|
+
businessId: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
cartTotal: number;
|
|
12
|
+
preloadedSchemes?: any[];
|
|
13
|
+
};
|
|
14
|
+
private readonly restService;
|
|
15
|
+
private readonly router;
|
|
16
|
+
step: 'list' | 'otp';
|
|
17
|
+
loading: boolean;
|
|
18
|
+
schemes: any[];
|
|
19
|
+
selectedScheme: any;
|
|
20
|
+
quote: any;
|
|
21
|
+
otp: string;
|
|
22
|
+
error: string;
|
|
23
|
+
constructor(dialogRef: MatDialogRef<PassbookRedemptionComponent>, data: {
|
|
24
|
+
businessId: string;
|
|
25
|
+
userId: string;
|
|
26
|
+
cartTotal: number;
|
|
27
|
+
preloadedSchemes?: any[];
|
|
28
|
+
}, restService: RestService, router: Router);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
loadEligibleSchemes(): void;
|
|
31
|
+
selectScheme(scheme: any): void;
|
|
32
|
+
goToAllSchemes(): void;
|
|
33
|
+
get appliedAmount(): number;
|
|
34
|
+
sendOtp(): void;
|
|
35
|
+
goBackToList(): void;
|
|
36
|
+
close(): void;
|
|
37
|
+
confirm(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PassbookRedemptionComponent, [null, null, null, { optional: true; }]>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PassbookRedemptionComponent, "simpo-passbook-redemption", never, {}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
@@ -174,6 +174,11 @@ export declare class RestService implements OnDestroy {
|
|
|
174
174
|
getAllTransactions(payload: any): Observable<Object>;
|
|
175
175
|
getSchemeDetails(schemeId: any): Observable<Object>;
|
|
176
176
|
getMetalPrice(storeId: any): Observable<Object>;
|
|
177
|
+
getCheckoutRedemptionEligibleSchemes(businessId: any, userId: any): Observable<Object>;
|
|
178
|
+
getCheckoutRedemptionQuote(passbookId: any): Observable<Object>;
|
|
179
|
+
requestCheckoutRedemptionOtp(passbookId: any): Observable<Object>;
|
|
180
|
+
applyPassbookRedemption(cartId: any, passbookId: any, otp: any): Observable<Object>;
|
|
181
|
+
removePassbookRedemption(cartId: any): Observable<Object>;
|
|
177
182
|
createLead(payload: any): Observable<Object>;
|
|
178
183
|
getAppointmentPaymentStatus(orderId: any): Observable<Object>;
|
|
179
184
|
getOtpForLogin(payload: any): Observable<Object>;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|