@skravets/eapi 0.0.31 → 0.0.33
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.
- package/dist/api-types.d.cts +24 -1
- package/dist/api-types.d.ts +24 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/package.json +1 -1
package/dist/api-types.d.cts
CHANGED
|
@@ -100,6 +100,11 @@ interface components {
|
|
|
100
100
|
* @example 2024-12-31
|
|
101
101
|
*/
|
|
102
102
|
toDate?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @description Maximum number of messages to return
|
|
105
|
+
* @example 1000
|
|
106
|
+
*/
|
|
107
|
+
limit?: number;
|
|
103
108
|
};
|
|
104
109
|
GetMessagesContextDto: {
|
|
105
110
|
/**
|
|
@@ -164,6 +169,11 @@ interface components {
|
|
|
164
169
|
* @example 2024-12-31
|
|
165
170
|
*/
|
|
166
171
|
toDate?: string;
|
|
172
|
+
/**
|
|
173
|
+
* @description Maximum number of messages to return
|
|
174
|
+
* @example 1000
|
|
175
|
+
*/
|
|
176
|
+
limit?: number;
|
|
167
177
|
/**
|
|
168
178
|
* @description Webhook URL to send results to
|
|
169
179
|
* @example https://your-app.com/webhooks/messages-search
|
|
@@ -178,7 +188,7 @@ interface components {
|
|
|
178
188
|
channel_id: number;
|
|
179
189
|
/**
|
|
180
190
|
* Format: date-time
|
|
181
|
-
* @example 2025-
|
|
191
|
+
* @example 2025-12-02T14:20:50.628Z
|
|
182
192
|
*/
|
|
183
193
|
message_created_at: string;
|
|
184
194
|
/** @example 123 */
|
|
@@ -451,6 +461,16 @@ interface components {
|
|
|
451
461
|
endsWith?: string;
|
|
452
462
|
equals?: string;
|
|
453
463
|
includes?: string;
|
|
464
|
+
/**
|
|
465
|
+
* @description Keyword groups - message must contain all keywords from at least one group
|
|
466
|
+
* @example [
|
|
467
|
+
* {
|
|
468
|
+
* "0": "keyword1",
|
|
469
|
+
* "1": "keyword2"
|
|
470
|
+
* }
|
|
471
|
+
* ]
|
|
472
|
+
*/
|
|
473
|
+
includesKeywords?: string[][];
|
|
454
474
|
in?: string[];
|
|
455
475
|
not?: components["schemas"]["StringFilter"];
|
|
456
476
|
options?: string;
|
|
@@ -526,6 +546,8 @@ interface components {
|
|
|
526
546
|
lt?: string | Record<string, never>;
|
|
527
547
|
lte?: string | Record<string, never>;
|
|
528
548
|
not?: string | Record<string, never>;
|
|
549
|
+
/** @description Interval in ms string or raw seconds (fallback). */
|
|
550
|
+
interval?: string | number;
|
|
529
551
|
};
|
|
530
552
|
/** @description Restrictions query for message */
|
|
531
553
|
MessageWhere: {
|
|
@@ -535,6 +557,7 @@ interface components {
|
|
|
535
557
|
text?: components["schemas"]["StringFilter"];
|
|
536
558
|
user_id?: components["schemas"]["NumberFilter"];
|
|
537
559
|
username?: components["schemas"]["StringFilter"];
|
|
560
|
+
chat?: components["schemas"]["ChatWhere"];
|
|
538
561
|
};
|
|
539
562
|
/** @description Message filters dto */
|
|
540
563
|
QueryMessage: {
|
package/dist/api-types.d.ts
CHANGED
|
@@ -100,6 +100,11 @@ interface components {
|
|
|
100
100
|
* @example 2024-12-31
|
|
101
101
|
*/
|
|
102
102
|
toDate?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @description Maximum number of messages to return
|
|
105
|
+
* @example 1000
|
|
106
|
+
*/
|
|
107
|
+
limit?: number;
|
|
103
108
|
};
|
|
104
109
|
GetMessagesContextDto: {
|
|
105
110
|
/**
|
|
@@ -164,6 +169,11 @@ interface components {
|
|
|
164
169
|
* @example 2024-12-31
|
|
165
170
|
*/
|
|
166
171
|
toDate?: string;
|
|
172
|
+
/**
|
|
173
|
+
* @description Maximum number of messages to return
|
|
174
|
+
* @example 1000
|
|
175
|
+
*/
|
|
176
|
+
limit?: number;
|
|
167
177
|
/**
|
|
168
178
|
* @description Webhook URL to send results to
|
|
169
179
|
* @example https://your-app.com/webhooks/messages-search
|
|
@@ -178,7 +188,7 @@ interface components {
|
|
|
178
188
|
channel_id: number;
|
|
179
189
|
/**
|
|
180
190
|
* Format: date-time
|
|
181
|
-
* @example 2025-
|
|
191
|
+
* @example 2025-12-02T14:20:50.628Z
|
|
182
192
|
*/
|
|
183
193
|
message_created_at: string;
|
|
184
194
|
/** @example 123 */
|
|
@@ -451,6 +461,16 @@ interface components {
|
|
|
451
461
|
endsWith?: string;
|
|
452
462
|
equals?: string;
|
|
453
463
|
includes?: string;
|
|
464
|
+
/**
|
|
465
|
+
* @description Keyword groups - message must contain all keywords from at least one group
|
|
466
|
+
* @example [
|
|
467
|
+
* {
|
|
468
|
+
* "0": "keyword1",
|
|
469
|
+
* "1": "keyword2"
|
|
470
|
+
* }
|
|
471
|
+
* ]
|
|
472
|
+
*/
|
|
473
|
+
includesKeywords?: string[][];
|
|
454
474
|
in?: string[];
|
|
455
475
|
not?: components["schemas"]["StringFilter"];
|
|
456
476
|
options?: string;
|
|
@@ -526,6 +546,8 @@ interface components {
|
|
|
526
546
|
lt?: string | Record<string, never>;
|
|
527
547
|
lte?: string | Record<string, never>;
|
|
528
548
|
not?: string | Record<string, never>;
|
|
549
|
+
/** @description Interval in ms string or raw seconds (fallback). */
|
|
550
|
+
interval?: string | number;
|
|
529
551
|
};
|
|
530
552
|
/** @description Restrictions query for message */
|
|
531
553
|
MessageWhere: {
|
|
@@ -535,6 +557,7 @@ interface components {
|
|
|
535
557
|
text?: components["schemas"]["StringFilter"];
|
|
536
558
|
user_id?: components["schemas"]["NumberFilter"];
|
|
537
559
|
username?: components["schemas"]["StringFilter"];
|
|
560
|
+
chat?: components["schemas"]["ChatWhere"];
|
|
538
561
|
};
|
|
539
562
|
/** @description Message filters dto */
|
|
540
563
|
QueryMessage: {
|
package/dist/index.d.cts
CHANGED
|
@@ -22,6 +22,15 @@ type RequestOptions = Omit<NonNullable<Parameters<typeof fetch>[1]>, "headers">
|
|
|
22
22
|
mimeType?: "json" | "x-www-form-urlencoded";
|
|
23
23
|
headers?: Record<string, string>;
|
|
24
24
|
};
|
|
25
|
+
interface SubscriptionMatchedByKeywords {
|
|
26
|
+
type: "messages.text.includesKeywords";
|
|
27
|
+
value: string[];
|
|
28
|
+
}
|
|
29
|
+
type SubscriptionMatchedBy = SubscriptionMatchedByKeywords;
|
|
30
|
+
interface SubscriptionContext {
|
|
31
|
+
id: number;
|
|
32
|
+
matchedBy: SubscriptionMatchedBy[];
|
|
33
|
+
}
|
|
25
34
|
type Metadata<T = Record<string, unknown>> = {
|
|
26
35
|
externalId?: string;
|
|
27
36
|
} & T;
|
|
@@ -78,6 +87,7 @@ interface PublishersStatusQueueInputMessagesParsed {
|
|
|
78
87
|
plannedEnd: number;
|
|
79
88
|
};
|
|
80
89
|
messages: MessageStored[];
|
|
90
|
+
subscription: SubscriptionContext;
|
|
81
91
|
metadata: {
|
|
82
92
|
externalId: string;
|
|
83
93
|
};
|
|
@@ -225,6 +235,7 @@ interface MessageSearchQuery {
|
|
|
225
235
|
days?: number;
|
|
226
236
|
fromDate?: string;
|
|
227
237
|
toDate?: string;
|
|
238
|
+
limit?: number;
|
|
228
239
|
}
|
|
229
240
|
interface PublishersStatusQueueInputClickHouseMessagesResult {
|
|
230
241
|
metadata?: Metadata;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,15 @@ type RequestOptions = Omit<NonNullable<Parameters<typeof fetch>[1]>, "headers">
|
|
|
22
22
|
mimeType?: "json" | "x-www-form-urlencoded";
|
|
23
23
|
headers?: Record<string, string>;
|
|
24
24
|
};
|
|
25
|
+
interface SubscriptionMatchedByKeywords {
|
|
26
|
+
type: "messages.text.includesKeywords";
|
|
27
|
+
value: string[];
|
|
28
|
+
}
|
|
29
|
+
type SubscriptionMatchedBy = SubscriptionMatchedByKeywords;
|
|
30
|
+
interface SubscriptionContext {
|
|
31
|
+
id: number;
|
|
32
|
+
matchedBy: SubscriptionMatchedBy[];
|
|
33
|
+
}
|
|
25
34
|
type Metadata<T = Record<string, unknown>> = {
|
|
26
35
|
externalId?: string;
|
|
27
36
|
} & T;
|
|
@@ -78,6 +87,7 @@ interface PublishersStatusQueueInputMessagesParsed {
|
|
|
78
87
|
plannedEnd: number;
|
|
79
88
|
};
|
|
80
89
|
messages: MessageStored[];
|
|
90
|
+
subscription: SubscriptionContext;
|
|
81
91
|
metadata: {
|
|
82
92
|
externalId: string;
|
|
83
93
|
};
|
|
@@ -225,6 +235,7 @@ interface MessageSearchQuery {
|
|
|
225
235
|
days?: number;
|
|
226
236
|
fromDate?: string;
|
|
227
237
|
toDate?: string;
|
|
238
|
+
limit?: number;
|
|
228
239
|
}
|
|
229
240
|
interface PublishersStatusQueueInputClickHouseMessagesResult {
|
|
230
241
|
metadata?: Metadata;
|