@zeitvu97/cms-sdk 0.1.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/LICENSE +21 -0
- package/README.md +478 -0
- package/dist/chunks/_shared-48T7q0V3.js +26 -0
- package/dist/chunks/_shared-48T7q0V3.js.map +1 -0
- package/dist/chunks/auth.constant-DO7ZmsKg.js +68 -0
- package/dist/chunks/auth.constant-DO7ZmsKg.js.map +1 -0
- package/dist/chunks/mt5Retcode-DlZLQOLA.js +178 -0
- package/dist/chunks/mt5Retcode-DlZLQOLA.js.map +1 -0
- package/dist/chunks/storage.constant--64BDSPW.js +44 -0
- package/dist/chunks/storage.constant--64BDSPW.js.map +1 -0
- package/dist/common/constants/auth.constant.d.ts +54 -0
- package/dist/common/constants/auth.constant.d.ts.map +1 -0
- package/dist/common/constants/bars.constant.d.ts +15 -0
- package/dist/common/constants/bars.constant.d.ts.map +1 -0
- package/dist/common/constants/content-types.constant.d.ts +29 -0
- package/dist/common/constants/content-types.constant.d.ts.map +1 -0
- package/dist/common/constants/content.constant.d.ts +114 -0
- package/dist/common/constants/content.constant.d.ts.map +1 -0
- package/dist/common/constants/executions.constant.d.ts +56 -0
- package/dist/common/constants/executions.constant.d.ts.map +1 -0
- package/dist/common/constants/gov.constant.d.ts +118 -0
- package/dist/common/constants/gov.constant.d.ts.map +1 -0
- package/dist/common/constants/history.constant.d.ts +108 -0
- package/dist/common/constants/history.constant.d.ts.map +1 -0
- package/dist/common/constants/http.constant.d.ts +46 -0
- package/dist/common/constants/http.constant.d.ts.map +1 -0
- package/dist/common/constants/index.d.ts +16 -0
- package/dist/common/constants/index.d.ts.map +1 -0
- package/dist/common/constants/kalshi.constant.d.ts +35 -0
- package/dist/common/constants/kalshi.constant.d.ts.map +1 -0
- package/dist/common/constants/llm.constant.d.ts +37 -0
- package/dist/common/constants/llm.constant.d.ts.map +1 -0
- package/dist/common/constants/mt5-action.constant.d.ts +131 -0
- package/dist/common/constants/mt5-action.constant.d.ts.map +1 -0
- package/dist/common/constants/mt5.constant.d.ts +254 -0
- package/dist/common/constants/mt5.constant.d.ts.map +1 -0
- package/dist/common/constants/notifications.constant.d.ts +45 -0
- package/dist/common/constants/notifications.constant.d.ts.map +1 -0
- package/dist/common/constants/people.constant.d.ts +269 -0
- package/dist/common/constants/people.constant.d.ts.map +1 -0
- package/dist/common/constants/rules.constant.d.ts +14 -0
- package/dist/common/constants/rules.constant.d.ts.map +1 -0
- package/dist/common/constants/settings.constant.d.ts +17 -0
- package/dist/common/constants/settings.constant.d.ts.map +1 -0
- package/dist/common/constants/sort.constant.d.ts +14 -0
- package/dist/common/constants/sort.constant.d.ts.map +1 -0
- package/dist/common/constants/storage.constant.d.ts +74 -0
- package/dist/common/constants/storage.constant.d.ts.map +1 -0
- package/dist/common/helpers/format.d.ts +7 -0
- package/dist/common/helpers/format.d.ts.map +1 -0
- package/dist/common/helpers/format.js +20 -0
- package/dist/common/helpers/format.js.map +1 -0
- package/dist/common/helpers/mt5Retcode.d.ts +18 -0
- package/dist/common/helpers/mt5Retcode.d.ts.map +1 -0
- package/dist/common/helpers/mt5Retcode.js +2 -0
- package/dist/common/helpers/mt5Retcode.js.map +1 -0
- package/dist/common/utils/case.d.ts +12 -0
- package/dist/common/utils/case.d.ts.map +1 -0
- package/dist/common/utils/clone.d.ts +9 -0
- package/dist/common/utils/clone.d.ts.map +1 -0
- package/dist/composables/cbsStateKey.d.ts +27 -0
- package/dist/composables/cbsStateKey.d.ts.map +1 -0
- package/dist/core/createApi.d.ts +69 -0
- package/dist/core/createApi.d.ts.map +1 -0
- package/dist/core/createCmsSDK.d.ts +19 -0
- package/dist/core/createCmsSDK.d.ts.map +1 -0
- package/dist/core/credentials/TokenManager.d.ts +38 -0
- package/dist/core/credentials/TokenManager.d.ts.map +1 -0
- package/dist/core/credentials/credential.type.d.ts +16 -0
- package/dist/core/credentials/credential.type.d.ts.map +1 -0
- package/dist/core/credentials/resolveStorage.d.ts +6 -0
- package/dist/core/credentials/resolveStorage.d.ts.map +1 -0
- package/dist/core/credentials/storages/cookieStorage.d.ts +18 -0
- package/dist/core/credentials/storages/cookieStorage.d.ts.map +1 -0
- package/dist/core/credentials/storages/localStorageAdapter.d.ts +8 -0
- package/dist/core/credentials/storages/localStorageAdapter.d.ts.map +1 -0
- package/dist/core/credentials/storages/memoryStorage.d.ts +7 -0
- package/dist/core/credentials/storages/memoryStorage.d.ts.map +1 -0
- package/dist/core/errors.d.ts +26 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/sdk.type.d.ts +115 -0
- package/dist/core/sdk.type.d.ts.map +1 -0
- package/dist/core/ws/createEaeraWebSocket.d.ts +21 -0
- package/dist/core/ws/createEaeraWebSocket.d.ts.map +1 -0
- package/dist/core/ws/index.d.ts +4 -0
- package/dist/core/ws/index.d.ts.map +1 -0
- package/dist/core/ws/ws.constants.d.ts +246 -0
- package/dist/core/ws/ws.constants.d.ts.map +1 -0
- package/dist/core/ws/ws.events.d.ts +264 -0
- package/dist/core/ws/ws.events.d.ts.map +1 -0
- package/dist/core/ws/ws.type.d.ts +225 -0
- package/dist/core/ws/ws.type.d.ts.map +1 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8416 -0
- package/dist/index.js.map +1 -0
- package/dist/nuxt.d.ts +49 -0
- package/dist/nuxt.d.ts.map +1 -0
- package/dist/nuxt.js +47 -0
- package/dist/nuxt.js.map +1 -0
- package/dist/runtime/plugin.d.ts +6 -0
- package/dist/runtime/plugin.js +188 -0
- package/dist/runtime/plugin.js.map +1 -0
- package/dist/server/auth/cbs-callback.post.js +42 -0
- package/dist/server/auth/cbs-callback.post.js.map +1 -0
- package/dist/server/auth/cbs-start.post.js +34 -0
- package/dist/server/auth/cbs-start.post.js.map +1 -0
- package/dist/server/auth/idp-callback.get.js +52 -0
- package/dist/server/auth/idp-callback.get.js.map +1 -0
- package/dist/server/auth/idp-link.post.js +38 -0
- package/dist/server/auth/idp-link.post.js.map +1 -0
- package/dist/server/auth/idp-login.get.js +42 -0
- package/dist/server/auth/idp-login.get.js.map +1 -0
- package/dist/server/auth/idp-unlink.delete.js +38 -0
- package/dist/server/auth/idp-unlink.delete.js.map +1 -0
- package/dist/server/auth/login.post.js +42 -0
- package/dist/server/auth/login.post.js.map +1 -0
- package/dist/server/auth/logout.post.js +31 -0
- package/dist/server/auth/logout.post.js.map +1 -0
- package/dist/server/auth/refresh.post.js +46 -0
- package/dist/server/auth/refresh.post.js.map +1 -0
- package/dist/server/clear-token.delete.js +12 -0
- package/dist/server/clear-token.delete.js.map +1 -0
- package/dist/server/persist.post.js +31 -0
- package/dist/server/persist.post.js.map +1 -0
- package/dist/server/set-token.post.js +27 -0
- package/dist/server/set-token.post.js.map +1 -0
- package/dist/services/auth/auth.type.d.ts +66 -0
- package/dist/services/auth/auth.type.d.ts.map +1 -0
- package/dist/services/auth/index.d.ts +127 -0
- package/dist/services/auth/index.d.ts.map +1 -0
- package/dist/services/auth/mock.d.ts +13 -0
- package/dist/services/auth/mock.d.ts.map +1 -0
- package/dist/services/bars/bars.type.d.ts +78 -0
- package/dist/services/bars/bars.type.d.ts.map +1 -0
- package/dist/services/bars/index.d.ts +24 -0
- package/dist/services/bars/index.d.ts.map +1 -0
- package/dist/services/bars/mock.d.ts +23 -0
- package/dist/services/bars/mock.d.ts.map +1 -0
- package/dist/services/content/content.type.d.ts +832 -0
- package/dist/services/content/content.type.d.ts.map +1 -0
- package/dist/services/content/filter.d.ts +46 -0
- package/dist/services/content/filter.d.ts.map +1 -0
- package/dist/services/content/index.d.ts +35 -0
- package/dist/services/content/index.d.ts.map +1 -0
- package/dist/services/content/mock.d.ts +16 -0
- package/dist/services/content/mock.d.ts.map +1 -0
- package/dist/services/content-types/content-types.type.d.ts +70 -0
- package/dist/services/content-types/content-types.type.d.ts.map +1 -0
- package/dist/services/content-types/index.d.ts +18 -0
- package/dist/services/content-types/index.d.ts.map +1 -0
- package/dist/services/content-types/mock.d.ts +15 -0
- package/dist/services/content-types/mock.d.ts.map +1 -0
- package/dist/services/executions/executions.type.d.ts +67 -0
- package/dist/services/executions/executions.type.d.ts.map +1 -0
- package/dist/services/executions/index.d.ts +30 -0
- package/dist/services/executions/index.d.ts.map +1 -0
- package/dist/services/executions/mock.d.ts +29 -0
- package/dist/services/executions/mock.d.ts.map +1 -0
- package/dist/services/gov/gov.type.d.ts +740 -0
- package/dist/services/gov/gov.type.d.ts.map +1 -0
- package/dist/services/gov/index.d.ts +84 -0
- package/dist/services/gov/index.d.ts.map +1 -0
- package/dist/services/history/history.type.d.ts +167 -0
- package/dist/services/history/history.type.d.ts.map +1 -0
- package/dist/services/history/index.d.ts +38 -0
- package/dist/services/history/index.d.ts.map +1 -0
- package/dist/services/history/mock.d.ts +21 -0
- package/dist/services/history/mock.d.ts.map +1 -0
- package/dist/services/kalshi/index.d.ts +19 -0
- package/dist/services/kalshi/index.d.ts.map +1 -0
- package/dist/services/kalshi/kalshi.type.d.ts +99 -0
- package/dist/services/kalshi/kalshi.type.d.ts.map +1 -0
- package/dist/services/kalshi/mock.d.ts +5 -0
- package/dist/services/kalshi/mock.d.ts.map +1 -0
- package/dist/services/llm/index.d.ts +38 -0
- package/dist/services/llm/index.d.ts.map +1 -0
- package/dist/services/llm/llm.type.d.ts +106 -0
- package/dist/services/llm/llm.type.d.ts.map +1 -0
- package/dist/services/notifications/index.d.ts +38 -0
- package/dist/services/notifications/index.d.ts.map +1 -0
- package/dist/services/notifications/mock.d.ts +39 -0
- package/dist/services/notifications/mock.d.ts.map +1 -0
- package/dist/services/notifications/notifications.type.d.ts +75 -0
- package/dist/services/notifications/notifications.type.d.ts.map +1 -0
- package/dist/services/people/_invoke.d.ts +26 -0
- package/dist/services/people/_invoke.d.ts.map +1 -0
- package/dist/services/people/copilot/index.d.ts +132 -0
- package/dist/services/people/copilot/index.d.ts.map +1 -0
- package/dist/services/people/identity/actions.d.ts +116 -0
- package/dist/services/people/identity/actions.d.ts.map +1 -0
- package/dist/services/people/identity/ct.types.d.ts +133 -0
- package/dist/services/people/identity/ct.types.d.ts.map +1 -0
- package/dist/services/people/identity/index.d.ts +14 -0
- package/dist/services/people/identity/index.d.ts.map +1 -0
- package/dist/services/people/identity/projections.d.ts +63 -0
- package/dist/services/people/identity/projections.d.ts.map +1 -0
- package/dist/services/people/index.d.ts +31 -0
- package/dist/services/people/index.d.ts.map +1 -0
- package/dist/services/people/legal/actions.d.ts +161 -0
- package/dist/services/people/legal/actions.d.ts.map +1 -0
- package/dist/services/people/legal/ct.types.d.ts +186 -0
- package/dist/services/people/legal/ct.types.d.ts.map +1 -0
- package/dist/services/people/legal/index.d.ts +15 -0
- package/dist/services/people/legal/index.d.ts.map +1 -0
- package/dist/services/people/packops/index.d.ts +70 -0
- package/dist/services/people/packops/index.d.ts.map +1 -0
- package/dist/services/people/packops/packops.type.d.ts +183 -0
- package/dist/services/people/packops/packops.type.d.ts.map +1 -0
- package/dist/services/people/perms/actions.d.ts +214 -0
- package/dist/services/people/perms/actions.d.ts.map +1 -0
- package/dist/services/people/perms/ct.types.d.ts +140 -0
- package/dist/services/people/perms/ct.types.d.ts.map +1 -0
- package/dist/services/people/perms/index.d.ts +14 -0
- package/dist/services/people/perms/index.d.ts.map +1 -0
- package/dist/services/people/perms/projections.d.ts +47 -0
- package/dist/services/people/perms/projections.d.ts.map +1 -0
- package/dist/services/people/process/actions.d.ts +154 -0
- package/dist/services/people/process/actions.d.ts.map +1 -0
- package/dist/services/people/process/ct.types.d.ts +304 -0
- package/dist/services/people/process/ct.types.d.ts.map +1 -0
- package/dist/services/people/process/index.d.ts +12 -0
- package/dist/services/people/process/index.d.ts.map +1 -0
- package/dist/services/people/shared.types.d.ts +36 -0
- package/dist/services/people/shared.types.d.ts.map +1 -0
- package/dist/services/rules/conditions.d.ts +264 -0
- package/dist/services/rules/conditions.d.ts.map +1 -0
- package/dist/services/rules/index.d.ts +49 -0
- package/dist/services/rules/index.d.ts.map +1 -0
- package/dist/services/rules/llm-rule.constant.d.ts +84 -0
- package/dist/services/rules/llm-rule.constant.d.ts.map +1 -0
- package/dist/services/rules/mock.d.ts +20 -0
- package/dist/services/rules/mock.d.ts.map +1 -0
- package/dist/services/rules/rules.type.d.ts +262 -0
- package/dist/services/rules/rules.type.d.ts.map +1 -0
- package/dist/services/rules/triggers.d.ts +140 -0
- package/dist/services/rules/triggers.d.ts.map +1 -0
- package/dist/services/settings/index.d.ts +36 -0
- package/dist/services/settings/index.d.ts.map +1 -0
- package/dist/services/settings/mock.d.ts +14 -0
- package/dist/services/settings/mock.d.ts.map +1 -0
- package/dist/services/settings/settings.type.d.ts +39 -0
- package/dist/services/settings/settings.type.d.ts.map +1 -0
- package/dist/stores/auth.d.ts +192 -0
- package/dist/stores/auth.d.ts.map +1 -0
- package/dist/stores/bars.d.ts +288 -0
- package/dist/stores/bars.d.ts.map +1 -0
- package/dist/stores/content.d.ts +4101 -0
- package/dist/stores/content.d.ts.map +1 -0
- package/dist/stores/executions.d.ts +249 -0
- package/dist/stores/executions.d.ts.map +1 -0
- package/dist/stores/gov.d.ts +238 -0
- package/dist/stores/gov.d.ts.map +1 -0
- package/dist/stores/history.d.ts +833 -0
- package/dist/stores/history.d.ts.map +1 -0
- package/dist/stores/index.d.ts +15 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/kalshi.d.ts +728 -0
- package/dist/stores/kalshi.d.ts.map +1 -0
- package/dist/stores/llm-providers.d.ts +97 -0
- package/dist/stores/llm-providers.d.ts.map +1 -0
- package/dist/stores/llm.d.ts +102 -0
- package/dist/stores/llm.d.ts.map +1 -0
- package/dist/stores/people.d.ts +596 -0
- package/dist/stores/people.d.ts.map +1 -0
- package/dist/stores/persist.d.ts +58 -0
- package/dist/stores/persist.d.ts.map +1 -0
- package/dist/stores/rules.d.ts +485 -0
- package/dist/stores/rules.d.ts.map +1 -0
- package/dist/stores/settings.d.ts +36 -0
- package/dist/stores/settings.d.ts.map +1 -0
- package/dist/stores/ws.d.ts +66 -0
- package/dist/stores/ws.d.ts.map +1 -0
- package/package.json +90 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { ContentItem } from '../../content/content.type';
|
|
2
|
+
/** `provider_config` (FEAT-009). Secrets encrypted at CT level (D2). ✅ */
|
|
3
|
+
export interface PeopleProviderConfigData {
|
|
4
|
+
providerKey: string;
|
|
5
|
+
providerType: 'entra' | 'm365' | 'google_workspace' | 'slack' | 'scim_generic';
|
|
6
|
+
capabilities?: Record<string, {
|
|
7
|
+
support: 'supported' | 'unsupported' | 'manual' | 'partial';
|
|
8
|
+
executionMode?: string;
|
|
9
|
+
verificationCapability?: string;
|
|
10
|
+
knownLimitation?: string;
|
|
11
|
+
}>;
|
|
12
|
+
bindingPolicy?: 'account_per_employment' | 'shared_per_person';
|
|
13
|
+
retryPolicy?: {
|
|
14
|
+
maxAttempts?: number;
|
|
15
|
+
backoffBaseSeconds?: number;
|
|
16
|
+
respectRetryAfter?: boolean;
|
|
17
|
+
};
|
|
18
|
+
healthWindowMinutes?: number;
|
|
19
|
+
/** CT-level encrypted fields (`clientSecret`, `refreshToken`) live here;
|
|
20
|
+
* write-only — the FE never renders secrets. Plaintext: tenantId,
|
|
21
|
+
* clientId, endpointBase. */
|
|
22
|
+
connection: Record<string, unknown>;
|
|
23
|
+
resourcePolicies?: Array<Record<string, unknown>>;
|
|
24
|
+
deprovisionRef?: string | null;
|
|
25
|
+
/** Derived — written by `probe`. NEVER a lifecycle state. */
|
|
26
|
+
probeState?: {
|
|
27
|
+
lastProbeAt?: string;
|
|
28
|
+
lastResult?: string;
|
|
29
|
+
latencyMs?: number;
|
|
30
|
+
};
|
|
31
|
+
state: 'draft' | 'active' | 'disabled' | 'discarded';
|
|
32
|
+
}
|
|
33
|
+
export type PeopleProviderConfig = ContentItem<PeopleProviderConfigData>;
|
|
34
|
+
/** `provisioning_item` (FEAT-009). Unit of Desired-State Contribution per
|
|
35
|
+
* (employment × resource) AND unit of execution (independent per item, D1).
|
|
36
|
+
* ✅ */
|
|
37
|
+
export interface PeopleProvisioningItemData {
|
|
38
|
+
employmentRef: string;
|
|
39
|
+
bindingRef?: string | null;
|
|
40
|
+
providerRef: string;
|
|
41
|
+
resourceType: string;
|
|
42
|
+
resourceKey: string;
|
|
43
|
+
desired: {
|
|
44
|
+
state: 'enabled' | 'disabled' | 'removed' | 'retained_shared' | 'delegated';
|
|
45
|
+
attrs?: unknown;
|
|
46
|
+
};
|
|
47
|
+
origin: {
|
|
48
|
+
type: 'package' | 'override' | 'milestone';
|
|
49
|
+
ref: string;
|
|
50
|
+
version?: string;
|
|
51
|
+
};
|
|
52
|
+
timing?: {
|
|
53
|
+
prepareAt?: string;
|
|
54
|
+
effectiveAt?: string;
|
|
55
|
+
activatedAt?: string;
|
|
56
|
+
};
|
|
57
|
+
attempt?: {
|
|
58
|
+
count: number;
|
|
59
|
+
max: number;
|
|
60
|
+
nextRetryAt?: string | null;
|
|
61
|
+
lastError?: string | null;
|
|
62
|
+
retryAfterRespected?: boolean;
|
|
63
|
+
};
|
|
64
|
+
/** Command Result ≠ Security Outcome ≠ Aggregate Result (PM 9.11.3/6). */
|
|
65
|
+
commandResult?: 'accepted' | 'succeeded' | 'failed' | 'unsupported';
|
|
66
|
+
securityOutcome?: 'verified' | 'pending_propagation' | 'unverifiable' | null;
|
|
67
|
+
aggregateResult?: 'completed' | 'completed_with_limitation' | 'manual_resolution' | 'failed' | null;
|
|
68
|
+
idempotencyKey?: string;
|
|
69
|
+
contributesUntil?: string | null;
|
|
70
|
+
state: 'planned' | 'provisioning' | 'prepared' | 'effective' | 'updating' | 'releasing' | 'released' | 'failed' | 'retrying' | 'manual_resolution' | 'cancelled' | 'superseded';
|
|
71
|
+
}
|
|
72
|
+
export type PeopleProvisioningItem = ContentItem<PeopleProvisioningItemData>;
|
|
73
|
+
/** `external_binding` (FEAT-009). Managed provider account ⇄ canonical person. ✅ */
|
|
74
|
+
export interface PeopleExternalBindingData {
|
|
75
|
+
providerRef: string;
|
|
76
|
+
externalAccountId?: string;
|
|
77
|
+
canonicalPersonRef: string;
|
|
78
|
+
bindingPolicy?: 'account_per_employment' | 'shared_per_person';
|
|
79
|
+
deletedAt?: string | null;
|
|
80
|
+
providerOperationReference?: string | null;
|
|
81
|
+
lastReconcile?: Record<string, unknown>;
|
|
82
|
+
resolutionLog?: Array<Record<string, unknown>>;
|
|
83
|
+
state: 'draft' | 'active' | 'suspended' | 'retained' | 'pending_deletion' | 'deleted_verified' | 'manual_resolution' | 'disputed' | 'closed_no_object' | 'released_from_management';
|
|
84
|
+
}
|
|
85
|
+
export type PeopleExternalBinding = ContentItem<PeopleExternalBindingData>;
|
|
86
|
+
/** `drift_finding` (FEAT-009). Desired ≠ Actual; coverage `partial` ≠ clean. ✅ */
|
|
87
|
+
export interface PeopleDriftFindingData {
|
|
88
|
+
providerRef: string;
|
|
89
|
+
bindingRef?: string | null;
|
|
90
|
+
findingType: 'missing' | 'extra_unmanaged' | 'mismatch' | 'reappeared' | 'unknown_unreachable' | 'execution';
|
|
91
|
+
resourceType?: string;
|
|
92
|
+
resourceKey?: string;
|
|
93
|
+
expected?: Record<string, unknown>;
|
|
94
|
+
actual?: Record<string, unknown>;
|
|
95
|
+
severity: 'info' | 'warning' | 'critical';
|
|
96
|
+
desiredVersion?: string;
|
|
97
|
+
coverage?: 'full' | 'partial' | 'unavailable';
|
|
98
|
+
detectedAt?: string;
|
|
99
|
+
sourceRun?: string;
|
|
100
|
+
resolution?: Record<string, unknown>;
|
|
101
|
+
escalatedTo?: string;
|
|
102
|
+
suppressedUntil?: string;
|
|
103
|
+
state: 'open' | 'acknowledged' | 'resolved' | 'accepted_exception' | 'escalated' | 'closed_stale' | 'reactivated';
|
|
104
|
+
}
|
|
105
|
+
export type PeopleDriftFinding = ContentItem<PeopleDriftFindingData>;
|
|
106
|
+
/** `deprovision_plan` (FEAT-009). row-per-version; milestone guard
|
|
107
|
+
* `sourcePlanVersion == currentValidPlanVersion` (PR23). ✅ */
|
|
108
|
+
export interface PeopleDeprovisionPlanData {
|
|
109
|
+
employmentRef: string;
|
|
110
|
+
endingPlanRef: string;
|
|
111
|
+
endingPlanFacts: {
|
|
112
|
+
lwd: string;
|
|
113
|
+
endEffectiveAt: string;
|
|
114
|
+
timezone: string;
|
|
115
|
+
};
|
|
116
|
+
policyRef?: string | null;
|
|
117
|
+
policyVersion?: string | null;
|
|
118
|
+
planVersion: number;
|
|
119
|
+
milestones?: Array<{
|
|
120
|
+
milestoneKey: 'pre_lwd' | 'lwd' | 'end_effective' | 'post_lwd_retention' | 'deletion_eligibility';
|
|
121
|
+
dueAt?: string;
|
|
122
|
+
items?: string[];
|
|
123
|
+
sourcePlanVersion?: number;
|
|
124
|
+
status: 'pending' | 'due' | 'executing' | 'done' | 'failed' | 'skipped_obsolete';
|
|
125
|
+
executedAt?: string;
|
|
126
|
+
requiredOutcomesResult?: Record<string, unknown>;
|
|
127
|
+
}>;
|
|
128
|
+
restoration?: Record<string, unknown>;
|
|
129
|
+
outcomeSummary?: Record<string, unknown>;
|
|
130
|
+
state: 'draft' | 'active' | 'executing' | 'completed' | 'partially_completed' | 'failed' | 'superseded' | 'cancelled';
|
|
131
|
+
}
|
|
132
|
+
export type PeopleDeprovisionPlan = ContentItem<PeopleDeprovisionPlanData>;
|
|
133
|
+
//# sourceMappingURL=ct.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ct.types.d.ts","sourceRoot":"","sources":["../../../../src/services/people/identity/ct.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,0EAA0E;AAC1E,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,GAAG,MAAM,GAAG,kBAAkB,GAAG,OAAO,GAAG,cAAc,CAAC;IAC/E,YAAY,CAAC,EAAE,MAAM,CACnB,MAAM,EACN;QACE,OAAO,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IACzC,KAAK,EACD,OAAO,GACP,QAAQ,GACR,WAAW,GACX,WAAW,GACX,qBAAqB,GACrB,QAAQ,GACR,YAAY,GACZ,WAAW,CAAC;CACjB;AACD,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity domain — barrel.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the public surface for FEAT-009 (Identity Provisioning &
|
|
5
|
+
* Provider Sync): 5 CTs, 22 user-callable actions, 2 REST projections.
|
|
6
|
+
*
|
|
7
|
+
* Also re-exports the projection read types (`provider_health` +
|
|
8
|
+
* `provisioning/queue`) for a single import path per domain.
|
|
9
|
+
*/
|
|
10
|
+
export type { PeopleProviderConfigData, PeopleProviderConfig, PeopleProvisioningItemData, PeopleProvisioningItem, PeopleExternalBindingData, PeopleExternalBinding, PeopleDriftFindingData, PeopleDriftFinding, PeopleDeprovisionPlanData, PeopleDeprovisionPlan, } from './ct.types';
|
|
11
|
+
export type { PeopleResolveDesiredParams, PeopleResolveDesiredOutput, PeopleRetryItemOutput, PeopleResolveManuallyParams, PeopleReleaseItemParams, PeopleResolveBindingParams, PeopleResolveBindingOutcome, PeopleMarkDeletedVerifiedParams, PeopleAcceptExceptionParams, PeopleAcceptExceptionOutput, PeopleEscalateParams, PeopleBuildPlanParams, PeopleBuildPlanOutput, IdentityActions, } from './actions';
|
|
12
|
+
export { buildIdentityActions } from './actions';
|
|
13
|
+
export type { PeopleProviderHealth, PeopleProviderProbeHistoryEntry, PeopleProvisionQueue, PeopleProvisionQueueEntry, PeopleProvisionQueueQuery, } from './projections';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/people/identity/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,EACV,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAGjD,YAAY,EACV,oBAAoB,EACpB,+BAA+B,EAC/B,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PeopleDeprovisionPlanData, PeopleDriftFindingData, PeopleExternalBindingData, PeopleProviderConfigData, PeopleProvisioningItemData } from './ct.types';
|
|
2
|
+
/** Last 10 probe executions, newest first. Server-truncated. */
|
|
3
|
+
export interface PeopleProviderProbeHistoryEntry {
|
|
4
|
+
at: string;
|
|
5
|
+
status: 'completed' | 'failed' | 'in_progress';
|
|
6
|
+
durationMs: number;
|
|
7
|
+
error?: string | null;
|
|
8
|
+
}
|
|
9
|
+
/** Path segment = business `providerKey` (not the content uuid). */
|
|
10
|
+
export interface PeopleProviderHealth {
|
|
11
|
+
providerKey: string;
|
|
12
|
+
providerType: PeopleProviderConfigData['providerType'];
|
|
13
|
+
state: PeopleProviderConfigData['state'];
|
|
14
|
+
capabilities: Record<string, string>;
|
|
15
|
+
probeState: NonNullable<PeopleProviderConfigData['probeState']>;
|
|
16
|
+
probeHistory: PeopleProviderProbeHistoryEntry[];
|
|
17
|
+
openFindings: Partial<Record<PeopleDriftFindingData['findingType'], number>>;
|
|
18
|
+
healthWindowMinutes: number;
|
|
19
|
+
}
|
|
20
|
+
/** Query for `GET /api/v1/people/provisioning/queue`. */
|
|
21
|
+
export interface PeopleProvisionQueueQuery {
|
|
22
|
+
/** provider_config uuid. */
|
|
23
|
+
provider?: string;
|
|
24
|
+
/** employmentRef. */
|
|
25
|
+
employment?: string;
|
|
26
|
+
/** item state filter. */
|
|
27
|
+
state?: string;
|
|
28
|
+
}
|
|
29
|
+
/** Heterogeneous list discriminated by `kind`. */
|
|
30
|
+
export type PeopleProvisionQueueEntry = {
|
|
31
|
+
kind: 'item';
|
|
32
|
+
ref: string;
|
|
33
|
+
providerRef: string;
|
|
34
|
+
employmentRef: string;
|
|
35
|
+
resourceType: string;
|
|
36
|
+
resourceKey: string;
|
|
37
|
+
state: PeopleProvisioningItemData['state'];
|
|
38
|
+
attempt: NonNullable<PeopleProvisioningItemData['attempt']>;
|
|
39
|
+
commandResult: PeopleProvisioningItemData['commandResult'] | null;
|
|
40
|
+
securityOutcome: PeopleProvisioningItemData['securityOutcome'];
|
|
41
|
+
aggregateResult: PeopleProvisioningItemData['aggregateResult'];
|
|
42
|
+
lastError?: string;
|
|
43
|
+
} | {
|
|
44
|
+
kind: 'milestone';
|
|
45
|
+
ref: string;
|
|
46
|
+
employmentRef: string;
|
|
47
|
+
milestoneKey: NonNullable<NonNullable<PeopleDeprovisionPlanData['milestones']>[number]['milestoneKey']>;
|
|
48
|
+
dueAt: string;
|
|
49
|
+
state: NonNullable<NonNullable<PeopleDeprovisionPlanData['milestones']>[number]['status']>;
|
|
50
|
+
sourcePlanVersion: number;
|
|
51
|
+
requiredOutcomesResult?: Record<string, unknown>;
|
|
52
|
+
} | {
|
|
53
|
+
kind: 'binding';
|
|
54
|
+
ref: string;
|
|
55
|
+
providerRef: string;
|
|
56
|
+
canonicalPersonRef: string;
|
|
57
|
+
state: PeopleExternalBindingData['state'];
|
|
58
|
+
};
|
|
59
|
+
export interface PeopleProvisionQueue {
|
|
60
|
+
count: number;
|
|
61
|
+
items: PeopleProvisionQueueEntry[];
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=projections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../../../src/services/people/identity/projections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,YAAY,CAAC;AAEpB,gEAAgE;AAChE,MAAM,WAAW,+BAA+B;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,WAAW,GAAG,QAAQ,GAAG,aAAa,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,oEAAoE;AACpE,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAAC;IACvD,KAAK,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IACzC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,UAAU,EAAE,WAAW,CAAC,wBAAwB,CAAC,YAAY,CAAC,CAAC,CAAC;IAChE,YAAY,EAAE,+BAA+B,EAAE,CAAC;IAChD,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IAC7E,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,kDAA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AAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,yBAAyB,EAAE,CAAC;CACpC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { $Fetch } from 'ofetch';
|
|
2
|
+
import { _invokeFactoryAction, _invokeRowAction } from './_invoke';
|
|
3
|
+
import { LegalAndOrgActions } from './legal/actions';
|
|
4
|
+
import { PeopleAccessAuditQuery, PeopleAccessAuditResult } from './perms/projections';
|
|
5
|
+
import { PermsActions } from './perms/actions';
|
|
6
|
+
import { PeopleProvisionQueue, PeopleProvisionQueueQuery, PeopleProviderHealth } from './identity/projections';
|
|
7
|
+
import { IdentityActions } from './identity/actions';
|
|
8
|
+
import { ProcessActions } from './process/actions';
|
|
9
|
+
import { IPeopleCopilotService } from './copilot';
|
|
10
|
+
import { IPeoplePackOpsService } from './packops';
|
|
11
|
+
export interface IPeopleServiceOptions {
|
|
12
|
+
/** The CMS `$Fetch` instance (one of `sdk.apis`). */
|
|
13
|
+
api: $Fetch;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* People service surface — user-callable actions across the 4 domain mixins
|
|
17
|
+
* + 3 REST projections. Composed flat for the legacy domains; the process
|
|
18
|
+
* domain ships grouped sub-objects (`reqType` / `capability` / `policy` /
|
|
19
|
+
* `glueRule` / `processType` / `processInstance` / `runtimeRequest`) so the
|
|
20
|
+
* shared verbs (`validate`, `publish`, `verify`) never collide.
|
|
21
|
+
*/
|
|
22
|
+
export interface IPeopleService extends LegalAndOrgActions, PermsActions, IdentityActions, ProcessActions {
|
|
23
|
+
runAccessAudit(query: PeopleAccessAuditQuery): Promise<PeopleAccessAuditResult>;
|
|
24
|
+
getProviderHealth(key: string): Promise<PeopleProviderHealth>;
|
|
25
|
+
getProvisionQueue(query?: PeopleProvisionQueueQuery): Promise<PeopleProvisionQueue>;
|
|
26
|
+
readonly packOps: IPeoplePackOpsService;
|
|
27
|
+
readonly copilot: IPeopleCopilotService;
|
|
28
|
+
}
|
|
29
|
+
export declare function createPeopleService(opts: IPeopleServiceOptions): IPeopleService;
|
|
30
|
+
export { _invokeFactoryAction, _invokeRowAction };
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/people/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAA8B,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EAA8B,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEnF,MAAM,WAAW,qBAAqB;IACpC,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cACf,SAAQ,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc;IAEzE,cAAc,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAChF,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC9D,iBAAiB,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEpF,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IAExC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;CACzC;AAMD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc,CAsC/E;AAUD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { ActionResponse } from '../../content/content.type';
|
|
2
|
+
import { PeopleActionOpts } from '../shared.types';
|
|
3
|
+
import { InvokeDeps } from '../_invoke';
|
|
4
|
+
import { PeopleEffectiveRevisionData } from './ct.types';
|
|
5
|
+
/** `register_legal_entity` (factory on legal_entity). One atomic execution:
|
|
6
|
+
* row creation + first effective_revision in one transaction. */
|
|
7
|
+
export interface PeopleRegisterLegalEntityParams {
|
|
8
|
+
code: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
timezone: string;
|
|
11
|
+
registeredAddress?: {
|
|
12
|
+
lines?: string[];
|
|
13
|
+
city?: string;
|
|
14
|
+
country?: string;
|
|
15
|
+
postalCode?: string;
|
|
16
|
+
};
|
|
17
|
+
legalIds?: Array<{
|
|
18
|
+
kind: 'tax' | 'business_reg' | 'other';
|
|
19
|
+
value: string;
|
|
20
|
+
issuedBy?: string;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
23
|
+
/** `schedule_branch` (factory on registered_branch).
|
|
24
|
+
* Carries the same v1 readiness snapshot as a separate `activate_now` review. */
|
|
25
|
+
export interface PeopleScheduleBranchParams {
|
|
26
|
+
branchCode?: string;
|
|
27
|
+
displayName?: string;
|
|
28
|
+
readiness?: {
|
|
29
|
+
valid?: boolean;
|
|
30
|
+
licenseExpires?: string;
|
|
31
|
+
checkedAt?: string;
|
|
32
|
+
notes?: string;
|
|
33
|
+
};
|
|
34
|
+
effectiveFrom: string;
|
|
35
|
+
}
|
|
36
|
+
/** `reschedule_branch` mutates effectiveFrom (US2 TC16). */
|
|
37
|
+
export interface PeopleRescheduleBranchParams {
|
|
38
|
+
effectiveFrom: string;
|
|
39
|
+
}
|
|
40
|
+
/** `correct_code` controlled post-activation branch-code correction. */
|
|
41
|
+
export interface PeopleCorrectCodeParams {
|
|
42
|
+
branchCode: string;
|
|
43
|
+
reason: string;
|
|
44
|
+
}
|
|
45
|
+
/** `reactivate` (LE or branch). Closed → Active. Reason required. */
|
|
46
|
+
export interface PeopleReactivateParams {
|
|
47
|
+
reason: string;
|
|
48
|
+
}
|
|
49
|
+
/** `archive_visibility` / `restore_visibility` — operate on
|
|
50
|
+
* `metadata.recordVisibility` (a FIELD, never a state). */
|
|
51
|
+
export interface PeopleArchiveVisibilityParams {
|
|
52
|
+
reason?: string;
|
|
53
|
+
}
|
|
54
|
+
/** `schedule_revision` (factory on effective_revision). */
|
|
55
|
+
export type PeopleScheduleRevisionParams = Pick<PeopleEffectiveRevisionData, 'subjectKind' | 'subjectRef' | 'payload' | 'effectiveFrom' | 'effectiveTo' | 'timezoneRef'>;
|
|
56
|
+
/** `closure_submit` requires explicit acknowledgement of non-empty impact. */
|
|
57
|
+
export interface PeopleClosureSubmitParams {
|
|
58
|
+
acknowledged: boolean;
|
|
59
|
+
}
|
|
60
|
+
/** `closure_approve` may carry an optional decision note. */
|
|
61
|
+
export interface PeopleClosureApproveParams {
|
|
62
|
+
decision?: string;
|
|
63
|
+
}
|
|
64
|
+
/** `closure_complete` may surface per-precondition detail in the output. */
|
|
65
|
+
export interface PeopleClosureCompleteOutput {
|
|
66
|
+
closedBranches?: number;
|
|
67
|
+
preconditionFailures?: string[];
|
|
68
|
+
}
|
|
69
|
+
/** `closure_reject` may carry a reason (audit). */
|
|
70
|
+
export interface PeopleClosureRejectParams {
|
|
71
|
+
reason?: string;
|
|
72
|
+
}
|
|
73
|
+
/** `closure_cancel` — for LE targets, cascades to spawned branch drafts. */
|
|
74
|
+
export interface PeopleClosureCancelParams {
|
|
75
|
+
reason?: string;
|
|
76
|
+
}
|
|
77
|
+
/** `schedule_assignment` (factory on policy_assignment). */
|
|
78
|
+
export interface PeopleScheduleAssignmentParams {
|
|
79
|
+
policyRef: string;
|
|
80
|
+
policyKind: string;
|
|
81
|
+
targetType: 'legal_entity' | 'registered_branch';
|
|
82
|
+
targetRef: string;
|
|
83
|
+
effectiveFrom: string;
|
|
84
|
+
effectiveTo?: string | null;
|
|
85
|
+
overrideAllowed?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/** `cs_submit` — author reason required; BE revalidates `changes[]`. */
|
|
88
|
+
export interface PeopleCsSubmitParams {
|
|
89
|
+
reason: string;
|
|
90
|
+
changes?: unknown[];
|
|
91
|
+
}
|
|
92
|
+
/** `cs_schedule` — Effective At required. */
|
|
93
|
+
export interface PeopleCsScheduleParams {
|
|
94
|
+
effectiveAt: string;
|
|
95
|
+
}
|
|
96
|
+
/** `cs_cancel` — audited reason required (spec §4.4a: terminal
|
|
97
|
+
* transitions carry an audited reason; guard `reason_required`). */
|
|
98
|
+
export interface PeopleCsCancelParams {
|
|
99
|
+
reason: string;
|
|
100
|
+
}
|
|
101
|
+
/** `cs_close_failed` — "close with reason": the closure record carries
|
|
102
|
+
* the operator's reason (FE dialog collects it as required input). */
|
|
103
|
+
export interface PeopleCsCloseFailedParams {
|
|
104
|
+
reason: string;
|
|
105
|
+
}
|
|
106
|
+
/** `cs_reject` — approval lane (FEAT-010); may carry a reason. */
|
|
107
|
+
export interface PeopleCsRejectParams {
|
|
108
|
+
reason?: string;
|
|
109
|
+
}
|
|
110
|
+
/** `cs_return_for_correction` — may carry the correction note. */
|
|
111
|
+
export interface PeopleCsReturnForCorrectionParams {
|
|
112
|
+
reason?: string;
|
|
113
|
+
}
|
|
114
|
+
/** `cancel_branch` — may carry an audited reason. */
|
|
115
|
+
export interface PeopleCancelBranchParams {
|
|
116
|
+
reason?: string;
|
|
117
|
+
}
|
|
118
|
+
/** `cancel_revision` — may carry an audited reason. */
|
|
119
|
+
export interface PeopleCancelRevisionParams {
|
|
120
|
+
reason?: string;
|
|
121
|
+
}
|
|
122
|
+
export interface LegalAndOrgActions {
|
|
123
|
+
registerLegalEntity(params: PeopleRegisterLegalEntityParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
124
|
+
reactivate(leOrBranchUuid: string, params: PeopleReactivateParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
125
|
+
archiveVisibility(leOrBranchUuid: string, params?: PeopleArchiveVisibilityParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
126
|
+
restoreVisibility(leOrBranchUuid: string, params?: PeopleArchiveVisibilityParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
127
|
+
scheduleBranch(branchUuid: string, params: PeopleScheduleBranchParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
128
|
+
activateNow(branchUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
129
|
+
cancelBranch(branchUuid: string, params?: PeopleCancelBranchParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
130
|
+
rescheduleBranch(branchUuid: string, params: PeopleRescheduleBranchParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
131
|
+
correctCode(branchUuid: string, params: PeopleCorrectCodeParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
132
|
+
scheduleRevision(revisionUuid: string, params?: PeopleScheduleRevisionParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
133
|
+
/** `schedule_revision` FACTORY lane on `effective_revision` — creates the
|
|
134
|
+
* row + schedules it atomically (api_references §3.3; no pre-made draft). */
|
|
135
|
+
createRevision(params: PeopleScheduleRevisionParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
136
|
+
cancelRevision(revisionUuid: string, params?: PeopleCancelRevisionParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
137
|
+
closureSubmit(caseUuid: string, params: PeopleClosureSubmitParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
138
|
+
closureApprove(caseUuid: string, params?: PeopleClosureApproveParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
139
|
+
closureComplete(caseUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
140
|
+
closureReject(caseUuid: string, params?: PeopleClosureRejectParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
141
|
+
closureRetryFailed(caseUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
142
|
+
closureCancel(caseUuid: string, params?: PeopleClosureCancelParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
143
|
+
scheduleAssignment(params: PeopleScheduleAssignmentParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
144
|
+
cancelAssignment(assignmentUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
145
|
+
discontinueUnitType(unitTypeUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
146
|
+
restoreUnitType(unitTypeUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
147
|
+
discontinueLocationType(locationTypeUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
148
|
+
restoreLocationType(locationTypeUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
149
|
+
csSubmit(changeSetUuid: string, params: PeopleCsSubmitParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
150
|
+
csReturnForCorrection(changeSetUuid: string, params?: PeopleCsReturnForCorrectionParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
151
|
+
csApprove(changeSetUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
152
|
+
csReject(changeSetUuid: string, params?: PeopleCsRejectParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
153
|
+
csSchedule(changeSetUuid: string, params: PeopleCsScheduleParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
154
|
+
csApply(changeSetUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
155
|
+
csRetryFailed(changeSetUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
156
|
+
csCloseFailed(changeSetUuid: string, params: PeopleCsCloseFailedParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
157
|
+
csCreateReplacement(changeSetUuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
158
|
+
csCancel(changeSetUuid: string, params: PeopleCsCancelParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
|
|
159
|
+
}
|
|
160
|
+
export declare function buildLegalActions(deps: InvokeDeps): LegalAndOrgActions;
|
|
161
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/services/people/legal/actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAA0C,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAKrF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAM9D;kEACkE;AAClE,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE;QAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAA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CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACvF,aAAa,CACX,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,yBAAyB,EACjC,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3B,mBAAmB,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC7F,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,oBAAoB,EAC5B,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,cAAc,CAAC,CAAC;CAC5B;AAMD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,kBAAkB,CAmFtE"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { ContentItem } from '../../content/content.type';
|
|
2
|
+
/** `legal_entity` (FEAT-001). Identity anchor + dated-data spine. ✅ */
|
|
3
|
+
export interface PeopleLegalEntityData {
|
|
4
|
+
code: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
registeredAddress?: {
|
|
7
|
+
lines?: string[];
|
|
8
|
+
city?: string;
|
|
9
|
+
country?: string;
|
|
10
|
+
postalCode?: string;
|
|
11
|
+
};
|
|
12
|
+
legalIds?: Array<{
|
|
13
|
+
kind: 'tax' | 'business_reg' | 'other';
|
|
14
|
+
value: string;
|
|
15
|
+
issuedBy?: string;
|
|
16
|
+
}>;
|
|
17
|
+
timezone: string;
|
|
18
|
+
metadata?: {
|
|
19
|
+
recordVisibility?: 'current' | 'archived';
|
|
20
|
+
};
|
|
21
|
+
state: 'active' | 'closing' | 'closed';
|
|
22
|
+
}
|
|
23
|
+
export type PeopleLegalEntity = ContentItem<PeopleLegalEntityData>;
|
|
24
|
+
/** `registered_branch` (FEAT-001). Dated fields via effective_revision. ✅ */
|
|
25
|
+
export interface PeopleRegisteredBranchData {
|
|
26
|
+
branchCode: string;
|
|
27
|
+
parentRef: string;
|
|
28
|
+
displayName?: string;
|
|
29
|
+
legalIds?: Array<{
|
|
30
|
+
kind: 'tax' | 'business_reg' | 'branch_code' | 'other';
|
|
31
|
+
value: string;
|
|
32
|
+
issuedBy?: string;
|
|
33
|
+
}>;
|
|
34
|
+
readiness?: {
|
|
35
|
+
valid?: boolean;
|
|
36
|
+
licenseExpires?: string;
|
|
37
|
+
checkedAt?: string;
|
|
38
|
+
notes?: string;
|
|
39
|
+
};
|
|
40
|
+
effectiveFrom?: string | null;
|
|
41
|
+
metadata?: {
|
|
42
|
+
recordVisibility?: 'current' | 'archived';
|
|
43
|
+
};
|
|
44
|
+
state: 'draft' | 'scheduled' | 'active' | 'closing' | 'closed' | 'cancelled';
|
|
45
|
+
}
|
|
46
|
+
export type PeopleRegisteredBranch = ContentItem<PeopleRegisteredBranchData>;
|
|
47
|
+
/** `effective_revision` (FEAT-001 owner, shared FEAT-002). Polymorphic subject. ✅ */
|
|
48
|
+
export interface PeopleEffectiveRevisionData {
|
|
49
|
+
subjectKind: 'legal_entity' | 'registered_branch' | 'org_unit' | 'position' | 'work_location' | 'unit_type_config' | 'location_type_config';
|
|
50
|
+
subjectRef: string;
|
|
51
|
+
/** Date-keyed payload — preserved opaquely by the SDK; the per-domain
|
|
52
|
+
* payload surface is read through `r.payload.X` (camelCase keys inside). */
|
|
53
|
+
payload: Record<string, unknown>;
|
|
54
|
+
effectiveFrom: string;
|
|
55
|
+
effectiveTo?: string | null;
|
|
56
|
+
timezoneRef?: string | null;
|
|
57
|
+
supersedesRef?: string | null;
|
|
58
|
+
state: 'draft' | 'scheduled' | 'effective' | 'superseded' | 'cancelled';
|
|
59
|
+
}
|
|
60
|
+
export type PeopleEffectiveRevision = ContentItem<PeopleEffectiveRevisionData>;
|
|
61
|
+
/** `closure_case` (FEAT-001). Discriminator `targetType`. ✅ */
|
|
62
|
+
export interface PeopleClosureCaseData {
|
|
63
|
+
targetType: 'legal_entity' | 'registered_branch';
|
|
64
|
+
targetRef: string;
|
|
65
|
+
impact?: {
|
|
66
|
+
acknowledged?: boolean;
|
|
67
|
+
projections?: Record<string, number[]>;
|
|
68
|
+
evaluatedAt?: string;
|
|
69
|
+
unknownDomains?: string[];
|
|
70
|
+
};
|
|
71
|
+
parentCaseRef?: string | null;
|
|
72
|
+
proposedCloseDate?: string | null;
|
|
73
|
+
failureReason?: string | null;
|
|
74
|
+
state: 'draft' | 'pending-approval' | 'approved' | 'completed' | 'rejected' | 'cancelled' | 'failed';
|
|
75
|
+
}
|
|
76
|
+
export type PeopleClosureCase = ContentItem<PeopleClosureCaseData>;
|
|
77
|
+
/** `policy_assignment` (FEAT-001). Applicability relation; content in FEAT-011. ✅ */
|
|
78
|
+
export interface PeoplePolicyAssignmentData {
|
|
79
|
+
policyRef: string;
|
|
80
|
+
policyVersion?: string | null;
|
|
81
|
+
policyKind: string;
|
|
82
|
+
targetType: 'legal_entity' | 'registered_branch';
|
|
83
|
+
targetRef: string;
|
|
84
|
+
effectiveFrom: string;
|
|
85
|
+
effectiveTo?: string | null;
|
|
86
|
+
overrideAllowed?: boolean;
|
|
87
|
+
state: 'scheduled' | 'effective' | 'superseded' | 'cancelled';
|
|
88
|
+
}
|
|
89
|
+
export type PeoplePolicyAssignment = ContentItem<PeoplePolicyAssignmentData>;
|
|
90
|
+
/** `policy` (FEAT-011 registry handle — registry §3.6). Two faces, one
|
|
91
|
+
* artifact, one version: the row is the REGISTRY (lifecycle + effective
|
|
92
|
+
* window + provenance), never the content store. Interim (drift D-5): the
|
|
93
|
+
* authored artifact rides the row (`artifact`) until the FEAT-014 git-plane
|
|
94
|
+
* publisher stamps `sotRef`. ✅ */
|
|
95
|
+
export interface PeoplePolicyData {
|
|
96
|
+
/** Kind taxonomy — `document` (human face) + 3 machine faces; open union. */
|
|
97
|
+
kind: 'document' | 'process-composition' | 'cross-domain-automation' | 'settings-guardrails' | (string & {});
|
|
98
|
+
policyKey?: string;
|
|
99
|
+
face?: 'human' | 'machine';
|
|
100
|
+
/** Human face fields. */
|
|
101
|
+
title?: string;
|
|
102
|
+
audience?: string;
|
|
103
|
+
scope?: string;
|
|
104
|
+
body?: Record<string, unknown>;
|
|
105
|
+
/** Machine face — the authored tree (rides the row interim). */
|
|
106
|
+
artifact?: Record<string, unknown>;
|
|
107
|
+
/** Canonical-hash version (git sha once the publisher lands). */
|
|
108
|
+
version: string;
|
|
109
|
+
/** Machine-face runtime flag — EventGrade, NOT a lifecycle state. */
|
|
110
|
+
enabled?: boolean;
|
|
111
|
+
/** Legacy FEAT-001 assignment-override snapshot (OQ-4). */
|
|
112
|
+
overrideAllowed?: boolean;
|
|
113
|
+
effectiveFrom?: string | null;
|
|
114
|
+
effectiveTo?: string | null;
|
|
115
|
+
publishedBy?: string | null;
|
|
116
|
+
verify?: {
|
|
117
|
+
badge?: 'GREEN' | 'DRIFT' | 'STALE';
|
|
118
|
+
checkedAt?: string;
|
|
119
|
+
} | Record<string, unknown>;
|
|
120
|
+
state: 'draft' | 'published' | 'superseded' | 'archived' | 'cancelled';
|
|
121
|
+
}
|
|
122
|
+
export type PeoplePolicy = ContentItem<PeoplePolicyData>;
|
|
123
|
+
/** `org_unit` | `position` | `work_location` family. ✅ */
|
|
124
|
+
export interface PeopleOrgNodeData {
|
|
125
|
+
code: string;
|
|
126
|
+
legalEntityRef: string;
|
|
127
|
+
parentRef?: string | null;
|
|
128
|
+
effectiveRevisionRef?: string | null;
|
|
129
|
+
successorRef?: string | null;
|
|
130
|
+
predecessorRef?: string | null;
|
|
131
|
+
metadata?: {
|
|
132
|
+
recordVisibility?: 'current' | 'archived';
|
|
133
|
+
};
|
|
134
|
+
state: 'draft' | 'scheduled' | 'active' | 'ended' | 'cancelled';
|
|
135
|
+
}
|
|
136
|
+
export type PeopleOrgUnit = ContentItem<PeopleOrgNodeData>;
|
|
137
|
+
export type PeoplePosition = ContentItem<PeopleOrgNodeData>;
|
|
138
|
+
export type PeopleWorkLocation = ContentItem<PeopleOrgNodeData>;
|
|
139
|
+
/** `unit_type` | `work_location_type` tenant catalogue. ✅ */
|
|
140
|
+
export interface PeopleTypeCatalogueData {
|
|
141
|
+
code: string;
|
|
142
|
+
name: string;
|
|
143
|
+
description?: string | null;
|
|
144
|
+
state: 'in-use' | 'discontinued';
|
|
145
|
+
}
|
|
146
|
+
export type PeopleUnitType = ContentItem<PeopleTypeCatalogueData>;
|
|
147
|
+
export type PeopleWorkLocationType = ContentItem<PeopleTypeCatalogueData>;
|
|
148
|
+
/** `org_change_set` (FEAT-002, approval machinery FEAT-010). ✅ */
|
|
149
|
+
export interface PeopleOrgChangeSetChangeItemData {
|
|
150
|
+
changeType: 'create' | 'amend' | 'move' | 'end';
|
|
151
|
+
/** Target CT of the item — REQUIRED by the pack's cs_submit validator
|
|
152
|
+
* ("changes[n].target_type is invalid" when absent). Value literal,
|
|
153
|
+
* snake per the pack's discriminator (registry §3.18). */
|
|
154
|
+
targetType: 'org_unit' | 'position' | 'work_location';
|
|
155
|
+
/** Temp ref for create, or real uuid for amend/move/end. */
|
|
156
|
+
targetRef: string;
|
|
157
|
+
before?: unknown;
|
|
158
|
+
after?: unknown;
|
|
159
|
+
/** For create/move — the planned parent unit uuid. */
|
|
160
|
+
dependencyRef?: string | null;
|
|
161
|
+
validationResult?: unknown;
|
|
162
|
+
impacted?: unknown[];
|
|
163
|
+
}
|
|
164
|
+
/** `org_change_set` (FEAT-002, approval machinery FEAT-010). ✅ */
|
|
165
|
+
export interface PeopleOrgChangeSetData {
|
|
166
|
+
changeSetCode: string;
|
|
167
|
+
legalEntityRef: string;
|
|
168
|
+
reason: string;
|
|
169
|
+
/** Fingerprint of `(target_ref, latest_effective_revision_ref)` pairs. */
|
|
170
|
+
baseline: Record<string, string>;
|
|
171
|
+
changes: PeopleOrgChangeSetChangeItemData[];
|
|
172
|
+
applicationMode: 'immediate' | 'scheduled';
|
|
173
|
+
effectiveAt?: string | null;
|
|
174
|
+
coordination?: {
|
|
175
|
+
relatedRef?: string;
|
|
176
|
+
owner?: string;
|
|
177
|
+
};
|
|
178
|
+
conflictDetails?: Record<string, unknown>;
|
|
179
|
+
failureDetail?: Record<string, unknown>;
|
|
180
|
+
scopeRecalcStatus: 'not_required' | 'pending' | 'completed' | 'failed';
|
|
181
|
+
resolutionStatus: 'open' | 'closed';
|
|
182
|
+
lastValidation?: Record<string, unknown>;
|
|
183
|
+
state: 'draft' | 'validating' | 'in-review' | 'approved' | 'scheduled' | 'applied' | 'rejected' | 'cancelled' | 'failed' | 'conflict';
|
|
184
|
+
}
|
|
185
|
+
export type PeopleOrgChangeSet = ContentItem<PeopleOrgChangeSetData>;
|
|
186
|
+
//# sourceMappingURL=ct.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ct.types.d.ts","sourceRoot":"","sources":["../../../../src/services/people/legal/ct.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAM9D,uEAAuE;AACvE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE;QAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,KAAK,GAAG,cAAc,GAAG,OAAO,CAAC;QACvC,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;KAA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