platform-types 1.10.799 → 1.10.801

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/index.js CHANGED
@@ -93,6 +93,7 @@ __exportStar(require("./productGroup.js"), exports);
93
93
  __exportStar(require("./purchaseOrder.js"), exports);
94
94
  __exportStar(require("./purchaseReceipt.js"), exports);
95
95
  __exportStar(require("./pushDevice.js"), exports);
96
+ __exportStar(require("./refundObligation.js"), exports);
96
97
  __exportStar(require("./reminder.js"), exports);
97
98
  __exportStar(require("./report.js"), exports);
98
99
  __exportStar(require("./return.js"), exports);
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /**
3
+ * Refund obligations — money the store owes a customer back, tracked until it is
4
+ * proven returned.
5
+ *
6
+ * An obligation is created inside the transaction of whatever made the money owed
7
+ * (a purchase withdrawal's cancellation, a return, a late capture on a withdrawn
8
+ * order) and closes on its own when Mercado Pago reports the refund, when an
9
+ * operator closes a payment attempt's resolution as `refunded`, or when a
10
+ * chargeback settled the money back. An open dispute holds it; a lifted dispute
11
+ * reopens it. Nothing here moves money or writes a ledger row: closure records a
12
+ * fact.
13
+ *
14
+ * ⚠️ The stored row carries none of the main table's index-key attributes
15
+ * (`status`, `customerId`, `dated`, `updatedAt`, `terminalId`, `inboxKey`), so it
16
+ * joins no GSI: `state` replaces `status`, `revisedAt` replaces `updatedAt`.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.REFUND_OBLIGATION_DUE_SOURCE = exports.REFUND_OBLIGATION_CLOSED_BY = exports.REFUND_OBLIGATION_HOLD_REASONS = exports.REFUND_OBLIGATION_STATES = exports.REFUND_OBLIGATION_KINDS = void 0;
20
+ /**
21
+ * - `provider` — paid through Mercado Pago; closes when the provider reports the
22
+ * refund (`paymentId` is set).
23
+ * - `offline` — paid by other means (cash, transfer); has no `paymentId` and
24
+ * closes only by an operator.
25
+ * - `late-capture` — an approval that arrived after the order no longer wanted
26
+ * it; closes when the provider reports the refund or when the attempt's
27
+ * resolution is closed `refunded` after it was created — never because the
28
+ * attempt reached `refunded`.
29
+ */
30
+ exports.REFUND_OBLIGATION_KINDS = ['provider', 'offline', 'late-capture'];
31
+ /**
32
+ * - `awaiting-goods` — owed once the goods are back; no due date yet.
33
+ * - `open` — owed, with a `refundDueAt`.
34
+ * - `overdue` — past `refundDueAt` and still owed.
35
+ * - `held` — a dispute on the payment holds it (`holdReason`); no due pointer.
36
+ * - `closed` — settled; `closure` says how. Terminal.
37
+ */
38
+ exports.REFUND_OBLIGATION_STATES = ['awaiting-goods', 'open', 'overdue', 'held', 'closed'];
39
+ /**
40
+ * Why an obligation is `held`. `dispute-open` reopens on its own once the
41
+ * dispute is lifted; `reimbursed` (Mercado Pago covered the seller) never does —
42
+ * only an operator's decision moves it. A stored row with no `holdReason` reads
43
+ * as `dispute-open`.
44
+ */
45
+ exports.REFUND_OBLIGATION_HOLD_REASONS = ['dispute-open', 'reimbursed'];
46
+ /**
47
+ * What closed an obligation.
48
+ *
49
+ * - `detected-refund` — Mercado Pago's cumulative refunded amount, net of what
50
+ * was refunded before the obligation existed, covers it.
51
+ * - `resolution-refunded` — an operator closed the payment attempt's resolution
52
+ * as `refunded` after the obligation was created.
53
+ * - `operator` — an operator closed it by hand.
54
+ * - `chargeback` — a settled chargeback took the money back.
55
+ * - `api-refund` — a refund the api itself made (reserved; no writer yet).
56
+ */
57
+ exports.REFUND_OBLIGATION_CLOSED_BY = [
58
+ 'detected-refund',
59
+ 'resolution-refunded',
60
+ 'operator',
61
+ 'chargeback',
62
+ 'api-refund',
63
+ ];
64
+ /** Where a {@link StatutoryInstant} came from: the platform global it was computed with. */
65
+ exports.REFUND_OBLIGATION_DUE_SOURCE = 'global:refundObligationDueDays';
@@ -89,6 +89,22 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
89
89
  'APP_UPDATE_CONFIRM',
90
90
  'APP_UPDATE_DISMISS',
91
91
  'APP_UPDATE_TITLE',
92
+ 'ATTACH_GUEST_ORDERS_ACCOUNT_BLOCKED',
93
+ 'ATTACH_GUEST_ORDERS_ACCOUNT_PENDING',
94
+ 'ATTACH_GUEST_ORDERS_ALREADY_DONE',
95
+ 'ATTACH_GUEST_ORDERS_BODY',
96
+ 'ATTACH_GUEST_ORDERS_DONE',
97
+ 'ATTACH_GUEST_ORDERS_ERROR',
98
+ 'ATTACH_GUEST_ORDERS_HELP',
99
+ 'ATTACH_GUEST_ORDERS_LABEL',
100
+ 'ATTACH_GUEST_ORDERS_NOT_MATCHED',
101
+ 'ATTACH_GUEST_ORDERS_PARTIAL',
102
+ 'ATTACH_GUEST_ORDERS_PARTIAL_REFUSED',
103
+ 'ATTACH_GUEST_ORDERS_SUBMIT',
104
+ 'ATTACH_GUEST_ORDERS_TITLE',
105
+ 'ATTACH_GUEST_ORDERS_VALIDATION',
106
+ 'ATTACH_GUEST_ORDERS_VERIFY_ACTION',
107
+ 'ATTACH_GUEST_ORDERS_VERIFY_FIRST',
92
108
  'AUTH_BACK_TO_LOGIN',
