@12-apps/marketplace 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ADOPTING.md +36 -0
- package/README.md +63 -0
- package/dist/99food/index.d.ts +2 -2
- package/dist/99food/index.js +2 -2
- package/dist/{adapter-CYJzu1c9.d.ts → adapter-CD0SfdVS.d.ts} +124 -1
- package/dist/{chunk-PYHNM47K.js → chunk-DCWOQ5PN.js} +2 -2
- package/dist/{chunk-WVZ2IXFH.js → chunk-OS4TSIFU.js} +190 -12
- package/dist/chunk-OS4TSIFU.js.map +1 -0
- package/dist/chunk-SGOTN5PX.js +345 -0
- package/dist/chunk-SGOTN5PX.js.map +1 -0
- package/dist/{chunk-HEXLCTOG.js → chunk-TVZU4HNT.js} +1 -1
- package/dist/chunk-TVZU4HNT.js.map +1 -0
- package/dist/{chunk-2BA2EHNF.js → chunk-YWMEIMO3.js} +206 -22
- package/dist/chunk-YWMEIMO3.js.map +1 -0
- package/dist/{client-B4EQCRD_.d.ts → client-11sncog4.d.ts} +1 -1
- package/dist/{engine-DK3iV_Kk.d.ts → engine-C_3RK8wC.d.ts} +116 -4
- package/dist/hono/index.d.ts +2 -2
- package/dist/hono/index.js +3 -3
- package/dist/ifood/index.d.ts +5 -2
- package/dist/ifood/index.js +125 -7
- package/dist/ifood/index.js.map +1 -1
- package/dist/index.d.ts +23 -4
- package/dist/index.js +264 -21
- package/dist/index.js.map +1 -1
- package/dist/keeta/index.d.ts +2 -2
- package/dist/keeta/index.js +2 -2
- package/dist/manifest/index.d.ts +219 -1
- package/dist/manifest/index.js +1 -1
- package/dist/manifest/server.d.ts +2 -2
- package/dist/manifest/server.js +3 -3
- package/dist/rappi/index.d.ts +1 -1
- package/dist/rappi/index.js +1 -1
- package/dist/server/en-US.d.ts +13 -0
- package/dist/server/en-US.js +13 -0
- package/dist/server/en-US.js.map +1 -1
- package/dist/server/index.d.ts +241 -7
- package/dist/server/index.js +3 -3
- package/dist/server/pt-BR.d.ts +13 -0
- package/dist/server/pt-BR.js +13 -0
- package/dist/server/pt-BR.js.map +1 -1
- package/package.json +1 -1
- package/prisma/marketplace.prisma +41 -0
- package/prisma/migrations/20261127090000_marketplace_app_link/migration.sql +81 -0
- package/src/core/adapter.ts +21 -0
- package/src/core/bulk.ts +43 -8
- package/src/core/engine.ts +59 -3
- package/src/core/integration.ts +60 -32
- package/src/core/link-store.ts +170 -0
- package/src/core/linking-port.ts +100 -0
- package/src/core/linking.ts +363 -0
- package/src/core/merchant-claim.ts +106 -0
- package/src/core/ports.ts +3 -0
- package/src/ifood/index.ts +4 -0
- package/src/ifood/linking.ts +170 -0
- package/src/ifood/outbound.ts +10 -3
- package/src/index.ts +14 -0
- package/src/server/copy.ts +20 -2
- package/src/server/en-US.ts +13 -0
- package/src/server/index.ts +1 -1
- package/src/server/link-routes.ts +140 -0
- package/src/server/mcp-link.ts +103 -0
- package/src/server/mcp.ts +6 -2
- package/src/server/pt-BR.ts +13 -0
- package/src/server/routes.ts +5 -2
- package/src/server/webhook.ts +86 -0
- package/dist/chunk-2BA2EHNF.js.map +0 -1
- package/dist/chunk-HEXLCTOG.js.map +0 -1
- package/dist/chunk-WVZ2IXFH.js.map +0 -1
- package/dist/chunk-ZO4S3LF4.js +0 -254
- package/dist/chunk-ZO4S3LF4.js.map +0 -1
- /package/dist/{chunk-PYHNM47K.js.map → chunk-DCWOQ5PN.js.map} +0 -0
package/dist/keeta/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AdapterCallContext, N as NormalizedEvent, a as NormalizedMarketplaceOrder, c as MarketplaceAdapter } from '../adapter-
|
|
2
|
-
import { a as OpenDeliveryStop, O as OpenDeliveryApiBaseUrls } from '../client-
|
|
1
|
+
import { A as AdapterCallContext, N as NormalizedEvent, a as NormalizedMarketplaceOrder, c as MarketplaceAdapter } from '../adapter-CD0SfdVS.js';
|
|
2
|
+
import { a as OpenDeliveryStop, O as OpenDeliveryApiBaseUrls } from '../client-11sncog4.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Keeta's MERCHANT AUTHORIZATION, automated from the software (Keeta's
|
package/dist/keeta/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
openDeliveryRequestCancellation,
|
|
14
14
|
openDeliveryStatus,
|
|
15
15
|
openDeliverySwitchAvailability
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-DCWOQ5PN.js";
|
|
17
17
|
import "../chunk-M2V4RFMA.js";
|
|
18
18
|
import {
|
|
19
19
|
asString,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "../chunk-BD7DS3XM.js";
|
|
23
23
|
import {
|
|
24
24
|
outboundResultOf
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-TVZU4HNT.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "../chunk-7QVYU63E.js";
|
package/dist/manifest/index.d.ts
CHANGED
|
@@ -81,6 +81,10 @@ declare const marketplaceManifest: {
|
|
|
81
81
|
lastEventAt: zod.ZodNullable<zod.ZodString>;
|
|
82
82
|
lastVerifiedAt: zod.ZodNullable<zod.ZodString>;
|
|
83
83
|
archivedAt: zod.ZodNullable<zod.ZodString>;
|
|
84
|
+
authMode: zod.ZodEnum<{
|
|
85
|
+
CREDENTIALS: "CREDENTIALS";
|
|
86
|
+
LINKED: "LINKED";
|
|
87
|
+
}>;
|
|
84
88
|
capabilities: zod.ZodNullable<zod.ZodObject<{
|
|
85
89
|
apiConfirm: zod.ZodBoolean;
|
|
86
90
|
apiCancel: zod.ZodBoolean;
|
|
@@ -104,7 +108,7 @@ declare const marketplaceManifest: {
|
|
|
104
108
|
readonly operationId: "upsertMarketplaceIntegrations";
|
|
105
109
|
readonly method: "PUT";
|
|
106
110
|
readonly path: "/admin/{tenantSlug}/marketplace";
|
|
107
|
-
readonly summary: "Create, update, archive or unarchive one or many marketplace connections in one all-or-nothing call. A row is keyed by `provider`; `operation` is `upsert` (default: any subset of the settings; omitting `credentials` keeps the stored secrets, sending them resets the status to UNVERIFIED), `archive` or `unarchive` (reversible, audited, with an optional `reason`). Any problem writes nothing and every problem comes back with its path. `validateOnly: true` checks without writing.";
|
|
111
|
+
readonly summary: "Create, update, archive or unarchive one or many marketplace connections in one all-or-nothing call. A row is keyed by `provider`; `operation` is `upsert` (default: any subset of the settings; omitting `credentials` keeps the stored secrets, sending them resets the status to UNVERIFIED), `archive` or `unarchive` (reversible, audited, with an optional `reason`). An `externalMerchantId` another store's live connection holds is refused `MERCHANT_TAKEN` at that field (an unarchive reviving one, at `provider`). Any problem writes nothing and every problem comes back with its path. `validateOnly: true` checks without writing.";
|
|
108
112
|
readonly tags: readonly ["marketplace"];
|
|
109
113
|
readonly params: zod.ZodObject<{
|
|
110
114
|
tenantSlug: zod.ZodString;
|
|
@@ -160,6 +164,10 @@ declare const marketplaceManifest: {
|
|
|
160
164
|
lastEventAt: zod.ZodNullable<zod.ZodString>;
|
|
161
165
|
lastVerifiedAt: zod.ZodNullable<zod.ZodString>;
|
|
162
166
|
archivedAt: zod.ZodNullable<zod.ZodString>;
|
|
167
|
+
authMode: zod.ZodEnum<{
|
|
168
|
+
CREDENTIALS: "CREDENTIALS";
|
|
169
|
+
LINKED: "LINKED";
|
|
170
|
+
}>;
|
|
163
171
|
capabilities: zod.ZodNullable<zod.ZodObject<{
|
|
164
172
|
apiConfirm: zod.ZodBoolean;
|
|
165
173
|
apiCancel: zod.ZodBoolean;
|
|
@@ -330,6 +338,216 @@ declare const marketplaceManifest: {
|
|
|
330
338
|
readonly destructive: true;
|
|
331
339
|
readonly openWorld: true;
|
|
332
340
|
};
|
|
341
|
+
}, {
|
|
342
|
+
readonly operationId: "getMarketplaceLink";
|
|
343
|
+
readonly method: "GET";
|
|
344
|
+
readonly path: "/admin/{tenantSlug}/marketplace/link";
|
|
345
|
+
readonly summary: "Read in one call whether a store can connect a marketplace through the software's own app (no credentials typed), and the portal code still in progress, if any: `userCode`, the portal link that already carries it, and when it expires.";
|
|
346
|
+
readonly tags: readonly ["marketplace"];
|
|
347
|
+
readonly params: zod.ZodObject<{
|
|
348
|
+
tenantSlug: zod.ZodString;
|
|
349
|
+
}, zod_v4_core.$strict>;
|
|
350
|
+
readonly query: zod.ZodObject<{
|
|
351
|
+
provider: zod.ZodString;
|
|
352
|
+
environment: zod.ZodOptional<zod.ZodEnum<{
|
|
353
|
+
SANDBOX: "SANDBOX";
|
|
354
|
+
PRODUCTION: "PRODUCTION";
|
|
355
|
+
}>>;
|
|
356
|
+
}, zod_v4_core.$strict>;
|
|
357
|
+
readonly response: zod.ZodObject<{
|
|
358
|
+
data: zod.ZodObject<{
|
|
359
|
+
available: zod.ZodBoolean;
|
|
360
|
+
pending: zod.ZodNullable<zod.ZodObject<{
|
|
361
|
+
userCode: zod.ZodString;
|
|
362
|
+
verificationUrl: zod.ZodString;
|
|
363
|
+
verificationUrlComplete: zod.ZodString;
|
|
364
|
+
expiresAt: zod.ZodString;
|
|
365
|
+
}, zod_v4_core.$strip>>;
|
|
366
|
+
}, zod_v4_core.$strip>;
|
|
367
|
+
}, zod_v4_core.$strip>;
|
|
368
|
+
readonly annotations: {
|
|
369
|
+
readonly readOnly: true;
|
|
370
|
+
};
|
|
371
|
+
}, {
|
|
372
|
+
readonly operationId: "listMarketplaceLinkMerchants";
|
|
373
|
+
readonly method: "GET";
|
|
374
|
+
readonly path: "/admin/{tenantSlug}/marketplace/link/merchants";
|
|
375
|
+
readonly summary: "List the marketplace stores a linked connection's authorization covers, to choose which one this store is.";
|
|
376
|
+
readonly tags: readonly ["marketplace"];
|
|
377
|
+
readonly params: zod.ZodObject<{
|
|
378
|
+
tenantSlug: zod.ZodString;
|
|
379
|
+
}, zod_v4_core.$strict>;
|
|
380
|
+
readonly query: zod.ZodObject<{
|
|
381
|
+
provider: zod.ZodString;
|
|
382
|
+
}, zod_v4_core.$strict>;
|
|
383
|
+
readonly response: zod.ZodObject<{
|
|
384
|
+
data: zod.ZodArray<zod.ZodObject<{
|
|
385
|
+
id: zod.ZodString;
|
|
386
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
387
|
+
corporateName: zod.ZodNullable<zod.ZodString>;
|
|
388
|
+
}, zod_v4_core.$strip>>;
|
|
389
|
+
}, zod_v4_core.$strip>;
|
|
390
|
+
readonly annotations: {
|
|
391
|
+
readonly readOnly: true;
|
|
392
|
+
readonly openWorld: true;
|
|
393
|
+
};
|
|
394
|
+
}, {
|
|
395
|
+
readonly operationId: "startMarketplaceLink";
|
|
396
|
+
readonly method: "POST";
|
|
397
|
+
readonly path: "/admin/{tenantSlug}/marketplace/link/start";
|
|
398
|
+
readonly summary: "Start connecting a marketplace through the software's own app in one call: answers the code the person types on the marketplace's portal and the portal link that already carries it (valid ten minutes on iFood). Replaces a code in progress. 409 UNAVAILABLE when the software has no app on that marketplace.";
|
|
399
|
+
readonly tags: readonly ["marketplace"];
|
|
400
|
+
readonly params: zod.ZodObject<{
|
|
401
|
+
tenantSlug: zod.ZodString;
|
|
402
|
+
}, zod_v4_core.$strict>;
|
|
403
|
+
readonly body: zod.ZodObject<{
|
|
404
|
+
provider: zod.ZodString;
|
|
405
|
+
environment: zod.ZodOptional<zod.ZodEnum<{
|
|
406
|
+
SANDBOX: "SANDBOX";
|
|
407
|
+
PRODUCTION: "PRODUCTION";
|
|
408
|
+
}>>;
|
|
409
|
+
}, zod_v4_core.$strict>;
|
|
410
|
+
readonly response: zod.ZodObject<{
|
|
411
|
+
data: zod.ZodObject<{
|
|
412
|
+
userCode: zod.ZodString;
|
|
413
|
+
verificationUrl: zod.ZodString;
|
|
414
|
+
verificationUrlComplete: zod.ZodString;
|
|
415
|
+
expiresAt: zod.ZodString;
|
|
416
|
+
}, zod_v4_core.$strip>;
|
|
417
|
+
}, zod_v4_core.$strip>;
|
|
418
|
+
readonly annotations: {
|
|
419
|
+
readonly readOnly: false;
|
|
420
|
+
readonly destructive: false;
|
|
421
|
+
readonly openWorld: true;
|
|
422
|
+
};
|
|
423
|
+
}, {
|
|
424
|
+
readonly operationId: "finishMarketplaceLink";
|
|
425
|
+
readonly method: "POST";
|
|
426
|
+
readonly path: "/admin/{tenantSlug}/marketplace/link/finish";
|
|
427
|
+
readonly summary: "Finish connecting, in one call, with the authorization code the marketplace's portal showed the person. Stores the connection as LINKED and selects the marketplace store when the authorization covers only one; `merchants` lists them (null when they could not be listed). 422 CODE_REFUSED for a wrong code (the code in progress stays, paste again); 409 LINK_EXPIRED past its ten minutes.";
|
|
428
|
+
readonly tags: readonly ["marketplace"];
|
|
429
|
+
readonly params: zod.ZodObject<{
|
|
430
|
+
tenantSlug: zod.ZodString;
|
|
431
|
+
}, zod_v4_core.$strict>;
|
|
432
|
+
readonly body: zod.ZodObject<{
|
|
433
|
+
provider: zod.ZodString;
|
|
434
|
+
authorizationCode: zod.ZodString;
|
|
435
|
+
enabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
436
|
+
}, zod_v4_core.$strict>;
|
|
437
|
+
readonly response: zod.ZodObject<{
|
|
438
|
+
data: zod.ZodObject<{
|
|
439
|
+
integration: zod.ZodObject<{
|
|
440
|
+
provider: zod.ZodString;
|
|
441
|
+
enabled: zod.ZodBoolean;
|
|
442
|
+
environment: zod.ZodEnum<{
|
|
443
|
+
SANDBOX: "SANDBOX";
|
|
444
|
+
PRODUCTION: "PRODUCTION";
|
|
445
|
+
}>;
|
|
446
|
+
status: zod.ZodEnum<{
|
|
447
|
+
UNVERIFIED: "UNVERIFIED";
|
|
448
|
+
VERIFIED: "VERIFIED";
|
|
449
|
+
FAILED: "FAILED";
|
|
450
|
+
}>;
|
|
451
|
+
externalMerchantId: zod.ZodNullable<zod.ZodString>;
|
|
452
|
+
autoAccept: zod.ZodBoolean;
|
|
453
|
+
followStatus: zod.ZodBoolean;
|
|
454
|
+
ackSlaSeconds: zod.ZodNumber;
|
|
455
|
+
connected: zod.ZodBoolean;
|
|
456
|
+
lastEventAt: zod.ZodNullable<zod.ZodString>;
|
|
457
|
+
lastVerifiedAt: zod.ZodNullable<zod.ZodString>;
|
|
458
|
+
archivedAt: zod.ZodNullable<zod.ZodString>;
|
|
459
|
+
authMode: zod.ZodEnum<{
|
|
460
|
+
CREDENTIALS: "CREDENTIALS";
|
|
461
|
+
LINKED: "LINKED";
|
|
462
|
+
}>;
|
|
463
|
+
capabilities: zod.ZodNullable<zod.ZodObject<{
|
|
464
|
+
apiConfirm: zod.ZodBoolean;
|
|
465
|
+
apiCancel: zod.ZodBoolean;
|
|
466
|
+
cancelAfterAccept: zod.ZodBoolean;
|
|
467
|
+
asyncCancellationOutcome: zod.ZodBoolean;
|
|
468
|
+
perOrderAppLink: zod.ZodBoolean;
|
|
469
|
+
confirmTakesPreparationTime: zod.ZodBoolean;
|
|
470
|
+
}, zod_v4_core.$strip>>;
|
|
471
|
+
reasons: zod.ZodArray<zod.ZodObject<{
|
|
472
|
+
code: zod.ZodString;
|
|
473
|
+
label: zod.ZodString;
|
|
474
|
+
itemUnavailable: zod.ZodBoolean;
|
|
475
|
+
needsItems: zod.ZodBoolean;
|
|
476
|
+
}, zod_v4_core.$strip>>;
|
|
477
|
+
}, zod_v4_core.$strip>;
|
|
478
|
+
merchants: zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
|
|
479
|
+
id: zod.ZodString;
|
|
480
|
+
name: zod.ZodNullable<zod.ZodString>;
|
|
481
|
+
corporateName: zod.ZodNullable<zod.ZodString>;
|
|
482
|
+
}, zod_v4_core.$strip>>>;
|
|
483
|
+
}, zod_v4_core.$strip>;
|
|
484
|
+
}, zod_v4_core.$strip>;
|
|
485
|
+
readonly annotations: {
|
|
486
|
+
readonly readOnly: false;
|
|
487
|
+
readonly destructive: false;
|
|
488
|
+
readonly openWorld: true;
|
|
489
|
+
};
|
|
490
|
+
}, {
|
|
491
|
+
readonly operationId: "selectMarketplaceLinkMerchant";
|
|
492
|
+
readonly method: "PUT";
|
|
493
|
+
readonly path: "/admin/{tenantSlug}/marketplace/link/merchant";
|
|
494
|
+
readonly summary: "Choose in one call which marketplace store a linked connection is, among those its authorization covers. 422 UNKNOWN_MERCHANT for one it does not cover; 409 MERCHANT_TAKEN when another store's connection holds it.";
|
|
495
|
+
readonly tags: readonly ["marketplace"];
|
|
496
|
+
readonly params: zod.ZodObject<{
|
|
497
|
+
tenantSlug: zod.ZodString;
|
|
498
|
+
}, zod_v4_core.$strict>;
|
|
499
|
+
readonly body: zod.ZodObject<{
|
|
500
|
+
provider: zod.ZodString;
|
|
501
|
+
merchantId: zod.ZodString;
|
|
502
|
+
}, zod_v4_core.$strict>;
|
|
503
|
+
readonly response: zod.ZodObject<{
|
|
504
|
+
data: zod.ZodObject<{
|
|
505
|
+
integration: zod.ZodObject<{
|
|
506
|
+
provider: zod.ZodString;
|
|
507
|
+
enabled: zod.ZodBoolean;
|
|
508
|
+
environment: zod.ZodEnum<{
|
|
509
|
+
SANDBOX: "SANDBOX";
|
|
510
|
+
PRODUCTION: "PRODUCTION";
|
|
511
|
+
}>;
|
|
512
|
+
status: zod.ZodEnum<{
|
|
513
|
+
UNVERIFIED: "UNVERIFIED";
|
|
514
|
+
VERIFIED: "VERIFIED";
|
|
515
|
+
FAILED: "FAILED";
|
|
516
|
+
}>;
|
|
517
|
+
externalMerchantId: zod.ZodNullable<zod.ZodString>;
|
|
518
|
+
autoAccept: zod.ZodBoolean;
|
|
519
|
+
followStatus: zod.ZodBoolean;
|
|
520
|
+
ackSlaSeconds: zod.ZodNumber;
|
|
521
|
+
connected: zod.ZodBoolean;
|
|
522
|
+
lastEventAt: zod.ZodNullable<zod.ZodString>;
|
|
523
|
+
lastVerifiedAt: zod.ZodNullable<zod.ZodString>;
|
|
524
|
+
archivedAt: zod.ZodNullable<zod.ZodString>;
|
|
525
|
+
authMode: zod.ZodEnum<{
|
|
526
|
+
CREDENTIALS: "CREDENTIALS";
|
|
527
|
+
LINKED: "LINKED";
|
|
528
|
+
}>;
|
|
529
|
+
capabilities: zod.ZodNullable<zod.ZodObject<{
|
|
530
|
+
apiConfirm: zod.ZodBoolean;
|
|
531
|
+
apiCancel: zod.ZodBoolean;
|
|
532
|
+
cancelAfterAccept: zod.ZodBoolean;
|
|
533
|
+
asyncCancellationOutcome: zod.ZodBoolean;
|
|
534
|
+
perOrderAppLink: zod.ZodBoolean;
|
|
535
|
+
confirmTakesPreparationTime: zod.ZodBoolean;
|
|
536
|
+
}, zod_v4_core.$strip>>;
|
|
537
|
+
reasons: zod.ZodArray<zod.ZodObject<{
|
|
538
|
+
code: zod.ZodString;
|
|
539
|
+
label: zod.ZodString;
|
|
540
|
+
itemUnavailable: zod.ZodBoolean;
|
|
541
|
+
needsItems: zod.ZodBoolean;
|
|
542
|
+
}, zod_v4_core.$strip>>;
|
|
543
|
+
}, zod_v4_core.$strip>;
|
|
544
|
+
}, zod_v4_core.$strip>;
|
|
545
|
+
}, zod_v4_core.$strip>;
|
|
546
|
+
readonly annotations: {
|
|
547
|
+
readonly readOnly: false;
|
|
548
|
+
readonly destructive: false;
|
|
549
|
+
readonly openWorld: true;
|
|
550
|
+
};
|
|
333
551
|
}];
|
|
334
552
|
};
|
|
335
553
|
readonly db: {
|
package/dist/manifest/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { am as OutboundJobPayload, G as FetchOrderJobPayload, n as CatalogueJobPayload, b as AvailabilityJobPayload } from '../engine-C_3RK8wC.js';
|
|
2
2
|
import * as _12_apps_wiring from '@12-apps/wiring';
|
|
3
3
|
import { createApiMarketplace, MarketplaceJobDeps } from '../server/index.js';
|
|
4
|
-
import '../adapter-
|
|
4
|
+
import '../adapter-CD0SfdVS.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
declare const marketplaceServerManifest: {
|
package/dist/manifest/server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MARKETPLACE_JOBS,
|
|
3
3
|
createApiMarketplace
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OS4TSIFU.js";
|
|
5
|
+
import "../chunk-SGOTN5PX.js";
|
|
6
|
+
import "../chunk-YWMEIMO3.js";
|
|
7
7
|
import "../chunk-7QVYU63E.js";
|
|
8
8
|
|
|
9
9
|
// src/manifest/server.ts
|
package/dist/rappi/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NormalizedEvent, a as NormalizedMarketplaceOrder, M as MarketplaceAvailability, A as AdapterCallContext, O as OutboundResult, c as MarketplaceAdapter } from '../adapter-
|
|
1
|
+
import { N as NormalizedEvent, a as NormalizedMarketplaceOrder, M as MarketplaceAvailability, A as AdapterCallContext, O as OutboundResult, c as MarketplaceAdapter } from '../adapter-CD0SfdVS.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The words the Rappi adapter needs from its host, and nothing else.
|
package/dist/rappi/index.js
CHANGED
package/dist/server/en-US.d.ts
CHANGED
|
@@ -17,6 +17,19 @@ declare const MARKETPLACE_SERVER_COPY_EN_US: {
|
|
|
17
17
|
readonly NOTHING_TO_UPDATE: "Nothing to update.";
|
|
18
18
|
readonly CATALOG_ITEM_NOT_FOUND: "Product not found.";
|
|
19
19
|
};
|
|
20
|
+
readonly link: {
|
|
21
|
+
readonly problems: {
|
|
22
|
+
readonly UNAVAILABLE: "Connecting through the app is not available for this marketplace.";
|
|
23
|
+
readonly NO_LINK_IN_PROGRESS: "No connection is in progress. Start again from the first step.";
|
|
24
|
+
readonly LINK_EXPIRED: "The code has expired. Get a new code and repeat the steps.";
|
|
25
|
+
readonly CODE_REFUSED: "The marketplace refused the authorization code. Check the code and paste it again.";
|
|
26
|
+
readonly MARKETPLACE_REFUSED: "The marketplace refused the connection request.";
|
|
27
|
+
readonly NOT_LINKED: "This store is not connected through the app. Connect it again.";
|
|
28
|
+
readonly UNKNOWN_MERCHANT: "This store is not among the ones authorized on the marketplace.";
|
|
29
|
+
readonly MERCHANT_TAKEN: "This marketplace store is already connected to another account.";
|
|
30
|
+
};
|
|
31
|
+
readonly tryAgain: "The marketplace did not answer. Try again in a moment.";
|
|
32
|
+
};
|
|
20
33
|
};
|
|
21
34
|
|
|
22
35
|
export { MARKETPLACE_SERVER_COPY_EN_US };
|
package/dist/server/en-US.js
CHANGED
|
@@ -18,6 +18,19 @@ var MARKETPLACE_SERVER_COPY_EN_US = {
|
|
|
18
18
|
UNKNOWN_PROVIDER: "Unknown marketplace.",
|
|
19
19
|
NOTHING_TO_UPDATE: "Nothing to update.",
|
|
20
20
|
CATALOG_ITEM_NOT_FOUND: "Product not found."
|
|
21
|
+
},
|
|
22
|
+
link: {
|
|
23
|
+
problems: {
|
|
24
|
+
UNAVAILABLE: "Connecting through the app is not available for this marketplace.",
|
|
25
|
+
NO_LINK_IN_PROGRESS: "No connection is in progress. Start again from the first step.",
|
|
26
|
+
LINK_EXPIRED: "The code has expired. Get a new code and repeat the steps.",
|
|
27
|
+
CODE_REFUSED: "The marketplace refused the authorization code. Check the code and paste it again.",
|
|
28
|
+
MARKETPLACE_REFUSED: "The marketplace refused the connection request.",
|
|
29
|
+
NOT_LINKED: "This store is not connected through the app. Connect it again.",
|
|
30
|
+
UNKNOWN_MERCHANT: "This store is not among the ones authorized on the marketplace.",
|
|
31
|
+
MERCHANT_TAKEN: "This marketplace store is already connected to another account."
|
|
32
|
+
},
|
|
33
|
+
tryAgain: "The marketplace did not answer. Try again in a moment."
|
|
21
34
|
}
|
|
22
35
|
};
|
|
23
36
|
export {
|
package/dist/server/en-US.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/server/en-US.ts"],"sourcesContent":["import type { MarketplaceServerCopy } from \"./copy\";\n\n/** The marketplace routes' en-US pack. */\nexport const MARKETPLACE_SERVER_COPY_EN_US = {\n invalidInput: \"Invalid data.\",\n nothingSaved: \"Nothing was saved. Fix the problems listed and send the whole call again.\",\n orderNoLongerPending: \"This order was already decided or has expired. Refresh the screen.\",\n problems: {\n DUPLICATE: \"This row repeats one earlier in the same call.\",\n NOT_FOUND: \"Not found.\",\n ALREADY_DECIDED: \"This order was already decided.\",\n EXPIRED: \"This order's acceptance window has passed.\",\n CONFLICT: \"Someone else decided this order a moment ago.\",\n INVALID_REASON: \"That reason is not one this marketplace accepts.\",\n ITEMS_REQUIRED: \"This reason needs the items it is about.\",\n UNKNOWN_ITEM: \"This item is not in the order.\",\n HOST_REFUSED: \"The store refused this decision.\",\n UNKNOWN_PROVIDER: \"Unknown marketplace.\",\n NOTHING_TO_UPDATE: \"Nothing to update.\",\n CATALOG_ITEM_NOT_FOUND: \"Product not found.\",\n },\n} as const satisfies MarketplaceServerCopy;\n"],"mappings":";;;AAGO,IAAM,gCAAgC;AAAA,EAC3C,cAAc;AAAA,EACd,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,UAAU;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,SAAS;AAAA,IACT,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,kBAAkB;AAAA,IAClB,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,EAC1B;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/server/en-US.ts"],"sourcesContent":["import type { MarketplaceServerCopy } from \"./copy\";\n\n/** The marketplace routes' en-US pack. */\nexport const MARKETPLACE_SERVER_COPY_EN_US = {\n invalidInput: \"Invalid data.\",\n nothingSaved: \"Nothing was saved. Fix the problems listed and send the whole call again.\",\n orderNoLongerPending: \"This order was already decided or has expired. Refresh the screen.\",\n problems: {\n DUPLICATE: \"This row repeats one earlier in the same call.\",\n NOT_FOUND: \"Not found.\",\n ALREADY_DECIDED: \"This order was already decided.\",\n EXPIRED: \"This order's acceptance window has passed.\",\n CONFLICT: \"Someone else decided this order a moment ago.\",\n INVALID_REASON: \"That reason is not one this marketplace accepts.\",\n ITEMS_REQUIRED: \"This reason needs the items it is about.\",\n UNKNOWN_ITEM: \"This item is not in the order.\",\n HOST_REFUSED: \"The store refused this decision.\",\n UNKNOWN_PROVIDER: \"Unknown marketplace.\",\n NOTHING_TO_UPDATE: \"Nothing to update.\",\n CATALOG_ITEM_NOT_FOUND: \"Product not found.\",\n },\n link: {\n problems: {\n UNAVAILABLE: \"Connecting through the app is not available for this marketplace.\",\n NO_LINK_IN_PROGRESS: \"No connection is in progress. Start again from the first step.\",\n LINK_EXPIRED: \"The code has expired. Get a new code and repeat the steps.\",\n CODE_REFUSED: \"The marketplace refused the authorization code. Check the code and paste it again.\",\n MARKETPLACE_REFUSED: \"The marketplace refused the connection request.\",\n NOT_LINKED: \"This store is not connected through the app. Connect it again.\",\n UNKNOWN_MERCHANT: \"This store is not among the ones authorized on the marketplace.\",\n MERCHANT_TAKEN: \"This marketplace store is already connected to another account.\",\n },\n tryAgain: \"The marketplace did not answer. Try again in a moment.\",\n },\n} as const satisfies MarketplaceServerCopy;\n"],"mappings":";;;AAGO,IAAM,gCAAgC;AAAA,EAC3C,cAAc;AAAA,EACd,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,UAAU;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,IACX,iBAAiB;AAAA,IACjB,SAAS;AAAA,IACT,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,kBAAkB;AAAA,IAClB,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,EAC1B;AAAA,EACA,MAAM;AAAA,IACJ,UAAU;AAAA,MACR,aAAa;AAAA,MACb,qBAAqB;AAAA,MACrB,cAAc;AAAA,MACd,cAAc;AAAA,MACd,qBAAqB;AAAA,MACrB,YAAY;AAAA,MACZ,kBAAkB;AAAA,MAClB,gBAAgB;AAAA,IAClB;AAAA,IACA,UAAU;AAAA,EACZ;AACF;","names":[]}
|