repzo 1.0.124 → 1.0.126
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 +54 -0
- package/lib/index.js +105 -0
- package/lib/types/index.d.ts +179 -0
- package/package.json +1 -1
- package/src/index.ts +142 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media.yaml +345 -0
- package/src/oas/pricelist-item.yaml +369 -0
- package/src/oas/pricelist.yaml +287 -0
- package/src/oas/product-group.yaml +278 -0
- package/src/oas/product.yaml +578 -0
- package/src/oas/rep.yaml +410 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/subcategory.yaml +355 -0
- package/src/oas/tag.yaml +272 -0
- package/src/oas/tax.yaml +303 -0
- package/src/oas/team.yaml +268 -0
- package/src/oas/variant.yaml +373 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/types/index.ts +188 -0
- package/test.ts +2 -0
package/lib/index.d.ts
CHANGED
|
@@ -94,6 +94,9 @@ export default class Repzo {
|
|
|
94
94
|
readonly ASSET_UNIT: "asset-unit";
|
|
95
95
|
readonly WORKORDER_PORTAL: "workorder-portal";
|
|
96
96
|
readonly APPROVAL: "approvals";
|
|
97
|
+
readonly ACTIVITY_FEEDBACK: "activity-feedback";
|
|
98
|
+
readonly ACTIVITY_FEEDBACKV2: "activity-feedback-v2";
|
|
99
|
+
readonly FEEDBACK_OPTION: "feedback-options";
|
|
97
100
|
};
|
|
98
101
|
private _fetch;
|
|
99
102
|
private _create;
|
|
@@ -733,6 +736,57 @@ export default class Repzo {
|
|
|
733
736
|
body: Service.Visit.Update.Body
|
|
734
737
|
) => Promise<Service.Visit.Update.Result>;
|
|
735
738
|
};
|
|
739
|
+
activityFeedback: {
|
|
740
|
+
_path: "activity-feedback";
|
|
741
|
+
find: (
|
|
742
|
+
params?: Service.ActivityFeedback.Find.Params
|
|
743
|
+
) => Promise<Service.ActivityFeedback.Find.Result>;
|
|
744
|
+
get: (
|
|
745
|
+
id: Service.ActivityFeedback.Get.ID,
|
|
746
|
+
params?: Service.ActivityFeedback.Get.Params
|
|
747
|
+
) => Promise<Service.ActivityFeedback.Get.Result>;
|
|
748
|
+
create: (
|
|
749
|
+
body: Service.ActivityFeedback.Create.Body
|
|
750
|
+
) => Promise<Service.ActivityFeedback.Create.Result>;
|
|
751
|
+
update: (
|
|
752
|
+
id: Service.ActivityFeedback.Update.ID,
|
|
753
|
+
body: Service.ActivityFeedback.Update.Body
|
|
754
|
+
) => Promise<Service.ActivityFeedback.Update.Result>;
|
|
755
|
+
};
|
|
756
|
+
activityFeedbackV2: {
|
|
757
|
+
_path: "activity-feedback-v2";
|
|
758
|
+
find: (
|
|
759
|
+
params?: Service.ActivityFeedbackV2.Find.Params
|
|
760
|
+
) => Promise<Service.ActivityFeedbackV2.Find.Result>;
|
|
761
|
+
get: (
|
|
762
|
+
id: Service.ActivityFeedbackV2.Get.ID,
|
|
763
|
+
params?: Service.ActivityFeedbackV2.Get.Params
|
|
764
|
+
) => Promise<Service.ActivityFeedbackV2.Get.Result>;
|
|
765
|
+
create: (
|
|
766
|
+
body: Service.ActivityFeedbackV2.Create.Body
|
|
767
|
+
) => Promise<Service.ActivityFeedbackV2.Create.Result>;
|
|
768
|
+
update: (
|
|
769
|
+
id: Service.ActivityFeedbackV2.Update.ID,
|
|
770
|
+
body: Service.ActivityFeedbackV2.Update.Body
|
|
771
|
+
) => Promise<Service.ActivityFeedbackV2.Update.Result>;
|
|
772
|
+
};
|
|
773
|
+
feedbackOption: {
|
|
774
|
+
_path: "feedback-options";
|
|
775
|
+
find: (
|
|
776
|
+
params?: Service.FeedbackOption.Find.Params
|
|
777
|
+
) => Promise<Service.FeedbackOption.Find.Result>;
|
|
778
|
+
get: (
|
|
779
|
+
id: Service.FeedbackOption.Get.ID,
|
|
780
|
+
params?: Service.FeedbackOption.Get.Params
|
|
781
|
+
) => Promise<Service.FeedbackOption.Get.Result>;
|
|
782
|
+
create: (
|
|
783
|
+
body: Service.FeedbackOption.Create.Body
|
|
784
|
+
) => Promise<Service.FeedbackOption.Create.Result>;
|
|
785
|
+
update: (
|
|
786
|
+
id: Service.FeedbackOption.Update.ID,
|
|
787
|
+
body: Service.FeedbackOption.Update.Body
|
|
788
|
+
) => Promise<Service.FeedbackOption.Update.Result>;
|
|
789
|
+
};
|
|
736
790
|
invoice: {
|
|
737
791
|
_path: "fullinvoices";
|
|
738
792
|
find: (
|
package/lib/index.js
CHANGED
|
@@ -83,6 +83,9 @@ export default class Repzo {
|
|
|
83
83
|
ASSET_UNIT: "asset-unit",
|
|
84
84
|
WORKORDER_PORTAL: "workorder-portal",
|
|
85
85
|
APPROVAL: "approvals",
|
|
86
|
+
ACTIVITY_FEEDBACK: "activity-feedback",
|
|
87
|
+
ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
|
|
88
|
+
FEEDBACK_OPTION: "feedback-options",
|
|
86
89
|
};
|
|
87
90
|
this.END_POINTS = this._end_points;
|
|
88
91
|
this.client = {
|
|
@@ -1423,6 +1426,108 @@ export default class Repzo {
|
|
|
1423
1426
|
return res;
|
|
1424
1427
|
},
|
|
1425
1428
|
};
|
|
1429
|
+
this.activityFeedback = {
|
|
1430
|
+
_path: this._end_points.ACTIVITY_FEEDBACK,
|
|
1431
|
+
find: async (params) => {
|
|
1432
|
+
let res = await this._fetch(
|
|
1433
|
+
this.svAPIEndpoint,
|
|
1434
|
+
this.activityFeedback._path,
|
|
1435
|
+
params
|
|
1436
|
+
);
|
|
1437
|
+
return res;
|
|
1438
|
+
},
|
|
1439
|
+
get: async (id, params) => {
|
|
1440
|
+
return await this._fetch(
|
|
1441
|
+
this.svAPIEndpoint,
|
|
1442
|
+
this.activityFeedback._path + `/${id}`,
|
|
1443
|
+
params
|
|
1444
|
+
);
|
|
1445
|
+
},
|
|
1446
|
+
create: async (body) => {
|
|
1447
|
+
let res = await this._create(
|
|
1448
|
+
this.svAPIEndpoint,
|
|
1449
|
+
this.activityFeedback._path,
|
|
1450
|
+
body
|
|
1451
|
+
);
|
|
1452
|
+
return res;
|
|
1453
|
+
},
|
|
1454
|
+
update: async (id, body) => {
|
|
1455
|
+
let res = await this._update(
|
|
1456
|
+
this.svAPIEndpoint,
|
|
1457
|
+
this.activityFeedback._path + `/${id}`,
|
|
1458
|
+
body
|
|
1459
|
+
);
|
|
1460
|
+
return res;
|
|
1461
|
+
},
|
|
1462
|
+
};
|
|
1463
|
+
this.activityFeedbackV2 = {
|
|
1464
|
+
_path: this._end_points.ACTIVITY_FEEDBACKV2,
|
|
1465
|
+
find: async (params) => {
|
|
1466
|
+
let res = await this._fetch(
|
|
1467
|
+
this.svAPIEndpoint,
|
|
1468
|
+
this.activityFeedbackV2._path,
|
|
1469
|
+
params
|
|
1470
|
+
);
|
|
1471
|
+
return res;
|
|
1472
|
+
},
|
|
1473
|
+
get: async (id, params) => {
|
|
1474
|
+
return await this._fetch(
|
|
1475
|
+
this.svAPIEndpoint,
|
|
1476
|
+
this.activityFeedbackV2._path + `/${id}`,
|
|
1477
|
+
params
|
|
1478
|
+
);
|
|
1479
|
+
},
|
|
1480
|
+
create: async (body) => {
|
|
1481
|
+
let res = await this._create(
|
|
1482
|
+
this.svAPIEndpoint,
|
|
1483
|
+
this.activityFeedbackV2._path,
|
|
1484
|
+
body
|
|
1485
|
+
);
|
|
1486
|
+
return res;
|
|
1487
|
+
},
|
|
1488
|
+
update: async (id, body) => {
|
|
1489
|
+
let res = await this._update(
|
|
1490
|
+
this.svAPIEndpoint,
|
|
1491
|
+
this.activityFeedbackV2._path + `/${id}`,
|
|
1492
|
+
body
|
|
1493
|
+
);
|
|
1494
|
+
return res;
|
|
1495
|
+
},
|
|
1496
|
+
};
|
|
1497
|
+
this.feedbackOption = {
|
|
1498
|
+
_path: this._end_points.FEEDBACK_OPTION,
|
|
1499
|
+
find: async (params) => {
|
|
1500
|
+
let res = await this._fetch(
|
|
1501
|
+
this.svAPIEndpoint,
|
|
1502
|
+
this.feedbackOption._path,
|
|
1503
|
+
params
|
|
1504
|
+
);
|
|
1505
|
+
return res;
|
|
1506
|
+
},
|
|
1507
|
+
get: async (id, params) => {
|
|
1508
|
+
return await this._fetch(
|
|
1509
|
+
this.svAPIEndpoint,
|
|
1510
|
+
this.feedbackOption._path + `/${id}`,
|
|
1511
|
+
params
|
|
1512
|
+
);
|
|
1513
|
+
},
|
|
1514
|
+
create: async (body) => {
|
|
1515
|
+
let res = await this._create(
|
|
1516
|
+
this.svAPIEndpoint,
|
|
1517
|
+
this.feedbackOption._path,
|
|
1518
|
+
body
|
|
1519
|
+
);
|
|
1520
|
+
return res;
|
|
1521
|
+
},
|
|
1522
|
+
update: async (id, body) => {
|
|
1523
|
+
let res = await this._update(
|
|
1524
|
+
this.svAPIEndpoint,
|
|
1525
|
+
this.feedbackOption._path + `/${id}`,
|
|
1526
|
+
body
|
|
1527
|
+
);
|
|
1528
|
+
return res;
|
|
1529
|
+
},
|
|
1530
|
+
};
|
|
1426
1531
|
this.invoice = {
|
|
1427
1532
|
_path: this._end_points.INVOICE,
|
|
1428
1533
|
find: async (params) => {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -4852,6 +4852,185 @@ export declare namespace Service {
|
|
|
4852
4852
|
}
|
|
4853
4853
|
export {};
|
|
4854
4854
|
}
|
|
4855
|
+
namespace ActivityFeedback {
|
|
4856
|
+
interface ActivityFeedbackSchema {
|
|
4857
|
+
_id: string;
|
|
4858
|
+
route?: string;
|
|
4859
|
+
visit_id: string;
|
|
4860
|
+
visit_UUID: string;
|
|
4861
|
+
teams?: string[];
|
|
4862
|
+
company_namespace: string[];
|
|
4863
|
+
createdAt: Date;
|
|
4864
|
+
updatedAt: Date;
|
|
4865
|
+
}
|
|
4866
|
+
interface CreateBody {
|
|
4867
|
+
route?: string;
|
|
4868
|
+
visit_id: string;
|
|
4869
|
+
visit_UUID: string;
|
|
4870
|
+
teams?: string[];
|
|
4871
|
+
}
|
|
4872
|
+
interface UpdateBody {
|
|
4873
|
+
route?: string;
|
|
4874
|
+
visit_id?: string;
|
|
4875
|
+
visit_UUID?: string;
|
|
4876
|
+
teams?: string[];
|
|
4877
|
+
}
|
|
4878
|
+
namespace Find {
|
|
4879
|
+
type Params = DefaultPaginationQueryParams & {
|
|
4880
|
+
route?: string;
|
|
4881
|
+
teams?: string[];
|
|
4882
|
+
visit_id?: string;
|
|
4883
|
+
from_createdAt?: number;
|
|
4884
|
+
to_createdAt?: number;
|
|
4885
|
+
from__id?: string;
|
|
4886
|
+
to__id?: string;
|
|
4887
|
+
[key: string]: any;
|
|
4888
|
+
sortBy?: {
|
|
4889
|
+
field: "_id";
|
|
4890
|
+
type: "asc" | "desc";
|
|
4891
|
+
}[];
|
|
4892
|
+
};
|
|
4893
|
+
interface Result extends DefaultPaginationResult {
|
|
4894
|
+
data: ActivityFeedbackSchema[];
|
|
4895
|
+
absolute_total: number;
|
|
4896
|
+
page_total: number;
|
|
4897
|
+
}
|
|
4898
|
+
}
|
|
4899
|
+
namespace Create {
|
|
4900
|
+
type Body = CreateBody;
|
|
4901
|
+
type Result = ActivityFeedbackSchema;
|
|
4902
|
+
}
|
|
4903
|
+
namespace Get {
|
|
4904
|
+
type ID = string;
|
|
4905
|
+
interface Params {}
|
|
4906
|
+
type Result = ActivityFeedbackSchema;
|
|
4907
|
+
}
|
|
4908
|
+
namespace Update {
|
|
4909
|
+
type ID = string;
|
|
4910
|
+
type Body = UpdateBody;
|
|
4911
|
+
type Result = ActivityFeedbackSchema;
|
|
4912
|
+
}
|
|
4913
|
+
}
|
|
4914
|
+
namespace ActivityFeedbackV2 {
|
|
4915
|
+
export interface ActivityFeedbackV2Schema {
|
|
4916
|
+
_id: string;
|
|
4917
|
+
route?: string;
|
|
4918
|
+
visit_id: string;
|
|
4919
|
+
visit_UUID: string;
|
|
4920
|
+
teams?: string[];
|
|
4921
|
+
company_namespace: string[];
|
|
4922
|
+
createdAt: Date;
|
|
4923
|
+
updatedAt: Date;
|
|
4924
|
+
}
|
|
4925
|
+
export interface CreateBody {
|
|
4926
|
+
route?: string;
|
|
4927
|
+
visit_id: string;
|
|
4928
|
+
visit_UUID: string;
|
|
4929
|
+
teams?: string[];
|
|
4930
|
+
}
|
|
4931
|
+
export interface UpdateBody {
|
|
4932
|
+
route?: string;
|
|
4933
|
+
visit_id?: string;
|
|
4934
|
+
visit_UUID?: string;
|
|
4935
|
+
teams?: string[];
|
|
4936
|
+
}
|
|
4937
|
+
export type PopulatedKeys =
|
|
4938
|
+
| "teams"
|
|
4939
|
+
| "route"
|
|
4940
|
+
| "visit_id"
|
|
4941
|
+
| "feed_back_option";
|
|
4942
|
+
type ActivityFeedbackV2SchemaWithPopulatedKeys = ActivityFeedbackV2Schema & {
|
|
4943
|
+
teams?: string[] | Team.TeamSchema[];
|
|
4944
|
+
route?: string | Route.RouteSchema;
|
|
4945
|
+
visit_id?: string | Visit.VisitSchema;
|
|
4946
|
+
feed_back_option?: string;
|
|
4947
|
+
};
|
|
4948
|
+
export namespace Find {
|
|
4949
|
+
type Params = DefaultPaginationQueryParams & {
|
|
4950
|
+
route?: string;
|
|
4951
|
+
teams?: string[];
|
|
4952
|
+
visit_id?: string;
|
|
4953
|
+
from_createdAt?: number;
|
|
4954
|
+
to_createdAt?: number;
|
|
4955
|
+
from__id?: string;
|
|
4956
|
+
to__id?: string;
|
|
4957
|
+
populatedKeys?: PopulatedKeys | PopulatedKeys[];
|
|
4958
|
+
[key: string]: any;
|
|
4959
|
+
sortBy?: {
|
|
4960
|
+
field: "_id";
|
|
4961
|
+
type: "asc" | "desc";
|
|
4962
|
+
}[];
|
|
4963
|
+
};
|
|
4964
|
+
interface Result extends DefaultPaginationResult {
|
|
4965
|
+
data: ActivityFeedbackV2SchemaWithPopulatedKeys[];
|
|
4966
|
+
absolute_total: number;
|
|
4967
|
+
page_total: number;
|
|
4968
|
+
}
|
|
4969
|
+
}
|
|
4970
|
+
export namespace Create {
|
|
4971
|
+
type Body = CreateBody;
|
|
4972
|
+
type Result = ActivityFeedbackV2Schema;
|
|
4973
|
+
}
|
|
4974
|
+
export namespace Get {
|
|
4975
|
+
type ID = string;
|
|
4976
|
+
interface Params {}
|
|
4977
|
+
type Result = ActivityFeedbackV2SchemaWithPopulatedKeys;
|
|
4978
|
+
}
|
|
4979
|
+
export namespace Update {
|
|
4980
|
+
type ID = string;
|
|
4981
|
+
type Body = UpdateBody;
|
|
4982
|
+
type Result = ActivityFeedbackV2Schema;
|
|
4983
|
+
}
|
|
4984
|
+
export {};
|
|
4985
|
+
}
|
|
4986
|
+
namespace FeedbackOption {
|
|
4987
|
+
interface FeedbackOptionSchema {
|
|
4988
|
+
_id: string;
|
|
4989
|
+
label: string;
|
|
4990
|
+
score?: number;
|
|
4991
|
+
disabled: boolean;
|
|
4992
|
+
company_namespace: string[];
|
|
4993
|
+
createdAt: Date;
|
|
4994
|
+
updatedAt: Date;
|
|
4995
|
+
}
|
|
4996
|
+
interface CreateBody {
|
|
4997
|
+
label: string;
|
|
4998
|
+
score?: number;
|
|
4999
|
+
}
|
|
5000
|
+
interface UpdateBody {
|
|
5001
|
+
label: string;
|
|
5002
|
+
score?: number;
|
|
5003
|
+
disabled?: boolean;
|
|
5004
|
+
}
|
|
5005
|
+
namespace Find {
|
|
5006
|
+
type Params = DefaultPaginationQueryParams & {
|
|
5007
|
+
label?: string;
|
|
5008
|
+
score?: number;
|
|
5009
|
+
deleted_at?: number;
|
|
5010
|
+
disabled?: boolean;
|
|
5011
|
+
[key: string]: any;
|
|
5012
|
+
};
|
|
5013
|
+
interface Result extends DefaultPaginationResult {
|
|
5014
|
+
data: FeedbackOptionSchema[];
|
|
5015
|
+
absolute_total: number;
|
|
5016
|
+
page_total: number;
|
|
5017
|
+
}
|
|
5018
|
+
}
|
|
5019
|
+
namespace Create {
|
|
5020
|
+
type Body = CreateBody;
|
|
5021
|
+
type Result = FeedbackOptionSchema;
|
|
5022
|
+
}
|
|
5023
|
+
namespace Get {
|
|
5024
|
+
type ID = string;
|
|
5025
|
+
interface Params {}
|
|
5026
|
+
type Result = FeedbackOptionSchema;
|
|
5027
|
+
}
|
|
5028
|
+
namespace Update {
|
|
5029
|
+
type ID = string;
|
|
5030
|
+
type Body = UpdateBody;
|
|
5031
|
+
type Result = FeedbackOptionSchema;
|
|
5032
|
+
}
|
|
5033
|
+
}
|
|
4855
5034
|
namespace Workorder {
|
|
4856
5035
|
export interface WorkorderSchema {
|
|
4857
5036
|
_id: StringId;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -118,6 +118,9 @@ export default class Repzo {
|
|
|
118
118
|
ASSET_UNIT: "asset-unit",
|
|
119
119
|
WORKORDER_PORTAL: "workorder-portal",
|
|
120
120
|
APPROVAL: "approvals",
|
|
121
|
+
ACTIVITY_FEEDBACK: "activity-feedback",
|
|
122
|
+
ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
|
|
123
|
+
FEEDBACK_OPTION: "feedback-options",
|
|
121
124
|
} as const;
|
|
122
125
|
public END_POINTS = this._end_points;
|
|
123
126
|
private async _fetch(baseUrl: string, path: string, params?: Params) {
|
|
@@ -2013,6 +2016,145 @@ export default class Repzo {
|
|
|
2013
2016
|
return res;
|
|
2014
2017
|
},
|
|
2015
2018
|
};
|
|
2019
|
+
|
|
2020
|
+
activityFeedback = {
|
|
2021
|
+
_path: this._end_points.ACTIVITY_FEEDBACK,
|
|
2022
|
+
find: async (
|
|
2023
|
+
params?: Service.ActivityFeedback.Find.Params
|
|
2024
|
+
): Promise<Service.ActivityFeedback.Find.Result> => {
|
|
2025
|
+
let res: Service.ActivityFeedback.Find.Result = await this._fetch(
|
|
2026
|
+
this.svAPIEndpoint,
|
|
2027
|
+
this.activityFeedback._path,
|
|
2028
|
+
params
|
|
2029
|
+
);
|
|
2030
|
+
return res;
|
|
2031
|
+
},
|
|
2032
|
+
get: async (
|
|
2033
|
+
id: Service.ActivityFeedback.Get.ID,
|
|
2034
|
+
params?: Service.ActivityFeedback.Get.Params
|
|
2035
|
+
): Promise<Service.ActivityFeedback.Get.Result> => {
|
|
2036
|
+
return await this._fetch(
|
|
2037
|
+
this.svAPIEndpoint,
|
|
2038
|
+
this.activityFeedback._path + `/${id}`,
|
|
2039
|
+
params
|
|
2040
|
+
);
|
|
2041
|
+
},
|
|
2042
|
+
create: async (
|
|
2043
|
+
body: Service.ActivityFeedback.Create.Body
|
|
2044
|
+
): Promise<Service.ActivityFeedback.Create.Result> => {
|
|
2045
|
+
let res = await this._create(
|
|
2046
|
+
this.svAPIEndpoint,
|
|
2047
|
+
this.activityFeedback._path,
|
|
2048
|
+
body
|
|
2049
|
+
);
|
|
2050
|
+
return res;
|
|
2051
|
+
},
|
|
2052
|
+
|
|
2053
|
+
update: async (
|
|
2054
|
+
id: Service.ActivityFeedback.Update.ID,
|
|
2055
|
+
body: Service.ActivityFeedback.Update.Body
|
|
2056
|
+
): Promise<Service.ActivityFeedback.Update.Result> => {
|
|
2057
|
+
let res: Service.ActivityFeedback.Update.Result = await this._update(
|
|
2058
|
+
this.svAPIEndpoint,
|
|
2059
|
+
this.activityFeedback._path + `/${id}`,
|
|
2060
|
+
body
|
|
2061
|
+
);
|
|
2062
|
+
return res;
|
|
2063
|
+
},
|
|
2064
|
+
};
|
|
2065
|
+
|
|
2066
|
+
activityFeedbackV2 = {
|
|
2067
|
+
_path: this._end_points.ACTIVITY_FEEDBACKV2,
|
|
2068
|
+
find: async (
|
|
2069
|
+
params?: Service.ActivityFeedbackV2.Find.Params
|
|
2070
|
+
): Promise<Service.ActivityFeedbackV2.Find.Result> => {
|
|
2071
|
+
let res: Service.ActivityFeedbackV2.Find.Result = await this._fetch(
|
|
2072
|
+
this.svAPIEndpoint,
|
|
2073
|
+
this.activityFeedbackV2._path,
|
|
2074
|
+
params
|
|
2075
|
+
);
|
|
2076
|
+
return res;
|
|
2077
|
+
},
|
|
2078
|
+
get: async (
|
|
2079
|
+
id: Service.ActivityFeedbackV2.Get.ID,
|
|
2080
|
+
params?: Service.ActivityFeedbackV2.Get.Params
|
|
2081
|
+
): Promise<Service.ActivityFeedbackV2.Get.Result> => {
|
|
2082
|
+
return await this._fetch(
|
|
2083
|
+
this.svAPIEndpoint,
|
|
2084
|
+
this.activityFeedbackV2._path + `/${id}`,
|
|
2085
|
+
params
|
|
2086
|
+
);
|
|
2087
|
+
},
|
|
2088
|
+
create: async (
|
|
2089
|
+
body: Service.ActivityFeedbackV2.Create.Body
|
|
2090
|
+
): Promise<Service.ActivityFeedbackV2.Create.Result> => {
|
|
2091
|
+
let res = await this._create(
|
|
2092
|
+
this.svAPIEndpoint,
|
|
2093
|
+
this.activityFeedbackV2._path,
|
|
2094
|
+
body
|
|
2095
|
+
);
|
|
2096
|
+
return res;
|
|
2097
|
+
},
|
|
2098
|
+
|
|
2099
|
+
update: async (
|
|
2100
|
+
id: Service.ActivityFeedbackV2.Update.ID,
|
|
2101
|
+
body: Service.ActivityFeedbackV2.Update.Body
|
|
2102
|
+
): Promise<Service.ActivityFeedbackV2.Update.Result> => {
|
|
2103
|
+
let res: Service.ActivityFeedbackV2.Update.Result = await this._update(
|
|
2104
|
+
this.svAPIEndpoint,
|
|
2105
|
+
this.activityFeedbackV2._path + `/${id}`,
|
|
2106
|
+
body
|
|
2107
|
+
);
|
|
2108
|
+
return res;
|
|
2109
|
+
},
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
feedbackOption = {
|
|
2113
|
+
_path: this._end_points.FEEDBACK_OPTION,
|
|
2114
|
+
find: async (
|
|
2115
|
+
params?: Service.FeedbackOption.Find.Params
|
|
2116
|
+
): Promise<Service.FeedbackOption.Find.Result> => {
|
|
2117
|
+
let res: Service.FeedbackOption.Find.Result = await this._fetch(
|
|
2118
|
+
this.svAPIEndpoint,
|
|
2119
|
+
this.feedbackOption._path,
|
|
2120
|
+
params
|
|
2121
|
+
);
|
|
2122
|
+
return res;
|
|
2123
|
+
},
|
|
2124
|
+
get: async (
|
|
2125
|
+
id: Service.FeedbackOption.Get.ID,
|
|
2126
|
+
params?: Service.FeedbackOption.Get.Params
|
|
2127
|
+
): Promise<Service.FeedbackOption.Get.Result> => {
|
|
2128
|
+
return await this._fetch(
|
|
2129
|
+
this.svAPIEndpoint,
|
|
2130
|
+
this.feedbackOption._path + `/${id}`,
|
|
2131
|
+
params
|
|
2132
|
+
);
|
|
2133
|
+
},
|
|
2134
|
+
create: async (
|
|
2135
|
+
body: Service.FeedbackOption.Create.Body
|
|
2136
|
+
): Promise<Service.FeedbackOption.Create.Result> => {
|
|
2137
|
+
let res = await this._create(
|
|
2138
|
+
this.svAPIEndpoint,
|
|
2139
|
+
this.feedbackOption._path,
|
|
2140
|
+
body
|
|
2141
|
+
);
|
|
2142
|
+
return res;
|
|
2143
|
+
},
|
|
2144
|
+
|
|
2145
|
+
update: async (
|
|
2146
|
+
id: Service.FeedbackOption.Update.ID,
|
|
2147
|
+
body: Service.FeedbackOption.Update.Body
|
|
2148
|
+
): Promise<Service.FeedbackOption.Update.Result> => {
|
|
2149
|
+
let res: Service.FeedbackOption.Update.Result = await this._update(
|
|
2150
|
+
this.svAPIEndpoint,
|
|
2151
|
+
this.feedbackOption._path + `/${id}`,
|
|
2152
|
+
body
|
|
2153
|
+
);
|
|
2154
|
+
return res;
|
|
2155
|
+
},
|
|
2156
|
+
};
|
|
2157
|
+
|
|
2016
2158
|
invoice = {
|
|
2017
2159
|
_path: this._end_points.INVOICE,
|
|
2018
2160
|
find: async (
|