codify-schemas 1.0.66 → 1.0.68

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.
@@ -40,7 +40,12 @@
40
40
  "type": "array",
41
41
  "items": {
42
42
  "type": "string"
43
- }
43
+ },
44
+ "description": "A list of properties that are required for importing and destroying a resource"
45
+ },
46
+ "preventImport": {
47
+ "type": "boolean",
48
+ "description": "Controls whether a resource can be imported. For example: action resources cannot be imported"
44
49
  }
45
50
  }
46
51
  },
@@ -90,11 +90,15 @@ export interface GetResourceInfoResponseData {
90
90
  type: string;
91
91
  schema?: Record<string, unknown>;
92
92
  dependencies?: string[];
93
+ /**
94
+ * @deprecated: Use import and destroy instead.
95
+ */
93
96
  import?: {
94
97
  requiredParameters: string[] | null;
95
98
  };
96
99
  importAndDestroy?: {
97
100
  requiredParameters: string[] | null;
101
+ preventImport: boolean;
98
102
  };
99
103
  allowMultiple?: {
100
104
  requiredParameters: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AA6CD,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,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;AAgFD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AA6CD,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,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;AAoFD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,7 +40,12 @@
40
40
  "type": "array",
41
41
  "items": {
42
42
  "type": "string"
43
- }
43
+ },
44
+ "description": "A list of properties that are required for importing and destroying a resource"
45
+ },
46
+ "preventImport": {
47
+ "type": "boolean",
48
+ "description": "Controls whether a resource can be imported. For example: action resources cannot be imported"
44
49
  }
45
50
  }
46
51
  },
@@ -52,6 +52,7 @@ describe('Get resources response data schema', () => {
52
52
  requiredParameters: ['plugin'],
53
53
  },
54
54
  importAndDestroy: {
55
+ preventImport: true,
55
56
  requiredProperties: ['plugin']
56
57
  },
57
58
  allowMultiple: {
@@ -102,6 +103,7 @@ describe('Get resources response data schema', () => {
102
103
  requiredParameters: ['plugin'],
103
104
  },
104
105
  importAndDestroy: {
106
+ preventImport: true,
105
107
  requiredParameters: ['plugin'],
106
108
  },
107
109
  allowMultiple: {
@@ -106,11 +106,15 @@ export interface GetResourceInfoResponseData {
106
106
  type: string;
107
107
  schema?: Record<string, unknown>,
108
108
  dependencies?: string[],
109
+ /**
110
+ * @deprecated: Use import and destroy instead.
111
+ */
109
112
  import?: {
110
113
  requiredParameters: string[] | null,
111
114
  },
112
115
  importAndDestroy?: {
113
116
  requiredParameters: string[] | null,
117
+ preventImport: boolean,
114
118
  },
115
119
  allowMultiple?: {
116
120
  requiredParameters: string[]