repzo 1.0.91 → 1.0.93

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 declare type Calendar = CalendarWeekly | CalendarWeeklyGroup;
203
+ export 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 declare type Priority = 0 | 1 | 2 | 3;
210
- export declare type WorkorderStatus =
209
+ export type Priority = 0 | 1 | 2 | 3;
210
+ export type WorkorderStatus =
211
211
  | "open"
212
212
  | "done"
213
213
  | "cancelled"
214
214
  | "inprogress"
215
215
  | "onhold";
216
- export declare type Priority_human = "none" | "low" | "medium" | "high";
217
- export declare type Day =
216
+ export type Priority_human = "none" | "low" | "medium" | "high";
217
+ export type Day =
218
218
  | "Sun"
219
219
  | "Mon"
220
220
  | "Tue"
@@ -223,7 +223,7 @@ export declare type Day =
223
223
  | "Fri"
224
224
  | "Sat"
225
225
  | string;
226
- export declare type FieldType =
226
+ export 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 declare type Model =
272
+ export type Model =
273
273
  | "quickConvertToPdf"
274
274
  | "warehouses"
275
275
  | "transfers"
@@ -294,7 +294,7 @@ export declare type Model =
294
294
  | "activities"
295
295
  | "bigReports"
296
296
  | "admins";
297
- export declare type DocumentTypes =
297
+ export type DocumentTypes =
298
298
  | "form"
299
299
  | "quickConvertToPdf"
300
300
  | "clients"
@@ -338,7 +338,7 @@ export declare type DocumentTypes =
338
338
  | "retailExecutionPreset"
339
339
  | "paymentMethod"
340
340
  | "approvalRequest";
