@btst/plugin-cms 1.0.0-beta.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,8 +100,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
100
100
  id: string;
101
101
  slug: string;
102
102
  contentTypeId: string;
103
- data: string;
104
103
  authorId?: string | undefined;
104
+ data: string;
105
105
  } | (Omit<Pick<{
106
106
  contentType?: {
107
107
  createdAt: string;
@@ -120,9 +120,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
120
120
  id: string;
121
121
  slug: string;
122
122
  contentTypeId: string;
123
- data: string;
124
123
  authorId?: string | undefined;
125
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
124
+ data: string;
125
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
126
126
  parsedData: Record<string, _btst_stack_plugins_api.OperationData> | Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
127
127
  }))[];
128
128
  total: number;
@@ -149,13 +149,13 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
149
149
  readonly id: string;
150
150
  readonly slug: string;
151
151
  readonly contentTypeId: string;
152
- readonly data: string;
153
152
  readonly authorId?: string | undefined;
153
+ readonly data: string;
154
154
  } | {
155
- readonly id: string;
156
- readonly slug: string;
157
155
  readonly createdAt: string;
158
156
  readonly updatedAt: string;
157
+ readonly id: string;
158
+ readonly slug: string;
159
159
  readonly parsedData: {
160
160
  readonly [x: string]: any;
161
161
  } | {
@@ -198,15 +198,15 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
198
198
  id: string;
199
199
  slug: string;
200
200
  contentTypeId: string;
201
- data: string;
202
201
  authorId?: string | undefined;
203
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
202
+ data: string;
203
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
204
204
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
205
205
  }) | {
206
- readonly id: string;
207
- readonly slug: string;
208
206
  readonly createdAt: string;
209
207
  readonly updatedAt: string;
208
+ readonly id: string;
209
+ readonly slug: string;
210
210
  readonly parsedData: {
211
211
  readonly [x: string]: any;
212
212
  };
@@ -245,8 +245,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
245
245
  readonly id: string;
246
246
  readonly slug: string;
247
247
  readonly contentTypeId: string;
248
- readonly data: string;
249
248
  readonly authorId?: string | undefined;
249
+ readonly data: string;
250
250
  }>;
251
251
  readonly updateContentItem: better_call.StrictEndpoint<"/content/:typeSlug/:id", {
252
252
  params: z.ZodObject<{
@@ -283,8 +283,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
283
283
  readonly id: string;
284
284
  readonly slug: string;
285
285
  readonly contentTypeId: string;
286
- readonly data: string;
287
286
  readonly authorId?: string | undefined;
287
+ readonly data: string;
288
288
  }>;
289
289
  readonly deleteContentItem: better_call.StrictEndpoint<"/content/:typeSlug/:id", {
290
290
  params: z.ZodObject<{
@@ -328,8 +328,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
328
328
  readonly id: string;
329
329
  readonly slug: string;
330
330
  readonly contentTypeId: string;
331
- readonly data: string;
332
331
  readonly authorId?: string | undefined;
332
+ readonly data: string;
333
333
  }[];
334
334
  };
335
335
  readonly contentType?: {
@@ -351,8 +351,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
351
351
  readonly id: string;
352
352
  readonly slug: string;
353
353
  readonly contentTypeId: string;
354
- readonly data: string;
355
354
  readonly authorId?: string | undefined;
355
+ readonly data: string;
356
356
  }>;
357
357
  readonly listContentByRelation: better_call.StrictEndpoint<"/content/:typeSlug/by-relation", {
358
358
  params: z.ZodObject<{
@@ -396,9 +396,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
396
396
  id: string;
397
397
  slug: string;
398
398
  contentTypeId: string;
399
- data: string;
400
399
  authorId?: string | undefined;
401
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
400
+ data: string;
401
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
402
402
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
403
403
  })[];
404
404
  total: number;
@@ -406,10 +406,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
406
406
  offset: number;
407
407
  } | {
408
408
  readonly items: readonly {
409
- readonly id: string;
410
- readonly slug: string;
411
409
  readonly createdAt: string;
412
410
  readonly updatedAt: string;
411
+ readonly id: string;
412
+ readonly slug: string;
413
413
  readonly parsedData: {
414
414
  readonly [x: string]: any;
415
415
  };
@@ -482,9 +482,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
482
482
  id: string;
483
483
  slug: string;
484
484
  contentTypeId: string;
485
- data: string;
486
485
  authorId?: string | undefined;
487
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
486
+ data: string;
487
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
488
488
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
489
489
  })[];
