@antlur/backstage 1.12.8 → 1.12.10

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 (88) hide show
  1. package/dist/client.d.ts +8 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +12 -0
  4. package/dist/endpoints/auth.d.ts +42 -0
  5. package/dist/endpoints/auth.d.ts.map +1 -0
  6. package/dist/endpoints/auth.js +28 -0
  7. package/dist/endpoints/blocks.d.ts +13 -9
  8. package/dist/endpoints/blocks.d.ts.map +1 -1
  9. package/dist/endpoints/blocks.js +19 -10
  10. package/dist/endpoints/entries.d.ts +31 -0
  11. package/dist/endpoints/entries.d.ts.map +1 -0
  12. package/dist/endpoints/entries.js +31 -0
  13. package/dist/endpoints/forms.d.ts +8 -0
  14. package/dist/endpoints/forms.d.ts.map +1 -0
  15. package/dist/endpoints/forms.js +7 -0
  16. package/dist/endpoints/layouts.d.ts +12 -5
  17. package/dist/endpoints/layouts.d.ts.map +1 -1
  18. package/dist/endpoints/layouts.js +23 -8
  19. package/dist/endpoints/menus.d.ts +15 -0
  20. package/dist/endpoints/menus.d.ts.map +1 -1
  21. package/dist/endpoints/menus.js +11 -0
  22. package/dist/endpoints/pages.d.ts +23 -0
  23. package/dist/endpoints/pages.d.ts.map +1 -1
  24. package/dist/endpoints/pages.js +11 -0
  25. package/dist/endpoints/redirects.d.ts +6 -0
  26. package/dist/endpoints/redirects.d.ts.map +1 -0
  27. package/dist/endpoints/redirects.js +7 -0
  28. package/dist/endpoints/website.d.ts +15 -2
  29. package/dist/endpoints/website.d.ts.map +1 -1
  30. package/dist/endpoints/website.js +20 -4
  31. package/dist/index.d.ts +7 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +7 -0
  34. package/dist/types/account-block.d.ts +10 -0
  35. package/dist/types/account-block.d.ts.map +1 -0
  36. package/dist/types/account-block.js +1 -0
  37. package/dist/types/account-layout.d.ts +15 -0
  38. package/dist/types/account-layout.d.ts.map +1 -0
  39. package/dist/types/account-layout.js +1 -0
  40. package/dist/types/blueprint.d.ts +11 -0
  41. package/dist/types/blueprint.d.ts.map +1 -0
  42. package/dist/types/blueprint.js +1 -0
  43. package/dist/types/entry.d.ts +36 -0
  44. package/dist/types/entry.d.ts.map +1 -0
  45. package/dist/types/entry.js +1 -0
  46. package/dist/types/event.d.ts +3 -0
  47. package/dist/types/event.d.ts.map +1 -1
  48. package/dist/types/index.d.ts +5 -0
  49. package/dist/types/index.d.ts.map +1 -1
  50. package/dist/types/location.d.ts +4 -0
  51. package/dist/types/location.d.ts.map +1 -1
  52. package/dist/types/media-item.d.ts +6 -2
  53. package/dist/types/media-item.d.ts.map +1 -1
  54. package/dist/types/menu.d.ts +4 -1
  55. package/dist/types/menu.d.ts.map +1 -1
  56. package/dist/types/page.d.ts +3 -7
  57. package/dist/types/page.d.ts.map +1 -1
  58. package/dist/types/redirect.d.ts +10 -0
  59. package/dist/types/redirect.d.ts.map +1 -0
  60. package/dist/types/redirect.js +1 -0
  61. package/dist/types/website.d.ts +5 -1
  62. package/dist/types/website.d.ts.map +1 -1
  63. package/dist/util/event.js +1 -1
  64. package/package.json +1 -1
  65. package/src/client.ts +12 -0
  66. package/src/endpoints/auth.ts +68 -0
  67. package/src/endpoints/blocks.ts +31 -14
  68. package/src/endpoints/entries.ts +62 -0
  69. package/src/endpoints/forms.ts +12 -0
  70. package/src/endpoints/layouts.ts +31 -13
  71. package/src/endpoints/menus.ts +29 -1
  72. package/src/endpoints/pages.ts +37 -1
  73. package/src/endpoints/redirects.ts +9 -0
  74. package/src/endpoints/website.ts +35 -5
  75. package/src/index.ts +7 -0
  76. package/src/types/account-block.ts +9 -0
  77. package/src/types/account-layout.ts +14 -0
  78. package/src/types/blueprint.ts +10 -0
  79. package/src/types/entry.ts +38 -0
  80. package/src/types/event.ts +6 -3
  81. package/src/types/index.ts +5 -0
  82. package/src/types/location.ts +5 -0
  83. package/src/types/media-item.ts +6 -2
  84. package/src/types/menu.ts +6 -1
  85. package/src/types/page.ts +4 -7
  86. package/src/types/redirect.ts +9 -0
  87. package/src/types/website.ts +2 -1
  88. package/src/util/event.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -4,13 +4,20 @@ export { defineConfig, getGlobalConfig } from "./config.js";
