sinfactura-types 1.10.403 → 1.10.405
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/gating.js +8 -0
- package/dist/cjs/index.js +1 -0
- package/dist/customerCreditCheck.d.ts +118 -0
- package/dist/customerCreditCheck.js +12 -0
- package/dist/gating.d.ts +8 -1
- package/dist/gating.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/userActivity.d.ts +17 -1
- 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/gating.js
CHANGED
|
@@ -37,6 +37,13 @@ exports.GATING_ERROR_CODES = void 0;
|
|
|
37
37
|
* - `WAREHOUSE_OUT_OF_SCOPE` · 403 — `stacks/helpers/warehouseScope.ts`, on a
|
|
38
38
|
* stock write naming a depósito outside the operator's
|
|
39
39
|
* `User.allowedWarehouseIds`; `data.warehouseId` names it.
|
|
40
|
+
* - `ROLE_FORBIDDEN` · 403 — `stacks/helpers/response.ts` (`tryCatch`), ahead
|
|
41
|
+
* of every other gate, when an ACCOUNTANT token reaches a route outside
|
|
42
|
+
* `ACCOUNTANT_ALLOWED_ROUTES` (`@helpers/accountantGate`). ⚠️ The same code is
|
|
43
|
+
* ALSO a member of several domain unions (`cash`, `stock`, `appointment`,
|
|
44
|
+
* `cycleCount`), where a HANDLER refuses a role on its own; that membership
|
|
45
|
+
* describes those routes' own role checks and is NOT this reach — the
|
|
46
|
+
* wrapper answers it on any wrapped route, for an ACCOUNTANT claim.
|
|
40
47
|
*
|
|
41
48
|
* ⚠️ A domain's own error union does NOT list these, and that is deliberate:
|
|
42
49
|
* they are reachable from endpoints whose union predates them, and duplicating
|
|
@@ -60,4 +67,5 @@ exports.GATING_ERROR_CODES = [
|
|
|
60
67
|
'PLAN_UPGRADE_REQUIRED',
|
|
61
68
|
'CAPABILITY_REQUIRED',
|
|
62
69
|
'WAREHOUSE_OUT_OF_SCOPE',
|
|
70
|
+
'ROLE_FORBIDDEN',
|
|
63
71
|
];
|
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);
|
|
@@ -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/gating.d.ts
CHANGED
|
@@ -34,6 +34,13 @@
|
|
|
34
34
|
* - `WAREHOUSE_OUT_OF_SCOPE` · 403 — `stacks/helpers/warehouseScope.ts`, on a
|
|
35
35
|
* stock write naming a depósito outside the operator's
|
|
36
36
|
* `User.allowedWarehouseIds`; `data.warehouseId` names it.
|
|
37
|
+
* - `ROLE_FORBIDDEN` · 403 — `stacks/helpers/response.ts` (`tryCatch`), ahead
|
|
38
|
+
* of every other gate, when an ACCOUNTANT token reaches a route outside
|
|
39
|
+
* `ACCOUNTANT_ALLOWED_ROUTES` (`@helpers/accountantGate`). ⚠️ The same code is
|
|
40
|
+
* ALSO a member of several domain unions (`cash`, `stock`, `appointment`,
|
|
41
|
+
* `cycleCount`), where a HANDLER refuses a role on its own; that membership
|
|
42
|
+
* describes those routes' own role checks and is NOT this reach — the
|
|
43
|
+
* wrapper answers it on any wrapped route, for an ACCOUNTANT claim.
|
|
37
44
|
*
|
|
38
45
|
* ⚠️ A domain's own error union does NOT list these, and that is deliberate:
|
|
39
46
|
* they are reachable from endpoints whose union predates them, and duplicating
|
|
@@ -45,6 +52,6 @@
|
|
|
45
52
|
* answer `SUBSCRIPTION_READONLY`. Membership here means "exists and is
|
|
46
53
|
* cross-cutting", not "every route emits it".
|
|
47
54
|
*/
|
|
48
|
-
export declare const GATING_ERROR_CODES: readonly ["MAINTENANCE", "IMPERSONATION_READONLY", "IMPERSONATION_SESSION_INVALID", "IMPERSONATION_REGISTRY_UNAVAILABLE", "CSRF_ORIGIN_REJECTED", "SUBSCRIPTION_READONLY", "SUBSCRIPTION_STATE_UNAVAILABLE", "PLAN_LIMIT_EXCEEDED", "PLAN_UPGRADE_REQUIRED", "CAPABILITY_REQUIRED", "WAREHOUSE_OUT_OF_SCOPE"];
|
|
55
|
+
export declare const GATING_ERROR_CODES: readonly ["MAINTENANCE", "IMPERSONATION_READONLY", "IMPERSONATION_SESSION_INVALID", "IMPERSONATION_REGISTRY_UNAVAILABLE", "CSRF_ORIGIN_REJECTED", "SUBSCRIPTION_READONLY", "SUBSCRIPTION_STATE_UNAVAILABLE", "PLAN_LIMIT_EXCEEDED", "PLAN_UPGRADE_REQUIRED", "CAPABILITY_REQUIRED", "WAREHOUSE_OUT_OF_SCOPE", "ROLE_FORBIDDEN"];
|
|
49
56
|
export type GatingErrorCode = (typeof GATING_ERROR_CODES)[number];
|
|
50
57
|
export {};
|
package/dist/gating.js
CHANGED
|
@@ -34,6 +34,13 @@
|
|
|
34
34
|
* - `WAREHOUSE_OUT_OF_SCOPE` · 403 — `stacks/helpers/warehouseScope.ts`, on a
|
|
35
35
|
* stock write naming a depósito outside the operator's
|
|
36
36
|
* `User.allowedWarehouseIds`; `data.warehouseId` names it.
|
|
37
|
+
* - `ROLE_FORBIDDEN` · 403 — `stacks/helpers/response.ts` (`tryCatch`), ahead
|
|
38
|
+
* of every other gate, when an ACCOUNTANT token reaches a route outside
|
|
39
|
+
* `ACCOUNTANT_ALLOWED_ROUTES` (`@helpers/accountantGate`). ⚠️ The same code is
|
|
40
|
+
* ALSO a member of several domain unions (`cash`, `stock`, `appointment`,
|
|
41
|
+
* `cycleCount`), where a HANDLER refuses a role on its own; that membership
|
|
42
|
+
* describes those routes' own role checks and is NOT this reach — the
|
|
43
|
+
* wrapper answers it on any wrapped route, for an ACCOUNTANT claim.
|
|
37
44
|
*
|
|
38
45
|
* ⚠️ A domain's own error union does NOT list these, and that is deliberate:
|
|
39
46
|
* they are reachable from endpoints whose union predates them, and duplicating
|
|
@@ -57,4 +64,5 @@ export const GATING_ERROR_CODES = [
|
|
|
57
64
|
'PLAN_UPGRADE_REQUIRED',
|
|
58
65
|
'CAPABILITY_REQUIRED',
|
|
59
66
|
'WAREHOUSE_OUT_OF_SCOPE',
|
|
67
|
+
'ROLE_FORBIDDEN',
|
|
60
68
|
];
|
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/userActivity.d.ts
CHANGED
|
@@ -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
|