@headroom-cms/admin-api 0.1.5 → 0.1.6

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.
package/dist/index.cjs CHANGED
@@ -236,6 +236,7 @@ var HeadroomAdminClient = class {
236
236
  if (params?.status) qs.set("status", params.status);
237
237
  if (params?.sort) qs.set("sort", params.sort);
238
238
  if (params?.relatedTo) qs.set("relatedTo", params.relatedTo);
239
+ if (params?.relField) qs.set("relField", params.relField);
239
240
  if (params?.limit) qs.set("limit", String(params.limit));
240
241
  if (params?.cursor) qs.set("cursor", params.cursor);
241
242
  const q = qs.toString();
package/dist/index.d.cts CHANGED
@@ -325,6 +325,8 @@ interface components {
325
325
 
326
326
  type Site = components["schemas"]["Site"] & {
327
327
  auth?: SiteAuthConfig;
328
+ fromEmail?: string;
329
+ fromName?: string;
328
330
  };
329
331
  type SiteAdmin = components["schemas"]["SiteAdmin"];
330
332
  type Collection = components["schemas"]["Collection"] & {
@@ -396,7 +398,6 @@ interface SiteAuthConfig {
396
398
  sessionTtl: number;
397
399
  allowSignup: boolean;
398
400
  otpRateLimit?: number;
399
- fromName?: string;
400
401
  emailSubject?: string;
401
402
  emailBody?: string;
402
403
  emailTextBody?: string;
@@ -514,6 +515,7 @@ interface ContentListParams {
514
515
  status?: "draft" | "published" | "changed" | "unpublished" | "scheduled";
515
516
  sort?: string;
516
517
  relatedTo?: string;
518
+ relField?: string;
517
519
  limit?: number;
518
520
  cursor?: string;
519
521
  }
@@ -576,6 +578,8 @@ declare class HeadroomAdminClient {
576
578
  updateSite(host: string, data: {
577
579
  name?: string;
578
580
  status?: string;
581
+ fromEmail?: string;
582
+ fromName?: string;
579
583
  }): Promise<Site>;
580
584
  deleteSite(host: string): Promise<void>;
581
585
  updateSiteAdmins(host: string, admins: SiteAdmin[]): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -325,6 +325,8 @@ interface components {
325
325
 
326
326
  type Site = components["schemas"]["Site"] & {
327
327
  auth?: SiteAuthConfig;
328
+ fromEmail?: string;
329
+ fromName?: string;
328
330
  };
329
331
  type SiteAdmin = components["schemas"]["SiteAdmin"];
330
332
  type Collection = components["schemas"]["Collection"] & {
@@ -396,7 +398,6 @@ interface SiteAuthConfig {
396
398
  sessionTtl: number;
397
399
  allowSignup: boolean;
398
400
  otpRateLimit?: number;
399
- fromName?: string;
400
401
  emailSubject?: string;
401
402
  emailBody?: string;
402
403
  emailTextBody?: string;
@@ -514,6 +515,7 @@ interface ContentListParams {
514
515
  status?: "draft" | "published" | "changed" | "unpublished" | "scheduled";
515
516
  sort?: string;
516
517
  relatedTo?: string;
518
+ relField?: string;
517
519
  limit?: number;
518
520
  cursor?: string;
519
521
  }
@@ -576,6 +578,8 @@ declare class HeadroomAdminClient {
576
578
  updateSite(host: string, data: {
577
579
  name?: string;
578
580
  status?: string;
581
+ fromEmail?: string;
582
+ fromName?: string;
579
583
  }): Promise<Site>;
580
584
  deleteSite(host: string): Promise<void>;
581
585
  updateSiteAdmins(host: string, admins: SiteAdmin[]): Promise<void>;
package/dist/index.js CHANGED
@@ -198,6 +198,7 @@ var HeadroomAdminClient = class {
198
198
  if (params?.status) qs.set("status", params.status);
199
199
  if (params?.sort) qs.set("sort", params.sort);
200
200
  if (params?.relatedTo) qs.set("relatedTo", params.relatedTo);
201
+ if (params?.relField) qs.set("relField", params.relField);
201
202
  if (params?.limit) qs.set("limit", String(params.limit));
202
203
  if (params?.cursor) qs.set("cursor", params.cursor);
203
204
  const q = qs.toString();
package/dist/node.d.cts CHANGED
@@ -316,6 +316,8 @@ interface components {
316
316
 
317
317
  type Site = components["schemas"]["Site"] & {
318
318
  auth?: SiteAuthConfig;
319
+ fromEmail?: string;
320
+ fromName?: string;
319
321
  };
320
322
  type SiteAdmin = components["schemas"]["SiteAdmin"];
321
323
  type Collection = components["schemas"]["Collection"] & {
@@ -381,7 +383,6 @@ interface SiteAuthConfig {
381
383
  sessionTtl: number;
382
384
  allowSignup: boolean;
383
385
  otpRateLimit?: number;
384
- fromName?: string;
385
386
  emailSubject?: string;
386
387
  emailBody?: string;
387
388
  emailTextBody?: string;
@@ -499,6 +500,7 @@ interface ContentListParams {
499
500
  status?: "draft" | "published" | "changed" | "unpublished" | "scheduled";
500
501
  sort?: string;
501
502
  relatedTo?: string;
503
+ relField?: string;
502
504
  limit?: number;
503
505
  cursor?: string;
504
506
  }
@@ -561,6 +563,8 @@ declare class HeadroomAdminClient {
561
563
  updateSite(host: string, data: {
562
564
  name?: string;
563
565
  status?: string;
566
+ fromEmail?: string;
567
+ fromName?: string;
564
568
  }): Promise<Site>;
565
569
  deleteSite(host: string): Promise<void>;
566
570
  updateSiteAdmins(host: string, admins: SiteAdmin[]): Promise<void>;
package/dist/node.d.ts CHANGED
@@ -316,6 +316,8 @@ interface components {
316
316
 
317
317
  type Site = components["schemas"]["Site"] & {
318
318
  auth?: SiteAuthConfig;
319
+ fromEmail?: string;
320
+ fromName?: string;
319
321
  };
320
322
  type SiteAdmin = components["schemas"]["SiteAdmin"];
321
323
  type Collection = components["schemas"]["Collection"] & {
@@ -381,7 +383,6 @@ interface SiteAuthConfig {
381
383
  sessionTtl: number;
382
384
  allowSignup: boolean;
383
385
  otpRateLimit?: number;
384
- fromName?: string;
385
386
  emailSubject?: string;
386
387
  emailBody?: string;
387
388
  emailTextBody?: string;
@@ -499,6 +500,7 @@ interface ContentListParams {
499
500
  status?: "draft" | "published" | "changed" | "unpublished" | "scheduled";
500
501
  sort?: string;
501
502
  relatedTo?: string;
503
+ relField?: string;
502
504
  limit?: number;
503
505
  cursor?: string;
504
506
  }
@@ -561,6 +563,8 @@ declare class HeadroomAdminClient {
561
563
  updateSite(host: string, data: {
562
564
  name?: string;
563
565
  status?: string;
566
+ fromEmail?: string;
567
+ fromName?: string;
564
568
  }): Promise<Site>;
565
569
  deleteSite(host: string): Promise<void>;
566
570
  updateSiteAdmins(host: string, admins: SiteAdmin[]): Promise<void>;
package/dist/seed.d.cts CHANGED
@@ -305,6 +305,8 @@ interface components {
305
305
 
306
306
  type Site = components["schemas"]["Site"] & {
307
307
  auth?: SiteAuthConfig;
308
+ fromEmail?: string;
309
+ fromName?: string;
308
310
  };
309
311
  type Collection = components["schemas"]["Collection"] & {
310
312
  relationships?: RelationshipDef[];
@@ -337,7 +339,6 @@ interface SiteAuthConfig {
337
339
  sessionTtl: number;
338
340
  allowSignup: boolean;
339
341
  otpRateLimit?: number;
340
- fromName?: string;
341
342
  emailSubject?: string;
342
343
  emailBody?: string;
343
344
  emailTextBody?: string;
package/dist/seed.d.ts CHANGED
@@ -305,6 +305,8 @@ interface components {
305
305
 
306
306
  type Site = components["schemas"]["Site"] & {
307
307
  auth?: SiteAuthConfig;
308
+ fromEmail?: string;
309
+ fromName?: string;
308
310
  };
309
311
  type Collection = components["schemas"]["Collection"] & {
310
312
  relationships?: RelationshipDef[];
@@ -337,7 +339,6 @@ interface SiteAuthConfig {
337
339
  sessionTtl: number;
338
340
  allowSignup: boolean;
339
341
  otpRateLimit?: number;
340
- fromName?: string;
341
342
  emailSubject?: string;
342
343
  emailBody?: string;
343
344
  emailTextBody?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headroom-cms/admin-api",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {