repzo 1.0.93 → 1.0.95

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.
@@ -200,21 +200,21 @@ export interface Build {
200
200
  list: List[];
201
201
  start_date?: number | undefined;
202
202
  }
203
- export type Calendar = CalendarWeekly | CalendarWeeklyGroup;
203
+ export declare type Calendar = CalendarWeekly | CalendarWeeklyGroup;
204
204
  export interface Route {
205
205
  disabled: boolean;
206
206
  list: List[];
207
207
  _id: string;
208
208
  }
209
- export type Priority = 0 | 1 | 2 | 3;
210
- export type WorkorderStatus =
209
+ export declare type Priority = 0 | 1 | 2 | 3;
210
+ export declare type WorkorderStatus =
211
211
  | "open"
212
212
  | "done"
213
213
  | "cancelled"
214
214
  | "inprogress"
215
215
  | "onhold";
216
- export type Priority_human = "none" | "low" | "medium" | "high";
217
- export type Day =
216
+ export declare type Priority_human = "none" | "low" | "medium" | "high";
217
+ export declare type Day =
218
218
  | "Sun"
219
219
  | "Mon"
220
220
  | "Tue"
@@ -223,7 +223,7 @@ export type Day =
223
223
  | "Fri"
224
224
  | "Sat"
225
225
  | string;
226
- export type FieldType =
226
+ export declare type FieldType =
227
227
  | "Text"
228
228
  | "String"
229
229
  | "Date"
@@ -269,7 +269,7 @@ export interface CalendarWeeklyGroup {
269
269
  note?: string;
270
270
  _id: string;
271
271
  }
272
- export type Model =
272
+ export declare type Model =
273
273
  | "quickConvertToPdf"
274
274
  | "warehouses"
275
275
  | "transfers"
@@ -294,7 +294,7 @@ export type Model =
294
294
  | "activities"
295
295
  | "bigReports"
296
296
  | "admins";
297
- export type DocumentTypes =
297
+ export declare type DocumentTypes =
298
298
  | "form"
299
299
  | "quickConvertToPdf"
300
300
  | "clients"
@@ -338,7 +338,7 @@ export type DocumentTypes =
338
338
  | "retailExecutionPreset"
339
339
  | "paymentMethod"
340
340
  | "approvalRequest";
