@in.pulse-crm/sdk 2.11.4 → 2.11.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.
@@ -176,11 +176,19 @@ export interface PaginatedNotificationsResponse {
176
176
  notifications: AppNotification[];
177
177
  totalCount: number;
178
178
  }
179
+ export type Frequency = 'ONCE' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
179
180
  export interface AutomaticResponseSchedule {
180
181
  id?: number;
181
- dayOfWeek: number;
182
+ frequency: Frequency;
183
+ daysOfWeek?: number[] | null;
184
+ dayOfMonth?: number | null;
185
+ month?: number | null;
186
+ startDate?: string | null;
187
+ endDate?: string | null;
182
188
  startTime: string;
183
189
  endTime: string;
190
+ timezone?: string | null;
191
+ dayOfWeek?: number | null;
184
192
  }
185
193
  export interface AutomaticResponseRule {
186
194
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in.pulse-crm/sdk",
3
- "version": "2.11.4",
3
+ "version": "2.11.5",
4
4
  "description": "SDKs for abstraction of api consumption of in.pulse-crm application",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -201,32 +201,45 @@ export interface PaginatedNotificationsResponse {
201
201
  notifications: AppNotification[];
202
202
  totalCount: number;
203
203
  }
204
+ export type Frequency = 'ONCE' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
205
+
204
206
  export interface AutomaticResponseSchedule {
205
- id?: number;
206
- dayOfWeek: number;
207
- startTime: string;
208
- endTime: string;
207
+ id?: number;
208
+
209
+ frequency: Frequency;
210
+ daysOfWeek?: number[] | null;
211
+ dayOfMonth?: number | null;
212
+ month?: number | null;
213
+
214
+ startDate?: string | null;
215
+ endDate?: string | null;
216
+
217
+ startTime: string;
218
+ endTime: string;
219
+ timezone?: string | null;
220
+
221
+ dayOfWeek?: number | null;
209
222
  }
210
223
 
211
224
  export interface AutomaticResponseRule {
212
- id: number;
213
- name: string;
214
- message: string;
215
- isEnabled: boolean;
216
- isGlobal: boolean;
217
- cooldownSeconds: number;
218
- fileId: number | null;
219
- schedules: AutomaticResponseSchedule[];
220
- userAssignments: { userId: number }[];
225
+ id: number;
226
+ name: string;
227
+ message: string;
228
+ isEnabled: boolean;
229
+ isGlobal: boolean;
230
+ cooldownSeconds: number;
231
+ fileId: number | null;
232
+ schedules: AutomaticResponseSchedule[];
233
+ userAssignments: { userId: number }[];
221
234
  }
222
235
 
223
236
  export interface AutomaticResponseRuleDTO {
224
- name: string;
225
- message: string;
226
- isEnabled: boolean;
227
- isGlobal: boolean;
228
- cooldownSeconds: number;
229
- fileId?: number | null;
230
- userIds: number[];
231
- schedules: Omit<AutomaticResponseSchedule, "id">[];
232
- }
237
+ name: string;
238
+ message: string;
239
+ isEnabled: boolean;
240
+ isGlobal: boolean;
241
+ cooldownSeconds: number;
242
+ fileId?: number | null;
243
+ userIds: number[];
244
+ schedules: Omit<AutomaticResponseSchedule, "id">[];
245
+ }