codify-schemas 1.0.70 → 1.0.71
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 +1 -10
- package/dist/types/index.d.ts +1 -3
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/messages/get-resource-info-response-data-schema.json +1 -10
- package/src/messages/get-resource-info-response-data-schema.test.ts +2 -6
- package/src/types/index.ts +8 -10
|
@@ -50,16 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"allowMultiple": {
|
|
53
|
-
"type": "
|
|
54
|
-
"properties": {
|
|
55
|
-
"identifyingParameters": {
|
|
56
|
-
"type": "array",
|
|
57
|
-
"items": {
|
|
58
|
-
"type": "string"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"required": ["identifyingParameters"]
|
|
53
|
+
"type": "boolean"
|
|
63
54
|
}
|
|
64
55
|
},
|
|
65
56
|
"required": ["type", "plugin"]
|
package/dist/types/index.d.ts
CHANGED
|
@@ -100,9 +100,7 @@ export interface GetResourceInfoResponseData {
|
|
|
100
100
|
requiredParameters: string[] | null;
|
|
101
101
|
preventImport?: boolean;
|
|
102
102
|
};
|
|
103
|
-
allowMultiple
|
|
104
|
-
identifyingParameters: string[];
|
|
105
|
-
};
|
|
103
|
+
allowMultiple: boolean;
|
|
106
104
|
}
|
|
107
105
|
export interface ImportRequestData {
|
|
108
106
|
core: ResourceConfig;
|
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;AAkFD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
|
package/package.json
CHANGED
|
@@ -50,16 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"allowMultiple": {
|
|
53
|
-
"type": "
|
|
54
|
-
"properties": {
|
|
55
|
-
"identifyingParameters": {
|
|
56
|
-
"type": "array",
|
|
57
|
-
"items": {
|
|
58
|
-
"type": "string"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"required": ["identifyingParameters"]
|
|
53
|
+
"type": "boolean"
|
|
63
54
|
}
|
|
64
55
|
},
|
|
65
56
|
"required": ["type", "plugin"]
|
|
@@ -55,9 +55,7 @@ describe('Get resources response data schema', () => {
|
|
|
55
55
|
preventImport: true,
|
|
56
56
|
requiredParameters: ['plugin']
|
|
57
57
|
},
|
|
58
|
-
allowMultiple:
|
|
59
|
-
identifyingParameters: ['plugin']
|
|
60
|
-
}
|
|
58
|
+
allowMultiple: true,
|
|
61
59
|
})).to.be.true;
|
|
62
60
|
|
|
63
61
|
expect(validate({
|
|
@@ -106,9 +104,7 @@ describe('Get resources response data schema', () => {
|
|
|
106
104
|
preventImport: true,
|
|
107
105
|
requiredParameters: ['plugin'],
|
|
108
106
|
},
|
|
109
|
-
allowMultiple:
|
|
110
|
-
requiredParameters: ['plugin']
|
|
111
|
-
}
|
|
107
|
+
allowMultiple: false,
|
|
112
108
|
}
|
|
113
109
|
})
|
|
114
110
|
|
package/src/types/index.ts
CHANGED
|
@@ -104,21 +104,19 @@ export interface GetResourceInfoRequestData {
|
|
|
104
104
|
export interface GetResourceInfoResponseData {
|
|
105
105
|
plugin: string;
|
|
106
106
|
type: string;
|
|
107
|
-
schema?: Record<string, unknown
|
|
108
|
-
dependencies?: string[]
|
|
107
|
+
schema?: Record<string, unknown>;
|
|
108
|
+
dependencies?: string[];
|
|
109
109
|
/**
|
|
110
110
|
* @deprecated: Use import and destroy instead.
|
|
111
111
|
*/
|
|
112
112
|
import?: {
|
|
113
|
-
requiredParameters: string[] | null
|
|
113
|
+
requiredParameters: string[] | null;
|
|
114
114
|
},
|
|
115
115
|
importAndDestroy?: {
|
|
116
|
-
requiredParameters: string[] | null
|
|
117
|
-
preventImport?: boolean
|
|
116
|
+
requiredParameters: string[] | null;
|
|
117
|
+
preventImport?: boolean;
|
|
118
118
|
},
|
|
119
|
-
allowMultiple
|
|
120
|
-
identifyingParameters: string[]
|
|
121
|
-
}
|
|
119
|
+
allowMultiple: boolean;
|
|
122
120
|
}
|
|
123
121
|
|
|
124
122
|
export interface ImportRequestData {
|
|
@@ -127,8 +125,8 @@ export interface ImportRequestData {
|
|
|
127
125
|
}
|
|
128
126
|
|
|
129
127
|
export interface ImportResponseData {
|
|
130
|
-
request: ResourceJson
|
|
131
|
-
result: Array<ResourceJson
|
|
128
|
+
request: ResourceJson;
|
|
129
|
+
result: Array<ResourceJson>;
|
|
132
130
|
}
|
|
133
131
|
|
|
134
132
|
export interface ApplyRequestData {
|