@kernelminds/scailo-sdk 0.0.8 → 0.0.10

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.
Files changed (55) hide show
  1. package/lib/cjs/index.js +68 -0
  2. package/lib/cjs/src/base.scailo_pb.js +28 -0
  3. package/lib/cjs/src/proforma_invoices.scailo_connect.js +573 -0
  4. package/lib/cjs/src/proforma_invoices.scailo_pb.js +2220 -0
  5. package/lib/cjs/src/supply_offers.scailo_connect.js +563 -0
  6. package/lib/cjs/src/supply_offers.scailo_pb.js +2246 -0
  7. package/lib/cjs/src/vendors.scailo_connect.js +11 -0
  8. package/lib/cjs/src/vendors.scailo_pb.js +95 -1
  9. package/lib/cjs/src/workflows_rules.scailo_pb.js +14 -0
  10. package/lib/cjs/types/index.d.ts +62 -0
  11. package/lib/cjs/types/index.d.ts.map +1 -1
  12. package/lib/cjs/types/src/base.scailo_pb.d.ts +25 -1
  13. package/lib/cjs/types/src/base.scailo_pb.d.ts.map +1 -1
  14. package/lib/cjs/types/src/proforma_invoices.scailo_connect.d.ts +567 -0
  15. package/lib/cjs/types/src/proforma_invoices.scailo_connect.d.ts.map +1 -0
  16. package/lib/cjs/types/src/proforma_invoices.scailo_pb.d.ts +1734 -0
  17. package/lib/cjs/types/src/proforma_invoices.scailo_pb.d.ts.map +1 -0
  18. package/lib/cjs/types/src/supply_offers.scailo_connect.d.ts +557 -0
  19. package/lib/cjs/types/src/supply_offers.scailo_connect.d.ts.map +1 -0
  20. package/lib/cjs/types/src/supply_offers.scailo_pb.d.ts +1767 -0
  21. package/lib/cjs/types/src/supply_offers.scailo_pb.d.ts.map +1 -0
  22. package/lib/cjs/types/src/vendors.scailo_connect.d.ts +12 -1
  23. package/lib/cjs/types/src/vendors.scailo_connect.d.ts.map +1 -1
  24. package/lib/cjs/types/src/vendors.scailo_pb.d.ts +68 -0
  25. package/lib/cjs/types/src/vendors.scailo_pb.d.ts.map +1 -1
  26. package/lib/cjs/types/src/workflows_rules.scailo_pb.d.ts +12 -0
  27. package/lib/cjs/types/src/workflows_rules.scailo_pb.d.ts.map +1 -1
  28. package/lib/esm/index.js +68 -0
  29. package/lib/esm/src/base.scailo_pb.js +28 -0
  30. package/lib/esm/src/proforma_invoices.scailo_connect.js +573 -0
  31. package/lib/esm/src/proforma_invoices.scailo_pb.js +2244 -0
  32. package/lib/esm/src/supply_offers.scailo_connect.js +563 -0
  33. package/lib/esm/src/supply_offers.scailo_pb.js +2270 -0
  34. package/lib/esm/src/vendors.scailo_connect.js +11 -0
  35. package/lib/esm/src/vendors.scailo_pb.js +101 -1
  36. package/lib/esm/src/workflows_rules.scailo_pb.js +14 -0
  37. package/lib/esm/types/index.d.ts +62 -0
  38. package/lib/esm/types/index.d.ts.map +1 -1
  39. package/lib/esm/types/src/base.scailo_pb.d.ts +25 -1
  40. package/lib/esm/types/src/base.scailo_pb.d.ts.map +1 -1
  41. package/lib/esm/types/src/proforma_invoices.scailo_connect.d.ts +567 -0
  42. package/lib/esm/types/src/proforma_invoices.scailo_connect.d.ts.map +1 -0
  43. package/lib/esm/types/src/proforma_invoices.scailo_pb.d.ts +1734 -0
  44. package/lib/esm/types/src/proforma_invoices.scailo_pb.d.ts.map +1 -0
  45. package/lib/esm/types/src/supply_offers.scailo_connect.d.ts +557 -0
  46. package/lib/esm/types/src/supply_offers.scailo_connect.d.ts.map +1 -0
  47. package/lib/esm/types/src/supply_offers.scailo_pb.d.ts +1767 -0
  48. package/lib/esm/types/src/supply_offers.scailo_pb.d.ts.map +1 -0
  49. package/lib/esm/types/src/vendors.scailo_connect.d.ts +12 -1
  50. package/lib/esm/types/src/vendors.scailo_connect.d.ts.map +1 -1
  51. package/lib/esm/types/src/vendors.scailo_pb.d.ts +68 -0
  52. package/lib/esm/types/src/vendors.scailo_pb.d.ts.map +1 -1
  53. package/lib/esm/types/src/workflows_rules.scailo_pb.d.ts +12 -0
  54. package/lib/esm/types/src/workflows_rules.scailo_pb.d.ts.map +1 -1
  55. package/package.json +1 -1
