@aws-amplify/datastore 4.7.28 → 4.7.29

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 (46) hide show
  1. package/lib/datastore/datastore.d.ts +24 -0
  2. package/lib/datastore/datastore.js +21 -0
  3. package/lib/datastore/datastore.js.map +1 -1
  4. package/lib/index.d.ts +5 -0
  5. package/lib/index.js +5 -0
  6. package/lib/index.js.map +1 -1
  7. package/lib/predicates/index.d.ts +10 -0
  8. package/lib/predicates/index.js +10 -0
  9. package/lib/predicates/index.js.map +1 -1
  10. package/lib/predicates/sort.d.ts +5 -0
  11. package/lib/predicates/sort.js +5 -0
  12. package/lib/predicates/sort.js.map +1 -1
  13. package/lib/storage/adapter/index.d.ts +5 -0
  14. package/lib/types.d.ts +678 -0
  15. package/lib/types.js +148 -0
  16. package/lib/types.js.map +1 -1
  17. package/lib/util.d.ts +5 -0
  18. package/lib/util.js +5 -0
  19. package/lib/util.js.map +1 -1
  20. package/lib-esm/datastore/datastore.d.ts +24 -0
  21. package/lib-esm/datastore/datastore.js +21 -0
  22. package/lib-esm/datastore/datastore.js.map +1 -1
  23. package/lib-esm/index.d.ts +5 -0
  24. package/lib-esm/index.js +5 -0
  25. package/lib-esm/index.js.map +1 -1
  26. package/lib-esm/predicates/index.d.ts +10 -0
  27. package/lib-esm/predicates/index.js +10 -0
  28. package/lib-esm/predicates/index.js.map +1 -1
  29. package/lib-esm/predicates/sort.d.ts +5 -0
  30. package/lib-esm/predicates/sort.js +5 -0
  31. package/lib-esm/predicates/sort.js.map +1 -1
  32. package/lib-esm/storage/adapter/index.d.ts +5 -0
  33. package/lib-esm/types.d.ts +678 -0
  34. package/lib-esm/types.js +148 -0
  35. package/lib-esm/types.js.map +1 -1
  36. package/lib-esm/util.d.ts +5 -0
  37. package/lib-esm/util.js +5 -0
  38. package/lib-esm/util.js.map +1 -1
  39. package/package.json +7 -7
  40. package/src/datastore/datastore.ts +24 -0
  41. package/src/index.ts +5 -0
  42. package/src/predicates/index.ts +10 -0
  43. package/src/predicates/sort.ts +5 -0
  44. package/src/storage/adapter/index.ts +5 -0
  45. package/src/types.ts +678 -0
  46. package/src/util.ts +5 -0
@@ -6,11 +6,26 @@ import { Auth } from '@aws-amplify/auth';
6
6
  import { InternalAPI } from '@aws-amplify/api/internals';
7
7
  import { Cache } from '@aws-amplify/cache';
8
8
  import { Adapter } from './storage/adapter';
9
+ /**
10
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
11
+ * See the migration guide:
12
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
13
+ */
9
14
  export type Scalar<T> = T extends Array<infer InnerType> ? InnerType : T;
15
+ /**
16
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
17
+ * See the migration guide:
18
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
19
+ */
10
20
  export type Schema = UserSchema & {
11
21
  version: string;
12
22
  codegenVersion: string;
13
23
  };
