-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatchedRfcToBeRequest.ts
More file actions
264 lines (251 loc) · 8.89 KB
/
PatchedRfcToBeRequest.ts
File metadata and controls
264 lines (251 loc) · 8.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
/* tslint:disable */
/* eslint-disable */
/**
* Purple
* Backend API for the Purple app
*
* The version of the OpenAPI document: 0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime.ts';
import type { RfcAuthorRequest } from './RfcAuthorRequest.ts';
import {
RfcAuthorRequestFromJSON,
RfcAuthorRequestFromJSONTyped,
RfcAuthorRequestToJSON,
RfcAuthorRequestToJSONTyped,
} from './RfcAuthorRequest.ts';
import type { IanaStatusSlugEnum } from './IanaStatusSlugEnum.ts';
import {
IanaStatusSlugEnumFromJSON,
IanaStatusSlugEnumFromJSONTyped,
IanaStatusSlugEnumToJSON,
IanaStatusSlugEnumToJSONTyped,
} from './IanaStatusSlugEnum.ts';
/**
* RfcToBeSerializer suitable for displaying full details of a single instance
* @export
* @interface PatchedRfcToBeRequest
*/
export interface PatchedRfcToBeRequest {
/**
* Document title
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
title?: string;
/**
* Document abstract
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
_abstract?: string;
/**
* Acronym of datatracker group where this document originated, if any
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
group?: string;
/**
*
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
disposition?: string;
/**
*
* @type {Date}
* @memberof PatchedRfcToBeRequest
*/
externalDeadline?: Date | null;
/**
*
* @type {Date}
* @memberof PatchedRfcToBeRequest
*/
internalGoal?: Date | null;
/**
*
* @type {Array<number>}
* @memberof PatchedRfcToBeRequest
*/
labels?: Array<number>;
/**
*
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
submittedFormat?: string;
/**
* Page count
* @type {number}
* @memberof PatchedRfcToBeRequest
*/
pages?: number | null;
/**
* Comma-separated list of keywords
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
keywords?: string;
/**
* TLP IPR boilerplate option
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
boilerplate?: string;
/**
* Current StdLevel
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
stdLevel?: string;
/**
* StdLevel at publication (blank until published)
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
publicationStdLevel?: string | null;
/**
* Current stream
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
stream?: string;
/**
* Stream at publication (blank until published)
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
publicationStream?: string | null;
/**
*
* @type {Array<RfcAuthorRequest>}
* @memberof PatchedRfcToBeRequest
*/
authors?: Array<RfcAuthorRequest>;
/**
* Set the document shepherd by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
* @type {number}
* @memberof PatchedRfcToBeRequest
*/
shepherdId?: number | null;
/**
* Set the IESG contact by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
* @type {number}
* @memberof PatchedRfcToBeRequest
*/
iesgContactId?: number | null;
/**
*
* @type {number}
* @memberof PatchedRfcToBeRequest
*/
rfcNumber?: number | null;
/**
* Whether document has consensus (None=unknown)
* @type {boolean}
* @memberof PatchedRfcToBeRequest
*/
consensus?: boolean | null;
/**
* Set the IANA status by providing the slug identifier.
*
* * `no_actions` - This document has no IANA actions
* * `not_completed` - IANA has not completed actions in draft
* * `completed` - IANA has completed actions in draft
* * `changes_required` - Changes to registries are required due to RFC edits
* * `reconciled` - IANA has reconciled changes between draft and RFC
* @type {IanaStatusSlugEnum}
* @memberof PatchedRfcToBeRequest
*/
ianaStatusSlug?: IanaStatusSlugEnum;
/**
* Repository name (e.g., ietf-tools/purple)
* @type {string}
* @memberof PatchedRfcToBeRequest
*/
repository?: string;
/**
* Set the stream manager by providing their datatracker person ID. The DatatrackerPerson record will be created if it does not exist.
* @type {number}
* @memberof PatchedRfcToBeRequest
*/
streamManagerId?: number | null;
}
/**
* Check if a given object implements the PatchedRfcToBeRequest interface.
*/
export function instanceOfPatchedRfcToBeRequest(value: object): value is PatchedRfcToBeRequest {
return true;
}
export function PatchedRfcToBeRequestFromJSON(json: any): PatchedRfcToBeRequest {
return PatchedRfcToBeRequestFromJSONTyped(json, false);
}
export function PatchedRfcToBeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRfcToBeRequest {
if (json == null) {
return json;
}
return {
'title': json['title'] == null ? undefined : json['title'],
'_abstract': json['abstract'] == null ? undefined : json['abstract'],
'group': json['group'] == null ? undefined : json['group'],
'disposition': json['disposition'] == null ? undefined : json['disposition'],
'externalDeadline': json['external_deadline'] == null ? undefined : (new Date(json['external_deadline'])),
'internalGoal': json['internal_goal'] == null ? undefined : (new Date(json['internal_goal'])),
'labels': json['labels'] == null ? undefined : json['labels'],
'submittedFormat': json['submitted_format'] == null ? undefined : json['submitted_format'],
'pages': json['pages'] == null ? undefined : json['pages'],
'keywords': json['keywords'] == null ? undefined : json['keywords'],
'boilerplate': json['boilerplate'] == null ? undefined : json['boilerplate'],
'stdLevel': json['std_level'] == null ? undefined : json['std_level'],
'publicationStdLevel': json['publication_std_level'] == null ? undefined : json['publication_std_level'],
'stream': json['stream'] == null ? undefined : json['stream'],
'publicationStream': json['publication_stream'] == null ? undefined : json['publication_stream'],
'authors': json['authors'] == null ? undefined : ((json['authors'] as Array<any>).map(RfcAuthorRequestFromJSON)),
'shepherdId': json['shepherd_id'] == null ? undefined : json['shepherd_id'],
'iesgContactId': json['iesg_contact_id'] == null ? undefined : json['iesg_contact_id'],
'rfcNumber': json['rfc_number'] == null ? undefined : json['rfc_number'],
'consensus': json['consensus'] == null ? undefined : json['consensus'],
'ianaStatusSlug': json['iana_status_slug'] == null ? undefined : IanaStatusSlugEnumFromJSON(json['iana_status_slug']),
'repository': json['repository'] == null ? undefined : json['repository'],
'streamManagerId': json['stream_manager_id'] == null ? undefined : json['stream_manager_id'],
};
}
export function PatchedRfcToBeRequestToJSON(json: any): PatchedRfcToBeRequest {
return PatchedRfcToBeRequestToJSONTyped(json, false);
}
export function PatchedRfcToBeRequestToJSONTyped(value?: PatchedRfcToBeRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'title': value['title'],
'abstract': value['_abstract'],
'group': value['group'],
'disposition': value['disposition'],
'external_deadline': value['externalDeadline'] == null ? value['externalDeadline'] : value['externalDeadline'].toISOString(),
'internal_goal': value['internalGoal'] == null ? value['internalGoal'] : value['internalGoal'].toISOString(),
'labels': value['labels'],
'submitted_format': value['submittedFormat'],
'pages': value['pages'],
'keywords': value['keywords'],
'boilerplate': value['boilerplate'],
'std_level': value['stdLevel'],
'publication_std_level': value['publicationStdLevel'],
'stream': value['stream'],
'publication_stream': value['publicationStream'],
'authors': value['authors'] == null ? undefined : ((value['authors'] as Array<any>).map(RfcAuthorRequestToJSON)),
'shepherd_id': value['shepherdId'],
'iesg_contact_id': value['iesgContactId'],
'rfc_number': value['rfcNumber'],
'consensus': value['consensus'],
'iana_status_slug': IanaStatusSlugEnumToJSON(value['ianaStatusSlug']),
'repository': value['repository'],
'stream_manager_id': value['streamManagerId'],
};
}