@adtrackify/at-tracking-event-types 4.6.5 → 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.
@@ -1,8 +1,7 @@
1
1
  import type { DESTINATION } from '../destinations/destination-enums.js';
2
- import type { NotificationType, NOTIFICATION_SEVERITY } from '../notifications/notification-enums.js';
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?: string;
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?: string;
86
- periodEndsAt?: string;
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?: string;
78
+ planName: string;
93
79
  }
94
80
  export interface ShopifyUserCredentialsEventDetail {
95
81
  directEmail: string;
96
82
  password: string;
97
- name?: string;
98
- shopDomain?: string;
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;
@@ -1,5 +1,5 @@
1
1
  import { SERVICE_EVENT_TYPE } from './service-event-enums.js';
2
- import type { EmqDataIngestedEventDetail, DestinationForwardingErrorEventDetail, IntegrationTokenErrorEventDetail, NotificationTriggeredEventDetail, HealthAuditRequestedEventDetail, SubscriptionPaymentFailedEventDetail, SubscriptionTrialEndingEventDetail, SubscriptionUsageLimitEventDetail, SubscriptionCancelledEventDetail, ShopifyUserCredentialsEventDetail, IntegrationTokenExpiredEventDetail, IntegrationTokenExpiringSoonEventDetail, IntegrationInsufficientPermissionsEventDetail } from './service-event-details.js';
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 { NotificationType, NOTIFICATION_SEVERITY } from '../notifications/notification-enums.js';
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?: string;
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?: string;
86
- periodEndsAt?: string;
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?: string;
78
+ planName: string;
93
79
  }
94
80
  export interface ShopifyUserCredentialsEventDetail {
95
81
  directEmail: string;
96
82
  password: string;
97
- name?: string;
98
- shopDomain?: string;
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;
@@ -1,5 +1,5 @@
1
1
  import { SERVICE_EVENT_TYPE } from './service-event-enums.js';
2
- import type { EmqDataIngestedEventDetail, DestinationForwardingErrorEventDetail, IntegrationTokenErrorEventDetail, NotificationTriggeredEventDetail, HealthAuditRequestedEventDetail, SubscriptionPaymentFailedEventDetail, SubscriptionTrialEndingEventDetail, SubscriptionUsageLimitEventDetail, SubscriptionCancelledEventDetail, ShopifyUserCredentialsEventDetail, IntegrationTokenExpiredEventDetail, IntegrationTokenExpiringSoonEventDetail, IntegrationInsufficientPermissionsEventDetail } from './service-event-details.js';
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "4.6.5",
3
+ "version": "4.6.6",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist/*"