24
+ /**
25
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
26
+ * See the migration guide:
27
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
28
+ */
14
29
  export type UserSchema = {
15
30
  models: SchemaModels;
16
31
  nonModels?: SchemaNonModels;
@@ -19,16 +34,41 @@ export type UserSchema = {
19
34
  enums: SchemaEnums;
20
35
  modelTopologicalOrdering?: Map<string, string[]>;
21
36
  };
37
+ /**
38
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
39
+ * See the migration guide:
40
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
41
+ */
22
42
  export type InternalSchema = {
23
43
  namespaces: SchemaNamespaces;
24
44
  version: string;
25
45
  codegenVersion: string;
26
46
  };
47
+ /**
48
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
49
+ * See the migration guide:
50
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
51
+ */
27
52
  export type SchemaNamespaces = Record<string, SchemaNamespace>;
53
+ /**
54
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
55
+ * See the migration guide:
56
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
57
+ */
28
58
  export type SchemaNamespace = UserSchema & {
29
59
  name: string;
30
60
  };
61
+ /**
62
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
63
+ * See the migration guide:
64
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
65
+ */
31
66
  export type SchemaModels = Record<string, SchemaModel>;
67
+ /**
68
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
69
+ * See the migration guide:
70
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
71
+ */
32
72
  export type SchemaModel = {
33
73
  name: string;
34
74
  pluralName: string;
@@ -43,9 +83,29 @@ export type SchemaModel = {
43
83
  allFields?: ModelFields;
44
84
  syncable?: boolean;
45
85
  };
86
+ /**
87
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
88
+ * See the migration guide:
89
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
90
+ */
46
91
  export declare function isSchemaModel(obj: any): obj is SchemaModel;
92
+ /**
93
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
94
+ * See the migration guide:
95
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
96
+ */
47
97
  export declare function isSchemaModelWithAttributes(m: SchemaModel | SchemaNonModel): m is SchemaModel;
98
+ /**
99
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
100
+ * See the migration guide:
101
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
102
+ */
48
103
  export type SchemaNonModels = Record<string, SchemaNonModel>;
104
+ /**
105
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
106
+ * See the migration guide:
107
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
108
+ */
49
109
  export type SchemaNonModel = {
50
110
  name: string;
51
111
  fields: ModelFields;
@@ -55,11 +115,21 @@ type SchemaEnum = {
55
115
  name: string;
56
116
  values: string[];
57
117
  };
118
+ /**
119
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
120
+ * See the migration guide:
121
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
122
+ */
58
123
  export type ModelMeta<T extends PersistentModel> = {
59
124
  builder: PersistentModelConstructor<T>;
60
125
  schema: SchemaModel;
61
126
  pkField: string[];
62
127
  };
128
+ /**
129
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
130
+ * See the migration guide:
131
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
132
+ */
63
133
  export type ModelAssociation = AssociatedWith | TargetNameAssociation;
64
134
  type AssociatedWith = {
65
135
  connectionType: 'HAS_MANY' | 'HAS_ONE';
@@ -67,22 +137,52 @@ type AssociatedWith = {
67
137
  targetName?: string;
68
138
  targetNames?: string[];
69
139
  };
140
+ /**
141
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
142
+ * See the migration guide:
143
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
144
+ */
70
145
  export declare function isAssociatedWith(obj: any): obj is AssociatedWith;
71
146
  type TargetNameAssociation = {
72
147
  connectionType: 'BELONGS_TO';
73
148
  targetName?: string;
74
149
  targetNames?: string[];
75
150
  };
151
+ /**
152
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
153
+ * See the migration guide:
154
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
155
+ */
76
156
  export declare function isTargetNameAssociation(obj: any): obj is TargetNameAssociation;
77
157
  type FieldAssociation = {
78
158
  connectionType: 'HAS_ONE' | 'BELONGS_TO' | 'HAS_MANY';
79
159
  };
160
+ /**
161
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
162
+ * See the migration guide:
163
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
164
+ */
80
165
  export declare function isFieldAssociation(obj: any, fieldName: string): obj is FieldAssociation;
166
+ /**
167
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
168
+ * See the migration guide:
169
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
170
+ */
81
171
  export type ModelAttributes = ModelAttribute[];
172
+ /**
173
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
174
+ * See the migration guide:
175
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
176
+ */
82
177
  export type ModelAttribute = {
83
178
  type: string;
84
179
  properties?: Record<string, any>;
85
180
  };
181
+ /**
182
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
183
+ * See the migration guide:
184
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
185
+ */
86
186
  export type ModelAuthRule = {
87
187
  allow: string;
88
188
  provider?: string;
@@ -93,12 +193,22 @@ export type ModelAuthRule = {
93
193
  groupClaim?: string;
94
194
  groupsField?: string;
95
195
  };
196
+ /**
197
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
198
+ * See the migration guide:
199
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
200
+ */
96
201
  export type ModelAttributeAuth = {
97
202
  type: 'auth';
98
203
  properties: {
99
204
  rules: ModelAuthRule[];
100
205
  };
101
206
  };
207
+ /**
208
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
209
+ * See the migration guide:
210
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
211
+ */
102
212
  export declare function isModelAttributeAuth(attr: ModelAttribute): attr is ModelAttributeAuth;
103
213
  type ModelAttributeKey = {
104
214
  type: 'key';
@@ -121,9 +231,29 @@ type ModelAttributeCompositeKey = {
121
231
  fields: [string, string, string, string?, string?];
122
232
  };
123
233
  };
234
+ /**
235
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
236
+ * See the migration guide:
237
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
238
+ */
124
239
  export declare function isModelAttributeKey(attr: ModelAttribute): attr is ModelAttributeKey;
240
+ /**
241
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
242
+ * See the migration guide:
243
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
244
+ */
125
245
  export declare function isModelAttributePrimaryKey(attr: ModelAttribute): attr is ModelAttributePrimaryKey;
246
+ /**
247
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
248
+ * See the migration guide:
249
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
250
+ */
126
251
  export declare function isModelAttributeCompositeKey(attr: ModelAttribute): attr is ModelAttributeCompositeKey;
252
+ /**
253
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
254
+ * See the migration guide:
255
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
256
+ */
127
257
  export type ModelAttributeAuthProperty = {
128
258
  allow: ModelAttributeAuthAllow;
129
259
  identityClaim?: string;
@@ -133,6 +263,11 @@ export type ModelAttributeAuthProperty = {
133
263
  ownerField?: string;
134
264
  provider?: ModelAttributeAuthProvider;
135
265
  };
266
+ /**
267
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
268
+ * See the migration guide:
269
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
270
+ */
136
271
  export declare enum ModelAttributeAuthAllow {
137
272
  CUSTOM = "custom",
138
273
  OWNER = "owner",
@@ -140,6 +275,11 @@ export declare enum ModelAttributeAuthAllow {
140
275
  PRIVATE = "private",
141
276
  PUBLIC = "public"
142
277
  }
278
+ /**
279
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
280
+ * See the migration guide:
281
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
282
+ */
143
283
  export declare enum ModelAttributeAuthProvider {
144
284
  FUNCTION = "function",
145
285
  USER_POOLS = "userPools",
@@ -147,7 +287,17 @@ export declare enum ModelAttributeAuthProvider {
147
287
  IAM = "iam",
148
288
  API_KEY = "apiKey"
149
289
  }
290
+ /**
291
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
292
+ * See the migration guide:
293
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
294
+ */
150
295
  export type ModelFields = Record<string, ModelField>;
296
+ /**
297
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
298
+ * See the migration guide:
299
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
300
+ */
151
301
  export declare enum GraphQLScalarType {
152
302
  ID = 0,
153
303
  String = 1,
@@ -164,10 +314,20 @@ export declare enum GraphQLScalarType {
164
314
  AWSPhone = 12,
165
315
  AWSIPAddress = 13
166
316
  }
317
+ /**
318
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
319
+ * See the migration guide:
320
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
321
+ */
167
322
  export declare namespace GraphQLScalarType {
168
323
  function getJSType(scalar: keyof Omit<typeof GraphQLScalarType, 'getJSType' | 'getValidationFunction'>): "string" | "number" | "boolean" | "object";
169
324
  function getValidationFunction(scalar: keyof Omit<typeof GraphQLScalarType, 'getJSType' | 'getValidationFunction'>): ((val: string) => boolean) | ((val: number) => boolean) | undefined;
170
325
  }
326
+ /**
327
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
328
+ * See the migration guide:
329
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
330
+ */
171
331
  export type AuthorizationRule = {
172
332
  identityClaim: string;
173
333
  ownerField: string;
@@ -178,20 +338,55 @@ export type AuthorizationRule = {
178
338
  authStrategy: 'owner' | 'groups' | 'private' | 'public';
179
339
  areSubscriptionsPublic: boolean;
180
340
  };
341
+ /**
342
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
343
+ * See the migration guide:
344
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
345
+ */
181
346
  export declare function isGraphQLScalarType(obj: any): obj is keyof Omit<typeof GraphQLScalarType, 'getJSType' | 'getValidationFunction'>;
347
+ /**
348
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
349
+ * See the migration guide:
350
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
351
+ */
182
352
  export type ModelFieldType = {
183
353
  model: string;
184
354
  modelConstructor?: ModelMeta<PersistentModel>;
185
355
  };
356
+ /**
357
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
358
+ * See the migration guide:
359
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
360
+ */
186
361
  export declare function isModelFieldType<T extends PersistentModel>(obj: any): obj is ModelFieldType;
362
+ /**
363
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
364
+ * See the migration guide:
365
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
366
+ */
187
367
  export type NonModelFieldType = {
188
368
  nonModel: string;
189
369
  };
370
+ /**
371
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
372
+ * See the migration guide:
373
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
374
+ */
190
375
  export declare function isNonModelFieldType(obj: any): obj is NonModelFieldType;
191
376
  type EnumFieldType = {
192
377
  enum: string;
193
378
  };
379
+ /**
380
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
381
+ * See the migration guide:
382
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
383
+ */
194
384
  export declare function isEnumFieldType(obj: any): obj is EnumFieldType;
385
+ /**
386
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
387
+ * See the migration guide:
388
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
389
+ */
195
390
  export type ModelField = {
196
391
  name: string;
197
392
  type: keyof Omit<typeof GraphQLScalarType, 'getJSType' | 'getValidationFunction'> | ModelFieldType | NonModelFieldType | EnumFieldType;
@@ -202,9 +397,19 @@ export type ModelField = {
202
397
  association?: ModelAssociation;
203
398
  attributes?: ModelAttributes[];
204
399
  };
400
+ /**
401
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
402
+ * See the migration guide:
403
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
404
+ */
205
405
  export type NonModelTypeConstructor<T> = {
206
406
  new (init: T): T;
207
407
  };
408
+ /**
409
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
410
+ * See the migration guide:
411
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
412
+ */
208
413
  export type PersistentModelConstructor<T extends PersistentModel> = {
209
414
  new (init: ModelInit<T, PersistentModelMetaData<T>>): T;
210
415
  copyOf(src: T, mutator: (draft: MutableModel<T, PersistentModelMetaData<T>>) => void): T;
@@ -214,6 +419,9 @@ export type PersistentModelConstructor<T extends PersistentModel> = {
214
419
  * Internal use of Amplify only.
215
420
  *
216
421
  * Indicates to use lazy models or eager models.
422
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
423
+ * See the migration guide:
424
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
217
425
  */
218
426
  export declare class LazyLoadingDisabled {
219
427
  disabled: true;
@@ -223,39 +431,100 @@ export declare class LazyLoadingDisabled {
223
431
  * Internal use of Amplify only.
224
432
  *
225
433
  * Indicates to use lazy models or eager models.
434
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
435
+ * See the migration guide:
436
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
226
437
  */
227
438
  export declare class LazyLoading {
228
439
  }
440
+ /**
441
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
442
+ * See the migration guide:
443
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
444
+ */
229
445
  export type TypeConstructorMap = Record<string, PersistentModelConstructor<any> | NonModelTypeConstructor<unknown>>;
230
446
  /**
231
447
  * Each identifier type is represented using nominal types, see:
232
448
  * https://basarat.gitbook.io/typescript/main-1/nominaltyping
449
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
450
+ * See the migration guide:
451
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
233
452
  */
234
453
  export declare const __identifierBrand__: unique symbol;
454
+ /**
455
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
456
+ * See the migration guide:
457
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
458
+ */
235
459
  export type IdentifierBrand<T, K> = T & {
236
460
  [__identifierBrand__]: K;
237
461
  };
462
+ /**
463
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
464
+ * See the migration guide:
465
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
466
+ */
238
467
  export type ManagedIdentifier<T, F extends keyof T> = IdentifierBrand<{
239
468
  field: F extends string ? F : never;
240
469
  type: T;
241
470
  }, 'ManagedIdentifier'>;
471
+ /**
472
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
473
+ * See the migration guide:
474
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
475
+ */
242
476
  export type OptionallyManagedIdentifier<T, F extends keyof T> = IdentifierBrand<{
243
477
  field: F extends string ? F : never;
244
478
  type: T;
245
479
  }, 'OptionallyManagedIdentifier'>;
480
+ /**
481
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
482
+ * See the migration guide:
483
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
484
+ */
246
485
  export type CompositeIdentifier<T, K extends Array<keyof T>> = IdentifierBrand<{
247
486
  fields: K;
248
487
  type: T;
249
488
  }, 'CompositeIdentifier'>;
489
+ /**
490
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
491
+ * See the migration guide:
492
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
493
+ */
250
494
  export type CustomIdentifier<T, K extends keyof T> = CompositeIdentifier<T, [
251
495
  K
252
496
  ]>;
497
+ /**
498
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
499
+ * See the migration guide:
500
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
501
+ */
253
502
  export type Identifier<T> = ManagedIdentifier<T, any> | OptionallyManagedIdentifier<T, any> | CompositeIdentifier<T, any> | CustomIdentifier<T, any>;
503
+ /**
504
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
505
+ * See the migration guide:
506
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
507
+ */
254
508
  export type IdentifierFields<T extends PersistentModel, M extends PersistentModelMetaData<T> = never> = (MetadataOrDefault<T, M>['identifier'] extends ManagedIdentifier<any, any> | OptionallyManagedIdentifier<any, any> ? MetadataOrDefault<T, M>['identifier']['field'] : MetadataOrDefault<T, M>['identifier'] extends CompositeIdentifier<T, infer B> ? B[number] : Extract<MetadataOrDefault<T, M>['identifier'], {
255
509
  field: any;
256
510
  }>['field']) & string;
511
+ /**
512
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
513
+ * See the migration guide:
514
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
515
+ */
257
516
  export type IdentifierFieldsForInit<T extends PersistentModel, M extends PersistentModelMetaData<T>> = MetadataOrDefault<T, M>['identifier'] extends DefaultPersistentModelMetaData | ManagedIdentifier<T, any> ? never : MetadataOrDefault<T, M>['identifier'] extends OptionallyManagedIdentifier<T, any> ? IdentifierFields<T, M> : MetadataOrDefault<T, M>['identifier'] extends CompositeIdentifier<T, any> ? IdentifierFields<T, M> : never;
517
+ /**
518
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
519
+ * See the migration guide:
520
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
521
+ */
258
522
  export declare const __modelMeta__: unique symbol;
523
+ /**
524
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
525
+ * See the migration guide:
526
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
527
+ */
259
528
  export type PersistentModelMetaData<T> = {
260
529
  identifier?: Identifier<T>;
261
530
  readOnlyFields?: string;
@@ -265,7 +534,17 @@ export interface AsyncCollection<T> extends AsyncIterable<T> {
265
534
  max?: number;
266
535
  }): Promise<T[]>;
267
536
  }
537
+ /**
538
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
539
+ * See the migration guide:
540
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
541
+ */
268
542
  export type SettableFieldType<T> = T extends Promise<infer InnerPromiseType> ? undefined extends InnerPromiseType ? InnerPromiseType | null : InnerPromiseType : T extends AsyncCollection<infer InnerCollectionType> ? InnerCollectionType[] | undefined : undefined extends T ? T | null : T;
543
+ /**
544
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
545
+ * See the migration guide:
546
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
547
+ */
269
548
  export type PredicateFieldType<T> = NonNullable<Scalar<T extends Promise<infer InnerPromiseType> ? InnerPromiseType : T extends AsyncCollection<infer InnerCollectionType> ? InnerCollectionType : T>>;
270
549
  type KeysOfType<T, FilterType> = {
271
550
  [P in keyof T]: T[P] extends FilterType ? P : never;
@@ -276,18 +555,48 @@ type KeysOfSuperType<T, FilterType> = {
276
555
  type OptionalRelativesOf<T> = KeysOfType<T, AsyncCollection<any>> | KeysOfSuperType<T, Promise<undefined>>;
277
556
  type OmitOptionalRelatives<T> = Omit<T, OptionalRelativesOf<T>>;
278
557
  type PickOptionalRelatives<T> = Pick<T, OptionalRelativesOf<T>>;
558
+ /**
559
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
560
+ * See the migration guide:
561
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
562
+ */
279
563
  export type DefaultPersistentModelMetaData = {
280
564
  identifier: ManagedIdentifier<{
281
565
  id: string;
282
566
  }, 'id'>;
283
567
  readOnlyFields: never;
284
568
  };
569
+ /**
570
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
571
+ * See the migration guide:
572
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
573
+ */
285
574
  export type MetadataOrDefault<T extends PersistentModel, _ extends PersistentModelMetaData<T> = never> = T extends {
286
575
  [__modelMeta__]: PersistentModelMetaData<T>;
287
576
  } ? T[typeof __modelMeta__] : DefaultPersistentModelMetaData;
577
+ /**
578
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
579
+ * See the migration guide:
580
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
581
+ */
288
582
  export type PersistentModel = Readonly<Record<string, any>>;
583
+ /**
584
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
585
+ * See the migration guide:
586
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
587
+ */
289
588
  export type MetadataReadOnlyFields<T extends PersistentModel, M extends PersistentModelMetaData<T>> = Extract<MetadataOrDefault<T, M>['readOnlyFields'] | M['readOnlyFields'], keyof T>;
589
+ /**
590
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
591
+ * See the migration guide:
592
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
593
+ */
290
594
  export type ModelInitBase<T extends PersistentModel, M extends PersistentModelMetaData<T> = {}> = Omit<T, typeof __modelMeta__ | IdentifierFields<T, M> | MetadataReadOnlyFields<T, M>> & (MetadataOrDefault<T, M>['identifier'] extends OptionallyManagedIdentifier<T, any> ? Partial<Pick<T, IdentifierFieldsForInit<T, M>>> : Required<Pick<T, IdentifierFieldsForInit<T, M>>>);
595
+ /**
596
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
597
+ * See the migration guide:
598
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
599
+ */
291
600
  export type ModelInit<T extends PersistentModel, M extends PersistentModelMetaData<T> = {}> = {
292
601
  [P in keyof OmitOptionalRelatives<ModelInitBase<T, M>>]: SettableFieldType<ModelInitBase<T, M>[P]>;
293
602
  } & {
@@ -296,23 +605,63 @@ export type ModelInit<T extends PersistentModel, M extends PersistentModelMetaDa
296
605
  type DeepWritable<T> = {
297
606
  -readonly [P in keyof T]: T[P] extends TypeName<T[P]> ? T[P] : T[P] extends Promise<infer InnerPromiseType> ? undefined extends InnerPromiseType ? InnerPromiseType | null : InnerPromiseType : T[P] extends AsyncCollection<infer InnerCollectionType> ? InnerCollectionType[] | undefined | null : DeepWritable<T[P]>;
298
607
  };
608
+ /**
609
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
610
+ * See the migration guide:
611
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
612
+ */
299
613
  export type MutableModel<T extends PersistentModel, M extends PersistentModelMetaData<T> = {}> = DeepWritable<Omit<T, IdentifierFields<T, M> | MetadataReadOnlyFields<T, M>>> & Readonly<Pick<T, IdentifierFields<T, M> | MetadataReadOnlyFields<T, M>>>;
614
+ /**
615
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
616
+ * See the migration guide:
617
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
618
+ */
300
619
  export type ModelInstanceMetadata = {
301
620
  _version: number;
302
621
  _lastChangedAt: number;
303
622
  _deleted: boolean;
304
623
  };
624
+ /**
625
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
626
+ * See the migration guide:
627
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
628
+ */
305
629
  export type IdentifierFieldValue<T extends PersistentModel, M extends PersistentModelMetaData<T>> = MetadataOrDefault<T, M>['identifier'] extends CompositeIdentifier<T, any> ? MetadataOrDefault<T, M>['identifier']['fields'] extends [any] ? T[MetadataOrDefault<T, M>['identifier']['fields'][0]] : never : T[Extract<MetadataOrDefault<T, M>['identifier'], {
306
630
  field: any;
307
631
  }>['field']];
632
+ /**
633
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
634
+ * See the migration guide:
635
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
636
+ */
308
637
  export type IdentifierFieldOrIdentifierObject<T extends PersistentModel, M extends PersistentModelMetaData<T>> = Pick<T, IdentifierFields<T, M>> | IdentifierFieldValue<T, M>;
638
+ /**
639
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
640
+ * See the migration guide:
641
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
642
+ */
309
643
  export declare function isIdentifierObject<T extends PersistentModel>(obj: any, modelDefinition: SchemaModel): obj is IdentifierFields<T extends PersistentModel ? T : never, any>;
644
+ /**
645
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
646
+ * See the migration guide:
647
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
648
+ */
310
649
  export declare enum OpType {
311
650
  INSERT = "INSERT",
312
651
  UPDATE = "UPDATE",
313
652
  DELETE = "DELETE"
314
653
  }
654
+ /**
655
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
656
+ * See the migration guide:
657
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
658
+ */
315
659
  export type SubscriptionMessage<T extends PersistentModel> = Pick<InternalSubscriptionMessage<T>, 'opType' | 'element' | 'model' | 'condition'>;
660
+ /**
661
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
662
+ * See the migration guide:
663
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
664
+ */
316
665
  export type InternalSubscriptionMessage<T extends PersistentModel> = {
317
666
  opType: OpType;
318
667
  element: T;
@@ -320,10 +669,20 @@ export type InternalSubscriptionMessage<T extends PersistentModel> = {
320
669
  condition: PredicatesGroup<T> | null;
321
670
  savedElement?: T;
322
671
  };
672
+ /**
673
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
674
+ * See the migration guide:
675
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
676
+ */
323
677
  export type DataStoreSnapshot<T extends PersistentModel> = {
324
678
  items: T[];
325
679
  isSynced: boolean;
326
680
  };
681
+ /**
682
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
683
+ * See the migration guide:
684
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
685
+ */
327
686
  export type PredicateExpression<M extends PersistentModel, FT> = TypeName<FT> extends keyof MapTypeToOperands<FT> ? (operator: keyof MapTypeToOperands<FT>[TypeName<FT>], operand: MapTypeToOperands<FT>[TypeName<FT>][keyof MapTypeToOperands<FT>[TypeName<FT>]]) => ModelPredicate<M> : never;
328
687
  type EqualityOperators<T> = {
329
688
  ne: T;
@@ -348,6 +707,11 @@ type ArrayOperators<T> = {
348
707
  contains: T;
349
708
  notContains: T;
350
709
  };
710
+ /**
711
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
712
+ * See the migration guide:
713
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
714
+ */
351
715
  export type AllOperators = NumberOperators<any> & StringOperators<any> & ArrayOperators<any>;
352
716
  type MapTypeToOperands<T> = {
353
717
  number: NumberOperators<NonNullable<T>>;
@@ -358,40 +722,95 @@ type MapTypeToOperands<T> = {
358
722
  'boolean[]': ArrayOperators<boolean>;
359
723
  };
360
724
  type TypeName<T> = T extends string ? 'string' : T extends number ? 'number' : T extends boolean ? 'boolean' : T extends string[] ? 'string[]' : T extends number[] ? 'number[]' : T extends boolean[] ? 'boolean[]' : never;
725
+ /**
726
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
727
+ * See the migration guide:
728
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
729
+ */
361
730
  export type PredicateGroups<T extends PersistentModel> = {
362
731
  and: (predicate: (predicate: ModelPredicate<T>) => ModelPredicate<T>) => ModelPredicate<T>;
363
732
  or: (predicate: (predicate: ModelPredicate<T>) => ModelPredicate<T>) => ModelPredicate<T>;
364
733
  not: (predicate: (predicate: ModelPredicate<T>) => ModelPredicate<T>) => ModelPredicate<T>;
365
734
  };
735
+ /**
736
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
737
+ * See the migration guide:
738
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
739
+ */
366
740
  export type ModelPredicate<M extends PersistentModel> = {
367
741
  [K in keyof M]-?: PredicateExpression<M, NonNullable<M[K]>>;
368
742
  } & PredicateGroups<M>;
743
+ /**
744
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
745
+ * See the migration guide:
746
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
747
+ */
369
748
  export type ProducerModelPredicate<M extends PersistentModel> = (condition: ModelPredicate<M>) => ModelPredicate<M>;
749
+ /**
750
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
751
+ * See the migration guide:
752
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
753
+ */
370
754
  export type PredicatesGroup<T extends PersistentModel> = {
371
755
  type: keyof PredicateGroups<T>;
372
756
  predicates: (PredicateObject<T> | PredicatesGroup<T>)[];
373
757
  };
758
+ /**
759
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
760
+ * See the migration guide:
761
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
762
+ */
374
763
  export declare function isPredicateObj<T extends PersistentModel>(obj: any): obj is PredicateObject<T>;
764
+ /**
765
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
766
+ * See the migration guide:
767
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
768
+ */
375
769
  export declare function isPredicateGroup<T extends PersistentModel>(obj: any): obj is PredicatesGroup<T>;
770
+ /**
771
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
772
+ * See the migration guide:
773
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
774
+ */
376
775
  export type PredicateObject<T extends PersistentModel> = {
377
776
  field: keyof T;
378
777
  operator: keyof AllOperators;
379
778
  operand: any;
380
779
  };
780
+ /**
781
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
782
+ * See the migration guide:
783
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
784
+ */
381
785
  export declare enum QueryOne {
382
786
  FIRST = 0,
383
787
  LAST = 1
384
788
  }
789
+ /**
790
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
791
+ * See the migration guide:
792
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
793
+ */
385
794
  export type GraphQLField = {
386
795
  [field: string]: {
387
796
  [operator: string]: string | number | [number, number];
388
797
  };
389
798
  };
799
+ /**
800
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
801
+ * See the migration guide:
802
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
803
+ */
390
804
  export type GraphQLCondition = Partial<GraphQLField | {
391
805
  and: [GraphQLCondition];
392
806
  or: [GraphQLCondition];
393
807
  not: GraphQLCondition;
394
808
  }>;
809
+ /**
810
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
811
+ * See the migration guide:
812
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
813
+ */
395
814
  export type GraphQLFilter = Partial<GraphQLField | {
396
815
  and: GraphQLFilter[];
397
816
  } | {
@@ -399,39 +818,104 @@ export type GraphQLFilter = Partial<GraphQLField | {
399
818
  } | {
400
819
  not: GraphQLFilter;
401
820
  }>;
821
+ /**
822
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
823
+ * See the migration guide:
824
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
825
+ */
402
826
  export type ProducerPaginationInput<T extends PersistentModel> = {
403
827
  sort?: ProducerSortPredicate<T>;
404
828
  limit?: number;
405
829
  page?: number;
406
830
  };
831
+ /**
832
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
833
+ * See the migration guide:
834
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
835
+ */
407
836
  export type ObserveQueryOptions<T extends PersistentModel> = Pick<ProducerPaginationInput<T>, 'sort'>;
837
+ /**
838
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
839
+ * See the migration guide:
840
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
841
+ */
408
842
  export type PaginationInput<T extends PersistentModel> = {
409
843
  sort?: SortPredicate<T>;
410
844
  limit?: number;
411
845
  page?: number;
412
846
  };
847
+ /**
848
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
849
+ * See the migration guide:
850
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
851
+ */
413
852
  export type ProducerSortPredicate<M extends PersistentModel> = (condition: SortPredicate<M>) => SortPredicate<M>;
853
+ /**
854
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
855
+ * See the migration guide:
856
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
857
+ */
414
858
  export type SortPredicate<T extends PersistentModel> = {
415
859
  [K in keyof T]-?: SortPredicateExpression<T, NonNullable<T[K]>>;
416
860
  };
861
+ /**
862
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
863
+ * See the migration guide:
864
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
865
+ */
417
866
  export type SortPredicateExpression<M extends PersistentModel, FT> = TypeName<FT> extends keyof MapTypeToOperands<FT> ? (sortDirection: keyof typeof SortDirection) => SortPredicate<M> : never;
867
+ /**
868
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
869
+ * See the migration guide:
870
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
871
+ */
418
872
  export declare enum SortDirection {
419
873
  ASCENDING = "ASCENDING",
420
874
  DESCENDING = "DESCENDING"
421
875
  }
876
+ /**
877
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
878
+ * See the migration guide:
879
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
880
+ */
422
881
  export type SortPredicatesGroup<T extends PersistentModel> = SortPredicateObject<T>[];
882
+ /**
883
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
884
+ * See the migration guide:
885
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
886
+ */
423
887
  export type SortPredicateObject<T extends PersistentModel> = {
424
888
  field: keyof T;
425
889
  sortDirection: keyof typeof SortDirection;
426
890
  };
891
+ /**
892
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
893
+ * See the migration guide:
894
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
895
+ */
427
896
  export type SystemComponent = {
428
897
  setUp(schema: InternalSchema, namespaceResolver: NamespaceResolver, modelInstanceCreator: ModelInstanceCreator, getModelConstructorByModelName: (namsespaceName: NAMESPACES, modelName: string) => PersistentModelConstructor<any>, appId?: string): Promise<void>;
429
898
  };
899
+ /**
900
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
901
+ * See the migration guide:
902
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
903
+ */
430
904
  export type NamespaceResolver = (modelConstructor: PersistentModelConstructor<any>) => string;
905
+ /**
906
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
907
+ * See the migration guide:
908
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
909
+ */
431
910
  export type ControlMessageType<T> = {
432
911
  type: T;
433
912
  data?: any;
434
913
  };
914
+ /**
915
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
916
+ * See the migration guide:
917
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
918
+ */
435
919
  export type RelationType = {
436
920
  fieldName: string;
437
921
  modelName: string;
@@ -443,20 +927,45 @@ export type RelationType = {
443
927
  type IndexOptions = {
444
928
  unique?: boolean;
445
929
  };
930
+ /**
931
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
932
+ * See the migration guide:
933
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
934
+ */
446
935
  export type IndexesType = Array<[string, string[], IndexOptions?]>;
936
+ /**
937
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
938
+ * See the migration guide:
939
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
940
+ */
447
941
  export type RelationshipType = {
448
942
  [modelName: string]: {
449
943
  indexes: IndexesType;
450
944
  relationTypes: RelationType[];
451
945
  };
452
946
  };
947
+ /**
948
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
949
+ * See the migration guide:
950
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
951
+ */
453
952
  export type KeyType = {
454
953
  primaryKey?: string[];
455
954
  compositeKeys?: Set<string>[];
456
955
  };
956
+ /**
957
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
958
+ * See the migration guide:
959
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
960
+ */
457
961
  export type ModelKeys = {
458
962
  [modelName: string]: KeyType;
459
963
  };
964
+ /**
965
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
966
+ * See the migration guide:
967
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
968
+ */
460
969
  export type DataStoreConfig = {
461
970
  DataStore?: {
462
971
  authModeStrategyType?: AuthModeStrategyType;
@@ -479,6 +988,11 @@ export type DataStoreConfig = {
479
988
  authProviders?: AuthProviders;
480
989
  storageAdapter?: Adapter;
481
990
  };
991
+ /**
992
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
993
+ * See the migration guide:
994
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
995
+ */
482
996
  export type AuthProviders = {
483
997
  functionAuthProvider: () => {
484
998
  token: string;
@@ -486,26 +1000,61 @@ export type AuthProviders = {
486
1000
  token: string;
487
1001
  }>;
488
1002
  };
1003
+ /**
1004
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1005
+ * See the migration guide:
1006
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1007
+ */
489
1008
  export declare enum AuthModeStrategyType {
490
1009
  DEFAULT = "DEFAULT",
491
1010
  MULTI_AUTH = "MULTI_AUTH"
492
1011
  }
1012
+ /**
1013
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1014
+ * See the migration guide:
1015
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1016
+ */
493
1017
  export type AuthModeStrategyReturn = GRAPHQL_AUTH_MODE | GRAPHQL_AUTH_MODE[] | undefined | null;
1018
+ /**
1019
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1020
+ * See the migration guide:
1021
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1022
+ */
494
1023
  export type AuthModeStrategyParams = {
495
1024
  schema: InternalSchema;
496
1025
  modelName: string;
497
1026
  operation: ModelOperation;
498
1027
  };
1028
+ /**
1029
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1030
+ * See the migration guide:
1031
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1032
+ */
499
1033
  export type AuthModeStrategy = (authModeStrategyParams: AuthModeStrategyParams) => AuthModeStrategyReturn | Promise<AuthModeStrategyReturn>;
1034
+ /**
1035
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1036
+ * See the migration guide:
1037
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1038
+ */
500
1039
  export declare enum ModelOperation {
501
1040
  CREATE = "CREATE",
502
1041
  READ = "READ",
503
1042
  UPDATE = "UPDATE",
504
1043
  DELETE = "DELETE"
505
1044
  }
1045
+ /**
1046
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1047
+ * See the migration guide:
1048
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1049
+ */
506
1050
  export type ModelAuthModes = Record<string, {
507
1051
  [Property in ModelOperation]: GRAPHQL_AUTH_MODE[];
508
1052
  }>;
1053
+ /**
1054
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1055
+ * See the migration guide:
1056
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1057
+ */
509
1058
  export type SyncExpression = Promise<{
510
1059
  modelConstructor: any;
511
1060
  conditionProducer: (c?: any) => any;
@@ -518,10 +1067,20 @@ type Lookup<T extends PersistentModel> = {
518
1067
  1: PredicateInternalsKey | undefined;
519
1068
  };
520
1069
  type ConditionProducer<T extends PersistentModel, A extends Option<T>> = (...args: A) => A['length'] extends keyof Lookup<T> ? Lookup<T>[A['length']] : never;
1070
+ /**
1071
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1072
+ * See the migration guide:
1073
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1074
+ */
521
1075
  export declare function syncExpression<T extends PersistentModel, A extends Option<T>>(modelConstructor: PersistentModelConstructor<T>, conditionProducer: ConditionProducer<T, A>): Promise<{
522
1076
  modelConstructor: PersistentModelConstructor<T>;
523
1077
  conditionProducer: ConditionProducer<T, A>;
524
1078
  }>;
1079
+ /**
1080
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1081
+ * See the migration guide:
1082
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1083
+ */
525
1084
  export type SyncConflict = {
526
1085
  modelConstructor: PersistentModelConstructor<any>;
527
1086
  localModel: PersistentModel;
@@ -529,6 +1088,11 @@ export type SyncConflict = {
529
1088
  operation: OpType;
530
1089
  attempts: number;
531
1090
  };
1091
+ /**
1092
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1093
+ * See the migration guide:
1094
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1095
+ */
532
1096
  export type SyncError<T extends PersistentModel> = {
533
1097
  message: string;
534
1098
  errorType: ErrorType;
@@ -541,34 +1105,94 @@ export type SyncError<T extends PersistentModel> = {
541
1105
  operation: string;
542
1106
  cause?: Error;
543
1107
  };
1108
+ /**
1109
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1110
+ * See the migration guide:
1111
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1112
+ */
544
1113
  export type ErrorType = 'ConfigError' | 'BadModel' | 'BadRecord' | 'Unauthorized' | 'Transient' | 'Unknown';
1114
+ /**
1115
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1116
+ * See the migration guide:
1117
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1118
+ */
545
1119
  export declare enum ProcessName {
546
1120
  'sync' = "sync",
547
1121
  'mutate' = "mutate",
548
1122
  'subscribe' = "subscribe"
549
1123
  }
1124
+ /**
1125
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1126
+ * See the migration guide:
1127
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1128
+ */
550
1129
  export declare const DISCARD: unique symbol;
1130
+ /**
1131
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1132
+ * See the migration guide:
1133
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1134
+ */
551
1135
  export type ConflictHandler = (conflict: SyncConflict) => Promise<PersistentModel | typeof DISCARD> | PersistentModel | typeof DISCARD;
1136
+ /**
1137
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1138
+ * See the migration guide:
1139
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1140
+ */
552
1141
  export type ErrorHandler = (error: SyncError<PersistentModel>) => void;
1142
+ /**
1143
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1144
+ * See the migration guide:
1145
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1146
+ */
553
1147
  export type DeferredCallbackResolverOptions = {
554
1148
  callback: () => void;
555
1149
  maxInterval?: number;
556
1150
  errorHandler?: (error: string) => void;
557
1151
  };
1152
+ /**
1153
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1154
+ * See the migration guide:
1155
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1156
+ */
558
1157
  export declare enum LimitTimerRaceResolvedValues {
559
1158
  LIMIT = "LIMIT",
560
1159
  TIMER = "TIMER"
561
1160
  }
1161
+ /**
1162
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1163
+ * See the migration guide:
1164
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1165
+ */
562
1166
  export type AmplifyContext = {
563
1167
  Auth: typeof Auth;
564
1168
  InternalAPI: typeof InternalAPI;
565
1169
  Cache: typeof Cache;
566
1170
  };
1171
+ /**
1172
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1173
+ * See the migration guide:
1174
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1175
+ */
567
1176
  export type MatchableTypes = string | string[] | number | number[] | boolean | boolean[];
1177
+ /**
1178
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1179
+ * See the migration guide:
1180
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1181
+ */
568
1182
  export type AllFieldOperators = keyof AllOperators;
1183
+ /**
1184
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1185
+ * See the migration guide:
1186
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1187
+ */
569
1188
  export type NonNeverKeys<T> = {
570
1189
  [K in keyof T]: T[K] extends never ? never : K;
571
1190
  }[keyof T];
1191
+ /**
1192
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1193
+ * See the migration guide:
1194
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1195
+ */
572
1196
  export type WithoutNevers<T> = Pick<T, NonNeverKeys<T>>;
573
1197
  /**
574
1198
  * A function that accepts a RecursiveModelPrecicate<T>, which it must use to
@@ -592,11 +1216,34 @@ export type WithoutNevers<T> = Pick<T, NonNeverKeys<T>>;
592
1216
  * m.myModelField.ne('something')
593
1217
  * ]))
594
1218
  * ```
1219
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1220
+ * See the migration guide:
1221
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
595
1222
  */
596
1223
  export type RecursiveModelPredicateExtender<RT extends PersistentModel> = (lambda: RecursiveModelPredicate<RT>) => PredicateInternalsKey;
1224
+ /**
1225
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1226
+ * See the migration guide:
1227
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1228
+ */
597
1229
  export type RecursiveModelPredicateAggregateExtender<RT extends PersistentModel> = (lambda: RecursiveModelPredicate<RT>) => PredicateInternalsKey[];
1230
+ /**
1231
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1232
+ * See the migration guide:
1233
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1234
+ */
598
1235
  export type RecursiveModelPredicateOperator<RT extends PersistentModel> = (predicates: RecursiveModelPredicateAggregateExtender<RT>) => PredicateInternalsKey;
1236
+ /**
1237
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1238
+ * See the migration guide:
1239
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1240
+ */
599
1241
  export type RecursiveModelPredicateNegation<RT extends PersistentModel> = (predicate: RecursiveModelPredicateExtender<RT>) => PredicateInternalsKey;
1242
+ /**
1243
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1244
+ * See the migration guide:
1245
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1246
+ */
600
1247
  export type RecursiveModelPredicate<RT extends PersistentModel> = {
601
1248
  [K in keyof RT]-?: PredicateFieldType<RT[K]> extends PersistentModel ? RecursiveModelPredicate<PredicateFieldType<RT[K]>> : ValuePredicate<RT, RT[K]>;
602
1249
  } & {
@@ -624,12 +1271,30 @@ export type RecursiveModelPredicate<RT extends PersistentModel> = {
624
1271
  * m.field.eq('whatever else')
625
1272
  * ]))
626
1273
  * ```
1274
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1275
+ * See the migration guide:
1276
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
627
1277
  */
628
1278
  export type ModelPredicateExtender<RT extends PersistentModel> = (lambda: V5ModelPredicate<RT>) => PredicateInternalsKey;
1279
+ /**
1280
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1281
+ * See the migration guide:
1282
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1283
+ */
629
1284
  export type ModelPredicateAggregateExtender<RT extends PersistentModel> = (lambda: V5ModelPredicate<RT>) => PredicateInternalsKey[];
1285
+ /**
1286
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1287
+ * See the migration guide:
1288
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1289
+ */
630
1290
  export type ValuePredicate<RT extends PersistentModel, MT extends MatchableTypes> = {
631
1291
  [K in AllFieldOperators]: K extends 'between' ? (inclusiveLowerBound: Scalar<MT>, inclusiveUpperBound: Scalar<MT>) => PredicateInternalsKey : (operand: Scalar<MT>) => PredicateInternalsKey;
632
1292
  };
1293
+ /**
1294
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1295
+ * See the migration guide:
1296
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1297
+ */
633
1298
  export type V5ModelPredicate<RT extends PersistentModel> = WithoutNevers<{
634
1299
  [K in keyof RT]-?: PredicateFieldType<RT[K]> extends PersistentModel ? never : ValuePredicate<RT, RT[K]>;
635
1300
  }> & {
@@ -637,11 +1302,24 @@ export type V5ModelPredicate<RT extends PersistentModel> = WithoutNevers<{
637
1302
  and: ModelPredicateOperator<RT>;
638
1303
  not: ModelPredicateNegation<RT>;
639
1304
  } & PredicateInternalsKey;
1305
+ /**
1306
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1307
+ * See the migration guide:
1308
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1309
+ */
640
1310
  export type ModelPredicateOperator<RT extends PersistentModel> = (predicates: ModelPredicateAggregateExtender<RT>) => PredicateInternalsKey;
1311
+ /**
1312
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1313
+ * See the migration guide:
1314
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1315
+ */
641
1316
  export type ModelPredicateNegation<RT extends PersistentModel> = (predicate: ModelPredicateExtender<RT>) => PredicateInternalsKey;
642
1317
  /**
643
1318
  * A pointer used by DataStore internally to lookup predicate details
644
1319
  * that should not be exposed on public customer interfaces.
1320
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1321
+ * See the migration guide:
1322
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
645
1323
  */
646
1324
  export declare class PredicateInternalsKey {
647
1325
  private __isPredicateInternalsKeySentinel;