autosync_backend2 1.2.38 → 1.2.40

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 (3) hide show
  1. package/dist/index.d.ts +530 -0
  2. package/dist/index.js +378 -139
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -8132,6 +8132,479 @@ export declare const app: Elysia<"", {
8132
8132
  };
8133
8133
  };
8134
8134
  };
8135
+ } & {
8136
+ techdoc: {
8137
+ "product-category": {};
8138
+ } & {
8139
+ "product-category": {
8140
+ get: {
8141
+ body: unknown;
8142
+ params: {};
8143
+ query: {
8144
+ name?: string | undefined;
8145
+ id?: string | undefined;
8146
+ pagination: {
8147
+ size: number;
8148
+ page: number;
8149
+ };
8150
+ };
8151
+ headers: unknown;
8152
+ response: {
8153
+ 200: {
8154
+ totalCount: number;
8155
+ totalPage: number;
8156
+ result: Omit<{
8157
+ totalCount: number;
8158
+ name: string;
8159
+ description: string | null;
8160
+ id: string;
8161
+ createdAt: string;
8162
+ updatedAt: string;
8163
+ deletedAt: string | null;
8164
+ oldId: number | null;
8165
+ }, "totalCount">[];
8166
+ };
8167
+ 401: "Session not found";
8168
+ 422: {
8169
+ type: "validation";
8170
+ on: string;
8171
+ summary?: string;
8172
+ message?: string;
8173
+ found?: unknown;
8174
+ property?: string;
8175
+ expected?: string;
8176
+ };
8177
+ };
8178
+ };
8179
+ };
8180
+ } & {
8181
+ "product-category": {
8182
+ post: {
8183
+ body: {
8184
+ oldId?: number | null | undefined;
8185
+ description?: string | null | undefined;
8186
+ name: string;
8187
+ };
8188
+ params: {};
8189
+ query: unknown;
8190
+ headers: unknown;
8191
+ response: {
8192
+ 200: {
8193
+ name: string;
8194
+ id: string;
8195
+ createdAt: string;
8196
+ updatedAt: string;
8197
+ deletedAt: string | null;
8198
+ oldId: number | null;
8199
+ description: string | null;
8200
+ };
8201
+ 401: "Session not found";
8202
+ 422: {
8203
+ type: "validation";
8204
+ on: string;
8205
+ summary?: string;
8206
+ message?: string;
8207
+ found?: unknown;
8208
+ property?: string;
8209
+ expected?: string;
8210
+ };
8211
+ };
8212
+ };
8213
+ };
8214
+ } & {
8215
+ "product-category": {
8216
+ ":id": {
8217
+ put: {
8218
+ body: {
8219
+ name?: string | undefined;
8220
+ oldId?: number | null | undefined;
8221
+ description?: string | null | undefined;
8222
+ };
8223
+ params: {
8224
+ id: string;
8225
+ };
8226
+ query: unknown;
8227
+ headers: unknown;
8228
+ response: {
8229
+ 200: {
8230
+ name: string;
8231
+ description: string | null;
8232
+ id: string;
8233
+ createdAt: string;
8234
+ updatedAt: string;
8235
+ deletedAt: string | null;
8236
+ oldId: number | null;
8237
+ };
8238
+ 401: "Session not found";
8239
+ 404: "Бүтээгдэхүүний ангилал олдсонгүй.";
8240
+ 422: {
8241
+ type: "validation";
8242
+ on: string;
8243
+ summary?: string;
8244
+ message?: string;
8245
+ found?: unknown;
8246
+ property?: string;
8247
+ expected?: string;
8248
+ };
8249
+ };
8250
+ };
8251
+ };
8252
+ };
8253
+ } & {
8254
+ "product-category": {
8255
+ ":id": {
8256
+ delete: {
8257
+ body: unknown;
8258
+ params: {
8259
+ id: string;
8260
+ };
8261
+ query: unknown;
8262
+ headers: unknown;
8263
+ response: {
8264
+ 401: "Session not found";
8265
+ 422: {
8266
+ type: "validation";
8267
+ on: string;
8268
+ summary?: string;
8269
+ message?: string;
8270
+ found?: unknown;
8271
+ property?: string;
8272
+ expected?: string;
8273
+ };
8274
+ };
8275
+ };
8276
+ };
8277
+ };
8278
+ };
8279
+ } & {
8280
+ techdoc: {
8281
+ "product-kind": {};
8282
+ } & {
8283
+ "product-kind": {
8284
+ get: {
8285
+ body: unknown;
8286
+ params: {};
8287
+ query: {
8288
+ name?: string | undefined;
8289
+ id?: string | undefined;
8290
+ productCategoryId?: string | undefined;
8291
+ pagination: {
8292
+ size: number;
8293
+ page: number;
8294
+ };
8295
+ };
8296
+ headers: unknown;
8297
+ response: {
8298
+ 200: {
8299
+ totalCount: number;
8300
+ totalPage: number;
8301
+ result: Omit<{
8302
+ category: {
8303
+ name: string;
8304
+ description: string | null;
8305
+ id: string;
8306
+ createdAt: string;
8307
+ updatedAt: string;
8308
+ deletedAt: string | null;
8309
+ oldId: number | null;
8310
+ } | null;
8311
+ totalCount: number;
8312
+ productCategoryId: string;
8313
+ name: string;
8314
+ description: string | null;
8315
+ id: string;
8316
+ createdAt: string;
8317
+ updatedAt: string;
8318
+ deletedAt: string | null;
8319
+ oldId: number | null;
8320
+ }, "totalCount">[];
8321
+ };
8322
+ 401: "Session not found";
8323
+ 422: {
8324
+ type: "validation";
8325
+ on: string;
8326
+ summary?: string;
8327
+ message?: string;
8328
+ found?: unknown;
8329
+ property?: string;
8330
+ expected?: string;
8331
+ };
8332
+ };
8333
+ };
8334
+ };
8335
+ } & {
8336
+ "product-kind": {
8337
+ post: {
8338
+ body: {
8339
+ oldId?: number | null | undefined;
8340
+ description?: string | null | undefined;
8341
+ name: string;
8342
+ productCategoryId: string;
8343
+ };
8344
+ params: {};
8345
+ query: unknown;
8346
+ headers: unknown;
8347
+ response: {
8348
+ 200: {
8349
+ name: string;
8350
+ id: string;
8351
+ createdAt: string;
8352
+ updatedAt: string;
8353
+ deletedAt: string | null;
8354
+ oldId: number | null;
8355
+ description: string | null;
8356
+ productCategoryId: string;
8357
+ };
8358
+ 401: "Session not found";
8359
+ 422: {
8360
+ type: "validation";
8361
+ on: string;
8362
+ summary?: string;
8363
+ message?: string;
8364
+ found?: unknown;
8365
+ property?: string;
8366
+ expected?: string;
8367
+ };
8368
+ };
8369
+ };
8370
+ };
8371
+ } & {
8372
+ "product-kind": {
8373
+ ":id": {
8374
+ put: {
8375
+ body: {
8376
+ name?: string | undefined;
8377
+ oldId?: number | null | undefined;
8378
+ description?: string | null | undefined;
8379
+ productCategoryId?: string | undefined;
8380
+ };
8381
+ params: {
8382
+ id: string;
8383
+ };
8384
+ query: unknown;
8385
+ headers: unknown;
8386
+ response: {
8387
+ 200: {
8388
+ productCategoryId: string;
8389
+ name: string;
8390
+ description: string | null;
8391
+ id: string;
8392
+ createdAt: string;
8393
+ updatedAt: string;
8394
+ deletedAt: string | null;
8395
+ oldId: number | null;
8396
+ };
8397
+ 401: "Session not found";
8398
+ 404: "Бүтээгдэхүүний төрөл олдсонгүй.";
8399
+ 422: {
8400
+ type: "validation";
8401
+ on: string;
8402
+ summary?: string;
8403
+ message?: string;
8404
+ found?: unknown;
8405
+ property?: string;
8406
+ expected?: string;
8407
+ };
8408
+ };
8409
+ };
8410
+ };
8411
+ };
8412
+ } & {
8413
+ "product-kind": {
8414
+ ":id": {
8415
+ delete: {
8416
+ body: unknown;
8417
+ params: {
8418
+ id: string;
8419
+ };
8420
+ query: unknown;
8421
+ headers: unknown;
8422
+ response: {
8423
+ 401: "Session not found";
8424
+ 422: {
8425
+ type: "validation";
8426
+ on: string;
8427
+ summary?: string;
8428
+ message?: string;
8429
+ found?: unknown;
8430
+ property?: string;
8431
+ expected?: string;
8432
+ };
8433
+ };
8434
+ };
8435
+ };
8436
+ };
8437
+ };
8438
+ } & {
8439
+ techdoc: {
8440
+ "product-kind-relate": {};
8441
+ } & {
8442
+ "product-kind-relate": {
8443
+ get: {
8444
+ body: unknown;
8445
+ params: {};
8446
+ query: {
8447
+ productKindOneId?: string | undefined;
8448
+ productKindTwoId?: string | undefined;
8449
+ relateType?: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED" | undefined;
8450
+ pagination: {
8451
+ size: number;
8452
+ page: number;
8453
+ };
8454
+ };
8455
+ headers: unknown;
8456
+ response: {
8457
+ 200: {
8458
+ totalCount: number;
8459
+ totalPage: number;
8460
+ result: Omit<{
8461
+ productKindOne: {
8462
+ productCategoryId: string;
8463
+ name: string;
8464
+ description: string | null;
8465
+ id: string;
8466
+ createdAt: string;
8467
+ updatedAt: string;
8468
+ deletedAt: string | null;
8469
+ oldId: number | null;
8470
+ } | null;
8471
+ productKindTwo: {
8472
+ productCategoryId: string;
8473
+ name: string;
8474
+ description: string | null;
8475
+ id: string;
8476
+ createdAt: string;
8477
+ updatedAt: string;
8478
+ deletedAt: string | null;
8479
+ oldId: number | null;
8480
+ } | null;
8481
+ totalCount: number;
8482
+ productKindOneId: string;
8483
+ productKindTwoId: string;
8484
+ relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
8485
+ id: string;
8486
+ createdAt: string;
8487
+ updatedAt: string;
8488
+ deletedAt: string | null;
8489
+ oldId: number | null;
8490
+ }, "totalCount">[];
8491
+ };
8492
+ 401: "Session not found";
8493
+ 422: {
8494
+ type: "validation";
8495
+ on: string;
8496
+ summary?: string;
8497
+ message?: string;
8498
+ found?: unknown;
8499
+ property?: string;
8500
+ expected?: string;
8501
+ };
8502
+ };
8503
+ };
8504
+ };
8505
+ } & {
8506
+ "product-kind-relate": {
8507
+ post: {
8508
+ body: {
8509
+ oldId?: number | null | undefined;
8510
+ productKindOneId: string;
8511
+ productKindTwoId: string;
8512
+ relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
8513
+ };
8514
+ params: {};
8515
+ query: unknown;
8516
+ headers: unknown;
8517
+ response: {
8518
+ 200: {
8519
+ id: string;
8520
+ createdAt: string;
8521
+ updatedAt: string;
8522
+ deletedAt: string | null;
8523
+ oldId: number | null;
8524
+ productKindOneId: string;
8525
+ productKindTwoId: string;
8526
+ relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
8527
+ };
8528
+ 401: "Session not found";
8529
+ 422: {
8530
+ type: "validation";
8531
+ on: string;
8532
+ summary?: string;
8533
+ message?: string;
8534
+ found?: unknown;
8535
+ property?: string;
8536
+ expected?: string;
8537
+ };
8538
+ };
8539
+ };
8540
+ };
8541
+ } & {
8542
+ "product-kind-relate": {
8543
+ ":id": {
8544
+ put: {
8545
+ body: {
8546
+ oldId?: number | null | undefined;
8547
+ productKindOneId?: string | undefined;
8548
+ productKindTwoId?: string | undefined;
8549
+ relateType?: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED" | undefined;
8550
+ };
8551
+ params: {
8552
+ id: string;
8553
+ };
8554
+ query: unknown;
8555
+ headers: unknown;
8556
+ response: {
8557
+ 200: {
8558
+ productKindOneId: string;
8559
+ productKindTwoId: string;
8560
+ relateType: "INCLUDE" | "EXCLUDE" | "ALTERNATIVE" | "EQUIVALENT" | "ACCESSORY" | "COMPONENT" | "DEPENDENCY" | "UPGRADE" | "DERIVED";
8561
+ id: string;
8562
+ createdAt: string;
8563
+ updatedAt: string;
8564
+ deletedAt: string | null;
8565
+ oldId: number | null;
8566
+ };
8567
+ 401: "Session not found";
8568
+ 404: "Бүтээгдэхүүний холбоос олдсонгүй.";
8569
+ 422: {
8570
+ type: "validation";
8571
+ on: string;
8572
+ summary?: string;
8573
+ message?: string;
8574
+ found?: unknown;
8575
+ property?: string;
8576
+ expected?: string;
8577
+ };
8578
+ };
8579
+ };
8580
+ };
8581
+ };
8582
+ } & {
8583
+ "product-kind-relate": {
8584
+ ":id": {
8585
+ delete: {
8586
+ body: unknown;
8587
+ params: {
8588
+ id: string;
8589
+ };
8590
+ query: unknown;
8591
+ headers: unknown;
8592
+ response: {
8593
+ 401: "Session not found";
8594
+ 422: {
8595
+ type: "validation";
8596
+ on: string;
8597
+ summary?: string;
8598
+ message?: string;
8599
+ found?: unknown;
8600
+ property?: string;
8601
+ expected?: string;
8602
+ };
8603
+ };
8604
+ };
8605
+ };
8606
+ };
8607
+ };
8135
8608
  } & {
8136
8609
  techdoc: {
8137
8610
  product: {};
@@ -8959,6 +9432,63 @@ export declare const app: Elysia<"", {
8959
9432
  };
8960
9433
  };
8961
9434
  };