93
109
  'AUTH_BRIDGE_CLOSE',
94
110
  'AUTH_BRIDGE_CODE_INVALID',
@@ -296,6 +312,7 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
296
312
  'BASKET_EMPTY_SUCCESS',
297
313
  'BASKET_GUEST_CAP_LIMIT_REACHED',
298
314
  'BASKET_GUEST_CART_NOTICE',
315
+ 'BASKET_GUEST_CHECKOUT_CTA',
299
316
  'BASKET_GUEST_HINT',
300
317
  'BASKET_GUEST_LOGIN_CTA',
301
318
  'BASKET_GUEST_MERGED_OK',
@@ -414,8 +431,29 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
414
431
  'CHECKOUT_FX_NOTICE_PAYING',
415
432
  'CHECKOUT_FX_NOTICE_PREFERRED',
416
433
  'CHECKOUT_FX_NOTICE_STORE_HINT',
434
+ 'CHECKOUT_GUEST_CART_GONE',
435
+ 'CHECKOUT_GUEST_CART_SEED_ERROR',
436
+ 'CHECKOUT_GUEST_CONTACT_HINT',
437
+ 'CHECKOUT_GUEST_CONTACT_REQUIRED',
438
+ 'CHECKOUT_GUEST_CONTACT_TITLE',
439
+ 'CHECKOUT_GUEST_CUIT_LABEL',
440
+ 'CHECKOUT_GUEST_CUIT_REQUIRED',
441
+ 'CHECKOUT_GUEST_DISABLED',
442
+ 'CHECKOUT_GUEST_DNI_ACTION',
443
+ 'CHECKOUT_GUEST_EMAIL_LABEL',
444
+ 'CHECKOUT_GUEST_FULL_NAME_LABEL',
445
+ 'CHECKOUT_GUEST_ORDER_UNCONFIRMED',
446
+ 'CHECKOUT_GUEST_PHONE_LABEL',
447
+ 'CHECKOUT_GUEST_SIGNED_IN',
448
+ 'CHECKOUT_GUEST_VALIDATION_ADDRESS',
449
+ 'CHECKOUT_GUEST_VALIDATION_CITY',
450
+ 'CHECKOUT_GUEST_VALIDATION_EMAIL',
451
+ 'CHECKOUT_GUEST_VALIDATION_FULL_NAME',
452
+ 'CHECKOUT_GUEST_VALIDATION_PHONE',
417
453
  'CHECKOUT_INITIAL_NO_INVOICE',
418
454
  'CHECKOUT_INVALID_CART',
455
+ 'CHECKOUT_INVOICE_RECEPTOR_INVALID',
456
+ 'CHECKOUT_INVOICE_WITH_CUIT',
419
457
  'CHECKOUT_INVOICING_LABEL',
420
458
  'CHECKOUT_MIN_BUY_ALERT',
421
459
  'CHECKOUT_MIN_BUY_ERROR',
@@ -495,6 +533,9 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
495
533
  'CURRENCY_CHANGE_ERROR',
496
534
  'CURRENCY_LOGIN_REQUIRED',
497
535
  'CURRENCY_SELECTOR_LABEL',
536
+ 'CUSTOMER_REQUEST_DEFAULT_HEADING',
537
+ 'CUSTOMER_REQUEST_GUEST',
538
+ 'CUSTOMER_REQUEST_GUEST_APPROVAL',
498
539
  'DATA_RIGHTS_COLLECTION_ACCOUNT_LEDGER',
499
540
  'DATA_RIGHTS_COLLECTION_ADDRESSES',
500
541
  'DATA_RIGHTS_COLLECTION_CONTACTS',
@@ -503,6 +544,7 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
503
544
  'DATA_RIGHTS_COLLECTION_NOTES',
504
545
  'DATA_RIGHTS_COLLECTION_ORDERS',
505
546
  'DATA_RIGHTS_COLLECTION_PAYMENTS',
547
+ 'DATA_RIGHTS_COLLECTION_QUOTE_REQUESTS',
506
548
  'DATA_RIGHTS_COLLECTION_RECENT_PURCHASES',
507
549
  'DATA_RIGHTS_COLLECTION_WHOLESALE_REQUESTS',
508
550
  'DATA_RIGHTS_DIALOG_ACK',
@@ -646,10 +688,51 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
646
688
  'GLOBALS_REGISTER',
647
689
  'GLOBALS_SALE',
648
690
  'GLOBALS_SESSIONS',