4
4
  export { BackstageClient } from "./client.js";
5
5
  // Re-export endpoints
6
6
  export * from "./endpoints/alerts.js";
7
+ export * from "./endpoints/auth.js";
8
+ export * from "./endpoints/blocks.js";
9
+ export * from "./endpoints/entries.js";
7
10
  export * from "./endpoints/events.js";
11
+ export * from "./endpoints/forms.js";
12
+ export * from "./endpoints/instagram.js";
13
+ export * from "./endpoints/layouts.js";
8
14
  export * from "./endpoints/locations.js";
9
15
  export * from "./endpoints/media.js";
10
16
  export * from "./endpoints/menus.js";
11
17
  export * from "./endpoints/navigation.js";
12
18
  export * from "./endpoints/pages.js";
13
19
  export * from "./endpoints/press.js";
20
+ export * from "./endpoints/redirects.js";
14
21
  export * from "./endpoints/routes.js";
15
22
  export * from "./endpoints/website.js";
16
23
  // Re-export domain types
@@ -0,0 +1,10 @@
1
+ export interface AccountBlock {
2
+ id: string;
3
+ account_id: string;
4
+ slug: string;
5
+ name: string;
6
+ schema: any;
7
+ created_at: string;
8
+ updated_at: string;
9
+ }
10
+ //# sourceMappingURL=account-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-block.d.ts","sourceRoot":"","sources":["../../src/types/account-block.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ export interface AccountLayout {
2
+ id: string;
3
+ name: string;
4
+ slug: string;
5
+ schema: {
6
+ fields: Array<{
7
+ slug: string;
8
+ name: string;
9
+ type: string;
10
+ [key: string]: any;
11
+ }>;
12
+ };
13
+ data: Record<string, any>;
14
+ }
15
+ //# sourceMappingURL=account-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-layout.d.ts","sourceRoot":"","sources":["../../src/types/account-layout.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,MAAM,EAAE,KAAK,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACpB,CAAC,CAAC;KACJ,CAAC;IACF,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC3B"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface Blueprint {
2
+ id: string;
3
+ account_id: string;
4
+ name: string;
5
+ slug: string;
6
+ description: string | null;
7
+ schema: any;
8
+ created_at: string;
9
+ updated_at: string;
10
+ }
11
+ //# sourceMappingURL=blueprint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../src/types/blueprint.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,GAAG,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,36 @@
1
+ import { Location } from "./location";
2
+ export interface EntryField {
3
+ id: string;
4
+ name: string;
5
+ slug: string;
6
+ type: string;
7
+ options: any;
8
+ order: number;
9
+ }
10
+ export interface EntryValue {
11
+ id: string;
12
+ entry_id: string;
13
+ field_id: string;
14
+ value: any;
15
+ }
16
+ export interface Entry {
17
+ id: string;
18
+ account_id: string;
19
+ blueprint_id: string;
20
+ status: string;
21
+ slug: string;
22
+ location: Location | null;
23
+ fields: EntryField[];
24
+ data: Record<string, any>;
25
+ unstable_data: Record<string, any>;
26
+ seo: {
27
+ title?: string;
28
+ description?: string;
29
+ } | null;
30
+ primary_field_name: string | null;
31
+ primary_field_accessor: string | null;
32
+ primary_field_value: any;
33
+ created_at: string;
34
+ updated_at: string;
35
+ }
36
+ //# sourceMappingURL=entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../src/types/entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,GAAG,EAAE;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,GAAG,IAAI,CAAC;IACT,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,mBAAmB,EAAE,GAAG,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -2,13 +2,16 @@ import { MediaItem } from "./media-item";
2
2
  export interface Event {
3
3
  id: number;
4
4
  title: string;
5
+ slug: string;
5
6
  short_description: string;
6
7
  description: string;
8
+ is_featured: boolean;
7
9
  start_time: string;
8
10
  end_time: string;
9
11
  timezone: string;
10
12
  cover_media_id: number;
11
13
  cover_media: MediaItem;
12
14
  account_id: number;
15
+ ticket_uri: string | null;
13
16
  }
