@verma-consulting/common-library 0.1.31 → 0.1.33
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 +117 -9
- package/dist/index.d.ts +117 -9
- package/dist/index.js +110 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +101 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -272,7 +272,7 @@ interface PriceInterface {
|
|
|
272
272
|
stripeId?: string;
|
|
273
273
|
active?: boolean;
|
|
274
274
|
lookupKey?: string;
|
|
275
|
-
|
|
275
|
+
priceType?: string;
|
|
276
276
|
taxBehavior?: string;
|
|
277
277
|
product?: string;
|
|
278
278
|
currency?: string;
|
|
@@ -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,13 +2786,19 @@ 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;
|
|
2714
2797
|
unitAmount: number;
|
|
2715
|
-
unitAmountDecimal:
|
|
2798
|
+
unitAmountDecimal: number;
|
|
2799
|
+
nickname: string;
|
|
2716
2800
|
lookupKey: string;
|
|
2717
|
-
|
|
2801
|
+
priceType: string;
|
|
2718
2802
|
taxBehavior: string;
|
|
2719
2803
|
currency: string;
|
|
2720
2804
|
billingScheme: string;
|
|
@@ -2843,6 +2927,30 @@ declare const defaults: {
|
|
|
2843
2927
|
client: string;
|
|
2844
2928
|
campaign: string;
|
|
2845
2929
|
};
|
|
2930
|
+
orders: {
|
|
2931
|
+
name: string;
|
|
2932
|
+
description: string;
|
|
2933
|
+
status: string;
|
|
2934
|
+
orderNumber: string;
|
|
2935
|
+
fulfillmentStatus: string;
|
|
2936
|
+
paymentStatus: string;
|
|
2937
|
+
financialStatus: string;
|
|
2938
|
+
subtotalAmount: number;
|
|
2939
|
+
taxAmount: number;
|
|
2940
|
+
shippingAmount: number;
|
|
2941
|
+
discountAmount: number;
|
|
2942
|
+
totalAmount: number;
|
|
2943
|
+
currency: string;
|
|
2944
|
+
customerName: string;
|
|
2945
|
+
customerEmail: string;
|
|
2946
|
+
customerPhone: string;
|
|
2947
|
+
shippingProvider: string;
|
|
2948
|
+
shippingServiceLevel: string;
|
|
2949
|
+
trackingNumber: string;
|
|
2950
|
+
trackingUrl: string;
|
|
2951
|
+
internalNotes: string;
|
|
2952
|
+
customerNotes: string;
|
|
2953
|
+
};
|
|
2846
2954
|
subscriptions: {
|
|
2847
2955
|
name: string;
|
|
2848
2956
|
description: null;
|
|
@@ -3651,4 +3759,4 @@ declare const defaultTypes: {
|
|
|
3651
3759
|
};
|
|
3652
3760
|
};
|
|
3653
3761
|
|
|
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 };
|
|
3762
|
+
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
|
@@ -272,7 +272,7 @@ interface PriceInterface {
|
|
|
272
272
|
stripeId?: string;
|
|
273
273
|
active?: boolean;
|
|
274
274
|
lookupKey?: string;
|
|
275
|
-
|
|
275
|
+
priceType?: string;
|
|
276
276
|
taxBehavior?: string;
|
|
277
277
|
product?: string;
|
|
278
278
|
currency?: string;
|
|
@@ -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,13 +2786,19 @@ 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;
|
|
2714
2797
|
unitAmount: number;
|
|
2715
|
-
unitAmountDecimal:
|
|
2798
|
+
unitAmountDecimal: number;
|
|
2799
|
+
nickname: string;
|
|
2716
2800
|
lookupKey: string;
|
|
2717
|
-
|
|
2801
|
+
priceType: string;
|
|
2718
2802
|
taxBehavior: string;
|
|
2719
2803
|
currency: string;
|
|
2720
2804
|
billingScheme: string;
|
|
@@ -2843,6 +2927,30 @@ declare const defaults: {
|
|
|
2843
2927
|
client: string;
|
|
2844
2928
|
campaign: string;
|
|
2845
2929
|
};
|
|
2930
|
+
orders: {
|
|
2931
|
+
name: string;
|
|
2932
|
+
description: string;
|
|
2933
|
+
status: string;
|
|
2934
|
+
orderNumber: string;
|
|
2935
|
+
fulfillmentStatus: string;
|
|
2936
|
+
paymentStatus: string;
|
|
2937
|
+
financialStatus: string;
|
|
2938
|
+
subtotalAmount: number;
|
|
2939
|
+
taxAmount: number;
|
|
2940
|
+
shippingAmount: number;
|
|
2941
|
+
discountAmount: number;
|
|
2942
|
+
totalAmount: number;
|
|
2943
|
+
currency: string;
|
|
2944
|
+
customerName: string;
|
|
2945
|
+
customerEmail: string;
|
|
2946
|
+
customerPhone: string;
|
|
2947
|
+
shippingProvider: string;
|
|
2948
|
+
shippingServiceLevel: string;
|
|
2949
|
+
trackingNumber: string;
|
|
2950
|
+
trackingUrl: string;
|
|
2951
|
+
internalNotes: string;
|
|
2952
|
+
customerNotes: string;
|
|
2953
|
+
};
|
|
2846
2954
|
subscriptions: {
|
|
2847
2955
|
name: string;
|
|
2848
2956
|
description: null;
|
|
@@ -3651,4 +3759,4 @@ declare const defaultTypes: {
|
|
|
3651
3759
|
};
|
|
3652
3760
|
};
|
|
3653
3761
|
|
|
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 };
|
|
3762
|
+
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";
|
|
@@ -927,6 +987,7 @@ var constants = {
|
|
|
927
987
|
"annualRevenue",
|
|
928
988
|
"balance",
|
|
929
989
|
"amount",
|
|
990
|
+
"unitAmount",
|
|
930
991
|
"expectedRevenue",
|
|
931
992
|
"actualCost",
|
|
932
993
|
"amountDue",
|
|
@@ -2133,16 +2194,27 @@ var defaults = {
|
|
|
2133
2194
|
unitLabel: null,
|
|
2134
2195
|
url: ""
|
|
2135
2196
|
},
|
|
2136
|
-
packageDimensions: {
|
|
2197
|
+
packageDimensions: {
|
|
2198
|
+
height: 0,
|
|
2199
|
+
length: 0,
|
|
2200
|
+
weight: 0,
|
|
2201
|
+
width: 0,
|
|
2202
|
+
unit: "cm",
|
|
2203
|
+
weightUnit: "g",
|
|
2204
|
+
girth: 0,
|
|
2205
|
+
packageType: "",
|
|
2206
|
+
template: ""
|
|
2207
|
+
},
|
|
2137
2208
|
prices: {
|
|
2138
2209
|
active: true,
|
|
2139
2210
|
unitAmount: 0,
|
|
2140
|
-
unitAmountDecimal:
|
|
2211
|
+
unitAmountDecimal: 0,
|
|
2212
|
+
nickname: "",
|
|
2141
2213
|
lookupKey: "",
|
|
2142
|
-
|
|
2214
|
+
priceType: "one_time",
|
|
2143
2215
|
taxBehavior: "unspecified",
|
|
2144
2216
|
currency: "usd",
|
|
2145
|
-
billingScheme: "",
|
|
2217
|
+
billingScheme: "per_unit",
|
|
2146
2218
|
recurring: {
|
|
2147
2219
|
intervalCount: 0,
|
|
2148
2220
|
interval: "",
|
|
@@ -2268,6 +2340,30 @@ var defaults = {
|
|
|
2268
2340
|
client: "",
|
|
2269
2341
|
campaign: ""
|
|
2270
2342
|
},
|
|
2343
|
+
orders: {
|
|
2344
|
+
name: "",
|
|
2345
|
+
description: "",
|
|
2346
|
+
status: "Ready",
|
|
2347
|
+
orderNumber: "",
|
|
2348
|
+
fulfillmentStatus: "",
|
|
2349
|
+
paymentStatus: "",
|
|
2350
|
+
financialStatus: "",
|
|
2351
|
+
subtotalAmount: 0,
|
|
2352
|
+
taxAmount: 0,
|
|
2353
|
+
shippingAmount: 0,
|
|
2354
|
+
discountAmount: 0,
|
|
2355
|
+
totalAmount: 0,
|
|
2356
|
+
currency: "usd",
|
|
2357
|
+
customerName: "",
|
|
2358
|
+
customerEmail: "",
|
|
2359
|
+
customerPhone: "",
|
|
2360
|
+
shippingProvider: "",
|
|
2361
|
+
shippingServiceLevel: "",
|
|
2362
|
+
trackingNumber: "",
|
|
2363
|
+
trackingUrl: "",
|
|
2364
|
+
internalNotes: "",
|
|
2365
|
+
customerNotes: ""
|
|
2366
|
+
},
|
|
2271
2367
|
subscriptions: {
|
|
2272
2368
|
name: "",
|
|
2273
2369
|
description: null,
|
|
@@ -3078,8 +3174,11 @@ var defaultTypes_default = defaultTypes;
|
|
|
3078
3174
|
defaults,
|
|
3079
3175
|
disputeReason,
|
|
3080
3176
|
disputeStatus,
|
|
3177
|
+
financialStatus,
|
|
3081
3178
|
formatPhoneNumber,
|
|
3179
|
+
fulfillmentStatus,
|
|
3082
3180
|
getRandomArbitrary,
|
|
3181
|
+
girth,
|
|
3083
3182
|
grabAge,
|
|
3084
3183
|
integrationType,
|
|
3085
3184
|
isNumber,
|
|
@@ -3089,6 +3188,7 @@ var defaultTypes_default = defaultTypes;
|
|
|
3089
3188
|
openInNewTab,
|
|
3090
3189
|
operationType,
|
|
3091
3190
|
organizationFilterType,
|
|
3191
|
+
packageType,
|
|
3092
3192
|
paymentAllowRedirect,
|
|
3093
3193
|
paymentCancellationReason,
|
|
3094
3194
|
paymentFutureUsage,
|
|
@@ -3102,6 +3202,8 @@ var defaultTypes_default = defaultTypes;
|
|
|
3102
3202
|
refundPendingReason,
|
|
3103
3203
|
refundReason,
|
|
3104
3204
|
refundStatus,
|
|
3205
|
+
shippingProvider,
|
|
3206
|
+
shippingServiceLevel,
|
|
3105
3207
|
snakeToPretty,
|
|
3106
3208
|
status,
|
|
3107
3209
|
stripHtmlTags,
|
|
@@ -3110,9 +3212,11 @@ var defaultTypes_default = defaultTypes;
|
|
|
3110
3212
|
taxExempt,
|
|
3111
3213
|
tiersMode,
|
|
3112
3214
|
toCurrencyValue,
|
|
3215
|
+
unit,
|
|
3113
3216
|
userRole,
|
|
3114
3217
|
userSource,
|
|
3115
3218
|
userStatus,
|
|
3116
|
-
validEmail
|
|
3219
|
+
validEmail,
|
|
3220
|
+
weightUnit
|
|
3117
3221
|
});
|
|
3118
3222
|
//# sourceMappingURL=index.js.map
|