arky-sdk 0.5.76 → 0.5.78

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.cts CHANGED
@@ -219,6 +219,10 @@ declare function createArkySDK(config: HttpClientConfig & {
219
219
  customer: {
220
220
  create(params: CreateCustomerParams, options?: RequestOptions): Promise<any>;
221
221
  get(params: GetCustomerParams, options?: RequestOptions): Promise<any>;
222
+ initialize(params: {
223
+ email: string;
224
+ businessId?: string;
225
+ }, options?: RequestOptions): Promise<any>;
222
226
  find(params?: FindCustomersParams, options?: RequestOptions): Promise<any>;
223
227
  update(params: UpdateCustomerParams, options?: RequestOptions): Promise<any>;
224
228
  delete(params: DeleteCustomerParams, options?: RequestOptions): Promise<any>;
package/dist/index.d.ts CHANGED
@@ -219,6 +219,10 @@ declare function createArkySDK(config: HttpClientConfig & {
219
219
  customer: {
220
220
  create(params: CreateCustomerParams, options?: RequestOptions): Promise<any>;
221
221
  get(params: GetCustomerParams, options?: RequestOptions): Promise<any>;
222
+ initialize(params: {
223
+ email: string;
224
+ businessId?: string;
225
+ }, options?: RequestOptions): Promise<any>;
222
226
  find(params?: FindCustomersParams, options?: RequestOptions): Promise<any>;
223
227
  update(params: UpdateCustomerParams, options?: RequestOptions): Promise<any>;
224
228
  delete(params: DeleteCustomerParams, options?: RequestOptions): Promise<any>;
package/dist/index.js CHANGED
@@ -1159,6 +1159,14 @@ var createCustomerApi = (apiConfig) => {
1159
1159
  options
1160
1160
  );
1161
1161
  },
1162
+ async initialize(params, options) {
1163
+ const businessId = params.businessId || apiConfig.businessId;
1164
+ return apiConfig.httpClient.post(
1165
+ `/v1/businesses/${businessId}/customers/initialize`,
1166
+ { email: params.email },
1167
+ options
1168
+ );
1169
+ },
1162
1170
  async find(params, options) {
1163
1171
  const businessId = params?.businessId || apiConfig.businessId;
1164
1172
  const queryParams = {};