@lssm/example.integration-stripe 0.0.0-canary-20251217080011 → 1.41.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/.turbo/turbo-build.log +19 -29
- package/dist/blueprint.js +1 -65
- package/dist/connection.sample.js +1 -21
- package/dist/docs/index.js +1 -1
- package/dist/docs/integration-stripe.docblock.js +13 -28
- package/dist/example.js +1 -39
- package/dist/index.js +1 -8
- package/dist/tenant.js +1 -52
- package/dist/workflow.js +1 -58
- package/package.json +12 -15
- package/tsconfig.tsbuildinfo +1 -1
- package/.turbo/turbo-build$colon$bundle.log +0 -58
- package/CHANGELOG.md +0 -13
- package/dist/blueprint.d.ts +0 -6
- package/dist/connection.sample.d.ts +0 -6
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/integration-stripe.docblock.d.ts +0 -1
- package/dist/example.d.ts +0 -33
- package/dist/index.d.ts +0 -6
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/index.js +0 -29
- package/dist/libs/contracts/dist/docs/presentations.js +0 -71
- package/dist/libs/contracts/dist/docs/registry.js +0 -44
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -37
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -48
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -45
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -67
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -69
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -47
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
- package/dist/libs/contracts/dist/ownership.js +0 -38
- package/dist/tenant.d.ts +0 -6
- package/dist/workflow.d.ts +0 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,29 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
[
|
|
4
|
-
[34mℹ[39m
|
|
5
|
-
[34mℹ[39m
|
|
6
|
-
[34mℹ[39m
|
|
7
|
-
[34mℹ[39m
|
|
8
|
-
[34mℹ[39m
|
|
9
|
-
[34mℹ[39m
|
|
10
|
-
[34mℹ[39m
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[
|
|
17
|
-
[34mℹ[39m
|
|
18
|
-
[
|
|
19
|
-
|
|
20
|
-
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.39 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
21
|
-
[34mℹ[39m [2mdist/[22m[32m[1mconnection.sample.d.ts[22m[39m [2m0.23 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
22
|
-
[34mℹ[39m [2mdist/[22m[32m[1mtenant.d.ts[22m[39m [2m0.21 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
23
|
-
[34mℹ[39m [2mdist/[22m[32m[1mblueprint.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.15 kB[22m
|
|
24
|
-
[34mℹ[39m [2mdist/[22m[32m[1mworkflow.d.ts[22m[39m [2m0.19 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
25
|
-
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
26
|
-
[34mℹ[39m [2mdist/[22m[32m[1mdocs/integration-stripe.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
27
|
-
[34mℹ[39m 16 files, total: 8.45 kB
|
|
28
|
-
[32m✔[39m Build complete in [32m5604ms[39m
|
|
29
|
-
[0m[2m[35m$[0m [2m[1mtsc --noEmit[0m
|
|
1
|
+
$ bun build:bundle && bun build:types
|
|
2
|
+
$ tsdown
|
|
3
|
+
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
4
|
+
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/integration-stripe/tsdown.config.js[24m
|
|
5
|
+
[34mℹ[39m entry: [34msrc/blueprint.ts, src/connection.sample.ts, src/example.ts, src/index.ts, src/tenant.ts, src/workflow.ts, src/docs/index.ts, src/docs/integration-stripe.docblock.ts[39m
|
|
6
|
+
[34mℹ[39m target: [34mesnext[39m
|
|
7
|
+
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
8
|
+
[34mℹ[39m Build start
|
|
9
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/integration-stripe.docblock.js[22m [2m1.36 kB[22m [2m│ gzip: 0.67 kB[22m
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mblueprint.js[22m [2m1.34 kB[22m [2m│ gzip: 0.62 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mtenant.js[22m [2m0.97 kB[22m [2m│ gzip: 0.52 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mworkflow.js[22m [2m0.95 kB[22m [2m│ gzip: 0.47 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.62 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mconnection.sample.js[22m [2m0.43 kB[22m [2m│ gzip: 0.28 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.41 kB[22m [2m│ gzip: 0.20 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
17
|
+
[34mℹ[39m 8 files, total: 6.13 kB
|
|
18
|
+
[32m✔[39m Build complete in [32m51ms[39m
|
|
19
|
+
$ tsc --noEmit
|
package/dist/blueprint.js
CHANGED
|
@@ -1,65 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/blueprint.ts
|
|
4
|
-
const artisanStripeBlueprint = {
|
|
5
|
-
meta: {
|
|
6
|
-
name: "artisan.payments.stripe",
|
|
7
|
-
version: 1,
|
|
8
|
-
appId: "artisan",
|
|
9
|
-
title: "ArtisanOS Stripe Payments",
|
|
10
|
-
description: "Blueprint enabling card payments for ArtisanOS merchants via the Stripe integration.",
|
|
11
|
-
domain: "payments",
|
|
12
|
-
owners: [OwnersEnum.ProductArtisanos],
|
|
13
|
-
tags: [
|
|
14
|
-
TagsEnum.Marketplace,
|
|
15
|
-
"stripe",
|
|
16
|
-
"payments"
|
|
17
|
-
],
|
|
18
|
-
stability: StabilityEnum.Experimental
|
|
19
|
-
},
|
|
20
|
-
capabilities: { enabled: [{
|
|
21
|
-
key: "payments.psp",
|
|
22
|
-
version: 1
|
|
23
|
-
}] },
|
|
24
|
-
integrationSlots: [{
|
|
25
|
-
slotId: "primary-payments",
|
|
26
|
-
requiredCategory: "payments",
|
|
27
|
-
allowedModes: ["managed", "byok"],
|
|
28
|
-
requiredCapabilities: [{
|
|
29
|
-
key: "payments.psp",
|
|
30
|
-
version: 1
|
|
31
|
-
}],
|
|
32
|
-
required: true,
|
|
33
|
-
description: "Primary card processor slot. Bind the tenant Stripe connection here."
|
|
34
|
-
}],
|
|
35
|
-
branding: {
|
|
36
|
-
appNameKey: "artisan.payments.appName",
|
|
37
|
-
assets: [{
|
|
38
|
-
type: "logo",
|
|
39
|
-
url: "https://cdn.artisanos.dev/branding/logo.png"
|
|
40
|
-
}, {
|
|
41
|
-
type: "favicon",
|
|
42
|
-
url: "https://cdn.artisanos.dev/branding/favicon.ico"
|
|
43
|
-
}],
|
|
44
|
-
colorTokens: {
|
|
45
|
-
primary: "colors.brand.primary",
|
|
46
|
-
secondary: "colors.brand.secondary"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
translationCatalog: {
|
|
50
|
-
name: "artisan.payments.catalog",
|
|
51
|
-
version: 1
|
|
52
|
-
},
|
|
53
|
-
workflows: { collectPayment: {
|
|
54
|
-
name: "artisan.payments.collectPayment",
|
|
55
|
-
version: 1
|
|
56
|
-
} },
|
|
57
|
-
policies: [{
|
|
58
|
-
name: "artisan.payments.default",
|
|
59
|
-
version: 1
|
|
60
|
-
}],
|
|
61
|
-
notes: "Install this blueprint and pair it with the Stripe integration connection to enable card collection."
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
//#endregion
|
|
65
|
-
export { artisanStripeBlueprint };
|
|
1
|
+
import{OwnersEnum as e,StabilityEnum as t,TagsEnum as n}from"@lssm/lib.contracts/ownership";const r={meta:{name:`artisan.payments.stripe`,version:1,appId:`artisan`,title:`ArtisanOS Stripe Payments`,description:`Blueprint enabling card payments for ArtisanOS merchants via the Stripe integration.`,domain:`payments`,owners:[e.ProductArtisanos],tags:[n.Marketplace,`stripe`,`payments`],stability:t.Experimental},capabilities:{enabled:[{key:`payments.psp`,version:1}]},integrationSlots:[{slotId:`primary-payments`,requiredCategory:`payments`,allowedModes:[`managed`,`byok`],requiredCapabilities:[{key:`payments.psp`,version:1}],required:!0,description:`Primary card processor slot. Bind the tenant Stripe connection here.`}],branding:{appNameKey:`artisan.payments.appName`,assets:[{type:`logo`,url:`https://cdn.artisanos.dev/branding/logo.png`},{type:`favicon`,url:`https://cdn.artisanos.dev/branding/favicon.ico`}],colorTokens:{primary:`colors.brand.primary`,secondary:`colors.brand.secondary`}},translationCatalog:{name:`artisan.payments.catalog`,version:1},workflows:{collectPayment:{name:`artisan.payments.collectPayment`,version:1}},policies:[{name:`artisan.payments.default`,version:1}],notes:`Install this blueprint and pair it with the Stripe integration connection to enable card collection.`};export{r as artisanStripeBlueprint};
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const stripeLiveConnection = {
|
|
3
|
-
meta: {
|
|
4
|
-
id: "conn-stripe-live",
|
|
5
|
-
tenantId: "artisan-co",
|
|
6
|
-
integrationKey: "payments.stripe",
|
|
7
|
-
integrationVersion: 1,
|
|
8
|
-
label: "Stripe Production",
|
|
9
|
-
environment: "production",
|
|
10
|
-
createdAt: "2026-01-01T00:00:00.000Z",
|
|
11
|
-
updatedAt: "2026-01-01T00:00:00.000Z"
|
|
12
|
-
},
|
|
13
|
-
ownershipMode: "managed",
|
|
14
|
-
config: { accountId: "acct_xxx" },
|
|
15
|
-
secretProvider: "vault",
|
|
16
|
-
secretRef: "vault://integrations/artisan-co/conn-stripe-live",
|
|
17
|
-
status: "connected"
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { stripeLiveConnection };
|
|
1
|
+
const e={meta:{id:`conn-stripe-live`,tenantId:`artisan-co`,integrationKey:`payments.stripe`,integrationVersion:1,label:`Stripe Production`,environment:`production`,createdAt:`2026-01-01T00:00:00.000Z`,updatedAt:`2026-01-01T00:00:00.000Z`},ownershipMode:`managed`,config:{accountId:`acct_xxx`},secretProvider:`vault`,secretRef:`vault://integrations/artisan-co/conn-stripe-live`,status:`connected`};export{e as stripeLiveConnection};
|
package/dist/docs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./integration-stripe.docblock.js";
|
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.examples.integration-stripe`,title:`Integration Example — Stripe Payments`,summary:`How to wire IntegrationSpec/TenantAppConfig + blueprint + workflow to enable Stripe-backed payments.`,kind:`reference`,visibility:`public`,route:`/docs/examples/integration-stripe`,tags:[`stripe`,`payments`,`integrations`,`example`],body:`## Included
|
|
2
|
+
- App blueprint enabling \`payments.psp\` capability.
|
|
3
|
+
- Workflow invoking Stripe operations (prepare → charge → confirm).
|
|
4
|
+
- Tenant app config binding workflow to an IntegrationConnection.
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
visibility: "public",
|
|
11
|
-
route: "/docs/examples/integration-stripe",
|
|
12
|
-
tags: [
|
|
13
|
-
"stripe",
|
|
14
|
-
"payments",
|
|
15
|
-
"integrations",
|
|
16
|
-
"example"
|
|
17
|
-
],
|
|
18
|
-
body: `## Included\n- App blueprint enabling \`payments.psp\` capability.\n- Workflow invoking Stripe operations (prepare → charge → confirm).\n- Tenant app config binding workflow to an IntegrationConnection.\n\n## Notes\n- Secrets live in secret providers; connection config is non-secret.\n- Use \`ctx.resolvedAppConfig\` in operation executors to access integrations, branding, and translations.`
|
|
19
|
-
}, {
|
|
20
|
-
id: "docs.examples.integration-stripe.usage",
|
|
21
|
-
title: "Stripe Integration Example — Usage",
|
|
22
|
-
summary: "How to use the blueprint, workflow, and tenant config together.",
|
|
23
|
-
kind: "usage",
|
|
24
|
-
visibility: "public",
|
|
25
|
-
route: "/docs/examples/integration-stripe/usage",
|
|
26
|
-
tags: ["stripe", "usage"],
|
|
27
|
-
body: `## Usage\n1) Register the blueprint + workflow + catalog in your registry.\n2) Persist an IntegrationConnection (see connection sample).\n3) Bind the tenant app config to the connection.\n\n## Guardrails\n- Never log secrets.\n- Keep payment semantics spec-defined; gate breaking changes behind flags.`
|
|
28
|
-
}]);
|
|
6
|
+
## Notes
|
|
7
|
+
- Secrets live in secret providers; connection config is non-secret.
|
|
8
|
+
- Use \`ctx.resolvedAppConfig\` in operation executors to access integrations, branding, and translations.`},{id:`docs.examples.integration-stripe.usage`,title:`Stripe Integration Example — Usage`,summary:`How to use the blueprint, workflow, and tenant config together.`,kind:`usage`,visibility:`public`,route:`/docs/examples/integration-stripe/usage`,tags:[`stripe`,`usage`],body:`## Usage
|
|
9
|
+
1) Register the blueprint + workflow + catalog in your registry.
|
|
10
|
+
2) Persist an IntegrationConnection (see connection sample).
|
|
11
|
+
3) Bind the tenant app config to the connection.
|
|
29
12
|
|
|
30
|
-
|
|
13
|
+
## Guardrails
|
|
14
|
+
- Never log secrets.
|
|
15
|
+
- Keep payment semantics spec-defined; gate breaking changes behind flags.`}]);
|
package/dist/example.js
CHANGED
|
@@ -1,39 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const example = {
|
|
3
|
-
id: "integration-stripe",
|
|
4
|
-
title: "Integration — Stripe Payments",
|
|
5
|
-
summary: "Wire AppBlueprint + Workflow + TenantAppConfig to enable Stripe-backed payments (spec-first integration pattern).",
|
|
6
|
-
tags: [
|
|
7
|
-
"stripe",
|
|
8
|
-
"payments",
|
|
9
|
-
"integration",
|
|
10
|
-
"blueprint",
|
|
11
|
-
"workflow"
|
|
12
|
-
],
|
|
13
|
-
kind: "integration",
|
|
14
|
-
visibility: "public",
|
|
15
|
-
docs: {
|
|
16
|
-
rootDocId: "docs.examples.integration-stripe",
|
|
17
|
-
usageDocId: "docs.examples.integration-stripe.usage"
|
|
18
|
-
},
|
|
19
|
-
entrypoints: {
|
|
20
|
-
packageName: "@lssm/example.integration-stripe",
|
|
21
|
-
docs: "./docs"
|
|
22
|
-
},
|
|
23
|
-
surfaces: {
|
|
24
|
-
templates: true,
|
|
25
|
-
sandbox: {
|
|
26
|
-
enabled: true,
|
|
27
|
-
modes: ["markdown", "specs"]
|
|
28
|
-
},
|
|
29
|
-
studio: {
|
|
30
|
-
enabled: true,
|
|
31
|
-
installable: true
|
|
32
|
-
},
|
|
33
|
-
mcp: { enabled: true }
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var example_default = example;
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
export { example_default as default };
|
|
1
|
+
var e={id:`integration-stripe`,title:`Integration — Stripe Payments`,summary:`Wire AppBlueprint + Workflow + TenantAppConfig to enable Stripe-backed payments (spec-first integration pattern).`,tags:[`stripe`,`payments`,`integration`,`blueprint`,`workflow`],kind:`integration`,visibility:`public`,docs:{rootDocId:`docs.examples.integration-stripe`,usageDocId:`docs.examples.integration-stripe.usage`},entrypoints:{packageName:`@lssm/example.integration-stripe`,docs:`./docs`},surfaces:{templates:!0,sandbox:{enabled:!0,modes:[`markdown`,`specs`]},studio:{enabled:!0,installable:!0},mcp:{enabled:!0}}};export{e as default};
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { stripeLiveConnection } from "./connection.sample.js";
|
|
3
|
-
import example_default from "./example.js";
|
|
4
|
-
import { collectPaymentWorkflow } from "./workflow.js";
|
|
5
|
-
import { artisanStripeTenantConfig } from "./tenant.js";
|
|
6
|
-
import "./docs/index.js";
|
|
7
|
-
|
|
8
|
-
export { artisanStripeBlueprint, artisanStripeTenantConfig, collectPaymentWorkflow, example_default as example, stripeLiveConnection };
|
|
1
|
+
import{artisanStripeBlueprint as e}from"./blueprint.js";import{stripeLiveConnection as t}from"./connection.sample.js";import n from"./example.js";import{collectPaymentWorkflow as r}from"./workflow.js";import{artisanStripeTenantConfig as i}from"./tenant.js";import"./docs/index.js";export{e as artisanStripeBlueprint,i as artisanStripeTenantConfig,r as collectPaymentWorkflow,n as example,t as stripeLiveConnection};
|
package/dist/tenant.js
CHANGED
|
@@ -1,52 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const artisanStripeTenantConfig = {
|
|
3
|
-
meta: {
|
|
4
|
-
id: "tenant-config-artisan-stripe",
|
|
5
|
-
tenantId: "artisan-co",
|
|
6
|
-
appId: "artisan",
|
|
7
|
-
blueprintName: "artisan.payments.stripe",
|
|
8
|
-
blueprintVersion: 1,
|
|
9
|
-
environment: "production",
|
|
10
|
-
version: 1,
|
|
11
|
-
status: "published",
|
|
12
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
13
|
-
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
14
|
-
},
|
|
15
|
-
integrations: [{
|
|
16
|
-
slotId: "primary-payments",
|
|
17
|
-
connectionId: "conn-stripe-live",
|
|
18
|
-
scope: {
|
|
19
|
-
workflows: ["collectPayment"],
|
|
20
|
-
operations: ["payments.stripe.chargeCard"]
|
|
21
|
-
}
|
|
22
|
-
}],
|
|
23
|
-
knowledge: [],
|
|
24
|
-
locales: {
|
|
25
|
-
defaultLocale: "en",
|
|
26
|
-
enabledLocales: ["en", "fr"]
|
|
27
|
-
},
|
|
28
|
-
translationOverrides: { entries: [{
|
|
29
|
-
key: "artisan.payments.appName",
|
|
30
|
-
locale: "en",
|
|
31
|
-
value: "Artisan Payments Portal"
|
|
32
|
-
}] },
|
|
33
|
-
branding: {
|
|
34
|
-
appName: { en: "Artisan Payments Portal" },
|
|
35
|
-
assets: [{
|
|
36
|
-
type: "logo",
|
|
37
|
-
url: "https://tenant.artisanos.dev/logo.png"
|
|
38
|
-
}, {
|
|
39
|
-
type: "logo-dark",
|
|
40
|
-
url: "https://tenant.artisanos.dev/logo-dark.png"
|
|
41
|
-
}],
|
|
42
|
-
colors: {
|
|
43
|
-
primary: "#F97316",
|
|
44
|
-
secondary: "#1F2937"
|
|
45
|
-
},
|
|
46
|
-
customDomain: "pay.artisanos.dev"
|
|
47
|
-
},
|
|
48
|
-
notes: "Stripe connection bound for production payments."
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
export { artisanStripeTenantConfig };
|
|
1
|
+
const e={meta:{id:`tenant-config-artisan-stripe`,tenantId:`artisan-co`,appId:`artisan`,blueprintName:`artisan.payments.stripe`,blueprintVersion:1,environment:`production`,version:1,status:`published`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},integrations:[{slotId:`primary-payments`,connectionId:`conn-stripe-live`,scope:{workflows:[`collectPayment`],operations:[`payments.stripe.chargeCard`]}}],knowledge:[],locales:{defaultLocale:`en`,enabledLocales:[`en`,`fr`]},translationOverrides:{entries:[{key:`artisan.payments.appName`,locale:`en`,value:`Artisan Payments Portal`}]},branding:{appName:{en:`Artisan Payments Portal`},assets:[{type:`logo`,url:`https://tenant.artisanos.dev/logo.png`},{type:`logo-dark`,url:`https://tenant.artisanos.dev/logo-dark.png`}],colors:{primary:`#F97316`,secondary:`#1F2937`},customDomain:`pay.artisanos.dev`},notes:`Stripe connection bound for production payments.`};export{e as artisanStripeTenantConfig};
|
package/dist/workflow.js
CHANGED
|
@@ -1,58 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
//#region src/workflow.ts
|
|
4
|
-
const collectPaymentWorkflow = {
|
|
5
|
-
meta: {
|
|
6
|
-
name: "artisan.payments.collectPayment",
|
|
7
|
-
version: 1,
|
|
8
|
-
title: "Collect Card Payment",
|
|
9
|
-
description: "Charge a customer using the tenant Stripe connection and record settlement details.",
|
|
10
|
-
domain: "payments",
|
|
11
|
-
owners: [OwnersEnum.ProductArtisanos],
|
|
12
|
-
tags: [TagsEnum.Marketplace, "stripe"],
|
|
13
|
-
stability: StabilityEnum.Experimental
|
|
14
|
-
},
|
|
15
|
-
definition: {
|
|
16
|
-
entryStepId: "prepare",
|
|
17
|
-
steps: [
|
|
18
|
-
{
|
|
19
|
-
id: "prepare",
|
|
20
|
-
type: "automation",
|
|
21
|
-
label: "Prepare charge parameters",
|
|
22
|
-
action: { operation: {
|
|
23
|
-
name: "payments.prepareCharge",
|
|
24
|
-
version: 1
|
|
25
|
-
} }
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "charge",
|
|
29
|
-
type: "automation",
|
|
30
|
-
label: "Charge card via Stripe",
|
|
31
|
-
action: { operation: {
|
|
32
|
-
name: "payments.stripe.chargeCard",
|
|
33
|
-
version: 1
|
|
34
|
-
} }
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: "confirm",
|
|
38
|
-
type: "automation",
|
|
39
|
-
label: "Confirm settlement",
|
|
40
|
-
action: { operation: {
|
|
41
|
-
name: "payments.recordSettlement",
|
|
42
|
-
version: 1
|
|
43
|
-
} }
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
transitions: [{
|
|
47
|
-
from: "prepare",
|
|
48
|
-
to: "charge"
|
|
49
|
-
}, {
|
|
50
|
-
from: "charge",
|
|
51
|
-
to: "confirm",
|
|
52
|
-
condition: "output.success === true"
|
|
53
|
-
}]
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
|
-
export { collectPaymentWorkflow };
|
|
1
|
+
import{OwnersEnum as e,StabilityEnum as t,TagsEnum as n}from"@lssm/lib.contracts/ownership";const r={meta:{name:`artisan.payments.collectPayment`,version:1,title:`Collect Card Payment`,description:`Charge a customer using the tenant Stripe connection and record settlement details.`,domain:`payments`,owners:[e.ProductArtisanos],tags:[n.Marketplace,`stripe`],stability:t.Experimental},definition:{entryStepId:`prepare`,steps:[{id:`prepare`,type:`automation`,label:`Prepare charge parameters`,action:{operation:{name:`payments.prepareCharge`,version:1}}},{id:`charge`,type:`automation`,label:`Charge card via Stripe`,action:{operation:{name:`payments.stripe.chargeCard`,version:1}}},{id:`confirm`,type:`automation`,label:`Confirm settlement`,action:{operation:{name:`payments.recordSettlement`,version:1}}}],transitions:[{from:`prepare`,to:`charge`},{from:`charge`,to:`confirm`,condition:`output.success === true`}]}};export{r as collectPaymentWorkflow};
|
package/package.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.integration-stripe",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"description": "Integration example – Stripe Payments (blueprint + workflow + tenant config).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
|
-
".": "./
|
|
10
|
-
"./blueprint": "./
|
|
11
|
-
"./connection.sample": "./
|
|
12
|
-
"./docs": "./
|
|
13
|
-
"./docs/integration-stripe.docblock": "./
|
|
14
|
-
"./example": "./
|
|
15
|
-
"./tenant": "./
|
|
16
|
-
"./workflow": "./
|
|
9
|
+
".": "./src/index.ts",
|
|
10
|
+
"./blueprint": "./src/blueprint.ts",
|
|
11
|
+
"./connection.sample": "./src/connection.sample.ts",
|
|
12
|
+
"./docs": "./src/docs/index.ts",
|
|
13
|
+
"./docs/integration-stripe.docblock": "./src/docs/integration-stripe.docblock.ts",
|
|
14
|
+
"./example": "./src/example.ts",
|
|
15
|
+
"./tenant": "./src/tenant.ts",
|
|
16
|
+
"./workflow": "./src/workflow.ts",
|
|
17
17
|
"./*": "./*"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
21
|
-
"publish:pkg:canary": "bun publish:pkg --tag canary",
|
|
22
20
|
"build": "bun build:bundle && bun build:types",
|
|
23
21
|
"build:bundle": "tsdown",
|
|
24
22
|
"build:types": "tsc --noEmit",
|
|
@@ -30,12 +28,11 @@
|
|
|
30
28
|
"test": "bun test"
|
|
31
29
|
},
|
|
32
30
|
"dependencies": {
|
|
33
|
-
"@lssm/lib.
|
|
34
|
-
"@lssm/lib.contracts": "0.0.0-canary-20251217080011"
|
|
31
|
+
"@lssm/lib.contracts": "workspace:*"
|
|
35
32
|
},
|
|
36
33
|
"devDependencies": {
|
|
37
|
-
"@lssm/tool.tsdown": "
|
|
38
|
-
"@lssm/tool.typescript": "
|
|
34
|
+
"@lssm/tool.tsdown": "workspace:*",
|
|
35
|
+
"@lssm/tool.typescript": "workspace:*",
|
|
39
36
|
"tsdown": "^0.17.4",
|
|
40
37
|
"typescript": "^5.9.3"
|
|
41
38
|
},
|