sinfactura-types 1.10.402 → 1.10.404
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/cjs/customerCreditCheck.js +13 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/roles.js +11 -1
- package/dist/cjs/userActivity.js +3 -2
- package/dist/customerCreditCheck.d.ts +118 -0
- package/dist/customerCreditCheck.js +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/roles.d.ts +1 -1
- package/dist/roles.js +11 -1
- package/dist/user.d.ts +5 -0
- package/dist/userActivity.d.ts +18 -2
- package/dist/userActivity.js +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// `GET /customers/credit-check?customerId=` — one customer's standing in BCRA's
|
|
3
|
+
// public Central de Deudores registry: the latest reported period of debts with
|
|
4
|
+
// the financial system, plus rejected cheques.
|
|
5
|
+
//
|
|
6
|
+
// READ-ONLY on the customer: the CUIT is resolved server-side from the caller's
|
|
7
|
+
// own customer row (the store is always the token's), and NOTHING is written
|
|
8
|
+
// back to that row. The answer is registry data, not a customer attribute.
|
|
9
|
+
//
|
|
10
|
+
// Staff only (`staffToken` + the `payments` capability — the same capability
|
|
11
|
+
// that gates writing `Customer.creditLimit`), refused under an impersonated
|
|
12
|
+
// support session, and bounded per store per hour.
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/cjs/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __exportStar(require("./currency.js"), exports);
|
|
|
41
41
|
__exportStar(require("./customer.js"), exports);
|
|
42
42
|
__exportStar(require("./customerAddress.js"), exports);
|
|
43
43
|
__exportStar(require("./customerContact.js"), exports);
|
|
44
|
+
__exportStar(require("./customerCreditCheck.js"), exports);
|
|
44
45
|
__exportStar(require("./customerNote.js"), exports);
|
|
45
46
|
__exportStar(require("./customerTimeline.js"), exports);
|
|
46
47
|
__exportStar(require("./cycleCount.js"), exports);
|
package/dist/cjs/roles.js
CHANGED
|
@@ -34,4 +34,14 @@ exports.USER_ROLES = void 0;
|
|
|
34
34
|
* machine identity has to win attribution because it already wins the
|
|
35
35
|
* authorization decision. Do not derive one from the other.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
/*
|
|
38
|
+
* ⚠️ **`ACCOUNTANT` is a RESTRICTED role, like `PRINTER` — not a rung on a ladder.**
|
|
39
|
+
* It is the tenant's accountant: a read-only fiscal login that reaches the
|
|
40
|
+
* fiscal-book report modes (`invoices`, `supplier-invoices`, `libro-iva-digital`,
|
|
41
|
+
* `iva-simple-apertura`) and the `GET /invoices` reads, and is refused
|
|
42
|
+
* everywhere else by default. Its presence on a claim outranks any operator role
|
|
43
|
+
* beside it. It does not occupy a `maxUsers` seat and is capped per store
|
|
44
|
+
* separately. Unrelated to the reserved `UserPermissions.accountant` capability
|
|
45
|
+
* key, which nothing reads.
|
|
46
|
+
*/
|
|
47
|
+
exports.USER_ROLES = ['USER', 'ADMIN', 'SUPERVISOR', 'MANAGER', 'PRINTER', 'ACCOUNTANT'];
|
package/dist/cjs/userActivity.js
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
// Naming follows `StorefrontEvent`'s convention: Title Case Object + Past-Tense Action for
|
|
7
7
|
// event names, snake_case for properties.
|
|
8
8
|
//
|
|
9
|
-
// Distinct from `StorefrontEvent`: subject is internal staff (USER/ADMIN/SUPERVISOR/MANAGER
|
|
10
|
-
// the PRINTER machine identity (a Cloud Print agent), never
|
|
9
|
+
// Distinct from `StorefrontEvent`: subject is internal staff (USER/ADMIN/SUPERVISOR/MANAGER, or the
|
|
10
|
+
// read-only ACCOUNTANT fiscal login) or the PRINTER machine identity (a Cloud Print agent), never
|
|
11
|
+
// anonymous; retention is 90d hot +
|
|
11
12
|
// multi-year archive; append-only / anti-erasure per Ley 25.326 audit-trail exemption; ingest is
|
|
12
13
|
// synchronous only (WS ingest disallowed).
|
|
13
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
/** Query of `GET /customers/credit-check`. */
|
|
3
|
+
interface CustomerCreditCheckRequest {
|
|
4
|
+
customerId: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* One reporting institution's line for the reported period.
|
|
8
|
+
*
|
|
9
|
+
* `situation` is BCRA's debtor classification: 1 normal, 2 special
|
|
10
|
+
* follow-up / low risk, 3 problematic / medium risk, 4 high insolvency risk,
|
|
11
|
+
* 5 irrecoverable (6 appears on legacy rows: irrecoverable by technical
|
|
12
|
+
* disposition). `null` when BCRA published none.
|
|
13
|
+
*/
|
|
14
|
+
interface CustomerCreditCheckEntity {
|
|
15
|
+
/** The institution's name, as BCRA publishes it. */
|
|
16
|
+
entity: string;
|
|
17
|
+
situation: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* ARS PESOS. ⚠️ BCRA publishes this field in THOUSANDS of pesos; the api
|
|
20
|
+
* multiplies by 1000 so the client never has to know.
|
|
21
|
+
*/
|
|
22
|
+
amount: number | null;
|
|
23
|
+
daysOverdue: number | null;
|
|
24
|
+
refinanced: boolean;
|
|
25
|
+
/** Under review (Ley 25.326 art. 16). */
|
|
26
|
+
underReview: boolean;
|
|
27
|
+
/** Under judicial proceedings (Ley 25.326 art. 38). */
|
|
28
|
+
judicialProcess: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** One rejected cheque, flattened out of BCRA's cause → entity → detail nesting. */
|
|
31
|
+
interface CustomerCreditCheckRejectedCheque {
|
|
32
|
+
/** The rejection cause as BCRA words it (e.g. `SIN FONDOS`). */
|
|
33
|
+
cause: string | null;
|
|
34
|
+
/** BCRA's bank GROUPING CODE — a number, not an institution name. */
|
|
35
|
+
entityCode: number | null;
|
|
36
|
+
chequeNumber: number | null;
|
|
37
|
+
/** `YYYY-MM-DD`. */
|
|
38
|
+
rejectedAt: string | null;
|
|
39
|
+
/** ARS pesos as published (cheque amounts are NOT in thousands). */
|
|
40
|
+
amount: number | null;
|
|
41
|
+
/** `YYYY-MM-DD` the cheque was cleared, `null` while unpaid. */
|
|
42
|
+
paidAt: string | null;
|
|
43
|
+
/** `YYYY-MM-DD` the fine was paid, `null` while unpaid. */
|
|
44
|
+
finePaidAt: string | null;
|
|
45
|
+
/** `IMPAGA`, `SUSPENDIDO`, `SUSPENDIDA` — present only while `finePaidAt` is `null`. */
|
|
46
|
+
fineStatus: string | null;
|
|
47
|
+
underReview: boolean;
|
|
48
|
+
judicialProcess: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Fields both successful outcomes carry.
|
|
52
|
+
*
|
|
53
|
+
* - `consultedAt` — ms epoch at which BCRA was ACTUALLY queried. A cached
|
|
54
|
+
* answer keeps its original time, so a client can show "consultado hace…".
|
|
55
|
+
* - `cached` — `true` when this answer came from the api's short cache rather
|
|
56
|
+
* than a live upstream call. The cache is PER STORE, so both fields only
|
|
57
|
+
* ever describe the caller's own store's checks.
|
|
58
|
+
*/
|
|
59
|
+
interface CustomerCreditCheckBase {
|
|
60
|
+
/** The 11-digit identifier that was queried, digits only. */
|
|
61
|
+
cuit: string;
|
|
62
|
+
consultedAt: number;
|
|
63
|
+
cached: boolean;
|
|
64
|
+
}
|
|
65
|
+
/** BCRA holds a record: debts in the latest reported period, rejected cheques, or both. */
|
|
66
|
+
interface CustomerCreditCheckFound extends CustomerCreditCheckBase {
|
|
67
|
+
outcome: 'FOUND';
|
|
68
|
+
/** BCRA's `denominacion` for the identifier. */
|
|
69
|
+
name: string | null;
|
|
70
|
+
/** The period the debt lines belong to, `YYYYMM`; `null` when BCRA reported no debts. */
|
|
71
|
+
period: string | null;
|
|
72
|
+
/** The WORST (highest) `situation` across `entities`; `null` when none carries one. */
|
|
73
|
+
worstSituation: number | null;
|
|
74
|
+
/** One row per reporting institution for `period`. Empty when only cheques were found. */
|
|
75
|
+
entities: CustomerCreditCheckEntity[];
|
|
76
|
+
rejectedCheques: CustomerCreditCheckRejectedCheque[];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* BCRA has no record of the identifier on EITHER registry — no reported
|
|
80
|
+
* debts and no rejected cheques. For a credit decision this is a clean
|
|
81
|
+
* answer, not an error.
|
|
82
|
+
*/
|
|
83
|
+
interface CustomerCreditCheckNotFound extends CustomerCreditCheckBase {
|
|
84
|
+
outcome: 'NOT_FOUND';
|
|
85
|
+
}
|
|
86
|
+
/** `data` of a 200. Discriminate on `outcome`. */
|
|
87
|
+
type CustomerCreditCheckResult = CustomerCreditCheckFound | CustomerCreditCheckNotFound;
|
|
88
|
+
/**
|
|
89
|
+
* Every outcome of the check, successful or not. The first two arrive as a
|
|
90
|
+
* 200 `data.outcome`; the rest as the `error` of a refusal:
|
|
91
|
+
*
|
|
92
|
+
* - `INVALID_ID` (422) — the customer's identifier is not an 11-digit
|
|
93
|
+
* CUIT/CUIL/CDI with a correct mod-11 check digit (or BCRA itself refused
|
|
94
|
+
* it as malformed). Nothing is sent upstream for a locally invalid one.
|
|
95
|
+
* - `CUSTOMER_HAS_NO_CUIT` (422) — the customer carries no identifier at
|
|
96
|
+
* all (neither `cuit` nor any `afip[].cuit`).
|
|
97
|
+
* - `UPSTREAM_UNAVAILABLE` (502) — BCRA timed out, answered 5xx or an
|
|
98
|
+
* unexpected status, or returned a body that does not parse. Never a
|
|
99
|
+
* partial answer: debts without cheques would read as a cleaner record
|
|
100
|
+
* than the truth.
|
|
101
|
+
*/
|
|
102
|
+
type CustomerCreditCheckOutcome = CustomerCreditCheckResult['outcome'] | 'INVALID_ID' | 'CUSTOMER_HAS_NO_CUIT' | 'UPSTREAM_UNAVAILABLE';
|
|
103
|
+
/**
|
|
104
|
+
* Every `error` code the route answers with, besides the generic
|
|
105
|
+
* `VALIDATION_FAILED` and `CAPABILITY_REQUIRED` (403, `data.capability:
|
|
106
|
+
* 'payments'`):
|
|
107
|
+
*
|
|
108
|
+
* - the three failure outcomes of {@link CustomerCreditCheckOutcome};
|
|
109
|
+
* - `CUSTOMER_NOT_FOUND` (404) — no such customer in the caller's store.
|
|
110
|
+
* Another store's id answers the same, so the route is no existence oracle;
|
|
111
|
+
* - `CREDIT_CHECK_RATE_LIMITED` (429) — the store spent its hourly budget;
|
|
112
|
+
* `data.retryAfterSeconds` says when the window rolls over;
|
|
113
|
+
* - `CREDIT_CHECK_IMPERSONATION_FORBIDDEN` (403) — refused under an
|
|
114
|
+
* impersonated support session.
|
|
115
|
+
*/
|
|
116
|
+
type CustomerCreditCheckErrorCode = Exclude<CustomerCreditCheckOutcome, CustomerCreditCheckResult['outcome']> | 'CUSTOMER_NOT_FOUND' | 'CREDIT_CHECK_RATE_LIMITED' | 'CREDIT_CHECK_IMPERSONATION_FORBIDDEN';
|
|
117
|
+
}
|
|
118
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// `GET /customers/credit-check?customerId=` — one customer's standing in BCRA's
|
|
2
|
+
// public Central de Deudores registry: the latest reported period of debts with
|
|
3
|
+
// the financial system, plus rejected cheques.
|
|
4
|
+
//
|
|
5
|
+
// READ-ONLY on the customer: the CUIT is resolved server-side from the caller's
|
|
6
|
+
// own customer row (the store is always the token's), and NOTHING is written
|
|
7
|
+
// back to that row. The answer is registry data, not a customer attribute.
|
|
8
|
+
//
|
|
9
|
+
// Staff only (`staffToken` + the `payments` capability — the same capability
|
|
10
|
+
// that gates writing `Customer.creditLimit`), refused under an impersonated
|
|
11
|
+
// support session, and bounded per store per hour.
|
|
12
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './currency.ts';
|
|
|
17
17
|
export * from './customer.ts';
|
|
18
18
|
export * from './customerAddress.ts';
|
|
19
19
|
export * from './customerContact.ts';
|
|
20
|
+
export * from './customerCreditCheck.ts';
|
|
20
21
|
export * from './customerNote.ts';
|
|
21
22
|
export * from './customerTimeline.ts';
|
|
22
23
|
export * from './cycleCount.ts';
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from "./currency.js";
|
|
|
25
25
|
export * from "./customer.js";
|
|
26
26
|
export * from "./customerAddress.js";
|
|
27
27
|
export * from "./customerContact.js";
|
|
28
|
+
export * from "./customerCreditCheck.js";
|
|
28
29
|
export * from "./customerNote.js";
|
|
29
30
|
export * from "./customerTimeline.js";
|
|
30
31
|
export * from "./cycleCount.js";
|
package/dist/roles.d.ts
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* machine identity has to win attribution because it already wins the
|
|
32
32
|
* authorization decision. Do not derive one from the other.
|
|
33
33
|
*/
|
|
34
|
-
export declare const USER_ROLES: readonly ["USER", "ADMIN", "SUPERVISOR", "MANAGER", "PRINTER"];
|
|
34
|
+
export declare const USER_ROLES: readonly ["USER", "ADMIN", "SUPERVISOR", "MANAGER", "PRINTER", "ACCOUNTANT"];
|
|
35
35
|
/** One assignable staff role token. See `USER_ROLES` for why this is not the shape of `User.roles`. */
|
|
36
36
|
export type UserRole = (typeof USER_ROLES)[number];
|
|
37
37
|
/**
|
package/dist/roles.js
CHANGED
|
@@ -31,4 +31,14 @@
|
|
|
31
31
|
* machine identity has to win attribution because it already wins the
|
|
32
32
|
* authorization decision. Do not derive one from the other.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
/*
|
|
35
|
+
* ⚠️ **`ACCOUNTANT` is a RESTRICTED role, like `PRINTER` — not a rung on a ladder.**
|
|
36
|
+
* It is the tenant's accountant: a read-only fiscal login that reaches the
|
|
37
|
+
* fiscal-book report modes (`invoices`, `supplier-invoices`, `libro-iva-digital`,
|
|
38
|
+
* `iva-simple-apertura`) and the `GET /invoices` reads, and is refused
|
|
39
|
+
* everywhere else by default. Its presence on a claim outranks any operator role
|
|
40
|
+
* beside it. It does not occupy a `maxUsers` seat and is capped per store
|
|
41
|
+
* separately. Unrelated to the reserved `UserPermissions.accountant` capability
|
|
42
|
+
* key, which nothing reads.
|
|
43
|
+
*/
|
|
44
|
+
export const USER_ROLES = ['USER', 'ADMIN', 'SUPERVISOR', 'MANAGER', 'PRINTER', 'ACCOUNTANT'];
|
package/dist/user.d.ts
CHANGED
|
@@ -249,6 +249,11 @@ declare global {
|
|
|
249
249
|
customers?: boolean;
|
|
250
250
|
products?: boolean;
|
|
251
251
|
seller?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Reserved, and read by nothing. NOT the `ACCOUNTANT` role in `roles` — that
|
|
254
|
+
* is a separate, restricted login (see `USER_ROLES`); setting this flag grants
|
|
255
|
+
* no fiscal access of any kind.
|
|
256
|
+
*/
|
|
252
257
|
accountant?: boolean;
|
|
253
258
|
payments?: boolean;
|
|
254
259
|
cash?: boolean;
|
package/dist/userActivity.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare global {
|
|
|
28
28
|
* {@link CustomerActivityEventBase} instead.
|
|
29
29
|
*/
|
|
30
30
|
interface UserActivityEventBase extends ActivityEventBase {
|
|
31
|
-
actor_role: 'USER' | 'ADMIN' | 'SUPERVISOR' | 'MANAGER' | 'PRINTER';
|
|
31
|
+
actor_role: 'USER' | 'ADMIN' | 'SUPERVISOR' | 'MANAGER' | 'PRINTER' | 'ACCOUNTANT';
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* A row written for an action the CUSTOMER took themselves, landing in the
|
|
@@ -295,6 +295,22 @@ declare global {
|
|
|
295
295
|
*/
|
|
296
296
|
field_set: 'full' | 'display';
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* A staff member ran `GET /customers/credit-check` for one of the store's
|
|
300
|
+
* customers — WHO looked up WHOSE standing in BCRA's Central de Deudores.
|
|
301
|
+
* Server-emitted on every check that resolved the customer (all five
|
|
302
|
+
* outcomes); a refusal before that (404, 429, capability, impersonation)
|
|
303
|
+
* looked nothing up and emits nothing.
|
|
304
|
+
*
|
|
305
|
+
* ⚠️ Ids and the outcome ONLY — never the CUIT, the name BCRA returned, a
|
|
306
|
+
* situation or an amount. The trail answers "who checked", not "what they
|
|
307
|
+
* saw"; the registry answer itself is kept nowhere but the 12 h cache.
|
|
308
|
+
*/
|
|
309
|
+
interface CustomerCreditCheckPerformedEvent extends UserActivityEventBase {
|
|
310
|
+
event: 'Customer Credit Check Performed';
|
|
311
|
+
customer_id: string;
|
|
312
|
+
outcome: CustomerCreditCheckOutcome;
|
|
313
|
+
}
|
|
298
314
|
interface CashDrawerOpenedEvent extends UserActivityEventBase {
|
|
299
315
|
event: 'Cash Drawer Opened';
|
|
300
316
|
cash_id: string;
|
|
@@ -1157,7 +1173,7 @@ declare global {
|
|
|
1157
1173
|
carrier?: string;
|
|
1158
1174
|
tracking_set: boolean;
|
|
1159
1175
|
}
|
|
1160
|
-
type UserActivityEvent = CustomerConsentImportedEvent | CustomerConsentImportCompletedEvent | UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CustomerRecordServedEvent | CustomersMergedEvent | CashDrawerOpenedEvent | CashDrawerClosedEvent | TenantImpersonatedEvent | SecretRotatedEvent | UserCreatedEvent | UserUpdatedEvent | ProductCreatedEvent | ProductUpdatedEvent | StockIncomeCreatedEvent | StockAdjustedEvent | CategoryCreatedEvent | CategoryUpdatedEvent | BrandCreatedEvent | BrandUpdatedEvent | SupplierCreatedEvent | SupplierUpdatedEvent | SupplierInvoiceCreatedEvent | SupplierInvoiceMatchOverriddenEvent | SupplierClaimRaisedEvent | SupplierClaimStatusChangedEvent | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDiscountGrantedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | CreditLimitOverriddenEvent | AppointmentSelfBookingBlockOverriddenEvent | AppointmentSelfBookingBlockLiftedEvent | NotificationReadEvent | LogDeletedEvent | PlanCreatedEvent | StoreMaintenanceToggledEvent | PlatformMaintenanceToggledEvent | MaintenanceBroadcastSentEvent | TenantCreatedEvent | LiteralUpdatedEvent | SupportTicketCreatedEvent | SupportTicketUpdatedEvent | AuditTrailViewedEvent | ReportViewedEvent | CustomerPiiViewedEvent | CashDrawerUiOpenedEvent | CashDrawerUiClosedEvent | ExportInitiatedEvent | ImpersonationUiStartedEvent | ImpersonationUiEndedEvent | PaymentViewedEvent | InvoiceViewedEvent | CustomerDetailViewedEvent | SupplierAccountViewedEvent | SearchPerformedEvent | ActionDeniedEvent | TwoFactorChallengeShownEvent | TwoFactorCodeValidationFailedEvent | TwoFactorEnrollmentStartedEvent | TwoFactorRecoveryCodesRevealedEvent | TwoFactorResetInitiatedEvent | IntegrationTokenRefreshedEvent | WaitlistConvertedEvent | PlatformConfigUpdatedEvent | MlChannelStatusChangedEvent | IntegrationConnectionChangedEvent | PrintRuleCreatedEvent | PrintRuleEditedEvent | PrintRuleDeletedEvent | WebhookCreatedEvent | WebhookUpdatedEvent | WebhookDeletedEvent | PrinterActiveToggledEvent | PrinterRawFormatsUpdatedEvent | PrinterProfileUpdatedEvent | PlanTemplateUpdatedEvent | SupplierAccountDeletedEvent | CustomerPasswordResetInitiatedEvent | UserSessionsRevokedEvent | UserAnonymizedEvent | UserPasswordResetInitiatedByOperatorEvent | AgentCommandDispatchedEvent | RmaRequestedEvent | RmaTransitionedEvent | RmaTrackingUpdatedEvent | ClockedInEvent | ClockedOutEvent | AttendanceCorrectedEvent;
|
|
1176
|
+
type UserActivityEvent = CustomerConsentImportedEvent | CustomerConsentImportCompletedEvent | UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CustomerRecordServedEvent | CustomerCreditCheckPerformedEvent | CustomersMergedEvent | CashDrawerOpenedEvent | CashDrawerClosedEvent | TenantImpersonatedEvent | SecretRotatedEvent | UserCreatedEvent | UserUpdatedEvent | ProductCreatedEvent | ProductUpdatedEvent | StockIncomeCreatedEvent | StockAdjustedEvent | CategoryCreatedEvent | CategoryUpdatedEvent | BrandCreatedEvent | BrandUpdatedEvent | SupplierCreatedEvent | SupplierUpdatedEvent | SupplierInvoiceCreatedEvent | SupplierInvoiceMatchOverriddenEvent | SupplierClaimRaisedEvent | SupplierClaimStatusChangedEvent | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDiscountGrantedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | CreditLimitOverriddenEvent | AppointmentSelfBookingBlockOverriddenEvent | AppointmentSelfBookingBlockLiftedEvent | NotificationReadEvent | LogDeletedEvent | PlanCreatedEvent | StoreMaintenanceToggledEvent | PlatformMaintenanceToggledEvent | MaintenanceBroadcastSentEvent | TenantCreatedEvent | LiteralUpdatedEvent | SupportTicketCreatedEvent | SupportTicketUpdatedEvent | AuditTrailViewedEvent | ReportViewedEvent | CustomerPiiViewedEvent | CashDrawerUiOpenedEvent | CashDrawerUiClosedEvent | ExportInitiatedEvent | ImpersonationUiStartedEvent | ImpersonationUiEndedEvent | PaymentViewedEvent | InvoiceViewedEvent | CustomerDetailViewedEvent | SupplierAccountViewedEvent | SearchPerformedEvent | ActionDeniedEvent | TwoFactorChallengeShownEvent | TwoFactorCodeValidationFailedEvent | TwoFactorEnrollmentStartedEvent | TwoFactorRecoveryCodesRevealedEvent | TwoFactorResetInitiatedEvent | IntegrationTokenRefreshedEvent | WaitlistConvertedEvent | PlatformConfigUpdatedEvent | MlChannelStatusChangedEvent | IntegrationConnectionChangedEvent | PrintRuleCreatedEvent | PrintRuleEditedEvent | PrintRuleDeletedEvent | WebhookCreatedEvent | WebhookUpdatedEvent | WebhookDeletedEvent | PrinterActiveToggledEvent | PrinterRawFormatsUpdatedEvent | PrinterProfileUpdatedEvent | PlanTemplateUpdatedEvent | SupplierAccountDeletedEvent | CustomerPasswordResetInitiatedEvent | UserSessionsRevokedEvent | UserAnonymizedEvent | UserPasswordResetInitiatedByOperatorEvent | AgentCommandDispatchedEvent | RmaRequestedEvent | RmaTransitionedEvent | RmaTrackingUpdatedEvent | ClockedInEvent | ClockedOutEvent | AttendanceCorrectedEvent;
|
|
1161
1177
|
}
|
|
1162
1178
|
/**
|
|
1163
1179
|
* Canonical whitelist of UI-only `UserActivityEvent` variant names. Imported by
|
package/dist/userActivity.js
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
// Naming follows `StorefrontEvent`'s convention: Title Case Object + Past-Tense Action for
|
|
6
6
|
// event names, snake_case for properties.
|
|
7
7
|
//
|
|
8
|
-
// Distinct from `StorefrontEvent`: subject is internal staff (USER/ADMIN/SUPERVISOR/MANAGER
|
|
9
|
-
// the PRINTER machine identity (a Cloud Print agent), never
|
|
8
|
+
// Distinct from `StorefrontEvent`: subject is internal staff (USER/ADMIN/SUPERVISOR/MANAGER, or the
|
|
9
|
+
// read-only ACCOUNTANT fiscal login) or the PRINTER machine identity (a Cloud Print agent), never
|
|
10
|
+
// anonymous; retention is 90d hot +
|
|
10
11
|
// multi-year archive; append-only / anti-erasure per Ley 25.326 audit-trail exemption; ingest is
|
|
11
12
|
// synchronous only (WS ingest disallowed).
|
|
12
13
|
/**
|