@applite/js-sdk 0.0.15 → 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.d.mts CHANGED
@@ -188,7 +188,8 @@ interface CustomerAuthParams extends AppScopedParams {
188
188
  plateform?: PlateformType | null;
189
189
  }
190
190
  interface CustomerCheckParams extends AppScopedParams {
191
- telephone: string;
191
+ telephone?: string;
192
+ email?: string | null;
192
193
  plateform?: PlateformType | null;
193
194
  }
194
195
  interface CustomerGetParams extends AppScopedParams {
package/dist/index.d.ts CHANGED
@@ -188,7 +188,8 @@ interface CustomerAuthParams extends AppScopedParams {
188
188
  plateform?: PlateformType | null;
189
189
  }
190
190
  interface CustomerCheckParams extends AppScopedParams {
191
- telephone: string;
191
+ telephone?: string;
192
+ email?: string | null;
192
193
  plateform?: PlateformType | null;
193
194
  }
194
195
  interface CustomerGetParams extends AppScopedParams {
package/dist/index.js CHANGED
@@ -106,10 +106,10 @@ var _CustomerApi = class _CustomerApi {
106
106
  });
107
107
  }
108
108
  async check(params) {
109
- const { appId, apiKey, telephone, plateform = null } = params;
109
+ const { appId, apiKey, telephone, email, plateform = null } = params;
110
110
  return this.http.post(`/app/${appId}/customer/check`, {
111
111
  apiKey,
112
- telephone,
112
+ ...email ? { email } : { telephone },
113
113
  plateform
114
114
  });
115
115
  }