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