@swell/apps-sdk 1.0.147 → 1.0.148

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.cjs CHANGED
@@ -15285,7 +15285,7 @@ function ShopifyAddress(instance, address, account) {
15285
15285
  address,
15286
15286
  (address2) => address2.first_name || account?.first_name
15287
15287
  ),
15288
- id: defer(() => address.id),
15288
+ id: defer(() => address.id || address.account_address_id),
15289
15289
  last_name: deferWith(
15290
15290
  address,
15291
15291
  (address2) => address2.last_name || account?.last_name
@@ -15313,7 +15313,10 @@ function ShopifyAddress(instance, address, account) {
15313
15313
  address2.country
15314
15314
  )
15315
15315
  ),
15316
- url: deferWith(address, (address2) => `/account/addresses/${address2.id}`),
15316
+ url: deferWith(
15317
+ address,
15318
+ (address2) => `/account/addresses/${address2.id || address2.account_address_id}`
15319
+ ),
15317
15320
  zip: defer(() => address.zip)
15318
15321
  });
15319
15322
  }
@@ -15622,7 +15625,10 @@ function ShopifyCustomer(instance, account) {
15622
15625
  ),
15623
15626
  orders_count: defer(() => account.order_count),
15624
15627
  payment_methods: [],
15625
- phone: deferWith(account, (account2) => account2.phone),
15628
+ phone: deferWith(
15629
+ account,
15630
+ (account2) => account2.phone || account2.shipping?.phone || account2.billing?.phone
15631
+ ),
15626
15632
  store_credit_account: deferWith(account, (account2) => ({
15627
15633
  balance: ShopifyMoney(instance, Number(account2.balance))
15628
15634
  })),