repzo 1.0.61 → 1.0.63
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 +82 -32
- package/package.json +1 -1
- package/src/types/index.ts +83 -26
package/lib/types/index.d.ts
CHANGED
|
@@ -3246,6 +3246,7 @@ export declare namespace Service {
|
|
|
3246
3246
|
}
|
|
3247
3247
|
namespace Visit {
|
|
3248
3248
|
export interface VisitSchema {
|
|
3249
|
+
_id: string;
|
|
3249
3250
|
geoPoint: {
|
|
3250
3251
|
type: "Point";
|
|
3251
3252
|
coordinates: number[];
|
|
@@ -3301,10 +3302,8 @@ export declare namespace Service {
|
|
|
3301
3302
|
meta: VisitMeta;
|
|
3302
3303
|
lines?: string[];
|
|
3303
3304
|
client_geo_location: {
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
lng: Number;
|
|
3307
|
-
};
|
|
3305
|
+
lat: number;
|
|
3306
|
+
lng: number;
|
|
3308
3307
|
};
|
|
3309
3308
|
geofencing_radius?: number;
|
|
3310
3309
|
availability?: string[];
|
|
@@ -3318,6 +3317,24 @@ export declare namespace Service {
|
|
|
3318
3317
|
| "low_accuracy"
|
|
3319
3318
|
| "location_turned_off";
|
|
3320
3319
|
company_namespace: string[];
|
|
3320
|
+
option_id?: string;
|
|
3321
|
+
invoice_total?: number;
|
|
3322
|
+
invoice_pre_total?: number;
|
|
3323
|
+
invoice_return_total?: number;
|
|
3324
|
+
proforma_total?: number;
|
|
3325
|
+
proforma_pre_total?: number;
|
|
3326
|
+
proforma_return_total?: number;
|
|
3327
|
+
payment_total?: number;
|
|
3328
|
+
refund_total?: number;
|
|
3329
|
+
geo_tag?: {
|
|
3330
|
+
lat: number;
|
|
3331
|
+
lng: number;
|
|
3332
|
+
formatted_address?: string;
|
|
3333
|
+
extra?: {};
|
|
3334
|
+
};
|
|
3335
|
+
delayed?: boolean;
|
|
3336
|
+
createdAt: Date;
|
|
3337
|
+
updatedAt: Date;
|
|
3321
3338
|
}
|
|
3322
3339
|
export interface CreateBody {
|
|
3323
3340
|
geoPoint: {
|
|
@@ -3357,10 +3374,8 @@ export declare namespace Service {
|
|
|
3357
3374
|
meta: VisitMeta;
|
|
3358
3375
|
lines?: string[];
|
|
3359
3376
|
client_geo_location: {
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
lng: Number;
|
|
3363
|
-
};
|
|
3377
|
+
lat: number;
|
|
3378
|
+
lng: number;
|
|
3364
3379
|
};
|
|
3365
3380
|
geofencing_radius?: number;
|
|
3366
3381
|
availability?: string[];
|
|
@@ -3368,6 +3383,22 @@ export declare namespace Service {
|
|
|
3368
3383
|
asset?: string;
|
|
3369
3384
|
asset_unit?: string;
|
|
3370
3385
|
company_namespace: string[];
|
|
3386
|
+
option_id?: string;
|
|
3387
|
+
invoice_total?: number;
|
|
3388
|
+
invoice_pre_total?: number;
|
|
3389
|
+
invoice_return_total?: number;
|
|
3390
|
+
proforma_total?: number;
|
|
3391
|
+
proforma_pre_total?: number;
|
|
3392
|
+
proforma_return_total?: number;
|
|
3393
|
+
payment_total?: number;
|
|
3394
|
+
refund_total?: number;
|
|
3395
|
+
geo_tag?: {
|
|
3396
|
+
lat: number;
|
|
3397
|
+
lng: number;
|
|
3398
|
+
formatted_address?: string;
|
|
3399
|
+
extra?: {};
|
|
3400
|
+
};
|
|
3401
|
+
delayed?: boolean;
|
|
3371
3402
|
}
|
|
3372
3403
|
export interface UpdateBody {
|
|
3373
3404
|
geoPoint?: {
|
|
@@ -3420,10 +3451,8 @@ export declare namespace Service {
|
|
|
3420
3451
|
meta: VisitMeta;
|
|
3421
3452
|
lines?: string[];
|
|
3422
3453
|
client_geo_location?: {
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
lng: Number;
|
|
3426
|
-
};
|
|
3454
|
+
lat: number;
|
|
3455
|
+
lng: number;
|
|
3427
3456
|
};
|
|
3428
3457
|
geofencing_radius?: number;
|
|
3429
3458
|
availability?: string[];
|
|
@@ -3436,9 +3465,25 @@ export declare namespace Service {
|
|
|
3436
3465
|
| "out_of_geofence"
|
|
3437
3466
|
| "low_accuracy"
|
|
3438
3467
|
| "location_turned_off";
|
|
3439
|
-
company_namespace
|
|
3468
|
+
company_namespace?: string[];
|
|
3469
|
+
option_id?: string;
|
|
3470
|
+
invoice_total?: number;
|
|
3471
|
+
invoice_pre_total?: number;
|
|
3472
|
+
invoice_return_total?: number;
|
|
3473
|
+
proforma_total?: number;
|
|
3474
|
+
proforma_pre_total?: number;
|
|
3475
|
+
proforma_return_total?: number;
|
|
3476
|
+
payment_total?: number;
|
|
3477
|
+
refund_total?: number;
|
|
3478
|
+
geo_tag?: {
|
|
3479
|
+
lat: number;
|
|
3480
|
+
lng: number;
|
|
3481
|
+
formatted_address?: string;
|
|
3482
|
+
extra?: {};
|
|
3483
|
+
};
|
|
3484
|
+
delayed?: boolean;
|
|
3440
3485
|
}
|
|
3441
|
-
type VisitSchemaWithPopulatedKeys = {
|
|
3486
|
+
type VisitSchemaWithPopulatedKeys = VisitSchema & {
|
|
3442
3487
|
notes: {
|
|
3443
3488
|
content: string;
|
|
3444
3489
|
geo_tag: GeoTag;
|
|
@@ -3512,8 +3557,24 @@ export declare namespace Service {
|
|
|
3512
3557
|
battery_level: number;
|
|
3513
3558
|
comment: ActivityComment[];
|
|
3514
3559
|
};
|
|
3515
|
-
tags
|
|
3560
|
+
tags?: string[] | Tag.TagSchema[];
|
|
3561
|
+
teams?: string[] | Team.TeamSchema[];
|
|
3562
|
+
user?: string | Rep.RepSchema;
|
|
3563
|
+
client?: string | Client.ClientSchema;
|
|
3564
|
+
route?: string | Route.RouteSchema;
|
|
3516
3565
|
};
|
|
3566
|
+
type PopulatedKeys =
|
|
3567
|
+
| "notes"
|
|
3568
|
+
| "tasks"
|
|
3569
|
+
| "photos"
|
|
3570
|
+
| "forms"
|
|
3571
|
+
| "audits"
|
|
3572
|
+
| "tags"
|
|
3573
|
+
| "availability"
|
|
3574
|
+
| "teams"
|
|
3575
|
+
| "client"
|
|
3576
|
+
| "user"
|
|
3577
|
+
| "route";
|
|
3517
3578
|
export namespace Find {
|
|
3518
3579
|
type Params = DefaultPaginationQueryParams & {
|
|
3519
3580
|
user?: string;
|
|
@@ -3531,21 +3592,16 @@ export declare namespace Service {
|
|
|
3531
3592
|
from_total_time?: number;
|
|
3532
3593
|
to_total_time?: number;
|
|
3533
3594
|
closed_by_system?: boolean;
|
|
3595
|
+
from_updatedAt?: number;
|
|
3596
|
+
[key: string]: any;
|
|
3597
|
+
populatedKeys?: PopulatedKeys[];
|
|
3534
3598
|
};
|
|
3535
3599
|
interface Result extends DefaultPaginationResult {
|
|
3536
|
-
data:
|
|
3600
|
+
data: VisitSchemaWithPopulatedKeys[];
|
|
3537
3601
|
absolute_total: number;
|
|
3538
3602
|
page_total: number;
|
|
3539
3603
|
}
|
|
3540
3604
|
}
|
|
3541
|
-
type PopulatedKeys =
|
|
3542
|
-
| "notes"
|
|
3543
|
-
| "tasks"
|
|
3544
|
-
| "photos"
|
|
3545
|
-
| "forms"
|
|
3546
|
-
| "audits"
|
|
3547
|
-
| "tags"
|
|
3548
|
-
| "availability";
|
|
3549
3605
|
export namespace Create {
|
|
3550
3606
|
type Body = CreateBody;
|
|
3551
3607
|
type Result = VisitSchema;
|
|
@@ -5318,10 +5374,7 @@ export declare namespace Service {
|
|
|
5318
5374
|
check_date: string;
|
|
5319
5375
|
photo?: string;
|
|
5320
5376
|
media?: string[];
|
|
5321
|
-
caption
|
|
5322
|
-
type: String;
|
|
5323
|
-
default: null;
|
|
5324
|
-
};
|
|
5377
|
+
caption?: string;
|
|
5325
5378
|
photo_meta?: {
|
|
5326
5379
|
device_orientation?: 1 | 2 | 3 | 4;
|
|
5327
5380
|
height?: 1 | 2 | 3 | 4;
|
|
@@ -5356,10 +5409,7 @@ export declare namespace Service {
|
|
|
5356
5409
|
check_date: string;
|
|
5357
5410
|
photo?: string;
|
|
5358
5411
|
media?: string[];
|
|
5359
|
-
caption
|
|
5360
|
-
type: String;
|
|
5361
|
-
default: null;
|
|
5362
|
-
};
|
|
5412
|
+
caption?: string;
|
|
5363
5413
|
photo_meta?: {
|
|
5364
5414
|
device_orientation?: 1 | 2 | 3 | 4;
|
|
5365
5415
|
height?: 1 | 2 | 3 | 4;
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -3274,6 +3274,7 @@ export namespace Service {
|
|
|
3274
3274
|
|
|
3275
3275
|
export namespace Visit {
|
|
3276
3276
|
export interface VisitSchema {
|
|
3277
|
+
_id: string;
|
|
3277
3278
|
geoPoint: {
|
|
3278
3279
|
type: "Point";
|
|
3279
3280
|
coordinates: number[];
|
|
@@ -3329,10 +3330,8 @@ export namespace Service {
|
|
|
3329
3330
|
meta: VisitMeta;
|
|
3330
3331
|
lines?: string[];
|
|
3331
3332
|
client_geo_location: {
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
lng: Number;
|
|
3335
|
-
};
|
|
3333
|
+
lat: number;
|
|
3334
|
+
lng: number;
|
|
3336
3335
|
};
|
|
3337
3336
|
geofencing_radius?: number;
|
|
3338
3337
|
availability?: string[];
|
|
@@ -3346,6 +3345,24 @@ export namespace Service {
|
|
|
3346
3345
|
| "low_accuracy"
|
|
3347
3346
|
| "location_turned_off";
|
|
3348
3347
|
company_namespace: string[];
|
|
3348
|
+
option_id?: string;
|
|
3349
|
+
invoice_total?: number;
|
|
3350
|
+
invoice_pre_total?: number;
|
|
3351
|
+
invoice_return_total?: number;
|
|
3352
|
+
proforma_total?: number;
|
|
3353
|
+
proforma_pre_total?: number;
|
|
3354
|
+
proforma_return_total?: number;
|
|
3355
|
+
payment_total?: number;
|
|
3356
|
+
refund_total?: number;
|
|
3357
|
+
geo_tag?: {
|
|
3358
|
+
lat: number;
|
|
3359
|
+
lng: number;
|
|
3360
|
+
formatted_address?: string;
|
|
3361
|
+
extra?: {};
|
|
3362
|
+
};
|
|
3363
|
+
delayed?: boolean;
|
|
3364
|
+
createdAt: Date;
|
|
3365
|
+
updatedAt: Date;
|
|
3349
3366
|
}
|
|
3350
3367
|
export interface CreateBody {
|
|
3351
3368
|
geoPoint: {
|
|
@@ -3385,10 +3402,8 @@ export namespace Service {
|
|
|
3385
3402
|
meta: VisitMeta;
|
|
3386
3403
|
lines?: string[];
|
|
3387
3404
|
client_geo_location: {
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
lng: Number;
|
|
3391
|
-
};
|
|
3405
|
+
lat: number;
|
|
3406
|
+
lng: number;
|
|
3392
3407
|
};
|
|
3393
3408
|
geofencing_radius?: number;
|
|
3394
3409
|
availability?: string[];
|
|
@@ -3396,6 +3411,22 @@ export namespace Service {
|
|
|
3396
3411
|
asset?: string;
|
|
3397
3412
|
asset_unit?: string;
|
|
3398
3413
|
company_namespace: string[];
|
|
3414
|
+
option_id?: string;
|
|
3415
|
+
invoice_total?: number;
|
|
3416
|
+
invoice_pre_total?: number;
|
|
3417
|
+
invoice_return_total?: number;
|
|
3418
|
+
proforma_total?: number;
|
|
3419
|
+
proforma_pre_total?: number;
|
|
3420
|
+
proforma_return_total?: number;
|
|
3421
|
+
payment_total?: number;
|
|
3422
|
+
refund_total?: number;
|
|
3423
|
+
geo_tag?: {
|
|
3424
|
+
lat: number;
|
|
3425
|
+
lng: number;
|
|
3426
|
+
formatted_address?: string;
|
|
3427
|
+
extra?: {};
|
|
3428
|
+
};
|
|
3429
|
+
delayed?: boolean;
|
|
3399
3430
|
}
|
|
3400
3431
|
export interface UpdateBody {
|
|
3401
3432
|
geoPoint?: {
|
|
@@ -3448,10 +3479,8 @@ export namespace Service {
|
|
|
3448
3479
|
meta: VisitMeta;
|
|
3449
3480
|
lines?: string[];
|
|
3450
3481
|
client_geo_location?: {
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
lng: Number;
|
|
3454
|
-
};
|
|
3482
|
+
lat: number;
|
|
3483
|
+
lng: number;
|
|
3455
3484
|
};
|
|
3456
3485
|
geofencing_radius?: number;
|
|
3457
3486
|
availability?: string[];
|
|
@@ -3464,9 +3493,25 @@ export namespace Service {
|
|
|
3464
3493
|
| "out_of_geofence"
|
|
3465
3494
|
| "low_accuracy"
|
|
3466
3495
|
| "location_turned_off";
|
|
3467
|
-
company_namespace
|
|
3496
|
+
company_namespace?: string[];
|
|
3497
|
+
option_id?: string;
|
|
3498
|
+
invoice_total?: number;
|
|
3499
|
+
invoice_pre_total?: number;
|
|
3500
|
+
invoice_return_total?: number;
|
|
3501
|
+
proforma_total?: number;
|
|
3502
|
+
proforma_pre_total?: number;
|
|
3503
|
+
proforma_return_total?: number;
|
|
3504
|
+
payment_total?: number;
|
|
3505
|
+
refund_total?: number;
|
|
3506
|
+
geo_tag?: {
|
|
3507
|
+
lat: number;
|
|
3508
|
+
lng: number;
|
|
3509
|
+
formatted_address?: string;
|
|
3510
|
+
extra?: {};
|
|
3511
|
+
};
|
|
3512
|
+
delayed?: boolean;
|
|
3468
3513
|
}
|
|
3469
|
-
type VisitSchemaWithPopulatedKeys = {
|
|
3514
|
+
type VisitSchemaWithPopulatedKeys = VisitSchema & {
|
|
3470
3515
|
notes: {
|
|
3471
3516
|
content: string;
|
|
3472
3517
|
geo_tag: GeoTag;
|
|
@@ -3538,8 +3583,24 @@ export namespace Service {
|
|
|
3538
3583
|
battery_level: number;
|
|
3539
3584
|
comment: ActivityComment[];
|
|
3540
3585
|
};
|
|
3541
|
-
tags
|
|
3586
|
+
tags?: string[] | Tag.TagSchema[];
|
|
3587
|
+
teams?: string[] | Team.TeamSchema[];
|
|
3588
|
+
user?: string | Rep.RepSchema;
|
|
3589
|
+
client?: string | Client.ClientSchema;
|
|
3590
|
+
route?: string | Route.RouteSchema;
|
|
3542
3591
|
};
|
|
3592
|
+
type PopulatedKeys =
|
|
3593
|
+
| "notes"
|
|
3594
|
+
| "tasks"
|
|
3595
|
+
| "photos"
|
|
3596
|
+
| "forms"
|
|
3597
|
+
| "audits"
|
|
3598
|
+
| "tags"
|
|
3599
|
+
| "availability"
|
|
3600
|
+
| "teams"
|
|
3601
|
+
| "client"
|
|
3602
|
+
| "user"
|
|
3603
|
+
| "route";
|
|
3543
3604
|
export namespace Find {
|
|
3544
3605
|
export type Params = DefaultPaginationQueryParams & {
|
|
3545
3606
|
user?: string;
|
|
@@ -3557,21 +3618,17 @@ export namespace Service {
|
|
|
3557
3618
|
from_total_time?: number;
|
|
3558
3619
|
to_total_time?: number;
|
|
3559
3620
|
closed_by_system?: boolean;
|
|
3621
|
+
from_updatedAt?: number;
|
|
3622
|
+
[key: string]: any; // integration_meta.
|
|
3623
|
+
populatedKeys?: PopulatedKeys[];
|
|
3560
3624
|
};
|
|
3561
3625
|
export interface Result extends DefaultPaginationResult {
|
|
3562
|
-
data:
|
|
3626
|
+
data: VisitSchemaWithPopulatedKeys[];
|
|
3563
3627
|
absolute_total: number;
|
|
3564
3628
|
page_total: number;
|
|
3565
3629
|
}
|
|
3566
3630
|
}
|
|
3567
|
-
|
|
3568
|
-
| "notes"
|
|
3569
|
-
| "tasks"
|
|
3570
|
-
| "photos"
|
|
3571
|
-
| "forms"
|
|
3572
|
-
| "audits"
|
|
3573
|
-
| "tags"
|
|
3574
|
-
| "availability";
|
|
3631
|
+
|
|
3575
3632
|
export namespace Create {
|
|
3576
3633
|
export type Body = CreateBody;
|
|
3577
3634
|
export type Result = VisitSchema;
|
|
@@ -5323,7 +5380,7 @@ export namespace Service {
|
|
|
5323
5380
|
check_date: string;
|
|
5324
5381
|
photo?: string;
|
|
5325
5382
|
media?: string[];
|
|
5326
|
-
caption
|
|
5383
|
+
caption?: string;
|
|
5327
5384
|
photo_meta?: {
|
|
5328
5385
|
device_orientation?: 1 | 2 | 3 | 4;
|
|
5329
5386
|
height?: 1 | 2 | 3 | 4;
|
|
@@ -5358,7 +5415,7 @@ export namespace Service {
|
|
|
5358
5415
|
check_date: string;
|
|
5359
5416
|
photo?: string;
|
|
5360
5417
|
media?: string[];
|
|
5361
|
-
caption
|
|
5418
|
+
caption?: string;
|
|
5362
5419
|
photo_meta?: {
|
|
5363
5420
|
device_orientation?: 1 | 2 | 3 | 4;
|
|
5364
5421
|
height?: 1 | 2 | 3 | 4;
|