@vrplatform/log 2.0.0-alpha.33 → 2.0.0-alpha.35
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.
|
@@ -1,3 +1,74 @@
|
|
|
1
|
+
declare module 'intercom-client' {
|
|
2
|
+
namespace Intercom {
|
|
3
|
+
interface UpdateContactRequest {
|
|
4
|
+
/** The role of the contact. */
|
|
5
|
+
role?: string;
|
|
6
|
+
/** A unique identifier for the contact which is given to Intercom */
|
|
7
|
+
external_id?: string;
|
|
8
|
+
/** The contacts email */
|
|
9
|
+
email?: string;
|
|
10
|
+
/** The contacts phone */
|
|
11
|
+
phone?: string;
|
|
12
|
+
/** The contacts name */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** An image URL containing the avatar of a contact */
|
|
15
|
+
avatar?: string;
|
|
16
|
+
/** The time specified for when a contact signed up */
|
|
17
|
+
signed_up_at?: number;
|
|
18
|
+
/** The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually) */
|
|
19
|
+
last_seen_at?: number;
|
|
20
|
+
/** The id of an admin that has been assigned account ownership of the contact */
|
|
21
|
+
owner_id?: number;
|
|
22
|
+
/** Whether the contact is unsubscribed from emails */
|
|
23
|
+
unsubscribed_from_emails?: boolean;
|
|
24
|
+
/** The custom attributes which are set for the contact */
|
|
25
|
+
custom_attributes?: IntercomContactCustomAttributes;
|
|
26
|
+
}
|
|
27
|
+
interface CreateOrUpdateCompanyRequest {
|
|
28
|
+
/** The name of the Company */
|
|
29
|
+
name?: string;
|
|
30
|
+
/** The company id you have defined for the company. Can't be updated */
|
|
31
|
+
company_id?: string;
|
|
32
|
+
/** The name of the plan you have associated with the company. */
|
|
33
|
+
plan?: string;
|
|
34
|
+
/** The number of employees in this company. */
|
|
35
|
+
size?: number;
|
|
36
|
+
/** The URL for this company's website. Please note that the value specified here is not validated. Accepts any string. */
|
|
37
|
+
website?: string;
|
|
38
|
+
/** The industry that this company operates in. */
|
|
39
|
+
industry?: string;
|
|
40
|
+
/** A hash of key/value pairs containing any other data about the company you want Intercom to store. */
|
|
41
|
+
custom_attributes?: IntercomCompanyCustomAttributes;
|
|
42
|
+
/** The time the company was created by you. */
|
|
43
|
+
remote_created_at?: number;
|
|
44
|
+
/** How much revenue the company generates for your business. Note that this will truncate floats. i.e. it only allow for whole integers, 155.98 will be truncated to 155. Note that this has an upper limit of 2\*\*31-1 or 2147483647.. */
|
|
45
|
+
monthly_spend?: number;
|
|
46
|
+
}
|
|
47
|
+
interface IntercomContactCustomAttributes {
|
|
48
|
+
article_id?: string;
|
|
49
|
+
workflowInstanceId?: number;
|
|
50
|
+
Onboarding_Support?: string;
|
|
51
|
+
Active_Listings?: string;
|
|
52
|
+
Accounting_Software?: string;
|
|
53
|
+
userType?: string;
|
|
54
|
+
}
|
|
55
|
+
interface IntercomCompanyCustomAttributes {
|
|
56
|
+
teamId?: string;
|
|
57
|
+
team?: string;
|
|
58
|
+
type?: string;
|
|
59
|
+
status?: string;
|
|
60
|
+
pms?: string;
|
|
61
|
+
accountingSoftware?: string;
|
|
62
|
+
creation_source?: string;
|
|
63
|
+
activeListings?: number;
|
|
64
|
+
paymentMethodType?: string;
|
|
65
|
+
partnerName?: string;
|
|
66
|
+
billingPortalUrl?: string;
|
|
67
|
+
billingStatus?: string;
|
|
68
|
+
billingPartner?: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
1
72
|
import { Analytics } from '@june-so/analytics-node';
|
|
2
73
|
import { IntercomClient } from 'intercom-client';
|
|
3
74
|
import { PostHog } from 'posthog-node';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["tracking/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["tracking/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA+EA,4DAAoD;AACpD,qDAA2D;AAC3D,kEAA+D;AAC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AE,KAAK,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAC/D,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAC9B,CAAC;YACJ,CAAC;iBAAM,IAAI,MAAM,EAAE,CAAC;gBAClB,OAAO,EAAE,aAAa,CAAC;oBACrB,QAAQ,EAAE,OAAO;oBACjB,SAAS,EAAE,QAAQ;oBACnB,UAAU,EAAE,IAAA,8BAAsB,EAAC,MAAM,CAAC;oBAC1C,UAAU,EAAE,MAAM;iBACnB,CAAC,CAAC;gBAEH,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAC1D,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAC9B,CAAC;YACJ,CAAC;QACH,CAAC;QACD,QAAQ,EAAE,KAAK,IAAI,EAAE,CACnB,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QACzE,sBAAsB;QACtB,QAAQ;QACR,OAAO;QACP,IAAI;QACJ,GAAG;KACJ,CAAC;AACJ,CAAC,CAAC;AAjLW,QAAA,WAAW,eAiLtB"}
|
|
@@ -1,3 +1,74 @@
|
|
|
1
|
+
declare module 'intercom-client' {
|
|
2
|
+
namespace Intercom {
|
|
3
|
+
interface UpdateContactRequest {
|
|
4
|
+
/** The role of the contact. */
|
|
5
|
+
role?: string;
|
|
6
|
+
/** A unique identifier for the contact which is given to Intercom */
|
|
7
|
+
external_id?: string;
|
|
8
|
+
/** The contacts email */
|
|
9
|
+
email?: string;
|
|
10
|
+
/** The contacts phone */
|
|
11
|
+
phone?: string;
|
|
12
|
+
/** The contacts name */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** An image URL containing the avatar of a contact */
|
|
15
|
+
avatar?: string;
|
|
16
|
+
/** The time specified for when a contact signed up */
|
|
17
|
+
signed_up_at?: number;
|
|
18
|
+
/** The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually) */
|
|
19
|
+
last_seen_at?: number;
|
|
20
|
+
/** The id of an admin that has been assigned account ownership of the contact */
|
|
21
|
+
owner_id?: number;
|
|
22
|
+
/** Whether the contact is unsubscribed from emails */
|
|
23
|
+
unsubscribed_from_emails?: boolean;
|
|
24
|
+
/** The custom attributes which are set for the contact */
|
|
25
|
+
custom_attributes?: IntercomContactCustomAttributes;
|
|
26
|
+
}
|
|
27
|
+
interface CreateOrUpdateCompanyRequest {
|
|
28
|
+
/** The name of the Company */
|
|
29
|
+
name?: string;
|
|
30
|
+
/** The company id you have defined for the company. Can't be updated */
|
|
31
|
+
company_id?: string;
|
|
32
|
+
/** The name of the plan you have associated with the company. */
|
|
33
|
+
plan?: string;
|
|
34
|
+
/** The number of employees in this company. */
|
|
35
|
+
size?: number;
|
|
36
|
+
/** The URL for this company's website. Please note that the value specified here is not validated. Accepts any string. */
|
|
37
|
+
website?: string;
|
|
38
|
+
/** The industry that this company operates in. */
|
|
39
|
+
industry?: string;
|
|
40
|
+
/** A hash of key/value pairs containing any other data about the company you want Intercom to store. */
|
|
41
|
+
custom_attributes?: IntercomCompanyCustomAttributes;
|
|
42
|
+
/** The time the company was created by you. */
|
|
43
|
+
remote_created_at?: number;
|
|
44
|
+
/** How much revenue the company generates for your business. Note that this will truncate floats. i.e. it only allow for whole integers, 155.98 will be truncated to 155. Note that this has an upper limit of 2\*\*31-1 or 2147483647.. */
|
|
45
|
+
monthly_spend?: number;
|
|
46
|
+
}
|
|
47
|
+
interface IntercomContactCustomAttributes {
|
|
48
|
+
article_id?: string;
|
|
49
|
+
workflowInstanceId?: number;
|
|
50
|
+
Onboarding_Support?: string;
|
|
51
|
+
Active_Listings?: string;
|
|
52
|
+
Accounting_Software?: string;
|
|
53
|
+
userType?: string;
|
|
54
|
+
}
|
|
55
|
+
interface IntercomCompanyCustomAttributes {
|
|
56
|
+
teamId?: string;
|
|
57
|
+
team?: string;
|
|
58
|
+
type?: string;
|
|
59
|
+
status?: string;
|
|
60
|
+
pms?: string;
|
|
61
|
+
accountingSoftware?: string;
|
|
62
|
+
creation_source?: string;
|
|
63
|
+
activeListings?: number;
|
|
64
|
+
paymentMethodType?: string;
|
|
65
|
+
partnerName?: string;
|
|
66
|
+
billingPortalUrl?: string;
|
|
67
|
+
billingStatus?: string;
|
|
68
|
+
billingPartner?: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
1
72
|
import { Analytics } from '@june-so/analytics-node';
|
|
2
73
|
import { IntercomClient } from 'intercom-client';
|
|
3
74
|
import { PostHog } from 'posthog-node';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["tracking/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["tracking/index.ts"],"names":[],"mappings":"AA+EA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAkB,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAQvE,cAAc,SAAS,CAAC;AAIxB,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,EAAE,OAAO,EAAE,GAAG,EA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B,CAAC;YACJ,CAAC;iBAAM,IAAI,MAAM,EAAE,CAAC;gBAClB,OAAO,EAAE,aAAa,CAAC;oBACrB,QAAQ,EAAE,OAAO;oBACjB,SAAS,EAAE,QAAQ;oBACnB,UAAU,EAAE,sBAAsB,CAAC,MAAM,CAAC;oBAC1C,UAAU,EAAE,MAAM;iBACnB,CAAC,CAAC;gBAEH,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,GAAG,EAAE,EAAE,CAC1D,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAC9B,CAAC;YACJ,CAAC;QACH,CAAC;QACD,QAAQ,EAAE,KAAK,IAAI,EAAE,CACnB,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QACzE,sBAAsB;QACtB,QAAQ;QACR,OAAO;QACP,IAAI;QACJ,GAAG;KACJ,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/tracking/index.ts
CHANGED
|
@@ -1,3 +1,82 @@
|
|
|
1
|
+
declare module 'intercom-client' {
|
|
2
|
+
export namespace Intercom {
|
|
3
|
+
interface UpdateContactRequest {
|
|
4
|
+
/** The role of the contact. */
|
|
5
|
+
role?: string;
|
|
6
|
+
/** A unique identifier for the contact which is given to Intercom */
|
|
7
|
+
external_id?: string;
|
|
8
|
+
/** The contacts email */
|
|
9
|
+
email?: string;
|
|
10
|
+
/** The contacts phone */
|
|
11
|
+
phone?: string;
|
|
12
|
+
/** The contacts name */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** An image URL containing the avatar of a contact */
|
|
15
|
+
avatar?: string;
|
|
16
|
+
/** The time specified for when a contact signed up */
|
|
17
|
+
signed_up_at?: number;
|
|
18
|
+
/** The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually) */
|
|
19
|
+
last_seen_at?: number;
|
|
20
|
+
/** The id of an admin that has been assigned account ownership of the contact */
|
|
21
|
+
owner_id?: number;
|
|
22
|
+
/** Whether the contact is unsubscribed from emails */
|
|
23
|
+
unsubscribed_from_emails?: boolean;
|
|
24
|
+
/** The custom attributes which are set for the contact */
|
|
25
|
+
custom_attributes?: IntercomContactCustomAttributes;
|
|
26
|
+
}
|
|
27
|
+
interface CreateOrUpdateCompanyRequest {
|
|
28
|
+
/** The name of the Company */
|
|
29
|
+
name?: string;
|
|
30
|
+
/** The company id you have defined for the company. Can't be updated */
|
|
31
|
+
company_id?: string;
|
|
32
|
+
/** The name of the plan you have associated with the company. */
|
|
33
|
+
plan?: string;
|
|
34
|
+
/** The number of employees in this company. */
|
|
35
|
+
size?: number;
|
|
36
|
+
/** The URL for this company's website. Please note that the value specified here is not validated. Accepts any string. */
|
|
37
|
+
website?: string;
|
|
38
|
+
/** The industry that this company operates in. */
|
|
39
|
+
industry?: string;
|
|
40
|
+
/** A hash of key/value pairs containing any other data about the company you want Intercom to store. */
|
|
41
|
+
custom_attributes?: IntercomCompanyCustomAttributes;
|
|
42
|
+
/** The time the company was created by you. */
|
|
43
|
+
remote_created_at?: number;
|
|
44
|
+
/** How much revenue the company generates for your business. Note that this will truncate floats. i.e. it only allow for whole integers, 155.98 will be truncated to 155. Note that this has an upper limit of 2\*\*31-1 or 2147483647.. */
|
|
45
|
+
monthly_spend?: number;
|
|
46
|
+
}
|
|
47
|
+
interface IntercomContactCustomAttributes {
|
|
48
|
+
article_id?: string; // undefined
|
|
49
|
+
workflowInstanceId?: number; // undefined
|
|
50
|
+
Onboarding_Support?: string; // The customer's preferred onboarding level
|
|
51
|
+
Active_Listings?: string; // The number of active listings a user has
|
|
52
|
+
Accounting_Software?: string; // The client's accounting software
|
|
53
|
+
userType?: string; // User Type (user or owner)
|
|
54
|
+
}
|
|
55
|
+
interface IntercomCompanyCustomAttributes {
|
|
56
|
+
teamId?: string; // undefined
|
|
57
|
+
team?: string; // undefined
|
|
58
|
+
type?: string; // undefined
|
|
59
|
+
status?: string; // undefined
|
|
60
|
+
pms?: string; // undefined
|
|
61
|
+
accountingSoftware?: string; // Accounting software used by the team.
|
|
62
|
+
creation_source?: string; // undefined
|
|
63
|
+
activeListings?: number; // Active Listings
|
|
64
|
+
paymentMethodType?: string; // Payment Method
|
|
65
|
+
partnerName?: string; // Partner Name
|
|
66
|
+
billingPortalUrl?: string; // Billing Portal URL
|
|
67
|
+
billingStatus?: string; // undefined
|
|
68
|
+
billingPartner?: string; // Name of billing partner
|
|
69
|
+
// ARCHIVED
|
|
70
|
+
// firstName?: string; // undefined
|
|
71
|
+
// lastName?: string; // undefined
|
|
72
|
+
// email?: string; // undefined
|
|
73
|
+
// apps?: string; // All active connections besides pms/accounting
|
|
74
|
+
// accountingPartner?: string; // Name of accounting partner
|
|
75
|
+
// 'SaaS User'?: boolean; // undefined
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
1
80
|
import { Analytics } from '@june-so/analytics-node';
|
|
2
81
|
import { Intercom, IntercomClient } from 'intercom-client';
|
|
3
82
|
import { fetcher } from 'intercom-client/core/fetcher/Fetcher';
|