341
- export type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
341
+ export declare type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
342
342
  export interface MediaDoc {
343
343
  _id?: string;
344
344
  media_id: string;
@@ -6886,7 +6886,9 @@ export declare namespace Service {
6886
6886
  | "approval-request"
6887
6887
  | "receiving-material"
6888
6888
  | "asset-part-transfer"
6889
- | "adjust-inventory";
6889
+ | "adjust-inventory"
6890
+ | "return-asset-part-unit"
6891
+ | "store-asset-part-unit";
6890
6892
  document_id: string;
6891
6893
  status: CycleStatus;
6892
6894
  node?: AdminCreator | RepCreator | ClientCreator;
@@ -8537,6 +8539,7 @@ export declare namespace Service {
8537
8539
  integration_meta?: {
8538
8540
  [key: string]: any;
8539
8541
  };
8542
+ workorder?: StringId;
8540
8543
  company_namespace: string[];
8541
8544
  createdAt: Date;
8542
8545
  updatedAt: Date;
@@ -8581,6 +8584,7 @@ export declare namespace Service {
8581
8584
  integration_meta?: {
8582
8585
  [key: string]: any;
8583
8586
  };
8587
+ workorder?: StringId | Workorder.WorkorderSchema;
8584
8588
  company_namespace: string[];
8585
8589
  createdAt: Date;
8586
8590
  updatedAt: Date;
@@ -8614,6 +8618,7 @@ export declare namespace Service {
8614
8618
  };
8615
8619
  asset_parts_count?: number;
8616
8620
  total_asset_parts_qty?: number;
8621
+ workorder?: StringId;
8617
8622
  company_namespace: string[];
8618
8623
  }
8619
8624
  interface UpdateBody {
@@ -8624,6 +8629,7 @@ export declare namespace Service {
8624
8629
  integration_meta?: {
8625
8630
  [key: string]: any;
8626
8631
  };
8632
+ workorder?: StringId;
8627
8633
  }
8628
8634
  namespace Find {
8629
8635
  type Params = DefaultPaginationQueryParams & {
@@ -8651,6 +8657,7 @@ export declare namespace Service {
8651
8657
  to_createdAt?: number;
8652
8658
  from_updatedAt?: number;
8653
8659
  to_updatedAt?: number;
8660
+ workorder?: StringId | StringId[];
8654
8661
  populatesKeys?: (
8655
8662
  | "asset_part"
8656
8663
  | "client"
@@ -8659,6 +8666,7 @@ export declare namespace Service {
8659
8666
  | "custom_status"
8660
8667
  | "media"
8661
8668
  | "signature"
8669
+ | "workorder"
8662
8670
  )[];
8663
8671
  sortBy?: {
8664
8672
  field: "_id" | "time" | "createdAt" | "updatedAt";
@@ -8940,6 +8948,8 @@ export declare namespace Service {
8940
8948
  | "warehouse"
8941
8949
  | "teams"
8942
8950
  | "custom_status"
8951
+ | "from"
8952
+ | "to"
8943
8953
  )[];
8944
8954
  sortBy?: {
8945
8955
  field: "_id" | "time" | "createdAt" | "updatedAt";
@@ -8994,6 +9004,13 @@ export declare namespace Service {
8994
9004
  creator: AdminOrRep;
8995
9005
  editor?: AdminOrRep;
8996
9006
  sync_id: string;
9007
+ status:
9008
+ | "pending"
9009
+ | "approved"
9010
+ | "processing"
9011
+ | "rejected"
9012
+ | "processed"
9013
+ | "failed";
8997
9014
  transaction_processed: boolean;
8998
9015
  client: StringId;
8999
9016
  client_name: string;
@@ -9022,6 +9039,12 @@ export declare namespace Service {
9022
9039
  integration_meta?: {
9023
9040
  [key: string]: any;
9024
9041
  };
9042
+ failed_reasons?: {
9043
+ code: string;
9044
+ message: string;
9045
+ [key: string]: any;
9046
+ }[];
9047
+ workorder?: StringId;
9025
9048
  company_namespace: string[];
9026
9049
  createdAt: Date;
9027
9050
  updatedAt: Date;
@@ -9031,6 +9054,13 @@ export declare namespace Service {
9031
9054
  creator: AdminOrRep;
9032
9055
  editor?: AdminOrRep;
9033
9056
  sync_id: string;
9057
+ status:
9058
+ | "pending"
9059
+ | "approved"
9060
+ | "processing"
9061
+ | "rejected"
9062
+ | "processed"
9063
+ | "failed";
9034
9064
  transaction_processed: boolean;
9035
9065
  client:
9036
9066
  | StringId
@@ -9068,6 +9098,12 @@ export declare namespace Service {
9068
9098
  integration_meta?: {
9069
9099
  [key: string]: any;
9070
9100
  };
9101
+ failed_reasons?: {
9102
+ code: string;
9103
+ message: string;
9104
+ [key: string]: any;
9105
+ }[];
9106
+ workorder?: StringId | Workorder.WorkorderSchema;
9071
9107
  company_namespace: string[];
9072
9108
  createdAt: Date;
9073
9109
  updatedAt: Date;
@@ -9076,6 +9112,7 @@ export declare namespace Service {
9076
9112
  creator?: AdminOrRep;
9077
9113
  editor?: AdminOrRep;
9078
9114
  sync_id: string;
9115
+ status?: "pending";
9079
9116
  transaction_processed: boolean;
9080
9117
  serial_number?: SerialNumber;
9081
9118
  client: StringId;
@@ -9103,16 +9140,61 @@ export declare namespace Service {
9103
9140
  };
9104
9141
  asset_part_units_count?: number;
9105
9142
  total_asset_part_units_qty?: number;
9143
+ workorder?: StringId;
9106
9144
  company_namespace: string[];
9107
9145
  }
9108
9146
  interface UpdateBody {
9147
+ _id?: StringId;
9148
+ creator?: AdminOrRep;
9109
9149
  editor?: AdminOrRep;
9150
+ sync_id?: string;
9151
+ status?:
9152
+ | "pending"
9153
+ | "approved"
9154
+ | "processing"
9155
+ | "rejected"
9156
+ | "processed"
9157
+ | "failed";
9158
+ transaction_processed?: boolean;
9159
+ client?: StringId;
9160
+ client_name?: string;
9161
+ warehouse?: StringId;
9162
+ warehouse_name?: string;
9163
+ teams?: StringId[];
9164
+ time?: number;
9165
+ business_day?: string;
9166
+ visit_id?: string;
9167
+ serial_number?: SerialNumber;
9110
9168
  description?: string;
9111
9169
  custom_status?: StringId;
9170
+ signature?: StringId;
9112
9171
  media?: StringId[];
9172
+ asset_part_units?: {
9173
+ _id?: StringId;
9174
+ asset_part_unit: StringId;
9175
+ qty: number;
9176
+ asset_part?: StringId;
9177
+ asset_part_name?: string;
9178
+ comment?: string;
9179
+ splitted_from?: StringId;
9180
+ }[];
9181
+ asset_part_units_count?: number;
9182
+ total_asset_part_units_qty?: number;
9113
9183
  integration_meta?: {
9114
9184
  [key: string]: any;
9115
9185
  };
9186
+ failed_reasons?: {
9187
+ code: string;
9188
+ message: string;
9189
+ [key: string]: any;
9190
+ }[];
9191
+ isResubmitted?: boolean;
9192
+ note?: string;
9193
+ stage?: number;
9194
+ workorder?: StringId;
9195
+ company_namespace?: string[];
9196
+ createdAt?: Date;
9197
+ updatedAt?: Date;
9116
9198
  }
9117
9199
  namespace Find {
9118
9200
  type Params = DefaultPaginationQueryParams & {
@@ -9140,6 +9222,7 @@ export declare namespace Service {
9140
9222
  to_createdAt?: number;
9141
9223
  from_updatedAt?: number;
9142
9224
  to_updatedAt?: number;
9225
+ workorder?: StringId | StringId[];
9143
9226
  populatesKeys?: (
9144
9227
  | "client"
9145
9228
  | "asset_part_unit"
@@ -9148,6 +9231,7 @@ export declare namespace Service {
9148
9231
  | "custom_status"
9149
9232
  | "meadia"
9150
9233
  | "signature"
9234
+ | "workorder"
9151
9235
  )[];
9152
9236
  sortBy?: {
9153
9237
  field: "_id" | "time" | "createdAt" | "updatedAt";
@@ -9202,6 +9286,13 @@ export declare namespace Service {
9202
9286
  creator: AdminOrRep;
9203
9287
  editor?: AdminOrRep;
9204
9288
  sync_id: string;
9289
+ status:
9290
+ | "pending"
9291
+ | "approved"
9292
+ | "processing"
9293
+ | "rejected"
9294
+ | "processed"
9295
+ | "failed";
9205
9296
  transaction_processed: boolean;
9206
9297
  warehouse: StringId;
9207
9298
  warehouse_name: string;
@@ -9228,6 +9319,11 @@ export declare namespace Service {
9228
9319
  integration_meta?: {
9229
9320
  [key: string]: any;
9230
9321
  };
9322
+ failed_reasons?: {
9323
+ code: string;
9324
+ message: string;
9325
+ [key: string]: any;
9326
+ }[];
9231
9327
  company_namespace: string[];
9232
9328
  createdAt: Date;
9233
9329
  updatedAt: Date;
@@ -9237,6 +9333,13 @@ export declare namespace Service {
9237
9333
  creator: AdminOrRep;
9238
9334
  editor?: AdminOrRep;
9239
9335
  sync_id: string;
9336
+ status:
9337
+ | "pending"
9338
+ | "approved"
9339
+ | "processing"
9340
+ | "rejected"
9341
+ | "processed"
9342
+ | "failed";
9240
9343
  transaction_processed: boolean;
9241
9344
  warehouse:
9242
9345
  | StringId
@@ -9270,6 +9373,11 @@ export declare namespace Service {
9270
9373
  integration_meta?: {
9271
9374
  [key: string]: any;
9272
9375
  };
9376
+ failed_reasons?: {
9377
+ code: string;
9378
+ message: string;
9379
+ [key: string]: any;
9380
+ }[];
9273
9381
  company_namespace: string[];
9274
9382
  createdAt: Date;
9275
9383
  updatedAt: Date;
@@ -9278,6 +9386,7 @@ export declare namespace Service {
9278
9386
  creator?: AdminOrRep;
9279
9387
  editor?: AdminOrRep;
9280
9388
  sync_id: string;
9389
+ status?: "pending";
9281
9390
  transaction_processed: boolean;
9282
9391
  serial_number?: SerialNumber;
9283
9392
  warehouse: StringId;
@@ -9306,13 +9415,54 @@ export declare namespace Service {
9306
9415
  company_namespace: string[];
9307
9416
  }
9308
9417
  interface UpdateBody {
9418
+ _id?: StringId;
9419
+ creator?: AdminOrRep;
9309
9420
  editor?: AdminOrRep;
9421
+ sync_id?: string;
9422
+ status?:
9423
+ | "pending"
9424
+ | "approved"
9425
+ | "processing"
9426
+ | "rejected"
9427
+ | "processed"
9428
+ | "failed";
9429
+ transaction_processed?: boolean;
9430
+ warehouse?: StringId;
9431
+ warehouse_name?: string;
9432
+ teams?: StringId[];
9433
+ time?: number;
9434
+ business_day?: string;
9435
+ visit_id?: string;
9436
+ serial_number?: SerialNumber;
9310
9437
  description?: string;
9311
9438
  custom_status?: StringId;
9439
+ signature?: StringId;
9312
9440
  media?: StringId[];
9441
+ asset_part_units?: {
9442
+ _id?: StringId;
9443
+ asset_part_unit: StringId;
9444
+ qty: number;
9445
+ asset_part?: StringId;
9446
+ asset_part_name?: string;
9447
+ comment?: string;
9448
+ splitted_from?: StringId;
9449
+ }[];
9450
+ asset_part_units_count?: number;
9451
+ total_asset_part_units_qty?: number;
9313
9452
  integration_meta?: {
9314
9453
  [key: string]: any;
9315
9454
  };
9455
+ failed_reasons?: {
9456
+ code: string;
9457
+ message: string;
9458
+ [key: string]: any;
9459
+ }[];
9460
+ isResubmitted?: boolean;
9461
+ note?: string;
9462
+ stage?: number;
9463
+ company_namespace?: string[];
9464
+ createdAt?: Date;
9465
+ updatedAt?: Date;
9316
9466
  }
9317
9467
  namespace Find {
9318
9468
  type Params = DefaultPaginationQueryParams & {
@@ -10712,8 +10862,8 @@ export declare namespace Service {
10712
10862
  }
10713
10863
  }
10714
10864
  }
10715
- export type StringId = string;
10716
- export type NameSpaces = string[];
10865
+ export declare type StringId = string;
10866
+ export declare type NameSpaces = string[];
10717
10867
  export interface AdminOrRep {
10718
10868
  _id: StringId;
10719
10869
  name?: string;
@@ -10721,7 +10871,7 @@ export interface AdminOrRep {
10721
10871
  admin?: StringId;
10722
10872
  rep?: StringId;
10723
10873
  }
10724
- type PopulatedMediaStorage = Pick<
10874
+ declare type PopulatedMediaStorage = Pick<
10725
10875
  Service.MediaStorage.MediaStorageSchema,
10726
10876
  | "_id"
10727
10877
  | "createdAt"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -6887,7 +6887,9 @@ export namespace Service {
6887
6887
  | "approval-request"
6888
6888
  | "receiving-material"
6889
6889
  | "asset-part-transfer"
6890
- | "adjust-inventory";
6890
+ | "adjust-inventory"
6891
+ | "return-asset-part-unit"
6892
+ | "store-asset-part-unit";
6891
6893
  document_id: string;
6892
6894
  status: CycleStatus;
6893
6895
  node?: AdminCreator | RepCreator | ClientCreator;
@@ -8464,6 +8466,7 @@ export namespace Service {
8464
8466
  asset_parts_count?: number;
8465
8467
  total_asset_parts_qty?: number;
8466
8468
  integration_meta?: { [key: string]: any };
8469
+ workorder?: StringId;
8467
8470
  company_namespace: string[];
8468
8471
  createdAt: Date;
8469
8472
  updatedAt: Date;
@@ -8506,6 +8509,7 @@ export namespace Service {
8506
8509
  asset_parts_count?: number;
8507
8510
  total_asset_parts_qty?: number;
8508
8511
  integration_meta?: { [key: string]: any };
8512
+ workorder?: StringId | Workorder.WorkorderSchema;
8509
8513
  company_namespace: string[];
8510
8514
  createdAt: Date;
8511
8515
  updatedAt: Date;
@@ -8537,6 +8541,7 @@ export namespace Service {
8537
8541
  integration_meta?: { [key: string]: any };
8538
8542
  asset_parts_count?: number;
8539
8543
  total_asset_parts_qty?: number;
8544
+ workorder?: StringId;
8540
8545
  company_namespace: string[];
8541
8546
  }
8542
8547
  export interface UpdateBody {
@@ -8545,6 +8550,7 @@ export namespace Service {
8545
8550
  custom_status?: StringId;
8546
8551
  media?: StringId[];
8547
8552
  integration_meta?: { [key: string]: any };
8553
+ workorder?: StringId;
8548
8554
  }
8549
8555
 
8550
8556
  export namespace Find {
@@ -8573,6 +8579,7 @@ export namespace Service {
8573
8579
  to_createdAt?: number;
8574
8580
  from_updatedAt?: number;
8575
8581
  to_updatedAt?: number;
8582
+ workorder?: StringId | StringId[];
8576
8583
  populatesKeys?: (
8577
8584
  | "asset_part"
8578
8585
  | "client"
@@ -8581,6 +8588,7 @@ export namespace Service {
8581
8588
  | "custom_status"
8582
8589
  | "media"
8583
8590
  | "signature"
8591
+ | "workorder"
8584
8592
  )[];
8585
8593
  sortBy?: {
8586
8594
  field: "_id" | "time" | "createdAt" | "updatedAt";
@@ -8825,6 +8833,8 @@ export namespace Service {
8825
8833
  | "warehouse"
8826
8834
  | "teams"
8827
8835
  | "custom_status"
8836
+ | "from"
8837
+ | "to"
8828
8838
  )[];
8829
8839
  sortBy?: {
8830
8840
  field: "_id" | "time" | "createdAt" | "updatedAt";
@@ -8865,6 +8875,13 @@ export namespace Service {
8865
8875
  creator: AdminOrRep;
8866
8876
  editor?: AdminOrRep;
8867
8877
  sync_id: string;
8878
+ status:
8879
+ | "pending"
8880
+ | "approved"
8881
+ | "processing"
8882
+ | "rejected"
8883
+ | "processed"
8884
+ | "failed";
8868
8885
  transaction_processed: boolean;
8869
8886
  client: StringId;
8870
8887
  client_name: string;
@@ -8891,6 +8908,8 @@ export namespace Service {
8891
8908
  asset_part_units_count?: number;
8892
8909
  total_asset_part_units_qty?: number;
8893
8910
  integration_meta?: { [key: string]: any };
8911
+ failed_reasons?: { code: string; message: string; [key: string]: any }[];
8912
+ workorder?: StringId;
8894
8913
  company_namespace: string[];
8895
8914
  createdAt: Date;
8896
8915
  updatedAt: Date;
@@ -8900,6 +8919,13 @@ export namespace Service {
8900
8919
  creator: AdminOrRep;
8901
8920
  editor?: AdminOrRep;
8902
8921
  sync_id: string;
8922
+ status:
8923
+ | "pending"
8924
+ | "approved"
8925
+ | "processing"
8926
+ | "rejected"
8927
+ | "processed"
8928
+ | "failed";
8903
8929
  transaction_processed: boolean;
8904
8930
  client:
8905
8931
  | StringId
@@ -8935,6 +8961,8 @@ export namespace Service {
8935
8961
  asset_part_units_count?: number;
8936
8962
  total_asset_part_units_qty?: number;
8937
8963
  integration_meta?: { [key: string]: any };
8964
+ failed_reasons?: { code: string; message: string; [key: string]: any }[];
8965
+ workorder?: StringId | Workorder.WorkorderSchema;
8938
8966
  company_namespace: string[];
8939
8967
  createdAt: Date;
8940
8968
  updatedAt: Date;
@@ -8943,6 +8971,7 @@ export namespace Service {
8943
8971
  creator?: AdminOrRep;
8944
8972
  editor?: AdminOrRep;
8945
8973
  sync_id: string;
8974
+ status?: "pending";
8946
8975
  transaction_processed: boolean;
8947
8976
  serial_number?: SerialNumber;
8948
8977
  client: StringId;
@@ -8968,14 +8997,55 @@ export namespace Service {
8968
8997
  integration_meta?: { [key: string]: any };
8969
8998
  asset_part_units_count?: number;
8970
8999
  total_asset_part_units_qty?: number;
9000
+ workorder?: StringId;
8971
9001
  company_namespace: string[];
8972
9002
  }
8973
9003
  export interface UpdateBody {
9004
+ _id?: StringId;
9005
+ creator?: AdminOrRep;
8974
9006
  editor?: AdminOrRep;
9007
+ sync_id?: string;
9008
+ status?:
9009
+ | "pending"
9010
+ | "approved"
9011
+ | "processing"
9012
+ | "rejected"
9013
+ | "processed"
9014
+ | "failed";
9015
+ transaction_processed?: boolean;
9016
+ client?: StringId;
9017
+ client_name?: string;
9018
+ warehouse?: StringId;
9019
+ warehouse_name?: string;
9020
+ teams?: StringId[];
9021
+ time?: number;
9022
+ business_day?: string;
9023
+ visit_id?: string;
9024
+ serial_number?: SerialNumber;
8975
9025
  description?: string;
8976
9026
  custom_status?: StringId;
9027
+ signature?: StringId;
8977
9028
  media?: StringId[];
9029
+ asset_part_units?: {
9030
+ _id?: StringId;
9031
+ asset_part_unit: StringId;
9032
+ qty: number;
9033
+ asset_part?: StringId;
9034
+ asset_part_name?: string;
9035
+ comment?: string;
9036
+ splitted_from?: StringId;
9037
+ }[];
9038
+ asset_part_units_count?: number;
9039
+ total_asset_part_units_qty?: number;
8978
9040
  integration_meta?: { [key: string]: any };
9041
+ failed_reasons?: { code: string; message: string; [key: string]: any }[];
9042
+ isResubmitted?: boolean;
9043
+ note?: string;
9044
+ stage?: number;
9045
+ workorder?: StringId;
9046
+ company_namespace?: string[];
9047
+ createdAt?: Date;
9048
+ updatedAt?: Date;
8979
9049
  }
8980
9050
 
8981
9051
  export namespace Find {
@@ -9004,6 +9074,7 @@ export namespace Service {
9004
9074
  to_createdAt?: number;
9005
9075
  from_updatedAt?: number;
9006
9076
  to_updatedAt?: number;
9077
+ workorder?: StringId | StringId[];
9007
9078
  populatesKeys?: (
9008
9079
  | "client"
9009
9080
  | "asset_part_unit"
@@ -9012,6 +9083,7 @@ export namespace Service {
9012
9083
  | "custom_status"
9013
9084
  | "meadia"
9014
9085
  | "signature"
9086
+ | "workorder"
9015
9087
  )[];
9016
9088
  sortBy?: {
9017
9089
  field: "_id" | "time" | "createdAt" | "updatedAt";
@@ -9052,6 +9124,13 @@ export namespace Service {
9052
9124
  creator: AdminOrRep;
9053
9125
  editor?: AdminOrRep;
9054
9126
  sync_id: string;
9127
+ status:
9128
+ | "pending"
9129
+ | "approved"
9130
+ | "processing"
9131
+ | "rejected"
9132
+ | "processed"
9133
+ | "failed";
9055
9134
  transaction_processed: boolean;
9056
9135
  warehouse: StringId;
9057
9136
  warehouse_name: string;
@@ -9076,6 +9155,7 @@ export namespace Service {
9076
9155
  asset_part_units_count?: number;
9077
9156
  total_asset_part_units_qty?: number;
9078
9157
  integration_meta?: { [key: string]: any };
9158
+ failed_reasons?: { code: string; message: string; [key: string]: any }[];
9079
9159
  company_namespace: string[];
9080
9160
  createdAt: Date;
9081
9161
  updatedAt: Date;
@@ -9085,6 +9165,13 @@ export namespace Service {
9085
9165
  creator: AdminOrRep;
9086
9166
  editor?: AdminOrRep;
9087
9167
  sync_id: string;
9168
+ status:
9169
+ | "pending"
9170
+ | "approved"
9171
+ | "processing"
9172
+ | "rejected"
9173
+ | "processed"
9174
+ | "failed";
9088
9175
  transaction_processed: boolean;
9089
9176
  warehouse:
9090
9177
  | StringId
@@ -9116,6 +9203,7 @@ export namespace Service {
9116
9203
  asset_part_units_count?: number;
9117
9204
  total_asset_part_units_qty?: number;
9118
9205
  integration_meta?: { [key: string]: any };
9206
+ failed_reasons?: { code: string; message: string; [key: string]: any }[];
9119
9207
  company_namespace: string[];
9120
9208
  createdAt: Date;
9121
9209
  updatedAt: Date;
@@ -9124,6 +9212,7 @@ export namespace Service {
9124
9212
  creator?: AdminOrRep;
9125
9213
  editor?: AdminOrRep;
9126
9214
  sync_id: string;
9215
+ status?: "pending";
9127
9216
  transaction_processed: boolean;
9128
9217
  serial_number?: SerialNumber;
9129
9218
  warehouse: StringId;
@@ -9150,11 +9239,48 @@ export namespace Service {
9150
9239
  company_namespace: string[];
9151
9240
  }
9152
9241
  export interface UpdateBody {
9242
+ _id?: StringId;
9243
+ creator?: AdminOrRep;
9153
9244
  editor?: AdminOrRep;
9245
+ sync_id?: string;
9246
+ status?:
9247
+ | "pending"
9248
+ | "approved"
9249
+ | "processing"
9250
+ | "rejected"
9251
+ | "processed"
9252
+ | "failed";
9253
+ transaction_processed?: boolean;
9254
+ warehouse?: StringId;
9255
+ warehouse_name?: string;
9256
+ teams?: StringId[];
9257
+ time?: number;
9258
+ business_day?: string;
9259
+ visit_id?: string;
9260
+ serial_number?: SerialNumber;
9154
9261
  description?: string;
9155
9262
  custom_status?: StringId;
9263
+ signature?: StringId;
9156
9264
  media?: StringId[];
9265
+ asset_part_units?: {
9266
+ _id?: StringId;
9267
+ asset_part_unit: StringId;
9268
+ qty: number;
9269
+ asset_part?: StringId;
9270
+ asset_part_name?: string;
9271
+ comment?: string;
9272
+ splitted_from?: StringId;
9273
+ }[];
9274
+ asset_part_units_count?: number;
9275
+ total_asset_part_units_qty?: number;
9157
9276
  integration_meta?: { [key: string]: any };
9277
+ failed_reasons?: { code: string; message: string; [key: string]: any }[];
9278
+ isResubmitted?: boolean;
9279
+ note?: string;
9280
+ stage?: number;
9281
+ company_namespace?: string[];
9282
+ createdAt?: Date;
9283
+ updatedAt?: Date;
9158
9284
  }
9159
9285
 
9160
9286
  export namespace Find {