@faable/deploy-sdk 1.0.12 → 1.0.13
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 +12 -3
- package/.releaserc +32 -0
- package/dist/FaableDeployApi.d.ts +56 -0
- package/dist/FaableDeployApi.d.ts.map +1 -1
- package/dist/FaableDeployApi.js +6 -0
- package/package.json +3 -15
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
name: Release
|
|
2
|
-
|
|
2
|
+
permissions:
|
|
3
|
+
contents: write # necesario para push de commits y tags
|
|
4
|
+
pull-requests: write
|
|
5
|
+
issues: write
|
|
6
|
+
id-token: write
|
|
7
|
+
on:
|
|
3
8
|
push:
|
|
4
9
|
branches:
|
|
5
10
|
- main
|
|
11
|
+
- next
|
|
12
|
+
- beta
|
|
6
13
|
jobs:
|
|
7
14
|
release:
|
|
8
15
|
name: release
|
|
9
16
|
runs-on: ubuntu-latest
|
|
17
|
+
timeout-minutes: 3
|
|
18
|
+
|
|
10
19
|
steps:
|
|
11
|
-
- uses: actions/checkout@
|
|
12
|
-
- uses: actions/setup-node@
|
|
20
|
+
- uses: actions/checkout@v6
|
|
21
|
+
- uses: actions/setup-node@v6
|
|
13
22
|
with:
|
|
14
23
|
cache: npm
|
|
15
24
|
node-version: lts/*
|
package/.releaserc
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"branches": [
|
|
3
|
+
{
|
|
4
|
+
"name": "main",
|
|
5
|
+
"channel": "latest"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "next",
|
|
9
|
+
"channel": "next",
|
|
10
|
+
"prerelease": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "beta",
|
|
14
|
+
"channel": "beta",
|
|
15
|
+
"prerelease": true
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"repositoryUrl": "https://x-access-token:${GITHUB_TOKEN}@github.com/faablecloud/deploy-sdk.git",
|
|
19
|
+
"plugins": [
|
|
20
|
+
"@semantic-release/commit-analyzer",
|
|
21
|
+
"@semantic-release/release-notes-generator",
|
|
22
|
+
[
|
|
23
|
+
"@semantic-release/npm",
|
|
24
|
+
{
|
|
25
|
+
"npmPublish": true,
|
|
26
|
+
"otp": false,
|
|
27
|
+
"useOidc": true
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"@semantic-release/github"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
@@ -145,5 +145,61 @@ export declare class DeployApi extends FaableApi {
|
|
|
145
145
|
updatedAt: string;
|
|
146
146
|
}>>;
|
|
147
147
|
};
|
|
148
|
+
listDomains(): {
|
|
149
|
+
all: () => Promise<{
|
|
150
|
+
id: string;
|
|
151
|
+
team: string;
|
|
152
|
+
fqdn: string;
|
|
153
|
+
tls: boolean;
|
|
154
|
+
app_id: string | null;
|
|
155
|
+
verified: boolean;
|
|
156
|
+
metadata: {
|
|
157
|
+
[key: string]: unknown;
|
|
158
|
+
};
|
|
159
|
+
createdAt: string;
|
|
160
|
+
updatedAt: string;
|
|
161
|
+
}[]>;
|
|
162
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
163
|
+
id: string;
|
|
164
|
+
team: string;
|
|
165
|
+
fqdn: string;
|
|
166
|
+
tls: boolean;
|
|
167
|
+
app_id: string | null;
|
|
168
|
+
verified: boolean;
|
|
169
|
+
metadata: {
|
|
170
|
+
[key: string]: unknown;
|
|
171
|
+
};
|
|
172
|
+
createdAt: string;
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
}>>;
|
|
175
|
+
pass: (params?: {
|
|
176
|
+
cursor?: string;
|
|
177
|
+
pageSize?: string;
|
|
178
|
+
}) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
179
|
+
id: string;
|
|
180
|
+
team: string;
|
|
181
|
+
fqdn: string;
|
|
182
|
+
tls: boolean;
|
|
183
|
+
app_id: string | null;
|
|
184
|
+
verified: boolean;
|
|
185
|
+
metadata: {
|
|
186
|
+
[key: string]: unknown;
|
|
187
|
+
};
|
|
188
|
+
createdAt: string;
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
}>>;
|
|
191
|
+
};
|
|
192
|
+
listDeployments(): Promise<{
|
|
193
|
+
id: string;
|
|
194
|
+
team: string;
|
|
195
|
+
app_id: string;
|
|
196
|
+
image: string;
|
|
197
|
+
status: import("./api/types.js").components["schemas"]["DeploymentStatus"];
|
|
198
|
+
metadata: {
|
|
199
|
+
[key: string]: unknown;
|
|
200
|
+
};
|
|
201
|
+
createdAt: string;
|
|
202
|
+
updatedAt: string;
|
|
203
|
+
}>;
|
|
148
204
|
}
|
|
149
205
|
//# sourceMappingURL=FaableDeployApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FaableDeployApi.d.ts","sourceRoot":"","sources":["../src/FaableDeployApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,qBAAa,SAAU,SAAQ,SAAS;gBAC1B,MAAM,CAAC,EAAE,SAAS;IAO9B,aAAa,CAAC,EAAE,EAAE,MAAM;;;;;
|
|
1
|
+
{"version":3,"file":"FaableDeployApi.d.ts","sourceRoot":"","sources":["../src/FaableDeployApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,qBAAa,SAAU,SAAQ,SAAS;gBAC1B,MAAM,CAAC,EAAE,SAAS;IAO9B,aAAa,CAAC,EAAE,EAAE,MAAM;;;;;gBAsBqsuB,8CAAsB;;;;;;;IAnBnvuB,MAAM,CAAC,EAAE,EAAE,MAAM;;;;;;;;iBAmB40pB,8CAAsB;;;;gBAAmV,8CAAsB;;;;;;;IAhB5tqB,QAAQ;;;;;;;;;qBAgBq1pB,8CAAsB;;;;oBAAmV,8CAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAf3sqB,CAAC;oBAA0B,CAAC;;;;;;;;;qBAegzpB,8CAAsB;;;;oBAAmV,8CAAsB;;;;;;;;IAb5tqB,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAGnC,WAAW,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBALL,CAAC;oBAA0B,CAAC;;;;;;;;;;;;;;;;;IAQ7C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBARM,CAAC;oBAA0B,CAAC;;;;;;;;;;;;;;;IAW7C,eAAe;;;;;gBAI8suB,8CAAsB;;;;;;;CADpvuB"}
|
package/dist/FaableDeployApi.js
CHANGED
|
@@ -21,4 +21,10 @@ export class DeployApi extends FaableApi {
|
|
|
21
21
|
listSecrets(id) {
|
|
22
22
|
return this.paginator({ url: `/secret/${id}` });
|
|
23
23
|
}
|
|
24
|
+
listDomains() {
|
|
25
|
+
return this.paginator({ url: "/domain" });
|
|
26
|
+
}
|
|
27
|
+
listDeployments() {
|
|
28
|
+
return this.fetcher.get(`/deployment`);
|
|
29
|
+
}
|
|
24
30
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faable/deploy-sdk",
|
|
3
3
|
"description": "Codebase for SDK building",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.13",
|
|
5
5
|
"author": "Marc Pomar <marc@faable.com>",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@types/ramda": "^0.30.2",
|
|
20
20
|
"ava": "^6.1.3",
|
|
21
21
|
"dotenv": "^16.4.5",
|
|
22
|
-
"openapi-typescript": "^7.
|
|
22
|
+
"openapi-typescript": "^7.8.0",
|
|
23
23
|
"rimraf": "^6.0.1",
|
|
24
|
-
"semantic-release": "^
|
|
24
|
+
"semantic-release": "^25.0.3",
|
|
25
25
|
"tsimp": "^2.0.11",
|
|
26
26
|
"tsx": "^4.19.1",
|
|
27
27
|
"typescript": "^5.6.2"
|
|
@@ -32,17 +32,5 @@
|
|
|
32
32
|
"build": "tsc",
|
|
33
33
|
"test": "ava",
|
|
34
34
|
"release": "semantic-release"
|
|
35
|
-
},
|
|
36
|
-
"release": {
|
|
37
|
-
"branches": [
|
|
38
|
-
"main"
|
|
39
|
-
],
|
|
40
|
-
"plugins": [
|
|
41
|
-
"@semantic-release/release-notes-generator",
|
|
42
|
-
"@semantic-release/github",
|
|
43
|
-
[
|
|
44
|
-
"@semantic-release/npm"
|
|
45
|
-
]
|
|
46
|
-
]
|
|
47
35
|
}
|
|
48
36
|
}
|