codify-schemas 1.0.86-beta10 → 1.0.86-beta11

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.
@@ -28,6 +28,13 @@
28
28
  "enum": ["Darwin", "Linux", "Windows_NT"]
29
29
  }
30
30
  },
31
+ "linuxDistros": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "description": "The Linux distros the resource is compatible with"
36
+ }
37
+ },
31
38
  "import": {
32
39
  "type": "object",
33
40
  "properties": {
@@ -30,6 +30,12 @@
30
30
  "items": {
31
31
  "enum": ["Darwin", "Linux", "Windows_NT"]
32
32
  }
33
+ },
34
+ "linuxDistros": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ }
33
39
  }
34
40
  },
35
41
  "required": [
@@ -104,6 +104,7 @@ export interface GetResourceInfoResponseData {
104
104
  requiredParameters: string[] | null;
105
105
  };
106
106
  operatingSystems?: OS[];
107
+ linuxDistros?: LinuxDistro[];
107
108
  importAndDestroy?: {
108
109
  requiredParameters: string[] | null;
109
110
  preventImport?: boolean;
@@ -156,6 +157,7 @@ export interface ResourceDefinition {
156
157
  type: string;
157
158
  dependencies: string[];
158
159
  operatingSystems?: OS[];
160
+ linuxDistros?: LinuxDistro[];
159
161
  sensitiveParameters?: string[];
160
162
  }
161
163
  export interface InitializeRequestData {
@@ -197,3 +199,24 @@ export declare enum OS {
197
199
  Linux = "Linux",
198
200
  Windows = "Windows_NT"
199
201
  }
202
+ export declare enum LinuxDistro {
203
+ DEBIAN_BASED = "debian-based",
204
+ RPM_BASED = "rpm-based",
205
+ ARCH = "arch",
206
+ CENTOS = "centos",
207
+ DEBIAN = "debian",
208
+ FEDORA = "fedora",
209
+ RHEL = "rhel",
210
+ UBUNTU = "ubuntu",
211
+ ALPINE = "alpine",
212
+ AMAZON_LINUX = "amzn",
213
+ OPENSUSE = "opensuse",
214
+ SUSE = "sles",
215
+ MANJARO = "manjaro",
216
+ MINT = "linuxmint",
217
+ POP_OS = "pop",
218
+ ELEMENTARY_OS = "elementary",
219
+ KALI = "kali",
220
+ GENTOO = "gentoo",
221
+ SLACKWARE = "slackware"
222
+ }
@@ -35,4 +35,26 @@ export var OS;
35
35
  OS["Linux"] = "Linux";
36
36
  OS["Windows"] = "Windows_NT";
37
37
  })(OS || (OS = {}));
38
+ export var LinuxDistro;
39
+ (function (LinuxDistro) {
40
+ LinuxDistro["DEBIAN_BASED"] = "debian-based";
41
+ LinuxDistro["RPM_BASED"] = "rpm-based";
42
+ LinuxDistro["ARCH"] = "arch";
43
+ LinuxDistro["CENTOS"] = "centos";
44
+ LinuxDistro["DEBIAN"] = "debian";
45
+ LinuxDistro["FEDORA"] = "fedora";
46
+ LinuxDistro["RHEL"] = "rhel";
47
+ LinuxDistro["UBUNTU"] = "ubuntu";
48
+ LinuxDistro["ALPINE"] = "alpine";
49
+ LinuxDistro["AMAZON_LINUX"] = "amzn";
50
+ LinuxDistro["OPENSUSE"] = "opensuse";
51
+ LinuxDistro["SUSE"] = "sles";
52
+ LinuxDistro["MANJARO"] = "manjaro";
53
+ LinuxDistro["MINT"] = "linuxmint";
54
+ LinuxDistro["POP_OS"] = "pop";
55
+ LinuxDistro["ELEMENTARY_OS"] = "elementary";
56
+ LinuxDistro["KALI"] = "kali";
57
+ LinuxDistro["GENTOO"] = "gentoo";
58
+ LinuxDistro["SLACKWARE"] = "slackware";
59
+ })(LinuxDistro || (LinuxDistro = {}));
38
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,6BAAe,CAAA;IACf,iCAAmB,CAAA;AACrB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AAQD,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB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BAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAoID,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB;AAED,MAAM,CAAN,IAAY,EAIX;AAJD,WAAY,EAAE;IACZ,uBAAiB,CAAA;IACjB,qBAAe,CAAA;IACf,4BAAsB,CAAA;AACxB,CAAC,EAJW,EAAE,KAAF,EAAE,QAIb;AAED,MAAM,CAAN,IAAY,WAoBX;AApBD,WAAY,WAAW;IACrB,4CAA6B,CAAA;IAC7B,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,iCAAkB,CAAA;IAClB,6BAAc,CAAA;IACd,2CAA4B,CAAA;IAC5B,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,sCAAuB,CAAA;AACzB,CAAC,EApBW,WAAW,KAAX,WAAW,QAoBtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.86-beta10",
3
+ "version": "1.0.86-beta11",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,6 +28,13 @@
28
28
  "enum": ["Darwin", "Linux", "Windows_NT"]
29
29
  }