9435
+ } & {
9436
+ inspection: {
9437
+ ":id": {
9438
+ put: {
9439
+ body: {
9440
+ oldId?: number | null | undefined;
9441
+ state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
9442
+ timeCompleted?: Date | null | undefined;
9443
+ note?: string | null | undefined;
9444
+ templateId?: string | undefined;
9445
+ machineId?: string | undefined;
9446
+ employeeInspectedId?: string | undefined;
9447
+ userInspectedId?: string | undefined;
9448
+ hours?: number | null | undefined;
9449
+ mileageKm?: number | null | undefined;
9450
+ stateResult?: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null | undefined;
9451
+ timeScheduled?: Date | null | undefined;
9452
+ };
9453
+ params: {
9454
+ id: string;
9455
+ };
9456
+ query: unknown;
9457
+ headers: unknown;
9458
+ response: {
9459
+ 200: {
9460
+ machineId: string;
9461
+ templateId: string;
9462
+ employeeInspectedId: string;
9463
+ userInspectedId: string;
9464
+ hours: number | null;
9465
+ mileageKm: number | null;
9466
+ state: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED";
9467
+ stateResult: "FAILED" | "NOT_INSPECTED" | "PASSED" | "RETURNED" | "WAIVED" | null;
9468
+ timeScheduled: Date | null;
9469
+ timeCompleted: Date | null;
9470
+ note: string | null;
9471
+ id: string;
9472
+ createdAt: string;
9473
+ updatedAt: string;
9474
+ deletedAt: string | null;
9475
+ oldId: number | null;
9476
+ };
9477
+ 401: "Session not found";
9478
+ 404: "Хяналтын үзлэг олдсонгүй.";
9479
+ 422: {
9480
+ type: "validation";
9481
+ on: string;
9482
+ summary?: string;
9483
+ message?: string;
9484
+ found?: unknown;
9485
+ property?: string;
9486
+ expected?: string;
9487
+ };
9488
+ };
9489
+ };
9490
+ };
9491
+ };
8962
9492
  };
8963
9493
  } & {
8964
9494
  fleet: {