@verma-consulting/common-library 0.1.24 → 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 +212 -19
- package/dist/index.d.ts +212 -19
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -433,26 +433,18 @@ interface PaymentMethodInterface {
|
|
|
433
433
|
createdBy?: UserInterface;
|
|
434
434
|
updatedBy?: UserInterface;
|
|
435
435
|
}
|
|
436
|
-
interface Address {
|
|
437
|
-
line1?: number | null;
|
|
438
|
-
line2?: string | null;
|
|
439
|
-
city?: string | null;
|
|
440
|
-
state?: string | null;
|
|
441
|
-
country?: string | null;
|
|
442
|
-
postalCode?: string | null;
|
|
443
|
-
}
|
|
444
436
|
interface BillingDetailsInterface {
|
|
445
437
|
name?: string;
|
|
446
438
|
email?: string;
|
|
447
439
|
phone?: string;
|
|
448
|
-
address?:
|
|
440
|
+
address?: AddressInterface;
|
|
449
441
|
}
|
|
450
442
|
interface ShippingInterface {
|
|
451
443
|
name?: string;
|
|
452
444
|
carrier?: string;
|
|
453
445
|
phone?: string;
|
|
454
446
|
trackingNumber?: string;
|
|
455
|
-
address?:
|
|
447
|
+
address?: AddressInterface;
|
|
456
448
|
}
|
|
457
449
|
interface RefundInterface {
|
|
458
450
|
id?: string;
|
|
@@ -672,13 +664,17 @@ interface AddressInterface {
|
|
|
672
664
|
updatedAt?: Date;
|
|
673
665
|
deletedAt?: Date;
|
|
674
666
|
claimed?: boolean;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
667
|
+
label?: string;
|
|
668
|
+
shippoId?: string;
|
|
669
|
+
isValid?: boolean;
|
|
670
|
+
line1?: string;
|
|
671
|
+
line2?: string;
|
|
672
|
+
postalCode?: string;
|
|
678
673
|
city?: string;
|
|
679
674
|
state?: string;
|
|
680
675
|
country?: string;
|
|
681
|
-
|
|
676
|
+
countryCode?: string;
|
|
677
|
+
addressType?: string;
|
|
682
678
|
longitude?: number;
|
|
683
679
|
latitude?: number;
|
|
684
680
|
poolId?: string;
|
|
@@ -1297,6 +1293,203 @@ interface QueryFilterInterface {
|
|
|
1297
1293
|
rowsPerPage?: number;
|
|
1298
1294
|
statisticId?: string;
|
|
1299
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
|
+
}
|
|
1300
1493
|
|
|
1301
1494
|
declare enum LandingPath {
|
|
1302
1495
|
login = "login",
|
|
@@ -2896,8 +3089,8 @@ declare const defaults: {
|
|
|
2896
3089
|
calculationValue: string;
|
|
2897
3090
|
};
|
|
2898
3091
|
address: {
|
|
2899
|
-
|
|
2900
|
-
|
|
3092
|
+
line1: string;
|
|
3093
|
+
line2: string;
|
|
2901
3094
|
city: string;
|
|
2902
3095
|
state: string;
|
|
2903
3096
|
country: string;
|
|
@@ -3405,8 +3598,8 @@ declare const defaultTypes: {
|
|
|
3405
3598
|
calculationValue: string;
|
|
3406
3599
|
};
|
|
3407
3600
|
address: {
|
|
3408
|
-
|
|
3409
|
-
|
|
3601
|
+
line1: string;
|
|
3602
|
+
line2: string;
|
|
3410
3603
|
city: string;
|
|
3411
3604
|
state: string;
|
|
3412
3605
|
country: string;
|
|
@@ -3453,4 +3646,4 @@ declare const defaultTypes: {
|
|
|
3453
3646
|
};
|
|
3454
3647
|
};
|
|
3455
3648
|
|
|
3456
|
-
export { type ActivityInterface, type
|
|
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
|
@@ -433,26 +433,18 @@ interface PaymentMethodInterface {
|
|
|
433
433
|
createdBy?: UserInterface;
|
|
434
434
|
updatedBy?: UserInterface;
|
|
435
435
|
}
|
|
436
|
-
interface Address {
|
|
437
|
-
line1?: number | null;
|
|
438
|
-
line2?: string | null;
|
|
439
|
-
city?: string | null;
|
|
440
|
-
state?: string | null;
|
|
441
|
-
country?: string | null;
|
|
442
|
-
postalCode?: string | null;
|
|
443
|
-
}
|
|
444
436
|
interface BillingDetailsInterface {
|
|
445
437
|
name?: string;
|
|
446
438
|
email?: string;
|
|
447
439
|
phone?: string;
|
|
448
|
-
address?:
|
|
440
|
+
address?: AddressInterface;
|
|
449
441
|
}
|
|
450
442
|
interface ShippingInterface {
|
|
451
443
|
name?: string;
|
|
452
444
|
carrier?: string;
|
|
453
445
|
phone?: string;
|
|
454
446
|
trackingNumber?: string;
|
|
455
|
-
address?:
|
|
447
|
+
address?: AddressInterface;
|
|
456
448
|
}
|
|
457
449
|
interface RefundInterface {
|
|
458
450
|
id?: string;
|
|
@@ -672,13 +664,17 @@ interface AddressInterface {
|
|
|
672
664
|
updatedAt?: Date;
|
|
673
665
|
deletedAt?: Date;
|
|
674
666
|
claimed?: boolean;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
667
|
+
label?: string;
|
|
668
|
+
shippoId?: string;
|
|
669
|
+
isValid?: boolean;
|
|
670
|
+
line1?: string;
|
|
671
|
+
line2?: string;
|
|
672
|
+
postalCode?: string;
|
|
678
673
|
city?: string;
|
|
679
674
|
state?: string;
|
|
680
675
|
country?: string;
|
|
681
|
-
|
|
676
|
+
countryCode?: string;
|
|
677
|
+
addressType?: string;
|
|
682
678
|
longitude?: number;
|
|
683
679
|
latitude?: number;
|
|
684
680
|
poolId?: string;
|
|
@@ -1297,6 +1293,203 @@ interface QueryFilterInterface {
|
|
|
1297
1293
|
rowsPerPage?: number;
|
|
1298
1294
|
statisticId?: string;
|
|
1299
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
|
+
}
|
|
1300
1493
|
|
|
1301
1494
|
declare enum LandingPath {
|
|
1302
1495
|
login = "login",
|
|
@@ -2896,8 +3089,8 @@ declare const defaults: {
|
|
|
2896
3089
|
calculationValue: string;
|
|
2897
3090
|
};
|
|
2898
3091
|
address: {
|
|
2899
|
-
|
|
2900
|
-
|
|
3092
|
+
line1: string;
|
|
3093
|
+
line2: string;
|
|
2901
3094
|
city: string;
|
|
2902
3095
|
state: string;
|
|
2903
3096
|
country: string;
|
|
@@ -3405,8 +3598,8 @@ declare const defaultTypes: {
|
|
|
3405
3598
|
calculationValue: string;
|
|
3406
3599
|
};
|
|
3407
3600
|
address: {
|
|
3408
|
-
|
|
3409
|
-
|
|
3601
|
+
line1: string;
|
|
3602
|
+
line2: string;
|
|
3410
3603
|
city: string;
|
|
3411
3604
|
state: string;
|
|
3412
3605
|
country: string;
|
|
@@ -3453,4 +3646,4 @@ declare const defaultTypes: {
|
|
|
3453
3646
|
};
|
|
3454
3647
|
};
|
|
3455
3648
|
|
|
3456
|
-
export { type ActivityInterface, type
|
|
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.js
CHANGED
|
@@ -2463,8 +2463,8 @@ var defaults = {
|
|
|
2463
2463
|
calculationValue: ""
|
|
2464
2464
|
},
|
|
2465
2465
|
address: {
|
|
2466
|
-
|
|
2467
|
-
|
|
2466
|
+
line1: "",
|
|
2467
|
+
line2: "",
|
|
2468
2468
|
city: "",
|
|
2469
2469
|
state: "",
|
|
2470
2470
|
country: "",
|
|
@@ -2960,8 +2960,8 @@ var defaultTypes = {
|
|
|
2960
2960
|
calculationValue: "String"
|
|
2961
2961
|
},
|
|
2962
2962
|
address: {
|
|
2963
|
-
|
|
2964
|
-
|
|
2963
|
+
line1: "String",
|
|
2964
|
+
line2: "String",
|
|
2965
2965
|
city: "String",
|
|
2966
2966
|
state: "String",
|
|
2967
2967
|
country: "String",
|