repzo 1.0.265 → 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 +57 -33
- package/package.json +1 -1
- package/src/types/index.ts +48 -20
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;
|
|
@@ -8108,7 +8121,19 @@ export declare namespace Service {
|
|
|
8108
8121
|
}
|
|
8109
8122
|
}
|
|
8110
8123
|
namespace Approval {
|
|
8111
|
-
interface
|
|
8124
|
+
interface AdminNode {
|
|
8125
|
+
_id: StringId;
|
|
8126
|
+
type: "admin";
|
|
8127
|
+
name?: string;
|
|
8128
|
+
admin: StringId;
|
|
8129
|
+
}
|
|
8130
|
+
interface RepNode {
|
|
8131
|
+
_id: StringId;
|
|
8132
|
+
type: "rep";
|
|
8133
|
+
name?: string;
|
|
8134
|
+
rep: StringId;
|
|
8135
|
+
}
|
|
8136
|
+
export interface Data {
|
|
8112
8137
|
_id: StringId;
|
|
8113
8138
|
creator: AdminCreator;
|
|
8114
8139
|
name: string;
|
|
@@ -8123,20 +8148,14 @@ export declare namespace Service {
|
|
|
8123
8148
|
permissions: {
|
|
8124
8149
|
can_edit: boolean;
|
|
8125
8150
|
};
|
|
8126
|
-
admins:
|
|
8127
|
-
|
|
8128
|
-
name?: string;
|
|
8129
|
-
type: "admin";
|
|
8130
|
-
}[];
|
|
8131
|
-
reps: {
|
|
8132
|
-
_id: StringId;
|
|
8133
|
-
name?: string;
|
|
8134
|
-
type: "rep";
|
|
8135
|
-
}[];
|
|
8151
|
+
admins: AdminNode[];
|
|
8152
|
+
reps: RepNode[];
|
|
8136
8153
|
append_creator?: boolean;
|
|
8137
8154
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8138
8155
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8139
|
-
|
|
8156
|
+
notify_all_admins_before?: boolean;
|
|
8157
|
+
notify_admins_before: AdminNode[];
|
|
8158
|
+
notify_admins_after: AdminNode[];
|
|
8140
8159
|
}[];
|
|
8141
8160
|
filters?: {
|
|
8142
8161
|
key: string;
|
|
@@ -8148,7 +8167,7 @@ export declare namespace Service {
|
|
|
8148
8167
|
updatedAt: Date;
|
|
8149
8168
|
__v: number;
|
|
8150
8169
|
}
|
|
8151
|
-
interface CreateBody {
|
|
8170
|
+
export interface CreateBody {
|
|
8152
8171
|
name: string;
|
|
8153
8172
|
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8154
8173
|
creator?: AdminCreator;
|
|
@@ -8175,7 +8194,9 @@ export declare namespace Service {
|
|
|
8175
8194
|
append_creator?: boolean;
|
|
8176
8195
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8177
8196
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8178
|
-
|
|
8197
|
+
notify_all_admins_before?: boolean;
|
|
8198
|
+
notify_admins_before: AdminNode[];
|
|
8199
|
+
notify_admins_after: AdminNode[];
|
|
8179
8200
|
}[];
|
|
8180
8201
|
filters?: {
|
|
8181
8202
|
key: string;
|
|
@@ -8184,7 +8205,7 @@ export declare namespace Service {
|
|
|
8184
8205
|
manipulator_function?: string;
|
|
8185
8206
|
}[];
|
|
8186
8207
|
}
|
|
8187
|
-
interface UpdateBody {
|
|
8208
|
+
export interface UpdateBody {
|
|
8188
8209
|
_id?: StringId;
|
|
8189
8210
|
creator?: AdminCreator;
|
|
8190
8211
|
name?: string;
|
|
@@ -8212,7 +8233,9 @@ export declare namespace Service {
|
|
|
8212
8233
|
append_creator?: boolean;
|
|
8213
8234
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8214
8235
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8215
|
-
|
|
8236
|
+
notify_all_admins_before?: boolean;
|
|
8237
|
+
notify_admins_before: AdminNode[];
|
|
8238
|
+
notify_admins_after: AdminNode[];
|
|
8216
8239
|
}[];
|
|
8217
8240
|
filters?: {
|
|
8218
8241
|
key: string;
|
|
@@ -8224,7 +8247,7 @@ export declare namespace Service {
|
|
|
8224
8247
|
updatedAt?: Date;
|
|
8225
8248
|
__v?: number;
|
|
8226
8249
|
}
|
|
8227
|
-
namespace Find {
|
|
8250
|
+
export namespace Find {
|
|
8228
8251
|
type Params = DefaultPaginationQueryParams & {
|
|
8229
8252
|
_id?: StringId[] | StringId;
|
|
8230
8253
|
search?: string;
|
|
@@ -8240,23 +8263,23 @@ export declare namespace Service {
|
|
|
8240
8263
|
data: Data[];
|
|
8241
8264
|
}
|
|
8242
8265
|
}
|
|
8243
|
-
namespace Get {
|
|
8266
|
+
export namespace Get {
|
|
8244
8267
|
type ID = string;
|
|
8245
8268
|
type Params = {
|
|
8246
8269
|
[key: string]: any;
|
|
8247
8270
|
};
|
|
8248
8271
|
type Result = Data;
|
|
8249
8272
|
}
|
|
8250
|
-
namespace Create {
|
|
8273
|
+
export namespace Create {
|
|
8251
8274
|
type Body = CreateBody;
|
|
8252
8275
|
type Result = Data;
|
|
8253
8276
|
}
|
|
8254
|
-
namespace Update {
|
|
8277
|
+
export namespace Update {
|
|
8255
8278
|
type ID = string;
|
|
8256
8279
|
type Body = UpdateBody;
|
|
8257
8280
|
type Result = Data;
|
|
8258
8281
|
}
|
|
8259
|
-
namespace Patch {
|
|
8282
|
+
export namespace Patch {
|
|
8260
8283
|
type ID = string;
|
|
8261
8284
|
type Params = {
|
|
8262
8285
|
bulkUpdatePositions?: boolean;
|
|
@@ -8271,10 +8294,11 @@ export declare namespace Service {
|
|
|
8271
8294
|
status: "success" | "failed" | "partial";
|
|
8272
8295
|
};
|
|
8273
8296
|
}
|
|
8274
|
-
namespace Remove {
|
|
8297
|
+
export namespace Remove {
|
|
8275
8298
|
type ID = string;
|
|
8276
8299
|
type Result = Data;
|
|
8277
8300
|
}
|
|
8301
|
+
export {};
|
|
8278
8302
|
}
|
|
8279
8303
|
namespace Cycle {
|
|
8280
8304
|
type CycleStatus = "pending" | "approved" | "processing" | "rejected";
|
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;
|
|
@@ -8668,6 +8677,19 @@ export namespace Service {
|
|
|
8668
8677
|
}
|
|
8669
8678
|
|
|
8670
8679
|
export namespace Approval {
|
|
8680
|
+
interface AdminNode {
|
|
8681
|
+
_id: StringId;
|
|
8682
|
+
type: "admin";
|
|
8683
|
+
name?: string;
|
|
8684
|
+
admin: StringId;
|
|
8685
|
+
}
|
|
8686
|
+
interface RepNode {
|
|
8687
|
+
_id: StringId;
|
|
8688
|
+
type: "rep";
|
|
8689
|
+
name?: string;
|
|
8690
|
+
rep: StringId;
|
|
8691
|
+
}
|
|
8692
|
+
|
|
8671
8693
|
export interface Data {
|
|
8672
8694
|
_id: StringId;
|
|
8673
8695
|
creator: AdminCreator;
|
|
@@ -8689,12 +8711,14 @@ export namespace Service {
|
|
|
8689
8711
|
index: number;
|
|
8690
8712
|
name: string;
|
|
8691
8713
|
permissions: { can_edit: boolean };
|
|
8692
|
-
admins:
|
|
8693
|
-
reps:
|
|
8714
|
+
admins: AdminNode[];
|
|
8715
|
+
reps: RepNode[];
|
|
8694
8716
|
append_creator?: boolean;
|
|
8695
8717
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8696
8718
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8697
|
-
|
|
8719
|
+
notify_all_admins_before?: boolean;
|
|
8720
|
+
notify_admins_before: AdminNode[];
|
|
8721
|
+
notify_admins_after: AdminNode[];
|
|
8698
8722
|
}[];
|
|
8699
8723
|
filters?: {
|
|
8700
8724
|
key: string;
|
|
@@ -8732,7 +8756,9 @@ export namespace Service {
|
|
|
8732
8756
|
append_creator?: boolean;
|
|
8733
8757
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8734
8758
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8735
|
-
|
|
8759
|
+
notify_all_admins_before?: boolean;
|
|
8760
|
+
notify_admins_before: AdminNode[];
|
|
8761
|
+
notify_admins_after: AdminNode[];
|
|
8736
8762
|
}[];
|
|
8737
8763
|
filters?: {
|
|
8738
8764
|
key: string;
|
|
@@ -8767,7 +8793,9 @@ export namespace Service {
|
|
|
8767
8793
|
append_creator?: boolean;
|
|
8768
8794
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8769
8795
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8770
|
-
|
|
8796
|
+
notify_all_admins_before?: boolean;
|
|
8797
|
+
notify_admins_before: AdminNode[];
|
|
8798
|
+
notify_admins_after: AdminNode[];
|
|
8771
8799
|
}[];
|
|
8772
8800
|
filters?: {
|
|
8773
8801
|
key: string;
|