repzo 1.0.69 → 1.0.71
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/index.d.ts +40 -0
- package/lib/index.js +82 -0
- package/lib/types/index.d.ts +405 -3
- package/package.json +1 -1
- package/src/index.ts +116 -0
- package/src/types/index.ts +413 -3
package/lib/index.d.ts
CHANGED
|
@@ -738,6 +738,46 @@ export default class Repzo {
|
|
|
738
738
|
id: Service.MslProduct.Remove.ID
|
|
739
739
|
) => Promise<Service.MslProduct.Remove.Result>;
|
|
740
740
|
};
|
|
741
|
+
mediaStorage: {
|
|
742
|
+
_path: string;
|
|
743
|
+
find: (
|
|
744
|
+
params?: Service.MediaStorage.Find.Params
|
|
745
|
+
) => Promise<Service.MediaStorage.Find.Result>;
|
|
746
|
+
get: (
|
|
747
|
+
id: Service.MediaStorage.Get.ID,
|
|
748
|
+
params?: Service.MediaStorage.Get.Params
|
|
749
|
+
) => Promise<Service.MediaStorage.Get.Result>;
|
|
750
|
+
create: (
|
|
751
|
+
body: Service.MediaStorage.Create.Body
|
|
752
|
+
) => Promise<Service.MediaStorage.Create.Result>;
|
|
753
|
+
update: (
|
|
754
|
+
id: Service.MediaStorage.Update.ID,
|
|
755
|
+
body: Service.MediaStorage.Update.Body
|
|
756
|
+
) => Promise<Service.MediaStorage.Update.Result>;
|
|
757
|
+
remove: (
|
|
758
|
+
id: Service.MediaStorage.Remove.ID
|
|
759
|
+
) => Promise<Service.MediaStorage.Remove.Result>;
|
|
760
|
+
};
|
|
761
|
+
storecheckTemplate: {
|
|
762
|
+
_path: string;
|
|
763
|
+
find: (
|
|
764
|
+
params?: Service.StorecheckTemplate.Find.Params
|
|
765
|
+
) => Promise<Service.StorecheckTemplate.Find.Result>;
|
|
766
|
+
get: (
|
|
767
|
+
id: Service.StorecheckTemplate.Get.ID,
|
|
768
|
+
params?: Service.StorecheckTemplate.Get.Params
|
|
769
|
+
) => Promise<Service.StorecheckTemplate.Get.Result>;
|
|
770
|
+
create: (
|
|
771
|
+
body: Service.StorecheckTemplate.Create.Body
|
|
772
|
+
) => Promise<Service.StorecheckTemplate.Create.Result>;
|
|
773
|
+
update: (
|
|
774
|
+
id: Service.StorecheckTemplate.Update.ID,
|
|
775
|
+
body: Service.StorecheckTemplate.Update.Body
|
|
776
|
+
) => Promise<Service.StorecheckTemplate.Update.Result>;
|
|
777
|
+
remove: (
|
|
778
|
+
id: Service.StorecheckTemplate.Remove.ID
|
|
779
|
+
) => Promise<Service.StorecheckTemplate.Remove.Result>;
|
|
780
|
+
};
|
|
741
781
|
adjustInventory: {
|
|
742
782
|
_path: string;
|
|
743
783
|
find: (
|
package/lib/index.js
CHANGED
|
@@ -1502,6 +1502,88 @@ export default class Repzo {
|
|
|
1502
1502
|
return res;
|
|
1503
1503
|
},
|
|
1504
1504
|
};
|
|
1505
|
+
this.mediaStorage = {
|
|
1506
|
+
_path: "/media-storage",
|
|
1507
|
+
find: async (params) => {
|
|
1508
|
+
let res = await this._fetch(
|
|
1509
|
+
this.svAPIEndpoint,
|
|
1510
|
+
this.mediaStorage._path,
|
|
1511
|
+
params
|
|
1512
|
+
);
|
|
1513
|
+
return res;
|
|
1514
|
+
},
|
|
1515
|
+
get: async (id, params) => {
|
|
1516
|
+
return await this._fetch(
|
|
1517
|
+
this.svAPIEndpoint,
|
|
1518
|
+
this.mediaStorage._path + `/${id}`,
|
|
1519
|
+
params
|
|
1520
|
+
);
|
|
1521
|
+
},
|
|
1522
|
+
create: async (body) => {
|
|
1523
|
+
let res = await this._create(
|
|
1524
|
+
this.svAPIEndpoint,
|
|
1525
|
+
this.mediaStorage._path,
|
|
1526
|
+
body
|
|
1527
|
+
);
|
|
1528
|
+
return res;
|
|
1529
|
+
},
|
|
1530
|
+
update: async (id, body) => {
|
|
1531
|
+
let res = await this._update(
|
|
1532
|
+
this.svAPIEndpoint,
|
|
1533
|
+
this.mediaStorage._path + `/${id}`,
|
|
1534
|
+
body
|
|
1535
|
+
);
|
|
1536
|
+
return res;
|
|
1537
|
+
},
|
|
1538
|
+
remove: async (id) => {
|
|
1539
|
+
let res = await this._delete(
|
|
1540
|
+
this.svAPIEndpoint,
|
|
1541
|
+
this.mediaStorage._path + `/${id}`
|
|
1542
|
+
);
|
|
1543
|
+
return res;
|
|
1544
|
+
},
|
|
1545
|
+
};
|
|
1546
|
+
this.storecheckTemplate = {
|
|
1547
|
+
_path: "/storecheck-template",
|
|
1548
|
+
find: async (params) => {
|
|
1549
|
+
let res = await this._fetch(
|
|
1550
|
+
this.svAPIEndpoint,
|
|
1551
|
+
this.storecheckTemplate._path,
|
|
1552
|
+
params
|
|
1553
|
+
);
|
|
1554
|
+
return res;
|
|
1555
|
+
},
|
|
1556
|
+
get: async (id, params) => {
|
|
1557
|
+
return await this._fetch(
|
|
1558
|
+
this.svAPIEndpoint,
|
|
1559
|
+
this.storecheckTemplate._path + `/${id}`,
|
|
1560
|
+
params
|
|
1561
|
+
);
|
|
1562
|
+
},
|
|
1563
|
+
create: async (body) => {
|
|
1564
|
+
let res = await this._create(
|
|
1565
|
+
this.svAPIEndpoint,
|
|
1566
|
+
this.storecheckTemplate._path,
|
|
1567
|
+
body
|
|
1568
|
+
);
|
|
1569
|
+
return res;
|
|
1570
|
+
},
|
|
1571
|
+
update: async (id, body) => {
|
|
1572
|
+
let res = await this._update(
|
|
1573
|
+
this.svAPIEndpoint,
|
|
1574
|
+
this.storecheckTemplate._path + `/${id}`,
|
|
1575
|
+
body
|
|
1576
|
+
);
|
|
1577
|
+
return res;
|
|
1578
|
+
},
|
|
1579
|
+
remove: async (id) => {
|
|
1580
|
+
let res = await this._delete(
|
|
1581
|
+
this.svAPIEndpoint,
|
|
1582
|
+
this.storecheckTemplate._path + `/${id}`
|
|
1583
|
+
);
|
|
1584
|
+
return res;
|
|
1585
|
+
},
|
|
1586
|
+
};
|
|
1505
1587
|
this.adjustInventory = {
|
|
1506
1588
|
_path: "/adjust-inventory",
|
|
1507
1589
|
find: async (params) => {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -46,6 +46,14 @@ interface SerialNumber {
|
|
|
46
46
|
formatted: string;
|
|
47
47
|
count: number;
|
|
48
48
|
}
|
|
49
|
+
interface PlanList {
|
|
50
|
+
client?: string;
|
|
51
|
+
note?: string;
|
|
52
|
+
route?: string;
|
|
53
|
+
calendar?: string;
|
|
54
|
+
route_name?: string;
|
|
55
|
+
isCompleted?: boolean;
|
|
56
|
+
}
|
|
49
57
|
interface PaymentData {
|
|
50
58
|
payment_serial_number?: SerialNumber;
|
|
51
59
|
payment_id?: string;
|
|
@@ -1643,6 +1651,397 @@ export declare namespace Service {
|
|
|
1643
1651
|
}
|
|
1644
1652
|
export {};
|
|
1645
1653
|
}
|
|
1654
|
+
namespace MediaStorage {
|
|
1655
|
+
type MediaType =
|
|
1656
|
+
| "html"
|
|
1657
|
+
| "csv"
|
|
1658
|
+
| "json"
|
|
1659
|
+
| "image"
|
|
1660
|
+
| "pdf"
|
|
1661
|
+
| "ppt"
|
|
1662
|
+
| "pptx"
|
|
1663
|
+
| "xls"
|
|
1664
|
+
| "xlsx"
|
|
1665
|
+
| "doc"
|
|
1666
|
+
| "docx"
|
|
1667
|
+
| "images"
|
|
1668
|
+
| "zip";
|
|
1669
|
+
type ParentDocumentType =
|
|
1670
|
+
| "clients"
|
|
1671
|
+
| "asset"
|
|
1672
|
+
| "assetUnit"
|
|
1673
|
+
| "workorder"
|
|
1674
|
+
| "clientLocation"
|
|
1675
|
+
| "clientContact"
|
|
1676
|
+
| "commentsThread"
|
|
1677
|
+
| "workorderRequest"
|
|
1678
|
+
| "workorderPortal"
|
|
1679
|
+
| "invoice"
|
|
1680
|
+
| "products"
|
|
1681
|
+
| "productvariations"
|
|
1682
|
+
| "representatives"
|
|
1683
|
+
| "productcategories"
|
|
1684
|
+
| "productSubCategory"
|
|
1685
|
+
| "speciality"
|
|
1686
|
+
| "line"
|
|
1687
|
+
| "banner"
|
|
1688
|
+
| "intgAvailableApps"
|
|
1689
|
+
| "availability_msl"
|
|
1690
|
+
| "reminders"
|
|
1691
|
+
| "audits"
|
|
1692
|
+
| "availability"
|
|
1693
|
+
| "photos"
|
|
1694
|
+
| "planogram"
|
|
1695
|
+
| "tasks"
|
|
1696
|
+
| "checks"
|
|
1697
|
+
| "notificationsCenter"
|
|
1698
|
+
| "admins"
|
|
1699
|
+
| "settings"
|
|
1700
|
+
| "printWorkorderPortalLink"
|
|
1701
|
+
| "bulkExport"
|
|
1702
|
+
| "generateRule"
|
|
1703
|
+
| "scheduleEmail"
|
|
1704
|
+
| "custom-list-item"
|
|
1705
|
+
| "days"
|
|
1706
|
+
| "bulkImport"
|
|
1707
|
+
| "sv.activitiesstorechecks"
|
|
1708
|
+
| "retailExecutionPreset"
|
|
1709
|
+
| "quickConvertToPdf"
|
|
1710
|
+
| "proforma"
|
|
1711
|
+
| "approvalRequest"
|
|
1712
|
+
| "activityFormV2Result"
|
|
1713
|
+
| "formV2"
|
|
1714
|
+
| "payments"
|
|
1715
|
+
| "ocrInvoiceJob"
|
|
1716
|
+
| "contract"
|
|
1717
|
+
| "contractInstallment"
|
|
1718
|
+
| "form"
|
|
1719
|
+
| "paymentMethod";
|
|
1720
|
+
type SourceEnums =
|
|
1721
|
+
| "product"
|
|
1722
|
+
| "variant"
|
|
1723
|
+
| "product-category"
|
|
1724
|
+
| "product-sub-category"
|
|
1725
|
+
| "product-brand"
|
|
1726
|
+
| "product-group";
|
|
1727
|
+
export interface MediaStorageSchema {
|
|
1728
|
+
_id: string;
|
|
1729
|
+
ContentLength?: number;
|
|
1730
|
+
ETag?: string;
|
|
1731
|
+
ContentType?: string;
|
|
1732
|
+
media_type?: MediaType;
|
|
1733
|
+
Metadata?: any;
|
|
1734
|
+
key?: string;
|
|
1735
|
+
pathSuffix?: string;
|
|
1736
|
+
pathPrefix?: string;
|
|
1737
|
+
file_name: string;
|
|
1738
|
+
parentDocumentType: ParentDocumentType;
|
|
1739
|
+
parentDocumentId?: string;
|
|
1740
|
+
parentDocumentKey?: string;
|
|
1741
|
+
parentDocumentKeyisArray?: boolean;
|
|
1742
|
+
mime_type?: string;
|
|
1743
|
+
publicUrl?: string;
|
|
1744
|
+
media_id: string;
|
|
1745
|
+
baseUrl?: string;
|
|
1746
|
+
type_name: "FileAttachment" | "ImageAttachment";
|
|
1747
|
+
width?: number;
|
|
1748
|
+
height?: number;
|
|
1749
|
+
thumbnails: string[];
|
|
1750
|
+
extension: string;
|
|
1751
|
+
bucket_name?: string;
|
|
1752
|
+
region?: string;
|
|
1753
|
+
retail_execution_source_type?: SourceEnums;
|
|
1754
|
+
retail_execution_source_id?: string;
|
|
1755
|
+
retail_execution_source_name?: string;
|
|
1756
|
+
time?: number;
|
|
1757
|
+
company_namespace: string[];
|
|
1758
|
+
createdAt: string;
|
|
1759
|
+
updatedAt: string;
|
|
1760
|
+
}
|
|
1761
|
+
export interface CreateBody {
|
|
1762
|
+
ContentLength?: number;
|
|
1763
|
+
ETag?: string;
|
|
1764
|
+
ContentType?: string;
|
|
1765
|
+
media_type?: MediaType;
|
|
1766
|
+
Metadata?: any;
|
|
1767
|
+
key?: string;
|
|
1768
|
+
pathSuffix?: string;
|
|
1769
|
+
pathPrefix?: string;
|
|
1770
|
+
file_name: string;
|
|
1771
|
+
parentDocumentType: ParentDocumentType;
|
|
1772
|
+
parentDocumentId?: string;
|
|
1773
|
+
parentDocumentKey?: string;
|
|
1774
|
+
parentDocumentKeyisArray?: boolean;
|
|
1775
|
+
mime_type?: string;
|
|
1776
|
+
publicUrl?: string;
|
|
1777
|
+
media_id: string;
|
|
1778
|
+
baseUrl?: string;
|
|
1779
|
+
type_name: "FileAttachment" | "ImageAttachment";
|
|
1780
|
+
width?: number;
|
|
1781
|
+
height?: number;
|
|
1782
|
+
thumbnails: string[];
|
|
1783
|
+
extension: string;
|
|
1784
|
+
bucket_name?: string;
|
|
1785
|
+
region?: string;
|
|
1786
|
+
retail_execution_source_type?: SourceEnums;
|
|
1787
|
+
retail_execution_source_id?: string;
|
|
1788
|
+
retail_execution_source_name?: string;
|
|
1789
|
+
time?: number;
|
|
1790
|
+
company_namespace: string[];
|
|
1791
|
+
}
|
|
1792
|
+
export interface UpdateBody {
|
|
1793
|
+
_id?: string;
|
|
1794
|
+
ContentLength?: number;
|
|
1795
|
+
ETag?: string;
|
|
1796
|
+
ContentType?: string;
|
|
1797
|
+
media_type?: MediaType;
|
|
1798
|
+
Metadata?: any;
|
|
1799
|
+
key?: string;
|
|
1800
|
+
pathSuffix?: string;
|
|
1801
|
+
pathPrefix?: string;
|
|
1802
|
+
file_name?: string;
|
|
1803
|
+
parentDocumentType?: ParentDocumentType;
|
|
1804
|
+
parentDocumentId?: string;
|
|
1805
|
+
parentDocumentKey?: string;
|
|
1806
|
+
parentDocumentKeyisArray?: boolean;
|
|
1807
|
+
mime_type?: string;
|
|
1808
|
+
publicUrl?: string;
|
|
1809
|
+
media_id: string;
|
|
1810
|
+
baseUrl?: string;
|
|
1811
|
+
type_name?: "FileAttachment" | "ImageAttachment";
|
|
1812
|
+
width?: number;
|
|
1813
|
+
height?: number;
|
|
1814
|
+
thumbnails?: string[];
|
|
1815
|
+
extension?: string;
|
|
1816
|
+
bucket_name?: string;
|
|
1817
|
+
region?: string;
|
|
1818
|
+
retail_execution_source_type?: SourceEnums;
|
|
1819
|
+
retail_execution_source_id?: string;
|
|
1820
|
+
retail_execution_source_name?: string;
|
|
1821
|
+
time?: number;
|
|
1822
|
+
company_namespace?: string[];
|
|
1823
|
+
}
|
|
1824
|
+
export namespace Find {
|
|
1825
|
+
type Params = DefaultPaginationQueryParams & {
|
|
1826
|
+
_id?: string[] | string;
|
|
1827
|
+
key?: string;
|
|
1828
|
+
from_updatedAt?: number;
|
|
1829
|
+
};
|
|
1830
|
+
interface Result extends DefaultPaginationResult {
|
|
1831
|
+
data: MediaStorageSchema[];
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
export namespace Get {
|
|
1835
|
+
type ID = string;
|
|
1836
|
+
interface Params {}
|
|
1837
|
+
type Result = MediaStorageSchema;
|
|
1838
|
+
}
|
|
1839
|
+
export namespace Create {
|
|
1840
|
+
type Body = CreateBody;
|
|
1841
|
+
type Result = MediaStorageSchema;
|
|
1842
|
+
}
|
|
1843
|
+
export namespace Update {
|
|
1844
|
+
type ID = string;
|
|
1845
|
+
type Body = UpdateBody;
|
|
1846
|
+
type Result = MediaStorageSchema;
|
|
1847
|
+
}
|
|
1848
|
+
export namespace Remove {
|
|
1849
|
+
type ID = string;
|
|
1850
|
+
type Result = MediaStorageSchema;
|
|
1851
|
+
}
|
|
1852
|
+
export {};
|
|
1853
|
+
}
|
|
1854
|
+
namespace StorecheckTemplate {
|
|
1855
|
+
type SourceType =
|
|
1856
|
+
| "product"
|
|
1857
|
+
| "variant"
|
|
1858
|
+
| "product-category"
|
|
1859
|
+
| "product-sub-category"
|
|
1860
|
+
| "product-brand"
|
|
1861
|
+
| "product-group";
|
|
1862
|
+
type FieldType =
|
|
1863
|
+
| "Text"
|
|
1864
|
+
| "String"
|
|
1865
|
+
| "Date"
|
|
1866
|
+
| "Image"
|
|
1867
|
+
| "Boolean"
|
|
1868
|
+
| "Number"
|
|
1869
|
+
| "List"
|
|
1870
|
+
| "Separator"
|
|
1871
|
+
| "Heading"
|
|
1872
|
+
| "Media";
|
|
1873
|
+
type DataType =
|
|
1874
|
+
| "Separator"
|
|
1875
|
+
| "timestamp"
|
|
1876
|
+
| "String"
|
|
1877
|
+
| "Number"
|
|
1878
|
+
| "Boolean"
|
|
1879
|
+
| "Date"
|
|
1880
|
+
| "Image"
|
|
1881
|
+
| "coords"
|
|
1882
|
+
| "Text"
|
|
1883
|
+
| "Media"
|
|
1884
|
+
| "Heading"
|
|
1885
|
+
| "List"
|
|
1886
|
+
| "Phone"
|
|
1887
|
+
| "Email"
|
|
1888
|
+
| "Signature"
|
|
1889
|
+
| "DateTime"
|
|
1890
|
+
| "YesNo"
|
|
1891
|
+
| "ProductBarcodeScan"
|
|
1892
|
+
| "BarcodeScan"
|
|
1893
|
+
| "GeoPoint";
|
|
1894
|
+
interface UsedField {
|
|
1895
|
+
code: string;
|
|
1896
|
+
key: string;
|
|
1897
|
+
data_type: DataType;
|
|
1898
|
+
field_type: "template_field" | "source_attribute" | "activity_attribute";
|
|
1899
|
+
label: string;
|
|
1900
|
+
isArray?: boolean;
|
|
1901
|
+
formula_key: string;
|
|
1902
|
+
field_id?: string;
|
|
1903
|
+
example_value: DataType;
|
|
1904
|
+
manipulator_function?: string;
|
|
1905
|
+
lookup?: {
|
|
1906
|
+
from?: string;
|
|
1907
|
+
localField?: string;
|
|
1908
|
+
foreignField?: string;
|
|
1909
|
+
as?: string;
|
|
1910
|
+
select?: string;
|
|
1911
|
+
unwind?: boolean;
|
|
1912
|
+
filter?: {
|
|
1913
|
+
input?: string;
|
|
1914
|
+
as: string;
|
|
1915
|
+
cond: any;
|
|
1916
|
+
};
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
interface Field {
|
|
1920
|
+
_id?: string;
|
|
1921
|
+
name: string;
|
|
1922
|
+
local_name?: string;
|
|
1923
|
+
description?: string;
|
|
1924
|
+
local_description?: string;
|
|
1925
|
+
type: FieldType;
|
|
1926
|
+
isArray?: boolean;
|
|
1927
|
+
isRequired?: boolean;
|
|
1928
|
+
readOnly?: boolean;
|
|
1929
|
+
presets?: any[];
|
|
1930
|
+
previous_entry?: any;
|
|
1931
|
+
show_previous_result?: boolean;
|
|
1932
|
+
hidden?: boolean;
|
|
1933
|
+
custom_list?: string;
|
|
1934
|
+
custom_list_element?: string;
|
|
1935
|
+
parent_field?: string;
|
|
1936
|
+
invisible?: boolean;
|
|
1937
|
+
display_on_home_screen?: boolean;
|
|
1938
|
+
custom_list_end_point?: {
|
|
1939
|
+
[key: string]: any;
|
|
1940
|
+
};
|
|
1941
|
+
visibility?: {
|
|
1942
|
+
operator: "and" | "or";
|
|
1943
|
+
conditions: {
|
|
1944
|
+
field_id: string;
|
|
1945
|
+
type: "Boolean" | "List";
|
|
1946
|
+
custom_list?: string;
|
|
1947
|
+
operator: "lte" | "lt" | "gte" | "gt" | "eq" | "ne" | "in" | "nin";
|
|
1948
|
+
value: any[];
|
|
1949
|
+
}[];
|
|
1950
|
+
};
|
|
1951
|
+
barcode_scan?: boolean;
|
|
1952
|
+
is_calculated_field?: boolean;
|
|
1953
|
+
formula?: string;
|
|
1954
|
+
formula_key: string;
|
|
1955
|
+
used_fields?: UsedField[];
|
|
1956
|
+
}
|
|
1957
|
+
interface Entry {
|
|
1958
|
+
_id?: string;
|
|
1959
|
+
repeatable: boolean;
|
|
1960
|
+
grouping: "product-category" | "product-brand" | "product-group";
|
|
1961
|
+
require_all_source_elements: boolean;
|
|
1962
|
+
require_group_source_elements: boolean;
|
|
1963
|
+
source: SourceType;
|
|
1964
|
+
filters: string[];
|
|
1965
|
+
fields: Field[];
|
|
1966
|
+
}
|
|
1967
|
+
export interface StorecheckTemplateSchema {
|
|
1968
|
+
_id: string;
|
|
1969
|
+
name: string;
|
|
1970
|
+
local_name?: string;
|
|
1971
|
+
description?: string;
|
|
1972
|
+
local_description?: string;
|
|
1973
|
+
disabled: boolean;
|
|
1974
|
+
entries: Entry[];
|
|
1975
|
+
company_namespace: string[];
|
|
1976
|
+
can_edit_types?: boolean;
|
|
1977
|
+
copied_from?: string;
|
|
1978
|
+
client_specific_sources: boolean;
|
|
1979
|
+
previous_result_activated: boolean;
|
|
1980
|
+
presets_activated: boolean;
|
|
1981
|
+
createdAt?: string;
|
|
1982
|
+
updatedAt?: string;
|
|
1983
|
+
__v?: number;
|
|
1984
|
+
}
|
|
1985
|
+
export interface CreateBody {
|
|
1986
|
+
name: string;
|
|
1987
|
+
local_name?: string;
|
|
1988
|
+
description?: string;
|
|
1989
|
+
local_description?: string;
|
|
1990
|
+
disabled: boolean;
|
|
1991
|
+
company_namespace: string[];
|
|
1992
|
+
can_edit_types?: boolean;
|
|
1993
|
+
copied_from?: string;
|
|
1994
|
+
client_specific_sources: boolean;
|
|
1995
|
+
previous_result_activated: boolean;
|
|
1996
|
+
presets_activated: boolean;
|
|
1997
|
+
}
|
|
1998
|
+
export interface UpdateBody {
|
|
1999
|
+
_id?: string;
|
|
2000
|
+
name?: string;
|
|
2001
|
+
local_name?: string;
|
|
2002
|
+
description?: string;
|
|
2003
|
+
local_description?: string;
|
|
2004
|
+
disabled?: boolean;
|
|
2005
|
+
company_namespace?: string[];
|
|
2006
|
+
can_edit_types?: boolean;
|
|
2007
|
+
copied_from?: string;
|
|
2008
|
+
client_specific_sources?: boolean;
|
|
2009
|
+
previous_result_activated?: boolean;
|
|
2010
|
+
presets_activated?: boolean;
|
|
2011
|
+
}
|
|
2012
|
+
export namespace Find {
|
|
2013
|
+
type Params = DefaultPaginationQueryParams & {
|
|
2014
|
+
_id?: string[] | string;
|
|
2015
|
+
key?: string;
|
|
2016
|
+
name?: string;
|
|
2017
|
+
local_name?: string;
|
|
2018
|
+
disabled?: boolean;
|
|
2019
|
+
from_updatedAt?: number;
|
|
2020
|
+
};
|
|
2021
|
+
interface Result extends DefaultPaginationResult {
|
|
2022
|
+
data: StorecheckTemplateSchema[];
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
export namespace Get {
|
|
2026
|
+
type ID = string;
|
|
2027
|
+
interface Params {}
|
|
2028
|
+
type Result = StorecheckTemplateSchema;
|
|
2029
|
+
}
|
|
2030
|
+
export namespace Create {
|
|
2031
|
+
type Body = CreateBody;
|
|
2032
|
+
type Result = StorecheckTemplateSchema;
|
|
2033
|
+
}
|
|
2034
|
+
export namespace Update {
|
|
2035
|
+
type ID = string;
|
|
2036
|
+
type Body = UpdateBody;
|
|
2037
|
+
type Result = StorecheckTemplateSchema;
|
|
2038
|
+
}
|
|
2039
|
+
export namespace Remove {
|
|
2040
|
+
type ID = string;
|
|
2041
|
+
type Result = StorecheckTemplateSchema;
|
|
2042
|
+
}
|
|
2043
|
+
export {};
|
|
2044
|
+
}
|
|
1646
2045
|
namespace Msl {
|
|
1647
2046
|
interface MslSchema {
|
|
1648
2047
|
_id: string;
|
|
@@ -5612,7 +6011,8 @@ export declare namespace Service {
|
|
|
5612
6011
|
startTime: string[];
|
|
5613
6012
|
endTime: string[];
|
|
5614
6013
|
plan: {
|
|
5615
|
-
|
|
6014
|
+
day?: string;
|
|
6015
|
+
list?: PlanList[];
|
|
5616
6016
|
};
|
|
5617
6017
|
groupedPlan?: {
|
|
5618
6018
|
[key: string]: any;
|
|
@@ -5662,7 +6062,8 @@ export declare namespace Service {
|
|
|
5662
6062
|
startTime: string[];
|
|
5663
6063
|
endTime: string[];
|
|
5664
6064
|
plan: {
|
|
5665
|
-
|
|
6065
|
+
day?: string;
|
|
6066
|
+
list?: PlanList[];
|
|
5666
6067
|
};
|
|
5667
6068
|
groupedPlan?: {
|
|
5668
6069
|
[key: string]: any;
|
|
@@ -5709,7 +6110,8 @@ export declare namespace Service {
|
|
|
5709
6110
|
startTime?: string[];
|
|
5710
6111
|
endTime?: string[];
|
|
5711
6112
|
plan?: {
|
|
5712
|
-
|
|
6113
|
+
day?: string;
|
|
6114
|
+
list?: PlanList[];
|
|
5713
6115
|
};
|
|
5714
6116
|
groupedPlan?: {
|
|
5715
6117
|
[key: string]: any;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -2152,6 +2152,122 @@ export default class Repzo {
|
|
|
2152
2152
|
},
|
|
2153
2153
|
};
|
|
2154
2154
|
|
|
2155
|
+
mediaStorage = {
|
|
2156
|
+
_path: "/media-storage",
|
|
2157
|
+
find: async (
|
|
2158
|
+
params?: Service.MediaStorage.Find.Params
|
|
2159
|
+
): Promise<Service.MediaStorage.Find.Result> => {
|
|
2160
|
+
let res: Service.MediaStorage.Find.Result = await this._fetch(
|
|
2161
|
+
this.svAPIEndpoint,
|
|
2162
|
+
this.mediaStorage._path,
|
|
2163
|
+
params
|
|
2164
|
+
);
|
|
2165
|
+
return res;
|
|
2166
|
+
},
|
|
2167
|
+
|
|
2168
|
+
get: async (
|
|
2169
|
+
id: Service.MediaStorage.Get.ID,
|
|
2170
|
+
params?: Service.MediaStorage.Get.Params
|
|
2171
|
+
): Promise<Service.MediaStorage.Get.Result> => {
|
|
2172
|
+
return await this._fetch(
|
|
2173
|
+
this.svAPIEndpoint,
|
|
2174
|
+
this.mediaStorage._path + `/${id}`,
|
|
2175
|
+
params
|
|
2176
|
+
);
|
|
2177
|
+
},
|
|
2178
|
+
|
|
2179
|
+
create: async (
|
|
2180
|
+
body: Service.MediaStorage.Create.Body
|
|
2181
|
+
): Promise<Service.MediaStorage.Create.Result> => {
|
|
2182
|
+
let res = await this._create(
|
|
2183
|
+
this.svAPIEndpoint,
|
|
2184
|
+
this.mediaStorage._path,
|
|
2185
|
+
body
|
|
2186
|
+
);
|
|
2187
|
+
return res;
|
|
2188
|
+
},
|
|
2189
|
+
|
|
2190
|
+
update: async (
|
|
2191
|
+
id: Service.MediaStorage.Update.ID,
|
|
2192
|
+
body: Service.MediaStorage.Update.Body
|
|
2193
|
+
): Promise<Service.MediaStorage.Update.Result> => {
|
|
2194
|
+
let res: Service.MediaStorage.Update.Result = await this._update(
|
|
2195
|
+
this.svAPIEndpoint,
|
|
2196
|
+
this.mediaStorage._path + `/${id}`,
|
|
2197
|
+
body
|
|
2198
|
+
);
|
|
2199
|
+
return res;
|
|
2200
|
+
},
|
|
2201
|
+
|
|
2202
|
+
remove: async (
|
|
2203
|
+
id: Service.MediaStorage.Remove.ID
|
|
2204
|
+
): Promise<Service.MediaStorage.Remove.Result> => {
|
|
2205
|
+
let res: Service.MediaStorage.Remove.Result = await this._delete(
|
|
2206
|
+
this.svAPIEndpoint,
|
|
2207
|
+
this.mediaStorage._path + `/${id}`
|
|
2208
|
+
);
|
|
2209
|
+
return res;
|
|
2210
|
+
},
|
|
2211
|
+
};
|
|
2212
|
+
|
|
2213
|
+
storecheckTemplate = {
|
|
2214
|
+
_path: "/storecheck-template",
|
|
2215
|
+
find: async (
|
|
2216
|
+
params?: Service.StorecheckTemplate.Find.Params
|
|
2217
|
+
): Promise<Service.StorecheckTemplate.Find.Result> => {
|
|
2218
|
+
let res: Service.StorecheckTemplate.Find.Result = await this._fetch(
|
|
2219
|
+
this.svAPIEndpoint,
|
|
2220
|
+
this.storecheckTemplate._path,
|
|
2221
|
+
params
|
|
2222
|
+
);
|
|
2223
|
+
return res;
|
|
2224
|
+
},
|
|
2225
|
+
|
|
2226
|
+
get: async (
|
|
2227
|
+
id: Service.StorecheckTemplate.Get.ID,
|
|
2228
|
+
params?: Service.StorecheckTemplate.Get.Params
|
|
2229
|
+
): Promise<Service.StorecheckTemplate.Get.Result> => {
|
|
2230
|
+
return await this._fetch(
|
|
2231
|
+
this.svAPIEndpoint,
|
|
2232
|
+
this.storecheckTemplate._path + `/${id}`,
|
|
2233
|
+
params
|
|
2234
|
+
);
|
|
2235
|
+
},
|
|
2236
|
+
|
|
2237
|
+
create: async (
|
|
2238
|
+
body: Service.StorecheckTemplate.Create.Body
|
|
2239
|
+
): Promise<Service.StorecheckTemplate.Create.Result> => {
|
|
2240
|
+
let res = await this._create(
|
|
2241
|
+
this.svAPIEndpoint,
|
|
2242
|
+
this.storecheckTemplate._path,
|
|
2243
|
+
body
|
|
2244
|
+
);
|
|
2245
|
+
return res;
|
|
2246
|
+
},
|
|
2247
|
+
|
|
2248
|
+
update: async (
|
|
2249
|
+
id: Service.StorecheckTemplate.Update.ID,
|
|
2250
|
+
body: Service.StorecheckTemplate.Update.Body
|
|
2251
|
+
): Promise<Service.StorecheckTemplate.Update.Result> => {
|
|
2252
|
+
let res: Service.StorecheckTemplate.Update.Result = await this._update(
|
|
2253
|
+
this.svAPIEndpoint,
|
|
2254
|
+
this.storecheckTemplate._path + `/${id}`,
|
|
2255
|
+
body
|
|
2256
|
+
);
|
|
2257
|
+
return res;
|
|
2258
|
+
},
|
|
2259
|
+
|
|
2260
|
+
remove: async (
|
|
2261
|
+
id: Service.StorecheckTemplate.Remove.ID
|
|
2262
|
+
): Promise<Service.StorecheckTemplate.Remove.Result> => {
|
|
2263
|
+
let res: Service.StorecheckTemplate.Remove.Result = await this._delete(
|
|
2264
|
+
this.svAPIEndpoint,
|
|
2265
|
+
this.storecheckTemplate._path + `/${id}`
|
|
2266
|
+
);
|
|
2267
|
+
return res;
|
|
2268
|
+
},
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2155
2271
|
adjustInventory = {
|
|
2156
2272
|
_path: "/adjust-inventory",
|
|
2157
2273
|
find: async (
|
package/src/types/index.ts
CHANGED
|
@@ -47,6 +47,15 @@ interface SerialNumber {
|
|
|
47
47
|
formatted: string;
|
|
48
48
|
count: number;
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
interface PlanList {
|
|
52
|
+
client?: string;
|
|
53
|
+
note?: string;
|
|
54
|
+
route?: string;
|
|
55
|
+
calendar?: string;
|
|
56
|
+
route_name?: string;
|
|
57
|
+
isCompleted?: boolean;
|
|
58
|
+
}
|
|
50
59
|
interface PaymentData {
|
|
51
60
|
payment_serial_number?: SerialNumber;
|
|
52
61
|
payment_id?: string;
|
|
@@ -1673,6 +1682,398 @@ export namespace Service {
|
|
|
1673
1682
|
}
|
|
1674
1683
|
}
|
|
1675
1684
|
|
|
1685
|
+
export namespace MediaStorage {
|
|
1686
|
+
type MediaType =
|
|
1687
|
+
| "html"
|
|
1688
|
+
| "csv"
|
|
1689
|
+
| "json"
|
|
1690
|
+
| "image"
|
|
1691
|
+
| "pdf"
|
|
1692
|
+
| "ppt"
|
|
1693
|
+
| "pptx"
|
|
1694
|
+
| "xls"
|
|
1695
|
+
| "xlsx"
|
|
1696
|
+
| "doc"
|
|
1697
|
+
| "docx"
|
|
1698
|
+
| "images"
|
|
1699
|
+
| "zip";
|
|
1700
|
+
|
|
1701
|
+
type ParentDocumentType =
|
|
1702
|
+
| "clients"
|
|
1703
|
+
| "asset"
|
|
1704
|
+
| "assetUnit"
|
|
1705
|
+
| "workorder"
|
|
1706
|
+
| "clientLocation"
|
|
1707
|
+
| "clientContact"
|
|
1708
|
+
| "commentsThread"
|
|
1709
|
+
| "workorderRequest"
|
|
1710
|
+
| "workorderPortal"
|
|
1711
|
+
| "invoice"
|
|
1712
|
+
| "products"
|
|
1713
|
+
| "productvariations"
|
|
1714
|
+
| "representatives"
|
|
1715
|
+
| "productcategories"
|
|
1716
|
+
| "productSubCategory"
|
|
1717
|
+
| "speciality"
|
|
1718
|
+
| "line"
|
|
1719
|
+
| "banner"
|
|
1720
|
+
| "intgAvailableApps"
|
|
1721
|
+
| "availability_msl"
|
|
1722
|
+
| "reminders"
|
|
1723
|
+
| "audits"
|
|
1724
|
+
| "availability"
|
|
1725
|
+
| "photos"
|
|
1726
|
+
| "planogram"
|
|
1727
|
+
| "tasks"
|
|
1728
|
+
| "checks"
|
|
1729
|
+
| "notificationsCenter"
|
|
1730
|
+
| "admins"
|
|
1731
|
+
| "settings"
|
|
1732
|
+
| "printWorkorderPortalLink"
|
|
1733
|
+
| "bulkExport"
|
|
1734
|
+
| "generateRule"
|
|
1735
|
+
| "scheduleEmail"
|
|
1736
|
+
| "custom-list-item"
|
|
1737
|
+
| "days"
|
|
1738
|
+
| "bulkImport"
|
|
1739
|
+
| "sv.activitiesstorechecks"
|
|
1740
|
+
| "retailExecutionPreset"
|
|
1741
|
+
| "quickConvertToPdf"
|
|
1742
|
+
| "proforma"
|
|
1743
|
+
| "approvalRequest"
|
|
1744
|
+
| "activityFormV2Result"
|
|
1745
|
+
| "formV2"
|
|
1746
|
+
| "payments"
|
|
1747
|
+
| "ocrInvoiceJob"
|
|
1748
|
+
| "contract"
|
|
1749
|
+
| "contractInstallment"
|
|
1750
|
+
| "form"
|
|
1751
|
+
| "paymentMethod";
|
|
1752
|
+
|
|
1753
|
+
type SourceEnums =
|
|
1754
|
+
| "product"
|
|
1755
|
+
| "variant"
|
|
1756
|
+
| "product-category"
|
|
1757
|
+
| "product-sub-category"
|
|
1758
|
+
| "product-brand"
|
|
1759
|
+
| "product-group";
|
|
1760
|
+
export interface MediaStorageSchema {
|
|
1761
|
+
_id: string;
|
|
1762
|
+
ContentLength?: number;
|
|
1763
|
+
ETag?: string;
|
|
1764
|
+
ContentType?: string;
|
|
1765
|
+
media_type?: MediaType;
|
|
1766
|
+
Metadata?: any;
|
|
1767
|
+
key?: string;
|
|
1768
|
+
pathSuffix?: string;
|
|
1769
|
+
pathPrefix?: string;
|
|
1770
|
+
file_name: string;
|
|
1771
|
+
parentDocumentType: ParentDocumentType;
|
|
1772
|
+
parentDocumentId?: string;
|
|
1773
|
+
parentDocumentKey?: string;
|
|
1774
|
+
parentDocumentKeyisArray?: boolean;
|
|
1775
|
+
mime_type?: string;
|
|
1776
|
+
publicUrl?: string;
|
|
1777
|
+
media_id: string;
|
|
1778
|
+
baseUrl?: string;
|
|
1779
|
+
type_name: "FileAttachment" | "ImageAttachment";
|
|
1780
|
+
width?: number;
|
|
1781
|
+
height?: number;
|
|
1782
|
+
thumbnails: string[];
|
|
1783
|
+
extension: string;
|
|
1784
|
+
bucket_name?: string;
|
|
1785
|
+
region?: string;
|
|
1786
|
+
retail_execution_source_type?: SourceEnums;
|
|
1787
|
+
retail_execution_source_id?: string;
|
|
1788
|
+
retail_execution_source_name?: string;
|
|
1789
|
+
time?: number;
|
|
1790
|
+
company_namespace: string[];
|
|
1791
|
+
createdAt: string;
|
|
1792
|
+
updatedAt: string;
|
|
1793
|
+
}
|
|
1794
|
+
export interface CreateBody {
|
|
1795
|
+
ContentLength?: number;
|
|
1796
|
+
ETag?: string;
|
|
1797
|
+
ContentType?: string;
|
|
1798
|
+
media_type?: MediaType;
|
|
1799
|
+
Metadata?: any;
|
|
1800
|
+
key?: string;
|
|
1801
|
+
pathSuffix?: string;
|
|
1802
|
+
pathPrefix?: string;
|
|
1803
|
+
file_name: string;
|
|
1804
|
+
parentDocumentType: ParentDocumentType;
|
|
1805
|
+
parentDocumentId?: string;
|
|
1806
|
+
parentDocumentKey?: string;
|
|
1807
|
+
parentDocumentKeyisArray?: boolean;
|
|
1808
|
+
mime_type?: string;
|
|
1809
|
+
publicUrl?: string;
|
|
1810
|
+
media_id: string;
|
|
1811
|
+
baseUrl?: string;
|
|
1812
|
+
type_name: "FileAttachment" | "ImageAttachment";
|
|
1813
|
+
width?: number;
|
|
1814
|
+
height?: number;
|
|
1815
|
+
thumbnails: string[];
|
|
1816
|
+
extension: string;
|
|
1817
|
+
bucket_name?: string;
|
|
1818
|
+
region?: string;
|
|
1819
|
+
retail_execution_source_type?: SourceEnums;
|
|
1820
|
+
retail_execution_source_id?: string;
|
|
1821
|
+
retail_execution_source_name?: string;
|
|
1822
|
+
time?: number;
|
|
1823
|
+
company_namespace: string[];
|
|
1824
|
+
}
|
|
1825
|
+
export interface UpdateBody {
|
|
1826
|
+
_id?: string;
|
|
1827
|
+
ContentLength?: number;
|
|
1828
|
+
ETag?: string;
|
|
1829
|
+
ContentType?: string;
|
|
1830
|
+
media_type?: MediaType;
|
|
1831
|
+
Metadata?: any;
|
|
1832
|
+
key?: string;
|
|
1833
|
+
pathSuffix?: string;
|
|
1834
|
+
pathPrefix?: string;
|
|
1835
|
+
file_name?: string;
|
|
1836
|
+
parentDocumentType?: ParentDocumentType;
|
|
1837
|
+
parentDocumentId?: string;
|
|
1838
|
+
parentDocumentKey?: string;
|
|
1839
|
+
parentDocumentKeyisArray?: boolean;
|
|
1840
|
+
mime_type?: string;
|
|
1841
|
+
publicUrl?: string;
|
|
1842
|
+
media_id: string;
|
|
1843
|
+
baseUrl?: string;
|
|
1844
|
+
type_name?: "FileAttachment" | "ImageAttachment";
|
|
1845
|
+
width?: number;
|
|
1846
|
+
height?: number;
|
|
1847
|
+
thumbnails?: string[];
|
|
1848
|
+
extension?: string;
|
|
1849
|
+
bucket_name?: string;
|
|
1850
|
+
region?: string;
|
|
1851
|
+
retail_execution_source_type?: SourceEnums;
|
|
1852
|
+
retail_execution_source_id?: string;
|
|
1853
|
+
retail_execution_source_name?: string;
|
|
1854
|
+
time?: number;
|
|
1855
|
+
company_namespace?: string[];
|
|
1856
|
+
}
|
|
1857
|
+
export namespace Find {
|
|
1858
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
1859
|
+
_id?: string[] | string;
|
|
1860
|
+
key?: string;
|
|
1861
|
+
from_updatedAt?: number;
|
|
1862
|
+
};
|
|
1863
|
+
export interface Result extends DefaultPaginationResult {
|
|
1864
|
+
data: MediaStorageSchema[];
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
export namespace Get {
|
|
1868
|
+
export type ID = string;
|
|
1869
|
+
export interface Params {}
|
|
1870
|
+
export type Result = MediaStorageSchema;
|
|
1871
|
+
}
|
|
1872
|
+
export namespace Create {
|
|
1873
|
+
export type Body = CreateBody;
|
|
1874
|
+
export type Result = MediaStorageSchema;
|
|
1875
|
+
}
|
|
1876
|
+
export namespace Update {
|
|
1877
|
+
export type ID = string;
|
|
1878
|
+
export type Body = UpdateBody;
|
|
1879
|
+
export type Result = MediaStorageSchema;
|
|
1880
|
+
}
|
|
1881
|
+
export namespace Remove {
|
|
1882
|
+
export type ID = string;
|
|
1883
|
+
export type Result = MediaStorageSchema;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
export namespace StorecheckTemplate {
|
|
1888
|
+
type SourceType =
|
|
1889
|
+
| "product"
|
|
1890
|
+
| "variant"
|
|
1891
|
+
| "product-category"
|
|
1892
|
+
| "product-sub-category"
|
|
1893
|
+
| "product-brand"
|
|
1894
|
+
| "product-group";
|
|
1895
|
+
|
|
1896
|
+
type FieldType =
|
|
1897
|
+
| "Text"
|
|
1898
|
+
| "String"
|
|
1899
|
+
| "Date"
|
|
1900
|
+
| "Image"
|
|
1901
|
+
| "Boolean"
|
|
1902
|
+
| "Number"
|
|
1903
|
+
| "List"
|
|
1904
|
+
| "Separator"
|
|
1905
|
+
| "Heading"
|
|
1906
|
+
| "Media";
|
|
1907
|
+
type DataType =
|
|
1908
|
+
| "Separator"
|
|
1909
|
+
| "timestamp"
|
|
1910
|
+
| "String"
|
|
1911
|
+
| "Number"
|
|
1912
|
+
| "Boolean"
|
|
1913
|
+
| "Date"
|
|
1914
|
+
| "Image"
|
|
1915
|
+
| "coords"
|
|
1916
|
+
| "Text"
|
|
1917
|
+
| "Media"
|
|
1918
|
+
| "Heading"
|
|
1919
|
+
| "List"
|
|
1920
|
+
| "Phone"
|
|
1921
|
+
| "Email"
|
|
1922
|
+
| "Signature"
|
|
1923
|
+
| "DateTime"
|
|
1924
|
+
| "YesNo"
|
|
1925
|
+
| "ProductBarcodeScan"
|
|
1926
|
+
| "BarcodeScan"
|
|
1927
|
+
| "GeoPoint";
|
|
1928
|
+
interface UsedField {
|
|
1929
|
+
code: string;
|
|
1930
|
+
key: string;
|
|
1931
|
+
data_type: DataType;
|
|
1932
|
+
field_type: "template_field" | "source_attribute" | "activity_attribute";
|
|
1933
|
+
label: string;
|
|
1934
|
+
isArray?: boolean;
|
|
1935
|
+
formula_key: string;
|
|
1936
|
+
field_id?: string;
|
|
1937
|
+
example_value: DataType;
|
|
1938
|
+
manipulator_function?: string;
|
|
1939
|
+
lookup?: {
|
|
1940
|
+
from?: string;
|
|
1941
|
+
localField?: string;
|
|
1942
|
+
foreignField?: string;
|
|
1943
|
+
as?: string;
|
|
1944
|
+
select?: string;
|
|
1945
|
+
unwind?: boolean;
|
|
1946
|
+
filter?: {
|
|
1947
|
+
input?: string;
|
|
1948
|
+
as: string;
|
|
1949
|
+
cond: any;
|
|
1950
|
+
};
|
|
1951
|
+
};
|
|
1952
|
+
}
|
|
1953
|
+
interface Field {
|
|
1954
|
+
_id?: string;
|
|
1955
|
+
name: string;
|
|
1956
|
+
local_name?: string;
|
|
1957
|
+
description?: string;
|
|
1958
|
+
local_description?: string;
|
|
1959
|
+
type: FieldType;
|
|
1960
|
+
isArray?: boolean;
|
|
1961
|
+
isRequired?: boolean;
|
|
1962
|
+
readOnly?: boolean;
|
|
1963
|
+
presets?: any[];
|
|
1964
|
+
previous_entry?: any;
|
|
1965
|
+
show_previous_result?: boolean;
|
|
1966
|
+
hidden?: boolean;
|
|
1967
|
+
custom_list?: string;
|
|
1968
|
+
custom_list_element?: string;
|
|
1969
|
+
parent_field?: string;
|
|
1970
|
+
invisible?: boolean;
|
|
1971
|
+
display_on_home_screen?: boolean;
|
|
1972
|
+
custom_list_end_point?: { [key: string]: any };
|
|
1973
|
+
visibility?: {
|
|
1974
|
+
operator: "and" | "or";
|
|
1975
|
+
conditions: {
|
|
1976
|
+
field_id: string;
|
|
1977
|
+
type: "Boolean" | "List"; // FieldType;
|
|
1978
|
+
custom_list?: string;
|
|
1979
|
+
operator: "lte" | "lt" | "gte" | "gt" | "eq" | "ne" | "in" | "nin";
|
|
1980
|
+
value: any[];
|
|
1981
|
+
}[];
|
|
1982
|
+
};
|
|
1983
|
+
barcode_scan?: boolean;
|
|
1984
|
+
is_calculated_field?: boolean;
|
|
1985
|
+
formula?: string;
|
|
1986
|
+
formula_key: string;
|
|
1987
|
+
used_fields?: UsedField[];
|
|
1988
|
+
}
|
|
1989
|
+
interface Entry {
|
|
1990
|
+
_id?: string;
|
|
1991
|
+
repeatable: boolean;
|
|
1992
|
+
grouping: "product-category" | "product-brand" | "product-group";
|
|
1993
|
+
require_all_source_elements: boolean;
|
|
1994
|
+
require_group_source_elements: boolean;
|
|
1995
|
+
source: SourceType;
|
|
1996
|
+
filters: string[];
|
|
1997
|
+
fields: Field[];
|
|
1998
|
+
}
|
|
1999
|
+
export interface StorecheckTemplateSchema {
|
|
2000
|
+
_id: string;
|
|
2001
|
+
name: string;
|
|
2002
|
+
local_name?: string;
|
|
2003
|
+
description?: string;
|
|
2004
|
+
local_description?: string;
|
|
2005
|
+
disabled: boolean;
|
|
2006
|
+
entries: Entry[];
|
|
2007
|
+
company_namespace: string[];
|
|
2008
|
+
can_edit_types?: boolean;
|
|
2009
|
+
copied_from?: string;
|
|
2010
|
+
client_specific_sources: boolean;
|
|
2011
|
+
previous_result_activated: boolean;
|
|
2012
|
+
presets_activated: boolean;
|
|
2013
|
+
createdAt?: string;
|
|
2014
|
+
updatedAt?: string;
|
|
2015
|
+
__v?: number;
|
|
2016
|
+
}
|
|
2017
|
+
export interface CreateBody {
|
|
2018
|
+
name: string;
|
|
2019
|
+
local_name?: string;
|
|
2020
|
+
description?: string;
|
|
2021
|
+
local_description?: string;
|
|
2022
|
+
disabled: boolean;
|
|
2023
|
+
company_namespace: string[];
|
|
2024
|
+
can_edit_types?: boolean;
|
|
2025
|
+
copied_from?: string;
|
|
2026
|
+
client_specific_sources: boolean;
|
|
2027
|
+
previous_result_activated: boolean;
|
|
2028
|
+
presets_activated: boolean;
|
|
2029
|
+
}
|
|
2030
|
+
export interface UpdateBody {
|
|
2031
|
+
_id?: string;
|
|
2032
|
+
name?: string;
|
|
2033
|
+
local_name?: string;
|
|
2034
|
+
description?: string;
|
|
2035
|
+
local_description?: string;
|
|
2036
|
+
disabled?: boolean;
|
|
2037
|
+
company_namespace?: string[];
|
|
2038
|
+
can_edit_types?: boolean;
|
|
2039
|
+
copied_from?: string;
|
|
2040
|
+
client_specific_sources?: boolean;
|
|
2041
|
+
previous_result_activated?: boolean;
|
|
2042
|
+
presets_activated?: boolean;
|
|
2043
|
+
}
|
|
2044
|
+
export namespace Find {
|
|
2045
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
2046
|
+
_id?: string[] | string;
|
|
2047
|
+
key?: string;
|
|
2048
|
+
name?: string;
|
|
2049
|
+
local_name?: string;
|
|
2050
|
+
disabled?: boolean;
|
|
2051
|
+
from_updatedAt?: number;
|
|
2052
|
+
};
|
|
2053
|
+
export interface Result extends DefaultPaginationResult {
|
|
2054
|
+
data: StorecheckTemplateSchema[];
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
export namespace Get {
|
|
2058
|
+
export type ID = string;
|
|
2059
|
+
export interface Params {}
|
|
2060
|
+
export type Result = StorecheckTemplateSchema;
|
|
2061
|
+
}
|
|
2062
|
+
export namespace Create {
|
|
2063
|
+
export type Body = CreateBody;
|
|
2064
|
+
export type Result = StorecheckTemplateSchema;
|
|
2065
|
+
}
|
|
2066
|
+
export namespace Update {
|
|
2067
|
+
export type ID = string;
|
|
2068
|
+
export type Body = UpdateBody;
|
|
2069
|
+
export type Result = StorecheckTemplateSchema;
|
|
2070
|
+
}
|
|
2071
|
+
export namespace Remove {
|
|
2072
|
+
export type ID = string;
|
|
2073
|
+
export type Result = StorecheckTemplateSchema;
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
|
|
1676
2077
|
export namespace Msl {
|
|
1677
2078
|
export interface MslSchema {
|
|
1678
2079
|
_id: string;
|
|
@@ -5620,7 +6021,10 @@ export namespace Service {
|
|
|
5620
6021
|
creator: RepCreator;
|
|
5621
6022
|
startTime: string[];
|
|
5622
6023
|
endTime: string[];
|
|
5623
|
-
plan: {
|
|
6024
|
+
plan: {
|
|
6025
|
+
day?: string;
|
|
6026
|
+
list?: PlanList[];
|
|
6027
|
+
};
|
|
5624
6028
|
groupedPlan?: { [key: string]: any };
|
|
5625
6029
|
day: string;
|
|
5626
6030
|
timeFrame: { startOfDay?: number; endOfDay?: number };
|
|
@@ -5664,7 +6068,10 @@ export namespace Service {
|
|
|
5664
6068
|
export interface CreateBody {
|
|
5665
6069
|
startTime: string[];
|
|
5666
6070
|
endTime: string[];
|
|
5667
|
-
plan: {
|
|
6071
|
+
plan: {
|
|
6072
|
+
day?: string;
|
|
6073
|
+
list?: PlanList[];
|
|
6074
|
+
};
|
|
5668
6075
|
groupedPlan?: { [key: string]: any };
|
|
5669
6076
|
day: string;
|
|
5670
6077
|
timeFrame: { startOfDay?: number; endOfDay?: number };
|
|
@@ -5703,7 +6110,10 @@ export namespace Service {
|
|
|
5703
6110
|
_id?: string;
|
|
5704
6111
|
startTime?: string[];
|
|
5705
6112
|
endTime?: string[];
|
|
5706
|
-
plan?: {
|
|
6113
|
+
plan?: {
|
|
6114
|
+
day?: string;
|
|
6115
|
+
list?: PlanList[];
|
|
6116
|
+
};
|
|
5707
6117
|
groupedPlan?: { [key: string]: any };
|
|
5708
6118
|
day?: string;
|
|
5709
6119
|
timeFrame?: { startOfDay?: number; endOfDay?: number };
|