@endora-commerce/contracts 0.103.1 → 0.105.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/dist/admin-actions.d.ts +5 -0
- package/dist/admin-actions.d.ts.map +1 -1
- package/dist/admin-actions.js +5 -0
- package/dist/admin-actions.js.map +1 -1
- package/dist/admin-contributions.d.ts +41 -0
- package/dist/admin-contributions.d.ts.map +1 -1
- package/dist/admin-contributions.js +58 -0
- package/dist/admin-contributions.js.map +1 -1
- package/dist/admin-notifications.d.ts +37 -0
- package/dist/admin-notifications.d.ts.map +1 -1
- package/dist/admin-users.d.ts +87 -1
- package/dist/admin-users.d.ts.map +1 -1
- package/dist/admin.d.ts +55 -1
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +42 -2
- package/dist/admin.js.map +1 -1
- package/dist/assets-library.d.ts +8 -0
- package/dist/assets-library.d.ts.map +1 -1
- package/dist/assets-library.js +2 -0
- package/dist/assets-library.js.map +1 -1
- package/dist/auth.d.ts +69 -4
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +15 -0
- package/dist/auth.js.map +1 -1
- package/dist/carts.d.ts +26 -1
- package/dist/carts.d.ts.map +1 -1
- package/dist/catalog.d.ts +122 -3
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +165 -0
- package/dist/catalog.js.map +1 -1
- package/dist/common.d.ts +17 -0
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +22 -0
- package/dist/common.js.map +1 -1
- package/dist/credit-limits.d.ts +27 -0
- package/dist/credit-limits.d.ts.map +1 -1
- package/dist/credit-limits.js +41 -0
- package/dist/credit-limits.js.map +1 -1
- package/dist/crm.d.ts +2934 -0
- package/dist/crm.d.ts.map +1 -0
- package/dist/crm.js +1216 -0
- package/dist/crm.js.map +1 -0
- package/dist/custom-fields.d.ts +46 -1
- package/dist/custom-fields.d.ts.map +1 -1
- package/dist/custom-fields.js +34 -6
- package/dist/custom-fields.js.map +1 -1
- package/dist/customer-accounts.d.ts +12 -1
- package/dist/customer-accounts.d.ts.map +1 -1
- package/dist/email.d.ts +19 -2
- package/dist/email.d.ts.map +1 -1
- package/dist/email.js +9 -2
- package/dist/email.js.map +1 -1
- package/dist/errors.d.ts +50 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +53 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/invoices.d.ts +6 -2
- package/dist/invoices.d.ts.map +1 -1
- package/dist/invoices.js +4 -2
- package/dist/invoices.js.map +1 -1
- package/dist/languages.d.ts +39 -4
- package/dist/languages.d.ts.map +1 -1
- package/dist/modules.d.ts +3 -0
- package/dist/modules.d.ts.map +1 -1
- package/dist/orders.d.ts +170 -2
- package/dist/orders.d.ts.map +1 -1
- package/dist/orders.js +78 -3
- package/dist/orders.js.map +1 -1
- package/dist/payment-methods.d.ts +8 -0
- package/dist/payment-methods.d.ts.map +1 -1
- package/dist/payment-methods.js +7 -0
- package/dist/payment-methods.js.map +1 -1
- package/dist/pim-connector.d.ts +1 -1
- package/dist/platform-info.d.ts +19 -0
- package/dist/platform-info.d.ts.map +1 -0
- package/dist/platform-info.js +18 -0
- package/dist/platform-info.js.map +1 -0
- package/dist/product-feeds.d.ts +15 -15
- package/dist/pwa.d.ts +10 -0
- package/dist/pwa.d.ts.map +1 -1
- package/dist/pwa.js +12 -0
- package/dist/pwa.js.map +1 -1
- package/dist/quote-requests.d.ts +66 -4
- package/dist/quote-requests.d.ts.map +1 -1
- package/dist/quote-requests.js +73 -4
- package/dist/quote-requests.js.map +1 -1
- package/dist/sales-channels.d.ts +18 -0
- package/dist/sales-channels.d.ts.map +1 -1
- package/dist/sales-channels.js +17 -0
- package/dist/sales-channels.js.map +1 -1
- package/dist/shipping-methods.d.ts +105 -0
- package/dist/shipping-methods.d.ts.map +1 -1
- package/dist/shipping-methods.js +59 -0
- package/dist/shipping-methods.js.map +1 -1
- package/dist/storefront-cache-tags.d.ts +65 -0
- package/dist/storefront-cache-tags.d.ts.map +1 -0
- package/dist/storefront-cache-tags.js +47 -0
- package/dist/storefront-cache-tags.js.map +1 -0
- package/dist/transactional-emails.d.ts +12 -2
- package/dist/transactional-emails.d.ts.map +1 -1
- package/dist/webhooks.d.ts +71 -0
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +32 -0
- package/dist/webhooks.js.map +1 -1
- package/package.json +1 -1
package/dist/admin-actions.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export declare const KnownIconNameSchema: z.ZodEnum<{
|
|
|
57
57
|
Building2: "Building2";
|
|
58
58
|
Store: "Store";
|
|
59
59
|
ClipboardCheck: "ClipboardCheck";
|
|
60
|
+
CalendarDays: "CalendarDays";
|
|
60
61
|
}>;
|
|
61
62
|
export type KnownIconName = z.infer<typeof KnownIconNameSchema>;
|
|
62
63
|
export declare const ModuleActionSchema: z.ZodObject<{
|
|
@@ -121,6 +122,7 @@ export declare const ModuleActionSchema: z.ZodObject<{
|
|
|
121
122
|
Building2: "Building2";
|
|
122
123
|
Store: "Store";
|
|
123
124
|
ClipboardCheck: "ClipboardCheck";
|
|
125
|
+
CalendarDays: "CalendarDays";
|
|
124
126
|
}>;
|
|
125
127
|
targetRoute: z.ZodString;
|
|
126
128
|
requiredPermission: z.ZodOptional<z.ZodString>;
|
|
@@ -195,6 +197,7 @@ export declare const ModuleActionsManifestSchema: z.ZodArray<z.ZodObject<{
|
|
|
195
197
|
Building2: "Building2";
|
|
196
198
|
Store: "Store";
|
|
197
199
|
ClipboardCheck: "ClipboardCheck";
|
|
200
|
+
CalendarDays: "CalendarDays";
|
|
198
201
|
}>;
|
|
199
202
|
targetRoute: z.ZodString;
|
|
200
203
|
requiredPermission: z.ZodOptional<z.ZodString>;
|
|
@@ -279,6 +282,7 @@ export declare const AdminActionViewSchema: z.ZodObject<{
|
|
|
279
282
|
Building2: "Building2";
|
|
280
283
|
Store: "Store";
|
|
281
284
|
ClipboardCheck: "ClipboardCheck";
|
|
285
|
+
CalendarDays: "CalendarDays";
|
|
282
286
|
}>;
|
|
283
287
|
targetRoute: z.ZodString;
|
|
284
288
|
keywords: z.ZodArray<z.ZodString>;
|
|
@@ -349,6 +353,7 @@ export declare const GetAdminActionsResponseSchema: z.ZodObject<{
|
|
|
349
353
|
Building2: "Building2";
|
|
350
354
|
Store: "Store";
|
|
351
355
|
ClipboardCheck: "ClipboardCheck";
|
|
356
|
+
CalendarDays: "CalendarDays";
|
|
352
357
|
}>;
|
|
353
358
|
targetRoute: z.ZodString;
|
|
354
359
|
keywords: z.ZodArray<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-actions.d.ts","sourceRoot":"","sources":["../src/admin-actions.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"admin-actions.d.ts","sourceRoot":"","sources":["../src/admin-actions.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqK9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAchE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0B7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoBpC,CAAC;AACL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAYhF,eAAO,MAAM,0BAA0B;;;;;iBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAShC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
package/dist/admin-actions.js
CHANGED
|
@@ -183,6 +183,11 @@ export const KnownIconNameSchema = z.enum([
|
|
|
183
183
|
// `Tag` and `FileText` cover `catalog`'s five, and `ListChecks` — the
|
|
184
184
|
// bulk-operations glyph — has been above since feature 020.
|
|
185
185
|
'ClipboardCheck',
|
|
186
|
+
// `specs/143-crm-sales-opportunities/` (US22, §CAL-A) — `crm`'s Calendar
|
|
187
|
+
// sidebar entry and palette action. The list held no calendar glyph — the
|
|
188
|
+
// nearest were `ClipboardList` and `ListChecks` — so the name joins it here
|
|
189
|
+
// instead of the entry borrowing one that happens to be on it already.
|
|
190
|
+
'CalendarDays',
|
|
186
191
|
]);
|
|
187
192
|
// ---------------------------------------------------------------------------
|
|
188
193
|
// Field-level patterns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-actions.js","sourceRoot":"","sources":["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IAClC,WAAW;IACX,OAAO;IACP,qEAAqE;IACrE,8EAA8E;IAC9E,8EAA8E;IAC9E,yEAAyE;IACzE,wEAAwE;IACxE,yEAAyE;IACzE,2EAA2E;IAC3E,sEAAsE;IACtE,4DAA4D;IAC5D,gBAAgB;
|
|
1
|
+
{"version":3,"file":"admin-actions.js","sourceRoot":"","sources":["../src/admin-actions.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,EAAE;AACF,kEAAkE;AAClE,+DAA+D;AAC/D,oEAAoE;AACpE,EAAE;AACF,uEAAuE;AACvE,sEAAsE;AACtE,4CAA4C;AAC5C,oDAAoD;AACpD,wEAAwE;AACxE,uEAAuE;AACvE,gDAAgD;AAChD,0CAA0C;AAC1C,EAAE;AACF,wEAAwE;AACxE,kEAAkE;AAClE,uEAAuE;AACvE,wCAAwC;AAExC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8EAA8E;AAC9E,kEAAkE;AAClE,+DAA+D;AAC/D,yDAAyD;AACzD,8EAA8E;AAE9E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,UAAU;IACV,MAAM;IACN,UAAU;IACV,UAAU;IACV,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;IACN,iBAAiB;IACjB,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,YAAY;IACZ,kBAAkB;IAClB,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,oBAAoB;IACpB,UAAU;IACV,UAAU;IACV,YAAY;IACZ,UAAU;IACV,UAAU;IACV,cAAc;IACd,KAAK;IACL,WAAW;IACX,SAAS;IACT,KAAK;IACL,cAAc;IACd,SAAS;IACT,0EAA0E;IAC1E,2DAA2D;IAC3D,YAAY;IACZ,SAAS;IACT,OAAO;IACP,UAAU;IACV,YAAY;IACZ,OAAO;IACP,YAAY;IACZ,eAAe;IACf,QAAQ;IACR,OAAO;IACP,OAAO;IACP,aAAa;IACb,iBAAiB;IAC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C;QACb,QAAQ,EAAE,4BAA4B;QACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACrC,oEAAoE;QACpE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KAChD,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -56,6 +56,7 @@ export declare const AdminNavSectionNameSchema: z.ZodEnum<{
|
|
|
56
56
|
customers: "customers";
|
|
57
57
|
main: "main";
|
|
58
58
|
sales: "sales";
|
|
59
|
+
crm: "crm";
|
|
59
60
|
inventory: "inventory";
|
|
60
61
|
pricing: "pricing";
|
|
61
62
|
channels: "channels";
|
|
@@ -109,10 +110,13 @@ export declare const AdminZoneNameSchema: z.ZodEnum<{
|
|
|
109
110
|
"organization.detail.after": "organization.detail.after";
|
|
110
111
|
"customer.detail.after": "customer.detail.after";
|
|
111
112
|
"order.detail.payment": "order.detail.payment";
|
|
113
|
+
"order.detail.after": "order.detail.after";
|
|
114
|
+
"quote_request.detail.after": "quote_request.detail.after";
|
|
112
115
|
"order.shipment.row.actions": "order.shipment.row.actions";
|
|
113
116
|
"order.shipments.tab.actions": "order.shipments.tab.actions";
|
|
114
117
|
"order.entry.tabs": "order.entry.tabs";
|
|
115
118
|
"ledger.section.tabs": "ledger.section.tabs";
|
|
119
|
+
"category.content.editor": "category.content.editor";
|
|
116
120
|
}>;
|
|
117
121
|
export type AdminZoneName = z.infer<typeof AdminZoneNameSchema>;
|
|
118
122
|
/** A zone mounted once per product editor. */
|
|
@@ -161,6 +165,26 @@ export interface InvoiceDetailZoneProps {
|
|
|
161
165
|
export interface CategoryEditorZoneProps {
|
|
162
166
|
readonly categoryId: string;
|
|
163
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* A zone mounted once on the category content screen, around one language's
|
|
170
|
+
* Page Builder document.
|
|
171
|
+
*
|
|
172
|
+
* The document is `unknown` on both sides of the seam, as it is in
|
|
173
|
+
* `cmsContentEnvelopeSchema`: the tree is the editor's own wire format, and a
|
|
174
|
+
* host that typed it would be pinning a contributor's library version. The
|
|
175
|
+
* host re-mounts the zone per language (`language` changes with the tab), so a
|
|
176
|
+
* contributor may treat `data` as the document's initial value for that
|
|
177
|
+
* language and report every edit through `onChange`.
|
|
178
|
+
*/
|
|
179
|
+
export interface CategoryContentEditorZoneProps {
|
|
180
|
+
readonly categoryId: string;
|
|
181
|
+
/** The content language being edited — a key of the stored envelope. */
|
|
182
|
+
readonly language: string;
|
|
183
|
+
/** That language's Page Builder document, or `null` when none is stored. */
|
|
184
|
+
readonly data: unknown;
|
|
185
|
+
/** Reports the edited document. The host saves; the contributor never does. */
|
|
186
|
+
readonly onChange: (data: unknown) => void;
|
|
187
|
+
}
|
|
164
188
|
/**
|
|
165
189
|
* A zone mounted once below the sales-channel editor's identity form.
|
|
166
190
|
*
|
|
@@ -205,6 +229,15 @@ export interface CustomerDetailZoneProps {
|
|
|
205
229
|
export interface OrderDetailZoneProps {
|
|
206
230
|
readonly orderId: string;
|
|
207
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* A zone mounted once per quote request, at the end of its detail screen.
|
|
234
|
+
*
|
|
235
|
+
* The request's own id and nothing else: a contribution reads what it shows
|
|
236
|
+
* through routes of its own, and the host hands over none of its data.
|
|
237
|
+
*/
|
|
238
|
+
export interface QuoteRequestDetailZoneProps {
|
|
239
|
+
readonly quoteRequestId: string;
|
|
240
|
+
}
|
|
208
241
|
/**
|
|
209
242
|
* A zone mounted once per shipment attempt on the order detail's Delivery tab.
|
|
210
243
|
*
|
|
@@ -328,10 +361,13 @@ export interface AdminZonePropsMap extends Record<AdminZoneName, object> {
|
|
|
328
361
|
'organization.detail.after': OrganizationDetailZoneProps;
|
|
329
362
|
'customer.detail.after': CustomerDetailZoneProps;
|
|
330
363
|
'order.detail.payment': OrderDetailZoneProps;
|
|
364
|
+
'order.detail.after': OrderDetailZoneProps;
|
|
365
|
+
'quote_request.detail.after': QuoteRequestDetailZoneProps;
|
|
331
366
|
'order.shipment.row.actions': OrderShipmentRowZoneProps;
|
|
332
367
|
'order.shipments.tab.actions': OrderShipmentsActionsZoneProps;
|
|
333
368
|
'order.entry.tabs': OrderEntryTabsZoneProps;
|
|
334
369
|
'ledger.section.tabs': LedgerSectionTabsZoneProps;
|
|
370
|
+
'category.content.editor': CategoryContentEditorZoneProps;
|
|
335
371
|
}
|
|
336
372
|
/** The props of one zone, by name. */
|
|
337
373
|
export type AdminZoneProps<Z extends AdminZoneName> = AdminZonePropsMap[Z];
|
|
@@ -420,6 +456,7 @@ export declare const AdminNavDeclarationSchema: z.ZodObject<{
|
|
|
420
456
|
Building2: "Building2";
|
|
421
457
|
Store: "Store";
|
|
422
458
|
ClipboardCheck: "ClipboardCheck";
|
|
459
|
+
CalendarDays: "CalendarDays";
|
|
423
460
|
}>;
|
|
424
461
|
section: z.ZodEnum<{
|
|
425
462
|
content: "content";
|
|
@@ -429,6 +466,7 @@ export declare const AdminNavDeclarationSchema: z.ZodObject<{
|
|
|
429
466
|
customers: "customers";
|
|
430
467
|
main: "main";
|
|
431
468
|
sales: "sales";
|
|
469
|
+
crm: "crm";
|
|
432
470
|
inventory: "inventory";
|
|
433
471
|
pricing: "pricing";
|
|
434
472
|
channels: "channels";
|
|
@@ -460,10 +498,13 @@ export declare const AdminZoneContributionSchema: z.ZodObject<{
|
|
|
460
498
|
"organization.detail.after": "organization.detail.after";
|
|
461
499
|
"customer.detail.after": "customer.detail.after";
|
|
462
500
|
"order.detail.payment": "order.detail.payment";
|
|
501
|
+
"order.detail.after": "order.detail.after";
|
|
502
|
+
"quote_request.detail.after": "quote_request.detail.after";
|
|
463
503
|
"order.shipment.row.actions": "order.shipment.row.actions";
|
|
464
504
|
"order.shipments.tab.actions": "order.shipments.tab.actions";
|
|
465
505
|
"order.entry.tabs": "order.entry.tabs";
|
|
466
506
|
"ledger.section.tabs": "ledger.section.tabs";
|
|
507
|
+
"category.content.editor": "category.content.editor";
|
|
467
508
|
}>;
|
|
468
509
|
weight: z.ZodNumber;
|
|
469
510
|
requiredPermission: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-contributions.d.ts","sourceRoot":"","sources":["../src/admin-contributions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AA+B5D;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,6DAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMhF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"admin-contributions.d.ts","sourceRoot":"","sources":["../src/admin-contributions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AA+B5D;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,6DAGtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAMhF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;EAiBpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAM5E;;;;;;;;;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AA4B;;;;;;iBAKvC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAC;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEjF,wDAAwD;AACxD,MAAM,WAAW,qBAAsB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC;IACxF;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;CAC3C;AAED,qCAAqC;AACrC,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,iFAAiF;AACjF,MAAM,WAAW,qBAAsB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC;IACxF,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;CAC3C;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,sBAAuB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC;IAC1F,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;CAC3C;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IACnD,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC9C,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAClD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACrD"}
|
|
@@ -81,6 +81,10 @@ export const PermissionRequirementSchema = z.union([
|
|
|
81
81
|
export const AdminNavSectionNameSchema = z.enum([
|
|
82
82
|
'main',
|
|
83
83
|
'sales',
|
|
84
|
+
// Owner ruling of 2026-10-05 (`specs/143-crm-sales-opportunities/`, research
|
|
85
|
+
// R-19): the CRM screens get a group of their own. The section is the
|
|
86
|
+
// shell's, declared here and in `AppShell.tsx`; the `crm` module joins it.
|
|
87
|
+
'crm',
|
|
84
88
|
'catalog',
|
|
85
89
|
'inventory',
|
|
86
90
|
'pricing',
|
|
@@ -308,6 +312,37 @@ export const AdminZoneNameSchema = z.enum([
|
|
|
308
312
|
* whose recorded retiring condition is this member.
|
|
309
313
|
*/
|
|
310
314
|
'order.detail.payment',
|
|
315
|
+
/**
|
|
316
|
+
* The stack of panels an order's detail screen ends with.
|
|
317
|
+
*
|
|
318
|
+
* Mounted **once** per order, below the tab panels, so a contribution is
|
|
319
|
+
* visible whichever tab is open — on `organization.detail.after`'s terms and
|
|
320
|
+
* for its reasons: every contribution renders its own card, the host puts no
|
|
321
|
+
* chrome around the zone, and an empty zone renders nothing at all, so the
|
|
322
|
+
* screen is identical to one without the member. Props:
|
|
323
|
+
* {@link OrderDetailZoneProps}, the order's id and nothing else (Z3).
|
|
324
|
+
*
|
|
325
|
+
* It is not `order.detail.payment`: that member is the body of one tab and
|
|
326
|
+
* is named for what fills it. This one is for a module that has something to
|
|
327
|
+
* say about the order as a whole. The first contributor is `crm`'s
|
|
328
|
+
* linked-opportunity panel; `orders` names no contributor and gains no edge.
|
|
329
|
+
*/
|
|
330
|
+
'order.detail.after',
|
|
331
|
+
/**
|
|
332
|
+
* The stack of panels a quote request's detail screen ends with.
|
|
333
|
+
*
|
|
334
|
+
* Mounted **once** per quote request, below the card that holds its tabs, so
|
|
335
|
+
* a contribution is visible whichever tab is open — on
|
|
336
|
+
* `order.detail.after`'s terms and for its reasons: every contribution
|
|
337
|
+
* renders its own card, the host puts no chrome around the zone, and an
|
|
338
|
+
* empty zone renders nothing at all, so the screen is identical to one
|
|
339
|
+
* without the member. Props: {@link QuoteRequestDetailZoneProps}, the
|
|
340
|
+
* request's id and nothing else (Z3).
|
|
341
|
+
*
|
|
342
|
+
* The first contributor is `crm`'s linked-opportunity panel;
|
|
343
|
+
* `quote_requests` names no contributor and gains no edge.
|
|
344
|
+
*/
|
|
345
|
+
'quote_request.detail.after',
|
|
311
346
|
/**
|
|
312
347
|
* The per-row action cell of the order detail's Delivery tab.
|
|
313
348
|
*
|
|
@@ -410,6 +445,29 @@ export const AdminZoneNameSchema = z.enum([
|
|
|
410
445
|
* `admin/test/modules/invoice_ledger/ledger-section-tabs-zone.test.tsx`.
|
|
411
446
|
*/
|
|
412
447
|
'ledger.section.tabs',
|
|
448
|
+
/**
|
|
449
|
+
* The editor of a category's storefront page content, one language at a time.
|
|
450
|
+
*
|
|
451
|
+
* Mounted **once** on `catalog`'s category content screen
|
|
452
|
+
* (`CategoryContentPage.tsx`), and named from the host's own words for the
|
|
453
|
+
* place (Z14): the screen is the category's *content*, and the place is its
|
|
454
|
+
* *editor*. Props: {@link CategoryContentEditorZoneProps}.
|
|
455
|
+
*
|
|
456
|
+
* **A zone that carries a value in and a value back, and that is the
|
|
457
|
+
* decision this member records rather than an accident of it.** Z1 reads a
|
|
458
|
+
* `data` / `onChange` signature as a published component the consumer
|
|
459
|
+
* imports, which is how `blog` reaches `cms`' `PageBuilderEditor` — and
|
|
460
|
+
* `blog` can, because it declares `cms` in its manifest `dependencies`.
|
|
461
|
+
* `catalog` cannot: it is `nonDeactivatable` and `cms` is switchable, so a
|
|
462
|
+
* declared edge would make `cms.enabled` a dead switch, and an undeclared
|
|
463
|
+
* import would make every instance that installs the catalog install the
|
|
464
|
+
* CMS to compile its admin. So the direction is inverted: the host owns the
|
|
465
|
+
* document, its storage and its save, and whoever owns a Page Builder
|
|
466
|
+
* contributes the canvas. `catalog` names no module, and a platform with no
|
|
467
|
+
* contributor shows the host's own empty state (Z15) — the content already
|
|
468
|
+
* stored stays stored and keeps rendering.
|
|
469
|
+
*/
|
|
470
|
+
'category.content.editor',
|
|
413
471
|
]);
|
|
414
472
|
// ---------------------------------------------------------------------------
|
|
415
473
|
// Declarations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-contributions.js","sourceRoot":"","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+BAA+B;IAC/B;;;;OAIG;IACH,+BAA+B;IAC/B;;;;;;;;OAQG;IACH,4BAA4B;IAC5B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,mCAAmC;IACnC;;;;;;;;OAQG;IACH,kCAAkC;IAClC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,sBAAsB;IACtB;;;;;;;;;;;;;;OAcG;IACH,uBAAuB;IACvB;;;;;;;;OAQG;IACH,8BAA8B;IAC9B;;;;;;;;;;;OAWG;IACH,yBAAyB;IACzB;;;;;;;;;;;OAWG;IACH,4BAA4B;IAC5B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,2BAA2B;IAC3B;;;;;;;;;;OAUG;IACH,uBAAuB;IACvB;;;;;;;;;;;;;;OAcG;IACH,sBAAsB;IACtB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,4BAA4B;IAC5B;;;;;;;;;;;;;;;;OAgBG;IACH,6BAA6B;IAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,kBAAkB;IAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,qBAAqB;
|
|
1
|
+
{"version":3,"file":"admin-contributions.js","sourceRoot":"","sources":["../src/admin-contributions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,8EAA8E;AAC9E,uBAAuB;AACvB,8EAA8E;AAE9E;;;;;;GAMG;AACH,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAEhD;;;;;;;;;GASG;AACH,MAAM,gBAAgB,GAAG,6CAA6C,CAAC;AAEvE,8EAA8E;AAC9E,yBAAyB;AACzB,8EAA8E;AAE9E;;;;;;;;GAQG;AACH,MAAM,CAAC,MA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,EAAE,mBAAmB;IACzB,OAAO,EAAE,yBAAyB;IAClC,+EAA+E;IAC/E,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACxB,kBAAkB,EAAE,2BAA2B,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,mBAAmB;IACzB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACxB,kBAAkB,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IAC1D;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,EAAE,CAAC;SACL,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;SACzE,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,WAAW,EAAE,iEAAiE,CAAC;IACxF,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC,CAAC"}
|
|
@@ -13,6 +13,30 @@
|
|
|
13
13
|
* Plain TypeScript rather than Zod: this describes an in-process call.
|
|
14
14
|
*/
|
|
15
15
|
export type AdminNotificationAudience = 'admin_user' | 'all_admins';
|
|
16
|
+
/**
|
|
17
|
+
* A translatable sentence: where its template is, and what fills it.
|
|
18
|
+
*
|
|
19
|
+
* One entry is read by many administrators, each in a language of their own,
|
|
20
|
+
* and long after it was written — so the writer cannot translate it
|
|
21
|
+
* (`specs/conventions/module-i18n.md`, the case where the reader is plural or
|
|
22
|
+
* reads later). It ships the address of the template instead, and the Admin UI
|
|
23
|
+
* resolves it in the reader's language when it draws the entry.
|
|
24
|
+
*
|
|
25
|
+
* `scope` and `key` are the two arguments of the admin translation lookup: the
|
|
26
|
+
* bundle namespace — a module id, or `core` — and a key inside that bundle.
|
|
27
|
+
* `params` fill the template's `{name}` placeholders and are strings and
|
|
28
|
+
* numbers only: they are drawn as text, never as markup.
|
|
29
|
+
*
|
|
30
|
+
* A message never travels alone. The finished English sentence beside it —
|
|
31
|
+
* `title`, `body` — is what is shown whenever the template cannot be resolved:
|
|
32
|
+
* its module is switched off or not installed, the bundle has no such key, or
|
|
33
|
+
* the consumer predates this field.
|
|
34
|
+
*/
|
|
35
|
+
export interface AdminNotificationMessage {
|
|
36
|
+
scope: string;
|
|
37
|
+
key: string;
|
|
38
|
+
params?: Record<string, string | number>;
|
|
39
|
+
}
|
|
16
40
|
export interface RecordAdminNotificationInput {
|
|
17
41
|
audience: AdminNotificationAudience;
|
|
18
42
|
/** Required when `audience` is `admin_user`; rejected otherwise. */
|
|
@@ -20,9 +44,14 @@ export interface RecordAdminNotificationInput {
|
|
|
20
44
|
kind: string;
|
|
21
45
|
subjectType?: string | null;
|
|
22
46
|
subjectId?: string | null;
|
|
47
|
+
/** The finished English sentence — always, also beside a `titleMessage`. */
|
|
23
48
|
title: string;
|
|
24
49
|
body?: string | null;
|
|
25
50
|
linkPath?: string | null;
|
|
51
|
+
/** `title`, translatable. Optional: a caller that omits it is shown `title` as before. */
|
|
52
|
+
titleMessage?: AdminNotificationMessage | null;
|
|
53
|
+
/** `body`, translatable. Rejected without a `body` to fall back to. */
|
|
54
|
+
bodyMessage?: AdminNotificationMessage | null;
|
|
26
55
|
}
|
|
27
56
|
/** What was recorded, for a caller that wants to correlate its own log. */
|
|
28
57
|
export interface AdminNotificationRecord {
|
|
@@ -36,6 +65,14 @@ export interface AdminNotificationRecord {
|
|
|
36
65
|
body: string | null;
|
|
37
66
|
linkPath: string | null;
|
|
38
67
|
createdAt: Date;
|
|
68
|
+
/**
|
|
69
|
+
* Optional in the type so that an implementation written before the field
|
|
70
|
+
* existed — a test double, another package's fake — still satisfies the
|
|
71
|
+
* port. `admin_notifications` itself always answers it, `null` when the
|
|
72
|
+
* entry carries no message.
|
|
73
|
+
*/
|
|
74
|
+
titleMessage?: AdminNotificationMessage | null;
|
|
75
|
+
bodyMessage?: AdminNotificationMessage | null;
|
|
39
76
|
}
|
|
40
77
|
/**
|
|
41
78
|
* Container name: `adminNotificationRecordPort`. Owner: `admin_notifications`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-notifications.d.ts","sourceRoot":"","sources":["../src/admin-notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG,YAAY,CAAC;AAEpE,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,yBAAyB,CAAC;IACpC,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"admin-notifications.d.ts","sourceRoot":"","sources":["../src/admin-notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG,YAAY,CAAC;AAEpE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,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AAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAC/E"}
|
package/dist/admin-users.d.ts
CHANGED
|
@@ -99,7 +99,93 @@ export interface AdminUserPreferencePort {
|
|
|
99
99
|
* `nonDeactivatable` never enters one.
|
|
100
100
|
*/
|
|
101
101
|
export interface AdminPasswordVerificationPort {
|
|
102
|
-
|
|
102
|
+
/**
|
|
103
|
+
* `context` says where the request came from, when the caller knows. The
|
|
104
|
+
* comparison goes through {@link AdminAuthenticationThrottlePort}, so
|
|
105
|
+
* repeated wrong passwords here are throttled together with the ones typed
|
|
106
|
+
* at sign-in, and the call rejects with 429
|
|
107
|
+
* `ADMIN_AUTHENTICATION_THROTTLED` while a delay is running.
|
|
108
|
+
*/
|
|
109
|
+
verifyPassword(adminUserId: string, password: string, context?: AdminAuthenticationOrigin): Promise<boolean>;
|
|
110
|
+
}
|
|
111
|
+
/** Where an attempt came from, as far as the caller knows. */
|
|
112
|
+
export interface AdminAuthenticationOrigin {
|
|
113
|
+
/** The address the request came from. Absent, only the account is counted. */
|
|
114
|
+
readonly ip?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The **verified** value of the `ADMIN_KNOWN_DEVICE_COOKIE_NAME` cookie —
|
|
117
|
+
* what `request.unsignCookie(...)` returned as valid — or absent. Never the
|
|
118
|
+
* raw cookie: the signature is the only thing that stops a stranger writing
|
|
119
|
+
* one. An attempt from a device the account has completed a sign-in on is
|
|
120
|
+
* counted against that device's own budget and is not refused by the
|
|
121
|
+
* account-wide one.
|
|
122
|
+
*/
|
|
123
|
+
readonly knownDevice?: string;
|
|
124
|
+
}
|
|
125
|
+
/** Which credential of an administrator account an attempt presents. */
|
|
126
|
+
export type AdminAuthenticationFactor = 'password' | 'second_factor';
|
|
127
|
+
/** One attempt to prove a credential of an administrator account. */
|
|
128
|
+
export interface AdminAuthenticationAttempt extends AdminAuthenticationOrigin {
|
|
129
|
+
readonly factor: AdminAuthenticationFactor;
|
|
130
|
+
/**
|
|
131
|
+
* What identifies the account on this route, the same string every time: the
|
|
132
|
+
* normalised e-mail address for a password — which at sign-in may belong to
|
|
133
|
+
* no account at all — and the administrator id for a second factor.
|
|
134
|
+
*/
|
|
135
|
+
readonly account: string;
|
|
136
|
+
}
|
|
137
|
+
/** What the credential check found. */
|
|
138
|
+
export interface AdminAuthenticationCheckResult {
|
|
139
|
+
readonly ok: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* The administrator the attempt was made against, when there is one. It is
|
|
142
|
+
* what a throttle activation is audited under; an attempt against an address
|
|
143
|
+
* that belongs to nobody leaves it out.
|
|
144
|
+
*/
|
|
145
|
+
readonly adminUserId?: string;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The throttle on repeated wrong administrator credentials.
|
|
149
|
+
*
|
|
150
|
+
* Container name: `adminAuthenticationThrottlePort`. Owner: `admin_users`.
|
|
151
|
+
*
|
|
152
|
+
* One method, wrapped around the comparison itself, so a route adopts it with
|
|
153
|
+
* one call:
|
|
154
|
+
*
|
|
155
|
+
* ```ts
|
|
156
|
+
* const ok = await throttle.verify(
|
|
157
|
+
* { factor: 'password', account: admin.email, ip: request.ip, knownDevice },
|
|
158
|
+
* async () => ({ ok: await verifyPassword(admin.passwordHash, typed), adminUserId: admin.id }),
|
|
159
|
+
* );
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* `verify` takes the attempt **before** it runs `check`. While a delay is
|
|
163
|
+
* running, or while every slot is held by an attempt still being verified, it
|
|
164
|
+
* rejects with an `HttpError` — 429 `ADMIN_AUTHENTICATION_THROTTLED`, a
|
|
165
|
+
* `Retry-After` header and `details.retryAfterSeconds` — and does not run
|
|
166
|
+
* `check` at all, so a correct credential and a wrong one are answered
|
|
167
|
+
* identically. Otherwise it resolves to `check`'s `ok`: `true` forgets the
|
|
168
|
+
* failures counted so far, `false` counts one more. A `check` that throws is
|
|
169
|
+
* withdrawn and counted as neither. When the counters cannot be reached it
|
|
170
|
+
* rejects with 503 `ADMIN_AUTHENTICATION_UNAVAILABLE`.
|
|
171
|
+
*
|
|
172
|
+
* `issueKnownDevice` mints the value of the known-device cookie. Call it only
|
|
173
|
+
* after a **completed** sign-in — the password and, where one is asked for,
|
|
174
|
+
* the second factor — and set what it returns as
|
|
175
|
+
* `ADMIN_KNOWN_DEVICE_COOKIE_NAME`, signed and `httpOnly`. `null` means the
|
|
176
|
+
* account is not one a device can be known to (it is gone or inactive); set
|
|
177
|
+
* nothing then. The value stops being honoured when the account's password
|
|
178
|
+
* changes or the account is deactivated.
|
|
179
|
+
*
|
|
180
|
+
* `check` reports "no such account" as `{ ok: false }` rather than by throwing,
|
|
181
|
+
* which is what makes an unknown address throttle exactly like a real one.
|
|
182
|
+
*
|
|
183
|
+
* **Owner off:** the seam fails closed — resolving this port throws
|
|
184
|
+
* `ModuleDisabledError` and the call answers 503 `MODULE_DISABLED`.
|
|
185
|
+
*/
|
|
186
|
+
export interface AdminAuthenticationThrottlePort {
|
|
187
|
+
verify(attempt: AdminAuthenticationAttempt, check: () => Promise<AdminAuthenticationCheckResult>): Promise<boolean>;
|
|
188
|
+
issueKnownDevice(adminUserId: string): Promise<string | null>;
|
|
103
189
|
}
|
|
104
190
|
export interface ImpersonationStartInput {
|
|
105
191
|
adminUserId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-users.d.ts","sourceRoot":"","sources":["../src/admin-users.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC9B,kFAAkF;IAClF,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAA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AAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpE"}
|
package/dist/admin.d.ts
CHANGED
|
@@ -33,6 +33,48 @@ export declare const adminRoleSchema: z.ZodObject<{
|
|
|
33
33
|
updatedAt: z.ZodString;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
export type AdminRole = z.infer<typeof adminRoleSchema>;
|
|
36
|
+
/**
|
|
37
|
+
* `GET /api/v1/admin/me` — the signed-in administrator, as the Admin UI's auth
|
|
38
|
+
* gate reads it. Gated on a session and on no permission code, so everything
|
|
39
|
+
* here is something every administrator is entitled to know about themselves.
|
|
40
|
+
*
|
|
41
|
+
* `idleLogoutMinutes` is the operator's `admin.idle_logout_minutes` setting.
|
|
42
|
+
* It travels here rather than through the settings admin API because that API
|
|
43
|
+
* requires `settings:read`, and an inactivity policy binds an administrator
|
|
44
|
+
* whether or not their role may open the settings screen. `null` means the
|
|
45
|
+
* backend could not resolve a usable value (the setting is not registered, or
|
|
46
|
+
* holds something that is not a positive number); a backend older than this
|
|
47
|
+
* field omits it. In both cases the Admin UI applies its built-in default.
|
|
48
|
+
*/
|
|
49
|
+
export declare const adminMeResponseSchema: z.ZodObject<{
|
|
50
|
+
adminUser: z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
email: z.ZodString;
|
|
53
|
+
firstName: z.ZodString;
|
|
54
|
+
lastName: z.ZodString;
|
|
55
|
+
adminRoleId: z.ZodNullable<z.ZodString>;
|
|
56
|
+
twoFactorEnabled: z.ZodBoolean;
|
|
57
|
+
status: z.ZodEnum<{
|
|
58
|
+
active: "active";
|
|
59
|
+
inactive: "inactive";
|
|
60
|
+
}>;
|
|
61
|
+
lastLoginAt: z.ZodNullable<z.ZodString>;
|
|
62
|
+
createdAt: z.ZodString;
|
|
63
|
+
updatedAt: z.ZodString;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
role: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
code: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
70
|
+
requiresTwoFactor: z.ZodBoolean;
|
|
71
|
+
createdAt: z.ZodString;
|
|
72
|
+
updatedAt: z.ZodString;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
75
|
+
idleLogoutMinutes: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type AdminMeResponse = z.infer<typeof adminMeResponseSchema>;
|
|
36
78
|
export declare const adminLoginRequestSchema: z.ZodObject<{
|
|
37
79
|
email: z.ZodString;
|
|
38
80
|
password: z.ZodString;
|
|
@@ -78,12 +120,24 @@ export type UpdateAdminUserRequest = z.infer<typeof updateAdminUserRequestSchema
|
|
|
78
120
|
* Self-update payload — every authenticated admin can edit their own
|
|
79
121
|
* first/last name and rotate their password without needing the
|
|
80
122
|
* `admin_users:manage` permission. Role and status are intentionally
|
|
81
|
-
* NOT exposed here.
|
|
123
|
+
* NOT exposed here, and neither is the e-mail address.
|
|
124
|
+
*
|
|
125
|
+
* `password` is the new password, and it is a credential change: a payload
|
|
126
|
+
* that carries it MUST carry `currentPassword` as well, which the route
|
|
127
|
+
* verifies before it changes anything. A session alone does not prove the
|
|
128
|
+
* caller knows the password — an unattended browser holds one too. A payload
|
|
129
|
+
* without `password` needs no `currentPassword`, and one sent anyway is
|
|
130
|
+
* ignored.
|
|
131
|
+
*
|
|
132
|
+
* `currentPassword` is bounded but otherwise unconstrained: it is compared, not
|
|
133
|
+
* stored, and the password policy it was created under is not this schema's to
|
|
134
|
+
* restate.
|
|
82
135
|
*/
|
|
83
136
|
export declare const updateAdminUserSelfRequestSchema: z.ZodObject<{
|
|
84
137
|
firstName: z.ZodOptional<z.ZodString>;
|
|
85
138
|
lastName: z.ZodOptional<z.ZodString>;
|
|
86
139
|
password: z.ZodOptional<z.ZodString>;
|
|
140
|
+
currentPassword: z.ZodOptional<z.ZodString>;
|
|
87
141
|
}, z.core.$strict>;
|
|
88
142
|
export type UpdateAdminUserSelfRequest = z.infer<typeof updateAdminUserSelfRequestSchema>;
|
|
89
143
|
/**
|
package/dist/admin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;GAOG;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;iBAW1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;;;;iBAQ1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;iBAS3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAI1F,eAAO,MAAM,4BAA4B;;;;;;iBAMvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,4BAA4B;;;;;;;;kBAO9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../src/admin.ts"],"names":[],"mappings":"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