@resolution/jira-api-client 0.4.6 → 0.5.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.
- package/CHANGELOG.md +23 -0
- package/README.md +27 -4
- package/lib/index.d.ts +19 -2
- package/lib/index.js +27 -5
- package/lib/index.js.map +1 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +1 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1 -1
- package/lib/openapi/platform/services/DashboardsService.d.ts +7 -1
- package/lib/openapi/platform/services/DashboardsService.js +4 -1
- package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSearchService.d.ts +8 -1
- package/lib/openapi/platform/services/IssueSearchService.js +2 -1
- package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
- package/lib/openapi/platform/services/IssuesService.d.ts +8 -1
- package/lib/openapi/platform/services/IssuesService.js +2 -1
- package/lib/openapi/platform/services/IssuesService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionsService.d.ts +7 -0
- package/lib/openapi/platform/services/PermissionsService.js +7 -0
- package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +46 -0
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +78 -0
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js.map +1 -0
- package/lib/openapi/serviceManagement/core/CommonHttpClient.d.ts +196 -0
- package/lib/openapi/serviceManagement/core/CommonHttpClient.js +390 -0
- package/lib/openapi/serviceManagement/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/serviceManagement/core/CommonHttpService.d.ts +9 -0
- package/lib/openapi/serviceManagement/core/CommonHttpService.js +29 -0
- package/lib/openapi/serviceManagement/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.d.ts +35 -0
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js +65 -0
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/serviceManagement/models/assets.d.ts +54 -0
- package/lib/openapi/serviceManagement/models/assets.js +60 -0
- package/lib/openapi/serviceManagement/models/assets.js.map +1 -0
- package/lib/openapi/serviceManagement/models/common.d.ts +228 -0
- package/lib/openapi/serviceManagement/models/common.js +172 -0
- package/lib/openapi/serviceManagement/models/common.js.map +1 -0
- package/lib/openapi/serviceManagement/models/customer.d.ts +30 -0
- package/lib/openapi/serviceManagement/models/customer.js +27 -0
- package/lib/openapi/serviceManagement/models/customer.js.map +1 -0
- package/lib/openapi/serviceManagement/models/info.d.ts +18 -0
- package/lib/openapi/serviceManagement/models/info.js +24 -0
- package/lib/openapi/serviceManagement/models/info.js.map +1 -0
- package/lib/openapi/serviceManagement/models/knowledgebase.d.ts +24 -0
- package/lib/openapi/serviceManagement/models/knowledgebase.js +32 -0
- package/lib/openapi/serviceManagement/models/knowledgebase.js.map +1 -0
- package/lib/openapi/serviceManagement/models/organization.d.ts +76 -0
- package/lib/openapi/serviceManagement/models/organization.js +65 -0
- package/lib/openapi/serviceManagement/models/organization.js.map +1 -0
- package/lib/openapi/serviceManagement/models/request.d.ts +594 -0
- package/lib/openapi/serviceManagement/models/request.js +516 -0
- package/lib/openapi/serviceManagement/models/request.js.map +1 -0
- package/lib/openapi/serviceManagement/models/servicedesk.d.ts +525 -0
- package/lib/openapi/serviceManagement/models/servicedesk.js +442 -0
- package/lib/openapi/serviceManagement/models/servicedesk.js.map +1 -0
- package/lib/openapi/serviceManagement/services/AssetsService.d.ts +61 -0
- package/lib/openapi/serviceManagement/services/AssetsService.js +113 -0
- package/lib/openapi/serviceManagement/services/AssetsService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/CustomerService.d.ts +63 -0
- package/lib/openapi/serviceManagement/services/CustomerService.js +93 -0
- package/lib/openapi/serviceManagement/services/CustomerService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/InfoService.d.ts +34 -0
- package/lib/openapi/serviceManagement/services/InfoService.js +71 -0
- package/lib/openapi/serviceManagement/services/InfoService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +81 -0
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +106 -0
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +589 -0
- package/lib/openapi/serviceManagement/services/OrganizationService.js +762 -0
- package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/RequestService.d.ts +2736 -0
- package/lib/openapi/serviceManagement/services/RequestService.js +3056 -0
- package/lib/openapi/serviceManagement/services/RequestService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/RequesttypeService.d.ts +166 -0
- package/lib/openapi/serviceManagement/services/RequesttypeService.js +190 -0
- package/lib/openapi/serviceManagement/services/RequesttypeService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +1268 -0
- package/lib/openapi/serviceManagement/services/ServicedeskService.js +1510 -0
- package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -0
- package/lib/openapi/serviceManagement/validationSchemaStorage.d.ts +3 -0
- package/lib/openapi/serviceManagement/validationSchemaStorage.js +144 -0
- package/lib/openapi/serviceManagement/validationSchemaStorage.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerAssetsValidationSchemas = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
const common_1 = require("./common");
|
|
9
|
+
function registerAssetsValidationSchemas(validationSchemaStorage) {
|
|
10
|
+
validationSchemaStorage.register("AssetsWorkspaceDto", zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
workspaceId: zod_1.z.string().optional(),
|
|
13
|
+
})
|
|
14
|
+
.strict()
|
|
15
|
+
.describe("AssetsWorkspaceDto"));
|
|
16
|
+
validationSchemaStorage.register("I18nErrorMessage", zod_1.z
|
|
17
|
+
.object({
|
|
18
|
+
i18nKey: zod_1.z.string().optional(),
|
|
19
|
+
parameters: zod_1.z.array(zod_1.z.string()).optional(),
|
|
20
|
+
})
|
|
21
|
+
.strict()
|
|
22
|
+
.describe("I18nErrorMessage"));
|
|
23
|
+
validationSchemaStorage.register("InsightWorkspaceDto", zod_1.z
|
|
24
|
+
.object({
|
|
25
|
+
workspaceId: zod_1.z.string().optional(),
|
|
26
|
+
})
|
|
27
|
+
.strict()
|
|
28
|
+
.describe("InsightWorkspaceDto"));
|
|
29
|
+
validationSchemaStorage.register("PagedDtoAssetsWorkspaceDto", zod_1.z
|
|
30
|
+
.object({
|
|
31
|
+
_expands: zod_1.z.array(zod_1.z.string()).optional(),
|
|
32
|
+
_links: validationSchemaStorage.lazy("PagedLinkDto").optional(),
|
|
33
|
+
isLastPage: zod_1.z.boolean().optional(),
|
|
34
|
+
limit: zod_1.z.number().int().optional(),
|
|
35
|
+
size: zod_1.z.number().int().optional(),
|
|
36
|
+
start: zod_1.z.number().int().optional(),
|
|
37
|
+
values: zod_1.z
|
|
38
|
+
.array(validationSchemaStorage.lazy("AssetsWorkspaceDto"))
|
|
39
|
+
.optional(),
|
|
40
|
+
})
|
|
41
|
+
.strict()
|
|
42
|
+
.describe("PagedDtoAssetsWorkspaceDto"));
|
|
43
|
+
validationSchemaStorage.register("PagedDtoInsightWorkspaceDto", zod_1.z
|
|
44
|
+
.object({
|
|
45
|
+
_expands: zod_1.z.array(zod_1.z.string()).optional(),
|
|
46
|
+
_links: validationSchemaStorage.lazy("PagedLinkDto").optional(),
|
|
47
|
+
isLastPage: zod_1.z.boolean().optional(),
|
|
48
|
+
limit: zod_1.z.number().int().optional(),
|
|
49
|
+
size: zod_1.z.number().int().optional(),
|
|
50
|
+
start: zod_1.z.number().int().optional(),
|
|
51
|
+
values: zod_1.z
|
|
52
|
+
.array(validationSchemaStorage.lazy("InsightWorkspaceDto"))
|
|
53
|
+
.optional(),
|
|
54
|
+
})
|
|
55
|
+
.strict()
|
|
56
|
+
.describe("PagedDtoInsightWorkspaceDto"));
|
|
57
|
+
validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
58
|
+
}
|
|
59
|
+
exports.registerAssetsValidationSchemas = registerAssetsValidationSchemas;
|
|
60
|
+
//# sourceMappingURL=assets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../../../../src/openapi/serviceManagement/models/assets.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AAGzC,qCAA8E;AAmD9E,SAAgB,+BAA+B,CAC7C,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,oBAAoB,EACpB,OAAC;SACE,MAAM,CAAC;QACN,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,oBAAoB,CAAC,CAClC,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,kBAAkB,EAClB,OAAC;SACE,MAAM,CAAC;QACN,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC3C,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,kBAAkB,CAAC,CAChC,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,qBAAqB,EACrB,OAAC;SACE,MAAM,CAAC;QACN,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE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EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACjC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAClC,MAAM,EAAE,OAAC;aACN,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;aAC1D,QAAQ,EAAE;KACd,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,6BAA6B,CAAC,CAC3C,CAAC;IACF,uBAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AAlED,0EAkEC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { type ZodTypeAny } from "zod";
|
|
2
|
+
import type { CommonValidationSchemaStorage } from "../core/CommonValidationSchemaStorage";
|
|
3
|
+
import { type I18nErrorMessage } from "./assets";
|
|
4
|
+
import { type UserLinkDto } from "./customer";
|
|
5
|
+
import { type ArticleDto } from "./knowledgebase";
|
|
6
|
+
import { type PropertyKey } from "./organization";
|
|
7
|
+
import { type RequestTypeFieldDto, type RequestTypeIconDto } from "./request";
|
|
8
|
+
/** Fields and additional metadata for creating a request that uses the request type */
|
|
9
|
+
export interface CustomerRequestCreateMetaDto {
|
|
10
|
+
/** Flag indicating if participants can be added to a request (true) or not. */
|
|
11
|
+
canAddRequestParticipants?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Flag indicating if a request can be raised on behalf of another user (true) or
|
|
14
|
+
* not.
|
|
15
|
+
*/
|
|
16
|
+
canRaiseOnBehalfOf?: boolean;
|
|
17
|
+
/** List of the fields included in this request. */
|
|
18
|
+
requestTypeFields?: RequestTypeFieldDto[];
|
|
19
|
+
}
|
|
20
|
+
/** Date of the current build. */
|
|
21
|
+
export interface DateDto {
|
|
22
|
+
/**
|
|
23
|
+
* Date as the number of milliseconds that have elapsed since 00:00:00 Coordinated
|
|
24
|
+
* Universal Time (UTC), 1 January 1970.
|
|
25
|
+
*/
|
|
26
|
+
epochMillis?: number;
|
|
27
|
+
/** Date in a user-friendly text format. */
|
|
28
|
+
friendly?: string;
|
|
29
|
+
/** Date in ISO8601 format. */
|
|
30
|
+
iso8601?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Date in the format used in the Jira REST APIs, which is ISO8601 format but
|
|
33
|
+
* extended with milliseconds. For example, 2016-09-28T23:08:32.097+1000.
|
|
34
|
+
*/
|
|
35
|
+
jira?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* An entity property, for more information see [Entity
|
|
39
|
+
* properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).
|
|
40
|
+
*/
|
|
41
|
+
export interface EntityProperty {
|
|
42
|
+
/** The key of the property. Required on create and update. */
|
|
43
|
+
key?: string;
|
|
44
|
+
/** The value of the property. Required on create and update. */
|
|
45
|
+
value?: unknown;
|
|
46
|
+
}
|
|
47
|
+
export interface ErrorResponse {
|
|
48
|
+
errorMessage?: string;
|
|
49
|
+
i18nErrorMessage?: I18nErrorMessage;
|
|
50
|
+
}
|
|
51
|
+
/** The schema of a field. */
|
|
52
|
+
export interface JsonTypeBean {
|
|
53
|
+
/** If the field is a custom field, the configuration of the field. */
|
|
54
|
+
configuration?: {
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
/** If the field is a custom field, the URI of the field. */
|
|
58
|
+
custom?: string;
|
|
59
|
+
/** If the field is a custom field, the custom ID of the field. */
|
|
60
|
+
customId?: number;
|
|
61
|
+
/** When the data type is an array, the name of the field items within the array. */
|
|
62
|
+
items?: string;
|
|
63
|
+
/** If the field is a system field, the name of the field. */
|
|
64
|
+
system?: string;
|
|
65
|
+
/** The data type of the field. */
|
|
66
|
+
type: string;
|
|
67
|
+
}
|
|
68
|
+
export interface PagedDtoArticleDto {
|
|
69
|
+
_expands?: string[];
|
|
70
|
+
/** List of the links relating to the page. */
|
|
71
|
+
_links?: PagedLinkDto;
|
|
72
|
+
/** Indicates if this is the last page of records (true) or not (false). */
|
|
73
|
+
isLastPage?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Number of items to be returned per page, up to the maximum set for these
|
|
76
|
+
* objects in the current implementation.
|
|
77
|
+
*/
|
|
78
|
+
limit?: number;
|
|
79
|
+
/** Number of items returned in the page. */
|
|
80
|
+
size?: number;
|
|
81
|
+
/** Index of the first item returned in the page. */
|
|
82
|
+
start?: number;
|
|
83
|
+
/** Details of the items included in the page. */
|
|
84
|
+
values?: ArticleDto[];
|
|
85
|
+
}
|
|
86
|
+
export interface PagedDtoRequestTypeDto {
|
|
87
|
+
_expands?: string[];
|
|
88
|
+
/** List of the links relating to the page. */
|
|
89
|
+
_links?: PagedLinkDto;
|
|
90
|
+
/** Indicates if this is the last page of records (true) or not (false). */
|
|
91
|
+
isLastPage?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Number of items to be returned per page, up to the maximum set for these
|
|
94
|
+
* objects in the current implementation.
|
|
95
|
+
*/
|
|
96
|
+
limit?: number;
|
|
97
|
+
/** Number of items returned in the page. */
|
|
98
|
+
size?: number;
|
|
99
|
+
/** Index of the first item returned in the page. */
|
|
100
|
+
start?: number;
|
|
101
|
+
/** Details of the items included in the page. */
|
|
102
|
+
values?: RequestTypeDto[];
|
|
103
|
+
}
|
|
104
|
+
export interface PagedDtoUserDto {
|
|
105
|
+
_expands?: string[];
|
|
106
|
+
/** List of the links relating to the page. */
|
|
107
|
+
_links?: PagedLinkDto;
|
|
108
|
+
/** Indicates if this is the last page of records (true) or not (false). */
|
|
109
|
+
isLastPage?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Number of items to be returned per page, up to the maximum set for these
|
|
112
|
+
* objects in the current implementation.
|
|
113
|
+
*/
|
|
114
|
+
limit?: number;
|
|
115
|
+
/** Number of items returned in the page. */
|
|
116
|
+
size?: number;
|
|
117
|
+
/** Index of the first item returned in the page. */
|
|
118
|
+
start?: number;
|
|
119
|
+
/** Details of the items included in the page. */
|
|
120
|
+
values?: UserDto[];
|
|
121
|
+
}
|
|
122
|
+
/** List of the links relating to the page. */
|
|
123
|
+
export interface PagedLinkDto {
|
|
124
|
+
/** Base URL for the REST API calls. */
|
|
125
|
+
base?: string;
|
|
126
|
+
context?: string;
|
|
127
|
+
/** REST API URL for the next page, if there is one. */
|
|
128
|
+
next?: string;
|
|
129
|
+
/** REST API URL for the previous page, if there is one. */
|
|
130
|
+
prev?: string;
|
|
131
|
+
/** REST API URL for the current page. */
|
|
132
|
+
self?: string;
|
|
133
|
+
}
|
|
134
|
+
/** List of property keys. */
|
|
135
|
+
export interface PropertyKeys {
|
|
136
|
+
/** Property key details. */
|
|
137
|
+
keys?: PropertyKey[];
|
|
138
|
+
}
|
|
139
|
+
/** Expandable details of the request type. */
|
|
140
|
+
export interface RequestTypeDto {
|
|
141
|
+
/**
|
|
142
|
+
* List of items that can be expanded in the response by specifying the expand
|
|
143
|
+
* query parameter.
|
|
144
|
+
*/
|
|
145
|
+
_expands?: string[];
|
|
146
|
+
/** REST API URL for the request type. */
|
|
147
|
+
_links?: SelfLinkDto;
|
|
148
|
+
/** Description of the request type. */
|
|
149
|
+
description?: string;
|
|
150
|
+
/** Fields and additional metadata for creating a request that uses the request type */
|
|
151
|
+
fields?: CustomerRequestCreateMetaDto;
|
|
152
|
+
/** List of the request type groups the request type belongs to. */
|
|
153
|
+
groupIds?: string[];
|
|
154
|
+
/** Help text for the request type. */
|
|
155
|
+
helpText?: string;
|
|
156
|
+
/** Links to the request type's icons. */
|
|
157
|
+
icon?: RequestTypeIconDto;
|
|
158
|
+
/** ID for the request type. */
|
|
159
|
+
id?: string;
|
|
160
|
+
/** ID of the issue type the request type is based upon. */
|
|
161
|
+
issueTypeId?: string;
|
|
162
|
+
/** Short name for the request type. */
|
|
163
|
+
name?: string;
|
|
164
|
+
/** ID of the customer portal associated with the service desk project. */
|
|
165
|
+
portalId?: string;
|
|
166
|
+
/** The request type's practice */
|
|
167
|
+
practice?: string;
|
|
168
|
+
/** ID of the service desk the request type belongs to. */
|
|
169
|
+
serviceDeskId?: string;
|
|
170
|
+
}
|
|
171
|
+
/** REST API URL of the instance. */
|
|
172
|
+
export interface SelfLinkDto {
|
|
173
|
+
self?: string;
|
|
174
|
+
}
|
|
175
|
+
/** Expandable details of the service desk. */
|
|
176
|
+
export interface ServiceDeskDto {
|
|
177
|
+
/** REST API URL to the service desk. */
|
|
178
|
+
_links?: SelfLinkDto;
|
|
179
|
+
/** ID of the service desk. */
|
|
180
|
+
id?: string;
|
|
181
|
+
/** ID of the peer project for the service desk. */
|
|
182
|
+
projectId?: string;
|
|
183
|
+
/** Key of the peer project of the service desk. */
|
|
184
|
+
projectKey?: string;
|
|
185
|
+
/** Name of the project and service desk. */
|
|
186
|
+
projectName?: string;
|
|
187
|
+
}
|
|
188
|
+
export interface UserDto {
|
|
189
|
+
/** URLs for the customer record and related items. */
|
|
190
|
+
_links?: UserLinkDto;
|
|
191
|
+
/**
|
|
192
|
+
* The accountId of the user, which uniquely identifies the user across all
|
|
193
|
+
* Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*.
|
|
194
|
+
*/
|
|
195
|
+
accountId?: string;
|
|
196
|
+
/** Indicates if the customer is active (true) or inactive (false) */
|
|
197
|
+
active?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Customer's name for display in a UI. Depending on the customer’s privacy
|
|
200
|
+
* settings, this may return an alternative value.
|
|
201
|
+
*/
|
|
202
|
+
displayName?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Customer's email address. Depending on the customer’s privacy settings, this
|
|
205
|
+
* may be returned as null.
|
|
206
|
+
*/
|
|
207
|
+
emailAddress?: string;
|
|
208
|
+
/**
|
|
209
|
+
* This property is no longer available and will be removed from the documentation
|
|
210
|
+
* soon. See the [deprecation
|
|
211
|
+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
|
|
212
|
+
* for details.
|
|
213
|
+
*/
|
|
214
|
+
key?: string;
|
|
215
|
+
/**
|
|
216
|
+
* This property is no longer available and will be removed from the documentation
|
|
217
|
+
* soon. See the [deprecation
|
|
218
|
+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
|
|
219
|
+
* for details.
|
|
220
|
+
*/
|
|
221
|
+
name?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Customer time zone. Depending on the customer’s privacy settings, this may be
|
|
224
|
+
* returned as null.
|
|
225
|
+
*/
|
|
226
|
+
timeZone?: string;
|
|
227
|
+
}
|
|
228
|
+
export declare function registerCommonValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerCommonValidationSchemas = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
const assets_1 = require("./assets");
|
|
9
|
+
const customer_1 = require("./customer");
|
|
10
|
+
const knowledgebase_1 = require("./knowledgebase");
|
|
11
|
+
const organization_1 = require("./organization");
|
|
12
|
+
const request_1 = require("./request");
|
|
13
|
+
function registerCommonValidationSchemas(validationSchemaStorage) {
|
|
14
|
+
validationSchemaStorage.register("CustomerRequestCreateMetaDto", zod_1.z
|
|
15
|
+
.object({
|
|
16
|
+
canAddRequestParticipants: zod_1.z.boolean().optional(),
|
|
17
|
+
canRaiseOnBehalfOf: zod_1.z.boolean().optional(),
|
|
18
|
+
requestTypeFields: zod_1.z
|
|
19
|
+
.array(validationSchemaStorage.lazy("RequestTypeFieldDto"))
|
|
20
|
+
.optional(),
|
|
21
|
+
})
|
|
22
|
+
.strict()
|
|
23
|
+
.describe("CustomerRequestCreateMetaDto"));
|
|
24
|
+
validationSchemaStorage.register("DateDto", zod_1.z
|
|
25
|
+
.object({
|
|
26
|
+
epochMillis: zod_1.z.number().int().optional(),
|
|
27
|
+
friendly: zod_1.z.string().optional(),
|
|
28
|
+
iso8601: zod_1.z.string().optional(),
|
|
29
|
+
jira: zod_1.z.string().optional(),
|
|
30
|
+
})
|
|
31
|
+
.strict()
|
|
32
|
+
.describe("DateDto"));
|
|
33
|
+
validationSchemaStorage.register("EntityProperty", zod_1.z
|
|
34
|
+
.object({
|
|
35
|
+
key: zod_1.z.string().optional(),
|
|
36
|
+
value: zod_1.z.unknown().optional(),
|
|
37
|
+
})
|
|
38
|
+
.strict()
|
|
39
|
+
.describe("EntityProperty"));
|
|
40
|
+
validationSchemaStorage.register("ErrorResponse", zod_1.z
|
|
41
|
+
.object({
|
|
42
|
+
errorMessage: zod_1.z.string().optional(),
|
|
43
|
+
i18nErrorMessage: validationSchemaStorage
|
|
44
|
+
.lazy("I18nErrorMessage")
|
|
45
|
+
.optional(),
|
|
46
|
+
})
|
|
47
|
+
.strict()
|
|
48
|
+
.describe("ErrorResponse"));
|
|
49
|
+
validationSchemaStorage.register("JsonTypeBean", zod_1.z
|
|
50
|
+
.object({
|
|
51
|
+
configuration: zod_1.z.object({}).catchall(zod_1.z.unknown()).optional(),
|
|
52
|
+
custom: zod_1.z.string().optional(),
|
|
53
|
+
customId: zod_1.z.number().int().optional(),
|
|
54
|
+
items: zod_1.z.string().optional(),
|
|
55
|
+
system: zod_1.z.string().optional(),
|
|
56
|
+
type: zod_1.z.string(),
|
|
57
|
+
})
|
|
58
|
+
.strict()
|
|
59
|
+
.describe("JsonTypeBean"));
|
|
60
|
+
validationSchemaStorage.register("PagedDtoArticleDto", zod_1.z
|
|
61
|
+
.object({
|
|
62
|
+
_expands: zod_1.z.array(zod_1.z.string()).optional(),
|
|
63
|
+
_links: validationSchemaStorage.lazy("PagedLinkDto").optional(),
|
|
64
|
+
isLastPage: zod_1.z.boolean().optional(),
|
|
65
|
+
limit: zod_1.z.number().int().optional(),
|
|
66
|
+
size: zod_1.z.number().int().optional(),
|
|
67
|
+
start: zod_1.z.number().int().optional(),
|
|
68
|
+
values: zod_1.z.array(validationSchemaStorage.lazy("ArticleDto")).optional(),
|
|
69
|
+
})
|
|
70
|
+
.strict()
|
|
71
|
+
.describe("PagedDtoArticleDto"));
|
|
72
|
+
validationSchemaStorage.register("PagedDtoRequestTypeDto", zod_1.z
|
|
73
|
+
.object({
|
|
74
|
+
_expands: zod_1.z.array(zod_1.z.string()).optional(),
|
|
75
|
+
_links: validationSchemaStorage.lazy("PagedLinkDto").optional(),
|
|
76
|
+
isLastPage: zod_1.z.boolean().optional(),
|
|
77
|
+
limit: zod_1.z.number().int().optional(),
|
|
78
|
+
size: zod_1.z.number().int().optional(),
|
|
79
|
+
start: zod_1.z.number().int().optional(),
|
|
80
|
+
values: zod_1.z
|
|
81
|
+
.array(validationSchemaStorage.lazy("RequestTypeDto"))
|
|
82
|
+
.optional(),
|
|
83
|
+
})
|
|
84
|
+
.strict()
|
|
85
|
+
.describe("PagedDtoRequestTypeDto"));
|
|
86
|
+
validationSchemaStorage.register("PagedDtoUserDto", zod_1.z
|
|
87
|
+
.object({
|
|
88
|
+
_expands: zod_1.z.array(zod_1.z.string()).optional(),
|
|
89
|
+
_links: validationSchemaStorage.lazy("PagedLinkDto").optional(),
|
|
90
|
+
isLastPage: zod_1.z.boolean().optional(),
|
|
91
|
+
limit: zod_1.z.number().int().optional(),
|
|
92
|
+
size: zod_1.z.number().int().optional(),
|
|
93
|
+
start: zod_1.z.number().int().optional(),
|
|
94
|
+
values: zod_1.z.array(validationSchemaStorage.lazy("UserDto")).optional(),
|
|
95
|
+
})
|
|
96
|
+
.strict()
|
|
97
|
+
.describe("PagedDtoUserDto"));
|
|
98
|
+
validationSchemaStorage.register("PagedLinkDto", zod_1.z
|
|
99
|
+
.object({
|
|
100
|
+
base: zod_1.z.string().optional(),
|
|
101
|
+
context: zod_1.z.string().optional(),
|
|
102
|
+
next: zod_1.z.string().optional(),
|
|
103
|
+
prev: zod_1.z.string().optional(),
|
|
104
|
+
self: zod_1.z.string().optional(),
|
|
105
|
+
})
|
|
106
|
+
.strict()
|
|
107
|
+
.describe("PagedLinkDto"));
|
|
108
|
+
validationSchemaStorage.register("PropertyKeys", zod_1.z
|
|
109
|
+
.object({
|
|
110
|
+
keys: zod_1.z.array(validationSchemaStorage.lazy("PropertyKey")).optional(),
|
|
111
|
+
})
|
|
112
|
+
.strict()
|
|
113
|
+
.describe("PropertyKeys"));
|
|
114
|
+
validationSchemaStorage.register("RequestTypeDto", zod_1.z
|
|
115
|
+
.object({
|
|
116
|
+
_expands: zod_1.z.array(zod_1.z.string()).optional(),
|
|
117
|
+
_links: validationSchemaStorage.lazy("SelfLinkDto").optional(),
|
|
118
|
+
description: zod_1.z.string().optional(),
|
|
119
|
+
fields: validationSchemaStorage
|
|
120
|
+
.lazy("CustomerRequestCreateMetaDto")
|
|
121
|
+
.optional(),
|
|
122
|
+
groupIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
123
|
+
helpText: zod_1.z.string().optional(),
|
|
124
|
+
icon: validationSchemaStorage.lazy("RequestTypeIconDto").optional(),
|
|
125
|
+
id: zod_1.z.string().optional(),
|
|
126
|
+
issueTypeId: zod_1.z.string().optional(),
|
|
127
|
+
name: zod_1.z.string().optional(),
|
|
128
|
+
portalId: zod_1.z.string().optional(),
|
|
129
|
+
practice: zod_1.z.string().optional(),
|
|
130
|
+
serviceDeskId: zod_1.z.string().optional(),
|
|
131
|
+
})
|
|
132
|
+
.strict()
|
|
133
|
+
.describe("RequestTypeDto"));
|
|
134
|
+
validationSchemaStorage.register("SelfLinkDto", zod_1.z
|
|
135
|
+
.object({
|
|
136
|
+
self: zod_1.z.string().optional(),
|
|
137
|
+
})
|
|
138
|
+
.strict()
|
|
139
|
+
.describe("SelfLinkDto"));
|
|
140
|
+
validationSchemaStorage.register("ServiceDeskDto", zod_1.z
|
|
141
|
+
.object({
|
|
142
|
+
_links: validationSchemaStorage.lazy("SelfLinkDto").optional(),
|
|
143
|
+
id: zod_1.z.string().optional(),
|
|
144
|
+
projectId: zod_1.z.string().optional(),
|
|
145
|
+
projectKey: zod_1.z.string().optional(),
|
|
146
|
+
projectName: zod_1.z.string().optional(),
|
|
147
|
+
})
|
|
148
|
+
.strict()
|
|
149
|
+
.describe("ServiceDeskDto"));
|
|
150
|
+
validationSchemaStorage.register("UserDto", zod_1.z
|
|
151
|
+
.object({
|
|
152
|
+
_links: validationSchemaStorage.lazy("UserLinkDto").optional(),
|
|
153
|
+
accountId: zod_1.z.string().optional(),
|
|
154
|
+
active: zod_1.z.boolean().optional(),
|
|
155
|
+
displayName: zod_1.z.string().optional(),
|
|
156
|
+
emailAddress: zod_1.z.string().optional(),
|
|
157
|
+
key: zod_1.z.string().optional(),
|
|
158
|
+
name: zod_1.z.string().optional(),
|
|
159
|
+
timeZone: zod_1.z.string().optional(),
|
|
160
|
+
})
|
|
161
|
+
.strict()
|
|
162
|
+
.describe("UserDto"));
|
|
163
|
+
validationSchemaStorage.registerOnce([
|
|
164
|
+
request_1.registerRequestValidationSchemas,
|
|
165
|
+
assets_1.registerAssetsValidationSchemas,
|
|
166
|
+
knowledgebase_1.registerKnowledgebaseValidationSchemas,
|
|
167
|
+
organization_1.registerOrganizationValidationSchemas,
|
|
168
|
+
customer_1.registerCustomerValidationSchemas,
|
|
169
|
+
]);
|
|
170
|
+
}
|
|
171
|
+
exports.registerCommonValidationSchemas = registerCommonValidationSchemas;
|
|
172
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/openapi/serviceManagement/models/common.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AAGzC,qCAGkB;AAClB,yCAGoB;AACpB,mDAGyB;AACzB,iDAGwB;AACxB,uCAImB;AA6NnB,SAAgB,+BAA+B,CAC7C,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,8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ustomerCreateDto {
|
|
4
|
+
/** Customer's name for display in the UI. */
|
|
5
|
+
displayName?: string;
|
|
6
|
+
/** Customer's email address. */
|
|
7
|
+
email?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Deprecated, please use 'displayName'.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
fullName?: string;
|
|
14
|
+
}
|
|
15
|
+
/** URLs for the customer record and related items. */
|
|
16
|
+
export interface UserLinkDto {
|
|
17
|
+
/**
|
|
18
|
+
* Links to the various sizes of the customer's avatar. Note that this property is
|
|
19
|
+
* deprecated, and will be removed in future versions.
|
|
20
|
+
*
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
23
|
+
avatarUrls?: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
26
|
+
/** REST API URL for the customer. */
|
|
27
|
+
jiraRest?: string;
|
|
28
|
+
self?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function registerCustomerValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerCustomerValidationSchemas = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
function registerCustomerValidationSchemas(validationSchemaStorage) {
|
|
9
|
+
validationSchemaStorage.register("CustomerCreateDto", zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
displayName: zod_1.z.string().optional(),
|
|
12
|
+
email: zod_1.z.string().optional(),
|
|
13
|
+
fullName: zod_1.z.string().optional(),
|
|
14
|
+
})
|
|
15
|
+
.strict()
|
|
16
|
+
.describe("CustomerCreateDto"));
|
|
17
|
+
validationSchemaStorage.register("UserLinkDto", zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
avatarUrls: zod_1.z.object({}).catchall(zod_1.z.string()).optional(),
|
|
20
|
+
jiraRest: zod_1.z.string().optional(),
|
|
21
|
+
self: zod_1.z.string().optional(),
|
|
22
|
+
})
|
|
23
|
+
.strict()
|
|
24
|
+
.describe("UserLinkDto"));
|
|
25
|
+
}
|
|
26
|
+
exports.registerCustomerValidationSchemas = registerCustomerValidationSchemas;
|
|
27
|
+
//# sourceMappingURL=customer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../../../src/openapi/serviceManagement/models/customer.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AA8BzC,SAAgB,iCAAiC,CAC/C,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,mBAAmB,EACnB,OAAC;SACE,MAAM,CAAC;QACN,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,mBAAmB,CAAC,CACjC,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,aAAa,EACb,OAAC;SACE,MAAM,CAAC;QACN,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QACxD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC5B,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,aAAa,CAAC,CAC3B,CAAC;AACJ,CAAC;AAzBD,8EAyBC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ZodTypeAny } from "zod";
|
|
2
|
+
import type { CommonValidationSchemaStorage } from "../core/CommonValidationSchemaStorage";
|
|
3
|
+
import { type DateDto, type SelfLinkDto } from "./common";
|
|
4
|
+
export interface SoftwareInfoDto {
|
|
5
|
+
/** REST API URL of the instance. */
|
|
6
|
+
_links?: SelfLinkDto;
|
|
7
|
+
/** Reference of the change set included in the build. */
|
|
8
|
+
buildChangeSet?: string;
|
|
9
|
+
/** Date of the current build. */
|
|
10
|
+
buildDate?: DateDto;
|
|
11
|
+
/** Indicates whether the instance is licensed (true) or not (false). */
|
|
12
|
+
isLicensedForUse?: boolean;
|
|
13
|
+
/** Jira Platform version upon which Service Desk is based. */
|
|
14
|
+
platformVersion?: string;
|
|
15
|
+
/** Jira Service Management version. */
|
|
16
|
+
version?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function registerInfoValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerInfoValidationSchemas = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
const common_1 = require("./common");
|
|
9
|
+
function registerInfoValidationSchemas(validationSchemaStorage) {
|
|
10
|
+
validationSchemaStorage.register("SoftwareInfoDto", zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
_links: validationSchemaStorage.lazy("SelfLinkDto").optional(),
|
|
13
|
+
buildChangeSet: zod_1.z.string().optional(),
|
|
14
|
+
buildDate: validationSchemaStorage.lazy("DateDto").optional(),
|
|
15
|
+
isLicensedForUse: zod_1.z.boolean().optional(),
|
|
16
|
+
platformVersion: zod_1.z.string().optional(),
|
|
17
|
+
version: zod_1.z.string().optional(),
|
|
18
|
+
})
|
|
19
|
+
.strict()
|
|
20
|
+
.describe("SoftwareInfoDto"));
|
|
21
|
+
validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
|
|
22
|
+
}
|
|
23
|
+
exports.registerInfoValidationSchemas = registerInfoValidationSchemas;
|
|
24
|
+
//# sourceMappingURL=info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../src/openapi/serviceManagement/models/info.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AAGzC,qCAIkB;AAelB,SAAgB,6BAA6B,CAC3C,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,iBAAiB,EACjB,OAAC;SACE,MAAM,CAAC;QACN,MAAM,EAAE,uBAAuB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;QAC9D,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACrC,SAAS,EAAE,uBAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;QAC7D,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QACxC,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACtC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,iBAAiB,CAAC,CAC/B,CAAC;IACF,uBAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AAlBD,sEAkBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ZodTypeAny } from "zod";
|
|
2
|
+
import type { CommonValidationSchemaStorage } from "../core/CommonValidationSchemaStorage";
|
|
3
|
+
export interface ArticleDto {
|
|
4
|
+
content?: ContentDto;
|
|
5
|
+
/** Excerpt of the article which matches the given query string. */
|
|
6
|
+
excerpt?: string;
|
|
7
|
+
/** Source of the article. */
|
|
8
|
+
source?: SourceDto;
|
|
9
|
+
/** Title of the article. */
|
|
10
|
+
title?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ContentDto {
|
|
13
|
+
/**
|
|
14
|
+
* Url containing the body of the article (without title), suitable for rendering
|
|
15
|
+
* in an iframe
|
|
16
|
+
*/
|
|
17
|
+
iframeSrc?: string;
|
|
18
|
+
}
|
|
19
|
+
/** Source of the article. */
|
|
20
|
+
export interface SourceDto extends Record<string, unknown> {
|
|
21
|
+
/** Type of the knowledge base source */
|
|
22
|
+
type?: "confluence";
|
|
23
|
+
}
|
|
24
|
+
export declare function registerKnowledgebaseValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerKnowledgebaseValidationSchemas = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
function registerKnowledgebaseValidationSchemas(validationSchemaStorage) {
|
|
9
|
+
validationSchemaStorage.register("ArticleDto", zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
content: validationSchemaStorage.lazy("ContentDto").optional(),
|
|
12
|
+
excerpt: zod_1.z.string().optional(),
|
|
13
|
+
source: validationSchemaStorage.lazy("SourceDto").optional(),
|
|
14
|
+
title: zod_1.z.string().optional(),
|
|
15
|
+
})
|
|
16
|
+
.strict()
|
|
17
|
+
.describe("ArticleDto"));
|
|
18
|
+
validationSchemaStorage.register("ContentDto", zod_1.z
|
|
19
|
+
.object({
|
|
20
|
+
iframeSrc: zod_1.z.string().optional(),
|
|
21
|
+
})
|
|
22
|
+
.strict()
|
|
23
|
+
.describe("ContentDto"));
|
|
24
|
+
validationSchemaStorage.register("SourceDto", zod_1.z
|
|
25
|
+
.object({
|
|
26
|
+
type: zod_1.z.enum(["confluence"]).optional(),
|
|
27
|
+
})
|
|
28
|
+
.catchall(zod_1.z.unknown())
|
|
29
|
+
.describe("SourceDto"));
|
|
30
|
+
}
|
|
31
|
+
exports.registerKnowledgebaseValidationSchemas = registerKnowledgebaseValidationSchemas;
|
|
32
|
+
//# sourceMappingURL=knowledgebase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledgebase.js","sourceRoot":"","sources":["../../../../src/openapi/serviceManagement/models/knowledgebase.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAyC;AAwBzC,SAAgB,sCAAsC,CACpD,uBAAkE;IAElE,uBAAuB,CAAC,QAAQ,CAC9B,YAAY,EACZ,OAAC;SACE,MAAM,CAAC;QACN,OAAO,EAAE,uBAAuB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;QAC9D,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,MAAM,EAAE,uBAAuB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;QAC5D,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,YAAY,CAAC,CAC1B,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,YAAY,EACZ,OAAC;SACE,MAAM,CAAC;QACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,CAAC,YAAY,CAAC,CAC1B,CAAC;IACF,uBAAuB,CAAC,QAAQ,CAC9B,WAAW,EACX,OAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE;KACxC,CAAC;SACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACrB,QAAQ,CAAC,WAAW,CAAC,CACzB,CAAC;AACJ,CAAC;AAjCD,wFAiCC"}
|