691
+ 'GUEST_ORDER_PAYMENT_EMAIL_HINT',
692
+ 'GUEST_ORDER_PAYMENT_RETURN_FAILURE',
693
+ 'GUEST_ORDER_PAYMENT_RETURN_PENDING',
694
+ 'GUEST_ORDER_PAYMENT_RETURN_SUCCESS',
695
+ 'GUEST_ORDER_PLACED_CONTINUE',
696
+ 'GUEST_ORDER_PLACED_EMAIL',
697
+ 'GUEST_ORDER_PLACED_NEXT',
698
+ 'GUEST_ORDER_PLACED_NUMBER',
699
+ 'GUEST_ORDER_PLACED_PAY_NEXT',
700
+ 'GUEST_ORDER_PLACED_TITLE',
701
+ 'GUEST_ORDER_STATUS_CONTINUE',
702
+ 'GUEST_ORDER_STATUS_COUPON',
703
+ 'GUEST_ORDER_STATUS_DELIVERY',
704
+ 'GUEST_ORDER_STATUS_DISCOUNT',
705
+ 'GUEST_ORDER_STATUS_EMAIL',
706
+ 'GUEST_ORDER_STATUS_EXPIRED_BODY',
707
+ 'GUEST_ORDER_STATUS_EXPIRED_TITLE',
708
+ 'GUEST_ORDER_STATUS_FREIGHT',
709
+ 'GUEST_ORDER_STATUS_GREETING',
710
+ 'GUEST_ORDER_STATUS_LINE_TOTAL',
711
+ 'GUEST_ORDER_STATUS_LOAD_ERROR',
712
+ 'GUEST_ORDER_STATUS_NOT_DELIVERED',
713
+ 'GUEST_ORDER_STATUS_NUMBER',
714
+ 'GUEST_ORDER_STATUS_PAYMENT_PAID',
715
+ 'GUEST_ORDER_STATUS_PAYMENT_PARTIAL',
716
+ 'GUEST_ORDER_STATUS_PAYMENT_PENDING',
717
+ 'GUEST_ORDER_STATUS_PLACED_AT',
718
+ 'GUEST_ORDER_STATUS_PRODUCT',
719
+ 'GUEST_ORDER_STATUS_QUANTITY',
720
+ 'GUEST_ORDER_STATUS_RECOVER_AGAIN',
721
+ 'GUEST_ORDER_STATUS_RECOVER_EMAIL_LABEL',
722
+ 'GUEST_ORDER_STATUS_RECOVER_ERROR',
723
+ 'GUEST_ORDER_STATUS_RECOVER_ORDER_LABEL',
724
+ 'GUEST_ORDER_STATUS_RECOVER_SENT',
725
+ 'GUEST_ORDER_STATUS_RECOVER_SUBMIT',
726
+ 'GUEST_ORDER_STATUS_RECOVER_VALIDATION_ORDER',
727
+ 'GUEST_ORDER_STATUS_RETRY',
728
+ 'GUEST_ORDER_STATUS_TITLE',
729
+ 'GUEST_ORDER_STATUS_TOTAL',
730
+ 'GUEST_ORDER_STATUS_UNIT_PRICE',
649
731
  'HEADER_BANNER_ARIA',
650
732
  'HEADER_BANNER_DISMISS_ARIA',
651
733
  'HEADER_BASKET_TOOLTIP_CHECKOUT',
652
734
  'HEADER_BASKET_TOOLTIP_EMPTY',
735
+ 'HEADER_BASKET_TOOLTIP_GUEST_CHECKOUT',
653
736
  'HEADER_BASKET_TOOLTIP_GUEST_LOGIN',
654
737
  'HEADER_BASKET_TOOLTIP_TITLE',
655
738
  'HEADER_BASKET_TOOLTIP_TOTAL',
@@ -784,6 +867,7 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
784
867
  'MAINTENANCE_ACCOUNT_ERASURE_DISABLED',
785
868
  'MAINTENANCE_ADD_TO_CART_DISABLED',
786
869
  'MAINTENANCE_APPOINTMENTS_DISABLED',
870
+ 'MAINTENANCE_ATTACH_GUEST_ORDERS_DISABLED',
787
871
  'MAINTENANCE_BANNER_STORE',
788
872
  'MAINTENANCE_CANCEL_ORDER_DISABLED',
789
873
  'MAINTENANCE_CART_WRITE_DISABLED',
@@ -794,12 +878,14 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
794
878
  'MAINTENANCE_ETA_GENERIC',
795
879
  'MAINTENANCE_ETA_OVERDUE',
796
880
  'MAINTENANCE_FAVORITES_DISABLED',
881
+ 'MAINTENANCE_GUEST_STATUS_RECOVER_DISABLED',
797
882
  'MAINTENANCE_MESSAGE_LABEL',
798
883
  'MAINTENANCE_NOTIFICATIONS_DISABLED',
799
884
  'MAINTENANCE_PAGE_BODY',
800
885
  'MAINTENANCE_PAGE_TITLE',
801
886
  'MAINTENANCE_PAYMENT_DISABLED',
802
887
  'MAINTENANCE_PROFILE_SAVE_DISABLED',
888
+ 'MAINTENANCE_QUOTE_REQUEST_DISABLED',
803
889
  'MAINTENANCE_REDIRECT_TO_BASKET',
804
890
  'MAINTENANCE_SUPPORT_HINT_EMAIL',
805
891
  'MAINTENANCE_SURVEY_DISABLED',
@@ -1010,6 +1096,8 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
1010
1096
  'PAGE_TITLE_CHECKOUT',
1011
1097
  'PAGE_TITLE_COLLECTION',
1012
1098
  'PAGE_TITLE_FAVORITES',
1099
+ 'PAGE_TITLE_GUEST_ORDER_PLACED',
1100
+ 'PAGE_TITLE_GUEST_ORDER_STATUS',
1013
1101
  'PAGE_TITLE_HOME',
1014
1102
  'PAGE_TITLE_INVOICES',
1015
1103
  'PAGE_TITLE_LATEST_INCOME',
@@ -1065,6 +1153,8 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
1065
1153
  'PAYMENT_METHOD_SANTANDER_TYPE',
1066
1154
  'PAYMENT_REDIRECTING',
1067
1155
  'PAYMENT_REFUSED_EXPIRED',
1156
+ 'PAYMENT_REFUSED_GRANT_INVALID',
1157
+ 'PAYMENT_REFUSED_GUEST_SIGNED_IN',
1068
1158
  'PAYMENT_REFUSED_NOT_ONLINE',
1069
1159
  'PAYMENT_REFUSED_ORDER_CANCELLED',
1070
1160
  'PAYMENT_REFUSED_ORDER_NOT_FOUND',
@@ -1073,6 +1163,7 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
1073
1163
  'PAYMENT_REFUSED_PROVIDER_FAILED',
1074
1164
  'PAYMENT_REFUSED_PROVIDER_UNAVAILABLE',
1075
1165
  'PAYMENT_START_ERROR',
1166
+ 'PAYMENT_START_ERROR_GUEST',
1076
1167
  'PREVIEW_BACK',
1077
1168
  'PREVIEW_EXPIRED',
1078
1169
  'PREVIEW_FAILED',
@@ -1283,6 +1374,33 @@ exports.STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
1283
1374
  'PROFILE_VALIDATION_PHONE_MAX',
