shred-api-client 1.10.6 → 1.10.8

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.
@@ -23,18 +23,17 @@ type NotificationTrigger = {
23
23
  id: string;
24
24
  title: string;
25
25
  description: string;
26
- transportType: [{
27
- active: boolean;
28
- type: Notification.TransportType;
29
- }];
26
+ transportType: Notification.TransportType[];
30
27
  notification: {
31
28
  title: string;
32
29
  body: string;
33
30
  };
31
+ executionTime: string;
32
+ repeatDays: Notification.WeekDay[];
34
33
  history?: NotificationHistory[];
35
34
  status: Notification.Status;
36
35
  isRecurring: boolean;
37
- executionDate: number;
36
+ executionDate?: number;
38
37
  criteria: NotificationCriteria;
39
38
  nextExecution?: number;
40
39
  createdAt?: number;
@@ -98,6 +98,7 @@ type User = {
98
98
  preferences?: Preferences;
99
99
  tenantId?: string;
100
100
  editorId?: string;
101
+ timezone?: string;
101
102
  customerId: string;
102
103
  role: Role;
103
104
  };
@@ -26,6 +26,15 @@ export declare namespace Shred {
26
26
  }
27
27
  }
28
28
  export declare namespace Notification {
29
+ enum WeekDay {
30
+ MONDAY = "monday",
31
+ TUESDAY = "tuesday",
32
+ WEDNESDAY = "wednesday",
33
+ THURSDAY = "thursday",
34
+ FRIDAY = "friday",
35
+ SATURDAY = "saturday",
36
+ SUNDAY = "sunday"
37
+ }
29
38
  enum CriteriaType {
30
39
  NoLogin = "noLogin",
31
40
  AllUsers = "allUsers",
package/dist/namespace.js CHANGED
@@ -3,6 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Notification = void 0;
4
4
  var Notification;
5
5
  (function (Notification) {
6
+ let WeekDay;
7
+ (function (WeekDay) {
8
+ WeekDay["MONDAY"] = "monday";
9
+ WeekDay["TUESDAY"] = "tuesday";
10
+ WeekDay["WEDNESDAY"] = "wednesday";
11
+ WeekDay["THURSDAY"] = "thursday";
12
+ WeekDay["FRIDAY"] = "friday";
13
+ WeekDay["SATURDAY"] = "saturday";
14
+ WeekDay["SUNDAY"] = "sunday";
15
+ })(WeekDay = Notification.WeekDay || (Notification.WeekDay = {}));
6
16
  let CriteriaType;
7
17
  (function (CriteriaType) {
8
18
  CriteriaType["NoLogin"] = "noLogin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.10.6",
3
+ "version": "1.10.8",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",