14
17
  //# sourceMappingURL=event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/types/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,SAAS,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/types/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,SAAS,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B"}
@@ -1,5 +1,9 @@
1
+ export type * from "./account-block";
2
+ export type * from "./account-layout";
1
3
  export type * from "./alert";
2
4
  export type * from "./api";
5
+ export type * from "./blueprint";
6
+ export type * from "./entry";
3
7
  export type * from "./event";
4
8
  export type * from "./instagram";
5
9
  export type * from "./location";
@@ -11,6 +15,7 @@ export type * from "./menu";
11
15
  export type * from "./navigation";
12
16
  export type * from "./page";
13
17
  export type * from "./press";
18
+ export type * from "./redirect";
14
19
  export type * from "./route";
15
20
  export type * from "./website";
16
21
  export type * from "../studio/types/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,QAAQ,CAAC;AAC5B,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,WAAW,CAAC;AAE/B,mBAAmB,0BAA0B,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { Menu } from "./menu";
1
2
  export interface Location {
2
3
  id: string;
3
4
  account_id: string;
@@ -13,6 +14,8 @@ export interface Location {
13
14
  zip: string;
14
15
  map_link: string | null;
15
16
  map_embed: string | null;
17
+ map_embed_query: string | null;
18
+ map_embed_zoom: number | null;
16
19
  latitude: number | null;
17
20
  longitude: number | null;
18
21
  phone: string;
@@ -64,6 +67,7 @@ export interface Location {
64
67
  height: number;
65
68
  alt: string;
66
69
  };
70
+ menus: Menu[];
67
71
  status: string;
68
72
  status_text: string;
69
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/types/location.ts"],"names":[],"mappings":"AAAA,M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CAAC;IACJ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -1,11 +1,15 @@
1
1
  export interface MediaItem {
2
2
  id: string;
3
+ uuid: string;
4
+ name: string;
3
5
  file_name: string;
6
+ alt: string;
4
7
  url: string;
5
- transform_url: string;
8
+ extension: string;
9
+ size: number;
10
+ thumb: string;
6
11
  path: string;
7
12
  width: number;
8
13
  height: number;
9
- alt: string;
10
14
  }
11
15
  //# sourceMappingURL=media-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media-item.d.ts","sourceRoot":"","sources":["../../src/types/media-item.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"media-item.d.ts","sourceRoot":"","sources":["../../src/types/media-item.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,3 +1,4 @@
1
+ import { MenuCategory } from "./menu-category";
1
2
  export interface Menu {
2
3
  id: string;
3
4
  slug: string;
@@ -6,8 +7,10 @@ export interface Menu {
6
7
  subtitle: string | null;
7
8
  account_id: string;
8
9
  pdf_url: string | null;
9
- categories: string[];
10
+ categories: MenuCategory[];
11
+ published_at: string | null;
10
12
  created_at: string;
11
13
  updated_at: string;
14
+ order?: number;
12
15
  }
13
16
  //# sourceMappingURL=menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/types/menu.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/types/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,3 +1,4 @@
1
+ import { AccountLayout } from "./account-layout";
1
2
  export interface Block {
2
3
  id: string;
3
4
  slug: string;
@@ -14,16 +15,11 @@ export interface Page {
14
15
  id: string;
15
16
  title: string;
16
17
  slug: string;
18
+ pathname: string;
17
19
  blocks: Block[];
18
20
  settings: Settings;
19
21
  meta: Meta;
20
22
  is_home: boolean;
21
- pathname: string;
22
- layout: {
23
- id: string;
24
- name: string;
25
- slug: string;
26
- schema: any;
27
- };
23
+ layout: AccountLayout | null;
28
24
  }
29
25
  //# sourceMappingURL=page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/types/page.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,CAAC;CACX;AAED,MAAM,WAAW,QAAQ;IACvB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,GAAG,CAAC;KACb,CAAC;CACH"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/types/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,CAAC;CACX;AAED,MAAM,WAAW,QAAQ;IACvB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CAC9B"}
@@ -0,0 +1,10 @@
1
+ export interface Redirect {
2
+ id: string;
3
+ account_id: string;
4
+ source_url: string;
5
+ target_url: string;
6
+ status_code: number;
7
+ created_at: string;
8
+ updated_at: string;
9
+ }
10
+ //# sourceMappingURL=redirect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirect.d.ts","sourceRoot":"","sources":["../../src/types/redirect.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -8,6 +8,10 @@ export interface FontFamily {
8
8
  value: string;
9
9
  }
10
10
  export interface ThemeColors {
11
+ palette?: Array<{
12
+ name: string;
13
+ value: string;
14
+ }>;
11
15
  primary?: string;
12
16
  primaryForeground: string;
13
17
  secondary?: string;
@@ -74,6 +78,7 @@ export interface Website {
74
78
  app_name: string;
75
79
  domain: string;
76
80
  favicon_url: string | null;
81
+ apple_icon_url: string | null;
77
82
  logo: Logo | null;
78
83
  account: Account;
79
84
  meta: WebsiteMeta;
@@ -90,6 +95,5 @@ export interface Website {
90
95
  social_links: SocialLink[];
91
96
  home_cta_text: string | null;
92
97
  home_cta_url: string | null;
93
- has_accessibility_widget: boolean;
94
98
  }
95
99
  //# sourceMappingURL=website.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"website.d.ts","sourceRoot":"","sources":["../../src/types/website.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,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C;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACnC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;IACrC,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
@@ -57,7 +57,7 @@ export function makeEventSchema(website, event, locations) {
57
57
  ],
58
58
  image: {
59
59
  "@type": "ImageObject",
60
- url: event.cover_media?.transform_url,
60
+ url: event.cover_media?.url,
61
61
  },
62
62
  };
63
63
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antlur/backstage",
3
3
  "author": "Anthony Holmes",
4
- "version": "1.12.8",
4
+ "version": "1.12.10",
5
5
  "description": "A simple client for Backstage CMS",
6
6
  "license": "MIT",
7
7
  "repository": {
package/src/client.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import { getGlobalConfig, BackstageUserConfig } from "./config.js";
2
2
  import { AlertService } from "./endpoints/alerts.js";
3
+ import { AuthService } from "./endpoints/auth.js";
3
4
  import { BlocksService } from "./endpoints/blocks.js";
5
+ import { EntryService } from "./endpoints/entries.js";
4
6
  import { EventService } from "./endpoints/events.js";
7
+ import { FormService } from "./endpoints/forms.js";
5
8
  import { InstagramService } from "./endpoints/instagram.js";
6
9
  import { LayoutService } from "./endpoints/layouts.js";
7
10
  import { LocationService } from "./endpoints/locations.js";
@@ -9,6 +12,7 @@ import { MenuService } from "./endpoints/menus.js";
9
12
  import { NavigationService } from "./endpoints/navigation.js";
10
13
  import { PageService } from "./endpoints/pages.js";
11
14
  import { PressService } from "./endpoints/press.js";
15
+ import { RedirectService } from "./endpoints/redirects.js";
12
16
  import { RouteService } from "./endpoints/routes.js";
13
17
  import { WebsiteService } from "./endpoints/website.js";
14
18
  import { MediaService } from "./endpoints/media.js";
@@ -21,8 +25,11 @@ export class BackstageClient {
21
25
 
22
26
  // Service Instances
23
27
  public readonly alerts: AlertService;
28
+ public readonly auth: AuthService;
24
29
  public readonly blocks: BlocksService;
30
+ public readonly entries: EntryService;
25
31
  public readonly events: EventService;
32
+ public readonly forms: FormService;
26
33
  public readonly instagram: InstagramService;
27
34
  public readonly layouts: LayoutService;
28
35
  public readonly locations: LocationService;
@@ -31,6 +38,7 @@ export class BackstageClient {
31
38
  public readonly navigation: NavigationService;
32
39
  public readonly pages: PageService;
33
40
  public readonly press: PressService;
41
+ public readonly redirects: RedirectService;
34
42
  public readonly routes: RouteService;
35
43
  public readonly website: WebsiteService;
36
44
 
@@ -59,8 +67,11 @@ export class BackstageClient {
59
67
 
60
68
  // Initialize service instances
61
69
  this.alerts = new AlertService(this);
70
+ this.auth = new AuthService(this);
62
71
  this.blocks = new BlocksService(this);
72
+ this.entries = new EntryService(this);
63
73
  this.events = new EventService(this);
74
+ this.forms = new FormService(this);
64
75
  this.instagram = new InstagramService(this);
65
76
  this.layouts = new LayoutService(this);
66
77
  this.locations = new LocationService(this);
@@ -69,6 +80,7 @@ export class BackstageClient {
69
80
  this.navigation = new NavigationService(this);
70
81
  this.pages = new PageService(this);
71
82
  this.press = new PressService(this);
83
+ this.redirects = new RedirectService(this);
72
84
  this.routes = new RouteService(this);
73
85
  this.website = new WebsiteService(this);
74
86
  }
@@ -0,0 +1,68 @@
1
+ import { BaseService } from "./base.js";
2
+
3
+ export interface LoginCredentials {
4
+ email: string;
5
+ password: string;
6
+ }
7
+
8
+ export interface User {
9
+ id: string;
10
+ name: string;
11
+ email: string;
12
+ [key: string]: any;
13
+ }
14
+
15
+ export interface TokenAbility {
16
+ action: string;
17
+ subject: string;
18
+ }
19
+
20
+ export interface CreateTokenParams {
21
+ name: string;
22
+ abilities?: string[] | TokenAbility[];
23
+ expires_at?: string;
24
+ }
25
+
26
+ export interface Token {
27
+ id: string;
28
+ name: string;
29
+ token?: string; // Only present on creation
30
+ abilities: string[];
31
+ last_used_at: string | null;
32
+ expires_at: string | null;
33
+ created_at: string;
34
+ updated_at: string;
35
+ }
36
+
37
+ export class AuthService extends BaseService {
38
+ async login(credentials: LoginCredentials, options?: RequestInit): Promise<{ token: string; user: User }> {
39
+ const response = await this.client.post<{ token: string; user: User }>("/login", credentials, options);
40
+ return response;
41
+ }
42
+
43
+ async logout(options?: RequestInit): Promise<void> {
44
+ await this.client.post("/logout", {}, options);
45
+ }
46
+
47
+ async getUser(options?: RequestInit): Promise<User> {
48
+ const response = await this.client.get<User>("/user", options);
49
+ return response;
50
+ }
51
+
52
+ async createToken(params: CreateTokenParams, options?: RequestInit): Promise<Token> {
53
+ const response = await this.client.post<Token>("/tokens", params, options);
54
+ return response;
55
+ }
56
+
57
+ async getTokens(options?: RequestInit): Promise<Token[]> {
58
+ const response = await this.client.get<Token[]>("/tokens", options);
59
+ return response;
60
+ }
61
+
62
+ async revokeToken(tokenId: string, options?: RequestInit): Promise<void> {
63
+ await this.client.delete(`/tokens`, {
64
+ ...options,
65
+ body: JSON.stringify({ token_id: tokenId }),
66
+ });
67
+ }
68
+ }
@@ -1,29 +1,46 @@
1
- import type { ApiSingleResponse } from "../types/index";
1
+ import type { ApiCollectionResponse, ApiSingleResponse, AccountBlock } from "../types/index";
2
2
  import { BaseService } from "./base.js";
3
3
 
4
- interface BlockParams {
4
+ export interface CreateBlockParams {
5
5
  name: string;
6
6
  slug: string;
7
7
  schema: any;
8
8
  description?: string;
9
9
  }
10
10
 
11
+ export interface UpdateBlockParams {
12
+ name?: string;
13
+ slug?: string;
14
+ schema?: any;
15
+ description?: string;
16
+ }
17
+
11
18
  export class BlocksService extends BaseService {
12
- /**
13
- * Get all blocks
14
- * @todo Implement this method when the API endpoint is available
15
- */
16
- async all(options?: RequestInit) {
17
- throw new Error("Method not implemented. Please use the Backstage API documentation for available endpoints.");
19
+ async list(options?: RequestInit): Promise<AccountBlock[]> {
20
+ const { data } = await this.client.get<ApiCollectionResponse<AccountBlock>>("/blocks", options);
21
+ return data;
22
+ }
23
+
24
+ async get(id: string, options?: RequestInit): Promise<AccountBlock | null> {
25
+ try {
26
+ const { data } = await this.client.get<ApiSingleResponse<AccountBlock>>(`/blocks/${id}`, options);
27
+ return data;
28
+ } catch (error) {
29
+ return null;
30
+ }
31
+ }
32
+
33
+ async create(params: CreateBlockParams, options?: RequestInit): Promise<AccountBlock> {
34
+ const { data } = await this.client.post<ApiSingleResponse<AccountBlock>>("/blocks", params, options);
35
+ return data;
18
36
  }
19
37
 
20
- async create(params: BlockParams, options?: RequestInit) {
21
- const res = await this.client.post<ApiSingleResponse<BlockParams>>("/blocks", params, options);
22
- return res.data;
38
+ async update(id: string, params: UpdateBlockParams, options?: RequestInit): Promise<AccountBlock> {
39
+ const { data } = await this.client.put<ApiSingleResponse<AccountBlock>>(`/blocks/${id}`, params, options);
40
+ return data;
23
41
  }
24
42
 
25
- async update(id: string, params: BlockParams, options?: RequestInit) {
26
- const res = await this.client.put<ApiSingleResponse<BlockParams>>(`/blocks/${id}`, params, options);
27
- return res.data;
43
+ async delete(id: string, options?: RequestInit): Promise<void> {
44
+ await this.client.delete(`/blocks/${id}`, options);
28
45
  }
29
46
  }
@@ -0,0 +1,62 @@
1
+ import type { ApiCollectionResponse, ApiSingleResponse, Entry } from "../types/index";
2
+ import { BaseService } from "./base.js";
3
+
4
+ export interface CreateEntryParams {
5
+ blueprint_id: string;
6
+ location_id?: string;
7
+ slug?: string;
8
+ data: Record<string, any>;
9
+ seo?: {
10
+ title?: string;
11
+ description?: string;
12
+ };
13
+ status?: string;
14
+ }
15
+
16
+ export interface UpdateEntryParams {
17
+ slug?: string;
18
+ data?: Record<string, any>;
19
+ seo?: {
20
+ title?: string;
21
+ description?: string;
22
+ };
23
+ status?: string;
24
+ }
25
+
26
+ export class EntryService extends BaseService {
27
+ async getEntries(options?: RequestInit): Promise<Entry[]> {
28
+ const { data } = await this.client.get<ApiCollectionResponse<Entry>>("/entries", options);
29
+ return data;
30
+ }
31
+
32
+ async getEntry(id: string, options?: RequestInit): Promise<Entry | null> {
33
+ try {
34
+ const { data } = await this.client.get<ApiSingleResponse<Entry>>(`/entries/${id}`, options);
35
+ return data;
36
+ } catch (error) {
37
+ return null;
38
+ }
39
+ }
40
+
41
+ async getCollection(blueprintSlug: string, options?: RequestInit): Promise<Entry[]> {
42
+ const { data } = await this.client.get<ApiCollectionResponse<Entry>>(
43
+ `/collections/${blueprintSlug}`,
44
+ options
45
+ );
46
+ return data;
47
+ }
48
+
49
+ async createEntry(params: CreateEntryParams, options?: RequestInit): Promise<Entry> {
50
+ const { data } = await this.client.post<ApiSingleResponse<Entry>>("/entries", params, options);
51
+ return data;
52
+ }
53
+
54
+ async updateEntry(id: string, params: UpdateEntryParams, options?: RequestInit): Promise<Entry> {
55
+ const { data } = await this.client.put<ApiSingleResponse<Entry>>(`/entries/${id}`, params, options);
56
+ return data;
57
+ }
58
+
59
+ async deleteEntry(id: string, options?: RequestInit): Promise<void> {
60
+ await this.client.delete(`/entries/${id}`, options);
61
+ }
62
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseService } from "./base.js";
2
+
3
+ export interface FormSubmissionData {
4
+ [key: string]: any;
5
+ }
6
+
7
+ export class FormService extends BaseService {
8
+ async submitForm(formId: string, data: FormSubmissionData, options?: RequestInit): Promise<any> {
9
+ const response = await this.client.post(`/wa/forms/${formId}`, data, options);
10
+ return response;
11
+ }
12
+ }