@kohost/api-client 7.24.0 → 7.25.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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/__typecheck_regression__.d.ts +1 -0
- package/dist/models/conciergeWorkspaceBill.d.ts +17 -0
- package/dist/models/order.d.ts +17 -0
- package/dist/models/system.js +2 -0
- package/dist/models/system.js.map +1 -1
- package/dist/schemas/conciergeWorkspaceBill.d.ts +156 -0
- package/dist/schemas/order.d.ts +186 -0
- package/dist/schemas/system.d.ts +33 -0
- package/dist/schemas/system.js +25 -0
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/thermostat.d.ts +0 -1
- package/dist/schemas/thermostat.js +1 -2
- package/dist/schemas/thermostat.js.map +1 -1
- package/dist/useCases/describeConciergeBillsSummary.d.ts +27 -0
- package/dist/useCases/listConciergeWorkspaceBillLines.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare const mustBeAString: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Entity } from "./entity.js";
|
|
2
|
+
import { validateConciergeWorkspaceBill as validate } from "../validate.js";
|
|
3
|
+
import { conciergeWorkspaceBillSchema, type ConciergeWorkspaceBillSchema } from "../schemas/conciergeWorkspaceBill.js";
|
|
4
|
+
/**
|
|
5
|
+
* Data type for ConciergeWorkspaceBill constructor - exported for backwards compatibility
|
|
6
|
+
*/
|
|
7
|
+
export type ConciergeWorkspaceBillData = ConciergeWorkspaceBillSchema;
|
|
8
|
+
/**
|
|
9
|
+
* One row of the cross-organization OneBill invoices view: a bill summary with its organization resolved and its total derived.
|
|
10
|
+
*/
|
|
11
|
+
export interface ConciergeWorkspaceBill extends ConciergeWorkspaceBillSchema {
|
|
12
|
+
}
|
|
13
|
+
export declare class ConciergeWorkspaceBill extends Entity {
|
|
14
|
+
schema: typeof conciergeWorkspaceBillSchema;
|
|
15
|
+
validator: typeof validate;
|
|
16
|
+
constructor(data: ConciergeWorkspaceBillSchema);
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Entity } from "./entity.js";
|
|
2
|
+
import { validateOrder as validate } from "../validate.js";
|
|
3
|
+
import { orderSchema, type OrderSchema } from "../schemas/order.js";
|
|
4
|
+
/**
|
|
5
|
+
* Data type for Order constructor - exported for backwards compatibility
|
|
6
|
+
*/
|
|
7
|
+
export type OrderData = OrderSchema;
|
|
8
|
+
/**
|
|
9
|
+
* A purchase order for products or services.
|
|
10
|
+
*/
|
|
11
|
+
export interface Order extends OrderSchema {
|
|
12
|
+
}
|
|
13
|
+
export declare class Order extends Entity {
|
|
14
|
+
schema: typeof orderSchema;
|
|
15
|
+
validator: typeof validate;
|
|
16
|
+
constructor(data: OrderSchema);
|
|
17
|
+
}
|
package/dist/models/system.js
CHANGED
|
@@ -19,6 +19,8 @@ var System = class extends Entity {
|
|
|
19
19
|
if (data.contactInfo !== void 0) this.contactInfo = data.contactInfo;
|
|
20
20
|
if (data.emergency !== void 0) this.emergency = data.emergency;
|
|
21
21
|
if (data.supportedEmergencies !== void 0) this.supportedEmergencies = data.supportedEmergencies;
|
|
22
|
+
if (data.trippedSensors !== void 0) this.trippedSensors = data.trippedSensors;
|
|
23
|
+
if (data.supportedSensors !== void 0) this.supportedSensors = data.supportedSensors;
|
|
22
24
|
if (data.health !== void 0) this.health = data.health;
|
|
23
25
|
if (data.syncedAt !== void 0) this.syncedAt = data.syncedAt;
|
|
24
26
|
if (data.createdAt !== void 0) this.createdAt = data.createdAt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","names":["validate"],"sources":["../../.generated/models/system.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateSystem as validate } from \"../validate.js\";\nimport { systemSchema, type SystemSchema } from \"../schemas/system.js\";\n\n/**\n * Data type for System constructor - exported for backwards compatibility\n */\nexport type SystemData = SystemSchema;\n\n/**\n * System\n */\nexport interface System extends SystemSchema {}\nexport class System extends Entity {\n declare schema: typeof systemSchema;\n declare validator: typeof validate;\n\n constructor(data: SystemSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n if (data.categories !== undefined) this.categories = data.categories;\n if (data.name !== undefined) this.name = data.name;\n this.driver = data.driver;\n if (data.organizationId !== undefined) this.organizationId = data.organizationId;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.entities = data.entities;\n if (data.driverApiVersion !== undefined) this.driverApiVersion = data.driverApiVersion;\n if (data.logo !== undefined) this.logo = data.logo;\n if (data.config !== undefined) this.config = data.config;\n if (data.contactInfo !== undefined) this.contactInfo = data.contactInfo;\n if (data.emergency !== undefined) this.emergency = data.emergency;\n if (data.supportedEmergencies !== undefined) this.supportedEmergencies = data.supportedEmergencies;\n if (data.health !== undefined) this.health = data.health;\n if (data.syncedAt !== undefined) this.syncedAt = data.syncedAt;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(System.prototype, \"schema\", {\n value: systemSchema\n});\n\nObject.defineProperty(System.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,mBAAmB,KAAA,GAAW,KAAK,iBAAiB,KAAK;EAClE,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,WAAW,KAAK;EACrB,IAAI,KAAK,qBAAqB,KAAA,GAAW,KAAK,mBAAmB,KAAK;EACtE,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,yBAAyB,KAAA,GAAW,KAAK,uBAAuB,KAAK;EAC9E,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AASF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
|
|
1
|
+
{"version":3,"file":"system.js","names":["validate"],"sources":["../../.generated/models/system.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateSystem as validate } from \"../validate.js\";\nimport { systemSchema, type SystemSchema } from \"../schemas/system.js\";\n\n/**\n * Data type for System constructor - exported for backwards compatibility\n */\nexport type SystemData = SystemSchema;\n\n/**\n * System\n */\nexport interface System extends SystemSchema {}\nexport class System extends Entity {\n declare schema: typeof systemSchema;\n declare validator: typeof validate;\n\n constructor(data: SystemSchema) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n if (data.categories !== undefined) this.categories = data.categories;\n if (data.name !== undefined) this.name = data.name;\n this.driver = data.driver;\n if (data.organizationId !== undefined) this.organizationId = data.organizationId;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n this.entities = data.entities;\n if (data.driverApiVersion !== undefined) this.driverApiVersion = data.driverApiVersion;\n if (data.logo !== undefined) this.logo = data.logo;\n if (data.config !== undefined) this.config = data.config;\n if (data.contactInfo !== undefined) this.contactInfo = data.contactInfo;\n if (data.emergency !== undefined) this.emergency = data.emergency;\n if (data.supportedEmergencies !== undefined) this.supportedEmergencies = data.supportedEmergencies;\n if (data.trippedSensors !== undefined) this.trippedSensors = data.trippedSensors;\n if (data.supportedSensors !== undefined) this.supportedSensors = data.supportedSensors;\n if (data.health !== undefined) this.health = data.health;\n if (data.syncedAt !== undefined) this.syncedAt = data.syncedAt;\n if (data.createdAt !== undefined) this.createdAt = data.createdAt;\n if (data.updatedAt !== undefined) this.updatedAt = data.updatedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n\n\n\n\n\n\n\n\n}\n\nObject.defineProperty(System.prototype, \"schema\", {\n value: systemSchema\n});\n\nObject.defineProperty(System.prototype, \"validator\", {\n get: function() { return validate; }\n});\n"],"mappings":";;;;AAeA,IAAa,SAAb,cAA4B,OAAO;CAIjC,YAAY,MAAoB;EAC9B,MAAM,IAAI;EACV,KAAK,KAAK,KAAK;EACf,KAAK,OAAO,KAAK;EACjB,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,KAAK,SAAS,KAAK;EACnB,IAAI,KAAK,mBAAmB,KAAA,GAAW,KAAK,iBAAiB,KAAK;EAClE,IAAI,KAAK,eAAe,KAAA,GAAW,KAAK,aAAa,KAAK;EAC1D,KAAK,WAAW,KAAK;EACrB,IAAI,KAAK,qBAAqB,KAAA,GAAW,KAAK,mBAAmB,KAAK;EACtE,IAAI,KAAK,SAAS,KAAA,GAAW,KAAK,OAAO,KAAK;EAC9C,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,gBAAgB,KAAA,GAAW,KAAK,cAAc,KAAK;EAC5D,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,yBAAyB,KAAA,GAAW,KAAK,uBAAuB,KAAK;EAC9E,IAAI,KAAK,mBAAmB,KAAA,GAAW,KAAK,iBAAiB,KAAK;EAClE,IAAI,KAAK,qBAAqB,KAAA,GAAW,KAAK,mBAAmB,KAAK;EACtE,IAAI,KAAK,WAAW,KAAA,GAAW,KAAK,SAAS,KAAK;EAClD,IAAI,KAAK,aAAa,KAAA,GAAW,KAAK,WAAW,KAAK;EACtD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;EACxD,IAAI,KAAK,cAAc,KAAA,GAAW,KAAK,YAAY,KAAK;CAC1D;AASF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU,EAChD,OAAO,aACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa,EACnD,KAAK,WAAW;CAAE,OAAOA;AAAU,EACrC,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import type { FromSchema } from "json-schema-to-ts";
|
|
2
|
+
export declare const conciergeWorkspaceBillSchema: {
|
|
3
|
+
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
4
|
+
readonly $id: "conciergeWorkspaceBill.json";
|
|
5
|
+
readonly title: "ConciergeWorkspaceBill";
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly additionalProperties: false;
|
|
9
|
+
readonly required: readonly ["id", "organizationId", "organizationName", "invoiceNumber", "status", "effectiveDate", "sentAt", "createdAt", "period", "total", "currency", "lineCount"];
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly id: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly description: "The bill's ID.";
|
|
14
|
+
};
|
|
15
|
+
readonly organizationId: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly description: "The organization the bill invoices.";
|
|
18
|
+
};
|
|
19
|
+
readonly organizationName: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly description: "The invoiced organization's display name.";
|
|
22
|
+
};
|
|
23
|
+
readonly invoiceNumber: {
|
|
24
|
+
readonly type: readonly ["string", "null"];
|
|
25
|
+
readonly description: string;
|
|
26
|
+
};
|
|
27
|
+
readonly status: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly enum: readonly ["draft", "sent", "paid", "void"];
|
|
30
|
+
readonly description: "The bill's lifecycle state.";
|
|
31
|
+
};
|
|
32
|
+
readonly effectiveDate: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly format: "date-time";
|
|
35
|
+
readonly description: string;
|
|
36
|
+
};
|
|
37
|
+
readonly sentAt: {
|
|
38
|
+
readonly type: readonly ["string", "null"];
|
|
39
|
+
readonly description: "When the bill was marked sent. Null until sent.";
|
|
40
|
+
};
|
|
41
|
+
readonly createdAt: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly format: "date-time";
|
|
44
|
+
readonly description: "When the bill was created.";
|
|
45
|
+
};
|
|
46
|
+
readonly period: {
|
|
47
|
+
readonly type: readonly ["string", "null"];
|
|
48
|
+
readonly description: 'Display-only month label (e.g. "July 2026").';
|
|
49
|
+
};
|
|
50
|
+
readonly total: {
|
|
51
|
+
readonly type: readonly ["integer", "null"];
|
|
52
|
+
readonly description: string;
|
|
53
|
+
};
|
|
54
|
+
readonly currency: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
readonly description: "ISO 4217 currency code.";
|
|
57
|
+
};
|
|
58
|
+
readonly lineCount: {
|
|
59
|
+
readonly type: "integer";
|
|
60
|
+
readonly description: "How many lines the bill carries.";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare const conciergeWorkspaceBillsResponseSchema: {
|
|
65
|
+
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
66
|
+
readonly $id: "conciergeWorkspaceBillsResponse.json";
|
|
67
|
+
readonly title: "ConciergeWorkspaceBillsResponse";
|
|
68
|
+
readonly description: string;
|
|
69
|
+
readonly type: "object";
|
|
70
|
+
readonly additionalProperties: false;
|
|
71
|
+
readonly required: readonly ["bills", "page", "pages", "total"];
|
|
72
|
+
readonly properties: {
|
|
73
|
+
readonly bills: {
|
|
74
|
+
readonly type: "array";
|
|
75
|
+
readonly items: {
|
|
76
|
+
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
77
|
+
readonly $id: "conciergeWorkspaceBill.json";
|
|
78
|
+
readonly title: "ConciergeWorkspaceBill";
|
|
79
|
+
readonly description: string;
|
|
80
|
+
readonly type: "object";
|
|
81
|
+
readonly additionalProperties: false;
|
|
82
|
+
readonly required: readonly ["id", "organizationId", "organizationName", "invoiceNumber", "status", "effectiveDate", "sentAt", "createdAt", "period", "total", "currency", "lineCount"];
|
|
83
|
+
readonly properties: {
|
|
84
|
+
readonly id: {
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly description: "The bill's ID.";
|
|
87
|
+
};
|
|
88
|
+
readonly organizationId: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
readonly description: "The organization the bill invoices.";
|
|
91
|
+
};
|
|
92
|
+
readonly organizationName: {
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
readonly description: "The invoiced organization's display name.";
|
|
95
|
+
};
|
|
96
|
+
readonly invoiceNumber: {
|
|
97
|
+
readonly type: readonly ["string", "null"];
|
|
98
|
+
readonly description: string;
|
|
99
|
+
};
|
|
100
|
+
readonly status: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly enum: readonly ["draft", "sent", "paid", "void"];
|
|
103
|
+
readonly description: "The bill's lifecycle state.";
|
|
104
|
+
};
|
|
105
|
+
readonly effectiveDate: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
readonly format: "date-time";
|
|
108
|
+
readonly description: string;
|
|
109
|
+
};
|
|
110
|
+
readonly sentAt: {
|
|
111
|
+
readonly type: readonly ["string", "null"];
|
|
112
|
+
readonly description: "When the bill was marked sent. Null until sent.";
|
|
113
|
+
};
|
|
114
|
+
readonly createdAt: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly format: "date-time";
|
|
117
|
+
readonly description: "When the bill was created.";
|
|
118
|
+
};
|
|
119
|
+
readonly period: {
|
|
120
|
+
readonly type: readonly ["string", "null"];
|
|
121
|
+
readonly description: 'Display-only month label (e.g. "July 2026").';
|
|
122
|
+
};
|
|
123
|
+
readonly total: {
|
|
124
|
+
readonly type: readonly ["integer", "null"];
|
|
125
|
+
readonly description: string;
|
|
126
|
+
};
|
|
127
|
+
readonly currency: {
|
|
128
|
+
readonly type: "string";
|
|
129
|
+
readonly description: "ISO 4217 currency code.";
|
|
130
|
+
};
|
|
131
|
+
readonly lineCount: {
|
|
132
|
+
readonly type: "integer";
|
|
133
|
+
readonly description: "How many lines the bill carries.";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
readonly page: {
|
|
139
|
+
readonly type: "integer";
|
|
140
|
+
readonly minimum: 1;
|
|
141
|
+
readonly description: "The 1-based page returned.";
|
|
142
|
+
};
|
|
143
|
+
readonly pages: {
|
|
144
|
+
readonly type: "integer";
|
|
145
|
+
readonly minimum: 0;
|
|
146
|
+
readonly description: "How many pages the filtered set spans.";
|
|
147
|
+
};
|
|
148
|
+
readonly total: {
|
|
149
|
+
readonly type: "integer";
|
|
150
|
+
readonly minimum: 0;
|
|
151
|
+
readonly description: "How many bills match the filter across all pages.";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
export type ConciergeWorkspaceBillSchema = FromSchema<typeof conciergeWorkspaceBillSchema>;
|
|
156
|
+
export type ConciergeWorkspaceBillsResponseSchema = FromSchema<typeof conciergeWorkspaceBillsResponseSchema>;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import defs from "./definitions.js";
|
|
2
|
+
import type { FromSchema } from "json-schema-to-ts";
|
|
3
|
+
export declare const orderSchema: {
|
|
4
|
+
readonly $schema: "http://json-schema.org/draft-07/schema";
|
|
5
|
+
readonly $id: "order.json";
|
|
6
|
+
readonly title: "Order";
|
|
7
|
+
readonly description: "A purchase order for products or services.";
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly required: readonly ["type", "status"];
|
|
10
|
+
readonly additionalProperties: false;
|
|
11
|
+
readonly properties: {
|
|
12
|
+
readonly id: {
|
|
13
|
+
readonly $ref: "definitions.json#/definitions/id";
|
|
14
|
+
};
|
|
15
|
+
readonly propertyId: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly description: "ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.";
|
|
18
|
+
};
|
|
19
|
+
readonly type: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly default: "order";
|
|
22
|
+
readonly enum: readonly ["order"];
|
|
23
|
+
};
|
|
24
|
+
readonly orderNumber: {
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
};
|
|
27
|
+
readonly status: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly enum: readonly ["draft", "pendingPayment", "processing", "outForDelivery", "completed", "paymentFailed", "cancelled", "refunded"];
|
|
30
|
+
};
|
|
31
|
+
readonly userId: {
|
|
32
|
+
readonly $ref: "definitions.json#/definitions/id";
|
|
33
|
+
readonly description: "User id of purchaser";
|
|
34
|
+
};
|
|
35
|
+
readonly reservationId: {
|
|
36
|
+
readonly $ref: "definitions.json#/definitions/id";
|
|
37
|
+
readonly description: "Reservation id if the order is for a reservation";
|
|
38
|
+
};
|
|
39
|
+
readonly date: {
|
|
40
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
41
|
+
};
|
|
42
|
+
readonly items: {
|
|
43
|
+
readonly type: "array";
|
|
44
|
+
readonly default: readonly [];
|
|
45
|
+
readonly items: {
|
|
46
|
+
readonly type: "object";
|
|
47
|
+
readonly required: readonly ["name", "price"];
|
|
48
|
+
readonly properties: {
|
|
49
|
+
readonly additionalProperties: false;
|
|
50
|
+
readonly name: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
};
|
|
53
|
+
readonly sku: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
};
|
|
56
|
+
readonly quantity: {
|
|
57
|
+
readonly type: "number";
|
|
58
|
+
readonly default: 1;
|
|
59
|
+
};
|
|
60
|
+
readonly price: {
|
|
61
|
+
readonly type: "number";
|
|
62
|
+
};
|
|
63
|
+
readonly taxClass: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
};
|
|
66
|
+
readonly deliveryClass: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
};
|
|
69
|
+
readonly productId: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly taxes: {
|
|
76
|
+
readonly type: "array";
|
|
77
|
+
readonly default: readonly [];
|
|
78
|
+
readonly items: {
|
|
79
|
+
readonly type: "object";
|
|
80
|
+
readonly required: readonly ["name", "rate"];
|
|
81
|
+
readonly properties: {
|
|
82
|
+
readonly additionalProperties: false;
|
|
83
|
+
readonly name: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
readonly class: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
};
|
|
89
|
+
readonly rateType: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly enum: readonly ["percentage", "flat"];
|
|
92
|
+
readonly default: "percentage";
|
|
93
|
+
};
|
|
94
|
+
readonly rate: {
|
|
95
|
+
readonly type: "number";
|
|
96
|
+
};
|
|
97
|
+
readonly total: {
|
|
98
|
+
readonly type: "number";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly fees: {
|
|
104
|
+
readonly type: "array";
|
|
105
|
+
readonly default: readonly [];
|
|
106
|
+
readonly items: {
|
|
107
|
+
readonly type: "object";
|
|
108
|
+
readonly required: readonly ["name", "price"];
|
|
109
|
+
readonly properties: {
|
|
110
|
+
readonly additionalProperties: false;
|
|
111
|
+
readonly name: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
};
|
|
114
|
+
readonly price: {
|
|
115
|
+
readonly type: "number";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
readonly delivery: {
|
|
121
|
+
readonly type: "array";
|
|
122
|
+
readonly default: readonly [];
|
|
123
|
+
readonly items: {
|
|
124
|
+
readonly type: "object";
|
|
125
|
+
readonly required: readonly ["name", "rate"];
|
|
126
|
+
readonly properties: {
|
|
127
|
+
readonly additionalProperties: false;
|
|
128
|
+
readonly name: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
};
|
|
131
|
+
readonly class: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
};
|
|
134
|
+
readonly rateType: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly enum: readonly ["percentage", "flat"];
|
|
137
|
+
readonly default: "percentage";
|
|
138
|
+
};
|
|
139
|
+
readonly rate: {
|
|
140
|
+
readonly type: "number";
|
|
141
|
+
};
|
|
142
|
+
readonly total: {
|
|
143
|
+
readonly type: "number";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly payments: {
|
|
149
|
+
readonly type: "array";
|
|
150
|
+
readonly default: readonly [];
|
|
151
|
+
readonly items: {
|
|
152
|
+
readonly type: "object";
|
|
153
|
+
readonly properties: {
|
|
154
|
+
readonly method: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
readonly enum: readonly ["folio", "invoice", "amex", "visa", "masterCard", "maestro", "discover", "diners", "jcb", "applePay", "alipay", "chinaUnionPay", "vpay"];
|
|
157
|
+
};
|
|
158
|
+
readonly name: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
};
|
|
161
|
+
readonly date: {
|
|
162
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
163
|
+
};
|
|
164
|
+
readonly amount: {
|
|
165
|
+
readonly type: "number";
|
|
166
|
+
};
|
|
167
|
+
readonly transactionReference: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly createdAt: {
|
|
174
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
175
|
+
};
|
|
176
|
+
readonly updatedAt: {
|
|
177
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
178
|
+
};
|
|
179
|
+
readonly deletedAt: {
|
|
180
|
+
readonly $ref: "definitions.json#/definitions/date";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
export type OrderSchema = FromSchema<typeof orderSchema, {
|
|
185
|
+
references: [typeof defs];
|
|
186
|
+
}>;
|
package/dist/schemas/system.d.ts
CHANGED
|
@@ -129,6 +129,25 @@ export declare const systemSchema: {
|
|
|
129
129
|
};
|
|
130
130
|
readonly description: "System wide emergencies the system can enter. Omitted means unknown (legacy); an empty array means none are supported.";
|
|
131
131
|
};
|
|
132
|
+
readonly trippedSensors: {
|
|
133
|
+
readonly type: "array";
|
|
134
|
+
readonly uniqueItems: true;
|
|
135
|
+
readonly default: readonly [];
|
|
136
|
+
readonly items: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly enum: readonly ["rain"];
|
|
139
|
+
};
|
|
140
|
+
readonly description: "Active sensors";
|
|
141
|
+
};
|
|
142
|
+
readonly supportedSensors: {
|
|
143
|
+
readonly type: "array";
|
|
144
|
+
readonly uniqueItems: true;
|
|
145
|
+
readonly items: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly enum: readonly ["rain"];
|
|
148
|
+
};
|
|
149
|
+
readonly description: "System wide supported sensors.";
|
|
150
|
+
};
|
|
132
151
|
readonly health: {
|
|
133
152
|
readonly type: "object";
|
|
134
153
|
readonly properties: {
|
|
@@ -171,6 +190,20 @@ export declare const systemSchema: {
|
|
|
171
190
|
readonly then: {
|
|
172
191
|
readonly required: readonly ["emergency", "supportedEmergencies"];
|
|
173
192
|
};
|
|
193
|
+
}, {
|
|
194
|
+
readonly if: {
|
|
195
|
+
readonly properties: {
|
|
196
|
+
readonly categories: {
|
|
197
|
+
readonly contains: {
|
|
198
|
+
readonly const: "irrigation";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
readonly required: readonly ["categories"];
|
|
203
|
+
};
|
|
204
|
+
readonly then: {
|
|
205
|
+
readonly required: readonly ["trippedSensors", "supportedSensors"];
|
|
206
|
+
};
|
|
174
207
|
}];
|
|
175
208
|
};
|
|
176
209
|
export type SystemSchema = FromSchema<typeof systemSchema, {
|
package/dist/schemas/system.js
CHANGED
|
@@ -134,6 +134,25 @@ const systemSchema = {
|
|
|
134
134
|
},
|
|
135
135
|
description: "System wide emergencies the system can enter. Omitted means unknown (legacy); an empty array means none are supported."
|
|
136
136
|
},
|
|
137
|
+
trippedSensors: {
|
|
138
|
+
type: "array",
|
|
139
|
+
uniqueItems: true,
|
|
140
|
+
default: [],
|
|
141
|
+
items: {
|
|
142
|
+
type: "string",
|
|
143
|
+
enum: ["rain"]
|
|
144
|
+
},
|
|
145
|
+
description: "Active sensors"
|
|
146
|
+
},
|
|
147
|
+
supportedSensors: {
|
|
148
|
+
type: "array",
|
|
149
|
+
uniqueItems: true,
|
|
150
|
+
items: {
|
|
151
|
+
type: "string",
|
|
152
|
+
enum: ["rain"]
|
|
153
|
+
},
|
|
154
|
+
description: "System wide supported sensors."
|
|
155
|
+
},
|
|
137
156
|
health: {
|
|
138
157
|
type: "object",
|
|
139
158
|
properties: {
|
|
@@ -162,6 +181,12 @@ const systemSchema = {
|
|
|
162
181
|
required: ["categories"]
|
|
163
182
|
},
|
|
164
183
|
then: { required: ["emergency", "supportedEmergencies"] }
|
|
184
|
+
}, {
|
|
185
|
+
if: {
|
|
186
|
+
properties: { categories: { contains: { const: "irrigation" } } },
|
|
187
|
+
required: ["categories"]
|
|
188
|
+
},
|
|
189
|
+
then: { required: ["trippedSensors", "supportedSensors"] }
|
|
165
190
|
}]
|
|
166
191
|
};
|
|
167
192
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","names":[],"sources":["../../.generated/schemas/system.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { mediaFileSchema } from \"./mediaFile\";\n\nexport const systemSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"system.json\",\n title: \"System\",\n type: \"object\",\n required: [\"id\", \"type\", \"driver\", \"entities\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"system\",\n enum: [\"system\"],\n },\n categories: {\n type: \"array\",\n uniqueItems: true,\n default: [],\n items: { \n enum: [\"access\", \"climate\", \"irrigation\", \"lighting\", \"media\", \"security\", \"sis\"] \n },\n description: \"The categories of functionality this system provides.\",\n },\n name: {\n type: \"string\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n example: \"salto\",\n description: \"The driver value that implements the system\",\n },\n organizationId: {\n type: \"string\",\n description: \"The id of the organization that uses the system\",\n },\n propertyId: {\n type: \"string\",\n description: \"The id of the property that uses the system\",\n },\n entities: {\n type: \"array\",\n description: \"The entities produced by the system\",\n default: [],\n items: {\n type: \"object\",\n required: [\"systemId\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The id of the entity\",\n },\n systemId: {\n type: \"string\",\n description: \"The id of the entity as known by the system\",\n },\n type: {\n type: \"string\",\n description: \"The type of the entity\",\n },\n discriminator: {\n type: \"string\",\n description: \"The discriminator of the entity\",\n },\n propertyIds: {\n type: \"array\",\n description:\n \"The ids of the properties where the entity is located\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n },\n driverApiVersion: {\n type: \"string\",\n description: \"The version of the driver API used by the system\",\n },\n logo: {\n $ref: \"mediaFile.json#\",\n },\n config: {\n type: \"object\",\n additionalProperties: true,\n description: \"The runtime configuration of the system\",\n },\n contactInfo: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n websiteUrl: {\n type: \"string\",\n description: \"The website URL of the system\",\n },\n email: {\n type: \"string\",\n description: \"The email address of the system\",\n },\n phone: {\n type: \"string\",\n description: \"The phone number of the system\",\n },\n itunesAppId: {\n type: \"string\",\n example: \"807316865\",\n },\n googleAppId: {\n type: \"string\",\n example: \"tw.com.geovision.gvaccesscontrol\",\n },\n },\n },\n emergency: {\n type: [\"string\", \"null\"],\n enum: [\"lockdown\", \"evacuate\", null],\n default: null,\n description: \"Active system wide emergency state\",\n },\n supportedEmergencies: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [ \"lockdown\", \"evacuate\" ],\n },\n description: \"System wide emergencies the system can enter. Omitted means unknown (legacy); an empty array means none are supported.\",\n },\n health: {\n type: \"object\",\n properties: {\n offline: {\n type: \"boolean\",\n description: \"Whether the system is offline\",\n },\n lastHeartbeatAt: {\n type: \"string\",\n description:\n \"The date and time of the last communication with the system\",\n format: \"date-time\",\n },\n },\n },\n syncedAt: {\n $ref: \"definitions.json#/definitions/date\",\n description:\n \"When the system's roster (people and households) was last synced into the platform.\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n allOf: [\n {\n if: {\n properties: { categories: { contains: { const: \"access\" } } },\n required: [\"categories\"],\n },\n then: { required: [\"emergency\", \"supportedEmergencies\"] },\n }\n ]\n} as const;\n\nexport type SystemSchema = FromSchema<\n typeof systemSchema,\n {\n references: [typeof defs, typeof mediaFileSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":";AAIA,MAAa,eAAe;CAC1B,SAAS;CACT,KAAK;CACL,OAAO;CACP,MAAM;CACN,UAAU;EAAC;EAAM;EAAQ;EAAU;CAAU;CAC7C,sBAAsB;CACtB,YAAY;EACV,IAAI,EACF,MAAM,SACR;EACA,MAAM;GACJ,MAAM;GACN,SAAS;GACT,MAAM,CAAC,QAAQ;EACjB;EACA,YAAY;GACV,MAAM;GACN,aAAa;GACb,SAAS,CAAC;GACV,OAAO,EACL,MAAM;IAAC;IAAU;IAAW;IAAc;IAAY;IAAS;IAAY;GAAK,EAClF;GACA,aAAa;EACf;EACA,MAAM,EACJ,MAAM,SACR;EACA,QAAQ;GACN,MAAM;GACN,SAAS;GACT,aAAa;EACf;EACA,gBAAgB;GACd,MAAM;GACN,aAAa;EACf;EACA,YAAY;GACV,MAAM;GACN,aAAa;EACf;EACA,UAAU;GACR,MAAM;GACN,aAAa;GACb,SAAS,CAAC;GACV,OAAO;IACL,MAAM;IACN,UAAU,CAAC,UAAU;IACrB,YAAY;KACV,IAAI;MACF,MAAM;MACN,aAAa;KACf;KACA,UAAU;MACR,MAAM;MACN,aAAa;KACf;KACA,MAAM;MACJ,MAAM;MACN,aAAa;KACf;KACA,eAAe;MACb,MAAM;MACN,aAAa;KACf;KACA,aAAa;MACX,MAAM;MACN,aACE;MACF,OAAO,EACL,MAAM,SACR;KACF;IACF;GACF;EACF;EACA,kBAAkB;GAChB,MAAM;GACN,aAAa;EACf;EACA,MAAM,EACJ,MAAM,kBACR;EACA,QAAQ;GACN,MAAM;GACN,sBAAsB;GACtB,aAAa;EACf;EACA,aAAa;GACX,MAAM;GACN,sBAAsB;GACtB,YAAY;IACV,YAAY;KACV,MAAM;KACN,aAAa;IACf;IACA,OAAO;KACL,MAAM;KACN,aAAa;IACf;IACA,OAAO;KACL,MAAM;KACN,aAAa;IACf;IACA,aAAa;KACX,MAAM;KACN,SAAS;IACX;IACA,aAAa;KACX,MAAM;KACN,SAAS;IACX;GACF;EACF;EACA,WAAW;GACT,MAAM,CAAC,UAAU,MAAM;GACvB,MAAM;IAAC;IAAY;IAAY;GAAI;GACnC,SAAS;GACT,aAAa;EACf;EACA,sBAAsB;GACpB,MAAM;GACN,aAAa;GACb,OAAO;IACL,MAAM;IACN,MAAM,CAAE,YAAY,UAAW;GACjC;GACA,aAAa;EACf;EACA,QAAQ;GACN,MAAM;GACN,YAAY;IACV,SAAS;KACP,MAAM;KACN,aAAa;IACf;IACA,iBAAiB;KACf,MAAM;KACN,aACE;KACF,QAAQ;IACV;GACF;EACF;EACA,UAAU;GACR,MAAM;GACN,aACE;EACJ;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;EACA,WAAW,EACT,MAAM,qCACR;CACF;CACA,OAAO,CACL;EACE,IAAI;GACF,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,SAAS,EAAE,EAAE;GAC5D,UAAU,CAAC,YAAY;EACzB;EACA,MAAM,EAAE,UAAU,CAAC,aAAa,sBAAsB,EAAE;CAC1D,CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"system.js","names":[],"sources":["../../.generated/schemas/system.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\nimport type { mediaFileSchema } from \"./mediaFile\";\n\nexport const systemSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"system.json\",\n title: \"System\",\n type: \"object\",\n required: [\"id\", \"type\", \"driver\", \"entities\"],\n additionalProperties: false,\n properties: {\n id: {\n type: \"string\",\n },\n type: {\n type: \"string\",\n default: \"system\",\n enum: [\"system\"],\n },\n categories: {\n type: \"array\",\n uniqueItems: true,\n default: [],\n items: { \n enum: [\"access\", \"climate\", \"irrigation\", \"lighting\", \"media\", \"security\", \"sis\"] \n },\n description: \"The categories of functionality this system provides.\",\n },\n name: {\n type: \"string\",\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n example: \"salto\",\n description: \"The driver value that implements the system\",\n },\n organizationId: {\n type: \"string\",\n description: \"The id of the organization that uses the system\",\n },\n propertyId: {\n type: \"string\",\n description: \"The id of the property that uses the system\",\n },\n entities: {\n type: \"array\",\n description: \"The entities produced by the system\",\n default: [],\n items: {\n type: \"object\",\n required: [\"systemId\"],\n properties: {\n id: {\n type: \"string\",\n description: \"The id of the entity\",\n },\n systemId: {\n type: \"string\",\n description: \"The id of the entity as known by the system\",\n },\n type: {\n type: \"string\",\n description: \"The type of the entity\",\n },\n discriminator: {\n type: \"string\",\n description: \"The discriminator of the entity\",\n },\n propertyIds: {\n type: \"array\",\n description:\n \"The ids of the properties where the entity is located\",\n items: {\n type: \"string\",\n },\n },\n },\n },\n },\n driverApiVersion: {\n type: \"string\",\n description: \"The version of the driver API used by the system\",\n },\n logo: {\n $ref: \"mediaFile.json#\",\n },\n config: {\n type: \"object\",\n additionalProperties: true,\n description: \"The runtime configuration of the system\",\n },\n contactInfo: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n websiteUrl: {\n type: \"string\",\n description: \"The website URL of the system\",\n },\n email: {\n type: \"string\",\n description: \"The email address of the system\",\n },\n phone: {\n type: \"string\",\n description: \"The phone number of the system\",\n },\n itunesAppId: {\n type: \"string\",\n example: \"807316865\",\n },\n googleAppId: {\n type: \"string\",\n example: \"tw.com.geovision.gvaccesscontrol\",\n },\n },\n },\n emergency: {\n type: [\"string\", \"null\"],\n enum: [\"lockdown\", \"evacuate\", null],\n default: null,\n description: \"Active system wide emergency state\",\n },\n supportedEmergencies: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [ \"lockdown\", \"evacuate\" ],\n },\n description: \"System wide emergencies the system can enter. Omitted means unknown (legacy); an empty array means none are supported.\",\n },\n trippedSensors: {\n type: \"array\",\n uniqueItems: true,\n default: [],\n items: {\n type: \"string\",\n enum: [\"rain\"],\n },\n description: \"Active sensors\",\n },\n supportedSensors: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [ \"rain\" ],\n },\n description: \"System wide supported sensors.\",\n },\n health: {\n type: \"object\",\n properties: {\n offline: {\n type: \"boolean\",\n description: \"Whether the system is offline\",\n },\n lastHeartbeatAt: {\n type: \"string\",\n description:\n \"The date and time of the last communication with the system\",\n format: \"date-time\",\n },\n },\n },\n syncedAt: {\n $ref: \"definitions.json#/definitions/date\",\n description:\n \"When the system's roster (people and households) was last synced into the platform.\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n },\n allOf: [\n {\n if: {\n properties: { categories: { contains: { const: \"access\" } } },\n required: [\"categories\"],\n },\n then: { required: [\"emergency\", \"supportedEmergencies\"] },\n },\n {\n if: {\n properties: { categories: { contains: { const: \"irrigation\" } } },\n required: [\"categories\"],\n },\n then: { required: [\"trippedSensors\", \"supportedSensors\"] },\n }\n ]\n} as const;\n\nexport type SystemSchema = FromSchema<\n typeof systemSchema,\n {\n references: [typeof defs, typeof mediaFileSchema];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"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"}
|
|
@@ -179,7 +179,6 @@ export declare const thermostatSchema: {
|
|
|
179
179
|
readonly uiEnabled: {
|
|
180
180
|
readonly type: "boolean";
|
|
181
181
|
readonly description: "Local thermostat controls active or not";
|
|
182
|
-
readonly default: true;
|
|
183
182
|
};
|
|
184
183
|
readonly equipment: {
|
|
185
184
|
readonly type: "object";
|
|
@@ -211,8 +211,7 @@ const thermostatSchema = {
|
|
|
211
211
|
},
|
|
212
212
|
uiEnabled: {
|
|
213
213
|
type: "boolean",
|
|
214
|
-
description: "Local thermostat controls active or not"
|
|
215
|
-
default: true
|
|
214
|
+
description: "Local thermostat controls active or not"
|
|
216
215
|
},
|
|
217
216
|
equipment: {
|
|
218
217
|
type: "object",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thermostat.js","names":[],"sources":["../../.generated/schemas/thermostat.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const thermostatSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"thermostat.json\",\n title: \"Thermostat\",\n description: \"Any smart thermostat\",\n type: \"object\",\n required: [\n \"id\",\n \"type\",\n \"hvacMode\",\n \"fanMode\",\n \"hvacState\",\n \"fanState\",\n \"setpoints\",\n \"temperatureScale\",\n \"supportedHvacModes\",\n \"supportedFanModes\",\n \"driver\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n readOnly: true,\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n name: {\n $ref: \"definitions.json#/definitions/name\",\n },\n type: {\n type: \"string\",\n enum: [\"thermostat\"],\n default: \"thermostat\",\n readOnly: true,\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n readOnly: true,\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n offline: {\n type: \"boolean\",\n readOnly: true,\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n currentTemperature: {\n type: \"number\",\n readOnly: true,\n },\n maxSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe temperature\",\n },\n minSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe temperature\",\n },\n currentHumidity: {\n type: \"number\",\n minimum: 0,\n readOnly: true,\n },\n maxSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe humidity\",\n },\n minSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe humidity\",\n },\n hvacMode: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n hvacState: {\n type: [\"string\", \"null\"],\n enum: [\"cooling\", \"heating\", \"off\", null],\n readOnly: true,\n },\n fanMode: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n fanState: {\n type: [\"string\", \"null\"],\n enum: [\"off\", \"low\", \"medium\", \"high\", \"on\", null],\n readOnly: true,\n },\n temperatureScale: {\n type: \"string\",\n enum: [\"celsius\", \"fahrenheit\"],\n default: \"fahrenheit\",\n },\n humidityScale: {\n type: [\"string\", \"null\"],\n enum: [\"absolute\", \"relative\", null],\n },\n supportedHvacModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n readOnly: true,\n },\n supportedFanModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n readOnly: true,\n },\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n $ref: \"#/definitions/setpoint\",\n },\n heat: {\n $ref: \"#/definitions/setpoint\",\n },\n auto: {\n $ref: \"#/definitions/setpoint\",\n },\n },\n },\n minAutoDelta: {\n type: \"number\",\n default: 3,\n },\n cycleRate: {\n type: \"number\",\n readOnly: true,\n },\n co2: {\n type: [\"number\", \"null\"],\n description: \"Parts per million (ppm)\",\n readOnly: true,\n },\n voc: {\n type: [\"number\", \"null\"],\n description: \"Parts per billion (ppb)\",\n readOnly: true,\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n readOnly: true,\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n readOnly: true,\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n readOnly: true,\n },\n modelNumber: {\n type: \"string\",\n readOnly: true,\n },\n serialNumber: {\n type: \"string\",\n readOnly: true,\n },\n firmwareVersion: {\n type: \"string\",\n readOnly: true,\n },\n uiEnabled: {\n type: \"boolean\",\n description: \"Local thermostat controls active or not\",\n
|
|
1
|
+
{"version":3,"file":"thermostat.js","names":[],"sources":["../../.generated/schemas/thermostat.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const thermostatSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"thermostat.json\",\n title: \"Thermostat\",\n description: \"Any smart thermostat\",\n type: \"object\",\n required: [\n \"id\",\n \"type\",\n \"hvacMode\",\n \"fanMode\",\n \"hvacState\",\n \"fanState\",\n \"setpoints\",\n \"temperatureScale\",\n \"supportedHvacModes\",\n \"supportedFanModes\",\n \"driver\",\n ],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n readOnly: true,\n },\n propertyId: {\n type: \"string\",\n description: \"ID of the property this entity belongs to. Optional — used as a per-document filter inside the org-scoped database.\",\n },\n name: {\n $ref: \"definitions.json#/definitions/name\",\n },\n type: {\n type: \"string\",\n enum: [\"thermostat\"],\n default: \"thermostat\",\n readOnly: true,\n },\n driver: {\n $ref: \"definitions.json#/definitions/driver\",\n readOnly: true,\n },\n alerts: {\n $ref: \"definitions.json#/definitions/alerts\",\n },\n offline: {\n type: \"boolean\",\n readOnly: true,\n },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: {\n $ref: \"definitions.json#/definitions/notification\",\n },\n currentTemperature: {\n type: \"number\",\n readOnly: true,\n },\n maxSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe temperature\",\n },\n minSafeCurrentTemp: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe temperature\",\n },\n currentHumidity: {\n type: \"number\",\n minimum: 0,\n readOnly: true,\n },\n maxSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Maximum safe humidity\",\n },\n minSafeCurrentHumidity: {\n type: [\"number\", \"null\"],\n description: \"Minimum safe humidity\",\n },\n hvacMode: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n hvacState: {\n type: [\"string\", \"null\"],\n enum: [\"cooling\", \"heating\", \"off\", null],\n readOnly: true,\n },\n fanMode: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n fanState: {\n type: [\"string\", \"null\"],\n enum: [\"off\", \"low\", \"medium\", \"high\", \"on\", null],\n readOnly: true,\n },\n temperatureScale: {\n type: \"string\",\n enum: [\"celsius\", \"fahrenheit\"],\n default: \"fahrenheit\",\n },\n humidityScale: {\n type: [\"string\", \"null\"],\n enum: [\"absolute\", \"relative\", null],\n },\n supportedHvacModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"cool\", \"heat\", \"auto\", \"off\"],\n },\n readOnly: true,\n },\n supportedFanModes: {\n type: \"array\",\n uniqueItems: true,\n items: {\n type: \"string\",\n enum: [\"auto\", \"low\", \"medium\", \"high\", \"off\", \"on\"],\n },\n readOnly: true,\n },\n setpoints: {\n type: \"object\",\n additionalProperties: false,\n properties: {\n cool: {\n $ref: \"#/definitions/setpoint\",\n },\n heat: {\n $ref: \"#/definitions/setpoint\",\n },\n auto: {\n $ref: \"#/definitions/setpoint\",\n },\n },\n },\n minAutoDelta: {\n type: \"number\",\n default: 3,\n },\n cycleRate: {\n type: \"number\",\n readOnly: true,\n },\n co2: {\n type: [\"number\", \"null\"],\n description: \"Parts per million (ppm)\",\n readOnly: true,\n },\n voc: {\n type: [\"number\", \"null\"],\n description: \"Parts per billion (ppb)\",\n readOnly: true,\n },\n batteryLevel: {\n $ref: \"definitions.json#/definitions/batteryLevel\",\n readOnly: true,\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n watts: {\n $ref: \"definitions.json#/definitions/watts\",\n readOnly: true,\n },\n icon: {\n type: \"string\",\n },\n manufacturer: {\n type: \"string\",\n readOnly: true,\n },\n modelNumber: {\n type: \"string\",\n readOnly: true,\n },\n serialNumber: {\n type: \"string\",\n readOnly: true,\n },\n firmwareVersion: {\n type: \"string\",\n readOnly: true,\n },\n uiEnabled: {\n type: \"boolean\",\n description: \"Local thermostat controls active or not\",\n },\n // deprecated, use alerts instead\n equipment: {\n type: \"object\",\n properties: {\n status: {\n type: \"string\",\n enum: [\"Ok\", \"Trouble\"],\n },\n message: {\n type: \"string\",\n },\n },\n required: [\"status\"],\n },\n },\n definitions: {\n setpoint: {\n type: \"object\",\n additionalProperties: false,\n required: [\"value\", \"min\", \"max\"],\n properties: {\n value: {\n type: \"number\",\n minimum: 0,\n maximum: 99,\n },\n min: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n max: {\n type: [\"number\", \"null\"],\n minimum: 0,\n maximum: 99,\n },\n },\n },\n },\n} as const;\n\nexport type ThermostatSchema = FromSchema<\n typeof thermostatSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface DescribeConciergeBillsSummaryCommandConfig {
|
|
2
|
+
data?: Record<string, unknown> | unknown[] | null;
|
|
3
|
+
headers?: Record<string, string> | null;
|
|
4
|
+
query?: Record<string, unknown> | null;
|
|
5
|
+
}
|
|
6
|
+
export interface DescribeConciergeBillsSummaryCommandRequestConfig {
|
|
7
|
+
method: "get";
|
|
8
|
+
url: string;
|
|
9
|
+
data: Record<string, unknown> | unknown[] | null;
|
|
10
|
+
params: Record<string, unknown> | null;
|
|
11
|
+
headers: Record<string, string> | null;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Revenue, vendor cost, profit and margin billed through OneBill over a sentAt window, across the KFC-enabled organizations or one of them.
|
|
16
|
+
*/
|
|
17
|
+
export declare class DescribeConciergeBillsSummaryCommand {
|
|
18
|
+
url: string;
|
|
19
|
+
data: Record<string, unknown> | unknown[] | null;
|
|
20
|
+
query: Record<string, unknown> | null;
|
|
21
|
+
headers: Record<string, string> | null;
|
|
22
|
+
config: DescribeConciergeBillsSummaryCommandRequestConfig;
|
|
23
|
+
static params: readonly [];
|
|
24
|
+
static url: string;
|
|
25
|
+
static method: "get";
|
|
26
|
+
constructor(commandConfig: DescribeConciergeBillsSummaryCommandConfig, options?: Record<string, unknown>);
|
|
27
|
+
}
|