@sparkvault/sdk-js 15.11.3 → 15.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.
- package/README.md +6 -1
- package/dist/index.cjs +176 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.mjs +176 -52
- package/dist/index.mjs.map +1 -1
- package/dist/products/help-desk/client.d.ts +3 -1
- package/dist/products/help-desk/types.d.ts +11 -0
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
|
@@ -127,7 +127,9 @@ export declare class HelpDeskClient {
|
|
|
127
127
|
response?: string;
|
|
128
128
|
}): Promise<HelpDeskTicketDetail>;
|
|
129
129
|
listEvents(number: number, cursor?: string): Promise<HelpDeskTimeline>;
|
|
130
|
-
/**
|
|
130
|
+
/** A new id for one composed reply, sent as `HelpDeskReplyOptions.eventId` with every send of it while it stands unchanged. */
|
|
131
|
+
newReplyId(): string;
|
|
132
|
+
/** A reply sent under an `eventId` an earlier send of it posted answers that reply, posting nothing again. */
|
|
131
133
|
replyToTicket(number: number, options: HelpDeskReplyOptions, context?: HelpDeskRequestContext): Promise<HelpDeskReplyCreated>;
|
|
132
134
|
resolveTicket(number: number, context?: HelpDeskRequestContext): Promise<void>;
|
|
133
135
|
muteTicket(number: number, muted: boolean, context?: HelpDeskRequestContext): Promise<void>;
|
|
@@ -189,8 +189,19 @@ export interface HelpDeskTicketDetail extends HelpDeskTimeline {
|
|
|
189
189
|
ticket: HelpDeskTicket;
|
|
190
190
|
}
|
|
191
191
|
export interface HelpDeskReplyOptions {
|
|
192
|
+
/** Help desk safe markup, not HTML. */
|
|
192
193
|
body: string;
|
|
193
194
|
attachments?: string[];
|
|
195
|
+
/**
|
|
196
|
+
* The id the reply is sent under (`HelpDeskClient.newReplyId()`), named once
|
|
197
|
+
* per composed reply and sent with every send of it while its words and
|
|
198
|
+
* files stand unchanged, whatever an earlier send answered (a lost
|
|
199
|
+
* response, a refusal): a reply an earlier send posted is answered with
|
|
200
|
+
* that reply instead of being posted again. Name a changed reply anew.
|
|
201
|
+
* Without one the help desk names the reply itself, so a reply sent again
|
|
202
|
+
* posts again.
|
|
203
|
+
*/
|
|
204
|
+
eventId?: string;
|
|
194
205
|
}
|
|
195
206
|
export interface HelpDeskReplyCreated {
|
|
196
207
|
event_id: string;
|