490
490
  total: number;
@@ -492,10 +492,10 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
492
492
  offset: number;
493
493
  } | {
494
494
  readonly items: readonly {
495
- readonly id: string;
496
- readonly slug: string;
497
495
  readonly createdAt: string;
498
496
  readonly updatedAt: string;
497
+ readonly id: string;
498
+ readonly slug: string;
499
499
  readonly parsedData: {
500
500
  readonly [x: string]: any;
501
501
  };
@@ -575,8 +575,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
575
575
  id: string;
576
576
  slug: string;
577
577
  contentTypeId: string;
578
- data: string;
579
578
  authorId?: string | undefined;
579
+ data: string;
580
580
  } | (Omit<Pick<{
581
581
  contentType?: {
582
582
  createdAt: string;
@@ -595,9 +595,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
595
595
  id: string;
596
596
  slug: string;
597
597
  contentTypeId: string;
598
- data: string;
599
598
  authorId?: string | undefined;
600
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
599
+ data: string;
600
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
601
601
  parsedData: Record<string, _btst_stack_plugins_api.OperationData> | Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
602
602
  }))[];
603
603
  total: number;
@@ -632,9 +632,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
632
632
  id: string;
633
633
  slug: string;
634
634
  contentTypeId: string;
635
- data: string;
636
635
  authorId?: string | undefined;
637
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
636
+ data: string;
637
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
638
638
  parsedData: T extends infer T_1 ? T_1 extends T ? T_1 extends {
639
639
  fields?: infer TFields extends CMSContentFields;
640
640
  } ? CMSSelectedData<Record<string, unknown>, TFields> : Record<string, _btst_stack_plugins_api.OperationData> : never : never;
@@ -658,8 +658,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
658
658
  id: string;
659
659
  slug: string;
660
660
  contentTypeId: string;
661
- data: string;
662
661
  authorId?: string | undefined;
662
+ data: string;
663
663
  } : "view" extends keyof T ? {
664
664
  contentType?: {
665
665
  createdAt: string;
@@ -678,8 +678,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
678
678
  id: string;
679
679
  slug: string;
680
680
  contentTypeId: string;
681
- data: string;
682
681
  authorId?: string | undefined;
682
+ data: string;
683
683
  } | (Omit<Pick<{
684
684
  contentType?: {
685
685
  createdAt: string;
@@ -698,9 +698,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
698
698
  id: string;
699
699
  slug: string;
700
700
  contentTypeId: string;
701
- data: string;
702
701
  authorId?: string | undefined;
703
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
702
+ data: string;
703
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
704
704
  parsedData: T extends {
705
705
  fields?: infer TFields extends CMSContentFields;
706
706
  } ? CMSSelectedData<Record<string, unknown>, TFields> : Record<string, _btst_stack_plugins_api.OperationData>;
@@ -722,8 +722,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
722
722
  id: string;
723
723
  slug: string;
724
724
  contentTypeId: string;
725
- data: string;
726
725
  authorId?: string | undefined;
726
+ data: string;
727
727
  } : never : never)[];
728
728
  total: number;
729
729
  limit: number;
@@ -760,9 +760,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
760
760
  id: string;
761
761
  slug: string;
762
762
  contentTypeId: string;
763
- data: string;
764
763
  authorId?: string | undefined;
765
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
764
+ data: string;
765
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
766
766
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
767
767
  }, false> & _btst_stack_plugins_api.OperationCallSignature<(<const TInput extends _btst_stack_plugins_api.DeepReadonly<z.input<z.ZodObject<{
768
768
  typeSlug: z.ZodString;
@@ -789,9 +789,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
789
789
  id: string;
790
790
  slug: string;
791
791
  contentTypeId: string;
792
- data: string;
793
792
  authorId?: string | undefined;
794
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
793
+ data: string;
794
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
795
795
  parsedData: TInput extends infer T ? T extends TInput ? T extends {
796
796
  fields?: infer TFields extends CMSContentFields;
797
797
  } ? CMSSelectedData<Record<string, unknown>, TFields> : Record<string, _btst_stack_plugins_api.OperationData> : never : never;
@@ -815,8 +815,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
815
815
  id: string;
816
816
  slug: string;
817
817
  contentTypeId: string;
818
- data: string;
819
818
  authorId?: string | undefined;
819
+ data: string;
820
820
  } : "view" extends keyof TInput ? {
821
821
  contentType?: {
822
822
  createdAt: string;
@@ -835,8 +835,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
835
835
  id: string;
836
836
  slug: string;
837
837
  contentTypeId: string;
838
- data: string;
839
838
  authorId?: string | undefined;
839
+ data: string;
840
840
  } | (Omit<Pick<{
841
841
  contentType?: {
842
842
  createdAt: string;
@@ -855,9 +855,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
855
855
  id: string;
856
856
  slug: string;
857
857
  contentTypeId: string;
858
- data: string;
859
858
  authorId?: string | undefined;
860
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
859
+ data: string;
860
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
861
861
  parsedData: TInput extends {
862
862
  fields?: infer TFields extends CMSContentFields;
863
863
  } ? CMSSelectedData<Record<string, unknown>, TFields> : Record<string, _btst_stack_plugins_api.OperationData>;
@@ -879,8 +879,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
879
879
  id: string;
880
880
  slug: string;
881
881
  contentTypeId: string;
882
- data: string;
883
882
  authorId?: string | undefined;
883
+ data: string;
884
884
  }>>)>;
885
885
  readonly createContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
886
886
  typeSlug: z.ZodString;
@@ -908,8 +908,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
908
908
  id: string;
909
909
  slug: string;
910
910
  contentTypeId: string;
911
- data: string;
912
911
  authorId?: string | undefined;
912
+ data: string;
913
913
  }, false>;
914
914
  readonly updateContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
915
915
  typeSlug: z.ZodString;
@@ -940,8 +940,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
940
940
  id: string;
941
941
  slug: string;
942
942
  contentTypeId: string;
943
- data: string;
944
943
  authorId?: string | undefined;
944
+ data: string;
945
945
  }, false>;
946
946
  readonly deleteContentItem: _btst_stack_plugins_api.Operation<z.ZodObject<{
947
947
  typeSlug: z.ZodString;
@@ -984,8 +984,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
984
984
  id: string;
985
985
  slug: string;
986
986
  contentTypeId: string;
987
- data: string;
988
987
  authorId?: string | undefined;
988
+ data: string;
989
989
  }[];
990
990
  };
991
991
  contentType?: {
@@ -1005,8 +1005,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1005
1005
  id: string;
1006
1006
  slug: string;
1007
1007
  contentTypeId: string;
1008
- data: string;
1009
1008
  authorId?: string | undefined;
1009
+ data: string;
1010
1010
  }, false>;
1011
1011
  readonly listContentByRelation: _btst_stack_plugins_api.Operation<z.ZodObject<{
1012
1012
  typeSlug: z.ZodString;
@@ -1045,9 +1045,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1045
1045
  id: string;
1046
1046
  slug: string;
1047
1047
  contentTypeId: string;
1048
- data: string;
1049
1048
  authorId?: string | undefined;
1050
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1049
+ data: string;
1050
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
1051
1051
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
1052
1052
  })[];
