@verma-consulting/common-library 0.1.31 → 0.1.32

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
@@ -839,6 +839,45 @@ interface DealInterface {
839
839
  createdBy?: UserInterface;
840
840
  updatedBy?: UserInterface;
841
841
  }
842
+ interface OrderInterface {
843
+ id?: string;
844
+ createdAt?: Date;
845
+ updatedAt?: Date;
846
+ deletedAt?: Date;
847
+ name?: string;
848
+ status?: string;
849
+ description?: string;
850
+ orderNumber?: string;
851
+ fulfillmentStatus?: string;
852
+ paymentStatus?: string;
853
+ financialStatus?: string;
854
+ subtotalAmount?: number;
855
+ taxAmount?: number;
856
+ shippingAmount?: number;
857
+ discountAmount?: number;
858
+ totalAmount?: number;
859
+ currency?: string;
860
+ customerName?: string;
861
+ customerEmail?: string;
862
+ customerPhone?: string;
863
+ shippingProvider?: string;
864
+ shippingServiceLevel?: string;
865
+ trackingNumber?: string;
866
+ trackingUrl?: string;
867
+ internalNotes?: string;
868
+ customerNotes?: string;
869
+ organizationId?: string;
870
+ createdById?: string;
871
+ updatedById?: string;
872
+ clientId?: string;
873
+ poolId?: string | null;
874
+ accountOwnerId?: string;
875
+ accountOwner?: UserInterface;
876
+ contents?: ContentInterface[];
877
+ client?: ClientInterface;
878
+ createdBy?: UserInterface;
879
+ updatedBy?: UserInterface;
880
+ }
842
881
  interface LeadInterface {
843
882
  id?: string;
844
883
  createdAt?: Date;
@@ -1473,11 +1512,6 @@ interface OrderAddressInterface {
1473
1512
  phone?: string;
1474
1513
  email?: string;
1475
1514
  }
1476
- interface OrderInterface {
1477
- shippingAddress: OrderAddressInterface;
1478
- PackageDimensionsInterface?: PackageDimensionsInterface;
1479
- totalWeight?: number;
1480
- }
1481
1515
  interface CarrierMappingInterface {
1482
1516
  name: string;
1483
1517
  services: string[];
@@ -1531,6 +1565,47 @@ declare enum addressType {
1531
1565
  po_box = "po_box",
1532
1566
  military = "military"
1533
1567
  }
1568
+ declare enum unit {
1569
+ cm = "cm",
1570
+ in = "in"
1571
+ }
1572
+ declare enum weightUnit {
1573
+ g = "g",
1574
+ oz = "oz",
1575
+ kg = "kg",
1576
+ lb = "lb"
1577
+ }
1578
+ declare enum girth {
1579
+ USPS = "USPS",
1580
+ UPS = "UPS"
1581
+ }
1582
+ declare enum packageType {
1583
+ package = "package",
1584
+ envelope = "envelope",
1585
+ tube = "tube"
1586
+ }
1587
+ declare enum shippingProvider {
1588
+ USPS = "USPS",
1589
+ UPS = "UPS",
1590
+ FedEx = "FedEx",
1591
+ DHL = "DHL"
1592
+ }
1593
+ declare enum shippingServiceLevel {
1594
+ priority = "priority",
1595
+ express = "express",
1596
+ ground = "ground"
1597
+ }
1598
+ declare enum financialStatus {
1599
+ authorized = "authorized",
1600
+ captured = "captured",
1601
+ voided = "voided"
1602
+ }
1603
+ declare enum fulfillmentStatus {
1604
+ unfulfilled = "unfulfilled",
1605
+ partial = "partial",
1606
+ fulfilled = "fulfilled",
1607
+ delivered = "delivered"
1608
+ }
1534
1609
  declare enum subscriptionCancellationReason {
1535
1610
  CustomerService = "customer_service",
1536
1611
  LowQuality = "low_quality",
@@ -1556,6 +1631,9 @@ declare enum captureMethod {
1556
1631
  manual = "manual"
1557
1632
  }
1558
1633
  declare enum paymentStatus {
1634
+ unpaid = "unpaid",
1635
+ paid = "paid",
1636
+ refunded = "refunded",
1559
1637
  pending = "pending",
1560
1638
  succeeded = "succeeded",
1561
1639
  failed = "failed",
@@ -2708,6 +2786,11 @@ declare const defaults: {
2708
2786
  length: number;
2709
2787
  weight: number;
2710
2788
  width: number;
2789
+ unit: string;
2790
+ weightUnit: string;
2791
+ girth: number;
2792
+ packageType: string;
2793
+ template: string;
2711
2794
  };
2712
2795
  prices: {
2713
2796
  active: boolean;
@@ -2843,6 +2926,30 @@ declare const defaults: {
2843
2926
  client: string;
2844
2927
  campaign: string;
2845
2928
  };
2929
+ orders: {
2930
+ name: string;
2931
+ description: string;
2932
+ status: string;
2933
+ orderNumber: string;
2934
+ fulfillmentStatus: string;
2935
+ paymentStatus: string;
2936
+ financialStatus: string;
2937
+ subtotalAmount: number;
2938
+ taxAmount: number;
2939
+ shippingAmount: number;
2940
+ discountAmount: number;
2941
+ totalAmount: number;
2942
+ currency: string;
2943
+ customerName: string;
2944
+ customerEmail: string;
2945
+ customerPhone: string;
2946
+ shippingProvider: string;
2947
+ shippingServiceLevel: string;
2948
+ trackingNumber: string;
2949
+ trackingUrl: string;
2950
+ internalNotes: string;
2951
+ customerNotes: string;
2952
+ };
2846
2953
  subscriptions: {
2847
2954
  name: string;
2848
2955
  description: null;
@@ -3651,4 +3758,4 @@ declare const defaultTypes: {
3651
3758
  };
3652
3759
  };
3653
3760
 
3654
- export { type ActivityInterface, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BatchShipmentInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, type CarrierAccountInterface, type CarrierAccountResponseInterface, type CarrierMappingInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type CustomsItemInterface, 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, type LabelOptionsInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, type OrderAddressInterface, type OrderInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type ParcelInputInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RatesOptionsInterface, type RefundInterface, type RefundResponseInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ServiceLevelsResponseInterface, type ShippingInterface, type ShippingRateInterface, type ShippingTransactionInterface, type ShippoAddressInterface, type ShippoBatchResponseInterface, type ShippoCustomsDeclarationInputInterface, type ShippoCustomsResponseInterface, type ShippoParcelInterface, type ShippoParcelResponseInterface, type ShippoRatesResponseInterface, type ShippoTrackingResponseInterface, type ShippoTransactionResponseInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type TrackingHistoryInterface, type TrackingInfoInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, addressType, 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 };
3761
+ export { type ActivityInterface, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BatchShipmentInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, type CarrierAccountInterface, type CarrierAccountResponseInterface, type CarrierMappingInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type CustomsItemInterface, 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, type LabelOptionsInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, type OrderAddressInterface, type OrderInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type ParcelInputInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RatesOptionsInterface, type RefundInterface, type RefundResponseInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ServiceLevelsResponseInterface, type ShippingInterface, type ShippingRateInterface, type ShippingTransactionInterface, type ShippoAddressInterface, type ShippoBatchResponseInterface, type ShippoCustomsDeclarationInputInterface, type ShippoCustomsResponseInterface, type ShippoParcelInterface, type ShippoParcelResponseInterface, type ShippoRatesResponseInterface, type ShippoTrackingResponseInterface, type ShippoTransactionResponseInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type TrackingHistoryInterface, type TrackingInfoInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, addressType, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaultTypes, defaults, disputeReason, disputeStatus, financialStatus, formatPhoneNumber, fulfillmentStatus, getRandomArbitrary, girth, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, packageType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, shippingProvider, shippingServiceLevel, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, unit, userRole, userSource, userStatus, validEmail, weightUnit };
package/dist/index.d.ts CHANGED
@@ -839,6 +839,45 @@ interface DealInterface {
839
839
  createdBy?: UserInterface;
840
840
  updatedBy?: UserInterface;
841
841
  }
842
+ interface OrderInterface {
843
+ id?: string;
844
+ createdAt?: Date;
845
+ updatedAt?: Date;
846
+ deletedAt?: Date;
847
+ name?: string;
848
+ status?: string;
849
+ description?: string;
850
+ orderNumber?: string;
851
+ fulfillmentStatus?: string;
852
+ paymentStatus?: string;
853
+ financialStatus?: string;
854
+ subtotalAmount?: number;
855
+ taxAmount?: number;
856
+ shippingAmount?: number;
857
+ discountAmount?: number;
858
+ totalAmount?: number;
859
+ currency?: string;
860
+ customerName?: string;
861
+ customerEmail?: string;
862
+ customerPhone?: string;
863
+ shippingProvider?: string;
864
+ shippingServiceLevel?: string;
865
+ trackingNumber?: string;
866
+ trackingUrl?: string;
867
+ internalNotes?: string;
868
+ customerNotes?: string;
869
+ organizationId?: string;
870
+ createdById?: string;
871
+ updatedById?: string;
872
+ clientId?: string;
873
+ poolId?: string | null;
874
+ accountOwnerId?: string;
875
+ accountOwner?: UserInterface;
876
+ contents?: ContentInterface[];
877
+ client?: ClientInterface;
878
+ createdBy?: UserInterface;
879
+ updatedBy?: UserInterface;
880
+ }
842
881
  interface LeadInterface {
843
882
  id?: string;
844
883
  createdAt?: Date;
@@ -1473,11 +1512,6 @@ interface OrderAddressInterface {
1473
1512
  phone?: string;
1474
1513
  email?: string;
1475
1514
  }
1476
- interface OrderInterface {
1477
- shippingAddress: OrderAddressInterface;
1478
- PackageDimensionsInterface?: PackageDimensionsInterface;
1479
- totalWeight?: number;
1480
- }
1481
1515
  interface CarrierMappingInterface {
1482
1516
  name: string;
1483
1517
  services: string[];
@@ -1531,6 +1565,47 @@ declare enum addressType {
1531
1565
  po_box = "po_box",
1532
1566
  military = "military"
1533
1567
  }
1568
+ declare enum unit {
1569
+ cm = "cm",
1570
+ in = "in"
1571
+ }
1572
+ declare enum weightUnit {
1573
+ g = "g",
1574
+ oz = "oz",
1575
+ kg = "kg",
1576
+ lb = "lb"
1577
+ }
1578
+ declare enum girth {
1579
+ USPS = "USPS",
1580
+ UPS = "UPS"
1581
+ }
1582
+ declare enum packageType {
1583
+ package = "package",
1584
+ envelope = "envelope",
1585
+ tube = "tube"
1586
+ }
1587
+ declare enum shippingProvider {
1588
+ USPS = "USPS",
1589
+ UPS = "UPS",
1590
+ FedEx = "FedEx",
1591
+ DHL = "DHL"
1592
+ }
1593
+ declare enum shippingServiceLevel {
1594
+ priority = "priority",
1595
+ express = "express",
1596
+ ground = "ground"
1597
+ }
1598
+ declare enum financialStatus {
1599
+ authorized = "authorized",
1600
+ captured = "captured",
1601
+ voided = "voided"
1602
+ }
1603
+ declare enum fulfillmentStatus {
1604
+ unfulfilled = "unfulfilled",
1605
+ partial = "partial",
1606
+ fulfilled = "fulfilled",
1607
+ delivered = "delivered"
1608
+ }
1534
1609
  declare enum subscriptionCancellationReason {
1535
1610
  CustomerService = "customer_service",
1536
1611
  LowQuality = "low_quality",
@@ -1556,6 +1631,9 @@ declare enum captureMethod {
1556
1631
  manual = "manual"
1557
1632
  }
1558
1633
  declare enum paymentStatus {
1634
+ unpaid = "unpaid",
1635
+ paid = "paid",
1636
+ refunded = "refunded",
1559
1637
  pending = "pending",
1560
1638
  succeeded = "succeeded",
1561
1639
  failed = "failed",
@@ -2708,6 +2786,11 @@ declare const defaults: {
2708
2786
  length: number;
2709
2787
  weight: number;
2710
2788
  width: number;
2789
+ unit: string;
2790
+ weightUnit: string;
2791
+ girth: number;
2792
+ packageType: string;
2793
+ template: string;
2711
2794
  };
2712
2795
  prices: {
2713
2796
  active: boolean;
@@ -2843,6 +2926,30 @@ declare const defaults: {
2843
2926
  client: string;
2844
2927
  campaign: string;
2845
2928
  };
2929
+ orders: {
2930
+ name: string;
2931
+ description: string;
2932
+ status: string;
2933
+ orderNumber: string;
2934
+ fulfillmentStatus: string;
2935
+ paymentStatus: string;
2936
+ financialStatus: string;
2937
+ subtotalAmount: number;
2938
+ taxAmount: number;
2939
+ shippingAmount: number;
2940
+ discountAmount: number;
2941
+ totalAmount: number;
2942
+ currency: string;
2943
+ customerName: string;
2944
+ customerEmail: string;
2945
+ customerPhone: string;
2946
+ shippingProvider: string;
2947
+ shippingServiceLevel: string;
2948
+ trackingNumber: string;
2949
+ trackingUrl: string;
2950
+ internalNotes: string;
2951
+ customerNotes: string;
2952
+ };
2846
2953
  subscriptions: {
2847
2954
  name: string;
2848
2955
  description: null;
@@ -3651,4 +3758,4 @@ declare const defaultTypes: {
3651
3758
  };
3652
3759
  };
3653
3760
 
3654
- export { type ActivityInterface, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BatchShipmentInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, type CarrierAccountInterface, type CarrierAccountResponseInterface, type CarrierMappingInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type CustomsItemInterface, 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, type LabelOptionsInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, type OrderAddressInterface, type OrderInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type ParcelInputInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RatesOptionsInterface, type RefundInterface, type RefundResponseInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ServiceLevelsResponseInterface, type ShippingInterface, type ShippingRateInterface, type ShippingTransactionInterface, type ShippoAddressInterface, type ShippoBatchResponseInterface, type ShippoCustomsDeclarationInputInterface, type ShippoCustomsResponseInterface, type ShippoParcelInterface, type ShippoParcelResponseInterface, type ShippoRatesResponseInterface, type ShippoTrackingResponseInterface, type ShippoTransactionResponseInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type TrackingHistoryInterface, type TrackingInfoInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, addressType, 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 };
3761
+ export { type ActivityInterface, type AddressInterface, type AmountDetailsInterface, type AnalyticsQueryInterface, AppMode, type AutomaticPaymentMethodsInterface, type AutomaticTaxInterface, type BatchShipmentInterface, type BillingDetailsInterface, CalculationType, type CampaignInterface, CampaignType, type CancellationDetailsInterface, type CardInterface, type CarrierAccountInterface, type CarrierAccountResponseInterface, type CarrierMappingInterface, CategoryType, ChartType, type ChatInterface, type ClientInterface, type CommentInterface, type ContactInterface, type ContentInterface, ContentType, type CurrentRateInterface, type CustomsItemInterface, 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, type LabelOptionsInterface, LandingPath, LandingView, type LeadInterface, LeadType, type ListInterface, type MarketingFeatureInterface, type ModelInterface, ModelType, type Notation, type NotificationInterface, type OperationInterface, type OrderAddressInterface, type OrderInterface, OrganizationFeatures, type OrganizationInterface, type OrganizationModelInterface, type PackageDimensionsInterface, type ParcelInputInterface, type PauseCollectionInterface, type PaymentInterface, type PaymentMethodInterface, type PermissionInterface, PermissionType, PlatformLanguage, type PoolInterface, type PriceInterface, type PriceRecurringInterface, Priority, type ProductInterface, type PromptInterface, type QueryFilterInterface, type RatesOptionsInterface, type RefundInterface, type RefundResponseInterface, type RegisterInterface, type ReportInterface, type SchemaInterface, type SentEmailInterface, type ServiceLevelsResponseInterface, type ShippingInterface, type ShippingRateInterface, type ShippingTransactionInterface, type ShippoAddressInterface, type ShippoBatchResponseInterface, type ShippoCustomsDeclarationInputInterface, type ShippoCustomsResponseInterface, type ShippoParcelInterface, type ShippoParcelResponseInterface, type ShippoRatesResponseInterface, type ShippoTrackingResponseInterface, type ShippoTransactionResponseInterface, SourceType, type StatisticInterface, type StripeAccountInterface, type StripeCustomer, type StripePaymentIntent, type SubscriptionInterface, type TagInterface, type TaskInterface, type TokenInterface, type TrackingHistoryInterface, type TrackingInfoInterface, type UsageInterface, UsageType, type UserInterface, UserSettingType, type WaitlistInterface, accountType, action, addressType, automaticTaxStatus, billingReason, billingScheme, camelCaseToWords, capitalizeSentence, captureMethod, chatType, clientType, collectionMethod, commentRole, constants, currency, customerType, defaultTypes, defaults, disputeReason, disputeStatus, financialStatus, formatPhoneNumber, fulfillmentStatus, getRandomArbitrary, girth, grabAge, integrationType, isNumber, largeNumberLabel, missingPaymentMethod, normalizeKey, openInNewTab, operationType, organizationFilterType, packageType, paymentAllowRedirect, paymentCancellationReason, paymentFutureUsage, paymentMethodAllowReDisplay, paymentMethodType, paymentStatus, prettifyString, priceType, productType, refundFailureReason, refundPendingReason, refundReason, refundStatus, shippingProvider, shippingServiceLevel, snakeToPretty, status, stripHtmlTags, subscriptionCancellationReason, taxBehavior, taxExempt, tiersMode, toCurrencyValue, unit, userRole, userSource, userStatus, validEmail, weightUnit };
package/dist/index.js CHANGED
@@ -65,8 +65,11 @@ __export(index_exports, {
65
65
  defaults: () => defaults_default,
66
66
  disputeReason: () => disputeReason,
67
67
  disputeStatus: () => disputeStatus,
68
+ financialStatus: () => financialStatus,
68
69
  formatPhoneNumber: () => formatPhoneNumber,
70
+ fulfillmentStatus: () => fulfillmentStatus,
69
71
  getRandomArbitrary: () => getRandomArbitrary,
72
+ girth: () => girth,
70
73
  grabAge: () => grabAge,
71
74
  integrationType: () => integrationType,
72
75
  isNumber: () => isNumber,
@@ -76,6 +79,7 @@ __export(index_exports, {
76
79
  openInNewTab: () => openInNewTab,
77
80
  operationType: () => operationType,
78
81
  organizationFilterType: () => organizationFilterType,
82
+ packageType: () => packageType,
79
83
  paymentAllowRedirect: () => paymentAllowRedirect,
80
84
  paymentCancellationReason: () => paymentCancellationReason,
81
85
  paymentFutureUsage: () => paymentFutureUsage,
@@ -89,6 +93,8 @@ __export(index_exports, {
89
93
  refundPendingReason: () => refundPendingReason,
90
94
  refundReason: () => refundReason,
91
95
  refundStatus: () => refundStatus,
96
+ shippingProvider: () => shippingProvider,
97
+ shippingServiceLevel: () => shippingServiceLevel,
92
98
  snakeToPretty: () => snakeToPretty,
93
99
  status: () => status,
94
100
  stripHtmlTags: () => stripHtmlTags,
@@ -97,10 +103,12 @@ __export(index_exports, {
97
103
  taxExempt: () => taxExempt,
98
104
  tiersMode: () => tiersMode,
99
105
  toCurrencyValue: () => toCurrencyValue,
106
+ unit: () => unit,
100
107
  userRole: () => userRole,
101
108
  userSource: () => userSource,
102
109
  userStatus: () => userStatus,
103
- validEmail: () => validEmail
110
+ validEmail: () => validEmail,
111
+ weightUnit: () => weightUnit
104
112
  });
105
113
  module.exports = __toCommonJS(index_exports);
106
114
 
@@ -245,6 +253,55 @@ var addressType = /* @__PURE__ */ ((addressType2) => {
245
253
  addressType2["military"] = "military";
246
254
  return addressType2;
247
255
  })(addressType || {});
256
+ var unit = /* @__PURE__ */ ((unit2) => {
257
+ unit2["cm"] = "cm";
258
+ unit2["in"] = "in";
259
+ return unit2;
260
+ })(unit || {});
261
+ var weightUnit = /* @__PURE__ */ ((weightUnit2) => {
262
+ weightUnit2["g"] = "g";
263
+ weightUnit2["oz"] = "oz";
264
+ weightUnit2["kg"] = "kg";
265
+ weightUnit2["lb"] = "lb";
266
+ return weightUnit2;
267
+ })(weightUnit || {});
268
+ var girth = /* @__PURE__ */ ((girth2) => {
269
+ girth2["USPS"] = "USPS";
270
+ girth2["UPS"] = "UPS";
271
+ return girth2;
272
+ })(girth || {});
273
+ var packageType = /* @__PURE__ */ ((packageType2) => {
274
+ packageType2["package"] = "package";
275
+ packageType2["envelope"] = "envelope";
276
+ packageType2["tube"] = "tube";
277
+ return packageType2;
278
+ })(packageType || {});
279
+ var shippingProvider = /* @__PURE__ */ ((shippingProvider2) => {
280
+ shippingProvider2["USPS"] = "USPS";
281
+ shippingProvider2["UPS"] = "UPS";
282
+ shippingProvider2["FedEx"] = "FedEx";
283
+ shippingProvider2["DHL"] = "DHL";
284
+ return shippingProvider2;
285
+ })(shippingProvider || {});
286
+ var shippingServiceLevel = /* @__PURE__ */ ((shippingServiceLevel2) => {
287
+ shippingServiceLevel2["priority"] = "priority";
288
+ shippingServiceLevel2["express"] = "express";
289
+ shippingServiceLevel2["ground"] = "ground";
290
+ return shippingServiceLevel2;
291
+ })(shippingServiceLevel || {});
292
+ var financialStatus = /* @__PURE__ */ ((financialStatus2) => {
293
+ financialStatus2["authorized"] = "authorized";
294
+ financialStatus2["captured"] = "captured";
295
+ financialStatus2["voided"] = "voided";
296
+ return financialStatus2;
297
+ })(financialStatus || {});
298
+ var fulfillmentStatus = /* @__PURE__ */ ((fulfillmentStatus2) => {
299
+ fulfillmentStatus2["unfulfilled"] = "unfulfilled";
300
+ fulfillmentStatus2["partial"] = "partial";
301
+ fulfillmentStatus2["fulfilled"] = "fulfilled";
302
+ fulfillmentStatus2["delivered"] = "delivered";
303
+ return fulfillmentStatus2;
304
+ })(fulfillmentStatus || {});
248
305
  var subscriptionCancellationReason = /* @__PURE__ */ ((subscriptionCancellationReason2) => {
249
306
  subscriptionCancellationReason2["CustomerService"] = "customer_service";
250
307
  subscriptionCancellationReason2["LowQuality"] = "low_quality";
@@ -273,6 +330,9 @@ var captureMethod = /* @__PURE__ */ ((captureMethod2) => {
273
330
  return captureMethod2;
274
331
  })(captureMethod || {});
275
332
  var paymentStatus = /* @__PURE__ */ ((paymentStatus2) => {
333
+ paymentStatus2["unpaid"] = "unpaid";
334
+ paymentStatus2["paid"] = "paid";
335
+ paymentStatus2["refunded"] = "refunded";
276
336
  paymentStatus2["pending"] = "pending";
277
337
  paymentStatus2["succeeded"] = "succeeded";
278
338
  paymentStatus2["failed"] = "failed";
@@ -2133,7 +2193,17 @@ var defaults = {
2133
2193
  unitLabel: null,
2134
2194
  url: ""
2135
2195
  },
2136
- packageDimensions: { height: 0, length: 0, weight: 0, width: 0 },
2196
+ packageDimensions: {
2197
+ height: 0,
2198
+ length: 0,
2199
+ weight: 0,
2200
+ width: 0,
2201
+ unit: "cm",
2202
+ weightUnit: "g",
2203
+ girth: 0,
2204
+ packageType: "",
2205
+ template: ""
2206
+ },
2137
2207
  prices: {
2138
2208
  active: true,
2139
2209
  unitAmount: 0,
@@ -2268,6 +2338,30 @@ var defaults = {
2268
2338
  client: "",
2269
2339
  campaign: ""
2270
2340
  },
2341
+ orders: {
2342
+ name: "",
2343
+ description: "",
2344
+ status: "Ready",
2345
+ orderNumber: "",
2346
+ fulfillmentStatus: "",
2347
+ paymentStatus: "",
2348
+ financialStatus: "",
2349
+ subtotalAmount: 0,
2350
+ taxAmount: 0,
2351
+ shippingAmount: 0,
2352
+ discountAmount: 0,
2353
+ totalAmount: 0,
2354
+ currency: "usd",
2355
+ customerName: "",
2356
+ customerEmail: "",
2357
+ customerPhone: "",
2358
+ shippingProvider: "",
2359
+ shippingServiceLevel: "",
2360
+ trackingNumber: "",
2361
+ trackingUrl: "",
2362
+ internalNotes: "",
2363
+ customerNotes: ""
2364
+ },
2271
2365
  subscriptions: {
2272
2366
  name: "",
2273
2367
  description: null,
@@ -3078,8 +3172,11 @@ var defaultTypes_default = defaultTypes;
3078
3172
  defaults,
3079
3173
  disputeReason,
3080
3174
  disputeStatus,
3175
+ financialStatus,
3081
3176
  formatPhoneNumber,
3177
+ fulfillmentStatus,
3082
3178
  getRandomArbitrary,
3179
+ girth,
3083
3180
  grabAge,
3084
3181
  integrationType,
3085
3182
  isNumber,
@@ -3089,6 +3186,7 @@ var defaultTypes_default = defaultTypes;
3089
3186
  openInNewTab,
3090
3187
  operationType,
3091
3188
  organizationFilterType,
3189
+ packageType,
3092
3190
  paymentAllowRedirect,
3093
3191
  paymentCancellationReason,
3094
3192
  paymentFutureUsage,
@@ -3102,6 +3200,8 @@ var defaultTypes_default = defaultTypes;
3102
3200
  refundPendingReason,
3103
3201
  refundReason,
3104
3202
  refundStatus,
3203
+ shippingProvider,
3204
+ shippingServiceLevel,
3105
3205
  snakeToPretty,
3106
3206
  status,
3107
3207
  stripHtmlTags,
@@ -3110,9 +3210,11 @@ var defaultTypes_default = defaultTypes;
3110
3210
  taxExempt,
3111
3211
  tiersMode,
3112
3212
  toCurrencyValue,
3213
+ unit,
3113
3214
  userRole,
3114
3215
  userSource,
3115
3216
  userStatus,
3116
- validEmail
3217
+ validEmail,
3218
+ weightUnit
3117
3219
  });
3118
3220
  //# sourceMappingURL=index.js.map