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