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.
- package/lib/types/index.d.ts +96 -59
- package/package.json +1 -1
- package/src/types/index.ts +112 -61
package/lib/types/index.d.ts
CHANGED
|
@@ -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:
|
|
320
|
+
_id: StringId;
|
|
321
|
+
name: string;
|
|
322
|
+
disabled: boolean;
|
|
308
323
|
local_name?: string;
|
|
309
|
-
tags?:
|
|
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?:
|
|
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:
|
|
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?:
|
|
353
|
+
price_tag?: StringId;
|
|
342
354
|
jobs?: JobObject[];
|
|
343
|
-
status?:
|
|
344
|
-
job_category?:
|
|
345
|
-
availability_msl?:
|
|
346
|
-
territory?:
|
|
347
|
-
sv_priceList?:
|
|
348
|
-
assigned_media?:
|
|
349
|
-
assigned_products?:
|
|
350
|
-
assigned_product_groups?:
|
|
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?:
|
|
357
|
-
speciality?:
|
|
368
|
+
paymentTerm?: StringId;
|
|
369
|
+
speciality?: StringId[];
|
|
358
370
|
company_namespace: string[];
|
|
359
|
-
channel?:
|
|
371
|
+
channel?: StringId;
|
|
360
372
|
isChain?: boolean;
|
|
361
|
-
chain?:
|
|
362
|
-
teams?:
|
|
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?:
|
|
375
|
-
retail_execution_templates?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
434
|
+
price_tag?: StringId;
|
|
415
435
|
jobs?: JobObject[];
|
|
416
|
-
status?:
|
|
417
|
-
job_category?:
|
|
418
|
-
availability_msl?:
|
|
419
|
-
territory?:
|
|
420
|
-
sv_priceList?:
|
|
421
|
-
assigned_media?:
|
|
422
|
-
assigned_products?:
|
|
423
|
-
assigned_product_groups?:
|
|
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?:
|
|
430
|
-
speciality?:
|
|
431
|
-
company_namespace
|
|
432
|
-
channel?:
|
|
449
|
+
paymentTerm?: StringId;
|
|
450
|
+
speciality?: StringId[];
|
|
451
|
+
company_namespace: string[];
|
|
452
|
+
channel?: StringId;
|
|
433
453
|
isChain?: boolean;
|
|
434
|
-
chain?:
|
|
435
|
-
teams?:
|
|
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?:
|
|
448
|
-
retail_execution_templates?:
|
|
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?:
|
|
453
|
-
assigned_product_groups?:
|
|
454
|
-
teams?:
|
|
455
|
-
contacts?:
|
|
456
|
-
speciality?:
|
|
457
|
-
assigned_to?:
|
|
458
|
-
tags?:
|
|
459
|
-
price_tag?:
|
|
460
|
-
job_category?:
|
|
461
|
-
sv_priceList?:
|
|
462
|
-
chain?:
|
|
463
|
-
channel?:
|
|
464
|
-
assigned_forms_v2_templates?:
|
|
465
|
-
retail_execution_templates?:
|
|
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
package/src/types/index.ts
CHANGED
|
@@ -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:
|
|
475
|
+
_id: StringId;
|
|
476
|
+
name: string;
|
|
477
|
+
disabled: boolean;
|
|
463
478
|
local_name?: string;
|
|
464
|
-
tags?:
|
|
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?:
|
|
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:
|
|
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?:
|
|
509
|
+
price_tag?: StringId;
|
|
497
510
|
jobs?: JobObject[];
|
|
498
|
-
status?:
|
|
499
|
-
job_category?:
|
|
500
|
-
availability_msl?:
|
|
501
|
-
territory?:
|
|
502
|
-
sv_priceList?:
|
|
503
|
-
assigned_media?:
|
|
504
|
-
assigned_products?:
|
|
505
|
-
assigned_product_groups?:
|
|
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?:
|
|
510
|
-
speciality?:
|
|
522
|
+
paymentTerm?: StringId;
|
|
523
|
+
speciality?: StringId[];
|
|
511
524
|
company_namespace: string[];
|
|
512
|
-
channel?:
|
|
525
|
+
channel?: StringId;
|
|
513
526
|
isChain?: boolean;
|
|
514
|
-
chain?:
|
|
515
|
-
teams?:
|
|
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?:
|
|
526
|
-
retail_execution_templates?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
587
|
+
price_tag?: StringId;
|
|
566
588
|
jobs?: JobObject[];
|
|
567
|
-
status?:
|
|
568
|
-
job_category?:
|
|
569
|
-
availability_msl?:
|
|
570
|
-
territory?:
|
|
571
|
-
sv_priceList?:
|
|
572
|
-
assigned_media?:
|
|
573
|
-
assigned_products?:
|
|
574
|
-
assigned_product_groups?:
|
|
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?:
|
|
579
|
-
speciality?:
|
|
580
|
-
company_namespace
|
|
581
|
-
channel?:
|
|
600
|
+
paymentTerm?: StringId;
|
|
601
|
+
speciality?: StringId[];
|
|
602
|
+
company_namespace: string[];
|
|
603
|
+
channel?: StringId;
|
|
582
604
|
isChain?: boolean;
|
|
583
|
-
chain?:
|
|
584
|
-
teams?:
|
|
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?:
|
|
595
|
-
retail_execution_templates?:
|
|
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
|
-
|
|
|
653
|
+
| StringId[]
|
|
619
654
|
| Pick<Product.ProductSchema, "_id" | "name">[];
|
|
620
655
|
assigned_product_groups?:
|
|
621
|
-
|
|
|
656
|
+
| StringId
|
|
622
657
|
| Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
623
|
-
teams?:
|
|
624
|
-
contacts?:
|
|
625
|
-
speciality?:
|
|
626
|
-
assigned_to?:
|
|
627
|
-
tags?:
|
|
628
|
-
price_tag?:
|
|
629
|
-
job_category?:
|
|
630
|
-
sv_priceList?:
|
|
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
|
-
|
|
|
633
|
-
| Pick<
|
|
634
|
-
|
|
635
|
-
|
|
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
|
-
|
|
|
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
|