@seamapi/types 1.1004.0 → 1.1005.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/package.json +4 -11
- package/devicedb.d.ts +0 -1
- package/devicedb.js +0 -2
- package/devicedb.js.map +0 -1
- package/lib/seam/devicedb/index.d.ts +0 -5
- package/lib/seam/devicedb/index.js +0 -5
- package/lib/seam/devicedb/index.js.map +0 -1
- package/lib/seam/devicedb/models/device-capability.d.ts +0 -57
- package/lib/seam/devicedb/models/device-capability.js +0 -27
- package/lib/seam/devicedb/models/device-capability.js.map +0 -1
- package/lib/seam/devicedb/models/device-model.d.ts +0 -1247
- package/lib/seam/devicedb/models/device-model.js +0 -136
- package/lib/seam/devicedb/models/device-model.js.map +0 -1
- package/lib/seam/devicedb/models/hardware.d.ts +0 -8
- package/lib/seam/devicedb/models/hardware.js +0 -7
- package/lib/seam/devicedb/models/hardware.js.map +0 -1
- package/lib/seam/devicedb/models/image-reference.d.ts +0 -15
- package/lib/seam/devicedb/models/image-reference.js +0 -7
- package/lib/seam/devicedb/models/image-reference.js.map +0 -1
- package/lib/seam/devicedb/models/index.d.ts +0 -4
- package/lib/seam/devicedb/models/index.js +0 -5
- package/lib/seam/devicedb/models/index.js.map +0 -1
- package/lib/seam/devicedb/models/manufacturer.d.ts +0 -117
- package/lib/seam/devicedb/models/manufacturer.js +0 -38
- package/lib/seam/devicedb/models/manufacturer.js.map +0 -1
- package/lib/seam/devicedb/route-specs.d.ts +0 -2052
- package/lib/seam/devicedb/route-specs.js +0 -61
- package/lib/seam/devicedb/route-specs.js.map +0 -1
- package/lib/seam/devicedb/route-types.d.ts +0 -364
- package/lib/seam/devicedb/route-types.js +0 -2
- package/lib/seam/devicedb/route-types.js.map +0 -1
- package/src/devicedb.ts +0 -1
- package/src/lib/seam/devicedb/index.ts +0 -16
- package/src/lib/seam/devicedb/models/device-capability.ts +0 -32
- package/src/lib/seam/devicedb/models/device-model.ts +0 -166
- package/src/lib/seam/devicedb/models/hardware.ts +0 -7
- package/src/lib/seam/devicedb/models/image-reference.ts +0 -9
- package/src/lib/seam/devicedb/models/index.ts +0 -4
- package/src/lib/seam/devicedb/models/manufacturer.ts +0 -54
- package/src/lib/seam/devicedb/route-specs.ts +0 -63
- package/src/lib/seam/devicedb/route-types.ts +0 -450
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { device_model_capability_flags } from './device-capability.js';
|
|
3
|
-
import { hardware } from './hardware.js';
|
|
4
|
-
import { image_reference } from './image-reference.js';
|
|
5
|
-
import { manufacturer } from './manufacturer.js';
|
|
6
|
-
export const device_category = z.enum([
|
|
7
|
-
'smartlock',
|
|
8
|
-
'sensor',
|
|
9
|
-
'thermostat',
|
|
10
|
-
'relay',
|
|
11
|
-
'intercom',
|
|
12
|
-
'accessory',
|
|
13
|
-
]);
|
|
14
|
-
export const device_connection_type = z.enum([
|
|
15
|
-
'wifi',
|
|
16
|
-
'zwave',
|
|
17
|
-
'zigbee',
|
|
18
|
-
'unknown',
|
|
19
|
-
]);
|
|
20
|
-
const smartlock = z
|
|
21
|
-
.object({
|
|
22
|
-
main_category: z.literal(device_category.enum.smartlock),
|
|
23
|
-
physical_properties: z.object({
|
|
24
|
-
lock_type: z.enum([
|
|
25
|
-
'deadbolt',
|
|
26
|
-
'lever',
|
|
27
|
-
'mortise',
|
|
28
|
-
'lockbox',
|
|
29
|
-
'cylinder',
|
|
30
|
-
'padlock',
|
|
31
|
-
'locker',
|
|
32
|
-
'unknown',
|
|
33
|
-
]),
|
|
34
|
-
has_physical_key: z.boolean(),
|
|
35
|
-
has_camera: z.boolean(),
|
|
36
|
-
}),
|
|
37
|
-
software_features: z.object({
|
|
38
|
-
can_remotely_unlock: z.boolean(),
|
|
39
|
-
can_program_access_codes: z.boolean(),
|
|
40
|
-
can_program_access_schedules: z.boolean(),
|
|
41
|
-
can_program_access_codes_offline: z.boolean(),
|
|
42
|
-
}),
|
|
43
|
-
})
|
|
44
|
-
.merge(device_model_capability_flags.pick({
|
|
45
|
-
can_remotely_lock: true,
|
|
46
|
-
can_remotely_unlock: true,
|
|
47
|
-
can_program_offline_access_codes: true,
|
|
48
|
-
can_program_online_access_codes: true,
|
|
49
|
-
}));
|
|
50
|
-
const sensor = z.object({
|
|
51
|
-
main_category: z.literal(device_category.enum.sensor),
|
|
52
|
-
physical_properties: z.object({
|
|
53
|
-
has_noise_sensor: z.boolean(),
|
|
54
|
-
has_humidity_sensor: z.boolean(),
|
|
55
|
-
has_temperature_sensor: z.boolean(),
|
|
56
|
-
has_occupancy_detection: z.boolean(),
|
|
57
|
-
}),
|
|
58
|
-
});
|
|
59
|
-
export const thermostat = z
|
|
60
|
-
.object({
|
|
61
|
-
main_category: z.literal(device_category.enum.thermostat),
|
|
62
|
-
physical_properties: z.object({
|
|
63
|
-
available_modes: z.enum(['heat', 'cool', 'fan', 'eco']).array(),
|
|
64
|
-
is_heat_pump_compatible: z.boolean(),
|
|
65
|
-
has_occupancy_detection: z.boolean(),
|
|
66
|
-
supports_demand_response: z.boolean(),
|
|
67
|
-
has_humidity_sensor: z.boolean(),
|
|
68
|
-
has_temperature_sensor: z.boolean(),
|
|
69
|
-
supports_emergency_heating_mode: z.boolean(),
|
|
70
|
-
}),
|
|
71
|
-
software_features: z.object({
|
|
72
|
-
can_program_climate_schedules: z.boolean(),
|
|
73
|
-
}),
|
|
74
|
-
})
|
|
75
|
-
.merge(device_model_capability_flags.pick({
|
|
76
|
-
can_hvac_heat: true,
|
|
77
|
-
can_hvac_cool: true,
|
|
78
|
-
can_hvac_heat_cool: true,
|
|
79
|
-
can_turn_off_hvac: true,
|
|
80
|
-
}));
|
|
81
|
-
const relay = z.object({
|
|
82
|
-
main_category: z.literal(device_category.enum.relay),
|
|
83
|
-
});
|
|
84
|
-
const intercom = z.object({
|
|
85
|
-
main_category: z.literal(device_category.enum.intercom),
|
|
86
|
-
physical_properties: z.object({
|
|
87
|
-
has_camera: z.boolean(),
|
|
88
|
-
has_rfid_reader: z.boolean().default(false),
|
|
89
|
-
has_nfc_reader: z.boolean().default(false),
|
|
90
|
-
has_wiegand_interface: z.boolean().default(false),
|
|
91
|
-
}),
|
|
92
|
-
software_features: z.object({
|
|
93
|
-
can_remotely_unlock: z.boolean(),
|
|
94
|
-
can_program_access_codes: z.boolean(),
|
|
95
|
-
can_unlock_with_face_recognition: z.boolean().default(false),
|
|
96
|
-
supports_onvif: z.boolean().default(false),
|
|
97
|
-
}),
|
|
98
|
-
});
|
|
99
|
-
const accessory = z.object({
|
|
100
|
-
main_category: z.literal(device_category.enum.accessory),
|
|
101
|
-
});
|
|
102
|
-
export const device_model_category_specific_properties = z.discriminatedUnion('main_category', [smartlock, sensor, thermostat, relay, intercom, accessory]);
|
|
103
|
-
export const base_device_model_v1 = z.object({
|
|
104
|
-
device_model_id: z.string().uuid(),
|
|
105
|
-
manufacturer: manufacturer.omit({
|
|
106
|
-
device_model_count: true,
|
|
107
|
-
}),
|
|
108
|
-
is_device_supported: z.boolean(),
|
|
109
|
-
display_name: z.string(),
|
|
110
|
-
description: z.string(),
|
|
111
|
-
product_url: z.string().optional(),
|
|
112
|
-
main_connection_type: device_connection_type,
|
|
113
|
-
hardware,
|
|
114
|
-
aesthetic_variants: z
|
|
115
|
-
.object({
|
|
116
|
-
slug: z.string(),
|
|
117
|
-
display_name: z.string(),
|
|
118
|
-
primary_color_hex: z.string().optional(),
|
|
119
|
-
manufacturer_sku: z.string().optional(),
|
|
120
|
-
front_image: image_reference.optional(),
|
|
121
|
-
back_image: image_reference.optional(),
|
|
122
|
-
images: image_reference.array(),
|
|
123
|
-
})
|
|
124
|
-
.array(),
|
|
125
|
-
power_sources: z
|
|
126
|
-
.enum([
|
|
127
|
-
'battery',
|
|
128
|
-
'hardwired',
|
|
129
|
-
'mechanical_harvesting',
|
|
130
|
-
'wireless',
|
|
131
|
-
'ethernet',
|
|
132
|
-
])
|
|
133
|
-
.array(),
|
|
134
|
-
});
|
|
135
|
-
export const device_model_v1 = base_device_model_v1.and(device_model_category_specific_properties);
|
|
136
|
-
//# sourceMappingURL=device-model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device-model.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/models/device-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,OAAO;IACP,UAAU;IACV,WAAW;CACZ,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;CACV,CAAC,CAAA;AAIF,MAAM,SAAS,GAAG,CAAC;KAChB,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC;IACxD,mBAAmB,EAAE,CAAC,CAAC,MAAM,CAAC;QAC5B,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC;YAChB,UAAU;YACV,OAAO;YACP,SAAS;YACT,SAAS;YACT,UAAU;YACV,SAAS;YACT,QAAQ;YACR,SAAS;SACV,CAAC;QACF,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;QAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;KACxB,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC;QAC1B,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE;QAChC,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AW;QACX,uBAAuB;QACvB,UAAU;QACV,UAAU;KACX,CAAC;SACD,KAAK,EAAE;CACX,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC,GAAG,CACrD,yCAAyC,CAC1C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hardware.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/models/hardware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;CAC9B,CAAC;KACD,OAAO,EAAE,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const image_reference: z.ZodObject<{
|
|
3
|
-
url: z.ZodString;
|
|
4
|
-
width: z.ZodNumber;
|
|
5
|
-
height: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
url: string;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
}, {
|
|
11
|
-
url: string;
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
}>;
|
|
15
|
-
export type ImageReference = z.infer<typeof image_reference>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image-reference.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/models/image-reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAChE,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const manufacturer_integration_support_level: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
3
|
-
export type ManufacturerIntegrationSupportLevel = z.infer<typeof manufacturer_integration_support_level>;
|
|
4
|
-
export declare const manufacturer_annotation_code: z.ZodEnum<["subscription_required"]>;
|
|
5
|
-
export type ManufacturerAnnotationCode = z.infer<typeof manufacturer_annotation_code>;
|
|
6
|
-
export declare const manufacturer_annotation: z.ZodObject<{
|
|
7
|
-
annotation_code: z.ZodEnum<["subscription_required"]>;
|
|
8
|
-
message: z.ZodString;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
message: string;
|
|
11
|
-
annotation_code: "subscription_required";
|
|
12
|
-
}, {
|
|
13
|
-
message: string;
|
|
14
|
-
annotation_code: "subscription_required";
|
|
15
|
-
}>;
|
|
16
|
-
export type ManufacturerAnnotation = z.infer<typeof manufacturer_annotation>;
|
|
17
|
-
export declare const manufacturer: z.ZodObject<{
|
|
18
|
-
manufacturer_id: z.ZodString;
|
|
19
|
-
display_name: z.ZodString;
|
|
20
|
-
logo: z.ZodOptional<z.ZodObject<{
|
|
21
|
-
url: z.ZodString;
|
|
22
|
-
width: z.ZodNumber;
|
|
23
|
-
height: z.ZodNumber;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
url: string;
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
}, {
|
|
29
|
-
url: string;
|
|
30
|
-
width: number;
|
|
31
|
-
height: number;
|
|
32
|
-
}>>;
|
|
33
|
-
/** @deprecated */
|
|
34
|
-
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
35
|
-
integration_support_level: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
36
|
-
is_connect_webview_supported: z.ZodBoolean;
|
|
37
|
-
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
38
|
-
device_model_count: z.ZodNumber;
|
|
39
|
-
annotations: z.ZodArray<z.ZodObject<{
|
|
40
|
-
annotation_code: z.ZodEnum<["subscription_required"]>;
|
|
41
|
-
message: z.ZodString;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
message: string;
|
|
44
|
-
annotation_code: "subscription_required";
|
|
45
|
-
}, {
|
|
46
|
-
message: string;
|
|
47
|
-
annotation_code: "subscription_required";
|
|
48
|
-
}>, "many">;
|
|
49
|
-
website: z.ZodOptional<z.ZodString>;
|
|
50
|
-
legal_name: z.ZodOptional<z.ZodString>;
|
|
51
|
-
parent_organization: z.ZodOptional<z.ZodString>;
|
|
52
|
-
headquarters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
53
|
-
countries_of_origin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
54
|
-
founding_year: z.ZodOptional<z.ZodString>;
|
|
55
|
-
us_customer_support_tel: z.ZodOptional<z.ZodString>;
|
|
56
|
-
us_customer_support_email: z.ZodOptional<z.ZodString>;
|
|
57
|
-
us_customer_support_contact_url: z.ZodOptional<z.ZodString>;
|
|
58
|
-
seam_api_guide: z.ZodOptional<z.ZodString>;
|
|
59
|
-
description: z.ZodOptional<z.ZodString>;
|
|
60
|
-
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
display_name: string;
|
|
62
|
-
manufacturer_id: string;
|
|
63
|
-
integration: "stable" | "beta" | "planned" | "unsupported" | "inquire";
|
|
64
|
-
integration_support_level: "stable" | "beta" | "planned" | "unsupported" | "inquire";
|
|
65
|
-
is_connect_webview_supported: boolean;
|
|
66
|
-
requires_seam_support_to_add_account: boolean;
|
|
67
|
-
device_model_count: number;
|
|
68
|
-
annotations: {
|
|
69
|
-
message: string;
|
|
70
|
-
annotation_code: "subscription_required";
|
|
71
|
-
}[];
|
|
72
|
-
description?: string | undefined;
|
|
73
|
-
logo?: {
|
|
74
|
-
url: string;
|
|
75
|
-
width: number;
|
|
76
|
-
height: number;
|
|
77
|
-
} | undefined;
|
|
78
|
-
website?: string | undefined;
|
|
79
|
-
legal_name?: string | undefined;
|
|
80
|
-
parent_organization?: string | undefined;
|
|
81
|
-
headquarters?: string[] | undefined;
|
|
82
|
-
countries_of_origin?: string[] | undefined;
|
|
83
|
-
founding_year?: string | undefined;
|
|
84
|
-
us_customer_support_tel?: string | undefined;
|
|
85
|
-
us_customer_support_email?: string | undefined;
|
|
86
|
-
us_customer_support_contact_url?: string | undefined;
|
|
87
|
-
seam_api_guide?: string | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
display_name: string;
|
|
90
|
-
manufacturer_id: string;
|
|
91
|
-
integration: "stable" | "beta" | "planned" | "unsupported" | "inquire";
|
|
92
|
-
integration_support_level: "stable" | "beta" | "planned" | "unsupported" | "inquire";
|
|
93
|
-
is_connect_webview_supported: boolean;
|
|
94
|
-
requires_seam_support_to_add_account: boolean;
|
|
95
|
-
device_model_count: number;
|
|
96
|
-
annotations: {
|
|
97
|
-
message: string;
|
|
98
|
-
annotation_code: "subscription_required";
|
|
99
|
-
}[];
|
|
100
|
-
description?: string | undefined;
|
|
101
|
-
logo?: {
|
|
102
|
-
url: string;
|
|
103
|
-
width: number;
|
|
104
|
-
height: number;
|
|
105
|
-
} | undefined;
|
|
106
|
-
website?: string | undefined;
|
|
107
|
-
legal_name?: string | undefined;
|
|
108
|
-
parent_organization?: string | undefined;
|
|
109
|
-
headquarters?: string[] | undefined;
|
|
110
|
-
countries_of_origin?: string[] | undefined;
|
|
111
|
-
founding_year?: string | undefined;
|
|
112
|
-
us_customer_support_tel?: string | undefined;
|
|
113
|
-
us_customer_support_email?: string | undefined;
|
|
114
|
-
us_customer_support_contact_url?: string | undefined;
|
|
115
|
-
seam_api_guide?: string | undefined;
|
|
116
|
-
}>;
|
|
117
|
-
export type Manufacturer = z.infer<typeof manufacturer>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { image_reference } from './image-reference.js';
|
|
3
|
-
export const manufacturer_integration_support_level = z.enum([
|
|
4
|
-
'stable',
|
|
5
|
-
'beta',
|
|
6
|
-
'planned',
|
|
7
|
-
'unsupported',
|
|
8
|
-
'inquire',
|
|
9
|
-
]);
|
|
10
|
-
export const manufacturer_annotation_code = z.enum(['subscription_required']);
|
|
11
|
-
export const manufacturer_annotation = z.object({
|
|
12
|
-
annotation_code: manufacturer_annotation_code,
|
|
13
|
-
message: z.string().trim().nonempty(),
|
|
14
|
-
});
|
|
15
|
-
export const manufacturer = z.object({
|
|
16
|
-
manufacturer_id: z.string().uuid(),
|
|
17
|
-
display_name: z.string(),
|
|
18
|
-
logo: image_reference.optional(),
|
|
19
|
-
/** @deprecated */
|
|
20
|
-
integration: manufacturer_integration_support_level,
|
|
21
|
-
integration_support_level: manufacturer_integration_support_level,
|
|
22
|
-
is_connect_webview_supported: z.boolean(),
|
|
23
|
-
requires_seam_support_to_add_account: z.boolean(),
|
|
24
|
-
device_model_count: z.number(),
|
|
25
|
-
annotations: z.array(manufacturer_annotation),
|
|
26
|
-
website: z.string().url().optional(),
|
|
27
|
-
legal_name: z.string().optional(),
|
|
28
|
-
parent_organization: z.string().optional(),
|
|
29
|
-
headquarters: z.array(z.string()).optional(),
|
|
30
|
-
countries_of_origin: z.array(z.string()).optional(),
|
|
31
|
-
founding_year: z.string().optional(),
|
|
32
|
-
us_customer_support_tel: z.string().optional(),
|
|
33
|
-
us_customer_support_email: z.string().email().optional(),
|
|
34
|
-
us_customer_support_contact_url: z.string().url().optional(),
|
|
35
|
-
seam_api_guide: z.string().optional(),
|
|
36
|
-
description: z.string().optional(),
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=manufacturer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manufacturer.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/models/manufacturer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3D,QAAQ;IACR,MAAM;IACN,SAAS;IACT,aAAa;IACb,SAAS;CACV,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAA;AAM7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,eAAe,EAAE,4BAA4B;IAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,eAAe,CAAC,QAAQ,EAAE;IAChC,kBAAkB;IAClB,WAAW,EAAE,sCAAsC;IACnD,yBAAyB,EAAE,sCAAsC;IACjE,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,oCAAoC,EAAE,CAAC,CAAC,OAAO,EAAE;IACjD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IAC7C,O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