shred-api-client 1.11.6 → 1.11.7

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.
@@ -26,17 +26,24 @@ type History = {
26
26
  errorList?: string[];
27
27
  executionTimeDuration?: number;
28
28
  };
29
+ type RecurrenceRule = {
30
+ frequency: Notification.Frequency;
31
+ interval: number;
32
+ weekDays?: Notification.WeekDay[];
33
+ dayOfMonth?: number;
34
+ timeOfDay: string;
35
+ endDate?: number;
36
+ ocurrences?: number;
37
+ };
29
38
  type Trigger = {
30
39
  id: string;
31
40
  title: string;
32
41
  description: string;
33
42
  transportType: Notification.TransportType[];
34
43
  notification: NotificationDetail;
35
- executionTime: string;
36
- repeatDays: Notification.WeekDay[];
37
44
  history?: History[];
38
45
  status: Notification.Status;
39
- isRecurring: boolean;
46
+ recurrence?: RecurrenceRule;
40
47
  executionDate?: number;
41
48
  criteria: Criteria;
42
49
  nextExecution?: number;
@@ -47,6 +54,6 @@ type NotificationDetail = {
47
54
  title: string;
48
55
  body: string;
49
56
  userToken?: string;
50
- metadata?: any;
57
+ metadata?: Record<string, any>;
51
58
  };
52
- export { NotificationSchema, NotificationEndpoints, NotificationDetail, Trigger, Criteria, History, };
59
+ export { NotificationSchema, NotificationEndpoints, NotificationDetail, RecurrenceRule, Trigger, Criteria, History, };
@@ -105,19 +105,14 @@ type Project = {
105
105
  submitMonth: string;
106
106
  captionStyle: CaptionStyle;
107
107
  finalVideoId?: string;
108
- canRevision: boolean;
109
108
  thumbnailUrl?: string;
110
- revision?: string;
111
109
  modified: number;
112
110
  captionSuggestion?: string;
113
111
  editorId: string;
114
112
  userId: string;
115
113
  assets?: Asset[];
116
- denyFeedback?: DenyFeedback[];
117
- approvedBy?: string;
118
114
  expirationTimestamp: number;
119
115
  timeline?: TimelineItem[];
120
- status: Status;
121
116
  approveTimestamp?: number;
122
117
  sentToApproveTimestamp?: number;
123
118
  submitTimestamp: number;
@@ -126,6 +121,11 @@ type Project = {
126
121
  revisedAt?: number;
127
122
  scheduledAt?: number;
128
123
  scheduledTime?: number;
124
+ revision?: string;
125
+ canRevision: boolean;
126
+ denyFeedback?: DenyFeedback[];
127
+ approvedBy?: string;
128
+ status: Status;
129
129
  tenantId?: string;
130
130
  };
131
131
  export { Project, ProjectAPISchema, ProjectEndpoints, TimelineItem };
@@ -1,5 +1,5 @@
1
1
  import { Product as TProduct, Subscription as TSubscription, Charge as TCharge } from "./model/Subscription.schema";
2
- import { Trigger as TTrigger, Criteria as TCriteria, NotificationDetail as TNContent, History as THistory } from "./model/Notification.schema";
2
+ import { Trigger as TTrigger, Criteria as TCriteria, NotificationDetail as TNContent, RecurrenceRule as TRRule, History as THistory } from "./model/Notification.schema";
3
3
  import { System as TSystem, User as TUser, Preferences as UserPreferences, Role as TRole } from "./model/User.schema";
4
4
  import { Email as TEmail } from "./model/Email.schema";
5
5
  import { Asset as TAsset } from "./model/Asset.schema";
@@ -29,14 +29,19 @@ export declare namespace Shred {
29
29
  }
30
30
  }
31
31
  export declare namespace Notification {
32
+ enum Frequency {
33
+ DAILY = "daily",
34
+ WEEKLY = "weekly",
35
+ MONTHLY = "monthly"
36
+ }
32
37
  enum WeekDay {
33
- MONDAY = "monday",
34
- TUESDAY = "tuesday",
35
- WEDNESDAY = "wednesday",
36
- THURSDAY = "thursday",
37
- FRIDAY = "friday",
38
- SATURDAY = "saturday",
39
- SUNDAY = "sunday"
38
+ MONDAY = 1,
39
+ TUESDAY = 2,
40
+ WEDNESDAY = 3,
41
+ THURSDAY = 4,
42
+ FRIDAY = 5,
43
+ SATURDAY = 6,
44
+ SUNDAY = 7
40
45
  }
41
46
  enum CriteriaType {
42
47
  NoLogin = "noLogin",
@@ -59,6 +64,7 @@ export declare namespace Notification {
59
64
  ACTIVE = "active",
60
65
  EXPIRED = "expired"
61
66
  }
67
+ type RecurrenceRule = TRRule;
62
68
  type Trigger = TTrigger;
63
69
  type Criteria = TCriteria;
64
70
  type History = THistory;
package/dist/namespace.js CHANGED
@@ -3,15 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Notification = void 0;
4
4
  var Notification;
5
5
  (function (Notification) {
6
+ let Frequency;
7
+ (function (Frequency) {
8
+ Frequency["DAILY"] = "daily";
9
+ Frequency["WEEKLY"] = "weekly";
10
+ Frequency["MONTHLY"] = "monthly";
11
+ })(Frequency = Notification.Frequency || (Notification.Frequency = {}));
6
12
  let WeekDay;
7
13
  (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";
14
+ WeekDay[WeekDay["MONDAY"] = 1] = "MONDAY";
15
+ WeekDay[WeekDay["TUESDAY"] = 2] = "TUESDAY";
16
+ WeekDay[WeekDay["WEDNESDAY"] = 3] = "WEDNESDAY";
17
+ WeekDay[WeekDay["THURSDAY"] = 4] = "THURSDAY";
18
+ WeekDay[WeekDay["FRIDAY"] = 5] = "FRIDAY";
19
+ WeekDay[WeekDay["SATURDAY"] = 6] = "SATURDAY";
20
+ WeekDay[WeekDay["SUNDAY"] = 7] = "SUNDAY";
15
21
  })(WeekDay = Notification.WeekDay || (Notification.WeekDay = {}));
16
22
  let CriteriaType;
17
23
  (function (CriteriaType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.11.6",
3
+ "version": "1.11.7",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",