@xube/kit-destination 0.0.91 → 0.0.93
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/generated/validators/confirmationRequest.js +5 -0
- package/dist/generated/validators/destinationHeaders.js +5 -0
- package/package.json +6 -6
- package/src/generated/validators/confirmationRequest.js +1 -1
- package/src/generated/validators/destinationHeaders.js +1 -1
- package/dist/generated/validators/confirmationRequest.d.ts +0 -9
- package/dist/generated/validators/destinationHeaders.d.ts +0 -9
|
@@ -46,6 +46,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
46
46
|
}
|
|
47
47
|
errors++;
|
|
48
48
|
}
|
|
49
|
+
for (const key0 in data) {
|
|
50
|
+
if (!((((key0 === "arn") || (key0 === "confirmationToken")) || (key0 === "enableUrl")) || (key0 === "messageType"))) {
|
|
51
|
+
delete data[key0];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
49
54
|
if (data.arn !== undefined) {
|
|
50
55
|
if (typeof data.arn !== "string") {
|
|
51
56
|
const err4 = { instancePath: instancePath + "/arn", schemaPath: "#/definitions/confirmationrequestJsonSchema/properties/arn/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
@@ -26,6 +26,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
26
26
|
}
|
|
27
27
|
errors++;
|
|
28
28
|
}
|
|
29
|
+
for (const key0 in data) {
|
|
30
|
+
if (!((key0 === "x-amz-rules-engine-message-type") || (key0 === "x-amz-rules-engine-destination-arn"))) {
|
|
31
|
+
delete data[key0];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
29
34
|
if (data["x-amz-rules-engine-message-type"] !== undefined) {
|
|
30
35
|
let data0 = data["x-amz-rules-engine-message-type"];
|
|
31
36
|
const _errs4 = errors;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xube/kit-destination",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.93",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"homepage": "https://github.com/XubeLtd/dev-kit#readme",
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^22.5.4",
|
|
22
|
-
"@xube/kit-build": "^0.0.
|
|
22
|
+
"@xube/kit-build": "^0.0.93",
|
|
23
23
|
"ts-node": "^10.9.2",
|
|
24
24
|
"typescript": "^5.6.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@xube/kit-constants": "^0.0.
|
|
28
|
-
"@xube/kit-generator": "^0.0.
|
|
29
|
-
"@xube/kit-log": "^0.0.
|
|
30
|
-
"@xube/kit-request": "^0.0.
|
|
27
|
+
"@xube/kit-constants": "^0.0.93",
|
|
28
|
+
"@xube/kit-generator": "^0.0.93",
|
|
29
|
+
"@xube/kit-log": "^0.0.93",
|
|
30
|
+
"@xube/kit-request": "^0.0.93"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/confirmationrequestJsonSchema","definitions":{"confirmationrequestJsonSchema":{"type":"object","properties":{"arn":{"type":"string"},"confirmationToken":{"type":"string"},"enableUrl":{"type":"string"},"messageType":{"type":"string"}},"required":["arn","confirmationToken","enableUrl","messageType"],"additionalProperties":true}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"arn":{"type":"string"},"confirmationToken":{"type":"string"},"enableUrl":{"type":"string"},"messageType":{"type":"string"}},"required":["arn","confirmationToken","enableUrl","messageType"],"additionalProperties":true};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.arn === undefined){const err0 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/required",keyword:"required",params:{missingProperty: "arn"},message:"must have required property '"+"arn"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.confirmationToken === undefined){const err1 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/required",keyword:"required",params:{missingProperty: "confirmationToken"},message:"must have required property '"+"confirmationToken"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.enableUrl === undefined){const err2 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/required",keyword:"required",params:{missingProperty: "enableUrl"},message:"must have required property '"+"enableUrl"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.messageType === undefined){const err3 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/required",keyword:"required",params:{missingProperty: "messageType"},message:"must have required property '"+"messageType"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.arn !== undefined){if(typeof data.arn !== "string"){const err4 = {instancePath:instancePath+"/arn",schemaPath:"#/definitions/confirmationrequestJsonSchema/properties/arn/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.confirmationToken !== undefined){if(typeof data.confirmationToken !== "string"){const err5 = {instancePath:instancePath+"/confirmationToken",schemaPath:"#/definitions/confirmationrequestJsonSchema/properties/confirmationToken/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.enableUrl !== undefined){if(typeof data.enableUrl !== "string"){const err6 = {instancePath:instancePath+"/enableUrl",schemaPath:"#/definitions/confirmationrequestJsonSchema/properties/enableUrl/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.messageType !== undefined){if(typeof data.messageType !== "string"){const err7 = {instancePath:instancePath+"/messageType",schemaPath:"#/definitions/confirmationrequestJsonSchema/properties/messageType/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}validate10.errors = vErrors;return errors === 0;}
|
|
1
|
+
"use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/confirmationrequestJsonSchema","definitions":{"confirmationrequestJsonSchema":{"type":"object","properties":{"arn":{"type":"string"},"confirmationToken":{"type":"string"},"enableUrl":{"type":"string"},"messageType":{"type":"string"}},"required":["arn","confirmationToken","enableUrl","messageType"],"additionalProperties":true}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"arn":{"type":"string"},"confirmationToken":{"type":"string"},"enableUrl":{"type":"string"},"messageType":{"type":"string"}},"required":["arn","confirmationToken","enableUrl","messageType"],"additionalProperties":true};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.arn === undefined){const err0 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/required",keyword:"required",params:{missingProperty: "arn"},message:"must have required property '"+"arn"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.confirmationToken === undefined){const err1 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/required",keyword:"required",params:{missingProperty: "confirmationToken"},message:"must have required property '"+"confirmationToken"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.enableUrl === undefined){const err2 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/required",keyword:"required",params:{missingProperty: "enableUrl"},message:"must have required property '"+"enableUrl"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.messageType === undefined){const err3 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/required",keyword:"required",params:{missingProperty: "messageType"},message:"must have required property '"+"messageType"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((key0 === "arn") || (key0 === "confirmationToken")) || (key0 === "enableUrl")) || (key0 === "messageType"))){delete data[key0];}}if(data.arn !== undefined){if(typeof data.arn !== "string"){const err4 = {instancePath:instancePath+"/arn",schemaPath:"#/definitions/confirmationrequestJsonSchema/properties/arn/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.confirmationToken !== undefined){if(typeof data.confirmationToken !== "string"){const err5 = {instancePath:instancePath+"/confirmationToken",schemaPath:"#/definitions/confirmationrequestJsonSchema/properties/confirmationToken/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.enableUrl !== undefined){if(typeof data.enableUrl !== "string"){const err6 = {instancePath:instancePath+"/enableUrl",schemaPath:"#/definitions/confirmationrequestJsonSchema/properties/enableUrl/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.messageType !== undefined){if(typeof data.messageType !== "string"){const err7 = {instancePath:instancePath+"/messageType",schemaPath:"#/definitions/confirmationrequestJsonSchema/properties/messageType/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}else {const err8 = {instancePath,schemaPath:"#/definitions/confirmationrequestJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}validate10.errors = vErrors;return errors === 0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/destinationheadersJsonSchema","definitions":{"destinationheadersJsonSchema":{"type":"object","properties":{"x-amz-rules-engine-message-type":{"anyOf":[{"type":"string","const":"DestinationConfirmation"},{"type":"string"}]},"x-amz-rules-engine-destination-arn":{"type":"string"}},"required":["x-amz-rules-engine-message-type","x-amz-rules-engine-destination-arn"],"additionalProperties":true}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"x-amz-rules-engine-message-type":{"anyOf":[{"type":"string","const":"DestinationConfirmation"},{"type":"string"}]},"x-amz-rules-engine-destination-arn":{"type":"string"}},"required":["x-amz-rules-engine-message-type","x-amz-rules-engine-destination-arn"],"additionalProperties":true};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data["x-amz-rules-engine-message-type"] === undefined){const err0 = {instancePath,schemaPath:"#/definitions/destinationheadersJsonSchema/required",keyword:"required",params:{missingProperty: "x-amz-rules-engine-message-type"},message:"must have required property '"+"x-amz-rules-engine-message-type"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data["x-amz-rules-engine-destination-arn"] === undefined){const err1 = {instancePath,schemaPath:"#/definitions/destinationheadersJsonSchema/required",keyword:"required",params:{missingProperty: "x-amz-rules-engine-destination-arn"},message:"must have required property '"+"x-amz-rules-engine-destination-arn"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data["x-amz-rules-engine-message-type"] !== undefined){let data0 = data["x-amz-rules-engine-message-type"];const _errs4 = errors;let valid2 = false;const _errs5 = errors;if(typeof data0 !== "string"){const err2 = {instancePath:instancePath+"/x-amz-rules-engine-message-type",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-message-type/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("DestinationConfirmation" !== data0){const err3 = {instancePath:instancePath+"/x-amz-rules-engine-message-type",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-message-type/anyOf/0/const",keyword:"const",params:{allowedValue: "DestinationConfirmation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid0 = _errs5 === errors;valid2 = valid2 || _valid0;if(!valid2){const _errs7 = errors;if(typeof data0 !== "string"){const err4 = {instancePath:instancePath+"/x-amz-rules-engine-message-type",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-message-type/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid0 = _errs7 === errors;valid2 = valid2 || _valid0;}if(!valid2){const err5 = {instancePath:instancePath+"/x-amz-rules-engine-message-type",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-message-type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}}if(data["x-amz-rules-engine-destination-arn"] !== undefined){if(typeof data["x-amz-rules-engine-destination-arn"] !== "string"){const err6 = {instancePath:instancePath+"/x-amz-rules-engine-destination-arn",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-destination-arn/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/definitions/destinationheadersJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate10.errors = vErrors;return errors === 0;}
|
|
1
|
+
"use strict";export const validate = validate10;export default validate10;const schema27 = {"$ref":"#/definitions/destinationheadersJsonSchema","definitions":{"destinationheadersJsonSchema":{"type":"object","properties":{"x-amz-rules-engine-message-type":{"anyOf":[{"type":"string","const":"DestinationConfirmation"},{"type":"string"}]},"x-amz-rules-engine-destination-arn":{"type":"string"}},"required":["x-amz-rules-engine-message-type","x-amz-rules-engine-destination-arn"],"additionalProperties":true}},"$schema":"http://json-schema.org/draft-07/schema#"};const schema28 = {"type":"object","properties":{"x-amz-rules-engine-message-type":{"anyOf":[{"type":"string","const":"DestinationConfirmation"},{"type":"string"}]},"x-amz-rules-engine-destination-arn":{"type":"string"}},"required":["x-amz-rules-engine-message-type","x-amz-rules-engine-destination-arn"],"additionalProperties":true};function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data["x-amz-rules-engine-message-type"] === undefined){const err0 = {instancePath,schemaPath:"#/definitions/destinationheadersJsonSchema/required",keyword:"required",params:{missingProperty: "x-amz-rules-engine-message-type"},message:"must have required property '"+"x-amz-rules-engine-message-type"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data["x-amz-rules-engine-destination-arn"] === undefined){const err1 = {instancePath,schemaPath:"#/definitions/destinationheadersJsonSchema/required",keyword:"required",params:{missingProperty: "x-amz-rules-engine-destination-arn"},message:"must have required property '"+"x-amz-rules-engine-destination-arn"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "x-amz-rules-engine-message-type") || (key0 === "x-amz-rules-engine-destination-arn"))){delete data[key0];}}if(data["x-amz-rules-engine-message-type"] !== undefined){let data0 = data["x-amz-rules-engine-message-type"];const _errs4 = errors;let valid2 = false;const _errs5 = errors;if(typeof data0 !== "string"){const err2 = {instancePath:instancePath+"/x-amz-rules-engine-message-type",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-message-type/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("DestinationConfirmation" !== data0){const err3 = {instancePath:instancePath+"/x-amz-rules-engine-message-type",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-message-type/anyOf/0/const",keyword:"const",params:{allowedValue: "DestinationConfirmation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid0 = _errs5 === errors;valid2 = valid2 || _valid0;if(!valid2){const _errs7 = errors;if(typeof data0 !== "string"){const err4 = {instancePath:instancePath+"/x-amz-rules-engine-message-type",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-message-type/anyOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid0 = _errs7 === errors;valid2 = valid2 || _valid0;}if(!valid2){const err5 = {instancePath:instancePath+"/x-amz-rules-engine-message-type",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-message-type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}}if(data["x-amz-rules-engine-destination-arn"] !== undefined){if(typeof data["x-amz-rules-engine-destination-arn"] !== "string"){const err6 = {instancePath:instancePath+"/x-amz-rules-engine-destination-arn",schemaPath:"#/definitions/destinationheadersJsonSchema/properties/x-amz-rules-engine-destination-arn/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/definitions/destinationheadersJsonSchema/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate10.errors = vErrors;return errors === 0;}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
2
|
-
instancePath?: string | undefined;
|
|
3
|
-
rootData?: any;
|
|
4
|
-
}): boolean;
|
|
5
|
-
export default validate10;
|
|
6
|
-
declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
7
|
-
instancePath?: string | undefined;
|
|
8
|
-
rootData?: any;
|
|
9
|
-
}): boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function validate(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
2
|
-
instancePath?: string | undefined;
|
|
3
|
-
rootData?: any;
|
|
4
|
-
}): boolean;
|
|
5
|
-
export default validate10;
|
|
6
|
-
declare function validate10(data: any, { instancePath, parentData, parentDataProperty, rootData }?: {
|
|
7
|
-
instancePath?: string | undefined;
|
|
8
|
-
rootData?: any;
|
|
9
|
-
}): boolean;
|