1284
1375
  'PROFILE_VALIDATION_PHONE_MIN',
1285
1376
  'PROFILE_VALIDATION_PHONE_REQUIRED',
1377
+ 'QUOTE_REQUEST_ACCOUNT_GONE',
1378
+ 'QUOTE_REQUEST_ADD_BASKET',
1379
+ 'QUOTE_REQUEST_BASKET_FAILED',
1380
+ 'QUOTE_REQUEST_BASKET_UNAVAILABLE',
1381
+ 'QUOTE_REQUEST_CAPTCHA',
1382
+ 'QUOTE_REQUEST_COMPANY_LABEL',
1383
+ 'QUOTE_REQUEST_CUIT_LABEL',
1384
+ 'QUOTE_REQUEST_DEFAULT_HEADING',
1385
+ 'QUOTE_REQUEST_DISABLED',
1386
+ 'QUOTE_REQUEST_EMAIL_LABEL',
1387
+ 'QUOTE_REQUEST_EMPTY_BASKET',
1388
+ 'QUOTE_REQUEST_ERROR',
1389
+ 'QUOTE_REQUEST_INVALID',
1390
+ 'QUOTE_REQUEST_ITEMS_TITLE',
1391
+ 'QUOTE_REQUEST_ITEM_UNAVAILABLE',
1392
+ 'QUOTE_REQUEST_LIMIT',
1393
+ 'QUOTE_REQUEST_MESSAGE_LABEL',
1394
+ 'QUOTE_REQUEST_NAME_LABEL',
1395
+ 'QUOTE_REQUEST_ORIGIN',
1396
+ 'QUOTE_REQUEST_PHONE_LABEL',
1397
+ 'QUOTE_REQUEST_PRIVACY',
1398
+ 'QUOTE_REQUEST_PRIVACY_LINK',
1399
+ 'QUOTE_REQUEST_QUANTITY_INVALID',
1400
+ 'QUOTE_REQUEST_QUANTITY_LABEL',
1401
+ 'QUOTE_REQUEST_SIGNED_IN_HINT',
1402
+ 'QUOTE_REQUEST_SUBMIT',
1403
+ 'QUOTE_REQUEST_SUCCESS',
1286
1404
  'SALE_BADGE_OFFER',
1287
1405
  'SALE_CHIP_ALL',
1288
1406
  'SALE_DISCOUNT_PERCENT',
package/dist/index.d.ts CHANGED
@@ -69,6 +69,7 @@ export * from './productGroup.ts';
69
69
  export * from './purchaseOrder.ts';
70
70
  export * from './purchaseReceipt.ts';
71
71
  export * from './pushDevice.ts';
72
+ export * from './refundObligation.ts';
72
73
  export * from './reminder.ts';
73
74
  export * from './report.ts';
74
75
  export * from './return.ts';
package/dist/index.js CHANGED
@@ -77,6 +77,7 @@ export * from "./productGroup.js";
77
77
  export * from "./purchaseOrder.js";
78
78
  export * from "./purchaseReceipt.js";
79
79
  export * from "./pushDevice.js";
80
+ export * from "./refundObligation.js";
80
81
  export * from "./reminder.js";
81
82
  export * from "./report.js";
