@webitel/api-services 0.0.51 → 0.0.52
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/package.json +1 -1
- package/src/gen/_docs/html/assets/navigation.js +1 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.api.gen.getDictionaries.html +1 -1
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.msw.api.gen.getDeleteTypeMixin3MockHandler.html +1 -0
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.msw.api.gen.getDeleteTypeMixin3ResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/extensions_extensions.api.gen.getExtensions.html +1 -1
- package/src/gen/_docs/html/functions/extensions_extensions.msw.api.gen.getDeleteTypeMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/extensions_extensions.msw.api.gen.getDeleteTypeResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.api.gen.getPdfService.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getDownloadPdfExportMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getDownloadPdfExportResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGeneratePdfExportMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGeneratePdfExportResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGetPdfExportHistoryMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGetPdfExportHistoryResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getPdfServiceMock.html +1 -0
- package/src/gen/_docs/html/functions/records_records.api.gen.getRecords.html +1 -1
- package/src/gen/_docs/html/functions/records_records.msw.api.gen.getLocateMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/records_records.msw.api.gen.getLocateResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/types_types.api.gen.getTypes.html +1 -1
- package/src/gen/_docs/html/functions/types_types.msw.api.gen.getLocateMixin3MockHandler.html +1 -0
- package/src/gen/_docs/html/functions/types_types.msw.api.gen.getLocateMixin3ResponseMock.html +1 -0
- package/src/gen/_docs/html/index.html +1 -1
- package/src/gen/_docs/html/interfaces/_models_webitelPdfPdfExportChunk.WebitelPdfPdfExportChunk.html +4 -0
- package/src/gen/_docs/html/interfaces/_models_webitelPdfPdfExportMetadata.WebitelPdfPdfExportMetadata.html +12 -0
- package/src/gen/_docs/html/interfaces/_models_webitelPdfPdfHistoryRecord.WebitelPdfPdfHistoryRecord.html +20 -0
- package/src/gen/_docs/html/interfaces/_models_webitelPdfPdfHistoryResponse.WebitelPdfPdfHistoryResponse.html +8 -0
- package/src/gen/_docs/html/interfaces/_models_webitelPdfPdfServiceGeneratePdfExportBody.WebitelPdfPdfServiceGeneratePdfExportBody.html +10 -0
- package/src/gen/_docs/html/modules/_models.html +1 -1
- package/src/gen/_docs/html/modules/_models_downloadPdfExport200.html +1 -0
- package/src/gen/_docs/html/modules/_models_downloadPdfExportParams.html +1 -0
- package/src/gen/_docs/html/modules/_models_getPdfExportHistoryParams.html +1 -0
- package/src/gen/_docs/html/modules/_models_locate200.html +1 -0
- package/src/gen/_docs/html/modules/_models_locateParams.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelPdfPdfExportChunk.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelPdfPdfExportMetadata.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelPdfPdfExportStatus.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelPdfPdfHistoryRecord.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelPdfPdfHistoryResponse.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelPdfPdfServiceGeneratePdfExportBody.html +1 -0
- package/src/gen/_docs/html/modules/dictionaries_dictionaries.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/dictionaries_dictionaries.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/dictionaries_dictionaries.zod.gen.html +3 -3
- package/src/gen/_docs/html/modules/extensions_extensions.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/extensions_extensions.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/extensions_extensions.zod.gen.html +3 -3
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/modules/pdf-service_pdf-service.api.gen.html +1 -0
- package/src/gen/_docs/html/modules/pdf-service_pdf-service.msw.api.gen.html +1 -0
- package/src/gen/_docs/html/modules/pdf-service_pdf-service.zod.gen.html +5 -0
- package/src/gen/_docs/html/modules/records_records.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/records_records.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/records_records.zod.gen.html +3 -3
- package/src/gen/_docs/html/modules/types_types.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/types_types.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/types_types.zod.gen.html +3 -3
- package/src/gen/_docs/html/types/_models_deleteTypeMixin3Params.DeleteTypeMixin3Params.html +7 -2
- package/src/gen/_docs/html/types/_models_deleteTypeParams.DeleteTypeParams.html +2 -7
- package/src/gen/_docs/html/types/_models_downloadPdfExport200.DownloadPdfExport200.html +3 -0
- package/src/gen/_docs/html/types/_models_downloadPdfExportParams.DownloadPdfExportParams.html +7 -0
- package/src/gen/_docs/html/types/_models_getPdfExportHistoryParams.GetPdfExportHistoryParams.html +9 -0
- package/src/gen/_docs/html/types/{_models_locateMixin3200.LocateMixin3200.html → _models_locate200.Locate200.html} +1 -1
- package/src/gen/_docs/html/types/{_models_locateMixin3Params.LocateMixin3Params.html → _models_locateParams.LocateParams.html} +2 -2
- package/src/gen/_docs/html/types/_models_webitelPdfPdfExportStatus.WebitelPdfPdfExportStatus.html +9 -0
- package/src/gen/_docs/html/types/dictionaries_dictionaries.api.gen.DeleteTypeMixin3Result.html +1 -0
- package/src/gen/_docs/html/types/extensions_extensions.api.gen.DeleteTypeResult.html +1 -0
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.DownloadPdfExportResult.html +1 -0
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.GeneratePdfExportResult.html +1 -0
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.GetPdfExportHistoryResult.html +1 -0
- package/src/gen/_docs/html/types/{dictionaries_dictionaries.api.gen.DeleteTypeResult.html → records_records.api.gen.LocateResult.html} +1 -1
- package/src/gen/_docs/html/types/types_types.api.gen.LocateMixin3Result.html +1 -0
- package/src/gen/_docs/html/variables/_models_webitelPdfPdfExportStatus.WebitelPdfPdfExportStatus.html +1 -0
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.deleteTypeMixin3QueryParams.html +2 -0
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.deleteTypeMixin3Response.html +1 -0
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.deleteTypeMixin3ResponseDataItemFieldsItemKindDefault.html +1 -0
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.deleteTypeParams.html +2 -0
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.deleteTypeQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.deleteTypeResponse.html +1 -0
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.deleteTypeResponseDataItemFieldsItemKindDefault.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.downloadPdfExportParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.downloadPdfExportQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.downloadPdfExportResponse.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generatePdfExportBody.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generatePdfExportParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generatePdfExportResponse.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getPdfExportHistoryParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getPdfExportHistoryQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getPdfExportHistoryResponse.html +1 -0
- package/src/gen/_docs/html/variables/{records_records.zod.gen.locateMixin3QueryFieldsItemDefault.html → pdf-service_pdf-service.zod.gen.getPdfExportHistoryResponseDataItemStatusDefault.html} +1 -1
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateParams.html +2 -0
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateQueryFieldsItemDefault.html +1 -0
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateResponse.html +1 -0
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateMixin3Params.html +1 -0
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateMixin3Response.html +1 -0
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateMixin3ResponseFieldsItemKindDefault.html +1 -0
- package/src/gen/_models/deleteTypeMixin3Params.ts +10 -0
- package/src/gen/_models/deleteTypeParams.ts +0 -10
- package/src/gen/_models/downloadPdfExport200.ts +13 -0
- package/src/gen/_models/downloadPdfExportParams.ts +13 -0
- package/src/gen/_models/getPdfExportHistoryParams.ts +17 -0
- package/src/gen/_models/index.ts +11 -2
- package/src/gen/_models/{locateMixin3200.ts → locate200.ts} +1 -1
- package/src/gen/_models/{locateMixin3Params.ts → locateParams.ts} +1 -1
- package/src/gen/_models/webitelPdfPdfExportChunk.ts +14 -0
- package/src/gen/_models/webitelPdfPdfExportMetadata.ts +22 -0
- package/src/gen/_models/webitelPdfPdfExportStatus.ts +27 -0
- package/src/gen/_models/webitelPdfPdfHistoryRecord.ts +31 -0
- package/src/gen/_models/webitelPdfPdfHistoryResponse.ts +19 -0
- package/src/gen/_models/webitelPdfPdfServiceGeneratePdfExportBody.ts +20 -0
- package/src/gen/dictionaries/dictionaries.api.gen.ts +5 -5
- package/src/gen/dictionaries/dictionaries.msw.api.gen.ts +4 -4
- package/src/gen/dictionaries/dictionaries.zod.gen.ts +6 -4
- package/src/gen/extensions/extensions.api.gen.ts +5 -5
- package/src/gen/extensions/extensions.msw.api.gen.ts +4 -4
- package/src/gen/extensions/extensions.zod.gen.ts +5 -7
- package/src/gen/index.ts +3 -0
- package/src/gen/pdf-service/pdf-service.api.gen.ts +83 -0
- package/src/gen/pdf-service/pdf-service.msw.api.gen.ts +216 -0
- package/src/gen/pdf-service/pdf-service.zod.gen.ts +153 -0
- package/src/gen/records/records.api.gen.ts +6 -6
- package/src/gen/records/records.msw.api.gen.ts +7 -7
- package/src/gen/records/records.zod.gen.ts +4 -4
- package/src/gen/types/types.api.gen.ts +3 -3
- package/src/gen/types/types.msw.api.gen.ts +4 -4
- package/src/gen/types/types.zod.gen.ts +4 -4
- package/types/gen/_models/deleteTypeMixin3Params.d.ts +10 -0
- package/types/gen/_models/deleteTypeParams.d.ts +0 -10
- package/types/gen/_models/downloadPdfExport200.d.ts +12 -0
- package/types/gen/_models/downloadPdfExportParams.d.ts +12 -0
- package/types/gen/_models/getPdfExportHistoryParams.d.ts +16 -0
- package/types/gen/_models/{locateMixin3200.d.ts → locate200.d.ts} +1 -1
- package/types/gen/_models/{locateMixin3Params.d.ts → locateParams.d.ts} +1 -1
- package/types/gen/_models/webitelPdfPdfExportChunk.d.ts +13 -0
- package/types/gen/_models/webitelPdfPdfExportMetadata.d.ts +21 -0
- package/types/gen/_models/webitelPdfPdfExportStatus.d.ts +23 -0
- package/types/gen/_models/webitelPdfPdfHistoryRecord.d.ts +30 -0
- package/types/gen/_models/webitelPdfPdfHistoryResponse.d.ts +18 -0
- package/types/gen/_models/webitelPdfPdfServiceGeneratePdfExportBody.d.ts +19 -0
- package/types/gen/dictionaries/dictionaries.api.gen.d.ts +3 -3
- package/types/gen/dictionaries/dictionaries.msw.api.gen.d.ts +2 -2
- package/types/gen/dictionaries/dictionaries.zod.gen.d.ts +3 -3
- package/types/gen/extensions/extensions.api.gen.d.ts +3 -3
- package/types/gen/extensions/extensions.msw.api.gen.d.ts +2 -2
- package/types/gen/extensions/extensions.zod.gen.d.ts +4 -4
- package/types/gen/pdf-service/pdf-service.api.gen.d.ts +11 -0
- package/types/gen/pdf-service/pdf-service.msw.api.gen.d.ts +9 -0
- package/types/gen/pdf-service/pdf-service.zod.gen.d.ts +80 -0
- package/types/gen/records/records.api.gen.d.ts +3 -3
- package/types/gen/records/records.msw.api.gen.d.ts +3 -3
- package/types/gen/records/records.zod.gen.d.ts +4 -4
- package/types/gen/types/types.api.gen.d.ts +2 -2
- package/types/gen/types/types.msw.api.gen.d.ts +2 -2
- package/types/gen/types/types.zod.gen.d.ts +3 -3
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.msw.api.gen.getDeleteTypeMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/dictionaries_dictionaries.msw.api.gen.getDeleteTypeResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/extensions_extensions.msw.api.gen.getDeleteTypeMixin3MockHandler.html +0 -1
- package/src/gen/_docs/html/functions/extensions_extensions.msw.api.gen.getDeleteTypeMixin3ResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/records_records.msw.api.gen.getLocateMixin3MockHandler.html +0 -1
- package/src/gen/_docs/html/functions/records_records.msw.api.gen.getLocateMixin3ResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/types_types.msw.api.gen.getLocateMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/types_types.msw.api.gen.getLocateResponseMock.html +0 -1
- package/src/gen/_docs/html/modules/_models_locateMixin3200.html +0 -1
- package/src/gen/_docs/html/modules/_models_locateMixin3Params.html +0 -1
- package/src/gen/_docs/html/types/extensions_extensions.api.gen.DeleteTypeMixin3Result.html +0 -1
- package/src/gen/_docs/html/types/records_records.api.gen.LocateMixin3Result.html +0 -1
- package/src/gen/_docs/html/types/types_types.api.gen.LocateResult.html +0 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.deleteTypeQueryParams.html +0 -2
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.deleteTypeResponse.html +0 -1
- package/src/gen/_docs/html/variables/dictionaries_dictionaries.zod.gen.deleteTypeResponseDataItemFieldsItemKindDefault.html +0 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.deleteTypeMixin3Params.html +0 -2
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.deleteTypeMixin3QueryParams.html +0 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.deleteTypeMixin3Response.html +0 -1
- package/src/gen/_docs/html/variables/extensions_extensions.zod.gen.deleteTypeMixin3ResponseDataItemFieldsItemKindDefault.html +0 -1
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateMixin3Params.html +0 -2
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateMixin3QueryParams.html +0 -1
- package/src/gen/_docs/html/variables/records_records.zod.gen.locateMixin3Response.html +0 -1
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateParams.html +0 -1
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateResponse.html +0 -1
- package/src/gen/_docs/html/variables/types_types.zod.gen.locateResponseFieldsItemKindDefault.html +0 -1
|
@@ -787,14 +787,14 @@ export const createResponse = zod.object({});
|
|
|
787
787
|
* (Record) {
|
|
788
788
|
* @summary Locate dataset record
|
|
789
789
|
*/
|
|
790
|
-
export const
|
|
790
|
+
export const locateParams = zod.object({
|
|
791
791
|
repo: zod.string().describe('[`types.repo`]'),
|
|
792
792
|
id: zod.string().describe('[`record.id`]'),
|
|
793
793
|
});
|
|
794
794
|
|
|
795
|
-
export const
|
|
795
|
+
export const locateQueryFieldsItemDefault = '*';
|
|
796
796
|
|
|
797
|
-
export const
|
|
797
|
+
export const locateQueryParams = zod.object({
|
|
798
798
|
fields: zod
|
|
799
799
|
.array(zod.string())
|
|
800
800
|
.optional()
|
|
@@ -803,7 +803,7 @@ export const locateMixin3QueryParams = zod.object({
|
|
|
803
803
|
),
|
|
804
804
|
});
|
|
805
805
|
|
|
806
|
-
export const
|
|
806
|
+
export const locateResponse = zod.object({});
|
|
807
807
|
|
|
808
808
|
/**
|
|
809
809
|
* (Record) {
|
|
@@ -37,7 +37,7 @@ export const // --- title start
|
|
|
37
37
|
/**
|
|
38
38
|
* @summary Structured data type details.
|
|
39
39
|
*/
|
|
40
|
-
const
|
|
40
|
+
const locateMixin3 = <TData = AxiosResponse<ProtodataStruct>>(
|
|
41
41
|
path: string,
|
|
42
42
|
options?: AxiosRequestConfig,
|
|
43
43
|
): Promise<TData> => {
|
|
@@ -45,9 +45,9 @@ export const // --- title start
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
// --- footer start
|
|
48
|
-
return { searchMixin3,
|
|
48
|
+
return { searchMixin3, locateMixin3 };
|
|
49
49
|
};
|
|
50
50
|
export type SearchMixin3Result = AxiosResponse<DataStructList>;
|
|
51
|
-
export type
|
|
51
|
+
export type LocateMixin3Result = AxiosResponse<ProtodataStruct>;
|
|
52
52
|
|
|
53
53
|
// --- footer end
|
|
@@ -590,7 +590,7 @@ export const getSearchMixin3ResponseMock = (
|
|
|
590
590
|
...overrideResponse,
|
|
591
591
|
});
|
|
592
592
|
|
|
593
|
-
export const
|
|
593
|
+
export const getLocateMixin3ResponseMock = (
|
|
594
594
|
overrideResponse: Partial<ProtodataStruct> = {},
|
|
595
595
|
): ProtodataStruct => ({
|
|
596
596
|
about: faker.helpers.arrayElement([
|
|
@@ -1171,7 +1171,7 @@ export const getSearchMixin3MockHandler = (
|
|
|
1171
1171
|
});
|
|
1172
1172
|
};
|
|
1173
1173
|
|
|
1174
|
-
export const
|
|
1174
|
+
export const getLocateMixin3MockHandler = (
|
|
1175
1175
|
overrideResponse?:
|
|
1176
1176
|
| ProtodataStruct
|
|
1177
1177
|
| ((
|
|
@@ -1187,7 +1187,7 @@ export const getLocateMockHandler = (
|
|
|
1187
1187
|
? typeof overrideResponse === 'function'
|
|
1188
1188
|
? await overrideResponse(info)
|
|
1189
1189
|
: overrideResponse
|
|
1190
|
-
:
|
|
1190
|
+
: getLocateMixin3ResponseMock(),
|
|
1191
1191
|
),
|
|
1192
1192
|
{ status: 200, headers: { 'Content-Type': 'application/json' } },
|
|
1193
1193
|
);
|
|
@@ -1195,5 +1195,5 @@ export const getLocateMockHandler = (
|
|
|
1195
1195
|
};
|
|
1196
1196
|
export const getTypesMock = () => [
|
|
1197
1197
|
getSearchMixin3MockHandler(),
|
|
1198
|
-
|
|
1198
|
+
getLocateMixin3MockHandler(),
|
|
1199
1199
|
];
|
|
@@ -441,13 +441,13 @@ export const searchMixin3Response = zod
|
|
|
441
441
|
/**
|
|
442
442
|
* @summary Structured data type details.
|
|
443
443
|
*/
|
|
444
|
-
export const
|
|
444
|
+
export const locateMixin3Params = zod.object({
|
|
445
445
|
path: zod.string().describe('`types.path`'),
|
|
446
446
|
});
|
|
447
447
|
|
|
448
|
-
export const
|
|
448
|
+
export const locateMixin3ResponseFieldsItemKindDefault = 'none';
|
|
449
449
|
|
|
450
|
-
export const
|
|
450
|
+
export const locateMixin3Response = zod
|
|
451
451
|
.object({
|
|
452
452
|
about: zod.string().optional().describe('Optional. Short description.'),
|
|
453
453
|
administered: zod.boolean().optional(),
|
|
@@ -591,7 +591,7 @@ export const locateResponse = zod
|
|
|
591
591
|
'datetime',
|
|
592
592
|
'duration',
|
|
593
593
|
])
|
|
594
|
-
.default(
|
|
594
|
+
.default(locateMixin3ResponseFieldsItemKindDefault)
|
|
595
595
|
.describe(
|
|
596
596
|
'Kind of primitive data types.\n\n - none: option allow_alias = true;\n - list: [array]\n - int: int32\n - uint: uint32\n - float: float32\n - datetime: date &| time',
|
|
597
597
|
),
|
|
@@ -5,5 +5,15 @@
|
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
7
|
export type DeleteTypeMixin3Params = {
|
|
8
|
+
/**
|
|
9
|
+
* Fields to retrive into result dataset.
|
|
10
|
+
*/
|
|
8
11
|
fields?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* `types.repo`
|
|
14
|
+
|
|
15
|
+
// `record.pk`
|
|
16
|
+
repeated string id = 3;
|
|
17
|
+
*/
|
|
18
|
+
repo: string[];
|
|
9
19
|
};
|
|
@@ -5,15 +5,5 @@
|
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
7
|
export type DeleteTypeParams = {
|
|
8
|
-
/**
|
|
9
|
-
* Fields to retrive into result dataset.
|
|
10
|
-
*/
|
|
11
8
|
fields?: string[];
|
|
12
|
-
/**
|
|
13
|
-
* `types.repo`
|
|
14
|
-
|
|
15
|
-
// `record.pk`
|
|
16
|
-
repeated string id = 3;
|
|
17
|
-
*/
|
|
18
|
-
repo: string[];
|
|
19
9
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { GoogleRpcStatus } from './googleRpcStatus';
|
|
8
|
+
import type { WebitelPdfPdfExportChunk } from './webitelPdfPdfExportChunk';
|
|
9
|
+
export type DownloadPdfExport200 = {
|
|
10
|
+
error?: GoogleRpcStatus;
|
|
11
|
+
result?: WebitelPdfPdfExportChunk;
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
export type GetPdfExportHistoryParams = {
|
|
8
|
+
/**
|
|
9
|
+
* Page number (starting from 1).
|
|
10
|
+
*/
|
|
11
|
+
page?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Page size (number of records per page).
|
|
14
|
+
*/
|
|
15
|
+
size?: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Chunked response with PDF binary data.
|
|
9
|
+
*/
|
|
10
|
+
export interface WebitelPdfPdfExportChunk {
|
|
11
|
+
/** Raw PDF file bytes (chunked). */
|
|
12
|
+
data?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Metadata about a PDF export task.
|
|
9
|
+
*/
|
|
10
|
+
export interface WebitelPdfPdfExportMetadata {
|
|
11
|
+
/** File name of the export. */
|
|
12
|
+
fileName?: string;
|
|
13
|
+
/** MIME type, e.g., "application/pdf". */
|
|
14
|
+
mimeType?: string;
|
|
15
|
+
/** File size in bytes (0 if not ready). */
|
|
16
|
+
size?: string;
|
|
17
|
+
/** Task status: pending | processing | done | failed. */
|
|
18
|
+
status?: string;
|
|
19
|
+
/** Unique identifier of the task. */
|
|
20
|
+
taskId?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Status of the PDF export process.
|
|
9
|
+
|
|
10
|
+
- PDF_EXPORT_STATUS_UNSPECIFIED: Default value.
|
|
11
|
+
- PDF_EXPORT_STATUS_PENDING: Task is waiting to start.
|
|
12
|
+
- PDF_EXPORT_STATUS_PROCESSING: Task is in progress.
|
|
13
|
+
- PDF_EXPORT_STATUS_DONE: Task is completed successfully.
|
|
14
|
+
- PDF_EXPORT_STATUS_FAILED: Task failed.
|
|
15
|
+
*/
|
|
16
|
+
export type WebitelPdfPdfExportStatus = (typeof WebitelPdfPdfExportStatus)[keyof typeof WebitelPdfPdfExportStatus];
|
|
17
|
+
export declare const WebitelPdfPdfExportStatus: {
|
|
18
|
+
readonly PdfExportStatusUnspecified: "PDF_EXPORT_STATUS_UNSPECIFIED";
|
|
19
|
+
readonly PdfExportStatusPending: "PDF_EXPORT_STATUS_PENDING";
|
|
20
|
+
readonly PdfExportStatusProcessing: "PDF_EXPORT_STATUS_PROCESSING";
|
|
21
|
+
readonly PdfExportStatusDone: "PDF_EXPORT_STATUS_DONE";
|
|
22
|
+
readonly PdfExportStatusFailed: "PDF_EXPORT_STATUS_FAILED";
|
|
23
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelPdfPdfExportStatus } from './webitelPdfPdfExportStatus';
|
|
8
|
+
/**
|
|
9
|
+
* Represents a single PDF export record.
|
|
10
|
+
*/
|
|
11
|
+
export interface WebitelPdfPdfHistoryRecord {
|
|
12
|
+
/** Creation timestamp (Unix millis). */
|
|
13
|
+
createdAt?: string;
|
|
14
|
+
/** User ID who created the export. */
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
/** Related file ID. */
|
|
17
|
+
fileId?: string;
|
|
18
|
+
/** Export ID. */
|
|
19
|
+
id?: string;
|
|
20
|
+
/** MIME type of the export. */
|
|
21
|
+
mimeType?: string;
|
|
22
|
+
/** Export name. */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** Current export status. */
|
|
25
|
+
status?: WebitelPdfPdfExportStatus;
|
|
26
|
+
/** Update timestamp (Unix millis). */
|
|
27
|
+
updatedAt?: string;
|
|
28
|
+
/** User ID who last updated the export. */
|
|
29
|
+
updatedBy?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelPdfPdfHistoryRecord } from './webitelPdfPdfHistoryRecord';
|
|
8
|
+
/**
|
|
9
|
+
* Response containing a page of export history.
|
|
10
|
+
*/
|
|
11
|
+
export interface WebitelPdfPdfHistoryResponse {
|
|
12
|
+
/** List of export history records. */
|
|
13
|
+
data?: WebitelPdfPdfHistoryRecord[];
|
|
14
|
+
/** True if there is a next page. */
|
|
15
|
+
next?: boolean;
|
|
16
|
+
/** Current page number. */
|
|
17
|
+
page?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Request for generating a PDF export.
|
|
9
|
+
*/
|
|
10
|
+
export interface WebitelPdfPdfServiceGeneratePdfExportBody {
|
|
11
|
+
/** Channel type (e.g., "screenshot"). */
|
|
12
|
+
channel?: string;
|
|
13
|
+
/** Optional list of specific file IDs to include. */
|
|
14
|
+
fileIds?: string[];
|
|
15
|
+
/** Start timestamp (Unix millis). */
|
|
16
|
+
from?: string;
|
|
17
|
+
/** End timestamp (Unix millis). */
|
|
18
|
+
to?: string;
|
|
19
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
import type { CreateData200, CreateDataBody, DataDataset, DataInputDictionary, DataStructList, DeleteData2Params, DeleteDataParams,
|
|
2
|
+
import type { CreateData200, CreateDataBody, DataDataset, DataInputDictionary, DataStructList, DeleteData2Params, DeleteDataParams, DeleteTypeMixin3Params, DictionariesImportCSVBody, LocateData200, LocateDataParams, ProtodataStruct, SearchDataParams, SearchTypeMixin3Params, UpdateData2Body, UpdateData2Params, UpdateData200, UpdateData2200, UpdateDataBody, UpdateDataParams, UpdateTypeParams } from '.././_models';
|
|
3
3
|
export declare const // --- title start
|
|
4
4
|
getDictionaries: () => {
|
|
5
5
|
deleteData: <TData = AxiosResponse<DataDataset, any>>(repo: string, params: DeleteDataParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
@@ -10,7 +10,7 @@ getDictionaries: () => {
|
|
|
10
10
|
locateData: <TData = AxiosResponse<LocateData200, any>>(repo: string, id: string, params?: LocateDataParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
11
11
|
updateData: <TData = AxiosResponse<UpdateData200, any>>(repo: string, id: string, updateDataBody: UpdateDataBody, params?: UpdateDataParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
12
12
|
updateData2: <TData = AxiosResponse<UpdateData2200, any>>(repo: string, id: string, updateData2Body: UpdateData2Body, params?: UpdateData2Params, options?: AxiosRequestConfig) => Promise<TData>;
|
|
13
|
-
|
|
13
|
+
deleteTypeMixin3: <TData = AxiosResponse<DataStructList, any>>(params: DeleteTypeMixin3Params, options?: AxiosRequestConfig) => Promise<TData>;
|
|
14
14
|
searchTypeMixin3: <TData = AxiosResponse<DataStructList, any>>(params?: SearchTypeMixin3Params, options?: AxiosRequestConfig) => Promise<TData>;
|
|
15
15
|
locateType: <TData = AxiosResponse<ProtodataStruct, any>>(repo: string, options?: AxiosRequestConfig) => Promise<TData>;
|
|
16
16
|
createType: <TData = AxiosResponse<ProtodataStruct, any>>(repo: string, dataInputDictionary: DataInputDictionary, options?: AxiosRequestConfig) => Promise<TData>;
|
|
@@ -24,7 +24,7 @@ export type DeleteData2Result = AxiosResponse<DataDataset>;
|
|
|
24
24
|
export type LocateDataResult = AxiosResponse<LocateData200>;
|
|
25
25
|
export type UpdateDataResult = AxiosResponse<UpdateData200>;
|
|
26
26
|
export type UpdateData2Result = AxiosResponse<UpdateData2200>;
|
|
27
|
-
export type
|
|
27
|
+
export type DeleteTypeMixin3Result = AxiosResponse<DataStructList>;
|
|
28
28
|
export type SearchTypeMixin3Result = AxiosResponse<DataStructList>;
|
|
29
29
|
export type LocateTypeResult = AxiosResponse<ProtodataStruct>;
|
|
30
30
|
export type CreateTypeResult = AxiosResponse<ProtodataStruct>;
|
|
@@ -8,7 +8,7 @@ export declare const getDeleteData2ResponseMock: (overrideResponse?: Partial<Dat
|
|
|
8
8
|
export declare const getLocateDataResponseMock: () => LocateData200;
|
|
9
9
|
export declare const getUpdateDataResponseMock: () => UpdateData200;
|
|
10
10
|
export declare const getUpdateData2ResponseMock: () => UpdateData2200;
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const getDeleteTypeMixin3ResponseMock: (overrideResponse?: Partial<DataStructList>) => DataStructList;
|
|
12
12
|
export declare const getSearchTypeMixin3ResponseMock: (overrideResponse?: Partial<DataStructList>) => DataStructList;
|
|
13
13
|
export declare const getLocateTypeResponseMock: (overrideResponse?: Partial<ProtodataStruct>) => ProtodataStruct;
|
|
14
14
|
export declare const getCreateTypeResponseMock: (overrideResponse?: Partial<ProtodataStruct>) => ProtodataStruct;
|
|
@@ -21,7 +21,7 @@ export declare const getDeleteData2MockHandler: (overrideResponse?: DataDataset
|
|
|
21
21
|
export declare const getLocateDataMockHandler: (overrideResponse?: LocateData200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<LocateData200> | LocateData200)) => import("msw").HttpHandler;
|
|
22
22
|
export declare const getUpdateDataMockHandler: (overrideResponse?: UpdateData200 | ((info: Parameters<Parameters<typeof http.patch>[1]>[0]) => Promise<UpdateData200> | UpdateData200)) => import("msw").HttpHandler;
|
|
23
23
|
export declare const getUpdateData2MockHandler: (overrideResponse?: UpdateData2200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<UpdateData2200> | UpdateData2200)) => import("msw").HttpHandler;
|
|
24
|
-
export declare const
|
|
24
|
+
export declare const getDeleteTypeMixin3MockHandler: (overrideResponse?: DataStructList | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DataStructList> | DataStructList)) => import("msw").HttpHandler;
|
|
25
25
|
export declare const getSearchTypeMixin3MockHandler: (overrideResponse?: DataStructList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DataStructList> | DataStructList)) => import("msw").HttpHandler;
|
|
26
26
|
export declare const getLocateTypeMockHandler: (overrideResponse?: ProtodataStruct | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ProtodataStruct> | ProtodataStruct)) => import("msw").HttpHandler;
|
|
27
27
|
export declare const getCreateTypeMockHandler: (overrideResponse?: ProtodataStruct | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ProtodataStruct> | ProtodataStruct)) => import("msw").HttpHandler;
|
|
@@ -721,12 +721,12 @@ export declare const updateData2Response: zod.ZodObject<{}, zod.core.$strip>;
|
|
|
721
721
|
* (DictionaryList) {
|
|
722
722
|
* @summary Delete custom dictionaries.
|
|
723
723
|
*/
|
|
724
|
-
export declare const
|
|
724
|
+
export declare const deleteTypeMixin3QueryParams: zod.ZodObject<{
|
|
725
725
|
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
726
726
|
repo: zod.ZodArray<zod.ZodString>;
|
|
727
727
|
}, zod.core.$strip>;
|
|
728
|
-
export declare const
|
|
729
|
-
export declare const
|
|
728
|
+
export declare const deleteTypeMixin3ResponseDataItemFieldsItemKindDefault = "none";
|
|
729
|
+
export declare const deleteTypeMixin3Response: zod.ZodObject<{
|
|
730
730
|
data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
731
731
|
about: zod.ZodOptional<zod.ZodString>;
|
|
732
732
|
administered: zod.ZodOptional<zod.ZodBoolean>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
import type { DataInputExtension, DataStructList, DeleteType2Params,
|
|
2
|
+
import type { DataInputExtension, DataStructList, DeleteType2Params, DeleteTypeParams, ProtodataStruct, SearchTypeParams } from '.././_models';
|
|
3
3
|
export declare const // --- title start
|
|
4
4
|
getExtensions: () => {
|
|
5
5
|
deleteType2: <TData = AxiosResponse<DataStructList, any>>(params?: DeleteType2Params, options?: AxiosRequestConfig) => Promise<TData>;
|
|
6
6
|
searchType: <TData = AxiosResponse<DataStructList, any>>(params?: SearchTypeParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
7
|
-
|
|
7
|
+
deleteType: <TData = AxiosResponse<DataStructList, any>>(repo: string[], params?: DeleteTypeParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
8
8
|
locateTypeMixin3: <TData = AxiosResponse<ProtodataStruct, any>>(repo: string, options?: AxiosRequestConfig) => Promise<TData>;
|
|
9
9
|
createTypeMixin3: <TData = AxiosResponse<ProtodataStruct, any>>(repo: string, dataInputExtension: DataInputExtension, options?: AxiosRequestConfig) => Promise<TData>;
|
|
10
10
|
updateTypeMixin3: <TData = AxiosResponse<ProtodataStruct, any>>(repo: string, dataInputExtension: DataInputExtension, options?: AxiosRequestConfig) => Promise<TData>;
|
|
11
11
|
};
|
|
12
12
|
export type DeleteType2Result = AxiosResponse<DataStructList>;
|
|
13
13
|
export type SearchTypeResult = AxiosResponse<DataStructList>;
|
|
14
|
-
export type
|
|
14
|
+
export type DeleteTypeResult = AxiosResponse<DataStructList>;
|
|
15
15
|
export type LocateTypeMixin3Result = AxiosResponse<ProtodataStruct>;
|
|
16
16
|
export type CreateTypeMixin3Result = AxiosResponse<ProtodataStruct>;
|
|
17
17
|
export type UpdateTypeMixin3Result = AxiosResponse<ProtodataStruct>;
|
|
@@ -2,13 +2,13 @@ import { http } from 'msw';
|
|
|
2
2
|
import type { DataStructList, ProtodataStruct } from '.././_models';
|
|
3
3
|
export declare const getDeleteType2ResponseMock: (overrideResponse?: Partial<DataStructList>) => DataStructList;
|
|
4
4
|
export declare const getSearchTypeResponseMock: (overrideResponse?: Partial<DataStructList>) => DataStructList;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const getDeleteTypeResponseMock: (overrideResponse?: Partial<DataStructList>) => DataStructList;
|
|
6
6
|
export declare const getLocateTypeMixin3ResponseMock: (overrideResponse?: Partial<ProtodataStruct>) => ProtodataStruct;
|
|
7
7
|
export declare const getCreateTypeMixin3ResponseMock: (overrideResponse?: Partial<ProtodataStruct>) => ProtodataStruct;
|
|
8
8
|
export declare const getUpdateTypeMixin3ResponseMock: (overrideResponse?: Partial<ProtodataStruct>) => ProtodataStruct;
|
|
9
9
|
export declare const getDeleteType2MockHandler: (overrideResponse?: DataStructList | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DataStructList> | DataStructList)) => import("msw").HttpHandler;
|
|
10
10
|
export declare const getSearchTypeMockHandler: (overrideResponse?: DataStructList | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DataStructList> | DataStructList)) => import("msw").HttpHandler;
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const getDeleteTypeMockHandler: (overrideResponse?: DataStructList | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DataStructList> | DataStructList)) => import("msw").HttpHandler;
|
|
12
12
|
export declare const getLocateTypeMixin3MockHandler: (overrideResponse?: ProtodataStruct | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ProtodataStruct> | ProtodataStruct)) => import("msw").HttpHandler;
|
|
13
13
|
export declare const getCreateTypeMixin3MockHandler: (overrideResponse?: ProtodataStruct | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<ProtodataStruct> | ProtodataStruct)) => import("msw").HttpHandler;
|
|
14
14
|
export declare const getUpdateTypeMixin3MockHandler: (overrideResponse?: ProtodataStruct | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<ProtodataStruct> | ProtodataStruct)) => import("msw").HttpHandler;
|
|
@@ -332,14 +332,14 @@ export declare const searchTypeResponse: zod.ZodObject<{
|
|
|
332
332
|
* returns (ExtensionList) {
|
|
333
333
|
* @summary Delete extension for types.
|
|
334
334
|
*/
|
|
335
|
-
export declare const
|
|
335
|
+
export declare const deleteTypeParams: zod.ZodObject<{
|
|
336
336
|
repo: zod.ZodArray<zod.ZodString>;
|
|
337
337
|
}, zod.core.$strip>;
|
|
338
|
-
export declare const
|
|
338
|
+
export declare const deleteTypeQueryParams: zod.ZodObject<{
|
|
339
339
|
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
340
340
|
}, zod.core.$strip>;
|
|
341
|
-
export declare const
|
|
342
|
-
export declare const
|
|
341
|
+
export declare const deleteTypeResponseDataItemFieldsItemKindDefault = "none";
|
|
342
|
+
export declare const deleteTypeResponse: zod.ZodObject<{
|
|
343
343
|
data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
344
344
|
about: zod.ZodOptional<zod.ZodString>;
|
|
345
345
|
administered: zod.ZodOptional<zod.ZodBoolean>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
import type { DownloadPdfExport200, DownloadPdfExportParams, GetPdfExportHistoryParams, WebitelPdfPdfExportMetadata, WebitelPdfPdfHistoryResponse, WebitelPdfPdfServiceGeneratePdfExportBody } from '.././_models';
|
|
3
|
+
export declare const // --- title start
|
|
4
|
+
getPdfService: () => {
|
|
5
|
+
generatePdfExport: <TData = AxiosResponse<WebitelPdfPdfExportMetadata, any>>(agentId: string, webitelPdfPdfServiceGeneratePdfExportBody: WebitelPdfPdfServiceGeneratePdfExportBody, options?: AxiosRequestConfig) => Promise<TData>;
|
|
6
|
+
getPdfExportHistory: <TData = AxiosResponse<WebitelPdfPdfHistoryResponse, any>>(agentId: string, params?: GetPdfExportHistoryParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
7
|
+
downloadPdfExport: <TData = AxiosResponse<DownloadPdfExport200, any>>(fileId: string, params?: DownloadPdfExportParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
8
|
+
};
|
|
9
|
+
export type GeneratePdfExportResult = AxiosResponse<WebitelPdfPdfExportMetadata>;
|
|
10
|
+
export type GetPdfExportHistoryResult = AxiosResponse<WebitelPdfPdfHistoryResponse>;
|
|
11
|
+
export type DownloadPdfExportResult = AxiosResponse<DownloadPdfExport200>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { http } from 'msw';
|
|
2
|
+
import type { DownloadPdfExport200, WebitelPdfPdfExportMetadata, WebitelPdfPdfHistoryResponse } from '.././_models';
|
|
3
|
+
export declare const getGeneratePdfExportResponseMock: (overrideResponse?: Partial<WebitelPdfPdfExportMetadata>) => WebitelPdfPdfExportMetadata;
|
|
4
|
+
export declare const getGetPdfExportHistoryResponseMock: (overrideResponse?: Partial<WebitelPdfPdfHistoryResponse>) => WebitelPdfPdfHistoryResponse;
|
|
5
|
+
export declare const getDownloadPdfExportResponseMock: (overrideResponse?: Partial<DownloadPdfExport200>) => DownloadPdfExport200;
|
|
6
|
+
export declare const getGeneratePdfExportMockHandler: (overrideResponse?: WebitelPdfPdfExportMetadata | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<WebitelPdfPdfExportMetadata> | WebitelPdfPdfExportMetadata)) => import("msw").HttpHandler;
|
|
7
|
+
export declare const getGetPdfExportHistoryMockHandler: (overrideResponse?: WebitelPdfPdfHistoryResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebitelPdfPdfHistoryResponse> | WebitelPdfPdfHistoryResponse)) => import("msw").HttpHandler;
|
|
8
|
+
export declare const getDownloadPdfExportMockHandler: (overrideResponse?: DownloadPdfExport200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DownloadPdfExport200> | DownloadPdfExport200)) => import("msw").HttpHandler;
|
|
9
|
+
export declare const getPdfServiceMock: () => import("msw").HttpHandler[];
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import { z as zod } from 'zod/v4';
|
|
8
|
+
/**
|
|
9
|
+
* @summary Generate a new PDF export asynchronously.
|
|
10
|
+
Returns metadata about the created export task.
|
|
11
|
+
*/
|
|
12
|
+
export declare const generatePdfExportParams: zod.ZodObject<{
|
|
13
|
+
agent_id: zod.ZodString;
|
|
14
|
+
}, zod.core.$strip>;
|
|
15
|
+
export declare const generatePdfExportBody: zod.ZodObject<{
|
|
16
|
+
channel: zod.ZodOptional<zod.ZodString>;
|
|
17
|
+
fileIds: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
18
|
+
from: zod.ZodOptional<zod.ZodString>;
|
|
19
|
+
to: zod.ZodOptional<zod.ZodString>;
|
|
20
|
+
}, zod.core.$strip>;
|
|
21
|
+
export declare const generatePdfExportResponse: zod.ZodObject<{
|
|
22
|
+
fileName: zod.ZodOptional<zod.ZodString>;
|
|
23
|
+
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
24
|
+
size: zod.ZodOptional<zod.ZodString>;
|
|
25
|
+
status: zod.ZodOptional<zod.ZodString>;
|
|
26
|
+
taskId: zod.ZodOptional<zod.ZodString>;
|
|
27
|
+
}, zod.core.$strip>;
|
|
28
|
+
/**
|
|
29
|
+
* @summary Get paginated history of PDF exports for a given agent.
|
|
30
|
+
*/
|
|
31
|
+
export declare const getPdfExportHistoryParams: zod.ZodObject<{
|
|
32
|
+
agent_id: zod.ZodString;
|
|
33
|
+
}, zod.core.$strip>;
|
|
34
|
+
export declare const getPdfExportHistoryQueryParams: zod.ZodObject<{
|
|
35
|
+
page: zod.ZodOptional<zod.ZodNumber>;
|
|
36
|
+
size: zod.ZodOptional<zod.ZodNumber>;
|
|
37
|
+
}, zod.core.$strip>;
|
|
38
|
+
export declare const getPdfExportHistoryResponseDataItemStatusDefault = "PDF_EXPORT_STATUS_UNSPECIFIED";
|
|
39
|
+
export declare const getPdfExportHistoryResponse: zod.ZodObject<{
|
|
40
|
+
data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
41
|
+
createdAt: zod.ZodOptional<zod.ZodString>;
|
|
42
|
+
createdBy: zod.ZodOptional<zod.ZodString>;
|
|
43
|
+
fileId: zod.ZodOptional<zod.ZodString>;
|
|
44
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
45
|
+
mimeType: zod.ZodOptional<zod.ZodString>;
|
|
46
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
47
|
+
status: zod.ZodDefault<zod.ZodEnum<{
|
|
48
|
+
PDF_EXPORT_STATUS_UNSPECIFIED: "PDF_EXPORT_STATUS_UNSPECIFIED";
|
|
49
|
+
PDF_EXPORT_STATUS_PENDING: "PDF_EXPORT_STATUS_PENDING";
|
|
50
|
+
PDF_EXPORT_STATUS_PROCESSING: "PDF_EXPORT_STATUS_PROCESSING";
|
|
51
|
+
PDF_EXPORT_STATUS_DONE: "PDF_EXPORT_STATUS_DONE";
|
|
52
|
+
PDF_EXPORT_STATUS_FAILED: "PDF_EXPORT_STATUS_FAILED";
|
|
53
|
+
}>>;
|
|
54
|
+
updatedAt: zod.ZodOptional<zod.ZodString>;
|
|
55
|
+
updatedBy: zod.ZodOptional<zod.ZodString>;
|
|
56
|
+
}, zod.core.$strip>>>;
|
|
57
|
+
next: zod.ZodOptional<zod.ZodBoolean>;
|
|
58
|
+
page: zod.ZodOptional<zod.ZodNumber>;
|
|
59
|
+
}, zod.core.$strip>;
|
|
60
|
+
/**
|
|
61
|
+
* @summary Download a previously generated PDF by export ID.
|
|
62
|
+
*/
|
|
63
|
+
export declare const downloadPdfExportParams: zod.ZodObject<{
|
|
64
|
+
file_id: zod.ZodString;
|
|
65
|
+
}, zod.core.$strip>;
|
|
66
|
+
export declare const downloadPdfExportQueryParams: zod.ZodObject<{
|
|
67
|
+
domainId: zod.ZodOptional<zod.ZodString>;
|
|
68
|
+
}, zod.core.$strip>;
|
|
69
|
+
export declare const downloadPdfExportResponse: zod.ZodObject<{
|
|
70
|
+
error: zod.ZodOptional<zod.ZodObject<{
|
|
71
|
+
code: zod.ZodOptional<zod.ZodNumber>;
|
|
72
|
+
details: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
73
|
+
'@type': zod.ZodOptional<zod.ZodString>;
|
|
74
|
+
}, zod.core.$strip>>>;
|
|
75
|
+
message: zod.ZodOptional<zod.ZodString>;
|
|
76
|
+
}, zod.core.$strip>>;
|
|
77
|
+
result: zod.ZodOptional<zod.ZodObject<{
|
|
78
|
+
data: zod.ZodOptional<zod.ZodString>;
|
|
79
|
+
}, zod.core.$strip>>;
|
|
80
|
+
}, zod.core.$strip>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
-
import type { _DeleteParams, Create200, CreateBody, DataDataset,
|
|
2
|
+
import type { _DeleteParams, Create200, CreateBody, DataDataset, Locate200, LocateParams, SearchParams, Update2Body, Update2Params, Update200, Update2200, UpdateBody, UpdateParams } from '.././_models';
|
|
3
3
|
export declare const // --- title start
|
|
4
4
|
getRecords: () => {
|
|
5
5
|
_delete: <TData = AxiosResponse<DataDataset, any>>(repo: string, params: _DeleteParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
6
6
|
search: <TData = AxiosResponse<DataDataset, any>>(repo: string, params?: SearchParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
7
7
|
create: <TData = AxiosResponse<Create200, any>>(repo: string, createBody: CreateBody, options?: AxiosRequestConfig) => Promise<TData>;
|
|
8
|
-
|
|
8
|
+
locate: <TData = AxiosResponse<Locate200, any>>(repo: string, id: string, params?: LocateParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
9
9
|
update: <TData = AxiosResponse<Update200, any>>(repo: string, id: string, updateBody: UpdateBody, params?: UpdateParams, options?: AxiosRequestConfig) => Promise<TData>;
|
|
10
10
|
update2: <TData = AxiosResponse<Update2200, any>>(repo: string, id: string, update2Body: Update2Body, params?: Update2Params, options?: AxiosRequestConfig) => Promise<TData>;
|
|
11
11
|
};
|
|
12
12
|
export type _DeleteResult = AxiosResponse<DataDataset>;
|
|
13
13
|
export type SearchResult = AxiosResponse<DataDataset>;
|
|
14
14
|
export type CreateResult = AxiosResponse<Create200>;
|
|
15
|
-
export type
|
|
15
|
+
export type LocateResult = AxiosResponse<Locate200>;
|
|
16
16
|
export type UpdateResult = AxiosResponse<Update200>;
|
|
17
17
|
export type Update2Result = AxiosResponse<Update2200>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { http } from 'msw';
|
|
2
|
-
import type { Create200, DataDataset,
|
|
2
|
+
import type { Create200, DataDataset, Locate200, Update200, Update2200 } from '.././_models';
|
|
3
3
|
export declare const getDeleteResponseMock: (overrideResponse?: Partial<DataDataset>) => DataDataset;
|
|
4
4
|
export declare const getSearchResponseMock: (overrideResponse?: Partial<DataDataset>) => DataDataset;
|
|
5
5
|
export declare const getCreateResponseMock: () => Create200;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const getLocateResponseMock: () => Locate200;
|
|
7
7
|
export declare const getUpdateResponseMock: () => Update200;
|
|
8
8
|
export declare const getUpdate2ResponseMock: () => Update2200;
|
|
9
9
|
export declare const getDeleteMockHandler: (overrideResponse?: DataDataset | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<DataDataset> | DataDataset)) => import("msw").HttpHandler;
|
|
10
10
|
export declare const getSearchMockHandler: (overrideResponse?: DataDataset | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<DataDataset> | DataDataset)) => import("msw").HttpHandler;
|
|
11
11
|
export declare const getCreateMockHandler: (overrideResponse?: Create200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<Create200> | Create200)) => import("msw").HttpHandler;
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const getLocateMockHandler: (overrideResponse?: Locate200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Locate200> | Locate200)) => import("msw").HttpHandler;
|
|
13
13
|
export declare const getUpdateMockHandler: (overrideResponse?: Update200 | ((info: Parameters<Parameters<typeof http.patch>[1]>[0]) => Promise<Update200> | Update200)) => import("msw").HttpHandler;
|
|
14
14
|
export declare const getUpdate2MockHandler: (overrideResponse?: Update2200 | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<Update2200> | Update2200)) => import("msw").HttpHandler;
|
|
15
15
|
export declare const getRecordsMock: () => import("msw").HttpHandler[];
|
|
@@ -348,15 +348,15 @@ export declare const createResponse: zod.ZodObject<{}, zod.core.$strip>;
|
|
|
348
348
|
* (Record) {
|
|
349
349
|
* @summary Locate dataset record
|
|
350
350
|
*/
|
|
351
|
-
export declare const
|
|
351
|
+
export declare const locateParams: zod.ZodObject<{
|
|
352
352
|
repo: zod.ZodString;
|
|
353
353
|
id: zod.ZodString;
|
|
354
354
|
}, zod.core.$strip>;
|
|
355
|
-
export declare const
|
|
356
|
-
export declare const
|
|
355
|
+
export declare const locateQueryFieldsItemDefault = "*";
|
|
356
|
+
export declare const locateQueryParams: zod.ZodObject<{
|
|
357
357
|
fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
358
358
|
}, zod.core.$strip>;
|
|
359
|
-
export declare const
|
|
359
|
+
export declare const locateResponse: zod.ZodObject<{}, zod.core.$strip>;
|
|
360
360
|
/**
|
|
361
361
|
* (Record) {
|
|
362
362
|
* @summary Update dataset record
|