@deployport/api-services-corelib 0.1.2 → 0.1.4
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/npm.yaml +17 -0
- package/package.json +4 -2
- package/specular.d.ts +6 -6
- package/specular.js +10 -6
- package/specular.ts +35 -32
- package/specular.yaml +5 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: Publish Package to NPM
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
- uses: actions/setup-node@v4
|
|
11
|
+
with:
|
|
12
|
+
node-version: "20.x"
|
|
13
|
+
registry-url: "https://registry.npmjs.org"
|
|
14
|
+
- run: npm install
|
|
15
|
+
- run: npm publish
|
|
16
|
+
env:
|
|
17
|
+
NODE_AUTH_TOKEN: ${{ secrets.SPECULAR_NPM_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deployport/api-services-corelib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./specular.js",
|
|
6
6
|
"types": "./specular.d.ts",
|
|
7
7
|
"author": "bithavoc",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"prepublishOnly": "npm run build-configurator",
|
|
10
|
+
"generate": "specular-standalone-compiler generate",
|
|
10
11
|
"build-configurator": "tsc configurator/index.ts --declaration --module nodenext",
|
|
12
|
+
"build": "npm run build-configurator",
|
|
11
13
|
"clean": "rm -rf node_modules && rm -f **/*.js **/*.d.ts"
|
|
12
14
|
},
|
|
13
15
|
"type": "module",
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
"dependencies": {
|
|
16
18
|
"@aws-crypto/sha256-js": "^5.2.0",
|
|
17
19
|
"@aws-sdk/types": "^3.515.0",
|
|
18
|
-
"@deployport/specular-runtime": "^0.1.
|
|
20
|
+
"@deployport/specular-runtime": "^0.1.11"
|
|
19
21
|
},
|
|
20
22
|
"devDependencies": {
|
|
21
23
|
"@tsconfig/node18": "^18.2.2",
|
package/specular.d.ts
CHANGED
|
@@ -8,16 +8,16 @@ export declare const AccessDeniedProblemMeta: Metadata.Struct;
|
|
|
8
8
|
export interface AccessDeniedProblemProperties {
|
|
9
9
|
message: string;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export declare class AccessDeniedProblem extends Error implements AccessDeniedProblemProperties, Runtime.StructInterface {
|
|
12
|
+
message: string;
|
|
13
|
+
get __structPath(): Metadata.StructPath;
|
|
14
14
|
}
|
|
15
15
|
export declare const ForbiddenProblemMeta: Metadata.Struct;
|
|
16
16
|
export interface ForbiddenProblemProperties {
|
|
17
17
|
message: string;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
export declare class ForbiddenProblem extends Error implements ForbiddenProblemProperties, Runtime.StructInterface {
|
|
20
|
+
message: string;
|
|
21
|
+
get __structPath(): Metadata.StructPath;
|
|
22
22
|
}
|
|
23
23
|
export declare function SpecularPackage(): Metadata.Package;
|
package/specular.js
CHANGED
|
@@ -6,18 +6,20 @@ export class SignedOperationV1 {
|
|
|
6
6
|
}
|
|
7
7
|
// ServiceSignatureV1 entity
|
|
8
8
|
export class ServiceSignatureV1 {
|
|
9
|
-
ServiceName;
|
|
9
|
+
ServiceName = '';
|
|
10
10
|
}
|
|
11
|
-
const _pkg = new Metadata.Package(
|
|
11
|
+
const _pkg = new Metadata.Package("deployport", "corelib");
|
|
12
12
|
export const AccessDeniedProblemMeta = new Metadata.Struct(_pkg, "AccessDeniedProblem");
|
|
13
13
|
new Metadata.Property(AccessDeniedProblemMeta, "message", {
|
|
14
14
|
NonNullable: true,
|
|
15
15
|
SubType: "builtin",
|
|
16
16
|
Builtin: "string"
|
|
17
17
|
});
|
|
18
|
-
;
|
|
19
|
-
;
|
|
20
18
|
export class AccessDeniedProblem extends Error {
|
|
19
|
+
message = '';
|
|
20
|
+
get __structPath() {
|
|
21
|
+
return AccessDeniedProblemMeta.path;
|
|
22
|
+
}
|
|
21
23
|
}
|
|
22
24
|
AccessDeniedProblemMeta.problemInstantiate = (msg) => new AccessDeniedProblem(msg);
|
|
23
25
|
export const ForbiddenProblemMeta = new Metadata.Struct(_pkg, "ForbiddenProblem");
|
|
@@ -26,9 +28,11 @@ new Metadata.Property(ForbiddenProblemMeta, "message", {
|
|
|
26
28
|
SubType: "builtin",
|
|
27
29
|
Builtin: "string"
|
|
28
30
|
});
|
|
29
|
-
;
|
|
30
|
-
;
|
|
31
31
|
export class ForbiddenProblem extends Error {
|
|
32
|
+
message = '';
|
|
33
|
+
get __structPath() {
|
|
34
|
+
return ForbiddenProblemMeta.path;
|
|
35
|
+
}
|
|
32
36
|
}
|
|
33
37
|
ForbiddenProblemMeta.problemInstantiate = (msg) => new ForbiddenProblem(msg);
|
|
34
38
|
export function SpecularPackage() {
|
package/specular.ts
CHANGED
|
@@ -11,58 +11,61 @@ export class SignedOperationV1 {
|
|
|
11
11
|
|
|
12
12
|
// ServiceSignatureV1 entity
|
|
13
13
|
export class ServiceSignatureV1 {
|
|
14
|
-
public ServiceName: string;
|
|
14
|
+
public ServiceName: string = '';
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
const _pkg = new Metadata.Package(
|
|
18
|
-
|
|
18
|
+
"deployport",
|
|
19
|
+
"corelib",
|
|
19
20
|
);
|
|
20
21
|
|
|
21
22
|
export const AccessDeniedProblemMeta = new Metadata.Struct(
|
|
22
|
-
_pkg,
|
|
23
|
-
"AccessDeniedProblem",
|
|
23
|
+
_pkg,
|
|
24
|
+
"AccessDeniedProblem",
|
|
24
25
|
);
|
|
25
26
|
new Metadata.Property(AccessDeniedProblemMeta, "message", {
|
|
26
|
-
NonNullable: true,
|
|
27
|
-
SubType: "builtin",
|
|
28
|
-
Builtin: "string"
|
|
27
|
+
NonNullable: true,
|
|
28
|
+
SubType: "builtin",
|
|
29
|
+
Builtin: "string"
|
|
29
30
|
});
|
|
30
31
|
// AccessDeniedProblem entity
|
|
31
|
-
export interface AccessDeniedProblemProperties
|
|
32
|
-
{
|
|
32
|
+
export interface AccessDeniedProblemProperties {
|
|
33
33
|
// /**
|
|
34
|
-
// * Returns "
|
|
34
|
+
// * Returns "deployport/corelib.AccessDeniedProblem"
|
|
35
35
|
// */
|
|
36
|
-
// fqtn: "
|
|
37
|
-
message
|
|
38
|
-
}
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
// fqtn: "deployport/corelib.AccessDeniedProblem";
|
|
37
|
+
message: string
|
|
38
|
+
}
|
|
39
|
+
export class AccessDeniedProblem extends Error implements AccessDeniedProblemProperties, Runtime.StructInterface {
|
|
40
|
+
message: string = ''
|
|
41
|
+
get __structPath(): Metadata.StructPath {
|
|
42
|
+
return AccessDeniedProblemMeta.path
|
|
43
|
+
}
|
|
44
|
+
}
|
|
43
45
|
AccessDeniedProblemMeta.problemInstantiate = (msg: string) => new AccessDeniedProblem(msg);
|
|
44
46
|
export const ForbiddenProblemMeta = new Metadata.Struct(
|
|
45
|
-
_pkg,
|
|
46
|
-
"ForbiddenProblem",
|
|
47
|
+
_pkg,
|
|
48
|
+
"ForbiddenProblem",
|
|
47
49
|
);
|
|
48
50
|
new Metadata.Property(ForbiddenProblemMeta, "message", {
|
|
49
|
-
NonNullable: true,
|
|
50
|
-
SubType: "builtin",
|
|
51
|
-
Builtin: "string"
|
|
51
|
+
NonNullable: true,
|
|
52
|
+
SubType: "builtin",
|
|
53
|
+
Builtin: "string"
|
|
52
54
|
});
|
|
53
55
|
// ForbiddenProblem entity
|
|
54
|
-
export interface ForbiddenProblemProperties
|
|
55
|
-
{
|
|
56
|
+
export interface ForbiddenProblemProperties {
|
|
56
57
|
// /**
|
|
57
|
-
// * Returns "
|
|
58
|
+
// * Returns "deployport/corelib.ForbiddenProblem"
|
|
58
59
|
// */
|
|
59
|
-
// fqtn: "
|
|
60
|
-
message
|
|
61
|
-
}
|
|
62
|
-
export
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
// fqtn: "deployport/corelib.ForbiddenProblem";
|
|
61
|
+
message: string
|
|
62
|
+
}
|
|
63
|
+
export class ForbiddenProblem extends Error implements ForbiddenProblemProperties, Runtime.StructInterface {
|
|
64
|
+
message: string = ''
|
|
65
|
+
get __structPath(): Metadata.StructPath {
|
|
66
|
+
return ForbiddenProblemMeta.path
|
|
67
|
+
}
|
|
68
|
+
}
|
|
66
69
|
ForbiddenProblemMeta.problemInstantiate = (msg: string) => new ForbiddenProblem(msg);
|
|
67
70
|
|
|
68
71
|
export function SpecularPackage() {
|
package/specular.yaml
CHANGED