@conduit-client/model 3.7.1 → 3.8.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/dist/types/v1/index.d.ts +2 -1
- package/dist/types/v1/parser/__tests__/test-utils.d.ts +433 -0
- package/dist/types/v1/{amf → parser/amf}/AMFAPI.d.ts +3 -5
- package/dist/types/v1/{amf → parser/amf}/amf-api-service.d.ts +1 -8
- package/dist/types/v1/{amf → parser/amf}/amf-utils.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/endpoints/amf-endpoint.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/endpoints/amf-operation.d.ts +314 -314
- package/dist/types/v1/{amf → parser/amf}/index.d.ts +0 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFAllOfType.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/types/AMFAnyType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFArrayType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFBaseType.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/types/AMFDiscriminatedObjectType.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/types/AMFEnumType.d.ts +3 -3
- package/dist/types/v1/{amf → parser/amf}/types/AMFNilType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFNotType.d.ts +3 -3
- package/dist/types/v1/{amf → parser/amf}/types/AMFObjectType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFOneOfType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFRefType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFScalarTypes.d.ts +3 -3
- package/dist/types/v1/parser/amf/types/__tests__/AMFOneOfType.spec.d.ts +1 -0
- package/dist/types/v1/parser/amf/types/__tests__/AMFScalarType.spec.d.ts +1 -0
- package/dist/types/v1/{amf → parser/amf}/types/factory.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/types/index.d.ts +1 -2
- package/dist/types/v1/parser/parser-utils.d.ts +10 -0
- package/dist/types/v1/parser/zod-schemas.d.ts +445 -0
- package/dist/v1/index.js +1833 -1834
- package/dist/v1/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/types/v1/amf/__tests__/test-utils.d.ts +0 -212
- package/dist/types/v1/amf/types/annotations-schemas.d.ts +0 -172
- /package/dist/types/v1/{amf/types → parser}/__tests__/annotations-schemas.spec.d.ts +0 -0
- /package/dist/types/v1/{amf/__tests__/AMFAPI.spec.d.ts → parser/__tests__/parser-api.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/amf-api-service.spec.d.ts → parser/__tests__/parser-utils.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/amf-extensions-services.spec.d.ts → parser/__tests__/type-factory.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/amf-extensions.spec.d.ts → parser/amf/__tests__/AMFAPI.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/amf-utils.spec.d.ts → parser/amf/__tests__/amf-api-service.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/parser.spec.d.ts → parser/amf/__tests__/amf-extensions-services.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/validation.spec.d.ts → parser/amf/__tests__/amf-extensions.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/version.spec.d.ts → parser/amf/__tests__/amf-utils.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/endpoints/__tests__/amf-endpoint.spec.d.ts → parser/amf/__tests__/parser.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/endpoints/__tests__/amf-operation.spec.d.ts → parser/amf/__tests__/validation.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFAnyType.spec.d.ts → parser/amf/__tests__/version.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf → parser/amf}/amf-extensions.d.ts +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFArrayType.spec.d.ts → parser/amf/endpoints/__tests__/amf-endpoint.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFBaseType.spec.d.ts → parser/amf/endpoints/__tests__/amf-operation.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf → parser/amf}/parser.d.ts +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFDiscriminatedObjectType.spec.d.ts → parser/amf/types/__tests__/AMFAnyType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFEnumType.spec.d.ts → parser/amf/types/__tests__/AMFArrayType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFNilType.spec.d.ts → parser/amf/types/__tests__/AMFBaseType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFNotType.spec.d.ts → parser/amf/types/__tests__/AMFDiscriminatedObjectType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFObjectType.spec.d.ts → parser/amf/types/__tests__/AMFEnumType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFOneOfType.spec.d.ts → parser/amf/types/__tests__/AMFNilType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFScalarType.spec.d.ts → parser/amf/types/__tests__/AMFNotType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/factory.spec.d.ts → parser/amf/types/__tests__/AMFObjectType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf → parser/amf}/validation.d.ts +0 -0
- /package/dist/types/v1/{amf → parser/amf}/version.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conduit-client/model",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Conduit Client API Model",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"zod": "3.24.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@conduit-client/service-feature-flags": "3.
|
|
37
|
-
"@conduit-client/utils": "3.
|
|
36
|
+
"@conduit-client/service-feature-flags": "3.8.0",
|
|
37
|
+
"@conduit-client/utils": "3.8.0"
|
|
38
38
|
},
|
|
39
39
|
"volta": {
|
|
40
40
|
"extends": "../../../../package.json"
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import amf from 'amf-client-js';
|
|
2
|
-
type ClassOfConstructor<T> = T extends new () => infer R ? R : never;
|
|
3
|
-
type TestRaml<T extends Record<string, new () => amf.AnyShape>, E extends Record<string, string>> = {
|
|
4
|
-
document: amf.Document;
|
|
5
|
-
} & {
|
|
6
|
-
[P in keyof T]: ClassOfConstructor<T[P]>;
|
|
7
|
-
} & {
|
|
8
|
-
[P in keyof E]: amf.EndPoint;
|
|
9
|
-
};
|
|
10
|
-
export declare function readSpecFiles(): Promise<{
|
|
11
|
-
amfApi: TestRaml<{
|
|
12
|
-
Object_Simple: typeof amf.NodeShape;
|
|
13
|
-
Object_Flat: typeof amf.NodeShape;
|
|
14
|
-
}, {}>;
|
|
15
|
-
amfEndpoints: TestRaml<{}, {
|
|
16
|
-
entityById: string;
|
|
17
|
-
entity: string;
|
|
18
|
-
auraEntityById: string;
|
|
19
|
-
auraEntity: string;
|
|
20
|
-
entityMissing: string;
|
|
21
|
-
entityPost: string;
|
|
22
|
-
}>;
|
|
23
|
-
any: TestRaml<{
|
|
24
|
-
readonly Any: typeof amf.AnyShape;
|
|
25
|
-
}, {}>;
|
|
26
|
-
arrays: TestRaml<{
|
|
27
|
-
Array_Scalar: typeof amf.ArrayShape;
|
|
28
|
-
Array_NestedObjectArray: typeof amf.ArrayShape;
|
|
29
|
-
Object_Flat: typeof amf.NodeShape;
|
|
30
|
-
Array_NoItems: typeof amf.ArrayShape;
|
|
31
|
-
}, {}>;
|
|
32
|
-
datetimes: TestRaml<{
|
|
33
|
-
birthday: typeof amf.ScalarShape;
|
|
34
|
-
created: typeof amf.ScalarShape;
|
|
35
|
-
}, {}>;
|
|
36
|
-
discriminators: TestRaml<{
|
|
37
|
-
Object_Discriminated: typeof amf.NodeShape;
|
|
38
|
-
Object_Discriminated_Type1: typeof amf.NodeShape;
|
|
39
|
-
Object_Discriminated_Type2: typeof amf.NodeShape;
|
|
40
|
-
Object_Discriminated_Incorrect_Mapping: typeof amf.NodeShape;
|
|
41
|
-
Pet: typeof amf.NodeShape;
|
|
42
|
-
Dog: typeof amf.AnyShape;
|
|
43
|
-
Cat: typeof amf.AnyShape;
|
|
44
|
-
Puppy: typeof amf.AnyShape;
|
|
45
|
-
NewbornPuppy: typeof amf.AnyShape;
|
|
46
|
-
MultipleDiscriminatorInheritance: typeof amf.AnyShape;
|
|
47
|
-
InlineDiscriminator: typeof amf.AnyShape;
|
|
48
|
-
InlineInheritedDiscriminator: typeof amf.AnyShape;
|
|
49
|
-
}, {}>;
|
|
50
|
-
objects: TestRaml<{
|
|
51
|
-
Object_Simple: typeof amf.NodeShape;
|
|
52
|
-
Object_Simple2: typeof amf.NodeShape;
|
|
53
|
-
Object_Flat: typeof amf.NodeShape;
|
|
54
|
-
Object_Nested: typeof amf.NodeShape;
|
|
55
|
-
Object_With_Optional_Properties: typeof amf.NodeShape;
|
|
56
|
-
Object_With_Explicit_Allowed_Additional_Properties: typeof amf.NodeShape;
|
|
57
|
-
Object_No_Additional_Properties: typeof amf.NodeShape;
|
|
58
|
-
Object_With_Inline_Additional_Properties_Schema: typeof amf.NodeShape;
|
|
59
|
-
Object_With_Reference_Additional_Properties_Schema: typeof amf.NodeShape;
|
|
60
|
-
StringType: typeof amf.ScalarShape;
|
|
61
|
-
Object_Ref: typeof amf.NodeShape;
|
|
62
|
-
}, {}>;
|
|
63
|
-
not: TestRaml<{
|
|
64
|
-
Object: typeof amf.NodeShape;
|
|
65
|
-
NotObject: typeof amf.AnyShape;
|
|
66
|
-
}, {}>;
|
|
67
|
-
scalars: TestRaml<{
|
|
68
|
-
Boolean: typeof amf.ScalarShape;
|
|
69
|
-
Integer: typeof amf.ScalarShape;
|
|
70
|
-
Int32: typeof amf.ScalarShape;
|
|
71
|
-
Int64: typeof amf.ScalarShape;
|
|
72
|
-
Number: typeof amf.ScalarShape;
|
|
73
|
-
Float: typeof amf.ScalarShape;
|
|
74
|
-
Double: typeof amf.ScalarShape;
|
|
75
|
-
String: typeof amf.ScalarShape;
|
|
76
|
-
Password: typeof amf.ScalarShape;
|
|
77
|
-
AnyString: typeof amf.ScalarShape;
|
|
78
|
-
Byte: typeof amf.ScalarShape;
|
|
79
|
-
Binary: typeof amf.ScalarShape;
|
|
80
|
-
Nullable_String: typeof amf.UnionShape;
|
|
81
|
-
String_Inherited: typeof amf.ScalarShape;
|
|
82
|
-
}, {}>;
|
|
83
|
-
invalidScalars: TestRaml<{
|
|
84
|
-
IncorrectlyAnnotated: typeof amf.ScalarShape;
|
|
85
|
-
}, {}>;
|
|
86
|
-
amfYamlExtensions: TestRaml<{}, {
|
|
87
|
-
entityById: string;
|
|
88
|
-
entityDetailsById: string;
|
|
89
|
-
entity: string;
|
|
90
|
-
}>;
|
|
91
|
-
amfAllOf: TestRaml<{
|
|
92
|
-
Pet: typeof amf.NodeShape;
|
|
93
|
-
Cat: typeof amf.AnyShape;
|
|
94
|
-
Dog: typeof amf.AnyShape;
|
|
95
|
-
AlternateDog: typeof amf.AnyShape;
|
|
96
|
-
DiscriminatedPet: typeof amf.NodeShape;
|
|
97
|
-
DiscriminatedCat: typeof amf.AnyShape;
|
|
98
|
-
DiscriminatedDog: typeof amf.AnyShape;
|
|
99
|
-
SelfReferencing: typeof amf.AnyShape;
|
|
100
|
-
}, {}>;
|
|
101
|
-
amfOneOf: TestRaml<{
|
|
102
|
-
Pet: typeof amf.AnyShape;
|
|
103
|
-
Cat: typeof amf.NodeShape;
|
|
104
|
-
Dog: typeof amf.NodeShape;
|
|
105
|
-
}, {}>;
|
|
106
|
-
amfAnyOf: TestRaml<{
|
|
107
|
-
Pet: typeof amf.AnyShape;
|
|
108
|
-
Cat: typeof amf.NodeShape;
|
|
109
|
-
Dog: typeof amf.NodeShape;
|
|
110
|
-
}, {}>;
|
|
111
|
-
amfOperationInvalidErrorStrategy: TestRaml<{}, {
|
|
112
|
-
invalidErrorStrategy: string;
|
|
113
|
-
}>;
|
|
114
|
-
amfOperationInvalidOperationType: TestRaml<{}, {
|
|
115
|
-
invalidOperationType: string;
|
|
116
|
-
}>;
|
|
117
|
-
amfOperationExposeRefresh: TestRaml<{}, {
|
|
118
|
-
exposeRefreshDefault: string;
|
|
119
|
-
exposeRefreshTrue: string;
|
|
120
|
-
exposeRefreshFalse: string;
|
|
121
|
-
}>;
|
|
122
|
-
amfOperationExposeRefreshMutationInvalid: TestRaml<{}, {
|
|
123
|
-
exposeRefreshDefault: string;
|
|
124
|
-
exposeRefreshTrue: string;
|
|
125
|
-
exposeRefreshFalse: string;
|
|
126
|
-
}>;
|
|
127
|
-
amfOperationExposeRefreshLegacyInvalid: TestRaml<{}, {
|
|
128
|
-
exposeRefreshDefault: string;
|
|
129
|
-
exposeRefreshTrue: string;
|
|
130
|
-
exposeRefreshFalse: string;
|
|
131
|
-
}>;
|
|
132
|
-
amfBindings: TestRaml<{}, {
|
|
133
|
-
defaultOperationTypeGet: string;
|
|
134
|
-
defaultOperationTypePost: string;
|
|
135
|
-
defaultIdentifierDefaultsToOpId: string;
|
|
136
|
-
defaultBindingMutation: string;
|
|
137
|
-
defaultBindingQuery: string;
|
|
138
|
-
defaultBindingForGetWithMutationOperationType: string;
|
|
139
|
-
successQuery: string;
|
|
140
|
-
successMutation: string;
|
|
141
|
-
successMultipleBindings: string;
|
|
142
|
-
successMultipleOperationsUniqueBindingIdentifier: string;
|
|
143
|
-
failInvalidBindingType: string;
|
|
144
|
-
failMutationWire: string;
|
|
145
|
-
failMutationImperativeInvoker: string;
|
|
146
|
-
failNoIdentifierMulti: string;
|
|
147
|
-
failDuplicateIdentifier: string;
|
|
148
|
-
failGetMethodWithMutationOperationTypeAndWireBinding: string;
|
|
149
|
-
failGetMethodWithMutationOperationTypeAndImperativeInvokerBinding: string;
|
|
150
|
-
failMultipleOperationsShareBindingIdentifier: string;
|
|
151
|
-
}>;
|
|
152
|
-
amfGraphQLBindings: TestRaml<{}, {
|
|
153
|
-
graphqlMutationBindingSuccess: string;
|
|
154
|
-
nonGraphqlWithMutationBinding: string;
|
|
155
|
-
}>;
|
|
156
|
-
bindingsValidation: TestRaml<{}, {}>;
|
|
157
|
-
enums: TestRaml<{
|
|
158
|
-
String_Enumerated: typeof amf.ScalarShape;
|
|
159
|
-
String_Property_Enum: typeof amf.NodeShape;
|
|
160
|
-
CustomDates: typeof amf.AnyShape;
|
|
161
|
-
CustomCursorType: typeof amf.AnyShape;
|
|
162
|
-
}, {}>;
|
|
163
|
-
additionalProperties: TestRaml<{
|
|
164
|
-
Object_Simple: typeof amf.NodeShape;
|
|
165
|
-
AdditionalPropertiesScalar: typeof amf.NodeShape;
|
|
166
|
-
AdditionalPropertiesObject: typeof amf.NodeShape;
|
|
167
|
-
}, {}>;
|
|
168
|
-
oneofs: TestRaml<{
|
|
169
|
-
Object_Simple: typeof amf.NodeShape;
|
|
170
|
-
Object_Simple2: typeof amf.NodeShape;
|
|
171
|
-
OneOf: typeof amf.AnyShape;
|
|
172
|
-
OneOf_Complex: typeof amf.AnyShape;
|
|
173
|
-
OneOf_Inline_Inheritance: typeof amf.AnyShape;
|
|
174
|
-
OneOf_Inline_Helper: typeof amf.NodeShape;
|
|
175
|
-
OneOf_Inline_Properties: typeof amf.AnyShape;
|
|
176
|
-
OneOf_With_Optional_Properties: typeof amf.AnyShape;
|
|
177
|
-
CatOrDog: typeof amf.AnyShape;
|
|
178
|
-
Cat: typeof amf.NodeShape;
|
|
179
|
-
Dog: typeof amf.NodeShape;
|
|
180
|
-
}, {}>;
|
|
181
|
-
errors: TestRaml<{
|
|
182
|
-
CustomNonScalarOneOf: typeof amf.AnyShape;
|
|
183
|
-
CustomObjectEnumType: typeof amf.NodeShape;
|
|
184
|
-
CustomArrayEnumType: typeof amf.ArrayShape;
|
|
185
|
-
MissingPropertyType: typeof amf.NodeShape;
|
|
186
|
-
}, {}>;
|
|
187
|
-
base: TestRaml<{
|
|
188
|
-
Anonymous: typeof amf.AnyShape;
|
|
189
|
-
Identifiable: typeof amf.AnyShape;
|
|
190
|
-
AnnotatedError: typeof amf.AnyShape;
|
|
191
|
-
}, {}>;
|
|
192
|
-
defaults: {
|
|
193
|
-
apiOasUrl: TestRaml<{}, {}>;
|
|
194
|
-
errorRamlUrl: TestRaml<{}, {}>;
|
|
195
|
-
errorRamlUrl2: TestRaml<{}, {}>;
|
|
196
|
-
};
|
|
197
|
-
typeValidation: TestRaml<{}, {}>;
|
|
198
|
-
endpointValidation: TestRaml<{}, {}>;
|
|
199
|
-
invalidation: {
|
|
200
|
-
validOasUrl: TestRaml<{}, {}>;
|
|
201
|
-
keyNameInvalidOasUrl: TestRaml<{}, {}>;
|
|
202
|
-
keyValueInvalidOasUrl: TestRaml<{}, {}>;
|
|
203
|
-
keyValuePrefixInvalidOasUrl: TestRaml<{}, {}>;
|
|
204
|
-
invalidationInvalidOperationType: TestRaml<{}, {}>;
|
|
205
|
-
typeInvalidOasUrl: TestRaml<{}, {}>;
|
|
206
|
-
typeInvalidFormatOasUrl: TestRaml<{}, {}>;
|
|
207
|
-
typeUnidentifiableOasUrl: TestRaml<{}, {}>;
|
|
208
|
-
typeUnidentifiableInlineOasUrl: TestRaml<{}, {}>;
|
|
209
|
-
};
|
|
210
|
-
}>;
|
|
211
|
-
export declare function readSpecFile<T extends Record<string, new () => amf.AnyShape>, E extends Record<string, string>>(specFileName: string, types: T, endpoints: E): Promise<TestRaml<T, E>>;
|
|
212
|
-
export {};
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { CacheStrategy } from '../..';
|
|
3
|
-
export declare const cacheControl: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4
|
-
type: z.ZodLiteral<"max-age">;
|
|
5
|
-
'max-age': z.ZodNumber;
|
|
6
|
-
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
}, "strict", z.ZodTypeAny, {
|
|
8
|
-
'max-age': number;
|
|
9
|
-
type: "max-age";
|
|
10
|
-
'stale-while-revalidate'?: number | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
'max-age': number;
|
|
13
|
-
type: "max-age";
|
|
14
|
-
'stale-while-revalidate'?: number | undefined;
|
|
15
|
-
}>, z.ZodObject<{
|
|
16
|
-
type: z.ZodLiteral<"no-cache">;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
type: "no-cache";
|
|
19
|
-
}, {
|
|
20
|
-
type: "no-cache";
|
|
21
|
-
}>]>;
|
|
22
|
-
export declare const resourceCacheControl: z.ZodObject<{
|
|
23
|
-
'max-age': z.ZodNumber;
|
|
24
|
-
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
25
|
-
}, "strict", z.ZodTypeAny, {
|
|
26
|
-
'max-age': number;
|
|
27
|
-
'stale-while-revalidate'?: number | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
'max-age': number;
|
|
30
|
-
'stale-while-revalidate'?: number | undefined;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const operationCacheStrategy: (defaultCacheStrategyType?: Pick<CacheStrategy, "type">) => z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
33
|
-
type: z.ZodLiteral<"none">;
|
|
34
|
-
}, "strict", z.ZodTypeAny, {
|
|
35
|
-
type: "none";
|
|
36
|
-
}, {
|
|
37
|
-
type: "none";
|
|
38
|
-
}>, z.ZodObject<{
|
|
39
|
-
type: z.ZodLiteral<"resource">;
|
|
40
|
-
config: z.ZodObject<{
|
|
41
|
-
'max-age': z.ZodNumber;
|
|
42
|
-
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
43
|
-
}, "strict", z.ZodTypeAny, {
|
|
44
|
-
'max-age': number;
|
|
45
|
-
'stale-while-revalidate'?: number | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
'max-age': number;
|
|
48
|
-
'stale-while-revalidate'?: number | undefined;
|
|
49
|
-
}>;
|
|
50
|
-
}, "strict", z.ZodTypeAny, {
|
|
51
|
-
type: "resource";
|
|
52
|
-
config: {
|
|
53
|
-
'max-age': number;
|
|
54
|
-
'stale-while-revalidate'?: number | undefined;
|
|
55
|
-
};
|
|
56
|
-
}, {
|
|
57
|
-
type: "resource";
|
|
58
|
-
config: {
|
|
59
|
-
'max-age': number;
|
|
60
|
-
'stale-while-revalidate'?: number | undefined;
|
|
61
|
-
};
|
|
62
|
-
}>, z.ZodObject<{
|
|
63
|
-
type: z.ZodLiteral<"normalized">;
|
|
64
|
-
'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
65
|
-
type: z.ZodLiteral<"max-age">;
|
|
66
|
-
'max-age': z.ZodNumber;
|
|
67
|
-
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
68
|
-
}, "strict", z.ZodTypeAny, {
|
|
69
|
-
'max-age': number;
|
|
70
|
-
type: "max-age";
|
|
71
|
-
'stale-while-revalidate'?: number | undefined;
|
|
72
|
-
}, {
|
|
73
|
-
'max-age': number;
|
|
74
|
-
type: "max-age";
|
|
75
|
-
'stale-while-revalidate'?: number | undefined;
|
|
76
|
-
}>, z.ZodObject<{
|
|
77
|
-
type: z.ZodLiteral<"no-cache">;
|
|
78
|
-
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
type: "no-cache";
|
|
80
|
-
}, {
|
|
81
|
-
type: "no-cache";
|
|
82
|
-
}>]>>;
|
|
83
|
-
key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
|
|
84
|
-
}, "strict", z.ZodTypeAny, {
|
|
85
|
-
type: "normalized";
|
|
86
|
-
key?: Record<string, string> | undefined;
|
|
87
|
-
'cache-control'?: {
|
|
88
|
-
'max-age': number;
|
|
89
|
-
type: "max-age";
|
|
90
|
-
'stale-while-revalidate'?: number | undefined;
|
|
91
|
-
} | {
|
|
92
|
-
type: "no-cache";
|
|
93
|
-
} | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
type: "normalized";
|
|
96
|
-
key?: Record<string, string> | undefined;
|
|
97
|
-
'cache-control'?: {
|
|
98
|
-
'max-age': number;
|
|
99
|
-
type: "max-age";
|
|
100
|
-
'stale-while-revalidate'?: number | undefined;
|
|
101
|
-
} | {
|
|
102
|
-
type: "no-cache";
|
|
103
|
-
} | undefined;
|
|
104
|
-
}>]>, {
|
|
105
|
-
type: "none";
|
|
106
|
-
} | {
|
|
107
|
-
type: "resource";
|
|
108
|
-
config: {
|
|
109
|
-
'max-age': number;
|
|
110
|
-
'stale-while-revalidate'?: number | undefined;
|
|
111
|
-
};
|
|
112
|
-
} | {
|
|
113
|
-
type: "normalized";
|
|
114
|
-
key?: Record<string, string> | undefined;
|
|
115
|
-
'cache-control'?: {
|
|
116
|
-
'max-age': number;
|
|
117
|
-
type: "max-age";
|
|
118
|
-
'stale-while-revalidate'?: number | undefined;
|
|
119
|
-
} | {
|
|
120
|
-
type: "no-cache";
|
|
121
|
-
} | undefined;
|
|
122
|
-
}, unknown>;
|
|
123
|
-
export declare const typeExtensions: z.ZodObject<{
|
|
124
|
-
key: z.ZodObject<{
|
|
125
|
-
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
126
|
-
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
fields: Record<string, string>;
|
|
128
|
-
}, {
|
|
129
|
-
fields: Record<string, string>;
|
|
130
|
-
}>;
|
|
131
|
-
'cache-control': z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
132
|
-
type: z.ZodLiteral<"max-age">;
|
|
133
|
-
'max-age': z.ZodNumber;
|
|
134
|
-
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
}, "strict", z.ZodTypeAny, {
|
|
136
|
-
'max-age': number;
|
|
137
|
-
type: "max-age";
|
|
138
|
-
'stale-while-revalidate'?: number | undefined;
|
|
139
|
-
}, {
|
|
140
|
-
'max-age': number;
|
|
141
|
-
type: "max-age";
|
|
142
|
-
'stale-while-revalidate'?: number | undefined;
|
|
143
|
-
}>, z.ZodObject<{
|
|
144
|
-
type: z.ZodLiteral<"no-cache">;
|
|
145
|
-
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
type: "no-cache";
|
|
147
|
-
}, {
|
|
148
|
-
type: "no-cache";
|
|
149
|
-
}>]>;
|
|
150
|
-
}, "strict", z.ZodTypeAny, {
|
|
151
|
-
key: {
|
|
152
|
-
fields: Record<string, string>;
|
|
153
|
-
};
|
|
154
|
-
'cache-control': {
|
|
155
|
-
'max-age': number;
|
|
156
|
-
type: "max-age";
|
|
157
|
-
'stale-while-revalidate'?: number | undefined;
|
|
158
|
-
} | {
|
|
159
|
-
type: "no-cache";
|
|
160
|
-
};
|
|
161
|
-
}, {
|
|
162
|
-
key: {
|
|
163
|
-
fields: Record<string, string>;
|
|
164
|
-
};
|
|
165
|
-
'cache-control': {
|
|
166
|
-
'max-age': number;
|
|
167
|
-
type: "max-age";
|
|
168
|
-
'stale-while-revalidate'?: number | undefined;
|
|
169
|
-
} | {
|
|
170
|
-
type: "no-cache";
|
|
171
|
-
};
|
|
172
|
-
}>;
|
|
File without changes
|
/package/dist/types/v1/{amf/__tests__/AMFAPI.spec.d.ts → parser/__tests__/parser-api.spec.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/v1/{amf/__tests__/version.spec.d.ts → parser/amf/__tests__/amf-utils.spec.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|