repzo 1.0.68 → 1.0.70
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 +20 -0
- package/lib/index.js +41 -0
- package/lib/types/index.d.ts +215 -3
- package/package.json +1 -1
- package/src/index.ts +58 -0
- package/src/types/index.ts +224 -3
package/lib/index.d.ts
CHANGED
|
@@ -738,6 +738,26 @@ 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
|
+
};
|
|
741
761
|
adjustInventory: {
|
|
742
762
|
_path: string;
|
|
743
763
|
find: (
|
package/lib/index.js
CHANGED
|
@@ -1502,6 +1502,47 @@ 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
|
+
};
|
|
1505
1546
|
this.adjustInventory = {
|
|
1506
1547
|
_path: "/adjust-inventory",
|
|
1507
1548
|
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,206 @@ 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
|
+
}
|
|
1646
1854
|
namespace Msl {
|
|
1647
1855
|
interface MslSchema {
|
|
1648
1856
|
_id: string;
|
|
@@ -1736,6 +1944,7 @@ export declare namespace Service {
|
|
|
1736
1944
|
export type MslProductWithPopulatedKeysSchema = MslProductSchema & {
|
|
1737
1945
|
product_id: string | Product.ProductSchema;
|
|
1738
1946
|
variant_id: string | Variant.VariantSchema;
|
|
1947
|
+
msl_id: string | Msl.MslSchema;
|
|
1739
1948
|
};
|
|
1740
1949
|
export namespace Find {
|
|
1741
1950
|
type Params = DefaultPaginationQueryParams & {
|
|
@@ -5611,7 +5820,8 @@ export declare namespace Service {
|
|
|
5611
5820
|
startTime: string[];
|
|
5612
5821
|
endTime: string[];
|
|
5613
5822
|
plan: {
|
|
5614
|
-
|
|
5823
|
+
day?: string;
|
|
5824
|
+
list?: PlanList[];
|
|
5615
5825
|
};
|
|
5616
5826
|
groupedPlan?: {
|
|
5617
5827
|
[key: string]: any;
|
|
@@ -5661,7 +5871,8 @@ export declare namespace Service {
|
|
|
5661
5871
|
startTime: string[];
|
|
5662
5872
|
endTime: string[];
|
|
5663
5873
|
plan: {
|
|
5664
|
-
|
|
5874
|
+
day?: string;
|
|
5875
|
+
list?: PlanList[];
|
|
5665
5876
|
};
|
|
5666
5877
|
groupedPlan?: {
|
|
5667
5878
|
[key: string]: any;
|
|
@@ -5708,7 +5919,8 @@ export declare namespace Service {
|
|
|
5708
5919
|
startTime?: string[];
|
|
5709
5920
|
endTime?: string[];
|
|
5710
5921
|
plan?: {
|
|
5711
|
-
|
|
5922
|
+
day?: string;
|
|
5923
|
+
list?: PlanList[];
|
|
5712
5924
|
};
|
|
5713
5925
|
groupedPlan?: {
|
|
5714
5926
|
[key: string]: any;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -2152,6 +2152,64 @@ 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
|
+
|
|
2155
2213
|
adjustInventory = {
|
|
2156
2214
|
_path: "/adjust-inventory",
|
|
2157
2215
|
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,208 @@ 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
|
+
|
|
1676
1887
|
export namespace Msl {
|
|
1677
1888
|
export interface MslSchema {
|
|
1678
1889
|
_id: string;
|
|
@@ -1767,6 +1978,7 @@ export namespace Service {
|
|
|
1767
1978
|
export type MslProductWithPopulatedKeysSchema = MslProductSchema & {
|
|
1768
1979
|
product_id: string | Product.ProductSchema;
|
|
1769
1980
|
variant_id: string | Variant.VariantSchema;
|
|
1981
|
+
msl_id: string | Msl.MslSchema;
|
|
1770
1982
|
};
|
|
1771
1983
|
export namespace Find {
|
|
1772
1984
|
export type Params = DefaultPaginationQueryParams & {
|
|
@@ -5619,7 +5831,10 @@ export namespace Service {
|
|
|
5619
5831
|
creator: RepCreator;
|
|
5620
5832
|
startTime: string[];
|
|
5621
5833
|
endTime: string[];
|
|
5622
|
-
plan: {
|
|
5834
|
+
plan: {
|
|
5835
|
+
day?: string;
|
|
5836
|
+
list?: PlanList[];
|
|
5837
|
+
};
|
|
5623
5838
|
groupedPlan?: { [key: string]: any };
|
|
5624
5839
|
day: string;
|
|
5625
5840
|
timeFrame: { startOfDay?: number; endOfDay?: number };
|
|
@@ -5663,7 +5878,10 @@ export namespace Service {
|
|
|
5663
5878
|
export interface CreateBody {
|
|
5664
5879
|
startTime: string[];
|
|
5665
5880
|
endTime: string[];
|
|
5666
|
-
plan: {
|
|
5881
|
+
plan: {
|
|
5882
|
+
day?: string;
|
|
5883
|
+
list?: PlanList[];
|
|
5884
|
+
};
|
|
5667
5885
|
groupedPlan?: { [key: string]: any };
|
|
5668
5886
|
day: string;
|
|
5669
5887
|
timeFrame: { startOfDay?: number; endOfDay?: number };
|
|
@@ -5702,7 +5920,10 @@ export namespace Service {
|
|
|
5702
5920
|
_id?: string;
|
|
5703
5921
|
startTime?: string[];
|
|
5704
5922
|
endTime?: string[];
|
|
5705
|
-
plan?: {
|
|
5923
|
+
plan?: {
|
|
5924
|
+
day?: string;
|
|
5925
|
+
list?: PlanList[];
|
|
5926
|
+
};
|
|
5706
5927
|
groupedPlan?: { [key: string]: any };
|
|
5707
5928
|
day?: string;
|
|
5708
5929
|
timeFrame?: { startOfDay?: number; endOfDay?: number };
|