@contractspec/example.integration-stripe 3.7.16 → 3.7.18
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 +33 -33
- package/CHANGELOG.md +25 -0
- package/dist/blueprint.js +1 -114
- package/dist/browser/blueprint.js +1 -114
- package/dist/browser/connection.sample.js +1 -99
- package/dist/browser/docs/index.js +3 -27
- package/dist/browser/docs/integration-stripe.docblock.js +3 -27
- package/dist/browser/example.js +1 -33
- package/dist/browser/index.js +3 -359
- package/dist/browser/integration-stripe.feature.js +1 -162
- package/dist/browser/integration.js +1 -78
- package/dist/browser/tenant.js +1 -55
- package/dist/browser/workflow.js +1 -55
- package/dist/connection.sample.js +1 -99
- package/dist/docs/index.js +3 -27
- package/dist/docs/integration-stripe.docblock.js +3 -27
- package/dist/example.js +1 -33
- package/dist/index.js +3 -359
- package/dist/integration-stripe.feature.js +1 -162
- package/dist/integration.js +1 -78
- package/dist/node/blueprint.js +1 -114
- package/dist/node/connection.sample.js +1 -99
- package/dist/node/docs/index.js +3 -27
- package/dist/node/docs/integration-stripe.docblock.js +3 -27
- package/dist/node/example.js +1 -33
- package/dist/node/index.js +3 -359
- package/dist/node/integration-stripe.feature.js +1 -162
- package/dist/node/integration.js +1 -78
- package/dist/node/tenant.js +1 -55
- package/dist/node/workflow.js +1 -55
- package/dist/tenant.js +1 -55
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.js +1 -55
- package/package.json +8 -8
- package/src/workflow.ts +1 -1
package/dist/node/tenant.js
CHANGED
|
@@ -1,55 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var artisanStripeTenantConfig = {
|
|
3
|
-
meta: {
|
|
4
|
-
id: "tenant-config-artisan-stripe",
|
|
5
|
-
tenantId: "artisan-co",
|
|
6
|
-
appId: "artisan",
|
|
7
|
-
blueprintName: "artisan.payments.stripe",
|
|
8
|
-
blueprintVersion: "1.0.0",
|
|
9
|
-
environment: "production",
|
|
10
|
-
version: "1.0.0",
|
|
11
|
-
status: "published",
|
|
12
|
-
createdAt: new Date().toISOString(),
|
|
13
|
-
updatedAt: new Date().toISOString()
|
|
14
|
-
},
|
|
15
|
-
integrations: [
|
|
16
|
-
{
|
|
17
|
-
slotId: "primary-payments",
|
|
18
|
-
connectionId: "conn-stripe-live",
|
|
19
|
-
scope: {
|
|
20
|
-
workflows: ["collectPayment"],
|
|
21
|
-
operations: ["payments.stripe.chargeCard"]
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
knowledge: [],
|
|
26
|
-
locales: {
|
|
27
|
-
defaultLocale: "en",
|
|
28
|
-
enabledLocales: ["en", "fr"]
|
|
29
|
-
},
|
|
30
|
-
translationOverrides: {
|
|
31
|
-
entries: [
|
|
32
|
-
{
|
|
33
|
-
key: "artisan.payments.appName",
|
|
34
|
-
locale: "en",
|
|
35
|
-
value: "Artisan Payments Portal"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
branding: {
|
|
40
|
-
appName: { en: "Artisan Payments Portal" },
|
|
41
|
-
assets: [
|
|
42
|
-
{ type: "logo", url: "https://tenant.artisanos.dev/logo.png" },
|
|
43
|
-
{ type: "logo-dark", url: "https://tenant.artisanos.dev/logo-dark.png" }
|
|
44
|
-
],
|
|
45
|
-
colors: {
|
|
46
|
-
primary: "#F97316",
|
|
47
|
-
secondary: "#1F2937"
|
|
48
|
-
},
|
|
49
|
-
customDomain: "pay.artisanos.dev"
|
|
50
|
-
},
|
|
51
|
-
notes: "Stripe connection bound for production payments."
|
|
52
|
-
};
|
|
53
|
-
export {
|
|
54
|
-
artisanStripeTenantConfig
|
|
55
|
-
};
|
|
1
|
+
var t={meta:{id:"tenant-config-artisan-stripe",tenantId:"artisan-co",appId:"artisan",blueprintName:"artisan.payments.stripe",blueprintVersion:"1.0.0",environment:"production",version:"1.0.0",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{t as artisanStripeTenantConfig};
|
package/dist/node/workflow.js
CHANGED
|
@@ -1,55 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
OwnersEnum,
|
|
4
|
-
StabilityEnum,
|
|
5
|
-
TagsEnum
|
|
6
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
7
|
-
import { defineWorkflow } from "@contractspec/lib.contracts-spec/workflow";
|
|
8
|
-
var collectPaymentWorkflow = defineWorkflow({
|
|
9
|
-
meta: {
|
|
10
|
-
key: "integration-stripe.workflow.payment",
|
|
11
|
-
version: "1.0.0",
|
|
12
|
-
title: "Collect Card Payment",
|
|
13
|
-
description: "Charge a customer using the tenant Stripe connection and record settlement details.",
|
|
14
|
-
domain: "payments",
|
|
15
|
-
owners: [OwnersEnum.PlatformCore],
|
|
16
|
-
tags: [TagsEnum.Marketplace, "stripe"],
|
|
17
|
-
stability: StabilityEnum.Experimental
|
|
18
|
-
},
|
|
19
|
-
definition: {
|
|
20
|
-
entryStepId: "prepare",
|
|
21
|
-
steps: [
|
|
22
|
-
{
|
|
23
|
-
id: "prepare",
|
|
24
|
-
type: "automation",
|
|
25
|
-
label: "Prepare charge parameters",
|
|
26
|
-
action: {
|
|
27
|
-
operation: { key: "payments.prepareCharge", version: "1.0.0" }
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: "charge",
|
|
32
|
-
type: "automation",
|
|
33
|
-
label: "Charge card via Stripe",
|
|
34
|
-
action: {
|
|
35
|
-
operation: { key: "payments.stripe.chargeCard", version: "1.0.0" }
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "confirm",
|
|
40
|
-
type: "automation",
|
|
41
|
-
label: "Confirm settlement",
|
|
42
|
-
action: {
|
|
43
|
-
operation: { key: "payments.recordSettlement", version: "1.0.0" }
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
transitions: [
|
|
48
|
-
{ from: "prepare", to: "charge" },
|
|
49
|
-
{ from: "charge", to: "confirm", condition: "output.success === true" }
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
export {
|
|
54
|
-
collectPaymentWorkflow
|
|
55
|
-
};
|
|
1
|
+
import{OwnersEnum as h,StabilityEnum as j,TagsEnum as q}from"@contractspec/lib.contracts-spec/ownership";import{defineWorkflow as v}from"@contractspec/lib.contracts-spec/workflow/spec";var A=v({meta:{key:"integration-stripe.workflow.payment",version:"1.0.0",title:"Collect Card Payment",description:"Charge a customer using the tenant Stripe connection and record settlement details.",domain:"payments",owners:[h.PlatformCore],tags:[q.Marketplace,"stripe"],stability:j.Experimental},definition:{entryStepId:"prepare",steps:[{id:"prepare",type:"automation",label:"Prepare charge parameters",action:{operation:{key:"payments.prepareCharge",version:"1.0.0"}}},{id:"charge",type:"automation",label:"Charge card via Stripe",action:{operation:{key:"payments.stripe.chargeCard",version:"1.0.0"}}},{id:"confirm",type:"automation",label:"Confirm settlement",action:{operation:{key:"payments.recordSettlement",version:"1.0.0"}}}],transitions:[{from:"prepare",to:"charge"},{from:"charge",to:"confirm",condition:"output.success === true"}]}});export{A as collectPaymentWorkflow};
|
package/dist/tenant.js
CHANGED
|
@@ -1,56 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
var artisanStripeTenantConfig = {
|
|
4
|
-
meta: {
|
|
5
|
-
id: "tenant-config-artisan-stripe",
|
|
6
|
-
tenantId: "artisan-co",
|
|
7
|
-
appId: "artisan",
|
|
8
|
-
blueprintName: "artisan.payments.stripe",
|
|
9
|
-
blueprintVersion: "1.0.0",
|
|
10
|
-
environment: "production",
|
|
11
|
-
version: "1.0.0",
|
|
12
|
-
status: "published",
|
|
13
|
-
createdAt: new Date().toISOString(),
|
|
14
|
-
updatedAt: new Date().toISOString()
|
|
15
|
-
},
|
|
16
|
-
integrations: [
|
|
17
|
-
{
|
|
18
|
-
slotId: "primary-payments",
|
|
19
|
-
connectionId: "conn-stripe-live",
|
|
20
|
-
scope: {
|
|
21
|
-
workflows: ["collectPayment"],
|
|
22
|
-
operations: ["payments.stripe.chargeCard"]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
knowledge: [],
|
|
27
|
-
locales: {
|
|
28
|
-
defaultLocale: "en",
|
|
29
|
-
enabledLocales: ["en", "fr"]
|
|
30
|
-
},
|
|
31
|
-
translationOverrides: {
|
|
32
|
-
entries: [
|
|
33
|
-
{
|
|
34
|
-
key: "artisan.payments.appName",
|
|
35
|
-
locale: "en",
|
|
36
|
-
value: "Artisan Payments Portal"
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
branding: {
|
|
41
|
-
appName: { en: "Artisan Payments Portal" },
|
|
42
|
-
assets: [
|
|
43
|
-
{ type: "logo", url: "https://tenant.artisanos.dev/logo.png" },
|
|
44
|
-
{ type: "logo-dark", url: "https://tenant.artisanos.dev/logo-dark.png" }
|
|
45
|
-
],
|
|
46
|
-
colors: {
|
|
47
|
-
primary: "#F97316",
|
|
48
|
-
secondary: "#1F2937"
|
|
49
|
-
},
|
|
50
|
-
customDomain: "pay.artisanos.dev"
|
|
51
|
-
},
|
|
52
|
-
notes: "Stripe connection bound for production payments."
|
|
53
|
-
};
|
|
54
|
-
export {
|
|
55
|
-
artisanStripeTenantConfig
|
|
56
|
-
};
|
|
2
|
+
var t={meta:{id:"tenant-config-artisan-stripe",tenantId:"artisan-co",appId:"artisan",blueprintName:"artisan.payments.stripe",blueprintVersion:"1.0.0",environment:"production",version:"1.0.0",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{t as artisanStripeTenantConfig};
|
package/dist/workflow.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const collectPaymentWorkflow: import("@contractspec/lib.contracts-spec/workflow").WorkflowSpec;
|
|
1
|
+
export declare const collectPaymentWorkflow: import("@contractspec/lib.contracts-spec/workflow/spec").WorkflowSpec;
|
package/dist/workflow.js
CHANGED
|
@@ -1,56 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
OwnersEnum,
|
|
5
|
-
StabilityEnum,
|
|
6
|
-
TagsEnum
|
|
7
|
-
} from "@contractspec/lib.contracts-spec/ownership";
|
|
8
|
-
import { defineWorkflow } from "@contractspec/lib.contracts-spec/workflow";
|
|
9
|
-
var collectPaymentWorkflow = defineWorkflow({
|
|
10
|
-
meta: {
|
|
11
|
-
key: "integration-stripe.workflow.payment",
|
|
12
|
-
version: "1.0.0",
|
|
13
|
-
title: "Collect Card Payment",
|
|
14
|
-
description: "Charge a customer using the tenant Stripe connection and record settlement details.",
|
|
15
|
-
domain: "payments",
|
|
16
|
-
owners: [OwnersEnum.PlatformCore],
|
|
17
|
-
tags: [TagsEnum.Marketplace, "stripe"],
|
|
18
|
-
stability: StabilityEnum.Experimental
|
|
19
|
-
},
|
|
20
|
-
definition: {
|
|
21
|
-
entryStepId: "prepare",
|
|
22
|
-
steps: [
|
|
23
|
-
{
|
|
24
|
-
id: "prepare",
|
|
25
|
-
type: "automation",
|
|
26
|
-
label: "Prepare charge parameters",
|
|
27
|
-
action: {
|
|
28
|
-
operation: { key: "payments.prepareCharge", version: "1.0.0" }
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
id: "charge",
|
|
33
|
-
type: "automation",
|
|
34
|
-
label: "Charge card via Stripe",
|
|
35
|
-
action: {
|
|
36
|
-
operation: { key: "payments.stripe.chargeCard", version: "1.0.0" }
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
id: "confirm",
|
|
41
|
-
type: "automation",
|
|
42
|
-
label: "Confirm settlement",
|
|
43
|
-
action: {
|
|
44
|
-
operation: { key: "payments.recordSettlement", version: "1.0.0" }
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
transitions: [
|
|
49
|
-
{ from: "prepare", to: "charge" },
|
|
50
|
-
{ from: "charge", to: "confirm", condition: "output.success === true" }
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
export {
|
|
55
|
-
collectPaymentWorkflow
|
|
56
|
-
};
|
|
2
|
+
import{OwnersEnum as h,StabilityEnum as j,TagsEnum as q}from"@contractspec/lib.contracts-spec/ownership";import{defineWorkflow as v}from"@contractspec/lib.contracts-spec/workflow/spec";var A=v({meta:{key:"integration-stripe.workflow.payment",version:"1.0.0",title:"Collect Card Payment",description:"Charge a customer using the tenant Stripe connection and record settlement details.",domain:"payments",owners:[h.PlatformCore],tags:[q.Marketplace,"stripe"],stability:j.Experimental},definition:{entryStepId:"prepare",steps:[{id:"prepare",type:"automation",label:"Prepare charge parameters",action:{operation:{key:"payments.prepareCharge",version:"1.0.0"}}},{id:"charge",type:"automation",label:"Charge card via Stripe",action:{operation:{key:"payments.stripe.chargeCard",version:"1.0.0"}}},{id:"confirm",type:"automation",label:"Confirm settlement",action:{operation:{key:"payments.recordSettlement",version:"1.0.0"}}}],transitions:[{from:"prepare",to:"charge"},{from:"charge",to:"confirm",condition:"output.success === true"}]}});export{A as collectPaymentWorkflow};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.integration-stripe",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.18",
|
|
4
4
|
"description": "Integration example – Stripe Payments (blueprint + workflow + tenant config).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -85,21 +85,21 @@
|
|
|
85
85
|
"dev": "contractspec-bun-build dev",
|
|
86
86
|
"clean": "rimraf dist .turbo",
|
|
87
87
|
"lint": "bun lint:fix",
|
|
88
|
-
"lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
|
|
89
|
-
"lint:check": "biome check .",
|
|
88
|
+
"lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
|
|
89
|
+
"lint:check": "node ../../../scripts/biome.cjs check .",
|
|
90
90
|
"test": "bun test --pass-with-no-tests",
|
|
91
91
|
"prebuild": "contractspec-bun-build prebuild",
|
|
92
92
|
"typecheck": "tsc --noEmit"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@contractspec/lib.schema": "3.7.
|
|
96
|
-
"@contractspec/lib.contracts-spec": "5.0
|
|
97
|
-
"@contractspec/lib.contracts-integrations": "3.8.
|
|
95
|
+
"@contractspec/lib.schema": "3.7.14",
|
|
96
|
+
"@contractspec/lib.contracts-spec": "5.2.0",
|
|
97
|
+
"@contractspec/lib.contracts-integrations": "3.8.10"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@contractspec/tool.typescript": "3.7.
|
|
100
|
+
"@contractspec/tool.typescript": "3.7.13",
|
|
101
101
|
"typescript": "^5.9.3",
|
|
102
|
-
"@contractspec/tool.bun": "3.7.
|
|
102
|
+
"@contractspec/tool.bun": "3.7.14"
|
|
103
103
|
},
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public",
|
package/src/workflow.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
StabilityEnum,
|
|
4
4
|
TagsEnum,
|
|
5
5
|
} from '@contractspec/lib.contracts-spec/ownership';
|
|
6
|
-
import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow';
|
|
6
|
+
import { defineWorkflow } from '@contractspec/lib.contracts-spec/workflow/spec';
|
|
7
7
|
|
|
8
8
|
export const collectPaymentWorkflow = defineWorkflow({
|
|
9
9
|
meta: {
|