@verma-consulting/common-library 0.1.27 → 0.1.29
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 +12 -5
- package/dist/index.d.ts +12 -5
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1357,7 +1357,7 @@ interface ShippoRatesResponseInterface {
|
|
|
1357
1357
|
error?: any;
|
|
1358
1358
|
}
|
|
1359
1359
|
interface RatesOptionsInterface {
|
|
1360
|
-
|
|
1360
|
+
CarrierAccountInterfaces?: string[];
|
|
1361
1361
|
}
|
|
1362
1362
|
interface LabelOptionsInterface {
|
|
1363
1363
|
labelFormat?: "PNG" | "PDF" | "ZPLII" | "EPL2";
|
|
@@ -1399,7 +1399,7 @@ interface TrackingInfoInterface {
|
|
|
1399
1399
|
zip: string;
|
|
1400
1400
|
country: string;
|
|
1401
1401
|
};
|
|
1402
|
-
|
|
1402
|
+
TrackingHistoryInterface: TrackingHistoryInterface[];
|
|
1403
1403
|
estimatedDelivery?: string;
|
|
1404
1404
|
}
|
|
1405
1405
|
interface ShippoTrackingResponseInterface {
|
|
@@ -1433,7 +1433,7 @@ interface BatchShipmentInterface {
|
|
|
1433
1433
|
fromAddress: string | AddressInterface;
|
|
1434
1434
|
toAddress: string | AddressInterface;
|
|
1435
1435
|
parcels: Array<string | ParcelInputInterface>;
|
|
1436
|
-
|
|
1436
|
+
CarrierAccountInterface?: string;
|
|
1437
1437
|
serviceLevelToken?: string;
|
|
1438
1438
|
}
|
|
1439
1439
|
interface ShippoBatchResponseInterface {
|
|
@@ -1450,7 +1450,7 @@ interface CarrierAccountInterface {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
interface CarrierAccountResponseInterface {
|
|
1452
1452
|
success: boolean;
|
|
1453
|
-
|
|
1453
|
+
CarrierAccountInterfaces?: CarrierAccountInterface[];
|
|
1454
1454
|
error?: any;
|
|
1455
1455
|
}
|
|
1456
1456
|
interface ServiceLevelsResponseInterface {
|
|
@@ -1532,6 +1532,13 @@ declare enum userStatus {
|
|
|
1532
1532
|
Active = "Active",
|
|
1533
1533
|
Inactive = "Inactive"
|
|
1534
1534
|
}
|
|
1535
|
+
declare enum addressType {
|
|
1536
|
+
unknown = "unknown",
|
|
1537
|
+
residential = "residential",
|
|
1538
|
+
commercial = "commercial",
|
|
1539
|
+
po_box = "po_box",
|
|
1540
|
+
military = "military"
|
|
1541
|
+
}
|
|
1535
1542
|
declare enum subscriptionCancellationReason {
|
|
1536
1543
|
CustomerService = "customer_service",
|
|
1537
1544
|
LowQuality = "low_quality",
|
|
@@ -3646,4 +3653,4 @@ declare const defaultTypes: {
|
|
|
3646
3653
|
};
|
|
3647
3654
|
};
|
|
3648
3655
|
|
|
3649
|
-
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 ShippoAddressResponseInterface, 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, 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 };
|
|
3656
|
+
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 ShippoAddressResponseInterface, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1357,7 +1357,7 @@ interface ShippoRatesResponseInterface {
|
|
|
1357
1357
|
error?: any;
|
|
1358
1358
|
}
|
|
1359
1359
|
interface RatesOptionsInterface {
|
|
1360
|
-
|
|
1360
|
+
CarrierAccountInterfaces?: string[];
|
|
1361
1361
|
}
|
|
1362
1362
|
interface LabelOptionsInterface {
|
|
1363
1363
|
labelFormat?: "PNG" | "PDF" | "ZPLII" | "EPL2";
|
|
@@ -1399,7 +1399,7 @@ interface TrackingInfoInterface {
|
|
|
1399
1399
|
zip: string;
|
|
1400
1400
|
country: string;
|
|
1401
1401
|
};
|
|
1402
|
-
|
|
1402
|
+
TrackingHistoryInterface: TrackingHistoryInterface[];
|
|
1403
1403
|
estimatedDelivery?: string;
|
|
1404
1404
|
}
|
|
1405
1405
|
interface ShippoTrackingResponseInterface {
|
|
@@ -1433,7 +1433,7 @@ interface BatchShipmentInterface {
|
|
|
1433
1433
|
fromAddress: string | AddressInterface;
|
|
1434
1434
|
toAddress: string | AddressInterface;
|
|
1435
1435
|
parcels: Array<string | ParcelInputInterface>;
|
|
1436
|
-
|
|
1436
|
+
CarrierAccountInterface?: string;
|
|
1437
1437
|
serviceLevelToken?: string;
|
|
1438
1438
|
}
|
|
1439
1439
|
interface ShippoBatchResponseInterface {
|
|
@@ -1450,7 +1450,7 @@ interface CarrierAccountInterface {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
interface CarrierAccountResponseInterface {
|
|
1452
1452
|
success: boolean;
|
|
1453
|
-
|
|
1453
|
+
CarrierAccountInterfaces?: CarrierAccountInterface[];
|
|
1454
1454
|
error?: any;
|
|
1455
1455
|
}
|
|
1456
1456
|
interface ServiceLevelsResponseInterface {
|
|
@@ -1532,6 +1532,13 @@ declare enum userStatus {
|
|
|
1532
1532
|
Active = "Active",
|
|
1533
1533
|
Inactive = "Inactive"
|
|
1534
1534
|
}
|
|
1535
|
+
declare enum addressType {
|
|
1536
|
+
unknown = "unknown",
|
|
1537
|
+
residential = "residential",
|
|
1538
|
+
commercial = "commercial",
|
|
1539
|
+
po_box = "po_box",
|
|
1540
|
+
military = "military"
|
|
1541
|
+
}
|
|
1535
1542
|
declare enum subscriptionCancellationReason {
|
|
1536
1543
|
CustomerService = "customer_service",
|
|
1537
1544
|
LowQuality = "low_quality",
|
|
@@ -3646,4 +3653,4 @@ declare const defaultTypes: {
|
|
|
3646
3653
|
};
|
|
3647
3654
|
};
|
|
3648
3655
|
|
|
3649
|
-
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 ShippoAddressResponseInterface, 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, 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 };
|
|
3656
|
+
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 ShippoAddressResponseInterface, 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 };
|
package/dist/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __export(index_exports, {
|
|
|
47
47
|
UserSettingType: () => UserSettingType,
|
|
48
48
|
accountType: () => accountType,
|
|
49
49
|
action: () => action,
|
|
50
|
+
addressType: () => addressType,
|
|
50
51
|
automaticTaxStatus: () => automaticTaxStatus,
|
|
51
52
|
billingReason: () => billingReason,
|
|
52
53
|
billingScheme: () => billingScheme,
|
|
@@ -236,6 +237,14 @@ var userStatus = /* @__PURE__ */ ((userStatus2) => {
|
|
|
236
237
|
userStatus2["Inactive"] = "Inactive";
|
|
237
238
|
return userStatus2;
|
|
238
239
|
})(userStatus || {});
|
|
240
|
+
var addressType = /* @__PURE__ */ ((addressType2) => {
|
|
241
|
+
addressType2["unknown"] = "unknown";
|
|
242
|
+
addressType2["residential"] = "residential";
|
|
243
|
+
addressType2["commercial"] = "commercial";
|
|
244
|
+
addressType2["po_box"] = "po_box";
|
|
245
|
+
addressType2["military"] = "military";
|
|
246
|
+
return addressType2;
|
|
247
|
+
})(addressType || {});
|
|
239
248
|
var subscriptionCancellationReason = /* @__PURE__ */ ((subscriptionCancellationReason2) => {
|
|
240
249
|
subscriptionCancellationReason2["CustomerService"] = "customer_service";
|
|
241
250
|
subscriptionCancellationReason2["LowQuality"] = "low_quality";
|
|
@@ -3037,6 +3046,7 @@ var defaultTypes_default = defaultTypes;
|
|
|
3037
3046
|
UserSettingType,
|
|
3038
3047
|
accountType,
|
|
3039
3048
|
action,
|
|
3049
|
+
addressType,
|
|
3040
3050
|
automaticTaxStatus,
|
|
3041
3051
|
billingReason,
|
|
3042
3052
|
billingScheme,
|