repzo 1.0.263 → 1.0.265
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 +1 -0
- package/lib/index.js +4 -0
- package/lib/types/index.d.ts +22 -0
- package/package.json +1 -1
- package/src/index.ts +12 -0
- package/src/types/index.ts +20 -0
package/lib/index.d.ts
CHANGED
|
@@ -968,6 +968,7 @@ export default class Repzo {
|
|
|
968
968
|
get: (id: Service.Approval.Get.ID, params?: Service.Approval.Get.Params) => Promise<Service.Approval.Get.Result>;
|
|
969
969
|
create: (body: Service.Approval.Create.Body) => Promise<Service.Approval.Create.Result>;
|
|
970
970
|
update: (id: Service.Approval.Update.ID, body: Service.Approval.Update.Body) => Promise<Service.Approval.Update.Result>;
|
|
971
|
+
patch: (params: Service.Approval.Patch.Params, body: Service.Approval.Patch.Body) => Promise<Service.Approval.Patch.Result>;
|
|
971
972
|
remove: (id: Service.Approval.Remove.ID) => Promise<Service.Approval.Remove.Result>;
|
|
972
973
|
};
|
|
973
974
|
workorderCategory: {
|
package/lib/index.js
CHANGED
|
@@ -1813,6 +1813,10 @@ class Repzo {
|
|
|
1813
1813
|
let res = await this._update(this.svAPIEndpoint, this.approval._path + `/${id}`, body);
|
|
1814
1814
|
return res;
|
|
1815
1815
|
},
|
|
1816
|
+
patch: async (params, body) => {
|
|
1817
|
+
let res = await this._patch(this.svAPIEndpoint, this.approval._path, body, params);
|
|
1818
|
+
return res;
|
|
1819
|
+
},
|
|
1816
1820
|
remove: async (id) => {
|
|
1817
1821
|
let res = await this._delete(this.svAPIEndpoint, this.approval._path + `/${id}`);
|
|
1818
1822
|
return res;
|
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}`;
|
|
@@ -8252,6 +8256,21 @@ export declare namespace Service {
|
|
|
8252
8256
|
type Body = UpdateBody;
|
|
8253
8257
|
type Result = Data;
|
|
8254
8258
|
}
|
|
8259
|
+
namespace Patch {
|
|
8260
|
+
type ID = string;
|
|
8261
|
+
type Params = {
|
|
8262
|
+
bulkUpdatePositions?: boolean;
|
|
8263
|
+
[key: string]: any;
|
|
8264
|
+
};
|
|
8265
|
+
type Body = {
|
|
8266
|
+
items: Pick<Data, "_id" | "position">[];
|
|
8267
|
+
};
|
|
8268
|
+
type Result = {
|
|
8269
|
+
messages: string[];
|
|
8270
|
+
errors: any[];
|
|
8271
|
+
status: "success" | "failed" | "partial";
|
|
8272
|
+
};
|
|
8273
|
+
}
|
|
8255
8274
|
namespace Remove {
|
|
8256
8275
|
type ID = string;
|
|
8257
8276
|
type Result = Data;
|
|
@@ -17703,6 +17722,7 @@ export declare namespace Service {
|
|
|
17703
17722
|
divisions: Division[];
|
|
17704
17723
|
company_namespace: string[];
|
|
17705
17724
|
print_settings?: PrintSettings;
|
|
17725
|
+
client_can_view_template: boolean;
|
|
17706
17726
|
createdAt: Date;
|
|
17707
17727
|
updatedAt: Date;
|
|
17708
17728
|
}
|
|
@@ -17720,6 +17740,7 @@ export declare namespace Service {
|
|
|
17720
17740
|
divisions: Division[];
|
|
17721
17741
|
company_namespace?: string[];
|
|
17722
17742
|
print_settings?: PrintSettings;
|
|
17743
|
+
client_can_view_template?: boolean;
|
|
17723
17744
|
}
|
|
17724
17745
|
export type UpdateBody = Partial<Data>;
|
|
17725
17746
|
export type PopulatedDoc = Data & {
|
|
@@ -17744,6 +17765,7 @@ export declare namespace Service {
|
|
|
17744
17765
|
scoring_enabled?: boolean | boolean[];
|
|
17745
17766
|
completion_rules_enabled?: boolean | boolean[];
|
|
17746
17767
|
disabled?: boolean;
|
|
17768
|
+
client_can_view_template?: boolean;
|
|
17747
17769
|
};
|
|
17748
17770
|
interface Result extends DefaultPaginationResult {
|
|
17749
17771
|
data: PopulatedDoc[];
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -4621,6 +4621,18 @@ export default class Repzo {
|
|
|
4621
4621
|
);
|
|
4622
4622
|
return res;
|
|
4623
4623
|
},
|
|
4624
|
+
patch: async (
|
|
4625
|
+
params: Service.Approval.Patch.Params,
|
|
4626
|
+
body: Service.Approval.Patch.Body,
|
|
4627
|
+
): Promise<Service.Approval.Patch.Result> => {
|
|
4628
|
+
let res: Service.Approval.Patch.Result = await this._patch(
|
|
4629
|
+
this.svAPIEndpoint,
|
|
4630
|
+
this.approval._path,
|
|
4631
|
+
body,
|
|
4632
|
+
params,
|
|
4633
|
+
);
|
|
4634
|
+
return res;
|
|
4635
|
+
},
|
|
4624
4636
|
remove: async (
|
|
4625
4637
|
id: Service.Approval.Remove.ID,
|
|
4626
4638
|
): Promise<Service.Approval.Remove.Result> => {
|
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}`;
|
|
@@ -8806,6 +8810,19 @@ export namespace Service {
|
|
|
8806
8810
|
export type Body = UpdateBody;
|
|
8807
8811
|
export type Result = Data;
|
|
8808
8812
|
}
|
|
8813
|
+
export namespace Patch {
|
|
8814
|
+
export type ID = string;
|
|
8815
|
+
export type Params = {
|
|
8816
|
+
bulkUpdatePositions?: boolean;
|
|
8817
|
+
[key: string]: any;
|
|
8818
|
+
};
|
|
8819
|
+
export type Body = { items: Pick<Data, "_id" | "position">[] };
|
|
8820
|
+
export type Result = {
|
|
8821
|
+
messages: string[];
|
|
8822
|
+
errors: any[];
|
|
8823
|
+
status: "success" | "failed" | "partial";
|
|
8824
|
+
};
|
|
8825
|
+
}
|
|
8809
8826
|
export namespace Remove {
|
|
8810
8827
|
export type ID = string;
|
|
8811
8828
|
export type Result = Data;
|
|
@@ -19781,6 +19798,7 @@ export namespace Service {
|
|
|
19781
19798
|
divisions: Division[];
|
|
19782
19799
|
company_namespace: string[];
|
|
19783
19800
|
print_settings?: PrintSettings;
|
|
19801
|
+
client_can_view_template: boolean;
|
|
19784
19802
|
createdAt: Date;
|
|
19785
19803
|
updatedAt: Date;
|
|
19786
19804
|
}
|
|
@@ -19799,6 +19817,7 @@ export namespace Service {
|
|
|
19799
19817
|
divisions: Division[];
|
|
19800
19818
|
company_namespace?: string[];
|
|
19801
19819
|
print_settings?: PrintSettings;
|
|
19820
|
+
client_can_view_template?: boolean;
|
|
19802
19821
|
}
|
|
19803
19822
|
export type UpdateBody = Partial<Data>;
|
|
19804
19823
|
|
|
@@ -19830,6 +19849,7 @@ export namespace Service {
|
|
|
19830
19849
|
scoring_enabled?: boolean | boolean[];
|
|
19831
19850
|
completion_rules_enabled?: boolean | boolean[];
|
|
19832
19851
|
disabled?: boolean;
|
|
19852
|
+
client_can_view_template?: boolean;
|
|
19833
19853
|
};
|
|
19834
19854
|
export interface Result extends DefaultPaginationResult {
|
|
19835
19855
|
data: PopulatedDoc[];
|