@applite/js-sdk 0.0.16 → 0.0.17

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.mjs CHANGED
@@ -104,10 +104,10 @@ var _CustomerApi = class _CustomerApi {
104
104
  });
105
105
  }
106
106
  async check(params) {
107
- const { appId, apiKey, telephone, plateform = null } = params;
107
+ const { appId, apiKey, telephone, email, plateform = null } = params;
108
108
  return this.http.post(`/app/${appId}/customer/check`, {
109
109
  apiKey,
110
- telephone,
110
+ ...email ? { email } : { telephone },
111
111
  plateform
112
112
  });
113
113
  }