autosync_backend2 1.2.39 → 1.2.41

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/env.d.ts CHANGED
@@ -10,6 +10,10 @@ declare const EnvSchema: import("@sinclair/typebox").TObject<{
10
10
  ATUT_TOKEN: import("@sinclair/typebox").TString;
11
11
  AWS_ACCESS_KEY: import("@sinclair/typebox").TString;
12
12
  AWS_SECRET_KEY: import("@sinclair/typebox").TString;
13
+ MBANK_CLIENT_ID: import("@sinclair/typebox").TString;
14
+ MBANK_CLIENT_SECRET: import("@sinclair/typebox").TString;
15
+ MBANK_USERNAME: import("@sinclair/typebox").TString;
16
+ MBANK_PASSWORD: import("@sinclair/typebox").TString;
13
17
  }>;
14
18
  export type env = typeof EnvSchema.static;
15
19
  declare let env: env;
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: {};
@@ -8400,6 +8873,130 @@ export declare const app: Elysia<"", {
8400
8873
  };
8401
8874
  };
8402
8875
  };
8876
+ } & {
8877
+ inspection: {
8878
+ "field-result": {};
8879
+ } & {
8880
+ "field-result": {
8881
+ get: {
8882
+ body: unknown;
8883
+ params: {};
8884
+ query: {
8885
+ pagination: {
8886
+ size: number;
8887
+ page: number;
8888
+ };
8889
+ inspectionId: string;
8890
+ };
8891
+ headers: unknown;
8892
+ response: {
8893
+ 200: {
8894
+ totalCount: number;
8895
+ totalPage: number;
8896
+ result: Omit<{
8897
+ totalCount: number;
8898
+ inspectionId: string;
8899
+ templateFieldId: string;
8900
+ result: string | null;
8901
+ numeric: number | null;
8902
+ comment: string | null;
8903
+ severityLevel: number | null;
8904
+ id: string;
8905
+ createdAt: string;
8906
+ updatedAt: string;
8907
+ deletedAt: string | null;
8908
+ oldId: number | null;
8909
+ }, "totalCount">[];
8910
+ };
8911
+ 401: "Session not found";
8912
+ 422: {
8913
+ type: "validation";
8914
+ on: string;
8915
+ summary?: string;
8916
+ message?: string;
8917
+ found?: unknown;
8918
+ property?: string;
8919
+ expected?: string;
8920
+ };
8921
+ };
8922
+ };
8923
+ };
8924
+ } & {
8925
+ "field-result": {
8926
+ "create-or-update": {
8927
+ post: {
8928
+ body: {
8929
+ oldId?: number | null | undefined;
8930
+ result?: string | null | undefined;
8931
+ numeric?: number | null | undefined;
8932
+ comment?: string | null | undefined;
8933
+ severityLevel?: number | null | undefined;
8934
+ inspectionId: string;
8935
+ templateFieldId: string;
8936
+ }[];
8937
+ params: {};
8938
+ query: unknown;
8939
+ headers: unknown;
8940
+ response: {
8941
+ 200: {
8942
+ inspectionId: string;
8943
+ templateFieldId: string;
8944
+ result: string | null;
8945
+ numeric: number | null;
8946
+ comment: string | null;
8947
+ severityLevel: number | null;
8948
+ id: string;
8949
+ createdAt: string;
8950
+ updatedAt: string;
8951
+ deletedAt: string | null;
8952
+ oldId: number | null;
8953
+ }[];
8954
+ 400: "Хяналтын үр дүн оруулах мэдээлэл байхгүй байна." | "Бүх үр дүн нь ижил хяналтын үзлэгт хамаарах ёстой.";
8955
+ 401: "Session not found";
8956
+ 422: {
8957
+ type: "validation";
8958
+ on: string;
8959
+ summary?: string;
8960
+ message?: string;
8961
+ found?: unknown;
8962
+ property?: string;
8963
+ expected?: string;
8964
+ };
8965
+ };
8966
+ };
8967
+ };
8968
+ };
8969
+ } & {
8970
+ "field-result": {
8971
+ inspection: {
8972
+ ":id": {
8973
+ all: {
8974
+ delete: {
8975
+ body: unknown;
8976
+ params: {
8977
+ id: string;
8978
+ };
8979
+ query: unknown;
8980
+ headers: unknown;
8981
+ response: {
8982
+ 401: "Session not found";
8983
+ 404: "Хяналтын үзлэг олдсонгүй.";
8984
+ 422: {
8985
+ type: "validation";
8986
+ on: string;
8987
+ summary?: string;
8988
+ message?: string;
8989
+ found?: unknown;
8990
+ property?: string;
8991
+ expected?: string;
8992
+ };
8993
+ };
8994
+ };
8995
+ };
8996
+ };
8997
+ };
8998
+ };
8999
+ };
8403
9000
  } & {
8404
9001
  inspection: {
8405
9002
  template: {};