@cimplify/cli 0.15.0 → 0.15.1
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/README.md +1 -1
- package/dist/{add-EPY25NNV.mjs → add-X3OUBJ7D.mjs} +1 -1
- package/dist/{auth-step-up-VL742AS7.mjs → auth-step-up-Z6KOTTV7.mjs} +17 -15
- package/dist/{chunk-3KRSHO6J.mjs → chunk-DMLQBAGC.mjs} +3 -10
- package/dist/{chunk-GCQKTUXN.mjs → chunk-MGQD5MEC.mjs} +3 -3
- package/dist/chunk-MTEMM6WI.mjs +6463 -0
- package/dist/{chunk-5SMYK3U2.mjs → chunk-WAHYTXOF.mjs} +1 -1
- package/dist/dispatcher.mjs +13 -13
- package/dist/{doctor-TTI237ZY.mjs → doctor-YP5NOD75.mjs} +7 -9
- package/dist/{explain-HVK5ZNTV.mjs → explain-YX5DKW5T.mjs} +4 -4
- package/dist/{introspect-KTB4BXU5.mjs → introspect-HI65VEHQ.mjs} +2 -2
- package/dist/{list-L6FMY3AF.mjs → list-PRB7KCPF.mjs} +1 -1
- package/dist/{login-ZTSWYO5G.mjs → login-RLMDEWAL.mjs} +8 -12
- package/dist/{update-XUDRJZDE.mjs → update-62RJTAMU.mjs} +1 -1
- package/dist/{whoami-ZWTJMEDB.mjs → whoami-CQPPARRS.mjs} +1 -1
- package/package.json +3 -3
- package/templates/manifest.json +26 -26
- package/templates/storefront-auto/app/account/orders/page.tsx +1 -2
- package/templates/storefront-auto/bun.lock +7 -69
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/app/account/orders/page.tsx +1 -2
- package/templates/storefront-bakery/bun.lock +7 -69
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/app/account/orders/page.tsx +1 -2
- package/templates/storefront-fashion/bun.lock +7 -69
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/app/account/orders/page.tsx +1 -2
- package/templates/storefront-grocery/bun.lock +7 -69
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/app/account/orders/page.tsx +1 -2
- package/templates/storefront-pharmacy/bun.lock +7 -69
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/app/account/orders/page.tsx +1 -2
- package/templates/storefront-restaurant/bun.lock +7 -69
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/app/account/orders/page.tsx +1 -2
- package/templates/storefront-retail/bun.lock +7 -69
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/app/account/orders/page.tsx +1 -2
- package/templates/storefront-services/bun.lock +7 -69
- package/templates/storefront-services/package.json +1 -1
- package/dist/chunk-YJDQYKZU.mjs +0 -6463
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { parseEnvFile } from './chunk-I2UP7YTG.mjs';
|
|
3
|
-
import { package_default } from './chunk-
|
|
3
|
+
import { package_default } from './chunk-MGQD5MEC.mjs';
|
|
4
4
|
import { gitDetectRoot, gitCurrentBranch, gitCurrentSha, gitStatusPorcelain } from './chunk-KN2YSKXZ.mjs';
|
|
5
5
|
import { parseArgs } from './chunk-5KYR6WJB.mjs';
|
|
6
6
|
import { readAuthOrNull, readProjectLinkOrNull, readProjectState } from './chunk-MLE4MVYC.mjs';
|
package/dist/dispatcher.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { TEMPLATES } from './chunk-
|
|
3
|
-
import { package_default } from './chunk-
|
|
2
|
+
import { TEMPLATES } from './chunk-MTEMM6WI.mjs';
|
|
3
|
+
import { package_default } from './chunk-MGQD5MEC.mjs';
|
|
4
4
|
|
|
5
5
|
// src/dispatcher.ts
|
|
6
6
|
var VERSION = package_default.version ?? "unknown";
|
|
@@ -100,7 +100,7 @@ Init flags:
|
|
|
100
100
|
Login flags:
|
|
101
101
|
(no flags) Open a browser to authorize this CLI (default)
|
|
102
102
|
--no-browser Print the URL instead of opening it (useful over SSH)
|
|
103
|
-
--api-key <
|
|
103
|
+
--api-key <cak_...> Skip the browser with a user-bound Personal key
|
|
104
104
|
--base-url <url> API base URL (env: CIMPLIFY_CLI_API_URL; default https://api.cimplify.io)
|
|
105
105
|
|
|
106
106
|
Deploy flags:
|
|
@@ -134,9 +134,9 @@ Local mock server (custom demo data, no fork needed):
|
|
|
134
134
|
cimplify mock --seed-module ./seed.ts Boot from a seed module (defineSeed from @cimplify/sdk/mock)
|
|
135
135
|
`;
|
|
136
136
|
var COMMANDS = {
|
|
137
|
-
login: () => import('./login-
|
|
137
|
+
login: () => import('./login-RLMDEWAL.mjs'),
|
|
138
138
|
logout: () => import('./logout-Z57X6HPE.mjs'),
|
|
139
|
-
whoami: () => import('./whoami-
|
|
139
|
+
whoami: () => import('./whoami-CQPPARRS.mjs'),
|
|
140
140
|
projects: () => import('./projects-4XRNHJAH.mjs'),
|
|
141
141
|
link: () => import('./link-4NM2QMI5.mjs'),
|
|
142
142
|
unlink: () => import('./unlink-H3BO3DOQ.mjs'),
|
|
@@ -149,18 +149,18 @@ var COMMANDS = {
|
|
|
149
149
|
status: () => import('./status-VA326DWD.mjs'),
|
|
150
150
|
dev: () => import('./dev-V7JSUVOI.mjs'),
|
|
151
151
|
mock: () => import('./mock-EVER34IX.mjs'),
|
|
152
|
-
introspect: () => import('./introspect-
|
|
152
|
+
introspect: () => import('./introspect-HI65VEHQ.mjs'),
|
|
153
153
|
inspect: () => import('./inspect-X3M7WSTL.mjs'),
|
|
154
|
-
doctor: () => import('./doctor-
|
|
154
|
+
doctor: () => import('./doctor-YP5NOD75.mjs'),
|
|
155
155
|
lint: () => import('./lint-DDZ7HUQN.mjs'),
|
|
156
|
-
explain: () => import('./explain-
|
|
156
|
+
explain: () => import('./explain-YX5DKW5T.mjs'),
|
|
157
157
|
assets: () => import('./assets-CWB72PZG.mjs'),
|
|
158
158
|
repo: () => import('./repo-X3KZ5R64.mjs'),
|
|
159
|
-
list: () => import('./list-
|
|
160
|
-
add: () => import('./add-
|
|
161
|
-
update: () => import('./update-
|
|
162
|
-
upgrade: () => import('./update-
|
|
163
|
-
"auth-step-up": () => import('./auth-step-up-
|
|
159
|
+
list: () => import('./list-PRB7KCPF.mjs'),
|
|
160
|
+
add: () => import('./add-X3OUBJ7D.mjs'),
|
|
161
|
+
update: () => import('./update-62RJTAMU.mjs'),
|
|
162
|
+
upgrade: () => import('./update-62RJTAMU.mjs'),
|
|
163
|
+
"auth-step-up": () => import('./auth-step-up-Z6KOTTV7.mjs')
|
|
164
164
|
};
|
|
165
165
|
var COMMAND_PREFIXES = {
|
|
166
166
|
auth: { "step-up": "auth-step-up" }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { gatherIntrospection } from './chunk-
|
|
2
|
+
import { gatherIntrospection } from './chunk-WAHYTXOF.mjs';
|
|
3
3
|
import './chunk-I2UP7YTG.mjs';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-MGQD5MEC.mjs';
|
|
5
5
|
import './chunk-KN2YSKXZ.mjs';
|
|
6
6
|
import { parseArgs, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
7
7
|
import { SDK_ENV_API_URL, DEFAULT_API_BASE_URL, ApiClient, ENV_API_BASE_URL } from './chunk-NYXA6X56.mjs';
|
|
@@ -10,7 +10,7 @@ import { bold, dim, info, result, isCliError, CLI_ERROR_CODE, red, yellow, green
|
|
|
10
10
|
import { promises } from 'fs';
|
|
11
11
|
import path from 'path';
|
|
12
12
|
|
|
13
|
-
var ENDPOINT_AUTH_ME = "/v1/auth/me";
|
|
13
|
+
var ENDPOINT_AUTH_ME = "/v1/auth/cli/me";
|
|
14
14
|
var NON_BUN_LOCKFILES = ["package-lock.json", "yarn.lock", "pnpm-lock.yaml"];
|
|
15
15
|
var BUN_LOCKFILES = ["bun.lock", "bun.lockb"];
|
|
16
16
|
function ok(name, message) {
|
|
@@ -60,7 +60,9 @@ function deriveLocalChecks(snapshot, extras) {
|
|
|
60
60
|
} else {
|
|
61
61
|
checks.push(ok("package_json", snapshot.package.name ?? "(unnamed)"));
|
|
62
62
|
if (!extras.nodeModules) {
|
|
63
|
-
checks.push(
|
|
63
|
+
checks.push(
|
|
64
|
+
fail("node_modules", "missing \u2014 dependencies not installed", "run `bun install`")
|
|
65
|
+
);
|
|
64
66
|
} else {
|
|
65
67
|
checks.push(ok("node_modules", "installed"));
|
|
66
68
|
}
|
|
@@ -80,11 +82,7 @@ function deriveLocalChecks(snapshot, extras) {
|
|
|
80
82
|
const pin = snapshot.package.sdk_pin;
|
|
81
83
|
if (!pin) {
|
|
82
84
|
checks.push(
|
|
83
|
-
fail(
|
|
84
|
-
"sdk_pin",
|
|
85
|
-
"@cimplify/sdk not in dependencies",
|
|
86
|
-
"run `bun add @cimplify/sdk`"
|
|
87
|
-
)
|
|
85
|
+
fail("sdk_pin", "@cimplify/sdk not in dependencies", "run `bun add @cimplify/sdk`")
|
|
88
86
|
);
|
|
89
87
|
} else if (pin === "*" || pin === "latest") {
|
|
90
88
|
checks.push(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
2
|
+
import { package_default } from './chunk-MGQD5MEC.mjs';
|
|
3
3
|
import { parseArgs } from './chunk-5KYR6WJB.mjs';
|
|
4
4
|
import { bold, dim, info, result, CliError, CLI_ERROR_CODE } from './chunk-3QUK5BPY.mjs';
|
|
5
5
|
|
|
@@ -80,14 +80,14 @@ var TOPICS = [
|
|
|
80
80
|
"title": "Checkout",
|
|
81
81
|
"description": "Flat ProcessArgs body for /checkout, payment methods",
|
|
82
82
|
"source_url": "https://cimplify.dev/docs/sdk/checkout",
|
|
83
|
-
"body": "
|
|
83
|
+
"body": "`client.purchaseIntents` is the checkout authority. Minting creates a durable\nPurchaseIntent and immutable terms; it does **not** create an Order. Confirmation\ncreates the Order only after the server revalidates the accepted terms, source,\ninventory, funding allocation, and opaque payment option.\n\n## Mint Cart terms\n\n```ts\n MOBILE_MONEY_TENDER_AUTHORITY_KIND,\n ORDER_TYPE,\n PURCHASE_INTENT_PAYMENT_METHOD,\n PURCHASE_INTENT_MOBILE_MONEY_NETWORK,\n PURCHASE_INTENT_SOURCE_KIND,\n} from '@cimplify/sdk'\n\nconst minted = await client.purchaseIntents.mint({\n client_intent_key: crypto.randomUUID(),\n source: {\n kind: PURCHASE_INTENT_SOURCE_KIND.CART,\n cart_id: cart.id,\n },\n checkout: {\n customer: {\n name: 'Jane Doe',\n email: 'jane@example.com',\n phone: '+233244000000',\n save_details: false,\n },\n order_type: ORDER_TYPE.PICKUP,\n address_info: { pickup_time: '2026-08-23T15:00:00Z' },\n tender_preference: {\n method_kind: PURCHASE_INTENT_PAYMENT_METHOD.MOBILE_MONEY,\n authority: {\n authority_kind: MOBILE_MONEY_TENDER_AUTHORITY_KIND.TRANSIENT,\n phone_number: '+233244000000',\n network: PURCHASE_INTENT_MOBILE_MONEY_NETWORK.MTN,\n },\n },\n },\n})\n\nif (!minted.ok) throw minted.error\nif (!minted.value.current_terms) throw new Error('Checkout terms are not prepared')\n```\n\nThe server derives seller and owner authority from the authenticated client. Do not\nsend a business, account, staff-session, or hosted-session owner in the body.\n\nFor a saved Mobile Money authority, send only the opaque ID:\n\n```ts\nconst tenderPreference = {\n method_kind: PURCHASE_INTENT_PAYMENT_METHOD.MOBILE_MONEY,\n authority: {\n authority_kind: MOBILE_MONEY_TENDER_AUTHORITY_KIND.SAVED_REFERENCE,\n stored_instrument_id: savedMobileMoney.id,\n },\n} as const\n```\n\nThe server independently verifies ownership and derives its network. Never pair a\nsaved reference with a phone number.\n\n## Review one exact option\n\n```ts\n\nconst terms = minted.value.current_terms\nconst option = selectPurchaseIntentPaymentOption(terms, {\n method_kind: PURCHASE_INTENT_PAYMENT_METHOD.MOBILE_MONEY,\n})\n\nif (!option) throw new Error('The selected payment method is unavailable')\n\nrenderPaymentReview({\n commercePrincipal: option.principal_amount,\n collectionFee: option.fee_amount,\n customerDebit: option.customer_debit_amount,\n currency: option.currency,\n})\n```\n\nThe exact equations are:\n\n```text\nstore_credit_consumed + voucher_credit_consumed + rail_amount = due_now\nprincipal_amount + fee_amount = customer_debit_amount\n```\n\nFunding allocations belong to the accepted terms. Payment options collect only the\nresidual principal and their own provider/offline fee. Do not display one top-level\npayment fee: different options may have different fees.\n\n## Confirm reviewed terms\n\n```ts\n PURCHASE_INTENT_CONFIRM_STATUS,\n createPurchaseIntentConfirmation,\n} from '@cimplify/sdk'\n\nconst confirmation = createPurchaseIntentConfirmation(\n terms,\n option,\n crypto.randomUUID(),\n)\nconst confirmed = await client.purchaseIntents.confirm(\n minted.value.id,\n confirmation,\n)\nif (!confirmed.ok) throw confirmed.error\n\nswitch (confirmed.value.status) {\n case PURCHASE_INTENT_CONFIRM_STATUS.ORDER_CREATED:\n showOrder(confirmed.value.order_id, confirmed.value.order_number)\n break\n case PURCHASE_INTENT_CONFIRM_STATUS.TERMS_CHANGED:\n showTermsReview(confirmed.value.replacement, confirmed.value.deltas)\n break\n case PURCHASE_INTENT_CONFIRM_STATUS.SELECTION_UNAVAILABLE:\n showUnavailableLines(confirmed.value.lines)\n break\n case PURCHASE_INTENT_CONFIRM_STATUS.PAYMENT_FAILED:\n showDeclinedPayment()\n break\n default:\n handleProviderOrRecoveryState(confirmed.value)\n}\n```\n\n`createPurchaseIntentConfirmation` binds the current intent revision, terms version,\ndue-now value, currency, selected option ID, and its exact\n`customer_debit_amount`. A true zero-rail purchase is the only case that can confirm\nwithout an option.\n\n## Resolve provider actions and replay\n\n`resolve` drives the canonical confirm/action/poll loop while keeping one durable\nattempt authority:\n\n```ts\n CHECKOUT_NEXT_ACTION,\n PAYMENT_AUTHORIZATION_OUTCOME_STATUS,\n PURCHASE_INTENT_ACTION_DECISION,\n PURCHASE_INTENT_CONFIRM_STATUS,\n} from '@cimplify/sdk'\n\nconst resolution = await client.purchaseIntents.resolve(minted.value.id, {\n confirmation,\n onActionRequired: async (action) => {\n if (action.status === PURCHASE_INTENT_CONFIRM_STATUS.REDIRECT_REQUIRED) {\n window.location.assign(action.authorization_url)\n return PURCHASE_INTENT_ACTION_DECISION.STOP\n }\n\n if (action.status === PURCHASE_INTENT_CONFIRM_STATUS.CARD_POPUP_REQUIRED) {\n const outcome = await client.checkout.authorizeCardPopup({\n type: CHECKOUT_NEXT_ACTION.CARD_POPUP,\n provider: action.provider,\n client_secret: action.client_secret,\n public_key: action.public_key,\n provider_account_id: action.provider_account_id ?? undefined,\n })\n return outcome.status === PAYMENT_AUTHORIZATION_OUTCOME_STATUS.SUBMITTED\n ? PURCHASE_INTENT_ACTION_DECISION.CONTINUE\n : PURCHASE_INTENT_ACTION_DECISION.STOP\n }\n\n const authorization = await collectAuthorization(action.authorization_type)\n return {\n kind: PURCHASE_INTENT_ACTION_DECISION.SUBMIT,\n request: { authorization },\n }\n },\n})\n```\n\nKeep the same confirmation idempotency key after an ambiguous response. A definitive\ndecline or an explicitly accepted replacement terms version starts a new attempt key.\nPersist only opaque intent, attempt, terms, option, and idempotency authorities for\nbrowser recovery\u2014never customer contact, address, voucher, note, or raw tender data,\nand never a hash of low-entropy PII.\n\n## Hosted checkout\n\nHosted PurchaseIntents belong to the CheckoutSession, not the storefront API session:\n\n```ts\nconst hosted = client.purchaseIntents.forHostedSession(sessionId)\nconst prepared = await hosted.prepare({\n expected_intent_revision: 0,\n idempotency_key: crypto.randomUUID(),\n checkout,\n})\n\nif (!prepared.ok || !prepared.value.current_terms) {\n throw prepared.ok ? new Error('Terms unavailable') : prepared.error\n}\n\nconst result = await hosted.resolve(prepared.value.id, {\n confirmation: createPurchaseIntentConfirmation(\n prepared.value.current_terms,\n selectPurchaseIntentPaymentOption(prepared.value.current_terms, tender) ?? null,\n crypto.randomUUID(),\n ),\n})\n```\n\nUse the hosted service for prepare, confirm, replay, and action submission. An intent\nID is the durable resource ID, but it does not replace the hosted session's owner\nauthority.\n\n## Compatibility adapter\n\n`client.checkout.process()` remains a deprecated SDK adapter over purchase-intent\nroutes for one migration window. New integrations should use\n`client.purchaseIntents` so terms review, per-option fees, attempt replay, and hosted\nownership remain explicit. The backend `/api/v1/checkout` endpoint no longer exists,\nand new checkout responses do not issue legacy Order bill tokens.\n\nThe deprecated `client.checkout.submitAuthorization()` method is fail-closed. It\ncan submit an action only when the same in-memory `CheckoutService` instance has\njust received the matching `payment_id`, `intent_id`, and `attempt_id` from\n`process()`. The SDK sends the authorization to the owner-fenced purchase-intent\nattempt action route; it never falls back to the legacy payment-id authorization\nmutation. After a reload, use the durable purchase-intent replay/action API instead.\n\n- [**Checkout Elements**](/docs/checkout/elements)\n Use the hosted UI and its `reviewing_terms` state.\n\n- [**Orders**](/docs/sdk/orders)\n Read the committed Order after `order_created`.\n"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": "orders",
|
|
87
87
|
"title": "Orders",
|
|
88
88
|
"description": "Order shape and status flow",
|
|
89
89
|
"source_url": "https://cimplify.dev/docs/sdk/orders",
|
|
90
|
-
"body": "`client.orders.list()` returns different results depending on how the\nclient was constructed:\n\n- **Guest client** (`getServerClient()` with no `accessToken`, or the\n browser `cimplify` client with no signed-in shopper): returns nothing\n by default; the API has no customer to scope to. `client.orders.get()`\n still
|
|
90
|
+
"body": "`client.orders.list()` returns different results depending on how the\nclient was constructed:\n\n- **Guest client** (`getServerClient()` with no `accessToken`, or the\n browser `cimplify` client with no signed-in shopper): returns nothing\n by default; the API has no customer to scope to. `client.orders.get()`\n may still use a previously cached historical Order token for its original\n pre-convergence order. New purchase-intent checkout does not issue one.\n- **Authenticated client** (`getAuthenticatedServerClient()` from the\n templates, or `getServerClient({ accessToken })` from a custom integration):\n returns *that customer's* orders at *this merchant*.\n\nSee [Sign in with Cimplify \u2192 Personalized server-side reads](/docs/sdk/auth#personalized-server-side-reads)\nfor the full setup.\n\n## Render orders for the signed-in shopper\n\n```tsx title=\"app/account/orders/page.tsx\"\n\nexport const revalidate = 0; // personalized; do not ISR-cache\n\nexport default async function OrdersPage() {\n const client = await getAuthenticatedServerClient();\n const r = await client.orders.list({ limit: 20 });\n if (!r.ok) throw new Error(r.error.message);\n\n if (r.value.length === 0) {\n return <p>No orders yet.</p>;\n }\n return (\n <ul>\n {r.value.map((o) => (\n <li key={o.id}>#{o.order_number} \xB7 {o.status} \xB7 {o.total_price}</li>\n ))}\n </ul>\n );\n}\n```\n\nIf `cimplify_access` is missing (signed-out shopper), `client.orders.list()`\nreturns the empty guest view. Branch on `getSession()` from `lib/auth.ts`\nif you want to redirect to sign-in instead.\n\n## List orders\n\n \n \n\n```ts\nconst r = await client.orders.list({ limit: 20 })\nif (!r.ok) {\n console.error(r.error.code, r.error.message)\n return\n}\n\nconsole.log(r.value.length)\nfor (const order of r.value) {\n console.log(order.id, order.order_number, order.status)\n}\n```\n\n \n\n \n\n## Filter by status\n\n \n \n\n```ts\nconst pending = await client.orders.list({ status: 'pending' })\nconst completed = await client.orders.list({ status: 'completed', limit: 50 })\n\n// Convenience wrappers\nconst recent = await client.orders.getRecent(5) // last 5\nconst cancelled = await client.orders.getByStatus('cancelled')\n```\n\n \n\n \n\n## Get a single order\n\n \n\nAuthenticated and recognised shoppers read the Order created by a confirmed purchase intent through their existing owner/session authority. The SDK still appends a cached historical Order token when one already exists, solely so old orders remain readable during the compatibility window.\n\n \n \n\n```ts\n\nconst r = await client.orders.get('ord_xxx')\nif (!r.ok) return\n\nconst order = r.value\nconsole.log(order.status)\nconsole.log(order.items.length)\nconsole.log(order.total_price) // Money string\nconsole.log(formatPrice(parsePrice(order.total_price), order.currency))\n```\n\n \n\n \n\n## Cancel an order\n\n \n \n\n```ts\nconst cancelled = await client.orders.cancel('ord_xxx', 'changed_mind')\nif (!cancelled.ok) {\n // Codes you'll see: ORDER_NOT_CANCELLABLE, ORDER_ALREADY_FULFILLED\n console.error(cancelled.error.code, cancelled.error.message)\n}\n\n// Idempotent retry: same key, same outcome on the server\nawait client.orders.cancel('ord_xxx', 'changed_mind', {\n idempotencyKey: 'cancel-ord_xxx-once',\n})\n```\n\n \n\n \n\n## Order status values\n\n \n \n\n| Status | Meaning |\n| --- | --- |\n| `pending` | Created, awaiting payment confirmation |\n| `confirmed` | Accepted by the business |\n| `preparing` | Being assembled or fulfilled |\n| `ready` | Ready for pickup or delivery dispatch |\n| `completed` | Fulfilled; terminal state |\n| `cancelled` | Cancelled; terminal state |\n| `refunded` | Payment refunded |\n\n \n\n \n\n## Poll until terminal\n\n \n \n\n```ts\nasync function pollUntilTerminal(orderId: string, intervalMs = 5000) {\n for (;;) {\n const r = await client.orders.get(orderId)\n if (!r.ok) return r\n\n const status = r.value.status\n if (status === 'completed' || status === 'cancelled' || status === 'refunded') {\n return r\n }\n\n await new Promise((resolve) => setTimeout(resolve, intervalMs))\n }\n}\n```\n\n \n\n \n\n## Method reference\n\n \n \n\n| Method | Returns |\n| --- | --- |\n| `list({ status?, limit?, offset? })` | `Result<Order[]>` |\n| `get(orderId)` | `Result<Order>` |\n| `cancel(orderId, reason?, opts?)` | `Result<Order>` |\n| `getRecent(limit?)` | `Result<Order[]>` |\n| `getByStatus(status)` | `Result<Order[]>` |\n\n \n\n \n\n## Related\n\n \n \n- [**Checkout**](/docs/sdk/checkout)\n Create the orders that this page lists\n\n \n- [**Subscriptions**](/docs/sdk/subscriptions)\n For recurring orders, see the subscription surface\n\n \n- [**Scheduling**](/docs/sdk/scheduling)\n Reschedule or cancel a booking line item\n\n \n- [**Error handling**](/docs/sdk/errors)\n Cancellation guards and retryable errors\n"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"name": "subscriptions",
|
|
@@ -171,7 +171,7 @@ var TOPICS = [
|
|
|
171
171
|
"title": "Agent prompts",
|
|
172
172
|
"description": "Copy-paste prompts for common Cimplify workflows",
|
|
173
173
|
"source_url": "https://cimplify.dev/docs/agent-prompts",
|
|
174
|
-
"body": 'These prompts are deliberately terse. Each one names the canonical doc the agent should read first, the exact commands or [MCP tools](/docs/mcp) to call, and the exit condition. Replace `<angle-bracket>` placeholders before running.\n\nEvery prompt assumes the agent has either:\n\n- the [Cimplify CLI](/docs/cli) installed and `cimplify login` complete, **or**\n- an MCP connection to `https://api.cimplify.io/mcp` ([setup](/docs/mcp#connect))\n\n## Ship a new storefront end-to-end\n\n```text title="Scaffold \u2192 deploy \u2192 custom domain"\nSet up a Cimplify <retail> storefront called <my-store> and deploy it to <shop.example.com>.\n\nSource of truth: https://cimplify.dev/docs/tldr\n- Use the MCP tools at api.cimplify.io/mcp when available; otherwise shell `cimplify <cmd> --json`.\n- After every command, echo the JSON envelope.\n- Stop on the first non-zero exit code and name it from https://cimplify.dev/docs/cli#exit-codes.\n- Poll deployment status with cimplify_get_deployment_status (or `cimplify status --json`); never `sleep`.\n- Idempotent: re-running any step is safe.\n```\n\n## Rebrand an existing storefront\n\n```text title="Apply a new brand to a scaffolded template"\nRebrand the storefront in <./my-store> to match these tokens:\n name: <Acme Coffee>\n primary: <#0F172A>\n accent: <#F59E0B>\n fontDisplay: <"Playfair Display">\n fontBody: <"Inter">\n\nRules (https://cimplify.dev/docs/templates/brand):\n- Single source of truth is `lib/brand.ts`. Update it first.\n- Mirror color tokens into `app/globals.css` `@theme` block. Do not hard-code colors elsewhere.\n- Do not edit ejected SDK components; they pick up tokens automatically.\n- Run `bun run check:brand` after edits; fix any schema errors it reports.\n- Verify by opening `http://localhost:3000` (start `bun dev` if not running).\n- Commit with message `brand: <name>`. Do not deploy.\n```\n\n## Add a homepage section\n\n```text title="New Server Component section, cache-tagged"\nAdd a `<Stories>` section to the homepage of the storefront in <./my-store>.\n\nPattern (mirrors the Server Component sections under `app/_sections/` in the scaffolded template):\n- Create `app/_sections/stories.tsx` as an async Server Component. Pass `cacheOptions: { revalidate: 3600, tags: [tags.collections()] }` to the SDK read (from `@cimplify/sdk/server`). Do NOT use `\'use cache\'` / `cacheTag` / `cacheLife`. Cimplify storefronts run on CF Workers where Cache Components is broken; use the ISR Previous Model.\n- Source data from `client.catalogue.getCollection({ slug: "stories" })`.\n- Render with the existing `<SectionHeader>` and `<ProductCard>` SDK components (do not eject).\n- Insert into `app/page.tsx` between the hero and the featured collection.\n- Run `bun run check`. It must pass typecheck, lint, brand, cart-flow, contract.\n- Do not modify `lib/brand.ts` or any file under `components/ui/`.\n```\n\n## Migrate to a new SDK version\n\n```text title="SDK upgrade with breaking-change scan"\nUpgrade the storefront in <./my-store> from `@cimplify/sdk@<0.44.x>` to `@cimplify/sdk@<latest>`.\n\nProcess:\n- Read the release notes for the target range (`npm view @cimplify/sdk versions --json` to list, then `npm view @cimplify/sdk@<version>` per release).\n- Bump the pin in `package.json`, run `bun install`.\n- For each breaking change called out in the changelog, grep the project for the old symbol and apply the documented replacement.\n- Run `bun run check`. If `check:contract` fails, the SDK \u2194 mock contract drifted; stop and report.\n- Do not run `cimplify deploy`. End by printing a summary of every file you changed and every breaking change you applied.\n```\n\n## Add a custom checkout payment method\n\n```text title="Wire an additional payment option"\nAdd <mobile_money> as a checkout payment option in the storefront at <./my-store>.\n\nReference: https://cimplify.dev/docs/api-reference/checkout (
|
|
174
|
+
"body": 'These prompts are deliberately terse. Each one names the canonical doc the agent should read first, the exact commands or [MCP tools](/docs/mcp) to call, and the exit condition. Replace `<angle-bracket>` placeholders before running.\n\nEvery prompt assumes the agent has either:\n\n- the [Cimplify CLI](/docs/cli) installed and `cimplify login` complete, **or**\n- an MCP connection to `https://api.cimplify.io/mcp` ([setup](/docs/mcp#connect))\n\n## Ship a new storefront end-to-end\n\n```text title="Scaffold \u2192 deploy \u2192 custom domain"\nSet up a Cimplify <retail> storefront called <my-store> and deploy it to <shop.example.com>.\n\nSource of truth: https://cimplify.dev/docs/tldr\n- Use the MCP tools at api.cimplify.io/mcp when available; otherwise shell `cimplify <cmd> --json`.\n- After every command, echo the JSON envelope.\n- Stop on the first non-zero exit code and name it from https://cimplify.dev/docs/cli#exit-codes.\n- Poll deployment status with cimplify_get_deployment_status (or `cimplify status --json`); never `sleep`.\n- Idempotent: re-running any step is safe.\n```\n\n## Rebrand an existing storefront\n\n```text title="Apply a new brand to a scaffolded template"\nRebrand the storefront in <./my-store> to match these tokens:\n name: <Acme Coffee>\n primary: <#0F172A>\n accent: <#F59E0B>\n fontDisplay: <"Playfair Display">\n fontBody: <"Inter">\n\nRules (https://cimplify.dev/docs/templates/brand):\n- Single source of truth is `lib/brand.ts`. Update it first.\n- Mirror color tokens into `app/globals.css` `@theme` block. Do not hard-code colors elsewhere.\n- Do not edit ejected SDK components; they pick up tokens automatically.\n- Run `bun run check:brand` after edits; fix any schema errors it reports.\n- Verify by opening `http://localhost:3000` (start `bun dev` if not running).\n- Commit with message `brand: <name>`. Do not deploy.\n```\n\n## Add a homepage section\n\n```text title="New Server Component section, cache-tagged"\nAdd a `<Stories>` section to the homepage of the storefront in <./my-store>.\n\nPattern (mirrors the Server Component sections under `app/_sections/` in the scaffolded template):\n- Create `app/_sections/stories.tsx` as an async Server Component. Pass `cacheOptions: { revalidate: 3600, tags: [tags.collections()] }` to the SDK read (from `@cimplify/sdk/server`). Do NOT use `\'use cache\'` / `cacheTag` / `cacheLife`. Cimplify storefronts run on CF Workers where Cache Components is broken; use the ISR Previous Model.\n- Source data from `client.catalogue.getCollection({ slug: "stories" })`.\n- Render with the existing `<SectionHeader>` and `<ProductCard>` SDK components (do not eject).\n- Insert into `app/page.tsx` between the hero and the featured collection.\n- Run `bun run check`. It must pass typecheck, lint, brand, cart-flow, contract.\n- Do not modify `lib/brand.ts` or any file under `components/ui/`.\n```\n\n## Migrate to a new SDK version\n\n```text title="SDK upgrade with breaking-change scan"\nUpgrade the storefront in <./my-store> from `@cimplify/sdk@<0.44.x>` to `@cimplify/sdk@<latest>`.\n\nProcess:\n- Read the release notes for the target range (`npm view @cimplify/sdk versions --json` to list, then `npm view @cimplify/sdk@<version>` per release).\n- Bump the pin in `package.json`, run `bun install`.\n- For each breaking change called out in the changelog, grep the project for the old symbol and apply the documented replacement.\n- Run `bun run check`. If `check:contract` fails, the SDK \u2194 mock contract drifted; stop and report.\n- Do not run `cimplify deploy`. End by printing a summary of every file you changed and every breaking change you applied.\n```\n\n## Add a custom checkout payment method\n\n```text title="Wire an additional payment option"\nAdd <mobile_money> as a checkout payment option in the storefront at <./my-store>.\n\nReference: https://cimplify.dev/docs/api-reference/checkout (purchase-intent mint, immutable terms review, then exact option confirmation).\n- Use the exported `PURCHASE_INTENT_*` constants and closed tender preference types.\n- Eject the existing `<PaymentMethodPicker>` component with `cimplify add payment-method-picker`.\n- Add the option in the ejected picker, preparing provider input into an opaque server-issued payment option.\n- Show `fee_amount` and `customer_debit_amount`, then confirm the reviewed option ID.\n- Validate mint and confirmation bodies against the purchase-intent schemas from `@cimplify/sdk/testing`.\n- Run `bun run check:cart`; the add\u2192checkout flow must still pass.\n```\n\n## Provision a CI deploy key\n\n```text title="One-time setup for headless deploys"\nCreate a CI-scoped API key for the Cimplify project linked at <./my-store>, and write the GitHub Actions snippet that uses it.\n\nSteps:\n- Confirm `.cimplify/project.json` exists; if not, fail with NOT_LINKED (exit 4).\n- Print the dashboard URL the human needs to visit to create the key (https://app.cimplify.io/settings/developer).\n- Once the user provides `dk_live_\u2026`, store it as a repo secret named `CIMPLIFY_API_KEY` (instruct, do not perform).\n- Write `.github/workflows/deploy.yml` that runs on push to main: install CLI via the curl one-liner, `cimplify deploy --prod --api-key "$CIMPLIFY_API_KEY" --yes --json`.\n- Print the exit-code legend from https://cimplify.dev/docs/cli#exit-codes so the workflow can map failures.\n```\n\n## Diagnose a deploy that didn\'t go live\n\n```text title="Triage a failed or stuck deployment"\nThe latest deploy of the project at <./my-store> isn\'t live. Find out why.\n\nTriage path:\n- `cimplify status --json`: what\'s the latest deployment_id and status?\n- If status is `failed`, `cimplify logs --deployment <id> --json | tail -200`. Quote the first error line you see.\n- If status is `queued` or `building` for >5 minutes, the build is stuck; try `cimplify rollback <previous-deploy-id>`.\n- If status is `superseded` (exit 2), a newer push raced it; usually fine, so confirm with `cimplify status` again.\n- If domains misroute, `cimplify domains ls --json`: confirm the verified+attached domain.\n- Report: deployment_id, status, the failing log line (if any), and the recommended next action. Do not auto-rollback without confirming.\n```\n\n## Add a hero image and reference it in the homepage\n\n```text title="Upload brand assets \u2192 use them in source"\nAdd the image at <./Downloads/hero.jpg> as the homepage hero for the storefront in <./my-store>.\n\nReference: https://cimplify.dev/docs/cli/assets\n- `cp <./Downloads/hero.jpg> public/hero/main.jpg`\n- `cimplify assets upload public/hero/ --folder hero --json`: captures the manifest entry for `hero/main.jpg`.\n- Edit `app/page.tsx`: replace the hero `<Image>` `src` with `assetUrl("hero/main.jpg")` from `@cimplify/sdk`.\n- Do NOT touch existing `<Image>` calls that point at Cloudinary or other external hosts; the loader passes them through unchanged.\n- Run `bun run check`. Open `http://localhost:3000`; verify the hero image renders.\n- Commit `cimplify-assets.json` along with the source change so the manifest is reviewable.\n```\n\n## Audit caching and asset delivery\n\n```text title="Find caching and asset regressions on a live storefront"\nAudit the live storefront at <https://my-store.mycimplify.com> for caching and asset-delivery regressions.\n\nSources of truth:\n- https://cimplify.dev/docs/sdk/optimization (page + asset caching)\n- https://cimplify.dev/docs/templates/seo-and-resource-hints (responsive images)\n\n- Page cache: curl /, /shop, and a PDP 2\u20133\xD7 each; `X-Cimplify-Edge-Cache` must warm to HIT and `Cache-Control` must carry `s-maxage`. A BYPASS or missing `s-maxage` means the page lost its `revalidate` or carries a Cookie.\n- Asset cache: pull a `/_next/static/*` chunk; it must be `public, max-age=31536000, immutable`.\n- Images: flag raw `<img>` from a third-party CDN, and Cloudinary URLs with no `/upload/<transform>/` segment (full-resolution originals).\n- Report a table (route/asset, observed header, expected, severity). Do not change source unless asked.\n```\n\n## Reset a sandbox storefront to a clean state\n\n```text title="Wipe and re-seed for repeatable demos"\nReset the local mock state for the storefront in <./my-store>.\n\n- Stop any running `bun dev` process.\n- `cimplify mock reset` (clears the in-process mock backing store).\n- `cimplify mock seed <retail>` (re-seeds with the chosen industry fixture).\n- `bun dev` to restart both servers.\n- Verify: `curl localhost:8787/v1/catalogue/products | jq \'.data | length\'` returns the expected seed count (~24 for retail).\n- Do not touch the linked cloud project; this is local-only.\n```\n\n## How these are built\n\nEvery prompt above is structured the same way so you can adapt them:\n\n1. **Goal**: one sentence, with `<angle-bracket>` placeholders for the moving parts.\n2. **Source of truth**: the canonical doc URL the agent reads first.\n3. **Rules**: operational guardrails for which tools to call, what to echo, and when to stop.\n4. **Exit condition**: what counts as success, what counts as a halt.\n\nIf you build a prompt that should live here, open a PR against `content/docs/agent-prompts.mdx`. Keep them under ~12 lines; if a workflow needs more, it belongs in a dedicated doc page and the prompt should link to it.\n'
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"name": "seeds",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-
|
|
2
|
+
export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-WAHYTXOF.mjs';
|
|
3
3
|
import './chunk-I2UP7YTG.mjs';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-MGQD5MEC.mjs';
|
|
5
5
|
import './chunk-KN2YSKXZ.mjs';
|
|
6
6
|
import './chunk-5KYR6WJB.mjs';
|
|
7
7
|
import './chunk-MLE4MVYC.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { REGISTRY_INDEX } from './chunk-
|
|
2
|
+
import { REGISTRY_INDEX } from './chunk-MTEMM6WI.mjs';
|
|
3
3
|
import { parseArgs, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
4
4
|
import { CliError, CLI_ERROR_CODE, info, bold, dim, green, result } from './chunk-3QUK5BPY.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { generatePkcePair, openBrowser } from './chunk-
|
|
2
|
+
import { generatePkcePair, openBrowser } from './chunk-DMLQBAGC.mjs';
|
|
3
3
|
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
4
4
|
import { resolveBaseUrl, ApiClient } from './chunk-NYXA6X56.mjs';
|
|
5
5
|
import { writeAuth } from './chunk-MLE4MVYC.mjs';
|
|
@@ -10,17 +10,11 @@ var FLAG_API_KEY = "api-key";
|
|
|
10
10
|
var FLAG_BASE_URL = "base-url";
|
|
11
11
|
var FLAG_NO_BROWSER = "no-browser";
|
|
12
12
|
var FLAG_SCOPE = "scope";
|
|
13
|
-
var VALID_CLI_SCOPES = /* @__PURE__ */ new Set([
|
|
14
|
-
|
|
15
|
-
"cli:write",
|
|
16
|
-
"cli:deploy",
|
|
17
|
-
"cli:admin"
|
|
18
|
-
]);
|
|
19
|
-
var ENDPOINT_AUTH_ME = "/v1/auth/me";
|
|
13
|
+
var VALID_CLI_SCOPES = /* @__PURE__ */ new Set(["cli:read", "cli:write", "cli:deploy", "cli:admin"]);
|
|
14
|
+
var ENDPOINT_AUTH_ME = "/v1/auth/cli/me";
|
|
20
15
|
var ENDPOINT_CLI_START = "/v1/auth/cli/start";
|
|
21
16
|
var ENDPOINT_CLI_TOKEN = "/v1/auth/cli/token";
|
|
22
17
|
var KEY_PREFIX_CAK = "cak_";
|
|
23
|
-
var KEY_PREFIX_CSK = "csk_";
|
|
24
18
|
var PRODUCT_NAME = "cimplify-cli";
|
|
25
19
|
var POLL_INTERVAL_MS = 2e3;
|
|
26
20
|
async function run(argv) {
|
|
@@ -48,10 +42,10 @@ function parseScopeFlag(raw) {
|
|
|
48
42
|
return items;
|
|
49
43
|
}
|
|
50
44
|
async function loginWithKey(baseUrl, apiKey) {
|
|
51
|
-
if (!apiKey.startsWith(KEY_PREFIX_CAK)
|
|
45
|
+
if (!apiKey.startsWith(KEY_PREFIX_CAK)) {
|
|
52
46
|
throw new CliError(
|
|
53
47
|
CLI_ERROR_CODE.INVALID_INPUT,
|
|
54
|
-
`API key
|
|
48
|
+
`CLI login requires a user-bound Personal API key starting with "${KEY_PREFIX_CAK}".`
|
|
55
49
|
);
|
|
56
50
|
}
|
|
57
51
|
const client = ApiClient.withKey(apiKey, baseUrl);
|
|
@@ -78,7 +72,9 @@ async function loginWithBrowser(baseUrl, noBrowser, requestedScopes) {
|
|
|
78
72
|
throw new CliError(
|
|
79
73
|
CLI_ERROR_CODE.INTERACTIVE_REQUIRED,
|
|
80
74
|
"browser login is not supported in --json mode",
|
|
81
|
-
{
|
|
75
|
+
{
|
|
76
|
+
remediation: "pass --api-key cak_\u2026 (create one in the dashboard or via `cimplify auth keys create`)"
|
|
77
|
+
}
|
|
82
78
|
);
|
|
83
79
|
}
|
|
84
80
|
const pkce = generatePkcePair();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { promptYesNo } from './chunk-TH4XENKH.mjs';
|
|
3
|
-
import { package_default } from './chunk-
|
|
3
|
+
import { package_default } from './chunk-MGQD5MEC.mjs';
|
|
4
4
|
import { parseArgs, flagBool, flagString } from './chunk-5KYR6WJB.mjs';
|
|
5
5
|
import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-3QUK5BPY.mjs';
|
|
6
6
|
import { spawn } from 'child_process';
|
|
@@ -4,7 +4,7 @@ import { readAuth } from './chunk-MLE4MVYC.mjs';
|
|
|
4
4
|
import { info, bold, dim, result } from './chunk-3QUK5BPY.mjs';
|
|
5
5
|
|
|
6
6
|
// src/commands/whoami.ts
|
|
7
|
-
var ENDPOINT_AUTH_ME = "/v1/auth/me";
|
|
7
|
+
var ENDPOINT_AUTH_ME = "/v1/auth/cli/me";
|
|
8
8
|
async function run(_argv) {
|
|
9
9
|
const auth = await readAuth();
|
|
10
10
|
const client = ApiClient.fromAuth(auth);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cimplify/cli",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Cimplify CLI — deploy, manage env vars, link projects, and scaffold storefronts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cimplify",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@babel/parser": "^8.0.4",
|
|
42
42
|
"@babel/traverse": "^8.0.4",
|
|
43
43
|
"@babel/types": "^8.0.4",
|
|
44
|
-
"@cimplify/sdk": "^0.
|
|
44
|
+
"@cimplify/sdk": "^0.104.1",
|
|
45
45
|
"re2js": "^1.4.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"@typescript/native-preview": "^7.0.0-dev.20260616.1",
|
|
53
53
|
"tsup": "^8.5.1",
|
|
54
54
|
"typescript": "6.0.3",
|
|
55
|
-
"vitest": "^4.1.
|
|
55
|
+
"vitest": "^4.1.10"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/templates/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"cliVersion": "0.
|
|
3
|
-
"generatedAt": "2026-
|
|
2
|
+
"cliVersion": "0.15.1",
|
|
3
|
+
"generatedAt": "2026-08-28T20:19:02.566Z",
|
|
4
4
|
"templates": [
|
|
5
5
|
{
|
|
6
6
|
"id": "bakery",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"seedName": "default",
|
|
19
19
|
"seedBusinessId": "bus_default_akua_bakery"
|
|
20
20
|
},
|
|
21
|
-
"objectKey": "templates/bakery-v0.
|
|
22
|
-
"sha256": "
|
|
23
|
-
"sizeBytes":
|
|
21
|
+
"objectKey": "templates/bakery-v0.15.1.tar.gz",
|
|
22
|
+
"sha256": "6ea9db32629aab75c449f298e350f2aa549e3790c07ec48061dcdc5edb51180f",
|
|
23
|
+
"sizeBytes": 89622
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"id": "restaurant",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"seedName": "restaurant",
|
|
39
39
|
"seedBusinessId": "bus_mamas_kitchen"
|
|
40
40
|
},
|
|
41
|
-
"objectKey": "templates/restaurant-v0.
|
|
42
|
-
"sha256": "
|
|
43
|
-
"sizeBytes":
|
|
41
|
+
"objectKey": "templates/restaurant-v0.15.1.tar.gz",
|
|
42
|
+
"sha256": "959e38e5eb4b63dfc4d59307ed1cf973045546877ae60b9901c6f0d325b871ba",
|
|
43
|
+
"sizeBytes": 90157
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"id": "retail",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"seedName": "retail",
|
|
59
59
|
"seedBusinessId": "bus_currents_electronics"
|
|
60
60
|
},
|
|
61
|
-
"objectKey": "templates/retail-v0.
|
|
62
|
-
"sha256": "
|
|
63
|
-
"sizeBytes":
|
|
61
|
+
"objectKey": "templates/retail-v0.15.1.tar.gz",
|
|
62
|
+
"sha256": "6cd36b5c0e08a9492c35b811150988e0da9598c988278cdccf6f53204f4e4ab7",
|
|
63
|
+
"sizeBytes": 99615
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"id": "services",
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
"seedName": "services",
|
|
79
79
|
"seedBusinessId": "bus_serene_spa"
|
|
80
80
|
},
|
|
81
|
-
"objectKey": "templates/services-v0.
|
|
82
|
-
"sha256": "
|
|
83
|
-
"sizeBytes":
|
|
81
|
+
"objectKey": "templates/services-v0.15.1.tar.gz",
|
|
82
|
+
"sha256": "e7614d8b823cdb0f92cf144f16984aa6fc454be210665a5e970aafd01362e600",
|
|
83
|
+
"sizeBytes": 89074
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"id": "grocery",
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
"seedName": "grocery",
|
|
99
99
|
"seedBusinessId": "bus_freshmart"
|
|
100
100
|
},
|
|
101
|
-
"objectKey": "templates/grocery-v0.
|
|
102
|
-
"sha256": "
|
|
103
|
-
"sizeBytes":
|
|
101
|
+
"objectKey": "templates/grocery-v0.15.1.tar.gz",
|
|
102
|
+
"sha256": "823ef59e84796971e80c29dd6adc04b2ae3b772b38d57624ac872ca65ad2f77f",
|
|
103
|
+
"sizeBytes": 87245
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"id": "fashion",
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"seedName": "fashion",
|
|
119
119
|
"seedBusinessId": "bus_studio_frx"
|
|
120
120
|
},
|
|
121
|
-
"objectKey": "templates/fashion-v0.
|
|
122
|
-
"sha256": "
|
|
123
|
-
"sizeBytes":
|
|
121
|
+
"objectKey": "templates/fashion-v0.15.1.tar.gz",
|
|
122
|
+
"sha256": "6814413485fc6464d777b4aa493551b142f8044dd3bb18a13d443155a296f242",
|
|
123
|
+
"sizeBytes": 104156
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"id": "pharmacy",
|
|
@@ -138,9 +138,9 @@
|
|
|
138
138
|
"seedName": "pharmacy",
|
|
139
139
|
"seedBusinessId": "bus_wellspring_pharmacy"
|
|
140
140
|
},
|
|
141
|
-
"objectKey": "templates/pharmacy-v0.
|
|
142
|
-
"sha256": "
|
|
143
|
-
"sizeBytes":
|
|
141
|
+
"objectKey": "templates/pharmacy-v0.15.1.tar.gz",
|
|
142
|
+
"sha256": "14813660fa177aa9f44253a17a149bf27cc334d7005464096e035f8a1b18a091",
|
|
143
|
+
"sizeBytes": 103976
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"id": "auto",
|
|
@@ -158,9 +158,9 @@
|
|
|
158
158
|
"seedName": "auto",
|
|
159
159
|
"seedBusinessId": "bus_driveline_auto"
|
|
160
160
|
},
|
|
161
|
-
"objectKey": "templates/auto-v0.
|
|
162
|
-
"sha256": "
|
|
163
|
-
"sizeBytes":
|
|
161
|
+
"objectKey": "templates/auto-v0.15.1.tar.gz",
|
|
162
|
+
"sha256": "2f7e05689842ef2b9605c273cd30e1a02c86bcd7696e6a77986dd01a0c8e54e5",
|
|
163
|
+
"sizeBytes": 101975
|
|
164
164
|
}
|
|
165
165
|
]
|
|
166
166
|
}
|
|
@@ -25,8 +25,7 @@ function mapStatus(status: OrderStatus): OrderRowStatus {
|
|
|
25
25
|
case "completed":
|
|
26
26
|
return { kind: "completed" };
|
|
27
27
|
case "cancelled":
|
|
28
|
-
|
|
29
|
-
return { kind: "cancelled", label: status === "refunded" ? "Refunded" : undefined };
|
|
28
|
+
return { kind: "cancelled" };
|
|
30
29
|
case "pending":
|
|
31
30
|
case "created":
|
|
32
31
|
case "confirmed":
|