repzo 1.0.266 → 1.0.267
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 +24 -11
- package/package.json +1 -1
- package/src/types/index.ts +24 -15
package/lib/types/index.d.ts
CHANGED
|
@@ -1286,15 +1286,21 @@ export declare namespace Service {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
namespace MeasureUnit {
|
|
1288
1288
|
interface MeasureUnitSchema {
|
|
1289
|
-
_id:
|
|
1289
|
+
_id: StringId;
|
|
1290
1290
|
name: string;
|
|
1291
1291
|
factor: number;
|
|
1292
1292
|
local_name?: string;
|
|
1293
|
-
parent?:
|
|
1293
|
+
parent?: StringId;
|
|
1294
1294
|
disabled?: boolean;
|
|
1295
1295
|
integration_meta?: {
|
|
1296
1296
|
[key: string]: any;
|
|
1297
1297
|
};
|
|
1298
|
+
aliases: string[];
|
|
1299
|
+
sellable: boolean;
|
|
1300
|
+
returnable: boolean;
|
|
1301
|
+
loadable: boolean;
|
|
1302
|
+
unloadable: boolean;
|
|
1303
|
+
receivable: boolean;
|
|
1298
1304
|
company_namespace: string[];
|
|
1299
1305
|
createdAt: string;
|
|
1300
1306
|
updatedAt: string;
|
|
@@ -1304,13 +1310,20 @@ export declare namespace Service {
|
|
|
1304
1310
|
name?: string;
|
|
1305
1311
|
factor: number;
|
|
1306
1312
|
local_name?: string;
|
|
1307
|
-
parent?:
|
|
1313
|
+
parent?: StringId;
|
|
1314
|
+
aliases?: string[];
|
|
1315
|
+
sellable?: boolean;
|
|
1316
|
+
returnable?: boolean;
|
|
1317
|
+
loadable?: boolean;
|
|
1318
|
+
unloadable?: boolean;
|
|
1319
|
+
receivable?: boolean;
|
|
1308
1320
|
company_namespace?: string[];
|
|
1309
1321
|
disabled?: boolean;
|
|
1310
1322
|
integration_meta?: {
|
|
1311
1323
|
[key: string]: any;
|
|
1312
1324
|
};
|
|
1313
1325
|
}
|
|
1326
|
+
type UpdateBody = Partial<Data>;
|
|
1314
1327
|
type Data = MeasureUnitSchema;
|
|
1315
1328
|
namespace Find {
|
|
1316
1329
|
type Params = DefaultPaginationQueryParams & {
|
|
@@ -1329,6 +1342,11 @@ export declare namespace Service {
|
|
|
1329
1342
|
field: "_id";
|
|
1330
1343
|
type: "asc" | "desc";
|
|
1331
1344
|
}[];
|
|
1345
|
+
sellable?: boolean | boolean[];
|
|
1346
|
+
returnable?: boolean | boolean[];
|
|
1347
|
+
loadable?: boolean | boolean[];
|
|
1348
|
+
unloadable?: boolean | boolean[];
|
|
1349
|
+
receivable?: boolean | boolean[];
|
|
1332
1350
|
[key: string]: any;
|
|
1333
1351
|
};
|
|
1334
1352
|
interface Result extends DefaultPaginationResult {
|
|
@@ -1348,14 +1366,9 @@ export declare namespace Service {
|
|
|
1348
1366
|
type Result = MeasureUnitSchema;
|
|
1349
1367
|
}
|
|
1350
1368
|
namespace Update {
|
|
1351
|
-
type ID =
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
createdAt?: string;
|
|
1355
|
-
updatedAt?: string;
|
|
1356
|
-
__v?: number;
|
|
1357
|
-
}
|
|
1358
|
-
type Result = MeasureUnitSchema;
|
|
1369
|
+
type ID = StringId;
|
|
1370
|
+
type Body = UpdateBody;
|
|
1371
|
+
type Result = Data;
|
|
1359
1372
|
}
|
|
1360
1373
|
namespace Remove {
|
|
1361
1374
|
type ID = string;
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -1554,13 +1554,19 @@ export namespace Service {
|
|
|
1554
1554
|
|
|
1555
1555
|
export namespace MeasureUnit {
|
|
1556
1556
|
export interface MeasureUnitSchema {
|
|
1557
|
-
_id:
|
|
1557
|
+
_id: StringId;
|
|
1558
1558
|
name: string;
|
|
1559
1559
|
factor: number;
|
|
1560
1560
|
local_name?: string;
|
|
1561
|
-
parent?:
|
|
1561
|
+
parent?: StringId;
|
|
1562
1562
|
disabled?: boolean;
|
|
1563
1563
|
integration_meta?: { [key: string]: any };
|
|
1564
|
+
aliases: string[];
|
|
1565
|
+
sellable: boolean;
|
|
1566
|
+
returnable: boolean;
|
|
1567
|
+
loadable: boolean;
|
|
1568
|
+
unloadable: boolean;
|
|
1569
|
+
receivable: boolean;
|
|
1564
1570
|
company_namespace: string[];
|
|
1565
1571
|
createdAt: string;
|
|
1566
1572
|
updatedAt: string;
|
|
@@ -1570,11 +1576,18 @@ export namespace Service {
|
|
|
1570
1576
|
name?: string;
|
|
1571
1577
|
factor: number;
|
|
1572
1578
|
local_name?: string;
|
|
1573
|
-
parent?:
|
|
1579
|
+
parent?: StringId;
|
|
1580
|
+
aliases?: string[];
|
|
1581
|
+
sellable?: boolean;
|
|
1582
|
+
returnable?: boolean;
|
|
1583
|
+
loadable?: boolean;
|
|
1584
|
+
unloadable?: boolean;
|
|
1585
|
+
receivable?: boolean;
|
|
1574
1586
|
company_namespace?: string[];
|
|
1575
1587
|
disabled?: boolean;
|
|
1576
1588
|
integration_meta?: { [key: string]: any };
|
|
1577
1589
|
}
|
|
1590
|
+
export type UpdateBody = Partial<Data>;
|
|
1578
1591
|
export type Data = MeasureUnitSchema;
|
|
1579
1592
|
|
|
1580
1593
|
export namespace Find {
|
|
@@ -1594,6 +1607,11 @@ export namespace Service {
|
|
|
1594
1607
|
field: "_id";
|
|
1595
1608
|
type: "asc" | "desc";
|
|
1596
1609
|
}[];
|
|
1610
|
+
sellable?: boolean | boolean[];
|
|
1611
|
+
returnable?: boolean | boolean[];
|
|
1612
|
+
loadable?: boolean | boolean[];
|
|
1613
|
+
unloadable?: boolean | boolean[];
|
|
1614
|
+
receivable?: boolean | boolean[];
|
|
1597
1615
|
[key: string]: any; // integration_meta.
|
|
1598
1616
|
};
|
|
1599
1617
|
export interface Result extends DefaultPaginationResult {
|
|
@@ -1602,30 +1620,21 @@ export namespace Service {
|
|
|
1602
1620
|
})[];
|
|
1603
1621
|
}
|
|
1604
1622
|
}
|
|
1605
|
-
|
|
1606
1623
|
export namespace Get {
|
|
1607
1624
|
export type ID = string;
|
|
1608
1625
|
export type Result = MeasureUnitSchema;
|
|
1609
1626
|
}
|
|
1610
|
-
|
|
1611
1627
|
export namespace Create {
|
|
1612
1628
|
export interface Body extends MeasureUnitBody {
|
|
1613
1629
|
name: string;
|
|
1614
1630
|
}
|
|
1615
1631
|
export type Result = MeasureUnitSchema;
|
|
1616
1632
|
}
|
|
1617
|
-
|
|
1618
1633
|
export namespace Update {
|
|
1619
|
-
export type ID =
|
|
1620
|
-
export
|
|
1621
|
-
|
|
1622
|
-
createdAt?: string;
|
|
1623
|
-
updatedAt?: string;
|
|
1624
|
-
__v?: number;
|
|
1625
|
-
}
|
|
1626
|
-
export type Result = MeasureUnitSchema;
|
|
1634
|
+
export type ID = StringId;
|
|
1635
|
+
export type Body = UpdateBody;
|
|
1636
|
+
export type Result = Data;
|
|
1627
1637
|
}
|
|
1628
|
-
|
|
1629
1638
|
export namespace Remove {
|
|
1630
1639
|
export type ID = string;
|
|
1631
1640
|
export type Result = MeasureUnitSchema;
|