@lssm/example.integration-stripe 1.41.0 → 1.42.2
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$colon$bundle.log +37 -0
- package/.turbo/turbo-build.log +32 -13
- package/CHANGELOG.md +31 -0
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/blueprint.d.ts +7 -0
- package/dist/blueprint.d.ts.map +1 -0
- package/dist/blueprint.js +66 -1
- package/dist/blueprint.js.map +1 -0
- package/dist/connection.sample.d.ts +7 -0
- package/dist/connection.sample.d.ts.map +1 -0
- package/dist/connection.sample.js +22 -1
- package/dist/connection.sample.js.map +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -1
- package/dist/docs/integration-stripe.docblock.d.ts +1 -0
- package/dist/docs/integration-stripe.docblock.js +28 -13
- package/dist/docs/integration-stripe.docblock.js.map +1 -0
- package/dist/example.d.ts +34 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +40 -1
- package/dist/example.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -1
- package/dist/tenant.d.ts +7 -0
- package/dist/tenant.d.ts.map +1 -0
- package/dist/tenant.js +53 -1
- package/dist/tenant.js.map +1 -0
- package/dist/workflow.d.ts +7 -0
- package/dist/workflow.d.ts.map +1 -0
- package/dist/workflow.js +59 -1
- package/dist/workflow.js.map +1 -0
- package/package.json +26 -16
- package/src/blueprint.ts +5 -5
- package/src/workflow.ts +5 -5
- package/tsconfig.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.integration-stripe",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.2",
|
|
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
|
+
".": "./dist/index.js",
|
|
10
|
+
"./blueprint": "./dist/blueprint.js",
|
|
11
|
+
"./connection.sample": "./dist/connection.sample.js",
|
|
12
|
+
"./docs": "./dist/docs/index.js",
|
|
13
|
+
"./docs/integration-stripe.docblock": "./dist/docs/integration-stripe.docblock.js",
|
|
14
|
+
"./example": "./dist/example.js",
|
|
15
|
+
"./tenant": "./dist/tenant.js",
|
|
16
|
+
"./workflow": "./dist/workflow.js",
|
|
17
17
|
"./*": "./*"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"
|
|
20
|
+
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
21
|
+
"publish:pkg:canary": "bun publish:pkg --tag canary",
|
|
22
|
+
"build": "bun build:types && bun build:bundle",
|
|
21
23
|
"build:bundle": "tsdown",
|
|
22
24
|
"build:types": "tsc --noEmit",
|
|
23
25
|
"dev": "bun build:bundle --watch",
|
|
@@ -28,12 +30,13 @@
|
|
|
28
30
|
"test": "bun test"
|
|
29
31
|
},
|
|
30
32
|
"dependencies": {
|
|
31
|
-
"@lssm/lib.
|
|
33
|
+
"@lssm/lib.schema": "1.42.2",
|
|
34
|
+
"@lssm/lib.contracts": "1.42.2"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
|
-
"@lssm/tool.tsdown": "
|
|
35
|
-
"@lssm/tool.typescript": "
|
|
36
|
-
"tsdown": "^0.
|
|
37
|
+
"@lssm/tool.tsdown": "1.42.2",
|
|
38
|
+
"@lssm/tool.typescript": "1.42.2",
|
|
39
|
+
"tsdown": "^0.18.3",
|
|
37
40
|
"typescript": "^5.9.3"
|
|
38
41
|
},
|
|
39
42
|
"publishConfig": {
|
|
@@ -48,7 +51,14 @@
|
|
|
48
51
|
"./tenant": "./dist/tenant.js",
|
|
49
52
|
"./workflow": "./dist/workflow.js",
|
|
50
53
|
"./*": "./*"
|
|
51
|
-
}
|
|
54
|
+
},
|
|
55
|
+
"registry": "https://registry.npmjs.org/"
|
|
52
56
|
},
|
|
53
|
-
"module": "./dist/index.js"
|
|
57
|
+
"module": "./dist/index.js",
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/lssm-tech/contractspec.git",
|
|
62
|
+
"directory": "packages/examples/integration-stripe"
|
|
63
|
+
}
|
|
54
64
|
}
|
package/src/blueprint.ts
CHANGED
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
|
|
8
8
|
export const artisanStripeBlueprint: AppBlueprintSpec = {
|
|
9
9
|
meta: {
|
|
10
|
-
|
|
10
|
+
key: 'artisan.payments.stripe',
|
|
11
11
|
version: 1,
|
|
12
12
|
appId: 'artisan',
|
|
13
13
|
title: 'ArtisanOS Stripe Payments',
|
|
14
14
|
description:
|
|
15
15
|
'Blueprint enabling card payments for ArtisanOS merchants via the Stripe integration.',
|
|
16
16
|
domain: 'payments',
|
|
17
|
-
owners: [OwnersEnum.
|
|
17
|
+
owners: [OwnersEnum.PlatformCore],
|
|
18
18
|
tags: [TagsEnum.Marketplace, 'stripe', 'payments'],
|
|
19
19
|
stability: StabilityEnum.Experimental,
|
|
20
20
|
},
|
|
@@ -47,13 +47,13 @@ export const artisanStripeBlueprint: AppBlueprintSpec = {
|
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
translationCatalog: {
|
|
50
|
-
|
|
50
|
+
key: 'artisan.payments.catalog',
|
|
51
51
|
version: 1,
|
|
52
52
|
},
|
|
53
53
|
workflows: {
|
|
54
|
-
collectPayment: {
|
|
54
|
+
collectPayment: { key: 'artisan.payments.collectPayment', version: 1 },
|
|
55
55
|
},
|
|
56
|
-
policies: [{
|
|
56
|
+
policies: [{ key: 'artisan.payments.default', version: 1 }],
|
|
57
57
|
notes:
|
|
58
58
|
'Install this blueprint and pair it with the Stripe integration connection to enable card collection.',
|
|
59
59
|
};
|
package/src/workflow.ts
CHANGED
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
|
|
8
8
|
export const collectPaymentWorkflow: WorkflowSpec = {
|
|
9
9
|
meta: {
|
|
10
|
-
|
|
10
|
+
key: 'artisan.payments.collectPayment',
|
|
11
11
|
version: 1,
|
|
12
12
|
title: 'Collect Card Payment',
|
|
13
13
|
description:
|
|
14
14
|
'Charge a customer using the tenant Stripe connection and record settlement details.',
|
|
15
15
|
domain: 'payments',
|
|
16
|
-
owners: [OwnersEnum.
|
|
16
|
+
owners: [OwnersEnum.PlatformCore],
|
|
17
17
|
tags: [TagsEnum.Marketplace, 'stripe'],
|
|
18
18
|
stability: StabilityEnum.Experimental,
|
|
19
19
|
},
|
|
@@ -25,7 +25,7 @@ export const collectPaymentWorkflow: WorkflowSpec = {
|
|
|
25
25
|
type: 'automation',
|
|
26
26
|
label: 'Prepare charge parameters',
|
|
27
27
|
action: {
|
|
28
|
-
operation: {
|
|
28
|
+
operation: { key: 'payments.prepareCharge', version: 1 },
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
31
|
{
|
|
@@ -33,7 +33,7 @@ export const collectPaymentWorkflow: WorkflowSpec = {
|
|
|
33
33
|
type: 'automation',
|
|
34
34
|
label: 'Charge card via Stripe',
|
|
35
35
|
action: {
|
|
36
|
-
operation: {
|
|
36
|
+
operation: { key: 'payments.stripe.chargeCard', version: 1 },
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
{
|
|
@@ -41,7 +41,7 @@ export const collectPaymentWorkflow: WorkflowSpec = {
|
|
|
41
41
|
type: 'automation',
|
|
42
42
|
label: 'Confirm settlement',
|
|
43
43
|
action: {
|
|
44
|
-
operation: {
|
|
44
|
+
operation: { key: 'payments.recordSettlement', version: 1 },
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
],
|