@faable/deploy-sdk 1.5.1 → 1.7.0
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/dist/FaableDeployApi.d.ts +6 -1
- package/dist/FaableDeployApi.d.ts.map +1 -1
- package/dist/FaableDeployApi.js +10 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/package.json +2 -2
|
@@ -57,7 +57,12 @@ export declare class DeployApi extends FaableApi {
|
|
|
57
57
|
createdAt: string;
|
|
58
58
|
updatedAt?: string;
|
|
59
59
|
}>;
|
|
60
|
-
|
|
60
|
+
/**
|
|
61
|
+
* List apps, optionally filtered with a FaableQL `query` (e.g.
|
|
62
|
+
* `"active:true"` to fetch only enabled apps server-side). The query is
|
|
63
|
+
* threaded into every page request by the paginator.
|
|
64
|
+
*/
|
|
65
|
+
listApps(query?: string): {
|
|
61
66
|
all: () => Promise<{
|
|
62
67
|
id: string;
|
|
63
68
|
team: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FaableDeployApi.d.ts","sourceRoot":"","sources":["../src/FaableDeployApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAKV,UAAU,EACX,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC;IACzD,yDAAyD;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA9Dj1pB,CAAC;oBACnD,CAAC;;;;;;;;;qBA6Du3oB,0CAAsB;;;;oBAA+d,0CAAsB;;;;;;;;;;;IA3Bj5pB,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAGnC,WAAW,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAtC0C,CAAC;oBACnD,CAAC;;;;;;;;;;;;;;;;;IAwCf,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAzCqD,CAAC;oBACnD,CAAC;;;;;;;;;;;;;;;;IA2Cf,eAAe;;;;;;;;;gBAkB2xuB,0CAAsB;;;;;;;IAfh0uB,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,GAAE,eAAoB;CActD"}
|
package/dist/FaableDeployApi.js
CHANGED
|
@@ -12,8 +12,16 @@ export class DeployApi extends FaableApi {
|
|
|
12
12
|
getApp(id) {
|
|
13
13
|
return this.fetcher.get(`/app/${id}`);
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* List apps, optionally filtered with a FaableQL `query` (e.g.
|
|
17
|
+
* `"active:true"` to fetch only enabled apps server-side). The query is
|
|
18
|
+
* threaded into every page request by the paginator.
|
|
19
|
+
*/
|
|
20
|
+
listApps(query) {
|
|
21
|
+
return this.paginator({
|
|
22
|
+
url: "/app",
|
|
23
|
+
...(query ? { params: { query } } : {}),
|
|
24
|
+
});
|
|
17
25
|
}
|
|
18
26
|
updateStatus(id, data) {
|
|
19
27
|
return this.fetcher.post(`/status/${id}`, data);
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAM/B,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAM/B,cAAc,kBAAkB,CAAC;AAMjC,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export * from "./FaableDeployApi.js";
|
|
2
2
|
export * from "./api/api-types.js";
|
|
3
3
|
export * from "./api/types.js";
|
|
4
|
+
// Re-export the @faable/sdk-base public surface (auth helpers like
|
|
5
|
+
// `createClientCredentials`, `ApiParams`, `FaableApiError`, …) so consumers
|
|
6
|
+
// depend on @faable/deploy-sdk ONLY — sdk-base stays a transitive dependency
|
|
7
|
+
// and no app needs to install it directly.
|
|
8
|
+
export * from "@faable/sdk-base";
|
|
4
9
|
// Back-compat: consumers (e.g. controller-deploy) import the generated models
|
|
5
10
|
// as a namespace — `import { types } from "@faable/deploy-sdk"` then
|
|
6
11
|
// `types.App` / `types.Deployment`. Kept alongside the flat re-exports above so
|
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.
|
|
4
|
+
"version": "1.7.0",
|
|
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.
|
|
14
|
+
"@faable/sdk-base": "^1.2.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@septh/ts-run": "^1.3.0",
|