@vendasta/forms_microservice 0.26.0 → 0.28.0
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/esm2020/lib/_internal/enums/api.enum.mjs +9 -1
- package/esm2020/lib/_internal/enums/index.mjs +3 -2
- package/esm2020/lib/_internal/enums/openapiv2.enum.mjs +55 -0
- package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/openapiv2.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/annotations.mjs +50 -0
- package/esm2020/lib/_internal/objects/api.mjs +59 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -2
- package/esm2020/lib/_internal/objects/openapiv2.mjs +1191 -0
- package/fesm2015/vendasta-forms_microservice.mjs +1442 -81
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +1442 -81
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +8 -1
- package/lib/_internal/enums/index.d.ts +2 -1
- package/lib/_internal/enums/openapiv2.enum.d.ts +42 -0
- package/lib/_internal/interfaces/annotations.interface.d.ts +7 -0
- package/lib/_internal/interfaces/api.interface.d.ts +9 -0
- package/lib/_internal/interfaces/index.d.ts +3 -1
- package/lib/_internal/interfaces/openapiv2.interface.d.ts +246 -0
- package/lib/_internal/objects/annotations.d.ts +15 -0
- package/lib/_internal/objects/api.d.ts +15 -0
- package/lib/_internal/objects/index.d.ts +3 -1
- package/lib/_internal/objects/openapiv2.d.ts +353 -0
- package/package.json +1 -1
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import * as e from '../enums';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class Contact implements i.ContactInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
email: string;
|
|
8
|
+
static fromProto(proto: any): Contact;
|
|
9
|
+
constructor(kwargs?: i.ContactInterface);
|
|
10
|
+
toApiJson(): object;
|
|
11
|
+
}
|
|
12
|
+
export declare class EnumSchema implements i.EnumSchemaInterface {
|
|
13
|
+
description: string;
|
|
14
|
+
default: string;
|
|
15
|
+
title: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
readOnly: boolean;
|
|
18
|
+
externalDocs: ExternalDocumentation;
|
|
19
|
+
example: string;
|
|
20
|
+
ref: string;
|
|
21
|
+
extensions: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
static fromProto(proto: any): EnumSchema;
|
|
25
|
+
constructor(kwargs?: i.EnumSchemaInterface);
|
|
26
|
+
toApiJson(): object;
|
|
27
|
+
}
|
|
28
|
+
export declare class ResponseExamplesEntry implements i.ResponseExamplesEntryInterface {
|
|
29
|
+
key: string;
|
|
30
|
+
value: string;
|
|
31
|
+
static fromProto(proto: any): ResponseExamplesEntry;
|
|
32
|
+
constructor(kwargs?: i.ResponseExamplesEntryInterface);
|
|
33
|
+
toApiJson(): object;
|
|
34
|
+
}
|
|
35
|
+
export declare class ResponseExtensionsEntry implements i.ResponseExtensionsEntryInterface {
|
|
36
|
+
key: string;
|
|
37
|
+
value: any;
|
|
38
|
+
static fromProto(proto: any): ResponseExtensionsEntry;
|
|
39
|
+
constructor(kwargs?: i.ResponseExtensionsEntryInterface);
|
|
40
|
+
toApiJson(): object;
|
|
41
|
+
}
|
|
42
|
+
export declare class SwaggerExtensionsEntry implements i.SwaggerExtensionsEntryInterface {
|
|
43
|
+
key: string;
|
|
44
|
+
value: any;
|
|
45
|
+
static fromProto(proto: any): SwaggerExtensionsEntry;
|
|
46
|
+
constructor(kwargs?: i.SwaggerExtensionsEntryInterface);
|
|
47
|
+
toApiJson(): object;
|
|
48
|
+
}
|
|
49
|
+
export declare class SecuritySchemeExtensionsEntry implements i.SecuritySchemeExtensionsEntryInterface {
|
|
50
|
+
key: string;
|
|
51
|
+
value: any;
|
|
52
|
+
static fromProto(proto: any): SecuritySchemeExtensionsEntry;
|
|
53
|
+
constructor(kwargs?: i.SecuritySchemeExtensionsEntryInterface);
|
|
54
|
+
toApiJson(): object;
|
|
55
|
+
}
|
|
56
|
+
export declare class TagExtensionsEntry implements i.TagExtensionsEntryInterface {
|
|
57
|
+
key: string;
|
|
58
|
+
value: any;
|
|
59
|
+
static fromProto(proto: any): TagExtensionsEntry;
|
|
60
|
+
constructor(kwargs?: i.TagExtensionsEntryInterface);
|
|
61
|
+
toApiJson(): object;
|
|
62
|
+
}
|
|
63
|
+
export declare class OperationExtensionsEntry implements i.OperationExtensionsEntryInterface {
|
|
64
|
+
key: string;
|
|
65
|
+
value: any;
|
|
66
|
+
static fromProto(proto: any): OperationExtensionsEntry;
|
|
67
|
+
constructor(kwargs?: i.OperationExtensionsEntryInterface);
|
|
68
|
+
toApiJson(): object;
|
|
69
|
+
}
|
|
70
|
+
export declare class JSONSchemaExtensionsEntry implements i.JSONSchemaExtensionsEntryInterface {
|
|
71
|
+
key: string;
|
|
72
|
+
value: any;
|
|
73
|
+
static fromProto(proto: any): JSONSchemaExtensionsEntry;
|
|
74
|
+
constructor(kwargs?: i.JSONSchemaExtensionsEntryInterface);
|
|
75
|
+
toApiJson(): object;
|
|
76
|
+
}
|
|
77
|
+
export declare class EnumSchemaExtensionsEntry implements i.EnumSchemaExtensionsEntryInterface {
|
|
78
|
+
key: string;
|
|
79
|
+
value: any;
|
|
80
|
+
static fromProto(proto: any): EnumSchemaExtensionsEntry;
|
|
81
|
+
constructor(kwargs?: i.EnumSchemaExtensionsEntryInterface);
|
|
82
|
+
toApiJson(): object;
|
|
83
|
+
}
|
|
84
|
+
export declare class InfoExtensionsEntry implements i.InfoExtensionsEntryInterface {
|
|
85
|
+
key: string;
|
|
86
|
+
value: any;
|
|
87
|
+
static fromProto(proto: any): InfoExtensionsEntry;
|
|
88
|
+
constructor(kwargs?: i.InfoExtensionsEntryInterface);
|
|
89
|
+
toApiJson(): object;
|
|
90
|
+
}
|
|
91
|
+
export declare class ExternalDocumentation implements i.ExternalDocumentationInterface {
|
|
92
|
+
description: string;
|
|
93
|
+
url: string;
|
|
94
|
+
static fromProto(proto: any): ExternalDocumentation;
|
|
95
|
+
constructor(kwargs?: i.ExternalDocumentationInterface);
|
|
96
|
+
toApiJson(): object;
|
|
97
|
+
}
|
|
98
|
+
export declare class JSONSchemaFieldConfiguration implements i.JSONSchemaFieldConfigurationInterface {
|
|
99
|
+
pathParamName: string;
|
|
100
|
+
deprecated: boolean;
|
|
101
|
+
static fromProto(proto: any): JSONSchemaFieldConfiguration;
|
|
102
|
+
constructor(kwargs?: i.JSONSchemaFieldConfigurationInterface);
|
|
103
|
+
toApiJson(): object;
|
|
104
|
+
}
|
|
105
|
+
export declare class Header implements i.HeaderInterface {
|
|
106
|
+
description: string;
|
|
107
|
+
type: string;
|
|
108
|
+
format: string;
|
|
109
|
+
default: string;
|
|
110
|
+
pattern: string;
|
|
111
|
+
static fromProto(proto: any): Header;
|
|
112
|
+
constructor(kwargs?: i.HeaderInterface);
|
|
113
|
+
toApiJson(): object;
|
|
114
|
+
}
|
|
115
|
+
export declare class HeaderParameter implements i.HeaderParameterInterface {
|
|
116
|
+
name: string;
|
|
117
|
+
description: string;
|
|
118
|
+
type: e.HeaderParameterType;
|
|
119
|
+
format: string;
|
|
120
|
+
required: boolean;
|
|
121
|
+
static fromProto(proto: any): HeaderParameter;
|
|
122
|
+
constructor(kwargs?: i.HeaderParameterInterface);
|
|
123
|
+
toApiJson(): object;
|
|
124
|
+
}
|
|
125
|
+
export declare class ResponseHeadersEntry implements i.ResponseHeadersEntryInterface {
|
|
126
|
+
key: string;
|
|
127
|
+
value: Header;
|
|
128
|
+
static fromProto(proto: any): ResponseHeadersEntry;
|
|
129
|
+
constructor(kwargs?: i.ResponseHeadersEntryInterface);
|
|
130
|
+
toApiJson(): object;
|
|
131
|
+
}
|
|
132
|
+
export declare class Info implements i.InfoInterface {
|
|
133
|
+
title: string;
|
|
134
|
+
description: string;
|
|
135
|
+
termsOfService: string;
|
|
136
|
+
contact: Contact;
|
|
137
|
+
license: License;
|
|
138
|
+
version: string;
|
|
139
|
+
extensions: {
|
|
140
|
+
[key: string]: any;
|
|
141
|
+
};
|
|
142
|
+
static fromProto(proto: any): Info;
|
|
143
|
+
constructor(kwargs?: i.InfoInterface);
|
|
144
|
+
toApiJson(): object;
|
|
145
|
+
}
|
|
146
|
+
export declare class JSONSchema implements i.JSONSchemaInterface {
|
|
147
|
+
ref: string;
|
|
148
|
+
title: string;
|
|
149
|
+
description: string;
|
|
150
|
+
default: string;
|
|
151
|
+
readOnly: boolean;
|
|
152
|
+
example: string;
|
|
153
|
+
multipleOf: number;
|
|
154
|
+
maximum: number;
|
|
155
|
+
exclusiveMaximum: boolean;
|
|
156
|
+
minimum: number;
|
|
157
|
+
exclusiveMinimum: boolean;
|
|
158
|
+
maxLength: number;
|
|
159
|
+
minLength: number;
|
|
160
|
+
pattern: string;
|
|
161
|
+
maxItems: number;
|
|
162
|
+
minItems: number;
|
|
163
|
+
uniqueItems: boolean;
|
|
164
|
+
maxProperties: number;
|
|
165
|
+
minProperties: number;
|
|
166
|
+
required: string[];
|
|
167
|
+
array: string[];
|
|
168
|
+
type: e.JSONSchemaJSONSchemaSimpleTypes[];
|
|
169
|
+
format: string;
|
|
170
|
+
enum: string[];
|
|
171
|
+
fieldConfiguration: JSONSchemaFieldConfiguration;
|
|
172
|
+
extensions: {
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
};
|
|
175
|
+
static fromProto(proto: any): JSONSchema;
|
|
176
|
+
constructor(kwargs?: i.JSONSchemaInterface);
|
|
177
|
+
toApiJson(): object;
|
|
178
|
+
}
|
|
179
|
+
export declare class License implements i.LicenseInterface {
|
|
180
|
+
name: string;
|
|
181
|
+
url: string;
|
|
182
|
+
static fromProto(proto: any): License;
|
|
183
|
+
constructor(kwargs?: i.LicenseInterface);
|
|
184
|
+
toApiJson(): object;
|
|
185
|
+
}
|
|
186
|
+
export declare class Operation implements i.OperationInterface {
|
|
187
|
+
tags: string[];
|
|
188
|
+
summary: string;
|
|
189
|
+
description: string;
|
|
190
|
+
externalDocs: ExternalDocumentation;
|
|
191
|
+
operationId: string;
|
|
192
|
+
consumes: string[];
|
|
193
|
+
produces: string[];
|
|
194
|
+
responses: {
|
|
195
|
+
[key: string]: Response;
|
|
196
|
+
};
|
|
197
|
+
schemes: e.Scheme[];
|
|
198
|
+
deprecated: boolean;
|
|
199
|
+
security: SecurityRequirement[];
|
|
200
|
+
extensions: {
|
|
201
|
+
[key: string]: any;
|
|
202
|
+
};
|
|
203
|
+
parameters: Parameters;
|
|
204
|
+
static fromProto(proto: any): Operation;
|
|
205
|
+
constructor(kwargs?: i.OperationInterface);
|
|
206
|
+
toApiJson(): object;
|
|
207
|
+
}
|
|
208
|
+
export declare class Parameters implements i.ParametersInterface {
|
|
209
|
+
headers: HeaderParameter[];
|
|
210
|
+
static fromProto(proto: any): Parameters;
|
|
211
|
+
constructor(kwargs?: i.ParametersInterface);
|
|
212
|
+
toApiJson(): object;
|
|
213
|
+
}
|
|
214
|
+
export declare class Response implements i.ResponseInterface {
|
|
215
|
+
description: string;
|
|
216
|
+
schema: Schema;
|
|
217
|
+
headers: {
|
|
218
|
+
[key: string]: Header;
|
|
219
|
+
};
|
|
220
|
+
examples: {
|
|
221
|
+
[key: string]: string;
|
|
222
|
+
};
|
|
223
|
+
extensions: {
|
|
224
|
+
[key: string]: any;
|
|
225
|
+
};
|
|
226
|
+
static fromProto(proto: any): Response;
|
|
227
|
+
constructor(kwargs?: i.ResponseInterface);
|
|
228
|
+
toApiJson(): object;
|
|
229
|
+
}
|
|
230
|
+
export declare class OperationResponsesEntry implements i.OperationResponsesEntryInterface {
|
|
231
|
+
key: string;
|
|
232
|
+
value: Response;
|
|
233
|
+
static fromProto(proto: any): OperationResponsesEntry;
|
|
234
|
+
constructor(kwargs?: i.OperationResponsesEntryInterface);
|
|
235
|
+
toApiJson(): object;
|
|
236
|
+
}
|
|
237
|
+
export declare class SwaggerResponsesEntry implements i.SwaggerResponsesEntryInterface {
|
|
238
|
+
key: string;
|
|
239
|
+
value: Response;
|
|
240
|
+
static fromProto(proto: any): SwaggerResponsesEntry;
|
|
241
|
+
constructor(kwargs?: i.SwaggerResponsesEntryInterface);
|
|
242
|
+
toApiJson(): object;
|
|
243
|
+
}
|
|
244
|
+
export declare class Schema implements i.SchemaInterface {
|
|
245
|
+
jsonSchema: JSONSchema;
|
|
246
|
+
discriminator: string;
|
|
247
|
+
readOnly: boolean;
|
|
248
|
+
externalDocs: ExternalDocumentation;
|
|
249
|
+
example: string;
|
|
250
|
+
static fromProto(proto: any): Schema;
|
|
251
|
+
constructor(kwargs?: i.SchemaInterface);
|
|
252
|
+
toApiJson(): object;
|
|
253
|
+
}
|
|
254
|
+
export declare class ScopesScopeEntry implements i.ScopesScopeEntryInterface {
|
|
255
|
+
key: string;
|
|
256
|
+
value: string;
|
|
257
|
+
static fromProto(proto: any): ScopesScopeEntry;
|
|
258
|
+
constructor(kwargs?: i.ScopesScopeEntryInterface);
|
|
259
|
+
toApiJson(): object;
|
|
260
|
+
}
|
|
261
|
+
export declare class Scopes implements i.ScopesInterface {
|
|
262
|
+
scope: {
|
|
263
|
+
[key: string]: string;
|
|
264
|
+
};
|
|
265
|
+
static fromProto(proto: any): Scopes;
|
|
266
|
+
constructor(kwargs?: i.ScopesInterface);
|
|
267
|
+
toApiJson(): object;
|
|
268
|
+
}
|
|
269
|
+
export declare class SecurityDefinitions implements i.SecurityDefinitionsInterface {
|
|
270
|
+
security: {
|
|
271
|
+
[key: string]: SecurityScheme;
|
|
272
|
+
};
|
|
273
|
+
static fromProto(proto: any): SecurityDefinitions;
|
|
274
|
+
constructor(kwargs?: i.SecurityDefinitionsInterface);
|
|
275
|
+
toApiJson(): object;
|
|
276
|
+
}
|
|
277
|
+
export declare class SecurityDefinitionsSecurityEntry implements i.SecurityDefinitionsSecurityEntryInterface {
|
|
278
|
+
key: string;
|
|
279
|
+
value: SecurityScheme;
|
|
280
|
+
static fromProto(proto: any): SecurityDefinitionsSecurityEntry;
|
|
281
|
+
constructor(kwargs?: i.SecurityDefinitionsSecurityEntryInterface);
|
|
282
|
+
toApiJson(): object;
|
|
283
|
+
}
|
|
284
|
+
export declare class SecurityRequirement implements i.SecurityRequirementInterface {
|
|
285
|
+
securityRequirement: {
|
|
286
|
+
[key: string]: SecurityRequirementSecurityRequirementValue;
|
|
287
|
+
};
|
|
288
|
+
static fromProto(proto: any): SecurityRequirement;
|
|
289
|
+
constructor(kwargs?: i.SecurityRequirementInterface);
|
|
290
|
+
toApiJson(): object;
|
|
291
|
+
}
|
|
292
|
+
export declare class SecurityRequirementSecurityRequirementEntry implements i.SecurityRequirementSecurityRequirementEntryInterface {
|
|
293
|
+
key: string;
|
|
294
|
+
value: SecurityRequirementSecurityRequirementValue;
|
|
295
|
+
static fromProto(proto: any): SecurityRequirementSecurityRequirementEntry;
|
|
296
|
+
constructor(kwargs?: i.SecurityRequirementSecurityRequirementEntryInterface);
|
|
297
|
+
toApiJson(): object;
|
|
298
|
+
}
|
|
299
|
+
export declare class SecurityRequirementSecurityRequirementValue implements i.SecurityRequirementSecurityRequirementValueInterface {
|
|
300
|
+
scope: string[];
|
|
301
|
+
static fromProto(proto: any): SecurityRequirementSecurityRequirementValue;
|
|
302
|
+
constructor(kwargs?: i.SecurityRequirementSecurityRequirementValueInterface);
|
|
303
|
+
toApiJson(): object;
|
|
304
|
+
}
|
|
305
|
+
export declare class SecurityScheme implements i.SecuritySchemeInterface {
|
|
306
|
+
type: e.SecuritySchemeType;
|
|
307
|
+
description: string;
|
|
308
|
+
name: string;
|
|
309
|
+
in: e.SecuritySchemeIn;
|
|
310
|
+
flow: e.SecuritySchemeFlow;
|
|
311
|
+
authorizationUrl: string;
|
|
312
|
+
tokenUrl: string;
|
|
313
|
+
scopes: Scopes;
|
|
314
|
+
extensions: {
|
|
315
|
+
[key: string]: any;
|
|
316
|
+
};
|
|
317
|
+
static fromProto(proto: any): SecurityScheme;
|
|
318
|
+
constructor(kwargs?: i.SecuritySchemeInterface);
|
|
319
|
+
toApiJson(): object;
|
|
320
|
+
}
|
|
321
|
+
export declare class Swagger implements i.SwaggerInterface {
|
|
322
|
+
swagger: string;
|
|
323
|
+
info: Info;
|
|
324
|
+
host: string;
|
|
325
|
+
basePath: string;
|
|
326
|
+
schemes: e.Scheme[];
|
|
327
|
+
consumes: string[];
|
|
328
|
+
produces: string[];
|
|
329
|
+
responses: {
|
|
330
|
+
[key: string]: Response;
|
|
331
|
+
};
|
|
332
|
+
securityDefinitions: SecurityDefinitions;
|
|
333
|
+
security: SecurityRequirement[];
|
|
334
|
+
tags: Tag[];
|
|
335
|
+
externalDocs: ExternalDocumentation;
|
|
336
|
+
extensions: {
|
|
337
|
+
[key: string]: any;
|
|
338
|
+
};
|
|
339
|
+
static fromProto(proto: any): Swagger;
|
|
340
|
+
constructor(kwargs?: i.SwaggerInterface);
|
|
341
|
+
toApiJson(): object;
|
|
342
|
+
}
|
|
343
|
+
export declare class Tag implements i.TagInterface {
|
|
344
|
+
name: string;
|
|
345
|
+
description: string;
|
|
346
|
+
externalDocs: ExternalDocumentation;
|
|
347
|
+
extensions: {
|
|
348
|
+
[key: string]: any;
|
|
349
|
+
};
|
|
350
|
+
static fromProto(proto: any): Tag;
|
|
351
|
+
constructor(kwargs?: i.TagInterface);
|
|
352
|
+
toApiJson(): object;
|
|
353
|
+
}
|