@faable/deploy-sdk 1.0.7 → 1.0.9
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/README.md +0 -2
- package/dist/FaableDeployApi.d.ts +92 -0
- package/dist/FaableDeployApi.d.ts.map +1 -1
- package/dist/FaableDeployApi.js +4 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -131,5 +131,97 @@ export declare class DeployApi extends FaableApi {
|
|
|
131
131
|
}>>;
|
|
132
132
|
};
|
|
133
133
|
updateStatus<T>(id: string, data: T): Promise<unknown>;
|
|
134
|
+
listSecrets(id: string): {
|
|
135
|
+
all: () => Promise<{
|
|
136
|
+
id: string;
|
|
137
|
+
profile?: {
|
|
138
|
+
id: string;
|
|
139
|
+
slug: string;
|
|
140
|
+
name?: string;
|
|
141
|
+
description: string;
|
|
142
|
+
is_team: boolean;
|
|
143
|
+
owner_id: string;
|
|
144
|
+
stripe_sub?: string | null;
|
|
145
|
+
createdAt: string;
|
|
146
|
+
} | string | unknown;
|
|
147
|
+
team: string;
|
|
148
|
+
name: string;
|
|
149
|
+
description: string;
|
|
150
|
+
slug: string;
|
|
151
|
+
url: string;
|
|
152
|
+
active: boolean;
|
|
153
|
+
runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
|
|
154
|
+
runtime_strategy: ("next" | "wordpress") | null;
|
|
155
|
+
instance_type: string;
|
|
156
|
+
region: string;
|
|
157
|
+
creator: string;
|
|
158
|
+
metadata: {
|
|
159
|
+
[key: string]: unknown;
|
|
160
|
+
};
|
|
161
|
+
status: import("./api/types.js").components["schemas"]["AppStatus"];
|
|
162
|
+
createdAt: string;
|
|
163
|
+
}[]>;
|
|
164
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
165
|
+
id: string;
|
|
166
|
+
profile?: {
|
|
167
|
+
id: string;
|
|
168
|
+
slug: string;
|
|
169
|
+
name?: string;
|
|
170
|
+
description: string;
|
|
171
|
+
is_team: boolean;
|
|
172
|
+
owner_id: string;
|
|
173
|
+
stripe_sub?: string | null;
|
|
174
|
+
createdAt: string;
|
|
175
|
+
} | string | unknown;
|
|
176
|
+
team: string;
|
|
177
|
+
name: string;
|
|
178
|
+
description: string;
|
|
179
|
+
slug: string;
|
|
180
|
+
url: string;
|
|
181
|
+
active: boolean;
|
|
182
|
+
runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
|
|
183
|
+
runtime_strategy: ("next" | "wordpress") | null;
|
|
184
|
+
instance_type: string;
|
|
185
|
+
region: string;
|
|
186
|
+
creator: string;
|
|
187
|
+
metadata: {
|
|
188
|
+
[key: string]: unknown;
|
|
189
|
+
};
|
|
190
|
+
status: import("./api/types.js").components["schemas"]["AppStatus"];
|
|
191
|
+
createdAt: string;
|
|
192
|
+
}>>;
|
|
193
|
+
pass: (params?: {
|
|
194
|
+
cursor?: string;
|
|
195
|
+
pageSize?: string;
|
|
196
|
+
}) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
197
|
+
id: string;
|
|
198
|
+
profile?: {
|
|
199
|
+
id: string;
|
|
200
|
+
slug: string;
|
|
201
|
+
name?: string;
|
|
202
|
+
description: string;
|
|
203
|
+
is_team: boolean;
|
|
204
|
+
owner_id: string;
|
|
205
|
+
stripe_sub?: string | null;
|
|
206
|
+
createdAt: string;
|
|
207
|
+
} | string | unknown;
|
|
208
|
+
team: string;
|
|
209
|
+
name: string;
|
|
210
|
+
description: string;
|
|
211
|
+
slug: string;
|
|
212
|
+
url: string;
|
|
213
|
+
active: boolean;
|
|
214
|
+
runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
|
|
215
|
+
runtime_strategy: ("next" | "wordpress") | null;
|
|
216
|
+
instance_type: string;
|
|
217
|
+
region: string;
|
|
218
|
+
creator: string;
|
|
219
|
+
metadata: {
|
|
220
|
+
[key: string]: unknown;
|
|
221
|
+
};
|
|
222
|
+
status: import("./api/types.js").components["schemas"]["AppStatus"];
|
|
223
|
+
createdAt: string;
|
|
224
|
+
}>>;
|
|
225
|
+
};
|
|
134
226
|
}
|
|
135
227
|
//# 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;;;;gBAgB0p2B,8CAAsB;;;;IAbxs2B,MAAM,CAAC,EAAE,EAAE,MAAM;;;;;gBAaolnB,CAAC;;;;sBAA6I,CAAC;;;;;;;;;iBAAyU,8CAAsB;;;;;;;;gBAAyf,8CAAsB;;;IAVlmpB,QAAQ;;;;;;oBAU6lnB,CAAC;;;;0BAA6I,CAAC;;;;;;;;;qBAAyU,8CAAsB;;;;;;;;oBAAyf,8CAAsB;;;;;;;;oBAA7/B,CAAC;;;;0BAA6I,CAAC;;;;;;;;;;;;;;;;;;;;;kBAZlvnB,CAAC;oBAA0B,CAAC;;;;;;oBAYuknB,CAAC;;;;0BAA6I,CAAC;;;;;;;;;qBAAyU,8CAAsB;;;;;;;;oBAAyf,8CAAsB;;;;IAPlmpB,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAGnC,WAAW,CAAC,EAAE,EAAE,MAAM;;;;;;oBAI+knB,CAAC;;;;0BAA6I,CAAC;;;;;;;;;qBAAyU,8CAAsB;;;;;;;;oBAAyf,8CAAsB;;;;;;;;oBAA7/B,CAAC;;;;0BAA6I,CAAC;;;;;;;;;;;;;;;;;;;;;kBAZlvnB,CAAC;oBAA0B,CAAC;;;;;;oBAYuknB,CAAC;;;;0BAA6I,CAAC;;;;;;;;;qBAAyU,8CAAsB;;;;;;;;oBAAyf,8CAAsB;;;;CADnmpB"}
|
package/dist/FaableDeployApi.js
CHANGED
|
@@ -2,8 +2,8 @@ import { FaableApi } from "@faable/sdk-base";
|
|
|
2
2
|
export class DeployApi extends FaableApi {
|
|
3
3
|
constructor(params) {
|
|
4
4
|
super({
|
|
5
|
-
...params,
|
|
6
5
|
baseURL: "https://api.faable.com",
|
|
6
|
+
...params,
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
9
|
getDeployment(id) {
|
|
@@ -18,4 +18,7 @@ export class DeployApi extends FaableApi {
|
|
|
18
18
|
updateStatus(id, data) {
|
|
19
19
|
return this.fetcher.post(`/status/${id}`, data);
|
|
20
20
|
}
|
|
21
|
+
listSecrets(id) {
|
|
22
|
+
return this.paginator({ url: `/secret/${id}` });
|
|
23
|
+
}
|
|
21
24
|
}
|
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.9",
|
|
5
5
|
"author": "Marc Pomar <marc@faable.com>",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@faable/sdk-base": "^1.0.
|
|
14
|
+
"@faable/sdk-base": "^1.0.13"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@septh/ts-run": "^1.3.0",
|