@verma-consulting/common-library 0.1.23 → 0.1.25

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/index.d.mts CHANGED
@@ -433,26 +433,18 @@ interface PaymentMethodInterface {
433
433
  createdBy?: UserInterface;
434
434
  updatedBy?: UserInterface;
435
435
  }
436
- interface Address {
437
- line1?: number | null;
438
- line2?: string | null;
439
- city?: string | null;
440
- state?: string | null;
441
- country?: string | null;
442
- postalCode?: string | null;
443
- }
444
436
  interface BillingDetailsInterface {
445
437
  name?: string;
446
438
  email?: string;
447
439
  phone?: string;
448
- address?: Address;
440
+ address?: AddressInterface;
449
441
  }
450
442
  interface ShippingInterface {
451
443
  name?: string;
452
444
  carrier?: string;
453
445
  phone?: string;
454
446
  trackingNumber?: string;
455
- address?: Address;
447
+ address?: AddressInterface;
456
448
  }
457
449
  interface RefundInterface {
458
450
  id?: string;
@@ -672,13 +664,13 @@ interface AddressInterface {
672
664
  updatedAt?: Date;
673
665
  deletedAt?: Date;
674
666
  claimed?: boolean;
675
- streetNumber?: string;
676
- streetName?: string;
677
- countryCode?: string;
667
+ line1?: string;
668
+ line2?: string;
669
+ postalCode?: string;
678
670
  city?: string;
679
671
  state?: string;
680
672
  country?: string;
681
- postalCode?: string;
673
+ countryCode?: string;
682
674
  longitude?: number;
683
675
  latitude?: number;
684
676
  poolId?: string;
@@ -2035,7 +2027,17 @@ declare const constants: {
2035
2027
  };
2036
2028
  POPULAR_EMAILS: string[];
2037
2029
  STATES: string[];
2038
- COUNTRIES: string[];
2030
+ COUNTRIES: ({
2031
+ code: string;
2032
+ label: string;
2033
+ phone: string;
2034
+ suggested: boolean;
2035
+ } | {
2036
+ code: string;
2037
+ label: string;
2038
+ phone: string;
2039
+ suggested?: undefined;
2040
+ })[];
2039
2041
  CURRENCIES: {
2040
2042
  aed: string;
2041
2043
  afn: string;
@@ -2451,7 +2453,7 @@ declare const defaults: {
2451
2453
  annualRevenue: number;
2452
2454
  balance: number;
2453
2455
  nextInvoiceSequence: number;
2454
- taxExempt: null;
2456
+ taxExempt: string;
2455
2457
  website: string;
2456
2458
  source: string;
2457
2459
  logoUrl: string;
@@ -2558,7 +2560,7 @@ declare const defaults: {
2558
2560
  collectionMethod: string;
2559
2561
  customerEmail: string;
2560
2562
  customerPhone: string;
2561
- customerTaxExempt: null;
2563
+ customerTaxExempt: string;
2562
2564
  invoicePdf: string;
2563
2565
  lastFinalizationError: string;
2564
2566
  number: null;
@@ -2886,8 +2888,8 @@ declare const defaults: {
2886
2888
  calculationValue: string;
2887
2889
  };
2888
2890
  address: {
2889
- streetNumber: string;
2890
- streetName: string;
2891
+ line1: string;
2892
+ line2: string;
2891
2893
  city: string;
2892
2894
  state: string;
2893
2895
  country: string;
@@ -3395,8 +3397,8 @@ declare const defaultTypes: {
3395
3397
  calculationValue: string;
3396
3398
  };
3397
3399
  address: {
3398
- streetNumber: string;
3399
- streetName: string;
3400
+ line1: string;
3401
+ line2: string;
3400
3402
  city: string;
3401
3403
  state: string;
3402
3404
  country: string;
@@ -3443,4 +3445,4 @@ declare const defaultTypes: {
3443
3445
  };
3444
3446
  };
3445
3447
 
3446
- export { type ActivityInterface, type Address, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type DisputeInterface, type EmailInterface, type EngagementInterface, type EvidenceDetailsInterface, type EvidenceInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RefundInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ShippingInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaultTypes, defaults, disputeReason, disputeStatus, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, userRole, userSource, userStatus, validEmail };
3448
+ export { type ActivityInterface, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type DisputeInterface, type EmailInterface, type EngagementInterface, type EvidenceDetailsInterface, type EvidenceInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RefundInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ShippingInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaultTypes, defaults, disputeReason, disputeStatus, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, userRole, userSource, userStatus, validEmail };
package/dist/index.d.ts CHANGED
@@ -433,26 +433,18 @@ interface PaymentMethodInterface {
433
433
  createdBy?: UserInterface;
434
434
  updatedBy?: UserInterface;
435
435
  }
436
- interface Address {
437
- line1?: number | null;
438
- line2?: string | null;
439
- city?: string | null;
440
- state?: string | null;
441
- country?: string | null;
442
- postalCode?: string | null;
443
- }
444
436
  interface BillingDetailsInterface {
445
437
  name?: string;
446
438
  email?: string;
447
439
  phone?: string;
448
- address?: Address;
440
+ address?: AddressInterface;
449
441
  }
450
442
  interface ShippingInterface {
451
443
  name?: string;
452
444
  carrier?: string;
453
445
  phone?: string;
454
446
  trackingNumber?: string;
455
- address?: Address;
447
+ address?: AddressInterface;
456
448
  }
457
449
  interface RefundInterface {
458
450
  id?: string;
@@ -672,13 +664,13 @@ interface AddressInterface {
672
664
  updatedAt?: Date;
673
665
  deletedAt?: Date;
674
666
  claimed?: boolean;
675
- streetNumber?: string;
676
- streetName?: string;
677
- countryCode?: string;
667
+ line1?: string;
668
+ line2?: string;
669
+ postalCode?: string;
678
670
  city?: string;
679
671
  state?: string;
680
672
  country?: string;
681
- postalCode?: string;
673
+ countryCode?: string;
682
674
  longitude?: number;
683
675
  latitude?: number;
684
676
  poolId?: string;
@@ -2035,7 +2027,17 @@ declare const constants: {
2035
2027
  };
2036
2028
  POPULAR_EMAILS: string[];
2037
2029
  STATES: string[];
2038
- COUNTRIES: string[];
2030
+ COUNTRIES: ({
2031
+ code: string;
2032
+ label: string;
2033
+ phone: string;
2034
+ suggested: boolean;
2035
+ } | {
2036
+ code: string;
2037
+ label: string;
2038
+ phone: string;
2039
+ suggested?: undefined;
2040
+ })[];
2039
2041
  CURRENCIES: {
2040
2042
  aed: string;
2041
2043
  afn: string;
@@ -2451,7 +2453,7 @@ declare const defaults: {
2451
2453
  annualRevenue: number;
2452
2454
  balance: number;
2453
2455
  nextInvoiceSequence: number;
2454
- taxExempt: null;
2456
+ taxExempt: string;
2455
2457
  website: string;
2456
2458
  source: string;
2457
2459
  logoUrl: string;
@@ -2558,7 +2560,7 @@ declare const defaults: {
2558
2560
  collectionMethod: string;
2559
2561
  customerEmail: string;
2560
2562
  customerPhone: string;
2561
- customerTaxExempt: null;
2563
+ customerTaxExempt: string;
2562
2564
  invoicePdf: string;
2563
2565
  lastFinalizationError: string;
2564
2566
  number: null;
@@ -2886,8 +2888,8 @@ declare const defaults: {
2886
2888
  calculationValue: string;
2887
2889
  };
2888
2890
  address: {
2889
- streetNumber: string;
2890
- streetName: string;
2891
+ line1: string;
2892
+ line2: string;
2891
2893
  city: string;
2892
2894
  state: string;
2893
2895
  country: string;
@@ -3395,8 +3397,8 @@ declare const defaultTypes: {
3395
3397
  calculationValue: string;
3396
3398
  };
3397
3399
  address: {
3398
- streetNumber: string;
3399
- streetName: string;
3400
+ line1: string;
3401
+ line2: string;
3400
3402
  city: string;
3401
3403
  state: string;
3402
3404
  country: string;
@@ -3443,4 +3445,4 @@ declare const defaultTypes: {
3443
3445
  };
3444
3446
  };
3445
3447
 
3446
- export { type ActivityInterface, type Address, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type DisputeInterface, type EmailInterface, type EngagementInterface, type EvidenceDetailsInterface, type EvidenceInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RefundInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ShippingInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaultTypes, defaults, disputeReason, disputeStatus, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, userRole, userSource, userStatus, validEmail };
3448
+ export { type ActivityInterface, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type DealInterface, DealType, DeviceNotification, type DisputeInterface, type EmailInterface, type EngagementInterface, type EvidenceDetailsInterface, type EvidenceInterface, FeatureType, type FileInterface, type FilterInterface, FilterType, FormFieldOrder, FormFieldType, FrequencyType, Gender, type GenericPayload, type IntegrationInterface, type InventoryInterface, type InvoiceInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RefundInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ShippingInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaultTypes, defaults, disputeReason, disputeStatus, formatPhoneNumber, getRandomArbitrary, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, userRole, userSource, userStatus, validEmail };