@faiber/faiber-modules 0.24.1 → 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.
- package/README.md +38 -7
- package/dist/.tsbuildinfo +1 -1
- package/dist/contracts.types.d.ts +118 -0
- package/dist/contracts.types.d.ts.map +1 -1
- package/dist/index.d.ts +94 -58
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -1
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +724 -716
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +559 -543
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +333 -498
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +107 -467
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -3
- package/provenance.json +27 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,370 +1,79 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export
|
|
46
|
-
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
export
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export type
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
export
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export interface BlogPost {
|
|
76
|
-
id: string;
|
|
77
|
-
title: string;
|
|
78
|
-
description?: string | null;
|
|
79
|
-
status?: number;
|
|
80
|
-
created_at?: string;
|
|
81
|
-
updated_at?: string;
|
|
82
|
-
}
|
|
83
|
-
export interface CreateBlogPostInput {
|
|
84
|
-
title: string;
|
|
85
|
-
description?: string;
|
|
86
|
-
status?: number;
|
|
87
|
-
}
|
|
88
|
-
export interface UpdateBlogPostInput extends Partial<CreateBlogPostInput> {
|
|
89
|
-
}
|
|
90
|
-
export interface Category {
|
|
91
|
-
id: string;
|
|
92
|
-
parent_id?: string | null;
|
|
93
|
-
name?: string | null;
|
|
94
|
-
description?: string | null;
|
|
95
|
-
status: number;
|
|
96
|
-
requires_confirmation?: boolean;
|
|
97
|
-
}
|
|
98
|
-
export interface CreateCategoryInput {
|
|
99
|
-
parent_id?: string;
|
|
100
|
-
name?: string;
|
|
101
|
-
description?: string;
|
|
102
|
-
status?: number;
|
|
103
|
-
requires_confirmation?: boolean;
|
|
104
|
-
}
|
|
105
|
-
export interface UpdateCategoryInput extends Partial<CreateCategoryInput> {
|
|
106
|
-
}
|
|
107
|
-
export interface Tag {
|
|
108
|
-
id: string;
|
|
109
|
-
name: string;
|
|
110
|
-
status: number;
|
|
111
|
-
}
|
|
112
|
-
export interface CreateTagInput {
|
|
113
|
-
name: string;
|
|
114
|
-
status?: number;
|
|
115
|
-
}
|
|
116
|
-
export interface UpdateTagInput extends Partial<CreateTagInput> {
|
|
117
|
-
}
|
|
118
|
-
export interface Author {
|
|
119
|
-
id: string;
|
|
120
|
-
user_id: string;
|
|
121
|
-
name: string;
|
|
122
|
-
bio?: string | null;
|
|
123
|
-
avatar_url?: string | null;
|
|
124
|
-
social_links?: JsonValue;
|
|
125
|
-
website?: string | null;
|
|
126
|
-
}
|
|
127
|
-
export interface CreateAuthorInput {
|
|
128
|
-
user_id: string;
|
|
129
|
-
name: string;
|
|
130
|
-
bio?: string;
|
|
131
|
-
avatar_url?: string;
|
|
132
|
-
social_links?: JsonValue;
|
|
133
|
-
website?: string;
|
|
134
|
-
}
|
|
135
|
-
export interface UpdateAuthorInput extends Partial<Omit<CreateAuthorInput, "user_id">> {
|
|
136
|
-
}
|
|
137
|
-
export interface Content {
|
|
138
|
-
id: string;
|
|
139
|
-
content?: string | null;
|
|
140
|
-
auto_saved_content?: string | null;
|
|
141
|
-
created_by_user_id?: string;
|
|
142
|
-
created_by_author_id?: string | null;
|
|
143
|
-
}
|
|
144
|
-
export interface CreateContentInput {
|
|
145
|
-
content?: string;
|
|
146
|
-
created_by_author_id?: string;
|
|
147
|
-
}
|
|
148
|
-
export interface UpdateContentInput {
|
|
149
|
-
content?: string;
|
|
150
|
-
auto_saved_content?: string;
|
|
151
|
-
}
|
|
152
|
-
export interface SeoContent {
|
|
153
|
-
id: string;
|
|
154
|
-
meta_url?: string | null;
|
|
155
|
-
meta_title?: string | null;
|
|
156
|
-
meta_description?: string | null;
|
|
157
|
-
meta_keyword?: string | null;
|
|
158
|
-
meta_ld?: JsonValue;
|
|
159
|
-
}
|
|
160
|
-
export interface CreateSeoContentInput {
|
|
161
|
-
meta_url?: string;
|
|
162
|
-
meta_title?: string;
|
|
163
|
-
meta_description?: string;
|
|
164
|
-
meta_keyword?: string;
|
|
165
|
-
meta_ld?: JsonValue;
|
|
166
|
-
}
|
|
167
|
-
export interface UpdateSeoContentInput extends Partial<CreateSeoContentInput> {
|
|
168
|
-
}
|
|
169
|
-
export interface Comment {
|
|
170
|
-
id: string;
|
|
171
|
-
content?: string;
|
|
172
|
-
author_id?: string | null;
|
|
173
|
-
status?: number;
|
|
174
|
-
created_at?: string;
|
|
175
|
-
}
|
|
176
|
-
export interface CreateCommentInput {
|
|
177
|
-
content: string;
|
|
178
|
-
author_id?: string;
|
|
179
|
-
status?: number;
|
|
180
|
-
}
|
|
181
|
-
export interface UpdateCommentInput extends Partial<CreateCommentInput> {
|
|
182
|
-
}
|
|
183
|
-
export interface ModuleRequest {
|
|
184
|
-
id: string;
|
|
185
|
-
user_id: string;
|
|
186
|
-
name: string;
|
|
187
|
-
description?: string | null;
|
|
188
|
-
status: number;
|
|
189
|
-
route_to_crm: boolean;
|
|
190
|
-
crm_flags: string[];
|
|
191
|
-
created_at: string;
|
|
192
|
-
updated_at: string;
|
|
193
|
-
}
|
|
194
|
-
export interface CreateModuleRequestInput {
|
|
195
|
-
user_id?: string;
|
|
196
|
-
name: string;
|
|
197
|
-
description?: string | null;
|
|
198
|
-
status?: number;
|
|
199
|
-
/** Publishes each submission to CRM's reusable lead-intake command. */
|
|
200
|
-
route_to_crm?: boolean;
|
|
201
|
-
/** Flags CRM uses to select the matching workflow acquire flags. */
|
|
202
|
-
crm_flags?: string[];
|
|
203
|
-
}
|
|
204
|
-
export interface UpdateModuleRequestInput extends Partial<CreateModuleRequestInput> {
|
|
205
|
-
}
|
|
206
|
-
export interface Warehouse {
|
|
207
|
-
id: string;
|
|
208
|
-
name: string;
|
|
209
|
-
location: string;
|
|
210
|
-
capacity: number;
|
|
211
|
-
}
|
|
212
|
-
export interface CreateWarehouseInput {
|
|
213
|
-
name: string;
|
|
214
|
-
location: string;
|
|
215
|
-
capacity: number;
|
|
216
|
-
}
|
|
217
|
-
export interface UpdateWarehouseInput extends Partial<CreateWarehouseInput> {
|
|
218
|
-
}
|
|
219
|
-
export interface Inventory {
|
|
220
|
-
id: string;
|
|
221
|
-
variant_id: string;
|
|
222
|
-
warehouse_id: string;
|
|
223
|
-
priority: number;
|
|
224
|
-
quantity: number;
|
|
225
|
-
reserved: number;
|
|
226
|
-
available: number;
|
|
227
|
-
}
|
|
228
|
-
export interface CreateInventoryInput {
|
|
229
|
-
variant_id: string;
|
|
230
|
-
warehouse_id: string;
|
|
231
|
-
priority?: number;
|
|
232
|
-
quantity: number;
|
|
233
|
-
}
|
|
234
|
-
export interface UpdateInventoryInput {
|
|
235
|
-
priority?: number;
|
|
236
|
-
quantity?: number;
|
|
237
|
-
reserved?: number;
|
|
238
|
-
}
|
|
239
|
-
export interface Pricing {
|
|
240
|
-
id: string;
|
|
241
|
-
service_name: string;
|
|
242
|
-
display_name?: string;
|
|
243
|
-
hourly_price?: number;
|
|
244
|
-
monthly_price?: number;
|
|
245
|
-
annual_price?: number;
|
|
246
|
-
currency?: string;
|
|
247
|
-
}
|
|
248
|
-
export interface CreatePricingInput extends Omit<Pricing, "id"> {
|
|
249
|
-
}
|
|
250
|
-
export interface UpdatePricingInput extends Partial<CreatePricingInput> {
|
|
251
|
-
}
|
|
252
|
-
export interface Sample {
|
|
253
|
-
id: string;
|
|
254
|
-
name?: string;
|
|
255
|
-
slug?: string;
|
|
256
|
-
content?: string;
|
|
257
|
-
variables?: JsonValue;
|
|
258
|
-
}
|
|
259
|
-
export interface CreateSampleInput {
|
|
260
|
-
name?: string;
|
|
261
|
-
slug?: string;
|
|
262
|
-
content?: string;
|
|
263
|
-
variables?: JsonValue;
|
|
264
|
-
}
|
|
265
|
-
export interface UpdateSampleInput extends Partial<CreateSampleInput> {
|
|
266
|
-
}
|
|
267
|
-
export interface CartItem {
|
|
268
|
-
variant_id: string;
|
|
269
|
-
quantity: number;
|
|
270
|
-
}
|
|
271
|
-
export interface Cart {
|
|
272
|
-
items: CartItem[];
|
|
273
|
-
subtotal?: string | number;
|
|
274
|
-
total?: string | number;
|
|
275
|
-
}
|
|
276
|
-
export interface ReplaceCartInput {
|
|
277
|
-
items: CartItem[];
|
|
278
|
-
}
|
|
279
|
-
export interface AttachCategoryInput {
|
|
280
|
-
category_id: string;
|
|
281
|
-
sort_order?: number;
|
|
282
|
-
}
|
|
283
|
-
export interface CategoryAttachment {
|
|
284
|
-
id: string;
|
|
285
|
-
category_id: string;
|
|
286
|
-
target_id: string;
|
|
287
|
-
sort_order: number;
|
|
288
|
-
}
|
|
289
|
-
export interface AttachTagInput {
|
|
290
|
-
tag_id: string;
|
|
291
|
-
sort_order?: number;
|
|
292
|
-
}
|
|
293
|
-
export interface TagAttachment {
|
|
294
|
-
id: string;
|
|
295
|
-
tag_id: string;
|
|
296
|
-
target_id: string;
|
|
297
|
-
sort_order: number;
|
|
298
|
-
}
|
|
299
|
-
export interface AuditLog {
|
|
300
|
-
id: string;
|
|
301
|
-
host?: string;
|
|
302
|
-
target_id?: string;
|
|
303
|
-
action?: string;
|
|
304
|
-
user_id?: string;
|
|
305
|
-
data?: JsonValue;
|
|
306
|
-
created_at?: string;
|
|
307
|
-
}
|
|
308
|
-
export interface StockMovement {
|
|
309
|
-
id: string;
|
|
310
|
-
inventory_id?: string;
|
|
311
|
-
quantity?: number;
|
|
312
|
-
movement_type?: string;
|
|
313
|
-
created_at?: string;
|
|
314
|
-
}
|
|
315
|
-
export interface ProductVariantQuery extends QueryParams {
|
|
316
|
-
product_id?: string;
|
|
317
|
-
page_number?: number;
|
|
318
|
-
page_size?: number;
|
|
319
|
-
}
|
|
320
|
-
export interface InventoryQuery extends QueryParams {
|
|
321
|
-
variant_id?: string;
|
|
322
|
-
warehouse_id?: string;
|
|
323
|
-
page_number?: number;
|
|
324
|
-
page_size?: number;
|
|
325
|
-
}
|
|
326
|
-
export interface ProductResponse extends ResourceResponse<Product> {
|
|
327
|
-
}
|
|
328
|
-
export interface ProductListResponse extends ApiEnvelope<{
|
|
329
|
-
products: Product[];
|
|
330
|
-
page_number: number;
|
|
331
|
-
page_size: number;
|
|
332
|
-
total_items: number;
|
|
333
|
-
}> {
|
|
334
|
-
}
|
|
335
|
-
export interface ProductVariantResponse extends ResourceResponse<ProductVariant> {
|
|
336
|
-
}
|
|
337
|
-
export interface ProductVariantListResponse extends ApiEnvelope<{
|
|
338
|
-
variants: ProductVariant[];
|
|
339
|
-
page_number: number;
|
|
340
|
-
page_size: number;
|
|
341
|
-
total_items: number;
|
|
342
|
-
}> {
|
|
343
|
-
}
|
|
344
|
-
export interface CartResponse extends ApiEnvelope<Cart> {
|
|
345
|
-
}
|
|
346
|
-
export interface CategoryAttachmentResponse extends ApiEnvelope<CategoryAttachment> {
|
|
347
|
-
}
|
|
348
|
-
export interface CategoryAttachmentListResponse extends ApiEnvelope<CategoryAttachment[]> {
|
|
349
|
-
}
|
|
350
|
-
export interface TagAttachmentResponse extends ApiEnvelope<TagAttachment> {
|
|
351
|
-
}
|
|
352
|
-
export interface TagAttachmentListResponse extends ApiEnvelope<TagAttachment[]> {
|
|
353
|
-
}
|
|
354
|
-
export interface ContentAttachmentListResponse extends ApiEnvelope<Content[]> {
|
|
355
|
-
}
|
|
356
|
-
export interface SeoAttachmentListResponse extends ApiEnvelope<SeoContent[]> {
|
|
357
|
-
}
|
|
358
|
-
export interface AuditLogListResponse extends ApiEnvelope<AuditLog[]> {
|
|
359
|
-
}
|
|
360
|
-
export interface StockMovementListResponse extends ApiEnvelope<PaginatedResult<StockMovement>> {
|
|
361
|
-
}
|
|
1
|
+
import type { Identifier, JsonValue, QueryParams } from "@faiber/sdk-core";
|
|
2
|
+
import type * as O from "./operations.types.js";
|
|
3
|
+
/** Concrete aliases share the audited handler wire contracts with operations. Arbitrary JSON fields (SKU, editor content, SEO, metadata, form data and agent context) are backend serde_json::Value, not placeholder models. */
|
|
4
|
+
export type Product = O.ProductShowProductGetResponseData;
|
|
5
|
+
export type ProductVariant = O.ProductShowVariantGetResponseData;
|
|
6
|
+
export type Order = O.OrderShowOrderGetResponseData;
|
|
7
|
+
export type OrderItem = O.OrderListOrderItemsGetResponseItem;
|
|
8
|
+
export type BlogPost = O.BlogShowPostGetResponseData;
|
|
9
|
+
export type Category = O.CategoryShowCategoryGetResponseData;
|
|
10
|
+
export type Tag = O.TagShowTagGetResponseData;
|
|
11
|
+
export type Author = O.AuthorShowAuthorGetResponseData;
|
|
12
|
+
export type Content = O.ContentShowContentGetResponseData;
|
|
13
|
+
export type SeoContent = O.SeoContentShowSeoContentGetResponseData;
|
|
14
|
+
export type Comment = O.CommentShowCommentGetResponseData;
|
|
15
|
+
export type ModuleRequest = O.RequestShowRequestGetResponseData;
|
|
16
|
+
export type Warehouse = O.InventoryShowWarehouseGetResponseData;
|
|
17
|
+
export type Inventory = O.InventoryShowInventoryGetResponseData;
|
|
18
|
+
export type Pricing = O.ServicePricingShowPricingGetResponseData;
|
|
19
|
+
export type Sample = O.UserSampleShowSampleGetResponseData;
|
|
20
|
+
export type Cart = O.CartShowGetResponseData;
|
|
21
|
+
export type CreateOrderItemInput = O.OrderAddOrderItemPostInput;
|
|
22
|
+
export type ReplaceCartInput = O.CartReplacePutInput;
|
|
23
|
+
export type AttachCategoryInput = O.CategoryAttachToTargetPostInput;
|
|
24
|
+
export type AttachTagInput = O.TagAttachToTargetPostInput;
|
|
25
|
+
export type CategoryAttachment = O.CategoryListOnTargetGetResponseItem;
|
|
26
|
+
export type TagAttachment = O.TagListOnTargetGetResponseItem;
|
|
27
|
+
export type AuditLog = O.AuditLogListOnTargetGetResponseItem;
|
|
28
|
+
export type StockMovement = O.StockMovementCreateStockMovementPostResponseData;
|
|
29
|
+
export type ProductVariantQuery = O.ProductListVariantsGetQuery;
|
|
30
|
+
export type InventoryQuery = O.InventoryListInventoriesGetQuery;
|
|
31
|
+
export type ProductResponse = O.ProductShowProductGetResponse;
|
|
32
|
+
export type ProductListResponse = O.ProductListProductsGetResponse;
|
|
33
|
+
export type ProductVariantResponse = O.ProductShowVariantGetResponse;
|
|
34
|
+
export type ProductVariantListResponse = O.ProductListProductVariantsGetResponse;
|
|
35
|
+
export type CartResponse = O.CartShowGetResponse;
|
|
36
|
+
export type CategoryAttachmentResponse = O.CategoryAttachToTargetPostResponse;
|
|
37
|
+
export type CategoryAttachmentListResponse = O.CategoryListOnTargetGetResponse;
|
|
38
|
+
export type TagAttachmentResponse = O.TagAttachToTargetPostResponse;
|
|
39
|
+
export type TagAttachmentListResponse = O.TagListOnTargetGetResponse;
|
|
40
|
+
export type ContentAttachmentListResponse = O.ContentListOnTargetGetResponse;
|
|
41
|
+
export type SeoAttachmentListResponse = O.SeoContentListOnTargetGetResponse;
|
|
42
|
+
export type AuditLogListResponse = O.AuditLogListOnTargetGetResponse;
|
|
43
|
+
export type StockMovementListResponse = O.StockMovementListStockMovementsGetResponse;
|
|
44
|
+
export type CreateProductInput = O.ProductCreateProductPostInput;
|
|
45
|
+
export type UpdateProductInput = O.ProductUpdateProductPatchInput;
|
|
46
|
+
export type CreateProductVariantInput = O.ProductCreateVariantPostInput;
|
|
47
|
+
export type UpdateProductVariantInput = O.ProductUpdateVariantPatchInput;
|
|
48
|
+
export type CreateOrderInput = O.OrderCreateOrderPostInput;
|
|
49
|
+
export type UpdateOrderInput = O.OrderUpdateOrderPatchInput;
|
|
50
|
+
export type CreateBlogPostInput = O.BlogCreatePostPostInput;
|
|
51
|
+
export type UpdateBlogPostInput = O.BlogUpdatePostPatchInput;
|
|
52
|
+
export type CreateCategoryInput = O.CategoryCreateCategoryPostInput;
|
|
53
|
+
export type UpdateCategoryInput = O.CategoryUpdateCategoryPatchInput;
|
|
54
|
+
export type CreateTagInput = O.TagCreateTagPostInput;
|
|
55
|
+
export type UpdateTagInput = O.TagUpdateTagPatchInput;
|
|
56
|
+
export type CreateAuthorInput = O.AuthorCreateAuthorPostInput;
|
|
57
|
+
export type UpdateAuthorInput = O.AuthorUpdateAuthorPatchInput;
|
|
58
|
+
export type CreateContentInput = O.ContentCreateContentPostInput;
|
|
59
|
+
export type UpdateContentInput = O.ContentUpdateContentPatchInput;
|
|
60
|
+
export type CreateSeoContentInput = O.SeoContentCreateSeoContentPostInput;
|
|
61
|
+
export type UpdateSeoContentInput = O.SeoContentUpdateSeoContentPatchInput;
|
|
62
|
+
export type CreateCommentInput = O.CommentCreateCommentPostInput;
|
|
63
|
+
export type UpdateCommentInput = O.CommentUpdateCommentPatchInput;
|
|
64
|
+
export type CreateModuleRequestInput = O.RequestCreateRequestPostInput;
|
|
65
|
+
export type UpdateModuleRequestInput = O.RequestUpdateRequestPatchInput;
|
|
66
|
+
export type CreateWarehouseInput = O.InventoryCreateWarehousePostInput;
|
|
67
|
+
export type UpdateWarehouseInput = O.InventoryUpdateWarehousePatchInput;
|
|
68
|
+
export type CreateInventoryInput = O.InventoryCreateInventoryPostInput;
|
|
69
|
+
export type UpdateInventoryInput = O.InventoryUpdateInventoryPatchInput;
|
|
70
|
+
export type CreatePricingInput = O.ServicePricingCreatePricingPostInput;
|
|
71
|
+
export type UpdatePricingInput = O.ServicePricingUpdatePricingPatchInput;
|
|
72
|
+
export type CreateSampleInput = O.UserSampleCreateSamplePostInput;
|
|
73
|
+
export type UpdateSampleInput = O.UserSampleUpdateSamplePatchInput;
|
|
74
|
+
export type CartItem = JsonValue;
|
|
362
75
|
export type TargetIdentifier = Identifier;
|
|
363
|
-
export
|
|
364
|
-
user_id: string;
|
|
365
|
-
roles: string[];
|
|
366
|
-
permissions: string[];
|
|
367
|
-
}
|
|
76
|
+
export type ModulesAuthSelf = O.SessionGetSelfGetResponse;
|
|
368
77
|
export interface ModulesRouteContract {
|
|
369
78
|
method: string;
|
|
370
79
|
path: string;
|
|
@@ -372,22 +81,10 @@ export interface ModulesRouteContract {
|
|
|
372
81
|
visibility: "public" | "authenticated" | "manage" | "integration";
|
|
373
82
|
risk: "read" | "ordinary" | "risky";
|
|
374
83
|
}
|
|
375
|
-
export
|
|
376
|
-
id: number;
|
|
377
|
-
title: string;
|
|
378
|
-
locales: string[];
|
|
379
|
-
timezone: string;
|
|
380
|
-
currency: string;
|
|
381
|
-
contact: JsonValue;
|
|
382
|
-
seo_defaults: JsonValue;
|
|
383
|
-
checkout_rules: JsonValue;
|
|
384
|
-
delivery: JsonValue;
|
|
385
|
-
etag: string;
|
|
386
|
-
updated_at: string;
|
|
387
|
-
}
|
|
84
|
+
export type ModulesSettings = import("./contracts.types.js").ModulesSettingsWire;
|
|
388
85
|
export interface UpdateModulesSettingsInput {
|
|
389
86
|
title: string;
|
|
390
|
-
locales:
|
|
87
|
+
locales: JsonValue;
|
|
391
88
|
timezone: string;
|
|
392
89
|
currency: string;
|
|
393
90
|
contact?: JsonValue;
|
|
@@ -397,34 +94,14 @@ export interface UpdateModulesSettingsInput {
|
|
|
397
94
|
}
|
|
398
95
|
export type ContentDocumentKind = "page" | "post" | "reusable" | "podcast" | "episode" | "student_project" | "parent_review";
|
|
399
96
|
export type ContentDocumentStatus = "draft" | "review" | "scheduled" | "published" | "archived";
|
|
400
|
-
export
|
|
401
|
-
id: string;
|
|
402
|
-
kind: ContentDocumentKind;
|
|
403
|
-
legacy_host?: string;
|
|
404
|
-
legacy_id?: string;
|
|
405
|
-
slug: string;
|
|
406
|
-
locale: string;
|
|
407
|
-
title: string;
|
|
408
|
-
status: ContentDocumentStatus;
|
|
409
|
-
editor_json: JsonValue;
|
|
410
|
-
sanitized_html: string;
|
|
411
|
-
plain_text: string;
|
|
412
|
-
current_revision: number;
|
|
413
|
-
etag: string;
|
|
414
|
-
publish_at?: string;
|
|
415
|
-
published_at?: string;
|
|
416
|
-
created_by: string;
|
|
417
|
-
updated_by: string;
|
|
418
|
-
created_at: string;
|
|
419
|
-
updated_at: string;
|
|
420
|
-
}
|
|
97
|
+
export type ContentDocument = O.ManagementApiListContentGetResponseItem;
|
|
421
98
|
export interface WriteContentDocumentInput {
|
|
422
99
|
kind: ContentDocumentKind;
|
|
423
100
|
slug: string;
|
|
424
101
|
locale?: string;
|
|
425
102
|
title: string;
|
|
426
103
|
editor_json?: JsonValue;
|
|
427
|
-
publish_at?: string;
|
|
104
|
+
publish_at?: string | null;
|
|
428
105
|
}
|
|
429
106
|
export interface ContentDocumentQuery extends QueryParams {
|
|
430
107
|
kind?: ContentDocumentKind;
|
|
@@ -454,16 +131,7 @@ export interface AutocompleteQuery extends QueryParams {
|
|
|
454
131
|
limit?: number;
|
|
455
132
|
}
|
|
456
133
|
/** One relevance-ranked public search suggestion. */
|
|
457
|
-
export
|
|
458
|
-
id: string;
|
|
459
|
-
kind: "post" | "product";
|
|
460
|
-
title: string;
|
|
461
|
-
description?: string;
|
|
462
|
-
image_url?: string;
|
|
463
|
-
slug?: string;
|
|
464
|
-
locale?: string;
|
|
465
|
-
score: number;
|
|
466
|
-
}
|
|
134
|
+
export type AutocompleteSuggestion = O.SearchAutocompleteGetResponseDataItems;
|
|
467
135
|
/** Response returned by the indexed public autocomplete endpoint. */
|
|
468
136
|
export interface AutocompleteResponse {
|
|
469
137
|
query: string;
|
|
@@ -471,32 +139,17 @@ export interface AutocompleteResponse {
|
|
|
471
139
|
items: AutocompleteSuggestion[];
|
|
472
140
|
}
|
|
473
141
|
/** Public category node. Use parent_id to reconstruct an arbitrary-depth tree. */
|
|
474
|
-
export
|
|
475
|
-
id: string;
|
|
476
|
-
parent_id?: string;
|
|
477
|
-
legacy_host?: string;
|
|
478
|
-
legacy_id?: string;
|
|
479
|
-
slug?: string;
|
|
480
|
-
locale: string;
|
|
481
|
-
name?: string;
|
|
482
|
-
description?: string;
|
|
483
|
-
image_url?: string;
|
|
484
|
-
scope: "post" | "product";
|
|
485
|
-
status: number;
|
|
486
|
-
seo: JsonValue;
|
|
487
|
-
created_at: string;
|
|
488
|
-
updated_at: string;
|
|
489
|
-
}
|
|
142
|
+
export type PublicContentCategory = O.ContentTransferListPublicCategoriesGetResponseItem;
|
|
490
143
|
/** Deterministic category import used by trusted migration operators. Requires content:write. */
|
|
491
144
|
export interface ImportContentCategoryInput {
|
|
492
|
-
parent_id?: string;
|
|
145
|
+
parent_id?: string | null;
|
|
493
146
|
legacy_host: string;
|
|
494
147
|
legacy_id: string;
|
|
495
148
|
slug: string;
|
|
496
149
|
locale?: string;
|
|
497
150
|
name: string;
|
|
498
|
-
description?: string;
|
|
499
|
-
image_url?: string;
|
|
151
|
+
description?: string | null;
|
|
152
|
+
image_url?: string | null;
|
|
500
153
|
scope?: "post" | "product";
|
|
501
154
|
status?: number;
|
|
502
155
|
seo?: JsonValue;
|
|
@@ -512,8 +165,8 @@ export interface ImportContentDocumentInput {
|
|
|
512
165
|
source_checksum: string;
|
|
513
166
|
editor_json?: JsonValue;
|
|
514
167
|
status?: ContentDocumentStatus;
|
|
515
|
-
publish_at?: string;
|
|
516
|
-
published_at?: string;
|
|
168
|
+
publish_at?: string | null;
|
|
169
|
+
published_at?: string | null;
|
|
517
170
|
category_ids?: string[];
|
|
518
171
|
}
|
|
519
172
|
export type ModulesMediaPurpose = "editor" | "post" | "product" | "post-category" | "product-category" | "student-project" | "parent-review";
|
|
@@ -523,49 +176,36 @@ export interface ModulesMediaUploadResponse {
|
|
|
523
176
|
content_type: string;
|
|
524
177
|
size: number;
|
|
525
178
|
}
|
|
526
|
-
export
|
|
527
|
-
id: string;
|
|
528
|
-
document_id: string;
|
|
529
|
-
revision: number;
|
|
530
|
-
title: string;
|
|
531
|
-
editor_json: JsonValue;
|
|
532
|
-
sanitized_html: string;
|
|
533
|
-
plain_text: string;
|
|
534
|
-
actor_user_id: string;
|
|
535
|
-
provenance: JsonValue;
|
|
536
|
-
created_at: string;
|
|
537
|
-
}
|
|
179
|
+
export type ContentRevision = O.ManagementApiListContentRevisionsGetResponseItem;
|
|
538
180
|
export type ModulesAgentSpecialist = "content" | "seo" | "commerce" | "media" | "forms" | "manage";
|
|
539
181
|
export type AgentProposalRisk = "read" | "ordinary" | "risky";
|
|
540
|
-
export
|
|
541
|
-
id: string;
|
|
542
|
-
agentic_run_id?: string;
|
|
543
|
-
actor_user_id: string;
|
|
544
|
-
specialist: ModulesAgentSpecialist;
|
|
545
|
-
operation: string;
|
|
546
|
-
target_type: string;
|
|
547
|
-
target_id?: string;
|
|
548
|
-
expected_etag?: string;
|
|
549
|
-
diff: JsonValue;
|
|
550
|
-
risk: AgentProposalRisk;
|
|
551
|
-
status: "running" | "pending" | "approved" | "applied" | "rejected" | "expired" | "failed";
|
|
552
|
-
idempotency_key: string;
|
|
553
|
-
expires_at: string;
|
|
554
|
-
approved_by?: string;
|
|
555
|
-
applied_at?: string;
|
|
556
|
-
created_at: string;
|
|
557
|
-
updated_at: string;
|
|
558
|
-
}
|
|
182
|
+
export type AgentProposal = O.ManagementApiGetProposalGetResponseData;
|
|
559
183
|
export interface RunModulesAgentInput {
|
|
560
184
|
operation: string;
|
|
561
185
|
message: string;
|
|
562
186
|
specialist: ModulesAgentSpecialist;
|
|
563
187
|
target_type: string;
|
|
564
|
-
target_id?: string;
|
|
565
|
-
expected_etag?: string;
|
|
188
|
+
target_id?: string | null;
|
|
189
|
+
expected_etag?: string | null;
|
|
566
190
|
resource_ids?: string[];
|
|
567
191
|
context?: JsonValue;
|
|
568
|
-
model_ref?: string;
|
|
192
|
+
model_ref?: string | null;
|
|
569
193
|
risk?: AgentProposalRisk;
|
|
570
194
|
}
|
|
195
|
+
/** Existing hosted catalog pagination. Page numbers start at 1; the server clamps
|
|
196
|
+
* page_size to 1..100 (default 10). Search is a case-insensitive literal substring,
|
|
197
|
+
* not a SQL pattern: raw input is limited to 128 Unicode characters and no NUL.
|
|
198
|
+
* The server trims whitespace; omitted/blank search preserves the unfiltered catalog.
|
|
199
|
+
* UUID ascending order stabilizes pages; deleted rows are excluded. */
|
|
200
|
+
export interface HostedCatalogQuery extends QueryParams {
|
|
201
|
+
page_number?: number;
|
|
202
|
+
page_size?: number;
|
|
203
|
+
search?: string;
|
|
204
|
+
}
|
|
205
|
+
/** Category name matches; response data.search is the normalized string or null. */
|
|
206
|
+
export type CategoryListResponse = import("./operations.types.js").CategoryListCategoriesGetResponse;
|
|
207
|
+
/** Tag name matches; response data.search is the normalized string or null. */
|
|
208
|
+
export type TagListResponse = import("./operations.types.js").TagListTagsGetResponse;
|
|
209
|
+
/** SEO title or URL matches; response data.search is the normalized string or null. */
|
|
210
|
+
export type SeoContentListResponse = import("./operations.types.js").SeoContentListSeoContentsGetResponse;
|
|
571
211
|
//# sourceMappingURL=types.d.ts.map
|