@sw-tsdk/connector 2.0.1-next.78 → 2.0.1-next.90

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.
@@ -0,0 +1,7 @@
1
+ export declare enum SecuritySchemeEnum {
2
+ basicAuth = "http_basic",
3
+ bearerAuth = "http_bearer",
4
+ oAuth2Password = "oauth2_password",
5
+ oAuth2ClientCredentials = "oauth2_client_credentials",
6
+ ApiKeyAuth = "apikey"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecuritySchemeEnum = void 0;
4
+ var SecuritySchemeEnum;
5
+ (function (SecuritySchemeEnum) {
6
+ SecuritySchemeEnum["basicAuth"] = "http_basic";
7
+ SecuritySchemeEnum["bearerAuth"] = "http_bearer";
8
+ SecuritySchemeEnum["oAuth2Password"] = "oauth2_password";
9
+ SecuritySchemeEnum["oAuth2ClientCredentials"] = "oauth2_client_credentials";
10
+ SecuritySchemeEnum["ApiKeyAuth"] = "apikey";
11
+ })(SecuritySchemeEnum = exports.SecuritySchemeEnum || (exports.SecuritySchemeEnum = {}));
12
+ //# sourceMappingURL=security-shemes.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-shemes.enum.js","sourceRoot":"","sources":["../../src/enums/security-shemes.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,8CAAwB,CAAA;IACxB,gDAA0B,CAAA;IAC1B,wDAAkC,CAAA;IAClC,2EAAqD,CAAA;IACrD,2CAAqB,CAAA;AACvB,CAAC,EANW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAM7B"}
package/lib/index.d.ts CHANGED
@@ -6,3 +6,10 @@ export * from './common';
6
6
  export * from './defaults';
7
7
  export * from './logo';
8
8
  export * from './container-stdout-action-output-transform';
9
+ export * from './interfaces/action';
10
+ export * from './interfaces/file-item';
11
+ export * from './interfaces/input';
12
+ export * from './interfaces/output';
13
+ export * from './interfaces/property';
14
+ export * from './enums/security-shemes.enum';
15
+ export * from './reference-fixer';
package/lib/index.js CHANGED
@@ -9,4 +9,11 @@ tslib_1.__exportStar(require("./common"), exports);
9
9
  tslib_1.__exportStar(require("./defaults"), exports);
10
10
  tslib_1.__exportStar(require("./logo"), exports);
11
11
  tslib_1.__exportStar(require("./container-stdout-action-output-transform"), exports);
12
+ tslib_1.__exportStar(require("./interfaces/action"), exports);
13
+ tslib_1.__exportStar(require("./interfaces/file-item"), exports);
14
+ tslib_1.__exportStar(require("./interfaces/input"), exports);
15
+ tslib_1.__exportStar(require("./interfaces/output"), exports);
16
+ tslib_1.__exportStar(require("./interfaces/property"), exports);
17
+ tslib_1.__exportStar(require("./enums/security-shemes.enum"), exports);
18
+ tslib_1.__exportStar(require("./reference-fixer"), exports);
12
19
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,kDAAuB;AACvB,sDAA2B;AAC3B,kDAAuB;AACvB,kEAAuC;AACvC,mDAAwB;AACxB,qDAA0B;AAC1B,iDAAsB;AACtB,qFAA0D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,kDAAuB;AACvB,sDAA2B;AAC3B,kDAAuB;AACvB,kEAAuC;AACvC,mDAAwB;AACxB,qDAA0B;AAC1B,iDAAsB;AACtB,qFAA0D;AAC1D,8DAAmC;AACnC,iEAAsC;AACtC,6DAAkC;AAClC,8DAAmC;AACnC,gEAAqC;AACrC,uEAA4C;AAC5C,4DAAiC"}
@@ -0,0 +1,15 @@
1
+ import { Input } from './input';
2
+ import { Output } from './output';
3
+ export interface Action {
4
+ schema: string;
5
+ title: string;
6
+ name: string;
7
+ description: string;
8
+ inputs: Input;
9
+ output?: Output;
10
+ components?: any;
11
+ meta?: {
12
+ endpoint: string;
13
+ method: string;
14
+ };
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.js","sourceRoot":"","sources":["../../src/interfaces/action.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { InnerProperty } from './property';
2
+ export interface fileItem {
3
+ contentDisposition?: string;
4
+ title?: string;
5
+ type: string;
6
+ additionalProperties?: boolean;
7
+ examples?: string[];
8
+ properties?: InnerProperty;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=file-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-item.js","sourceRoot":"","sources":["../../src/interfaces/file-item.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
1
+ import { fileItem } from './file-item';
2
+ import { InnerProperty, Property } from './property';
3
+ export interface Input {
4
+ type: string;
5
+ properties: {
6
+ headers?: {
7
+ title?: string;
8
+ type?: string;
9
+ properties?: InnerProperty;
10
+ required?: string[];
11
+ };
12
+ parameters?: {
13
+ title: string;
14
+ example?: string[];
15
+ type: string;
16
+ properties?: InnerProperty;
17
+ required?: string[];
18
+ additional?: boolean;
19
+ };
20
+ data_body?: {
21
+ title: string;
22
+ example?: string[];
23
+ type: string;
24
+ properties?: InnerProperty;
25
+ required?: string[];
26
+ additional?: boolean;
27
+ items?: Property | InnerProperty;
28
+ };
29
+ json_body?: {
30
+ title: string;
31
+ example?: string[];
32
+ type: string;
33
+ properties?: InnerProperty | Property;
34
+ required?: string[];
35
+ additional?: boolean;
36
+ items?: Property | InnerProperty;
37
+ };
38
+ attachments?: {
39
+ title: string;
40
+ contentDisposition?: string;
41
+ type: string;
42
+ required?: string[];
43
+ properties?: InnerProperty;
44
+ items?: fileItem | fileItem[] | undefined;
45
+ };
46
+ path_parameters?: {
47
+ title: string;
48
+ example?: string[];
49
+ type: string;
50
+ properties?: InnerProperty;
51
+ required?: string[];
52
+ additional?: boolean;
53
+ };
54
+ };
55
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/interfaces/input.ts"],"names":[],"mappings":""}
@@ -0,0 +1,47 @@
1
+ import { fileItem } from './file-item';
2
+ import { InnerProperty, Property } from './property';
3
+ export interface Output {
4
+ type: string;
5
+ properties: {
6
+ status_code?: {
7
+ type: string;
8
+ title: string;
9
+ examples?: string[];
10
+ };
11
+ reponse_header?: Property;
12
+ reason?: {
13
+ title: string;
14
+ examples?: string[];
15
+ type: string;
16
+ };
17
+ data?: {
18
+ title: string;
19
+ example?: string[];
20
+ type: string;
21
+ properties?: InnerProperty;
22
+ required?: string[];
23
+ additional?: boolean;
24
+ items?: Property | InnerProperty;
25
+ };
26
+ json_body?: {
27
+ title: string;
28
+ type: string;
29
+ required?: string[];
30
+ properties?: Property | InnerProperty;
31
+ items?: Property | InnerProperty;
32
+ } | undefined;
33
+ response_text?: {
34
+ title: string;
35
+ examples: string[];
36
+ type: string;
37
+ };
38
+ attachments?: {
39
+ title: string;
40
+ contentDisposition?: string;
41
+ type: string;
42
+ required?: string[];
43
+ properties?: InnerProperty;
44
+ items?: fileItem | fileItem[] | undefined;
45
+ };
46
+ };
47
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/interfaces/output.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ export interface Property {
2
+ schema?: {
3
+ $ref: string;
4
+ };
5
+ description?: string;
6
+ title?: string;
7
+ type?: string;
8
+ required?: string[];
9
+ properties?: InnerProperty;
10
+ items?: Property | InnerProperty;
11
+ examples?: string[];
12
+ default?: string | string[];
13
+ format?: string;
14
+ additionalProperties?: boolean;
15
+ }
16
+ export interface InnerProperty {
17
+ [key: string]: Property;
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=property.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/interfaces/property.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare function fixCircularReferences(obj: any): any;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fixCircularReferences = void 0;
4
+ function fixCircularReferences(obj) {
5
+ let cache = [];
6
+ const fixedObject = JSON.stringify(obj, (key, value) => typeof value === 'object' && value !== null ?
7
+ ((cache === null || cache === void 0 ? void 0 : cache.includes(value)) ?
8
+ undefined :
9
+ (cache === null || cache === void 0 ? void 0 : cache.push(value)) && value) :
10
+ value);
11
+ cache = null;
12
+ return JSON.parse(fixedObject);
13
+ }
14
+ exports.fixCircularReferences = fixCircularReferences;
15
+ //# sourceMappingURL=reference-fixer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference-fixer.js","sourceRoot":"","sources":["../src/reference-fixer.ts"],"names":[],"mappings":";;;AACA,SAAgB,qBAAqB,CAAC,GAAO;IAC3C,IAAI,KAAK,GAAiB,EAAE,CAAA;IAC5B,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAChC,GAAG,EACH,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CACb,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC;QAC3C,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,CAAC,KAAK,CAAC,EAAC,CAAC;YACvB,SAAS,CAAC,CAAC;YACX,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,KAAK,CAAC,KAAI,KAAK,CAAC,CAAC,CAAC;QAChC,KAAK,CACV,CAAA;IACD,KAAK,GAAG,IAAI,CAAA;IACZ,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;AAChC,CAAC;AAbD,sDAaC"}
package/package.json CHANGED
@@ -9,9 +9,9 @@
9
9
  "@oclif/core": "1.16.4",
10
10
  "@oclif/plugin-help": "5",
11
11
  "@oclif/plugin-plugins": "2.0.1",
12
- "@sw-tsdk/common": "^2.0.1-next.78+6d712c1",
13
- "@sw-tsdk/core": "^2.0.1-next.78+6d712c1",
14
- "@sw-tsdk/docker": "^2.0.1-next.78+6d712c1",
12
+ "@sw-tsdk/common": "^2.0.1-next.90+845e364",
13
+ "@sw-tsdk/core": "^2.0.1-next.90+845e364",
14
+ "@sw-tsdk/docker": "^2.0.1-next.90+845e364",
15
15
  "@swimlane/connector-interfaces": "1.8.5-rc5",
16
16
  "@swimlane/cosign": "1.3.1",
17
17
  "@types/folder-hash": "4.0.1",
@@ -63,6 +63,6 @@
63
63
  "test": "jest --passWithNoTests"
64
64
  },
65
65
  "types": "lib/index.d.ts",
66
- "version": "2.0.1-next.78+6d712c1",
67
- "gitHead": "6d712c13d4d6ceb4539a4d56237313a86387dcdd"
66
+ "version": "2.0.1-next.90+845e364",
67
+ "gitHead": "845e364b6c7161e6425543af6398f6bd090e2f79"
68
68
  }