@mestra-dev/contract 0.0.80 → 0.0.82
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/index.d.ts +473 -218
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2959,7 +2959,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2959
2959
|
readonly required: readonly [
|
|
2960
2960
|
"id",
|
|
2961
2961
|
"workspaceId",
|
|
2962
|
-
"
|
|
2962
|
+
"title"
|
|
2963
2963
|
];
|
|
2964
2964
|
readonly properties: {
|
|
2965
2965
|
readonly id: {
|
|
@@ -2970,9 +2970,22 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2970
2970
|
readonly type: "string";
|
|
2971
2971
|
readonly format: "uuid";
|
|
2972
2972
|
};
|
|
2973
|
-
readonly
|
|
2973
|
+
readonly title: {
|
|
2974
2974
|
readonly type: "string";
|
|
2975
2975
|
};
|
|
2976
|
+
readonly type: {
|
|
2977
|
+
readonly type: "string";
|
|
2978
|
+
readonly nullable: true;
|
|
2979
|
+
};
|
|
2980
|
+
readonly currency: {
|
|
2981
|
+
readonly type: "string";
|
|
2982
|
+
readonly nullable: true;
|
|
2983
|
+
readonly enum: readonly [
|
|
2984
|
+
"USD",
|
|
2985
|
+
"EUR",
|
|
2986
|
+
"RUB"
|
|
2987
|
+
];
|
|
2988
|
+
};
|
|
2976
2989
|
readonly description: {
|
|
2977
2990
|
readonly type: "string";
|
|
2978
2991
|
readonly nullable: true;
|
|
@@ -2981,36 +2994,179 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2981
2994
|
readonly type: "integer";
|
|
2982
2995
|
readonly nullable: true;
|
|
2983
2996
|
};
|
|
2984
|
-
readonly
|
|
2985
|
-
readonly type: "
|
|
2997
|
+
readonly propertyType: {
|
|
2998
|
+
readonly type: "string";
|
|
2986
2999
|
readonly nullable: true;
|
|
2987
3000
|
};
|
|
2988
|
-
readonly
|
|
3001
|
+
readonly propertyStatus: {
|
|
2989
3002
|
readonly type: "string";
|
|
2990
3003
|
readonly nullable: true;
|
|
2991
|
-
readonly enum: readonly [
|
|
2992
|
-
"USD",
|
|
2993
|
-
"EUR",
|
|
2994
|
-
"RUB"
|
|
2995
|
-
];
|
|
2996
3004
|
};
|
|
2997
|
-
readonly
|
|
3005
|
+
readonly commercialType: {
|
|
2998
3006
|
readonly type: "string";
|
|
2999
3007
|
readonly nullable: true;
|
|
3000
|
-
readonly enum: readonly [
|
|
3001
|
-
"product",
|
|
3002
|
-
"service"
|
|
3003
|
-
];
|
|
3004
|
-
readonly description: "Product or service classification.";
|
|
3005
3008
|
};
|
|
3006
|
-
readonly
|
|
3009
|
+
readonly commercialClass: {
|
|
3010
|
+
readonly type: "string";
|
|
3011
|
+
readonly nullable: true;
|
|
3012
|
+
};
|
|
3013
|
+
readonly landType: {
|
|
3014
|
+
readonly type: "string";
|
|
3015
|
+
readonly nullable: true;
|
|
3016
|
+
};
|
|
3017
|
+
readonly ownershipType: {
|
|
3018
|
+
readonly type: "string";
|
|
3019
|
+
readonly nullable: true;
|
|
3020
|
+
};
|
|
3021
|
+
readonly loadingDockAccess: {
|
|
3022
|
+
readonly type: "boolean";
|
|
3023
|
+
readonly nullable: true;
|
|
3024
|
+
};
|
|
3025
|
+
readonly waterAccess: {
|
|
3026
|
+
readonly type: "boolean";
|
|
3027
|
+
readonly nullable: true;
|
|
3028
|
+
};
|
|
3029
|
+
readonly electricityAccess: {
|
|
3030
|
+
readonly type: "boolean";
|
|
3031
|
+
readonly nullable: true;
|
|
3032
|
+
};
|
|
3033
|
+
readonly gasAccess: {
|
|
3034
|
+
readonly type: "boolean";
|
|
3035
|
+
readonly nullable: true;
|
|
3036
|
+
};
|
|
3037
|
+
readonly sewageAccess: {
|
|
3038
|
+
readonly type: "boolean";
|
|
3039
|
+
readonly nullable: true;
|
|
3040
|
+
};
|
|
3041
|
+
readonly internetAccess: {
|
|
3042
|
+
readonly type: "boolean";
|
|
3043
|
+
readonly nullable: true;
|
|
3044
|
+
};
|
|
3045
|
+
readonly elevaorAccess: {
|
|
3007
3046
|
readonly type: "boolean";
|
|
3008
3047
|
readonly nullable: true;
|
|
3009
3048
|
};
|
|
3010
|
-
readonly
|
|
3049
|
+
readonly seprateEntrance: {
|
|
3050
|
+
readonly type: "boolean";
|
|
3051
|
+
readonly nullable: true;
|
|
3052
|
+
};
|
|
3053
|
+
readonly furnishedType: {
|
|
3054
|
+
readonly type: "string";
|
|
3055
|
+
readonly nullable: true;
|
|
3056
|
+
};
|
|
3057
|
+
readonly parkingType: {
|
|
3058
|
+
readonly type: "string";
|
|
3059
|
+
readonly nullable: true;
|
|
3060
|
+
};
|
|
3061
|
+
readonly otherFeatures: {
|
|
3011
3062
|
readonly type: "string";
|
|
3012
3063
|
readonly nullable: true;
|
|
3013
|
-
|
|
3064
|
+
};
|
|
3065
|
+
readonly fullPayment: {
|
|
3066
|
+
readonly type: "boolean";
|
|
3067
|
+
readonly nullable: true;
|
|
3068
|
+
};
|
|
3069
|
+
readonly mortgagePayment: {
|
|
3070
|
+
readonly type: "boolean";
|
|
3071
|
+
readonly nullable: true;
|
|
3072
|
+
};
|
|
3073
|
+
readonly installmentPayment: {
|
|
3074
|
+
readonly type: "boolean";
|
|
3075
|
+
readonly nullable: true;
|
|
3076
|
+
};
|
|
3077
|
+
readonly fullPaymentAmount: {
|
|
3078
|
+
readonly type: "integer";
|
|
3079
|
+
readonly nullable: true;
|
|
3080
|
+
};
|
|
3081
|
+
readonly mortgagePaymentAmount: {
|
|
3082
|
+
readonly type: "integer";
|
|
3083
|
+
readonly nullable: true;
|
|
3084
|
+
};
|
|
3085
|
+
readonly installmentPaymentAmount: {
|
|
3086
|
+
readonly type: "integer";
|
|
3087
|
+
readonly nullable: true;
|
|
3088
|
+
};
|
|
3089
|
+
readonly pricePerSquareMeter: {
|
|
3090
|
+
readonly type: "integer";
|
|
3091
|
+
readonly nullable: true;
|
|
3092
|
+
};
|
|
3093
|
+
readonly alternativeEURCurrency: {
|
|
3094
|
+
readonly type: "boolean";
|
|
3095
|
+
readonly nullable: true;
|
|
3096
|
+
};
|
|
3097
|
+
readonly alternativeRUBCurrency: {
|
|
3098
|
+
readonly type: "boolean";
|
|
3099
|
+
readonly nullable: true;
|
|
3100
|
+
};
|
|
3101
|
+
readonly alternativeUSDCurrency: {
|
|
3102
|
+
readonly type: "boolean";
|
|
3103
|
+
readonly nullable: true;
|
|
3104
|
+
};
|
|
3105
|
+
readonly roomsCount: {
|
|
3106
|
+
readonly type: "integer";
|
|
3107
|
+
readonly nullable: true;
|
|
3108
|
+
};
|
|
3109
|
+
readonly bathroomsCount: {
|
|
3110
|
+
readonly type: "integer";
|
|
3111
|
+
readonly nullable: true;
|
|
3112
|
+
};
|
|
3113
|
+
readonly bedroomsCount: {
|
|
3114
|
+
readonly type: "integer";
|
|
3115
|
+
readonly nullable: true;
|
|
3116
|
+
};
|
|
3117
|
+
readonly totalArea: {
|
|
3118
|
+
readonly type: "integer";
|
|
3119
|
+
readonly nullable: true;
|
|
3120
|
+
};
|
|
3121
|
+
readonly livingArea: {
|
|
3122
|
+
readonly type: "integer";
|
|
3123
|
+
readonly nullable: true;
|
|
3124
|
+
};
|
|
3125
|
+
readonly ceilingHeight: {
|
|
3126
|
+
readonly type: "integer";
|
|
3127
|
+
readonly nullable: true;
|
|
3128
|
+
};
|
|
3129
|
+
readonly floor: {
|
|
3130
|
+
readonly type: "integer";
|
|
3131
|
+
readonly nullable: true;
|
|
3132
|
+
};
|
|
3133
|
+
readonly totalFloors: {
|
|
3134
|
+
readonly type: "integer";
|
|
3135
|
+
readonly nullable: true;
|
|
3136
|
+
};
|
|
3137
|
+
readonly yearBuilt: {
|
|
3138
|
+
readonly type: "integer";
|
|
3139
|
+
readonly nullable: true;
|
|
3140
|
+
};
|
|
3141
|
+
readonly renovation: {
|
|
3142
|
+
readonly type: "string";
|
|
3143
|
+
readonly nullable: true;
|
|
3144
|
+
};
|
|
3145
|
+
readonly city: {
|
|
3146
|
+
readonly type: "string";
|
|
3147
|
+
readonly nullable: true;
|
|
3148
|
+
};
|
|
3149
|
+
readonly district: {
|
|
3150
|
+
readonly type: "string";
|
|
3151
|
+
readonly nullable: true;
|
|
3152
|
+
};
|
|
3153
|
+
readonly nearestMetroStation: {
|
|
3154
|
+
readonly type: "string";
|
|
3155
|
+
readonly nullable: true;
|
|
3156
|
+
};
|
|
3157
|
+
readonly fullAddress: {
|
|
3158
|
+
readonly type: "string";
|
|
3159
|
+
readonly nullable: true;
|
|
3160
|
+
};
|
|
3161
|
+
readonly latitude: {
|
|
3162
|
+
readonly type: "string";
|
|
3163
|
+
readonly nullable: true;
|
|
3164
|
+
readonly description: "Decimal degrees as a numeric string.";
|
|
3165
|
+
};
|
|
3166
|
+
readonly longitude: {
|
|
3167
|
+
readonly type: "string";
|
|
3168
|
+
readonly nullable: true;
|
|
3169
|
+
readonly description: "Decimal degrees as a numeric string.";
|
|
3014
3170
|
};
|
|
3015
3171
|
readonly created_at: {
|
|
3016
3172
|
readonly type: "string";
|
|
@@ -9167,7 +9323,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9167
9323
|
"Services"
|
|
9168
9324
|
];
|
|
9169
9325
|
readonly summary: "Create a new service";
|
|
9170
|
-
readonly description: "Creates a service in the specified workspace. Requires workspace access
|
|
9326
|
+
readonly description: "Creates a category-specific service in the specified workspace. Real-estate workspaces persist a listing on service_real_estates. Requires workspace access, write access to crm::services, and billing capacity for services.";
|
|
9171
9327
|
readonly security: readonly [
|
|
9172
9328
|
never
|
|
9173
9329
|
];
|
|
@@ -9179,13 +9335,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9179
9335
|
readonly type: "object";
|
|
9180
9336
|
readonly required: readonly [
|
|
9181
9337
|
"workspace",
|
|
9182
|
-
"
|
|
9183
|
-
"description",
|
|
9184
|
-
"price",
|
|
9185
|
-
"stock",
|
|
9186
|
-
"currency",
|
|
9187
|
-
"type",
|
|
9188
|
-
"active"
|
|
9338
|
+
"title"
|
|
9189
9339
|
];
|
|
9190
9340
|
readonly properties: {
|
|
9191
9341
|
readonly workspace: {
|
|
@@ -9193,21 +9343,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9193
9343
|
readonly format: "uuid";
|
|
9194
9344
|
readonly description: "Workspace identifier where the service is created.";
|
|
9195
9345
|
};
|
|
9196
|
-
readonly
|
|
9346
|
+
readonly title: {
|
|
9197
9347
|
readonly type: "string";
|
|
9198
|
-
readonly description: "
|
|
9348
|
+
readonly description: "Listing title.";
|
|
9199
9349
|
};
|
|
9200
|
-
readonly
|
|
9350
|
+
readonly type: {
|
|
9201
9351
|
readonly type: "string";
|
|
9202
|
-
readonly description: "Service description.";
|
|
9203
|
-
};
|
|
9204
|
-
readonly price: {
|
|
9205
|
-
readonly type: "number";
|
|
9206
|
-
readonly description: "Service price.";
|
|
9207
|
-
};
|
|
9208
|
-
readonly stock: {
|
|
9209
|
-
readonly type: "integer";
|
|
9210
|
-
readonly description: "Stock quantity.";
|
|
9211
9352
|
};
|
|
9212
9353
|
readonly currency: {
|
|
9213
9354
|
readonly type: "string";
|
|
@@ -9216,23 +9357,141 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9216
9357
|
"EUR",
|
|
9217
9358
|
"RUB"
|
|
9218
9359
|
];
|
|
9219
|
-
readonly description: "Currency code.";
|
|
9220
9360
|
};
|
|
9221
|
-
readonly
|
|
9361
|
+
readonly description: {
|
|
9222
9362
|
readonly type: "string";
|
|
9223
|
-
readonly enum: readonly [
|
|
9224
|
-
"product",
|
|
9225
|
-
"service"
|
|
9226
|
-
];
|
|
9227
|
-
readonly description: "Service type.";
|
|
9228
9363
|
};
|
|
9229
|
-
readonly
|
|
9364
|
+
readonly price: {
|
|
9365
|
+
readonly type: "number";
|
|
9366
|
+
};
|
|
9367
|
+
readonly propertyType: {
|
|
9368
|
+
readonly type: "string";
|
|
9369
|
+
};
|
|
9370
|
+
readonly propertyStatus: {
|
|
9371
|
+
readonly type: "string";
|
|
9372
|
+
};
|
|
9373
|
+
readonly commercialType: {
|
|
9374
|
+
readonly type: "string";
|
|
9375
|
+
};
|
|
9376
|
+
readonly commercialClass: {
|
|
9377
|
+
readonly type: "string";
|
|
9378
|
+
};
|
|
9379
|
+
readonly landType: {
|
|
9380
|
+
readonly type: "string";
|
|
9381
|
+
};
|
|
9382
|
+
readonly ownershipType: {
|
|
9383
|
+
readonly type: "string";
|
|
9384
|
+
};
|
|
9385
|
+
readonly loadingDockAccess: {
|
|
9386
|
+
readonly type: "boolean";
|
|
9387
|
+
};
|
|
9388
|
+
readonly waterAccess: {
|
|
9230
9389
|
readonly type: "boolean";
|
|
9231
|
-
readonly description: "Whether the service is active.";
|
|
9232
9390
|
};
|
|
9233
|
-
readonly
|
|
9391
|
+
readonly electricityAccess: {
|
|
9392
|
+
readonly type: "boolean";
|
|
9393
|
+
};
|
|
9394
|
+
readonly gasAccess: {
|
|
9395
|
+
readonly type: "boolean";
|
|
9396
|
+
};
|
|
9397
|
+
readonly sewageAccess: {
|
|
9398
|
+
readonly type: "boolean";
|
|
9399
|
+
};
|
|
9400
|
+
readonly internetAccess: {
|
|
9401
|
+
readonly type: "boolean";
|
|
9402
|
+
};
|
|
9403
|
+
readonly elevaorAccess: {
|
|
9404
|
+
readonly type: "boolean";
|
|
9405
|
+
};
|
|
9406
|
+
readonly seprateEntrance: {
|
|
9407
|
+
readonly type: "boolean";
|
|
9408
|
+
};
|
|
9409
|
+
readonly furnishedType: {
|
|
9410
|
+
readonly type: "string";
|
|
9411
|
+
};
|
|
9412
|
+
readonly parkingType: {
|
|
9413
|
+
readonly type: "string";
|
|
9414
|
+
};
|
|
9415
|
+
readonly otherFeatures: {
|
|
9234
9416
|
readonly type: "string";
|
|
9235
|
-
|
|
9417
|
+
};
|
|
9418
|
+
readonly fullPayment: {
|
|
9419
|
+
readonly type: "boolean";
|
|
9420
|
+
};
|
|
9421
|
+
readonly mortgagePayment: {
|
|
9422
|
+
readonly type: "boolean";
|
|
9423
|
+
};
|
|
9424
|
+
readonly installmentPayment: {
|
|
9425
|
+
readonly type: "boolean";
|
|
9426
|
+
};
|
|
9427
|
+
readonly fullPaymentAmount: {
|
|
9428
|
+
readonly type: "number";
|
|
9429
|
+
};
|
|
9430
|
+
readonly mortgagePaymentAmount: {
|
|
9431
|
+
readonly type: "number";
|
|
9432
|
+
};
|
|
9433
|
+
readonly installmentPaymentAmount: {
|
|
9434
|
+
readonly type: "number";
|
|
9435
|
+
};
|
|
9436
|
+
readonly pricePerSquareMeter: {
|
|
9437
|
+
readonly type: "number";
|
|
9438
|
+
};
|
|
9439
|
+
readonly alternativeEURCurrency: {
|
|
9440
|
+
readonly type: "boolean";
|
|
9441
|
+
};
|
|
9442
|
+
readonly alternativeRUBCurrency: {
|
|
9443
|
+
readonly type: "boolean";
|
|
9444
|
+
};
|
|
9445
|
+
readonly alternativeUSDCurrency: {
|
|
9446
|
+
readonly type: "boolean";
|
|
9447
|
+
};
|
|
9448
|
+
readonly roomsCount: {
|
|
9449
|
+
readonly type: "number";
|
|
9450
|
+
};
|
|
9451
|
+
readonly bathroomsCount: {
|
|
9452
|
+
readonly type: "number";
|
|
9453
|
+
};
|
|
9454
|
+
readonly bedroomsCount: {
|
|
9455
|
+
readonly type: "number";
|
|
9456
|
+
};
|
|
9457
|
+
readonly totalArea: {
|
|
9458
|
+
readonly type: "number";
|
|
9459
|
+
};
|
|
9460
|
+
readonly livingArea: {
|
|
9461
|
+
readonly type: "number";
|
|
9462
|
+
};
|
|
9463
|
+
readonly ceilingHeight: {
|
|
9464
|
+
readonly type: "number";
|
|
9465
|
+
};
|
|
9466
|
+
readonly floor: {
|
|
9467
|
+
readonly type: "number";
|
|
9468
|
+
};
|
|
9469
|
+
readonly totalFloors: {
|
|
9470
|
+
readonly type: "number";
|
|
9471
|
+
};
|
|
9472
|
+
readonly yearBuilt: {
|
|
9473
|
+
readonly type: "number";
|
|
9474
|
+
};
|
|
9475
|
+
readonly renovation: {
|
|
9476
|
+
readonly type: "string";
|
|
9477
|
+
};
|
|
9478
|
+
readonly city: {
|
|
9479
|
+
readonly type: "string";
|
|
9480
|
+
};
|
|
9481
|
+
readonly district: {
|
|
9482
|
+
readonly type: "string";
|
|
9483
|
+
};
|
|
9484
|
+
readonly nearestMetroStation: {
|
|
9485
|
+
readonly type: "string";
|
|
9486
|
+
};
|
|
9487
|
+
readonly fullAddress: {
|
|
9488
|
+
readonly type: "string";
|
|
9489
|
+
};
|
|
9490
|
+
readonly latitude: {
|
|
9491
|
+
readonly type: "number";
|
|
9492
|
+
};
|
|
9493
|
+
readonly longitude: {
|
|
9494
|
+
readonly type: "number";
|
|
9236
9495
|
};
|
|
9237
9496
|
};
|
|
9238
9497
|
};
|
|
@@ -9415,129 +9674,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9415
9674
|
};
|
|
9416
9675
|
};
|
|
9417
9676
|
};
|
|
9418
|
-
readonly "/services/edit": {
|
|
9419
|
-
readonly post: {
|
|
9420
|
-
readonly tags: readonly [
|
|
9421
|
-
"Services"
|
|
9422
|
-
];
|
|
9423
|
-
readonly summary: "Edit a service";
|
|
9424
|
-
readonly description: "Updates a service in the specified workspace. Requires workspace access and write access to crm::services resource.";
|
|
9425
|
-
readonly security: readonly [
|
|
9426
|
-
never
|
|
9427
|
-
];
|
|
9428
|
-
readonly requestBody: {
|
|
9429
|
-
readonly required: true;
|
|
9430
|
-
readonly content: {
|
|
9431
|
-
readonly "application/json": {
|
|
9432
|
-
readonly schema: {
|
|
9433
|
-
readonly type: "object";
|
|
9434
|
-
readonly required: readonly [
|
|
9435
|
-
"serviceId",
|
|
9436
|
-
"workspace"
|
|
9437
|
-
];
|
|
9438
|
-
readonly properties: {
|
|
9439
|
-
readonly serviceId: {
|
|
9440
|
-
readonly type: "string";
|
|
9441
|
-
readonly format: "uuid";
|
|
9442
|
-
readonly description: "Service identifier to edit.";
|
|
9443
|
-
};
|
|
9444
|
-
readonly workspace: {
|
|
9445
|
-
readonly type: "string";
|
|
9446
|
-
readonly format: "uuid";
|
|
9447
|
-
readonly description: "Workspace identifier where the service belongs.";
|
|
9448
|
-
};
|
|
9449
|
-
readonly name: {
|
|
9450
|
-
readonly type: "string";
|
|
9451
|
-
readonly description: "Updated service name.";
|
|
9452
|
-
};
|
|
9453
|
-
readonly description: {
|
|
9454
|
-
readonly type: "string";
|
|
9455
|
-
readonly description: "Updated service description.";
|
|
9456
|
-
};
|
|
9457
|
-
readonly price: {
|
|
9458
|
-
readonly type: "number";
|
|
9459
|
-
readonly description: "Updated service price.";
|
|
9460
|
-
};
|
|
9461
|
-
readonly stock: {
|
|
9462
|
-
readonly type: "integer";
|
|
9463
|
-
readonly description: "Updated stock quantity.";
|
|
9464
|
-
};
|
|
9465
|
-
readonly currency: {
|
|
9466
|
-
readonly type: "string";
|
|
9467
|
-
readonly enum: readonly [
|
|
9468
|
-
"USD",
|
|
9469
|
-
"EUR",
|
|
9470
|
-
"RUB"
|
|
9471
|
-
];
|
|
9472
|
-
readonly description: "Updated currency code.";
|
|
9473
|
-
};
|
|
9474
|
-
readonly active: {
|
|
9475
|
-
readonly type: "boolean";
|
|
9476
|
-
readonly description: "Updated active status.";
|
|
9477
|
-
};
|
|
9478
|
-
readonly qrCode: {
|
|
9479
|
-
readonly type: "string";
|
|
9480
|
-
readonly description: "Updated QR code payload or URL.";
|
|
9481
|
-
};
|
|
9482
|
-
};
|
|
9483
|
-
};
|
|
9484
|
-
};
|
|
9485
|
-
};
|
|
9486
|
-
};
|
|
9487
|
-
readonly responses: {
|
|
9488
|
-
readonly 200: {
|
|
9489
|
-
readonly description: "Service updated successfully.";
|
|
9490
|
-
readonly content: {
|
|
9491
|
-
readonly "application/json": {
|
|
9492
|
-
readonly schema: {
|
|
9493
|
-
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
9494
|
-
};
|
|
9495
|
-
};
|
|
9496
|
-
};
|
|
9497
|
-
};
|
|
9498
|
-
readonly 400: {
|
|
9499
|
-
readonly description: "Invalid request payload.";
|
|
9500
|
-
readonly content: {
|
|
9501
|
-
readonly "application/json": {
|
|
9502
|
-
readonly schema: {
|
|
9503
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9504
|
-
};
|
|
9505
|
-
};
|
|
9506
|
-
};
|
|
9507
|
-
};
|
|
9508
|
-
readonly 401: {
|
|
9509
|
-
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
9510
|
-
readonly content: {
|
|
9511
|
-
readonly "application/json": {
|
|
9512
|
-
readonly schema: {
|
|
9513
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9514
|
-
};
|
|
9515
|
-
};
|
|
9516
|
-
};
|
|
9517
|
-
};
|
|
9518
|
-
readonly 403: {
|
|
9519
|
-
readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::services resource.";
|
|
9520
|
-
readonly content: {
|
|
9521
|
-
readonly "application/json": {
|
|
9522
|
-
readonly schema: {
|
|
9523
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9524
|
-
};
|
|
9525
|
-
};
|
|
9526
|
-
};
|
|
9527
|
-
};
|
|
9528
|
-
readonly 404: {
|
|
9529
|
-
readonly description: "Service not found.";
|
|
9530
|
-
readonly content: {
|
|
9531
|
-
readonly "application/json": {
|
|
9532
|
-
readonly schema: {
|
|
9533
|
-
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9534
|
-
};
|
|
9535
|
-
};
|
|
9536
|
-
};
|
|
9537
|
-
};
|
|
9538
|
-
};
|
|
9539
|
-
};
|
|
9540
|
-
};
|
|
9541
9677
|
readonly "/services/delete": {
|
|
9542
9678
|
readonly post: {
|
|
9543
9679
|
readonly tags: readonly [
|
|
@@ -14602,7 +14738,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14602
14738
|
input: {};
|
|
14603
14739
|
output: {
|
|
14604
14740
|
success: false;
|
|
14605
|
-
error:
|
|
14741
|
+
error: string;
|
|
14606
14742
|
};
|
|
14607
14743
|
outputFormat: "json";
|
|
14608
14744
|
status: 400;
|
|
@@ -14612,20 +14748,60 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14612
14748
|
success: true;
|
|
14613
14749
|
service: {
|
|
14614
14750
|
id: string;
|
|
14751
|
+
title: string;
|
|
14615
14752
|
type: string | null;
|
|
14616
14753
|
created_at: string;
|
|
14617
|
-
name: string;
|
|
14618
|
-
active: boolean | null;
|
|
14619
14754
|
workspaceId: string;
|
|
14620
14755
|
description: string | null;
|
|
14621
14756
|
price: number | null;
|
|
14622
14757
|
currency: string | null;
|
|
14623
|
-
stock: number | null;
|
|
14624
14758
|
updated_at: string | null;
|
|
14625
14759
|
deleted_at: string | null;
|
|
14626
14760
|
verified_at: string | null;
|
|
14627
14761
|
suspended_at: string | null;
|
|
14628
|
-
|
|
14762
|
+
propertyType: string | null;
|
|
14763
|
+
propertyStatus: string | null;
|
|
14764
|
+
commercialType: string | null;
|
|
14765
|
+
commercialClass: string | null;
|
|
14766
|
+
landType: string | null;
|
|
14767
|
+
ownershipType: string | null;
|
|
14768
|
+
loadingDockAccess: boolean | null;
|
|
14769
|
+
waterAccess: boolean | null;
|
|
14770
|
+
electricityAccess: boolean | null;
|
|
14771
|
+
gasAccess: boolean | null;
|
|
14772
|
+
sewageAccess: boolean | null;
|
|
14773
|
+
internetAccess: boolean | null;
|
|
14774
|
+
elevaorAccess: boolean | null;
|
|
14775
|
+
seprateEntrance: boolean | null;
|
|
14776
|
+
furnishedType: string | null;
|
|
14777
|
+
parkingType: string | null;
|
|
14778
|
+
otherFeatures: string | null;
|
|
14779
|
+
fullPayment: boolean | null;
|
|
14780
|
+
mortgagePayment: boolean | null;
|
|
14781
|
+
installmentPayment: boolean | null;
|
|
14782
|
+
fullPaymentAmount: number | null;
|
|
14783
|
+
mortgagePaymentAmount: number | null;
|
|
14784
|
+
installmentPaymentAmount: number | null;
|
|
14785
|
+
pricePerSquareMeter: number | null;
|
|
14786
|
+
alternativeEURCurrency: boolean | null;
|
|
14787
|
+
alternativeRUBCurrency: boolean | null;
|
|
14788
|
+
alternativeUSDCurrency: boolean | null;
|
|
14789
|
+
roomsCount: number | null;
|
|
14790
|
+
bathroomsCount: number | null;
|
|
14791
|
+
bedroomsCount: number | null;
|
|
14792
|
+
totalArea: number | null;
|
|
14793
|
+
livingArea: number | null;
|
|
14794
|
+
ceilingHeight: number | null;
|
|
14795
|
+
floor: number | null;
|
|
14796
|
+
totalFloors: number | null;
|
|
14797
|
+
yearBuilt: number | null;
|
|
14798
|
+
renovation: string | null;
|
|
14799
|
+
city: string | null;
|
|
14800
|
+
district: string | null;
|
|
14801
|
+
nearestMetroStation: string | null;
|
|
14802
|
+
fullAddress: string | null;
|
|
14803
|
+
latitude: string | null;
|
|
14804
|
+
longitude: string | null;
|
|
14629
14805
|
}[];
|
|
14630
14806
|
};
|
|
14631
14807
|
outputFormat: "json";
|
|
@@ -14635,6 +14811,18 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14635
14811
|
} & {
|
|
14636
14812
|
"/list/:workspace": {
|
|
14637
14813
|
$get: {
|
|
14814
|
+
input: {
|
|
14815
|
+
param: {
|
|
14816
|
+
workspace: string;
|
|
14817
|
+
};
|
|
14818
|
+
};
|
|
14819
|
+
output: {
|
|
14820
|
+
success: false;
|
|
14821
|
+
error: string;
|
|
14822
|
+
};
|
|
14823
|
+
outputFormat: "json";
|
|
14824
|
+
status: 400;
|
|
14825
|
+
} | {
|
|
14638
14826
|
input: {
|
|
14639
14827
|
param: {
|
|
14640
14828
|
workspace: string;
|
|
@@ -14650,14 +14838,54 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14650
14838
|
created_at: string;
|
|
14651
14839
|
id: string;
|
|
14652
14840
|
workspaceId: string;
|
|
14653
|
-
|
|
14654
|
-
description: string | null;
|
|
14655
|
-
stock: number | null;
|
|
14656
|
-
currency: string | null;
|
|
14841
|
+
title: string;
|
|
14657
14842
|
type: string | null;
|
|
14658
|
-
|
|
14843
|
+
currency: string | null;
|
|
14844
|
+
description: string | null;
|
|
14659
14845
|
price: number | null;
|
|
14660
|
-
|
|
14846
|
+
propertyType: string | null;
|
|
14847
|
+
propertyStatus: string | null;
|
|
14848
|
+
commercialType: string | null;
|
|
14849
|
+
commercialClass: string | null;
|
|
14850
|
+
landType: string | null;
|
|
14851
|
+
ownershipType: string | null;
|
|
14852
|
+
loadingDockAccess: boolean | null;
|
|
14853
|
+
waterAccess: boolean | null;
|
|
14854
|
+
electricityAccess: boolean | null;
|
|
14855
|
+
gasAccess: boolean | null;
|
|
14856
|
+
sewageAccess: boolean | null;
|
|
14857
|
+
internetAccess: boolean | null;
|
|
14858
|
+
elevaorAccess: boolean | null;
|
|
14859
|
+
seprateEntrance: boolean | null;
|
|
14860
|
+
furnishedType: string | null;
|
|
14861
|
+
parkingType: string | null;
|
|
14862
|
+
otherFeatures: string | null;
|
|
14863
|
+
fullPayment: boolean | null;
|
|
14864
|
+
mortgagePayment: boolean | null;
|
|
14865
|
+
installmentPayment: boolean | null;
|
|
14866
|
+
fullPaymentAmount: number | null;
|
|
14867
|
+
mortgagePaymentAmount: number | null;
|
|
14868
|
+
installmentPaymentAmount: number | null;
|
|
14869
|
+
pricePerSquareMeter: number | null;
|
|
14870
|
+
alternativeEURCurrency: boolean | null;
|
|
14871
|
+
alternativeRUBCurrency: boolean | null;
|
|
14872
|
+
alternativeUSDCurrency: boolean | null;
|
|
14873
|
+
roomsCount: number | null;
|
|
14874
|
+
bathroomsCount: number | null;
|
|
14875
|
+
bedroomsCount: number | null;
|
|
14876
|
+
totalArea: number | null;
|
|
14877
|
+
livingArea: number | null;
|
|
14878
|
+
ceilingHeight: number | null;
|
|
14879
|
+
floor: number | null;
|
|
14880
|
+
totalFloors: number | null;
|
|
14881
|
+
yearBuilt: number | null;
|
|
14882
|
+
renovation: string | null;
|
|
14883
|
+
city: string | null;
|
|
14884
|
+
district: string | null;
|
|
14885
|
+
nearestMetroStation: string | null;
|
|
14886
|
+
fullAddress: string | null;
|
|
14887
|
+
latitude: string | null;
|
|
14888
|
+
longitude: string | null;
|
|
14661
14889
|
}[];
|
|
14662
14890
|
};
|
|
14663
14891
|
outputFormat: "json";
|
|
@@ -14667,6 +14895,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14667
14895
|
} & {
|
|
14668
14896
|
"/get/:workspace/:serviceId": {
|
|
14669
14897
|
$get: {
|
|
14898
|
+
input: {
|
|
14899
|
+
param: {
|
|
14900
|
+
workspace: string;
|
|
14901
|
+
} & {
|
|
14902
|
+
serviceId: string;
|
|
14903
|
+
};
|
|
14904
|
+
};
|
|
14905
|
+
output: {
|
|
14906
|
+
success: false;
|
|
14907
|
+
error: string;
|
|
14908
|
+
};
|
|
14909
|
+
outputFormat: "json";
|
|
14910
|
+
status: 400;
|
|
14911
|
+
} | {
|
|
14670
14912
|
input: {
|
|
14671
14913
|
param: {
|
|
14672
14914
|
workspace: string;
|
|
@@ -14698,14 +14940,54 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14698
14940
|
created_at: string;
|
|
14699
14941
|
id: string;
|
|
14700
14942
|
workspaceId: string;
|
|
14701
|
-
|
|
14702
|
-
description: string | null;
|
|
14703
|
-
stock: number | null;
|
|
14704
|
-
currency: string | null;
|
|
14943
|
+
title: string;
|
|
14705
14944
|
type: string | null;
|
|
14706
|
-
|
|
14945
|
+
currency: string | null;
|
|
14946
|
+
description: string | null;
|
|
14707
14947
|
price: number | null;
|
|
14708
|
-
|
|
14948
|
+
propertyType: string | null;
|
|
14949
|
+
propertyStatus: string | null;
|
|
14950
|
+
commercialType: string | null;
|
|
14951
|
+
commercialClass: string | null;
|
|
14952
|
+
landType: string | null;
|
|
14953
|
+
ownershipType: string | null;
|
|
14954
|
+
loadingDockAccess: boolean | null;
|
|
14955
|
+
waterAccess: boolean | null;
|
|
14956
|
+
electricityAccess: boolean | null;
|
|
14957
|
+
gasAccess: boolean | null;
|
|
14958
|
+
sewageAccess: boolean | null;
|
|
14959
|
+
internetAccess: boolean | null;
|
|
14960
|
+
elevaorAccess: boolean | null;
|
|
14961
|
+
seprateEntrance: boolean | null;
|
|
14962
|
+
furnishedType: string | null;
|
|
14963
|
+
parkingType: string | null;
|
|
14964
|
+
otherFeatures: string | null;
|
|
14965
|
+
fullPayment: boolean | null;
|
|
14966
|
+
mortgagePayment: boolean | null;
|
|
14967
|
+
installmentPayment: boolean | null;
|
|
14968
|
+
fullPaymentAmount: number | null;
|
|
14969
|
+
mortgagePaymentAmount: number | null;
|
|
14970
|
+
installmentPaymentAmount: number | null;
|
|
14971
|
+
pricePerSquareMeter: number | null;
|
|
14972
|
+
alternativeEURCurrency: boolean | null;
|
|
14973
|
+
alternativeRUBCurrency: boolean | null;
|
|
14974
|
+
alternativeUSDCurrency: boolean | null;
|
|
14975
|
+
roomsCount: number | null;
|
|
14976
|
+
bathroomsCount: number | null;
|
|
14977
|
+
bedroomsCount: number | null;
|
|
14978
|
+
totalArea: number | null;
|
|
14979
|
+
livingArea: number | null;
|
|
14980
|
+
ceilingHeight: number | null;
|
|
14981
|
+
floor: number | null;
|
|
14982
|
+
totalFloors: number | null;
|
|
14983
|
+
yearBuilt: number | null;
|
|
14984
|
+
renovation: string | null;
|
|
14985
|
+
city: string | null;
|
|
14986
|
+
district: string | null;
|
|
14987
|
+
nearestMetroStation: string | null;
|
|
14988
|
+
fullAddress: string | null;
|
|
14989
|
+
latitude: string | null;
|
|
14990
|
+
longitude: string | null;
|
|
14709
14991
|
};
|
|
14710
14992
|
};
|
|
14711
14993
|
outputFormat: "json";
|
|
@@ -14715,14 +14997,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14715
14997
|
} & {
|
|
14716
14998
|
"/delete": {
|
|
14717
14999
|
$post: {
|
|
14718
|
-
input: {};
|
|
14719
|
-
output: {
|
|
14720
|
-
success: false;
|
|
14721
|
-
error: never;
|
|
14722
|
-
};
|
|
14723
|
-
outputFormat: "json";
|
|
14724
|
-
status: 400;
|
|
14725
|
-
} | {
|
|
14726
15000
|
input: {};
|
|
14727
15001
|
output: {
|
|
14728
15002
|
success: false;
|
|
@@ -14730,25 +15004,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14730
15004
|
};
|
|
14731
15005
|
outputFormat: "json";
|
|
14732
15006
|
status: 404;
|
|
14733
|
-
} | {
|
|
14734
|
-
input: {};
|
|
14735
|
-
output: {
|
|
14736
|
-
success: true;
|
|
14737
|
-
};
|
|
14738
|
-
outputFormat: "json";
|
|
14739
|
-
status: 200;
|
|
14740
|
-
};
|
|
14741
|
-
};
|
|
14742
|
-
} & {
|
|
14743
|
-
"/edit": {
|
|
14744
|
-
$post: {
|
|
14745
|
-
input: {};
|
|
14746
|
-
output: {
|
|
14747
|
-
success: false;
|
|
14748
|
-
error: never;
|
|
14749
|
-
};
|
|
14750
|
-
outputFormat: "json";
|
|
14751
|
-
status: 400;
|
|
14752
15007
|
} | {
|
|
14753
15008
|
input: {};
|
|
14754
15009
|
output: {
|
|
@@ -14756,7 +15011,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
14756
15011
|
error: string;
|
|
14757
15012
|
};
|
|
14758
15013
|
outputFormat: "json";
|
|
14759
|
-
status:
|
|
15014
|
+
status: 400;
|
|
14760
15015
|
} | {
|
|
14761
15016
|
input: {};
|
|
14762
15017
|
output: {
|