tickera-angular-components 0.0.1-dev.107 → 0.0.1-dev.109
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/fesm2022/tickera-angular-components.mjs +202 -6
- package/fesm2022/tickera-angular-components.mjs.map +1 -1
- package/i18n/en.json +2 -1
- package/i18n/es.json +2 -1
- package/index.d.ts +144 -3
- package/package.json +1 -1
package/i18n/en.json
CHANGED
package/i18n/es.json
CHANGED
package/index.d.ts
CHANGED
|
@@ -166,6 +166,19 @@ declare const VENUES_API_ROUTES: {
|
|
|
166
166
|
deleteOneImage: (venueId: number, imageId: number) => string;
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
+
declare const VIP_CARDS_API_ROUTES: {
|
|
170
|
+
findAll: string;
|
|
171
|
+
findOne: (id: number) => string;
|
|
172
|
+
activateAdmin: string;
|
|
173
|
+
rechargeAdmin: (id: number) => string;
|
|
174
|
+
updateStatus: (id: number) => string;
|
|
175
|
+
updateTerms: (id: number) => string;
|
|
176
|
+
transactions: (id: number) => string;
|
|
177
|
+
findMy: string;
|
|
178
|
+
activate: string;
|
|
179
|
+
recharge: string;
|
|
180
|
+
};
|
|
181
|
+
|
|
169
182
|
declare const BUTTON_VARIANT_CLASSES: Record<string, string>;
|
|
170
183
|
declare const BASE_BUTTON_CLASSES = "btn";
|
|
171
184
|
declare const BUTTON_SIZES_CLASSES: Record<string, string>;
|
|
@@ -427,7 +440,8 @@ interface BreadcrumbStep {
|
|
|
427
440
|
declare enum OrderItemType {
|
|
428
441
|
TICKET = "TICKET",
|
|
429
442
|
PRODUCT = "PRODUCT",
|
|
430
|
-
GIFT_BOND = "GIFT_BOND"
|
|
443
|
+
GIFT_BOND = "GIFT_BOND",
|
|
444
|
+
CORPORATE_BOND = "CORPORATE_BOND"
|
|
431
445
|
}
|
|
432
446
|
|
|
433
447
|
declare enum OrderStatus {
|
|
@@ -654,6 +668,18 @@ declare enum TransactionStatus {
|
|
|
654
668
|
ERROR = "ERROR"
|
|
655
669
|
}
|
|
656
670
|
|
|
671
|
+
declare enum VipCardStatus {
|
|
672
|
+
ACTIVE = "ACTIVE",
|
|
673
|
+
INACTIVE = "INACTIVE",
|
|
674
|
+
EXPIRED = "EXPIRED"
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare enum VipTransactionType {
|
|
678
|
+
INITIAL_RECHARGE = "INITIAL_RECHARGE",
|
|
679
|
+
RECHARGE = "RECHARGE",
|
|
680
|
+
PURCHASE_PAYMENT = "PURCHASE_PAYMENT"
|
|
681
|
+
}
|
|
682
|
+
|
|
657
683
|
interface FetchProductCategoriesParams {
|
|
658
684
|
name?: string;
|
|
659
685
|
slug?: string;
|
|
@@ -1581,6 +1607,57 @@ interface QrTokenResponse {
|
|
|
1581
1607
|
message: string;
|
|
1582
1608
|
}
|
|
1583
1609
|
|
|
1610
|
+
interface VipCategorySnapshot {
|
|
1611
|
+
membership_id: number;
|
|
1612
|
+
name: string;
|
|
1613
|
+
discount_percentage: number;
|
|
1614
|
+
service_fee_exempt: boolean;
|
|
1615
|
+
applicable_show_ids: number[] | null;
|
|
1616
|
+
excluded_show_ids: number[] | null;
|
|
1617
|
+
duration_days: number;
|
|
1618
|
+
}
|
|
1619
|
+
interface VipCard extends Auditable {
|
|
1620
|
+
id: number;
|
|
1621
|
+
uuid: string;
|
|
1622
|
+
customer: Customer;
|
|
1623
|
+
customer_id: number;
|
|
1624
|
+
membership: {
|
|
1625
|
+
id: number;
|
|
1626
|
+
name: string;
|
|
1627
|
+
} | null;
|
|
1628
|
+
membership_id: number;
|
|
1629
|
+
category_snapshot: VipCategorySnapshot;
|
|
1630
|
+
balance: number;
|
|
1631
|
+
status: VipCardStatus;
|
|
1632
|
+
activated_at: string | null;
|
|
1633
|
+
last_activity_at: string | null;
|
|
1634
|
+
expires_at: string | null;
|
|
1635
|
+
last_low_balance_alert_at: string | null;
|
|
1636
|
+
last_expiry_alert_at: string | null;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
interface VipTransaction {
|
|
1640
|
+
id: number;
|
|
1641
|
+
uuid: string;
|
|
1642
|
+
vip_card_id: number;
|
|
1643
|
+
type: VipTransactionType;
|
|
1644
|
+
amount: number;
|
|
1645
|
+
balance_before: number;
|
|
1646
|
+
balance_after: number;
|
|
1647
|
+
order: Order | null;
|
|
1648
|
+
order_id: number | null;
|
|
1649
|
+
description: string | null;
|
|
1650
|
+
created_at: string;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
interface VipCardResponse {
|
|
1654
|
+
vip_card: VipCard;
|
|
1655
|
+
}
|
|
1656
|
+
interface VipCardsResponse {
|
|
1657
|
+
vip_cards: VipCard[];
|
|
1658
|
+
total: number;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1584
1661
|
declare const DOCUMENT_TYPES_OPTIONS: SelectOption[];
|
|
1585
1662
|
|
|
1586
1663
|
declare const PAYMENT_METHODS_OPTIONS: SelectOption[];
|
|
@@ -2285,6 +2362,34 @@ declare class TicketQrModalService {
|
|
|
2285
2362
|
static ɵprov: i0.ɵɵInjectableDeclaration<TicketQrModalService>;
|
|
2286
2363
|
}
|
|
2287
2364
|
|
|
2365
|
+
interface VipCardsQueryParams {
|
|
2366
|
+
page?: number;
|
|
2367
|
+
limit?: number;
|
|
2368
|
+
status?: VipCardStatus;
|
|
2369
|
+
membership_id?: number;
|
|
2370
|
+
customer_id?: number;
|
|
2371
|
+
}
|
|
2372
|
+
interface VipTransactionsResponse {
|
|
2373
|
+
transactions: VipTransaction[];
|
|
2374
|
+
total: number;
|
|
2375
|
+
}
|
|
2376
|
+
declare class VipCardService {
|
|
2377
|
+
private apiService;
|
|
2378
|
+
constructor(apiService: ApiService);
|
|
2379
|
+
findMy(): Observable<VipCard | null>;
|
|
2380
|
+
activate(data: any): Observable<VipCardResponse>;
|
|
2381
|
+
recharge(data: any): Observable<VipCardResponse>;
|
|
2382
|
+
fetchAll(queryParams?: VipCardsQueryParams): Observable<VipCardsResponse>;
|
|
2383
|
+
fetchOneById(id: number): Observable<VipCardResponse>;
|
|
2384
|
+
activateAdmin(data: any): Observable<VipCardResponse>;
|
|
2385
|
+
rechargeAdmin(id: number, data: any): Observable<VipCardResponse>;
|
|
2386
|
+
updateStatus(id: number, status: VipCardStatus): Observable<VipCardResponse>;
|
|
2387
|
+
updateTerms(id: number): Observable<VipCardResponse>;
|
|
2388
|
+
fetchTransactions(id: number, page?: number, limit?: number): Observable<VipTransactionsResponse>;
|
|
2389
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipCardService, never>;
|
|
2390
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VipCardService>;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2288
2393
|
declare const authInterceptor: HttpInterceptorFn;
|
|
2289
2394
|
|
|
2290
2395
|
declare class AppButtonComponent {
|
|
@@ -3611,11 +3716,13 @@ declare class OrderItemsComponent {
|
|
|
3611
3716
|
protected get products(): Order['order_items'];
|
|
3612
3717
|
protected get tickets(): Order['order_items'];
|
|
3613
3718
|
protected get giftBonds(): Order['order_items'];
|
|
3719
|
+
protected get corporateBonds(): Order['order_items'];
|
|
3614
3720
|
protected get showActionColumn(): boolean;
|
|
3615
3721
|
protected itemTotal(quantity: number, price: number): number;
|
|
3616
3722
|
protected hasDiscount(): boolean;
|
|
3617
3723
|
protected get totals(): {
|
|
3618
3724
|
giftBonds: number;
|
|
3725
|
+
corporateBonds: number;
|
|
3619
3726
|
products: number;
|
|
3620
3727
|
tickets: number;
|
|
3621
3728
|
};
|
|
@@ -3715,5 +3822,39 @@ declare class TicketQrModalComponent {
|
|
|
3715
3822
|
static ɵcmp: i0.ɵɵComponentDeclaration<TicketQrModalComponent, "ticket-qr-modal", never, {}, {}, never, never, true, never>;
|
|
3716
3823
|
}
|
|
3717
3824
|
|
|
3718
|
-
|
|
3719
|
-
|
|
3825
|
+
declare class VipBalanceCardComponent {
|
|
3826
|
+
card: VipCard | null;
|
|
3827
|
+
get statusColor(): BadgeColor;
|
|
3828
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipBalanceCardComponent, never>;
|
|
3829
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VipBalanceCardComponent, "vip-balance-card", never, { "card": { "alias": "card"; "required": false; }; }, {}, never, never, true, never>;
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
declare class VipRechargeModalComponent {
|
|
3833
|
+
private fb;
|
|
3834
|
+
title: string;
|
|
3835
|
+
submitLabel: string;
|
|
3836
|
+
loading: boolean;
|
|
3837
|
+
minAmount: number;
|
|
3838
|
+
isOpen: WritableSignal<boolean>;
|
|
3839
|
+
closeModal: EventEmitter<void>;
|
|
3840
|
+
confirm: EventEmitter<{
|
|
3841
|
+
amount: number;
|
|
3842
|
+
}>;
|
|
3843
|
+
rechargeForm: FormGroup;
|
|
3844
|
+
constructor(fb: FormBuilder);
|
|
3845
|
+
onClose(): void;
|
|
3846
|
+
onSubmit(): void;
|
|
3847
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipRechargeModalComponent, never>;
|
|
3848
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VipRechargeModalComponent, "vip-recharge-modal", never, { "title": { "alias": "title"; "required": false; }; "submitLabel": { "alias": "submitLabel"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "minAmount": { "alias": "minAmount"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "closeModal": "closeModal"; "confirm": "confirm"; }, never, never, true, never>;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3851
|
+
declare class VipTransactionsTableComponent {
|
|
3852
|
+
transactions: VipTransaction[];
|
|
3853
|
+
loading: boolean;
|
|
3854
|
+
typeLabel(type: VipTransactionType): string;
|
|
3855
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VipTransactionsTableComponent, never>;
|
|
3856
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VipTransactionsTableComponent, "vip-transactions-table", never, { "transactions": { "alias": "transactions"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
export { ADMIN_API_ROUTES, ALERT_ICONS, AdminSelectComponent, AdminService, ApiService, AppAlertComponent, AppBadgeComponent, AppBreadcumbComponent, AppButtonComponent, AppLinkButtonComponent, AppModalComponent, AsyncSelectComponent, AuditInformationComponent, BASE_BUTTON_CLASSES, BASE_INPUT_CLASSES, BUTTON_SIZES_CLASSES, BUTTON_VARIANT_CLASSES, BaseModalService, CITY_API_ENDPOINTS, COUNTRY_API_ENDPOINTS, CUSTOMERS_API_ROUTES, ChangePasswordFormComponent, ChangePasswordFormService, CitiesService, CitySelectComponent, ColorPickerComponent, ConfirmationOrderModalComponent, ConfirmationOrderModalService, CorporateBondStatus, CountrySelectComponent, CountryService, CouponApplicability, CouponDiscountType, CouponStatus, CreatorType, CustomerSelectComponent, CustomerService, DEFAULT_STAGE_CONFIG, DOCUMENT_TYPES_OPTIONS, DateInputComponent, DateService, DaySelectorGridComponent, DeleteConfirmationComponent, DeleteConfirmationService, DynamicTableComponent, ERROR_INPUT_CLASSES, EndDateGreaterThanStartValidator, FORM_ERROR_MESSAGES, FeedbackModalComponent, FeedbackModalService, FileType, FileUploadComponent, FileUploadPreviewComponent, FormEditorComponent, FormInputComponent, FormSelectComponent, FormTextareaComponent, GiftBondPurchaseStatus, GiftBondStatus, KONVA_SHAPE_MAPPINGS, LanguageSwitcherComponent, MinTodayValidator, MustMatchValidator, ORDER_DISCOUNT_COLORS, ORDER_ITEM_TYPES_COLORS, ORDER_STATUS_COLORS, OrderBillingInfoComponent, OrderDiscountAppliedComponent, OrderInformationComponent, OrderItemType, OrderItemTypeBadgeComponent, OrderItemsComponent, OrderStatus, OrderStatusBadgeComponent, OrderTransactionDetailsModalComponent, OrderTransactionDetailsModalService, OrderTransactionsComponent, PAYMENT_METHODS_OPTIONS, PERFORMANCES_API_ROUTES, PERFORMANCE_STATUS_COLORS, PERFORMANCE_TICKET_STATUS_COLORS, PRICE_ZONES_API_ROUTES, PRODUCTS_API_ROUTES, PRODUCT_CATEGORIES_API_ROUTES, PRODUCT_TAGS_API_ROUTES, PRODUCT_TYPES_API_ROUTES, PaymentMethod, PerformanceBookingDataService, PerformanceCardComponent, PerformanceCardListComponent, PerformanceMultiSelectComponent, PerformanceSelectComponent, PerformanceService, PerformanceStatus, PerformanceStatusBadgeComponent, PerformanceStepperComponent, PerformanceTicketMapComponent, PerformanceTicketStatus, PerformanceTicketStatusBadgeComponent, PerformancesListEventsService, PriceZoneEventService, PriceZoneFormModalService, PriceZoneSelectComponent, PriceZoneService, ProductCategoryService, ProductMultiSelectComponent, ProductSelectComponent, ProductService, ProductTagService, ProductTypeService, RoomMapElementOrientation, RoomMapElementType, SHOWS_API_ROUTES, SHOW_TYPE_COLORS, STATE_API_ENDPOINTS, SeatSelectionEmptySummaryComponent, SeatSelectionSummaryComponent, SeatSelectionSummaryItemComponent, SelectedDiscountCardType, ShowCardComponent, ShowCardSkeletonComponent, ShowMultiSelectComponent, ShowSelectComponent, ShowService, ShowType, ShowTypeBadgeComponent, ShowsFilterComponent, StateSelectComponent, StatesService, TICKERA_COMPONENTS_CONFIG, TICKET_ELEMENT_TYPES, TICKET_MAP_GRID_SIZE, TICKET_MAP_LAST_TICKETS_LIMIT, TICKET_MAP_TITLE_HEIGHT, TICKET_STATUS_COLORS, TICKET_STATUS_FILLS, TICKET_STATUS_LABELS, TIcketMapProductSelectionComponent, TRANSACTION_STATUS_COLORS, TextExpandableComponent, TickeraTranslocoLoader, TicketMapPriceZonesComponent, TicketMapProductSelectionItemComponent, TicketMapTotalsComponent, TicketMapWidgetComponent, TicketMapWidgetHeaderComponent, TicketMapWrapperComponent, TicketMapZoomControlsComponent, TicketMapZoomService, TicketQrComponent, TicketQrModalComponent, TicketQrModalService, TicketQrService, TicketSelectionDetailsService, TicketSelectionDiscountService, TicketSelectionService, TicketSelectionTotalsService, ToastService, ToggleSwitchComponent, TransactionStatus, VENUES_API_ROUTES, VIP_CARDS_API_ROUTES, VipBalanceCardComponent, VipCardService, VipCardStatus, VipRechargeModalComponent, VipTransactionType, VipTransactionsTableComponent, ZonePriceItemComponent, ZonePriceListComponent, authInterceptor, drawChairIcon, drawHappyFace, drawRoundedRect, drawWheelchairIcon, findElementAtPosition, findTicketAtPosition, formatCitiesResponseToSelect, generateExitScene, generateHallwayScene, generateProductionAreaScene, generateSeatBlockScene, generateSeatBlockTicketScene, generateStageScene, generateStairScene, generateTableScene, generateTableTicketScene, generateUnavailableSpaceScene, generateZoneScene, getBrowserLanguage, getCustomerFullname, getItemTypeIcon, getOrderDiscount, getStoredLanguage, numberToLetter, parseJsonToFormDataAdvanced, processElementsToRenderData, provideTickeraComponents, resolveLanguage, setStoredLanguage, tintColor, transformImageToFile };
|
|
3860
|
+
export type { Admin, AdminsResponse, AsyncSelectConfig, Auditable, BadgeColor, BadgeSize, BreadcrumbStep, BreadcrumbTheme, CitiesResponse, City, CityResponse, CorporateBond, CorporateBondCode, CorporateBondResponse, CountriesResponse, Country, CountryResponse, Coupon, CouponResponse, Customer, CustomerResponse, CustomersResponse, DailyPerformanceHall, DailyPerformanceItem, DailyPerformancePriceZone, DailyPerformanceShow, DailyPerformanceVenue, DailyPerformancesResponse, DeleteConfirmationOpen, DragDropEvent, DynamicTableHeader, ElementPropertiesTab, ElementRenderData, FeedbackModalElement, FeedbackModalType, FetchCitiesParams, FetchDailyPerformancesParams, FetchProductCategoriesParams, FetchProductTagsParams, FetchProductTypesParams, FetchShowsParams, FileUploadConfig, FindAllPerformancesParams, FindAllPriceZoneParams, GiftBond, GiftBondImage, GiftBondPurchase, GiftBondPurchaseResponse, GiftBondPurchasesResponse, GiftBondResponse, GiftBondsResponse, Hall, HallFloor, HallFloorOption, KonvaShapeConfig, MercadoPagoPreference, ModalSize, NumerationConfig, Order, OrderBillingInfo, OrderDiscountInfo, OrderDiscountType, OrderItem, OrderResponse, OrdersResponse, Performance, PerformanceAvailableDay, PerformanceBookingDataResponse, PerformanceResponse, PerformanceTicket, PerformancesAvailableDaysResponse, PerformancesResponseInterface, PriceZone, PriceZoneResponse, PriceZoneUpdateResponse, PriceZonesResponseInterface, Product, ProductCategoriesResponse, ProductCategory, ProductCategoryResponse, ProductImage, ProductResponse, ProductTag, ProductTagResponse, ProductTagsResponse, ProductTaxonomy, ProductType, ProductTypeResponse, ProductTypesResponse, ProductsResponseInterface, QrTokenData, QrTokenResponse, RecentOrder, RecentRoomMap, ReservePerformanceDto, RoomMap, RoomMapBaseElement, RoomMapCanvasConfiguration, RoomMapCanvasElement, RoomMapChairPosition, RoomMapElementTemplate, RoomMapExitElement, RoomMapGridPosition, RoomMapPosition, RoomMapProductionAreaElement, RoomMapSeatDisplayState, RoomMapSeatElement, RoomMapSeatState, RoomMapSize, RoomMapStageElement, RoomMapTableElement, RoomMapUnavailableElement, RoomMapZoneElement, SelectOption, SelectedDiscountCard, Show, ShowCategoriesResponse, ShowCategory, ShowCategoryResponse, ShowGender, ShowGenderResponse, ShowGendersResponse, ShowImage, ShowResponse, ShowsResponseInterface, State, StateResponse, StatesResponse, TextFontSize, TickeraComponentsConfig, TicketMapSeatPosition, TicketMapTableChairPosition, TicketMapTooltipData, TicketMapZoneQuantityState, TicketMapZoomConfig, Transaction, UploadedFile, ValidateCorporateBondResponse, ValidateCouponResponse, ValidateGiftBondResponse, Venue, VenueImage, VipCard, VipCardResponse, VipCardsQueryParams, VipCardsResponse, VipCategorySnapshot, VipTransaction, VipTransactionsResponse };
|