Skip to content

Commit

Permalink
Merge pull request #22 from klevytskyi/typing_adjustments
Browse files Browse the repository at this point in the history
Package and Document typings adjustments
  • Loading branch information
JannikZed authored Jun 12, 2023
2 parents eaf24e4 + 676c9e2 commit d69aeb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type Document = {
/**
* Unique ID generated by the server for the document. This is used as an identifier.
*/
document_id: number;
document_id: string;

/**
* this indicates the size of the attached file.
Expand Down
6 changes: 6 additions & 0 deletions src/types/package.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { CustomField } from "./customField";

export type ListPackage = Pick<
Package,
| "package_id"
Expand Down Expand Up @@ -105,6 +107,8 @@ export type Package = {
*/
quantity: string | number;

total_quantity: number;

created_time: string;

is_carrier_shipment: boolean;
Expand Down Expand Up @@ -195,6 +199,8 @@ export type Package = {
salesorder_number: string;

notes: string;

custom_fields?: CustomField[];
};

export type PackageShortList = Pick<
Expand Down

0 comments on commit d69aeb7

Please sign in to comment.