@adtrackify/at-tracking-event-types 4.6.4 → 4.6.6
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/cjs/types/api/service-events/service-event-details.d.ts +9 -27
- package/dist/cjs/types/api/service-events/service-event-enums.d.ts +1 -1
- package/dist/cjs/types/api/service-events/service-event-enums.js +1 -1
- package/dist/cjs/types/api/service-events/service-event-enums.js.map +1 -1
- package/dist/cjs/types/api/service-events/service-event-wrappers.d.ts +1 -2
- package/dist/esm/types/api/service-events/service-event-details.d.ts +9 -27
- package/dist/esm/types/api/service-events/service-event-enums.d.ts +1 -1
- package/dist/esm/types/api/service-events/service-event-enums.js +1 -1
- package/dist/esm/types/api/service-events/service-event-enums.js.map +1 -1
- package/dist/esm/types/api/service-events/service-event-wrappers.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { DESTINATION } from '../destinations/destination-enums.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NOTIFICATION_SEVERITY } from '../notifications/notification-enums.js';
|
|
3
3
|
import { INTEGRATION_ERROR_TYPE, AUDIT_TYPE } from './service-event-enums.js';
|
|
4
4
|
import type { EmqDataPoint } from '../emq/emq-types.js';
|
|
5
|
-
import type { USER_ROLE } from '../accounts/account-enums.js';
|
|
6
5
|
export interface EmqDataSummary {
|
|
7
6
|
overallScore: number | null;
|
|
8
7
|
eventScores: Record<string, number>;
|
|
@@ -43,16 +42,6 @@ export interface IntegrationTokenErrorEventDetail {
|
|
|
43
42
|
tokenDaysRemaining?: number;
|
|
44
43
|
occurredAt: string;
|
|
45
44
|
}
|
|
46
|
-
export interface NotificationTriggeredEventDetail {
|
|
47
|
-
accountId: string;
|
|
48
|
-
notificationType: NotificationType;
|
|
49
|
-
entityType: string;
|
|
50
|
-
entityId: string;
|
|
51
|
-
severity: NOTIFICATION_SEVERITY;
|
|
52
|
-
message: string;
|
|
53
|
-
data: Record<string, unknown>;
|
|
54
|
-
directEmail?: string;
|
|
55
|
-
}
|
|
56
45
|
export interface HealthAuditRequestedEventDetail {
|
|
57
46
|
auditType: AUDIT_TYPE;
|
|
58
47
|
accountId?: string;
|
|
@@ -67,42 +56,35 @@ interface SubscriptionEventDetailBase {
|
|
|
67
56
|
}
|
|
68
57
|
export interface SubscriptionPaymentFailedEventDetail extends SubscriptionEventDetailBase {
|
|
69
58
|
failureReason: string;
|
|
70
|
-
invoiceId?: string;
|
|
71
59
|
amount?: number;
|
|
72
60
|
currency?: string;
|
|
73
|
-
retryCount?: number;
|
|
74
61
|
attemptedAt: string;
|
|
62
|
+
planName: string;
|
|
75
63
|
}
|
|
76
64
|
export interface SubscriptionTrialEndingEventDetail extends SubscriptionEventDetailBase {
|
|
77
65
|
daysRemaining: number;
|
|
78
66
|
trialEndsAt: string;
|
|
79
|
-
planName
|
|
67
|
+
planName: string;
|
|
80
68
|
}
|
|
81
69
|
export interface SubscriptionUsageLimitEventDetail extends SubscriptionEventDetailBase {
|
|
82
70
|
currentUsage: number;
|
|
83
71
|
usageLimit: number;
|
|
84
72
|
usagePercentage: number;
|
|
85
|
-
usageType
|
|
86
|
-
|
|
73
|
+
usageType: string;
|
|
74
|
+
planName: string;
|
|
87
75
|
}
|
|
88
76
|
export interface SubscriptionCancelledEventDetail extends SubscriptionEventDetailBase {
|
|
89
|
-
cancellationReason?: string;
|
|
90
|
-
cancelledBy?: string;
|
|
91
77
|
effectiveAt: string;
|
|
92
|
-
planName
|
|
78
|
+
planName: string;
|
|
93
79
|
}
|
|
94
80
|
export interface ShopifyUserCredentialsEventDetail {
|
|
95
81
|
directEmail: string;
|
|
96
82
|
password: string;
|
|
97
|
-
name
|
|
98
|
-
shopDomain
|
|
83
|
+
name: string;
|
|
84
|
+
shopDomain: string;
|
|
85
|
+
email: string;
|
|
99
86
|
severity: NOTIFICATION_SEVERITY;
|
|
100
87
|
message: string;
|
|
101
|
-
email?: string;
|
|
102
|
-
notificationType?: string;
|
|
103
|
-
accountId?: string;
|
|
104
|
-
userId?: string;
|
|
105
|
-
role?: USER_ROLE;
|
|
106
88
|
}
|
|
107
89
|
interface IntegrationEventDetailBase {
|
|
108
90
|
accountId: string;
|
|
@@ -14,7 +14,7 @@ export declare enum SERVICE_EVENT_TYPE {
|
|
|
14
14
|
SUBSCRIPTION_USAGE_LIMIT_WARNING = "subscription_usage_limit_warning",
|
|
15
15
|
SUBSCRIPTION_USAGE_LIMIT_EXCEEDED = "subscription_usage_limit_exceeded",
|
|
16
16
|
SUBSCRIPTION_CANCELLED = "subscription_cancelled",
|
|
17
|
-
|
|
17
|
+
SHOPIFY_USER_CREDENTIALS = "shopify_user_credentials",
|
|
18
18
|
INTEGRATION_TOKEN_EXPIRED = "integration_token_expired",
|
|
19
19
|
INTEGRATION_TOKEN_EXPIRING_SOON = "integration_token_expiring_soon",
|
|
20
20
|
INTEGRATION_INSUFFICIENT_PERMISSIONS = "integration_insufficient_permissions",
|
|
@@ -18,7 +18,7 @@ var SERVICE_EVENT_TYPE;
|
|
|
18
18
|
SERVICE_EVENT_TYPE["SUBSCRIPTION_USAGE_LIMIT_WARNING"] = "subscription_usage_limit_warning";
|
|
19
19
|
SERVICE_EVENT_TYPE["SUBSCRIPTION_USAGE_LIMIT_EXCEEDED"] = "subscription_usage_limit_exceeded";
|
|
20
20
|
SERVICE_EVENT_TYPE["SUBSCRIPTION_CANCELLED"] = "subscription_cancelled";
|
|
21
|
-
SERVICE_EVENT_TYPE["
|
|
21
|
+
SERVICE_EVENT_TYPE["SHOPIFY_USER_CREDENTIALS"] = "shopify_user_credentials";
|
|
22
22
|
SERVICE_EVENT_TYPE["INTEGRATION_TOKEN_EXPIRED"] = "integration_token_expired";
|
|
23
23
|
SERVICE_EVENT_TYPE["INTEGRATION_TOKEN_EXPIRING_SOON"] = "integration_token_expiring_soon";
|
|
24
24
|
SERVICE_EVENT_TYPE["INTEGRATION_INSUFFICIENT_PERMISSIONS"] = "integration_insufficient_permissions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-event-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/service-events/service-event-enums.ts"],"names":[],"mappings":";;;AAoBA,IAAY,kBAyDX;AAzDD,WAAY,kBAAkB;IAG5B,6DAAuC,CAAA;IAIvC,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,+EAAyD,CAAA;IAEzD,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,kEAA4C,CAAA;IAI5C,6FAAuE,CAAA;IAIvE,mFAA6D,CAAA;IAE7D,yEAAmD,CAAA;IAKnD,iFAA2D,CAAA;IAE3D,6EAAuD,CAAA;IAEvD,2FAAqE,CAAA;IAErE,6FAAuE,CAAA;IAEvE,uEAAiD,CAAA;IAIjD,
|
|
1
|
+
{"version":3,"file":"service-event-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/service-events/service-event-enums.ts"],"names":[],"mappings":";;;AAoBA,IAAY,kBAyDX;AAzDD,WAAY,kBAAkB;IAG5B,6DAAuC,CAAA;IAIvC,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,+EAAyD,CAAA;IAEzD,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,kEAA4C,CAAA;IAI5C,6FAAuE,CAAA;IAIvE,mFAA6D,CAAA;IAE7D,yEAAmD,CAAA;IAKnD,iFAA2D,CAAA;IAE3D,6EAAuD,CAAA;IAEvD,2FAAqE,CAAA;IAErE,6FAAuE,CAAA;IAEvE,uEAAiD,CAAA;IAIjD,2EAAqD,CAAA;IAIrD,6EAAuD,CAAA;IAEvD,yFAAmE,CAAA;IAEnE,mGAA6E,CAAA;IAI7E,uEAAiD,CAAA;AACnD,CAAC,EAzDW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAyD7B;AAKD,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAEhC,yDAA+B,CAAA;IAE/B,uEAA6C,CAAA;IAE7C,qEAA2C,CAAA;IAE3C,iEAAuC,CAAA;IAEvC,uFAA6D,CAAA;AAC/D,CAAC,EAXW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAWjC;AAKD,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SERVICE_EVENT_TYPE } from './service-event-enums.js';
|
|
2
|
-
import type { EmqDataIngestedEventDetail, DestinationForwardingErrorEventDetail, IntegrationTokenErrorEventDetail,
|
|
2
|
+
import type { EmqDataIngestedEventDetail, DestinationForwardingErrorEventDetail, IntegrationTokenErrorEventDetail, HealthAuditRequestedEventDetail, SubscriptionPaymentFailedEventDetail, SubscriptionTrialEndingEventDetail, SubscriptionUsageLimitEventDetail, SubscriptionCancelledEventDetail, ShopifyUserCredentialsEventDetail, IntegrationTokenExpiredEventDetail, IntegrationTokenExpiringSoonEventDetail, IntegrationInsufficientPermissionsEventDetail } from './service-event-details.js';
|
|
3
3
|
export interface ServiceEventWrapper<T> {
|
|
4
4
|
headers: null;
|
|
5
5
|
data: {
|
|
@@ -12,7 +12,6 @@ export interface ServiceEventWrapper<T> {
|
|
|
12
12
|
export declare type EmqDataIngestedEventWrapper = ServiceEventWrapper<EmqDataIngestedEventDetail>;
|
|
13
13
|
export declare type DestinationForwardingErrorEventWrapper = ServiceEventWrapper<DestinationForwardingErrorEventDetail>;
|
|
14
14
|
export declare type IntegrationTokenErrorEventWrapper = ServiceEventWrapper<IntegrationTokenErrorEventDetail>;
|
|
15
|
-
export declare type NotificationTriggeredEventWrapper = ServiceEventWrapper<NotificationTriggeredEventDetail>;
|
|
16
15
|
export declare type HealthAuditRequestedEventWrapper = ServiceEventWrapper<HealthAuditRequestedEventDetail>;
|
|
17
16
|
export declare type SubscriptionPaymentFailedEventWrapper = ServiceEventWrapper<SubscriptionPaymentFailedEventDetail>;
|
|
18
17
|
export declare type SubscriptionTrialEndingEventWrapper = ServiceEventWrapper<SubscriptionTrialEndingEventDetail>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { DESTINATION } from '../destinations/destination-enums.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NOTIFICATION_SEVERITY } from '../notifications/notification-enums.js';
|
|
3
3
|
import { INTEGRATION_ERROR_TYPE, AUDIT_TYPE } from './service-event-enums.js';
|
|
4
4
|
import type { EmqDataPoint } from '../emq/emq-types.js';
|
|
5
|
-
import type { USER_ROLE } from '../accounts/account-enums.js';
|
|
6
5
|
export interface EmqDataSummary {
|
|
7
6
|
overallScore: number | null;
|
|
8
7
|
eventScores: Record<string, number>;
|
|
@@ -43,16 +42,6 @@ export interface IntegrationTokenErrorEventDetail {
|
|
|
43
42
|
tokenDaysRemaining?: number;
|
|
44
43
|
occurredAt: string;
|
|
45
44
|
}
|
|
46
|
-
export interface NotificationTriggeredEventDetail {
|
|
47
|
-
accountId: string;
|
|
48
|
-
notificationType: NotificationType;
|
|
49
|
-
entityType: string;
|
|
50
|
-
entityId: string;
|
|
51
|
-
severity: NOTIFICATION_SEVERITY;
|
|
52
|
-
message: string;
|
|
53
|
-
data: Record<string, unknown>;
|
|
54
|
-
directEmail?: string;
|
|
55
|
-
}
|
|
56
45
|
export interface HealthAuditRequestedEventDetail {
|
|
57
46
|
auditType: AUDIT_TYPE;
|
|
58
47
|
accountId?: string;
|
|
@@ -67,42 +56,35 @@ interface SubscriptionEventDetailBase {
|
|
|
67
56
|
}
|
|
68
57
|
export interface SubscriptionPaymentFailedEventDetail extends SubscriptionEventDetailBase {
|
|
69
58
|
failureReason: string;
|
|
70
|
-
invoiceId?: string;
|
|
71
59
|
amount?: number;
|
|
72
60
|
currency?: string;
|
|
73
|
-
retryCount?: number;
|
|
74
61
|
attemptedAt: string;
|
|
62
|
+
planName: string;
|
|
75
63
|
}
|
|
76
64
|
export interface SubscriptionTrialEndingEventDetail extends SubscriptionEventDetailBase {
|
|
77
65
|
daysRemaining: number;
|
|
78
66
|
trialEndsAt: string;
|
|
79
|
-
planName
|
|
67
|
+
planName: string;
|
|
80
68
|
}
|
|
81
69
|
export interface SubscriptionUsageLimitEventDetail extends SubscriptionEventDetailBase {
|
|
82
70
|
currentUsage: number;
|
|
83
71
|
usageLimit: number;
|
|
84
72
|
usagePercentage: number;
|
|
85
|
-
usageType
|
|
86
|
-
|
|
73
|
+
usageType: string;
|
|
74
|
+
planName: string;
|
|
87
75
|
}
|
|
88
76
|
export interface SubscriptionCancelledEventDetail extends SubscriptionEventDetailBase {
|
|
89
|
-
cancellationReason?: string;
|
|
90
|
-
cancelledBy?: string;
|
|
91
77
|
effectiveAt: string;
|
|
92
|
-
planName
|
|
78
|
+
planName: string;
|
|
93
79
|
}
|
|
94
80
|
export interface ShopifyUserCredentialsEventDetail {
|
|
95
81
|
directEmail: string;
|
|
96
82
|
password: string;
|
|
97
|
-
name
|
|
98
|
-
shopDomain
|
|
83
|
+
name: string;
|
|
84
|
+
shopDomain: string;
|
|
85
|
+
email: string;
|
|
99
86
|
severity: NOTIFICATION_SEVERITY;
|
|
100
87
|
message: string;
|
|
101
|
-
email?: string;
|
|
102
|
-
notificationType?: string;
|
|
103
|
-
accountId?: string;
|
|
104
|
-
userId?: string;
|
|
105
|
-
role?: USER_ROLE;
|
|
106
88
|
}
|
|
107
89
|
interface IntegrationEventDetailBase {
|
|
108
90
|
accountId: string;
|
|
@@ -14,7 +14,7 @@ export declare enum SERVICE_EVENT_TYPE {
|
|
|
14
14
|
SUBSCRIPTION_USAGE_LIMIT_WARNING = "subscription_usage_limit_warning",
|
|
15
15
|
SUBSCRIPTION_USAGE_LIMIT_EXCEEDED = "subscription_usage_limit_exceeded",
|
|
16
16
|
SUBSCRIPTION_CANCELLED = "subscription_cancelled",
|
|
17
|
-
|
|
17
|
+
SHOPIFY_USER_CREDENTIALS = "shopify_user_credentials",
|
|
18
18
|
INTEGRATION_TOKEN_EXPIRED = "integration_token_expired",
|
|
19
19
|
INTEGRATION_TOKEN_EXPIRING_SOON = "integration_token_expiring_soon",
|
|
20
20
|
INTEGRATION_INSUFFICIENT_PERMISSIONS = "integration_insufficient_permissions",
|
|
@@ -15,7 +15,7 @@ export var SERVICE_EVENT_TYPE;
|
|
|
15
15
|
SERVICE_EVENT_TYPE["SUBSCRIPTION_USAGE_LIMIT_WARNING"] = "subscription_usage_limit_warning";
|
|
16
16
|
SERVICE_EVENT_TYPE["SUBSCRIPTION_USAGE_LIMIT_EXCEEDED"] = "subscription_usage_limit_exceeded";
|
|
17
17
|
SERVICE_EVENT_TYPE["SUBSCRIPTION_CANCELLED"] = "subscription_cancelled";
|
|
18
|
-
SERVICE_EVENT_TYPE["
|
|
18
|
+
SERVICE_EVENT_TYPE["SHOPIFY_USER_CREDENTIALS"] = "shopify_user_credentials";
|
|
19
19
|
SERVICE_EVENT_TYPE["INTEGRATION_TOKEN_EXPIRED"] = "integration_token_expired";
|
|
20
20
|
SERVICE_EVENT_TYPE["INTEGRATION_TOKEN_EXPIRING_SOON"] = "integration_token_expiring_soon";
|
|
21
21
|
SERVICE_EVENT_TYPE["INTEGRATION_INSUFFICIENT_PERMISSIONS"] = "integration_insufficient_permissions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-event-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/service-events/service-event-enums.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,kBAyDX;AAzDD,WAAY,kBAAkB;IAG5B,6DAAuC,CAAA;IAIvC,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,+EAAyD,CAAA;IAEzD,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,kEAA4C,CAAA;IAI5C,6FAAuE,CAAA;IAIvE,mFAA6D,CAAA;IAE7D,yEAAmD,CAAA;IAKnD,iFAA2D,CAAA;IAE3D,6EAAuD,CAAA;IAEvD,2FAAqE,CAAA;IAErE,6FAAuE,CAAA;IAEvE,uEAAiD,CAAA;IAIjD,
|
|
1
|
+
{"version":3,"file":"service-event-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/service-events/service-event-enums.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,kBAyDX;AAzDD,WAAY,kBAAkB;IAG5B,6DAAuC,CAAA;IAIvC,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,+EAAyD,CAAA;IAEzD,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,kEAA4C,CAAA;IAI5C,6FAAuE,CAAA;IAIvE,mFAA6D,CAAA;IAE7D,yEAAmD,CAAA;IAKnD,iFAA2D,CAAA;IAE3D,6EAAuD,CAAA;IAEvD,2FAAqE,CAAA;IAErE,6FAAuE,CAAA;IAEvE,uEAAiD,CAAA;IAIjD,2EAAqD,CAAA;IAIrD,6EAAuD,CAAA;IAEvD,yFAAmE,CAAA;IAEnE,mGAA6E,CAAA;IAI7E,uEAAiD,CAAA;AACnD,CAAC,EAzDW,kBAAkB,KAAlB,kBAAkB,QAyD7B;AAKD,MAAM,CAAN,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAEhC,yDAA+B,CAAA;IAE/B,uEAA6C,CAAA;IAE7C,qEAA2C,CAAA;IAE3C,iEAAuC,CAAA;IAEvC,uFAA6D,CAAA;AAC/D,CAAC,EAXW,sBAAsB,KAAtB,sBAAsB,QAWjC;AAKD,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SERVICE_EVENT_TYPE } from './service-event-enums.js';
|
|
2
|
-
import type { EmqDataIngestedEventDetail, DestinationForwardingErrorEventDetail, IntegrationTokenErrorEventDetail,
|
|
2
|
+
import type { EmqDataIngestedEventDetail, DestinationForwardingErrorEventDetail, IntegrationTokenErrorEventDetail, HealthAuditRequestedEventDetail, SubscriptionPaymentFailedEventDetail, SubscriptionTrialEndingEventDetail, SubscriptionUsageLimitEventDetail, SubscriptionCancelledEventDetail, ShopifyUserCredentialsEventDetail, IntegrationTokenExpiredEventDetail, IntegrationTokenExpiringSoonEventDetail, IntegrationInsufficientPermissionsEventDetail } from './service-event-details.js';
|
|
3
3
|
export interface ServiceEventWrapper<T> {
|
|
4
4
|
headers: null;
|
|
5
5
|
data: {
|
|
@@ -12,7 +12,6 @@ export interface ServiceEventWrapper<T> {
|
|
|
12
12
|
export declare type EmqDataIngestedEventWrapper = ServiceEventWrapper<EmqDataIngestedEventDetail>;
|
|
13
13
|
export declare type DestinationForwardingErrorEventWrapper = ServiceEventWrapper<DestinationForwardingErrorEventDetail>;
|
|
14
14
|
export declare type IntegrationTokenErrorEventWrapper = ServiceEventWrapper<IntegrationTokenErrorEventDetail>;
|
|
15
|
-
export declare type NotificationTriggeredEventWrapper = ServiceEventWrapper<NotificationTriggeredEventDetail>;
|
|
16
15
|
export declare type HealthAuditRequestedEventWrapper = ServiceEventWrapper<HealthAuditRequestedEventDetail>;
|
|
17
16
|
export declare type SubscriptionPaymentFailedEventWrapper = ServiceEventWrapper<SubscriptionPaymentFailedEventDetail>;
|
|
18
17
|
export declare type SubscriptionTrialEndingEventWrapper = ServiceEventWrapper<SubscriptionTrialEndingEventDetail>;
|