@bernierllc/nevarmail 0.20.0 → 0.21.0
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.ts +14 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -605,17 +605,30 @@ export interface AddressComponent {
|
|
|
605
605
|
export interface ProjectAddress {
|
|
606
606
|
physicalAddress: string;
|
|
607
607
|
addressComponents: AddressComponent[] | null;
|
|
608
|
+
/**
|
|
609
|
+
* The Google Places place the address was picked from, or null. Optional in the
|
|
610
|
+
* type only so existing fixtures keep compiling; the server always sends it.
|
|
611
|
+
*/
|
|
612
|
+
placeId?: string | null;
|
|
608
613
|
}
|
|
609
614
|
/** `getProjectAddress`: the project's address plus the org's as a suggestion. */
|
|
610
615
|
export interface ProjectAddressWithOrg extends ProjectAddress {
|
|
611
616
|
/** Empty when the org has no address set. */
|
|
612
617
|
orgPhysicalAddress: string;
|
|
613
618
|
orgAddressComponents: AddressComponent[] | null;
|
|
619
|
+
/** Same as `placeId`, for the org address. */
|
|
620
|
+
orgPlaceId?: string | null;
|
|
614
621
|
}
|
|
615
622
|
export interface SetProjectAddressInput {
|
|
616
623
|
/** Never blank: 422 `PHYSICAL_ADDRESS_REQUIRED`. Trimmed; max 500 chars. */
|
|
617
624
|
physicalAddress: string;
|
|
618
|
-
/**
|
|
625
|
+
/**
|
|
626
|
+
* A Google Places place id (`^[A-Za-z0-9_-]{1,512}$`). When set, the server
|
|
627
|
+
* looks the parts up from Google and ignores `addressComponents`; 502
|
|
628
|
+
* `PLACES_UNAVAILABLE` if Google cannot be reached.
|
|
629
|
+
*/
|
|
630
|
+
placeId?: string;
|
|
631
|
+
/** Omitted or null stores no parts. Max 30. Ignored when `placeId` is set. */
|
|
619
632
|
addressComponents?: AddressComponent[] | null;
|
|
620
633
|
}
|
|
621
634
|
export interface NevarMailOptions {
|
package/package.json
CHANGED