@verma-consulting/common-library 0.1.25 → 0.1.26
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 +202 -1
- package/dist/index.d.ts +202 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -664,6 +664,9 @@ interface AddressInterface {
|
|
|
664
664
|
updatedAt?: Date;
|
|
665
665
|
deletedAt?: Date;
|
|
666
666
|
claimed?: boolean;
|
|
667
|
+
label?: string;
|
|
668
|
+
shippoId?: string;
|
|
669
|
+
isValid?: boolean;
|
|
667
670
|
line1?: string;
|
|
668
671
|
line2?: string;
|
|
669
672
|
postalCode?: string;
|
|
@@ -671,6 +674,7 @@ interface AddressInterface {
|
|
|
671
674
|
state?: string;
|
|
672
675
|
country?: string;
|
|
673
676
|
countryCode?: string;
|
|
677
|
+
addressType?: string;
|
|
674
678
|
longitude?: number;
|
|
675
679
|
latitude?: number;
|
|
676
680
|
poolId?: string;
|
|
@@ -1289,6 +1293,203 @@ interface QueryFilterInterface {
|
|
|
1289
1293
|
rowsPerPage?: number;
|
|
1290
1294
|
statisticId?: string;
|
|
1291
1295
|
}
|
|
1296
|
+
interface ShippoAddressInterface {
|
|
1297
|
+
id?: string;
|
|
1298
|
+
name?: string;
|
|
1299
|
+
organization?: string;
|
|
1300
|
+
line1?: string;
|
|
1301
|
+
line2?: string;
|
|
1302
|
+
city?: string;
|
|
1303
|
+
state?: string;
|
|
1304
|
+
postalCode?: string;
|
|
1305
|
+
country?: string;
|
|
1306
|
+
countryCode?: string;
|
|
1307
|
+
phone?: string;
|
|
1308
|
+
email?: string;
|
|
1309
|
+
addressType?: string;
|
|
1310
|
+
isResidential?: boolean;
|
|
1311
|
+
longitude?: number | null;
|
|
1312
|
+
latitude?: number | null;
|
|
1313
|
+
validationResults?: any | null;
|
|
1314
|
+
}
|
|
1315
|
+
interface ShippoAddressResponseInterface {
|
|
1316
|
+
success: boolean;
|
|
1317
|
+
address?: ShippoAddressInterface;
|
|
1318
|
+
isValid?: boolean;
|
|
1319
|
+
error?: any;
|
|
1320
|
+
}
|
|
1321
|
+
interface ParcelInputInterface {
|
|
1322
|
+
length: number;
|
|
1323
|
+
width: number;
|
|
1324
|
+
height: number;
|
|
1325
|
+
weight: number;
|
|
1326
|
+
distanceUnit?: "in" | "ft" | "yd" | "cm" | "m";
|
|
1327
|
+
massUnit?: "g" | "oz" | "lb" | "kg";
|
|
1328
|
+
}
|
|
1329
|
+
interface ShippoParcelInterface {
|
|
1330
|
+
id?: string;
|
|
1331
|
+
length?: string | number;
|
|
1332
|
+
width?: string | number;
|
|
1333
|
+
height?: string | number;
|
|
1334
|
+
distance_unit?: string;
|
|
1335
|
+
weight?: string | number;
|
|
1336
|
+
mass_unit?: string;
|
|
1337
|
+
}
|
|
1338
|
+
interface ShippoParcelResponseInterface {
|
|
1339
|
+
success: boolean;
|
|
1340
|
+
parcel?: ShippoParcelInterface;
|
|
1341
|
+
error?: any;
|
|
1342
|
+
}
|
|
1343
|
+
interface ShippingRateInterface {
|
|
1344
|
+
objectId: string;
|
|
1345
|
+
carrier: string;
|
|
1346
|
+
service: string;
|
|
1347
|
+
amount: number;
|
|
1348
|
+
currency: string;
|
|
1349
|
+
estimatedDays: number;
|
|
1350
|
+
durationType: string;
|
|
1351
|
+
test: boolean;
|
|
1352
|
+
}
|
|
1353
|
+
interface ShippoRatesResponseInterface {
|
|
1354
|
+
success: boolean;
|
|
1355
|
+
rates?: ShippingRateInterface[];
|
|
1356
|
+
shipmentId?: string;
|
|
1357
|
+
error?: any;
|
|
1358
|
+
}
|
|
1359
|
+
interface RatesOptionsInterface {
|
|
1360
|
+
CarrierAccountInterfaces?: string[];
|
|
1361
|
+
}
|
|
1362
|
+
interface LabelOptionsInterface {
|
|
1363
|
+
labelFormat?: "PNG" | "PDF" | "ZPLII" | "EPL2";
|
|
1364
|
+
customsDeclaration?: string;
|
|
1365
|
+
}
|
|
1366
|
+
interface ShippingTransactionInterface {
|
|
1367
|
+
objectId: string;
|
|
1368
|
+
status: string;
|
|
1369
|
+
labelUrl: string;
|
|
1370
|
+
trackingNumber: string;
|
|
1371
|
+
trackingUrl: string;
|
|
1372
|
+
rate: any;
|
|
1373
|
+
}
|
|
1374
|
+
interface ShippoTransactionResponseInterface {
|
|
1375
|
+
success: boolean;
|
|
1376
|
+
transaction?: ShippingTransactionInterface;
|
|
1377
|
+
error?: any;
|
|
1378
|
+
}
|
|
1379
|
+
interface TrackingHistoryInterface {
|
|
1380
|
+
status: string;
|
|
1381
|
+
status_details: string;
|
|
1382
|
+
status_date: string;
|
|
1383
|
+
location: {
|
|
1384
|
+
city: string;
|
|
1385
|
+
state: string;
|
|
1386
|
+
zip: string;
|
|
1387
|
+
country: string;
|
|
1388
|
+
};
|
|
1389
|
+
}
|
|
1390
|
+
interface TrackingInfoInterface {
|
|
1391
|
+
carrier: string;
|
|
1392
|
+
trackingNumber: string;
|
|
1393
|
+
status: string;
|
|
1394
|
+
statusDate: string;
|
|
1395
|
+
statusDetails: string;
|
|
1396
|
+
location: {
|
|
1397
|
+
city: string;
|
|
1398
|
+
state: string;
|
|
1399
|
+
zip: string;
|
|
1400
|
+
country: string;
|
|
1401
|
+
};
|
|
1402
|
+
TrackingHistoryInterface: TrackingHistoryInterface[];
|
|
1403
|
+
estimatedDelivery?: string;
|
|
1404
|
+
}
|
|
1405
|
+
interface ShippoTrackingResponseInterface {
|
|
1406
|
+
success: boolean;
|
|
1407
|
+
tracking?: TrackingInfoInterface;
|
|
1408
|
+
error?: any;
|
|
1409
|
+
}
|
|
1410
|
+
interface CustomsItemInterface {
|
|
1411
|
+
description: string;
|
|
1412
|
+
quantity: number;
|
|
1413
|
+
netWeight: number;
|
|
1414
|
+
massUnit?: "g" | "oz" | "lb" | "kg";
|
|
1415
|
+
valueAmount: number;
|
|
1416
|
+
valueCurrency?: string;
|
|
1417
|
+
originCountry?: string;
|
|
1418
|
+
tariffNumber?: string;
|
|
1419
|
+
}
|
|
1420
|
+
interface ShippoCustomsDeclarationInputInterface {
|
|
1421
|
+
contentsType?: "DOCUMENTS" | "GIFT" | "SAMPLE" | "MERCHANDISE" | "HUMANITARIAN_DONATION" | "RETURN_MERCHANDISE" | "OTHER";
|
|
1422
|
+
contentsExplanation?: string;
|
|
1423
|
+
nonDeliveryOption?: "ABANDON" | "RETURN";
|
|
1424
|
+
certifySigner: string;
|
|
1425
|
+
items: CustomsItemInterface[];
|
|
1426
|
+
}
|
|
1427
|
+
interface ShippoCustomsResponseInterface {
|
|
1428
|
+
success: boolean;
|
|
1429
|
+
customsDeclaration?: any;
|
|
1430
|
+
error?: any;
|
|
1431
|
+
}
|
|
1432
|
+
interface BatchShipmentInterface {
|
|
1433
|
+
fromAddress: string | AddressInterface;
|
|
1434
|
+
toAddress: string | AddressInterface;
|
|
1435
|
+
parcels: Array<string | ParcelInputInterface>;
|
|
1436
|
+
CarrierAccountInterface?: string;
|
|
1437
|
+
serviceLevelToken?: string;
|
|
1438
|
+
}
|
|
1439
|
+
interface ShippoBatchResponseInterface {
|
|
1440
|
+
success: boolean;
|
|
1441
|
+
batch?: any;
|
|
1442
|
+
error?: any;
|
|
1443
|
+
}
|
|
1444
|
+
interface CarrierAccountInterface {
|
|
1445
|
+
objectId: string;
|
|
1446
|
+
carrier: string;
|
|
1447
|
+
accountId: string;
|
|
1448
|
+
active: boolean;
|
|
1449
|
+
test: boolean;
|
|
1450
|
+
}
|
|
1451
|
+
interface CarrierAccountResponseInterface {
|
|
1452
|
+
success: boolean;
|
|
1453
|
+
CarrierAccountInterfaces?: CarrierAccountInterface[];
|
|
1454
|
+
error?: any;
|
|
1455
|
+
}
|
|
1456
|
+
interface ServiceLevelsResponseInterface {
|
|
1457
|
+
success: boolean;
|
|
1458
|
+
serviceLevels?: any[];
|
|
1459
|
+
error?: any;
|
|
1460
|
+
}
|
|
1461
|
+
interface RefundResponseInterface {
|
|
1462
|
+
success: boolean;
|
|
1463
|
+
refund?: {
|
|
1464
|
+
status: string;
|
|
1465
|
+
refundId: string;
|
|
1466
|
+
};
|
|
1467
|
+
error?: any;
|
|
1468
|
+
}
|
|
1469
|
+
interface OrderAddressInterface {
|
|
1470
|
+
firstName: string;
|
|
1471
|
+
lastName: string;
|
|
1472
|
+
address1: string;
|
|
1473
|
+
address2?: string;
|
|
1474
|
+
city: string;
|
|
1475
|
+
province?: string;
|
|
1476
|
+
state?: string;
|
|
1477
|
+
zip?: string;
|
|
1478
|
+
postalCode?: string;
|
|
1479
|
+
countryCode?: string;
|
|
1480
|
+
country?: string;
|
|
1481
|
+
phone?: string;
|
|
1482
|
+
email?: string;
|
|
1483
|
+
}
|
|
1484
|
+
interface OrderInterface {
|
|
1485
|
+
shippingAddress: OrderAddressInterface;
|
|
1486
|
+
PackageDimensionsInterface?: PackageDimensionsInterface;
|
|
1487
|
+
totalWeight?: number;
|
|
1488
|
+
}
|
|
1489
|
+
interface CarrierMappingInterface {
|
|
1490
|
+
name: string;
|
|
1491
|
+
services: string[];
|
|
1492
|
+
}
|
|
1292
1493
|
|
|
1293
1494
|
declare enum LandingPath {
|
|
1294
1495
|
login = "login",
|
|
@@ -3445,4 +3646,4 @@ declare const defaultTypes: {
|
|
|
3445
3646
|
};
|
|
3446
3647
|
};
|
|
3447
3648
|
|
|
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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -664,6 +664,9 @@ interface AddressInterface {
|
|
|
664
664
|
updatedAt?: Date;
|
|
665
665
|
deletedAt?: Date;
|
|
666
666
|
claimed?: boolean;
|
|
667
|
+
label?: string;
|
|
668
|
+
shippoId?: string;
|
|
669
|
+
isValid?: boolean;
|
|
667
670
|
line1?: string;
|
|
668
671
|
line2?: string;
|
|
669
672
|
postalCode?: string;
|
|
@@ -671,6 +674,7 @@ interface AddressInterface {
|
|
|
671
674
|
state?: string;
|
|
672
675
|
country?: string;
|
|
673
676
|
countryCode?: string;
|
|
677
|
+
addressType?: string;
|
|
674
678
|
longitude?: number;
|
|
675
679
|
latitude?: number;
|
|
676
680
|
poolId?: string;
|
|
@@ -1289,6 +1293,203 @@ interface QueryFilterInterface {
|
|
|
1289
1293
|
rowsPerPage?: number;
|
|
1290
1294
|
statisticId?: string;
|
|
1291
1295
|
}
|
|
1296
|
+
interface ShippoAddressInterface {
|
|
1297
|
+
id?: string;
|
|
1298
|
+
name?: string;
|
|
1299
|
+
organization?: string;
|
|
1300
|
+
line1?: string;
|
|
1301
|
+
line2?: string;
|
|
1302
|
+
city?: string;
|
|
1303
|
+
state?: string;
|
|
1304
|
+
postalCode?: string;
|
|
1305
|
+
country?: string;
|
|
1306
|
+
countryCode?: string;
|
|
1307
|
+
phone?: string;
|
|
1308
|
+
email?: string;
|
|
1309
|
+
addressType?: string;
|
|
1310
|
+
isResidential?: boolean;
|
|
1311
|
+
longitude?: number | null;
|
|
1312
|
+
latitude?: number | null;
|
|
1313
|
+
validationResults?: any | null;
|
|
1314
|
+
}
|
|
1315
|
+
interface ShippoAddressResponseInterface {
|
|
1316
|
+
success: boolean;
|
|
1317
|
+
address?: ShippoAddressInterface;
|
|
1318
|
+
isValid?: boolean;
|
|
1319
|
+
error?: any;
|
|
1320
|
+
}
|
|
1321
|
+
interface ParcelInputInterface {
|
|
1322
|
+
length: number;
|
|
1323
|
+
width: number;
|
|
1324
|
+
height: number;
|
|
1325
|
+
weight: number;
|
|
1326
|
+
distanceUnit?: "in" | "ft" | "yd" | "cm" | "m";
|
|
1327
|
+
massUnit?: "g" | "oz" | "lb" | "kg";
|
|
1328
|
+
}
|
|
1329
|
+
interface ShippoParcelInterface {
|
|
1330
|
+
id?: string;
|
|
1331
|
+
length?: string | number;
|
|
1332
|
+
width?: string | number;
|
|
1333
|
+
height?: string | number;
|
|
1334
|
+
distance_unit?: string;
|
|
1335
|
+
weight?: string | number;
|
|
1336
|
+
mass_unit?: string;
|
|
1337
|
+
}
|
|
1338
|
+
interface ShippoParcelResponseInterface {
|
|
1339
|
+
success: boolean;
|
|
1340
|
+
parcel?: ShippoParcelInterface;
|
|
1341
|
+
error?: any;
|
|
1342
|
+
}
|
|
1343
|
+
interface ShippingRateInterface {
|
|
1344
|
+
objectId: string;
|
|
1345
|
+
carrier: string;
|
|
1346
|
+
service: string;
|
|
1347
|
+
amount: number;
|
|
1348
|
+
currency: string;
|
|
1349
|
+
estimatedDays: number;
|
|
1350
|
+
durationType: string;
|
|
1351
|
+
test: boolean;
|
|
1352
|
+
}
|
|
1353
|
+
interface ShippoRatesResponseInterface {
|
|
1354
|
+
success: boolean;
|
|
1355
|
+
rates?: ShippingRateInterface[];
|
|
1356
|
+
shipmentId?: string;
|
|
1357
|
+
error?: any;
|
|
1358
|
+
}
|
|
1359
|
+
interface RatesOptionsInterface {
|
|
1360
|
+
CarrierAccountInterfaces?: string[];
|
|
1361
|
+
}
|
|
1362
|
+
interface LabelOptionsInterface {
|
|
1363
|
+
labelFormat?: "PNG" | "PDF" | "ZPLII" | "EPL2";
|
|
1364
|
+
customsDeclaration?: string;
|
|
1365
|
+
}
|
|
1366
|
+
interface ShippingTransactionInterface {
|
|
1367
|
+
objectId: string;
|
|
1368
|
+
status: string;
|
|
1369
|
+
labelUrl: string;
|
|
1370
|
+
trackingNumber: string;
|
|
1371
|
+
trackingUrl: string;
|
|
1372
|
+
rate: any;
|
|
1373
|
+
}
|
|
1374
|
+
interface ShippoTransactionResponseInterface {
|
|
1375
|
+
success: boolean;
|
|
1376
|
+
transaction?: ShippingTransactionInterface;
|
|
1377
|
+
error?: any;
|
|
1378
|
+
}
|
|
1379
|
+
interface TrackingHistoryInterface {
|
|
1380
|
+
status: string;
|
|
1381
|
+
status_details: string;
|
|
1382
|
+
status_date: string;
|
|
1383
|
+
location: {
|
|
1384
|
+
city: string;
|
|
1385
|
+
state: string;
|
|
1386
|
+
zip: string;
|
|
1387
|
+
country: string;
|
|
1388
|
+
};
|
|
1389
|
+
}
|
|
1390
|
+
interface TrackingInfoInterface {
|
|
1391
|
+
carrier: string;
|
|
1392
|
+
trackingNumber: string;
|
|
1393
|
+
status: string;
|
|
1394
|
+
statusDate: string;
|
|
1395
|
+
statusDetails: string;
|
|
1396
|
+
location: {
|
|
1397
|
+
city: string;
|
|
1398
|
+
state: string;
|
|
1399
|
+
zip: string;
|
|
1400
|
+
country: string;
|
|
1401
|
+
};
|
|
1402
|
+
TrackingHistoryInterface: TrackingHistoryInterface[];
|
|
1403
|
+
estimatedDelivery?: string;
|
|
1404
|
+
}
|
|
1405
|
+
interface ShippoTrackingResponseInterface {
|
|
1406
|
+
success: boolean;
|
|
1407
|
+
tracking?: TrackingInfoInterface;
|
|
1408
|
+
error?: any;
|
|
1409
|
+
}
|
|
1410
|
+
interface CustomsItemInterface {
|
|
1411
|
+
description: string;
|
|
1412
|
+
quantity: number;
|
|
1413
|
+
netWeight: number;
|
|
1414
|
+
massUnit?: "g" | "oz" | "lb" | "kg";
|
|
1415
|
+
valueAmount: number;
|
|
1416
|
+
valueCurrency?: string;
|
|
1417
|
+
originCountry?: string;
|
|
1418
|
+
tariffNumber?: string;
|
|
1419
|
+
}
|
|
1420
|
+
interface ShippoCustomsDeclarationInputInterface {
|
|
1421
|
+
contentsType?: "DOCUMENTS" | "GIFT" | "SAMPLE" | "MERCHANDISE" | "HUMANITARIAN_DONATION" | "RETURN_MERCHANDISE" | "OTHER";
|
|
1422
|
+
contentsExplanation?: string;
|
|
1423
|
+
nonDeliveryOption?: "ABANDON" | "RETURN";
|
|
1424
|
+
certifySigner: string;
|
|
1425
|
+
items: CustomsItemInterface[];
|
|
1426
|
+
}
|
|
1427
|
+
interface ShippoCustomsResponseInterface {
|
|
1428
|
+
success: boolean;
|
|
1429
|
+
customsDeclaration?: any;
|
|
1430
|
+
error?: any;
|
|
1431
|
+
}
|
|
1432
|
+
interface BatchShipmentInterface {
|
|
1433
|
+
fromAddress: string | AddressInterface;
|
|
1434
|
+
toAddress: string | AddressInterface;
|
|
1435
|
+
parcels: Array<string | ParcelInputInterface>;
|
|
1436
|
+
CarrierAccountInterface?: string;
|
|
1437
|
+
serviceLevelToken?: string;
|
|
1438
|
+
}
|
|
1439
|
+
interface ShippoBatchResponseInterface {
|
|
1440
|
+
success: boolean;
|
|
1441
|
+
batch?: any;
|
|
1442
|
+
error?: any;
|
|
1443
|
+
}
|
|
1444
|
+
interface CarrierAccountInterface {
|
|
1445
|
+
objectId: string;
|
|
1446
|
+
carrier: string;
|
|
1447
|
+
accountId: string;
|
|
1448
|
+
active: boolean;
|
|
1449
|
+
test: boolean;
|
|
1450
|
+
}
|
|
1451
|
+
interface CarrierAccountResponseInterface {
|
|
1452
|
+
success: boolean;
|
|
1453
|
+
CarrierAccountInterfaces?: CarrierAccountInterface[];
|
|
1454
|
+
error?: any;
|
|
1455
|
+
}
|
|
1456
|
+
interface ServiceLevelsResponseInterface {
|
|
1457
|
+
success: boolean;
|
|
1458
|
+
serviceLevels?: any[];
|
|
1459
|
+
error?: any;
|
|
1460
|
+
}
|
|
1461
|
+
interface RefundResponseInterface {
|
|
1462
|
+
success: boolean;
|
|
1463
|
+
refund?: {
|
|
1464
|
+
status: string;
|
|
1465
|
+
refundId: string;
|
|
1466
|
+
};
|
|
1467
|
+
error?: any;
|
|
1468
|
+
}
|
|
1469
|
+
interface OrderAddressInterface {
|
|
1470
|
+
firstName: string;
|
|
1471
|
+
lastName: string;
|
|
1472
|
+
address1: string;
|
|
1473
|
+
address2?: string;
|
|
1474
|
+
city: string;
|
|
1475
|
+
province?: string;
|
|
1476
|
+
state?: string;
|
|
1477
|
+
zip?: string;
|
|
1478
|
+
postalCode?: string;
|
|
1479
|
+
countryCode?: string;
|
|
1480
|
+
country?: string;
|
|
1481
|
+
phone?: string;
|
|
1482
|
+
email?: string;
|
|
1483
|
+
}
|
|
1484
|
+
interface OrderInterface {
|
|
1485
|
+
shippingAddress: OrderAddressInterface;
|
|
1486
|
+
PackageDimensionsInterface?: PackageDimensionsInterface;
|
|
1487
|
+
totalWeight?: number;
|
|
1488
|
+
}
|
|
1489
|
+
interface CarrierMappingInterface {
|
|
1490
|
+
name: string;
|
|
1491
|
+
services: string[];
|
|
1492
|
+
}
|
|
1292
1493
|
|
|
1293
1494
|
declare enum LandingPath {
|
|
1294
1495
|
login = "login",
|
|
@@ -3445,4 +3646,4 @@ declare const defaultTypes: {
|
|
|
3445
3646
|
};
|
|
3446
3647
|
};
|
|
3447
3648
|
|
|
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 };
|
|
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 };
|