autosync_backend2 1.2.76 → 1.2.78

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 +875 -35
  2. package/dist/index.js +133828 -207
  3. package/package.json +3 -1
package/dist/index.d.ts CHANGED
@@ -2176,8 +2176,8 @@ export declare const app: Elysia<"", {
2176
2176
  name?: string | undefined;
2177
2177
  id?: string | undefined;
2178
2178
  branchId?: string | null | undefined;
2179
- serviceKindId?: string | null | undefined;
2180
2179
  enabled?: boolean | undefined;
2180
+ serviceKindId?: string | null | undefined;
2181
2181
  ids?: string[] | undefined;
2182
2182
  pagination: {
2183
2183
  size: number;
@@ -2224,8 +2224,8 @@ export declare const app: Elysia<"", {
2224
2224
  branchId?: string | null | undefined;
2225
2225
  oldId?: number | null | undefined;
2226
2226
  description?: string | null | undefined;
2227
- serviceKindId?: string | null | undefined;
2228
2227
  enabled?: boolean | undefined;
2228
+ serviceKindId?: string | null | undefined;
2229
2229
  name: string;
2230
2230
  price: number;
2231
2231
  };
@@ -2243,9 +2243,9 @@ export declare const app: Elysia<"", {
2243
2243
  deletedAt: string | null;
2244
2244
  oldId: number | null;
2245
2245
  description: string | null;
2246
+ enabled: boolean;
2246
2247
  price: number;
2247
2248
  serviceKindId: string | null;
2248
- enabled: boolean;
2249
2249
  };
2250
2250
  401: "Токен олдсонгүй";
2251
2251
  422: {
@@ -2260,6 +2260,35 @@ export declare const app: Elysia<"", {
2260
2260
  };
2261
2261
  };
2262
2262
  };
2263
+ } & {
2264
+ "service-kind": {
2265
+ techdoc: {
2266
+ "service-kind": {
2267
+ put: {
2268
+ body: {
2269
+ serviceKindId: string;
2270
+ companyServiceKindIds: string[];
2271
+ };
2272
+ params: {};
2273
+ query: {};
2274
+ headers: {};
2275
+ response: {
2276
+ 401: "Токен олдсонгүй";
2277
+ 403: "Хандах эрхгүй байна.";
2278
+ 422: {
2279
+ type: "validation";
2280
+ on: string;
2281
+ summary?: string;
2282
+ message?: string;
2283
+ found?: unknown;
2284
+ property?: string;
2285
+ expected?: string;
2286
+ };
2287
+ };
2288
+ };
2289
+ };
2290
+ };
2291
+ };
2263
2292
  } & {
2264
2293
  "service-kind": {
2265
2294
  ":id": {
@@ -2269,9 +2298,9 @@ export declare const app: Elysia<"", {
2269
2298
  branchId?: string | null | undefined;
2270
2299
  oldId?: number | null | undefined;
2271
2300
  description?: string | null | undefined;
2301
+ enabled?: boolean | undefined;
2272
2302
  price?: number | undefined;
2273
2303
  serviceKindId?: string | null | undefined;
2274
- enabled?: boolean | undefined;
2275
2304
  };
2276
2305
  params: {
2277
2306
  id: string;
@@ -4135,8 +4164,8 @@ export declare const app: Elysia<"", {
4135
4164
  oldId?: number | null | undefined;
4136
4165
  description?: string | null | undefined;
4137
4166
  paymentPackageId?: string | null | undefined;
4167
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4138
4168
  amount: number;
4139
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4140
4169
  cpOrderId: string;
4141
4170
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
4142
4171
  paymentChannel: string;
@@ -4152,8 +4181,8 @@ export declare const app: Elysia<"", {
4152
4181
  deletedAt: string | null;
4153
4182
  oldId: number | null;
4154
4183
  description: string | null;
4184
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4155
4185
  amount: number;
4156
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4157
4186
  cpOrderId: string;
4158
4187
  paymentPackageId: string | null;
4159
4188
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
@@ -4221,8 +4250,8 @@ export declare const app: Elysia<"", {
4221
4250
  deletedAt: string | null;
4222
4251
  oldId: number | null;
4223
4252
  description: string | null;
4253
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4224
4254
  amount: number;
4225
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4226
4255
  cpOrderId: string;
4227
4256
  paymentPackageId: string | null;
4228
4257
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
@@ -4283,8 +4312,8 @@ export declare const app: Elysia<"", {
4283
4312
  oldId?: number | null | undefined;
4284
4313
  description?: string | null | undefined;
4285
4314
  paymentPackageId?: string | null | undefined;
4315
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4286
4316
  amount: number;
4287
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4288
4317
  cpOrderId: string;
4289
4318
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
4290
4319
  paymentChannel: string;
@@ -4301,8 +4330,8 @@ export declare const app: Elysia<"", {
4301
4330
  deletedAt: string | null;
4302
4331
  oldId: number | null;
4303
4332
  description: string | null;
4333
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4304
4334
  amount: number;
4305
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4306
4335
  cpOrderId: string;
4307
4336
  paymentPackageId: string | null;
4308
4337
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
@@ -4421,8 +4450,8 @@ export declare const app: Elysia<"", {
4421
4450
  oldId?: number | null | undefined;
4422
4451
  description?: string | null | undefined;
4423
4452
  paymentPackageId?: string | null | undefined;
4453
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4424
4454
  amount: number;
4425
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4426
4455
  cpOrderId: string;
4427
4456
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
4428
4457
  paymentChannel: string;
@@ -4439,8 +4468,8 @@ export declare const app: Elysia<"", {
4439
4468
  deletedAt: string | null;
4440
4469
  oldId: number | null;
4441
4470
  description: string | null;
4471
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4442
4472
  amount: number;
4443
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4444
4473
  cpOrderId: string;
4445
4474
  paymentPackageId: string | null;
4446
4475
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
@@ -4656,12 +4685,12 @@ export declare const app: Elysia<"", {
4656
4685
  createdAt?: string | undefined;
4657
4686
  branchId?: string | undefined;
4658
4687
  oldId?: number | undefined;
4688
+ state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
4659
4689
  phone?: string | undefined;
4660
4690
  vehicleId?: string | undefined;
4661
4691
  licensePlate?: string | undefined;
4662
4692
  vin?: string | undefined;
4663
4693
  orderId?: string | undefined;
4664
- state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
4665
4694
  timeCompleted?: string | undefined;
4666
4695
  model?: string | undefined;
4667
4696
  isPaid?: boolean | undefined;
@@ -4921,13 +4950,13 @@ export declare const app: Elysia<"", {
4921
4950
  deletedAt: string | null;
4922
4951
  oldId: number | null;
4923
4952
  description: string | null;
4953
+ state: "CREATED" | "PROGRESSING" | "COMPLETE";
4924
4954
  isNoat: boolean | null;
4925
4955
  companyBranchId: string;
4926
4956
  customerId: string | null;
4927
4957
  vehicleId: string | null;
4928
4958
  km: number;
4929
4959
  orderId: string;
4930
- state: "CREATED" | "PROGRESSING" | "COMPLETE";
4931
4960
  timeCompleted: string | null;
4932
4961
  };
4933
4962
  401: "Токен олдсонгүй";
@@ -5069,13 +5098,13 @@ export declare const app: Elysia<"", {
5069
5098
  companyId?: string | undefined;
5070
5099
  oldId?: number | null | undefined;
5071
5100
  description?: string | null | undefined;
5101
+ state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
5072
5102
  isNoat?: boolean | null | undefined;
5073
5103
  companyBranchId?: string | undefined;
5074
5104
  customerId?: string | null | undefined;
5075
5105
  vehicleId?: string | null | undefined;
5076
5106
  km?: number | undefined;
5077
5107
  orderId?: string | undefined;
5078
- state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
5079
5108
  timeCompleted?: string | null | undefined;
5080
5109
  };
5081
5110
  params: {
@@ -5163,7 +5192,7 @@ export declare const app: Elysia<"", {
5163
5192
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5164
5193
  paymentChannel: string;
5165
5194
  amount: number;
5166
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5195
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5167
5196
  invoiceNumber: string | null;
5168
5197
  description: string | null;
5169
5198
  id: string;
@@ -6729,8 +6758,8 @@ export declare const app: Elysia<"", {
6729
6758
  deletedAt: string | null;
6730
6759
  oldId: number | null;
6731
6760
  description: string | null;
6732
- amount: number;
6733
6761
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
6762
+ amount: number;
6734
6763
  applyType: "ORDER" | "ITEM";
6735
6764
  discountType: "PERCENTAGE" | "FIXED";
6736
6765
  };
@@ -6765,8 +6794,8 @@ export declare const app: Elysia<"", {
6765
6794
  body: {
6766
6795
  oldId?: number | null | undefined;
6767
6796
  description?: string | null | undefined;
6768
- amount?: number | undefined;
6769
6797
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
6798
+ amount?: number | undefined;
6770
6799
  name: string;
6771
6800
  companyId: string;
6772
6801
  applyType: "ORDER" | "ITEM";
@@ -6785,8 +6814,8 @@ export declare const app: Elysia<"", {
6785
6814
  deletedAt: string | null;
6786
6815
  oldId: number | null;
6787
6816
  description: string | null;
6788
- amount: number;
6789
6817
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
6818
+ amount: number;
6790
6819
  applyType: "ORDER" | "ITEM";
6791
6820
  discountType: "PERCENTAGE" | "FIXED";
6792
6821
  };
@@ -6812,8 +6841,8 @@ export declare const app: Elysia<"", {
6812
6841
  companyId?: string | undefined;
6813
6842
  oldId?: number | null | undefined;
6814
6843
  description?: string | null | undefined;
6815
- amount?: number | undefined;
6816
6844
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
6845
+ amount?: number | undefined;
6817
6846
  applyType?: "ORDER" | "ITEM" | undefined;
6818
6847
  discountType?: "PERCENTAGE" | "FIXED" | undefined;
6819
6848
  };
@@ -6872,8 +6901,8 @@ export declare const app: Elysia<"", {
6872
6901
  deletedAt: string | null;
6873
6902
  oldId: number | null;
6874
6903
  description: string | null;
6875
- amount: number;
6876
6904
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
6905
+ amount: number;
6877
6906
  applyType: "ORDER" | "ITEM";
6878
6907
  discountType: "PERCENTAGE" | "FIXED";
6879
6908
  };
@@ -7071,6 +7100,7 @@ export declare const app: Elysia<"", {
7071
7100
  employeeId: string;
7072
7101
  deletedAt: string | null;
7073
7102
  oldId: number | null;
7103
+ authUserId: string;
7074
7104
  note: string | null;
7075
7105
  cpOrderId: string;
7076
7106
  cpOrderItemId: string | null;
@@ -7078,7 +7108,6 @@ export declare const app: Elysia<"", {
7078
7108
  valueApplied: number;
7079
7109
  priceBeforeDiscount: number;
7080
7110
  priceAfterDiscount: number;
7081
- authUserId: string;
7082
7111
  };
7083
7112
  400: "Хэрэглэгчийн ажилтан ID олдсонгүй.";
7084
7113
  401: "Токен олдсонгүй";
@@ -7103,6 +7132,7 @@ export declare const app: Elysia<"", {
7103
7132
  body: {
7104
7133
  employeeId?: string | undefined;
7105
7134
  oldId?: number | null | undefined;
7135
+ authUserId?: string | undefined;
7106
7136
  note?: string | null | undefined;
7107
7137
  cpOrderId?: string | undefined;
7108
7138
  cpOrderItemId?: string | null | undefined;
@@ -7110,7 +7140,6 @@ export declare const app: Elysia<"", {
7110
7140
  valueApplied?: number | undefined;
7111
7141
  priceBeforeDiscount?: number | undefined;
7112
7142
  priceAfterDiscount?: number | undefined;
7113
- authUserId?: string | undefined;
7114
7143
  };
7115
7144
  params: {
7116
7145
  id: string;
@@ -7625,8 +7654,8 @@ export declare const app: Elysia<"", {
7625
7654
  params: {};
7626
7655
  query: {
7627
7656
  employeeId?: string | undefined;
7628
- companyBranchId?: string | undefined;
7629
7657
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
7658
+ companyBranchId?: string | undefined;
7630
7659
  startDate?: string | undefined;
7631
7660
  endDate?: string | undefined;
7632
7661
  includeItems?: boolean | undefined;
@@ -7852,8 +7881,8 @@ export declare const app: Elysia<"", {
7852
7881
  params: {};
7853
7882
  query: {
7854
7883
  method?: string | undefined;
7855
- companyBranchId?: string | undefined;
7856
7884
  state?: string | undefined;
7885
+ companyBranchId?: string | undefined;
7857
7886
  startDate?: string | undefined;
7858
7887
  endDate?: string | undefined;
7859
7888
  pagination: {
@@ -7871,7 +7900,7 @@ export declare const app: Elysia<"", {
7871
7900
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
7872
7901
  paymentChannel: string;
7873
7902
  amount: number;
7874
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
7903
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
7875
7904
  invoiceNumber: string | null;
7876
7905
  description: string | null;
7877
7906
  id: string;
@@ -7936,8 +7965,8 @@ export declare const app: Elysia<"", {
7936
7965
  query: {
7937
7966
  employeeId?: string | undefined;
7938
7967
  method?: string | undefined;
7939
- companyBranchId?: string | undefined;
7940
7968
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
7969
+ companyBranchId?: string | undefined;
7941
7970
  limit?: number | undefined;
7942
7971
  startDate?: string | undefined;
7943
7972
  endDate?: string | undefined;
@@ -8036,8 +8065,8 @@ export declare const app: Elysia<"", {
8036
8065
  query: {
8037
8066
  employeeId?: string | undefined;
8038
8067
  method?: string | undefined;
8039
- companyBranchId?: string | undefined;
8040
8068
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
8069
+ companyBranchId?: string | undefined;
8041
8070
  limit?: number | undefined;
8042
8071
  startDate?: string | undefined;
8043
8072
  endDate?: string | undefined;
@@ -8071,8 +8100,8 @@ export declare const app: Elysia<"", {
8071
8100
  query: {
8072
8101
  employeeId?: string | undefined;
8073
8102
  method?: string | undefined;
8074
- companyBranchId?: string | undefined;
8075
8103
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
8104
+ companyBranchId?: string | undefined;
8076
8105
  limit?: number | undefined;
8077
8106
  startDate?: string | undefined;
8078
8107
  endDate?: string | undefined;
@@ -10103,8 +10132,8 @@ export declare const app: Elysia<"", {
10103
10132
  post: {
10104
10133
  body: {
10105
10134
  oldId?: number | null | undefined;
10106
- note?: string | null | undefined;
10107
10135
  state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
10136
+ note?: string | null | undefined;
10108
10137
  timeCompleted?: Date | null | undefined;
10109
10138
  hours?: number | null | undefined;
10110
10139
  mileageKm?: number | null | undefined;
@@ -10137,8 +10166,8 @@ export declare const app: Elysia<"", {
10137
10166
  put: {
10138
10167
  body: {
10139
10168
  oldId?: number | null | undefined;
10140
- note?: string | null | undefined;
10141
10169
  state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
10170
+ note?: string | null | undefined;
10142
10171
  timeCompleted?: Date | null | undefined;
10143
10172
  templateId?: string | undefined;
10144
10173
  machineId?: string | undefined;
@@ -11421,8 +11450,8 @@ export declare const app: Elysia<"", {
11421
11450
  timeCompleted?: Date | null | undefined;
11422
11451
  pmPlanId?: string | null | undefined;
11423
11452
  pmPlanMachineId?: string | null | undefined;
11424
- serviceKindId: string;
11425
11453
  state: string;
11454
+ serviceKindId: string;
11426
11455
  machineId: string;
11427
11456
  employeeTechnicianId: string;
11428
11457
  };
@@ -11449,9 +11478,9 @@ export declare const app: Elysia<"", {
11449
11478
  put: {
11450
11479
  body: {
11451
11480
  oldId?: number | null | undefined;
11481
+ state?: string | undefined;
11452
11482
  serviceKindId?: string | undefined;
11453
11483
  note?: string | null | undefined;
11454
- state?: string | undefined;
11455
11484
  timeCompleted?: Date | null | undefined;
11456
11485
  machineId?: string | undefined;
11457
11486
  pmPlanId?: string | null | undefined;
@@ -11619,8 +11648,8 @@ export declare const app: Elysia<"", {
11619
11648
  body: {
11620
11649
  oldId?: number | null | undefined;
11621
11650
  description?: string | null | undefined;
11622
- serviceKindId?: string | null | undefined;
11623
11651
  state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
11652
+ serviceKindId?: string | null | undefined;
11624
11653
  companyServiceKindId?: string | null | undefined;
11625
11654
  templateId?: string | null | undefined;
11626
11655
  machineId?: string | null | undefined;
@@ -11640,8 +11669,8 @@ export declare const app: Elysia<"", {
11640
11669
  deletedAt: string | null;
11641
11670
  oldId: number | null;
11642
11671
  description: string | null;
11643
- serviceKindId: string | null;
11644
11672
  state: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED";
11673
+ serviceKindId: string | null;
11645
11674
  companyServiceKindId: string | null;
11646
11675
  templateId: string | null;
11647
11676
  machineId: string | null;
@@ -11670,8 +11699,8 @@ export declare const app: Elysia<"", {
11670
11699
  body: {
11671
11700
  oldId?: number | null | undefined;
11672
11701
  description?: string | null | undefined;
11673
- serviceKindId?: string | null | undefined;
11674
11702
  state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
11703
+ serviceKindId?: string | null | undefined;
11675
11704
  companyServiceKindId?: string | null | undefined;
11676
11705
  templateId?: string | null | undefined;
11677
11706
  machineId?: string | null | undefined;
@@ -12367,6 +12396,817 @@ export declare const app: Elysia<"", {
12367
12396
  };
12368
12397
  };
12369
12398
  };
12399
+ } & {
12400
+ api: {
12401
+ notification: {
12402
+ device: {};
12403
+ } & {
12404
+ device: {
12405
+ get: {
12406
+ body: unknown;
12407
+ params: {};
12408
+ query: {
12409
+ isActive?: boolean | undefined;
12410
+ authUserId?: string | undefined;
12411
+ platform?: "IOS" | "ANDROID" | "WEB" | undefined;
12412
+ pagination: {
12413
+ size: number;
12414
+ page: number;
12415
+ };
12416
+ };
12417
+ headers: unknown;
12418
+ response: {
12419
+ 200: {
12420
+ totalCount: number;
12421
+ totalPage: number;
12422
+ result: Omit<{
12423
+ device: {
12424
+ authUserId: string;
12425
+ nmToken: string | null;
12426
+ platform: "IOS" | "ANDROID" | "WEB";
12427
+ isActive: boolean;
12428
+ timeLastActive: string;
12429
+ id: string;
12430
+ createdAt: string;
12431
+ updatedAt: string;
12432
+ deletedAt: string | null;
12433
+ oldId: number | null;
12434
+ };
12435
+ totalCount: number;
12436
+ }, "totalCount">[];
12437
+ };
12438
+ 401: "Токен олдсонгүй";
12439
+ 422: {
12440
+ type: "validation";
12441
+ on: string;
12442
+ summary?: string;
12443
+ message?: string;
12444
+ found?: unknown;
12445
+ property?: string;
12446
+ expected?: string;
12447
+ };
12448
+ };
12449
+ };
12450
+ };
12451
+ } & {
12452
+ device: {
12453
+ post: {
12454
+ body: {
12455
+ oldId?: number | null | undefined;
12456
+ isActive?: boolean | undefined;
12457
+ nmToken?: string | null | undefined;
12458
+ timeLastActive?: string | undefined;
12459
+ authUserId: string;
12460
+ platform: "IOS" | "ANDROID" | "WEB";
12461
+ };
12462
+ params: {};
12463
+ query: unknown;
12464
+ headers: unknown;
12465
+ response: {
12466
+ 200: {
12467
+ id: string;
12468
+ createdAt: string;
12469
+ updatedAt: string;
12470
+ deletedAt: string | null;
12471
+ oldId: number | null;
12472
+ isActive: boolean;
12473
+ authUserId: string;
12474
+ nmToken: string | null;
12475
+ platform: "IOS" | "ANDROID" | "WEB";
12476
+ timeLastActive: string;
12477
+ };
12478
+ 401: "Токен олдсонгүй";
12479
+ 422: {
12480
+ type: "validation";
12481
+ on: string;
12482
+ summary?: string;
12483
+ message?: string;
12484
+ found?: unknown;
12485
+ property?: string;
12486
+ expected?: string;
12487
+ };
12488
+ };
12489
+ };
12490
+ };
12491
+ } & {
12492
+ device: {
12493
+ ":id": {
12494
+ put: {
12495
+ body: {
12496
+ oldId?: number | null | undefined;
12497
+ isActive?: boolean | undefined;
12498
+ authUserId?: string | undefined;
12499
+ nmToken?: string | null | undefined;
12500
+ platform?: "IOS" | "ANDROID" | "WEB" | undefined;
12501
+ timeLastActive?: string | undefined;
12502
+ };
12503
+ params: {
12504
+ id: string;
12505
+ };
12506
+ query: unknown;
12507
+ headers: unknown;
12508
+ response: {
12509
+ 200: {
12510
+ authUserId: string;
12511
+ nmToken: string | null;
12512
+ platform: "IOS" | "ANDROID" | "WEB";
12513
+ isActive: boolean;
12514
+ timeLastActive: string;
12515
+ id: string;
12516
+ createdAt: string;
12517
+ updatedAt: string;
12518
+ deletedAt: string | null;
12519
+ oldId: number | null;
12520
+ };
12521
+ 401: "Токен олдсонгүй";
12522
+ 404: "Device not found";
12523
+ 422: {
12524
+ type: "validation";
12525
+ on: string;
12526
+ summary?: string;
12527
+ message?: string;
12528
+ found?: unknown;
12529
+ property?: string;
12530
+ expected?: string;
12531
+ };
12532
+ };
12533
+ };
12534
+ };
12535
+ };
12536
+ } & {
12537
+ device: {
12538
+ ":id": {
12539
+ delete: {
12540
+ body: unknown;
12541
+ params: {
12542
+ id: string;
12543
+ };
12544
+ query: unknown;
12545
+ headers: unknown;
12546
+ response: {
12547
+ 200: {
12548
+ authUserId: string;
12549
+ nmToken: string | null;
12550
+ platform: "IOS" | "ANDROID" | "WEB";
12551
+ isActive: boolean;
12552
+ timeLastActive: string;
12553
+ id: string;
12554
+ createdAt: string;
12555
+ updatedAt: string;
12556
+ deletedAt: string | null;
12557
+ oldId: number | null;
12558
+ };
12559
+ 401: "Токен олдсонгүй";
12560
+ 404: "Device not found";
12561
+ 422: {
12562
+ type: "validation";
12563
+ on: string;
12564
+ summary?: string;
12565
+ message?: string;
12566
+ found?: unknown;
12567
+ property?: string;
12568
+ expected?: string;
12569
+ };
12570
+ };
12571
+ };
12572
+ };
12573
+ };
12574
+ };
12575
+ } & {
12576
+ notification: {
12577
+ channel: {};
12578
+ } & {
12579
+ channel: {
12580
+ get: {
12581
+ body: unknown;
12582
+ params: {};
12583
+ query: {
12584
+ name?: string | undefined;
12585
+ nmKey?: string | undefined;
12586
+ pagination: {
12587
+ size: number;
12588
+ page: number;
12589
+ };
12590
+ };
12591
+ headers: unknown;
12592
+ response: {
12593
+ 200: {
12594
+ totalCount: number;
12595
+ totalPage: number;
12596
+ result: Omit<{
12597
+ channel: {
12598
+ name: string;
12599
+ description: string | null;
12600
+ nmKey: string | null;
12601
+ id: string;
12602
+ createdAt: string;
12603
+ updatedAt: string;
12604
+ deletedAt: string | null;
12605
+ oldId: number | null;
12606
+ };
12607
+ totalCount: number;
12608
+ }, "totalCount">[];
12609
+ };
12610
+ 401: "Токен олдсонгүй";
12611
+ 422: {
12612
+ type: "validation";
12613
+ on: string;
12614
+ summary?: string;
12615
+ message?: string;
12616
+ found?: unknown;
12617
+ property?: string;
12618
+ expected?: string;
12619
+ };
12620
+ };
12621
+ };
12622
+ };
12623
+ } & {
12624
+ channel: {
12625
+ post: {
12626
+ body: {
12627
+ oldId?: number | null | undefined;
12628
+ description?: string | null | undefined;
12629
+ nmKey?: string | null | undefined;
12630
+ name: string;
12631
+ };
12632
+ params: {};
12633
+ query: unknown;
12634
+ headers: unknown;
12635
+ response: {
12636
+ 200: {
12637
+ name: string;
12638
+ id: string;
12639
+ createdAt: string;
12640
+ updatedAt: string;
12641
+ deletedAt: string | null;
12642
+ oldId: number | null;
12643
+ description: string | null;
12644
+ nmKey: string | null;
12645
+ };
12646
+ 401: "Токен олдсонгүй";
12647
+ 422: {
12648
+ type: "validation";
12649
+ on: string;
12650
+ summary?: string;
12651
+ message?: string;
12652
+ found?: unknown;
12653
+ property?: string;
12654
+ expected?: string;
12655
+ };
12656
+ };
12657
+ };
12658
+ };
12659
+ } & {
12660
+ channel: {
12661
+ ":id": {
12662
+ put: {
12663
+ body: {
12664
+ name?: string | undefined;
12665
+ oldId?: number | null | undefined;
12666
+ description?: string | null | undefined;
12667
+ nmKey?: string | null | undefined;
12668
+ };
12669
+ params: {
12670
+ id: string;
12671
+ };
12672
+ query: unknown;
12673
+ headers: unknown;
12674
+ response: {
12675
+ 200: {
12676
+ name: string;
12677
+ description: string | null;
12678
+ nmKey: string | null;
12679
+ id: string;
12680
+ createdAt: string;
12681
+ updatedAt: string;
12682
+ deletedAt: string | null;
12683
+ oldId: number | null;
12684
+ };
12685
+ 401: "Токен олдсонгүй";
12686
+ 404: "Channel not found";
12687
+ 422: {
12688
+ type: "validation";
12689
+ on: string;
12690
+ summary?: string;
12691
+ message?: string;
12692
+ found?: unknown;
12693
+ property?: string;
12694
+ expected?: string;
12695
+ };
12696
+ };
12697
+ };
12698
+ };
12699
+ };
12700
+ } & {
12701
+ channel: {
12702
+ ":id": {
12703
+ delete: {
12704
+ body: unknown;
12705
+ params: {
12706
+ id: string;
12707
+ };
12708
+ query: unknown;
12709
+ headers: unknown;
12710
+ response: {
12711
+ 401: "Токен олдсонгүй";
12712
+ 422: {
12713
+ type: "validation";
12714
+ on: string;
12715
+ summary?: string;
12716
+ message?: string;
12717
+ found?: unknown;
12718
+ property?: string;
12719
+ expected?: string;
12720
+ };
12721
+ };
12722
+ };
12723
+ };
12724
+ };
12725
+ };
12726
+ } & {
12727
+ notification: {
12728
+ notification: {};
12729
+ } & {
12730
+ notification: {
12731
+ get: {
12732
+ body: unknown;
12733
+ params: {};
12734
+ query: {
12735
+ nmChannelId?: string | undefined;
12736
+ pagination: {
12737
+ size: number;
12738
+ page: number;
12739
+ };
12740
+ };
12741
+ headers: unknown;
12742
+ response: {
12743
+ 200: {
12744
+ totalCount: number;
12745
+ totalPage: number;
12746
+ result: Omit<{
12747
+ notification: {
12748
+ nmChannelId: string;
12749
+ title: string;
12750
+ body: string;
12751
+ data: unknown;
12752
+ id: string;
12753
+ createdAt: string;
12754
+ updatedAt: string;
12755
+ deletedAt: string | null;
12756
+ oldId: number | null;
12757
+ };
12758
+ channel: {
12759
+ name: string;
12760
+ description: string | null;
12761
+ nmKey: string | null;
12762
+ id: string;
12763
+ createdAt: string;
12764
+ updatedAt: string;
12765
+ deletedAt: string | null;
12766
+ oldId: number | null;
12767
+ };
12768
+ totalCount: number;
12769
+ }, "totalCount">[];
12770
+ };
12771
+ 401: "Токен олдсонгүй";
12772
+ 422: {
12773
+ type: "validation";
12774
+ on: string;
12775
+ summary?: string;
12776
+ message?: string;
12777
+ found?: unknown;
12778
+ property?: string;
12779
+ expected?: string;
12780
+ };
12781
+ };
12782
+ };
12783
+ };
12784
+ } & {
12785
+ notification: {
12786
+ post: {
12787
+ body: {
12788
+ data?: import("drizzle-typebox").Json | undefined;
12789
+ oldId?: number | null | undefined;
12790
+ nmChannelId: string;
12791
+ title: string;
12792
+ body: string;
12793
+ };
12794
+ params: {};
12795
+ query: unknown;
12796
+ headers: unknown;
12797
+ response: {
12798
+ 200: {
12799
+ data: unknown;
12800
+ id: string;
12801
+ createdAt: string;
12802
+ updatedAt: string;
12803
+ deletedAt: string | null;
12804
+ oldId: number | null;
12805
+ nmChannelId: string;
12806
+ title: string;
12807
+ body: string;
12808
+ };
12809
+ 401: "Токен олдсонгүй";
12810
+ 422: {
12811
+ type: "validation";
12812
+ on: string;
12813
+ summary?: string;
12814
+ message?: string;
12815
+ found?: unknown;
12816
+ property?: string;
12817
+ expected?: string;
12818
+ };
12819
+ };
12820
+ };
12821
+ };
12822
+ } & {
12823
+ notification: {
12824
+ send: {
12825
+ post: {
12826
+ body: {
12827
+ data?: {} | undefined;
12828
+ nmChannelId: string;
12829
+ title: string;
12830
+ body: string;
12831
+ };
12832
+ params: {};
12833
+ query: unknown;
12834
+ headers: unknown;
12835
+ response: {
12836
+ 200: {
12837
+ notification: {
12838
+ data: unknown;
12839
+ id: string;
12840
+ createdAt: string;
12841
+ updatedAt: string;
12842
+ deletedAt: string | null;
12843
+ oldId: number | null;
12844
+ nmChannelId: string;
12845
+ title: string;
12846
+ body: string;
12847
+ };
12848
+ sent: number;
12849
+ failed: number;
12850
+ message: string;
12851
+ totalDevices?: undefined;
12852
+ } | {
12853
+ notification: {
12854
+ data: unknown;
12855
+ id: string;
12856
+ createdAt: string;
12857
+ updatedAt: string;
12858
+ deletedAt: string | null;
12859
+ oldId: number | null;
12860
+ nmChannelId: string;
12861
+ title: string;
12862
+ body: string;
12863
+ };
12864
+ sent: number;
12865
+ failed: number;
12866
+ totalDevices: number;
12867
+ message?: undefined;
12868
+ };
12869
+ 401: "Токен олдсонгүй";
12870
+ 404: "Channel not found";
12871
+ 422: {
12872
+ type: "validation";
12873
+ on: string;
12874
+ summary?: string;
12875
+ message?: string;
12876
+ found?: unknown;
12877
+ property?: string;
12878
+ expected?: string;
12879
+ };
12880
+ };
12881
+ };
12882
+ };
12883
+ };
12884
+ } & {
12885
+ notification: {
12886
+ ":id": {
12887
+ put: {
12888
+ body: {
12889
+ data?: import("drizzle-typebox").Json | undefined;
12890
+ oldId?: number | null | undefined;
12891
+ nmChannelId?: string | undefined;
12892
+ title?: string | undefined;
12893
+ body?: string | undefined;
12894
+ };
12895
+ params: {
12896
+ id: string;
12897
+ };
12898
+ query: unknown;
12899
+ headers: unknown;
12900
+ response: {
12901
+ 200: {
12902
+ nmChannelId: string;
12903
+ title: string;
12904
+ body: string;
12905
+ data: unknown;
12906
+ id: string;
12907
+ createdAt: string;
12908
+ updatedAt: string;
12909
+ deletedAt: string | null;
12910
+ oldId: number | null;
12911
+ };
12912
+ 401: "Токен олдсонгүй";
12913
+ 404: "Notification not found";
12914
+ 422: {
12915
+ type: "validation";
12916
+ on: string;
12917
+ summary?: string;
12918
+ message?: string;
12919
+ found?: unknown;
12920
+ property?: string;
12921
+ expected?: string;
12922
+ };
12923
+ };
12924
+ };
12925
+ };
12926
+ };
12927
+ } & {
12928
+ notification: {
12929
+ ":id": {
12930
+ delete: {
12931
+ body: unknown;
12932
+ params: {
12933
+ id: string;
12934
+ };
12935
+ query: unknown;
12936
+ headers: unknown;
12937
+ response: {
12938
+ 401: "Токен олдсонгүй";
12939
+ 422: {
12940
+ type: "validation";
12941
+ on: string;
12942
+ summary?: string;
12943
+ message?: string;
12944
+ found?: unknown;
12945
+ property?: string;
12946
+ expected?: string;
12947
+ };
12948
+ };
12949
+ };
12950
+ };
12951
+ };
12952
+ };
12953
+ } & {
12954
+ notification: {
12955
+ message: {};
12956
+ } & {
12957
+ message: {
12958
+ get: {
12959
+ body: unknown;
12960
+ params: {};
12961
+ query: {
12962
+ nmNotificationId?: string | undefined;
12963
+ nmDeviceId?: string | undefined;
12964
+ state?: "PENDING" | "SENT" | "DELIVERED" | "FAILED" | "READ" | undefined;
12965
+ pagination: {
12966
+ size: number;
12967
+ page: number;
12968
+ };
12969
+ };
12970
+ headers: unknown;
12971
+ response: {
12972
+ 200: {
12973
+ totalCount: number;
12974
+ totalPage: number;
12975
+ result: Omit<{
12976
+ message: {
12977
+ nmNotificationId: string;
12978
+ nmDeviceId: string;
12979
+ providerMessageId: string;
12980
+ state: "PENDING" | "SENT" | "DELIVERED" | "FAILED" | "READ";
12981
+ timeSent: string | null;
12982
+ timeDelivered: string | null;
12983
+ timeRead: string | null;
12984
+ id: string;
12985
+ createdAt: string;
12986
+ updatedAt: string;
12987
+ deletedAt: string | null;
12988
+ oldId: number | null;
12989
+ };
12990
+ notification: {
12991
+ nmChannelId: string;
12992
+ title: string;
12993
+ body: string;
12994
+ data: unknown;
12995
+ id: string;
12996
+ createdAt: string;
12997
+ updatedAt: string;
12998
+ deletedAt: string | null;
12999
+ oldId: number | null;
13000
+ };
13001
+ device: {
13002
+ authUserId: string;
13003
+ nmToken: string | null;
13004
+ platform: "IOS" | "ANDROID" | "WEB";
13005
+ isActive: boolean;
13006
+ timeLastActive: string;
13007
+ id: string;
13008
+ createdAt: string;
13009
+ updatedAt: string;
13010
+ deletedAt: string | null;
13011
+ oldId: number | null;
13012
+ };
13013
+ totalCount: number;
13014
+ }, "totalCount">[];
13015
+ };
13016
+ 401: "Токен олдсонгүй";
13017
+ 422: {
13018
+ type: "validation";
13019
+ on: string;
13020
+ summary?: string;
13021
+ message?: string;
13022
+ found?: unknown;
13023
+ property?: string;
13024
+ expected?: string;
13025
+ };
13026
+ };
13027
+ };
13028
+ };
13029
+ } & {
13030
+ message: {
13031
+ ":id": {
13032
+ state: {
13033
+ put: {
13034
+ body: {
13035
+ timeDelivered?: string | undefined;
13036
+ timeRead?: string | undefined;
13037
+ state: "DELIVERED" | "READ";
13038
+ };
13039
+ params: {
13040
+ id: string;
13041
+ };
13042
+ query: unknown;
13043
+ headers: unknown;
13044
+ response: {
13045
+ 200: {
13046
+ nmNotificationId: string;
13047
+ nmDeviceId: string;
13048
+ providerMessageId: string;
13049
+ state: "PENDING" | "SENT" | "DELIVERED" | "FAILED" | "READ";
13050
+ timeSent: string | null;
13051
+ timeDelivered: string | null;
13052
+ timeRead: string | null;
13053
+ id: string;
13054
+ createdAt: string;
13055
+ updatedAt: string;
13056
+ deletedAt: string | null;
13057
+ oldId: number | null;
13058
+ };
13059
+ 401: "Токен олдсонгүй";
13060
+ 404: "Message not found";
13061
+ 422: {
13062
+ type: "validation";
13063
+ on: string;
13064
+ summary?: string;
13065
+ message?: string;
13066
+ found?: unknown;
13067
+ property?: string;
13068
+ expected?: string;
13069
+ };
13070
+ };
13071
+ };
13072
+ };
13073
+ };
13074
+ };
13075
+ };
13076
+ } & {
13077
+ notification: {
13078
+ "channel-auth-user": {};
13079
+ } & {
13080
+ "channel-auth-user": {
13081
+ subscribe: {
13082
+ post: {
13083
+ body: {
13084
+ enabled?: boolean | undefined;
13085
+ authUserId: string;
13086
+ nmChannelId: string;
13087
+ };
13088
+ params: {};
13089
+ query: unknown;
13090
+ headers: unknown;
13091
+ response: {
13092
+ 200: {
13093
+ authUserId: string;
13094
+ nmChannelId: string;
13095
+ enabled: boolean;
13096
+ };
13097
+ 401: "Токен олдсонгүй";
13098
+ 404: "Channel not found";
13099
+ 422: {
13100
+ type: "validation";
13101
+ on: string;
13102
+ summary?: string;
13103
+ message?: string;
13104
+ found?: unknown;
13105
+ property?: string;
13106
+ expected?: string;
13107
+ };
13108
+ };
13109
+ };
13110
+ };
13111
+ };
13112
+ } & {
13113
+ "channel-auth-user": {
13114
+ unsubscribe: {
13115
+ post: {
13116
+ body: {
13117
+ authUserId: string;
13118
+ nmChannelId: string;
13119
+ };
13120
+ params: {};
13121
+ query: unknown;
13122
+ headers: unknown;
13123
+ response: {
13124
+ 200: {
13125
+ nmChannelId: string;
13126
+ authUserId: string;
13127
+ enabled: boolean;
13128
+ };
13129
+ 401: "Токен олдсонгүй";
13130
+ 404: "Subscription not found";
13131
+ 422: {
13132
+ type: "validation";
13133
+ on: string;
13134
+ summary?: string;
13135
+ message?: string;
13136
+ found?: unknown;
13137
+ property?: string;
13138
+ expected?: string;
13139
+ };
13140
+ };
13141
+ };
13142
+ };
13143
+ };
13144
+ } & {
13145
+ "channel-auth-user": {
13146
+ update: {
13147
+ put: {
13148
+ body: {
13149
+ authUserId: string;
13150
+ nmChannelId: string;
13151
+ enabled: boolean;
13152
+ };
13153
+ params: {};
13154
+ query: unknown;
13155
+ headers: unknown;
13156
+ response: {
13157
+ 200: {
13158
+ nmChannelId: string;
13159
+ authUserId: string;
13160
+ enabled: boolean;
13161
+ };
13162
+ 401: "Токен олдсонгүй";
13163
+ 404: "Subscription not found";
13164
+ 422: {
13165
+ type: "validation";
13166
+ on: string;
13167
+ summary?: string;
13168
+ message?: string;
13169
+ found?: unknown;
13170
+ property?: string;
13171
+ expected?: string;
13172
+ };
13173
+ };
13174
+ };
13175
+ };
13176
+ };
13177
+ } & {
13178
+ "channel-auth-user": {
13179
+ "my-channels": {
13180
+ get: {
13181
+ body: unknown;
13182
+ params: {};
13183
+ query: unknown;
13184
+ headers: unknown;
13185
+ response: {
13186
+ 200: {
13187
+ subscription: {
13188
+ nmChannelId: string;
13189
+ authUserId: string;
13190
+ enabled: boolean;
13191
+ };
13192
+ channel: {
13193
+ name: string;
13194
+ description: string | null;
13195
+ nmKey: string | null;
13196
+ id: string;
13197
+ createdAt: string;
13198
+ updatedAt: string;
13199
+ deletedAt: string | null;
13200
+ oldId: number | null;
13201
+ };
13202
+ }[];
13203
+ 401: "Токен олдсонгүй";
13204
+ };
13205
+ };
13206
+ };
13207
+ };
13208
+ };
13209
+ };
12370
13210
  }, {
12371
13211
  derive: {};
12372
13212
  resolve: {};