82
83
  export * from "./return.js";
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Refund obligations — money the store owes a customer back, tracked until it is
3
+ * proven returned.
4
+ *
5
+ * An obligation is created inside the transaction of whatever made the money owed
6
+ * (a purchase withdrawal's cancellation, a return, a late capture on a withdrawn
7
+ * order) and closes on its own when Mercado Pago reports the refund, when an
8
+ * operator closes a payment attempt's resolution as `refunded`, or when a
9
+ * chargeback settled the money back. An open dispute holds it; a lifted dispute
10
+ * reopens it. Nothing here moves money or writes a ledger row: closure records a
11
+ * fact.
12
+ *
13
+ * ⚠️ The stored row carries none of the main table's index-key attributes
14
+ * (`status`, `customerId`, `dated`, `updatedAt`, `terminalId`, `inboxKey`), so it
15
+ * joins no GSI: `state` replaces `status`, `revisedAt` replaces `updatedAt`.
16
+ */
17
+ /**
18
+ * - `provider` — paid through Mercado Pago; closes when the provider reports the
19
+ * refund (`paymentId` is set).
20
+ * - `offline` — paid by other means (cash, transfer); has no `paymentId` and
21
+ * closes only by an operator.
22
+ * - `late-capture` — an approval that arrived after the order no longer wanted
23
+ * it; closes when the provider reports the refund or when the attempt's
24
+ * resolution is closed `refunded` after it was created — never because the
25
+ * attempt reached `refunded`.
26
+ */
27
+ export declare const REFUND_OBLIGATION_KINDS: readonly ["provider", "offline", "late-capture"];
28
+ /**
29
+ * - `awaiting-goods` — owed once the goods are back; no due date yet.
30
+ * - `open` — owed, with a `refundDueAt`.
31
+ * - `overdue` — past `refundDueAt` and still owed.
32
+ * - `held` — a dispute on the payment holds it (`holdReason`); no due pointer.
33
+ * - `closed` — settled; `closure` says how. Terminal.
34
+ */
35
+ export declare const REFUND_OBLIGATION_STATES: readonly ["awaiting-goods", "open", "overdue", "held", "closed"];
36
+ /**
37
+ * Why an obligation is `held`. `dispute-open` reopens on its own once the
38
+ * dispute is lifted; `reimbursed` (Mercado Pago covered the seller) never does —
39
+ * only an operator's decision moves it. A stored row with no `holdReason` reads
40
+ * as `dispute-open`.
41
+ */
42
+ export declare const REFUND_OBLIGATION_HOLD_REASONS: readonly ["dispute-open", "reimbursed"];
43
+ /**
44
+ * What closed an obligation.
45
+ *
46
+ * - `detected-refund` — Mercado Pago's cumulative refunded amount, net of what
47
+ * was refunded before the obligation existed, covers it.
48
+ * - `resolution-refunded` — an operator closed the payment attempt's resolution
49
+ * as `refunded` after the obligation was created.
50
+ * - `operator` — an operator closed it by hand.
51
+ * - `chargeback` — a settled chargeback took the money back.
52
+ * - `api-refund` — a refund the api itself made (reserved; no writer yet).
53
+ */
54
+ export declare const REFUND_OBLIGATION_CLOSED_BY: readonly ["detected-refund", "resolution-refunded", "operator", "chargeback", "api-refund"];
55
+ /** Where a {@link StatutoryInstant} came from: the platform global it was computed with. */
56
+ export declare const REFUND_OBLIGATION_DUE_SOURCE = "global:refundObligationDueDays";
57
+ declare global {
58
+ type RefundObligationKind = (typeof REFUND_OBLIGATION_KINDS)[number];
59
+ type RefundObligationState = (typeof REFUND_OBLIGATION_STATES)[number];
60
+ type RefundObligationHoldReason = (typeof REFUND_OBLIGATION_HOLD_REASONS)[number];
61
+ type RefundObligationClosedBy = (typeof REFUND_OBLIGATION_CLOSED_BY)[number];
62
+ /** A deadline and the rule that set it. */
63
+ interface StatutoryInstant {
64
+ /** Unix ms. */
65
+ at: number;
66
+ /** The rule it was computed from, e.g. `global:refundObligationDueDays`. */
67
+ source: string;
68
+ }
69
+ /** The link credit an obligation's money was booked to, when there is one. */
70
+ interface RefundObligationLedgerCredit {
71
+ /** The `ACCOUNT#{storeId}` row's SK. */
72
+ accountId: string;
73
+ /** The customer whose balance the credit moved. */
74
+ customerId: string;
75
+ }
76
+ /** How an obligation was closed. */
77
+ interface RefundObligationClosure {
78
+ by: RefundObligationClosedBy;
79
+ /** Unix ms. */
80
+ at: number;
81
+ /** The store user who closed it, for `operator`. */
82
+ actor?: string;
83
+ /** The operator's own words, for `operator`. */
84
+ reason?: string;
85
+ /** For `detected-refund`: the ids of the payment's `refunds[]` dated at or after `createdAt`. */
86
+ providerRefundIds?: string[];
87
+ }
88
+ interface RefundObligation {
89
+ /** The row's sort key: `{orderId}#{parentId}#{kind}#{paymentId | 'till'}`. */
90
+ obligationId: string;
91
+ orderId: string;
92
+ /** The withdrawal or RMA that made the money owed. */
93
+ parentId: string;
94
+ kind: RefundObligationKind;
95
+ /** The Mercado Pago payment the money came in on. Absent for `offline`. */
96
+ paymentId?: string;
97
+ /** Decimal, in `currency`. */
98
+ amount: number;
99
+ /** The payment's own currency: creation refuses another one the payment's observation names. */
100
+ currency: string;
101
+ /** The payment's refunded amount when the obligation was created, so an earlier refund never closes it. */
102
+ refundedAtCreation?: number;
103
+ /**
104
+ * The payment had no observation when the obligation was created: its baseline
105
+ * is then the payment's `approved` refunds dated before `createdAt`.
106
+ */
107
+ observationAbsentAtCreation?: boolean;
108
+ ledgerCredit?: RefundObligationLedgerCredit;
109
+ state: RefundObligationState;
110
+ /** Set while `held`. */
111
+ holdReason?: RefundObligationHoldReason;
112
+ /** The state a hold came from; a reopen returns to it (`overdue` returns to `open`). */
113
+ heldFrom?: Exclude<RefundObligationState, 'held' | 'closed'>;
114
+ /** Bumped by every move, for a compare-and-set. */
115
+ revision: number;
116
+ /** When the refund is due. Set by the move to `open`; removed by a hold. */
117
+ refundDueAt?: StatutoryInstant;
118
+ /** The SK of the obligation's due pointer, while it has one. */
119
+ duePointerSK?: string;
120
+ closure?: RefundObligationClosure;
121
+ /** Unix ms. */
122
+ createdAt: number;
123
+ /** Unix ms of the last move. */
124
+ revisedAt: number;
125
+ }
126
+ }
127
+ export {};
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Refund obligations — money the store owes a customer back, tracked until it is
3
+ * proven returned.
4
+ *
5
+ * An obligation is created inside the transaction of whatever made the money owed
6
+ * (a purchase withdrawal's cancellation, a return, a late capture on a withdrawn
7
+ * order) and closes on its own when Mercado Pago reports the refund, when an
8
+ * operator closes a payment attempt's resolution as `refunded`, or when a
9
+ * chargeback settled the money back. An open dispute holds it; a lifted dispute
10
+ * reopens it. Nothing here moves money or writes a ledger row: closure records a
11
+ * fact.
12
+ *
13
+ * ⚠️ The stored row carries none of the main table's index-key attributes
14
+ * (`status`, `customerId`, `dated`, `updatedAt`, `terminalId`, `inboxKey`), so it
15
+ * joins no GSI: `state` replaces `status`, `revisedAt` replaces `updatedAt`.
16
+ */
17
+ /**
18
+ * - `provider` — paid through Mercado Pago; closes when the provider reports the
19
+ * refund (`paymentId` is set).
20
+ * - `offline` — paid by other means (cash, transfer); has no `paymentId` and
21
+ * closes only by an operator.
22
+ * - `late-capture` — an approval that arrived after the order no longer wanted
23
+ * it; closes when the provider reports the refund or when the attempt's
24
+ * resolution is closed `refunded` after it was created — never because the
25
+ * attempt reached `refunded`.
26
+ */
27
+ export const REFUND_OBLIGATION_KINDS = ['provider', 'offline', 'late-capture'];
28
+ /**
29
+ * - `awaiting-goods` — owed once the goods are back; no due date yet.
30
+ * - `open` — owed, with a `refundDueAt`.
31
+ * - `overdue` — past `refundDueAt` and still owed.
32
+ * - `held` — a dispute on the payment holds it (`holdReason`); no due pointer.
33
+ * - `closed` — settled; `closure` says how. Terminal.
34
+ */
35
+ export const REFUND_OBLIGATION_STATES = ['awaiting-goods', 'open', 'overdue', 'held', 'closed'];
36
+ /**
37
+ * Why an obligation is `held`. `dispute-open` reopens on its own once the
38
+ * dispute is lifted; `reimbursed` (Mercado Pago covered the seller) never does —
39
+ * only an operator's decision moves it. A stored row with no `holdReason` reads
40
+ * as `dispute-open`.
41
+ */
42
+ export const REFUND_OBLIGATION_HOLD_REASONS = ['dispute-open', 'reimbursed'];
43
+ /**
44
+ * What closed an obligation.
45
+ *
46
+ * - `detected-refund` — Mercado Pago's cumulative refunded amount, net of what
47
+ * was refunded before the obligation existed, covers it.
48
+ * - `resolution-refunded` — an operator closed the payment attempt's resolution
49
+ * as `refunded` after the obligation was created.
50
+ * - `operator` — an operator closed it by hand.
51
+ * - `chargeback` — a settled chargeback took the money back.
52
+ * - `api-refund` — a refund the api itself made (reserved; no writer yet).
53
+ */
54
+ export const REFUND_OBLIGATION_CLOSED_BY = [
55
+ 'detected-refund',
56
+ 'resolution-refunded',
57
+ 'operator',
58
+ 'chargeback',
59
+ 'api-refund',
60
+ ];
61
+ /** Where a {@link StatutoryInstant} came from: the platform global it was computed with. */
62
+ export const REFUND_OBLIGATION_DUE_SOURCE = 'global:refundObligationDueDays';
@@ -86,6 +86,22 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
86
86
  'APP_UPDATE_CONFIRM',
