repzo 1.0.146 → 1.0.147

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.
@@ -303,29 +303,41 @@ export declare namespace Service {
303
303
  target: number;
304
304
  classification: string;
305
305
  }
306
+ interface Sales {
307
+ name_on_invoice?: string;
308
+ invoice_footer?: string;
309
+ logo_media?: StringId;
310
+ invoice_title?: string;
311
+ invoice_local_title?: string;
312
+ proforma_title?: string;
313
+ proforma_local_title?: string;
314
+ return_invoice_title?: string;
315
+ return_invoice_local_title?: string;
316
+ address_1?: string;
317
+ address_2?: string;
318
+ }
306
319
  export interface ClientSchema {
307
- _id: string;
320
+ _id: StringId;
321
+ name: string;
322
+ disabled: boolean;
308
323
  local_name?: string;
309
- tags?: string[];
324
+ tags?: StringId[];
310
325
  cell_phone?: string;
311
326
  city?: string;
312
327
  client_code?: string;
313
328
  contact_name?: string;
314
329
  contact_title?: string;
315
- contacts?: string[];
330
+ contacts?: StringId[];
316
331
  country?: string;
317
- disabled?: boolean;
318
332
  formatted_address?: string;
319
333
  lat?: number;
320
334
  lng?: number;
321
335
  location_verified?: boolean;
322
- name: string;
323
336
  phone?: string;
324
337
  state?: string;
325
338
  zip?: string;
326
- assigned_to: string[];
339
+ assigned_to: StringId[];
327
340
  last_location_update?: number;
328
- credit_limit?: number;
329
341
  tax_number?: string;
330
342
  sync_id?: string;
331
343
  rep_targets?: RepTarget[];
@@ -338,28 +350,28 @@ export declare namespace Service {
338
350
  parent_client_id?: string;
339
351
  target_visit?: number;
340
352
  geofencing_radius?: number;
341
- price_tag?: string;
353
+ price_tag?: StringId;
342
354
  jobs?: JobObject[];
343
- status?: string;
344
- job_category?: string[];
345
- availability_msl?: string[];
346
- territory?: string;
347
- sv_priceList?: string;
348
- assigned_media?: string[];
349
- assigned_products?: string[];
350
- assigned_product_groups?: string;
355
+ status?: StringId;
356
+ job_category?: StringId[];
357
+ availability_msl?: StringId[];
358
+ territory?: StringId;
359
+ sv_priceList?: StringId;
360
+ assigned_media?: StringId[];
361
+ assigned_products?: StringId[];
362
+ assigned_product_groups?: StringId[];
351
363
  verifiedUntil?: number;
352
364
  financials?: Financials;
353
365
  customFields?: {
354
366
  [key: string]: any;
355
367
  };
356
- paymentTerm?: string;
357
- speciality?: string[];
368
+ paymentTerm?: StringId;
369
+ speciality?: StringId[];
358
370
  company_namespace: string[];
359
- channel?: string;
371
+ channel?: StringId;
360
372
  isChain?: boolean;
361
- chain?: string;
362
- teams?: string[];
373
+ chain?: StringId;
374
+ teams?: StringId[];
363
375
  payment_type: "cash" | "credit";
364
376
  integration_meta?: {
365
377
  [key: string]: any;
@@ -369,10 +381,19 @@ export declare namespace Service {
369
381
  payment_terms_grace_period_days?: number;
370
382
  enable_invoice_balance_limit?: boolean;
371
383
  enable_payment_terms_grace_period_days?: boolean;
384
+ enable_credit_limit_on_invoice?: boolean;
385
+ enable_credit_limit_on_proforma?: boolean;
386
+ enable_invoice_balance_limit_on_proforma?: boolean;
387
+ enable_payment_terms_grace_period_days_on_proforma?: boolean;
372
388
  is_simplified?: boolean;
373
389
  last_login_time?: number;
374
- assigned_forms_v2_templates?: string[];
375
- retail_execution_templates?: string[];
390
+ assigned_forms_v2_templates?: StringId[];
391
+ retail_execution_templates?: StringId[];
392
+ last_sales_invoice_time?: number;
393
+ last_sales_proforma_time?: number;
394
+ media?: StringId[];
395
+ cover_photo?: StringId;
396
+ sales?: Sales;
376
397
  createdAt: string;
377
398
  updatedAt: string;
378
399
  __v: number;
@@ -380,13 +401,13 @@ export declare namespace Service {
380
401
  export interface CreateBody {
381
402
  name?: string;
382
403
  local_name?: string;
383
- tags?: string[];
404
+ tags?: StringId[];
384
405
  cell_phone?: string;
385
406
  city?: string;
386
407
  client_code?: string;
387
408
  contact_name?: string;
388
409
  contact_title?: string;
389
- contacts?: string[];
410
+ contacts?: StringId[];
390
411
  country?: string;
391
412
  disabled?: boolean;
392
413
  formatted_address?: string;
@@ -396,9 +417,8 @@ export declare namespace Service {
396
417
  phone?: string;
397
418
  state?: string;
398
419
  zip?: string;
399
- assigned_to?: string[];
420
+ assigned_to?: StringId[];
400
421
  last_location_update?: number;
401
- credit_limit?: number;
402
422
  tax_number?: string;
403
423
  sync_id?: string;
404
424
  rep_targets?: RepTarget[];
@@ -411,28 +431,28 @@ export declare namespace Service {
411
431
  parent_client_id?: string;
412
432
  target_visit?: number;
413
433
  geofencing_radius?: number;
414
- price_tag?: string;
434
+ price_tag?: StringId;
415
435
  jobs?: JobObject[];
416
- status?: string;
417
- job_category?: string[];
418
- availability_msl?: string[];
419
- territory?: string;
420
- sv_priceList?: string;
421
- assigned_media?: string[];
422
- assigned_products?: string[];
423
- assigned_product_groups?: string;
436
+ status?: StringId;
437
+ job_category?: StringId[];
438
+ availability_msl?: StringId[];
439
+ territory?: StringId;
440
+ sv_priceList?: StringId;
441
+ assigned_media?: StringId[];
442
+ assigned_products?: StringId[];
443
+ assigned_product_groups?: StringId[];
424
444
  verifiedUntil?: number;
425
445
  financials?: Financials;
426
446
  customFields?: {
427
447
  [key: string]: any;
428
448
  };
429
- paymentTerm?: string;
430
- speciality?: string[];
431
- company_namespace?: string[];
432
- channel?: string;
449
+ paymentTerm?: StringId;
450
+ speciality?: StringId[];
451
+ company_namespace: string[];
452
+ channel?: StringId;
433
453
  isChain?: boolean;
434
- chain?: string;
435
- teams?: string[];
454
+ chain?: StringId;
455
+ teams?: StringId[];
436
456
  payment_type?: "cash" | "credit";
437
457
  integration_meta?: {
438
458
  [key: string]: any;
@@ -442,27 +462,42 @@ export declare namespace Service {
442
462
  payment_terms_grace_period_days?: number;
443
463
  enable_invoice_balance_limit?: boolean;
444
464
  enable_payment_terms_grace_period_days?: boolean;
465
+ enable_credit_limit_on_invoice?: boolean;
466
+ enable_credit_limit_on_proforma?: boolean;
467
+ enable_invoice_balance_limit_on_proforma?: boolean;
468
+ enable_payment_terms_grace_period_days_on_proforma?: boolean;
445
469
  is_simplified?: boolean;
446
470
  last_login_time?: number;
447
- assigned_forms_v2_templates?: string[];
448
- retail_execution_templates?: string[];
471
+ assigned_forms_v2_templates?: StringId[];
472
+ retail_execution_templates?: StringId[];
473
+ last_sales_invoice_time?: number;
474
+ last_sales_proforma_time?: number;
475
+ media?: StringId[];
476
+ cover_photo?: StringId;
477
+ sales?: Sales;
449
478
  }
450
- export type PopulatedKeys = "tags" | "reps" | "assigned_to" | "sv_priceList" | "paymentTerm" | "job_category" | "msl" | "chain" | "channel" | "product" | "assigned_products" | "assigned_product_groups" | "speciality" | "teams" | "contacts" | "retail_execution_templates" | "assigned_forms_v2_templates";
479
+ export type PopulatedKeys = "tags" | "reps" | "assigned_to" | "sv_priceList" | "paymentTerm" | "job_category" | "msl" | "chain" | "channel" | "status" | "product" | "assigned_products" | "assigned_product_groups" | "speciality" | "teams" | "contacts" | "retail_execution_templates" | "assigned_forms_v2_templates" | "media" | "cover_photo" | "sales.logo_media";
451
480
  type ClientSchemaWithPopulatedKeys = ClientSchema & {
452
- assigned_products?: string[] | Pick<Product.ProductSchema, "_id" | "name">[];
453
- assigned_product_groups?: string | Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
454
- teams?: string[] | Pick<Team.TeamSchema, "_id" | "name">[];
455
- contacts?: string[] | ClientContact.ClientContactSchema[];
456
- speciality?: string[] | Speciality.SpecialitySchema[];
457
- assigned_to?: string[] | Pick<Rep.RepSchema, "_id" | "name">[];
458
- tags?: string[] | Tag.TagSchema[];
459
- price_tag?: string | Tag.TagSchema;
460
- job_category?: string[] | JobCategory.JobCategorySchema[];
461
- sv_priceList?: string | Pick<PriceList.PriceListSchema, "_id" | "name">[];
462
- chain?: string | Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
463
- channel?: string | Channel.ChannelSchema;
464
- assigned_forms_v2_templates?: string[] | FormPopulated[];
465
- retail_execution_templates?: string[] | RetailExecutionTemplatePopulated[];
481
+ assigned_products?: StringId[] | Pick<Product.ProductSchema, "_id" | "name">[];
482
+ assigned_product_groups?: StringId | Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
483
+ teams?: StringId[] | Pick<Team.TeamSchema, "_id" | "name">[];
484
+ contacts?: StringId[] | ClientContact.ClientContactSchema[];
485
+ speciality?: StringId[] | Speciality.SpecialitySchema[];
486
+ assigned_to?: StringId[] | Pick<Rep.RepSchema, "_id" | "name">[];
487
+ tags?: StringId[] | Tag.TagSchema[];
488
+ price_tag?: StringId | Tag.TagSchema;
489
+ job_category?: StringId[] | JobCategory.JobCategorySchema[];
490
+ sv_priceList?: StringId | Pick<PriceList.PriceListSchema, "_id" | "name">[];
491
+ chain?: StringId | Pick<Client.ClientSchema, "_id" | "name" | "client_code" | "local_name">;
492
+ channel?: StringId | Channel.ChannelSchema;
493
+ assigned_forms_v2_templates?: StringId[] | Pick<FormPopulated, "_id" | "name">[];
494
+ retail_execution_templates?: StringId[] | Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
495
+ media?: StringId[] | PopulatedMediaStorage[];
496
+ cover_photo?: StringId | PopulatedMediaStorage;
497
+ paymentTerm?: StringId | Pick<PaymentTerm.PaymentTermSchema, "_id" | "name" | "due_days">;
498
+ sales?: Sales & {
499
+ logo_media?: StringId | MediaPopulated;
500
+ };
466
501
  };
467
502
  export namespace Find {
468
503
  type Params = DefaultPaginationQueryParams & {
@@ -9366,6 +9401,8 @@ export declare namespace Service {
9366
9401
  cover_photo?: MediaDoc;
9367
9402
  });
9368
9403
  asset_part_name: string;
9404
+ warehouse_name: string;
9405
+ receival_warehouse_name: string;
9369
9406
  qty: number;
9370
9407
  custom_status?: StringId | Pick<CustomStatus.CustomStatusSchema, "_id" | "name" | "local_name" | "code" | "color">;
9371
9408
  receival_comment?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.146",
3
+ "version": "1.0.147",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -458,29 +458,42 @@ export namespace Service {
458
458
  target: number;
459
459
  classification: string;
460
460
  }
461
+ interface Sales {
462
+ name_on_invoice?: string;
463
+ invoice_footer?: string;
464
+ logo_media?: StringId;
465
+ invoice_title?: string;
466
+ invoice_local_title?: string;
467
+ proforma_title?: string;
468
+ proforma_local_title?: string;
469
+ return_invoice_title?: string;
470
+ return_invoice_local_title?: string;
471
+ address_1?: string;
472
+ address_2?: string;
473
+ }
461
474
  export interface ClientSchema {
462
- _id: string;
475
+ _id: StringId;
476
+ name: string;
477
+ disabled: boolean;
463
478
  local_name?: string;
464
- tags?: string[];
479
+ tags?: StringId[];
465
480
  cell_phone?: string;
466
481
  city?: string;
467
482
  client_code?: string;
468
483
  contact_name?: string;
469
484
  contact_title?: string;
470
- contacts?: string[];
485
+ contacts?: StringId[];
471
486
  country?: string;
472
- disabled?: boolean;
473
487
  formatted_address?: string;
474
488
  lat?: number;
475
489
  lng?: number;
476
490
  location_verified?: boolean;
477
- name: string;
478
491
  phone?: string;
479
492
  state?: string;
480
493
  zip?: string;
481
- assigned_to: string[];
494
+ assigned_to: StringId[];
482
495
  last_location_update?: number;
483
- credit_limit?: number;
496
+ // credit_limit?: number;
484
497
  tax_number?: string;
485
498
  sync_id?: string;
486
499
  rep_targets?: RepTarget[];
@@ -493,26 +506,26 @@ export namespace Service {
493
506
  parent_client_id?: string;
494
507
  target_visit?: number;
495
508
  geofencing_radius?: number;
496
- price_tag?: string;
509
+ price_tag?: StringId;
497
510
  jobs?: JobObject[];
498
- status?: string;
499
- job_category?: string[];
500
- availability_msl?: string[];
501
- territory?: string;
502
- sv_priceList?: string;
503
- assigned_media?: string[];
504
- assigned_products?: string[];
505
- assigned_product_groups?: string;
511
+ status?: StringId;
512
+ job_category?: StringId[];
513
+ availability_msl?: StringId[];
514
+ territory?: StringId;
515
+ sv_priceList?: StringId;
516
+ assigned_media?: StringId[];
517
+ assigned_products?: StringId[];
518
+ assigned_product_groups?: StringId[];
506
519
  verifiedUntil?: number;
507
520
  financials?: Financials;
508
521
  customFields?: { [key: string]: any };
509
- paymentTerm?: string;
510
- speciality?: string[];
522
+ paymentTerm?: StringId;
523
+ speciality?: StringId[];
511
524
  company_namespace: string[];
512
- channel?: string;
525
+ channel?: StringId;
513
526
  isChain?: boolean;
514
- chain?: string;
515
- teams?: string[];
527
+ chain?: StringId;
528
+ teams?: StringId[];
516
529
  payment_type: "cash" | "credit";
517
530
  integration_meta?: { [key: string]: any };
518
531
  integrated_client_balance?: number;
@@ -520,10 +533,19 @@ export namespace Service {
520
533
  payment_terms_grace_period_days?: number;
521
534
  enable_invoice_balance_limit?: boolean;
522
535
  enable_payment_terms_grace_period_days?: boolean;
536
+ enable_credit_limit_on_invoice?: boolean;
537
+ enable_credit_limit_on_proforma?: boolean;
538
+ enable_invoice_balance_limit_on_proforma?: boolean;
539
+ enable_payment_terms_grace_period_days_on_proforma?: boolean;
523
540
  is_simplified?: boolean;
524
541
  last_login_time?: number;
525
- assigned_forms_v2_templates?: string[];
526
- retail_execution_templates?: string[];
542
+ assigned_forms_v2_templates?: StringId[];
543
+ retail_execution_templates?: StringId[];
544
+ last_sales_invoice_time?: number;
545
+ last_sales_proforma_time?: number;
546
+ media?: StringId[];
547
+ cover_photo?: StringId;
548
+ sales?: Sales;
527
549
  createdAt: string;
528
550
  updatedAt: string;
529
551
  __v: number;
@@ -531,13 +553,13 @@ export namespace Service {
531
553
  export interface CreateBody {
532
554
  name?: string;
533
555
  local_name?: string;
534
- tags?: string[];
556
+ tags?: StringId[];
535
557
  cell_phone?: string;
536
558
  city?: string;
537
559
  client_code?: string;
538
560
  contact_name?: string;
539
561
  contact_title?: string;
540
- contacts?: string[];
562
+ contacts?: StringId[];
541
563
  country?: string;
542
564
  disabled?: boolean;
543
565
  formatted_address?: string;
@@ -547,9 +569,9 @@ export namespace Service {
547
569
  phone?: string;
548
570
  state?: string;
549
571
  zip?: string;
550
- assigned_to?: string[];
572
+ assigned_to?: StringId[];
551
573
  last_location_update?: number;
552
- credit_limit?: number;
574
+ // credit_limit?: number;
553
575
  tax_number?: string;
554
576
  sync_id?: string;
555
577
  rep_targets?: RepTarget[];
@@ -562,26 +584,26 @@ export namespace Service {
562
584
  parent_client_id?: string;
563
585
  target_visit?: number;
564
586
  geofencing_radius?: number;
565
- price_tag?: string;
587
+ price_tag?: StringId;
566
588
  jobs?: JobObject[];
567
- status?: string;
568
- job_category?: string[];
569
- availability_msl?: string[];
570
- territory?: string;
571
- sv_priceList?: string;
572
- assigned_media?: string[];
573
- assigned_products?: string[];
574
- assigned_product_groups?: string;
589
+ status?: StringId;
590
+ job_category?: StringId[];
591
+ availability_msl?: StringId[];
592
+ territory?: StringId;
593
+ sv_priceList?: StringId;
594
+ assigned_media?: StringId[];
595
+ assigned_products?: StringId[];
596
+ assigned_product_groups?: StringId[];
575
597
  verifiedUntil?: number;
576
598
  financials?: Financials;
577
599
  customFields?: { [key: string]: any };
578
- paymentTerm?: string;
579
- speciality?: string[];
580
- company_namespace?: string[];
581
- channel?: string;
600
+ paymentTerm?: StringId;
601
+ speciality?: StringId[];
602
+ company_namespace: string[];
603
+ channel?: StringId;
582
604
  isChain?: boolean;
583
- chain?: string;
584
- teams?: string[];
605
+ chain?: StringId;
606
+ teams?: StringId[];
585
607
  payment_type?: "cash" | "credit";
586
608
  integration_meta?: { [key: string]: any };
587
609
  integrated_client_balance?: number;
@@ -589,10 +611,19 @@ export namespace Service {
589
611
  payment_terms_grace_period_days?: number;
590
612
  enable_invoice_balance_limit?: boolean;
591
613
  enable_payment_terms_grace_period_days?: boolean;
614
+ enable_credit_limit_on_invoice?: boolean;
615
+ enable_credit_limit_on_proforma?: boolean;
616
+ enable_invoice_balance_limit_on_proforma?: boolean;
617
+ enable_payment_terms_grace_period_days_on_proforma?: boolean;
592
618
  is_simplified?: boolean;
593
619
  last_login_time?: number;
594
- assigned_forms_v2_templates?: string[];
595
- retail_execution_templates?: string[];
620
+ assigned_forms_v2_templates?: StringId[];
621
+ retail_execution_templates?: StringId[];
622
+ last_sales_invoice_time?: number;
623
+ last_sales_proforma_time?: number;
624
+ media?: StringId[];
625
+ cover_photo?: StringId;
626
+ sales?: Sales;
596
627
  }
597
628
  export type PopulatedKeys =
598
629
  | "tags"
@@ -604,6 +635,7 @@ export namespace Service {
604
635
  | "msl"
605
636
  | "chain"
606
637
  | "channel"
638
+ | "status"
607
639
  | "product"
608
640
  | "assigned_products"
609
641
  | "assigned_product_groups"
@@ -611,31 +643,48 @@ export namespace Service {
611
643
  | "teams"
612
644
  | "contacts"
613
645
  | "retail_execution_templates"
614
- | "assigned_forms_v2_templates";
646
+ | "assigned_forms_v2_templates"
647
+ | "media"
648
+ | "cover_photo"
649
+ | "sales.logo_media";
615
650
 
616
651
  type ClientSchemaWithPopulatedKeys = ClientSchema & {
617
652
  assigned_products?:
618
- | string[]
653
+ | StringId[]
619
654
  | Pick<Product.ProductSchema, "_id" | "name">[];
620
655
  assigned_product_groups?:
621
- | string
656
+ | StringId
622
657
  | Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
623
- teams?: string[] | Pick<Team.TeamSchema, "_id" | "name">[];
624
- contacts?: string[] | ClientContact.ClientContactSchema[];
625
- speciality?: string[] | Speciality.SpecialitySchema[];
626
- assigned_to?: string[] | Pick<Rep.RepSchema, "_id" | "name">[];
627
- tags?: string[] | Tag.TagSchema[];
628
- price_tag?: string | Tag.TagSchema;
629
- job_category?: string[] | JobCategory.JobCategorySchema[];
630
- sv_priceList?: string | Pick<PriceList.PriceListSchema, "_id" | "name">[];
658
+ teams?: StringId[] | Pick<Team.TeamSchema, "_id" | "name">[];
659
+ contacts?: StringId[] | ClientContact.ClientContactSchema[];
660
+ speciality?: StringId[] | Speciality.SpecialitySchema[];
661
+ assigned_to?: StringId[] | Pick<Rep.RepSchema, "_id" | "name">[];
662
+ tags?: StringId[] | Tag.TagSchema[];
663
+ price_tag?: StringId | Tag.TagSchema;
664
+ job_category?: StringId[] | JobCategory.JobCategorySchema[];
665
+ sv_priceList?:
666
+ | StringId
667
+ | Pick<PriceList.PriceListSchema, "_id" | "name">[];
631
668
  chain?:
632
- | string
633
- | Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
634
- channel?: string | Channel.ChannelSchema;
635
- assigned_forms_v2_templates?: string[] | FormPopulated[];
669
+ | StringId
670
+ | Pick<
671
+ Client.ClientSchema,
672
+ "_id" | "name" | "client_code" | "local_name"
673
+ >;
674
+ channel?: StringId | Channel.ChannelSchema;
675
+ assigned_forms_v2_templates?:
676
+ | StringId[]
677
+ | Pick<FormPopulated, "_id" | "name">[];
636
678
  retail_execution_templates?:
637
- | string[]
638
- | RetailExecutionTemplatePopulated[];
679
+ | StringId[]
680
+ | Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
681
+ media?: StringId[] | PopulatedMediaStorage[];
682
+ cover_photo?: StringId | PopulatedMediaStorage;
683
+ paymentTerm?:
684
+ | StringId
685
+ | Pick<PaymentTerm.PaymentTermSchema, "_id" | "name" | "due_days">;
686
+ sales?: Sales & { logo_media?: StringId | MediaPopulated };
687
+ // availability_msl?: StringId[] | AvailabilityMsl.AvailabilityMslSchema[];
639
688
  };
640
689
 
641
690
  export namespace Find {
@@ -9891,6 +9940,8 @@ export namespace Service {
9891
9940
  cover_photo?: MediaDoc;
9892
9941
  });
9893
9942
  asset_part_name: string;
9943
+ warehouse_name: string;
9944
+ receival_warehouse_name: string;
9894
9945
  qty: number;
9895
9946
  custom_status?:
9896
9947
  | StringId