Skip to content

Commit 8e27501

Browse files
committed
feat: v1.5.0
1 parent 000f473 commit 8e27501

File tree

9 files changed

+219
-59
lines changed

9 files changed

+219
-59
lines changed

dist/client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tag.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export declare class Tag extends BaseEndpoint {
1010
results: {
1111
user_id: string;
1212
}[];
13-
}>>;
13+
}, any>>;
1414
}
1515
export interface TagsResponse {
1616
count: number;

dist/user.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,32 @@ export declare class User extends BaseEndpoint {
2121
}>>;
2222
create({ data }: {
2323
data: any;
24-
}): Promise<AxiosResponse<any>>;
24+
}): Promise<AxiosResponse<any, any>>;
2525
update({ userId, customAttributes }: UserUpdateOptions): Promise<AxiosResponse>;
26+
massUpdateCustomAttribute(ids: number[], payload: {
27+
attribute: string;
28+
value: any;
29+
}): Promise<AxiosResponse<any, any>>;
30+
updateOrCreate(payload: Record<string, any>): Promise<AxiosResponse<any, any>>;
2631
delete({ userId }: {
2732
userId: UserId;
2833
}): Promise<AxiosResponse>;
2934
private setCustomAttributes;
3035
}
3136
export interface UsercomUser {
37+
id: number;
3238
user_id: string;
3339
tags: {
3440
name: string;
3541
}[];
42+
attributes: {
43+
id: number;
44+
name: string;
45+
name_std: string;
46+
value: unknown;
47+
description: string;
48+
value_type: number;
49+
}[];
3650
}
3751
interface UserUpdateOptions<T = any> {
3852
userId: UserId;

dist/user.js

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/user.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)