87
87
  'APP_UPDATE_DISMISS',
88
88
  'APP_UPDATE_TITLE',
89
+ 'ATTACH_GUEST_ORDERS_ACCOUNT_BLOCKED',
90
+ 'ATTACH_GUEST_ORDERS_ACCOUNT_PENDING',
91
+ 'ATTACH_GUEST_ORDERS_ALREADY_DONE',
92
+ 'ATTACH_GUEST_ORDERS_BODY',
93
+ 'ATTACH_GUEST_ORDERS_DONE',
94
+ 'ATTACH_GUEST_ORDERS_ERROR',
95
+ 'ATTACH_GUEST_ORDERS_HELP',
96
+ 'ATTACH_GUEST_ORDERS_LABEL',
97
+ 'ATTACH_GUEST_ORDERS_NOT_MATCHED',
98
+ 'ATTACH_GUEST_ORDERS_PARTIAL',
99
+ 'ATTACH_GUEST_ORDERS_PARTIAL_REFUSED',
100
+ 'ATTACH_GUEST_ORDERS_SUBMIT',
101
+ 'ATTACH_GUEST_ORDERS_TITLE',
102
+ 'ATTACH_GUEST_ORDERS_VALIDATION',
103
+ 'ATTACH_GUEST_ORDERS_VERIFY_ACTION',
104
+ 'ATTACH_GUEST_ORDERS_VERIFY_FIRST',
89
105
  'AUTH_BACK_TO_LOGIN',
90
106
  'AUTH_BRIDGE_CLOSE',
91
107
  'AUTH_BRIDGE_CODE_INVALID',
@@ -293,6 +309,7 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
293
309
  'BASKET_EMPTY_SUCCESS',
294
310
  'BASKET_GUEST_CAP_LIMIT_REACHED',
295
311
  'BASKET_GUEST_CART_NOTICE',
312
+ 'BASKET_GUEST_CHECKOUT_CTA',
296
313
  'BASKET_GUEST_HINT',
297
314
  'BASKET_GUEST_LOGIN_CTA',
298
315
  'BASKET_GUEST_MERGED_OK',
@@ -411,8 +428,29 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
411
428
  'CHECKOUT_FX_NOTICE_PAYING',
412
429
  'CHECKOUT_FX_NOTICE_PREFERRED',
413
430
  'CHECKOUT_FX_NOTICE_STORE_HINT',
431
+ 'CHECKOUT_GUEST_CART_GONE',
432
+ 'CHECKOUT_GUEST_CART_SEED_ERROR',
433
+ 'CHECKOUT_GUEST_CONTACT_HINT',
434
+ 'CHECKOUT_GUEST_CONTACT_REQUIRED',
435
+ 'CHECKOUT_GUEST_CONTACT_TITLE',
436
+ 'CHECKOUT_GUEST_CUIT_LABEL',
437
+ 'CHECKOUT_GUEST_CUIT_REQUIRED',
438
+ 'CHECKOUT_GUEST_DISABLED',
439
+ 'CHECKOUT_GUEST_DNI_ACTION',
440
+ 'CHECKOUT_GUEST_EMAIL_LABEL',
441
+ 'CHECKOUT_GUEST_FULL_NAME_LABEL',
442
+ 'CHECKOUT_GUEST_ORDER_UNCONFIRMED',
443
+ 'CHECKOUT_GUEST_PHONE_LABEL',
444
+ 'CHECKOUT_GUEST_SIGNED_IN',
445
+ 'CHECKOUT_GUEST_VALIDATION_ADDRESS',
446
+ 'CHECKOUT_GUEST_VALIDATION_CITY',
447
+ 'CHECKOUT_GUEST_VALIDATION_EMAIL',
448
+ 'CHECKOUT_GUEST_VALIDATION_FULL_NAME',
449
+ 'CHECKOUT_GUEST_VALIDATION_PHONE',
414
450
  'CHECKOUT_INITIAL_NO_INVOICE',