30
30
  },
31
+ "linuxDistros": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "description": "The Linux distros the resource is compatible with"
36
+ }
37
+ },
31
38
  "import": {
32
39
  "type": "object",
33
40
  "properties": {
@@ -1,7 +1,7 @@
1
1
  import schema from './get-resource-info-response-data-schema.json';
2
2
  import { describe, it, expect } from 'vitest'
3
3
  import Ajv from 'ajv'
4
- import {GetResourceInfoResponseData} from "../types.js";
4
+ import {GetResourceInfoResponseData} from "../types/index.js";
5
5
 
6
6
  const ajv = new Ajv({
7
7
  strict: true,
@@ -30,7 +30,14 @@
30
30
  "items": {
31
31
  "enum": ["Darwin", "Linux", "Windows_NT"]
32
32
  }
33
+ },
34
+ "linuxDistros": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ }
33
39
  }
40
+
34
41
  },
35
42
  "required": [
36
43
  "type",
@@ -121,6 +121,7 @@ export interface GetResourceInfoResponseData {
121
121
  requiredParameters: string[] | null;
122
122
  },
123
123
  operatingSystems?: OS[];
124
+ linuxDistros?: LinuxDistro[];
124
125
  importAndDestroy?: {
125
126
  requiredParameters: string[] | null;
126
127
  preventImport?: boolean;
@@ -179,6 +180,7 @@ export interface ResourceDefinition {
179
180
  type: string;
180
181
  dependencies: string[];
181
182
  operatingSystems?: OS[];
183
+ linuxDistros?: LinuxDistro[];
182
184
  sensitiveParameters?: string[];
183
185
  }
184
186
 
@@ -228,3 +230,25 @@ export enum OS {
228
230
  Linux = 'Linux',
229
231
  Windows = 'Windows_NT',
230
232
  }
233
+
234
+ export enum LinuxDistro {
235
+ DEBIAN_BASED = 'debian-based',
236
+ RPM_BASED = 'rpm-based',
237
+ ARCH = 'arch',
238
+ CENTOS = 'centos',
239
+ DEBIAN = 'debian',
240
+ FEDORA = 'fedora',
241
+ RHEL = 'rhel',
242
+ UBUNTU = 'ubuntu',
243
+ ALPINE = 'alpine',
244
+ AMAZON_LINUX = 'amzn',
245
+ OPENSUSE = 'opensuse',
246
+ SUSE = 'sles',
247
+ MANJARO = 'manjaro',
248
+ MINT = 'linuxmint',
249
+ POP_OS = 'pop',
250
+ ELEMENTARY_OS = 'elementary',
251
+ KALI = 'kali',
252
+ GENTOO = 'gentoo',
253
+ SLACKWARE = 'slackware',
254
+ }