@great-detail/support-sdk 0.2.1 → 0.2.2
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-WAY6IGDK.js +1 -0
- package/dist/{chunk-QJODVR4A.js → chunk-YQ6LXSV4.js} +1 -1
- 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-Dj17QRj0.d.cts → index-BwsedLC7.d.cts} +128 -51
- package/dist/{index-Dj17QRj0.d.ts → index-BwsedLC7.d.ts} +128 -51
- 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/Client/index.ts +9 -0
- package/src/Contact/ContactVCF/GetContactVCF.ts +10 -8
- package/src/Note/GetNote.ts +45 -0
- package/src/Note/UpdateNote.ts +56 -0
- package/src/index.ts +4 -0
- package/dist/chunk-3OAKTXT5.js +0 -1
|
@@ -27,7 +27,7 @@ interface RequestFilterable {
|
|
|
27
27
|
* @see https://greatdetail.com
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
interface Options$
|
|
30
|
+
interface Options$t {
|
|
31
31
|
requestFilterables: RequestFilterable[];
|
|
32
32
|
}
|
|
33
33
|
interface Transport {
|
|
@@ -43,7 +43,7 @@ interface Transport {
|
|
|
43
43
|
* @see https://greatdetail.com
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
|
-
interface InputOptions extends Options$
|
|
46
|
+
interface InputOptions extends Options$t {
|
|
47
47
|
baseURL: string;
|
|
48
48
|
/**
|
|
49
49
|
* Alternative Fetch Provider.
|
|
@@ -54,12 +54,12 @@ interface InputOptions extends Options$r {
|
|
|
54
54
|
*/
|
|
55
55
|
fetch?: typeof fetch;
|
|
56
56
|
}
|
|
57
|
-
interface Options$
|
|
57
|
+
interface Options$s extends Options$t {
|
|
58
58
|
baseURL: string;
|
|
59
59
|
fetch: typeof fetch;
|
|
60
60
|
}
|
|
61
61
|
declare class FetchTransport implements Transport {
|
|
62
|
-
options: Options$
|
|
62
|
+
options: Options$s;
|
|
63
63
|
constructor({ baseURL, fetch: fetchAlternative, ...options }: InputOptions);
|
|
64
64
|
getURL(url: string): string;
|
|
65
65
|
getRequest(url: string, request: RequestInit): Request;
|
|
@@ -75,13 +75,13 @@ declare class FetchTransport implements Transport {
|
|
|
75
75
|
* @see https://greatdetail.com
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
interface Options$
|
|
78
|
+
interface Options$r {
|
|
79
79
|
request?: RequestInit;
|
|
80
80
|
}
|
|
81
81
|
declare class ListActions {
|
|
82
82
|
protected _transport: FetchTransport;
|
|
83
83
|
constructor(_transport: FetchTransport);
|
|
84
|
-
send({ request }?: Options$
|
|
84
|
+
send({ request }?: Options$r): Promise<ListActionsResponse>;
|
|
85
85
|
}
|
|
86
86
|
type ListActionsResponsePayload = {
|
|
87
87
|
actions: {
|
|
@@ -123,13 +123,13 @@ type Authentication = RequestFilterable;
|
|
|
123
123
|
* @see https://greatdetail.com
|
|
124
124
|
*/
|
|
125
125
|
|
|
126
|
-
interface Options$
|
|
126
|
+
interface Options$q {
|
|
127
127
|
request?: RequestInit;
|
|
128
128
|
}
|
|
129
129
|
declare class ListChannels {
|
|
130
130
|
protected _transport: FetchTransport;
|
|
131
131
|
constructor(_transport: FetchTransport);
|
|
132
|
-
send({ request }?: Options$
|
|
132
|
+
send({ request }?: Options$q): Promise<ListChannelsResponse>;
|
|
133
133
|
}
|
|
134
134
|
type ListChannelsResponsePayload = {
|
|
135
135
|
channels: ({
|
|
@@ -170,7 +170,7 @@ declare class ListChannelsResponse {
|
|
|
170
170
|
* @see https://greatdetail.com
|
|
171
171
|
*/
|
|
172
172
|
|
|
173
|
-
interface Options$
|
|
173
|
+
interface Options$p {
|
|
174
174
|
id: string;
|
|
175
175
|
vcf?: {
|
|
176
176
|
variant?: "vcard";
|
|
@@ -183,7 +183,8 @@ interface Options$n {
|
|
|
183
183
|
declare class GetContactVCFURL {
|
|
184
184
|
protected _transport: FetchTransport;
|
|
185
185
|
constructor(_transport: FetchTransport);
|
|
186
|
-
|
|
186
|
+
getRelativeURL({ id, vcf }: Options$p): string;
|
|
187
|
+
getURL(options: Options$p): string;
|
|
187
188
|
}
|
|
188
189
|
|
|
189
190
|
/**
|
|
@@ -195,7 +196,7 @@ declare class GetContactVCFURL {
|
|
|
195
196
|
* @see https://greatdetail.com
|
|
196
197
|
*/
|
|
197
198
|
|
|
198
|
-
interface Options$
|
|
199
|
+
interface Options$o {
|
|
199
200
|
body: z.infer<typeof CreateContact.SCHEMA>;
|
|
200
201
|
request?: RequestInit;
|
|
201
202
|
}
|
|
@@ -218,7 +219,7 @@ declare class CreateContact {
|
|
|
218
219
|
telephoneNumber?: string | undefined;
|
|
219
220
|
}>;
|
|
220
221
|
constructor(_transport: FetchTransport);
|
|
221
|
-
send({ body, request }: Options$
|
|
222
|
+
send({ body, request }: Options$o): Promise<CreateContactResponse>;
|
|
222
223
|
}
|
|
223
224
|
type CreateContactResponsePayload = {
|
|
224
225
|
contact: {
|
|
@@ -246,14 +247,14 @@ declare class CreateContactResponse {
|
|
|
246
247
|
* @see https://greatdetail.com
|
|
247
248
|
*/
|
|
248
249
|
|
|
249
|
-
interface Options$
|
|
250
|
+
interface Options$n {
|
|
250
251
|
id: string;
|
|
251
252
|
request?: RequestInit;
|
|
252
253
|
}
|
|
253
254
|
declare class GetContact {
|
|
254
255
|
protected _transport: FetchTransport;
|
|
255
256
|
constructor(_transport: FetchTransport);
|
|
256
|
-
send({ id, request }: Options$
|
|
257
|
+
send({ id, request }: Options$n): Promise<GetContactResponse>;
|
|
257
258
|
}
|
|
258
259
|
type GetContactResponsePayload = {
|
|
259
260
|
contact: {
|
|
@@ -281,13 +282,13 @@ declare class GetContactResponse {
|
|
|
281
282
|
* @see https://greatdetail.com
|
|
282
283
|
*/
|
|
283
284
|
|
|
284
|
-
interface Options$
|
|
285
|
+
interface Options$m {
|
|
285
286
|
request?: RequestInit;
|
|
286
287
|
}
|
|
287
288
|
declare class ListContacts {
|
|
288
289
|
protected _transport: FetchTransport;
|
|
289
290
|
constructor(_transport: FetchTransport);
|
|
290
|
-
send({ request }?: Options$
|
|
291
|
+
send({ request }?: Options$m): Promise<ListContactsResponse>;
|
|
291
292
|
}
|
|
292
293
|
type ListContactsResponsePayload = {
|
|
293
294
|
contacts: {
|
|
@@ -315,14 +316,14 @@ declare class ListContactsResponse {
|
|
|
315
316
|
* @see https://greatdetail.com
|
|
316
317
|
*/
|
|
317
318
|
|
|
318
|
-
interface Options$
|
|
319
|
+
interface Options$l {
|
|
319
320
|
id: string;
|
|
320
321
|
request?: RequestInit;
|
|
321
322
|
}
|
|
322
323
|
declare class ListLabelContacts {
|
|
323
324
|
protected _transport: FetchTransport;
|
|
324
325
|
constructor(_transport: FetchTransport);
|
|
325
|
-
send({ id, request }: Options$
|
|
326
|
+
send({ id, request }: Options$l): Promise<ListLabelContactsResponse>;
|
|
326
327
|
}
|
|
327
328
|
type ListLabelContactsResponsePayload = {
|
|
328
329
|
contacts: {
|
|
@@ -350,7 +351,7 @@ declare class ListLabelContactsResponse {
|
|
|
350
351
|
* @see https://greatdetail.com
|
|
351
352
|
*/
|
|
352
353
|
|
|
353
|
-
interface Options$
|
|
354
|
+
interface Options$k {
|
|
354
355
|
id: string;
|
|
355
356
|
body: z.infer<typeof UpdateContact.SCHEMA>;
|
|
356
357
|
request?: RequestInit;
|
|
@@ -371,7 +372,7 @@ declare class UpdateContact {
|
|
|
371
372
|
telephoneNumber?: string | undefined;
|
|
372
373
|
}>;
|
|
373
374
|
constructor(_transport: FetchTransport);
|
|
374
|
-
send({ id, body, request }: Options$
|
|
375
|
+
send({ id, body, request }: Options$k): Promise<UpdateContactResponse>;
|
|
375
376
|
}
|
|
376
377
|
type UpdateContactResponsePayload = {
|
|
377
378
|
contact: {
|
|
@@ -399,14 +400,14 @@ declare class UpdateContactResponse {
|
|
|
399
400
|
* @see https://greatdetail.com
|
|
400
401
|
*/
|
|
401
402
|
|
|
402
|
-
interface Options$
|
|
403
|
+
interface Options$j {
|
|
403
404
|
id: string;
|
|
404
405
|
request?: RequestInit;
|
|
405
406
|
}
|
|
406
407
|
declare class GetConversation {
|
|
407
408
|
protected _transport: FetchTransport;
|
|
408
409
|
constructor(_transport: FetchTransport);
|
|
409
|
-
send({ id, request }: Options$
|
|
410
|
+
send({ id, request }: Options$j): Promise<GetConversationResponse>;
|
|
410
411
|
}
|
|
411
412
|
type GetConversationResponsePayload = {
|
|
412
413
|
conversation: {
|
|
@@ -434,13 +435,13 @@ declare class GetConversationResponse {
|
|
|
434
435
|
* @see https://greatdetail.com
|
|
435
436
|
*/
|
|
436
437
|
|
|
437
|
-
interface Options$
|
|
438
|
+
interface Options$i {
|
|
438
439
|
request?: RequestInit;
|
|
439
440
|
}
|
|
440
441
|
declare class ListConversations {
|
|
441
442
|
protected _transport: FetchTransport;
|
|
442
443
|
constructor(_transport: FetchTransport);
|
|
443
|
-
send({ request }?: Options$
|
|
444
|
+
send({ request }?: Options$i): Promise<ListConversationsResponse>;
|
|
444
445
|
}
|
|
445
446
|
type ListConversationsResponsePayload = {
|
|
446
447
|
conversations: {
|
|
@@ -468,14 +469,14 @@ declare class ListConversationsResponse {
|
|
|
468
469
|
* @see https://greatdetail.com
|
|
469
470
|
*/
|
|
470
471
|
|
|
471
|
-
interface Options$
|
|
472
|
+
interface Options$h {
|
|
472
473
|
id: string;
|
|
473
474
|
request?: RequestInit;
|
|
474
475
|
}
|
|
475
476
|
declare class ListLabelConversations {
|
|
476
477
|
protected _transport: FetchTransport;
|
|
477
478
|
constructor(_transport: FetchTransport);
|
|
478
|
-
send({ id, request }: Options$
|
|
479
|
+
send({ id, request }: Options$h): Promise<ListLabelConversationsResponse>;
|
|
479
480
|
}
|
|
480
481
|
type ListLabelConversationsResponsePayload = {
|
|
481
482
|
conversations: {
|
|
@@ -503,7 +504,7 @@ declare class ListLabelConversationsResponse {
|
|
|
503
504
|
* @see https://greatdetail.com
|
|
504
505
|
*/
|
|
505
506
|
|
|
506
|
-
interface Options$
|
|
507
|
+
interface Options$g {
|
|
507
508
|
id: string;
|
|
508
509
|
body: z.infer<typeof UpdateConversation.SCHEMA>;
|
|
509
510
|
request?: RequestInit;
|
|
@@ -518,7 +519,7 @@ declare class UpdateConversation {
|
|
|
518
519
|
hasEnded: boolean;
|
|
519
520
|
}>;
|
|
520
521
|
constructor(_transport: FetchTransport);
|
|
521
|
-
send({ id, body, request }: Options$
|
|
522
|
+
send({ id, body, request }: Options$g): Promise<UpdateConversationResponse>;
|
|
522
523
|
}
|
|
523
524
|
type UpdateConversationResponsePayload = {
|
|
524
525
|
conversation: {
|
|
@@ -546,7 +547,7 @@ declare class UpdateConversationResponse {
|
|
|
546
547
|
* @see https://greatdetail.com
|
|
547
548
|
*/
|
|
548
549
|
|
|
549
|
-
interface Options$
|
|
550
|
+
interface Options$f {
|
|
550
551
|
body: z.infer<typeof CreateLabel.SCHEMA>;
|
|
551
552
|
request?: RequestInit;
|
|
552
553
|
}
|
|
@@ -566,7 +567,7 @@ declare class CreateLabel {
|
|
|
566
567
|
description?: string | undefined;
|
|
567
568
|
}>;
|
|
568
569
|
constructor(_transport: FetchTransport);
|
|
569
|
-
send({ body, request }: Options$
|
|
570
|
+
send({ body, request }: Options$f): Promise<CreateLabelResponse>;
|
|
570
571
|
}
|
|
571
572
|
type CreateLabelResponsePayload = {
|
|
572
573
|
label: {
|
|
@@ -593,14 +594,14 @@ declare class CreateLabelResponse {
|
|
|
593
594
|
* @see https://greatdetail.com
|
|
594
595
|
*/
|
|
595
596
|
|
|
596
|
-
interface Options$
|
|
597
|
+
interface Options$e {
|
|
597
598
|
id: string;
|
|
598
599
|
request?: RequestInit;
|
|
599
600
|
}
|
|
600
601
|
declare class DeleteLabel {
|
|
601
602
|
protected _transport: FetchTransport;
|
|
602
603
|
constructor(_transport: FetchTransport);
|
|
603
|
-
send({ id, request }: Options$
|
|
604
|
+
send({ id, request }: Options$e): Promise<DeleteLabelResponse>;
|
|
604
605
|
}
|
|
605
606
|
type DeleteLabelResponsePayload = Record<string, never>;
|
|
606
607
|
declare class DeleteLabelResponse {
|
|
@@ -618,14 +619,14 @@ declare class DeleteLabelResponse {
|
|
|
618
619
|
* @see https://greatdetail.com
|
|
619
620
|
*/
|
|
620
621
|
|
|
621
|
-
interface Options$
|
|
622
|
+
interface Options$d {
|
|
622
623
|
id: string;
|
|
623
624
|
request?: RequestInit;
|
|
624
625
|
}
|
|
625
626
|
declare class GetLabel {
|
|
626
627
|
protected _transport: FetchTransport;
|
|
627
628
|
constructor(_transport: FetchTransport);
|
|
628
|
-
send({ id, request }: Options$
|
|
629
|
+
send({ id, request }: Options$d): Promise<GetLabelResponse>;
|
|
629
630
|
}
|
|
630
631
|
type GetLabelResponsePayload = {
|
|
631
632
|
label: {
|
|
@@ -652,13 +653,13 @@ declare class GetLabelResponse {
|
|
|
652
653
|
* @see https://greatdetail.com
|
|
653
654
|
*/
|
|
654
655
|
|
|
655
|
-
interface Options$
|
|
656
|
+
interface Options$c {
|
|
656
657
|
request?: RequestInit;
|
|
657
658
|
}
|
|
658
659
|
declare class ListLabels {
|
|
659
660
|
protected _transport: FetchTransport;
|
|
660
661
|
constructor(_transport: FetchTransport);
|
|
661
|
-
send({ request }?: Options$
|
|
662
|
+
send({ request }?: Options$c): Promise<ListLabelsResponse>;
|
|
662
663
|
}
|
|
663
664
|
type ListLabelsResponsePayload = {
|
|
664
665
|
labels: {
|
|
@@ -685,7 +686,7 @@ declare class ListLabelsResponse {
|
|
|
685
686
|
* @see https://greatdetail.com
|
|
686
687
|
*/
|
|
687
688
|
|
|
688
|
-
interface Options$
|
|
689
|
+
interface Options$b {
|
|
689
690
|
id: string;
|
|
690
691
|
body: z.infer<typeof UpdateLabel.SCHEMA>;
|
|
691
692
|
request?: RequestInit;
|
|
@@ -703,7 +704,7 @@ declare class UpdateLabel {
|
|
|
703
704
|
description?: string | undefined;
|
|
704
705
|
}>;
|
|
705
706
|
constructor(_transport: FetchTransport);
|
|
706
|
-
send({ id, body, request }: Options$
|
|
707
|
+
send({ id, body, request }: Options$b): Promise<UpdateLabelResponse>;
|
|
707
708
|
}
|
|
708
709
|
type UpdateLabelResponsePayload = {
|
|
709
710
|
label: {
|
|
@@ -730,14 +731,14 @@ declare class UpdateLabelResponse {
|
|
|
730
731
|
* @see https://greatdetail.com
|
|
731
732
|
*/
|
|
732
733
|
|
|
733
|
-
interface Options$
|
|
734
|
+
interface Options$a {
|
|
734
735
|
id: string;
|
|
735
736
|
request?: RequestInit;
|
|
736
737
|
}
|
|
737
738
|
declare class ListConversationMessages {
|
|
738
739
|
protected _transport: FetchTransport;
|
|
739
740
|
constructor(_transport: FetchTransport);
|
|
740
|
-
send({ id, request }: Options$
|
|
741
|
+
send({ id, request }: Options$a): Promise<ListConversationMessagesResponse>;
|
|
741
742
|
}
|
|
742
743
|
type ListConversationMessagesResponsePayload = {
|
|
743
744
|
messages: {
|
|
@@ -773,13 +774,13 @@ declare class ListConversationMessagesResponse {
|
|
|
773
774
|
* @see https://greatdetail.com
|
|
774
775
|
*/
|
|
775
776
|
|
|
776
|
-
interface Options$
|
|
777
|
+
interface Options$9 {
|
|
777
778
|
request?: RequestInit;
|
|
778
779
|
}
|
|
779
780
|
declare class ListMessages {
|
|
780
781
|
protected _transport: FetchTransport;
|
|
781
782
|
constructor(_transport: FetchTransport);
|
|
782
|
-
send({ request }?: Options$
|
|
783
|
+
send({ request }?: Options$9): Promise<ListMessagesResponse>;
|
|
783
784
|
}
|
|
784
785
|
type ListMessagesResponsePayload = {
|
|
785
786
|
messages: {
|
|
@@ -815,7 +816,7 @@ declare class ListMessagesResponse {
|
|
|
815
816
|
* @see https://greatdetail.com
|
|
816
817
|
*/
|
|
817
818
|
|
|
818
|
-
interface Options$
|
|
819
|
+
interface Options$8 {
|
|
819
820
|
id: string;
|
|
820
821
|
body: z.infer<typeof CreateCorrectionModel.SCHEMA>;
|
|
821
822
|
request?: RequestInit;
|
|
@@ -836,7 +837,7 @@ declare class CreateCorrectionModel {
|
|
|
836
837
|
correction: string;
|
|
837
838
|
}>;
|
|
838
839
|
constructor(_transport: FetchTransport);
|
|
839
|
-
send({ id, body, request }: Options$
|
|
840
|
+
send({ id, body, request }: Options$8): Promise<CreateCorrectionModelResponse>;
|
|
840
841
|
}
|
|
841
842
|
type CreateCorrectionResponsePayload = unknown;
|
|
842
843
|
declare class CreateCorrectionModelResponse {
|
|
@@ -854,14 +855,14 @@ declare class CreateCorrectionModelResponse {
|
|
|
854
855
|
* @see https://greatdetail.com
|
|
855
856
|
*/
|
|
856
857
|
|
|
857
|
-
interface Options$
|
|
858
|
+
interface Options$7 {
|
|
858
859
|
id: string;
|
|
859
860
|
request?: RequestInit;
|
|
860
861
|
}
|
|
861
862
|
declare class GetModel {
|
|
862
863
|
protected _transport: FetchTransport;
|
|
863
864
|
constructor(_transport: FetchTransport);
|
|
864
|
-
send({ id, request }: Options$
|
|
865
|
+
send({ id, request }: Options$7): Promise<GetModelResponse>;
|
|
865
866
|
}
|
|
866
867
|
type GetModelResponsePayload = {
|
|
867
868
|
model: {
|
|
@@ -887,13 +888,13 @@ declare class GetModelResponse {
|
|
|
887
888
|
* @see https://greatdetail.com
|
|
888
889
|
*/
|
|
889
890
|
|
|
890
|
-
interface Options$
|
|
891
|
+
interface Options$6 {
|
|
891
892
|
request?: RequestInit;
|
|
892
893
|
}
|
|
893
894
|
declare class ListModels {
|
|
894
895
|
protected _transport: FetchTransport;
|
|
895
896
|
constructor(_transport: FetchTransport);
|
|
896
|
-
send({ request }?: Options$
|
|
897
|
+
send({ request }?: Options$6): Promise<ListModelsResponse>;
|
|
897
898
|
}
|
|
898
899
|
type ListModelsResponsePayload = {
|
|
899
900
|
models: {
|
|
@@ -919,7 +920,7 @@ declare class ListModelsResponse {
|
|
|
919
920
|
* @see https://greatdetail.com
|
|
920
921
|
*/
|
|
921
922
|
|
|
922
|
-
interface Options$
|
|
923
|
+
interface Options$5 {
|
|
923
924
|
id: string;
|
|
924
925
|
body: z.infer<typeof CreateResponseModel.SCHEMA>;
|
|
925
926
|
request?: RequestInit;
|
|
@@ -937,7 +938,7 @@ declare class CreateResponseModel {
|
|
|
937
938
|
content: string | null;
|
|
938
939
|
}>, "many">;
|
|
939
940
|
constructor(_transport: FetchTransport);
|
|
940
|
-
send({ id, body, request }: Options$
|
|
941
|
+
send({ id, body, request }: Options$5): Promise<CreateResponseModelResponse>;
|
|
941
942
|
}
|
|
942
943
|
type CreateResponseResponsePayload = {
|
|
943
944
|
message: string | null;
|
|
@@ -952,6 +953,78 @@ declare class CreateResponseModelResponse {
|
|
|
952
953
|
result(): Promise<CreateResponseResponsePayload>;
|
|
953
954
|
}
|
|
954
955
|
|
|
956
|
+
/**
|
|
957
|
+
* Great Detail Support System.
|
|
958
|
+
*
|
|
959
|
+
* @copyright 2024 Great Detail Ltd
|
|
960
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
961
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
962
|
+
* @see https://greatdetail.com
|
|
963
|
+
*/
|
|
964
|
+
|
|
965
|
+
interface Options$4 {
|
|
966
|
+
id: string;
|
|
967
|
+
request?: RequestInit;
|
|
968
|
+
}
|
|
969
|
+
declare class GetNote {
|
|
970
|
+
protected _transport: FetchTransport;
|
|
971
|
+
constructor(_transport: FetchTransport);
|
|
972
|
+
send({ id, request }: Options$4): Promise<GetNoteResponse>;
|
|
973
|
+
}
|
|
974
|
+
type GetNoteResponsePayload = {
|
|
975
|
+
note: {
|
|
976
|
+
id: string;
|
|
977
|
+
content: string;
|
|
978
|
+
createdAt: string;
|
|
979
|
+
updatedAt: string;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
declare class GetNoteResponse {
|
|
983
|
+
response: Response;
|
|
984
|
+
constructor(response: Response);
|
|
985
|
+
result(): Promise<GetNoteResponsePayload>;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Great Detail Support System.
|
|
990
|
+
*
|
|
991
|
+
* @copyright 2024 Great Detail Ltd
|
|
992
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
993
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
994
|
+
* @see https://greatdetail.com
|
|
995
|
+
*/
|
|
996
|
+
|
|
997
|
+
interface Options$3 {
|
|
998
|
+
id: string;
|
|
999
|
+
body: z.infer<typeof UpdateNote.SCHEMA>;
|
|
1000
|
+
request?: RequestInit;
|
|
1001
|
+
}
|
|
1002
|
+
declare class UpdateNote {
|
|
1003
|
+
protected _transport: FetchTransport;
|
|
1004
|
+
static SCHEMA: z.ZodObject<{
|
|
1005
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
}, "strip", z.ZodTypeAny, {
|
|
1007
|
+
content?: string | undefined;
|
|
1008
|
+
}, {
|
|
1009
|
+
content?: string | undefined;
|
|
1010
|
+
}>;
|
|
1011
|
+
constructor(_transport: FetchTransport);
|
|
1012
|
+
send({ id, body, request }: Options$3): Promise<UpdateNoteResponse>;
|
|
1013
|
+
}
|
|
1014
|
+
type UpdateNoteResponsePayload = {
|
|
1015
|
+
note: {
|
|
1016
|
+
id: string;
|
|
1017
|
+
content: string;
|
|
1018
|
+
createdAt: string;
|
|
1019
|
+
updatedAt: string;
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
declare class UpdateNoteResponse {
|
|
1023
|
+
response: Response;
|
|
1024
|
+
constructor(response: Response);
|
|
1025
|
+
result(): Promise<UpdateNoteResponsePayload>;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
955
1028
|
/**
|
|
956
1029
|
* Great Detail Support System.
|
|
957
1030
|
*
|
|
@@ -1085,10 +1158,14 @@ declare class Client {
|
|
|
1085
1158
|
create: CreateCorrectionModel;
|
|
1086
1159
|
};
|
|
1087
1160
|
};
|
|
1161
|
+
get note(): {
|
|
1162
|
+
get: GetNote;
|
|
1163
|
+
update: UpdateNote;
|
|
1164
|
+
};
|
|
1088
1165
|
get source(): {
|
|
1089
1166
|
get: GetSource;
|
|
1090
1167
|
list: ListSources;
|
|
1091
1168
|
};
|
|
1092
1169
|
}
|
|
1093
1170
|
|
|
1094
|
-
export { type Authentication as A, Client as C, type DeleteLabelResponsePayload as D, type GetContactResponsePayload as G, type ListActionsResponsePayload as L, type Options as O, type RequestFilterable as R, type UpdateContactResponsePayload as U, type Options$
|
|
1171
|
+
export { type Authentication as A, Client as C, type DeleteLabelResponsePayload as D, type GetContactResponsePayload as G, type ListActionsResponsePayload as L, type Options as O, type RequestFilterable as R, type UpdateContactResponsePayload as U, type Options$t as a, type ListChannelsResponsePayload as b, type ListContactsResponsePayload as c, type ListLabelContactsResponsePayload as d, type CreateContactResponsePayload as e, type GetConversationResponsePayload as f, type ListConversationsResponsePayload as g, type ListLabelConversationsResponsePayload as h, type UpdateConversationResponsePayload as i, type CreateLabelResponsePayload as j, type GetLabelResponsePayload as k, type ListLabelsResponsePayload as l, type UpdateLabelResponsePayload as m, type ListConversationMessagesResponsePayload as n, type ListMessagesResponsePayload as o, type GetModelResponsePayload as p, type ListModelsResponsePayload as q, type CreateCorrectionResponsePayload as r, type CreateResponseResponsePayload as s, type GetNoteResponsePayload as t, type UpdateNoteResponsePayload as u, type GetSourceResponsePayload as v, type ListSourcesResponsePayload as w };
|