@endora-commerce/contracts 0.108.0 → 0.110.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/actor.d.ts +16 -0
- package/dist/actor.d.ts.map +1 -1
- package/dist/addresses.d.ts +35 -0
- package/dist/addresses.d.ts.map +1 -1
- package/dist/addresses.js +8 -1
- package/dist/addresses.js.map +1 -1
- package/dist/admin-actions.d.ts +12 -3
- package/dist/admin-actions.d.ts.map +1 -1
- package/dist/admin-actions.js +34 -3
- package/dist/admin-actions.js.map +1 -1
- package/dist/admin-contributions.d.ts +94 -10
- package/dist/admin-contributions.d.ts.map +1 -1
- package/dist/admin-contributions.js +65 -0
- package/dist/admin-contributions.js.map +1 -1
- package/dist/admin-notifications.d.ts +17 -1
- package/dist/admin-notifications.d.ts.map +1 -1
- package/dist/admin-preferences.d.ts +108 -0
- package/dist/admin-preferences.d.ts.map +1 -0
- package/dist/admin-preferences.js +133 -0
- package/dist/admin-preferences.js.map +1 -0
- package/dist/admin-roles.d.ts +8 -2
- package/dist/admin-roles.d.ts.map +1 -1
- package/dist/admin-roles.js.map +1 -1
- package/dist/admin-users.d.ts +9 -0
- package/dist/admin-users.d.ts.map +1 -1
- package/dist/admin.d.ts +92 -5
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +86 -3
- package/dist/admin.js.map +1 -1
- package/dist/assets-library.d.ts +123 -3
- package/dist/assets-library.d.ts.map +1 -1
- package/dist/assets-library.js +11 -3
- package/dist/assets-library.js.map +1 -1
- package/dist/audit-logs.d.ts +12 -0
- package/dist/audit-logs.d.ts.map +1 -1
- package/dist/audit-logs.js +12 -0
- package/dist/audit-logs.js.map +1 -1
- package/dist/blog.d.ts +431 -14
- package/dist/blog.d.ts.map +1 -1
- package/dist/blog.js +251 -7
- package/dist/blog.js.map +1 -1
- package/dist/carts.d.ts +507 -92
- package/dist/carts.d.ts.map +1 -1
- package/dist/carts.js +197 -21
- package/dist/carts.js.map +1 -1
- package/dist/catalog.d.ts +515 -144
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +356 -68
- package/dist/catalog.js.map +1 -1
- package/dist/cms-brand.d.ts +2233 -0
- package/dist/cms-brand.d.ts.map +1 -0
- package/dist/cms-brand.js +311 -0
- package/dist/cms-brand.js.map +1 -0
- package/dist/cms-contact-form.d.ts +55 -0
- package/dist/cms-contact-form.d.ts.map +1 -0
- package/dist/cms-contact-form.js +100 -0
- package/dist/cms-contact-form.js.map +1 -0
- package/dist/cms.d.ts +576 -17
- package/dist/cms.d.ts.map +1 -1
- package/dist/cms.js +251 -0
- package/dist/cms.js.map +1 -1
- package/dist/common.d.ts +23 -6
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +25 -2
- package/dist/common.js.map +1 -1
- package/dist/comparisons.d.ts +28 -21
- package/dist/comparisons.d.ts.map +1 -1
- package/dist/comparisons.js +2 -1
- package/dist/comparisons.js.map +1 -1
- package/dist/credit-limits.d.ts +1 -0
- package/dist/credit-limits.d.ts.map +1 -1
- package/dist/credit-limits.js +14 -0
- package/dist/credit-limits.js.map +1 -1
- package/dist/crm-rich-text.d.ts +10 -61
- package/dist/crm-rich-text.d.ts.map +1 -1
- package/dist/crm-rich-text.js +10 -300
- package/dist/crm-rich-text.js.map +1 -1
- package/dist/crm.d.ts +173 -115
- package/dist/crm.d.ts.map +1 -1
- package/dist/crm.js +35 -88
- package/dist/crm.js.map +1 -1
- package/dist/custom-fields.d.ts +54 -22
- package/dist/custom-fields.d.ts.map +1 -1
- package/dist/custom-fields.js +21 -1
- package/dist/custom-fields.js.map +1 -1
- package/dist/customer-accounts.d.ts +216 -22
- package/dist/customer-accounts.d.ts.map +1 -1
- package/dist/customer-accounts.js +70 -0
- package/dist/customer-accounts.js.map +1 -1
- package/dist/customers.d.ts +40 -73
- package/dist/customers.d.ts.map +1 -1
- package/dist/customers.js +45 -10
- package/dist/customers.js.map +1 -1
- package/dist/document-templates.d.ts +35 -23
- package/dist/document-templates.d.ts.map +1 -1
- package/dist/document-values.d.ts +8 -0
- package/dist/document-values.d.ts.map +1 -1
- package/dist/document-values.js +24 -6
- package/dist/document-values.js.map +1 -1
- package/dist/email.d.ts +5 -0
- package/dist/email.d.ts.map +1 -1
- package/dist/errors.d.ts +224 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +269 -1
- package/dist/errors.js.map +1 -1
- package/dist/forms-logic.d.ts +79 -0
- package/dist/forms-logic.d.ts.map +1 -0
- package/dist/forms-logic.fixtures.d.ts +52 -0
- package/dist/forms-logic.fixtures.d.ts.map +1 -0
- package/dist/forms-logic.fixtures.js +610 -0
- package/dist/forms-logic.fixtures.js.map +1 -0
- package/dist/forms-logic.js +699 -0
- package/dist/forms-logic.js.map +1 -0
- package/dist/forms.d.ts +9833 -0
- package/dist/forms.d.ts.map +1 -0
- package/dist/forms.js +827 -0
- package/dist/forms.js.map +1 -0
- package/dist/import-export.d.ts +180 -0
- package/dist/import-export.d.ts.map +1 -1
- package/dist/import-export.js +60 -0
- package/dist/import-export.js.map +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory.d.ts +6 -6
- package/dist/invoice-ledger.d.ts +7 -7
- package/dist/invoices.d.ts +6 -2
- package/dist/invoices.d.ts.map +1 -1
- package/dist/invoices.js +7 -0
- package/dist/invoices.js.map +1 -1
- package/dist/megamenu.d.ts +674 -0
- package/dist/megamenu.d.ts.map +1 -1
- package/dist/megamenu.js +96 -3
- package/dist/megamenu.js.map +1 -1
- package/dist/mfa.d.ts +125 -4
- package/dist/mfa.d.ts.map +1 -1
- package/dist/mfa.js +54 -2
- package/dist/mfa.js.map +1 -1
- package/dist/modules.d.ts +44 -5
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +73 -0
- package/dist/modules.js.map +1 -1
- package/dist/money-decimal.d.ts +54 -0
- package/dist/money-decimal.d.ts.map +1 -1
- package/dist/money-decimal.js +95 -0
- package/dist/money-decimal.js.map +1 -1
- package/dist/newsletter.d.ts +7 -7
- package/dist/orders.d.ts +128 -10
- package/dist/orders.d.ts.map +1 -1
- package/dist/orders.js +74 -4
- package/dist/orders.js.map +1 -1
- package/dist/organization-registry-lookup.d.ts +362 -0
- package/dist/organization-registry-lookup.d.ts.map +1 -0
- package/dist/organization-registry-lookup.js +196 -0
- package/dist/organization-registry-lookup.js.map +1 -0
- package/dist/organization-roles.d.ts +340 -0
- package/dist/organization-roles.d.ts.map +1 -0
- package/dist/organization-roles.js +211 -0
- package/dist/organization-roles.js.map +1 -0
- package/dist/organizations.d.ts +123 -89
- package/dist/organizations.d.ts.map +1 -1
- package/dist/organizations.js +68 -24
- package/dist/organizations.js.map +1 -1
- package/dist/page-builder-props.d.ts +1401 -0
- package/dist/page-builder-props.d.ts.map +1 -0
- package/dist/page-builder-props.js +266 -0
- package/dist/page-builder-props.js.map +1 -0
- package/dist/page-builder-values.d.ts +95 -0
- package/dist/page-builder-values.d.ts.map +1 -0
- package/dist/page-builder-values.js +164 -0
- package/dist/page-builder-values.js.map +1 -0
- package/dist/pim-connector.d.ts +6 -2
- package/dist/pim-connector.d.ts.map +1 -1
- package/dist/pim-connector.js +6 -2
- package/dist/pim-connector.js.map +1 -1
- package/dist/pim-field-path.d.ts +5 -1
- package/dist/pim-field-path.d.ts.map +1 -1
- package/dist/pim-field-path.js +37 -81
- package/dist/pim-field-path.js.map +1 -1
- package/dist/pim-locale-mapping.d.ts +131 -0
- package/dist/pim-locale-mapping.d.ts.map +1 -0
- package/dist/pim-locale-mapping.js +193 -0
- package/dist/pim-locale-mapping.js.map +1 -0
- package/dist/platform-language.d.ts +9 -0
- package/dist/platform-language.d.ts.map +1 -1
- package/dist/platform-language.js +14 -0
- package/dist/platform-language.js.map +1 -1
- package/dist/price-books.d.ts +47 -43
- package/dist/price-books.d.ts.map +1 -1
- package/dist/price-books.js +6 -2
- package/dist/price-books.js.map +1 -1
- package/dist/price-lists.d.ts +48 -14
- package/dist/price-lists.d.ts.map +1 -1
- package/dist/price-lists.js +24 -1
- package/dist/price-lists.js.map +1 -1
- package/dist/product-feeds.d.ts +144 -84
- package/dist/product-feeds.d.ts.map +1 -1
- package/dist/product-feeds.js +23 -0
- package/dist/product-feeds.js.map +1 -1
- package/dist/product-scope-model.d.ts +161 -0
- package/dist/product-scope-model.d.ts.map +1 -0
- package/dist/product-scope-model.js +161 -0
- package/dist/product-scope-model.js.map +1 -0
- package/dist/product-scope-overrides.d.ts +0 -103
- package/dist/product-scope-overrides.d.ts.map +1 -1
- package/dist/product-scope-overrides.js +0 -54
- package/dist/product-scope-overrides.js.map +1 -1
- package/dist/product-scoped-values.d.ts +2610 -0
- package/dist/product-scoped-values.d.ts.map +1 -0
- package/dist/product-scoped-values.js +425 -0
- package/dist/product-scoped-values.js.map +1 -0
- package/dist/product-scopes.d.ts +746 -0
- package/dist/product-scopes.d.ts.map +1 -0
- package/dist/product-scopes.js +436 -0
- package/dist/product-scopes.js.map +1 -0
- package/dist/product-summary-text.d.ts +23 -0
- package/dist/product-summary-text.d.ts.map +1 -0
- package/dist/product-summary-text.js +64 -0
- package/dist/product-summary-text.js.map +1 -0
- package/dist/product-tax-rates.d.ts +38 -0
- package/dist/product-tax-rates.d.ts.map +1 -0
- package/dist/product-tax-rates.js +45 -0
- package/dist/product-tax-rates.js.map +1 -0
- package/dist/product-url-keys.d.ts +210 -0
- package/dist/product-url-keys.d.ts.map +1 -0
- package/dist/product-url-keys.js +200 -0
- package/dist/product-url-keys.js.map +1 -0
- package/dist/product-value-resolver.d.ts +37 -60
- package/dist/product-value-resolver.d.ts.map +1 -1
- package/dist/product-value-resolver.js +36 -96
- package/dist/product-value-resolver.js.map +1 -1
- package/dist/projects.d.ts +2370 -0
- package/dist/projects.d.ts.map +1 -0
- package/dist/projects.js +843 -0
- package/dist/projects.js.map +1 -0
- package/dist/promotions.d.ts +10 -10
- package/dist/prompt-actions.d.ts +19 -1
- package/dist/prompt-actions.d.ts.map +1 -1
- package/dist/prompt-actions.js +31 -2
- package/dist/prompt-actions.js.map +1 -1
- package/dist/pwa.d.ts +2 -2
- package/dist/quick-order.d.ts +150 -7
- package/dist/quick-order.d.ts.map +1 -1
- package/dist/quick-order.js +76 -2
- package/dist/quick-order.js.map +1 -1
- package/dist/quote-requests.d.ts +99 -13
- package/dist/quote-requests.d.ts.map +1 -1
- package/dist/quote-requests.js +66 -1
- package/dist/quote-requests.js.map +1 -1
- package/dist/record-references.d.ts +252 -0
- package/dist/record-references.d.ts.map +1 -0
- package/dist/record-references.js +178 -0
- package/dist/record-references.js.map +1 -0
- package/dist/record-rich-text.d.ts +66 -0
- package/dist/record-rich-text.d.ts.map +1 -0
- package/dist/record-rich-text.js +304 -0
- package/dist/record-rich-text.js.map +1 -0
- package/dist/returns.d.ts +234 -52
- package/dist/returns.d.ts.map +1 -1
- package/dist/returns.js +139 -26
- package/dist/returns.js.map +1 -1
- package/dist/sales-channels.d.ts +51 -7
- package/dist/sales-channels.d.ts.map +1 -1
- package/dist/sales-channels.js +38 -4
- package/dist/sales-channels.js.map +1 -1
- package/dist/saved-list-views.d.ts +56 -0
- package/dist/saved-list-views.d.ts.map +1 -1
- package/dist/saved-list-views.js +27 -1
- package/dist/saved-list-views.js.map +1 -1
- package/dist/scoped-write-encoding.d.ts +100 -0
- package/dist/scoped-write-encoding.d.ts.map +1 -0
- package/dist/scoped-write-encoding.js +135 -0
- package/dist/scoped-write-encoding.js.map +1 -0
- package/dist/search.d.ts +25 -15
- package/dist/search.d.ts.map +1 -1
- package/dist/seo.d.ts +127 -15
- package/dist/seo.d.ts.map +1 -1
- package/dist/seo.js +38 -4
- package/dist/seo.js.map +1 -1
- package/dist/settings.d.ts +161 -3
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +73 -3
- package/dist/settings.js.map +1 -1
- package/dist/shopping-lists.d.ts +24 -3
- package/dist/shopping-lists.d.ts.map +1 -1
- package/dist/shopping-lists.js +20 -0
- package/dist/shopping-lists.js.map +1 -1
- package/dist/storefront-cache-tags.d.ts +41 -0
- package/dist/storefront-cache-tags.d.ts.map +1 -1
- package/dist/storefront-cache-tags.js +36 -0
- package/dist/storefront-cache-tags.js.map +1 -1
- package/dist/storefront-language-path.d.ts +77 -0
- package/dist/storefront-language-path.d.ts.map +1 -0
- package/dist/storefront-language-path.js +123 -0
- package/dist/storefront-language-path.js.map +1 -0
- package/dist/storefront-value-overrides.d.ts +18 -56
- package/dist/storefront-value-overrides.d.ts.map +1 -1
- package/dist/storefront-value-overrides.js +11 -86
- package/dist/storefront-value-overrides.js.map +1 -1
- package/dist/tasks.d.ts +2842 -0
- package/dist/tasks.d.ts.map +1 -0
- package/dist/tasks.js +901 -0
- package/dist/tasks.js.map +1 -0
- package/dist/transactional-emails.d.ts +14 -11
- package/dist/transactional-emails.d.ts.map +1 -1
- package/dist/transactional-emails.js +13 -0
- package/dist/transactional-emails.js.map +1 -1
- package/package.json +3 -3
package/dist/actor.d.ts
CHANGED
|
@@ -53,12 +53,28 @@ export interface ActorCustomer {
|
|
|
53
53
|
* that requires an Organization asserts it (`customerContextResolver`).
|
|
54
54
|
*/
|
|
55
55
|
organizationId: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The member's organization role (`specs/170-organization-roles/`, research
|
|
58
|
+
* R-15). The auth hook reads the account behind the session once per request
|
|
59
|
+
* and stamps the role id it holds, so a permission check on the cart path
|
|
60
|
+
* costs no read of its own. `null` (or absent) when the resolver answers none
|
|
61
|
+
* — the permission port then reads the account itself.
|
|
62
|
+
*/
|
|
63
|
+
organizationRoleId?: string | null;
|
|
56
64
|
/** Non-null when a Supplier employee is acting on behalf of this Customer. */
|
|
57
65
|
impersonatorAdminUserId: string | null;
|
|
58
66
|
}
|
|
59
67
|
export interface ActorAdmin {
|
|
60
68
|
kind: 'admin';
|
|
61
69
|
adminUserId: string;
|
|
70
|
+
/**
|
|
71
|
+
* Issue #349, E-349-1 — the id of the session the actor was resolved from,
|
|
72
|
+
* when it was resolved from one. A write that ends other administrators'
|
|
73
|
+
* sessions spares this one; a write that reaches that consequence through an
|
|
74
|
+
* event names it there, because the cookie it came from is a credential and
|
|
75
|
+
* the id alone is not. Absent for an actor not resolved from a session.
|
|
76
|
+
*/
|
|
77
|
+
sessionId?: string;
|
|
62
78
|
}
|
|
63
79
|
/**
|
|
64
80
|
* An integration authenticated by a bearer key (feature 062). All three binding
|
package/dist/actor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;;;OAOG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,8EAA8E;IAC9E,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;;;OAOG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,8EAA8E;IAC9E,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,MAAM,KAAK,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,WAAW,CAAC"}
|
package/dist/addresses.d.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
* customer-facing address routes over this module's table.
|
|
14
14
|
*/
|
|
15
15
|
export type AddressKindValue = 'delivery' | 'billing';
|
|
16
|
+
/**
|
|
17
|
+
* The codes a redacted `address` audit row keeps (issue #844).
|
|
18
|
+
*
|
|
19
|
+
* Owner: `addresses`; **codes only** — see `CUSTOMER_ACCOUNT_AUDIT_KEEP_KEYS`
|
|
20
|
+
* for the rule they extend. The anonymisation scrub keeps an address's country,
|
|
21
|
+
* so its history may keep the country code too.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ADDRESS_AUDIT_KEEP_KEYS: readonly string[];
|
|
16
24
|
/**
|
|
17
25
|
* An address as it crosses a module boundary — a plain shape, never the ORM
|
|
18
26
|
* entity (FR-011).
|
|
@@ -97,6 +105,17 @@ export interface AddressReadPort {
|
|
|
97
105
|
listForOrganization(organizationId: string, kind?: AddressKindValue): Promise<AddressRecord[]>;
|
|
98
106
|
/** The organisation's default address of that kind, or `null`. */
|
|
99
107
|
findDefault(organizationId: string, kind: AddressKindValue): Promise<AddressRecord | null>;
|
|
108
|
+
/**
|
|
109
|
+
* The ids of the organisation's addresses, oldest first — live ones only
|
|
110
|
+
* unless `includeDeleted` is `true`, which adds every soft-deleted row
|
|
111
|
+
* (issue #927). Ids only: a caller that needs to name the rows an
|
|
112
|
+
* anonymised subject ever had (`customers`' retention sweep, #844) asks for
|
|
113
|
+
* the deleted ones too, and needs none of their content. Never another
|
|
114
|
+
* organisation's rows.
|
|
115
|
+
*/
|
|
116
|
+
listIdsForOrganization(organizationId: string, options?: {
|
|
117
|
+
includeDeleted?: boolean;
|
|
118
|
+
}): Promise<string[]>;
|
|
100
119
|
}
|
|
101
120
|
/**
|
|
102
121
|
* Container name: `addressServicePort`. Owner: `addresses`.
|
|
@@ -130,5 +149,21 @@ export interface AddressServicePort {
|
|
|
130
149
|
createAddress(organizationId: string, input: CreateAddressInput): Promise<AddressRecord>;
|
|
131
150
|
updateAddress(organizationId: string, addressId: string, patch: UpdateAddressInput): Promise<AddressRecord>;
|
|
132
151
|
deleteAddress(organizationId: string, addressId: string): Promise<void>;
|
|
152
|
+
/**
|
|
153
|
+
* Clear **and** blank every address of the Organization
|
|
154
|
+
* (`specs/173-b2c-address-book-merge/` OD-7): `recipientName`, `street`,
|
|
155
|
+
* `city` and `postalCode` become `'-'`, `phone` `null`, `isDefault` `false`,
|
|
156
|
+
* the country stays and the row is soft-deleted. **Every** row, the ones
|
|
157
|
+
* already soft-deleted included (issue #927): an address the customer
|
|
158
|
+
* deleted still holds their data, and it keeps its own `deletedAt`. A row
|
|
159
|
+
* already fully scrubbed is not selected, so a repeat call writes nothing.
|
|
160
|
+
* One `address.anonymized` audit entry per row scrubbed, with a null actor
|
|
161
|
+
* and no personal data — `stateBefore` names the organisation, the kind and
|
|
162
|
+
* `wasDeleted`. Answers how many rows it scrubbed.
|
|
163
|
+
*
|
|
164
|
+
* The retention sweep's call, for a personal Organization it has just
|
|
165
|
+
* anonymized; order snapshots are copies on `orders`' rows and are untouched.
|
|
166
|
+
*/
|
|
167
|
+
anonymizeForOrganization(organizationId: string): Promise<number>;
|
|
133
168
|
}
|
|
134
169
|
//# sourceMappingURL=addresses.d.ts.map
|
package/dist/addresses.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtD;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,gBAAgB,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,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O,CAAC,aAAa,EAAE,CAAC,CAAC;IAC5B,0EAA0E;IAC1E,mBAAmB,CACjB,cAAc,EAAE,MAAM,EACtB,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAC5B,kEAAkE;IAClE,WAAW,CACT,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACjC;;;;;;;OAOG;IACH,sBAAsB,CACpB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GACrC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAChF,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACzF,aAAa,CACX,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,aAAa,CAAC,CAAC;IAC1B,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE;;;;;;;;;;;;;;OAcG;IACH,wBAAwB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACnE"}
|
package/dist/addresses.js
CHANGED
|
@@ -12,5 +12,12 @@
|
|
|
12
12
|
* shapes are `organizations.ts`' business, because that module serves the
|
|
13
13
|
* customer-facing address routes over this module's table.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The codes a redacted `address` audit row keeps (issue #844).
|
|
17
|
+
*
|
|
18
|
+
* Owner: `addresses`; **codes only** — see `CUSTOMER_ACCOUNT_AUDIT_KEEP_KEYS`
|
|
19
|
+
* for the rule they extend. The anonymisation scrub keeps an address's country,
|
|
20
|
+
* so its history may keep the country code too.
|
|
21
|
+
*/
|
|
22
|
+
export const ADDRESS_AUDIT_KEEP_KEYS = ['countryCode'];
|
|
16
23
|
//# sourceMappingURL=addresses.js.map
|
package/dist/addresses.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAsB,CAAC,aAAa,CAAC,CAAC"}
|
package/dist/admin-actions.d.ts
CHANGED
|
@@ -127,9 +127,16 @@ export declare const ModuleActionSchema: z.ZodObject<{
|
|
|
127
127
|
targetRoute: z.ZodString;
|
|
128
128
|
requiredPermission: z.ZodOptional<z.ZodString>;
|
|
129
129
|
keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
130
|
+
keywordsKey: z.ZodOptional<z.ZodString>;
|
|
130
131
|
weight: z.ZodDefault<z.ZodNumber>;
|
|
131
132
|
}, z.core.$strip>;
|
|
132
133
|
export type ModuleAction = z.infer<typeof ModuleActionSchema>;
|
|
134
|
+
/**
|
|
135
|
+
* Read the value of an action's `keywordsKey` bundle entry: a comma-separated
|
|
136
|
+
* list, each word trimmed, empty entries dropped. One reader, shared by the
|
|
137
|
+
* server that serves the words and the test that holds every bundle to it.
|
|
138
|
+
*/
|
|
139
|
+
export declare function parseBundleKeywords(value: string): string[];
|
|
133
140
|
/**
|
|
134
141
|
* Top-level `actions` array on a module's manifest. Enforces
|
|
135
142
|
* within-module id uniqueness — duplicates fail the install with a
|
|
@@ -202,6 +209,7 @@ export declare const ModuleActionsManifestSchema: z.ZodArray<z.ZodObject<{
|
|
|
202
209
|
targetRoute: z.ZodString;
|
|
203
210
|
requiredPermission: z.ZodOptional<z.ZodString>;
|
|
204
211
|
keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
212
|
+
keywordsKey: z.ZodOptional<z.ZodString>;
|
|
205
213
|
weight: z.ZodDefault<z.ZodNumber>;
|
|
206
214
|
}, z.core.$strip>>;
|
|
207
215
|
export type ModuleActionsManifest = z.infer<typeof ModuleActionsManifestSchema>;
|
|
@@ -215,9 +223,10 @@ export type GetAdminActionsQuery = z.infer<typeof GetAdminActionsQuerySchema>;
|
|
|
215
223
|
/**
|
|
216
224
|
* Per-row view returned by the endpoint. Labels and descriptions are
|
|
217
225
|
* already resolved into the requested language by the server; the
|
|
218
|
-
* admin renders them verbatim. `keywords` is the
|
|
219
|
-
*
|
|
220
|
-
*
|
|
226
|
+
* admin renders them verbatim. `keywords` is the manifest's list followed
|
|
227
|
+
* by the words its `keywordsKey` resolves to in the requested language
|
|
228
|
+
* (issue #560), de-duplicated — the admin applies its own
|
|
229
|
+
* diacritic-insensitive normalize at filter time.
|
|
221
230
|
*/
|
|
222
231
|
export declare const AdminActionViewSchema: z.ZodObject<{
|
|
223
232
|
moduleId: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqK9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAchE,eAAO,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
package/dist/admin-actions.js
CHANGED
|
@@ -222,9 +222,39 @@ export const ModuleActionSchema = z.object({
|
|
|
222
222
|
* codebase mixes colon and dot notation; both are accepted by design.
|
|
223
223
|
*/
|
|
224
224
|
requiredPermission: z.string().min(1).max(64).optional(),
|
|
225
|
+
/**
|
|
226
|
+
* Search words matched in **every** admin language. English, like every
|
|
227
|
+
* other default a manifest carries; a word an operator types in their own
|
|
228
|
+
* language belongs under {@link keywordsKey}, not here.
|
|
229
|
+
*/
|
|
225
230
|
keywords: z.array(z.string().trim().min(1).max(64)).max(10).default([]),
|
|
231
|
+
/**
|
|
232
|
+
* Issue #560 — a bundle key, relative to the module's namespace exactly as
|
|
233
|
+
* `labelKey` is, whose value is a comma-separated list of the search words
|
|
234
|
+
* an operator types **in that language** (`parseBundleKeywords`). The server
|
|
235
|
+
* resolves it in the requested language and serves it alongside `keywords`,
|
|
236
|
+
* so the palette finds `nowe poświadczenie` for a Polish admin without a
|
|
237
|
+
* Polish word standing in the manifest.
|
|
238
|
+
*/
|
|
239
|
+
keywordsKey: z
|
|
240
|
+
.string()
|
|
241
|
+
.min(1)
|
|
242
|
+
.max(255)
|
|
243
|
+
.regex(translationKeyRe, 'Translation key must be dot-separated camelCase namespaces')
|
|
244
|
+
.optional(),
|
|
226
245
|
weight: z.number().int().min(0).max(9999).default(100),
|
|
227
246
|
});
|
|
247
|
+
/**
|
|
248
|
+
* Read the value of an action's `keywordsKey` bundle entry: a comma-separated
|
|
249
|
+
* list, each word trimmed, empty entries dropped. One reader, shared by the
|
|
250
|
+
* server that serves the words and the test that holds every bundle to it.
|
|
251
|
+
*/
|
|
252
|
+
export function parseBundleKeywords(value) {
|
|
253
|
+
return value
|
|
254
|
+
.split(',')
|
|
255
|
+
.map((word) => word.trim())
|
|
256
|
+
.filter((word) => word.length > 0);
|
|
257
|
+
}
|
|
228
258
|
/**
|
|
229
259
|
* Top-level `actions` array on a module's manifest. Enforces
|
|
230
260
|
* within-module id uniqueness — duplicates fail the install with a
|
|
@@ -266,9 +296,10 @@ export const GetAdminActionsQuerySchema = z.object({
|
|
|
266
296
|
/**
|
|
267
297
|
* Per-row view returned by the endpoint. Labels and descriptions are
|
|
268
298
|
* already resolved into the requested language by the server; the
|
|
269
|
-
* admin renders them verbatim. `keywords` is the
|
|
270
|
-
*
|
|
271
|
-
*
|
|
299
|
+
* admin renders them verbatim. `keywords` is the manifest's list followed
|
|
300
|
+
* by the words its `keywordsKey` resolves to in the requested language
|
|
301
|
+
* (issue #560), de-duplicated — the admin applies its own
|
|
302
|
+
* diacritic-insensitive normalize at filter time.
|
|
272
303
|
*/
|
|
273
304
|
export const AdminActionViewSchema = z.object({
|
|
274
305
|
moduleId: z.string(),
|
|
@@ -1 +1 @@
|
|
|
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,OA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AG,CAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;IACpC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;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"}
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
* the `AdminRouteDeclaration` interface.
|
|
28
28
|
*/
|
|
29
29
|
import { z } from 'zod';
|
|
30
|
+
import type { ScopeRef } from './product-scope-model.js';
|
|
31
|
+
import type { ScopedValuesData } from './product-scoped-values.js';
|
|
32
|
+
import type { ScopedWriteOp } from './scoped-write-encoding.js';
|
|
30
33
|
import type { InvoiceKind } from './invoices.js';
|
|
31
34
|
import type { ShipmentStatus } from './shipping-methods.js';
|
|
32
35
|
/**
|
|
@@ -49,17 +52,18 @@ export type PermissionRequirement = z.infer<typeof PermissionRequirementSchema>;
|
|
|
49
52
|
* two headings of one each and the operator reads it as two features.
|
|
50
53
|
*/
|
|
51
54
|
export declare const AdminNavSectionNameSchema: z.ZodEnum<{
|
|
55
|
+
channels: "channels";
|
|
52
56
|
content: "content";
|
|
53
|
-
newsletter: "newsletter";
|
|
54
57
|
system: "system";
|
|
55
|
-
|
|
56
|
-
customers: "customers";
|
|
58
|
+
newsletter: "newsletter";
|
|
57
59
|
main: "main";
|
|
58
60
|
sales: "sales";
|
|
59
61
|
crm: "crm";
|
|
62
|
+
work: "work";
|
|
63
|
+
catalog: "catalog";
|
|
60
64
|
inventory: "inventory";
|
|
61
65
|
pricing: "pricing";
|
|
62
|
-
|
|
66
|
+
customers: "customers";
|
|
63
67
|
messaging: "messaging";
|
|
64
68
|
analyticsAds: "analyticsAds";
|
|
65
69
|
}>;
|
|
@@ -106,24 +110,53 @@ export declare const AdminZoneNameSchema: z.ZodEnum<{
|
|
|
106
110
|
"category.editor.after": "category.editor.after";
|
|
107
111
|
"product.editor.pricing.after": "product.editor.pricing.after";
|
|
108
112
|
"product.editor.channels": "product.editor.channels";
|
|
113
|
+
"product.editor.seo": "product.editor.seo";
|
|
109
114
|
"sales_channel.editor.after": "sales_channel.editor.after";
|
|
110
115
|
"organization.detail.after": "organization.detail.after";
|
|
111
116
|
"customer.detail.after": "customer.detail.after";
|
|
112
117
|
"order.detail.payment": "order.detail.payment";
|
|
113
118
|
"order.detail.after": "order.detail.after";
|
|
114
119
|
"quote_request.detail.after": "quote_request.detail.after";
|
|
120
|
+
"opportunity.detail.after": "opportunity.detail.after";
|
|
115
121
|
"order.shipment.row.actions": "order.shipment.row.actions";
|
|
116
122
|
"order.shipments.tab.actions": "order.shipments.tab.actions";
|
|
117
123
|
"order.entry.tabs": "order.entry.tabs";
|
|
118
124
|
"ledger.section.tabs": "ledger.section.tabs";
|
|
119
125
|
"category.content.editor": "category.content.editor";
|
|
126
|
+
"product.content.editor": "product.content.editor";
|
|
120
127
|
"settings.setting.after": "settings.setting.after";
|
|
128
|
+
"task.detail.after": "task.detail.after";
|
|
121
129
|
}>;
|
|
122
130
|
export type AdminZoneName = z.infer<typeof AdminZoneNameSchema>;
|
|
123
131
|
/** A zone mounted once per product editor. */
|
|
124
132
|
export interface ProductEditorZoneProps {
|
|
125
133
|
readonly productId: string;
|
|
126
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* The product editor's SEO zone (feature 174, `contracts/editor-ui.md` §5): the editor scope,
|
|
137
|
+
* the SEO block of the scoped-values read, and the staging callback into catalog's one Save.
|
|
138
|
+
*/
|
|
139
|
+
export interface ProductEditorSeoZoneProps {
|
|
140
|
+
readonly productId: string;
|
|
141
|
+
readonly scope: ScopeRef;
|
|
142
|
+
/** "Global", "<channel>" or "<channel> · <language>", already translated. */
|
|
143
|
+
readonly scopeLabel: string;
|
|
144
|
+
/** The scope one level up, already translated; `null` at Global. */
|
|
145
|
+
readonly parentScopeLabel: string | null;
|
|
146
|
+
readonly view: ScopedValuesData['seo'];
|
|
147
|
+
/** The staged SEO cells, keyed by field (`title`, `description`, …). */
|
|
148
|
+
readonly staged: ReadonlyMap<string, ScopedWriteOp<string>>;
|
|
149
|
+
onStage(field: string, op: ScopedWriteOp<string> | undefined): void;
|
|
150
|
+
readonly readOnly: boolean;
|
|
151
|
+
/** Field → translated error message from the last save. */
|
|
152
|
+
readonly errors: Readonly<Record<string, string>>;
|
|
153
|
+
/**
|
|
154
|
+
* The product's scope version (`scoped-values-api.md` R7) of the editor's last read, Save or
|
|
155
|
+
* copy; `null` before the first read. A change means saved values moved, so the zone re-reads
|
|
156
|
+
* what it derives from them.
|
|
157
|
+
*/
|
|
158
|
+
readonly version: string | null;
|
|
159
|
+
}
|
|
127
160
|
/**
|
|
128
161
|
* A zone mounted once on the delivery-methods list, carrying nothing.
|
|
129
162
|
*
|
|
@@ -186,6 +219,25 @@ export interface CategoryContentEditorZoneProps {
|
|
|
186
219
|
/** Reports the edited document. The host saves; the contributor never does. */
|
|
187
220
|
readonly onChange: (data: unknown) => void;
|
|
188
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* A zone mounted once on the product content screen, around one content
|
|
224
|
+
* attribute's Page Builder document in one language.
|
|
225
|
+
*
|
|
226
|
+
* {@link CategoryContentEditorZoneProps}' terms: the document is `unknown` on
|
|
227
|
+
* both sides of the seam, the host re-mounts the zone per language, and the
|
|
228
|
+
* contributor reports every edit through `onChange` and never saves.
|
|
229
|
+
*/
|
|
230
|
+
export interface ProductContentEditorZoneProps {
|
|
231
|
+
readonly productId: string;
|
|
232
|
+
/** The content attribute being edited (its immutable key). */
|
|
233
|
+
readonly attributeKey: string;
|
|
234
|
+
/** The content language being edited — a key of the stored envelope. */
|
|
235
|
+
readonly language: string;
|
|
236
|
+
/** That language's Page Builder document, or `null` when none is stored. */
|
|
237
|
+
readonly data: unknown;
|
|
238
|
+
/** Reports the edited document. The host saves; the contributor never does. */
|
|
239
|
+
readonly onChange: (data: unknown) => void;
|
|
240
|
+
}
|
|
189
241
|
/**
|
|
190
242
|
* A zone mounted once below the sales-channel editor's identity form.
|
|
191
243
|
*
|
|
@@ -239,6 +291,24 @@ export interface OrderDetailZoneProps {
|
|
|
239
291
|
export interface QuoteRequestDetailZoneProps {
|
|
240
292
|
readonly quoteRequestId: string;
|
|
241
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* A zone mounted once per Opportunity, at the end of its detail screen.
|
|
296
|
+
*
|
|
297
|
+
* The Opportunity's own id and nothing else: a contribution reads what it
|
|
298
|
+
* shows through routes of its own, and the host hands over none of its data.
|
|
299
|
+
*/
|
|
300
|
+
export interface OpportunityDetailZoneProps {
|
|
301
|
+
readonly opportunityId: string;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* A zone mounted once per Task, at the end of its detail screen.
|
|
305
|
+
*
|
|
306
|
+
* The Task's own id and nothing else: a contribution reads what it shows
|
|
307
|
+
* through routes of its own, and the host hands over none of its data.
|
|
308
|
+
*/
|
|
309
|
+
export interface TaskDetailZoneProps {
|
|
310
|
+
readonly taskId: string;
|
|
311
|
+
}
|
|
242
312
|
/**
|
|
243
313
|
* A zone mounted once per shipment attempt on the order detail's Delivery tab.
|
|
244
314
|
*
|
|
@@ -339,9 +409,14 @@ export interface ProductEditorFieldZoneProps {
|
|
|
339
409
|
* `attributeValues.<key>`.
|
|
340
410
|
*/
|
|
341
411
|
readonly fieldPath: string;
|
|
412
|
+
/**
|
|
413
|
+
* Feature 174 (FR-106) — the editor scope the field is shown at. Optional: a contributor
|
|
414
|
+
* that ignores it keeps working.
|
|
415
|
+
*/
|
|
416
|
+
readonly scope?: ScopeRef;
|
|
342
417
|
/**
|
|
343
418
|
* The locales this field is edited in, or `null` for a field that is not
|
|
344
|
-
* language-scoped.
|
|
419
|
+
* language-scoped. Feature 174: the host passes `null` (protection is whole-field, FR-046).
|
|
345
420
|
*
|
|
346
421
|
* The host passes the set; a contributor that wants one control per locale
|
|
347
422
|
* fans out over it. That is what collapses the two `LOCALES.map(...)` loops
|
|
@@ -381,18 +456,22 @@ export interface AdminZonePropsMap extends Record<AdminZoneName, object> {
|
|
|
381
456
|
'category.editor.after': CategoryEditorZoneProps;
|
|
382
457
|
'product.editor.pricing.after': ProductEditorZoneProps;
|
|
383
458
|
'product.editor.channels': ProductEditorZoneProps;
|
|
459
|
+
'product.editor.seo': ProductEditorSeoZoneProps;
|
|
384
460
|
'sales_channel.editor.after': SalesChannelEditorZoneProps;
|
|
385
461
|
'organization.detail.after': OrganizationDetailZoneProps;
|
|
386
462
|
'customer.detail.after': CustomerDetailZoneProps;
|
|
387
463
|
'order.detail.payment': OrderDetailZoneProps;
|
|
388
464
|
'order.detail.after': OrderDetailZoneProps;
|
|
389
465
|
'quote_request.detail.after': QuoteRequestDetailZoneProps;
|
|
466
|
+
'opportunity.detail.after': OpportunityDetailZoneProps;
|
|
390
467
|
'order.shipment.row.actions': OrderShipmentRowZoneProps;
|
|
391
468
|
'order.shipments.tab.actions': OrderShipmentsActionsZoneProps;
|
|
392
469
|
'order.entry.tabs': OrderEntryTabsZoneProps;
|
|
393
470
|
'ledger.section.tabs': LedgerSectionTabsZoneProps;
|
|
394
471
|
'category.content.editor': CategoryContentEditorZoneProps;
|
|
472
|
+
'product.content.editor': ProductContentEditorZoneProps;
|
|
395
473
|
'settings.setting.after': SettingsSettingAfterZoneProps;
|
|
474
|
+
'task.detail.after': TaskDetailZoneProps;
|
|
396
475
|
}
|
|
397
476
|
/** The props of one zone, by name. */
|
|
398
477
|
export type AdminZoneProps<Z extends AdminZoneName> = AdminZonePropsMap[Z];
|
|
@@ -484,17 +563,18 @@ export declare const AdminNavDeclarationSchema: z.ZodObject<{
|
|
|
484
563
|
CalendarDays: "CalendarDays";
|
|
485
564
|
}>;
|
|
486
565
|
section: z.ZodEnum<{
|
|
566
|
+
channels: "channels";
|
|
487
567
|
content: "content";
|
|
488
|
-
newsletter: "newsletter";
|
|
489
568
|
system: "system";
|
|
490
|
-
|
|
491
|
-
customers: "customers";
|
|
569
|
+
newsletter: "newsletter";
|
|
492
570
|
main: "main";
|
|
493
571
|
sales: "sales";
|
|
494
572
|
crm: "crm";
|
|
573
|
+
work: "work";
|
|
574
|
+
catalog: "catalog";
|
|
495
575
|
inventory: "inventory";
|
|
496
576
|
pricing: "pricing";
|
|
497
|
-
|
|
577
|
+
customers: "customers";
|
|
498
578
|
messaging: "messaging";
|
|
499
579
|
analyticsAds: "analyticsAds";
|
|
500
580
|
}>;
|
|
@@ -519,18 +599,22 @@ export declare const AdminZoneContributionSchema: z.ZodObject<{
|
|
|
519
599
|
"category.editor.after": "category.editor.after";
|
|
520
600
|
"product.editor.pricing.after": "product.editor.pricing.after";
|
|
521
601
|
"product.editor.channels": "product.editor.channels";
|
|
602
|
+
"product.editor.seo": "product.editor.seo";
|
|
522
603
|
"sales_channel.editor.after": "sales_channel.editor.after";
|
|
523
604
|
"organization.detail.after": "organization.detail.after";
|
|
524
605
|
"customer.detail.after": "customer.detail.after";
|
|
525
606
|
"order.detail.payment": "order.detail.payment";
|
|
526
607
|
"order.detail.after": "order.detail.after";
|
|
527
608
|
"quote_request.detail.after": "quote_request.detail.after";
|
|
609
|
+
"opportunity.detail.after": "opportunity.detail.after";
|
|
528
610
|
"order.shipment.row.actions": "order.shipment.row.actions";
|
|
529
611
|
"order.shipments.tab.actions": "order.shipments.tab.actions";
|
|
530
612
|
"order.entry.tabs": "order.entry.tabs";
|
|
531
613
|
"ledger.section.tabs": "ledger.section.tabs";
|
|
532
614
|
"category.content.editor": "category.content.editor";
|
|
615
|
+
"product.content.editor": "product.content.editor";
|
|
533
616
|
"settings.setting.after": "settings.setting.after";
|
|
617
|
+
"task.detail.after": "task.detail.after";
|
|
534
618
|
}>;
|
|
535
619
|
weight: z.ZodNumber;
|
|
536
620
|
requiredPermission: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -557,8 +641,8 @@ export declare const AdminZoneContributionSchema: z.ZodObject<{
|
|
|
557
641
|
export declare const AdminBlockContributionSchema: z.ZodObject<{
|
|
558
642
|
name: z.ZodString;
|
|
559
643
|
context: z.ZodEnum<{
|
|
560
|
-
cms: "cms";
|
|
561
644
|
email: "email";
|
|
645
|
+
cms: "cms";
|
|
562
646
|
document: "document";
|
|
563
647
|
}>;
|
|
564
648
|
}, z.core.$strip>;
|
|
@@ -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;
|
|
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;AACxB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAIhE,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;;;;;;;;;;;;;;;EAsBpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,C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BAAsB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC;IACxF,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;CAC3C;AAED;;;;;;;;;;;GAWG;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"}
|
|
@@ -85,6 +85,11 @@ export const AdminNavSectionNameSchema = z.enum([
|
|
|
85
85
|
// R-19): the CRM screens get a group of their own. The section is the
|
|
86
86
|
// shell's, declared here and in `AppShell.tsx`; the `crm` module joins it.
|
|
87
87
|
'crm',
|
|
88
|
+
// `specs/163-projects-and-tasks/` research R-16: Projects and Tasks get a
|
|
89
|
+
// group of their own, after CRM — they are not a sales or CRM sub-feature,
|
|
90
|
+
// and Tasks is meant for every module. The `projects` and `tasks` modules
|
|
91
|
+
// join it.
|
|
92
|
+
'work',
|
|
88
93
|
'catalog',
|
|
89
94
|
'inventory',
|
|
90
95
|
'pricing',
|
|
@@ -246,6 +251,15 @@ export const AdminZoneNameSchema = z.enum([
|
|
|
246
251
|
* label is the host's own vocabulary.
|
|
247
252
|
*/
|
|
248
253
|
'product.editor.channels',
|
|
254
|
+
/**
|
|
255
|
+
* The product editor's SEO section at the editor scope (feature 174, FR-090…FR-092,
|
|
256
|
+
* `contracts/editor-ui.md` §5). Replaces 163's `product.editor.seo.after`.
|
|
257
|
+
*
|
|
258
|
+
* Mounted **once** per editor. Props: {@link ProductEditorSeoZoneProps}. `seo` contributes
|
|
259
|
+
* its fields here, staged into catalog's one Save; `catalog` renders the SEO tab only when the
|
|
260
|
+
* zone has a contributor, so with `seo` off there is no tab, no request and no error.
|
|
261
|
+
*/
|
|
262
|
+
'product.editor.seo',
|
|
249
263
|
/**
|
|
250
264
|
* Below the sales-channel editor's identity form.
|
|
251
265
|
*
|
|
@@ -343,6 +357,21 @@ export const AdminZoneNameSchema = z.enum([
|
|
|
343
357
|
* `quote_requests` names no contributor and gains no edge.
|
|
344
358
|
*/
|
|
345
359
|
'quote_request.detail.after',
|
|
360
|
+
/**
|
|
361
|
+
* The stack of panels an Opportunity's detail screen ends with.
|
|
362
|
+
*
|
|
363
|
+
* Mounted **once** per Opportunity, after the card that holds its tabs, on
|
|
364
|
+
* `order.detail.after`'s terms and for its reasons: every contribution
|
|
365
|
+
* renders its own card, the host puts no chrome around the zone, and an
|
|
366
|
+
* empty zone renders nothing at all, so the screen is identical to one
|
|
367
|
+
* without the member. Props: {@link OpportunityDetailZoneProps}, the
|
|
368
|
+
* Opportunity's id and nothing else (Z3).
|
|
369
|
+
*
|
|
370
|
+
* The first contributor is `projects`' Project panel
|
|
371
|
+
* (`specs/163-projects-and-tasks/contracts/admin-surfaces.md` §3); `crm`
|
|
372
|
+
* names no contributor and gains no edge.
|
|
373
|
+
*/
|
|
374
|
+
'opportunity.detail.after',
|
|
346
375
|
/**
|
|
347
376
|
* The per-row action cell of the order detail's Delivery tab.
|
|
348
377
|
*
|
|
@@ -468,6 +497,27 @@ export const AdminZoneNameSchema = z.enum([
|
|
|
468
497
|
* stored stays stored and keeps rendering.
|
|
469
498
|
*/
|
|
470
499
|
'category.content.editor',
|
|
500
|
+
/**
|
|
501
|
+
* The editor of one product content attribute's Page Builder document, one
|
|
502
|
+
* language at a time (`specs/172-product-content-attributes/`).
|
|
503
|
+
*
|
|
504
|
+
* Mounted **once** on `catalog`'s product content screen
|
|
505
|
+
* (`ProductContentPage.tsx`), named from the host's own words for the place
|
|
506
|
+
* (Z14): the screen is the product's *content*, the place is its *editor*.
|
|
507
|
+
* Props: {@link ProductContentEditorZoneProps}.
|
|
508
|
+
*
|
|
509
|
+
* **The direction is inverted, as on `category.content.editor` and for the
|
|
510
|
+
* same reason.** `catalog` is `nonDeactivatable` and `cms` is switchable, so
|
|
511
|
+
* `catalog` can neither declare an edge to the Page Builder's owner (it would
|
|
512
|
+
* make `cms.enabled` a dead switch) nor import it undeclared. The host owns
|
|
513
|
+
* the document, its storage and its save; whoever owns a Page Builder
|
|
514
|
+
* contributes the canvas and reports edits through `onChange`. `catalog`
|
|
515
|
+
* names no module. A platform with no contributor shows the host's own
|
|
516
|
+
* notice (Z15) and offers no save, and the stored content stays stored —
|
|
517
|
+
* unlike category content it is not rendered on the storefront while the
|
|
518
|
+
* CMS is off (spec FR-051, owner ruling OR-7).
|
|
519
|
+
*/
|
|
520
|
+
'product.content.editor',
|
|
471
521
|
/**
|
|
472
522
|
* Below the field of one setting on the Settings screen.
|
|
473
523
|
*
|
|
@@ -496,6 +546,21 @@ export const AdminZoneNameSchema = z.enum([
|
|
|
496
546
|
* contribution of that module, through the renderer's own presence filter.
|
|
497
547
|
*/
|
|
498
548
|
'settings.setting.after',
|
|
549
|
+
/**
|
|
550
|
+
* The stack of panels a Task's detail screen ends with.
|
|
551
|
+
*
|
|
552
|
+
* Mounted **once** per Task, below the host's own cards, on
|
|
553
|
+
* `order.detail.after`'s terms and for its reasons: every contribution
|
|
554
|
+
* renders its own card, the host puts no chrome around the zone, and an
|
|
555
|
+
* empty zone renders nothing at all, so the screen is identical to one
|
|
556
|
+
* without the member. Props: {@link TaskDetailZoneProps}, the Task's id and
|
|
557
|
+
* nothing else (Z3).
|
|
558
|
+
*
|
|
559
|
+
* The first contributor is `projects`' Project panel
|
|
560
|
+
* (`specs/163-projects-and-tasks/contracts/admin-surfaces.md` §3); `tasks`
|
|
561
|
+
* names no contributor and gains no edge.
|
|
562
|
+
*/
|
|
563
|
+
'task.detail.after',
|
|
499
564
|
]);
|
|
500
565
|
// ---------------------------------------------------------------------------
|
|
501
566
|
// Declarations
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAKxB,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,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC;IACjD,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC1B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3C,CAAC,CAAC;AAIH,8EAA8E;AAC9E,eAAe;AACf,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CA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