1053
1053
  total: number;
@@ -1084,9 +1084,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1084
1084
  id: string;
1085
1085
  slug: string;
1086
1086
  contentTypeId: string;
1087
- data: string;
1088
1087
  authorId?: string | undefined;
1089
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1088
+ data: string;
1089
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
1090
1090
  parsedData: T extends infer T_1 ? T_1 extends T ? T_1 extends {
1091
1091
  fields?: infer TFields extends CMSContentFields;
1092
1092
  } ? CMSSelectedData<Record<string, unknown>, TFields> : Record<string, _btst_stack_plugins_api.OperationData> : never : never;
@@ -1110,8 +1110,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1110
1110
  id: string;
1111
1111
  slug: string;
1112
1112
  contentTypeId: string;
1113
- data: string;
1114
1113
  authorId?: string | undefined;
1114
+ data: string;
1115
1115
  } : "view" extends keyof T ? {
1116
1116
  contentType?: {
1117
1117
  createdAt: string;
@@ -1130,8 +1130,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1130
1130
  id: string;
1131
1131
  slug: string;
1132
1132
  contentTypeId: string;
1133
- data: string;
1134
1133
  authorId?: string | undefined;
1134
+ data: string;
1135
1135
  } | (Omit<Pick<{
1136
1136
  contentType?: {
1137
1137
  createdAt: string;
@@ -1150,9 +1150,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1150
1150
  id: string;
1151
1151
  slug: string;
1152
1152
  contentTypeId: string;
1153
- data: string;
1154
1153
  authorId?: string | undefined;
1155
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1154
+ data: string;
1155
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
1156
1156
  parsedData: T extends {
1157
1157
  fields?: infer TFields extends CMSContentFields;
1158
1158
  } ? CMSSelectedData<Record<string, unknown>, TFields> : Record<string, _btst_stack_plugins_api.OperationData>;
@@ -1174,8 +1174,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1174
1174
  id: string;
1175
1175
  slug: string;
1176
1176
  contentTypeId: string;
1177
- data: string;
1178
1177
  authorId?: string | undefined;
1178
+ data: string;
1179
1179
  } : never : never>[];
1180
1180
  readonly total: number;
1181
1181
  readonly limit: number;
@@ -1234,9 +1234,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1234
1234
  id: string;
1235
1235
  slug: string;
1236
1236
  contentTypeId: string;
1237
- data: string;
1238
1237
  authorId?: string | undefined;
1239
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1238
+ data: string;
1239
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
1240
1240
  parsedData: Partial<Record<string, _btst_stack_plugins_api.OperationData>>;
1241
1241
  })[];
1242
1242
  total: number;
@@ -1274,9 +1274,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1274
1274
  id: string;
1275
1275
  slug: string;
1276
1276
  contentTypeId: string;
1277
- data: string;
1278
1277
  authorId?: string | undefined;
1279
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1278
+ data: string;
1279
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
1280
1280
  parsedData: T extends infer T_1 ? T_1 extends T ? T_1 extends {
1281
1281
  fields?: infer TFields extends CMSContentFields;
1282
1282
  } ? CMSSelectedData<Record<string, unknown>, TFields> : Record<string, _btst_stack_plugins_api.OperationData> : never : never;
@@ -1300,8 +1300,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1300
1300
  id: string;
1301
1301
  slug: string;
1302
1302
  contentTypeId: string;
1303
- data: string;
1304
1303
  authorId?: string | undefined;
1304
+ data: string;
1305
1305
  } : "view" extends keyof T ? {
1306
1306
  contentType?: {
1307
1307
  createdAt: string;
@@ -1320,8 +1320,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1320
1320
  id: string;
1321
1321
  slug: string;
1322
1322
  contentTypeId: string;
1323
- data: string;
1324
1323
  authorId?: string | undefined;
1324
+ data: string;
1325
1325
  } | (Omit<Pick<{
1326
1326
  contentType?: {
1327
1327
  createdAt: string;
@@ -1340,9 +1340,9 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1340
1340
  id: string;
1341
1341
  slug: string;
1342
1342
  contentTypeId: string;
1343
- data: string;
1344
1343
  authorId?: string | undefined;
1345
- }, "id" | "slug" | "createdAt" | "updatedAt" | "parsedData">, "parsedData"> & {
1344
+ data: string;
1345
+ }, "createdAt" | "updatedAt" | "id" | "slug" | "parsedData">, "parsedData"> & {
1346
1346
  parsedData: T extends {
1347
1347
  fields?: infer TFields extends CMSContentFields;
1348
1348
  } ? CMSSelectedData<Record<string, unknown>, TFields> : Record<string, _btst_stack_plugins_api.OperationData>;
@@ -1364,8 +1364,8 @@ declare const cmsBackendPlugin: (config: CMSBackendConfig) => _btst_stack_plugin
1364
1364
  id: string;
1365
1365
  slug: string;
1366
1366
  contentTypeId: string;
1367
- data: string;
1368
1367
  authorId?: string | undefined;
1368
+ data: string;
1369
1369
  } : never : never>[];
1370
1370
  readonly total: number;
1371
1371
  readonly limit: number;