@wix/auto_sdk_motion_alarms 1.0.21 → 1.0.22
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/build/cjs/schemas.d.ts +38 -0
- package/build/cjs/schemas.js +85 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +38 -0
- package/build/es/schemas.mjs +43 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +38 -0
- package/build/internal/cjs/schemas.js +85 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +38 -0
- package/build/internal/es/schemas.mjs +43 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +11 -4
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const AlarmTestRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const AlarmTestResponse: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const AlarmRequest: z.ZodObject<{
|
|
6
|
+
seconds: z.ZodNumber;
|
|
7
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
someString: z.ZodOptional<z.ZodString>;
|
|
9
|
+
someOtherString: z.ZodOptional<z.ZodString>;
|
|
10
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const AlarmResponse: z.ZodObject<{
|
|
14
|
+
time: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const UpdateAlarmRequest: z.ZodObject<{
|
|
17
|
+
_id: z.ZodString;
|
|
18
|
+
alarm: z.ZodObject<{
|
|
19
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
22
|
+
someMoreFields: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
options: z.ZodObject<{
|
|
25
|
+
someRequiredRequestField: z.ZodString;
|
|
26
|
+
someOptionalRequestField: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const UpdateAlarmResponse: z.ZodObject<{
|
|
30
|
+
alarm: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
32
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
34
|
+
someMoreFields: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
export { AlarmRequest, AlarmResponse, AlarmTestRequest, AlarmTestResponse, UpdateAlarmRequest, UpdateAlarmResponse };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
AlarmRequest: () => AlarmRequest,
|
|
34
|
+
AlarmResponse: () => AlarmResponse,
|
|
35
|
+
AlarmTestRequest: () => AlarmTestRequest,
|
|
36
|
+
AlarmTestResponse: () => AlarmTestResponse,
|
|
37
|
+
UpdateAlarmRequest: () => UpdateAlarmRequest,
|
|
38
|
+
UpdateAlarmResponse: () => UpdateAlarmResponse
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
41
|
+
|
|
42
|
+
// src/alarm-v1-alarm-alarms.schemas.ts
|
|
43
|
+
var z = __toESM(require("zod"));
|
|
44
|
+
var AlarmTestRequest = z.object({});
|
|
45
|
+
var AlarmTestResponse = z.object({});
|
|
46
|
+
var AlarmRequest = z.object({
|
|
47
|
+
seconds: z.number().int(),
|
|
48
|
+
options: z.object({
|
|
49
|
+
someString: z.string().optional(),
|
|
50
|
+
someOtherString: z.string().optional(),
|
|
51
|
+
someOtherField: z.string().optional()
|
|
52
|
+
}).optional()
|
|
53
|
+
});
|
|
54
|
+
var AlarmResponse = z.object({ time: z.date().optional().nullable() });
|
|
55
|
+
var UpdateAlarmRequest = z.object({
|
|
56
|
+
_id: z.string(),
|
|
57
|
+
alarm: z.object({
|
|
58
|
+
_id: z.string().optional(),
|
|
59
|
+
seconds: z.number().int().optional(),
|
|
60
|
+
someOtherField: z.string().max(1024).optional(),
|
|
61
|
+
someMoreFields: z.string().max(1024).optional()
|
|
62
|
+
}),
|
|
63
|
+
options: z.object({
|
|
64
|
+
someRequiredRequestField: z.string().max(1024),
|
|
65
|
+
someOptionalRequestField: z.string().max(1024).optional()
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
var UpdateAlarmResponse = z.object({
|
|
69
|
+
alarm: z.object({
|
|
70
|
+
_id: z.string().optional(),
|
|
71
|
+
seconds: z.number().int().optional(),
|
|
72
|
+
someOtherField: z.string().max(1024).optional(),
|
|
73
|
+
someMoreFields: z.string().max(1024).optional()
|
|
74
|
+
}).optional()
|
|
75
|
+
});
|
|
76
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
77
|
+
0 && (module.exports = {
|
|
78
|
+
AlarmRequest,
|
|
79
|
+
AlarmResponse,
|
|
80
|
+
AlarmTestRequest,
|
|
81
|
+
AlarmTestResponse,
|
|
82
|
+
UpdateAlarmRequest,
|
|
83
|
+
UpdateAlarmResponse
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/alarm-v1-alarm-alarms.schemas.ts"],"sourcesContent":["export * from './src/alarm-v1-alarm-alarms.schemas.js';\n","import * as z from 'zod';\n\nexport const AlarmTestRequest = z.object({});\nexport const AlarmTestResponse = z.object({});\nexport const AlarmRequest = z.object({\n seconds: z.number().int(),\n options: z\n .object({\n someString: z.string().optional(),\n someOtherString: z.string().optional(),\n someOtherField: z.string().optional(),\n })\n .optional(),\n});\nexport const AlarmResponse = z.object({ time: z.date().optional().nullable() });\nexport const UpdateAlarmRequest = z.object({\n _id: z.string(),\n alarm: z.object({\n _id: z.string().optional(),\n seconds: z.number().int().optional(),\n someOtherField: z.string().max(1024).optional(),\n someMoreFields: z.string().max(1024).optional(),\n }),\n options: z.object({\n someRequiredRequestField: z.string().max(1024),\n someOptionalRequestField: z.string().max(1024).optional(),\n }),\n});\nexport const UpdateAlarmResponse = z.object({\n alarm: z\n .object({\n _id: z.string().optional(),\n seconds: z.number().int().optional(),\n someOtherField: z.string().max(1024).optional(),\n someMoreFields: z.string().max(1024).optional(),\n })\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,mBAAqB,SAAO,CAAC,CAAC;AACpC,IAAM,oBAAsB,SAAO,CAAC,CAAC;AACrC,IAAM,eAAiB,SAAO;AAAA,EACnC,SAAW,SAAO,EAAE,IAAI;AAAA,EACxB,SACG,SAAO;AAAA,IACN,YAAc,SAAO,EAAE,SAAS;AAAA,IAChC,iBAAmB,SAAO,EAAE,SAAS;AAAA,IACrC,gBAAkB,SAAO,EAAE,SAAS;AAAA,EACtC,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,gBAAkB,SAAO,EAAE,MAAQ,OAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACvE,IAAM,qBAAuB,SAAO;AAAA,EACzC,KAAO,SAAO;AAAA,EACd,OAAS,SAAO;AAAA,IACd,KAAO,SAAO,EAAE,SAAS;AAAA,IACzB,SAAW,SAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACnC,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,IAC9C,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAChD,CAAC;AAAA,EACD,SAAW,SAAO;AAAA,IAChB,0BAA4B,SAAO,EAAE,IAAI,IAAI;AAAA,IAC7C,0BAA4B,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAC1D,CAAC;AACH,CAAC;AACM,IAAM,sBAAwB,SAAO;AAAA,EAC1C,OACG,SAAO;AAAA,IACN,KAAO,SAAO,EAAE,SAAS;AAAA,IACzB,SAAW,SAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACnC,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,IAC9C,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAChD,CAAC,EACA,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const AlarmTestRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const AlarmTestResponse: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const AlarmRequest: z.ZodObject<{
|
|
6
|
+
seconds: z.ZodNumber;
|
|
7
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
someString: z.ZodOptional<z.ZodString>;
|
|
9
|
+
someOtherString: z.ZodOptional<z.ZodString>;
|
|
10
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const AlarmResponse: z.ZodObject<{
|
|
14
|
+
time: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const UpdateAlarmRequest: z.ZodObject<{
|
|
17
|
+
_id: z.ZodString;
|
|
18
|
+
alarm: z.ZodObject<{
|
|
19
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
22
|
+
someMoreFields: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
options: z.ZodObject<{
|
|
25
|
+
someRequiredRequestField: z.ZodString;
|
|
26
|
+
someOptionalRequestField: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const UpdateAlarmResponse: z.ZodObject<{
|
|
30
|
+
alarm: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
32
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
34
|
+
someMoreFields: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
export { AlarmRequest, AlarmResponse, AlarmTestRequest, AlarmTestResponse, UpdateAlarmRequest, UpdateAlarmResponse };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// src/alarm-v1-alarm-alarms.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var AlarmTestRequest = z.object({});
|
|
4
|
+
var AlarmTestResponse = z.object({});
|
|
5
|
+
var AlarmRequest = z.object({
|
|
6
|
+
seconds: z.number().int(),
|
|
7
|
+
options: z.object({
|
|
8
|
+
someString: z.string().optional(),
|
|
9
|
+
someOtherString: z.string().optional(),
|
|
10
|
+
someOtherField: z.string().optional()
|
|
11
|
+
}).optional()
|
|
12
|
+
});
|
|
13
|
+
var AlarmResponse = z.object({ time: z.date().optional().nullable() });
|
|
14
|
+
var UpdateAlarmRequest = z.object({
|
|
15
|
+
_id: z.string(),
|
|
16
|
+
alarm: z.object({
|
|
17
|
+
_id: z.string().optional(),
|
|
18
|
+
seconds: z.number().int().optional(),
|
|
19
|
+
someOtherField: z.string().max(1024).optional(),
|
|
20
|
+
someMoreFields: z.string().max(1024).optional()
|
|
21
|
+
}),
|
|
22
|
+
options: z.object({
|
|
23
|
+
someRequiredRequestField: z.string().max(1024),
|
|
24
|
+
someOptionalRequestField: z.string().max(1024).optional()
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
var UpdateAlarmResponse = z.object({
|
|
28
|
+
alarm: z.object({
|
|
29
|
+
_id: z.string().optional(),
|
|
30
|
+
seconds: z.number().int().optional(),
|
|
31
|
+
someOtherField: z.string().max(1024).optional(),
|
|
32
|
+
someMoreFields: z.string().max(1024).optional()
|
|
33
|
+
}).optional()
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
AlarmRequest,
|
|
37
|
+
AlarmResponse,
|
|
38
|
+
AlarmTestRequest,
|
|
39
|
+
AlarmTestResponse,
|
|
40
|
+
UpdateAlarmRequest,
|
|
41
|
+
UpdateAlarmResponse
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/alarm-v1-alarm-alarms.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const AlarmTestRequest = z.object({});\nexport const AlarmTestResponse = z.object({});\nexport const AlarmRequest = z.object({\n seconds: z.number().int(),\n options: z\n .object({\n someString: z.string().optional(),\n someOtherString: z.string().optional(),\n someOtherField: z.string().optional(),\n })\n .optional(),\n});\nexport const AlarmResponse = z.object({ time: z.date().optional().nullable() });\nexport const UpdateAlarmRequest = z.object({\n _id: z.string(),\n alarm: z.object({\n _id: z.string().optional(),\n seconds: z.number().int().optional(),\n someOtherField: z.string().max(1024).optional(),\n someMoreFields: z.string().max(1024).optional(),\n }),\n options: z.object({\n someRequiredRequestField: z.string().max(1024),\n someOptionalRequestField: z.string().max(1024).optional(),\n }),\n});\nexport const UpdateAlarmResponse = z.object({\n alarm: z\n .object({\n _id: z.string().optional(),\n seconds: z.number().int().optional(),\n someOtherField: z.string().max(1024).optional(),\n someMoreFields: z.string().max(1024).optional(),\n })\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,mBAAqB,SAAO,CAAC,CAAC;AACpC,IAAM,oBAAsB,SAAO,CAAC,CAAC;AACrC,IAAM,eAAiB,SAAO;AAAA,EACnC,SAAW,SAAO,EAAE,IAAI;AAAA,EACxB,SACG,SAAO;AAAA,IACN,YAAc,SAAO,EAAE,SAAS;AAAA,IAChC,iBAAmB,SAAO,EAAE,SAAS;AAAA,IACrC,gBAAkB,SAAO,EAAE,SAAS;AAAA,EACtC,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,gBAAkB,SAAO,EAAE,MAAQ,OAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACvE,IAAM,qBAAuB,SAAO;AAAA,EACzC,KAAO,SAAO;AAAA,EACd,OAAS,SAAO;AAAA,IACd,KAAO,SAAO,EAAE,SAAS;AAAA,IACzB,SAAW,SAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACnC,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,IAC9C,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAChD,CAAC;AAAA,EACD,SAAW,SAAO;AAAA,IAChB,0BAA4B,SAAO,EAAE,IAAI,IAAI;AAAA,IAC7C,0BAA4B,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAC1D,CAAC;AACH,CAAC;AACM,IAAM,sBAAwB,SAAO;AAAA,EAC1C,OACG,SAAO;AAAA,IACN,KAAO,SAAO,EAAE,SAAS;AAAA,IACzB,SAAW,SAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACnC,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,IAC9C,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAChD,CAAC,EACA,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const AlarmTestRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const AlarmTestResponse: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const AlarmRequest: z.ZodObject<{
|
|
6
|
+
seconds: z.ZodNumber;
|
|
7
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
someString: z.ZodOptional<z.ZodString>;
|
|
9
|
+
someOtherString: z.ZodOptional<z.ZodString>;
|
|
10
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const AlarmResponse: z.ZodObject<{
|
|
14
|
+
time: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const UpdateAlarmRequest: z.ZodObject<{
|
|
17
|
+
_id: z.ZodString;
|
|
18
|
+
alarm: z.ZodObject<{
|
|
19
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
22
|
+
someMoreFields: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
options: z.ZodObject<{
|
|
25
|
+
someRequiredRequestField: z.ZodString;
|
|
26
|
+
someOptionalRequestField: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const UpdateAlarmResponse: z.ZodObject<{
|
|
30
|
+
alarm: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
32
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
34
|
+
someMoreFields: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
export { AlarmRequest, AlarmResponse, AlarmTestRequest, AlarmTestResponse, UpdateAlarmRequest, UpdateAlarmResponse };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
AlarmRequest: () => AlarmRequest,
|
|
34
|
+
AlarmResponse: () => AlarmResponse,
|
|
35
|
+
AlarmTestRequest: () => AlarmTestRequest,
|
|
36
|
+
AlarmTestResponse: () => AlarmTestResponse,
|
|
37
|
+
UpdateAlarmRequest: () => UpdateAlarmRequest,
|
|
38
|
+
UpdateAlarmResponse: () => UpdateAlarmResponse
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
41
|
+
|
|
42
|
+
// src/alarm-v1-alarm-alarms.schemas.ts
|
|
43
|
+
var z = __toESM(require("zod"));
|
|
44
|
+
var AlarmTestRequest = z.object({});
|
|
45
|
+
var AlarmTestResponse = z.object({});
|
|
46
|
+
var AlarmRequest = z.object({
|
|
47
|
+
seconds: z.number().int(),
|
|
48
|
+
options: z.object({
|
|
49
|
+
someString: z.string().optional(),
|
|
50
|
+
someOtherString: z.string().optional(),
|
|
51
|
+
someOtherField: z.string().optional()
|
|
52
|
+
}).optional()
|
|
53
|
+
});
|
|
54
|
+
var AlarmResponse = z.object({ time: z.date().optional().nullable() });
|
|
55
|
+
var UpdateAlarmRequest = z.object({
|
|
56
|
+
_id: z.string(),
|
|
57
|
+
alarm: z.object({
|
|
58
|
+
_id: z.string().optional(),
|
|
59
|
+
seconds: z.number().int().optional(),
|
|
60
|
+
someOtherField: z.string().max(1024).optional(),
|
|
61
|
+
someMoreFields: z.string().max(1024).optional()
|
|
62
|
+
}),
|
|
63
|
+
options: z.object({
|
|
64
|
+
someRequiredRequestField: z.string().max(1024),
|
|
65
|
+
someOptionalRequestField: z.string().max(1024).optional()
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
var UpdateAlarmResponse = z.object({
|
|
69
|
+
alarm: z.object({
|
|
70
|
+
_id: z.string().optional(),
|
|
71
|
+
seconds: z.number().int().optional(),
|
|
72
|
+
someOtherField: z.string().max(1024).optional(),
|
|
73
|
+
someMoreFields: z.string().max(1024).optional()
|
|
74
|
+
}).optional()
|
|
75
|
+
});
|
|
76
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
77
|
+
0 && (module.exports = {
|
|
78
|
+
AlarmRequest,
|
|
79
|
+
AlarmResponse,
|
|
80
|
+
AlarmTestRequest,
|
|
81
|
+
AlarmTestResponse,
|
|
82
|
+
UpdateAlarmRequest,
|
|
83
|
+
UpdateAlarmResponse
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/alarm-v1-alarm-alarms.schemas.ts"],"sourcesContent":["export * from './src/alarm-v1-alarm-alarms.schemas.js';\n","import * as z from 'zod';\n\nexport const AlarmTestRequest = z.object({});\nexport const AlarmTestResponse = z.object({});\nexport const AlarmRequest = z.object({\n seconds: z.number().int(),\n options: z\n .object({\n someString: z.string().optional(),\n someOtherString: z.string().optional(),\n someOtherField: z.string().optional(),\n })\n .optional(),\n});\nexport const AlarmResponse = z.object({ time: z.date().optional().nullable() });\nexport const UpdateAlarmRequest = z.object({\n _id: z.string(),\n alarm: z.object({\n _id: z.string().optional(),\n seconds: z.number().int().optional(),\n someOtherField: z.string().max(1024).optional(),\n someMoreFields: z.string().max(1024).optional(),\n }),\n options: z.object({\n someRequiredRequestField: z.string().max(1024),\n someOptionalRequestField: z.string().max(1024).optional(),\n }),\n});\nexport const UpdateAlarmResponse = z.object({\n alarm: z\n .object({\n _id: z.string().optional(),\n seconds: z.number().int().optional(),\n someOtherField: z.string().max(1024).optional(),\n someMoreFields: z.string().max(1024).optional(),\n })\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,mBAAqB,SAAO,CAAC,CAAC;AACpC,IAAM,oBAAsB,SAAO,CAAC,CAAC;AACrC,IAAM,eAAiB,SAAO;AAAA,EACnC,SAAW,SAAO,EAAE,IAAI;AAAA,EACxB,SACG,SAAO;AAAA,IACN,YAAc,SAAO,EAAE,SAAS;AAAA,IAChC,iBAAmB,SAAO,EAAE,SAAS;AAAA,IACrC,gBAAkB,SAAO,EAAE,SAAS;AAAA,EACtC,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,gBAAkB,SAAO,EAAE,MAAQ,OAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACvE,IAAM,qBAAuB,SAAO;AAAA,EACzC,KAAO,SAAO;AAAA,EACd,OAAS,SAAO;AAAA,IACd,KAAO,SAAO,EAAE,SAAS;AAAA,IACzB,SAAW,SAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACnC,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,IAC9C,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAChD,CAAC;AAAA,EACD,SAAW,SAAO;AAAA,IAChB,0BAA4B,SAAO,EAAE,IAAI,IAAI;AAAA,IAC7C,0BAA4B,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAC1D,CAAC;AACH,CAAC;AACM,IAAM,sBAAwB,SAAO;AAAA,EAC1C,OACG,SAAO;AAAA,IACN,KAAO,SAAO,EAAE,SAAS;AAAA,IACzB,SAAW,SAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACnC,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,IAC9C,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAChD,CAAC,EACA,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const AlarmTestRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const AlarmTestResponse: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const AlarmRequest: z.ZodObject<{
|
|
6
|
+
seconds: z.ZodNumber;
|
|
7
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
someString: z.ZodOptional<z.ZodString>;
|
|
9
|
+
someOtherString: z.ZodOptional<z.ZodString>;
|
|
10
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const AlarmResponse: z.ZodObject<{
|
|
14
|
+
time: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const UpdateAlarmRequest: z.ZodObject<{
|
|
17
|
+
_id: z.ZodString;
|
|
18
|
+
alarm: z.ZodObject<{
|
|
19
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
22
|
+
someMoreFields: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
options: z.ZodObject<{
|
|
25
|
+
someRequiredRequestField: z.ZodString;
|
|
26
|
+
someOptionalRequestField: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const UpdateAlarmResponse: z.ZodObject<{
|
|
30
|
+
alarm: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
32
|
+
seconds: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
someOtherField: z.ZodOptional<z.ZodString>;
|
|
34
|
+
someMoreFields: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
export { AlarmRequest, AlarmResponse, AlarmTestRequest, AlarmTestResponse, UpdateAlarmRequest, UpdateAlarmResponse };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// src/alarm-v1-alarm-alarms.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var AlarmTestRequest = z.object({});
|
|
4
|
+
var AlarmTestResponse = z.object({});
|
|
5
|
+
var AlarmRequest = z.object({
|
|
6
|
+
seconds: z.number().int(),
|
|
7
|
+
options: z.object({
|
|
8
|
+
someString: z.string().optional(),
|
|
9
|
+
someOtherString: z.string().optional(),
|
|
10
|
+
someOtherField: z.string().optional()
|
|
11
|
+
}).optional()
|
|
12
|
+
});
|
|
13
|
+
var AlarmResponse = z.object({ time: z.date().optional().nullable() });
|
|
14
|
+
var UpdateAlarmRequest = z.object({
|
|
15
|
+
_id: z.string(),
|
|
16
|
+
alarm: z.object({
|
|
17
|
+
_id: z.string().optional(),
|
|
18
|
+
seconds: z.number().int().optional(),
|
|
19
|
+
someOtherField: z.string().max(1024).optional(),
|
|
20
|
+
someMoreFields: z.string().max(1024).optional()
|
|
21
|
+
}),
|
|
22
|
+
options: z.object({
|
|
23
|
+
someRequiredRequestField: z.string().max(1024),
|
|
24
|
+
someOptionalRequestField: z.string().max(1024).optional()
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
var UpdateAlarmResponse = z.object({
|
|
28
|
+
alarm: z.object({
|
|
29
|
+
_id: z.string().optional(),
|
|
30
|
+
seconds: z.number().int().optional(),
|
|
31
|
+
someOtherField: z.string().max(1024).optional(),
|
|
32
|
+
someMoreFields: z.string().max(1024).optional()
|
|
33
|
+
}).optional()
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
AlarmRequest,
|
|
37
|
+
AlarmResponse,
|
|
38
|
+
AlarmTestRequest,
|
|
39
|
+
AlarmTestResponse,
|
|
40
|
+
UpdateAlarmRequest,
|
|
41
|
+
UpdateAlarmResponse
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/alarm-v1-alarm-alarms.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const AlarmTestRequest = z.object({});\nexport const AlarmTestResponse = z.object({});\nexport const AlarmRequest = z.object({\n seconds: z.number().int(),\n options: z\n .object({\n someString: z.string().optional(),\n someOtherString: z.string().optional(),\n someOtherField: z.string().optional(),\n })\n .optional(),\n});\nexport const AlarmResponse = z.object({ time: z.date().optional().nullable() });\nexport const UpdateAlarmRequest = z.object({\n _id: z.string(),\n alarm: z.object({\n _id: z.string().optional(),\n seconds: z.number().int().optional(),\n someOtherField: z.string().max(1024).optional(),\n someMoreFields: z.string().max(1024).optional(),\n }),\n options: z.object({\n someRequiredRequestField: z.string().max(1024),\n someOptionalRequestField: z.string().max(1024).optional(),\n }),\n});\nexport const UpdateAlarmResponse = z.object({\n alarm: z\n .object({\n _id: z.string().optional(),\n seconds: z.number().int().optional(),\n someOtherField: z.string().max(1024).optional(),\n someMoreFields: z.string().max(1024).optional(),\n })\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,mBAAqB,SAAO,CAAC,CAAC;AACpC,IAAM,oBAAsB,SAAO,CAAC,CAAC;AACrC,IAAM,eAAiB,SAAO;AAAA,EACnC,SAAW,SAAO,EAAE,IAAI;AAAA,EACxB,SACG,SAAO;AAAA,IACN,YAAc,SAAO,EAAE,SAAS;AAAA,IAChC,iBAAmB,SAAO,EAAE,SAAS;AAAA,IACrC,gBAAkB,SAAO,EAAE,SAAS;AAAA,EACtC,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,gBAAkB,SAAO,EAAE,MAAQ,OAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACvE,IAAM,qBAAuB,SAAO;AAAA,EACzC,KAAO,SAAO;AAAA,EACd,OAAS,SAAO;AAAA,IACd,KAAO,SAAO,EAAE,SAAS;AAAA,IACzB,SAAW,SAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACnC,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,IAC9C,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAChD,CAAC;AAAA,EACD,SAAW,SAAO;AAAA,IAChB,0BAA4B,SAAO,EAAE,IAAI,IAAI;AAAA,IAC7C,0BAA4B,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAC1D,CAAC;AACH,CAAC;AACM,IAAM,sBAAwB,SAAO;AAAA,EAC1C,OACG,SAAO;AAAA,IACN,KAAO,SAAO,EAAE,SAAS;AAAA,IACzB,SAAW,SAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACnC,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,IAC9C,gBAAkB,SAAO,EAAE,IAAI,IAAI,EAAE,SAAS;AAAA,EAChD,CAAC,EACA,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_motion_alarms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,16 +21,23 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"import": "./build/es/schemas.mjs",
|
|
27
|
+
"require": "./build/cjs/schemas.js",
|
|
28
|
+
"types": "./build/es/schemas.d.mts"
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"build",
|
|
28
33
|
"meta",
|
|
29
|
-
"service-plugins"
|
|
34
|
+
"service-plugins",
|
|
35
|
+
"schemas"
|
|
30
36
|
],
|
|
31
37
|
"dependencies": {
|
|
32
38
|
"@wix/sdk-runtime": "^1.0.10",
|
|
33
|
-
"@wix/sdk-types": "^1.17.6"
|
|
39
|
+
"@wix/sdk-types": "^1.17.6",
|
|
40
|
+
"zod": "^4.3.6"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +57,5 @@
|
|
|
50
57
|
"fqdn": "wix.alarm.v1.alarm"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "2f5fab2367d88d4f97c963693640664378fd3d01da102bde0a966ba6"
|
|
54
61
|
}
|