@great-detail/support-sdk 0.2.10 → 0.3.0
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/{chunk-ZYSG2PTQ.js → chunk-MIIHAFPV.js} +1 -1
- package/dist/chunk-O5KZWMF7.js +1 -0
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/{index-BMsEq65I.d.cts → index-ng6eKA5J.d.cts} +228 -21
- package/dist/{index-BMsEq65I.d.ts → index-ng6eKA5J.d.ts} +228 -21
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/Boilerplate/CreateBoilerplateCategoryBoilerplate.ts +68 -0
- package/src/Boilerplate/GetBoilerplate.ts +1 -0
- package/src/Boilerplate/ListBoilerplateCategoryBoilerplates.ts +53 -0
- package/src/Boilerplate/ListBoilerplates.ts +1 -0
- package/src/Boilerplate/UpdateBoilerplate.ts +1 -0
- package/src/Boilerplate/index.ts +2 -1
- package/src/{Boilerplate/CreateBoilerplate.ts → BoilerplateCategory/CreateBoilerplateCategory.ts} +11 -11
- package/src/BoilerplateCategory/GetBoilerplateCategory.ts +47 -0
- package/src/BoilerplateCategory/ListBoilerplateCategories.ts +46 -0
- package/src/BoilerplateCategory/UpdateBoilerplateCategory.ts +59 -0
- package/src/BoilerplateCategory/index.ts +13 -0
- package/src/Client/index.ts +19 -2
- package/src/index.ts +1 -0
- package/dist/chunk-KG7KNOPC.js +0 -1
|
@@ -28,21 +28,21 @@ interface RequestFilterable {
|
|
|
28
28
|
* @see https://greatdetail.com
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
interface Options$
|
|
31
|
+
interface Options$G {
|
|
32
32
|
requestFilterables: RequestFilterable[];
|
|
33
33
|
}
|
|
34
34
|
interface Transport {
|
|
35
35
|
getURL(url: string): string;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
interface InputOptions extends Options$
|
|
38
|
+
interface InputOptions extends Options$G {
|
|
39
39
|
baseURL: string;
|
|
40
40
|
}
|
|
41
|
-
interface Options$
|
|
41
|
+
interface Options$F extends Options$G {
|
|
42
42
|
baseURL: string;
|
|
43
43
|
}
|
|
44
44
|
declare class FetchTransport implements Transport {
|
|
45
|
-
options: Options$
|
|
45
|
+
options: Options$F;
|
|
46
46
|
constructor({ baseURL, ...options }: InputOptions);
|
|
47
47
|
getURL(url: string): string;
|
|
48
48
|
getRequest(url: string, request: RequestInit): Request;
|
|
@@ -58,13 +58,13 @@ declare class FetchTransport implements Transport {
|
|
|
58
58
|
* @see https://greatdetail.com
|
|
59
59
|
*/
|
|
60
60
|
|
|
61
|
-
interface Options$
|
|
61
|
+
interface Options$E {
|
|
62
62
|
request?: RequestInit;
|
|
63
63
|
}
|
|
64
64
|
declare class ListActions {
|
|
65
65
|
protected _transport: FetchTransport;
|
|
66
66
|
constructor(_transport: FetchTransport);
|
|
67
|
-
send({ request }?: Options$
|
|
67
|
+
send({ request }?: Options$E): Promise<ListActionsResponse>;
|
|
68
68
|
}
|
|
69
69
|
type ListActionsResponsePayload = {
|
|
70
70
|
actions: {
|
|
@@ -106,11 +106,12 @@ type Authentication = RequestFilterable;
|
|
|
106
106
|
* @see https://greatdetail.com
|
|
107
107
|
*/
|
|
108
108
|
|
|
109
|
-
interface Options$
|
|
110
|
-
|
|
109
|
+
interface Options$D {
|
|
110
|
+
id: string;
|
|
111
|
+
body: z.infer<typeof CreateBoilerplateCategoryBoilerplate.SCHEMA>;
|
|
111
112
|
request?: RequestInit;
|
|
112
113
|
}
|
|
113
|
-
declare class
|
|
114
|
+
declare class CreateBoilerplateCategoryBoilerplate {
|
|
114
115
|
protected _transport: FetchTransport;
|
|
115
116
|
static SCHEMA: z.ZodObject<{
|
|
116
117
|
title: z.ZodString;
|
|
@@ -126,9 +127,9 @@ declare class CreateBoilerplate {
|
|
|
126
127
|
account: string;
|
|
127
128
|
}>;
|
|
128
129
|
constructor(_transport: FetchTransport);
|
|
129
|
-
send({ body, request }: Options$
|
|
130
|
+
send({ id, body, request }: Options$D): Promise<CreateBoilerplateCategoryBoilerplateResponse>;
|
|
130
131
|
}
|
|
131
|
-
type
|
|
132
|
+
type CreateBoilerplateCategoryBoilerplateResponsePayload = {
|
|
132
133
|
boilerplate: {
|
|
133
134
|
id: string;
|
|
134
135
|
title: string;
|
|
@@ -138,10 +139,10 @@ type CreateBoilerplateResponsePayload = {
|
|
|
138
139
|
updatedAt: string;
|
|
139
140
|
};
|
|
140
141
|
};
|
|
141
|
-
declare class
|
|
142
|
+
declare class CreateBoilerplateCategoryBoilerplateResponse {
|
|
142
143
|
response: Response;
|
|
143
144
|
constructor(response: Response);
|
|
144
|
-
result(): Promise<
|
|
145
|
+
result(): Promise<CreateBoilerplateCategoryBoilerplateResponsePayload>;
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
/**
|
|
@@ -153,14 +154,14 @@ declare class CreateBoilerplateResponse {
|
|
|
153
154
|
* @see https://greatdetail.com
|
|
154
155
|
*/
|
|
155
156
|
|
|
156
|
-
interface Options$
|
|
157
|
+
interface Options$C {
|
|
157
158
|
id: string;
|
|
158
159
|
request?: RequestInit;
|
|
159
160
|
}
|
|
160
161
|
declare class GetBoilerplate {
|
|
161
162
|
protected _transport: FetchTransport;
|
|
162
163
|
constructor(_transport: FetchTransport);
|
|
163
|
-
send({ id, request }: Options$
|
|
164
|
+
send({ id, request }: Options$C): Promise<GetBoilerplateResponse>;
|
|
164
165
|
}
|
|
165
166
|
type GetBoilerplateResponsePayload = {
|
|
166
167
|
boilerplate: {
|
|
@@ -168,6 +169,7 @@ type GetBoilerplateResponsePayload = {
|
|
|
168
169
|
title: string;
|
|
169
170
|
content: string;
|
|
170
171
|
account: string;
|
|
172
|
+
boilerplateCategory: string;
|
|
171
173
|
createdAt: string;
|
|
172
174
|
updatedAt: string;
|
|
173
175
|
};
|
|
@@ -187,13 +189,48 @@ declare class GetBoilerplateResponse {
|
|
|
187
189
|
* @see https://greatdetail.com
|
|
188
190
|
*/
|
|
189
191
|
|
|
190
|
-
interface Options$
|
|
192
|
+
interface Options$B {
|
|
193
|
+
id: string;
|
|
194
|
+
request?: RequestInit;
|
|
195
|
+
}
|
|
196
|
+
declare class ListBoilerplateCategoryBoilerplates {
|
|
197
|
+
protected _transport: FetchTransport;
|
|
198
|
+
constructor(_transport: FetchTransport);
|
|
199
|
+
send({ id, request }: Options$B): Promise<ListBoilerplateCategoryBoilerplatesResponse>;
|
|
200
|
+
}
|
|
201
|
+
type ListBoilerplateCategoryBoilerplatesResponsePayload = {
|
|
202
|
+
boilerplates: {
|
|
203
|
+
id: string;
|
|
204
|
+
title: string;
|
|
205
|
+
content: string;
|
|
206
|
+
account: string;
|
|
207
|
+
boilerplateCategory: string;
|
|
208
|
+
createdAt: string;
|
|
209
|
+
updatedAt: string;
|
|
210
|
+
}[];
|
|
211
|
+
};
|
|
212
|
+
declare class ListBoilerplateCategoryBoilerplatesResponse {
|
|
213
|
+
response: Response;
|
|
214
|
+
constructor(response: Response);
|
|
215
|
+
result(): Promise<ListBoilerplateCategoryBoilerplatesResponsePayload>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Great Detail Support System.
|
|
220
|
+
*
|
|
221
|
+
* @copyright 2024 Great Detail Ltd
|
|
222
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
223
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
224
|
+
* @see https://greatdetail.com
|
|
225
|
+
*/
|
|
226
|
+
|
|
227
|
+
interface Options$A {
|
|
191
228
|
request?: RequestInit;
|
|
192
229
|
}
|
|
193
230
|
declare class ListBoilerplates {
|
|
194
231
|
protected _transport: FetchTransport;
|
|
195
232
|
constructor(_transport: FetchTransport);
|
|
196
|
-
send({ request }?: Options$
|
|
233
|
+
send({ request }?: Options$A): Promise<ListBoilerplatesResponse>;
|
|
197
234
|
}
|
|
198
235
|
type ListBoilerplatesResponsePayload = {
|
|
199
236
|
boilerplates: {
|
|
@@ -201,6 +238,7 @@ type ListBoilerplatesResponsePayload = {
|
|
|
201
238
|
title: string;
|
|
202
239
|
content: string;
|
|
203
240
|
account: string;
|
|
241
|
+
boilerplateCategory: string;
|
|
204
242
|
createdAt: string;
|
|
205
243
|
updatedAt: string;
|
|
206
244
|
}[];
|
|
@@ -220,7 +258,7 @@ declare class ListBoilerplatesResponse {
|
|
|
220
258
|
* @see https://greatdetail.com
|
|
221
259
|
*/
|
|
222
260
|
|
|
223
|
-
interface Options$
|
|
261
|
+
interface Options$z {
|
|
224
262
|
id: string;
|
|
225
263
|
body: z.infer<typeof UpdateBoilerplate.SCHEMA>;
|
|
226
264
|
request?: RequestInit;
|
|
@@ -238,7 +276,7 @@ declare class UpdateBoilerplate {
|
|
|
238
276
|
content?: string | undefined;
|
|
239
277
|
}>;
|
|
240
278
|
constructor(_transport: FetchTransport);
|
|
241
|
-
send({ id, body, request }: Options$
|
|
279
|
+
send({ id, body, request }: Options$z): Promise<UpdateBoilerplateResponse>;
|
|
242
280
|
}
|
|
243
281
|
type UpdateBoilerplateResponsePayload = {
|
|
244
282
|
boilerplate: {
|
|
@@ -246,6 +284,7 @@ type UpdateBoilerplateResponsePayload = {
|
|
|
246
284
|
title: string;
|
|
247
285
|
content: string;
|
|
248
286
|
account: string;
|
|
287
|
+
boilerplateCategory: string;
|
|
249
288
|
createdAt: string;
|
|
250
289
|
updatedAt: string;
|
|
251
290
|
};
|
|
@@ -256,6 +295,165 @@ declare class UpdateBoilerplateResponse {
|
|
|
256
295
|
result(): Promise<UpdateBoilerplateResponsePayload>;
|
|
257
296
|
}
|
|
258
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Great Detail Support System.
|
|
300
|
+
*
|
|
301
|
+
* @copyright 2024 Great Detail Ltd
|
|
302
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
303
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
304
|
+
* @see https://greatdetail.com
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
interface Options$y {
|
|
308
|
+
body: z.infer<typeof CreateBoilerplateCategory.SCHEMA>;
|
|
309
|
+
request?: RequestInit;
|
|
310
|
+
}
|
|
311
|
+
declare class CreateBoilerplateCategory {
|
|
312
|
+
protected _transport: FetchTransport;
|
|
313
|
+
static SCHEMA: z.ZodObject<{
|
|
314
|
+
title: z.ZodString;
|
|
315
|
+
description: z.ZodOptional<z.ZodString>;
|
|
316
|
+
account: z.ZodString;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
title: string;
|
|
319
|
+
account: string;
|
|
320
|
+
description?: string | undefined;
|
|
321
|
+
}, {
|
|
322
|
+
title: string;
|
|
323
|
+
account: string;
|
|
324
|
+
description?: string | undefined;
|
|
325
|
+
}>;
|
|
326
|
+
constructor(_transport: FetchTransport);
|
|
327
|
+
send({ body, request }: Options$y): Promise<CreateBoilerplateCategoryResponse>;
|
|
328
|
+
}
|
|
329
|
+
type CreateBoilerplateCategoryResponsePayload = {
|
|
330
|
+
boilerplateCategory: {
|
|
331
|
+
id: string;
|
|
332
|
+
title: string;
|
|
333
|
+
description?: string;
|
|
334
|
+
account: string;
|
|
335
|
+
createdAt: string;
|
|
336
|
+
updatedAt: string;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
declare class CreateBoilerplateCategoryResponse {
|
|
340
|
+
response: Response;
|
|
341
|
+
constructor(response: Response);
|
|
342
|
+
result(): Promise<CreateBoilerplateCategoryResponsePayload>;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Great Detail Support System.
|
|
347
|
+
*
|
|
348
|
+
* @copyright 2024 Great Detail Ltd
|
|
349
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
350
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
351
|
+
* @see https://greatdetail.com
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
interface Options$x {
|
|
355
|
+
id: string;
|
|
356
|
+
request?: RequestInit;
|
|
357
|
+
}
|
|
358
|
+
declare class GetBoilerplateCategory {
|
|
359
|
+
protected _transport: FetchTransport;
|
|
360
|
+
constructor(_transport: FetchTransport);
|
|
361
|
+
send({ id, request }: Options$x): Promise<GetBoilerplateCategoryResponse>;
|
|
362
|
+
}
|
|
363
|
+
type GetBoilerplateCategoryResponsePayload = {
|
|
364
|
+
boilerplateCategory: {
|
|
365
|
+
id: string;
|
|
366
|
+
title: string;
|
|
367
|
+
description?: string;
|
|
368
|
+
account: string;
|
|
369
|
+
createdAt: string;
|
|
370
|
+
updatedAt: string;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
declare class GetBoilerplateCategoryResponse {
|
|
374
|
+
response: Response;
|
|
375
|
+
constructor(response: Response);
|
|
376
|
+
result(): Promise<GetBoilerplateCategoryResponsePayload>;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Great Detail Support System.
|
|
381
|
+
*
|
|
382
|
+
* @copyright 2024 Great Detail Ltd
|
|
383
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
384
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
385
|
+
* @see https://greatdetail.com
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
interface Options$w {
|
|
389
|
+
request?: RequestInit;
|
|
390
|
+
}
|
|
391
|
+
declare class ListBoilerplateCategories {
|
|
392
|
+
protected _transport: FetchTransport;
|
|
393
|
+
constructor(_transport: FetchTransport);
|
|
394
|
+
send({ request }?: Options$w): Promise<ListBoilerplateCategoriesResponse>;
|
|
395
|
+
}
|
|
396
|
+
type ListBoilerplateCategoriesResponsePayload = {
|
|
397
|
+
boilerplateCategories: {
|
|
398
|
+
id: string;
|
|
399
|
+
title: string;
|
|
400
|
+
description?: string;
|
|
401
|
+
account: string;
|
|
402
|
+
createdAt: string;
|
|
403
|
+
updatedAt: string;
|
|
404
|
+
}[];
|
|
405
|
+
};
|
|
406
|
+
declare class ListBoilerplateCategoriesResponse {
|
|
407
|
+
response: Response;
|
|
408
|
+
constructor(response: Response);
|
|
409
|
+
result(): Promise<ListBoilerplateCategoriesResponsePayload>;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Great Detail Support System.
|
|
414
|
+
*
|
|
415
|
+
* @copyright 2024 Great Detail Ltd
|
|
416
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
417
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
418
|
+
* @see https://greatdetail.com
|
|
419
|
+
*/
|
|
420
|
+
|
|
421
|
+
interface Options$v {
|
|
422
|
+
id: string;
|
|
423
|
+
body: z.infer<typeof UpdateBoilerplateCategory.SCHEMA>;
|
|
424
|
+
request?: RequestInit;
|
|
425
|
+
}
|
|
426
|
+
declare class UpdateBoilerplateCategory {
|
|
427
|
+
protected _transport: FetchTransport;
|
|
428
|
+
static SCHEMA: z.ZodObject<{
|
|
429
|
+
title: z.ZodOptional<z.ZodString>;
|
|
430
|
+
description: z.ZodOptional<z.ZodString>;
|
|
431
|
+
}, "strip", z.ZodTypeAny, {
|
|
432
|
+
title?: string | undefined;
|
|
433
|
+
description?: string | undefined;
|
|
434
|
+
}, {
|
|
435
|
+
title?: string | undefined;
|
|
436
|
+
description?: string | undefined;
|
|
437
|
+
}>;
|
|
438
|
+
constructor(_transport: FetchTransport);
|
|
439
|
+
send({ id, body, request }: Options$v): Promise<UpdateBoilerplateCategoryResponse>;
|
|
440
|
+
}
|
|
441
|
+
type UpdateBoilerplateCategoryResponsePayload = {
|
|
442
|
+
boilerplateCategory: {
|
|
443
|
+
id: string;
|
|
444
|
+
title: string;
|
|
445
|
+
description?: string;
|
|
446
|
+
account: string;
|
|
447
|
+
createdAt: string;
|
|
448
|
+
updatedAt: string;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
declare class UpdateBoilerplateCategoryResponse {
|
|
452
|
+
response: Response;
|
|
453
|
+
constructor(response: Response);
|
|
454
|
+
result(): Promise<UpdateBoilerplateCategoryResponsePayload>;
|
|
455
|
+
}
|
|
456
|
+
|
|
259
457
|
/**
|
|
260
458
|
* Great Detail Support System.
|
|
261
459
|
*
|
|
@@ -1401,9 +1599,18 @@ declare class Client {
|
|
|
1401
1599
|
get boilerplate(): {
|
|
1402
1600
|
get: GetBoilerplate;
|
|
1403
1601
|
list: ListBoilerplates;
|
|
1404
|
-
create: CreateBoilerplate;
|
|
1405
1602
|
update: UpdateBoilerplate;
|
|
1406
1603
|
};
|
|
1604
|
+
get boilerplateCategory(): {
|
|
1605
|
+
get: GetBoilerplateCategory;
|
|
1606
|
+
list: ListBoilerplateCategories;
|
|
1607
|
+
create: CreateBoilerplateCategory;
|
|
1608
|
+
update: UpdateBoilerplateCategory;
|
|
1609
|
+
boilerplate: {
|
|
1610
|
+
list: ListBoilerplateCategoryBoilerplates;
|
|
1611
|
+
create: CreateBoilerplateCategoryBoilerplate;
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1407
1614
|
get channel(): {
|
|
1408
1615
|
list: ListChannels;
|
|
1409
1616
|
};
|
|
@@ -1468,4 +1675,4 @@ declare class Client {
|
|
|
1468
1675
|
};
|
|
1469
1676
|
}
|
|
1470
1677
|
|
|
1471
|
-
export { type Authentication as A, type
|
|
1678
|
+
export { type Authentication as A, type CreateCorrectionResponsePayload as B, Client as C, type DeleteLabelResponsePayload as D, type CreateResponseResponsePayload as E, type CreateContactNoteResponsePayload as F, type GetBoilerplateResponsePayload as G, type CreateConversationNoteResponsePayload as H, type GetNoteResponsePayload as I, type ListContactNotesResponsePayload as J, type ListConversationNotesResponsePayload as K, type ListActionsResponsePayload as L, type UpdateNoteResponsePayload as M, type GetSourceResponsePayload as N, type Options as O, type ListSourcesResponsePayload as P, type RequestFilterable as R, type UpdateBoilerplateResponsePayload as U, type Options$G as a, type CreateBoilerplateCategoryBoilerplateResponsePayload as b, type ListBoilerplateCategoryBoilerplatesResponsePayload as c, type ListBoilerplatesResponsePayload as d, type CreateBoilerplateCategoryResponsePayload as e, type GetBoilerplateCategoryResponsePayload as f, type ListBoilerplateCategoriesResponsePayload as g, type UpdateBoilerplateCategoryResponsePayload as h, type ListChannelsResponsePayload as i, type CreateContactResponsePayload as j, type GetContactResponsePayload as k, type ListContactsResponsePayload as l, type ListLabelContactsResponsePayload as m, type UpdateContactResponsePayload as n, type GetConversationResponsePayload as o, type ListConversationsResponsePayload as p, type ListLabelConversationsResponsePayload as q, type UpdateConversationResponsePayload as r, type CreateLabelResponsePayload as s, type GetLabelResponsePayload as t, type ListLabelsResponsePayload as u, type UpdateLabelResponsePayload as v, type ListConversationMessagesResponsePayload as w, type ListMessagesResponsePayload as x, type GetModelResponsePayload as y, type ListModelsResponsePayload as z };
|