repzo 1.0.41 → 1.0.43
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 +29 -15
- package/package.json +1 -1
- package/src/types/index.ts +21 -8
package/lib/types/index.d.ts
CHANGED
|
@@ -964,6 +964,7 @@ export declare namespace Service {
|
|
|
964
964
|
position?: number[] | number;
|
|
965
965
|
createdAt?: number;
|
|
966
966
|
updatedAt?: number;
|
|
967
|
+
from_updatedAt?: number;
|
|
967
968
|
withProduct?: boolean;
|
|
968
969
|
hasSubCategory?: boolean;
|
|
969
970
|
isLeaf?: boolean;
|
|
@@ -1031,6 +1032,7 @@ export declare namespace Service {
|
|
|
1031
1032
|
name?: string[] | string;
|
|
1032
1033
|
local_name?: string[] | string;
|
|
1033
1034
|
disabled?: boolean;
|
|
1035
|
+
from_updatedAt?: number;
|
|
1034
1036
|
createdAt?: number;
|
|
1035
1037
|
updatedAt?: number;
|
|
1036
1038
|
[key: string]: any;
|
|
@@ -1104,6 +1106,7 @@ export declare namespace Service {
|
|
|
1104
1106
|
parent_id?: string[] | string;
|
|
1105
1107
|
disabled?: boolean;
|
|
1106
1108
|
position?: number | number[];
|
|
1109
|
+
from_updatedAt?: number;
|
|
1107
1110
|
createdAt?: number;
|
|
1108
1111
|
updatedAt?: number;
|
|
1109
1112
|
withProduct?: boolean;
|
|
@@ -1167,6 +1170,7 @@ export declare namespace Service {
|
|
|
1167
1170
|
name?: string[] | string;
|
|
1168
1171
|
local_name?: string[] | string;
|
|
1169
1172
|
disabled?: boolean;
|
|
1173
|
+
from_updatedAt?: number;
|
|
1170
1174
|
createdAt?: number;
|
|
1171
1175
|
updatedAt?: number;
|
|
1172
1176
|
};
|
|
@@ -1340,7 +1344,7 @@ export declare namespace Service {
|
|
|
1340
1344
|
}
|
|
1341
1345
|
}
|
|
1342
1346
|
namespace MeasureUnitFamily {
|
|
1343
|
-
interface MeasureUnitFamilySchema {
|
|
1347
|
+
export interface MeasureUnitFamilySchema {
|
|
1344
1348
|
_id: string;
|
|
1345
1349
|
name: string;
|
|
1346
1350
|
local_name?: string;
|
|
@@ -1354,7 +1358,7 @@ export declare namespace Service {
|
|
|
1354
1358
|
updatedAt: string;
|
|
1355
1359
|
__v: number;
|
|
1356
1360
|
}
|
|
1357
|
-
interface MeasureUnitFamilyBody {
|
|
1361
|
+
export interface MeasureUnitFamilyBody {
|
|
1358
1362
|
name?: string;
|
|
1359
1363
|
local_name?: string;
|
|
1360
1364
|
measureunits?: string[];
|
|
@@ -1364,31 +1368,37 @@ export declare namespace Service {
|
|
|
1364
1368
|
[key: string]: any;
|
|
1365
1369
|
};
|
|
1366
1370
|
}
|
|
1367
|
-
|
|
1371
|
+
type PopulatedKeys = "measureunits";
|
|
1372
|
+
type MeasureUnitFamilySchemaWithPopulatedKeys = MeasureUnitFamilySchema & {
|
|
1373
|
+
measureunits_populated?: string[] | MeasureUnit.MeasureUnitSchema[];
|
|
1374
|
+
};
|
|
1375
|
+
export namespace Find {
|
|
1368
1376
|
type Params = DefaultPaginationQueryParams & {
|
|
1369
1377
|
_id?: string[] | string;
|
|
1370
1378
|
search?: string;
|
|
1371
1379
|
name?: string[] | string;
|
|
1372
1380
|
local_name?: string[] | string;
|
|
1373
1381
|
disabled?: boolean;
|
|
1382
|
+
from_updatedAt?: number;
|
|
1374
1383
|
measureunits?: string[] | string;
|
|
1384
|
+
populatedKeys?: PopulatedKeys[];
|
|
1375
1385
|
[key: string]: any;
|
|
1376
1386
|
};
|
|
1377
1387
|
interface Result extends DefaultPaginationResult {
|
|
1378
|
-
data:
|
|
1388
|
+
data: MeasureUnitFamilySchemaWithPopulatedKeys[];
|
|
1379
1389
|
}
|
|
1380
1390
|
}
|
|
1381
|
-
namespace Get {
|
|
1391
|
+
export namespace Get {
|
|
1382
1392
|
type ID = string;
|
|
1383
1393
|
type Result = MeasureUnitFamilySchema;
|
|
1384
1394
|
}
|
|
1385
|
-
namespace Create {
|
|
1395
|
+
export namespace Create {
|
|
1386
1396
|
interface Body extends MeasureUnitFamilyBody {
|
|
1387
1397
|
name: string;
|
|
1388
1398
|
}
|
|
1389
1399
|
type Result = MeasureUnitFamilySchema;
|
|
1390
1400
|
}
|
|
1391
|
-
namespace Update {
|
|
1401
|
+
export namespace Update {
|
|
1392
1402
|
type ID = string;
|
|
1393
1403
|
interface Body extends MeasureUnitFamilyBody {
|
|
1394
1404
|
_id?: string;
|
|
@@ -1398,10 +1408,11 @@ export declare namespace Service {
|
|
|
1398
1408
|
}
|
|
1399
1409
|
type Result = MeasureUnitFamilySchema;
|
|
1400
1410
|
}
|
|
1401
|
-
namespace Remove {
|
|
1411
|
+
export namespace Remove {
|
|
1402
1412
|
type ID = string;
|
|
1403
1413
|
type Result = MeasureUnitFamilySchema;
|
|
1404
1414
|
}
|
|
1415
|
+
export {};
|
|
1405
1416
|
}
|
|
1406
1417
|
namespace Media {
|
|
1407
1418
|
type MediaType =
|
|
@@ -1682,6 +1693,7 @@ export declare namespace Service {
|
|
|
1682
1693
|
rep_can_add_calendar: boolean;
|
|
1683
1694
|
rep_can_edit_calendar: boolean;
|
|
1684
1695
|
rep_can_skip_photo_tag: boolean;
|
|
1696
|
+
rep_can_edit_others_calendar: boolean;
|
|
1685
1697
|
rep_can_edit_product_price?: boolean;
|
|
1686
1698
|
rep_must_add_client_with_location?: boolean;
|
|
1687
1699
|
rep_can_access_shared_history?: boolean;
|
|
@@ -1750,11 +1762,11 @@ export declare namespace Service {
|
|
|
1750
1762
|
pointsCap: number;
|
|
1751
1763
|
}
|
|
1752
1764
|
interface RepSettings {
|
|
1753
|
-
allowable_accuracy
|
|
1765
|
+
allowable_accuracy?: number;
|
|
1754
1766
|
is_item_status_per_visit_limited?: boolean;
|
|
1755
1767
|
item_status_per_visit_limit?: number;
|
|
1756
|
-
location_permission
|
|
1757
|
-
activities_report_scope
|
|
1768
|
+
location_permission?: "always_allow" | "while_using";
|
|
1769
|
+
activities_report_scope?: "self" | "team" | "company_namespace";
|
|
1758
1770
|
maximum_cash_outstanding_settlement_balance_to_start_day?: number;
|
|
1759
1771
|
maximum_check_outstanding_settlement_balance_to_start_day?: number;
|
|
1760
1772
|
maximum_total_outstanding_settlement_balance_to_start_day?: number;
|
|
@@ -1890,6 +1902,7 @@ export declare namespace Service {
|
|
|
1890
1902
|
disabled?: boolean;
|
|
1891
1903
|
createdAt?: number;
|
|
1892
1904
|
updatedAt?: number;
|
|
1905
|
+
from_updatedAt?: number;
|
|
1893
1906
|
username?: string | string[];
|
|
1894
1907
|
phone?: string | string[];
|
|
1895
1908
|
teams?: string | string[];
|
|
@@ -1907,6 +1920,7 @@ export declare namespace Service {
|
|
|
1907
1920
|
"permissions.rep_can_edit_client"?: boolean;
|
|
1908
1921
|
"permissions.rep_can_add_calendar"?: boolean;
|
|
1909
1922
|
"permissions.rep_can_edit_calendar"?: boolean;
|
|
1923
|
+
"permissions.rep_can_edit_others_calendar"?: boolean;
|
|
1910
1924
|
"permissions.rep_can_skip_photo_tag"?: boolean;
|
|
1911
1925
|
"permissions.rep_can_edit_product_price"?: boolean;
|
|
1912
1926
|
"permissions.rep_must_add_client_with_location"?: boolean;
|
|
@@ -1966,11 +1980,11 @@ export declare namespace Service {
|
|
|
1966
1980
|
"permissions.rep_to_create_invoice_variant_batch_from_assigned_warehouse"?: boolean;
|
|
1967
1981
|
"permissions.rep_to_create_sales_order_variant_batch_assigned_main_warehouse"?: boolean;
|
|
1968
1982
|
"permissions.rep_can_create_pull_from_client_assigned_to_approval_request"?: boolean;
|
|
1969
|
-
"settings.allowable_accuracy"
|
|
1983
|
+
"settings.allowable_accuracy"?: number;
|
|
1970
1984
|
"settings.is_item_status_per_visit_limited"?: boolean;
|
|
1971
1985
|
"settings.item_status_per_visit_limit"?: number;
|
|
1972
|
-
"settings.location_permission"
|
|
1973
|
-
"settings.activities_report_scope"
|
|
1986
|
+
"settings.location_permission"?: "always_allow" | "while_using";
|
|
1987
|
+
"settings.activities_report_scope"?:
|
|
1974
1988
|
| "self"
|
|
1975
1989
|
| "team"
|
|
1976
1990
|
| "company_namespace";
|
|
@@ -1999,7 +2013,7 @@ export declare namespace Service {
|
|
|
1999
2013
|
withStatus?: boolean;
|
|
2000
2014
|
};
|
|
2001
2015
|
interface Result extends DefaultPaginationResult {
|
|
2002
|
-
data: (
|
|
2016
|
+
data: (RepWithPopulatedKeysSchema & {
|
|
2003
2017
|
status?:
|
|
2004
2018
|
| "Inactive"
|
|
2005
2019
|
| "Ended a day"
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -967,6 +967,7 @@ export namespace Service {
|
|
|
967
967
|
position?: number[] | number;
|
|
968
968
|
createdAt?: number;
|
|
969
969
|
updatedAt?: number;
|
|
970
|
+
from_updatedAt?: number;
|
|
970
971
|
withProduct?: boolean;
|
|
971
972
|
hasSubCategory?: boolean;
|
|
972
973
|
isLeaf?: boolean;
|
|
@@ -1036,6 +1037,7 @@ export namespace Service {
|
|
|
1036
1037
|
name?: string[] | string;
|
|
1037
1038
|
local_name?: string[] | string;
|
|
1038
1039
|
disabled?: boolean;
|
|
1040
|
+
from_updatedAt?: number;
|
|
1039
1041
|
createdAt?: number;
|
|
1040
1042
|
updatedAt?: number;
|
|
1041
1043
|
[key: string]: any; // integration_meta.
|
|
@@ -1112,6 +1114,7 @@ export namespace Service {
|
|
|
1112
1114
|
parent_id?: string[] | string;
|
|
1113
1115
|
disabled?: boolean;
|
|
1114
1116
|
position?: number | number[];
|
|
1117
|
+
from_updatedAt?: number;
|
|
1115
1118
|
createdAt?: number;
|
|
1116
1119
|
updatedAt?: number;
|
|
1117
1120
|
withProduct?: boolean;
|
|
@@ -1180,6 +1183,7 @@ export namespace Service {
|
|
|
1180
1183
|
name?: string[] | string;
|
|
1181
1184
|
local_name?: string[] | string;
|
|
1182
1185
|
disabled?: boolean;
|
|
1186
|
+
from_updatedAt?: number;
|
|
1183
1187
|
createdAt?: number;
|
|
1184
1188
|
updatedAt?: number;
|
|
1185
1189
|
};
|
|
@@ -1381,7 +1385,11 @@ export namespace Service {
|
|
|
1381
1385
|
disabled?: boolean;
|
|
1382
1386
|
integration_meta?: { [key: string]: any };
|
|
1383
1387
|
}
|
|
1388
|
+
type PopulatedKeys = "measureunits";
|
|
1384
1389
|
|
|
1390
|
+
type MeasureUnitFamilySchemaWithPopulatedKeys = MeasureUnitFamilySchema & {
|
|
1391
|
+
measureunits_populated?: string[] | MeasureUnit.MeasureUnitSchema[];
|
|
1392
|
+
};
|
|
1385
1393
|
export namespace Find {
|
|
1386
1394
|
export type Params = DefaultPaginationQueryParams & {
|
|
1387
1395
|
_id?: string[] | string;
|
|
@@ -1389,11 +1397,13 @@ export namespace Service {
|
|
|
1389
1397
|
name?: string[] | string;
|
|
1390
1398
|
local_name?: string[] | string;
|
|
1391
1399
|
disabled?: boolean;
|
|
1400
|
+
from_updatedAt?: number;
|
|
1392
1401
|
measureunits?: string[] | string;
|
|
1402
|
+
populatedKeys?: PopulatedKeys[];
|
|
1393
1403
|
[key: string]: any; // integration_meta.
|
|
1394
1404
|
};
|
|
1395
1405
|
export interface Result extends DefaultPaginationResult {
|
|
1396
|
-
data:
|
|
1406
|
+
data: MeasureUnitFamilySchemaWithPopulatedKeys[];
|
|
1397
1407
|
}
|
|
1398
1408
|
}
|
|
1399
1409
|
|
|
@@ -1719,6 +1729,7 @@ export namespace Service {
|
|
|
1719
1729
|
rep_can_add_calendar: boolean;
|
|
1720
1730
|
rep_can_edit_calendar: boolean;
|
|
1721
1731
|
rep_can_skip_photo_tag: boolean;
|
|
1732
|
+
rep_can_edit_others_calendar: boolean;
|
|
1722
1733
|
rep_can_edit_product_price?: boolean;
|
|
1723
1734
|
rep_must_add_client_with_location?: boolean;
|
|
1724
1735
|
rep_can_access_shared_history?: boolean;
|
|
@@ -1787,11 +1798,11 @@ export namespace Service {
|
|
|
1787
1798
|
pointsCap: number;
|
|
1788
1799
|
}
|
|
1789
1800
|
interface RepSettings {
|
|
1790
|
-
allowable_accuracy
|
|
1801
|
+
allowable_accuracy?: number;
|
|
1791
1802
|
is_item_status_per_visit_limited?: boolean;
|
|
1792
1803
|
item_status_per_visit_limit?: number;
|
|
1793
|
-
location_permission
|
|
1794
|
-
activities_report_scope
|
|
1804
|
+
location_permission?: "always_allow" | "while_using";
|
|
1805
|
+
activities_report_scope?: "self" | "team" | "company_namespace";
|
|
1795
1806
|
maximum_cash_outstanding_settlement_balance_to_start_day?: number;
|
|
1796
1807
|
maximum_check_outstanding_settlement_balance_to_start_day?: number;
|
|
1797
1808
|
maximum_total_outstanding_settlement_balance_to_start_day?: number;
|
|
@@ -1922,6 +1933,7 @@ export namespace Service {
|
|
|
1922
1933
|
disabled?: boolean;
|
|
1923
1934
|
createdAt?: number;
|
|
1924
1935
|
updatedAt?: number;
|
|
1936
|
+
from_updatedAt?: number;
|
|
1925
1937
|
username?: string | string[];
|
|
1926
1938
|
phone?: string | string[];
|
|
1927
1939
|
teams?: string | string[];
|
|
@@ -1939,6 +1951,7 @@ export namespace Service {
|
|
|
1939
1951
|
"permissions.rep_can_edit_client"?: boolean;
|
|
1940
1952
|
"permissions.rep_can_add_calendar"?: boolean;
|
|
1941
1953
|
"permissions.rep_can_edit_calendar"?: boolean;
|
|
1954
|
+
"permissions.rep_can_edit_others_calendar"?: boolean;
|
|
1942
1955
|
"permissions.rep_can_skip_photo_tag"?: boolean;
|
|
1943
1956
|
"permissions.rep_can_edit_product_price"?: boolean;
|
|
1944
1957
|
"permissions.rep_must_add_client_with_location"?: boolean;
|
|
@@ -1998,11 +2011,11 @@ export namespace Service {
|
|
|
1998
2011
|
"permissions.rep_to_create_invoice_variant_batch_from_assigned_warehouse"?: boolean;
|
|
1999
2012
|
"permissions.rep_to_create_sales_order_variant_batch_assigned_main_warehouse"?: boolean;
|
|
2000
2013
|
"permissions.rep_can_create_pull_from_client_assigned_to_approval_request"?: boolean;
|
|
2001
|
-
"settings.allowable_accuracy"
|
|
2014
|
+
"settings.allowable_accuracy"?: number;
|
|
2002
2015
|
"settings.is_item_status_per_visit_limited"?: boolean;
|
|
2003
2016
|
"settings.item_status_per_visit_limit"?: number;
|
|
2004
|
-
"settings.location_permission"
|
|
2005
|
-
"settings.activities_report_scope"
|
|
2017
|
+
"settings.location_permission"?: "always_allow" | "while_using";
|
|
2018
|
+
"settings.activities_report_scope"?:
|
|
2006
2019
|
| "self"
|
|
2007
2020
|
| "team"
|
|
2008
2021
|
| "company_namespace";
|
|
@@ -2031,7 +2044,7 @@ export namespace Service {
|
|
|
2031
2044
|
withStatus?: boolean;
|
|
2032
2045
|
};
|
|
2033
2046
|
export interface Result extends DefaultPaginationResult {
|
|
2034
|
-
data: (
|
|
2047
|
+
data: (RepWithPopulatedKeysSchema & {
|
|
2035
2048
|
status?:
|
|
2036
2049
|
| "Inactive"
|
|
2037
2050
|
| "Ended a day"
|