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