platform-types 1.10.798 → 1.10.799

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.
@@ -1,6 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ML_ORDER_RECONCILE_SUMMARY_KEYS = exports.INTEGRATION_EVENT_OUTCOMES = exports.INTEGRATION_EVENT_TYPES = void 0;
3
+ exports.ML_ORDER_RECONCILE_SUMMARY_KEYS = exports.INTEGRATION_EVENT_OUTCOMES = exports.INTEGRATION_EVENT_TYPES = exports.PLATFORM_GLOBAL_GROUPS = void 0;
4
+ /**
5
+ * The operator console's grouping of platform globals — one section per product
6
+ * area, in the order the console lists them. Runtime tuple so a test (and the
7
+ * console) can check membership without restating the list.
8
+ */
9
+ exports.PLATFORM_GLOBAL_GROUPS = [
10
+ 'orders',
11
+ 'quotes',
12
+ 'pos',
13
+ 'catalog',
14
+ 'inventory',
15
+ 'purchasing',
16
+ 'invoicing',
17
+ 'payments',
18
+ 'cash',
19
+ 'customers',
20
+ 'services',
21
+ 'staff',
22
+ 'marketing',
23
+ 'storefront',
24
+ 'integrations',
25
+ 'messaging',
26
+ 'reports',
27
+ 'sessions',
28
+ 'printing',
29
+ 'ai',
30
+ 'audit',
31
+ 'realtime',
32
+ 'billing',
33
+ 'platform',
34
+ ];
4
35
  // ── Integration events log — the rows both read endpoints return ─────────
5
36
  //
6
37
  // `GET /platform/integrations/{provider}/events` (MANAGER, every tenant) and
@@ -3,8 +3,19 @@ type PlatformConfigScope = 'app' | 'landing' | 'storefront';
3
3
  type PlatformConfigValueType = 'boolean' | 'string' | 'number';
4
4
  type PlatformConfigKind = 'setting' | 'flag';
5
5
  type PlatformConfigValue = string | number | boolean;
6
+ /**
7
+ * The operator console's grouping of platform globals — one section per product
8
+ * area, in the order the console lists them. Runtime tuple so a test (and the
9
+ * console) can check membership without restating the list.
10
+ */
11
+ export declare const PLATFORM_GLOBAL_GROUPS: readonly ["orders", "quotes", "pos", "catalog", "inventory", "purchasing", "invoicing", "payments", "cash", "customers", "services", "staff", "marketing", "storefront", "integrations", "messaging", "reports", "sessions", "printing", "ai", "audit", "realtime", "billing", "platform"];
12
+ export type PlatformGlobalGroup = (typeof PLATFORM_GLOBAL_GROUPS)[number];
6
13
  export interface PlatformConfigEntry extends Partial<StorefrontRegistryMetadata> {
7
14
  key: string;
15
+ label: string;
16
+ summary: string;
17
+ group: PlatformGlobalGroup;
18
+ audience?: StorefrontRegistryMetadata['audience'];
8
19
  valueType: PlatformConfigValueType;
9
20
  kind: PlatformConfigKind;
10
21
  value: PlatformConfigValue;
@@ -15,6 +26,7 @@ export interface PlatformConfigEntry extends Partial<StorefrontRegistryMetadata>
15
26
  max?: number;
16
27
  integer?: true;
17
28
  calendarDay?: true;
29
+ nonDecreasing?: true;
18
30
  maxLength?: number;
19
31
  allowedValues?: string[];
20
32
  updatedBy?: string;
@@ -29,6 +41,20 @@ export interface PlatformGlobalsPostBody {
29
41
  kind: PlatformConfigKind;
30
42
  scope: PlatformConfigScope;
31
43
  }>;
44
+ reason?: string;
45
+ }
46
+ export interface PlatformGlobalHistoryEntry {
47
+ at: string;
48
+ actorId: string;
49
+ actorStoreId?: string;
50
+ actorName?: string;
51
+ before: PlatformConfigValue;
52
+ after: PlatformConfigValue;
53
+ reason?: string;
54
+ }
55
+ export interface PlatformGlobalHistoryResponse {
56
+ data: PlatformGlobalHistoryEntry[];
57
+ cursor?: string;
32
58
  }
33
59
  /** Optional operator justification shared by the per-tenant ops below. */
34
60
  export interface PlatformOperatorReason {
package/dist/platform.js CHANGED
@@ -1,3 +1,34 @@
1
+ /**
2
+ * The operator console's grouping of platform globals — one section per product
3
+ * area, in the order the console lists them. Runtime tuple so a test (and the
4
+ * console) can check membership without restating the list.
5
+ */
6
+ export const PLATFORM_GLOBAL_GROUPS = [
7
+ 'orders',
8
+ 'quotes',
9
+ 'pos',
10
+ 'catalog',
11
+ 'inventory',
12
+ 'purchasing',
13
+ 'invoicing',
14
+ 'payments',
15
+ 'cash',
16
+ 'customers',
17
+ 'services',
18
+ 'staff',
19
+ 'marketing',
20
+ 'storefront',
21
+ 'integrations',
22
+ 'messaging',
23
+ 'reports',
24
+ 'sessions',
25
+ 'printing',
26
+ 'ai',
27
+ 'audit',
28
+ 'realtime',
29
+ 'billing',
30
+ 'platform',
31
+ ];
1
32
  // ── Integration events log — the rows both read endpoints return ─────────
2
33
  //
3
34
  // `GET /platform/integrations/{provider}/events` (MANAGER, every tenant) and
@@ -1170,6 +1170,7 @@ declare global {
1170
1170
  scope: 'app' | 'landing' | 'storefront';
1171
1171
  before: string | number | boolean;
1172
1172
  after: string | number | boolean;
1173
+ reason?: string;
1173
1174
  }
1174
1175
  interface IntegrationConnectionChangedEvent extends UserActivityEventBase {
1175
1176
  event: 'Integration Connection Changed';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.798",
3
+ "version": "1.10.799",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",