codify-schemas 1.0.66 → 1.0.67
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/messages/get-resource-info-response-data-schema.json +8 -2
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/messages/get-resource-info-response-data-schema.json +8 -2
- package/src/messages/get-resource-info-response-data-schema.test.ts +2 -0
- package/src/types/index.ts +4 -0
|
@@ -40,9 +40,15 @@
|
|
|
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
|
+
"canImport": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Controls whether a resource can be imported. For example: action resources cannot be imported"
|
|
44
49
|
}
|
|
45
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"required": ["canImport"]
|
|
46
52
|
},
|
|
47
53
|
"allowMultiple": {
|
|
48
54
|
"type": "object",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
+
canImport: boolean;
|
|
98
102
|
};
|
|
99
103
|
allowMultiple?: {
|
|
100
104
|
requiredParameters: string[];
|
package/dist/types/index.js.map
CHANGED
|
@@ -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;
|
|
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
|
@@ -40,9 +40,15 @@
|
|
|
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
|
+
"canImport": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Controls whether a resource can be imported. For example: action resources cannot be imported"
|
|
44
49
|
}
|
|
45
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"required": ["canImport"]
|
|
46
52
|
},
|
|
47
53
|
"allowMultiple": {
|
|
48
54
|
"type": "object",
|
|
@@ -52,6 +52,7 @@ describe('Get resources response data schema', () => {
|
|
|
52
52
|
requiredParameters: ['plugin'],
|
|
53
53
|
},
|
|
54
54
|
importAndDestroy: {
|
|
55
|
+
canImport: 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
|
+
canImport: true,
|
|
105
107
|
requiredParameters: ['plugin'],
|
|
106
108
|
},
|
|
107
109
|
allowMultiple: {
|
package/src/types/index.ts
CHANGED
|
@@ -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
|
+
canImport: boolean,
|
|
114
118
|
},
|
|
115
119
|
allowMultiple?: {
|
|
116
120
|
requiredParameters: string[]
|