sinfactura-types 1.10.366 → 1.10.367
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/notification.js +14 -1
- package/dist/mercadolibre.d.ts +21 -1
- package/dist/notification.d.ts +13 -0
- package/dist/notification.js +14 -1
- package/dist/userActivity.d.ts +10 -1
- package/package.json +1 -1
package/dist/cjs/notification.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.NotificationTypeEnum = void 0;
|
|
|
7
7
|
// Stripe hook, propagate-fx). Exported as a real enum so `api`
|
|
8
8
|
// (stacks/helpers/notificationType.ts) and `app`
|
|
9
9
|
// (src/domain/notificationType.ts) can drop their hand-mirrored copies
|
|
10
|
-
// in follow-ups. DOLARBNA / ERROR / ML_FACTURADOR_COLLISION have no
|
|
10
|
+
// in follow-ups. DOLARBNA / ERROR / ML_FACTURADOR_COLLISION / ML_SELLER_SWITCHED have no
|
|
11
11
|
// User-row read path — enum members only. AFIP_CERT_EXPIRY (the
|
|
12
12
|
// cert-expiry alert type) was in that list and no longer belongs to it:
|
|
13
13
|
// `createStore` seeds it on the founding user and `afipCertMonitor`
|
|
@@ -49,6 +49,19 @@ var NotificationTypeEnum;
|
|
|
49
49
|
* The producer therefore fans out to every ADMIN of the store.
|
|
50
50
|
*/
|
|
51
51
|
NotificationTypeEnum["ML_FACTURADOR_COLLISION"] = "ML_FACTURADOR_COLLISION";
|
|
52
|
+
/**
|
|
53
|
+
* The store's linked Mercado Libre seller was REPLACED by a different ML
|
|
54
|
+
* account (a confirmed seller switch). Names who switched it, from which
|
|
55
|
+
* account to which, and when.
|
|
56
|
+
*
|
|
57
|
+
* ⚠️ No User-row read path, same category and same two reasons as
|
|
58
|
+
* `ML_FACTURADOR_COLLISION`: a silent seller switch drops every
|
|
59
|
+
* notification for the real seller, which no tenant should be able to
|
|
60
|
+
* opt out of hearing about; and a new key is seeded nowhere, so an opt-in
|
|
61
|
+
* read would deliver it to nobody. The producer fans out to every
|
|
62
|
+
* non-disabled ADMIN of the store. Additive — no consumer migration owed.
|
|
63
|
+
*/
|
|
64
|
+
NotificationTypeEnum["ML_SELLER_SWITCHED"] = "ML_SELLER_SWITCHED";
|
|
52
65
|
// Stock alerts — fired when a sale crosses a product's stock
|
|
53
66
|
// threshold. LOW_STOCK at stock <= `Product.minStock`; OUT_OF_STOCK at
|
|
54
67
|
// stock <= 0. Both have User-row opt-in read paths.
|
package/dist/mercadolibre.d.ts
CHANGED
|
@@ -2,7 +2,27 @@ declare global {
|
|
|
2
2
|
interface MlOauthInitiateResponse {
|
|
3
3
|
authorizationUrl: string;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
interface MlOauthInitiateRequest {
|
|
6
|
+
switchToUserId?: string;
|
|
7
|
+
}
|
|
8
|
+
interface MlSellerAccountRef {
|
|
9
|
+
userId: string;
|
|
10
|
+
nickname?: string;
|
|
11
|
+
}
|
|
12
|
+
interface MlSellerSwitchRefusal {
|
|
13
|
+
code: MlSellerSwitchRefusalCode;
|
|
14
|
+
current: MlSellerAccountRef;
|
|
15
|
+
attempted: MlSellerAccountRef;
|
|
16
|
+
}
|
|
17
|
+
interface MlSellerSwitchRefusalQuery {
|
|
18
|
+
error: MlSellerSwitchRefusalCode;
|
|
19
|
+
currentUserId: string;
|
|
20
|
+
currentNickname?: string;
|
|
21
|
+
attemptedUserId: string;
|
|
22
|
+
attemptedNickname?: string;
|
|
23
|
+
}
|
|
24
|
+
type MlSellerSwitchRefusalCode = 'ML_SELLER_SWITCH_UNCONFIRMED' | 'ML_SELLER_SWITCH_MISMATCH' | 'ML_SELLER_SWITCH_STALE';
|
|
25
|
+
type MlOauthErrorCode = 'OAUTH_USER_DENIED' | 'OAUTH_STATE_MISMATCH' | 'OAUTH_EXCHANGE_FAILED' | 'ML_OAUTH_NOT_CONFIGURED' | 'ML_REDIRECT_URI_MISMATCH' | 'ML_OFFLINE_ACCESS_NOT_GRANTED' | 'ML_OPERATOR_SUB_ACCOUNT' | 'ML_SELLER_ALREADY_LINKED' | MlSellerSwitchRefusalCode;
|
|
6
26
|
type MlMatchGrade = 'vinculada' | 'para-revisar' | 'sin-vincular' | 'rechazada';
|
|
7
27
|
type MlMatchBasis = 'seller_sku' | 'gtin' | 'title';
|
|
8
28
|
interface MlFieldError {
|
package/dist/notification.d.ts
CHANGED
|
@@ -29,6 +29,19 @@ export declare enum NotificationTypeEnum {
|
|
|
29
29
|
* The producer therefore fans out to every ADMIN of the store.
|
|
30
30
|
*/
|
|
31
31
|
ML_FACTURADOR_COLLISION = "ML_FACTURADOR_COLLISION",
|
|
32
|
+
/**
|
|
33
|
+
* The store's linked Mercado Libre seller was REPLACED by a different ML
|
|
34
|
+
* account (a confirmed seller switch). Names who switched it, from which
|
|
35
|
+
* account to which, and when.
|
|
36
|
+
*
|
|
37
|
+
* ⚠️ No User-row read path, same category and same two reasons as
|
|
38
|
+
* `ML_FACTURADOR_COLLISION`: a silent seller switch drops every
|
|
39
|
+
* notification for the real seller, which no tenant should be able to
|
|
40
|
+
* opt out of hearing about; and a new key is seeded nowhere, so an opt-in
|
|
41
|
+
* read would deliver it to nobody. The producer fans out to every
|
|
42
|
+
* non-disabled ADMIN of the store. Additive — no consumer migration owed.
|
|
43
|
+
*/
|
|
44
|
+
ML_SELLER_SWITCHED = "ML_SELLER_SWITCHED",
|
|
32
45
|
LOW_STOCK = "LOW_STOCK",
|
|
33
46
|
OUT_OF_STOCK = "OUT_OF_STOCK",
|
|
34
47
|
SUPPORT = "SUPPORT",
|
package/dist/notification.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Stripe hook, propagate-fx). Exported as a real enum so `api`
|
|
5
5
|
// (stacks/helpers/notificationType.ts) and `app`
|
|
6
6
|
// (src/domain/notificationType.ts) can drop their hand-mirrored copies
|
|
7
|
-
// in follow-ups. DOLARBNA / ERROR / ML_FACTURADOR_COLLISION have no
|
|
7
|
+
// in follow-ups. DOLARBNA / ERROR / ML_FACTURADOR_COLLISION / ML_SELLER_SWITCHED have no
|
|
8
8
|
// User-row read path — enum members only. AFIP_CERT_EXPIRY (the
|
|
9
9
|
// cert-expiry alert type) was in that list and no longer belongs to it:
|
|
10
10
|
// `createStore` seeds it on the founding user and `afipCertMonitor`
|
|
@@ -46,6 +46,19 @@ export var NotificationTypeEnum;
|
|
|
46
46
|
* The producer therefore fans out to every ADMIN of the store.
|
|
47
47
|
*/
|
|
48
48
|
NotificationTypeEnum["ML_FACTURADOR_COLLISION"] = "ML_FACTURADOR_COLLISION";
|
|
49
|
+
/**
|
|
50
|
+
* The store's linked Mercado Libre seller was REPLACED by a different ML
|
|
51
|
+
* account (a confirmed seller switch). Names who switched it, from which
|
|
52
|
+
* account to which, and when.
|
|
53
|
+
*
|
|
54
|
+
* ⚠️ No User-row read path, same category and same two reasons as
|
|
55
|
+
* `ML_FACTURADOR_COLLISION`: a silent seller switch drops every
|
|
56
|
+
* notification for the real seller, which no tenant should be able to
|
|
57
|
+
* opt out of hearing about; and a new key is seeded nowhere, so an opt-in
|
|
58
|
+
* read would deliver it to nobody. The producer fans out to every
|
|
59
|
+
* non-disabled ADMIN of the store. Additive — no consumer migration owed.
|
|
60
|
+
*/
|
|
61
|
+
NotificationTypeEnum["ML_SELLER_SWITCHED"] = "ML_SELLER_SWITCHED";
|
|
49
62
|
// Stock alerts — fired when a sale crosses a product's stock
|
|
50
63
|
// threshold. LOW_STOCK at stock <= `Product.minStock`; OUT_OF_STOCK at
|
|
51
64
|
// stock <= 0. Both have User-row opt-in read paths.
|
package/dist/userActivity.d.ts
CHANGED
|
@@ -918,6 +918,15 @@ declare global {
|
|
|
918
918
|
before: string | number | boolean;
|
|
919
919
|
after: string | number | boolean;
|
|
920
920
|
}
|
|
921
|
+
interface IntegrationConnectionChangedEvent extends UserActivityEventBase {
|
|
922
|
+
event: 'Integration Connection Changed';
|
|
923
|
+
provider: 'mercadolibre';
|
|
924
|
+
action: 'connect' | 'reconnect' | 'switch' | 'disconnect';
|
|
925
|
+
from_ml_user_id?: string;
|
|
926
|
+
from_nickname?: string;
|
|
927
|
+
to_ml_user_id?: string;
|
|
928
|
+
to_nickname?: string;
|
|
929
|
+
}
|
|
921
930
|
interface MlChannelStatusChangedEvent extends UserActivityEventBase {
|
|
922
931
|
event: 'ML Channel Status Changed';
|
|
923
932
|
provider: 'mercadolibre';
|
|
@@ -1074,7 +1083,7 @@ declare global {
|
|
|
1074
1083
|
carrier?: string;
|
|
1075
1084
|
tracking_set: boolean;
|
|
1076
1085
|
}
|
|
1077
|
-
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 | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDiscountGrantedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | CreditLimitOverriddenEvent | 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 | PrintRuleCreatedEvent | PrintRuleEditedEvent | PrintRuleDeletedEvent | WebhookCreatedEvent | WebhookUpdatedEvent | WebhookDeletedEvent | PrinterActiveToggledEvent | PrinterRawFormatsUpdatedEvent | PrinterProfileUpdatedEvent | PlanTemplateUpdatedEvent | SupplierAccountDeletedEvent | CustomerPasswordResetInitiatedEvent | UserSessionsRevokedEvent | UserAnonymizedEvent | UserPasswordResetInitiatedByOperatorEvent | AgentCommandDispatchedEvent | RmaRequestedEvent | RmaTransitionedEvent | RmaTrackingUpdatedEvent | ClockedInEvent | ClockedOutEvent | AttendanceCorrectedEvent;
|
|
1086
|
+
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 | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDiscountGrantedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | CreditLimitOverriddenEvent | 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;
|
|
1078
1087
|
}
|
|
1079
1088
|
/**
|
|
1080
1089
|
* Canonical whitelist of UI-only `UserActivityEvent` variant names. Imported by
|