@homespot-sdk/core 0.0.240 → 0.0.242

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.
Files changed (73) hide show
  1. package/dist/utils/client/client.gen.d.ts +3 -0
  2. package/dist/utils/client/client.gen.d.ts.map +1 -0
  3. package/dist/utils/client/client.gen.js +207 -0
  4. package/dist/utils/client/client.gen.js.map +1 -0
  5. package/dist/utils/client/index.d.ts +9 -0
  6. package/dist/utils/client/index.d.ts.map +1 -0
  7. package/dist/utils/client/index.js +7 -0
  8. package/dist/utils/client/index.js.map +1 -0
  9. package/dist/utils/client/types.gen.d.ts +100 -0
  10. package/dist/utils/client/types.gen.d.ts.map +1 -0
  11. package/dist/utils/client/types.gen.js +3 -0
  12. package/dist/utils/client/types.gen.js.map +1 -0
  13. package/dist/utils/client/utils.gen.d.ts +41 -0
  14. package/dist/utils/client/utils.gen.d.ts.map +1 -0
  15. package/dist/utils/client/utils.gen.js +303 -0
  16. package/dist/utils/client/utils.gen.js.map +1 -0
  17. package/dist/utils/client.gen.d.ts +13 -0
  18. package/dist/utils/client.gen.d.ts.map +1 -0
  19. package/dist/utils/client.gen.js +7 -0
  20. package/dist/utils/client.gen.js.map +1 -0
  21. package/dist/utils/core/auth.gen.d.ts +19 -0
  22. package/dist/utils/core/auth.gen.d.ts.map +1 -0
  23. package/dist/utils/core/auth.gen.js +15 -0
  24. package/dist/utils/core/auth.gen.js.map +1 -0
  25. package/dist/utils/core/bodySerializer.gen.d.ts +26 -0
  26. package/dist/utils/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/utils/core/bodySerializer.gen.js +58 -0
  28. package/dist/utils/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/utils/core/params.gen.d.ts +44 -0
  30. package/dist/utils/core/params.gen.d.ts.map +1 -0
  31. package/dist/utils/core/params.gen.js +102 -0
  32. package/dist/utils/core/params.gen.js.map +1 -0
  33. package/dist/utils/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/utils/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/utils/core/pathSerializer.gen.js +119 -0
  36. package/dist/utils/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/utils/core/queryKeySerializer.gen.d.ts +19 -0
  38. package/dist/utils/core/queryKeySerializer.gen.d.ts.map +1 -0
  39. package/dist/utils/core/queryKeySerializer.gen.js +100 -0
  40. package/dist/utils/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/utils/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/utils/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/utils/core/serverSentEvents.gen.js +140 -0
  44. package/dist/utils/core/serverSentEvents.gen.js.map +1 -0
  45. package/dist/utils/core/types.gen.d.ts +79 -0
  46. package/dist/utils/core/types.gen.d.ts.map +1 -0
  47. package/dist/utils/core/types.gen.js +3 -0
  48. package/dist/utils/core/types.gen.js.map +1 -0
  49. package/dist/utils/core/utils.gen.d.ts +20 -0
  50. package/dist/utils/core/utils.gen.d.ts.map +1 -0
  51. package/dist/utils/core/utils.gen.js +89 -0
  52. package/dist/utils/core/utils.gen.js.map +1 -0
  53. package/dist/utils/index.d.ts +3 -0
  54. package/dist/utils/index.d.ts.map +1 -0
  55. package/dist/utils/index.js +3 -0
  56. package/dist/utils/index.js.map +1 -0
  57. package/dist/utils/schemas.gen.d.ts +282 -0
  58. package/dist/utils/schemas.gen.d.ts.map +1 -0
  59. package/dist/utils/schemas.gen.js +296 -0
  60. package/dist/utils/schemas.gen.js.map +1 -0
  61. package/dist/utils/sdk.gen.d.ts +23 -0
  62. package/dist/utils/sdk.gen.d.ts.map +1 -0
  63. package/dist/utils/sdk.gen.js +31 -0
  64. package/dist/utils/sdk.gen.js.map +1 -0
  65. package/dist/utils/types.gen.d.ts +181 -0
  66. package/dist/utils/types.gen.d.ts.map +1 -0
  67. package/dist/utils/types.gen.js +3 -0
  68. package/dist/utils/types.gen.js.map +1 -0
  69. package/dist/utils/zod.gen.d.ts +293 -0
  70. package/dist/utils/zod.gen.d.ts.map +1 -0
  71. package/dist/utils/zod.gen.js +236 -0
  72. package/dist/utils/zod.gen.js.map +1 -0
  73. package/package.json +9 -1