341
- export declare type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
341
+ export type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
342
342
  export interface MediaDoc {
343
343
  _id?: string;
344
344
  media_id: string;
@@ -8317,6 +8317,18 @@ export declare namespace Service {
8317
8317
  integration_meta?: {
8318
8318
  [key: string]: any;
8319
8319
  };
8320
+ quotation_is_recommended: boolean;
8321
+ quotation_internal_approval_status:
8322
+ | "pending"
8323
+ | "approved"
8324
+ | "completed"
8325
+ | "rejected";
8326
+ quotation_detail?: string;
8327
+ quotation_client_approval_status:
8328
+ | "pending"
8329
+ | "approved"
8330
+ | "collected"
8331
+ | "rejected";
8320
8332
  company_namespace: string[];
8321
8333
  createdAt: Date;
8322
8334
  updatedAt: Date;
@@ -8360,6 +8372,18 @@ export declare namespace Service {
8360
8372
  integration_meta?: {
8361
8373
  [key: string]: any;
8362
8374
  };
8375
+ quotation_is_recommended: boolean;
8376
+ quotation_internal_approval_status:
8377
+ | "pending"
8378
+ | "approved"
8379
+ | "completed"
8380
+ | "rejected";
8381
+ quotation_detail?: string;
8382
+ quotation_client_approval_status:
8383
+ | "pending"
8384
+ | "approved"
8385
+ | "collected"
8386
+ | "rejected";
8363
8387
  company_namespace: string[];
8364
8388
  createdAt: Date;
8365
8389
  updatedAt: Date;
@@ -8392,6 +8416,18 @@ export declare namespace Service {
8392
8416
  integration_meta?: {
8393
8417
  [key: string]: any;
8394
8418
  };
8419
+ quotation_is_recommended?: boolean;
8420
+ quotation_internal_approval_status?:
8421
+ | "pending"
8422
+ | "approved"
8423
+ | "completed"
8424
+ | "rejected";
8425
+ quotation_detail?: string;
8426
+ quotation_client_approval_status?:
8427
+ | "pending"
8428
+ | "approved"
8429
+ | "collected"
8430
+ | "rejected";
8395
8431
  company_namespace?: string[];
8396
8432
  }
8397
8433
  interface UpdateBody {
@@ -8399,6 +8435,18 @@ export declare namespace Service {
8399
8435
  comment?: string;
8400
8436
  media?: StringId[];
8401
8437
  editor?: AdminOrRep;
8438
+ quotation_is_recommended?: boolean;
8439
+ quotation_internal_approval_status?:
8440
+ | "pending"
8441
+ | "approved"
8442
+ | "completed"
8443
+ | "rejected";
8444
+ quotation_detail?: string;
8445
+ quotation_client_approval_status?:
8446
+ | "pending"
8447
+ | "approved"
8448
+ | "collected"
8449
+ | "rejected";
8402
8450
  }
8403
8451
  namespace Find {
8404
8452
  type Params = DefaultPaginationQueryParams & {
@@ -8433,6 +8481,15 @@ export declare namespace Service {
8433
8481
  field: "_id" | "asset_part_index" | "createdAt" | "updatedAt";
8434
8482
  type: "asc" | "desc";
8435
8483
  }[];
8484
+ quotation_is_recommended?: boolean;
8485
+ quotation_internal_approval_status?: Data["quotation_client_approval_status"][];
8486
+ quotation_client_approval_status?: Data["quotation_client_approval_status"][];
8487
+ rep?: StringId | StringId[];
8488
+ admin?: StringId | StringId[];
8489
+ creator?: StringId | StringId[];
8490
+ "creator._id"?: StringId[] | StringId;
8491
+ creator_type?: string | string[];
8492
+ "creator.type"?: string | string[];
8436
8493
  [key: string]: any;
8437
8494
  };
8438
8495
  interface Result extends DefaultPaginationResult {
@@ -8577,9 +8634,12 @@ export declare namespace Service {
8577
8634
  sync_id?: string[] | string;
8578
8635
  client?: string[] | string;
8579
8636
  warehouse?: string[] | string;
8580
- creator?: string | string[];
8581
- "creator._id"?: string[] | string;
8637
+ rep?: StringId | StringId[];
8638
+ admin?: StringId | StringId[];
8639
+ creator?: StringId | StringId[];
8640
+ "creator._id"?: StringId[] | StringId;
8582
8641
  creator_type?: string | string[];
8642
+ "creator.type"?: string | string[];
8583
8643
  teams?: string[] | string;
8584
8644
  visit_id?: string[] | string;
8585
8645
  custom_status?: string[] | string;
@@ -8687,6 +8747,11 @@ export declare namespace Service {
8687
8747
  integration_meta?: {
8688
8748
  [key: string]: any;
8689
8749
  };
8750
+ failed_reasons?: {
8751
+ code: string;
8752
+ message: string;
8753
+ [key: string]: any;
8754
+ }[];
8690
8755
  company_namespace: string[];
8691
8756
  createdAt: Date;
8692
8757
  updatedAt: Date;
@@ -8716,7 +8781,14 @@ export declare namespace Service {
8716
8781
  | "failed";
8717
8782
  sync_id: string;
8718
8783
  asset_part_units: {
8719
- asset_part_unit: StringId | AssetPartUnit.Data;
8784
+ asset_part_unit:
8785
+ | StringId
8786
+ | (AssetPartUnit.Data & {
8787
+ custom_status?: Pick<
8788
+ CustomStatus.CustomStatusSchema,
8789
+ "_id" | "name" | "local_name" | "code" | "color"
8790
+ >;
8791
+ });
8720
8792
  qty: number;
8721
8793
  asset_part?: StringId | AssetPart.Data;
8722
8794
  asset_part_name?: string;
@@ -8739,6 +8811,11 @@ export declare namespace Service {
8739
8811
  integration_meta?: {
8740
8812
  [key: string]: any;
8741
8813
  };
8814
+ failed_reasons?: {
8815
+ code: string;
8816
+ message: string;
8817
+ [key: string]: any;
8818
+ }[];
8742
8819
  company_namespace: string[];
8743
8820
  createdAt: Date;
8744
8821
  updatedAt: Date;
@@ -8772,6 +8849,11 @@ export declare namespace Service {
8772
8849
  integration_meta?: {
8773
8850
  [key: string]: any;
8774
8851
  };
8852
+ failed_reasons?: {
8853
+ code: string;
8854
+ message: string;
8855
+ [key: string]: any;
8856
+ }[];
8775
8857
  company_namespace: string[];
8776
8858
  }
8777
8859
  interface UpdateBody {
@@ -8818,6 +8900,11 @@ export declare namespace Service {
8818
8900
  isResubmitted?: boolean;
8819
8901
  note?: string;
8820
8902
  stage?: number;
8903
+ failed_reasons?: {
8904
+ code: string;
8905
+ message: string;
8906
+ [key: string]: any;
8907
+ }[];
8821
8908
  }
8822
8909
  namespace Find {
8823
8910
  type Params = DefaultPaginationQueryParams & {
@@ -8830,6 +8917,9 @@ export declare namespace Service {
8830
8917
  creator?: StringId[] | StringId;
8831
8918
  creator_type?: Data["creator"]["type"] | Data["creator"]["type"][];
8832
8919
  "creator._id"?: StringId[] | StringId;
8920
+ rep?: StringId | StringId[];
8921
+ admin?: StringId | StringId[];
8922
+ "creator.type"?: string | string[];
8833
8923
  type?: Data["type"][] | Data["type"];
8834
8924
  from?: StringId[] | StringId;
8835
8925
  to?: StringId[] | StringId;
@@ -9037,6 +9127,8 @@ export declare namespace Service {
9037
9127
  "creator.type"?: string[] | string;
9038
9128
  creator?: StringId[] | StringId;
9039
9129
  creator_type?: string[] | string;
9130
+ rep?: StringId | StringId[];
9131
+ admin?: StringId | StringId[];
9040
9132
  teams?: StringId[] | StringId;
9041
9133
  visit_id?: string[] | string;
9042
9134
  custom_status?: StringId[] | StringId;
@@ -9230,10 +9322,12 @@ export declare namespace Service {
9230
9322
  "serial_number.formatted"?: string[] | string;
9231
9323
  sync_id?: string[] | string;
9232
9324
  warehouse?: StringId[] | StringId;
9233
- creator?: StringId[] | StringId;
9234
9325
  creator_type?: string[] | string;
9235
- "creator._id"?: StringId[] | StringId;
9236
9326
  "creator.type"?: string[] | string;
9327
+ rep?: StringId | StringId[];
9328
+ admin?: StringId | StringId[];
9329
+ creator?: StringId | StringId[];
9330
+ "creator._id"?: StringId[] | StringId;
9237
9331
  teams?: StringId[] | StringId;
9238
9332
  visit_id?: string[] | string;
9239
9333
  custom_status?: StringId[] | StringId;
@@ -10618,8 +10712,8 @@ export declare namespace Service {
10618
10712
  }
10619
10713
  }
10620
10714
  }
10621
- export declare type StringId = string;
10622
- export declare type NameSpaces = string[];
10715
+ export type StringId = string;
10716
+ export type NameSpaces = string[];
10623
10717
  export interface AdminOrRep {
10624
10718
  _id: StringId;
10625
10719
  name?: string;
@@ -10627,7 +10721,7 @@ export interface AdminOrRep {
10627
10721
  admin?: StringId;
10628
10722
  rep?: StringId;
10629
10723
  }
10630
- declare type PopulatedMediaStorage = Pick<
10724
+ type PopulatedMediaStorage = Pick<
10631
10725
  Service.MediaStorage.MediaStorageSchema,
10632
10726
  | "_id"
10633
10727
  | "createdAt"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",