autosync_backend2 1.2.75 → 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 +885 -35
  2. package/dist/index.js +133830 -208
  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;
@@ -4133,9 +4162,10 @@ export declare const app: Elysia<"", {
4133
4162
  post: {
4134
4163
  body: {
4135
4164
  oldId?: number | null | undefined;
4165
+ description?: string | null | undefined;
4136
4166
  paymentPackageId?: string | null | undefined;
4167
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4137
4168
  amount: number;
4138
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4139
4169
  cpOrderId: string;
4140
4170
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
4141
4171
  paymentChannel: string;
@@ -4150,8 +4180,9 @@ export declare const app: Elysia<"", {
4150
4180
  updatedAt: string;
4151
4181
  deletedAt: string | null;
4152
4182
  oldId: number | null;
4183
+ description: string | null;
4184
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4153
4185
  amount: number;
4154
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4155
4186
  cpOrderId: string;
4156
4187
  paymentPackageId: string | null;
4157
4188
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
@@ -4202,6 +4233,7 @@ export declare const app: Elysia<"", {
4202
4233
  post: {
4203
4234
  body: {
4204
4235
  oldId?: number | null | undefined;
4236
+ description?: string | null | undefined;
4205
4237
  paymentPackageId?: string | null | undefined;
4206
4238
  phone: number;
4207
4239
  amount: number;
@@ -4217,8 +4249,9 @@ export declare const app: Elysia<"", {
4217
4249
  updatedAt: string;
4218
4250
  deletedAt: string | null;
4219
4251
  oldId: number | null;
4252
+ description: string | null;
4253
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4220
4254
  amount: number;
4221
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4222
4255
  cpOrderId: string;
4223
4256
  paymentPackageId: string | null;
4224
4257
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
@@ -4277,9 +4310,10 @@ export declare const app: Elysia<"", {
4277
4310
  post: {
4278
4311
  body: {
4279
4312
  oldId?: number | null | undefined;
4313
+ description?: string | null | undefined;
4280
4314
  paymentPackageId?: string | null | undefined;
4315
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4281
4316
  amount: number;
4282
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4283
4317
  cpOrderId: string;
4284
4318
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
4285
4319
  paymentChannel: string;
@@ -4295,8 +4329,9 @@ export declare const app: Elysia<"", {
4295
4329
  updatedAt: string;
4296
4330
  deletedAt: string | null;
4297
4331
  oldId: number | null;
4332
+ description: string | null;
4333
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4298
4334
  amount: number;
4299
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4300
4335
  cpOrderId: string;
4301
4336
  paymentPackageId: string | null;
4302
4337
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
@@ -4413,9 +4448,10 @@ export declare const app: Elysia<"", {
4413
4448
  post: {
4414
4449
  body: {
4415
4450
  oldId?: number | null | undefined;
4451
+ description?: string | null | undefined;
4416
4452
  paymentPackageId?: string | null | undefined;
4453
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4417
4454
  amount: number;
4418
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4419
4455
  cpOrderId: string;
4420
4456
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
4421
4457
  paymentChannel: string;
@@ -4431,8 +4467,9 @@ export declare const app: Elysia<"", {
4431
4467
  updatedAt: string;
4432
4468
  deletedAt: string | null;
4433
4469
  oldId: number | null;
4470
+ description: string | null;
4471
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4434
4472
  amount: number;
4435
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4436
4473
  cpOrderId: string;
4437
4474
  paymentPackageId: string | null;
4438
4475
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
@@ -4648,12 +4685,12 @@ export declare const app: Elysia<"", {
4648
4685
  createdAt?: string | undefined;
4649
4686
  branchId?: string | undefined;
4650
4687
  oldId?: number | undefined;
4688
+ state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
4651
4689
  phone?: string | undefined;
4652
4690
  vehicleId?: string | undefined;
4653
4691
  licensePlate?: string | undefined;
4654
4692
  vin?: string | undefined;
4655
4693
  orderId?: string | undefined;
4656
- state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
4657
4694
  timeCompleted?: string | undefined;
4658
4695
  model?: string | undefined;
4659
4696
  isPaid?: boolean | undefined;
@@ -4913,13 +4950,13 @@ export declare const app: Elysia<"", {
4913
4950
  deletedAt: string | null;
4914
4951
  oldId: number | null;
4915
4952
  description: string | null;
4953
+ state: "CREATED" | "PROGRESSING" | "COMPLETE";
4916
4954
  isNoat: boolean | null;
4917
4955
  companyBranchId: string;
4918
4956
  customerId: string | null;
4919
4957
  vehicleId: string | null;
4920
4958
  km: number;
4921
4959
  orderId: string;
4922
- state: "CREATED" | "PROGRESSING" | "COMPLETE";
4923
4960
  timeCompleted: string | null;
4924
4961
  };
4925
4962
  401: "Токен олдсонгүй";
@@ -5061,13 +5098,13 @@ export declare const app: Elysia<"", {
5061
5098
  companyId?: string | undefined;
5062
5099
  oldId?: number | null | undefined;
5063
5100
  description?: string | null | undefined;
5101
+ state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
5064
5102
  isNoat?: boolean | null | undefined;
5065
5103
  companyBranchId?: string | undefined;
5066
5104
  customerId?: string | null | undefined;
5067
5105
  vehicleId?: string | null | undefined;
5068
5106
  km?: number | undefined;
5069
5107
  orderId?: string | undefined;
5070
- state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
5071
5108
  timeCompleted?: string | null | undefined;
5072
5109
  };
5073
5110
  params: {
@@ -5155,8 +5192,9 @@ export declare const app: Elysia<"", {
5155
5192
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5156
5193
  paymentChannel: string;
5157
5194
  amount: number;
5158
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5195
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5159
5196
  invoiceNumber: string | null;
5197
+ description: string | null;
5160
5198
  id: string;
5161
5199
  createdAt: string;
5162
5200
  updatedAt: string;
@@ -6720,8 +6758,8 @@ export declare const app: Elysia<"", {
6720
6758
  deletedAt: string | null;
6721
6759
  oldId: number | null;
6722
6760
  description: string | null;
6723
- amount: number;
6724
6761
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
6762
+ amount: number;
6725
6763
  applyType: "ORDER" | "ITEM";
6726
6764
  discountType: "PERCENTAGE" | "FIXED";
6727
6765
  };
@@ -6756,8 +6794,8 @@ export declare const app: Elysia<"", {
6756
6794
  body: {
6757
6795
  oldId?: number | null | undefined;
6758
6796
  description?: string | null | undefined;
6759
- amount?: number | undefined;
6760
6797
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
6798
+ amount?: number | undefined;
6761
6799
  name: string;
6762
6800
  companyId: string;
6763
6801
  applyType: "ORDER" | "ITEM";
@@ -6776,8 +6814,8 @@ export declare const app: Elysia<"", {
6776
6814
  deletedAt: string | null;
6777
6815
  oldId: number | null;
6778
6816
  description: string | null;
6779
- amount: number;
6780
6817
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
6818
+ amount: number;
6781
6819
  applyType: "ORDER" | "ITEM";
6782
6820
  discountType: "PERCENTAGE" | "FIXED";
6783
6821
  };
@@ -6803,8 +6841,8 @@ export declare const app: Elysia<"", {
6803
6841
  companyId?: string | undefined;
6804
6842
  oldId?: number | null | undefined;
6805
6843
  description?: string | null | undefined;
6806
- amount?: number | undefined;
6807
6844
  state?: "CREATED" | "ACTIVE" | "ARCHIVED" | undefined;
6845
+ amount?: number | undefined;
6808
6846
  applyType?: "ORDER" | "ITEM" | undefined;
6809
6847
  discountType?: "PERCENTAGE" | "FIXED" | undefined;
6810
6848
  };
@@ -6863,8 +6901,8 @@ export declare const app: Elysia<"", {
6863
6901
  deletedAt: string | null;
6864
6902
  oldId: number | null;
6865
6903
  description: string | null;
6866
- amount: number;
6867
6904
  state: "CREATED" | "ACTIVE" | "ARCHIVED";
6905
+ amount: number;
6868
6906
  applyType: "ORDER" | "ITEM";
6869
6907
  discountType: "PERCENTAGE" | "FIXED";
6870
6908
  };
@@ -7062,6 +7100,7 @@ export declare const app: Elysia<"", {
7062
7100
  employeeId: string;
7063
7101
  deletedAt: string | null;
7064
7102
  oldId: number | null;
7103
+ authUserId: string;
7065
7104
  note: string | null;
7066
7105
  cpOrderId: string;
7067
7106
  cpOrderItemId: string | null;
@@ -7069,7 +7108,6 @@ export declare const app: Elysia<"", {
7069
7108
  valueApplied: number;
7070
7109
  priceBeforeDiscount: number;
7071
7110
  priceAfterDiscount: number;
7072
- authUserId: string;
7073
7111
  };
7074
7112
  400: "Хэрэглэгчийн ажилтан ID олдсонгүй.";
7075
7113
  401: "Токен олдсонгүй";
@@ -7094,6 +7132,7 @@ export declare const app: Elysia<"", {
7094
7132
  body: {
7095
7133
  employeeId?: string | undefined;
7096
7134
  oldId?: number | null | undefined;
7135
+ authUserId?: string | undefined;
7097
7136
  note?: string | null | undefined;
7098
7137
  cpOrderId?: string | undefined;
7099
7138
  cpOrderItemId?: string | null | undefined;
@@ -7101,7 +7140,6 @@ export declare const app: Elysia<"", {
7101
7140
  valueApplied?: number | undefined;
7102
7141
  priceBeforeDiscount?: number | undefined;
7103
7142
  priceAfterDiscount?: number | undefined;
7104
- authUserId?: string | undefined;
7105
7143
  };
7106
7144
  params: {
7107
7145
  id: string;
@@ -7616,8 +7654,8 @@ export declare const app: Elysia<"", {
7616
7654
  params: {};
7617
7655
  query: {
7618
7656
  employeeId?: string | undefined;
7619
- companyBranchId?: string | undefined;
7620
7657
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
7658
+ companyBranchId?: string | undefined;
7621
7659
  startDate?: string | undefined;
7622
7660
  endDate?: string | undefined;
7623
7661
  includeItems?: boolean | undefined;
@@ -7843,8 +7881,8 @@ export declare const app: Elysia<"", {
7843
7881
  params: {};
7844
7882
  query: {
7845
7883
  method?: string | undefined;
7846
- companyBranchId?: string | undefined;
7847
7884
  state?: string | undefined;
7885
+ companyBranchId?: string | undefined;
7848
7886
  startDate?: string | undefined;
7849
7887
  endDate?: string | undefined;
7850
7888
  pagination: {
@@ -7862,8 +7900,9 @@ export declare const app: Elysia<"", {
7862
7900
  paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
7863
7901
  paymentChannel: string;
7864
7902
  amount: number;
7865
- state: "PENDING" | "PAID" | "NOT_PAID" | "FAILED" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
7903
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
7866
7904
  invoiceNumber: string | null;
7905
+ description: string | null;
7867
7906
  id: string;
7868
7907
  createdAt: string;
7869
7908
  updatedAt: string;
@@ -7926,8 +7965,8 @@ export declare const app: Elysia<"", {
7926
7965
  query: {
7927
7966
  employeeId?: string | undefined;
7928
7967
  method?: string | undefined;
7929
- companyBranchId?: string | undefined;
7930
7968
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
7969
+ companyBranchId?: string | undefined;
7931
7970
  limit?: number | undefined;
7932
7971
  startDate?: string | undefined;
7933
7972
  endDate?: string | undefined;
@@ -8026,8 +8065,8 @@ export declare const app: Elysia<"", {
8026
8065
  query: {
8027
8066
  employeeId?: string | undefined;
8028
8067
  method?: string | undefined;
8029
- companyBranchId?: string | undefined;
8030
8068
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
8069
+ companyBranchId?: string | undefined;
8031
8070
  limit?: number | undefined;
8032
8071
  startDate?: string | undefined;
8033
8072
  endDate?: string | undefined;
@@ -8061,8 +8100,8 @@ export declare const app: Elysia<"", {
8061
8100
  query: {
8062
8101
  employeeId?: string | undefined;
8063
8102
  method?: string | undefined;
8064
- companyBranchId?: string | undefined;
8065
8103
  state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
8104
+ companyBranchId?: string | undefined;
8066
8105
  limit?: number | undefined;
8067
8106
  startDate?: string | undefined;
8068
8107
  endDate?: string | undefined;
@@ -10093,8 +10132,8 @@ export declare const app: Elysia<"", {
10093
10132
  post: {
10094
10133
  body: {
10095
10134
  oldId?: number | null | undefined;
10096
- note?: string | null | undefined;
10097
10135
  state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
10136
+ note?: string | null | undefined;
10098
10137
  timeCompleted?: Date | null | undefined;
10099
10138
  hours?: number | null | undefined;
10100
10139
  mileageKm?: number | null | undefined;
@@ -10127,8 +10166,8 @@ export declare const app: Elysia<"", {
10127
10166
  put: {
10128
10167
  body: {
10129
10168
  oldId?: number | null | undefined;
10130
- note?: string | null | undefined;
10131
10169
  state?: "CREATED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | undefined;
10170
+ note?: string | null | undefined;
10132
10171
  timeCompleted?: Date | null | undefined;
10133
10172
  templateId?: string | undefined;
10134
10173
  machineId?: string | undefined;
@@ -11411,8 +11450,8 @@ export declare const app: Elysia<"", {
11411
11450
  timeCompleted?: Date | null | undefined;
11412
11451
  pmPlanId?: string | null | undefined;
11413
11452
  pmPlanMachineId?: string | null | undefined;
11414
- serviceKindId: string;
11415
11453
  state: string;
11454
+ serviceKindId: string;
11416
11455
  machineId: string;
11417
11456
  employeeTechnicianId: string;
11418
11457
  };
@@ -11439,9 +11478,9 @@ export declare const app: Elysia<"", {
11439
11478
  put: {
11440
11479
  body: {
11441
11480
  oldId?: number | null | undefined;
11481
+ state?: string | undefined;
11442
11482
  serviceKindId?: string | undefined;
11443
11483
  note?: string | null | undefined;
11444
- state?: string | undefined;
11445
11484
  timeCompleted?: Date | null | undefined;
11446
11485
  machineId?: string | undefined;
11447
11486
  pmPlanId?: string | null | undefined;
@@ -11609,8 +11648,8 @@ export declare const app: Elysia<"", {
11609
11648
  body: {
11610
11649
  oldId?: number | null | undefined;
11611
11650
  description?: string | null | undefined;
11612
- serviceKindId?: string | null | undefined;
11613
11651
  state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
11652
+ serviceKindId?: string | null | undefined;
11614
11653
  companyServiceKindId?: string | null | undefined;
11615
11654
  templateId?: string | null | undefined;
11616
11655
  machineId?: string | null | undefined;
@@ -11630,8 +11669,8 @@ export declare const app: Elysia<"", {
11630
11669
  deletedAt: string | null;
11631
11670
  oldId: number | null;
11632
11671
  description: string | null;
11633
- serviceKindId: string | null;
11634
11672
  state: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED";
11673
+ serviceKindId: string | null;
11635
11674
  companyServiceKindId: string | null;
11636
11675
  templateId: string | null;
11637
11676
  machineId: string | null;
@@ -11660,8 +11699,8 @@ export declare const app: Elysia<"", {
11660
11699
  body: {
11661
11700
  oldId?: number | null | undefined;
11662
11701
  description?: string | null | undefined;
11663
- serviceKindId?: string | null | undefined;
11664
11702
  state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
11703
+ serviceKindId?: string | null | undefined;
11665
11704
  companyServiceKindId?: string | null | undefined;
11666
11705
  templateId?: string | null | undefined;
11667
11706
  machineId?: string | null | undefined;
@@ -12357,6 +12396,817 @@ export declare const app: Elysia<"", {
12357
12396
  };
12358
12397
  };
12359
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
+ };
12360
13210
  }, {
12361
13211
  derive: {};
12362
13212
  resolve: {};