@@ -0,0 +1,89 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from './pathSerializer.gen';
3
+ export const PATH_PARAM_RE = /\{[^{}]+\}/g;
4
+ export const defaultPathSerializer = ({ path, url: _url }) => {
5
+ let url = _url;
6
+ const matches = _url.match(PATH_PARAM_RE);
7
+ if (matches) {
8
+ for (const match of matches) {
9
+ let explode = false;
10
+ let name = match.substring(1, match.length - 1);
11
+ let style = 'simple';
12
+ if (name.endsWith('*')) {
13
+ explode = true;
14
+ name = name.substring(0, name.length - 1);
15
+ }
16
+ if (name.startsWith('.')) {
17
+ name = name.substring(1);
18
+ style = 'label';
19
+ }
20
+ else if (name.startsWith(';')) {
21
+ name = name.substring(1);
22
+ style = 'matrix';
23
+ }
24
+ const value = path[name];
25
+ if (value === undefined || value === null) {
26
+ continue;
27
+ }
28
+ if (Array.isArray(value)) {
29
+ url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
30
+ continue;
31
+ }
32
+ if (typeof value === 'object') {
33
+ url = url.replace(match, serializeObjectParam({
34
+ explode,
35
+ name,
36
+ style,
37
+ value: value,
38
+ valueOnly: true,
39
+ }));
40
+ continue;
41
+ }
42
+ if (style === 'matrix') {
43
+ url = url.replace(match, `;${serializePrimitiveParam({
44
+ name,
45
+ value: value,
46
+ })}`);
47
+ continue;
48
+ }
49
+ const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
50
+ url = url.replace(match, replaceValue);
51
+ }
52
+ }
53
+ return url;
54
+ };
55
+ export const getUrl = ({ baseUrl, path, query, querySerializer, url: _url, }) => {
56
+ const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
57
+ let url = (baseUrl ?? '') + pathUrl;
58
+ if (path) {
59
+ url = defaultPathSerializer({ path, url });
60
+ }
61
+ let search = query ? querySerializer(query) : '';
62
+ if (search.startsWith('?')) {
63
+ search = search.substring(1);
64
+ }
65
+ if (search) {
66
+ url += `?${search}`;
67
+ }
68
+ return url;
69
+ };
70
+ export function getValidRequestBody(options) {
71
+ const hasBody = options.body !== undefined;
72
+ const isSerializedBody = hasBody && options.bodySerializer;
73
+ if (isSerializedBody) {
74
+ if ('serializedBody' in options) {
75
+ const hasSerializedBody = options.serializedBody !== undefined &&
76
+ options.serializedBody !== '';
77
+ return hasSerializedBody ? options.serializedBody : null;
78
+ }
79
+ // not all clients implement a serializedBody property (i.e. client-axios)
80
+ return options.body !== '' ? options.body : null;
81
+ }
82
+ // plain/text body
83
+ if (hasBody) {
84
+ return options.body;
85
+ }
86
+ // no body was provided
87
+ return undefined;
88
+ }
89
+ //# sourceMappingURL=utils.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.gen.js","sourceRoot":"","sources":["../../../api/utils/core/utils.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAGrD,OAAO,EAEH,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,GAC1B,MAAM,sBAAsB,CAAC;AAO9B,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAkB,EAAE,EAAE;IACzE,IAAI,GAAG,GAAG,IAAI,CAAC;IACf,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,OAAO,EAAE,CAAC;QACV,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC1B,IAAI,OAAO,GAAG,KAAK,CAAC;YACpB,IAAI,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAChD,IAAI,KAAK,GAAwB,QA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C,OAInC;IACG,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC;IAC3C,MAAM,gBAAgB,GAAG,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC;IAE3D,IAAI,gBAAgB,EAAE,CAAC;QACnB,IAAI,gBAAgB,IAAI,OAAO,EAAE,CAAC;YAC9B,MAAM,iBAAiB,GACnB,OAAO,CAAC,cAAc,KAAK,SAAS;gBACpC,OAAO,CAAC,cAAc,KAAK,EAAE,CAAC;YAElC,OAAO,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;QAC7D,CAAC;QAED,0EAA0E;QAC1E,OAAO,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACrD,CAAC;IAED,kBAAkB;IAClB,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,OAAO,CAAC,IAAI,CAAC;IACxB,CAAC;IAED,uBAAuB;IACvB,OAAO,SAAS,CAAC;AACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { locationControllerAdminAreaGeometry, locationControllerAutocomplete, locationControllerChildren, locationControllerStreetGeometry, type Options, photoClassificationControllerClassifierService, photoUploadControllerConfirmBatch, photoUploadControllerGeneratePresignedUrls, } from './sdk.gen';
2
+ export type { BatchConfirmationResponse, BatchConfirmUploadRequest, ClassifiedPhotoResponse, ClientOptions, GetLocationsAdminAreasByIdGeometryData, GetLocationsAdminAreasByIdGeometryResponse, GetLocationsAdminAreasByIdGeometryResponses, GetLocationsAutocompleteData, GetLocationsAutocompleteResponse, GetLocationsAutocompleteResponses, GetLocationsData, GetLocationsResponse, GetLocationsResponses, GetLocationsStreetsByIdGeometryData, GetLocationsStreetsByIdGeometryResponse, GetLocationsStreetsByIdGeometryResponses, KeysAndBucketRequest, LocationResponse, LocationSummary, MultiLineStringGeometry, MultiPolygonGeometry, PostConfirmBatchData, PostConfirmBatchResponse, PostConfirmBatchResponses, PostImagesClassifyData, PostImagesClassifyResponse, PostImagesClassifyResponses, PostPresignedUrlsData, PostPresignedUrlsResponse, PostPresignedUrlsResponses, PresignedResponse, PresignedUrlOriginalNameResponse, PresignedUrlsRequest, SingleImageConfirmation, UploadedPhotoMetaDataRequest, Viewport, } from './types.gen';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../api/utils/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,mCAAmC,EACnC,8BAA8B,EAC9B,0BAA0B,EAC1B,gCAAgC,EAChC,KAAK,OAAO,EACZ,8CAA8C,EAC9C,iCAAiC,EACjC,0CAA0C,GAC7C,MAAM,WAAW,CAAC;AACnB,YAAY,EACR,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,aAAa,EACb,sCAAsC,EACtC,0CAA0C,EAC1C,2CAA2C,EAC3C,4BAA4B,EAC5B,gCAAgC,EAChC,iCAAiC,EACjC,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,mCAAmC,EACnC,uCAAuC,EACvC,wCAAwC,EACxC,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,gCAAgC,EAChC,oBAAoB,EACpB,uBAAuB,EACvB,4BAA4B,EAC5B,QAAQ,GACX,MAAM,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export { locationControllerAdminAreaGeometry, locationControllerAutocomplete, locationControllerChildren, locationControllerStreetGeometry, photoClassificationControllerClassifierService, photoUploadControllerConfirmBatch, photoUploadControllerGeneratePresignedUrls, } from './sdk.gen';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../api/utils/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EACH,mCAAmC,EACnC,8BAA8B,EAC9B,0BAA0B,EAC1B,gCAAgC,EAEhC,8CAA8C,EAC9C,iCAAiC,EACjC,0CAA0C,GAC7C,MAAM,WAAW,CAAC"}
@@ -0,0 +1,282 @@
1
+ export declare const PresignedUrlsRequestSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly rootPath: {
5
+ readonly type: "string";
6
+ };
7
+ readonly bucket: {
8
+ readonly type: "string";
9
+ };
10
+ readonly originalPhotos: {
11
+ readonly type: "array";
12
+ readonly items: {
13
+ readonly $ref: "#/components/schemas/UploadedPhotoMetaDataRequest";
14
+ };
15
+ readonly minItems: 1;
16
+ };
17
+ };
18
+ readonly required: readonly ["originalPhotos"];
19
+ };
20
+ export declare const UploadedPhotoMetaDataRequestSchema: {
21
+ readonly type: "object";
22
+ readonly properties: {
23
+ readonly original: {
24
+ readonly type: "string";
25
+ readonly minLength: 1;
26
+ };
27
+ readonly type: {
28
+ readonly type: "string";
29
+ readonly enum: readonly ["JPEG", "JPG", "PNG", "WEBP"];
30
+ };
31
+ };
32
+ readonly required: readonly ["original", "type"];
33
+ };
34
+ export declare const PresignedResponseSchema: {
35
+ readonly type: "object";
36
+ readonly properties: {
37
+ readonly expiresAt: {
38
+ readonly type: "integer";
39
+ readonly format: "int64";
40
+ };
41
+ readonly data: {
42
+ readonly type: "array";
43
+ readonly items: {
44
+ readonly $ref: "#/components/schemas/PresignedUrlOriginalNameResponse";
45
+ };
46
+ };
47
+ };
48
+ };
49
+ export declare const PresignedUrlOriginalNameResponseSchema: {
50
+ readonly type: "object";
51
+ readonly properties: {
52
+ readonly originalName: {
53
+ readonly type: "string";
54
+ };
55
+ readonly key: {
56
+ readonly type: "string";
57
+ };
58
+ readonly url: {
59
+ readonly type: "string";
60
+ };
61
+ };
62
+ };
63
+ export declare const KeysAndBucketRequestSchema: {
64
+ readonly type: "object";
65
+ readonly properties: {
66
+ readonly bucket: {
67
+ readonly type: "string";
68
+ };
69
+ readonly keys: {
70
+ readonly type: "array";
71
+ readonly items: {
72
+ readonly type: "string";
73
+ };
74
+ readonly maxItems: 30;
75
+ readonly minItems: 1;
76
+ };
77
+ };
78
+ readonly required: readonly ["bucket"];
79
+ };
80
+ export declare const ClassifiedPhotoResponseSchema: {
81
+ readonly type: "object";
82
+ readonly properties: {
83
+ readonly key: {
84
+ readonly type: "string";
85
+ };
86
+ readonly type: {
87
+ readonly type: "string";
88
+ readonly enum: readonly ["BEDROOM", "BATHROOM", "KITCHEN", "LIVING_ROOM", "GARAGE", "BACKYARD", "GYM", "LAUNDRY", "HOME_THEATRE", "GAME_ROOM", "UNCLASSIFIED", "OTHER"];
89
+ };
90
+ readonly tags: {
91
+ readonly type: "array";
92
+ readonly items: {
93
+ readonly type: "string";
94
+ };
95
+ readonly uniqueItems: true;
96
+ };
97
+ };
98
+ };
99
+ export declare const BatchConfirmUploadRequestSchema: {
100
+ readonly type: "object";
101
+ readonly properties: {
102
+ readonly bucket: {
103
+ readonly type: "string";
104
+ readonly minLength: 1;
105
+ };
106
+ readonly images: {
107
+ readonly type: "array";
108
+ readonly items: {
109
+ readonly $ref: "#/components/schemas/SingleImageConfirmation";
110
+ };
111
+ readonly minItems: 1;
112
+ };
113
+ };
114
+ readonly required: readonly ["bucket", "images"];
115
+ };
116
+ export declare const SingleImageConfirmationSchema: {
117
+ readonly type: "object";
118
+ readonly properties: {
119
+ readonly sourceKey: {
120
+ readonly type: "string";
121
+ readonly minLength: 1;
122
+ };
123
+ readonly destinationKey: {
124
+ readonly type: "string";
125
+ readonly minLength: 1;
126
+ };
127
+ readonly width: {
128
+ readonly type: "integer";
129
+ readonly format: "int32";
130
+ };
131
+ readonly height: {
132
+ readonly type: "integer";
133
+ readonly format: "int32";
134
+ };
135
+ };
136
+ readonly required: readonly ["destinationKey", "height", "sourceKey", "width"];
137
+ };
138
+ export declare const BatchConfirmationResponseSchema: {
139
+ readonly type: "object";
140
+ readonly properties: {
141
+ readonly successCount: {
142
+ readonly type: "integer";
143
+ readonly format: "int32";
144
+ };
145
+ readonly failedSourceKeys: {
146
+ readonly type: "array";
147
+ readonly items: {
148
+ readonly type: "string";
149
+ };
150
+ };
151
+ };
152
+ };
153
+ export declare const LocationResponseSchema: {
154
+ readonly type: "object";
155
+ readonly properties: {
156
+ readonly id: {
157
+ readonly type: "integer";
158
+ readonly format: "int64";
159
+ };
160
+ readonly parentId: {
161
+ readonly type: "integer";
162
+ readonly format: "int64";
163
+ };
164
+ readonly type: {
165
+ readonly type: "string";
166
+ readonly enum: readonly ["REGION", "DISTRICT", "SUBDISTRICT", "STREET"];
167
+ };
168
+ readonly names: {
169
+ readonly type: "object";
170
+ readonly additionalProperties: {
171
+ readonly type: "string";
172
+ };
173
+ };
174
+ readonly viewport: {
175
+ readonly $ref: "#/components/schemas/Viewport";
176
+ };
177
+ };
178
+ readonly required: readonly ["id", "names", "type", "viewport"];
179
+ };
180
+ export declare const ViewportSchema: {
181
+ readonly type: "object";
182
+ readonly properties: {
183
+ readonly south: {
184
+ readonly type: "number";
185
+ readonly format: "double";
186
+ };
187
+ readonly west: {
188
+ readonly type: "number";
189
+ readonly format: "double";
190
+ };
191
+ readonly north: {
192
+ readonly type: "number";
193
+ readonly format: "double";
194
+ };
195
+ readonly east: {
196
+ readonly type: "number";
197
+ readonly format: "double";
198
+ };
199
+ };
200
+ readonly required: readonly ["east", "north", "south", "west"];
201
+ };
202
+ export declare const MultiLineStringGeometrySchema: {
203
+ readonly type: "object";
204
+ readonly properties: {
205
+ readonly type: {
206
+ readonly type: "string";
207
+ };
208
+ readonly coordinates: {
209
+ readonly type: "array";
210
+ readonly items: {
211
+ readonly type: "array";
212
+ readonly items: {
213
+ readonly type: "array";
214
+ readonly items: {
215
+ readonly type: "number";
216
+ readonly format: "double";
217
+ };
218
+ };
219
+ };
220
+ };
221
+ };
222
+ readonly required: readonly ["coordinates", "type"];
223
+ };
224
+ export declare const LocationSummarySchema: {
225
+ readonly type: "object";
226
+ readonly properties: {
227
+ readonly id: {
228
+ readonly type: "integer";
229
+ readonly format: "int64";
230
+ };
231
+ readonly parentId: {
232
+ readonly type: "integer";
233
+ readonly format: "int64";
234
+ };
235
+ readonly type: {
236
+ readonly type: "string";
237
+ readonly enum: readonly ["REGION", "DISTRICT", "SUBDISTRICT", "STREET"];
238
+ };
239
+ readonly names: {
240
+ readonly type: "object";
241
+ readonly additionalProperties: {
242
+ readonly type: "string";
243
+ };
244
+ };
245
+ readonly fullNames: {
246
+ readonly type: "object";
247
+ readonly additionalProperties: {
248
+ readonly type: "string";
249
+ };
250
+ };
251
+ readonly viewport: {
252
+ readonly $ref: "#/components/schemas/Viewport";
253
+ };
254
+ };
255
+ readonly required: readonly ["fullNames", "id", "names", "type", "viewport"];
256
+ };
257
+ export declare const MultiPolygonGeometrySchema: {
258
+ readonly type: "object";
259
+ readonly properties: {
260
+ readonly type: {
261
+ readonly type: "string";
262
+ };
263
+ readonly coordinates: {
264
+ readonly type: "array";
265
+ readonly items: {
266
+ readonly type: "array";
267
+ readonly items: {
268
+ readonly type: "array";
269
+ readonly items: {
270
+ readonly type: "array";
271
+ readonly items: {
272
+ readonly type: "number";
273
+ readonly format: "double";
274
+ };
275
+ };
276
+ };
277
+ };
278
+ };
279
+ };
280
+ readonly required: readonly ["coordinates", "type"];
281
+ };
282
+ //# sourceMappingURL=schemas.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.gen.d.ts","sourceRoot":"","sources":["../../api/utils/schemas.gen.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;CAkB7B,CAAC;AAEX,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;CAarC,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;CAc1B,CAAC;AAEX,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;CAazC,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;CAgB7B,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;CA+BhC,CAAC;AAEX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;CAgBlC,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;CAqBhC,CAAC;AAEX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;CAclC,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BzB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;CAqBjB,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;CAqBhC,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxB,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;CAwB7B,CAAC"}
@@ -0,0 +1,296 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export const PresignedUrlsRequestSchema = {
3
+ type: 'object',
4
+ properties: {
5
+ rootPath: {
6
+ type: 'string',
7
+ },
8
+ bucket: {
9
+ type: 'string',
10
+ },
11
+ originalPhotos: {
12
+ type: 'array',
13
+ items: {
14
+ $ref: '#/components/schemas/UploadedPhotoMetaDataRequest',
15
+ },
16
+ minItems: 1,
17
+ },
18
+ },
19
+ required: ['originalPhotos'],
20
+ };
21
+ export const UploadedPhotoMetaDataRequestSchema = {
22
+ type: 'object',
23
+ properties: {
24
+ original: {
25
+ type: 'string',
26
+ minLength: 1,
27
+ },
28
+ type: {
29
+ type: 'string',
30
+ enum: ['JPEG', 'JPG', 'PNG', 'WEBP'],
31
+ },
32
+ },
33
+ required: ['original', 'type'],
34
+ };
35
+ export const PresignedResponseSchema = {
36
+ type: 'object',
37
+ properties: {
38
+ expiresAt: {
39
+ type: 'integer',
40
+ format: 'int64',
41
+ },
42
+ data: {
43
+ type: 'array',
44
+ items: {
45
+ $ref: '#/components/schemas/PresignedUrlOriginalNameResponse',
46
+ },
47
+ },
48
+ },
49
+ };
50
+ export const PresignedUrlOriginalNameResponseSchema = {
51
+ type: 'object',
52
+ properties: {
53
+ originalName: {
54
+ type: 'string',
55
+ },
56
+ key: {
57
+ type: 'string',
58
+ },
59
+ url: {
60
+ type: 'string',
61
+ },
62
+ },
63
+ };
64
+ export const KeysAndBucketRequestSchema = {
65
+ type: 'object',
66
+ properties: {
67
+ bucket: {
68
+ type: 'string',
69
+ },
70
+ keys: {
71
+ type: 'array',
72
+ items: {
73
+ type: 'string',
74
+ },
75
+ maxItems: 30,
76
+ minItems: 1,
77
+ },
78
+ },
79
+ required: ['bucket'],
80
+ };
81
+ export const ClassifiedPhotoResponseSchema = {
82
+ type: 'object',
83
+ properties: {
84
+ key: {
85
+ type: 'string',
86
+ },
87
+ type: {
88
+ type: 'string',
89
+ enum: [
90
+ 'BEDROOM',
91
+ 'BATHROOM',
92
+ 'KITCHEN',
93
+ 'LIVING_ROOM',
94
+ 'GARAGE',
95
+ 'BACKYARD',
96
+ 'GYM',
97
+ 'LAUNDRY',
98
+ 'HOME_THEATRE',
99
+ 'GAME_ROOM',
100
+ 'UNCLASSIFIED',
101
+ 'OTHER',
102
+ ],
103
+ },
104
+ tags: {
105
+ type: 'array',
106
+ items: {
107
+ type: 'string',
108
+ },
109
+ uniqueItems: true,
110
+ },
111
+ },
112
+ };
113
+ export const BatchConfirmUploadRequestSchema = {
114
+ type: 'object',
115
+ properties: {
116
+ bucket: {
117
+ type: 'string',
118
+ minLength: 1,
119
+ },
120
+ images: {
121
+ type: 'array',
122
+ items: {
123
+ $ref: '#/components/schemas/SingleImageConfirmation',
124
+ },
125
+ minItems: 1,
126
+ },
127
+ },
128
+ required: ['bucket', 'images'],
129
+ };
130
+ export const SingleImageConfirmationSchema = {
131
+ type: 'object',
132
+ properties: {
133
+ sourceKey: {
134
+ type: 'string',
135
+ minLength: 1,
136
+ },
137
+ destinationKey: {
138
+ type: 'string',
139
+ minLength: 1,
140
+ },
141
+ width: {
142
+ type: 'integer',
143
+ format: 'int32',
144
+ },
145
+ height: {
146
+ type: 'integer',
147
+ format: 'int32',
148
+ },
149
+ },
150
+ required: ['destinationKey', 'height', 'sourceKey', 'width'],
151
+ };
152
+ export const BatchConfirmationResponseSchema = {
153
+ type: 'object',
154
+ properties: {
155
+ successCount: {
156
+ type: 'integer',
157
+ format: 'int32',
158
+ },
159
+ failedSourceKeys: {
160
+ type: 'array',
161
+ items: {
162
+ type: 'string',
163
+ },
164
+ },
165
+ },
166
+ };
167
+ export const LocationResponseSchema = {
168
+ type: 'object',
169
+ properties: {
170
+ id: {
171
+ type: 'integer',
172
+ format: 'int64',
173
+ },
174
+ parentId: {
175
+ type: 'integer',
176
+ format: 'int64',
177
+ },
178
+ type: {
179
+ type: 'string',
180
+ enum: ['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'],
181
+ },
182
+ names: {
183
+ type: 'object',
184
+ additionalProperties: {
185
+ type: 'string',
186
+ },
187
+ },
188
+ viewport: {
189
+ $ref: '#/components/schemas/Viewport',
190
+ },
191
+ },
192
+ required: ['id', 'names', 'type', 'viewport'],
193
+ };
194
+ export const ViewportSchema = {
195
+ type: 'object',
196
+ properties: {
197
+ south: {
198
+ type: 'number',
199
+ format: 'double',
200
+ },
201
+ west: {
202
+ type: 'number',
203
+ format: 'double',
204
+ },
205
+ north: {
206
+ type: 'number',
207
+ format: 'double',
208
+ },
209
+ east: {
210
+ type: 'number',
211
+ format: 'double',
212
+ },
213
+ },
214
+ required: ['east', 'north', 'south', 'west'],
215
+ };
216
+ export const MultiLineStringGeometrySchema = {
217
+ type: 'object',
218
+ properties: {
219
+ type: {
220
+ type: 'string',
221
+ },
222
+ coordinates: {
223
+ type: 'array',
224
+ items: {
225
+ type: 'array',
226
+ items: {
227
+ type: 'array',
228
+ items: {
229
+ type: 'number',
230
+ format: 'double',
231
+ },
232
+ },
233
+ },
234
+ },
235
+ },
236
+ required: ['coordinates', 'type'],
237
+ };
238
+ export const LocationSummarySchema = {
239
+ type: 'object',
240
+ properties: {
241
+ id: {
242
+ type: 'integer',
243
+ format: 'int64',
244
+ },
245
+ parentId: {
246
+ type: 'integer',
247
+ format: 'int64',
248
+ },
249
+ type: {
250
+ type: 'string',
251
+ enum: ['REGION', 'DISTRICT', 'SUBDISTRICT', 'STREET'],
252
+ },
253
+ names: {
254
+ type: 'object',
255
+ additionalProperties: {
256
+ type: 'string',
257
+ },
258
+ },
259
+ fullNames: {
260
+ type: 'object',
261
+ additionalProperties: {
262
+ type: 'string',
263
+ },
264
+ },
265
+ viewport: {
266
+ $ref: '#/components/schemas/Viewport',
267
+ },
268
+ },
269
+ required: ['fullNames', 'id', 'names', 'type', 'viewport'],
270
+ };
271
+ export const MultiPolygonGeometrySchema = {
272
+ type: 'object',
273
+ properties: {
274
+ type: {
275
+ type: 'string',
276
+ },
277
+ coordinates: {
278
+ type: 'array',
279
+ items: {
280
+ type: 'array',
281
+ items: {
282
+ type: 'array',
283
+ items: {
284
+ type: 'array',
285
+ items: {
286
+ type: 'number',
287
+ format: 'double',
288
+ },
289
+ },
290
+ },
291
+ },
292
+ },
293
+ },
294
+ required: ['coordinates', 'type'],
295
+ };
296
+ //# sourceMappingURL=schemas.gen.js.map