@palmetto/dispatch-sdk 0.3.1 → 0.4.1

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.
@@ -557,8 +557,8 @@ export interface components {
557
557
  reason: string;
558
558
  };
559
559
  CreateSupplierDto: {
560
- account: {
561
- /** @example acc_12345 */
560
+ organization: {
561
+ /** @example org_12345 */
562
562
  id: string;
563
563
  /**
564
564
  * @example LIGHT_REACH
@@ -608,27 +608,6 @@ export interface components {
608
608
  /** @constant */
609
609
  code: "INACTIVE";
610
610
  };
611
- serviceAreas: {
612
- point: {
613
- /**
614
- * @example Point
615
- * @constant
616
- */
617
- type: "Point";
618
- /**
619
- * @example [
620
- * -71.0950429,
621
- * 41.8714689
622
- * ]
623
- */
624
- coordinates: [
625
- number,
626
- number
627
- ];
628
- };
629
- /** @example 80467 */
630
- radiusInMeters: number;
631
- }[];
632
611
  regions: {
633
612
  /** @example MA */
634
613
  region: string;
@@ -642,8 +621,8 @@ export interface components {
642
621
  };
643
622
  SupplierDto: {
644
623
  id: string;
645
- account: {
646
- /** @example acc_12345 */
624
+ organization: {
625
+ /** @example org_12345 */
647
626
  id: string;
648
627
  /**
649
628
  * @example LIGHT_REACH
@@ -699,25 +678,37 @@ export interface components {
699
678
  statusUpdatedAt: string;
700
679
  };
701
680
  serviceAreas: {
702
- point: {
703
- /**
704
- * @example Point
705
- * @constant
706
- */
707
- type: "Point";
681
+ address: {
682
+ /** @example 4 Bonnie Dr */
683
+ streetAddress: string;
684
+ /** @example Berkley */
685
+ locality: string;
686
+ /** @example MA */
687
+ region: string;
688
+ /** @example 02779 */
689
+ postalCode: string;
690
+ /** @example US */
691
+ country: string;
692
+ coordinates: {
693
+ /** @example 41.8714689 */
694
+ lat: number;
695
+ /** @example -71.0950429 */
696
+ lon: number;
697
+ };
698
+ };
699
+ radius: {
708
700
  /**
709
- * @example [
710
- * -71.0950429,
711
- * 41.8714689
712
- * ]
701
+ * @example MILES
702
+ * @enum {string}
713
703
  */
714
- coordinates: [
715
- number,
716
- number
717
- ];
704
+ unit: "MILES" | "METERS";
705
+ /** @example 50 */
706
+ value: number;
718
707
  };
719
- /** @example 80467 */
720
- radiusInMeters: number;
708
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
709
+ glideEntityId?: string;
710
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
711
+ glideDistanceConstraintId?: string;
721
712
  }[];
722
713
  regions: {
723
714
  /** @example MA */
@@ -784,52 +775,81 @@ export interface components {
784
775
  };
785
776
  };
786
777
  CreateServiceAreaDto: {
787
- point: {
788
- /**
789
- * @example Point
790
- * @constant
791
- */
792
- type: "Point";
778
+ address: {
779
+ /** @example 4 Bonnie Dr */
780
+ streetAddress: string;
781
+ /** @example Berkley */
782
+ locality: string;
783
+ /** @example MA */
784
+ region: string;
785
+ /** @example 02779 */
786
+ postalCode: string;
787
+ /** @example US */
788
+ country: string;
789
+ coordinates: {
790
+ /** @example 41.8714689 */
791
+ lat: number;
792
+ /** @example -71.0950429 */
793
+ lon: number;
794
+ };
795
+ };
796
+ radius: {
793
797
  /**
794
- * @example [
795
- * -71.0950429,
796
- * 41.8714689
797
- * ]
798
+ * @example MILES
799
+ * @enum {string}
798
800
  */
799
- coordinates: [
800
- number,
801
- number
802
- ];
801
+ unit: "MILES" | "METERS";
802
+ /** @example 50 */
803
+ value: number;
803
804
  };
804
- /** @example 80467 */
805
- radiusInMeters: number;
806
805
  };
807
806
  UpdateServiceAreaDto: {
808
- radiusInMeters: number;
807
+ radius: {
808
+ /**
809
+ * @example MILES
810
+ * @enum {string}
811
+ */
812
+ unit: "MILES" | "METERS";
813
+ /** @example 50 */
814
+ value: number;
815
+ };
809
816
  };
810
817
  ListDto: {
811
818
  data: unknown[];
812
819
  };
813
820
  ServiceAreaDto: {
814
- point: {
815
- /**
816
- * @example Point
817
- * @constant
818
- */
819
- type: "Point";
821
+ id: string;
822
+ address: {
823
+ /** @example 4 Bonnie Dr */
824
+ streetAddress: string;
825
+ /** @example Berkley */
826
+ locality: string;
827
+ /** @example MA */
828
+ region: string;
829
+ /** @example 02779 */
830
+ postalCode: string;
831
+ /** @example US */
832
+ country: string;
833
+ coordinates: {
834
+ /** @example 41.8714689 */
835
+ lat: number;
836
+ /** @example -71.0950429 */
837
+ lon: number;
838
+ };
839
+ };
840
+ radius: {
820
841
  /**
821
- * @example [
822
- * -71.0950429,
823
- * 41.8714689
824
- * ]
842
+ * @example MILES
843
+ * @enum {string}
825
844
  */
826
- coordinates: [
827
- number,
828
- number
829
- ];
845
+ unit: "MILES" | "METERS";
846
+ /** @example 50 */
847
+ value: number;
830
848
  };
831
- /** @example 80467 */
832
- radiusInMeters: number;
849
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
850
+ glideEntityId?: string;
851
+ /** @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 */
852
+ glideDistanceConstraintId?: string;
833
853
  };
834
854
  UpsertSupplierRegionDto: {
835
855
  capacity: {
@@ -1174,7 +1194,7 @@ export interface operations {
1174
1194
  query?: {
1175
1195
  page?: number;
1176
1196
  limit?: number;
1177
- "account.id"?: string;
1197
+ "organization.id"?: string;
1178
1198
  name?: string;
1179
1199
  "status.code"?: "ACTIVE" | "INACTIVE";
1180
1200
  "aspects.minPpw"?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palmetto/dispatch-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "main": "./dist/main.js",
5
5
  "files": [
6
6
  "dist/**/*",