arky-sdk 0.6.1 → 0.7.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.cjs CHANGED
@@ -244,7 +244,7 @@ var createAuthApi = (apiConfig) => {
244
244
  async verify(params, options) {
245
245
  const result = await apiConfig.httpClient.post("/v1/auth/verify", params, options);
246
246
  if (result?.accessToken) {
247
- apiConfig.setToken({ ...result, email: params.email, isGuest: false });
247
+ apiConfig.setToken({ ...result, email: params.email, isVerified: true });
248
248
  }
249
249
  return result;
250
250
  },
@@ -257,7 +257,7 @@ var createAuthApi = (apiConfig) => {
257
257
  async businessVerify(businessId, params, options) {
258
258
  const result = await apiConfig.httpClient.post(`/v1/businesses/${businessId}/auth/verify`, params, options);
259
259
  if (result?.accessToken) {
260
- apiConfig.setToken({ ...result, email: params.email, isGuest: false });
260
+ apiConfig.setToken({ ...result, email: params.email, isVerified: true });
261
261
  }
262
262
  return result;
263
263
  },
@@ -1161,6 +1161,14 @@ var createCustomerApi = (apiConfig) => {
1161
1161
  options
1162
1162
  );
1163
1163
  },
1164
+ async connect(params, options) {
1165
+ const businessId = params.businessId || apiConfig.businessId;
1166
+ return apiConfig.httpClient.post(
1167
+ `/v1/businesses/${businessId}/customers/connect`,
1168
+ { email: params.email },
1169
+ options
1170
+ );
1171
+ },
1164
1172
  async find(params, options) {
1165
1173
  const businessId = params?.businessId || apiConfig.businessId;
1166
1174
  const queryParams = {};