415
451
  'CHECKOUT_INVALID_CART',
452
+ 'CHECKOUT_INVOICE_RECEPTOR_INVALID',
453
+ 'CHECKOUT_INVOICE_WITH_CUIT',
416
454
  'CHECKOUT_INVOICING_LABEL',
417
455
  'CHECKOUT_MIN_BUY_ALERT',
418
456
  'CHECKOUT_MIN_BUY_ERROR',
@@ -492,6 +530,9 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
492
530
  'CURRENCY_CHANGE_ERROR',
493
531
  'CURRENCY_LOGIN_REQUIRED',
494
532
  'CURRENCY_SELECTOR_LABEL',
533
+ 'CUSTOMER_REQUEST_DEFAULT_HEADING',
534
+ 'CUSTOMER_REQUEST_GUEST',
535
+ 'CUSTOMER_REQUEST_GUEST_APPROVAL',
495
536
  'DATA_RIGHTS_COLLECTION_ACCOUNT_LEDGER',
496
537
  'DATA_RIGHTS_COLLECTION_ADDRESSES',
497
538
  'DATA_RIGHTS_COLLECTION_CONTACTS',
@@ -500,6 +541,7 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
500
541
  'DATA_RIGHTS_COLLECTION_NOTES',
501
542
  'DATA_RIGHTS_COLLECTION_ORDERS',
502
543
  'DATA_RIGHTS_COLLECTION_PAYMENTS',
544
+ 'DATA_RIGHTS_COLLECTION_QUOTE_REQUESTS',
503
545
  'DATA_RIGHTS_COLLECTION_RECENT_PURCHASES',
504
546
  'DATA_RIGHTS_COLLECTION_WHOLESALE_REQUESTS',
505
547
  'DATA_RIGHTS_DIALOG_ACK',
@@ -643,10 +685,51 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
643
685
  'GLOBALS_REGISTER',
644
686
  'GLOBALS_SALE',
645
687
  'GLOBALS_SESSIONS',
688
+ 'GUEST_ORDER_PAYMENT_EMAIL_HINT',
689
+ 'GUEST_ORDER_PAYMENT_RETURN_FAILURE',
690
+ 'GUEST_ORDER_PAYMENT_RETURN_PENDING',
691
+ 'GUEST_ORDER_PAYMENT_RETURN_SUCCESS',
692
+ 'GUEST_ORDER_PLACED_CONTINUE',
693
+ 'GUEST_ORDER_PLACED_EMAIL',
694
+ 'GUEST_ORDER_PLACED_NEXT',
695
+ 'GUEST_ORDER_PLACED_NUMBER',
696
+ 'GUEST_ORDER_PLACED_PAY_NEXT',
697
+ 'GUEST_ORDER_PLACED_TITLE',
698
+ 'GUEST_ORDER_STATUS_CONTINUE',
699
+ 'GUEST_ORDER_STATUS_COUPON',
700
+ 'GUEST_ORDER_STATUS_DELIVERY',
701
+ 'GUEST_ORDER_STATUS_DISCOUNT',
702
+ 'GUEST_ORDER_STATUS_EMAIL',
703
+ 'GUEST_ORDER_STATUS_EXPIRED_BODY',
704
+ 'GUEST_ORDER_STATUS_EXPIRED_TITLE',
705
+ 'GUEST_ORDER_STATUS_FREIGHT',
706
+ 'GUEST_ORDER_STATUS_GREETING',
707
+ 'GUEST_ORDER_STATUS_LINE_TOTAL',
708
+ 'GUEST_ORDER_STATUS_LOAD_ERROR',
709
+ 'GUEST_ORDER_STATUS_NOT_DELIVERED',
710
+ 'GUEST_ORDER_STATUS_NUMBER',
711
+ 'GUEST_ORDER_STATUS_PAYMENT_PAID',
712
+ 'GUEST_ORDER_STATUS_PAYMENT_PARTIAL',
713
+ 'GUEST_ORDER_STATUS_PAYMENT_PENDING',
714
+ 'GUEST_ORDER_STATUS_PLACED_AT',
715
+ 'GUEST_ORDER_STATUS_PRODUCT',
716
+ 'GUEST_ORDER_STATUS_QUANTITY',
717
+ 'GUEST_ORDER_STATUS_RECOVER_AGAIN',
718
+ 'GUEST_ORDER_STATUS_RECOVER_EMAIL_LABEL',
719
+ 'GUEST_ORDER_STATUS_RECOVER_ERROR',
720
+ 'GUEST_ORDER_STATUS_RECOVER_ORDER_LABEL',
721
+ 'GUEST_ORDER_STATUS_RECOVER_SENT',
722
+ 'GUEST_ORDER_STATUS_RECOVER_SUBMIT',
723
+ 'GUEST_ORDER_STATUS_RECOVER_VALIDATION_ORDER',
724
+ 'GUEST_ORDER_STATUS_RETRY',
725
+ 'GUEST_ORDER_STATUS_TITLE',
726
+ 'GUEST_ORDER_STATUS_TOTAL',
727
+ 'GUEST_ORDER_STATUS_UNIT_PRICE',
646
728
  'HEADER_BANNER_ARIA',
647
729
  'HEADER_BANNER_DISMISS_ARIA',
648
730
  'HEADER_BASKET_TOOLTIP_CHECKOUT',
649
731
  'HEADER_BASKET_TOOLTIP_EMPTY',
732
+ 'HEADER_BASKET_TOOLTIP_GUEST_CHECKOUT',
650
733
  'HEADER_BASKET_TOOLTIP_GUEST_LOGIN',
651
734
  'HEADER_BASKET_TOOLTIP_TITLE',
652
735
  'HEADER_BASKET_TOOLTIP_TOTAL',
@@ -781,6 +864,7 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
781
864
  'MAINTENANCE_ACCOUNT_ERASURE_DISABLED',
