@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
package/src/types.ts CHANGED
@@ -21,13 +21,28 @@ import { InternalAPI } from '@aws-amplify/api/internals';
21
21
  import { Cache } from '@aws-amplify/cache';
22
22
  import { Adapter } from './storage/adapter';
23
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
+ */
24
29
  export type Scalar<T> = T extends Array<infer InnerType> ? InnerType : T;
25
30
 
26
31
  //#region Schema types
32
+ /**
33
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
34
+ * See the migration guide:
35
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
36
+ */
27
37
  export type Schema = UserSchema & {
28
38
  version: string;
29
39
  codegenVersion: string;
30
40
  };
41
+ /**
42
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
43
+ * See the migration guide:
44
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
45
+ */
31
46
  export type UserSchema = {
32
47
  models: SchemaModels;
33
48
  nonModels?: SchemaNonModels;
@@ -36,16 +51,41 @@ export type UserSchema = {
36
51
  enums: SchemaEnums;
37
52
  modelTopologicalOrdering?: Map<string, string[]>;
38
53
  };
54
+ /**
55
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
56
+ * See the migration guide:
57
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
58
+ */
39
59
  export type InternalSchema = {
40
60
  namespaces: SchemaNamespaces;
41
61
  version: string;
42
62
  codegenVersion: string;
43
63
  };
64
+ /**
65
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
66
+ * See the migration guide:
67
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
68
+ */
44
69
  export type SchemaNamespaces = Record<string, SchemaNamespace>;
70
+ /**
71
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
72
+ * See the migration guide:
73
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
74
+ */
45
75
  export type SchemaNamespace = UserSchema & {
46
76
  name: string;
47
77
  };
78
+ /**
79
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
80
+ * See the migration guide:
81
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
82
+ */
48
83
  export type SchemaModels = Record<string, SchemaModel>;
84
+ /**
85
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
86
+ * See the migration guide:
87
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
88
+ */
49
89
  export type SchemaModel = {
50
90
  name: string;
51
91
  pluralName: string;
@@ -64,17 +104,37 @@ export type SchemaModel = {
64
104
  syncable?: boolean;
65
105
  };
66
106
 
107
+ /**
108
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
109
+ * See the migration guide:
110
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
111
+ */
67
112
  export function isSchemaModel(obj: any): obj is SchemaModel {
68
113
  return obj && (<SchemaModel>obj).pluralName !== undefined;
69
114
  }
70
115
 
116
+ /**
117
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
118
+ * See the migration guide:
119
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
120
+ */
71
121
  export function isSchemaModelWithAttributes(
72
122
  m: SchemaModel | SchemaNonModel
73
123
  ): m is SchemaModel {
74
124
  return isSchemaModel(m) && (m as SchemaModel).attributes !== undefined;
75
125
  }
76
126
 
127
+ /**
128
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
129
+ * See the migration guide:
130
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
131
+ */
77
132
  export type SchemaNonModels = Record<string, SchemaNonModel>;
133
+ /**
134
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
135
+ * See the migration guide:
136
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
137
+ */
78
138
  export type SchemaNonModel = {
79
139
  name: string;
80
140
  fields: ModelFields;
@@ -84,11 +144,21 @@ type SchemaEnum = {
84
144
  name: string;
85
145
  values: string[];
86
146
  };
147
+ /**
148
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
149
+ * See the migration guide:
150
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
151
+ */
87
152
  export type ModelMeta<T extends PersistentModel> = {
88
153
  builder: PersistentModelConstructor<T>;
89
154
  schema: SchemaModel;
90
155
  pkField: string[];
91
156
  };
157
+ /**
158
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
159
+ * See the migration guide:
160
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
161
+ */
92
162
  export type ModelAssociation = AssociatedWith | TargetNameAssociation;
93
163
  type AssociatedWith = {
94
164
  connectionType: 'HAS_MANY' | 'HAS_ONE';
@@ -97,6 +167,11 @@ type AssociatedWith = {
97
167
  targetNames?: string[];
98
168
  };
99
169
 
170
+ /**
171
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
172
+ * See the migration guide:
173
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
174
+ */
100
175
  export function isAssociatedWith(obj: any): obj is AssociatedWith {
101
176
  return obj && obj.associatedWith;
102
177
  }
@@ -107,6 +182,11 @@ type TargetNameAssociation = {
107
182
  targetNames?: string[];
108
183
  };
109
184
 
185
+ /**
186
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
187
+ * See the migration guide:
188
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
189
+ */
110
190
  export function isTargetNameAssociation(
111
191
  obj: any
112
192
  ): obj is TargetNameAssociation {
@@ -116,6 +196,11 @@ export function isTargetNameAssociation(
116
196
  type FieldAssociation = {
117
197
  connectionType: 'HAS_ONE' | 'BELONGS_TO' | 'HAS_MANY';
118
198
  };
199
+ /**
200
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
201
+ * See the migration guide:
202
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
203
+ */
119
204
  export function isFieldAssociation(
120
205
  obj: any,
121
206
  fieldName: string
@@ -123,9 +208,24 @@ export function isFieldAssociation(
123
208
  return obj?.fields[fieldName]?.association?.connectionType;
124
209
  }
125
210
 
211
+ /**
212
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
213
+ * See the migration guide:
214
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
215
+ */
126
216
  export type ModelAttributes = ModelAttribute[];
217
+ /**
218
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
219
+ * See the migration guide:
220
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
221
+ */
127
222
  export type ModelAttribute = { type: string; properties?: Record<string, any> };
128
223
 
224
+ /**
225
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
226
+ * See the migration guide:
227
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
228
+ */
129
229
  export type ModelAuthRule = {
130
230
  allow: string;
131
231
  provider?: string;
@@ -137,6 +237,11 @@ export type ModelAuthRule = {
137
237
  groupsField?: string;
138
238
  };
139
239
 
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
+ */
140
245
  export type ModelAttributeAuth = {
141
246
  type: 'auth';
142
247
  properties: {
@@ -144,6 +249,11 @@ export type ModelAttributeAuth = {
144
249
  };
145
250
  };
146
251
 
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
+ */
147
257
  export function isModelAttributeAuth(
148
258
  attr: ModelAttribute
149
259
  ): attr is ModelAttributeAuth {
@@ -179,6 +289,11 @@ type ModelAttributeCompositeKey = {
179
289
  };
180
290
  };
181
291
 
292
+ /**
293
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
294
+ * See the migration guide:
295
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
296
+ */
182
297
  export function isModelAttributeKey(
183
298
  attr: ModelAttribute
184
299
  ): attr is ModelAttributeKey {
@@ -190,12 +305,22 @@ export function isModelAttributeKey(
190
305
  );
191
306
  }
192
307
 
308
+ /**
309
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
310
+ * See the migration guide:
311
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
312
+ */
193
313
  export function isModelAttributePrimaryKey(
194
314
  attr: ModelAttribute
195
315
  ): attr is ModelAttributePrimaryKey {
196
316
  return isModelAttributeKey(attr) && attr.properties.name === undefined;
197
317
  }
198
318
 
319
+ /**
320
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
321
+ * See the migration guide:
322
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
323
+ */
199
324
  export function isModelAttributeCompositeKey(
200
325
  attr: ModelAttribute
201
326
  ): attr is ModelAttributeCompositeKey {
@@ -206,6 +331,11 @@ export function isModelAttributeCompositeKey(
206
331
  );
207
332
  }
208
333
 
334
+ /**
335
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
336
+ * See the migration guide:
337
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
338
+ */
209
339
  export type ModelAttributeAuthProperty = {
210
340
  allow: ModelAttributeAuthAllow;
211
341
  identityClaim?: string;
@@ -216,6 +346,11 @@ export type ModelAttributeAuthProperty = {
216
346
  provider?: ModelAttributeAuthProvider;
217
347
  };
218
348
 
349
+ /**
350
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
351
+ * See the migration guide:
352
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
353
+ */
219
354
  export enum ModelAttributeAuthAllow {
220
355
  CUSTOM = 'custom',
221
356
  OWNER = 'owner',
@@ -224,6 +359,11 @@ export enum ModelAttributeAuthAllow {
224
359
  PUBLIC = 'public',
225
360
  }
226
361
 
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
+ */
227
367
  export enum ModelAttributeAuthProvider {
228
368
  FUNCTION = 'function',
229
369
  USER_POOLS = 'userPools',
@@ -232,7 +372,17 @@ export enum ModelAttributeAuthProvider {
232
372
  API_KEY = 'apiKey',
233
373
  }
234
374
 
375
+ /**
376
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
377
+ * See the migration guide:
378
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
379
+ */
235
380
  export type ModelFields = Record<string, ModelField>;
381
+ /**
382
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
383
+ * See the migration guide:
384
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
385
+ */
236
386
  export enum GraphQLScalarType {
237
387
  ID,
238
388
  String,
@@ -250,6 +400,11 @@ export enum GraphQLScalarType {
250
400
  AWSIPAddress,
251
401
  }
252
402
 
403
+ /**
404
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
405
+ * See the migration guide:
406
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
407
+ */
253
408
  export namespace GraphQLScalarType {
254
409
  export function getJSType(
255
410
  scalar: keyof Omit<
@@ -312,6 +467,11 @@ export namespace GraphQLScalarType {
312
467
  }
313
468
  }
314
469
 
470
+ /**
471
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
472
+ * See the migration guide:
473
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
474
+ */
315
475
  export type AuthorizationRule = {
316
476
  identityClaim: string;
317
477
  ownerField: string;
@@ -323,6 +483,11 @@ export type AuthorizationRule = {
323
483
  areSubscriptionsPublic: boolean;
324
484
  };
325
485
 
486
+ /**
487
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
488
+ * See the migration guide:
489
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
490
+ */
326
491
  export function isGraphQLScalarType(
327
492
  obj: any
328
493
  ): obj is keyof Omit<
@@ -332,10 +497,20 @@ export function isGraphQLScalarType(
332
497
  return obj && GraphQLScalarType[obj] !== undefined;
333
498
  }
334
499
 
500
+ /**
501
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
502
+ * See the migration guide:
503
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
504
+ */
335
505
  export type ModelFieldType = {
336
506
  model: string;
337
507
  modelConstructor?: ModelMeta<PersistentModel>;
338
508
  };
509
+ /**
510
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
511
+ * See the migration guide:
512
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
513
+ */
339
514
  export function isModelFieldType<T extends PersistentModel>(
340
515
  obj: any
341
516
  ): obj is ModelFieldType {
@@ -345,7 +520,17 @@ export function isModelFieldType<T extends PersistentModel>(
345
520
  return false;
346
521
  }
347
522
 
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
+ */
348
528
  export type NonModelFieldType = { nonModel: string };
529
+ /**
530
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
531
+ * See the migration guide:
532
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
533
+ */
349
534
  export function isNonModelFieldType(obj: any): obj is NonModelFieldType {
350
535
  const typeField: keyof NonModelFieldType = 'nonModel';
351
536
  if (obj && obj[typeField]) return true;
@@ -354,6 +539,11 @@ export function isNonModelFieldType(obj: any): obj is NonModelFieldType {
354
539
  }
355
540
 
356
541
  type EnumFieldType = { enum: string };
542
+ /**
543
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
544
+ * See the migration guide:
545
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
546
+ */
357
547
  export function isEnumFieldType(obj: any): obj is EnumFieldType {
358
548
  const modelField: keyof EnumFieldType = 'enum';
359
549
  if (obj && obj[modelField]) return true;
@@ -361,6 +551,11 @@ export function isEnumFieldType(obj: any): obj is EnumFieldType {
361
551
  return false;
362
552
  }
363
553
 
554
+ /**
555
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
556
+ * See the migration guide:
557
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
558
+ */
364
559
  export type ModelField = {
365
560
  name: string;
366
561
  type:
@@ -381,11 +576,21 @@ export type ModelField = {
381
576
  //#endregion
382
577
 
383
578
  //#region Model definition
579
+ /**
580
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
581
+ * See the migration guide:
582
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
583
+ */
384
584
  export type NonModelTypeConstructor<T> = {
385
585
  new (init: T): T;
386
586
  };
387
587
 
388
588
  // Class for model
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
+ */
389
594
  export type PersistentModelConstructor<T extends PersistentModel> = {
390
595
  new (init: ModelInit<T, PersistentModelMetaData<T>>): T;
391
596
  copyOf(
@@ -399,6 +604,9 @@ export type PersistentModelConstructor<T extends PersistentModel> = {
399
604
  * Internal use of Amplify only.
400
605
  *
401
606
  * Indicates to use lazy models or eager models.
607
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
608
+ * See the migration guide:
609
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
402
610
  */
403
611
  export declare class LazyLoadingDisabled {
404
612
  disabled: true;
@@ -409,9 +617,17 @@ export declare class LazyLoadingDisabled {
409
617
  * Internal use of Amplify only.
410
618
  *
411
619
  * Indicates to use lazy models or eager models.
620
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
621
+ * See the migration guide:
622
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
412
623
  */
413
624
  export declare class LazyLoading {}
414
625
 
626
+ /**
627
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
628
+ * See the migration guide:
629
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
630
+ */
415
631
  export type TypeConstructorMap = Record<
416
632
  string,
417
633
  PersistentModelConstructor<any> | NonModelTypeConstructor<unknown>
@@ -420,40 +636,78 @@ export type TypeConstructorMap = Record<
420
636
  /**
421
637
  * Each identifier type is represented using nominal types, see:
422
638
  * https://basarat.gitbook.io/typescript/main-1/nominaltyping
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/
423
642
  */
424
643
  export declare const __identifierBrand__: unique symbol;
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
+ */
425
649
  export type IdentifierBrand<T, K> = T & { [__identifierBrand__]: K };
426
650
 
427
651
  // datastore generates a uuid for you
652
+ /**
653
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
654
+ * See the migration guide:
655
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
656
+ */
428
657
  export type ManagedIdentifier<T, F extends keyof T> = IdentifierBrand<
429
658
  { field: F extends string ? F : never; type: T },
430
659
  'ManagedIdentifier'
431
660
  >;
432
661
 
433
662
  // you can provide a value, if not, datastore generates a uuid for you
663
+ /**
664
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
665
+ * See the migration guide:
666
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
667
+ */
434
668
  export type OptionallyManagedIdentifier<T, F extends keyof T> = IdentifierBrand<
435
669
  { field: F extends string ? F : never; type: T },
436
670
  'OptionallyManagedIdentifier'
437
671
  >;
438
672
 
439
673
  // You provide the values
674
+ /**
675
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
676
+ * See the migration guide:
677
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
678
+ */
440
679
  export type CompositeIdentifier<T, K extends Array<keyof T>> = IdentifierBrand<
441
680
  { fields: K; type: T },
442
681
  'CompositeIdentifier'
443
682
  >;
444
683
 
445
684
  // You provide the value
685
+ /**
686
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
687
+ * See the migration guide:
688
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
689
+ */
446
690
  export type CustomIdentifier<T, K extends keyof T> = CompositeIdentifier<
447
691
  T,
448
692
  [K]
449
693
  >;
450
694
 
695
+ /**
696
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
697
+ * See the migration guide:
698
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
699
+ */
451
700
  export type Identifier<T> =
452
701
  | ManagedIdentifier<T, any>
453
702
  | OptionallyManagedIdentifier<T, any>
454
703
  | CompositeIdentifier<T, any>
455
704
  | CustomIdentifier<T, any>;
456
705
 
706
+ /**
707
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
708
+ * See the migration guide:
709
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
710
+ */
457
711
  export type IdentifierFields<
458
712
  T extends PersistentModel,
459
713
  M extends PersistentModelMetaData<T> = never
@@ -469,6 +723,11 @@ export type IdentifierFields<
469
723
  : Extract<MetadataOrDefault<T, M>['identifier'], { field: any }>['field']) &
470
724
  string;
471
725
 
726
+ /**
727
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
728
+ * See the migration guide:
729
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
730
+ */
472
731
  export type IdentifierFieldsForInit<
473
732
  T extends PersistentModel,
474
733
  M extends PersistentModelMetaData<T>
@@ -486,8 +745,18 @@ export type IdentifierFieldsForInit<
486
745
  : never;
487
746
 
488
747
  // Instance of model
748
+ /**
749
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
750
+ * See the migration guide:
751
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
752
+ */
489
753
  export declare const __modelMeta__: unique symbol;
490
754
 
755
+ /**
756
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
757
+ * See the migration guide:
758
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
759
+ */
491
760
  export type PersistentModelMetaData<T> = {
492
761
  identifier?: Identifier<T>;
493
762
  readOnlyFields?: string;
@@ -497,6 +766,11 @@ export interface AsyncCollection<T> extends AsyncIterable<T> {
497
766
  toArray(options?: { max?: number }): Promise<T[]>;
498
767
  }
499
768
 
769
+ /**
770
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
771
+ * See the migration guide:
772
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
773
+ */
500
774
  export type SettableFieldType<T> = T extends Promise<infer InnerPromiseType>
501
775
  ? undefined extends InnerPromiseType
502
776
  ? InnerPromiseType | null
@@ -507,6 +781,11 @@ export type SettableFieldType<T> = T extends Promise<infer InnerPromiseType>
507
781
  ? T | null
508
782
  : T;
509
783
 
784
+ /**
785
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
786
+ * See the migration guide:
787
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
788
+ */
510
789
  export type PredicateFieldType<T> = NonNullable<
511
790
  Scalar<
512
791
  T extends Promise<infer InnerPromiseType>
@@ -540,11 +819,21 @@ type PickOptionalFields<T> = Pick<
540
819
  KeysOfSuperType<T, undefined> | OptionalRelativesOf<T>
541
820
  >;
542
821
 
822
+ /**
823
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
824
+ * See the migration guide:
825
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
826
+ */
543
827
  export type DefaultPersistentModelMetaData = {
544
828
  identifier: ManagedIdentifier<{ id: string }, 'id'>;
545
829
  readOnlyFields: never;
546
830
  };
547
831
 
832
+ /**
833
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
834
+ * See the migration guide:
835
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
836
+ */
548
837
  export type MetadataOrDefault<
549
838
  T extends PersistentModel,
550
839
  _ extends PersistentModelMetaData<T> = never
@@ -554,8 +843,18 @@ export type MetadataOrDefault<
554
843
  ? T[typeof __modelMeta__]
555
844
  : DefaultPersistentModelMetaData;
556
845
 
846
+ /**
847
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
848
+ * See the migration guide:
849
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
850
+ */
557
851
  export type PersistentModel = Readonly<Record<string, any>>;
558
852
 
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
+ */
559
858
  export type MetadataReadOnlyFields<
560
859
  T extends PersistentModel,
561
860
  M extends PersistentModelMetaData<T>
@@ -569,6 +868,11 @@ export type MetadataReadOnlyFields<
569
868
  // This type omits readOnlyFields in the constructor init object
570
869
  // This type requires some identifiers in the constructor init object (e.g. CustomIdentifier)
571
870
  // This type makes optional some identifiers in the constructor init object (e.g. OptionallyManagedIdentifier)
871
+ /**
872
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
873
+ * See the migration guide:
874
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
875
+ */
572
876
  export type ModelInitBase<
573
877
  T extends PersistentModel,
574
878
  M extends PersistentModelMetaData<T> = {}
@@ -583,6 +887,11 @@ export type ModelInitBase<
583
887
  ? Partial<Pick<T, IdentifierFieldsForInit<T, M>>>
584
888
  : Required<Pick<T, IdentifierFieldsForInit<T, M>>>);
585
889
 
890
+ /**
891
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
892
+ * See the migration guide:
893
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
894
+ */
586
895
  export type ModelInit<
587
896
  T extends PersistentModel,
588
897
  M extends PersistentModelMetaData<T> = {}
@@ -608,6 +917,11 @@ type DeepWritable<T> = {
608
917
  : DeepWritable<T[P]>;
609
918
  };
610
919
 
920
+ /**
921
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
922
+ * See the migration guide:
923
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
924
+ */
611
925
  export type MutableModel<
612
926
  T extends PersistentModel,
613
927
  M extends PersistentModelMetaData<T> = {}
@@ -618,12 +932,22 @@ export type MutableModel<
618
932
  > &
619
933
  Readonly<Pick<T, IdentifierFields<T, M> | MetadataReadOnlyFields<T, M>>>;
620
934
 
935
+ /**
936
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
937
+ * See the migration guide:
938
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
939
+ */
621
940
  export type ModelInstanceMetadata = {
622
941
  _version: number;
623
942
  _lastChangedAt: number;
624
943
  _deleted: boolean;
625
944
  };
626
945
 
946
+ /**
947
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
948
+ * See the migration guide:
949
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
950
+ */
627
951
  export type IdentifierFieldValue<
628
952
  T extends PersistentModel,
629
953
  M extends PersistentModelMetaData<T>
@@ -633,11 +957,21 @@ export type IdentifierFieldValue<
633
957
  : never
634
958
  : T[Extract<MetadataOrDefault<T, M>['identifier'], { field: any }>['field']];
635
959
 
960
+ /**
961
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
962
+ * See the migration guide:
963
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
964
+ */
636
965
  export type IdentifierFieldOrIdentifierObject<
637
966
  T extends PersistentModel,
638
967
  M extends PersistentModelMetaData<T>
639
968
  > = Pick<T, IdentifierFields<T, M>> | IdentifierFieldValue<T, M>;
640
969
 
970
+ /**
971
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
972
+ * See the migration guide:
973
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
974
+ */
641
975
  export function isIdentifierObject<T extends PersistentModel>(
642
976
  obj: any,
643
977
  modelDefinition: SchemaModel
@@ -651,17 +985,32 @@ export function isIdentifierObject<T extends PersistentModel>(
651
985
  //#endregion
652
986
 
653
987
  //#region Subscription messages
988
+ /**
989
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
990
+ * See the migration guide:
991
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
992
+ */
654
993
  export enum OpType {
655
994
  INSERT = 'INSERT',
656
995
  UPDATE = 'UPDATE',
657
996
  DELETE = 'DELETE',
658
997
  }
659
998
 
999
+ /**
1000
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1001
+ * See the migration guide:
1002
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1003
+ */
660
1004
  export type SubscriptionMessage<T extends PersistentModel> = Pick<
661
1005
  InternalSubscriptionMessage<T>,
662
1006
  'opType' | 'element' | 'model' | 'condition'
663
1007
  >;
664
1008
 
1009
+ /**
1010
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1011
+ * See the migration guide:
1012
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1013
+ */
665
1014
  export type InternalSubscriptionMessage<T extends PersistentModel> = {
666
1015
  opType: OpType;
667
1016
  element: T;
@@ -670,6 +1019,11 @@ export type InternalSubscriptionMessage<T extends PersistentModel> = {
670
1019
  savedElement?: T;
671
1020
  };
672
1021
 
1022
+ /**
1023
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1024
+ * See the migration guide:
1025
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1026
+ */
673
1027
  export type DataStoreSnapshot<T extends PersistentModel> = {
674
1028
  items: T[];
675
1029
  isSynced: boolean;
@@ -678,6 +1032,11 @@ export type DataStoreSnapshot<T extends PersistentModel> = {
678
1032
 
679
1033
  //#region Predicates
680
1034
 
1035
+ /**
1036
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1037
+ * See the migration guide:
1038
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1039
+ */
681
1040
  export type PredicateExpression<
682
1041
  M extends PersistentModel,
683
1042
  FT
@@ -712,6 +1071,11 @@ type ArrayOperators<T> = {
712
1071
  contains: T;
713
1072
  notContains: T;
714
1073
  };
1074
+ /**
1075
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1076
+ * See the migration guide:
1077
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1078
+ */
715
1079
  export type AllOperators = NumberOperators<any> &
716
1080
  StringOperators<any> &
717
1081
  ArrayOperators<any>;
@@ -739,6 +1103,11 @@ type TypeName<T> = T extends string
739
1103
  ? 'boolean[]'
740
1104
  : never;
741
1105
 
1106
+ /**
1107
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1108
+ * See the migration guide:
1109
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1110
+ */
742
1111
  export type PredicateGroups<T extends PersistentModel> = {
743
1112
  and: (
744
1113
  predicate: (predicate: ModelPredicate<T>) => ModelPredicate<T>
@@ -751,47 +1120,92 @@ export type PredicateGroups<T extends PersistentModel> = {
751
1120
  ) => ModelPredicate<T>;
752
1121
  };
753
1122
 
1123
+ /**
1124
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1125
+ * See the migration guide:
1126
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1127
+ */
754
1128
  export type ModelPredicate<M extends PersistentModel> = {
755
1129
  [K in keyof M]-?: PredicateExpression<M, NonNullable<M[K]>>;
756
1130
  } & PredicateGroups<M>;
757
1131
 
1132
+ /**
1133
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1134
+ * See the migration guide:
1135
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1136
+ */
758
1137
  export type ProducerModelPredicate<M extends PersistentModel> = (
759
1138
  condition: ModelPredicate<M>
760
1139
  ) => ModelPredicate<M>;
761
1140
 
1141
+ /**
1142
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1143
+ * See the migration guide:
1144
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1145
+ */
762
1146
  export type PredicatesGroup<T extends PersistentModel> = {
763
1147
  type: keyof PredicateGroups<T>;
764
1148
  predicates: (PredicateObject<T> | PredicatesGroup<T>)[];
765
1149
  };
766
1150
 
1151
+ /**
1152
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1153
+ * See the migration guide:
1154
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1155
+ */
767
1156
  export function isPredicateObj<T extends PersistentModel>(
768
1157
  obj: any
769
1158
  ): obj is PredicateObject<T> {
770
1159
  return obj && (<PredicateObject<T>>obj).field !== undefined;
771
1160
  }
772
1161
 
1162
+ /**
1163
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1164
+ * See the migration guide:
1165
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1166
+ */
773
1167
  export function isPredicateGroup<T extends PersistentModel>(
774
1168
  obj: any
775
1169
  ): obj is PredicatesGroup<T> {
776
1170
  return obj && (<PredicatesGroup<T>>obj).type !== undefined;
777
1171
  }
778
1172
 
1173
+ /**
1174
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1175
+ * See the migration guide:
1176
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1177
+ */
779
1178
  export type PredicateObject<T extends PersistentModel> = {
780
1179
  field: keyof T;
781
1180
  operator: keyof AllOperators;
782
1181
  operand: any;
783
1182
  };
784
1183
 
1184
+ /**
1185
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1186
+ * See the migration guide:
1187
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1188
+ */
785
1189
  export enum QueryOne {
786
1190
  FIRST,
787
1191
  LAST,
788
1192
  }
1193
+ /**
1194
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1195
+ * See the migration guide:
1196
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1197
+ */
789
1198
  export type GraphQLField = {
790
1199
  [field: string]: {
791
1200
  [operator: string]: string | number | [number, number];
792
1201
  };
793
1202
  };
794
1203
 
1204
+ /**
1205
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1206
+ * See the migration guide:
1207
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1208
+ */
795
1209
  export type GraphQLCondition = Partial<
796
1210
  | GraphQLField
797
1211
  | {
@@ -801,6 +1215,11 @@ export type GraphQLCondition = Partial<
801
1215
  }
802
1216
  >;
803
1217
 
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/
1222
+ */
804
1223
  export type GraphQLFilter = Partial<
805
1224
  | GraphQLField
806
1225
  | {
@@ -818,31 +1237,61 @@ export type GraphQLFilter = Partial<
818
1237
 
819
1238
  //#region Pagination
820
1239
 
1240
+ /**
1241
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1242
+ * See the migration guide:
1243
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1244
+ */
821
1245
  export type ProducerPaginationInput<T extends PersistentModel> = {
822
1246
  sort?: ProducerSortPredicate<T>;
823
1247
  limit?: number;
824
1248
  page?: number;
825
1249
  };
826
1250
 
1251
+ /**
1252
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1253
+ * See the migration guide:
1254
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1255
+ */
827
1256
  export type ObserveQueryOptions<T extends PersistentModel> = Pick<
828
1257
  ProducerPaginationInput<T>,
829
1258
  'sort'
830
1259
  >;
831
1260
 
1261
+ /**
1262
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1263
+ * See the migration guide:
1264
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1265
+ */
832
1266
  export type PaginationInput<T extends PersistentModel> = {
833
1267
  sort?: SortPredicate<T>;
834
1268
  limit?: number;
835
1269
  page?: number;
836
1270
  };
837
1271
 
1272
+ /**
1273
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1274
+ * See the migration guide:
1275
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1276
+ */
838
1277
  export type ProducerSortPredicate<M extends PersistentModel> = (
839
1278
  condition: SortPredicate<M>
840
1279
  ) => SortPredicate<M>;
841
1280
 
1281
+ /**
1282
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1283
+ * See the migration guide:
1284
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1285
+ */
842
1286
  export type SortPredicate<T extends PersistentModel> = {
843
1287
  [K in keyof T]-?: SortPredicateExpression<T, NonNullable<T[K]>>;
844
1288
  };
845
1289
 
1290
+ /**
1291
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1292
+ * See the migration guide:
1293
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1294
+ */
846
1295
  export type SortPredicateExpression<
847
1296
  M extends PersistentModel,
848
1297
  FT
@@ -850,14 +1299,29 @@ export type SortPredicateExpression<
850
1299
  ? (sortDirection: keyof typeof SortDirection) => SortPredicate<M>
851
1300
  : never;
852
1301
 
1302
+ /**
1303
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1304
+ * See the migration guide:
1305
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1306
+ */
853
1307
  export enum SortDirection {
854
1308
  ASCENDING = 'ASCENDING',
855
1309
  DESCENDING = 'DESCENDING',
856
1310
  }
857
1311
 
1312
+ /**
1313
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1314
+ * See the migration guide:
1315
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1316
+ */
858
1317
  export type SortPredicatesGroup<T extends PersistentModel> =
859
1318
  SortPredicateObject<T>[];
860
1319
 
1320
+ /**
1321
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1322
+ * See the migration guide:
1323
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1324
+ */
861
1325
  export type SortPredicateObject<T extends PersistentModel> = {
862
1326
  field: keyof T;
863
1327
  sortDirection: keyof typeof SortDirection;
@@ -867,6 +1331,11 @@ export type SortPredicateObject<T extends PersistentModel> = {
867
1331
 
868
1332
  //#region System Components
869
1333
 
1334
+ /**
1335
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1336
+ * See the migration guide:
1337
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1338
+ */
870
1339
  export type SystemComponent = {
871
1340
  setUp(
872
1341
  schema: InternalSchema,
@@ -880,10 +1349,20 @@ export type SystemComponent = {
880
1349
  ): Promise<void>;
881
1350
  };
882
1351
 
1352
+ /**
1353
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1354
+ * See the migration guide:
1355
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1356
+ */
883
1357
  export type NamespaceResolver = (
884
1358
  modelConstructor: PersistentModelConstructor<any>
885
1359
  ) => string;
886
1360
 
1361
+ /**
1362
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1363
+ * See the migration guide:
1364
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1365
+ */
887
1366
  export type ControlMessageType<T> = {
888
1367
  type: T;
889
1368
  data?: any;
@@ -892,6 +1371,11 @@ export type ControlMessageType<T> = {
892
1371
  //#endregion
893
1372
 
894
1373
  //#region Relationship types
1374
+ /**
1375
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1376
+ * See the migration guide:
1377
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1378
+ */
895
1379
  export type RelationType = {
896
1380
  fieldName: string;
897
1381
  modelName: string;
@@ -905,8 +1389,18 @@ type IndexOptions = {
905
1389
  unique?: boolean;
906
1390
  };
907
1391
 
1392
+ /**
1393
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1394
+ * See the migration guide:
1395
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1396
+ */
908
1397
  export type IndexesType = Array<[string, string[], IndexOptions?]>;
909
1398
 
1399
+ /**
1400
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1401
+ * See the migration guide:
1402
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1403
+ */
910
1404
  export type RelationshipType = {
911
1405
  [modelName: string]: {
912
1406
  indexes: IndexesType;
@@ -917,11 +1411,21 @@ export type RelationshipType = {
917
1411
  //#endregion
918
1412
 
919
1413
  //#region Key type
1414
+ /**
1415
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1416
+ * See the migration guide:
1417
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1418
+ */
920
1419
  export type KeyType = {
921
1420
  primaryKey?: string[];
922
1421
  compositeKeys?: Set<string>[];
923
1422
  };
924
1423
 
1424
+ /**
1425
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1426
+ * See the migration guide:
1427
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1428
+ */
925
1429
  export type ModelKeys = {
926
1430
  [modelName: string]: KeyType;
927
1431
  };
@@ -929,6 +1433,11 @@ export type ModelKeys = {
929
1433
  //#endregion
930
1434
 
931
1435
  //#region DataStore config types
1436
+ /**
1437
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1438
+ * See the migration guide:
1439
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1440
+ */
932
1441
  export type DataStoreConfig = {
933
1442
  DataStore?: {
934
1443
  authModeStrategyType?: AuthModeStrategyType;
@@ -952,31 +1461,61 @@ export type DataStoreConfig = {
952
1461
  storageAdapter?: Adapter;
953
1462
  };
954
1463
 
1464
+ /**
1465
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1466
+ * See the migration guide:
1467
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1468
+ */
955
1469
  export type AuthProviders = {
956
1470
  functionAuthProvider: () => { token: string } | Promise<{ token: string }>;
957
1471
  };
958
1472
 
1473
+ /**
1474
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1475
+ * See the migration guide:
1476
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1477
+ */
959
1478
  export enum AuthModeStrategyType {
960
1479
  DEFAULT = 'DEFAULT',
961
1480
  MULTI_AUTH = 'MULTI_AUTH',
962
1481
  }
963
1482
 
1483
+ /**
1484
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1485
+ * See the migration guide:
1486
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1487
+ */
964
1488
  export type AuthModeStrategyReturn =
965
1489
  | GRAPHQL_AUTH_MODE
966
1490
  | GRAPHQL_AUTH_MODE[]
967
1491
  | undefined
968
1492
  | null;
969
1493
 
1494
+ /**
1495
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1496
+ * See the migration guide:
1497
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1498
+ */
970
1499
  export type AuthModeStrategyParams = {
971
1500
  schema: InternalSchema;
972
1501
  modelName: string;
973
1502
  operation: ModelOperation;
974
1503
  };
975
1504
 
1505
+ /**
1506
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1507
+ * See the migration guide:
1508
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1509
+ */
976
1510
  export type AuthModeStrategy = (
977
1511
  authModeStrategyParams: AuthModeStrategyParams
978
1512
  ) => AuthModeStrategyReturn | Promise<AuthModeStrategyReturn>;
979
1513
 
1514
+ /**
1515
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1516
+ * See the migration guide:
1517
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1518
+ */
980
1519
  export enum ModelOperation {
981
1520
  CREATE = 'CREATE',
982
1521
  READ = 'READ',
@@ -984,6 +1523,11 @@ export enum ModelOperation {
984
1523
  DELETE = 'DELETE',
985
1524
  }
986
1525
 
1526
+ /**
1527
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1528
+ * See the migration guide:
1529
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1530
+ */
987
1531
  export type ModelAuthModes = Record<
988
1532
  string,
989
1533
  {
@@ -991,6 +1535,11 @@ export type ModelAuthModes = Record<
991
1535
  }
992
1536
  >;
993
1537
 
1538
+ /**
1539
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1540
+ * See the migration guide:
1541
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1542
+ */
994
1543
  export type SyncExpression = Promise<{
995
1544
  modelConstructor: any;
996
1545
  conditionProducer: (c?: any) => any;
@@ -1028,6 +1577,11 @@ type ConditionProducer<T extends PersistentModel, A extends Option<T>> = (
1028
1577
  ...args: A
1029
1578
  ) => A['length'] extends keyof Lookup<T> ? Lookup<T>[A['length']] : never;
1030
1579
 
1580
+ /**
1581
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1582
+ * See the migration guide:
1583
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1584
+ */
1031
1585
  export async function syncExpression<
1032
1586
  T extends PersistentModel,
1033
1587
  A extends Option<T>
@@ -1044,6 +1598,11 @@ export async function syncExpression<
1044
1598
  };
1045
1599
  }
1046
1600
 
1601
+ /**
1602
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1603
+ * See the migration guide:
1604
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1605
+ */
1047
1606
  export type SyncConflict = {
1048
1607
  modelConstructor: PersistentModelConstructor<any>;
1049
1608
  localModel: PersistentModel;
@@ -1052,6 +1611,11 @@ export type SyncConflict = {
1052
1611
  attempts: number;
1053
1612
  };
1054
1613
 
1614
+ /**
1615
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1616
+ * See the migration guide:
1617
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1618
+ */
1055
1619
  export type SyncError<T extends PersistentModel> = {
1056
1620
  message: string;
1057
1621
  errorType: ErrorType;
@@ -1065,6 +1629,11 @@ export type SyncError<T extends PersistentModel> = {
1065
1629
  cause?: Error;
1066
1630
  };
1067
1631
 
1632
+ /**
1633
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1634
+ * See the migration guide:
1635
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1636
+ */
1068
1637
  export type ErrorType =
1069
1638
  | 'ConfigError'
1070
1639
  | 'BadModel'
@@ -1073,34 +1642,69 @@ export type ErrorType =
1073
1642
  | 'Transient'
1074
1643
  | 'Unknown';
1075
1644
 
1645
+ /**
1646
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1647
+ * See the migration guide:
1648
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1649
+ */
1076
1650
  export enum ProcessName {
1077
1651
  'sync' = 'sync',
1078
1652
  'mutate' = 'mutate',
1079
1653
  'subscribe' = 'subscribe',
1080
1654
  }
1081
1655
 
1656
+ /**
1657
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1658
+ * See the migration guide:
1659
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1660
+ */
1082
1661
  export const DISCARD = Symbol('DISCARD');
1083
1662
 
1663
+ /**
1664
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1665
+ * See the migration guide:
1666
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1667
+ */
1084
1668
  export type ConflictHandler = (
1085
1669
  conflict: SyncConflict
1086
1670
  ) =>
1087
1671
  | Promise<PersistentModel | typeof DISCARD>
1088
1672
  | PersistentModel
1089
1673
  | typeof DISCARD;
1674
+ /**
1675
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1676
+ * See the migration guide:
1677
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1678
+ */
1090
1679
  export type ErrorHandler = (error: SyncError<PersistentModel>) => void;
1091
1680
 
1681
+ /**
1682
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1683
+ * See the migration guide:
1684
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1685
+ */
1092
1686
  export type DeferredCallbackResolverOptions = {
1093
1687
  callback: () => void;
1094
1688
  maxInterval?: number;
1095
1689
  errorHandler?: (error: string) => void;
1096
1690
  };
1097
1691
 
1692
+ /**
1693
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1694
+ * See the migration guide:
1695
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1696
+ */
1098
1697
  export enum LimitTimerRaceResolvedValues {
1099
1698
  LIMIT = 'LIMIT',
1100
1699
  TIMER = 'TIMER',
1101
1700
  }
1102
1701
  //#endregion
1103
1702
 
1703
+ /**
1704
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1705
+ * See the migration guide:
1706
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1707
+ */
1104
1708
  export type AmplifyContext = {
1105
1709
  Auth: typeof Auth;
1106
1710
  InternalAPI: typeof InternalAPI;
@@ -1109,6 +1713,11 @@ export type AmplifyContext = {
1109
1713
 
1110
1714
  // #region V5 predicate types
1111
1715
 
1716
+ /**
1717
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1718
+ * See the migration guide:
1719
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1720
+ */
1112
1721
  export type MatchableTypes =
1113
1722
  | string
1114
1723
  | string[]
@@ -1117,12 +1726,27 @@ export type MatchableTypes =
1117
1726
  | boolean
1118
1727
  | boolean[];
1119
1728
 
1729
+ /**
1730
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1731
+ * See the migration guide:
1732
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1733
+ */
1120
1734
  export type AllFieldOperators = keyof AllOperators;
1121
1735
 
1736
+ /**
1737
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1738
+ * See the migration guide:
1739
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1740
+ */
1122
1741
  export type NonNeverKeys<T> = {
1123
1742
  [K in keyof T]: T[K] extends never ? never : K;
1124
1743
  }[keyof T];
1125
1744
 
1745
+ /**
1746
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1747
+ * See the migration guide:
1748
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1749
+ */
1126
1750
  export type WithoutNevers<T> = Pick<T, NonNeverKeys<T>>;
1127
1751
 
1128
1752
  /**
@@ -1147,23 +1771,46 @@ export type WithoutNevers<T> = Pick<T, NonNeverKeys<T>>;
1147
1771
  * m.myModelField.ne('something')
1148
1772
  * ]))
1149
1773
  * ```
1774
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1775
+ * See the migration guide:
1776
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1150
1777
  */
1151
1778
  export type RecursiveModelPredicateExtender<RT extends PersistentModel> = (
1152
1779
  lambda: RecursiveModelPredicate<RT>
1153
1780
  ) => PredicateInternalsKey;
1154
1781
 
1782
+ /**
1783
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1784
+ * See the migration guide:
1785
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1786
+ */
1155
1787
  export type RecursiveModelPredicateAggregateExtender<
1156
1788
  RT extends PersistentModel
1157
1789
  > = (lambda: RecursiveModelPredicate<RT>) => PredicateInternalsKey[];
1158
1790
 
1791
+ /**
1792
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1793
+ * See the migration guide:
1794
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1795
+ */
1159
1796
  export type RecursiveModelPredicateOperator<RT extends PersistentModel> = (
1160
1797
  predicates: RecursiveModelPredicateAggregateExtender<RT>
1161
1798
  ) => PredicateInternalsKey;
1162
1799
 
1800
+ /**
1801
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1802
+ * See the migration guide:
1803
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1804
+ */
1163
1805
  export type RecursiveModelPredicateNegation<RT extends PersistentModel> = (
1164
1806
  predicate: RecursiveModelPredicateExtender<RT>
1165
1807
  ) => PredicateInternalsKey;
1166
1808
 
1809
+ /**
1810
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1811
+ * See the migration guide:
1812
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1813
+ */
1167
1814
  export type RecursiveModelPredicate<RT extends PersistentModel> = {
1168
1815
  [K in keyof RT]-?: PredicateFieldType<RT[K]> extends PersistentModel
1169
1816
  ? RecursiveModelPredicate<PredicateFieldType<RT[K]>>
@@ -1194,15 +1841,28 @@ export type RecursiveModelPredicate<RT extends PersistentModel> = {
1194
1841
  * m.field.eq('whatever else')
1195
1842
  * ]))
1196
1843
  * ```
1844
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1845
+ * See the migration guide:
1846
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1197
1847
  */
1198
1848
  export type ModelPredicateExtender<RT extends PersistentModel> = (
1199
1849
  lambda: V5ModelPredicate<RT>
1200
1850
  ) => PredicateInternalsKey;
1201
1851
 
1852
+ /**
1853
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1854
+ * See the migration guide:
1855
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1856
+ */
1202
1857
  export type ModelPredicateAggregateExtender<RT extends PersistentModel> = (
1203
1858
  lambda: V5ModelPredicate<RT>
1204
1859
  ) => PredicateInternalsKey[];
1205
1860
 
1861
+ /**
1862
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1863
+ * See the migration guide:
1864
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1865
+ */
1206
1866
  export type ValuePredicate<
1207
1867
  RT extends PersistentModel,
1208
1868
  MT extends MatchableTypes
@@ -1215,6 +1875,11 @@ export type ValuePredicate<
1215
1875
  : (operand: Scalar<MT>) => PredicateInternalsKey;
1216
1876
  };
1217
1877
 
1878
+ /**
1879
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1880
+ * See the migration guide:
1881
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1882
+ */
1218
1883
  export type V5ModelPredicate<RT extends PersistentModel> = WithoutNevers<{
1219
1884
  [K in keyof RT]-?: PredicateFieldType<RT[K]> extends PersistentModel
1220
1885
  ? never
@@ -1225,10 +1890,20 @@ export type V5ModelPredicate<RT extends PersistentModel> = WithoutNevers<{
1225
1890
  not: ModelPredicateNegation<RT>;
1226
1891
  } & PredicateInternalsKey;
1227
1892
 
1893
+ /**
1894
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1895
+ * See the migration guide:
1896
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1897
+ */
1228
1898
  export type ModelPredicateOperator<RT extends PersistentModel> = (
1229
1899
  predicates: ModelPredicateAggregateExtender<RT>
1230
1900
  ) => PredicateInternalsKey;
1231
1901
 
1902
+ /**
1903
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1904
+ * See the migration guide:
1905
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1906
+ */
1232
1907
  export type ModelPredicateNegation<RT extends PersistentModel> = (
1233
1908
  predicate: ModelPredicateExtender<RT>
1234
1909
  ) => PredicateInternalsKey;
@@ -1236,6 +1911,9 @@ export type ModelPredicateNegation<RT extends PersistentModel> = (
1236
1911
  /**
1237
1912
  * A pointer used by DataStore internally to lookup predicate details
1238
1913
  * that should not be exposed on public customer interfaces.
1914
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
1915
+ * See the migration guide:
1916
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
1239
1917
  */
1240
1918
  export class PredicateInternalsKey {
1241
1919
  private __isPredicateInternalsKeySentinel: boolean = true;