@exyconn/common 2.0.0 → 2.1.0
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/client/index.d.mts +2 -1
- package/dist/client/index.d.ts +2 -1
- package/dist/client/index.js +2693 -19
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +2634 -21
- package/dist/client/index.mjs.map +1 -1
- package/dist/index-BcxL4_V4.d.ts +2946 -0
- package/dist/index-bvvCev9Q.d.mts +2946 -0
- package/dist/index.d.mts +14 -163
- package/dist/index.d.ts +14 -163
- package/dist/index.js +2701 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2683 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +33 -3
- package/dist/index-BLltj-zN.d.ts +0 -1236
- package/dist/index-CIUdLBjA.d.mts +0 -1236
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { i as server } from './index-DbV04Dx8.mjs';
|
|
2
|
-
|
|
2
|
+
import { A as APPS, a as AppConfig, B as BRANDS, b as BrandColors, c as BrandIdentity, C as ContactInfo, L as LogoSet, S as SEOConfig, d as SocialLinks, e as createAppConfig, f as detectCurrentBrand, g as getAllBrandIds, h as getAllBrands$1, i as getAppConfigByDomain, j as getBrandByDomain$1, k as getBrandById, l as getLogo$1, m as getThemedLogo } from './index-bvvCev9Q.mjs';
|
|
3
|
+
export { n as client } from './index-bvvCev9Q.mjs';
|
|
3
4
|
export { i as shared } from './index-DfqEP6Oe.mjs';
|
|
4
5
|
import './server/response/index.mjs';
|
|
5
6
|
import 'express';
|
|
@@ -16,6 +17,7 @@ import './client/logger/index.mjs';
|
|
|
16
17
|
import './client/utils/index.mjs';
|
|
17
18
|
import './response.types-D--UhLJq.mjs';
|
|
18
19
|
import 'react';
|
|
20
|
+
import 'yup';
|
|
19
21
|
import 'date-fns';
|
|
20
22
|
import 'date-fns-tz';
|
|
21
23
|
|
|
@@ -435,170 +437,22 @@ interface CompanyBrand {
|
|
|
435
437
|
}
|
|
436
438
|
declare const brands: Record<string, CompanyBrand>;
|
|
437
439
|
declare const getBrand: (key: string) => CompanyBrand | undefined;
|
|
438
|
-
declare const getBrandByDomain
|
|
439
|
-
declare const getLogo
|
|
440
|
-
declare const getAllBrands
|
|
440
|
+
declare const getBrandByDomain: (domain: string) => CompanyBrand | undefined;
|
|
441
|
+
declare const getLogo: (brandKey: string, mode: "light" | "dark", type?: "full" | "icon") => string | undefined;
|
|
442
|
+
declare const getAllBrands: () => CompanyBrand[];
|
|
441
443
|
declare const getAllBrandKeys: () => string[];
|
|
442
444
|
|
|
443
|
-
/**
|
|
444
|
-
* Brand Identity Configuration
|
|
445
|
-
* Complete brand identity for all Exyconn projects including logos,
|
|
446
|
-
* colors, contact info, and social links
|
|
447
|
-
*/
|
|
448
|
-
/**
|
|
449
|
-
* Logo variants interface
|
|
450
|
-
* - light: Logo for light backgrounds (dark colored logo)
|
|
451
|
-
* - dark: Logo for dark backgrounds (light colored logo)
|
|
452
|
-
* - logoOnly: Just the icon/symbol without text (light bg)
|
|
453
|
-
* - darkLogoOnly: Just the icon/symbol without text (dark bg)
|
|
454
|
-
*/
|
|
455
|
-
interface LogoSet {
|
|
456
|
-
/** Full logo with text for light backgrounds */
|
|
457
|
-
light: string;
|
|
458
|
-
/** Full logo with text for dark backgrounds */
|
|
459
|
-
dark: string;
|
|
460
|
-
/** Icon only for light backgrounds */
|
|
461
|
-
logoOnly: string;
|
|
462
|
-
/** Icon only for dark backgrounds */
|
|
463
|
-
darkLogoOnly: string;
|
|
464
|
-
/** Favicon URL */
|
|
465
|
-
favicon: string;
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* Brand colors
|
|
469
|
-
*/
|
|
470
|
-
interface BrandColors {
|
|
471
|
-
primary: string;
|
|
472
|
-
secondary: string;
|
|
473
|
-
accent?: string;
|
|
474
|
-
background?: string;
|
|
475
|
-
foreground?: string;
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* Social media links
|
|
479
|
-
*/
|
|
480
|
-
interface SocialLinks {
|
|
481
|
-
twitter?: string;
|
|
482
|
-
facebook?: string;
|
|
483
|
-
instagram?: string;
|
|
484
|
-
linkedin?: string;
|
|
485
|
-
github?: string;
|
|
486
|
-
youtube?: string;
|
|
487
|
-
discord?: string;
|
|
488
|
-
tiktok?: string;
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* Contact information
|
|
492
|
-
*/
|
|
493
|
-
interface ContactInfo {
|
|
494
|
-
supportEmail: string;
|
|
495
|
-
salesEmail?: string;
|
|
496
|
-
phone?: string;
|
|
497
|
-
address?: string;
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* SEO Configuration
|
|
501
|
-
*/
|
|
502
|
-
interface SEOConfig {
|
|
503
|
-
title: string;
|
|
504
|
-
description: string;
|
|
505
|
-
keywords: string[];
|
|
506
|
-
ogImage?: string;
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* Complete Brand Identity
|
|
510
|
-
*/
|
|
511
|
-
interface BrandIdentity {
|
|
512
|
-
id: string;
|
|
513
|
-
name: string;
|
|
514
|
-
tagline: string;
|
|
515
|
-
domain: string;
|
|
516
|
-
logo: LogoSet;
|
|
517
|
-
colors: BrandColors;
|
|
518
|
-
contact: ContactInfo;
|
|
519
|
-
social?: SocialLinks;
|
|
520
|
-
seo?: SEOConfig;
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* App configuration for runtime
|
|
524
|
-
* Use this in your apps for consistent branding
|
|
525
|
-
*/
|
|
526
|
-
interface AppConfig {
|
|
527
|
-
name: string;
|
|
528
|
-
tagline: string;
|
|
529
|
-
domain: string;
|
|
530
|
-
supportEmail: string;
|
|
531
|
-
logo: LogoSet;
|
|
532
|
-
colors: BrandColors;
|
|
533
|
-
}
|
|
534
|
-
declare const BRANDS: Record<string, BrandIdentity>;
|
|
535
|
-
/**
|
|
536
|
-
* Pre-configured APP objects for each project
|
|
537
|
-
* Import directly: import { APP } from '@exyconn/common'
|
|
538
|
-
* Then configure which APP to use based on environment
|
|
539
|
-
*/
|
|
540
|
-
declare const APPS: {
|
|
541
|
-
readonly BOTIFY: AppConfig;
|
|
542
|
-
readonly EXYCONN: AppConfig;
|
|
543
|
-
readonly PARTYWINGS: AppConfig;
|
|
544
|
-
readonly SIBERA: AppConfig;
|
|
545
|
-
readonly SPENTIVA: AppConfig;
|
|
546
|
-
};
|
|
547
|
-
/**
|
|
548
|
-
* Create an AppConfig from a brand
|
|
549
|
-
*/
|
|
550
|
-
declare function createAppConfig(brandId: string): AppConfig;
|
|
551
|
-
/**
|
|
552
|
-
* Get brand by ID
|
|
553
|
-
*/
|
|
554
|
-
declare function getBrandById(id: string): BrandIdentity | undefined;
|
|
555
|
-
/**
|
|
556
|
-
* Get brand by domain
|
|
557
|
-
*/
|
|
558
|
-
declare function getBrandByDomain(domain: string): BrandIdentity | undefined;
|
|
559
|
-
/**
|
|
560
|
-
* Get all brands
|
|
561
|
-
*/
|
|
562
|
-
declare function getAllBrands(): BrandIdentity[];
|
|
563
|
-
/**
|
|
564
|
-
* Get all brand IDs
|
|
565
|
-
*/
|
|
566
|
-
declare function getAllBrandIds(): string[];
|
|
567
|
-
/**
|
|
568
|
-
* Get logo for a brand
|
|
569
|
-
* @param brandId - Brand identifier
|
|
570
|
-
* @param variant - 'light' | 'dark' | 'logoOnly' | 'darkLogoOnly'
|
|
571
|
-
*/
|
|
572
|
-
declare function getLogo(brandId: string, variant: keyof LogoSet): string | undefined;
|
|
573
|
-
/**
|
|
574
|
-
* Get appropriate logo based on theme
|
|
575
|
-
* @param brandId - Brand identifier
|
|
576
|
-
* @param theme - 'light' | 'dark'
|
|
577
|
-
* @param iconOnly - Whether to return icon only logo
|
|
578
|
-
*/
|
|
579
|
-
declare function getThemedLogo(brandId: string, theme: 'light' | 'dark', iconOnly?: boolean): string | undefined;
|
|
580
|
-
/**
|
|
581
|
-
* Get current app config based on domain
|
|
582
|
-
* Useful for multi-tenant applications
|
|
583
|
-
*/
|
|
584
|
-
declare function getAppConfigByDomain(domain: string): AppConfig | undefined;
|
|
585
|
-
/**
|
|
586
|
-
* Detect brand from current window.location.hostname
|
|
587
|
-
* For browser environments only
|
|
588
|
-
*/
|
|
589
|
-
declare function detectCurrentBrand(): BrandIdentity | undefined;
|
|
590
|
-
|
|
591
445
|
declare const index_AADHAAR_INDIA: typeof AADHAAR_INDIA;
|
|
592
446
|
declare const index_ALPHANUMERIC: typeof ALPHANUMERIC;
|
|
593
447
|
declare const index_AMEX: typeof AMEX;
|
|
594
448
|
declare const index_APPS: typeof APPS;
|
|
595
449
|
declare const index_ARCHIVE_EXT: typeof ARCHIVE_EXT;
|
|
596
450
|
declare const index_AUDIO_EXT: typeof AUDIO_EXT;
|
|
597
|
-
|
|
451
|
+
declare const index_AppConfig: typeof AppConfig;
|
|
598
452
|
declare const index_BASE64: typeof BASE64;
|
|
599
453
|
declare const index_BRANDS: typeof BRANDS;
|
|
600
|
-
|
|
601
|
-
|
|
454
|
+
declare const index_BrandColors: typeof BrandColors;
|
|
455
|
+
declare const index_BrandIdentity: typeof BrandIdentity;
|
|
602
456
|
declare const index_CARD_EXPIRY: typeof CARD_EXPIRY;
|
|
603
457
|
declare const index_CREDIT_CARD: typeof CREDIT_CARD;
|
|
604
458
|
declare const index_CUID: typeof CUID;
|
|
@@ -606,7 +460,7 @@ declare const index_CUID2: typeof CUID2;
|
|
|
606
460
|
declare const index_CVV: typeof CVV;
|
|
607
461
|
type index_City = City;
|
|
608
462
|
type index_CompanyBrand = CompanyBrand;
|
|
609
|
-
|
|
463
|
+
declare const index_ContactInfo: typeof ContactInfo;
|
|
610
464
|
type index_Country = Country;
|
|
611
465
|
type index_CountryWithFlag = CountryWithFlag;
|
|
612
466
|
type index_Currency = Currency;
|
|
@@ -645,7 +499,7 @@ declare const index_LETTERS_ONLY: typeof LETTERS_ONLY;
|
|
|
645
499
|
declare const index_LOCALHOST: typeof LOCALHOST;
|
|
646
500
|
declare const index_LONGITUDE: typeof LONGITUDE;
|
|
647
501
|
type index_Logo = Logo;
|
|
648
|
-
|
|
502
|
+
declare const index_LogoSet: typeof LogoSet;
|
|
649
503
|
type index_LogoVariants = LogoVariants;
|
|
650
504
|
declare const index_MAC_ADDRESS: typeof MAC_ADDRESS;
|
|
651
505
|
declare const index_MASTERCARD: typeof MASTERCARD;
|
|
@@ -680,11 +534,11 @@ declare const index_RGBA_COLOR: typeof RGBA_COLOR;
|
|
|
680
534
|
declare const index_RGB_COLOR: typeof RGB_COLOR;
|
|
681
535
|
declare const index_SAFE_FILENAME: typeof SAFE_FILENAME;
|
|
682
536
|
declare const index_SEMVER: typeof SEMVER;
|
|
683
|
-
|
|
537
|
+
declare const index_SEOConfig: typeof SEOConfig;
|
|
684
538
|
declare const index_SLUG: typeof SLUG;
|
|
685
539
|
declare const index_SSN_US: typeof SSN_US;
|
|
686
540
|
declare const index_SUBDOMAIN: typeof SUBDOMAIN;
|
|
687
|
-
|
|
541
|
+
declare const index_SocialLinks: typeof SocialLinks;
|
|
688
542
|
type index_State = State;
|
|
689
543
|
declare const index_TIME_12H: typeof TIME_12H;
|
|
690
544
|
declare const index_TIME_24H: typeof TIME_24H;
|
|
@@ -711,12 +565,10 @@ declare const index_formatCurrency: typeof formatCurrency;
|
|
|
711
565
|
declare const index_formatCurrencyNative: typeof formatCurrencyNative;
|
|
712
566
|
declare const index_getAllBrandIds: typeof getAllBrandIds;
|
|
713
567
|
declare const index_getAllBrandKeys: typeof getAllBrandKeys;
|
|
714
|
-
declare const index_getAllBrands: typeof getAllBrands;
|
|
715
568
|
declare const index_getAllCities: typeof getAllCities;
|
|
716
569
|
declare const index_getAllCountriesWithFlags: typeof getAllCountriesWithFlags;
|
|
717
570
|
declare const index_getAppConfigByDomain: typeof getAppConfigByDomain;
|
|
718
571
|
declare const index_getBrand: typeof getBrand;
|
|
719
|
-
declare const index_getBrandByDomain: typeof getBrandByDomain;
|
|
720
572
|
declare const index_getBrandById: typeof getBrandById;
|
|
721
573
|
declare const index_getCitiesByState: typeof getCitiesByState;
|
|
722
574
|
declare const index_getCountriesByContinent: typeof getCountriesByContinent;
|
|
@@ -725,7 +577,6 @@ declare const index_getCountryByName: typeof getCountryByName;
|
|
|
725
577
|
declare const index_getCountryWithFlag: typeof getCountryWithFlag;
|
|
726
578
|
declare const index_getCurrencyByCode: typeof getCurrencyByCode;
|
|
727
579
|
declare const index_getFlag: typeof getFlag;
|
|
728
|
-
declare const index_getLogo: typeof getLogo;
|
|
729
580
|
declare const index_getPhoneCodeByCountry: typeof getPhoneCodeByCountry;
|
|
730
581
|
declare const index_getPhoneCodesByPrefix: typeof getPhoneCodesByPrefix;
|
|
731
582
|
declare const index_getStatesByCountry: typeof getStatesByCountry;
|
|
@@ -740,7 +591,7 @@ declare const index_searchTimezones: typeof searchTimezones;
|
|
|
740
591
|
declare const index_sortTimezonesByOffset: typeof sortTimezonesByOffset;
|
|
741
592
|
declare const index_timezones: typeof timezones;
|
|
742
593
|
declare namespace index {
|
|
743
|
-
export { index_AADHAAR_INDIA as AADHAAR_INDIA, index_ALPHANUMERIC as ALPHANUMERIC, index_AMEX as AMEX, index_APPS as APPS, index_ARCHIVE_EXT as ARCHIVE_EXT, index_AUDIO_EXT as AUDIO_EXT,
|
|
594
|
+
export { index_AADHAAR_INDIA as AADHAAR_INDIA, index_ALPHANUMERIC as ALPHANUMERIC, index_AMEX as AMEX, index_APPS as APPS, index_ARCHIVE_EXT as ARCHIVE_EXT, index_AUDIO_EXT as AUDIO_EXT, index_AppConfig as AppConfig, index_BASE64 as BASE64, index_BRANDS as BRANDS, index_BrandColors as BrandColors, index_BrandIdentity as BrandIdentity, index_CARD_EXPIRY as CARD_EXPIRY, index_CREDIT_CARD as CREDIT_CARD, index_CUID as CUID, index_CUID2 as CUID2, index_CVV as CVV, type index_City as City, type index_CompanyBrand as CompanyBrand, index_ContactInfo as ContactInfo, type index_Country as Country, type index_CountryWithFlag as CountryWithFlag, type index_Currency as Currency, index_DATETIME_ISO as DATETIME_ISO, index_DATE_DMY as DATE_DMY, index_DATE_ISO as DATE_ISO, index_DATE_MDY as DATE_MDY, index_DECIMAL as DECIMAL, index_DISCOVER as DISCOVER, index_DL_INDIA as DL_INDIA, index_DOCUMENT_EXT as DOCUMENT_EXT, index_DOMAIN as DOMAIN, index_EMAIL as EMAIL, index_EMAIL_COMMON_DOMAINS as EMAIL_COMMON_DOMAINS, index_EMAIL_RFC5322 as EMAIL_RFC5322, index_EMOJI as EMOJI, index_GST_INDIA as GST_INDIA, index_HANDLE as HANDLE, index_HASHTAG as HASHTAG, index_HAS_DIGIT as HAS_DIGIT, index_HAS_LOWERCASE as HAS_LOWERCASE, index_HAS_SPECIAL as HAS_SPECIAL, index_HAS_UPPERCASE as HAS_UPPERCASE, index_HEX_COLOR as HEX_COLOR, index_HEX_COLOR_ALPHA as HEX_COLOR_ALPHA, index_HSL_COLOR as HSL_COLOR, index_HTML_TAG as HTML_TAG, index_IFSC_INDIA as IFSC_INDIA, index_IMAGE_EXT as IMAGE_EXT, index_IPV4 as IPV4, index_IPV6 as IPV6, index_JSON_STRING as JSON_STRING, index_JWT as JWT, index_LATITUDE as LATITUDE, index_LETTERS_ONLY as LETTERS_ONLY, index_LOCALHOST as LOCALHOST, index_LONGITUDE as LONGITUDE, type index_Logo as Logo, index_LogoSet as LogoSet, type index_LogoVariants as LogoVariants, index_MAC_ADDRESS as MAC_ADDRESS, index_MASTERCARD as MASTERCARD, index_MENTION as MENTION, index_MONGO_OBJECT_ID as MONGO_OBJECT_ID, index_NANOID as NANOID, index_NON_NEGATIVE_INTEGER as NON_NEGATIVE_INTEGER, index_NO_SPECIAL_CHARS as NO_SPECIAL_CHARS, index_NO_WHITESPACE as NO_WHITESPACE, index_NUMBERS_ONLY as NUMBERS_ONLY, index_PAN_INDIA as PAN_INDIA, index_PASSWORD_ALPHANUMERIC as PASSWORD_ALPHANUMERIC, index_PASSWORD_MEDIUM as PASSWORD_MEDIUM, index_PASSWORD_MIN_8 as PASSWORD_MIN_8, index_PASSWORD_STRONG as PASSWORD_STRONG, index_PASSWORD_VERY_STRONG as PASSWORD_VERY_STRONG, index_PHONE_10_DIGIT as PHONE_10_DIGIT, index_PHONE_INDIA as PHONE_INDIA, index_PHONE_INTERNATIONAL as PHONE_INTERNATIONAL, index_PHONE_UK as PHONE_UK, index_PHONE_US as PHONE_US, index_PHONE_WITH_CODE as PHONE_WITH_CODE, index_PIN_INDIA as PIN_INDIA, index_PLZ_GERMANY as PLZ_GERMANY, index_POSITIVE_INTEGER as POSITIVE_INTEGER, index_POSTAL_CANADA as POSTAL_CANADA, index_POSTAL_GENERIC as POSTAL_GENERIC, index_POSTAL_UK as POSTAL_UK, type index_PhoneCode as PhoneCode, index_REGEX as REGEX, index_RGBA_COLOR as RGBA_COLOR, index_RGB_COLOR as RGB_COLOR, index_SAFE_FILENAME as SAFE_FILENAME, index_SEMVER as SEMVER, index_SEOConfig as SEOConfig, index_SLUG as SLUG, index_SSN_US as SSN_US, index_SUBDOMAIN as SUBDOMAIN, index_SocialLinks as SocialLinks, type index_State as State, index_TIME_12H as TIME_12H, index_TIME_24H as TIME_24H, index_TIME_24H_SECONDS as TIME_24H_SECONDS, type index_Timezone as Timezone, index_URL_BASIC as URL_BASIC, index_URL_OPTIONAL_PROTOCOL as URL_OPTIONAL_PROTOCOL, index_URL_STRICT as URL_STRICT, index_USERNAME as USERNAME, index_USERNAME_ALPHA_START as USERNAME_ALPHA_START, index_UUID as UUID, index_UUID_V4 as UUID_V4, index_VEHICLE_INDIA as VEHICLE_INDIA, index_VIDEO_EXT as VIDEO_EXT, index_VISA as VISA, index_ZIP_US as ZIP_US, index_brands as brands, index_codeToFlag as codeToFlag, index_countries as countries, index_createAppConfig as createAppConfig, index_currencies as currencies, index_detectCurrentBrand as detectCurrentBrand, index_formatCurrency as formatCurrency, index_formatCurrencyNative as formatCurrencyNative, index_getAllBrandIds as getAllBrandIds, index_getAllBrandKeys as getAllBrandKeys, getAllBrands$1 as getAllBrands, index_getAllCities as getAllCities, index_getAllCountriesWithFlags as getAllCountriesWithFlags, index_getAppConfigByDomain as getAppConfigByDomain, index_getBrand as getBrand, getBrandByDomain$1 as getBrandByDomain, index_getBrandById as getBrandById, index_getCitiesByState as getCitiesByState, index_getCountriesByContinent as getCountriesByContinent, index_getCountryByCode as getCountryByCode, index_getCountryByName as getCountryByName, index_getCountryWithFlag as getCountryWithFlag, index_getCurrencyByCode as getCurrencyByCode, index_getFlag as getFlag, getAllBrands as getLegacyAllBrands, getBrandByDomain as getLegacyBrandByDomain, getLogo as getLegacyLogo, getLogo$1 as getLogo, index_getPhoneCodeByCountry as getPhoneCodeByCountry, index_getPhoneCodesByPrefix as getPhoneCodesByPrefix, index_getStatesByCountry as getStatesByCountry, index_getThemedLogo as getThemedLogo, index_getTimezoneByName as getTimezoneByName, index_getTimezonesByOffset as getTimezonesByOffset, brands as legacyBrands, index_phoneCodes as phoneCodes, index_searchCountries as searchCountries, index_searchCurrencies as searchCurrencies, index_searchPhoneCodes as searchPhoneCodes, index_searchTimezones as searchTimezones, index_sortTimezonesByOffset as sortTimezonesByOffset, index_timezones as timezones };
|
|
744
595
|
}
|
|
745
596
|
|
|
746
597
|
export { index as data };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { i as server } from './index-DEzgM15j.js';
|
|
2
|
-
|
|
2
|
+
import { A as APPS, a as AppConfig, B as BRANDS, b as BrandColors, c as BrandIdentity, C as ContactInfo, L as LogoSet, S as SEOConfig, d as SocialLinks, e as createAppConfig, f as detectCurrentBrand, g as getAllBrandIds, h as getAllBrands$1, i as getAppConfigByDomain, j as getBrandByDomain$1, k as getBrandById, l as getLogo$1, m as getThemedLogo } from './index-BcxL4_V4.js';
|
|
3
|
+
export { n as client } from './index-BcxL4_V4.js';
|
|
3
4
|
export { i as shared } from './index-DNFVgQx8.js';
|
|
4
5
|
import './server/response/index.js';
|
|
5
6
|
import 'express';
|
|
@@ -16,6 +17,7 @@ import './client/logger/index.js';
|
|
|
16
17
|
import './client/utils/index.js';
|
|
17
18
|
import './response.types-D--UhLJq.js';
|
|
18
19
|
import 'react';
|
|
20
|
+
import 'yup';
|
|
19
21
|
import 'date-fns';
|
|
20
22
|
import 'date-fns-tz';
|
|
21
23
|
|
|
@@ -435,170 +437,22 @@ interface CompanyBrand {
|
|
|
435
437
|
}
|
|
436
438
|
declare const brands: Record<string, CompanyBrand>;
|
|
437
439
|
declare const getBrand: (key: string) => CompanyBrand | undefined;
|
|
438
|
-
declare const getBrandByDomain
|
|
439
|
-
declare const getLogo
|
|
440
|
-
declare const getAllBrands
|
|
440
|
+
declare const getBrandByDomain: (domain: string) => CompanyBrand | undefined;
|
|
441
|
+
declare const getLogo: (brandKey: string, mode: "light" | "dark", type?: "full" | "icon") => string | undefined;
|
|
442
|
+
declare const getAllBrands: () => CompanyBrand[];
|
|
441
443
|
declare const getAllBrandKeys: () => string[];
|
|
442
444
|
|
|
443
|
-
/**
|
|
444
|
-
* Brand Identity Configuration
|
|
445
|
-
* Complete brand identity for all Exyconn projects including logos,
|
|
446
|
-
* colors, contact info, and social links
|
|
447
|
-
*/
|
|
448
|
-
/**
|
|
449
|
-
* Logo variants interface
|
|
450
|
-
* - light: Logo for light backgrounds (dark colored logo)
|
|
451
|
-
* - dark: Logo for dark backgrounds (light colored logo)
|
|
452
|
-
* - logoOnly: Just the icon/symbol without text (light bg)
|
|
453
|
-
* - darkLogoOnly: Just the icon/symbol without text (dark bg)
|
|
454
|
-
*/
|
|
455
|
-
interface LogoSet {
|
|
456
|
-
/** Full logo with text for light backgrounds */
|
|
457
|
-
light: string;
|
|
458
|
-
/** Full logo with text for dark backgrounds */
|
|
459
|
-
dark: string;
|
|
460
|
-
/** Icon only for light backgrounds */
|
|
461
|
-
logoOnly: string;
|
|
462
|
-
/** Icon only for dark backgrounds */
|
|
463
|
-
darkLogoOnly: string;
|
|
464
|
-
/** Favicon URL */
|
|
465
|
-
favicon: string;
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* Brand colors
|
|
469
|
-
*/
|
|
470
|
-
interface BrandColors {
|
|
471
|
-
primary: string;
|
|
472
|
-
secondary: string;
|
|
473
|
-
accent?: string;
|
|
474
|
-
background?: string;
|
|
475
|
-
foreground?: string;
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* Social media links
|
|
479
|
-
*/
|
|
480
|
-
interface SocialLinks {
|
|
481
|
-
twitter?: string;
|
|
482
|
-
facebook?: string;
|
|
483
|
-
instagram?: string;
|
|
484
|
-
linkedin?: string;
|
|
485
|
-
github?: string;
|
|
486
|
-
youtube?: string;
|
|
487
|
-
discord?: string;
|
|
488
|
-
tiktok?: string;
|
|
489
|
-
}
|
|
490
|
-
/**
|
|
491
|
-
* Contact information
|
|
492
|
-
*/
|
|
493
|
-
interface ContactInfo {
|
|
494
|
-
supportEmail: string;
|
|
495
|
-
salesEmail?: string;
|
|
496
|
-
phone?: string;
|
|
497
|
-
address?: string;
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* SEO Configuration
|
|
501
|
-
*/
|
|
502
|
-
interface SEOConfig {
|
|
503
|
-
title: string;
|
|
504
|
-
description: string;
|
|
505
|
-
keywords: string[];
|
|
506
|
-
ogImage?: string;
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* Complete Brand Identity
|
|
510
|
-
*/
|
|
511
|
-
interface BrandIdentity {
|
|
512
|
-
id: string;
|
|
513
|
-
name: string;
|
|
514
|
-
tagline: string;
|
|
515
|
-
domain: string;
|
|
516
|
-
logo: LogoSet;
|
|
517
|
-
colors: BrandColors;
|
|
518
|
-
contact: ContactInfo;
|
|
519
|
-
social?: SocialLinks;
|
|
520
|
-
seo?: SEOConfig;
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* App configuration for runtime
|
|
524
|
-
* Use this in your apps for consistent branding
|
|
525
|
-
*/
|
|
526
|
-
interface AppConfig {
|
|
527
|
-
name: string;
|
|
528
|
-
tagline: string;
|
|
529
|
-
domain: string;
|
|
530
|
-
supportEmail: string;
|
|
531
|
-
logo: LogoSet;
|
|
532
|
-
colors: BrandColors;
|
|
533
|
-
}
|
|
534
|
-
declare const BRANDS: Record<string, BrandIdentity>;
|
|
535
|
-
/**
|
|
536
|
-
* Pre-configured APP objects for each project
|
|
537
|
-
* Import directly: import { APP } from '@exyconn/common'
|
|
538
|
-
* Then configure which APP to use based on environment
|
|
539
|
-
*/
|
|
540
|
-
declare const APPS: {
|
|
541
|
-
readonly BOTIFY: AppConfig;
|
|
542
|
-
readonly EXYCONN: AppConfig;
|
|
543
|
-
readonly PARTYWINGS: AppConfig;
|
|
544
|
-
readonly SIBERA: AppConfig;
|
|
545
|
-
readonly SPENTIVA: AppConfig;
|
|
546
|
-
};
|
|
547
|
-
/**
|
|
548
|
-
* Create an AppConfig from a brand
|
|
549
|
-
*/
|
|
550
|
-
declare function createAppConfig(brandId: string): AppConfig;
|
|
551
|
-
/**
|
|
552
|
-
* Get brand by ID
|
|
553
|
-
*/
|
|
554
|
-
declare function getBrandById(id: string): BrandIdentity | undefined;
|
|
555
|
-
/**
|
|
556
|
-
* Get brand by domain
|
|
557
|
-
*/
|
|
558
|
-
declare function getBrandByDomain(domain: string): BrandIdentity | undefined;
|
|
559
|
-
/**
|
|
560
|
-
* Get all brands
|
|
561
|
-
*/
|
|
562
|
-
declare function getAllBrands(): BrandIdentity[];
|
|
563
|
-
/**
|
|
564
|
-
* Get all brand IDs
|
|
565
|
-
*/
|
|
566
|
-
declare function getAllBrandIds(): string[];
|
|
567
|
-
/**
|
|
568
|
-
* Get logo for a brand
|
|
569
|
-
* @param brandId - Brand identifier
|
|
570
|
-
* @param variant - 'light' | 'dark' | 'logoOnly' | 'darkLogoOnly'
|
|
571
|
-
*/
|
|
572
|
-
declare function getLogo(brandId: string, variant: keyof LogoSet): string | undefined;
|
|
573
|
-
/**
|
|
574
|
-
* Get appropriate logo based on theme
|
|
575
|
-
* @param brandId - Brand identifier
|
|
576
|
-
* @param theme - 'light' | 'dark'
|
|
577
|
-
* @param iconOnly - Whether to return icon only logo
|
|
578
|
-
*/
|
|
579
|
-
declare function getThemedLogo(brandId: string, theme: 'light' | 'dark', iconOnly?: boolean): string | undefined;
|
|
580
|
-
/**
|
|
581
|
-
* Get current app config based on domain
|
|
582
|
-
* Useful for multi-tenant applications
|
|
583
|
-
*/
|
|
584
|
-
declare function getAppConfigByDomain(domain: string): AppConfig | undefined;
|
|
585
|
-
/**
|
|
586
|
-
* Detect brand from current window.location.hostname
|
|
587
|
-
* For browser environments only
|
|
588
|
-
*/
|
|
589
|
-
declare function detectCurrentBrand(): BrandIdentity | undefined;
|
|
590
|
-
|
|
591
445
|
declare const index_AADHAAR_INDIA: typeof AADHAAR_INDIA;
|
|
592
446
|
declare const index_ALPHANUMERIC: typeof ALPHANUMERIC;
|
|
593
447
|
declare const index_AMEX: typeof AMEX;
|
|
594
448
|
declare const index_APPS: typeof APPS;
|
|
595
449
|
declare const index_ARCHIVE_EXT: typeof ARCHIVE_EXT;
|
|
596
450
|
declare const index_AUDIO_EXT: typeof AUDIO_EXT;
|
|
597
|
-
|
|
451
|
+
declare const index_AppConfig: typeof AppConfig;
|
|
598
452
|
declare const index_BASE64: typeof BASE64;
|
|
599
453
|
declare const index_BRANDS: typeof BRANDS;
|
|
600
|
-
|
|
601
|
-
|
|
454
|
+
declare const index_BrandColors: typeof BrandColors;
|
|
455
|
+
declare const index_BrandIdentity: typeof BrandIdentity;
|
|
602
456
|
declare const index_CARD_EXPIRY: typeof CARD_EXPIRY;
|
|
603
457
|
declare const index_CREDIT_CARD: typeof CREDIT_CARD;
|
|
604
458
|
declare const index_CUID: typeof CUID;
|
|
@@ -606,7 +460,7 @@ declare const index_CUID2: typeof CUID2;
|
|
|
606
460
|
declare const index_CVV: typeof CVV;
|
|
607
461
|
type index_City = City;
|
|
608
462
|
type index_CompanyBrand = CompanyBrand;
|
|
609
|
-
|
|
463
|
+
declare const index_ContactInfo: typeof ContactInfo;
|
|
610
464
|
type index_Country = Country;
|
|
611
465
|
type index_CountryWithFlag = CountryWithFlag;
|
|
612
466
|
type index_Currency = Currency;
|
|
@@ -645,7 +499,7 @@ declare const index_LETTERS_ONLY: typeof LETTERS_ONLY;
|
|
|
645
499
|
declare const index_LOCALHOST: typeof LOCALHOST;
|
|
646
500
|
declare const index_LONGITUDE: typeof LONGITUDE;
|
|
647
501
|
type index_Logo = Logo;
|
|
648
|
-
|
|
502
|
+
declare const index_LogoSet: typeof LogoSet;
|
|
649
503
|
type index_LogoVariants = LogoVariants;
|
|
650
504
|
declare const index_MAC_ADDRESS: typeof MAC_ADDRESS;
|
|
651
505
|
declare const index_MASTERCARD: typeof MASTERCARD;
|
|
@@ -680,11 +534,11 @@ declare const index_RGBA_COLOR: typeof RGBA_COLOR;
|
|
|
680
534
|
declare const index_RGB_COLOR: typeof RGB_COLOR;
|
|
681
535
|
declare const index_SAFE_FILENAME: typeof SAFE_FILENAME;
|
|
682
536
|
declare const index_SEMVER: typeof SEMVER;
|
|
683
|
-
|
|
537
|
+
declare const index_SEOConfig: typeof SEOConfig;
|
|
684
538
|
declare const index_SLUG: typeof SLUG;
|
|
685
539
|
declare const index_SSN_US: typeof SSN_US;
|
|
686
540
|
declare const index_SUBDOMAIN: typeof SUBDOMAIN;
|
|
687
|
-
|
|
541
|
+
declare const index_SocialLinks: typeof SocialLinks;
|
|
688
542
|
type index_State = State;
|
|
689
543
|
declare const index_TIME_12H: typeof TIME_12H;
|
|
690
544
|
declare const index_TIME_24H: typeof TIME_24H;
|
|
@@ -711,12 +565,10 @@ declare const index_formatCurrency: typeof formatCurrency;
|
|
|
711
565
|
declare const index_formatCurrencyNative: typeof formatCurrencyNative;
|
|
712
566
|
declare const index_getAllBrandIds: typeof getAllBrandIds;
|
|
713
567
|
declare const index_getAllBrandKeys: typeof getAllBrandKeys;
|
|
714
|
-
declare const index_getAllBrands: typeof getAllBrands;
|
|
715
568
|
declare const index_getAllCities: typeof getAllCities;
|
|
716
569
|
declare const index_getAllCountriesWithFlags: typeof getAllCountriesWithFlags;
|
|
717
570
|
declare const index_getAppConfigByDomain: typeof getAppConfigByDomain;
|
|
718
571
|
declare const index_getBrand: typeof getBrand;
|
|
719
|
-
declare const index_getBrandByDomain: typeof getBrandByDomain;
|
|
720
572
|
declare const index_getBrandById: typeof getBrandById;
|
|
721
573
|
declare const index_getCitiesByState: typeof getCitiesByState;
|
|
722
574
|
declare const index_getCountriesByContinent: typeof getCountriesByContinent;
|
|
@@ -725,7 +577,6 @@ declare const index_getCountryByName: typeof getCountryByName;
|
|
|
725
577
|
declare const index_getCountryWithFlag: typeof getCountryWithFlag;
|
|
726
578
|
declare const index_getCurrencyByCode: typeof getCurrencyByCode;
|
|
727
579
|
declare const index_getFlag: typeof getFlag;
|
|
728
|
-
declare const index_getLogo: typeof getLogo;
|
|
729
580
|
declare const index_getPhoneCodeByCountry: typeof getPhoneCodeByCountry;
|
|
730
581
|
declare const index_getPhoneCodesByPrefix: typeof getPhoneCodesByPrefix;
|
|
731
582
|
declare const index_getStatesByCountry: typeof getStatesByCountry;
|
|
@@ -740,7 +591,7 @@ declare const index_searchTimezones: typeof searchTimezones;
|
|
|
740
591
|
declare const index_sortTimezonesByOffset: typeof sortTimezonesByOffset;
|
|
741
592
|
declare const index_timezones: typeof timezones;
|
|
742
593
|
declare namespace index {
|
|
743
|
-
export { index_AADHAAR_INDIA as AADHAAR_INDIA, index_ALPHANUMERIC as ALPHANUMERIC, index_AMEX as AMEX, index_APPS as APPS, index_ARCHIVE_EXT as ARCHIVE_EXT, index_AUDIO_EXT as AUDIO_EXT,
|
|
594
|
+
export { index_AADHAAR_INDIA as AADHAAR_INDIA, index_ALPHANUMERIC as ALPHANUMERIC, index_AMEX as AMEX, index_APPS as APPS, index_ARCHIVE_EXT as ARCHIVE_EXT, index_AUDIO_EXT as AUDIO_EXT, index_AppConfig as AppConfig, index_BASE64 as BASE64, index_BRANDS as BRANDS, index_BrandColors as BrandColors, index_BrandIdentity as BrandIdentity, index_CARD_EXPIRY as CARD_EXPIRY, index_CREDIT_CARD as CREDIT_CARD, index_CUID as CUID, index_CUID2 as CUID2, index_CVV as CVV, type index_City as City, type index_CompanyBrand as CompanyBrand, index_ContactInfo as ContactInfo, type index_Country as Country, type index_CountryWithFlag as CountryWithFlag, type index_Currency as Currency, index_DATETIME_ISO as DATETIME_ISO, index_DATE_DMY as DATE_DMY, index_DATE_ISO as DATE_ISO, index_DATE_MDY as DATE_MDY, index_DECIMAL as DECIMAL, index_DISCOVER as DISCOVER, index_DL_INDIA as DL_INDIA, index_DOCUMENT_EXT as DOCUMENT_EXT, index_DOMAIN as DOMAIN, index_EMAIL as EMAIL, index_EMAIL_COMMON_DOMAINS as EMAIL_COMMON_DOMAINS, index_EMAIL_RFC5322 as EMAIL_RFC5322, index_EMOJI as EMOJI, index_GST_INDIA as GST_INDIA, index_HANDLE as HANDLE, index_HASHTAG as HASHTAG, index_HAS_DIGIT as HAS_DIGIT, index_HAS_LOWERCASE as HAS_LOWERCASE, index_HAS_SPECIAL as HAS_SPECIAL, index_HAS_UPPERCASE as HAS_UPPERCASE, index_HEX_COLOR as HEX_COLOR, index_HEX_COLOR_ALPHA as HEX_COLOR_ALPHA, index_HSL_COLOR as HSL_COLOR, index_HTML_TAG as HTML_TAG, index_IFSC_INDIA as IFSC_INDIA, index_IMAGE_EXT as IMAGE_EXT, index_IPV4 as IPV4, index_IPV6 as IPV6, index_JSON_STRING as JSON_STRING, index_JWT as JWT, index_LATITUDE as LATITUDE, index_LETTERS_ONLY as LETTERS_ONLY, index_LOCALHOST as LOCALHOST, index_LONGITUDE as LONGITUDE, type index_Logo as Logo, index_LogoSet as LogoSet, type index_LogoVariants as LogoVariants, index_MAC_ADDRESS as MAC_ADDRESS, index_MASTERCARD as MASTERCARD, index_MENTION as MENTION, index_MONGO_OBJECT_ID as MONGO_OBJECT_ID, index_NANOID as NANOID, index_NON_NEGATIVE_INTEGER as NON_NEGATIVE_INTEGER, index_NO_SPECIAL_CHARS as NO_SPECIAL_CHARS, index_NO_WHITESPACE as NO_WHITESPACE, index_NUMBERS_ONLY as NUMBERS_ONLY, index_PAN_INDIA as PAN_INDIA, index_PASSWORD_ALPHANUMERIC as PASSWORD_ALPHANUMERIC, index_PASSWORD_MEDIUM as PASSWORD_MEDIUM, index_PASSWORD_MIN_8 as PASSWORD_MIN_8, index_PASSWORD_STRONG as PASSWORD_STRONG, index_PASSWORD_VERY_STRONG as PASSWORD_VERY_STRONG, index_PHONE_10_DIGIT as PHONE_10_DIGIT, index_PHONE_INDIA as PHONE_INDIA, index_PHONE_INTERNATIONAL as PHONE_INTERNATIONAL, index_PHONE_UK as PHONE_UK, index_PHONE_US as PHONE_US, index_PHONE_WITH_CODE as PHONE_WITH_CODE, index_PIN_INDIA as PIN_INDIA, index_PLZ_GERMANY as PLZ_GERMANY, index_POSITIVE_INTEGER as POSITIVE_INTEGER, index_POSTAL_CANADA as POSTAL_CANADA, index_POSTAL_GENERIC as POSTAL_GENERIC, index_POSTAL_UK as POSTAL_UK, type index_PhoneCode as PhoneCode, index_REGEX as REGEX, index_RGBA_COLOR as RGBA_COLOR, index_RGB_COLOR as RGB_COLOR, index_SAFE_FILENAME as SAFE_FILENAME, index_SEMVER as SEMVER, index_SEOConfig as SEOConfig, index_SLUG as SLUG, index_SSN_US as SSN_US, index_SUBDOMAIN as SUBDOMAIN, index_SocialLinks as SocialLinks, type index_State as State, index_TIME_12H as TIME_12H, index_TIME_24H as TIME_24H, index_TIME_24H_SECONDS as TIME_24H_SECONDS, type index_Timezone as Timezone, index_URL_BASIC as URL_BASIC, index_URL_OPTIONAL_PROTOCOL as URL_OPTIONAL_PROTOCOL, index_URL_STRICT as URL_STRICT, index_USERNAME as USERNAME, index_USERNAME_ALPHA_START as USERNAME_ALPHA_START, index_UUID as UUID, index_UUID_V4 as UUID_V4, index_VEHICLE_INDIA as VEHICLE_INDIA, index_VIDEO_EXT as VIDEO_EXT, index_VISA as VISA, index_ZIP_US as ZIP_US, index_brands as brands, index_codeToFlag as codeToFlag, index_countries as countries, index_createAppConfig as createAppConfig, index_currencies as currencies, index_detectCurrentBrand as detectCurrentBrand, index_formatCurrency as formatCurrency, index_formatCurrencyNative as formatCurrencyNative, index_getAllBrandIds as getAllBrandIds, index_getAllBrandKeys as getAllBrandKeys, getAllBrands$1 as getAllBrands, index_getAllCities as getAllCities, index_getAllCountriesWithFlags as getAllCountriesWithFlags, index_getAppConfigByDomain as getAppConfigByDomain, index_getBrand as getBrand, getBrandByDomain$1 as getBrandByDomain, index_getBrandById as getBrandById, index_getCitiesByState as getCitiesByState, index_getCountriesByContinent as getCountriesByContinent, index_getCountryByCode as getCountryByCode, index_getCountryByName as getCountryByName, index_getCountryWithFlag as getCountryWithFlag, index_getCurrencyByCode as getCurrencyByCode, index_getFlag as getFlag, getAllBrands as getLegacyAllBrands, getBrandByDomain as getLegacyBrandByDomain, getLogo as getLegacyLogo, getLogo$1 as getLogo, index_getPhoneCodeByCountry as getPhoneCodeByCountry, index_getPhoneCodesByPrefix as getPhoneCodesByPrefix, index_getStatesByCountry as getStatesByCountry, index_getThemedLogo as getThemedLogo, index_getTimezoneByName as getTimezoneByName, index_getTimezonesByOffset as getTimezonesByOffset, brands as legacyBrands, index_phoneCodes as phoneCodes, index_searchCountries as searchCountries, index_searchCurrencies as searchCurrencies, index_searchPhoneCodes as searchPhoneCodes, index_searchTimezones as searchTimezones, index_sortTimezonesByOffset as sortTimezonesByOffset, index_timezones as timezones };
|
|
744
595
|
}
|
|
745
596
|
|
|
746
597
|
export { index as data };
|