Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

beeq-client

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beeq-client - npm Package Compare versions

Comparing version 1.2.10 to 1.2.11

5

dist/billbee/billbeeShipments.d.ts
import { TypeOf, ZodTypeAny } from "zod";
import { BillbeeOrderType } from "./model/Order";
export declare function shipmentsGet<T extends ZodTypeAny>({ uri, responseValidationModel, }: {

@@ -29,6 +28,6 @@ uri: string;

}, priority?: number): Promise<TypeOf<T>>;
export declare function shipWithLabel(order: BillbeeOrderType, overrideProvider?: {
export declare function shipWithLabel(orderId: string, shippingProviderDetails: {
providerId: number;
providerProductId: number;
} | null, priority?: number): Promise<any>;
} | null, weightInGrams: number, priority?: number): Promise<any>;
export declare function getShippingProviders(priority?: number): Promise<void>;

14

dist/billbee/billbeeShipments.js

@@ -71,11 +71,9 @@ "use strict";

}
function shipWithLabel(order_1) {
return __awaiter(this, arguments, void 0, function* (order, overrideProvider = null, priority = 5) {
const providerId = overrideProvider ? overrideProvider.providerId : order.ShippingProviderId;
const providerProductId = overrideProvider ? overrideProvider.providerProductId : order.ShippingProviderProductId;
function shipWithLabel(orderId_1) {
return __awaiter(this, arguments, void 0, function* (orderId, shippingProviderDetails = null, weightInGrams, priority = 5) {
const body = {
OrderId: order.BillBeeOrderId,
ProviderId: providerId,
ProductId: providerProductId,
WeightInGram: Math.floor(order.ShipWeightKg * 1000),
OrderId: orderId,
ProviderId: shippingProviderDetails.providerId,
ProductId: shippingProviderDetails.providerProductId,
WeightInGram: Math.floor(weightInGrams * 1000),
};

@@ -82,0 +80,0 @@ return yield shipmentsPost({ uri: "/shipwithlabel", body, responseValidationModel: false }, priority);

@@ -1580,19 +1580,2 @@ import { z } from "zod";

export declare const BillbeeOrderState: z.ZodNativeEnum<typeof BillbeeOrderStates>;
export declare const AddLabelInfoInputOptions: z.ZodObject<{
trackingNumber: z.ZodString;
shippingProviderId: z.ZodString;
shippingProviderProductId: z.ZodString;
shippingComment: z.ZodString;
}, "strip", z.ZodTypeAny, {
trackingNumber?: string;
shippingProviderId?: string;
shippingProviderProductId?: string;
shippingComment?: string;
}, {
trackingNumber?: string;
shippingProviderId?: string;
shippingProviderProductId?: string;
shippingComment?: string;
}>;
export type AddLabelInfoInputOptionsType = z.infer<typeof AddLabelInfoInputOptions>;
export declare const CreateShippingLabelBody: z.ZodObject<{

@@ -1599,0 +1582,0 @@ providerId: z.ZodString;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateShippingLabelBody = exports.AddLabelInfoInputOptions = exports.BillbeeOrderState = exports.BillbeeOrderStates = exports.StockDictionary = exports.BillbeeOrder = exports.ShippingId = exports.OrderItem = void 0;
exports.CreateShippingLabelBody = exports.BillbeeOrderState = exports.BillbeeOrderStates = exports.StockDictionary = exports.BillbeeOrder = exports.ShippingId = exports.OrderItem = void 0;
const zod_1 = require("zod");

@@ -199,10 +199,2 @@ const Address_1 = require("./Address");

exports.BillbeeOrderState = zod_1.z.nativeEnum(BillbeeOrderStates).describe("BillbeeOrderState");
exports.AddLabelInfoInputOptions = zod_1.z
.object({
trackingNumber: zod_1.z.string(),
shippingProviderId: zod_1.z.string(),
shippingProviderProductId: zod_1.z.string(),
shippingComment: zod_1.z.string(),
})
.describe("AddShipmentInfoInputOptions");
exports.CreateShippingLabelBody = zod_1.z

@@ -209,0 +201,0 @@ .object({

@@ -22,3 +22,3 @@ {

},
"version": "1.2.10"
"version": "1.2.11"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc