@contentchef/contentchef-types 11.1.0-alpha.1 → 11.1.0-alpha.2

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.
@@ -392,8 +392,8 @@ export type ComponentError = ComponentErrorOf<ComponentErrorTypes.componentNotFo
392
392
  id: MigrationPreviewId;
393
393
  }>;
394
394
  /**
395
- * This type represent where a definition's contents stand, as the get content definition API request
396
- * answers it
395
+ * This type represent where a definition's contents stand, as the get content definition, update content
396
+ * definition and get migration API requests answer it
397
397
  *
398
398
  * An upgrade or adoption that renames, removes or retypes fields bumps the definition's revision and
399
399
  * migrates its contents in the background, one migration at a time per definition
@@ -558,6 +558,19 @@ export type GetMigrationPreviewResponse = {
558
558
  */
559
559
  settingAside: number;
560
560
  };
561
+ /**
562
+ * This type represent the data needed to make a get migration API request
563
+ */
564
+ export type GetMigrationRequest = {
565
+ /**
566
+ * The content definition unique id
567
+ */
568
+ id: ContentDefinitionId;
569
+ };
570
+ /**
571
+ * This type represent the response of a get migration API request, to poll while a migration runs
572
+ */
573
+ export type GetMigrationResponse = DefinitionMigrationState;
561
574
  /**
562
575
  * This type represent the data needed to make a resume migration API request
563
576
  */
@@ -683,7 +683,12 @@ export type CreateContentResponse = ContentResponse;
683
683
  /**
684
684
  * This type represent the response of an update content API request
685
685
  */
686
- export type UpdateContentResponse = ContentResponse;
686
+ export type UpdateContentResponse = ContentResponse & {
687
+ /**
688
+ * The values set aside left to resolve after the save, so a form need not read the content again
689
+ */
690
+ setAside: SetAsideValue[];
691
+ };
687
692
  /**
688
693
  * This type represent the data needed to make a list public id API request
689
694
  */
@@ -207,7 +207,12 @@ export type CreateContentDefinitionResponse = ContentDefinitionResponse;
207
207
  /**
208
208
  * This type represent the response of an update content definition API request
209
209
  */
210
- export type UpdateContentDefinitionResponse = ContentDefinitionResponse;
210
+ export type UpdateContentDefinitionResponse = ContentDefinitionResponse & {
211
+ /**
212
+ * Where the definition's contents stand: a save that started a migration has them all behind
213
+ */
214
+ migration: DefinitionMigrationState;
215
+ };
211
216
  /**
212
217
  * This type represent the response of a get content definition API request
213
218
  */
@@ -409,8 +409,8 @@ export type ComponentError =
409
409
  | ComponentErrorOf<ComponentErrorTypes.migrationPreviewNotFound, { id: MigrationPreviewId }>;
410
410
 
411
411
  /**
412
- * This type represent where a definition's contents stand, as the get content definition API request
413
- * answers it
412
+ * This type represent where a definition's contents stand, as the get content definition, update content
413
+ * definition and get migration API requests answer it
414
414
  *
415
415
  * An upgrade or adoption that renames, removes or retypes fields bumps the definition's revision and
416
416
  * migrates its contents in the background, one migration at a time per definition
@@ -576,6 +576,21 @@ export type GetMigrationPreviewResponse = {
576
576
  settingAside: number;
577
577
  };
578
578
 
579
+ /**
580
+ * This type represent the data needed to make a get migration API request
581
+ */
582
+ export type GetMigrationRequest = {
583
+ /**
584
+ * The content definition unique id
585
+ */
586
+ id: ContentDefinitionId;
587
+ };
588
+
589
+ /**
590
+ * This type represent the response of a get migration API request, to poll while a migration runs
591
+ */
592
+ export type GetMigrationResponse = DefinitionMigrationState;
593
+
579
594
  /**
580
595
  * This type represent the data needed to make a resume migration API request
581
596
  */
@@ -745,7 +745,12 @@ export type CreateContentResponse = ContentResponse;
745
745
  /**
746
746
  * This type represent the response of an update content API request
747
747
  */
748
- export type UpdateContentResponse = ContentResponse;
748
+ export type UpdateContentResponse = ContentResponse & {
749
+ /**
750
+ * The values set aside left to resolve after the save, so a form need not read the content again
751
+ */
752
+ setAside: SetAsideValue[];
753
+ };
749
754
 
750
755
  /**
751
756
  * This type represent the data needed to make a list public id API request
@@ -224,7 +224,12 @@ export type CreateContentDefinitionResponse = ContentDefinitionResponse;
224
224
  /**
225
225
  * This type represent the response of an update content definition API request
226
226
  */
227
- export type UpdateContentDefinitionResponse = ContentDefinitionResponse;
227
+ export type UpdateContentDefinitionResponse = ContentDefinitionResponse & {
228
+ /**
229
+ * Where the definition's contents stand: a save that started a migration has them all behind
230
+ */
231
+ migration: DefinitionMigrationState;
232
+ };
228
233
  /**
229
234
  * This type represent the response of a get content definition API request
230
235
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentchef/contentchef-types",
3
- "version": "11.1.0-alpha.1",
3
+ "version": "11.1.0-alpha.2",
4
4
  "description": "ContentChef types",
5
5
  "author": "PierpaoloIannone <piannone@byte-code.com>",
6
6
  "homepage": "https://github.com/ContentChef/contentchef-management-js-client#readme",
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "typescript": "^5.9.3"
36
36
  },
37
- "gitHead": "8970d38d1236984dee510da19687d73078f76a70"
37
+ "gitHead": "6aef68846f09d3cec95ade3d59906d1edc48db85"
38
38
  }