@decocms/apps 0.20.1 → 0.21.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/.github/workflows/release.yml +4 -4
- package/.releaserc.json +4 -1
- package/package.json +3 -1
- package/vtex/invoke.ts +21 -0
|
@@ -7,7 +7,7 @@ on:
|
|
|
7
7
|
|
|
8
8
|
permissions:
|
|
9
9
|
contents: write
|
|
10
|
-
|
|
10
|
+
id-token: write
|
|
11
11
|
issues: write
|
|
12
12
|
pull-requests: write
|
|
13
13
|
|
|
@@ -22,8 +22,9 @@ jobs:
|
|
|
22
22
|
- uses: actions/setup-node@v4
|
|
23
23
|
with:
|
|
24
24
|
node-version: 22
|
|
25
|
-
registry-url: https://
|
|
26
|
-
|
|
25
|
+
registry-url: https://registry.npmjs.org
|
|
26
|
+
|
|
27
|
+
- run: npm install -g npm@latest
|
|
27
28
|
|
|
28
29
|
- run: npm install
|
|
29
30
|
|
|
@@ -31,4 +32,3 @@ jobs:
|
|
|
31
32
|
run: npx semantic-release
|
|
32
33
|
env:
|
|
33
34
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
34
|
-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/.releaserc.json
CHANGED
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
]
|
|
16
16
|
}],
|
|
17
17
|
"@semantic-release/release-notes-generator",
|
|
18
|
-
"@semantic-release/
|
|
18
|
+
["@semantic-release/exec", {
|
|
19
|
+
"prepareCmd": "npm version ${nextRelease.version} --no-git-tag-version",
|
|
20
|
+
"publishCmd": "npm publish --access public"
|
|
21
|
+
}],
|
|
19
22
|
"@semantic-release/github",
|
|
20
23
|
["@semantic-release/git", {
|
|
21
24
|
"assets": ["package.json"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/apps",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Deco commerce apps for TanStack Start - Shopify, VTEX, commerce types, analytics utils",
|
|
6
6
|
"exports": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"author": "deco.cx",
|
|
53
53
|
"license": "MIT",
|
|
54
|
+
"homepage": "https://www.npmjs.com/package/@decocms/apps",
|
|
54
55
|
"repository": {
|
|
55
56
|
"type": "git",
|
|
56
57
|
"url": "https://github.com/decocms/apps-start.git"
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
70
|
"@decocms/start": "file:../deco-start",
|
|
71
|
+
"@semantic-release/exec": "^7.1.0",
|
|
70
72
|
"@semantic-release/git": "^10.0.1",
|
|
71
73
|
"@tanstack/react-query": "^5.90.21",
|
|
72
74
|
"@types/react": "^19.0.0",
|
package/vtex/invoke.ts
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
simulateCart,
|
|
31
31
|
getSellersByRegion,
|
|
32
32
|
setShippingPostalCode,
|
|
33
|
+
updateOrderFormAttachment,
|
|
33
34
|
type SimulationItem,
|
|
34
35
|
} from "./actions/checkout";
|
|
35
36
|
import {
|
|
@@ -140,6 +141,26 @@ export const invoke = {
|
|
|
140
141
|
};
|
|
141
142
|
}) => Promise<boolean>,
|
|
142
143
|
|
|
144
|
+
updateOrderFormAttachment: createInvokeFn(
|
|
145
|
+
(input: {
|
|
146
|
+
orderFormId: string;
|
|
147
|
+
attachment: string;
|
|
148
|
+
body: Record<string, unknown>;
|
|
149
|
+
}) =>
|
|
150
|
+
updateOrderFormAttachment(
|
|
151
|
+
input.orderFormId,
|
|
152
|
+
input.attachment,
|
|
153
|
+
input.body,
|
|
154
|
+
),
|
|
155
|
+
{ unwrap: true },
|
|
156
|
+
) as unknown as (ctx: {
|
|
157
|
+
data: {
|
|
158
|
+
orderFormId: string;
|
|
159
|
+
attachment: string;
|
|
160
|
+
body: Record<string, unknown>;
|
|
161
|
+
};
|
|
162
|
+
}) => Promise<OrderForm>,
|
|
163
|
+
|
|
143
164
|
// -- Session ----------------------------------------------------------
|
|
144
165
|
|
|
145
166
|
createSession: createInvokeFn(
|