@griddo/api-types 1.1.2 → 1.3.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.
Files changed (122) hide show
  1. package/dist/ai/answers.d.ts +20 -0
  2. package/dist/ai/answers.js +8 -0
  3. package/dist/ai/index.d.ts +4 -0
  4. package/dist/ai/index.js +20 -0
  5. package/dist/ai/pages.d.ts +19 -0
  6. package/dist/ai/pages.js +2 -0
  7. package/dist/ai/search.d.ts +54 -0
  8. package/dist/ai/search.js +13 -0
  9. package/dist/ai/summary.d.ts +12 -0
  10. package/dist/ai/summary.js +7 -0
  11. package/dist/analytics/dimensions.d.ts +13 -0
  12. package/dist/analytics/dimensions.js +5 -0
  13. package/dist/analytics/groups.d.ts +20 -0
  14. package/dist/analytics/groups.js +5 -0
  15. package/dist/analytics/index.d.ts +3 -0
  16. package/dist/analytics/index.js +19 -0
  17. package/dist/analytics/script.d.ts +34 -0
  18. package/dist/analytics/script.js +5 -0
  19. package/dist/apiTokens/api_token.d.ts +33 -0
  20. package/dist/apiTokens/api_token.js +12 -0
  21. package/dist/apiTokens/index.d.ts +2 -0
  22. package/dist/apiTokens/index.js +18 -0
  23. package/dist/apiTokens/service_account.d.ts +32 -0
  24. package/dist/apiTokens/service_account.js +12 -0
  25. package/dist/common/index.d.ts +2 -0
  26. package/dist/common/index.js +2 -0
  27. package/dist/common/success.d.ts +10 -0
  28. package/dist/common/success.js +2 -0
  29. package/dist/common/uuid.d.ts +1 -0
  30. package/dist/common/uuid.js +2 -0
  31. package/dist/dataPack/index.d.ts +1 -0
  32. package/dist/dataPack/index.js +1 -0
  33. package/dist/dataPack/types.d.ts +15 -0
  34. package/dist/dataPack/types.js +2 -0
  35. package/dist/domains/domains.d.ts +33 -0
  36. package/dist/domains/domains.js +2 -0
  37. package/dist/domains/index.d.ts +42 -0
  38. package/dist/domains/index.js +33 -0
  39. package/dist/domains/robots.d.ts +24 -0
  40. package/dist/domains/robots.js +2 -0
  41. package/dist/feeds/index.d.ts +40 -0
  42. package/dist/feeds/index.js +9 -0
  43. package/dist/files/index.d.ts +60 -0
  44. package/dist/files/index.js +2 -0
  45. package/dist/form-categories/index.d.ts +46 -0
  46. package/dist/form-categories/index.js +9 -0
  47. package/dist/forms/index.d.ts +71 -0
  48. package/dist/forms/index.js +10 -0
  49. package/dist/images/index.d.ts +235 -0
  50. package/dist/images/index.js +6 -0
  51. package/dist/index.d.ts +25 -0
  52. package/dist/index.js +25 -0
  53. package/dist/instances/index.d.ts +10 -0
  54. package/dist/instances/index.js +10 -0
  55. package/dist/integrations/index.d.ts +92 -0
  56. package/dist/integrations/index.js +17 -0
  57. package/dist/languages/index.d.ts +23 -0
  58. package/dist/languages/index.js +2 -0
  59. package/dist/liveStatus/index.d.ts +14 -0
  60. package/dist/liveStatus/index.js +10 -0
  61. package/dist/logs/LogActivityEvents.d.ts +35 -0
  62. package/dist/logs/LogActivityEvents.js +35 -0
  63. package/dist/menus/index.d.ts +52 -0
  64. package/dist/menus/index.js +8 -0
  65. package/dist/navigation/index.d.ts +44 -0
  66. package/dist/navigation/index.js +8 -0
  67. package/dist/pages/index.d.ts +3 -0
  68. package/dist/pages/index.js +3 -0
  69. package/dist/pages/llms.d.ts +13 -0
  70. package/dist/pages/llms.js +8 -0
  71. package/dist/pages/page_access_grants.d.ts +46 -0
  72. package/dist/pages/page_access_grants.js +2 -0
  73. package/dist/pages/preview_share.d.ts +13 -0
  74. package/dist/pages/preview_share.js +8 -0
  75. package/dist/payables/index.d.ts +19 -0
  76. package/dist/payables/index.js +10 -0
  77. package/dist/redirects/index.d.ts +33 -0
  78. package/dist/render/index.d.ts +1 -0
  79. package/dist/render/index.js +17 -0
  80. package/dist/render/status.d.ts +59 -0
  81. package/dist/render/status.js +2 -0
  82. package/dist/roles/index.d.ts +61 -0
  83. package/dist/roles/index.js +3 -0
  84. package/dist/schemas/index.d.ts +1 -0
  85. package/dist/schemas/index.js +1 -0
  86. package/dist/schemas/schemas.d.ts +2 -0
  87. package/dist/schemas/version.d.ts +9 -0
  88. package/dist/schemas/version.js +2 -0
  89. package/dist/search/index.d.ts +33 -0
  90. package/dist/search/index.js +9 -0
  91. package/dist/settings/index.d.ts +16 -0
  92. package/dist/settings/index.js +10 -0
  93. package/dist/site/index.d.ts +1 -0
  94. package/dist/site/index.js +1 -0
  95. package/dist/site/site.d.ts +4 -2
  96. package/dist/site/site_languages.d.ts +43 -0
  97. package/dist/site/site_languages.js +14 -0
  98. package/dist/storage/index.d.ts +4 -0
  99. package/dist/storage/index.js +8 -0
  100. package/dist/structuredData/access_grants.d.ts +36 -0
  101. package/dist/structuredData/access_grants.js +2 -0
  102. package/dist/structuredData/categories.d.ts +69 -0
  103. package/dist/structuredData/categories.js +2 -0
  104. package/dist/structuredData/content.d.ts +164 -0
  105. package/dist/structuredData/content.js +2 -0
  106. package/dist/structuredData/distributor.d.ts +80 -0
  107. package/dist/structuredData/distributor.js +2 -0
  108. package/dist/structuredData/index.d.ts +5 -0
  109. package/dist/structuredData/index.js +21 -0
  110. package/dist/structuredData/types.d.ts +38 -0
  111. package/dist/structuredData/types.js +9 -0
  112. package/dist/translations/index.d.ts +108 -0
  113. package/dist/translations/index.js +5 -0
  114. package/dist/user/index.d.ts +74 -0
  115. package/dist/user/index.js +19 -0
  116. package/dist/user/page_permissions.d.ts +22 -0
  117. package/dist/user/page_permissions.js +2 -0
  118. package/dist/user/single_login.d.ts +17 -0
  119. package/dist/user/single_login.js +2 -0
  120. package/dist/user/sso_login.d.ts +12 -0
  121. package/dist/user/sso_login.js +2 -0
  122. package/package.json +4 -2
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Public types for the `/feeds` endpoint family.
3
+ *
4
+ * `GET /feeds/:slug/data/:format?` returns the resolved content of a feed.
5
+ * When `format === "rss"` the `data` field is the serialized RSS/XML string;
6
+ * otherwise it is the list of cleaned content items.
7
+ */
8
+ export interface FeedRelatedPage {
9
+ availableSites: {
10
+ id: number;
11
+ name: string;
12
+ }[];
13
+ editable: boolean;
14
+ manuallyImported: boolean;
15
+ origin: "GLOBAL" | "EDITOR";
16
+ originalPageId: number;
17
+ originalStructuredDataId: number;
18
+ pageId: number;
19
+ url: string;
20
+ urlCanonical: string;
21
+ relatedSite: number;
22
+ structuredData: string;
23
+ }
24
+ export interface FeedDataCleanedContent {
25
+ content: Record<string, any>;
26
+ dataLanguages: Record<string, number>[];
27
+ id: number;
28
+ language: number;
29
+ modified: string;
30
+ published: string;
31
+ relatedPage: FeedRelatedPage;
32
+ relatedSite: number;
33
+ structuredData: string;
34
+ }
35
+ export interface GetFeedDataResponse {
36
+ data: string | FeedDataCleanedContent[];
37
+ name: string;
38
+ expirationMinutes: number;
39
+ staleMinutes: number;
40
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Public types for the `/feeds` endpoint family.
4
+ *
5
+ * `GET /feeds/:slug/data/:format?` returns the resolved content of a feed.
6
+ * When `format === "rss"` the `data` field is the serialized RSS/XML string;
7
+ * otherwise it is the list of cleaned content items.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,60 @@
1
+ export interface FilesApiPageUsage {
2
+ id: number;
3
+ title: string | null;
4
+ published: string | Date | null;
5
+ modified: string | Date | null;
6
+ }
7
+ export interface FilesApiSitePageUsage {
8
+ siteId: number;
9
+ siteName: string | null;
10
+ pages: FilesApiPageUsage[];
11
+ }
12
+ export interface FilesApiStructuredDataUsage {
13
+ id: number;
14
+ title: string | null;
15
+ }
16
+ export interface FilesApiContentInUse {
17
+ pages: FilesApiSitePageUsage[];
18
+ structuredData: FilesApiStructuredDataUsage[];
19
+ }
20
+ export interface FilesApiFolderInfo {
21
+ folderId: number;
22
+ folderName: string | null;
23
+ }
24
+ export interface FilesApiFile {
25
+ id: number;
26
+ site: number | null;
27
+ fileName: string | null;
28
+ url: string;
29
+ sizeBytes: number | null;
30
+ title: string | null;
31
+ alt: string | null;
32
+ uploadDate: string | Date | null;
33
+ fieldType: "file";
34
+ contentInUse: FilesApiContentInUse;
35
+ fileType: string | null;
36
+ tags: string[];
37
+ folder: FilesApiFolderInfo | null;
38
+ }
39
+ export interface FilesApiFolder {
40
+ id: number;
41
+ folderName: string | null;
42
+ parentId: number | null;
43
+ site: number | null;
44
+ }
45
+ export interface FilesApiFolderTreeNode {
46
+ id: number;
47
+ name: string | null;
48
+ children: FilesApiFolderTreeNode[];
49
+ }
50
+ export interface FilesApiSiteFolderList {
51
+ files: {
52
+ totalItems: number;
53
+ items: FilesApiFile[];
54
+ };
55
+ folders: FilesApiFolder[];
56
+ }
57
+ export interface FilesApiPostFolderResponse {
58
+ id: number;
59
+ updated: boolean;
60
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Public input/output types for the `/form/category/*` endpoints.
3
+ *
4
+ * A FormCategory is a small classification record attached to forms.
5
+ * Each row belongs either to the global scope (`relatedSiteId === null`)
6
+ * or to a specific site (numeric id).
7
+ */
8
+ export interface FormCategoryContent {
9
+ title: string;
10
+ code: string;
11
+ }
12
+ export interface FormCategoryDTO {
13
+ id: number;
14
+ title: string;
15
+ relatedSiteId: number | null;
16
+ categoryType: string;
17
+ content: FormCategoryContent;
18
+ position: number;
19
+ }
20
+ export interface FormCategoryCheckGroupItem {
21
+ value: string;
22
+ name: number;
23
+ title: string;
24
+ }
25
+ export interface FormCategoryListResponse {
26
+ totalItems: number;
27
+ items: FormCategoryDTO[];
28
+ }
29
+ export interface CreateFormCategoryRequest {
30
+ categoryType: string;
31
+ content: FormCategoryContent;
32
+ position?: number;
33
+ relatedSite: number | null;
34
+ }
35
+ export interface UpdateFormCategoryRequest {
36
+ content: FormCategoryContent;
37
+ }
38
+ export interface UpdateFormCategoryOrderRequest {
39
+ id: number;
40
+ categoryType: string;
41
+ position: number;
42
+ relatedSite: number | null;
43
+ }
44
+ export interface DeleteFormCategoriesBulkRequest {
45
+ categoryIds: number[];
46
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Public input/output types for the `/form/category/*` endpoints.
4
+ *
5
+ * A FormCategory is a small classification record attached to forms.
6
+ * Each row belongs either to the global scope (`relatedSiteId === null`)
7
+ * or to a specific site (numeric id).
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Public input/output types for the `/form` endpoints.
3
+ *
4
+ * A Form is a reusable structure (fields + template + categories)
5
+ * embedded in pages (`page.template`) and navigations
6
+ * (`navigation.content`). Each form belongs to a specific site
7
+ * (numeric id) or to the global scope (`site: null`).
8
+ */
9
+ export type FormStateValue = "active" | "inactive";
10
+ export interface FormTagList {
11
+ readonly tags: string[];
12
+ }
13
+ export interface FormDataLanguage {
14
+ id: number;
15
+ site: number | null;
16
+ language: number;
17
+ }
18
+ export type FormInUseMap = Record<"page" | "header" | "footer", number[]> | null;
19
+ export interface FormResponse {
20
+ id: number;
21
+ title: string;
22
+ site: number | null;
23
+ language: number;
24
+ component: string;
25
+ entity: string;
26
+ tags: string[];
27
+ template: Record<string, unknown>;
28
+ message: string | null;
29
+ created: string | null;
30
+ modified: string | null;
31
+ state: FormStateValue;
32
+ thumbnail: string | null;
33
+ dataLanguages: FormDataLanguage[];
34
+ formInUse: FormInUseMap;
35
+ canBeTranslated: boolean;
36
+ originalLanguage: number | null;
37
+ deleted: boolean;
38
+ }
39
+ export interface FormListResponse {
40
+ totalItems: number;
41
+ active: number;
42
+ inactive: number;
43
+ items: FormResponse[];
44
+ }
45
+ export interface CreateFormRequest {
46
+ title: string;
47
+ site: number | null;
48
+ language: number;
49
+ tags?: string[];
50
+ template: Record<string, unknown>;
51
+ message?: string | null;
52
+ component: string;
53
+ entity?: string | null;
54
+ canBeTranslated?: boolean;
55
+ originalLanguage?: number | null;
56
+ }
57
+ export interface UpdateFormRequest {
58
+ title: string;
59
+ tags?: string[];
60
+ template: Record<string, unknown>;
61
+ message?: string | null;
62
+ canBeTranslated?: boolean;
63
+ originalLanguage?: number | null;
64
+ language: number;
65
+ }
66
+ export interface DuplicateFormRequest {
67
+ title?: string;
68
+ }
69
+ export interface BulkFormIdsRequest {
70
+ formIds: number[];
71
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * Public input/output types for the `/form` endpoints.
4
+ *
5
+ * A Form is a reusable structure (fields + template + categories)
6
+ * embedded in pages (`page.template`) and navigations
7
+ * (`navigation.content`). Each form belongs to a specific site
8
+ * (numeric id) or to the global scope (`site: null`).
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,235 @@
1
+ /**
2
+ * Public types for the `/images`, `/image` and `/images/site/:site/folder`
3
+ * endpoint family.
4
+ */
5
+ /**
6
+ * Image shape returned by `GET /images`, `GET /site/:site/images`,
7
+ * `GET /image/:id`, `POST /images` and `PUT /image/:id/replace`.
8
+ *
9
+ * Produced by `formatImageLegacy()` in the server (legacy-compatible field
10
+ * names: `folder`, not `folderId`).
11
+ */
12
+ export interface ImageItem {
13
+ id: number;
14
+ name: string | null;
15
+ title: string | null;
16
+ description: string | null;
17
+ alt: string | null;
18
+ tags: unknown[] | null;
19
+ url: string | null;
20
+ thumb: string | null;
21
+ publicId: string | null;
22
+ damId: string | null;
23
+ published: string | null;
24
+ size: number | null;
25
+ width: number | null;
26
+ height: number | null;
27
+ orientation: string | null;
28
+ site: number | "global";
29
+ folder: number | null;
30
+ }
31
+ /** `GET /images`, `GET /site/:site/images`. */
32
+ export interface GetImagesResponse {
33
+ totalItems: number;
34
+ items: ImageItem[];
35
+ }
36
+ export interface ImageRelatedPage {
37
+ id: number;
38
+ title: string | null;
39
+ siteId: number | null;
40
+ siteName: string | null;
41
+ published: string | null;
42
+ modified: string | null;
43
+ }
44
+ export interface ImageRelatedSimpleContent {
45
+ id: number;
46
+ title: string | null;
47
+ published: string | null;
48
+ modified: string | null;
49
+ }
50
+ export interface ImageRelatedSite {
51
+ id: number;
52
+ name: string | null;
53
+ published: string | null;
54
+ modified: string | null;
55
+ }
56
+ export interface ImageRelatedContent {
57
+ pages: ImageRelatedPage[];
58
+ structuredData: ImageRelatedSimpleContent[];
59
+ siteInfo: ImageRelatedSite[];
60
+ }
61
+ /**
62
+ * `GET /image/:id`.
63
+ *
64
+ * Extends {@link ImageItem} with the content referencing the image
65
+ * (`relatedContent`, included unless the caller opts out).
66
+ */
67
+ export interface GetImageResponse extends ImageItem {
68
+ relatedContent?: ImageRelatedContent;
69
+ }
70
+ /**
71
+ * `POST /images` (multipart/form-data upload).
72
+ *
73
+ * Only the non-file text fields are represented here; the uploaded file
74
+ * itself is out-of-band (multipart part, not part of the JSON contract).
75
+ */
76
+ export interface PostImagesBody {
77
+ site: number | "global" | null;
78
+ setAsGlobal: boolean;
79
+ active: boolean;
80
+ folder: number | null;
81
+ }
82
+ /** `POST /images` response. */
83
+ export interface PostImagesResponse {
84
+ id: number;
85
+ name: string;
86
+ alt: string;
87
+ title: string;
88
+ description: string;
89
+ tags: unknown[];
90
+ width: number | null;
91
+ height: number | null;
92
+ size: number | null;
93
+ publicId: string | null;
94
+ published: string | null;
95
+ cloudinaryUrl: string | null;
96
+ damId: string | null;
97
+ damUrl: string | null;
98
+ url: string | null;
99
+ site: number | "global" | null;
100
+ folder: number | null;
101
+ }
102
+ /** `PUT /image/:id` request body. The image `id` itself travels in the URL. */
103
+ export interface PutImageBody {
104
+ alt?: string;
105
+ title?: string;
106
+ description?: string;
107
+ tags?: unknown[];
108
+ site: number | "global" | null;
109
+ }
110
+ /**
111
+ * `PUT /image/:id/replace` request body (multipart/form-data upload).
112
+ *
113
+ * The image being replaced is identified by the `:id` URL param, not by a
114
+ * body field; only the non-file text fields are represented here.
115
+ */
116
+ export interface PutImageReplaceBody {
117
+ site: number | "global" | null;
118
+ setAsGlobal: boolean;
119
+ }
120
+ /**
121
+ * Folder shape returned by the media-gallery folder-browsing endpoints.
122
+ * Shared by images (`type: "images"`) and, potentially, files
123
+ * (`type: "files"`) folders.
124
+ */
125
+ export interface MediaFolder {
126
+ id: number;
127
+ folderName: string;
128
+ parentId: number | null;
129
+ site: number | null;
130
+ }
131
+ /** Minimal image entry attached to a {@link MediaFolderTree} node. */
132
+ export interface MediaFolderTreeItem {
133
+ id: number;
134
+ name: string | null;
135
+ inUse: boolean;
136
+ folderId: number | null;
137
+ }
138
+ /** `GET /images/site/:site/folder/tree`. */
139
+ export interface MediaFolderTree {
140
+ id: number;
141
+ name: string;
142
+ children: MediaFolderTree[];
143
+ items: MediaFolderTreeItem[];
144
+ }
145
+ export type GetImagesFolderTreeResponse = MediaFolderTree[];
146
+ /**
147
+ * Image shape returned by the folder-browsing endpoints
148
+ * (`GET /images/site/:site/folder`, `GET /images/site/:site/folder/tree`
149
+ * via {@link MediaFolderTreeItem}).
150
+ *
151
+ * Distinct from {@link ImageItem}: produced by `ImageEntity.formatDTO()`,
152
+ * which uses `folderId` instead of `folder`. NOTE: `tags` is declared here
153
+ * as `string | null` matching the pre-existing local type, even though at
154
+ * runtime `ImageEntity.formatDTO()` actually assigns a parsed array
155
+ * (`unknown[]`) to it — a pre-existing inconsistency, preserved as-is.
156
+ */
157
+ export interface FolderImageItem {
158
+ id: number;
159
+ alt: string | null;
160
+ description: string | null;
161
+ height: number | null;
162
+ name: string | null;
163
+ published: string | null;
164
+ site: number | null;
165
+ size: number | null;
166
+ tags: string | null;
167
+ title: string | null;
168
+ width: number | null;
169
+ folderId: number | null;
170
+ damId: string | null;
171
+ orientation: string | null;
172
+ publicId: string | null;
173
+ url: string | null;
174
+ thumb: string;
175
+ }
176
+ /**
177
+ * `GET /images/site/:site/folder` (single level, non-recursive).
178
+ *
179
+ * NOTE: this pagination shape uses `currentPage`, unlike
180
+ * {@link GetImagesResponse} which uses `page` — this is a real divergence
181
+ * between the two endpoints in the existing code, not a typo; preserved
182
+ * as-is rather than forced into consistency.
183
+ */
184
+ export interface GetImagesInFolderResponse {
185
+ folders: MediaFolder[];
186
+ images: {
187
+ totalItems: number;
188
+ currentPage: number;
189
+ items: FolderImageItem[];
190
+ };
191
+ }
192
+ export interface ImageInUseStructuredDataInfo {
193
+ title: string;
194
+ id: string;
195
+ }
196
+ export interface ImageInUseContentEntry {
197
+ id: number;
198
+ title: string;
199
+ structuredData: ImageInUseStructuredDataInfo | null;
200
+ date: Date | null;
201
+ }
202
+ export interface ImageInUseSite {
203
+ id: number;
204
+ title: string;
205
+ pages: ImageInUseContentEntry[];
206
+ simpleContent: ImageInUseContentEntry[];
207
+ }
208
+ /** `GET /image/:id/inuse`. */
209
+ export interface GetImageInUseResponse {
210
+ sites: ImageInUseSite[];
211
+ globalPages: ImageInUseContentEntry[];
212
+ simpleData: ImageInUseContentEntry[];
213
+ }
214
+ /**
215
+ * `DELETE /image/:id`, `DELETE /image/bulk`.
216
+ *
217
+ * Success responses use the default `HttpResponseHandler.ok` envelope
218
+ * (`{ code: 200, message: "ok" }`, no payload passed explicitly). Failures
219
+ * caused by an image still referenced by content return HTTP 400 with the
220
+ * list of conflicts in place of a plain string `message`.
221
+ */
222
+ export interface DeleteImageConflict {
223
+ id: number;
224
+ error: string;
225
+ }
226
+ export interface DeleteImageSuccessResponse {
227
+ code: 200;
228
+ message: "ok";
229
+ }
230
+ export interface DeleteImageConflictResponse {
231
+ code: 400;
232
+ message: DeleteImageConflict[];
233
+ }
234
+ export type DeleteImageResponse = DeleteImageSuccessResponse | DeleteImageConflictResponse;
235
+ export type BulkDeleteImagesResponse = DeleteImageResponse;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Public types for the `/images`, `/image` and `/images/site/:site/folder`
4
+ * endpoint family.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -6,4 +6,29 @@ export * from "./site";
6
6
  export * from "./redirects";
7
7
  export * from "./add-ons";
8
8
  export * from "./pages";
9
+ export * from "./structuredData";
10
+ export * from "./user";
9
11
  export * from "./queue";
12
+ export * from "./domains";
13
+ export * from "./storage";
14
+ export * from "./render";
15
+ export * from "./settings";
16
+ export * from "./form-categories";
17
+ export * from "./forms";
18
+ export * from "./instances";
19
+ export * from "./liveStatus";
20
+ export * from "./payables";
21
+ export * from "./translations";
22
+ export * from "./roles";
23
+ export * from "./files";
24
+ export * from "./languages";
25
+ export * from "./search";
26
+ export * from "./domains";
27
+ export * from "./menus";
28
+ export * from "./navigation";
29
+ export * from "./feeds";
30
+ export * from "./ai";
31
+ export * from "./apiTokens";
32
+ export * from "./images";
33
+ export * from "./integrations";
34
+ export * from "./analytics";
package/dist/index.js CHANGED
@@ -22,4 +22,29 @@ __exportStar(require("./site"), exports);
22
22
  __exportStar(require("./redirects"), exports);
23
23
  __exportStar(require("./add-ons"), exports);
24
24
  __exportStar(require("./pages"), exports);
25
+ __exportStar(require("./structuredData"), exports);
26
+ __exportStar(require("./user"), exports);
25
27
  __exportStar(require("./queue"), exports);
28
+ __exportStar(require("./domains"), exports);
29
+ __exportStar(require("./storage"), exports);
30
+ __exportStar(require("./render"), exports);
31
+ __exportStar(require("./settings"), exports);
32
+ __exportStar(require("./form-categories"), exports);
33
+ __exportStar(require("./forms"), exports);
34
+ __exportStar(require("./instances"), exports);
35
+ __exportStar(require("./liveStatus"), exports);
36
+ __exportStar(require("./payables"), exports);
37
+ __exportStar(require("./translations"), exports);
38
+ __exportStar(require("./roles"), exports);
39
+ __exportStar(require("./files"), exports);
40
+ __exportStar(require("./languages"), exports);
41
+ __exportStar(require("./search"), exports);
42
+ __exportStar(require("./domains"), exports);
43
+ __exportStar(require("./menus"), exports);
44
+ __exportStar(require("./navigation"), exports);
45
+ __exportStar(require("./feeds"), exports);
46
+ __exportStar(require("./ai"), exports);
47
+ __exportStar(require("./apiTokens"), exports);
48
+ __exportStar(require("./images"), exports);
49
+ __exportStar(require("./integrations"), exports);
50
+ __exportStar(require("./analytics"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Public types for the `instances` heartbeat module.
3
+ *
4
+ * `instances` is an internal infrastructure table: each running API process
5
+ * registers its IP so that schema-change broadcasts know where to fan out.
6
+ * There are no HTTP endpoints; these types describe the values exchanged
7
+ * between usecases.
8
+ */
9
+ export type InstanceIp = string;
10
+ export type GetAllInstancesResponse = InstanceIp[];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * Public types for the `instances` heartbeat module.
4
+ *
5
+ * `instances` is an internal infrastructure table: each running API process
6
+ * registers its IP so that schema-change broadcasts know where to fan out.
7
+ * There are no HTTP endpoints; these types describe the values exchanged
8
+ * between usecases.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Public types for the site-level `/integration*` endpoint family.
3
+ *
4
+ * `GET /site/:site/integrations` returns a paginated list of the third-party
5
+ * integrations (analytics, chat widgets, tracking pixels, etc.) configured
6
+ * for a site. `GET /site/:site/integration/:id` returns a single one — both
7
+ * routes share the same controller/usecase, hence the response union.
8
+ *
9
+ * `POST /integration/site/:site/` (create) and `PUT /integration/:id/site/:site/`
10
+ * (update) share the same request body shape.
11
+ *
12
+ * Not to be confused with `PageIntegration` (`../pages/add-ons`), which is a
13
+ * different resource: an integration relation embedded in a page, not this
14
+ * site-level integration configuration.
15
+ */
16
+ export interface FormattedIntegrationVariable {
17
+ id: number;
18
+ variableName: string;
19
+ variableKey: string;
20
+ defaultValue: string;
21
+ isMultilanguage: boolean;
22
+ value?: string | null;
23
+ multilanguage?: Array<{
24
+ id: number;
25
+ languageId: number;
26
+ value: string | null;
27
+ }>;
28
+ }
29
+ export interface FormattedIntegration {
30
+ id: number;
31
+ name: string;
32
+ type: string;
33
+ editable: boolean;
34
+ description: string | null;
35
+ site: number;
36
+ contentHead: string | null;
37
+ contentBody: string | null;
38
+ contentBodyPosition: string | null;
39
+ contentPresence: {
40
+ presenceType: string | null;
41
+ relatedPages: Array<{
42
+ id: number;
43
+ title: string | null;
44
+ }> | null;
45
+ };
46
+ active: boolean;
47
+ variables: FormattedIntegrationVariable[];
48
+ scriptOrder: number | null;
49
+ correlativeScriptOrder?: number;
50
+ }
51
+ export interface GetSiteIntegrationsListResponse {
52
+ totalItems: number;
53
+ page: number;
54
+ items: FormattedIntegration[];
55
+ }
56
+ /**
57
+ * `GET /site/:site/integrations` (list) and `GET /site/:site/integration/:id`
58
+ * (single, when `id` resolves) share this response type: a single formatted
59
+ * integration when an `id` is given, a paginated list otherwise.
60
+ */
61
+ export type GetSiteIntegrationsResponse = FormattedIntegration | GetSiteIntegrationsListResponse;
62
+ export interface PostIntegrationVariableBody {
63
+ id?: number;
64
+ variableName: string;
65
+ variableKey: string;
66
+ defaultValue: string;
67
+ multilanguage?: Array<{
68
+ id?: number;
69
+ languageId: number;
70
+ value: string | null;
71
+ }>;
72
+ }
73
+ /**
74
+ * Request body for `POST /integration/site/:site/` (create) and
75
+ * `PUT /integration/:id/site/:site/` (update).
76
+ */
77
+ export interface PostIntegrationBody {
78
+ name: string;
79
+ description?: string | null;
80
+ contentHead?: string | null;
81
+ contentBody?: string | null;
82
+ contentBodyPosition?: string | null;
83
+ contentPresence: {
84
+ presenceType: string;
85
+ relatedPages?: Array<{
86
+ id: number;
87
+ }> | null;
88
+ };
89
+ active?: number | boolean;
90
+ variables?: PostIntegrationVariableBody[];
91
+ scriptOrder?: number | null;
92
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Public types for the site-level `/integration*` endpoint family.
4
+ *
5
+ * `GET /site/:site/integrations` returns a paginated list of the third-party
6
+ * integrations (analytics, chat widgets, tracking pixels, etc.) configured
7
+ * for a site. `GET /site/:site/integration/:id` returns a single one — both
8
+ * routes share the same controller/usecase, hence the response union.
9
+ *
10
+ * `POST /integration/site/:site/` (create) and `PUT /integration/:id/site/:site/`
11
+ * (update) share the same request body shape.
12
+ *
13
+ * Not to be confused with `PageIntegration` (`../pages/add-ons`), which is a
14
+ * different resource: an integration relation embedded in a page, not this
15
+ * site-level integration configuration.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });