repzo 1.0.264 → 1.0.266
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 +43 -23
- package/package.json +1 -1
- package/src/types/index.ts +32 -6
package/lib/types/index.d.ts
CHANGED
|
@@ -2454,6 +2454,8 @@ export declare namespace Service {
|
|
|
2454
2454
|
rep_can_view_stock_on_transfers?: boolean;
|
|
2455
2455
|
rep_must_invoice_items_from_cross_inventory_and_msl?: boolean;
|
|
2456
2456
|
rep_can_create_client_line_approval_request?: boolean;
|
|
2457
|
+
rep_can_enter_client_code_at_create_client?: boolean;
|
|
2458
|
+
rep_can_edit_client_location_at_create_client?: boolean;
|
|
2457
2459
|
}
|
|
2458
2460
|
interface TargetResults {
|
|
2459
2461
|
totalPoints: number;
|
|
@@ -2713,6 +2715,8 @@ export declare namespace Service {
|
|
|
2713
2715
|
"permissions.rep_must_add_delivery_date_on_sales_order"?: boolean;
|
|
2714
2716
|
"permissions.rep_must_add_delivery_date_on_invoice"?: boolean;
|
|
2715
2717
|
"permissions.rep_can_create_client_line_approval_request"?: boolean;
|
|
2718
|
+
"permissions.rep_can_enter_client_code_at_create_client"?: boolean;
|
|
2719
|
+
"permissions.rep_can_edit_client_location_at_create_client"?: boolean;
|
|
2716
2720
|
"permissions.rep_can_view_stock_on_transfers"?: boolean;
|
|
2717
2721
|
"permissions.rep_must_invoice_items_from_cross_inventory_and_msl"?: boolean;
|
|
2718
2722
|
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
@@ -8104,7 +8108,19 @@ export declare namespace Service {
|
|
|
8104
8108
|
}
|
|
8105
8109
|
}
|
|
8106
8110
|
namespace Approval {
|
|
8107
|
-
interface
|
|
8111
|
+
interface AdminNode {
|
|
8112
|
+
_id: StringId;
|
|
8113
|
+
type: "admin";
|
|
8114
|
+
name?: string;
|
|
8115
|
+
admin: StringId;
|
|
8116
|
+
}
|
|
8117
|
+
interface RepNode {
|
|
8118
|
+
_id: StringId;
|
|
8119
|
+
type: "rep";
|
|
8120
|
+
name?: string;
|
|
8121
|
+
rep: StringId;
|
|
8122
|
+
}
|
|
8123
|
+
export interface Data {
|
|
8108
8124
|
_id: StringId;
|
|
8109
8125
|
creator: AdminCreator;
|
|
8110
8126
|
name: string;
|
|
@@ -8119,20 +8135,14 @@ export declare namespace Service {
|
|
|
8119
8135
|
permissions: {
|
|
8120
8136
|
can_edit: boolean;
|
|
8121
8137
|
};
|
|
8122
|
-
admins:
|
|
8123
|
-
|
|
8124
|
-
name?: string;
|
|
8125
|
-
type: "admin";
|
|
8126
|
-
}[];
|
|
8127
|
-
reps: {
|
|
8128
|
-
_id: StringId;
|
|
8129
|
-
name?: string;
|
|
8130
|
-
type: "rep";
|
|
8131
|
-
}[];
|
|
8138
|
+
admins: AdminNode[];
|
|
8139
|
+
reps: RepNode[];
|
|
8132
8140
|
append_creator?: boolean;
|
|
8133
8141
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8134
8142
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8135
|
-
|
|
8143
|
+
notify_all_admins_before?: boolean;
|
|
8144
|
+
notify_admins_before: AdminNode[];
|
|
8145
|
+
notify_admins_after: AdminNode[];
|
|
8136
8146
|
}[];
|
|
8137
8147
|
filters?: {
|
|
8138
8148
|
key: string;
|
|
@@ -8144,7 +8154,7 @@ export declare namespace Service {
|
|
|
8144
8154
|
updatedAt: Date;
|
|
8145
8155
|
__v: number;
|
|
8146
8156
|
}
|
|
8147
|
-
interface CreateBody {
|
|
8157
|
+
export interface CreateBody {
|
|
8148
8158
|
name: string;
|
|
8149
8159
|
type: "proforma" | "transfer" | "approval-request" | "receiving-material" | "asset-part-transfer" | "adjust-inventory" | "return-asset-part-unit" | "store-asset-part-unit";
|
|
8150
8160
|
creator?: AdminCreator;
|
|
@@ -8171,7 +8181,9 @@ export declare namespace Service {
|
|
|
8171
8181
|
append_creator?: boolean;
|
|
8172
8182
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8173
8183
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8174
|
-
|
|
8184
|
+
notify_all_admins_before?: boolean;
|
|
8185
|
+
notify_admins_before: AdminNode[];
|
|
8186
|
+
notify_admins_after: AdminNode[];
|
|
8175
8187
|
}[];
|
|
8176
8188
|
filters?: {
|
|
8177
8189
|
key: string;
|
|
@@ -8180,7 +8192,7 @@ export declare namespace Service {
|
|
|
8180
8192
|
manipulator_function?: string;
|
|
8181
8193
|
}[];
|
|
8182
8194
|
}
|
|
8183
|
-
interface UpdateBody {
|
|
8195
|
+
export interface UpdateBody {
|
|
8184
8196
|
_id?: StringId;
|
|
8185
8197
|
creator?: AdminCreator;
|
|
8186
8198
|
name?: string;
|
|
@@ -8208,7 +8220,9 @@ export declare namespace Service {
|
|
|
8208
8220
|
append_creator?: boolean;
|
|
8209
8221
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8210
8222
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8211
|
-
|
|
8223
|
+
notify_all_admins_before?: boolean;
|
|
8224
|
+
notify_admins_before: AdminNode[];
|
|
8225
|
+
notify_admins_after: AdminNode[];
|
|
8212
8226
|
}[];
|
|
8213
8227
|
filters?: {
|
|
8214
8228
|
key: string;
|
|
@@ -8220,7 +8234,7 @@ export declare namespace Service {
|
|
|
8220
8234
|
updatedAt?: Date;
|
|
8221
8235
|
__v?: number;
|
|
8222
8236
|
}
|
|
8223
|
-
namespace Find {
|
|
8237
|
+
export namespace Find {
|
|
8224
8238
|
type Params = DefaultPaginationQueryParams & {
|
|
8225
8239
|
_id?: StringId[] | StringId;
|
|
8226
8240
|
search?: string;
|
|
@@ -8236,39 +8250,42 @@ export declare namespace Service {
|
|
|
8236
8250
|
data: Data[];
|
|
8237
8251
|
}
|
|
8238
8252
|
}
|
|
8239
|
-
namespace Get {
|
|
8253
|
+
export namespace Get {
|
|
8240
8254
|
type ID = string;
|
|
8241
8255
|
type Params = {
|
|
8242
8256
|
[key: string]: any;
|
|
8243
8257
|
};
|
|
8244
8258
|
type Result = Data;
|
|
8245
8259
|
}
|
|
8246
|
-
namespace Create {
|
|
8260
|
+
export namespace Create {
|
|
8247
8261
|
type Body = CreateBody;
|
|
8248
8262
|
type Result = Data;
|
|
8249
8263
|
}
|
|
8250
|
-
namespace Update {
|
|
8264
|
+
export namespace Update {
|
|
8251
8265
|
type ID = string;
|
|
8252
8266
|
type Body = UpdateBody;
|
|
8253
8267
|
type Result = Data;
|
|
8254
8268
|
}
|
|
8255
|
-
namespace Patch {
|
|
8269
|
+
export namespace Patch {
|
|
8256
8270
|
type ID = string;
|
|
8257
8271
|
type Params = {
|
|
8258
8272
|
bulkUpdatePositions?: boolean;
|
|
8259
8273
|
[key: string]: any;
|
|
8260
8274
|
};
|
|
8261
|
-
type Body =
|
|
8275
|
+
type Body = {
|
|
8276
|
+
items: Pick<Data, "_id" | "position">[];
|
|
8277
|
+
};
|
|
8262
8278
|
type Result = {
|
|
8263
8279
|
messages: string[];
|
|
8264
8280
|
errors: any[];
|
|
8265
8281
|
status: "success" | "failed" | "partial";
|
|
8266
8282
|
};
|
|
8267
8283
|
}
|
|
8268
|
-
namespace Remove {
|
|
8284
|
+
export namespace Remove {
|
|
8269
8285
|
type ID = string;
|
|
8270
8286
|
type Result = Data;
|
|
8271
8287
|
}
|
|
8288
|
+
export {};
|
|
8272
8289
|
}
|
|
8273
8290
|
namespace Cycle {
|
|
8274
8291
|
type CycleStatus = "pending" | "approved" | "processing" | "rejected";
|
|
@@ -17716,6 +17733,7 @@ export declare namespace Service {
|
|
|
17716
17733
|
divisions: Division[];
|
|
17717
17734
|
company_namespace: string[];
|
|
17718
17735
|
print_settings?: PrintSettings;
|
|
17736
|
+
client_can_view_template: boolean;
|
|
17719
17737
|
createdAt: Date;
|
|
17720
17738
|
updatedAt: Date;
|
|
17721
17739
|
}
|
|
@@ -17733,6 +17751,7 @@ export declare namespace Service {
|
|
|
17733
17751
|
divisions: Division[];
|
|
17734
17752
|
company_namespace?: string[];
|
|
17735
17753
|
print_settings?: PrintSettings;
|
|
17754
|
+
client_can_view_template?: boolean;
|
|
17736
17755
|
}
|
|
17737
17756
|
export type UpdateBody = Partial<Data>;
|
|
17738
17757
|
export type PopulatedDoc = Data & {
|
|
@@ -17757,6 +17776,7 @@ export declare namespace Service {
|
|
|
17757
17776
|
scoring_enabled?: boolean | boolean[];
|
|
17758
17777
|
completion_rules_enabled?: boolean | boolean[];
|
|
17759
17778
|
disabled?: boolean;
|
|
17779
|
+
client_can_view_template?: boolean;
|
|
17760
17780
|
};
|
|
17761
17781
|
interface Result extends DefaultPaginationResult {
|
|
17762
17782
|
data: PopulatedDoc[];
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -2867,6 +2867,8 @@ export namespace Service {
|
|
|
2867
2867
|
rep_can_view_stock_on_transfers?: boolean;
|
|
2868
2868
|
rep_must_invoice_items_from_cross_inventory_and_msl?: boolean;
|
|
2869
2869
|
rep_can_create_client_line_approval_request?: boolean;
|
|
2870
|
+
rep_can_enter_client_code_at_create_client?: boolean;
|
|
2871
|
+
rep_can_edit_client_location_at_create_client?: boolean;
|
|
2870
2872
|
}
|
|
2871
2873
|
interface TargetResults {
|
|
2872
2874
|
totalPoints: number;
|
|
@@ -3150,6 +3152,8 @@ export namespace Service {
|
|
|
3150
3152
|
"permissions.rep_must_add_delivery_date_on_sales_order"?: boolean;
|
|
3151
3153
|
"permissions.rep_must_add_delivery_date_on_invoice"?: boolean;
|
|
3152
3154
|
"permissions.rep_can_create_client_line_approval_request"?: boolean;
|
|
3155
|
+
"permissions.rep_can_enter_client_code_at_create_client"?: boolean;
|
|
3156
|
+
"permissions.rep_can_edit_client_location_at_create_client"?: boolean;
|
|
3153
3157
|
"permissions.rep_can_view_stock_on_transfers"?: boolean;
|
|
3154
3158
|
"permissions.rep_must_invoice_items_from_cross_inventory_and_msl"?: boolean;
|
|
3155
3159
|
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
@@ -8664,6 +8668,19 @@ export namespace Service {
|
|
|
8664
8668
|
}
|
|
8665
8669
|
|
|
8666
8670
|
export namespace Approval {
|
|
8671
|
+
interface AdminNode {
|
|
8672
|
+
_id: StringId;
|
|
8673
|
+
type: "admin";
|
|
8674
|
+
name?: string;
|
|
8675
|
+
admin: StringId;
|
|
8676
|
+
}
|
|
8677
|
+
interface RepNode {
|
|
8678
|
+
_id: StringId;
|
|
8679
|
+
type: "rep";
|
|
8680
|
+
name?: string;
|
|
8681
|
+
rep: StringId;
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8667
8684
|
export interface Data {
|
|
8668
8685
|
_id: StringId;
|
|
8669
8686
|
creator: AdminCreator;
|
|
@@ -8685,12 +8702,14 @@ export namespace Service {
|
|
|
8685
8702
|
index: number;
|
|
8686
8703
|
name: string;
|
|
8687
8704
|
permissions: { can_edit: boolean };
|
|
8688
|
-
admins:
|
|
8689
|
-
reps:
|
|
8705
|
+
admins: AdminNode[];
|
|
8706
|
+
reps: RepNode[];
|
|
8690
8707
|
append_creator?: boolean;
|
|
8691
8708
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8692
8709
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8693
|
-
|
|
8710
|
+
notify_all_admins_before?: boolean;
|
|
8711
|
+
notify_admins_before: AdminNode[];
|
|
8712
|
+
notify_admins_after: AdminNode[];
|
|
8694
8713
|
}[];
|
|
8695
8714
|
filters?: {
|
|
8696
8715
|
key: string;
|
|
@@ -8728,7 +8747,9 @@ export namespace Service {
|
|
|
8728
8747
|
append_creator?: boolean;
|
|
8729
8748
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8730
8749
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8731
|
-
|
|
8750
|
+
notify_all_admins_before?: boolean;
|
|
8751
|
+
notify_admins_before: AdminNode[];
|
|
8752
|
+
notify_admins_after: AdminNode[];
|
|
8732
8753
|
}[];
|
|
8733
8754
|
filters?: {
|
|
8734
8755
|
key: string;
|
|
@@ -8763,7 +8784,9 @@ export namespace Service {
|
|
|
8763
8784
|
append_creator?: boolean;
|
|
8764
8785
|
append_assigned_origin_warehouse_rep?: boolean;
|
|
8765
8786
|
append_assigned_destination_warehouse_rep?: boolean;
|
|
8766
|
-
|
|
8787
|
+
notify_all_admins_before?: boolean;
|
|
8788
|
+
notify_admins_before: AdminNode[];
|
|
8789
|
+
notify_admins_after: AdminNode[];
|
|
8767
8790
|
}[];
|
|
8768
8791
|
filters?: {
|
|
8769
8792
|
key: string;
|
|
@@ -8812,7 +8835,7 @@ export namespace Service {
|
|
|
8812
8835
|
bulkUpdatePositions?: boolean;
|
|
8813
8836
|
[key: string]: any;
|
|
8814
8837
|
};
|
|
8815
|
-
export type Body = Pick<Data, "_id" | "position">[];
|
|
8838
|
+
export type Body = { items: Pick<Data, "_id" | "position">[] };
|
|
8816
8839
|
export type Result = {
|
|
8817
8840
|
messages: string[];
|
|
8818
8841
|
errors: any[];
|
|
@@ -19794,6 +19817,7 @@ export namespace Service {
|
|
|
19794
19817
|
divisions: Division[];
|
|
19795
19818
|
company_namespace: string[];
|
|
19796
19819
|
print_settings?: PrintSettings;
|
|
19820
|
+
client_can_view_template: boolean;
|
|
19797
19821
|
createdAt: Date;
|
|
19798
19822
|
updatedAt: Date;
|
|
19799
19823
|
}
|
|
@@ -19812,6 +19836,7 @@ export namespace Service {
|
|
|
19812
19836
|
divisions: Division[];
|
|
19813
19837
|
company_namespace?: string[];
|
|
19814
19838
|
print_settings?: PrintSettings;
|
|
19839
|
+
client_can_view_template?: boolean;
|
|
19815
19840
|
}
|
|
19816
19841
|
export type UpdateBody = Partial<Data>;
|
|
19817
19842
|
|
|
@@ -19843,6 +19868,7 @@ export namespace Service {
|
|
|
19843
19868
|
scoring_enabled?: boolean | boolean[];
|
|
19844
19869
|
completion_rules_enabled?: boolean | boolean[];
|
|
19845
19870
|
disabled?: boolean;
|
|
19871
|
+
client_can_view_template?: boolean;
|
|
19846
19872
|
};
|
|
19847
19873
|
export interface Result extends DefaultPaginationResult {
|
|
19848
19874
|
data: PopulatedDoc[];
|