@faable/deploy-sdk 1.0.12 → 1.0.14

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.
@@ -1,15 +1,24 @@
1
1
  name: Release
2
- "on":
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@v4
12
- - uses: actions/setup-node@v3
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
+ }
@@ -5,7 +5,9 @@ export declare class DeployApi extends FaableApi {
5
5
  id: string;
6
6
  team: string;
7
7
  app_id: string;
8
- image: string;
8
+ image?: string;
9
+ github_commit?: string;
10
+ github_ref?: string;
9
11
  status: import("./api/types.js").components["schemas"]["DeploymentStatus"];
10
12
  metadata: {
11
13
  [key: string]: unknown;
@@ -24,8 +26,11 @@ export declare class DeployApi extends FaableApi {
24
26
  runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
25
27
  runtime_strategy: ("next" | "wordpress") | null;
26
28
  instance_type: string;
27
- region: string;
29
+ region: "gui1" | "poz1" | "ams1";
28
30
  status: import("./api/types.js").components["schemas"]["AppStatus"];
31
+ repository?: string;
32
+ github_branch?: string;
33
+ github_installation_id?: string;
29
34
  metadata: {
30
35
  [key: string]: unknown;
31
36
  };
@@ -44,8 +49,11 @@ export declare class DeployApi extends FaableApi {
44
49
  runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
45
50
  runtime_strategy: ("next" | "wordpress") | null;
46
51
  instance_type: string;
47
- region: string;
52
+ region: "gui1" | "poz1" | "ams1";
48
53
  status: import("./api/types.js").components["schemas"]["AppStatus"];
54
+ repository?: string;
55
+ github_branch?: string;
56
+ github_installation_id?: string;
49
57
  metadata: {
50
58
  [key: string]: unknown;
51
59
  };
@@ -63,8 +71,11 @@ export declare class DeployApi extends FaableApi {
63
71
  runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
64
72
  runtime_strategy: ("next" | "wordpress") | null;
65
73
  instance_type: string;
66
- region: string;
74
+ region: "gui1" | "poz1" | "ams1";
67
75
  status: import("./api/types.js").components["schemas"]["AppStatus"];
76
+ repository?: string;
77
+ github_branch?: string;
78
+ github_installation_id?: string;
68
79
  metadata: {
69
80
  [key: string]: unknown;
70
81
  };
@@ -85,8 +96,11 @@ export declare class DeployApi extends FaableApi {
85
96
  runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
86
97
  runtime_strategy: ("next" | "wordpress") | null;
87
98
  instance_type: string;
88
- region: string;
99
+ region: "gui1" | "poz1" | "ams1";
89
100
  status: import("./api/types.js").components["schemas"]["AppStatus"];
101
+ repository?: string;
102
+ github_branch?: string;
103
+ github_installation_id?: string;
90
104
  metadata: {
91
105
  [key: string]: unknown;
92
106
  };
@@ -145,5 +159,63 @@ export declare class DeployApi extends FaableApi {
145
159
  updatedAt: string;
146
160
  }>>;
147
161
  };
162
+ listDomains(): {
163
+ all: () => Promise<{
164
+ id: string;
165
+ team: string;
166
+ fqdn: string;
167
+ tls: boolean;
168
+ app_id: string | null;
169
+ verified: boolean;
170
+ metadata: {
171
+ [key: string]: unknown;
172
+ };
173
+ createdAt: string;
174
+ updatedAt: string;
175
+ }[]>;
176
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
177
+ id: string;
178
+ team: string;
179
+ fqdn: string;
180
+ tls: boolean;
181
+ app_id: string | null;
182
+ verified: boolean;
183
+ metadata: {
184
+ [key: string]: unknown;
185
+ };
186
+ createdAt: string;
187
+ updatedAt: string;
188
+ }>>;
189
+ pass: (params?: {
190
+ cursor?: string;
191
+ pageSize?: string;
192
+ }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
193
+ id: string;
194
+ team: string;
195
+ fqdn: string;
196
+ tls: boolean;
197
+ app_id: string | null;
198
+ verified: boolean;
199
+ metadata: {
200
+ [key: string]: unknown;
201
+ };
202
+ createdAt: string;
203
+ updatedAt: string;
204
+ }>>;
205
+ };
206
+ listDeployments(): Promise<{
207
+ id: string;
208
+ team: string;
209
+ app_id: string;
210
+ image?: string;
211
+ github_commit?: string;
212
+ github_ref?: string;
213
+ status: import("./api/types.js").components["schemas"]["DeploymentStatus"];
214
+ metadata: {
215
+ [key: string]: unknown;
216
+ };
217
+ createdAt: string;
218
+ updatedAt: string;
219
+ }>;
148
220
  }
149
221
  //# 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;;;;;gBAgB42uB,8CAAsB;;;;;;;IAb15uB,MAAM,CAAC,EAAE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;;;IAQ7C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBARM,CAAC;oBAA0B,CAAC;;;;;;;;;;;;;;;IAW7C,eAAe;;;;;;;gBAI+3pB,8CAAsB;;;;;;;CADr6pB"}
@@ -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
  }
@@ -7,7 +7,6 @@ export type Deployment = components["schemas"]["Deployment"];
7
7
  export type DeploymentStatus = components["schemas"]["DeploymentStatus"];
8
8
  export type Secret = components["schemas"]["Secret"];
9
9
  export type Domain = components["schemas"]["Domain"];
10
- export type Volume = components["schemas"]["Volume"];
11
10
  export type EventSecretsCreateBatchEvent = components["schemas"]["EventSecretCreate_batch"];
12
11
  export type EventDeploymentCreated = components["schemas"]["EventDeploymentCreate"];
13
12
  export type EventAppDelete = components["schemas"]["EventAppDelete"];
@@ -15,7 +14,6 @@ export type EventAppCreate = components["schemas"]["EventAppCreate"];
15
14
  export type EventAppUpdate = components["schemas"]["EventAppUpdate"];
16
15
  export type EventDomainCreate = components["schemas"]["EventDomainCreate"];
17
16
  export type EventDomainUpdate = components["schemas"]["EventDomainUpdate"];
18
- export type EventVolumeCreate = components["schemas"]["EventVolumeCreate"];
19
- export type EventVolumeDelete = components["schemas"]["EventVolumeDelete"];
17
+ export type EventDomainDelete = components["schemas"]["EventDomainDelete"];
20
18
  export type EventDeploymentStatusUpdate = components["schemas"]["EventDeploymentUpdate"];
21
19
  //# sourceMappingURL=api-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-types.d.ts","sourceRoot":"","sources":["../../src/api/api-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,GAAG,GAAG,UAAU,CA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