@commercelayer/app-elements 1.7.0 → 1.7.2

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.
@@ -466,4 +466,119 @@ export declare const presetResourceListItem: {
466
466
  readonly updated_at: "";
467
467
  };
468
468
  };
469
+ shipmentUpcoming: {
470
+ type: "shipments";
471
+ id: string;
472
+ created_at: string;
473
+ updated_at: string;
474
+ number: string;
475
+ status: "upcoming";
476
+ stock_location: {
477
+ readonly type: "stock_locations";
478
+ readonly id: "";
479
+ readonly name: "US Warehouse";
480
+ readonly created_at: "";
481
+ readonly updated_at: "";
482
+ };
483
+ };
484
+ shipmentPicking: {
485
+ type: "shipments";
486
+ id: string;
487
+ created_at: string;
488
+ updated_at: string;
489
+ number: string;
490
+ status: "picking";
491
+ stock_location: {
492
+ readonly type: "stock_locations";
493
+ readonly id: "";
494
+ readonly name: "US Warehouse";
495
+ readonly created_at: "";
496
+ readonly updated_at: "";
497
+ };
498
+ };
499
+ shipmentPacking: {
500
+ type: "shipments";
501
+ id: string;
502
+ created_at: string;
503
+ updated_at: string;
504
+ number: string;
505
+ status: "packing";
506
+ stock_location: {
507
+ readonly type: "stock_locations";
508
+ readonly id: "";
509
+ readonly name: "US Warehouse";
510
+ readonly created_at: "";
511
+ readonly updated_at: "";
512
+ };
513
+ };
514
+ shipmentReadyToShip: {
515
+ type: "shipments";
516
+ id: string;
517
+ created_at: string;
518
+ updated_at: string;
519
+ number: string;
520
+ status: "ready_to_ship";
521
+ stock_location: {
522
+ readonly type: "stock_locations";
523
+ readonly id: "";
524
+ readonly name: "US Warehouse";
525
+ readonly created_at: "";
526
+ readonly updated_at: "";
527
+ };
528
+ };
529
+ shipmentOnHold: {
530
+ type: "shipments";
531
+ id: string;
532
+ created_at: string;
533
+ updated_at: string;
534
+ number: string;
535
+ status: "on_hold";
536
+ stock_location: {
537
+ readonly type: "stock_locations";
538
+ readonly id: "";
539
+ readonly name: "US Warehouse";
540
+ readonly created_at: "";
541
+ readonly updated_at: "";
542
+ };
543
+ };
544
+ shipmentShipped: {
545
+ type: "shipments";
546
+ id: string;
547
+ created_at: string;
548
+ updated_at: string;
549
+ number: string;
550
+ status: "shipped";
551
+ stock_location: {
552
+ readonly type: "stock_locations";
553
+ readonly id: "";
554
+ readonly name: "US Warehouse";
555
+ readonly created_at: "";
556
+ readonly updated_at: "";
557
+ };
558
+ };
559
+ shipmentWithStockTransfer: {
560
+ type: "shipments";
561
+ id: string;
562
+ created_at: string;
563
+ updated_at: string;
564
+ number: string;
565
+ status: "upcoming";
566
+ stock_location: {
567
+ readonly type: "stock_locations";
568
+ readonly id: "";
569
+ readonly name: "US Warehouse";
570
+ readonly created_at: "";
571
+ readonly updated_at: "";
572
+ };
573
+ stock_transfers: {
574
+ readonly type: "stock_transfers";
575
+ readonly id: "";
576
+ readonly number: 30817130;
577
+ readonly sku_code: "BABYBIBXA19D9D000000XXXX";
578
+ readonly quantity: 1;
579
+ readonly status: "upcoming";
580
+ readonly created_at: "";
581
+ readonly updated_at: "";
582
+ }[];
583
+ };
469
584
  };
@@ -8,7 +8,7 @@ export declare const ListItemDescription: import('../../atoms/SkeletonTemplate')
8
8
  }>;
9
9
  export declare const ListItemIcon: import('../../atoms/SkeletonTemplate').SkeletonTemplateComponent<{
10
10
  color: "none" | "green" | "orange" | "red" | "gray" | "teal" | "white" | "black" | undefined;
11
- icon: "download" | "package" | "arrowBendDownRight" | "arrowCircleDown" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowsLeftRight" | "arrowUpRight" | "asterisk" | "caretRight" | "chatCircle" | "check" | "cloud" | "creditCard" | "eye" | "flag" | "funnel" | "hourglass" | "magnifyingGlass" | "minus" | "pencilSimple" | "printer" | "shoppingBag" | "stack" | "truck" | "upload" | "user" | "warning" | "warningCircle" | "x";
11
+ icon: "download" | "package" | "arrowBendDownRight" | "arrowCircleDown" | "arrowClockwise" | "arrowDown" | "arrowLeft" | "arrowsLeftRight" | "arrowUpRight" | "asterisk" | "caretRight" | "chatCircle" | "check" | "cloud" | "creditCard" | "eye" | "flag" | "funnel" | "github" | "google" | "hourglass" | "magnifyingGlass" | "minus" | "pencilSimple" | "printer" | "shoppingBag" | "stack" | "truck" | "upload" | "user" | "warning" | "warningCircle" | "x";
12
12
  delayMs?: number | undefined;
13
13
  isLoading?: boolean | undefined;
14
14
  }>;
@@ -1,4 +1,5 @@
1
1
  export { customerToProps } from './customers';
2
2
  export { orderToProps } from './orders';
3
3
  export { returnToProps } from './returns';
4
+ export { shipmentToProps } from './shipments';
4
5
  export { stockTransferToProps } from './stockTransfers';
@@ -0,0 +1,3 @@
1
+ import type { Shipment } from '@commercelayer/sdk';
2
+ import { type ResourceToProps } from '../types';
3
+ export declare const shipmentToProps: ResourceToProps<Shipment>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { TokenProviderAuthUser } from '../../../providers/TokenProvider/types';
3
- import type { Customer, Order, Return, StockTransfer } from '@commercelayer/sdk';
4
- export type ResourceListItemType = Order | Return | Customer | StockTransfer;
3
+ import type { Customer, Order, Return, Shipment, StockTransfer } from '@commercelayer/sdk';
4
+ export type ResourceListItemType = Order | Return | Customer | StockTransfer | Shipment;
5
5
  export interface ResourceListItemComponentProps {
6
6
  name: string;
7
7
  description: JSX.Element | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -21,7 +21,6 @@
21
21
  "pnpm": ">=7"
22
22
  },
23
23
  "dependencies": {
24
- "@ac-dev/countries-service": "^1.2.0",
25
24
  "@commercelayer/sdk": "5.21.1",
26
25
  "@types/lodash": "^4.14.200",
27
26
  "@types/react": "^18.2.34",