opticedge-types 1.0.4 → 1.0.5

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.
@@ -22,3 +22,19 @@ export interface BillingIssue {
22
22
  created_at: Date;
23
23
  updated_at: Date;
24
24
  }
25
+ export type BillingIssueEmailResult = {
26
+ success: boolean;
27
+ provider: 'fcm';
28
+ info?: string;
29
+ error?: string;
30
+ };
31
+ export type BillingIssuePushResult = {
32
+ success: boolean;
33
+ provider: 'sendgrid';
34
+ info?: string;
35
+ error?: string;
36
+ };
37
+ export type BillingIssueNotifyResult = {
38
+ push?: BillingIssueEmailResult;
39
+ email?: BillingIssuePushResult;
40
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-types",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Common type for opticedge",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/types/rc.ts CHANGED
@@ -27,3 +27,22 @@ export interface BillingIssue {
27
27
  created_at: Date
28
28
  updated_at: Date
29
29
  }
30
+
31
+ export type BillingIssueEmailResult = {
32
+ success: boolean
33
+ provider: 'fcm'
34
+ info?: string
35
+ error?: string
36
+ }
37
+
38
+ export type BillingIssuePushResult = {
39
+ success: boolean
40
+ provider: 'sendgrid'
41
+ info?: string
42
+ error?: string
43
+ }
44
+
45
+ export type BillingIssueNotifyResult = {
46
+ push?: BillingIssueEmailResult
47
+ email?: BillingIssuePushResult
48
+ }