@@ -0,0 +1,2244 @@
1
+ "use strict";
2
+ // @generated by protoc-gen-es v1.5.1 with parameter "target=ts"
3
+ // @generated from file proforma_invoices.scailo.proto (package Scailo, syntax proto3)
4
+ /* eslint-disable */
5
+ // @ts-nocheck
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ProformaInvoicesServicePaginatedItemsResponse = exports.ProformaInvoiceItemsSearchRequest = exports.ProformaInvoicesServiceSearchAllReq = exports.ProformaInvoicesServiceCountReq = exports.ProformaInvoicesServiceFilterReq = exports.ProformaInvoicesServicePaginationResponse = exports.ProformaInvoicesServicePaginationReq = exports.ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest = exports.ProformaInvoiceItemProspectiveInfoRequest = exports.ProformaInvoiceItemHistoryRequest = exports.ProformaInvoiceItemsList = exports.ProformaInvoicesList = exports.ProformaInvoiceItem = exports.ProformaInvoicesServiceItemUpdateRequest = exports.ProformaInvoicesServiceItemCreateRequest = exports.ProformaInvoice = exports.ProformaInvoiceAncillaryParameters = exports.ProformaInvoicesServiceAutofillRequest = exports.ProformaInvoicesServiceUpdateRequest = exports.ProformaInvoicesServiceCreateRequest = exports.PROFORMA_INVOICE_ITEM_STATUS = exports.PROFORMA_INVOICE_ITEM_SORT_KEY = exports.PROFORMA_INVOICE_BILLING_STATUS = exports.PROFORMA_INVOICE_SORT_KEY = void 0;
8
+ const protobuf_1 = require("@bufbuild/protobuf");
9
+ const forms_fields_data_scailo_pb_js_1 = require("./forms_fields_data.scailo_pb.js");
10
+ const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
11
+ /**
12
+ *
13
+ * Describes the available sort keys
14
+ *
15
+ * @generated from enum Scailo.PROFORMA_INVOICE_SORT_KEY
16
+ */
17
+ var PROFORMA_INVOICE_SORT_KEY;
18
+ (function (PROFORMA_INVOICE_SORT_KEY) {
19
+ /**
20
+ * Fetch ordered results by id
21
+ *
22
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_ID_UNSPECIFIED = 0;
23
+ */
24
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_ID_UNSPECIFIED"] = 0] = "PROFORMA_INVOICE_SORT_KEY_ID_UNSPECIFIED";
25
+ /**
26
+ * Fetch ordered results by the creation timestamp
27
+ *
28
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_CREATED_AT = 1;
29
+ */
30
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_CREATED_AT"] = 1] = "PROFORMA_INVOICE_SORT_KEY_CREATED_AT";
31
+ /**
32
+ * Fetch ordered results by the modified timestamp
33
+ *
34
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_MODIFIED_AT = 2;
35
+ */
36
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_MODIFIED_AT"] = 2] = "PROFORMA_INVOICE_SORT_KEY_MODIFIED_AT";
37
+ /**
38
+ * Fetch ordered results by the approved on timestamp
39
+ *
40
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_APPROVED_ON = 3;
41
+ */
42
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_APPROVED_ON"] = 3] = "PROFORMA_INVOICE_SORT_KEY_APPROVED_ON";
43
+ /**
44
+ * Fetch ordered results by the approved by field
45
+ *
46
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_APPROVED_BY = 4;
47
+ */
48
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_APPROVED_BY"] = 4] = "PROFORMA_INVOICE_SORT_KEY_APPROVED_BY";
49
+ /**
50
+ * Fetch ordered results by the approver's role ID
51
+ *
52
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_APPROVER_ROLE_ID = 5;
53
+ */
54
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_APPROVER_ROLE_ID"] = 5] = "PROFORMA_INVOICE_SORT_KEY_APPROVER_ROLE_ID";
55
+ /**
56
+ * Fetch ordered results by the approver's completed on timestamp
57
+ *
58
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_COMPLETED_ON = 6;
59
+ */
60
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_COMPLETED_ON"] = 6] = "PROFORMA_INVOICE_SORT_KEY_COMPLETED_ON";
61
+ /**
62
+ * Fetch ordered results by the reference ID
63
+ *
64
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_REFERENCE_ID = 10;
65
+ */
66
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_REFERENCE_ID"] = 10] = "PROFORMA_INVOICE_SORT_KEY_REFERENCE_ID";
67
+ /**
68
+ * Fetch ordered results by the final ref number
69
+ *
70
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_FINAL_REF_NUMBER = 11;
71
+ */
72
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_FINAL_REF_NUMBER"] = 11] = "PROFORMA_INVOICE_SORT_KEY_FINAL_REF_NUMBER";
73
+ /**
74
+ * Fetch ordered results by the amendment count
75
+ *
76
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_AMENDMENT_COUNT = 18;
77
+ */
78
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_AMENDMENT_COUNT"] = 18] = "PROFORMA_INVOICE_SORT_KEY_AMENDMENT_COUNT";
79
+ /**
80
+ * Fetch ordered results by the total value
81
+ *
82
+ * @generated from enum value: PROFORMA_INVOICE_SORT_KEY_TOTAL_VALUE = 30;
83
+ */
84
+ PROFORMA_INVOICE_SORT_KEY[PROFORMA_INVOICE_SORT_KEY["PROFORMA_INVOICE_SORT_KEY_TOTAL_VALUE"] = 30] = "PROFORMA_INVOICE_SORT_KEY_TOTAL_VALUE";
85
+ })(PROFORMA_INVOICE_SORT_KEY || (exports.PROFORMA_INVOICE_SORT_KEY = PROFORMA_INVOICE_SORT_KEY = {}));
86
+ // Retrieve enum metadata with: proto3.getEnumType(PROFORMA_INVOICE_SORT_KEY)
87
+ protobuf_1.proto3.util.setEnumType(PROFORMA_INVOICE_SORT_KEY, "Scailo.PROFORMA_INVOICE_SORT_KEY", [
88
+ { no: 0, name: "PROFORMA_INVOICE_SORT_KEY_ID_UNSPECIFIED" },
89
+ { no: 1, name: "PROFORMA_INVOICE_SORT_KEY_CREATED_AT" },
90
+ { no: 2, name: "PROFORMA_INVOICE_SORT_KEY_MODIFIED_AT" },
91
+ { no: 3, name: "PROFORMA_INVOICE_SORT_KEY_APPROVED_ON" },
92
+ { no: 4, name: "PROFORMA_INVOICE_SORT_KEY_APPROVED_BY" },
93
+ { no: 5, name: "PROFORMA_INVOICE_SORT_KEY_APPROVER_ROLE_ID" },
94
+ { no: 6, name: "PROFORMA_INVOICE_SORT_KEY_COMPLETED_ON" },
95
+ { no: 10, name: "PROFORMA_INVOICE_SORT_KEY_REFERENCE_ID" },
96
+ { no: 11, name: "PROFORMA_INVOICE_SORT_KEY_FINAL_REF_NUMBER" },
97
+ { no: 18, name: "PROFORMA_INVOICE_SORT_KEY_AMENDMENT_COUNT" },
98
+ { no: 30, name: "PROFORMA_INVOICE_SORT_KEY_TOTAL_VALUE" },
99
+ ]);
100
+ /**
101
+ *
102
+ * Describes the available billing statuses
103
+ *
104
+ * @generated from enum Scailo.PROFORMA_INVOICE_BILLING_STATUS
105
+ */
106
+ var PROFORMA_INVOICE_BILLING_STATUS;
107
+ (function (PROFORMA_INVOICE_BILLING_STATUS) {
108
+ /**
109
+ * Any billing status
110
+ *
111
+ * @generated from enum value: PROFORMA_INVOICE_BILLING_STATUS_ANY_UNSPECIFIED = 0;
112
+ */
113
+ PROFORMA_INVOICE_BILLING_STATUS[PROFORMA_INVOICE_BILLING_STATUS["PROFORMA_INVOICE_BILLING_STATUS_ANY_UNSPECIFIED"] = 0] = "PROFORMA_INVOICE_BILLING_STATUS_ANY_UNSPECIFIED";
114
+ /**
115
+ * Goods dispatch is billed
116
+ *
117
+ * @generated from enum value: PROFORMA_INVOICE_BILLING_STATUS_BILLED = 1;
118
+ */
119
+ PROFORMA_INVOICE_BILLING_STATUS[PROFORMA_INVOICE_BILLING_STATUS["PROFORMA_INVOICE_BILLING_STATUS_BILLED"] = 1] = "PROFORMA_INVOICE_BILLING_STATUS_BILLED";
120
+ /**
121
+ * Goods dispatch is unbilled
122
+ *
123
+ * @generated from enum value: PROFORMA_INVOICE_BILLING_STATUS_UNBILLED = 2;
124
+ */
125
+ PROFORMA_INVOICE_BILLING_STATUS[PROFORMA_INVOICE_BILLING_STATUS["PROFORMA_INVOICE_BILLING_STATUS_UNBILLED"] = 2] = "PROFORMA_INVOICE_BILLING_STATUS_UNBILLED";
126
+ })(PROFORMA_INVOICE_BILLING_STATUS || (exports.PROFORMA_INVOICE_BILLING_STATUS = PROFORMA_INVOICE_BILLING_STATUS = {}));
127
+ // Retrieve enum metadata with: proto3.getEnumType(PROFORMA_INVOICE_BILLING_STATUS)
128
+ protobuf_1.proto3.util.setEnumType(PROFORMA_INVOICE_BILLING_STATUS, "Scailo.PROFORMA_INVOICE_BILLING_STATUS", [
129
+ { no: 0, name: "PROFORMA_INVOICE_BILLING_STATUS_ANY_UNSPECIFIED" },
130
+ { no: 1, name: "PROFORMA_INVOICE_BILLING_STATUS_BILLED" },
131
+ { no: 2, name: "PROFORMA_INVOICE_BILLING_STATUS_UNBILLED" },
132
+ ]);
133
+ /**
134
+ *
135
+ * Describes the available sort keys
136
+ *
137
+ * @generated from enum Scailo.PROFORMA_INVOICE_ITEM_SORT_KEY
138
+ */
139
+ var PROFORMA_INVOICE_ITEM_SORT_KEY;
140
+ (function (PROFORMA_INVOICE_ITEM_SORT_KEY) {
141
+ /**
142
+ * Fetch invoiced results by id
143
+ *
144
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_ID_UNSPECIFIED = 0;
145
+ */
146
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_ID_UNSPECIFIED"] = 0] = "PROFORMA_INVOICE_ITEM_SORT_KEY_ID_UNSPECIFIED";
147
+ /**
148
+ * Fetch invoiced results by the creation timestamp
149
+ *
150
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_CREATED_AT = 1;
151
+ */
152
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_CREATED_AT"] = 1] = "PROFORMA_INVOICE_ITEM_SORT_KEY_CREATED_AT";
153
+ /**
154
+ * Fetch invoiced results by the modified timestamp
155
+ *
156
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_MODIFIED_AT = 2;
157
+ */
158
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_MODIFIED_AT"] = 2] = "PROFORMA_INVOICE_ITEM_SORT_KEY_MODIFIED_AT";
159
+ /**
160
+ * Fetch invoiced results by the approved on timestamp
161
+ *
162
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVED_ON = 3;
163
+ */
164
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVED_ON"] = 3] = "PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVED_ON";
165
+ /**
166
+ * Fetch invoiced results by the approved by field
167
+ *
168
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVED_BY = 4;
169
+ */
170
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVED_BY"] = 4] = "PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVED_BY";
171
+ /**
172
+ * Fetch invoiced results by the approver's role ID
173
+ *
174
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVER_ROLE_ID = 5;
175
+ */
176
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVER_ROLE_ID"] = 5] = "PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVER_ROLE_ID";
177
+ /**
178
+ * Fetch invoiced results by the family ID
179
+ *
180
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_FAMILY_ID = 10;
181
+ */
182
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_FAMILY_ID"] = 10] = "PROFORMA_INVOICE_ITEM_SORT_KEY_FAMILY_ID";
183
+ /**
184
+ * Fetch invoiced results by the internal quantity
185
+ *
186
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_INTERNAL_QUANTITY = 11;
187
+ */
188
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_INTERNAL_QUANTITY"] = 11] = "PROFORMA_INVOICE_ITEM_SORT_KEY_INTERNAL_QUANTITY";
189
+ /**
190
+ * Fetch invoiced results by the client unit of material ID
191
+ *
192
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_UOM_ID = 12;
193
+ */
194
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_UOM_ID"] = 12] = "PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_UOM_ID";
195
+ /**
196
+ * Fetch invoiced results by the client quantity
197
+ *
198
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_QUANTITY = 13;
199
+ */
200
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_QUANTITY"] = 13] = "PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_QUANTITY";
201
+ /**
202
+ * Fetch invoiced results by the client family code
203
+ *
204
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_FAMILY_CODE = 14;
205
+ */
206
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_FAMILY_CODE"] = 14] = "PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_FAMILY_CODE";
207
+ /**
208
+ * Fetch invoiced results by the unit price
209
+ *
210
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_UNIT_PRICE = 15;
211
+ */
212
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_UNIT_PRICE"] = 15] = "PROFORMA_INVOICE_ITEM_SORT_KEY_UNIT_PRICE";
213
+ /**
214
+ * Fetch invoiced results by the tax group ID
215
+ *
216
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_SORT_KEY_TAX_GROUP_ID = 16;
217
+ */
218
+ PROFORMA_INVOICE_ITEM_SORT_KEY[PROFORMA_INVOICE_ITEM_SORT_KEY["PROFORMA_INVOICE_ITEM_SORT_KEY_TAX_GROUP_ID"] = 16] = "PROFORMA_INVOICE_ITEM_SORT_KEY_TAX_GROUP_ID";
219
+ })(PROFORMA_INVOICE_ITEM_SORT_KEY || (exports.PROFORMA_INVOICE_ITEM_SORT_KEY = PROFORMA_INVOICE_ITEM_SORT_KEY = {}));
220
+ // Retrieve enum metadata with: proto3.getEnumType(PROFORMA_INVOICE_ITEM_SORT_KEY)
221
+ protobuf_1.proto3.util.setEnumType(PROFORMA_INVOICE_ITEM_SORT_KEY, "Scailo.PROFORMA_INVOICE_ITEM_SORT_KEY", [
222
+ { no: 0, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_ID_UNSPECIFIED" },
223
+ { no: 1, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_CREATED_AT" },
224
+ { no: 2, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_MODIFIED_AT" },
225
+ { no: 3, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVED_ON" },
226
+ { no: 4, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVED_BY" },
227
+ { no: 5, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_APPROVER_ROLE_ID" },
228
+ { no: 10, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_FAMILY_ID" },
229
+ { no: 11, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_INTERNAL_QUANTITY" },
230
+ { no: 12, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_UOM_ID" },
231
+ { no: 13, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_QUANTITY" },
232
+ { no: 14, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_CLIENT_FAMILY_CODE" },
233
+ { no: 15, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_UNIT_PRICE" },
234
+ { no: 16, name: "PROFORMA_INVOICE_ITEM_SORT_KEY_TAX_GROUP_ID" },
235
+ ]);
236
+ /**
237
+ *
238
+ * Describes the applicable statuses of proforma invoice items
239
+ *
240
+ * @generated from enum Scailo.PROFORMA_INVOICE_ITEM_STATUS
241
+ */
242
+ var PROFORMA_INVOICE_ITEM_STATUS;
243
+ (function (PROFORMA_INVOICE_ITEM_STATUS) {
244
+ /**
245
+ * Denotes that status be disregarded. This is used only within search APIs
246
+ *
247
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_STATUS_ANY_UNSPECIFIED = 0;
248
+ */
249
+ PROFORMA_INVOICE_ITEM_STATUS[PROFORMA_INVOICE_ITEM_STATUS["PROFORMA_INVOICE_ITEM_STATUS_ANY_UNSPECIFIED"] = 0] = "PROFORMA_INVOICE_ITEM_STATUS_ANY_UNSPECIFIED";
250
+ /**
251
+ * Denotes that the proforma invoice items must have been approved
252
+ *
253
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_STATUS_APPROVED = 1;
254
+ */
255
+ PROFORMA_INVOICE_ITEM_STATUS[PROFORMA_INVOICE_ITEM_STATUS["PROFORMA_INVOICE_ITEM_STATUS_APPROVED"] = 1] = "PROFORMA_INVOICE_ITEM_STATUS_APPROVED";
256
+ /**
257
+ * Denotes that the proforma invoice items must be waiting for approval
258
+ *
259
+ * @generated from enum value: PROFORMA_INVOICE_ITEM_STATUS_UNAPPROVED = 2;
260
+ */
261
+ PROFORMA_INVOICE_ITEM_STATUS[PROFORMA_INVOICE_ITEM_STATUS["PROFORMA_INVOICE_ITEM_STATUS_UNAPPROVED"] = 2] = "PROFORMA_INVOICE_ITEM_STATUS_UNAPPROVED";
262
+ })(PROFORMA_INVOICE_ITEM_STATUS || (exports.PROFORMA_INVOICE_ITEM_STATUS = PROFORMA_INVOICE_ITEM_STATUS = {}));
263
+ // Retrieve enum metadata with: proto3.getEnumType(PROFORMA_INVOICE_ITEM_STATUS)
264
+ protobuf_1.proto3.util.setEnumType(PROFORMA_INVOICE_ITEM_STATUS, "Scailo.PROFORMA_INVOICE_ITEM_STATUS", [
265
+ { no: 0, name: "PROFORMA_INVOICE_ITEM_STATUS_ANY_UNSPECIFIED" },
266
+ { no: 1, name: "PROFORMA_INVOICE_ITEM_STATUS_APPROVED" },
267
+ { no: 2, name: "PROFORMA_INVOICE_ITEM_STATUS_UNAPPROVED" },
268
+ ]);
269
+ /**
270
+ *
271
+ * Describes the parameters necessary to create a record
272
+ *
273
+ * @generated from message Scailo.ProformaInvoicesServiceCreateRequest
274
+ */
275
+ class ProformaInvoicesServiceCreateRequest extends protobuf_1.Message {
276
+ /**
277
+ * Stores a globally unique entity UUID. This will be set at the organization level
278
+ *
279
+ * @generated from field: string entity_uuid = 1;
280
+ */
281
+ entityUuid = "";
282
+ /**
283
+ * Stores any comment that the user might add during this operation
284
+ *
285
+ * @generated from field: string user_comment = 2;
286
+ */
287
+ userComment = "";
288
+ /**
289
+ * The associated vault folder ID
290
+ *
291
+ * @generated from field: uint64 vault_folder_id = 9;
292
+ */
293
+ vaultFolderId = protobuf_1.protoInt64.zero;
294
+ /**
295
+ * The reference ID of the proforma invoice
296
+ *
297
+ * @generated from field: string reference_id = 10;
298
+ */
299
+ referenceId = "";
300
+ /**
301
+ * The associated reference
302
+ *
303
+ * @generated from field: string ref_from = 12;
304
+ */
305
+ refFrom = "";
306
+ /**
307
+ * The associated ID of the reference
308
+ *
309
+ * @generated from field: uint64 ref_id = 13;
310
+ */
311
+ refId = protobuf_1.protoInt64.zero;
312
+ /**
313
+ * The associated ID of the currency
314
+ *
315
+ * @generated from field: uint64 currency_id = 14;
316
+ */
317
+ currencyId = protobuf_1.protoInt64.zero;
318
+ /**
319
+ * The associated ID of the bank account
320
+ *
321
+ * @generated from field: uint64 bank_account_id = 15;
322
+ */
323
+ bankAccountId = protobuf_1.protoInt64.zero;
324
+ /**
325
+ * Any miscellaneous cost
326
+ *
327
+ * @generated from field: uint64 miscellaneous_cost = 16;
328
+ */
329
+ miscellaneousCost = protobuf_1.protoInt64.zero;
330
+ /**
331
+ * The optional discount amount
332
+ *
333
+ * @generated from field: uint64 overall_discount = 17;
334
+ */
335
+ overallDiscount = protobuf_1.protoInt64.zero;
336
+ /**
337
+ * The applicable round off amount (optional, and can be positive or negative)
338
+ *
339
+ * @generated from field: int64 round_off = 18;
340
+ */
341
+ roundOff = protobuf_1.protoInt64.zero;
342
+ /**
343
+ * The excess tax group
344
+ *
345
+ * @generated from field: uint64 cumulative_excess_tax_group_id = 19;
346
+ */
347
+ cumulativeExcessTaxGroupId = protobuf_1.protoInt64.zero;
348
+ /**
349
+ * The excess tax amount
350
+ *
351
+ * @generated from field: uint64 cumulative_excess_tax_amount = 20;
352
+ */
353
+ cumulativeExcessTaxAmount = protobuf_1.protoInt64.zero;
354
+ /**
355
+ * The list of dynamic forms
356
+ *
357
+ * @generated from field: repeated Scailo.FormFieldDatumCreateRequest form_data = 30;
358
+ */
359
+ formData = [];
360
+ constructor(data) {
361
+ super();
362
+ protobuf_1.proto3.util.initPartial(data, this);
363
+ }
364
+ static runtime = protobuf_1.proto3;
365
+ static typeName = "Scailo.ProformaInvoicesServiceCreateRequest";
366
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
367
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
368
+ { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
369
+ { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
370
+ { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
371
+ { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
372
+ { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
373
+ { no: 14, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
374
+ { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
375
+ { no: 16, name: "miscellaneous_cost", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
376
+ { no: 17, name: "overall_discount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
377
+ { no: 18, name: "round_off", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
378
+ { no: 19, name: "cumulative_excess_tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
379
+ { no: 20, name: "cumulative_excess_tax_amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
380
+ { no: 30, name: "form_data", kind: "message", T: forms_fields_data_scailo_pb_js_1.FormFieldDatumCreateRequest, repeated: true },
381
+ ]);
382
+ static fromBinary(bytes, options) {
383
+ return new ProformaInvoicesServiceCreateRequest().fromBinary(bytes, options);
384
+ }
385
+ static fromJson(jsonValue, options) {
386
+ return new ProformaInvoicesServiceCreateRequest().fromJson(jsonValue, options);
387
+ }
388
+ static fromJsonString(jsonString, options) {
389
+ return new ProformaInvoicesServiceCreateRequest().fromJsonString(jsonString, options);
390
+ }
391
+ static equals(a, b) {
392
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceCreateRequest, a, b);
393
+ }
394
+ }
395
+ exports.ProformaInvoicesServiceCreateRequest = ProformaInvoicesServiceCreateRequest;
396
+ /**
397
+ *
398
+ * Describes the parameters necessary to update a record
399
+ *
400
+ * @generated from message Scailo.ProformaInvoicesServiceUpdateRequest
401
+ */
402
+ class ProformaInvoicesServiceUpdateRequest extends protobuf_1.Message {
403
+ /**
404
+ * Stores any comment that the user might add during this operation
405
+ *
406
+ * @generated from field: string user_comment = 1;
407
+ */
408
+ userComment = "";
409
+ /**
410
+ * The ID of the record that needs to be updated
411
+ *
412
+ * @generated from field: uint64 id = 2;
413
+ */
414
+ id = protobuf_1.protoInt64.zero;
415
+ /**
416
+ * Optional boolean value that stores if a notification needs to be sent to users about the update to the record. This is useful when a subsequent operation needs to be performed immediately (such as send to verification after updating the revision)
417
+ *
418
+ * @generated from field: bool notify_users = 3;
419
+ */
420
+ notifyUsers = false;
421
+ /**
422
+ * The associated vault folder ID
423
+ *
424
+ * @generated from field: uint64 vault_folder_id = 9;
425
+ */
426
+ vaultFolderId = protobuf_1.protoInt64.zero;
427
+ /**
428
+ * The reference ID of the proforma invoice
429
+ *
430
+ * @generated from field: string reference_id = 10;
431
+ */
432
+ referenceId = "";
433
+ /**
434
+ * The associated ID of the currency
435
+ *
436
+ * @generated from field: uint64 currency_id = 14;
437
+ */
438
+ currencyId = protobuf_1.protoInt64.zero;
439
+ /**
440
+ * The associated ID of the bank account
441
+ *
442
+ * @generated from field: uint64 bank_account_id = 15;
443
+ */
444
+ bankAccountId = protobuf_1.protoInt64.zero;
445
+ /**
446
+ * Any miscellaneous cost
447
+ *
448
+ * @generated from field: uint64 miscellaneous_cost = 16;
449
+ */
450
+ miscellaneousCost = protobuf_1.protoInt64.zero;
451
+ /**
452
+ * The optional discount amount
453
+ *
454
+ * @generated from field: uint64 overall_discount = 17;
455
+ */
456
+ overallDiscount = protobuf_1.protoInt64.zero;
457
+ /**
458
+ * The applicable round off amount (optional, and can be positive or negative)
459
+ *
460
+ * @generated from field: int64 round_off = 18;
461
+ */
462
+ roundOff = protobuf_1.protoInt64.zero;
463
+ /**
464
+ * The excess tax group
465
+ *
466
+ * @generated from field: uint64 cumulative_excess_tax_group_id = 19;
467
+ */
468
+ cumulativeExcessTaxGroupId = protobuf_1.protoInt64.zero;
469
+ /**
470
+ * The excess tax amount
471
+ *
472
+ * @generated from field: uint64 cumulative_excess_tax_amount = 20;
473
+ */
474
+ cumulativeExcessTaxAmount = protobuf_1.protoInt64.zero;
475
+ /**
476
+ * The list of dynamic forms
477
+ *
478
+ * @generated from field: repeated Scailo.FormFieldDatumCreateRequest form_data = 30;
479
+ */
480
+ formData = [];
481
+ constructor(data) {
482
+ super();
483
+ protobuf_1.proto3.util.initPartial(data, this);
484
+ }
485
+ static runtime = protobuf_1.proto3;
486
+ static typeName = "Scailo.ProformaInvoicesServiceUpdateRequest";
487
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
488
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
489
+ { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
490
+ { no: 3, name: "notify_users", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
491
+ { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
492
+ { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
493
+ { no: 14, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
494
+ { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
495
+ { no: 16, name: "miscellaneous_cost", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
496
+ { no: 17, name: "overall_discount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
497
+ { no: 18, name: "round_off", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
498
+ { no: 19, name: "cumulative_excess_tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
499
+ { no: 20, name: "cumulative_excess_tax_amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
500
+ { no: 30, name: "form_data", kind: "message", T: forms_fields_data_scailo_pb_js_1.FormFieldDatumCreateRequest, repeated: true },
501
+ ]);
502
+ static fromBinary(bytes, options) {
503
+ return new ProformaInvoicesServiceUpdateRequest().fromBinary(bytes, options);
504
+ }
505
+ static fromJson(jsonValue, options) {
506
+ return new ProformaInvoicesServiceUpdateRequest().fromJson(jsonValue, options);
507
+ }
508
+ static fromJsonString(jsonString, options) {
509
+ return new ProformaInvoicesServiceUpdateRequest().fromJsonString(jsonString, options);
510
+ }
511
+ static equals(a, b) {
512
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceUpdateRequest, a, b);
513
+ }
514
+ }
515
+ exports.ProformaInvoicesServiceUpdateRequest = ProformaInvoicesServiceUpdateRequest;
516
+ /**
517
+ *
518
+ * Describes the parameters necessary to perform an autofill request
519
+ *
520
+ * @generated from message Scailo.ProformaInvoicesServiceAutofillRequest
521
+ */
522
+ class ProformaInvoicesServiceAutofillRequest extends protobuf_1.Message {
523
+ /**
524
+ * Stores any comment that the user might add during this operation
525
+ *
526
+ * @generated from field: string user_comment = 1;
527
+ */
528
+ userComment = "";
529
+ /**
530
+ * The ID of the record that needs to be updated
531
+ *
532
+ * @generated from field: uint64 id = 2;
533
+ */
534
+ id = protobuf_1.protoInt64.zero;
535
+ /**
536
+ * Stores if services should also be autofilled
537
+ *
538
+ * @generated from field: bool include_services = 10;
539
+ */
540
+ includeServices = false;
541
+ constructor(data) {
542
+ super();
543
+ protobuf_1.proto3.util.initPartial(data, this);
544
+ }
545
+ static runtime = protobuf_1.proto3;
546
+ static typeName = "Scailo.ProformaInvoicesServiceAutofillRequest";
547
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
548
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
549
+ { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
550
+ { no: 10, name: "include_services", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
551
+ ]);
552
+ static fromBinary(bytes, options) {
553
+ return new ProformaInvoicesServiceAutofillRequest().fromBinary(bytes, options);
554
+ }
555
+ static fromJson(jsonValue, options) {
556
+ return new ProformaInvoicesServiceAutofillRequest().fromJson(jsonValue, options);
557
+ }
558
+ static fromJsonString(jsonString, options) {
559
+ return new ProformaInvoicesServiceAutofillRequest().fromJsonString(jsonString, options);
560
+ }
561
+ static equals(a, b) {
562
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceAutofillRequest, a, b);
563
+ }
564
+ }
565
+ exports.ProformaInvoicesServiceAutofillRequest = ProformaInvoicesServiceAutofillRequest;
566
+ /**
567
+ *
568
+ * Stores the UUID references of the record
569
+ *
570
+ * @generated from message Scailo.ProformaInvoiceAncillaryParameters
571
+ */
572
+ class ProformaInvoiceAncillaryParameters extends protobuf_1.Message {
573
+ /**
574
+ * The UUID of the ref_id (the UUID of the associated ref_id)
575
+ *
576
+ * @generated from field: string ref_uuid = 213;
577
+ */
578
+ refUuid = "";
579
+ /**
580
+ * The UUID of the currency (the UUID of the associated currency)
581
+ *
582
+ * @generated from field: string currency_uuid = 214;
583
+ */
584
+ currencyUuid = "";
585
+ constructor(data) {
586
+ super();
587
+ protobuf_1.proto3.util.initPartial(data, this);
588
+ }
589
+ static runtime = protobuf_1.proto3;
590
+ static typeName = "Scailo.ProformaInvoiceAncillaryParameters";
591
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
592
+ { no: 213, name: "ref_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
593
+ { no: 214, name: "currency_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
594
+ ]);
595
+ static fromBinary(bytes, options) {
596
+ return new ProformaInvoiceAncillaryParameters().fromBinary(bytes, options);
597
+ }
598
+ static fromJson(jsonValue, options) {
599
+ return new ProformaInvoiceAncillaryParameters().fromJson(jsonValue, options);
600
+ }
601
+ static fromJsonString(jsonString, options) {
602
+ return new ProformaInvoiceAncillaryParameters().fromJsonString(jsonString, options);
603
+ }
604
+ static equals(a, b) {
605
+ return protobuf_1.proto3.util.equals(ProformaInvoiceAncillaryParameters, a, b);
606
+ }
607
+ }
608
+ exports.ProformaInvoiceAncillaryParameters = ProformaInvoiceAncillaryParameters;
609
+ /**
610
+ *
611
+ * Describes the parameters that are part of a standard response
612
+ *
613
+ * @generated from message Scailo.ProformaInvoice
614
+ */
615
+ class ProformaInvoice extends protobuf_1.Message {
616
+ /**
617
+ * Stores a globally unique entity UUID. This will be set at the organization level
618
+ *
619
+ * @generated from field: string entity_uuid = 1;
620
+ */
621
+ entityUuid = "";
622
+ /**
623
+ * Stores the metadata of this proforma invoice
624
+ *
625
+ * @generated from field: Scailo.EmployeeMetadata metadata = 2;
626
+ */
627
+ metadata;
628
+ /**
629
+ * Stores the approval metadata
630
+ *
631
+ * @generated from field: Scailo.ApprovalMetadata approval_metadata = 3;
632
+ */
633
+ approvalMetadata;
634
+ /**
635
+ * The status of this proforma invoice
636
+ *
637
+ * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 4;
638
+ */
639
+ status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
640
+ /**
641
+ * Stores the logs of every operation performed on this proforma invoice
642
+ *
643
+ * @generated from field: repeated Scailo.LogbookLogConciseSLC logs = 5;
644
+ */
645
+ logs = [];
646
+ /**
647
+ * The timestamp of when this proforma invoice was marked as completed
648
+ *
649
+ * @generated from field: uint64 completed_on = 6;
650
+ */
651
+ completedOn = protobuf_1.protoInt64.zero;
652
+ /**
653
+ * The associated vault folder ID
654
+ *
655
+ * @generated from field: uint64 vault_folder_id = 9;
656
+ */
657
+ vaultFolderId = protobuf_1.protoInt64.zero;
658
+ /**
659
+ * The reference ID of the proforma invoice
660
+ *
661
+ * @generated from field: string reference_id = 10;
662
+ */
663
+ referenceId = "";
664
+ /**
665
+ * The unique reference number that has been automatically generated
666
+ *
667
+ * @generated from field: string final_ref_number = 11;
668
+ */
669
+ finalRefNumber = "";
670
+ /**
671
+ * The associated reference
672
+ *
673
+ * @generated from field: string ref_from = 12;
674
+ */
675
+ refFrom = "";
676
+ /**
677
+ * The associated ID of the reference
678
+ *
679
+ * @generated from field: uint64 ref_id = 13;
680
+ */
681
+ refId = protobuf_1.protoInt64.zero;
682
+ /**
683
+ * The associated ID of the currency
684
+ *
685
+ * @generated from field: uint64 currency_id = 14;
686
+ */
687
+ currencyId = protobuf_1.protoInt64.zero;
688
+ /**
689
+ * The associated ID of the bank account
690
+ *
691
+ * @generated from field: uint64 bank_account_id = 15;
692
+ */
693
+ bankAccountId = protobuf_1.protoInt64.zero;
694
+ /**
695
+ * Any miscellaneous cost
696
+ *
697
+ * @generated from field: uint64 miscellaneous_cost = 16;
698
+ */
699
+ miscellaneousCost = protobuf_1.protoInt64.zero;
700
+ /**
701
+ * The optional discount amount
702
+ *
703
+ * @generated from field: uint64 overall_discount = 17;
704
+ */
705
+ overallDiscount = protobuf_1.protoInt64.zero;
706
+ /**
707
+ * The applicable round off amount (optional, and can be positive or negative)
708
+ *
709
+ * @generated from field: int64 round_off = 18;
710
+ */
711
+ roundOff = protobuf_1.protoInt64.zero;
712
+ /**
713
+ * The excess tax group
714
+ *
715
+ * @generated from field: uint64 cumulative_excess_tax_group_id = 19;
716
+ */
717
+ cumulativeExcessTaxGroupId = protobuf_1.protoInt64.zero;
718
+ /**
719
+ * The excess tax amount
720
+ *
721
+ * @generated from field: uint64 cumulative_excess_tax_amount = 20;
722
+ */
723
+ cumulativeExcessTaxAmount = protobuf_1.protoInt64.zero;
724
+ /**
725
+ * Stores the total value of the proforma invoice (as a double, which requires no adjustments)
726
+ *
727
+ * @generated from field: double total_value = 21;
728
+ */
729
+ totalValue = 0;
730
+ /**
731
+ * The number of times that the proforma invoice has been amended
732
+ *
733
+ * @generated from field: uint64 amendment_count = 22;
734
+ */
735
+ amendmentCount = protobuf_1.protoInt64.zero;
736
+ /**
737
+ * The list of associated proforma invoice items
738
+ *
739
+ * @generated from field: repeated Scailo.ProformaInvoiceItem list = 30;
740
+ */
741
+ list = [];
742
+ /**
743
+ * The list of dynamic forms
744
+ *
745
+ * @generated from field: repeated Scailo.FormFieldDatum form_data = 40;
746
+ */
747
+ formData = [];
748
+ constructor(data) {
749
+ super();
750
+ protobuf_1.proto3.util.initPartial(data, this);
751
+ }
752
+ static runtime = protobuf_1.proto3;
753
+ static typeName = "Scailo.ProformaInvoice";
754
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
755
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
756
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
757
+ { no: 3, name: "approval_metadata", kind: "message", T: base_scailo_pb_js_1.ApprovalMetadata },
758
+ { no: 4, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
759
+ { no: 5, name: "logs", kind: "message", T: base_scailo_pb_js_1.LogbookLogConciseSLC, repeated: true },
760
+ { no: 6, name: "completed_on", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
761
+ { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
762
+ { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
763
+ { no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
764
+ { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
765
+ { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
766
+ { no: 14, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
767
+ { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
768
+ { no: 16, name: "miscellaneous_cost", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
769
+ { no: 17, name: "overall_discount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
770
+ { no: 18, name: "round_off", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
771
+ { no: 19, name: "cumulative_excess_tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
772
+ { no: 20, name: "cumulative_excess_tax_amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
773
+ { no: 21, name: "total_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
774
+ { no: 22, name: "amendment_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
775
+ { no: 30, name: "list", kind: "message", T: ProformaInvoiceItem, repeated: true },
776
+ { no: 40, name: "form_data", kind: "message", T: forms_fields_data_scailo_pb_js_1.FormFieldDatum, repeated: true },
777
+ ]);
778
+ static fromBinary(bytes, options) {
779
+ return new ProformaInvoice().fromBinary(bytes, options);
780
+ }
781
+ static fromJson(jsonValue, options) {
782
+ return new ProformaInvoice().fromJson(jsonValue, options);
783
+ }
784
+ static fromJsonString(jsonString, options) {
785
+ return new ProformaInvoice().fromJsonString(jsonString, options);
786
+ }
787
+ static equals(a, b) {
788
+ return protobuf_1.proto3.util.equals(ProformaInvoice, a, b);
789
+ }
790
+ }
791
+ exports.ProformaInvoice = ProformaInvoice;
792
+ /**
793
+ *
794
+ * Describes the parameters required to add an item to a proforma invoice
795
+ *
796
+ * @generated from message Scailo.ProformaInvoicesServiceItemCreateRequest
797
+ */
798
+ class ProformaInvoicesServiceItemCreateRequest extends protobuf_1.Message {
799
+ /**
800
+ * Stores any comment that the user might add during this operation
801
+ *
802
+ * @generated from field: string user_comment = 1;
803
+ */
804
+ userComment = "";
805
+ /**
806
+ * Stores the proforma invoice ID
807
+ *
808
+ * @generated from field: uint64 proforma_invoice_id = 10;
809
+ */
810
+ proformaInvoiceId = protobuf_1.protoInt64.zero;
811
+ /**
812
+ * Stores the family ID
813
+ *
814
+ * @generated from field: uint64 family_id = 11;
815
+ */
816
+ familyId = protobuf_1.protoInt64.zero;
817
+ /**
818
+ * The quantity (in cents) being supplied in internal unit of material
819
+ *
820
+ * @generated from field: uint64 internal_quantity = 12;
821
+ */
822
+ internalQuantity = protobuf_1.protoInt64.zero;
823
+ /**
824
+ * Stores the ID of the client's unit of material
825
+ *
826
+ * @generated from field: uint64 client_uom_id = 13;
827
+ */
828
+ clientUomId = protobuf_1.protoInt64.zero;
829
+ /**
830
+ * Stores the quantity (in cents) being admitted in client's unit of material
831
+ *
832
+ * @generated from field: uint64 client_quantity = 14;
833
+ */
834
+ clientQuantity = protobuf_1.protoInt64.zero;
835
+ /**
836
+ * The family code as represented by the client
837
+ *
838
+ * @generated from field: string client_family_code = 15;
839
+ */
840
+ clientFamilyCode = "";
841
+ /**
842
+ * The unit price of the item (as supplied to the client)
843
+ *
844
+ * @generated from field: uint64 unit_price = 16;
845
+ */
846
+ unitPrice = protobuf_1.protoInt64.zero;
847
+ /**
848
+ * The ID of the associated tax group
849
+ *
850
+ * @generated from field: uint64 tax_group_id = 17;
851
+ */
852
+ taxGroupId = protobuf_1.protoInt64.zero;
853
+ /**
854
+ * The applicable round off amount (optional, and can be positive or negative)
855
+ *
856
+ * @generated from field: int64 round_off = 18;
857
+ */
858
+ roundOff = protobuf_1.protoInt64.zero;
859
+ /**
860
+ * Optional specifications
861
+ *
862
+ * @generated from field: string specifications = 19;
863
+ */
864
+ specifications = "";
865
+ constructor(data) {
866
+ super();
867
+ protobuf_1.proto3.util.initPartial(data, this);
868
+ }
869
+ static runtime = protobuf_1.proto3;
870
+ static typeName = "Scailo.ProformaInvoicesServiceItemCreateRequest";
871
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
872
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
873
+ { no: 10, name: "proforma_invoice_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
874
+ { no: 11, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
875
+ { no: 12, name: "internal_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
876
+ { no: 13, name: "client_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
877
+ { no: 14, name: "client_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
878
+ { no: 15, name: "client_family_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
879
+ { no: 16, name: "unit_price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
880
+ { no: 17, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
881
+ { no: 18, name: "round_off", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
882
+ { no: 19, name: "specifications", kind: "scalar", T: 9 /* ScalarType.STRING */ },
883
+ ]);
884
+ static fromBinary(bytes, options) {
885
+ return new ProformaInvoicesServiceItemCreateRequest().fromBinary(bytes, options);
886
+ }
887
+ static fromJson(jsonValue, options) {
888
+ return new ProformaInvoicesServiceItemCreateRequest().fromJson(jsonValue, options);
889
+ }
890
+ static fromJsonString(jsonString, options) {
891
+ return new ProformaInvoicesServiceItemCreateRequest().fromJsonString(jsonString, options);
892
+ }
893
+ static equals(a, b) {
894
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceItemCreateRequest, a, b);
895
+ }
896
+ }
897
+ exports.ProformaInvoicesServiceItemCreateRequest = ProformaInvoicesServiceItemCreateRequest;
898
+ /**
899
+ *
900
+ * Describes the parameters required to update an item in a proforma invoice
901
+ *
902
+ * @generated from message Scailo.ProformaInvoicesServiceItemUpdateRequest
903
+ */
904
+ class ProformaInvoicesServiceItemUpdateRequest extends protobuf_1.Message {
905
+ /**
906
+ * Stores any comment that the user might add during this operation
907
+ *
908
+ * @generated from field: string user_comment = 1;
909
+ */
910
+ userComment = "";
911
+ /**
912
+ * The ID of the record
913
+ *
914
+ * @generated from field: uint64 id = 2;
915
+ */
916
+ id = protobuf_1.protoInt64.zero;
917
+ /**
918
+ * The quantity (in cents) being supplied in internal unit of material
919
+ *
920
+ * @generated from field: uint64 internal_quantity = 12;
921
+ */
922
+ internalQuantity = protobuf_1.protoInt64.zero;
923
+ /**
924
+ * Stores the ID of the client's unit of material
925
+ *
926
+ * @generated from field: uint64 client_uom_id = 13;
927
+ */
928
+ clientUomId = protobuf_1.protoInt64.zero;
929
+ /**
930
+ * Stores the quantity (in cents) being admitted in client's unit of material
931
+ *
932
+ * @generated from field: uint64 client_quantity = 14;
933
+ */
934
+ clientQuantity = protobuf_1.protoInt64.zero;
935
+ /**
936
+ * The family code as represented by the client
937
+ *
938
+ * @generated from field: string client_family_code = 15;
939
+ */
940
+ clientFamilyCode = "";
941
+ /**
942
+ * The unit price of the item (as supplied to the client)
943
+ *
944
+ * @generated from field: uint64 unit_price = 16;
945
+ */
946
+ unitPrice = protobuf_1.protoInt64.zero;
947
+ /**
948
+ * The ID of the associated tax group
949
+ *
950
+ * @generated from field: uint64 tax_group_id = 17;
951
+ */
952
+ taxGroupId = protobuf_1.protoInt64.zero;
953
+ /**
954
+ * The applicable round off amount (optional, and can be positive or negative)
955
+ *
956
+ * @generated from field: int64 round_off = 18;
957
+ */
958
+ roundOff = protobuf_1.protoInt64.zero;
959
+ /**
960
+ * Optional specifications
961
+ *
962
+ * @generated from field: string specifications = 19;
963
+ */
964
+ specifications = "";
965
+ constructor(data) {
966
+ super();
967
+ protobuf_1.proto3.util.initPartial(data, this);
968
+ }
969
+ static runtime = protobuf_1.proto3;
970
+ static typeName = "Scailo.ProformaInvoicesServiceItemUpdateRequest";
971
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
972
+ { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
973
+ { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
974
+ { no: 12, name: "internal_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
975
+ { no: 13, name: "client_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
976
+ { no: 14, name: "client_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
977
+ { no: 15, name: "client_family_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
978
+ { no: 16, name: "unit_price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
979
+ { no: 17, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
980
+ { no: 18, name: "round_off", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
981
+ { no: 19, name: "specifications", kind: "scalar", T: 9 /* ScalarType.STRING */ },
982
+ ]);
983
+ static fromBinary(bytes, options) {
984
+ return new ProformaInvoicesServiceItemUpdateRequest().fromBinary(bytes, options);
985
+ }
986
+ static fromJson(jsonValue, options) {
987
+ return new ProformaInvoicesServiceItemUpdateRequest().fromJson(jsonValue, options);
988
+ }
989
+ static fromJsonString(jsonString, options) {
990
+ return new ProformaInvoicesServiceItemUpdateRequest().fromJsonString(jsonString, options);
991
+ }
992
+ static equals(a, b) {
993
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceItemUpdateRequest, a, b);
994
+ }
995
+ }
996
+ exports.ProformaInvoicesServiceItemUpdateRequest = ProformaInvoicesServiceItemUpdateRequest;
997
+ /**
998
+ *
999
+ * Describes the parameters that constitute an item associated to a proforma invoice
1000
+ *
1001
+ * @generated from message Scailo.ProformaInvoiceItem
1002
+ */
1003
+ class ProformaInvoiceItem extends protobuf_1.Message {
1004
+ /**
1005
+ * Stores a globally unique entity UUID. This will be set at the organization level
1006
+ *
1007
+ * @generated from field: string entity_uuid = 1;
1008
+ */
1009
+ entityUuid = "";
1010
+ /**
1011
+ * Stores the metadata of this proforma invoice
1012
+ *
1013
+ * @generated from field: Scailo.EmployeeMetadata metadata = 2;
1014
+ */
1015
+ metadata;
1016
+ /**
1017
+ * Stores the approval metadata
1018
+ *
1019
+ * @generated from field: Scailo.ApprovalMetadata approval_metadata = 3;
1020
+ */
1021
+ approvalMetadata;
1022
+ /**
1023
+ * Denotes if this record requires approval (or has been approved)
1024
+ *
1025
+ * @generated from field: bool need_approval = 4;
1026
+ */
1027
+ needApproval = false;
1028
+ /**
1029
+ * Stores any comment that the user might have added during an operation
1030
+ *
1031
+ * @generated from field: string user_comment = 5;
1032
+ */
1033
+ userComment = "";
1034
+ /**
1035
+ * Stores the proforma invoice ID
1036
+ *
1037
+ * @generated from field: uint64 proforma_invoice_id = 10;
1038
+ */
1039
+ proformaInvoiceId = protobuf_1.protoInt64.zero;
1040
+ /**
1041
+ * Stores the family ID
1042
+ *
1043
+ * @generated from field: uint64 family_id = 11;
1044
+ */
1045
+ familyId = protobuf_1.protoInt64.zero;
1046
+ /**
1047
+ * The quantity (in cents) being supplied in internal unit of material
1048
+ *
1049
+ * @generated from field: uint64 internal_quantity = 12;
1050
+ */
1051
+ internalQuantity = protobuf_1.protoInt64.zero;
1052
+ /**
1053
+ * Stores the ID of the client's unit of material
1054
+ *
1055
+ * @generated from field: uint64 client_uom_id = 13;
1056
+ */
1057
+ clientUomId = protobuf_1.protoInt64.zero;
1058
+ /**
1059
+ * Stores the quantity (in cents) being admitted in client's unit of material
1060
+ *
1061
+ * @generated from field: uint64 client_quantity = 14;
1062
+ */
1063
+ clientQuantity = protobuf_1.protoInt64.zero;
1064
+ /**
1065
+ * The family code as represented by the client
1066
+ *
1067
+ * @generated from field: string client_family_code = 15;
1068
+ */
1069
+ clientFamilyCode = "";
1070
+ /**
1071
+ * The unit price of the item (as supplied to the client)
1072
+ *
1073
+ * @generated from field: uint64 unit_price = 16;
1074
+ */
1075
+ unitPrice = protobuf_1.protoInt64.zero;
1076
+ /**
1077
+ * The ID of the associated tax group
1078
+ *
1079
+ * @generated from field: uint64 tax_group_id = 17;
1080
+ */
1081
+ taxGroupId = protobuf_1.protoInt64.zero;
1082
+ /**
1083
+ * The applicable round off amount (optional, and can be positive or negative)
1084
+ *
1085
+ * @generated from field: int64 round_off = 18;
1086
+ */
1087
+ roundOff = protobuf_1.protoInt64.zero;
1088
+ /**
1089
+ * Optional specifications
1090
+ *
1091
+ * @generated from field: string specifications = 19;
1092
+ */
1093
+ specifications = "";
1094
+ constructor(data) {
1095
+ super();
1096
+ protobuf_1.proto3.util.initPartial(data, this);
1097
+ }
1098
+ static runtime = protobuf_1.proto3;
1099
+ static typeName = "Scailo.ProformaInvoiceItem";
1100
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1101
+ { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1102
+ { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
1103
+ { no: 3, name: "approval_metadata", kind: "message", T: base_scailo_pb_js_1.ApprovalMetadata },
1104
+ { no: 4, name: "need_approval", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1105
+ { no: 5, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1106
+ { no: 10, name: "proforma_invoice_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1107
+ { no: 11, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1108
+ { no: 12, name: "internal_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1109
+ { no: 13, name: "client_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1110
+ { no: 14, name: "client_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1111
+ { no: 15, name: "client_family_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1112
+ { no: 16, name: "unit_price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1113
+ { no: 17, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1114
+ { no: 18, name: "round_off", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1115
+ { no: 19, name: "specifications", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1116
+ ]);
1117
+ static fromBinary(bytes, options) {
1118
+ return new ProformaInvoiceItem().fromBinary(bytes, options);
1119
+ }
1120
+ static fromJson(jsonValue, options) {
1121
+ return new ProformaInvoiceItem().fromJson(jsonValue, options);
1122
+ }
1123
+ static fromJsonString(jsonString, options) {
1124
+ return new ProformaInvoiceItem().fromJsonString(jsonString, options);
1125
+ }
1126
+ static equals(a, b) {
1127
+ return protobuf_1.proto3.util.equals(ProformaInvoiceItem, a, b);
1128
+ }
1129
+ }
1130
+ exports.ProformaInvoiceItem = ProformaInvoiceItem;
1131
+ /**
1132
+ *
1133
+ * Describes the message consisting of the list of proforma invoices
1134
+ *
1135
+ * @generated from message Scailo.ProformaInvoicesList
1136
+ */
1137
+ class ProformaInvoicesList extends protobuf_1.Message {
1138
+ /**
1139
+ * List of records
1140
+ *
1141
+ * @generated from field: repeated Scailo.ProformaInvoice list = 1;
1142
+ */
1143
+ list = [];
1144
+ constructor(data) {
1145
+ super();
1146
+ protobuf_1.proto3.util.initPartial(data, this);
1147
+ }
1148
+ static runtime = protobuf_1.proto3;
1149
+ static typeName = "Scailo.ProformaInvoicesList";
1150
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1151
+ { no: 1, name: "list", kind: "message", T: ProformaInvoice, repeated: true },
1152
+ ]);
1153
+ static fromBinary(bytes, options) {
1154
+ return new ProformaInvoicesList().fromBinary(bytes, options);
1155
+ }
1156
+ static fromJson(jsonValue, options) {
1157
+ return new ProformaInvoicesList().fromJson(jsonValue, options);
1158
+ }
1159
+ static fromJsonString(jsonString, options) {
1160
+ return new ProformaInvoicesList().fromJsonString(jsonString, options);
1161
+ }
1162
+ static equals(a, b) {
1163
+ return protobuf_1.proto3.util.equals(ProformaInvoicesList, a, b);
1164
+ }
1165
+ }
1166
+ exports.ProformaInvoicesList = ProformaInvoicesList;
1167
+ /**
1168
+ *
1169
+ * Describes the message consisting of the list of proforma invoice items
1170
+ *
1171
+ * @generated from message Scailo.ProformaInvoiceItemsList
1172
+ */
1173
+ class ProformaInvoiceItemsList extends protobuf_1.Message {
1174
+ /**
1175
+ * List of records
1176
+ *
1177
+ * @generated from field: repeated Scailo.ProformaInvoiceItem list = 1;
1178
+ */
1179
+ list = [];
1180
+ constructor(data) {
1181
+ super();
1182
+ protobuf_1.proto3.util.initPartial(data, this);
1183
+ }
1184
+ static runtime = protobuf_1.proto3;
1185
+ static typeName = "Scailo.ProformaInvoiceItemsList";
1186
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1187
+ { no: 1, name: "list", kind: "message", T: ProformaInvoiceItem, repeated: true },
1188
+ ]);
1189
+ static fromBinary(bytes, options) {
1190
+ return new ProformaInvoiceItemsList().fromBinary(bytes, options);
1191
+ }
1192
+ static fromJson(jsonValue, options) {
1193
+ return new ProformaInvoiceItemsList().fromJson(jsonValue, options);
1194
+ }
1195
+ static fromJsonString(jsonString, options) {
1196
+ return new ProformaInvoiceItemsList().fromJsonString(jsonString, options);
1197
+ }
1198
+ static equals(a, b) {
1199
+ return protobuf_1.proto3.util.equals(ProformaInvoiceItemsList, a, b);
1200
+ }
1201
+ }
1202
+ exports.ProformaInvoiceItemsList = ProformaInvoiceItemsList;
1203
+ /**
1204
+ *
1205
+ * Describes the parameters that are required to retrieve the history of the record
1206
+ *
1207
+ * @generated from message Scailo.ProformaInvoiceItemHistoryRequest
1208
+ */
1209
+ class ProformaInvoiceItemHistoryRequest extends protobuf_1.Message {
1210
+ /**
1211
+ * Stores the proforma invoice ID
1212
+ *
1213
+ * @generated from field: uint64 proforma_invoice_id = 10;
1214
+ */
1215
+ proformaInvoiceId = protobuf_1.protoInt64.zero;
1216
+ /**
1217
+ * Stores the family ID
1218
+ *
1219
+ * @generated from field: uint64 family_id = 11;
1220
+ */
1221
+ familyId = protobuf_1.protoInt64.zero;
1222
+ constructor(data) {
1223
+ super();
1224
+ protobuf_1.proto3.util.initPartial(data, this);
1225
+ }
1226
+ static runtime = protobuf_1.proto3;
1227
+ static typeName = "Scailo.ProformaInvoiceItemHistoryRequest";
1228
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1229
+ { no: 10, name: "proforma_invoice_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1230
+ { no: 11, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1231
+ ]);
1232
+ static fromBinary(bytes, options) {
1233
+ return new ProformaInvoiceItemHistoryRequest().fromBinary(bytes, options);
1234
+ }
1235
+ static fromJson(jsonValue, options) {
1236
+ return new ProformaInvoiceItemHistoryRequest().fromJson(jsonValue, options);
1237
+ }
1238
+ static fromJsonString(jsonString, options) {
1239
+ return new ProformaInvoiceItemHistoryRequest().fromJsonString(jsonString, options);
1240
+ }
1241
+ static equals(a, b) {
1242
+ return protobuf_1.proto3.util.equals(ProformaInvoiceItemHistoryRequest, a, b);
1243
+ }
1244
+ }
1245
+ exports.ProformaInvoiceItemHistoryRequest = ProformaInvoiceItemHistoryRequest;
1246
+ /**
1247
+ *
1248
+ * Describes the parameters that are required to retrieve the info of a prospective proforma invoice item
1249
+ *
1250
+ * @generated from message Scailo.ProformaInvoiceItemProspectiveInfoRequest
1251
+ */
1252
+ class ProformaInvoiceItemProspectiveInfoRequest extends protobuf_1.Message {
1253
+ /**
1254
+ * Stores the proforma invoice ID
1255
+ *
1256
+ * @generated from field: uint64 proforma_invoice_id = 10;
1257
+ */
1258
+ proformaInvoiceId = protobuf_1.protoInt64.zero;
1259
+ /**
1260
+ * Stores the family ID
1261
+ *
1262
+ * @generated from field: uint64 family_id = 11;
1263
+ */
1264
+ familyId = protobuf_1.protoInt64.zero;
1265
+ constructor(data) {
1266
+ super();
1267
+ protobuf_1.proto3.util.initPartial(data, this);
1268
+ }
1269
+ static runtime = protobuf_1.proto3;
1270
+ static typeName = "Scailo.ProformaInvoiceItemProspectiveInfoRequest";
1271
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1272
+ { no: 10, name: "proforma_invoice_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1273
+ { no: 11, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1274
+ ]);
1275
+ static fromBinary(bytes, options) {
1276
+ return new ProformaInvoiceItemProspectiveInfoRequest().fromBinary(bytes, options);
1277
+ }
1278
+ static fromJson(jsonValue, options) {
1279
+ return new ProformaInvoiceItemProspectiveInfoRequest().fromJson(jsonValue, options);
1280
+ }
1281
+ static fromJsonString(jsonString, options) {
1282
+ return new ProformaInvoiceItemProspectiveInfoRequest().fromJsonString(jsonString, options);
1283
+ }
1284
+ static equals(a, b) {
1285
+ return protobuf_1.proto3.util.equals(ProformaInvoiceItemProspectiveInfoRequest, a, b);
1286
+ }
1287
+ }
1288
+ exports.ProformaInvoiceItemProspectiveInfoRequest = ProformaInvoiceItemProspectiveInfoRequest;
1289
+ /**
1290
+ *
1291
+ * Describes the request payload to retrieve the quantity that has already been added for the specific ref_from, ref_id and family_id
1292
+ *
1293
+ * @generated from message Scailo.ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest
1294
+ */
1295
+ class ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest extends protobuf_1.Message {
1296
+ /**
1297
+ * The associated reference
1298
+ *
1299
+ * @generated from field: string ref_from = 1;
1300
+ */
1301
+ refFrom = "";
1302
+ /**
1303
+ * The associated ID of the reference
1304
+ *
1305
+ * @generated from field: uint64 ref_id = 2;
1306
+ */
1307
+ refId = protobuf_1.protoInt64.zero;
1308
+ /**
1309
+ * The associated family ID
1310
+ *
1311
+ * @generated from field: uint64 family_id = 3;
1312
+ */
1313
+ familyId = protobuf_1.protoInt64.zero;
1314
+ constructor(data) {
1315
+ super();
1316
+ protobuf_1.proto3.util.initPartial(data, this);
1317
+ }
1318
+ static runtime = protobuf_1.proto3;
1319
+ static typeName = "Scailo.ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest";
1320
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1321
+ { no: 1, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1322
+ { no: 2, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1323
+ { no: 3, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1324
+ ]);
1325
+ static fromBinary(bytes, options) {
1326
+ return new ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest().fromBinary(bytes, options);
1327
+ }
1328
+ static fromJson(jsonValue, options) {
1329
+ return new ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest().fromJson(jsonValue, options);
1330
+ }
1331
+ static fromJsonString(jsonString, options) {
1332
+ return new ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest().fromJsonString(jsonString, options);
1333
+ }
1334
+ static equals(a, b) {
1335
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest, a, b);
1336
+ }
1337
+ }
1338
+ exports.ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest = ProformaInvoicesServiceAlreadyAddedQuantityForSourceRequest;
1339
+ /**
1340
+ *
1341
+ * Describes a pagination request to retrieve records
1342
+ *
1343
+ * @generated from message Scailo.ProformaInvoicesServicePaginationReq
1344
+ */
1345
+ class ProformaInvoicesServicePaginationReq extends protobuf_1.Message {
1346
+ /**
1347
+ * If true, then returns only active records. If false, then returns only inactive records
1348
+ *
1349
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
1350
+ */
1351
+ isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
1352
+ /**
1353
+ * The number of records that need to be sent in the response
1354
+ *
1355
+ * @generated from field: int64 count = 2;
1356
+ */
1357
+ count = protobuf_1.protoInt64.zero;
1358
+ /**
1359
+ * The number that need to be offset by before fetching the records
1360
+ *
1361
+ * @generated from field: uint64 offset = 3;
1362
+ */
1363
+ offset = protobuf_1.protoInt64.zero;
1364
+ /**
1365
+ * The sort order that is to be used to fetch the pagination response
1366
+ *
1367
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
1368
+ */
1369
+ sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
1370
+ /**
1371
+ * The sort key that is to be used to fetch the pagination response
1372
+ *
1373
+ * @generated from field: Scailo.PROFORMA_INVOICE_SORT_KEY sort_key = 5;
1374
+ */
1375
+ sortKey = PROFORMA_INVOICE_SORT_KEY.PROFORMA_INVOICE_SORT_KEY_ID_UNSPECIFIED;
1376
+ /**
1377
+ * The status of this proforma invoice
1378
+ *
1379
+ * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 6;
1380
+ */
1381
+ status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
1382
+ constructor(data) {
1383
+ super();
1384
+ protobuf_1.proto3.util.initPartial(data, this);
1385
+ }
1386
+ static runtime = protobuf_1.proto3;
1387
+ static typeName = "Scailo.ProformaInvoicesServicePaginationReq";
1388
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1389
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
1390
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1391
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1392
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
1393
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(PROFORMA_INVOICE_SORT_KEY) },
1394
+ { no: 6, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
1395
+ ]);
1396
+ static fromBinary(bytes, options) {
1397
+ return new ProformaInvoicesServicePaginationReq().fromBinary(bytes, options);
1398
+ }
1399
+ static fromJson(jsonValue, options) {
1400
+ return new ProformaInvoicesServicePaginationReq().fromJson(jsonValue, options);
1401
+ }
1402
+ static fromJsonString(jsonString, options) {
1403
+ return new ProformaInvoicesServicePaginationReq().fromJsonString(jsonString, options);
1404
+ }
1405
+ static equals(a, b) {
1406
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServicePaginationReq, a, b);
1407
+ }
1408
+ }
1409
+ exports.ProformaInvoicesServicePaginationReq = ProformaInvoicesServicePaginationReq;
1410
+ /**
1411
+ *
1412
+ * Describes the response to a pagination request
1413
+ *
1414
+ * @generated from message Scailo.ProformaInvoicesServicePaginationResponse
1415
+ */
1416
+ class ProformaInvoicesServicePaginationResponse extends protobuf_1.Message {
1417
+ /**
1418
+ * The number of records in this payload
1419
+ *
1420
+ * @generated from field: uint64 count = 1;
1421
+ */
1422
+ count = protobuf_1.protoInt64.zero;
1423
+ /**
1424
+ * The number that has been offset before fetching the records. This is the same value that has been sent as part of the pagination request
1425
+ *
1426
+ * @generated from field: uint64 offset = 2;
1427
+ */
1428
+ offset = protobuf_1.protoInt64.zero;
1429
+ /**
1430
+ * The total number of records that are available
1431
+ *
1432
+ * @generated from field: uint64 total = 3;
1433
+ */
1434
+ total = protobuf_1.protoInt64.zero;
1435
+ /**
1436
+ * The list of records
1437
+ *
1438
+ * @generated from field: repeated Scailo.ProformaInvoice payload = 4;
1439
+ */
1440
+ payload = [];
1441
+ constructor(data) {
1442
+ super();
1443
+ protobuf_1.proto3.util.initPartial(data, this);
1444
+ }
1445
+ static runtime = protobuf_1.proto3;
1446
+ static typeName = "Scailo.ProformaInvoicesServicePaginationResponse";
1447
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1448
+ { no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1449
+ { no: 2, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1450
+ { no: 3, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1451
+ { no: 4, name: "payload", kind: "message", T: ProformaInvoice, repeated: true },
1452
+ ]);
1453
+ static fromBinary(bytes, options) {
1454
+ return new ProformaInvoicesServicePaginationResponse().fromBinary(bytes, options);
1455
+ }
1456
+ static fromJson(jsonValue, options) {
1457
+ return new ProformaInvoicesServicePaginationResponse().fromJson(jsonValue, options);
1458
+ }
1459
+ static fromJsonString(jsonString, options) {
1460
+ return new ProformaInvoicesServicePaginationResponse().fromJsonString(jsonString, options);
1461
+ }
1462
+ static equals(a, b) {
1463
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServicePaginationResponse, a, b);
1464
+ }
1465
+ }
1466
+ exports.ProformaInvoicesServicePaginationResponse = ProformaInvoicesServicePaginationResponse;
1467
+ /**
1468
+ *
1469
+ * Describes the base request payload of a filter search
1470
+ *
1471
+ * @generated from message Scailo.ProformaInvoicesServiceFilterReq
1472
+ */
1473
+ class ProformaInvoicesServiceFilterReq extends protobuf_1.Message {
1474
+ /**
1475
+ * If true, then returns only active records. If false, then returns only inactive records
1476
+ *
1477
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
1478
+ */
1479
+ isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
1480
+ /**
1481
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
1482
+ *
1483
+ * @generated from field: int64 count = 2;
1484
+ */
1485
+ count = protobuf_1.protoInt64.zero;
1486
+ /**
1487
+ * The number that need to be offset by before fetching the records
1488
+ *
1489
+ * @generated from field: uint64 offset = 3;
1490
+ */
1491
+ offset = protobuf_1.protoInt64.zero;
1492
+ /**
1493
+ * The sort order that is to be used to fetch the pagination response
1494
+ *
1495
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
1496
+ */
1497
+ sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
1498
+ /**
1499
+ * The sort key that is to be used to fetch the pagination response
1500
+ *
1501
+ * @generated from field: Scailo.PROFORMA_INVOICE_SORT_KEY sort_key = 5;
1502
+ */
1503
+ sortKey = PROFORMA_INVOICE_SORT_KEY.PROFORMA_INVOICE_SORT_KEY_ID_UNSPECIFIED;
1504
+ /**
1505
+ * The minimum timestamp that needs to be considered to filter by creation
1506
+ *
1507
+ * @generated from field: uint64 creation_timestamp_start = 101;
1508
+ */
1509
+ creationTimestampStart = protobuf_1.protoInt64.zero;
1510
+ /**
1511
+ * The maximum timestamp that needs to be considered to filter by creation
1512
+ *
1513
+ * @generated from field: uint64 creation_timestamp_end = 102;
1514
+ */
1515
+ creationTimestampEnd = protobuf_1.protoInt64.zero;
1516
+ /**
1517
+ * The minimum timestamp that needs to be considered to filter by modification
1518
+ *
1519
+ * @generated from field: uint64 modification_timestamp_start = 103;
1520
+ */
1521
+ modificationTimestampStart = protobuf_1.protoInt64.zero;
1522
+ /**
1523
+ * The maximum timestamp that needs to be considered to filter by modification
1524
+ *
1525
+ * @generated from field: uint64 modification_timestamp_end = 104;
1526
+ */
1527
+ modificationTimestampEnd = protobuf_1.protoInt64.zero;
1528
+ /**
1529
+ * The entity UUID that is to be used to filter records
1530
+ *
1531
+ * @generated from field: string entity_uuid = 8;
1532
+ */
1533
+ entityUuid = "";
1534
+ /**
1535
+ * The status of this proforma invoice
1536
+ *
1537
+ * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 10;
1538
+ */
1539
+ status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
1540
+ /**
1541
+ * The start range of approved timestamp
1542
+ *
1543
+ * @generated from field: uint64 approved_on_start = 11;
1544
+ */
1545
+ approvedOnStart = protobuf_1.protoInt64.zero;
1546
+ /**
1547
+ * The end range of approved timestamp
1548
+ *
1549
+ * @generated from field: uint64 approved_on_end = 12;
1550
+ */
1551
+ approvedOnEnd = protobuf_1.protoInt64.zero;
1552
+ /**
1553
+ * The ID of the approver
1554
+ *
1555
+ * @generated from field: uint64 approved_by_user_id = 13;
1556
+ */
1557
+ approvedByUserId = protobuf_1.protoInt64.zero;
1558
+ /**
1559
+ * The role ID of the approver
1560
+ *
1561
+ * @generated from field: uint64 approver_role_id = 14;
1562
+ */
1563
+ approverRoleId = protobuf_1.protoInt64.zero;
1564
+ /**
1565
+ * The start range of completed timestamp
1566
+ *
1567
+ * @generated from field: uint64 completed_on_start = 15;
1568
+ */
1569
+ completedOnStart = protobuf_1.protoInt64.zero;
1570
+ /**
1571
+ * The end range of completed timestamp
1572
+ *
1573
+ * @generated from field: uint64 completed_on_end = 16;
1574
+ */
1575
+ completedOnEnd = protobuf_1.protoInt64.zero;
1576
+ /**
1577
+ * The reference ID of the proforma invoice
1578
+ *
1579
+ * @generated from field: string reference_id = 20;
1580
+ */
1581
+ referenceId = "";
1582
+ /**
1583
+ * The unique reference number that has been automatically generated
1584
+ *
1585
+ * @generated from field: string final_ref_number = 21;
1586
+ */
1587
+ finalRefNumber = "";
1588
+ /**
1589
+ * The associated reference
1590
+ *
1591
+ * @generated from field: string ref_from = 22;
1592
+ */
1593
+ refFrom = "";
1594
+ /**
1595
+ * The associated ID of the reference
1596
+ *
1597
+ * @generated from field: uint64 ref_id = 23;
1598
+ */
1599
+ refId = protobuf_1.protoInt64.zero;
1600
+ /**
1601
+ * The ID of the associated currency
1602
+ *
1603
+ * @generated from field: uint64 currency_id = 24;
1604
+ */
1605
+ currencyId = protobuf_1.protoInt64.zero;
1606
+ /**
1607
+ * The associated ID of the bank account
1608
+ *
1609
+ * @generated from field: uint64 bank_account_id = 25;
1610
+ */
1611
+ bankAccountId = protobuf_1.protoInt64.zero;
1612
+ /**
1613
+ * The ID of the family
1614
+ *
1615
+ * @generated from field: uint64 family_id = 40;
1616
+ */
1617
+ familyId = protobuf_1.protoInt64.zero;
1618
+ /**
1619
+ * The status of the proforma invoice bill
1620
+ *
1621
+ * @generated from field: Scailo.PROFORMA_INVOICE_BILLING_STATUS billing_status = 50;
1622
+ */
1623
+ billingStatus = PROFORMA_INVOICE_BILLING_STATUS.PROFORMA_INVOICE_BILLING_STATUS_ANY_UNSPECIFIED;
1624
+ /**
1625
+ * Sales Order related filters
1626
+ * The associated consignee client ID of the linked sales order
1627
+ *
1628
+ * @generated from field: uint64 consignee_client_id = 60;
1629
+ */
1630
+ consigneeClientId = protobuf_1.protoInt64.zero;
1631
+ /**
1632
+ * The associated buyer client ID of the linked sales order
1633
+ *
1634
+ * @generated from field: uint64 buyer_client_id = 61;
1635
+ */
1636
+ buyerClientId = protobuf_1.protoInt64.zero;
1637
+ /**
1638
+ * The ID of the associated project of the linked sales order
1639
+ *
1640
+ * @generated from field: uint64 project_id = 62;
1641
+ */
1642
+ projectId = protobuf_1.protoInt64.zero;
1643
+ /**
1644
+ * Stores the minimum value of the proforma invoice (ignored if 0)
1645
+ *
1646
+ * @generated from field: uint64 total_value_min = 80;
1647
+ */
1648
+ totalValueMin = protobuf_1.protoInt64.zero;
1649
+ /**
1650
+ * Stores the maximum value of the proforma invoice (ignored if 0)
1651
+ *
1652
+ * @generated from field: uint64 total_value_max = 81;
1653
+ */
1654
+ totalValueMax = protobuf_1.protoInt64.zero;
1655
+ constructor(data) {
1656
+ super();
1657
+ protobuf_1.proto3.util.initPartial(data, this);
1658
+ }
1659
+ static runtime = protobuf_1.proto3;
1660
+ static typeName = "Scailo.ProformaInvoicesServiceFilterReq";
1661
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1662
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
1663
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1664
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1665
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
1666
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(PROFORMA_INVOICE_SORT_KEY) },
1667
+ { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1668
+ { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1669
+ { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1670
+ { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1671
+ { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1672
+ { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
1673
+ { no: 11, name: "approved_on_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1674
+ { no: 12, name: "approved_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1675
+ { no: 13, name: "approved_by_user_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1676
+ { no: 14, name: "approver_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1677
+ { no: 15, name: "completed_on_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1678
+ { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1679
+ { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1680
+ { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1681
+ { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1682
+ { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1683
+ { no: 24, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1684
+ { no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1685
+ { no: 40, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1686
+ { no: 50, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(PROFORMA_INVOICE_BILLING_STATUS) },
1687
+ { no: 60, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1688
+ { no: 61, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1689
+ { no: 62, name: "project_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1690
+ { no: 80, name: "total_value_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1691
+ { no: 81, name: "total_value_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1692
+ ]);
1693
+ static fromBinary(bytes, options) {
1694
+ return new ProformaInvoicesServiceFilterReq().fromBinary(bytes, options);
1695
+ }
1696
+ static fromJson(jsonValue, options) {
1697
+ return new ProformaInvoicesServiceFilterReq().fromJson(jsonValue, options);
1698
+ }
1699
+ static fromJsonString(jsonString, options) {
1700
+ return new ProformaInvoicesServiceFilterReq().fromJsonString(jsonString, options);
1701
+ }
1702
+ static equals(a, b) {
1703
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceFilterReq, a, b);
1704
+ }
1705
+ }
1706
+ exports.ProformaInvoicesServiceFilterReq = ProformaInvoicesServiceFilterReq;
1707
+ /**
1708
+ *
1709
+ * Describes the base request payload of a count search
1710
+ *
1711
+ * @generated from message Scailo.ProformaInvoicesServiceCountReq
1712
+ */
1713
+ class ProformaInvoicesServiceCountReq extends protobuf_1.Message {
1714
+ /**
1715
+ * If true, then returns only active records. If false, then returns only inactive records
1716
+ *
1717
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
1718
+ */
1719
+ isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
1720
+ /**
1721
+ * The minimum timestamp that needs to be considered to filter by creation
1722
+ *
1723
+ * @generated from field: uint64 creation_timestamp_start = 101;
1724
+ */
1725
+ creationTimestampStart = protobuf_1.protoInt64.zero;
1726
+ /**
1727
+ * The maximum timestamp that needs to be considered to filter by creation
1728
+ *
1729
+ * @generated from field: uint64 creation_timestamp_end = 102;
1730
+ */
1731
+ creationTimestampEnd = protobuf_1.protoInt64.zero;
1732
+ /**
1733
+ * The minimum timestamp that needs to be considered to filter by modification
1734
+ *
1735
+ * @generated from field: uint64 modification_timestamp_start = 103;
1736
+ */
1737
+ modificationTimestampStart = protobuf_1.protoInt64.zero;
1738
+ /**
1739
+ * The maximum timestamp that needs to be considered to filter by modification
1740
+ *
1741
+ * @generated from field: uint64 modification_timestamp_end = 104;
1742
+ */
1743
+ modificationTimestampEnd = protobuf_1.protoInt64.zero;
1744
+ /**
1745
+ * The entity UUID that is to be used to filter records
1746
+ *
1747
+ * @generated from field: string entity_uuid = 8;
1748
+ */
1749
+ entityUuid = "";
1750
+ /**
1751
+ * The status of this proforma invoice
1752
+ *
1753
+ * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 10;
1754
+ */
1755
+ status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
1756
+ /**
1757
+ * The start range of approved timestamp
1758
+ *
1759
+ * @generated from field: uint64 approved_on_start = 11;
1760
+ */
1761
+ approvedOnStart = protobuf_1.protoInt64.zero;
1762
+ /**
1763
+ * The end range of approved timestamp
1764
+ *
1765
+ * @generated from field: uint64 approved_on_end = 12;
1766
+ */
1767
+ approvedOnEnd = protobuf_1.protoInt64.zero;
1768
+ /**
1769
+ * The ID of the approver
1770
+ *
1771
+ * @generated from field: uint64 approved_by_user_id = 13;
1772
+ */
1773
+ approvedByUserId = protobuf_1.protoInt64.zero;
1774
+ /**
1775
+ * The role ID of the approver
1776
+ *
1777
+ * @generated from field: uint64 approver_role_id = 14;
1778
+ */
1779
+ approverRoleId = protobuf_1.protoInt64.zero;
1780
+ /**
1781
+ * The start range of completed timestamp
1782
+ *
1783
+ * @generated from field: uint64 completed_on_start = 15;
1784
+ */
1785
+ completedOnStart = protobuf_1.protoInt64.zero;
1786
+ /**
1787
+ * The end range of completed timestamp
1788
+ *
1789
+ * @generated from field: uint64 completed_on_end = 16;
1790
+ */
1791
+ completedOnEnd = protobuf_1.protoInt64.zero;
1792
+ /**
1793
+ * The reference ID of the proforma invoice
1794
+ *
1795
+ * @generated from field: string reference_id = 20;
1796
+ */
1797
+ referenceId = "";
1798
+ /**
1799
+ * The unique reference number that has been automatically generated
1800
+ *
1801
+ * @generated from field: string final_ref_number = 21;
1802
+ */
1803
+ finalRefNumber = "";
1804
+ /**
1805
+ * The associated reference
1806
+ *
1807
+ * @generated from field: string ref_from = 22;
1808
+ */
1809
+ refFrom = "";
1810
+ /**
1811
+ * The associated ID of the reference
1812
+ *
1813
+ * @generated from field: uint64 ref_id = 23;
1814
+ */
1815
+ refId = protobuf_1.protoInt64.zero;
1816
+ /**
1817
+ * The ID of the associated currency
1818
+ *
1819
+ * @generated from field: uint64 currency_id = 24;
1820
+ */
1821
+ currencyId = protobuf_1.protoInt64.zero;
1822
+ /**
1823
+ * The associated ID of the bank account
1824
+ *
1825
+ * @generated from field: uint64 bank_account_id = 25;
1826
+ */
1827
+ bankAccountId = protobuf_1.protoInt64.zero;
1828
+ /**
1829
+ * The ID of the family
1830
+ *
1831
+ * @generated from field: uint64 family_id = 40;
1832
+ */
1833
+ familyId = protobuf_1.protoInt64.zero;
1834
+ /**
1835
+ * The status of the proforma invoice bill
1836
+ *
1837
+ * @generated from field: Scailo.PROFORMA_INVOICE_BILLING_STATUS billing_status = 50;
1838
+ */
1839
+ billingStatus = PROFORMA_INVOICE_BILLING_STATUS.PROFORMA_INVOICE_BILLING_STATUS_ANY_UNSPECIFIED;
1840
+ /**
1841
+ * Sales Order related filters
1842
+ * The associated consignee client ID of the linked sales order
1843
+ *
1844
+ * @generated from field: uint64 consignee_client_id = 60;
1845
+ */
1846
+ consigneeClientId = protobuf_1.protoInt64.zero;
1847
+ /**
1848
+ * The associated buyer client ID of the linked sales order
1849
+ *
1850
+ * @generated from field: uint64 buyer_client_id = 61;
1851
+ */
1852
+ buyerClientId = protobuf_1.protoInt64.zero;
1853
+ /**
1854
+ * The ID of the associated project of the linked sales order
1855
+ *
1856
+ * @generated from field: uint64 project_id = 62;
1857
+ */
1858
+ projectId = protobuf_1.protoInt64.zero;
1859
+ /**
1860
+ * Stores the minimum value of the proforma invoice (ignored if 0)
1861
+ *
1862
+ * @generated from field: uint64 total_value_min = 80;
1863
+ */
1864
+ totalValueMin = protobuf_1.protoInt64.zero;
1865
+ /**
1866
+ * Stores the maximum value of the proforma invoice (ignored if 0)
1867
+ *
1868
+ * @generated from field: uint64 total_value_max = 81;
1869
+ */
1870
+ totalValueMax = protobuf_1.protoInt64.zero;
1871
+ constructor(data) {
1872
+ super();
1873
+ protobuf_1.proto3.util.initPartial(data, this);
1874
+ }
1875
+ static runtime = protobuf_1.proto3;
1876
+ static typeName = "Scailo.ProformaInvoicesServiceCountReq";
1877
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1878
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
1879
+ { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1880
+ { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1881
+ { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1882
+ { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1883
+ { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1884
+ { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
1885
+ { no: 11, name: "approved_on_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1886
+ { no: 12, name: "approved_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1887
+ { no: 13, name: "approved_by_user_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1888
+ { no: 14, name: "approver_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1889
+ { no: 15, name: "completed_on_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1890
+ { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1891
+ { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1892
+ { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1893
+ { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1894
+ { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1895
+ { no: 24, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1896
+ { no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1897
+ { no: 40, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1898
+ { no: 50, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(PROFORMA_INVOICE_BILLING_STATUS) },
1899
+ { no: 60, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1900
+ { no: 61, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1901
+ { no: 62, name: "project_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1902
+ { no: 80, name: "total_value_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1903
+ { no: 81, name: "total_value_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1904
+ ]);
1905
+ static fromBinary(bytes, options) {
1906
+ return new ProformaInvoicesServiceCountReq().fromBinary(bytes, options);
1907
+ }
1908
+ static fromJson(jsonValue, options) {
1909
+ return new ProformaInvoicesServiceCountReq().fromJson(jsonValue, options);
1910
+ }
1911
+ static fromJsonString(jsonString, options) {
1912
+ return new ProformaInvoicesServiceCountReq().fromJsonString(jsonString, options);
1913
+ }
1914
+ static equals(a, b) {
1915
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceCountReq, a, b);
1916
+ }
1917
+ }
1918
+ exports.ProformaInvoicesServiceCountReq = ProformaInvoicesServiceCountReq;
1919
+ /**
1920
+ *
1921
+ * Describes the request payload for performing a generic search operation on records
1922
+ *
1923
+ * @generated from message Scailo.ProformaInvoicesServiceSearchAllReq
1924
+ */
1925
+ class ProformaInvoicesServiceSearchAllReq extends protobuf_1.Message {
1926
+ /**
1927
+ * If true, then returns only active records. If false, then returns only inactive records
1928
+ *
1929
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
1930
+ */
1931
+ isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
1932
+ /**
1933
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
1934
+ *
1935
+ * @generated from field: int64 count = 2;
1936
+ */
1937
+ count = protobuf_1.protoInt64.zero;
1938
+ /**
1939
+ * The number that need to be offset by before fetching the records
1940
+ *
1941
+ * @generated from field: uint64 offset = 3;
1942
+ */
1943
+ offset = protobuf_1.protoInt64.zero;
1944
+ /**
1945
+ * The sort order that is to be used to fetch the pagination response
1946
+ *
1947
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
1948
+ */
1949
+ sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
1950
+ /**
1951
+ * The sort key that is to be used to fetch the pagination response
1952
+ *
1953
+ * @generated from field: Scailo.PROFORMA_INVOICE_SORT_KEY sort_key = 5;
1954
+ */
1955
+ sortKey = PROFORMA_INVOICE_SORT_KEY.PROFORMA_INVOICE_SORT_KEY_ID_UNSPECIFIED;
1956
+ /**
1957
+ * The entity UUID that is to be used to filter records
1958
+ *
1959
+ * @generated from field: string entity_uuid = 6;
1960
+ */
1961
+ entityUuid = "";
1962
+ /**
1963
+ * Limit the search space to the given status
1964
+ *
1965
+ * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 10;
1966
+ */
1967
+ status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
1968
+ /**
1969
+ * Describes the key with which the search operation needs to be performed
1970
+ *
1971
+ * @generated from field: string search_key = 11;
1972
+ */
1973
+ searchKey = "";
1974
+ /**
1975
+ * The associated reference
1976
+ *
1977
+ * @generated from field: string ref_from = 22;
1978
+ */
1979
+ refFrom = "";
1980
+ /**
1981
+ * The associated ID of the reference
1982
+ *
1983
+ * @generated from field: uint64 ref_id = 23;
1984
+ */
1985
+ refId = protobuf_1.protoInt64.zero;
1986
+ /**
1987
+ * The status of the proforma invoice bill
1988
+ *
1989
+ * @generated from field: Scailo.PROFORMA_INVOICE_BILLING_STATUS billing_status = 40;
1990
+ */
1991
+ billingStatus = PROFORMA_INVOICE_BILLING_STATUS.PROFORMA_INVOICE_BILLING_STATUS_ANY_UNSPECIFIED;
1992
+ /**
1993
+ * Sales Order related filters
1994
+ * The associated consignee client ID of the linked sales order
1995
+ *
1996
+ * @generated from field: uint64 consignee_client_id = 50;
1997
+ */
1998
+ consigneeClientId = protobuf_1.protoInt64.zero;
1999
+ /**
2000
+ * The associated buyer client ID of the linked sales order
2001
+ *
2002
+ * @generated from field: uint64 buyer_client_id = 51;
2003
+ */
2004
+ buyerClientId = protobuf_1.protoInt64.zero;
2005
+ constructor(data) {
2006
+ super();
2007
+ protobuf_1.proto3.util.initPartial(data, this);
2008
+ }
2009
+ static runtime = protobuf_1.proto3;
2010
+ static typeName = "Scailo.ProformaInvoicesServiceSearchAllReq";
2011
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2012
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
2013
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
2014
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2015
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
2016
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(PROFORMA_INVOICE_SORT_KEY) },
2017
+ { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2018
+ { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
2019
+ { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2020
+ { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2021
+ { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2022
+ { no: 40, name: "billing_status", kind: "enum", T: protobuf_1.proto3.getEnumType(PROFORMA_INVOICE_BILLING_STATUS) },
2023
+ { no: 50, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2024
+ { no: 51, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2025
+ ]);
2026
+ static fromBinary(bytes, options) {
2027
+ return new ProformaInvoicesServiceSearchAllReq().fromBinary(bytes, options);
2028
+ }
2029
+ static fromJson(jsonValue, options) {
2030
+ return new ProformaInvoicesServiceSearchAllReq().fromJson(jsonValue, options);
2031
+ }
2032
+ static fromJsonString(jsonString, options) {
2033
+ return new ProformaInvoicesServiceSearchAllReq().fromJsonString(jsonString, options);
2034
+ }
2035
+ static equals(a, b) {
2036
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServiceSearchAllReq, a, b);
2037
+ }
2038
+ }
2039
+ exports.ProformaInvoicesServiceSearchAllReq = ProformaInvoicesServiceSearchAllReq;
2040
+ /**
2041
+ *
2042
+ * Describes the request payload to retrieve approved or unapproved items.
2043
+ *
2044
+ * @generated from message Scailo.ProformaInvoiceItemsSearchRequest
2045
+ */
2046
+ class ProformaInvoiceItemsSearchRequest extends protobuf_1.Message {
2047
+ /**
2048
+ * If true, then returns only active records. If false, then returns only inactive records
2049
+ *
2050
+ * @generated from field: Scailo.BOOL_FILTER is_active = 1;
2051
+ */
2052
+ isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
2053
+ /**
2054
+ * The number of records that need to be sent in the response. Returns all records if it is set to -1
2055
+ *
2056
+ * @generated from field: int64 count = 2;
2057
+ */
2058
+ count = protobuf_1.protoInt64.zero;
2059
+ /**
2060
+ * The number that need to be offset by before fetching the records
2061
+ *
2062
+ * @generated from field: uint64 offset = 3;
2063
+ */
2064
+ offset = protobuf_1.protoInt64.zero;
2065
+ /**
2066
+ * The sort order that is to be used to fetch the pagination response
2067
+ *
2068
+ * @generated from field: Scailo.SORT_ORDER sort_order = 4;
2069
+ */
2070
+ sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
2071
+ /**
2072
+ * The sort key that is to be used to fetch the pagination response
2073
+ *
2074
+ * @generated from field: Scailo.PROFORMA_INVOICE_ITEM_SORT_KEY sort_key = 5;
2075
+ */
2076
+ sortKey = PROFORMA_INVOICE_ITEM_SORT_KEY.PROFORMA_INVOICE_ITEM_SORT_KEY_ID_UNSPECIFIED;
2077
+ /**
2078
+ * The entity UUID that is to be used to filter records
2079
+ *
2080
+ * @generated from field: string entity_uuid = 6;
2081
+ */
2082
+ entityUuid = "";
2083
+ /**
2084
+ * The status of the items
2085
+ *
2086
+ * @generated from field: Scailo.PROFORMA_INVOICE_ITEM_STATUS status = 7;
2087
+ */
2088
+ status = PROFORMA_INVOICE_ITEM_STATUS.PROFORMA_INVOICE_ITEM_STATUS_ANY_UNSPECIFIED;
2089
+ /**
2090
+ * The start range of approved timestamp
2091
+ *
2092
+ * @generated from field: uint64 approved_on_start = 10;
2093
+ */
2094
+ approvedOnStart = protobuf_1.protoInt64.zero;
2095
+ /**
2096
+ * The end range of approved timestamp
2097
+ *
2098
+ * @generated from field: uint64 approved_on_end = 11;
2099
+ */
2100
+ approvedOnEnd = protobuf_1.protoInt64.zero;
2101
+ /**
2102
+ * The ID of the approver
2103
+ *
2104
+ * @generated from field: uint64 approved_by_user_id = 12;
2105
+ */
2106
+ approvedByUserId = protobuf_1.protoInt64.zero;
2107
+ /**
2108
+ * The role ID of the approver
2109
+ *
2110
+ * @generated from field: uint64 approver_role_id = 13;
2111
+ */
2112
+ approverRoleId = protobuf_1.protoInt64.zero;
2113
+ /**
2114
+ * The ID of the proforma invoice
2115
+ *
2116
+ * @generated from field: uint64 proforma_invoice_id = 20;
2117
+ */
2118
+ proformaInvoiceId = protobuf_1.protoInt64.zero;
2119
+ /**
2120
+ * The ID of the family
2121
+ *
2122
+ * @generated from field: uint64 family_id = 21;
2123
+ */
2124
+ familyId = protobuf_1.protoInt64.zero;
2125
+ /**
2126
+ * The ID of the client's unit of material
2127
+ *
2128
+ * @generated from field: uint64 client_uom_id = 23;
2129
+ */
2130
+ clientUomId = protobuf_1.protoInt64.zero;
2131
+ /**
2132
+ * Stores the family code as given by the client
2133
+ *
2134
+ * @generated from field: string client_family_code = 25;
2135
+ */
2136
+ clientFamilyCode = "";
2137
+ /**
2138
+ * The ID of the tax group
2139
+ *
2140
+ * @generated from field: uint64 tax_group_id = 27;
2141
+ */
2142
+ taxGroupId = protobuf_1.protoInt64.zero;
2143
+ /**
2144
+ * Describes the key with which the search operation needs to be performed
2145
+ *
2146
+ * @generated from field: string search_key = 40;
2147
+ */
2148
+ searchKey = "";
2149
+ constructor(data) {
2150
+ super();
2151
+ protobuf_1.proto3.util.initPartial(data, this);
2152
+ }
2153
+ static runtime = protobuf_1.proto3;
2154
+ static typeName = "Scailo.ProformaInvoiceItemsSearchRequest";
2155
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2156
+ { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
2157
+ { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
2158
+ { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2159
+ { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
2160
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(PROFORMA_INVOICE_ITEM_SORT_KEY) },
2161
+ { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2162
+ { no: 7, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(PROFORMA_INVOICE_ITEM_STATUS) },
2163
+ { no: 10, name: "approved_on_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2164
+ { no: 11, name: "approved_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2165
+ { no: 12, name: "approved_by_user_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2166
+ { no: 13, name: "approver_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2167
+ { no: 20, name: "proforma_invoice_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2168
+ { no: 21, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2169
+ { no: 23, name: "client_uom_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2170
+ { no: 25, name: "client_family_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2171
+ { no: 27, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2172
+ { no: 40, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2173
+ ]);
2174
+ static fromBinary(bytes, options) {
2175
+ return new ProformaInvoiceItemsSearchRequest().fromBinary(bytes, options);
2176
+ }
2177
+ static fromJson(jsonValue, options) {
2178
+ return new ProformaInvoiceItemsSearchRequest().fromJson(jsonValue, options);
2179
+ }
2180
+ static fromJsonString(jsonString, options) {
2181
+ return new ProformaInvoiceItemsSearchRequest().fromJsonString(jsonString, options);
2182
+ }
2183
+ static equals(a, b) {
2184
+ return protobuf_1.proto3.util.equals(ProformaInvoiceItemsSearchRequest, a, b);
2185
+ }
2186
+ }
2187
+ exports.ProformaInvoiceItemsSearchRequest = ProformaInvoiceItemsSearchRequest;
2188
+ /**
2189
+ *
2190
+ * Describes the response to a pagination items request
2191
+ *
2192
+ * @generated from message Scailo.ProformaInvoicesServicePaginatedItemsResponse
2193
+ */
2194
+ class ProformaInvoicesServicePaginatedItemsResponse extends protobuf_1.Message {
2195
+ /**
2196
+ * The number of records in this payload
2197
+ *
2198
+ * @generated from field: uint64 count = 1;
2199
+ */
2200
+ count = protobuf_1.protoInt64.zero;
2201
+ /**
2202
+ * The number that has been offset before fetching the records. This is the same value that has been sent as part of the pagination request
2203
+ *
2204
+ * @generated from field: uint64 offset = 2;
2205
+ */
2206
+ offset = protobuf_1.protoInt64.zero;
2207
+ /**
2208
+ * The total number of records that are available
2209
+ *
2210
+ * @generated from field: uint64 total = 3;
2211
+ */
2212
+ total = protobuf_1.protoInt64.zero;
2213
+ /**
2214
+ * The list of records
2215
+ *
2216
+ * @generated from field: repeated Scailo.ProformaInvoiceItem payload = 4;
2217
+ */
2218
+ payload = [];
2219
+ constructor(data) {
2220
+ super();
2221
+ protobuf_1.proto3.util.initPartial(data, this);
2222
+ }
2223
+ static runtime = protobuf_1.proto3;
2224
+ static typeName = "Scailo.ProformaInvoicesServicePaginatedItemsResponse";
2225
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2226
+ { no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2227
+ { no: 2, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2228
+ { no: 3, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2229
+ { no: 4, name: "payload", kind: "message", T: ProformaInvoiceItem, repeated: true },
2230
+ ]);
2231
+ static fromBinary(bytes, options) {
2232
+ return new ProformaInvoicesServicePaginatedItemsResponse().fromBinary(bytes, options);
2233
+ }
2234
+ static fromJson(jsonValue, options) {
2235
+ return new ProformaInvoicesServicePaginatedItemsResponse().fromJson(jsonValue, options);
2236
+ }
2237
+ static fromJsonString(jsonString, options) {
2238
+ return new ProformaInvoicesServicePaginatedItemsResponse().fromJsonString(jsonString, options);
2239
+ }
2240
+ static equals(a, b) {
2241
+ return protobuf_1.proto3.util.equals(ProformaInvoicesServicePaginatedItemsResponse, a, b);
2242
+ }
2243
+ }
2244
+ exports.ProformaInvoicesServicePaginatedItemsResponse = ProformaInvoicesServicePaginatedItemsResponse;