782
865
  'MAINTENANCE_ADD_TO_CART_DISABLED',
783
866
  'MAINTENANCE_APPOINTMENTS_DISABLED',
867
+ 'MAINTENANCE_ATTACH_GUEST_ORDERS_DISABLED',
784
868
  'MAINTENANCE_BANNER_STORE',
785
869
  'MAINTENANCE_CANCEL_ORDER_DISABLED',
786
870
  'MAINTENANCE_CART_WRITE_DISABLED',
@@ -791,12 +875,14 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
791
875
  'MAINTENANCE_ETA_GENERIC',
792
876
  'MAINTENANCE_ETA_OVERDUE',
793
877
  'MAINTENANCE_FAVORITES_DISABLED',
878
+ 'MAINTENANCE_GUEST_STATUS_RECOVER_DISABLED',
794
879
  'MAINTENANCE_MESSAGE_LABEL',
795
880
  'MAINTENANCE_NOTIFICATIONS_DISABLED',
796
881
  'MAINTENANCE_PAGE_BODY',
797
882
  'MAINTENANCE_PAGE_TITLE',
798
883
  'MAINTENANCE_PAYMENT_DISABLED',
799
884
  'MAINTENANCE_PROFILE_SAVE_DISABLED',
885
+ 'MAINTENANCE_QUOTE_REQUEST_DISABLED',
800
886
  'MAINTENANCE_REDIRECT_TO_BASKET',
801
887
  'MAINTENANCE_SUPPORT_HINT_EMAIL',
802
888
  'MAINTENANCE_SURVEY_DISABLED',
@@ -1007,6 +1093,8 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
1007
1093
  'PAGE_TITLE_CHECKOUT',
1008
1094
  'PAGE_TITLE_COLLECTION',
1009
1095
  'PAGE_TITLE_FAVORITES',
1096
+ 'PAGE_TITLE_GUEST_ORDER_PLACED',
1097
+ 'PAGE_TITLE_GUEST_ORDER_STATUS',
1010
1098
  'PAGE_TITLE_HOME',
1011
1099
  'PAGE_TITLE_INVOICES',
1012
1100
  'PAGE_TITLE_LATEST_INCOME',
@@ -1062,6 +1150,8 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
1062
1150
  'PAYMENT_METHOD_SANTANDER_TYPE',
1063
1151
  'PAYMENT_REDIRECTING',
1064
1152
  'PAYMENT_REFUSED_EXPIRED',
1153
+ 'PAYMENT_REFUSED_GRANT_INVALID',
1154
+ 'PAYMENT_REFUSED_GUEST_SIGNED_IN',
1065
1155
  'PAYMENT_REFUSED_NOT_ONLINE',
1066
1156
  'PAYMENT_REFUSED_ORDER_CANCELLED',
1067
1157
  'PAYMENT_REFUSED_ORDER_NOT_FOUND',
@@ -1070,6 +1160,7 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
1070
1160
  'PAYMENT_REFUSED_PROVIDER_FAILED',
1071
1161
  'PAYMENT_REFUSED_PROVIDER_UNAVAILABLE',
1072
1162
  'PAYMENT_START_ERROR',
1163
+ 'PAYMENT_START_ERROR_GUEST',
1073
1164
  'PREVIEW_BACK',
1074
1165
  'PREVIEW_EXPIRED',
1075
1166
  'PREVIEW_FAILED',
@@ -1280,6 +1371,33 @@ export const STOREFRONT_WEB_LITERAL_KEYS = Object.freeze([
1280
1371
  'PROFILE_VALIDATION_PHONE_MAX',
1281
1372
  'PROFILE_VALIDATION_PHONE_MIN',
1282
1373
  'PROFILE_VALIDATION_PHONE_REQUIRED',
1374
+ 'QUOTE_REQUEST_ACCOUNT_GONE',
1375
+ 'QUOTE_REQUEST_ADD_BASKET',
1376
+ 'QUOTE_REQUEST_BASKET_FAILED',
1377
+ 'QUOTE_REQUEST_BASKET_UNAVAILABLE',
1378
+ 'QUOTE_REQUEST_CAPTCHA',
1379
+ 'QUOTE_REQUEST_COMPANY_LABEL',
1380
+ 'QUOTE_REQUEST_CUIT_LABEL',
1381
+ 'QUOTE_REQUEST_DEFAULT_HEADING',
1382
+ 'QUOTE_REQUEST_DISABLED',
1383
+ 'QUOTE_REQUEST_EMAIL_LABEL',
1384
+ 'QUOTE_REQUEST_EMPTY_BASKET',
1385
+ 'QUOTE_REQUEST_ERROR',
1386
+ 'QUOTE_REQUEST_INVALID',
1387
+ 'QUOTE_REQUEST_ITEMS_TITLE',
1388
+ 'QUOTE_REQUEST_ITEM_UNAVAILABLE',
1389
+ 'QUOTE_REQUEST_LIMIT',
1390
+ 'QUOTE_REQUEST_MESSAGE_LABEL',
1391
+ 'QUOTE_REQUEST_NAME_LABEL',
1392
+ 'QUOTE_REQUEST_ORIGIN',
1393
+ 'QUOTE_REQUEST_PHONE_LABEL',
1394
+ 'QUOTE_REQUEST_PRIVACY',
1395
+ 'QUOTE_REQUEST_PRIVACY_LINK',
1396
+ 'QUOTE_REQUEST_QUANTITY_INVALID',
1397
+ 'QUOTE_REQUEST_QUANTITY_LABEL',
1398
+ 'QUOTE_REQUEST_SIGNED_IN_HINT',
1399
+ 'QUOTE_REQUEST_SUBMIT',
1400
+ 'QUOTE_REQUEST_SUCCESS',
1283
1401
  'SALE_BADGE_OFFER',
1284
1402
  'SALE_CHIP_ALL',
1285
1403
  'SALE_DISCOUNT_PERCENT',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.799",
3
+ "version": "1.10.801",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",