qorstack-report-sdk 0.0.1

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.
@@ -0,0 +1,841 @@
1
+ export interface ProblemDetails {
2
+ type?: string | null;
3
+ title?: string | null;
4
+ /** @format int32 */
5
+ status?: number | null;
6
+ detail?: string | null;
7
+ instance?: string | null;
8
+ [key: string]: any;
9
+ }
10
+ export interface DashboardSummaryDto {
11
+ /** @format int32 */
12
+ totalGenerated?: number;
13
+ totalGeneratedTrend?: number[];
14
+ /** @format int32 */
15
+ activeProjects?: number;
16
+ /** @format int32 */
17
+ maxProjects?: number;
18
+ /** @format double */
19
+ successRate?: number;
20
+ successRateTrend?: number[];
21
+ /** @format int32 */
22
+ totalTemplates?: number;
23
+ templateBreakdown?: TemplateBreakdownDto[];
24
+ /** @format int32 */
25
+ creditBalance?: number;
26
+ /** @format int32 */
27
+ creditLimit?: number;
28
+ }
29
+ export interface TemplateBreakdownDto {
30
+ type?: string;
31
+ /** @format int32 */
32
+ count?: number;
33
+ }
34
+ export interface ContributionDataDto {
35
+ /** @format int32 */
36
+ totalContributions?: number;
37
+ /** @format double */
38
+ growthPercent?: number;
39
+ busiestDay?: BusiestDayDto;
40
+ /** @format int32 */
41
+ activeDays?: number;
42
+ dailyData?: DailyContributionDto[];
43
+ }
44
+ export interface BusiestDayDto {
45
+ date?: string;
46
+ /** @format int32 */
47
+ count?: number;
48
+ }
49
+ export interface DailyContributionDto {
50
+ date?: string;
51
+ /** @format int32 */
52
+ count?: number;
53
+ }
54
+ export interface UsageDataDto {
55
+ range?: string;
56
+ groupBy?: string;
57
+ /** @format int32 */
58
+ totalVolume?: number;
59
+ data?: UsageDataPointDto[];
60
+ }
61
+ export interface UsageDataPointDto {
62
+ date?: string;
63
+ /** @format int32 */
64
+ count?: number;
65
+ breakdown?: Record<string, number>;
66
+ }
67
+ export interface HourlyUsageDto {
68
+ /** @format int32 */
69
+ hour?: number;
70
+ /** @format int32 */
71
+ count?: number;
72
+ }
73
+ export interface WeeklyUsageDto {
74
+ date?: string;
75
+ /** @format int32 */
76
+ count?: number;
77
+ }
78
+ export interface TemplatePerformanceDto {
79
+ templateKey?: string;
80
+ templateName?: string;
81
+ projectName?: string;
82
+ type?: string;
83
+ /** @format int32 */
84
+ totalGenerations?: number;
85
+ /** @format double */
86
+ avgDurationMs?: number;
87
+ /** @format int64 */
88
+ avgFileSizeBytes?: number;
89
+ /** @format int32 */
90
+ errorCount?: number;
91
+ /** @format double */
92
+ successRate?: number;
93
+ /** @format double */
94
+ errorRate?: number;
95
+ /** @format date-time */
96
+ lastGeneratedAt?: string | null;
97
+ }
98
+ export interface PaginatedListOfGenerationDto {
99
+ items?: GenerationDto[];
100
+ /** @format int32 */
101
+ pageNumber?: number;
102
+ /** @format int32 */
103
+ totalPages?: number;
104
+ /** @format int32 */
105
+ totalCount?: number;
106
+ hasPreviousPage?: boolean;
107
+ hasNextPage?: boolean;
108
+ }
109
+ export interface GenerationDto {
110
+ /** @format guid */
111
+ id?: string;
112
+ templateName?: string | null;
113
+ templateKey?: string | null;
114
+ type?: string | null;
115
+ status?: string;
116
+ /** @format date-time */
117
+ createdDatetime?: string | null;
118
+ /** @format int64 */
119
+ durationMs?: number | null;
120
+ /** @format int64 */
121
+ fileSizeBytes?: number | null;
122
+ errorMessage?: string | null;
123
+ downloadUrl?: string | null;
124
+ }
125
+ export interface LoginRequest {
126
+ email?: string;
127
+ password?: string;
128
+ }
129
+ export interface RegisterResponse {
130
+ /** @format guid */
131
+ id?: string;
132
+ email?: string;
133
+ firstName?: string | null;
134
+ lastName?: string | null;
135
+ status?: string;
136
+ refCode?: string;
137
+ }
138
+ export interface RegisterRequest {
139
+ email?: string;
140
+ password?: string;
141
+ firstName?: string;
142
+ lastName?: string;
143
+ }
144
+ export interface VerifyOtpResponse {
145
+ verificationToken?: string;
146
+ }
147
+ export interface VerifyOtpRequest {
148
+ email?: string;
149
+ otp?: string;
150
+ type?: string;
151
+ }
152
+ export interface ForgotPasswordResponse {
153
+ refCode?: string;
154
+ }
155
+ export interface ForgotPasswordRequest {
156
+ email?: string;
157
+ }
158
+ export interface ResetPasswordRequest {
159
+ verificationToken?: string;
160
+ newPassword?: string;
161
+ }
162
+ export interface GoogleLoginRequest {
163
+ googleId?: string;
164
+ email?: string;
165
+ firstName?: string;
166
+ lastName?: string;
167
+ photoUrl?: string;
168
+ }
169
+ export interface GithubLoginRequest {
170
+ githubId?: string;
171
+ email?: string;
172
+ name?: string;
173
+ avatarUrl?: string;
174
+ }
175
+ export interface GitlabLoginRequest {
176
+ gitlabId?: string;
177
+ email?: string;
178
+ name?: string;
179
+ avatarUrl?: string;
180
+ }
181
+ export interface ChangePasswordRequest {
182
+ oldPassword?: string;
183
+ newPassword?: string;
184
+ }
185
+ export interface CreateExampleCategoryCommand {
186
+ name?: string;
187
+ }
188
+ export interface PaginatedListOfExampleCategoryDto {
189
+ items?: ExampleCategoryDto[];
190
+ /** @format int32 */
191
+ pageNumber?: number;
192
+ /** @format int32 */
193
+ totalPages?: number;
194
+ /** @format int32 */
195
+ totalCount?: number;
196
+ hasPreviousPage?: boolean;
197
+ hasNextPage?: boolean;
198
+ }
199
+ export interface ExampleCategoryDto {
200
+ /** @format int32 */
201
+ categoryId?: number;
202
+ name?: string;
203
+ /** @format date-time */
204
+ createdDatetime?: string | null;
205
+ createdBy?: string | null;
206
+ /** @format date-time */
207
+ updatedDatetime?: string | null;
208
+ updatedBy?: string | null;
209
+ }
210
+ export interface UpdateExampleCategoryCommand {
211
+ /** @format int32 */
212
+ id?: number;
213
+ name?: string;
214
+ }
215
+ export interface CreateExampleProductCommand {
216
+ name?: string;
217
+ /** @format decimal */
218
+ price?: number;
219
+ /** @format int32 */
220
+ categoryId?: number;
221
+ }
222
+ export interface PaginatedListOfExampleProductDto {
223
+ items?: ExampleProductDto[];
224
+ /** @format int32 */
225
+ pageNumber?: number;
226
+ /** @format int32 */
227
+ totalPages?: number;
228
+ /** @format int32 */
229
+ totalCount?: number;
230
+ hasPreviousPage?: boolean;
231
+ hasNextPage?: boolean;
232
+ }
233
+ export interface ExampleProductDto {
234
+ /** @format int32 */
235
+ productId?: number;
236
+ name?: string;
237
+ /** @format decimal */
238
+ price?: number;
239
+ /** @format int32 */
240
+ categoryId?: number;
241
+ categoryName?: string;
242
+ /** @format date-time */
243
+ createdDatetime?: string | null;
244
+ createdBy?: string | null;
245
+ /** @format date-time */
246
+ updatedDatetime?: string | null;
247
+ updatedBy?: string | null;
248
+ }
249
+ export interface UpdateExampleProductCommand {
250
+ /** @format int32 */
251
+ id?: number;
252
+ name?: string;
253
+ /** @format decimal */
254
+ price?: number;
255
+ /** @format int32 */
256
+ categoryId?: number;
257
+ }
258
+ export interface CreatePaymentResponse {
259
+ /** @format guid */
260
+ paymentId?: string;
261
+ status?: string;
262
+ /** @format decimal */
263
+ amount?: number;
264
+ currency?: string;
265
+ }
266
+ export interface CreatePaymentCommand {
267
+ /** @format guid */
268
+ planId?: string;
269
+ paymentMethod?: string;
270
+ }
271
+ export interface PaginatedListOfPaymentDto {
272
+ items?: PaymentDto[];
273
+ /** @format int32 */
274
+ pageNumber?: number;
275
+ /** @format int32 */
276
+ totalPages?: number;
277
+ /** @format int32 */
278
+ totalCount?: number;
279
+ hasPreviousPage?: boolean;
280
+ hasNextPage?: boolean;
281
+ }
282
+ export interface PaymentDto {
283
+ /** @format guid */
284
+ id?: string;
285
+ /** @format guid */
286
+ userId?: string;
287
+ /** @format guid */
288
+ planId?: string | null;
289
+ /** @format int32 */
290
+ creditAmount?: number | null;
291
+ /** @format guid */
292
+ packageId?: string | null;
293
+ /** @format decimal */
294
+ amountMoney?: number;
295
+ currency?: string;
296
+ status?: string | null;
297
+ paymentMethod?: string | null;
298
+ externalRef?: string | null;
299
+ createdBy?: string | null;
300
+ /** @format date-time */
301
+ createdDatetime?: string | null;
302
+ updatedBy?: string | null;
303
+ /** @format date-time */
304
+ updatedDatetime?: string | null;
305
+ }
306
+ export interface PaginatedListOfPlanDto {
307
+ items?: PlanDto[];
308
+ /** @format int32 */
309
+ pageNumber?: number;
310
+ /** @format int32 */
311
+ totalPages?: number;
312
+ /** @format int32 */
313
+ totalCount?: number;
314
+ hasPreviousPage?: boolean;
315
+ hasNextPage?: boolean;
316
+ }
317
+ export interface PlanDto {
318
+ /** @format guid */
319
+ id?: string;
320
+ name?: string;
321
+ code?: string;
322
+ /** @format decimal */
323
+ price?: number | null;
324
+ currency?: string | null;
325
+ featuresConfig?: string;
326
+ isShow?: boolean | null;
327
+ /** @format int32 */
328
+ displayOrder?: number | null;
329
+ isActive?: boolean | null;
330
+ createdBy?: string | null;
331
+ /** @format date-time */
332
+ createdDatetime?: string | null;
333
+ updatedBy?: string | null;
334
+ /** @format date-time */
335
+ updatedDatetime?: string | null;
336
+ }
337
+ export interface ProjectDto {
338
+ /** @format guid */
339
+ id?: string;
340
+ name?: string;
341
+ description?: string | null;
342
+ status?: string | null;
343
+ /** @format date-time */
344
+ createdDatetime?: string | null;
345
+ }
346
+ export interface CreateProjectRequest {
347
+ name?: string;
348
+ description?: string | null;
349
+ }
350
+ export interface UpdateProjectRequest {
351
+ name?: string;
352
+ description?: string | null;
353
+ }
354
+ export interface ProjectApiKeyDto {
355
+ apiKey?: string;
356
+ }
357
+ export interface CreateProjectApiKeyRequest {
358
+ name?: string;
359
+ }
360
+ export type ExportPdfUrlResponse = RenderResponse & object;
361
+ export interface RenderResponse {
362
+ /** @format guid */
363
+ jobId?: string;
364
+ downloadUrl?: string | null;
365
+ /** @format int32 */
366
+ expiresIn?: number;
367
+ fileType?: string;
368
+ status?: string;
369
+ isZipped?: boolean;
370
+ }
371
+ export type PdfFromTemplateRequest = DocumentProcessingRequestBase & {
372
+ templateKey?: string;
373
+ fileName?: string | null;
374
+ fileType?: string;
375
+ table?: WordTableDataRequest[] | null;
376
+ };
377
+ export type WordTableDataRequest = TableDataRequest & {
378
+ repeatHeader?: boolean;
379
+ };
380
+ export interface TableDataRequest {
381
+ rows?: Record<string, any>[];
382
+ sort?: SortDefinition[] | null;
383
+ verticalMerge?: string[] | null;
384
+ collapse?: string[] | null;
385
+ }
386
+ export interface SortDefinition {
387
+ field?: string;
388
+ direction?: string;
389
+ }
390
+ export interface DocumentProcessingRequestBase {
391
+ replace?: Record<string, string>;
392
+ image?: Record<string, ImageDataRequest>;
393
+ qrcode?: Record<string, QrCodeDataRequest>;
394
+ barcode?: Record<string, BarcodeDataRequest>;
395
+ pdfPassword?: PdfPasswordRequest | null;
396
+ watermark?: PdfWatermarkRequest | null;
397
+ zipOutput?: boolean;
398
+ }
399
+ export interface ImageDataRequest {
400
+ src?: string;
401
+ /** @format int32 */
402
+ width?: number | null;
403
+ /** @format int32 */
404
+ height?: number | null;
405
+ fit?: string | null;
406
+ }
407
+ export interface QrCodeDataRequest {
408
+ text?: string;
409
+ /** @format int32 */
410
+ size?: number;
411
+ color?: string | null;
412
+ backgroundColor?: string | null;
413
+ logo?: string | null;
414
+ }
415
+ export interface BarcodeDataRequest {
416
+ text?: string;
417
+ format?: string;
418
+ /** @format int32 */
419
+ width?: number;
420
+ /** @format int32 */
421
+ height?: number;
422
+ includeText?: boolean;
423
+ color?: string | null;
424
+ backgroundColor?: string | null;
425
+ }
426
+ export interface PdfPasswordRequest {
427
+ userPassword?: string | null;
428
+ ownerPassword?: string | null;
429
+ restrictPrinting?: boolean;
430
+ restrictCopying?: boolean;
431
+ restrictModifying?: boolean;
432
+ }
433
+ export interface PdfWatermarkRequest {
434
+ type?: string;
435
+ text?: string | null;
436
+ imageSrc?: string | null;
437
+ /** @format double */
438
+ fontSize?: number;
439
+ fontFamily?: string;
440
+ color?: string;
441
+ /** @format double */
442
+ opacity?: number;
443
+ /** @format double */
444
+ rotation?: number;
445
+ positionX?: string;
446
+ positionY?: string;
447
+ /** @format double */
448
+ width?: number | null;
449
+ /** @format double */
450
+ height?: number | null;
451
+ pages?: number[] | null;
452
+ }
453
+ export interface KeyValuePairOfStringAndJsonNode {
454
+ key?: string;
455
+ value?: JsonNode | null;
456
+ }
457
+ export interface JsonNode {
458
+ underlyingElement?: any;
459
+ options?: JsonNodeOptions | null;
460
+ parent?: JsonNode | null;
461
+ root?: JsonNode;
462
+ }
463
+ export interface JsonNodeOptions {
464
+ propertyNameCaseInsensitive?: boolean;
465
+ }
466
+ export interface ExportExcelUrlResponse {
467
+ /** @format guid */
468
+ jobId?: string;
469
+ downloadUrl?: string | null;
470
+ /** @format int32 */
471
+ expiresIn?: number;
472
+ status?: string;
473
+ fileType?: string;
474
+ isZipped?: boolean;
475
+ }
476
+ export type ExcelFromTemplateRequest = DocumentProcessingRequestBase & {
477
+ templateKey?: string;
478
+ fileName?: string | null;
479
+ fileType?: string;
480
+ table?: ExcelTableDataRequest[] | null;
481
+ };
482
+ export type ExcelTableDataRequest = TableDataRequest & {
483
+ autoFilter?: boolean;
484
+ freezeHeader?: boolean;
485
+ autoFitColumns?: boolean;
486
+ asExcelTable?: boolean;
487
+ excelTableStyle?: string | null;
488
+ outline?: boolean;
489
+ generateTotals?: Record<string, string>;
490
+ numberFormat?: Record<string, string>;
491
+ conditionalFormat?: ConditionalFormatConfigRequest[] | null;
492
+ splitToSheets?: SplitToSheetsConfigRequest | null;
493
+ };
494
+ export interface ConditionalFormatConfigRequest {
495
+ field?: string;
496
+ rules?: ConditionalFormatRuleRequest[];
497
+ }
498
+ export interface ConditionalFormatRuleRequest {
499
+ value?: any;
500
+ operator?: string | null;
501
+ fontColor?: string | null;
502
+ backgroundColor?: string | null;
503
+ bold?: boolean | null;
504
+ italic?: boolean | null;
505
+ }
506
+ export interface SplitToSheetsConfigRequest {
507
+ field?: string;
508
+ templateSheet?: string | null;
509
+ }
510
+ export interface PaginatedListOfReportJobDto {
511
+ items?: ReportJobDto[];
512
+ /** @format int32 */
513
+ pageNumber?: number;
514
+ /** @format int32 */
515
+ totalPages?: number;
516
+ /** @format int32 */
517
+ totalCount?: number;
518
+ hasPreviousPage?: boolean;
519
+ hasNextPage?: boolean;
520
+ }
521
+ export interface ReportJobDto {
522
+ /** @format guid */
523
+ id?: string;
524
+ /** @format guid */
525
+ userId?: string;
526
+ /** @format guid */
527
+ apiKeyId?: string | null;
528
+ /** @format guid */
529
+ subscriptionId?: string | null;
530
+ sourceType?: string | null;
531
+ /** @format guid */
532
+ templateVersionId?: string | null;
533
+ chargedType?: string | null;
534
+ status?: string | null;
535
+ requestData?: string | null;
536
+ outputFilePath?: string | null;
537
+ errorMessage?: string | null;
538
+ /** @format date-time */
539
+ startedAt?: string | null;
540
+ /** @format date-time */
541
+ finishedAt?: string | null;
542
+ /** @format int64 */
543
+ durationMs?: number | null;
544
+ /** @format int64 */
545
+ fileSizeBytes?: number | null;
546
+ createdBy?: string | null;
547
+ /** @format date-time */
548
+ createdDatetime?: string | null;
549
+ updatedBy?: string | null;
550
+ /** @format date-time */
551
+ updatedDatetime?: string | null;
552
+ }
553
+ export interface CreateReportJobResponse {
554
+ /** @format guid */
555
+ jobId?: string;
556
+ status?: string;
557
+ chargedType?: string;
558
+ }
559
+ export interface CreateReportJobCommand {
560
+ templateKey?: string;
561
+ requestData?: JsonDocument;
562
+ }
563
+ export interface JsonDocument {
564
+ isDisposable?: boolean;
565
+ rootElement?: any;
566
+ }
567
+ export interface ProfileDto {
568
+ /** @format guid */
569
+ id?: string;
570
+ email?: string;
571
+ firstName?: string | null;
572
+ lastName?: string | null;
573
+ profileImageUrl?: string | null;
574
+ /** @format int32 */
575
+ creditBalance?: number;
576
+ }
577
+ export interface UpdateProfileRequest {
578
+ firstName?: string | null;
579
+ lastName?: string | null;
580
+ profileImageUrl?: string | null;
581
+ }
582
+ export type TemplateDetailResponse = TemplateResponse & {
583
+ fileSandboxLastTestPresigned?: string | null;
584
+ };
585
+ export type TemplateResponse = TemplateDto & {
586
+ activeVersion?: TemplateVersionResponse | null;
587
+ allVersions?: TemplateVersionResponse[];
588
+ sandboxPayload?: string | null;
589
+ };
590
+ export type TemplateVersionResponse = TemplateVersionDto & {
591
+ previewFilePathPresigned?: string | null;
592
+ };
593
+ export interface TemplateVersionDto {
594
+ /** @format guid */
595
+ id?: string;
596
+ /** @format guid */
597
+ templateId?: string;
598
+ /** @format int32 */
599
+ version?: number;
600
+ filePath?: string;
601
+ status?: string | null;
602
+ previewFilePath?: string | null;
603
+ sandboxPayload?: string | null;
604
+ sandboxFilePath?: string | null;
605
+ createdBy?: string | null;
606
+ /** @format date-time */
607
+ createdDatetime?: string | null;
608
+ updatedBy?: string | null;
609
+ /** @format date-time */
610
+ updatedDatetime?: string | null;
611
+ }
612
+ export interface TemplateDto {
613
+ /** @format guid */
614
+ id?: string;
615
+ /** @format guid */
616
+ userId?: string;
617
+ /** @format guid */
618
+ projectId?: string | null;
619
+ templateKey?: string;
620
+ name?: string;
621
+ createdBy?: string | null;
622
+ /** @format date-time */
623
+ createdDatetime?: string | null;
624
+ updatedBy?: string | null;
625
+ /** @format date-time */
626
+ updatedDatetime?: string | null;
627
+ }
628
+ export interface PaginatedListOfTemplateResponse {
629
+ items?: TemplateResponse[];
630
+ /** @format int32 */
631
+ pageNumber?: number;
632
+ /** @format int32 */
633
+ totalPages?: number;
634
+ /** @format int32 */
635
+ totalCount?: number;
636
+ hasPreviousPage?: boolean;
637
+ hasNextPage?: boolean;
638
+ }
639
+ export interface SwitchVersionRequest {
640
+ /** @format int32 */
641
+ version?: number | null;
642
+ }
643
+ export interface DownloadTemplateResponse {
644
+ url?: string;
645
+ }
646
+ export interface PaginatedListOfCreditTransactionDto {
647
+ items?: CreditTransactionDto[];
648
+ /** @format int32 */
649
+ pageNumber?: number;
650
+ /** @format int32 */
651
+ totalPages?: number;
652
+ /** @format int32 */
653
+ totalCount?: number;
654
+ hasPreviousPage?: boolean;
655
+ hasNextPage?: boolean;
656
+ }
657
+ export interface CreditTransactionDto {
658
+ /** @format guid */
659
+ id?: string;
660
+ /** @format guid */
661
+ userId?: string;
662
+ /** @format guid */
663
+ paymentId?: string | null;
664
+ transactionType?: string;
665
+ /** @format int32 */
666
+ amount?: number;
667
+ /** @format int32 */
668
+ balanceAfter?: number;
669
+ referenceId?: string | null;
670
+ createdBy?: string | null;
671
+ /** @format date-time */
672
+ createdDatetime?: string | null;
673
+ updatedBy?: string | null;
674
+ /** @format date-time */
675
+ updatedDatetime?: string | null;
676
+ }
677
+ export interface CreateUserResponse {
678
+ /** @format guid */
679
+ id?: string;
680
+ }
681
+ export interface CreateUserRequest {
682
+ email?: string;
683
+ password?: string;
684
+ firstName?: string | null;
685
+ lastName?: string | null;
686
+ status?: string | null;
687
+ }
688
+ export interface PaginatedListOfUserDto {
689
+ items?: UserDto[];
690
+ /** @format int32 */
691
+ pageNumber?: number;
692
+ /** @format int32 */
693
+ totalPages?: number;
694
+ /** @format int32 */
695
+ totalCount?: number;
696
+ hasPreviousPage?: boolean;
697
+ hasNextPage?: boolean;
698
+ }
699
+ export interface UserDto {
700
+ /** @format guid */
701
+ id?: string;
702
+ email?: string;
703
+ passwordHash?: string | null;
704
+ firstName?: string | null;
705
+ lastName?: string | null;
706
+ phoneNumber?: string | null;
707
+ profileImageUrl?: string | null;
708
+ googleId?: string | null;
709
+ githubId?: string | null;
710
+ gitlabId?: string | null;
711
+ /** @format int32 */
712
+ creditBalance?: number;
713
+ status?: string | null;
714
+ createdBy?: string | null;
715
+ /** @format date-time */
716
+ createdDatetime?: string | null;
717
+ updatedBy?: string | null;
718
+ /** @format date-time */
719
+ updatedDatetime?: string | null;
720
+ }
721
+ export interface UpdateUserRequest {
722
+ email?: string | null;
723
+ firstName?: string | null;
724
+ lastName?: string | null;
725
+ status?: string | null;
726
+ }
727
+ export interface CreateApiKeyResponse {
728
+ /** @format guid */
729
+ id?: string;
730
+ apiKey?: string;
731
+ }
732
+ export interface CreateApiKeyRequest {
733
+ name?: string | null;
734
+ /** @format int32 */
735
+ quotaPerDay?: number | null;
736
+ }
737
+ export interface ApiKeyDto {
738
+ /** @format guid */
739
+ id?: string;
740
+ /** @format guid */
741
+ userId?: string;
742
+ /** @format guid */
743
+ projectId?: string | null;
744
+ xApiKey?: string;
745
+ name?: string | null;
746
+ isActive?: boolean | null;
747
+ createdBy?: string | null;
748
+ /** @format date-time */
749
+ createdDatetime?: string | null;
750
+ updatedBy?: string | null;
751
+ /** @format date-time */
752
+ updatedDatetime?: string | null;
753
+ }
754
+ export type QueryParamsType = Record<string | number, any>;
755
+ export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
756
+ export interface FullRequestParams extends Omit<RequestInit, "body"> {
757
+ /** set parameter to `true` for call `securityWorker` for this request */
758
+ secure?: boolean;
759
+ /** request path */
760
+ path: string;
761
+ /** content type of request body */
762
+ type?: ContentType;
763
+ /** query params */
764
+ query?: QueryParamsType;
765
+ /** format of response (i.e. response.json() -> format: "json") */
766
+ format?: ResponseFormat;
767
+ /** request body */
768
+ body?: unknown;
769
+ /** base url */
770
+ baseUrl?: string;
771
+ /** request cancellation token */
772
+ cancelToken?: CancelToken;
773
+ }
774
+ export type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
775
+ export interface ApiConfig<SecurityDataType = unknown> {
776
+ baseUrl?: string;
777
+ baseApiParams?: Omit<RequestParams, "baseUrl" | "cancelToken" | "signal">;
778
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<RequestParams | void> | RequestParams | void;
779
+ customFetch?: typeof fetch;
780
+ }
781
+ export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
782
+ data: D;
783
+ error: E;
784
+ }
785
+ type CancelToken = Symbol | string | number;
786
+ export declare enum ContentType {
787
+ Json = "application/json",
788
+ JsonApi = "application/vnd.api+json",
789
+ FormData = "multipart/form-data",
790
+ UrlEncoded = "application/x-www-form-urlencoded",
791
+ Text = "text/plain"
792
+ }
793
+ export declare class HttpClient<SecurityDataType = unknown> {
794
+ baseUrl: string;
795
+ private securityData;
796
+ private securityWorker?;
797
+ private abortControllers;
798
+ private customFetch;
799
+ private baseApiParams;
800
+ constructor(apiConfig?: ApiConfig<SecurityDataType>);
801
+ setSecurityData: (data: SecurityDataType | null) => void;
802
+ protected encodeQueryParam(key: string, value: any): string;
803
+ protected addQueryParam(query: QueryParamsType, key: string): string;
804
+ protected addArrayQueryParam(query: QueryParamsType, key: string): any;
805
+ protected toQueryString(rawQuery?: QueryParamsType): string;
806
+ protected addQueryParams(rawQuery?: QueryParamsType): string;
807
+ private contentFormatters;
808
+ protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
809
+ protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
810
+ abortRequest: (cancelToken: CancelToken) => void;
811
+ request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
812
+ }
813
+ /**
814
+ * @title Qorstack Report API
815
+ * @version v1
816
+ *
817
+ * API for generating PDF reports from Word templates
818
+ */
819
+ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
820
+ render: {
821
+ /**
822
+ * No description
823
+ *
824
+ * @tags Render
825
+ * @name PostRenderWordTemplate
826
+ * @request POST:/render/word/template
827
+ * @secure
828
+ */
829
+ postRenderWordTemplate: (data: PdfFromTemplateRequest, params?: RequestParams) => Promise<HttpResponse<ExportPdfUrlResponse, ProblemDetails>>;
830
+ /**
831
+ * No description
832
+ *
833
+ * @tags Render
834
+ * @name PostRenderExcelTemplate
835
+ * @request POST:/render/excel/template
836
+ * @secure
837
+ */
838
+ postRenderExcelTemplate: (data: ExcelFromTemplateRequest, params?: RequestParams) => Promise<HttpResponse<ExportExcelUrlResponse, ProblemDetails>>;
839
+ };
840
+ }
841
+ export {};