@i.un/libs 0.0.62 → 0.0.63

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.
@@ -2409,7 +2409,7 @@ declare const linkedinCompanyExample: {
2409
2409
  };
2410
2410
  /**
2411
2411
  *
2412
- * @param params { universalName: string; urn?: never } | { universalName?: never; urn: string }
2412
+ * @param params { universalName: string; urn?: never } | { universalName?: never; urn: string } | string
2413
2413
  * @param {
2414
2414
  csrfToken: string;
2415
2415
  cookies: Record<string, string> | string;
@@ -2422,8 +2422,8 @@ export declare function getLinkedinCompany(params: {
2422
2422
  } | {
2423
2423
  universalName?: never;
2424
2424
  urn: string;
2425
- }, { csrfToken, cookies, }: {
2425
+ } | string, { csrfToken, cookies, }: {
2426
2426
  csrfToken: string;
2427
2427
  cookies?: Record<string, string> | string;
2428
- }): Promise<(typeof linkedinCompanyExample) | null>;
2428
+ }): Promise<typeof linkedinCompanyExample | null>;
2429
2429
  export {};
@@ -1,4 +1,48 @@
1
1
  declare const selectors: {
2
+ profilePage: {
3
+ userPicture: string[];
4
+ userName: string[];
5
+ userOccupation: string[];
6
+ linkedinProfileCard: string[];
7
+ privateProfileInfoSection: string[];
8
+ howToContainer: string[];
9
+ companyName: string[];
10
+ companyLogo: string[];
11
+ campaignsListContainer: string[];
12
+ contactListContainer: string[];
13
+ location: string[];
14
+ campaignsListContainerDisplay: string[];
15
+ contactListContainerDisplay: string[];
16
+ mainExperienceContainer: string[];
17
+ experienceCompanyLogo: string[];
18
+ experienceCompanyName: string[];
19
+ experienceOccupation: string[];
20
+ experienceMultipleCompany: string[];
21
+ experienceMultipleOccupation: string[];
22
+ };
23
+ salesNavProfilePage: {
24
+ profileCardSection: string[];
25
+ userName: string[];
26
+ userPicture: string[];
27
+ userOccupation: string[];
28
+ profileUrl: string[];
29
+ linkedinProfileCard: string[];
30
+ campaignsListContainer: string[];
31
+ contactListContainer: string[];
32
+ campaignsListContainerDisplay: string[];
33
+ contactListContainerDisplay: string[];
34
+ location: string[];
35
+ companyName: string[];
36
+ companyLogo: string[];
37
+ moreInfoButton: string[];
38
+ linkedinProfileLinkButton: string[];
39
+ mainExperienceContainer: string[];
40
+ experienceCompanyLogo: string[];
41
+ experienceCompanyName: string[];
42
+ experienceOccupation: string[];
43
+ experienceMultipleOccupation: string[];
44
+ experienceMultipleCompany: string[];
45
+ };
2
46
  searchPeoplePage: {
3
47
  searchEntityResult: string[];
4
48
  linkedinUrl: string[];
@@ -39,4 +83,21 @@ type GetElementReturnType<M extends "all" | "closest" | undefined> = M extends "
39
83
  export declare function getElement<T extends TPage, M extends "all" | "closest" | undefined = undefined>({ page, key, selector, container, mode, }: GetElementParams<T> & {
40
84
  mode?: M;
41
85
  }): GetElementReturnType<M>;
86
+ export declare function getContactInfo(): {
87
+ name?: undefined;
88
+ profileUrl?: undefined;
89
+ picture?: undefined;
90
+ occupation?: undefined;
91
+ companyName?: undefined;
92
+ companyPicture?: undefined;
93
+ location?: undefined;
94
+ } | {
95
+ name: string;
96
+ profileUrl: string | undefined;
97
+ picture: string;
98
+ occupation: string;
99
+ companyName: string | undefined;
100
+ companyPicture: string;
101
+ location: string | undefined;
102
+ };
42
103
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i.un/libs",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "一个实用的ts函数库",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",