@kohost/api-client 6.0.2 → 6.2.0
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.
|
@@ -75,7 +75,7 @@ declare const defs: {
|
|
|
75
75
|
readonly driver: {
|
|
76
76
|
readonly type: "string";
|
|
77
77
|
readonly description: "Driver used to communicate with the object.";
|
|
78
|
-
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "cool-automation", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "modbus", "napco", "newline", "obix", "one-roster", "orchid-fusion", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "reolink", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "singlewire", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "zkteco", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
78
|
+
readonly enum: readonly ["adlink", "avigilon-alta", "aws-kinesis", "bacnet", "benq", "butler", "comelit", "cool-automation", "crestron", "dell", "digital-watchdog", "distech", "dmp", "doorbird", "dormakaba", "dsc", "dsc-itv2", "earbridge", "ecobee", "epson", "geovision-rs", "geovision-as-manager", "honeywell-vista", "igor", "inncom", "isapi", "kohost-k7", "kohost", "lg", "lg-webos", "lapi", "lirc", "mews", "mht", "mobile-mule", "mock", "modbus", "napco", "newline", "obix", "one-roster", "orchid-fusion", "paxton", "pdk", "pelican-wireless", "power-shades", "rachio", "rebrandly", "relay", "reolink", "rtsp", "salto", "salto-irn", "samsung", "se", "sendgrid", "singlewire", "smartboard", "sonifi", "stay-n-touch", "storable", "twilio", "unifi", "valcom", "veracross", "verkada", "vivotek", "vizio", "wisenet", "zkteco", "cloudflare-images", "cloudflare-stream", "insperia-privacy"];
|
|
79
79
|
};
|
|
80
80
|
readonly type: {
|
|
81
81
|
readonly type: "string";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"cool-automation\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"orchid-fusion\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"reolink\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"zkteco\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":"AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MA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;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAKA,IAAO,sBAAQ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../.generated/schemas/definitions.ts"],"sourcesContent":["const defs = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"definitions.json\",\n title: \"Definitions\",\n definitions: {\n id: {\n type: \"string\",\n description: \"Identifier of the object.\",\n },\n systemId: {\n type: \"string\",\n description: \"Identifier of the object, directly related to the system.\",\n },\n systemData: {\n type: \"object\",\n },\n metadata: {\n type: \"object\",\n default: {},\n },\n date: {\n type: [\"string\", \"object\"],\n format: \"date-time\",\n },\n file: {\n type: \"object\",\n required: [\"name\", \"type\", \"data\"],\n properties: {\n name: {\n type: \"string\",\n description: \"Name of the file.\",\n },\n type: {\n type: \"string\",\n description: \"MIME type of the file (e.g. application/pdf).\",\n },\n data: {\n type: \"string\",\n description: \"Base64-encoded data of the file.\",\n },\n },\n },\n address: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n line1: {\n type: \"string\",\n },\n line2: {\n type: \"string\",\n },\n line3: {\n type: \"string\",\n },\n city: {\n type: \"string\",\n },\n state: {\n type: \"string\",\n },\n postalCode: {\n type: \"string\",\n },\n countryCode: {\n type: \"string\",\n minLength: 2,\n maxLength: 2,\n },\n },\n },\n driver: {\n type: \"string\",\n description: \"Driver used to communicate with the object.\",\n enum: [\n \"adlink\",\n \"avigilon-alta\",\n \"aws-kinesis\",\n \"bacnet\",\n \"benq\",\n \"butler\",\n \"comelit\",\n \"cool-automation\",\n \"crestron\",\n \"dell\",\n \"digital-watchdog\",\n \"distech\",\n \"dmp\",\n \"doorbird\",\n \"dormakaba\",\n \"dsc\",\n \"dsc-itv2\",\n \"earbridge\",\n \"ecobee\",\n \"epson\",\n \"geovision-rs\",\n \"geovision-as-manager\",\n \"honeywell-vista\",\n \"igor\",\n \"inncom\",\n \"isapi\",\n \"kohost-k7\",\n \"kohost\",\n \"lg\",\n \"lg-webos\",\n \"lapi\",\n \"lirc\",\n \"mews\",\n \"mht\",\n \"mobile-mule\",\n \"mock\",\n \"modbus\",\n \"napco\",\n \"newline\",\n \"obix\",\n \"one-roster\",\n \"orchid-fusion\",\n \"paxton\",\n \"pdk\",\n \"pelican-wireless\",\n \"power-shades\",\n \"rachio\",\n \"rebrandly\",\n \"relay\",\n \"reolink\",\n \"rtsp\",\n \"salto\",\n \"salto-irn\",\n \"samsung\",\n \"se\",\n \"sendgrid\",\n \"singlewire\",\n \"smartboard\",\n \"sonifi\",\n \"stay-n-touch\",\n \"storable\",\n \"twilio\",\n \"unifi\",\n \"valcom\",\n \"veracross\",\n \"verkada\",\n \"vivotek\",\n \"vizio\",\n \"wisenet\",\n \"zkteco\",\n \"cloudflare-images\",\n \"cloudflare-stream\",\n \"insperia-privacy\",\n ],\n },\n type: {\n type: \"string\",\n enum: [\n \"alarm\",\n \"camera\",\n \"courtesy\",\n \"dimmer\",\n \"gateway\",\n \"lock\",\n \"mediaSource\",\n \"motionSensor\",\n \"switch\",\n \"thermostat\",\n \"windowCovering\",\n ],\n },\n name: {\n type: \"string\",\n },\n alerts: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"object\",\n additionalProperties: false,\n required: [\"type\", \"status\", \"message\"],\n properties: {\n id: {\n type: \"string\"\n },\n type: {\n type: \"string\",\n enum: [\n \"Battery\",\n \"Communication\",\n \"Config\",\n \"Door Ajar\",\n \"Equipment\",\n \"Temperature\",\n \"Maintenance\",\n \"Cost\",\n \"Registration\",\n ],\n },\n status: {\n type: \"string\",\n enum: [\"Active\", \"Resolved\"],\n },\n message: {\n type: \"string\",\n },\n },\n },\n },\n supportedNotifications: {\n type: \"array\",\n uniqueItems: true,\n items: {\n enum: [\n \"button 1\",\n \"button 2\",\n \"button 3\",\n \"button 4\",\n \"button 5\",\n \"idle\",\n \"powerHasBeedApplied\",\n \"acMainsDisconnected\",\n \"acMainsReconnected\",\n \"replaceBatterySoon\",\n \"replaceBatteryNow\",\n \"batteryOk\",\n \"hardwareFailure\",\n \"softwareFailure\",\n \"hardwareFailureWithCode\",\n \"softwareFailureWithCode\",\n \"motionDetection\",\n \"airFilterNeedsCleaned\",\n \"airFilterNeedsReplaced\",\n \"smokeDetected\",\n \"outsideSafeTemperatureRange\",\n \"outsideSafeHumidityRange\",\n \"scheduleMaintenance\",\n \"doorAjar\",\n \"communicationFailure\",\n \"communicationOk\",\n \"burglarAlarm\",\n \"fireAlarm\",\n ],\n },\n },\n notification: {\n type: [\"object\", \"null\"],\n properties: {\n name: {\n type: \"string\",\n $ref: \"#/definitions/supportedNotifications/items\",\n },\n timestamp: {\n type: \"number\",\n minimum: 1655907956593,\n },\n description: {\n type: \"string\",\n },\n },\n },\n batteryLevel: {\n type: \"number\",\n minimum: 0,\n maximum: 100,\n },\n watts: {\n type: \"number\",\n minimum: 0,\n },\n revenue: {\n type: \"array\",\n items: {\n type: \"object\",\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n name: {\n type: \"string\",\n },\n date: {\n type: \"string\",\n format: \"date-time\",\n },\n price: {\n type: \"number\",\n },\n tax: {\n type: [\"number\", \"null\"],\n },\n },\n },\n },\n },\n} as const;\n\nexport type ISODateString = ReturnType<Date[\"toISOString\"]>;\n\nexport { defs as definitionsSchema };\nexport default defs;\n"],"mappings":"AAAA,MAAM,OAAO;AAAA,EACX,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,IACX,IAAI;AAAA,MACF,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS,CAAC;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM,CAAC,UAAU,QAAQ;AAAA,MACzB,QAAQ;AAAA,IACV;AAAA,IACA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package/dist/validate.d.ts
CHANGED
|
@@ -1,175 +1,175 @@
|
|
|
1
1
|
import * as ajv from 'ajv';
|
|
2
2
|
|
|
3
3
|
declare const validateAlarm: ajv.ValidateFunction<{
|
|
4
|
-
type: any;
|
|
5
4
|
id: any;
|
|
6
|
-
|
|
5
|
+
type: any;
|
|
7
6
|
zones: any;
|
|
7
|
+
areas: any;
|
|
8
8
|
driver: any;
|
|
9
|
-
} & {
|
|
10
|
-
type: any;
|
|
11
9
|
} & {
|
|
12
10
|
id: any;
|
|
13
11
|
} & {
|
|
14
|
-
|
|
12
|
+
type: any;
|
|
15
13
|
} & {
|
|
16
14
|
zones: any;
|
|
15
|
+
} & {
|
|
16
|
+
areas: any;
|
|
17
17
|
} & {
|
|
18
18
|
driver: any;
|
|
19
19
|
}>;
|
|
20
20
|
declare const validateAnnouncement: ajv.ValidateFunction<{
|
|
21
|
-
type: any;
|
|
22
21
|
id: any;
|
|
23
|
-
body: any;
|
|
24
|
-
} & {
|
|
25
22
|
type: any;
|
|
23
|
+
body: any;
|
|
26
24
|
} & {
|
|
27
25
|
id: any;
|
|
26
|
+
} & {
|
|
27
|
+
type: any;
|
|
28
28
|
} & {
|
|
29
29
|
body: any;
|
|
30
30
|
}>;
|
|
31
31
|
declare const validateAutomation: ajv.ValidateFunction<{
|
|
32
|
-
type: any;
|
|
33
32
|
id: any;
|
|
33
|
+
type: any;
|
|
34
34
|
trigger: any;
|
|
35
35
|
actions: any;
|
|
36
|
-
} & {
|
|
37
|
-
type: any;
|
|
38
36
|
} & {
|
|
39
37
|
id: any;
|
|
38
|
+
} & {
|
|
39
|
+
type: any;
|
|
40
40
|
} & {
|
|
41
41
|
trigger: any;
|
|
42
42
|
} & {
|
|
43
43
|
actions: any;
|
|
44
44
|
}>;
|
|
45
45
|
declare const validateCamera: ajv.ValidateFunction<{
|
|
46
|
-
type: any;
|
|
47
46
|
id: any;
|
|
48
|
-
driver: any;
|
|
49
|
-
} & {
|
|
50
47
|
type: any;
|
|
48
|
+
driver: any;
|
|
51
49
|
} & {
|
|
52
50
|
id: any;
|
|
51
|
+
} & {
|
|
52
|
+
type: any;
|
|
53
53
|
} & {
|
|
54
54
|
driver: any;
|
|
55
55
|
}>;
|
|
56
56
|
declare const validateCategory: ajv.ValidateFunction<{
|
|
57
|
-
type: any;
|
|
58
57
|
id: any;
|
|
59
|
-
discriminator: any;
|
|
60
|
-
} & {
|
|
61
58
|
type: any;
|
|
59
|
+
discriminator: any;
|
|
62
60
|
} & {
|
|
63
61
|
id: any;
|
|
62
|
+
} & {
|
|
63
|
+
type: any;
|
|
64
64
|
} & {
|
|
65
65
|
discriminator: any;
|
|
66
66
|
}>;
|
|
67
67
|
declare const validateCourtesy: ajv.ValidateFunction<{
|
|
68
|
-
type: any;
|
|
69
68
|
id: any;
|
|
69
|
+
type: any;
|
|
70
|
+
state: any;
|
|
70
71
|
driver: any;
|
|
71
72
|
supportedStates: any;
|
|
72
|
-
|
|
73
|
+
} & {
|
|
74
|
+
id: any;
|
|
73
75
|
} & {
|
|
74
76
|
type: any;
|
|
75
77
|
} & {
|
|
76
|
-
|
|
78
|
+
state: any;
|
|
77
79
|
} & {
|
|
78
80
|
driver: any;
|
|
79
81
|
} & {
|
|
80
82
|
supportedStates: any;
|
|
81
|
-
} & {
|
|
82
|
-
state: any;
|
|
83
83
|
}>;
|
|
84
84
|
declare const validateCredential: ajv.ValidateFunction<{
|
|
85
|
-
type: any;
|
|
86
85
|
id: any;
|
|
87
|
-
credential: any;
|
|
88
86
|
expires: any;
|
|
89
|
-
} & {
|
|
90
87
|
type: any;
|
|
88
|
+
credential: any;
|
|
91
89
|
} & {
|
|
92
90
|
id: any;
|
|
93
|
-
} & {
|
|
94
|
-
credential: any;
|
|
95
91
|
} & {
|
|
96
92
|
expires: any;
|
|
93
|
+
} & {
|
|
94
|
+
type: any;
|
|
95
|
+
} & {
|
|
96
|
+
credential: any;
|
|
97
97
|
}>;
|
|
98
98
|
declare const validateDepartment: ajv.ValidateFunction<{
|
|
99
|
-
name: any;
|
|
100
|
-
type: any;
|
|
101
99
|
id: any;
|
|
102
|
-
|
|
100
|
+
type: any;
|
|
103
101
|
name: any;
|
|
102
|
+
} & {
|
|
103
|
+
id: any;
|
|
104
104
|
} & {
|
|
105
105
|
type: any;
|
|
106
106
|
} & {
|
|
107
|
-
|
|
107
|
+
name: any;
|
|
108
108
|
}>;
|
|
109
109
|
declare const validateDimmer: ajv.ValidateFunction<{
|
|
110
|
-
type: any;
|
|
111
110
|
id: any;
|
|
112
|
-
driver: any;
|
|
113
|
-
level: any;
|
|
114
|
-
} & {
|
|
115
111
|
type: any;
|
|
112
|
+
level: any;
|
|
113
|
+
driver: any;
|
|
116
114
|
} & {
|
|
117
115
|
id: any;
|
|
118
116
|
} & {
|
|
119
|
-
|
|
117
|
+
type: any;
|
|
120
118
|
} & {
|
|
121
119
|
level: any;
|
|
120
|
+
} & {
|
|
121
|
+
driver: any;
|
|
122
122
|
}>;
|
|
123
123
|
declare const validateDiscoveredDevice: ajv.ValidateFunction<{
|
|
124
|
-
name: any;
|
|
125
124
|
id: any;
|
|
126
|
-
discriminator: any;
|
|
127
125
|
deviceId: any;
|
|
128
|
-
deviceData: any;
|
|
129
|
-
} & {
|
|
130
126
|
name: any;
|
|
127
|
+
discriminator: any;
|
|
128
|
+
deviceData: any;
|
|
131
129
|
} & {
|
|
132
130
|
id: any;
|
|
133
|
-
} & {
|
|
134
|
-
discriminator: any;
|
|
135
131
|
} & {
|
|
136
132
|
deviceId: any;
|
|
133
|
+
} & {
|
|
134
|
+
name: any;
|
|
135
|
+
} & {
|
|
136
|
+
discriminator: any;
|
|
137
137
|
} & {
|
|
138
138
|
deviceData: any;
|
|
139
139
|
}>;
|
|
140
140
|
declare const validateEmailMessage: ajv.ValidateFunction<{
|
|
141
|
-
type: any;
|
|
142
|
-
status: any;
|
|
143
141
|
id: any;
|
|
142
|
+
type: any;
|
|
144
143
|
to: any;
|
|
145
144
|
from: any;
|
|
146
145
|
subject: any;
|
|
147
|
-
} & {
|
|
148
|
-
type: any;
|
|
149
|
-
} & {
|
|
150
146
|
status: any;
|
|
151
147
|
} & {
|
|
152
148
|
id: any;
|
|
149
|
+
} & {
|
|
150
|
+
type: any;
|
|
153
151
|
} & {
|
|
154
152
|
to: any;
|
|
155
153
|
} & {
|
|
156
154
|
from: any;
|
|
157
155
|
} & {
|
|
158
156
|
subject: any;
|
|
157
|
+
} & {
|
|
158
|
+
status: any;
|
|
159
159
|
}>;
|
|
160
160
|
declare const validateEnergyReport: ajv.ValidateFunction<{
|
|
161
|
-
type: any;
|
|
162
161
|
id: any;
|
|
162
|
+
type: any;
|
|
163
163
|
roomId: any;
|
|
164
164
|
first: any;
|
|
165
165
|
last: any;
|
|
166
166
|
consumption: any;
|
|
167
167
|
totals: any;
|
|
168
168
|
costPerKw: any;
|
|
169
|
-
} & {
|
|
170
|
-
type: any;
|
|
171
169
|
} & {
|
|
172
170
|
id: any;
|
|
171
|
+
} & {
|
|
172
|
+
type: any;
|
|
173
173
|
} & {
|
|
174
174
|
roomId: any;
|
|
175
175
|
} & {
|
|
@@ -184,22 +184,22 @@ declare const validateEnergyReport: ajv.ValidateFunction<{
|
|
|
184
184
|
costPerKw: any;
|
|
185
185
|
}>;
|
|
186
186
|
declare const validateEnergyReportShard: ajv.ValidateFunction<{
|
|
187
|
-
type: any;
|
|
188
187
|
data: any;
|
|
189
188
|
id: any;
|
|
190
189
|
expires: any;
|
|
190
|
+
type: any;
|
|
191
191
|
roomId: any;
|
|
192
192
|
first: any;
|
|
193
193
|
last: any;
|
|
194
194
|
ndata: any;
|
|
195
|
-
} & {
|
|
196
|
-
type: any;
|
|
197
195
|
} & {
|
|
198
196
|
data: any;
|
|
199
197
|
} & {
|
|
200
198
|
id: any;
|
|
201
199
|
} & {
|
|
202
200
|
expires: any;
|
|
201
|
+
} & {
|
|
202
|
+
type: any;
|
|
203
203
|
} & {
|
|
204
204
|
roomId: any;
|
|
205
205
|
} & {
|
|
@@ -210,30 +210,30 @@ declare const validateEnergyReportShard: ajv.ValidateFunction<{
|
|
|
210
210
|
ndata: any;
|
|
211
211
|
}>;
|
|
212
212
|
declare const validateGateway: ajv.ValidateFunction<{
|
|
213
|
+
id: any;
|
|
213
214
|
type: any;
|
|
214
215
|
status: any;
|
|
215
|
-
id: any;
|
|
216
216
|
driver: any;
|
|
217
|
+
} & {
|
|
218
|
+
id: any;
|
|
217
219
|
} & {
|
|
218
220
|
type: any;
|
|
219
221
|
} & {
|
|
220
222
|
status: any;
|
|
221
|
-
} & {
|
|
222
|
-
id: any;
|
|
223
223
|
} & {
|
|
224
224
|
driver: any;
|
|
225
225
|
}>;
|
|
226
226
|
declare const validateGroup: ajv.ValidateFunction<{
|
|
227
|
-
name: any;
|
|
228
|
-
type: any;
|
|
229
227
|
id: any;
|
|
228
|
+
type: any;
|
|
229
|
+
name: any;
|
|
230
230
|
kind: any;
|
|
231
231
|
} & {
|
|
232
|
-
|
|
232
|
+
id: any;
|
|
233
233
|
} & {
|
|
234
234
|
type: any;
|
|
235
235
|
} & {
|
|
236
|
-
|
|
236
|
+
name: any;
|
|
237
237
|
} & {
|
|
238
238
|
kind: any;
|
|
239
239
|
}>;
|
|
@@ -245,86 +245,86 @@ declare const validateIdentification: ajv.ValidateFunction<{
|
|
|
245
245
|
type: any;
|
|
246
246
|
}>;
|
|
247
247
|
declare const validateIntegration: ajv.ValidateFunction<{
|
|
248
|
-
type: any;
|
|
249
248
|
id: any;
|
|
250
|
-
|
|
251
|
-
systemPhoto: any;
|
|
249
|
+
type: any;
|
|
252
250
|
createdAt: any;
|
|
253
251
|
updatedAt: any;
|
|
254
|
-
|
|
255
|
-
|
|
252
|
+
systemName: any;
|
|
253
|
+
systemPhoto: any;
|
|
256
254
|
} & {
|
|
257
255
|
id: any;
|
|
258
256
|
} & {
|
|
259
|
-
|
|
260
|
-
} & {
|
|
261
|
-
systemPhoto: any;
|
|
257
|
+
type: any;
|
|
262
258
|
} & {
|
|
263
259
|
createdAt: any;
|
|
264
260
|
} & {
|
|
265
261
|
updatedAt: any;
|
|
262
|
+
} & {
|
|
263
|
+
systemName: any;
|
|
264
|
+
} & {
|
|
265
|
+
systemPhoto: any;
|
|
266
266
|
}>;
|
|
267
267
|
declare const validateIssue: ajv.ValidateFunction<{
|
|
268
|
-
name: any;
|
|
269
|
-
type: any;
|
|
270
268
|
id: any;
|
|
271
|
-
|
|
269
|
+
type: any;
|
|
272
270
|
name: any;
|
|
271
|
+
} & {
|
|
272
|
+
id: any;
|
|
273
273
|
} & {
|
|
274
274
|
type: any;
|
|
275
275
|
} & {
|
|
276
|
-
|
|
276
|
+
name: any;
|
|
277
277
|
}>;
|
|
278
278
|
declare const validateLock: ajv.ValidateFunction<{
|
|
279
|
-
type: any;
|
|
280
279
|
id: any;
|
|
281
|
-
driver: any;
|
|
282
|
-
state: any;
|
|
283
|
-
} & {
|
|
284
280
|
type: any;
|
|
281
|
+
state: any;
|
|
282
|
+
driver: any;
|
|
285
283
|
} & {
|
|
286
284
|
id: any;
|
|
287
285
|
} & {
|
|
288
|
-
|
|
286
|
+
type: any;
|
|
289
287
|
} & {
|
|
290
288
|
state: any;
|
|
289
|
+
} & {
|
|
290
|
+
driver: any;
|
|
291
291
|
}>;
|
|
292
292
|
declare const validateLog: ajv.ValidateFunction<{
|
|
293
|
-
name: any;
|
|
294
|
-
type: any;
|
|
295
293
|
id: any;
|
|
294
|
+
type: any;
|
|
295
|
+
name: any;
|
|
296
296
|
driver: any;
|
|
297
297
|
timestamp: any;
|
|
298
298
|
} & {
|
|
299
|
-
|
|
299
|
+
id: any;
|
|
300
300
|
} & {
|
|
301
301
|
type: any;
|
|
302
302
|
} & {
|
|
303
|
-
|
|
303
|
+
name: any;
|
|
304
304
|
} & {
|
|
305
305
|
driver: any;
|
|
306
306
|
} & {
|
|
307
307
|
timestamp: any;
|
|
308
308
|
}>;
|
|
309
309
|
declare const validateMediaFile: ajv.ValidateFunction<{
|
|
310
|
-
type: any;
|
|
311
310
|
id: any;
|
|
312
|
-
} & {
|
|
313
311
|
type: any;
|
|
314
312
|
} & {
|
|
315
313
|
id: any;
|
|
314
|
+
} & {
|
|
315
|
+
type: any;
|
|
316
316
|
}>;
|
|
317
317
|
declare const validateMediaSource: ajv.ValidateFunction<{
|
|
318
|
-
type: any;
|
|
319
318
|
id: any;
|
|
319
|
+
type: any;
|
|
320
320
|
driver: any;
|
|
321
321
|
discriminator: any;
|
|
322
322
|
audio: any;
|
|
323
323
|
video: any;
|
|
324
|
-
} & {
|
|
325
|
-
type: any;
|
|
326
324
|
} & {
|
|
327
325
|
id: any;
|
|
326
|
+
} & {
|
|
327
|
+
type: any;
|
|
328
328
|
} & {
|
|
329
329
|
driver: any;
|
|
330
330
|
} & {
|
|
@@ -335,25 +335,25 @@ declare const validateMediaSource: ajv.ValidateFunction<{
|
|
|
335
335
|
video: any;
|
|
336
336
|
}>;
|
|
337
337
|
declare const validateMotionSensor: ajv.ValidateFunction<{
|
|
338
|
-
type: any;
|
|
339
338
|
id: any;
|
|
340
|
-
driver: any;
|
|
341
|
-
} & {
|
|
342
339
|
type: any;
|
|
340
|
+
driver: any;
|
|
343
341
|
} & {
|
|
344
342
|
id: any;
|
|
343
|
+
} & {
|
|
344
|
+
type: any;
|
|
345
345
|
} & {
|
|
346
346
|
driver: any;
|
|
347
347
|
}>;
|
|
348
348
|
declare const validateNotification: ajv.ValidateFunction<{
|
|
349
|
-
type: any;
|
|
350
349
|
id: any;
|
|
350
|
+
type: any;
|
|
351
351
|
discriminator: any;
|
|
352
352
|
content: any;
|
|
353
|
-
} & {
|
|
354
|
-
type: any;
|
|
355
353
|
} & {
|
|
356
354
|
id: any;
|
|
355
|
+
} & {
|
|
356
|
+
type: any;
|
|
357
357
|
} & {
|
|
358
358
|
discriminator: any;
|
|
359
359
|
} & {
|
|
@@ -368,50 +368,50 @@ declare const validateOrder: ajv.ValidateFunction<{
|
|
|
368
368
|
status: any;
|
|
369
369
|
}>;
|
|
370
370
|
declare const validateOrganization: ajv.ValidateFunction<{
|
|
371
|
-
name: any;
|
|
372
|
-
type: any;
|
|
373
371
|
id: any;
|
|
372
|
+
type: any;
|
|
373
|
+
name: any;
|
|
374
374
|
accountNumber: any;
|
|
375
375
|
} & {
|
|
376
|
-
|
|
376
|
+
id: any;
|
|
377
377
|
} & {
|
|
378
378
|
type: any;
|
|
379
379
|
} & {
|
|
380
|
-
|
|
380
|
+
name: any;
|
|
381
381
|
} & {
|
|
382
382
|
accountNumber: any;
|
|
383
383
|
}>;
|
|
384
384
|
declare const validatePayment: ajv.ValidateFunction<{
|
|
385
|
-
type: any;
|
|
386
385
|
expires: any;
|
|
387
|
-
maskedNumber: any;
|
|
388
|
-
} & {
|
|
389
386
|
type: any;
|
|
387
|
+
maskedNumber: any;
|
|
390
388
|
} & {
|
|
391
389
|
expires: any;
|
|
390
|
+
} & {
|
|
391
|
+
type: any;
|
|
392
392
|
} & {
|
|
393
393
|
maskedNumber: any;
|
|
394
394
|
}>;
|
|
395
395
|
declare const validatePolicy: ajv.ValidateFunction<{
|
|
396
|
-
name: any;
|
|
397
|
-
type: any;
|
|
398
396
|
id: any;
|
|
399
|
-
|
|
397
|
+
type: any;
|
|
400
398
|
organizationId: any;
|
|
401
399
|
propertyId: any;
|
|
402
|
-
permissions: any;
|
|
403
|
-
} & {
|
|
404
400
|
name: any;
|
|
405
|
-
|
|
406
|
-
|
|
401
|
+
discriminator: any;
|
|
402
|
+
permissions: any;
|
|
407
403
|
} & {
|
|
408
404
|
id: any;
|
|
409
405
|
} & {
|
|
410
|
-
|
|
406
|
+
type: any;
|
|
411
407
|
} & {
|
|
412
408
|
organizationId: any;
|
|
413
409
|
} & {
|
|
414
410
|
propertyId: any;
|
|
411
|
+
} & {
|
|
412
|
+
name: any;
|
|
413
|
+
} & {
|
|
414
|
+
discriminator: any;
|
|
415
415
|
} & {
|
|
416
416
|
permissions: any;
|
|
417
417
|
}>;
|
|
@@ -427,18 +427,18 @@ declare const validateProduct: ajv.ValidateFunction<{
|
|
|
427
427
|
price: any;
|
|
428
428
|
}>;
|
|
429
429
|
declare const validateProperty: ajv.ValidateFunction<{
|
|
430
|
-
name: any;
|
|
431
|
-
type: any;
|
|
432
430
|
id: any;
|
|
431
|
+
type: any;
|
|
432
|
+
name: any;
|
|
433
433
|
discriminator: any;
|
|
434
434
|
timezone: any;
|
|
435
435
|
organization: any;
|
|
436
436
|
} & {
|
|
437
|
-
|
|
437
|
+
id: any;
|
|
438
438
|
} & {
|
|
439
439
|
type: any;
|
|
440
440
|
} & {
|
|
441
|
-
|
|
441
|
+
name: any;
|
|
442
442
|
} & {
|
|
443
443
|
discriminator: any;
|
|
444
444
|
} & {
|
|
@@ -461,89 +461,89 @@ declare const validateReservation: ajv.ValidateFunction<{
|
|
|
461
461
|
checkOutDateTime: any;
|
|
462
462
|
}>;
|
|
463
463
|
declare const validateServer: ajv.ValidateFunction<{
|
|
464
|
-
type: any;
|
|
465
464
|
id: any;
|
|
466
|
-
} & {
|
|
467
465
|
type: any;
|
|
468
466
|
} & {
|
|
469
467
|
id: any;
|
|
468
|
+
} & {
|
|
469
|
+
type: any;
|
|
470
470
|
}>;
|
|
471
471
|
declare const validateSession: ajv.ValidateFunction<{
|
|
472
|
-
type: any;
|
|
473
472
|
id: any;
|
|
474
473
|
expires: any;
|
|
474
|
+
type: any;
|
|
475
475
|
userId: any;
|
|
476
476
|
userAgent: any;
|
|
477
|
-
} & {
|
|
478
|
-
type: any;
|
|
479
477
|
} & {
|
|
480
478
|
id: any;
|
|
481
479
|
} & {
|
|
482
480
|
expires: any;
|
|
481
|
+
} & {
|
|
482
|
+
type: any;
|
|
483
483
|
} & {
|
|
484
484
|
userId: any;
|
|
485
485
|
} & {
|
|
486
486
|
userAgent: any;
|
|
487
487
|
}>;
|
|
488
488
|
declare const validateShortLink: ajv.ValidateFunction<{
|
|
489
|
-
destination: any;
|
|
490
489
|
url: any;
|
|
491
|
-
} & {
|
|
492
490
|
destination: any;
|
|
493
491
|
} & {
|
|
494
492
|
url: any;
|
|
493
|
+
} & {
|
|
494
|
+
destination: any;
|
|
495
495
|
}>;
|
|
496
496
|
declare const validateSmsMessage: ajv.ValidateFunction<{
|
|
497
|
-
type: any;
|
|
498
|
-
status: any;
|
|
499
497
|
id: any;
|
|
498
|
+
type: any;
|
|
500
499
|
to: any;
|
|
501
500
|
from: any;
|
|
502
|
-
} & {
|
|
503
|
-
type: any;
|
|
504
|
-
} & {
|
|
505
501
|
status: any;
|
|
506
502
|
} & {
|
|
507
503
|
id: any;
|
|
504
|
+
} & {
|
|
505
|
+
type: any;
|
|
508
506
|
} & {
|
|
509
507
|
to: any;
|
|
510
508
|
} & {
|
|
511
509
|
from: any;
|
|
510
|
+
} & {
|
|
511
|
+
status: any;
|
|
512
512
|
}>;
|
|
513
513
|
declare const validateSpace: ajv.ValidateFunction<{
|
|
514
|
-
name: any;
|
|
515
|
-
type: any;
|
|
516
514
|
id: any;
|
|
517
|
-
|
|
515
|
+
type: any;
|
|
518
516
|
name: any;
|
|
517
|
+
} & {
|
|
518
|
+
id: any;
|
|
519
519
|
} & {
|
|
520
520
|
type: any;
|
|
521
521
|
} & {
|
|
522
|
-
|
|
522
|
+
name: any;
|
|
523
523
|
}>;
|
|
524
524
|
declare const validateSwitch: ajv.ValidateFunction<{
|
|
525
|
-
type: any;
|
|
526
525
|
id: any;
|
|
527
|
-
driver: any;
|
|
528
|
-
state: any;
|
|
529
|
-
} & {
|
|
530
526
|
type: any;
|
|
527
|
+
state: any;
|
|
528
|
+
driver: any;
|
|
531
529
|
} & {
|
|
532
530
|
id: any;
|
|
533
531
|
} & {
|
|
534
|
-
|
|
532
|
+
type: any;
|
|
535
533
|
} & {
|
|
536
534
|
state: any;
|
|
535
|
+
} & {
|
|
536
|
+
driver: any;
|
|
537
537
|
}>;
|
|
538
538
|
declare const validateSystem: ajv.ValidateFunction<{
|
|
539
|
-
type: any;
|
|
540
539
|
id: any;
|
|
540
|
+
type: any;
|
|
541
541
|
driver: any;
|
|
542
542
|
entities: any;
|
|
543
|
-
} & {
|
|
544
|
-
type: any;
|
|
545
543
|
} & {
|
|
546
544
|
id: any;
|
|
545
|
+
} & {
|
|
546
|
+
type: any;
|
|
547
547
|
} & {
|
|
548
548
|
driver: any;
|
|
549
549
|
} & {
|
|
@@ -561,33 +561,33 @@ declare const validateSystemUser: ajv.ValidateFunction<{
|
|
|
561
561
|
lastName: any;
|
|
562
562
|
}>;
|
|
563
563
|
declare const validateThermostat: ajv.ValidateFunction<{
|
|
564
|
-
type: any;
|
|
565
564
|
id: any;
|
|
566
|
-
|
|
565
|
+
type: any;
|
|
566
|
+
setpoints: any;
|
|
567
567
|
hvacMode: any;
|
|
568
568
|
fanMode: any;
|
|
569
|
+
driver: any;
|
|
569
570
|
hvacState: any;
|
|
570
571
|
fanState: any;
|
|
571
|
-
setpoints: any;
|
|
572
572
|
temperatureScale: any;
|
|
573
573
|
supportedHvacModes: any;
|
|
574
574
|
supportedFanModes: any;
|
|
575
|
-
} & {
|
|
576
|
-
type: any;
|
|
577
575
|
} & {
|
|
578
576
|
id: any;
|
|
579
577
|
} & {
|
|
580
|
-
|
|
578
|
+
type: any;
|
|
579
|
+
} & {
|
|
580
|
+
setpoints: any;
|
|
581
581
|
} & {
|
|
582
582
|
hvacMode: any;
|
|
583
583
|
} & {
|
|
584
584
|
fanMode: any;
|
|
585
|
+
} & {
|
|
586
|
+
driver: any;
|
|
585
587
|
} & {
|
|
586
588
|
hvacState: any;
|
|
587
589
|
} & {
|
|
588
590
|
fanState: any;
|
|
589
|
-
} & {
|
|
590
|
-
setpoints: any;
|
|
591
591
|
} & {
|
|
592
592
|
temperatureScale: any;
|
|
593
593
|
} & {
|
|
@@ -596,8 +596,9 @@ declare const validateThermostat: ajv.ValidateFunction<{
|
|
|
596
596
|
supportedFanModes: any;
|
|
597
597
|
}>;
|
|
598
598
|
declare const validateTicket: ajv.ValidateFunction<{
|
|
599
|
-
status: any;
|
|
600
599
|
id: any;
|
|
600
|
+
status: any;
|
|
601
|
+
tags: any;
|
|
601
602
|
createdAt: any;
|
|
602
603
|
updatedAt: any;
|
|
603
604
|
conversation: any;
|
|
@@ -605,11 +606,12 @@ declare const validateTicket: ajv.ValidateFunction<{
|
|
|
605
606
|
openedBy: any;
|
|
606
607
|
assignedTo: any;
|
|
607
608
|
priority: any;
|
|
608
|
-
|
|
609
|
+
} & {
|
|
610
|
+
id: any;
|
|
609
611
|
} & {
|
|
610
612
|
status: any;
|
|
611
613
|
} & {
|
|
612
|
-
|
|
614
|
+
tags: any;
|
|
613
615
|
} & {
|
|
614
616
|
createdAt: any;
|
|
615
617
|
} & {
|
|
@@ -624,18 +626,16 @@ declare const validateTicket: ajv.ValidateFunction<{
|
|
|
624
626
|
assignedTo: any;
|
|
625
627
|
} & {
|
|
626
628
|
priority: any;
|
|
627
|
-
} & {
|
|
628
|
-
tags: any;
|
|
629
629
|
}>;
|
|
630
630
|
declare const validateTimeSheet: ajv.ValidateFunction<{
|
|
631
|
-
type: any;
|
|
632
631
|
id: any;
|
|
632
|
+
type: any;
|
|
633
633
|
userId: any;
|
|
634
634
|
day: any;
|
|
635
|
-
} & {
|
|
636
|
-
type: any;
|
|
637
635
|
} & {
|
|
638
636
|
id: any;
|
|
637
|
+
} & {
|
|
638
|
+
type: any;
|
|
639
639
|
} & {
|
|
640
640
|
userId: any;
|
|
641
641
|
} & {
|
|
@@ -653,29 +653,29 @@ declare const validateUser: ajv.ValidateFunction<{
|
|
|
653
653
|
lastName: any;
|
|
654
654
|
}>;
|
|
655
655
|
declare const validateVendor: ajv.ValidateFunction<{
|
|
656
|
-
name: any;
|
|
657
656
|
id: any;
|
|
658
657
|
email: any;
|
|
659
|
-
} & {
|
|
660
658
|
name: any;
|
|
661
659
|
} & {
|
|
662
660
|
id: any;
|
|
663
661
|
} & {
|
|
664
662
|
email: any;
|
|
663
|
+
} & {
|
|
664
|
+
name: any;
|
|
665
665
|
}>;
|
|
666
666
|
declare const validateWindowCovering: ajv.ValidateFunction<{
|
|
667
|
-
type: any;
|
|
668
667
|
id: any;
|
|
669
|
-
driver: any;
|
|
670
|
-
position: any;
|
|
671
|
-
} & {
|
|
672
668
|
type: any;
|
|
669
|
+
position: any;
|
|
670
|
+
driver: any;
|
|
673
671
|
} & {
|
|
674
672
|
id: any;
|
|
675
673
|
} & {
|
|
676
|
-
|
|
674
|
+
type: any;
|
|
677
675
|
} & {
|
|
678
676
|
position: any;
|
|
677
|
+
} & {
|
|
678
|
+
driver: any;
|
|
679
679
|
}>;
|
|
680
680
|
|
|
681
681
|
export { validateAlarm, validateAnnouncement, validateAutomation, validateCamera, validateCategory, validateCourtesy, validateCredential, validateDepartment, validateDimmer, validateDiscoveredDevice, validateEmailMessage, validateEnergyReport, validateEnergyReportShard, validateGateway, validateGroup, validateIdentification, validateIntegration, validateIssue, validateLock, validateLog, validateMediaFile, validateMediaSource, validateMotionSensor, validateNotification, validateOrder, validateOrganization, validatePayment, validatePolicy, validateProduct, validateProperty, validateReservation, validateServer, validateSession, validateShortLink, validateSmsMessage, validateSpace, validateSwitch, validateSystem, validateSystemUser, validateThermostat, validateTicket, validateTimeSheet, validateUser, validateVendor, validateWindowCovering };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kohost/api-client",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "API client, models, schemas, commands, and events for Kohost applications",
|
|
5
5
|
"author": "Ian Rogers",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -74,14 +74,17 @@
|
|
|
74
74
|
"scripts": {
|
|
75
75
|
"test": "jest",
|
|
76
76
|
"test:watch": "jest --watchAll",
|
|
77
|
-
"lint": "eslint",
|
|
78
|
-
"lint:fix": "eslint --fix ./",
|
|
79
|
-
"prepare": "husky",
|
|
77
|
+
"lint": "eslint --cache --cache-location node_modules/.cache/eslint/",
|
|
78
|
+
"lint:fix": "eslint --fix --cache --cache-location node_modules/.cache/eslint/ ./",
|
|
79
|
+
"prepare": "husky || true",
|
|
80
80
|
"prebuild": "npm run generate-models",
|
|
81
81
|
"build": "tsup",
|
|
82
|
+
"check-types": "npm run generate-models && tsc -p tsconfig.check.json",
|
|
83
|
+
"prepublishOnly": "npm run build",
|
|
82
84
|
"generate-models": "tsx scripts/generate-source-models.js",
|
|
83
85
|
"clean:generated": "rm -rf .generated",
|
|
84
|
-
"
|
|
86
|
+
"dev": "node scripts/dev-watcher.mjs",
|
|
87
|
+
"start": "node scripts/dev-watcher.mjs",
|
|
85
88
|
"clean": "rm -rf ./dist ./.generated",
|
|
86
89
|
"tsc": "tsc",
|
|
87
90
|
"tsup": "tsup"
|
|
@@ -90,11 +93,14 @@
|
|
|
90
93
|
"dist",
|
|
91
94
|
"README.md"
|
|
92
95
|
],
|
|
96
|
+
"publishConfig": {
|
|
97
|
+
"access": "public"
|
|
98
|
+
},
|
|
93
99
|
"devDependencies": {
|
|
94
100
|
"@eslint/js": "^10.0.1",
|
|
95
101
|
"@types/debug": "^4.1.12",
|
|
96
102
|
"@types/events": "^3.0.3",
|
|
97
|
-
"@types/node": "^22.
|
|
103
|
+
"@types/node": "^22.19.19",
|
|
98
104
|
"eslint": "^10.0.0",
|
|
99
105
|
"eslint-config-prettier": "^10.1.8",
|
|
100
106
|
"globals": "^17.3.0",
|
|
@@ -103,15 +109,15 @@
|
|
|
103
109
|
"lint-staged": "^16.2.7",
|
|
104
110
|
"prettier": "^3.0.3",
|
|
105
111
|
"tsup": "^8.3.5",
|
|
106
|
-
"tsx": "^4.
|
|
107
|
-
"typescript": "^
|
|
112
|
+
"tsx": "^4.22.0",
|
|
113
|
+
"typescript": "^6.0.3"
|
|
108
114
|
},
|
|
109
115
|
"dependencies": {
|
|
110
116
|
"ajv": "^8.11.0",
|
|
111
117
|
"ajv-formats": "^3.0.1"
|
|
112
118
|
},
|
|
113
119
|
"optionalDependencies": {
|
|
114
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
120
|
+
"@rollup/rollup-linux-x64-gnu": "4.60.3"
|
|
115
121
|
},
|
|
116
122
|
"lint-staged": {
|
|
117
123
|
"*.js": "eslint --cache --fix",
|