sinfactura-types 1.10.657 → 1.10.658
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/customer.d.ts +13 -0
- package/package.json +1 -1
package/dist/customer.d.ts
CHANGED
|
@@ -1538,5 +1538,18 @@ declare global {
|
|
|
1538
1538
|
*/
|
|
1539
1539
|
refreshToken?: string;
|
|
1540
1540
|
}
|
|
1541
|
+
/**
|
|
1542
|
+
* The storefront registration body (`POST /auth {mode:'register'}`). On
|
|
1543
|
+
* success it is the signed-in `AuthCustomer`, exactly as a password sign-in
|
|
1544
|
+
* answers. On the one leg where the customer row committed but the session
|
|
1545
|
+
* could not be minted it is the created customer with no token and
|
|
1546
|
+
* `sessionIssued: false`: the account exists and its password works, so a
|
|
1547
|
+
* client sends the shopper to sign in — never to register again, which the
|
|
1548
|
+
* email uniqueness constraint would now refuse.
|
|
1549
|
+
*/
|
|
1550
|
+
type CustomerRegisterResult = AuthCustomer | (Customer & {
|
|
1551
|
+
accessToken?: never;
|
|
1552
|
+
sessionIssued: false;
|
|
1553
|
+
});
|
|
1541
1554
|
}
|
|
1542
1555
|
export {};
|