arky-sdk 0.5.85 → 0.5.87
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +11 -3
- package/dist/types.d.ts +11 -3
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -230,8 +230,7 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
230
230
|
getMe(options?: RequestOptions): Promise<any>;
|
|
231
231
|
create(params: CreateCustomerParams, options?: RequestOptions): Promise<any>;
|
|
232
232
|
get(params: GetCustomerParams, options?: RequestOptions): Promise<any>;
|
|
233
|
-
initialize(params
|
|
234
|
-
email: string;
|
|
233
|
+
initialize(params?: {
|
|
235
234
|
businessId?: string;
|
|
236
235
|
}, options?: RequestOptions): Promise<any>;
|
|
237
236
|
find(params?: FindCustomersParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -230,8 +230,7 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
230
230
|
getMe(options?: RequestOptions): Promise<any>;
|
|
231
231
|
create(params: CreateCustomerParams, options?: RequestOptions): Promise<any>;
|
|
232
232
|
get(params: GetCustomerParams, options?: RequestOptions): Promise<any>;
|
|
233
|
-
initialize(params
|
|
234
|
-
email: string;
|
|
233
|
+
initialize(params?: {
|
|
235
234
|
businessId?: string;
|
|
236
235
|
}, options?: RequestOptions): Promise<any>;
|
|
237
236
|
find(params?: FindCustomersParams, options?: RequestOptions): Promise<any>;
|
package/dist/index.js
CHANGED
|
@@ -1152,10 +1152,10 @@ var createCustomerApi = (apiConfig) => {
|
|
|
1152
1152
|
);
|
|
1153
1153
|
},
|
|
1154
1154
|
async initialize(params, options) {
|
|
1155
|
-
const businessId = params
|
|
1155
|
+
const businessId = params?.businessId || apiConfig.businessId;
|
|
1156
1156
|
return apiConfig.httpClient.post(
|
|
1157
1157
|
`/v1/businesses/${businessId}/customers/initialize`,
|
|
1158
|
-
{
|
|
1158
|
+
{ businessId },
|
|
1159
1159
|
options
|
|
1160
1160
|
);
|
|
1161
1161
|
},
|