@kernelminds/scailo-sdk 0.1.15 → 0.1.16
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/src/base.scailo_pb.js +35 -2
- package/lib/cjs/src/inventory.scailo_connect.js +12 -1
- package/lib/cjs/src/inventory.scailo_pb.js +34 -1
- package/lib/cjs/src/purchases_payments.scailo_connect.js +32 -1
- package/lib/cjs/src/purchases_payments.scailo_pb.js +68 -28
- package/lib/cjs/src/sales_receipts.scailo_connect.js +37 -6
- package/lib/cjs/src/sales_receipts.scailo_pb.js +137 -97
- package/lib/cjs/types/src/base.scailo_pb.d.ts +26 -0
- package/lib/cjs/types/src/base.scailo_pb.d.ts.map +1 -1
- package/lib/cjs/types/src/inventory.scailo_connect.d.ts +14 -3
- package/lib/cjs/types/src/inventory.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/inventory.scailo_pb.d.ts +19 -0
- package/lib/cjs/types/src/inventory.scailo_pb.d.ts.map +1 -1
- package/lib/cjs/types/src/purchases_payments.scailo_connect.d.ts +33 -2
- package/lib/cjs/types/src/purchases_payments.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/purchases_payments.scailo_pb.d.ts +51 -19
- package/lib/cjs/types/src/purchases_payments.scailo_pb.d.ts.map +1 -1
- package/lib/cjs/types/src/sales_receipts.scailo_connect.d.ts +39 -8
- package/lib/cjs/types/src/sales_receipts.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/sales_receipts.scailo_pb.d.ts +99 -67
- package/lib/cjs/types/src/sales_receipts.scailo_pb.d.ts.map +1 -1
- package/lib/esm/src/base.scailo_pb.js +35 -2
- package/lib/esm/src/inventory.scailo_connect.js +12 -1
- package/lib/esm/src/inventory.scailo_pb.js +34 -1
- package/lib/esm/src/purchases_payments.scailo_connect.js +32 -1
- package/lib/esm/src/purchases_payments.scailo_pb.js +68 -28
- package/lib/esm/src/sales_receipts.scailo_connect.js +37 -6
- package/lib/esm/src/sales_receipts.scailo_pb.js +134 -94
- package/lib/esm/types/src/base.scailo_pb.d.ts +26 -0
- package/lib/esm/types/src/base.scailo_pb.d.ts.map +1 -1
- package/lib/esm/types/src/inventory.scailo_connect.d.ts +14 -3
- package/lib/esm/types/src/inventory.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/inventory.scailo_pb.d.ts +19 -0
- package/lib/esm/types/src/inventory.scailo_pb.d.ts.map +1 -1
- package/lib/esm/types/src/purchases_payments.scailo_connect.d.ts +33 -2
- package/lib/esm/types/src/purchases_payments.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/purchases_payments.scailo_pb.d.ts +51 -19
- package/lib/esm/types/src/purchases_payments.scailo_pb.d.ts.map +1 -1
- package/lib/esm/types/src/sales_receipts.scailo_connect.d.ts +39 -8
- package/lib/esm/types/src/sales_receipts.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/sales_receipts.scailo_pb.d.ts +99 -67
- package/lib/esm/types/src/sales_receipts.scailo_pb.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
exports.AmendmentLogsList = exports.AmendmentLog = exports.InventoryInteractionsList = exports.InventoryInteraction = exports.InventoryPartitionRequest = exports.LogbookLogInventoryLC = exports.StandardFile = exports.CloneRequest = exports.ReorderItemsRequest = void 0;
|
|
7
|
+
exports.LogbookLogConciseGenericCreateRequest = exports.LogbookLogConciseSLCCreateRequest = exports.LogbookLogConciseSLC = exports.IdentifierUUIDsList = exports.IdentifierUUIDWithUserComment = exports.IdentifierUUID = exports.IdentifierUUIDWithFile = exports.IdentifierWithFile = exports.IdentifierWithSearchKey = exports.IdentifierWithEmailAttributes = exports.IdentifierWithUserComment = exports.StringsList = exports.IdentifiersList = exports.IdentifierZeroable = exports.IdentifierResponse = exports.Identifier = exports.RepeatWithDeliveryDate = exports.SimpleSearchReq = exports.UploadPictureReq = exports.UpdateOwnPasswordReq = exports.UpdatePasswordReq = exports.ActiveStatus = exports.ApprovalMetadata = exports.EmployeeMetadata = exports.DualQuantitiesResponse = exports.QuantityResponse = exports.SumResponse = exports.CountResponse = exports.CountInSLCStatusRequest = exports.GPSCoordinatesResponse = exports.MonthAndDayFilter = exports.Base64String = exports.ImageResponse = exports.PriceResponse = exports.StringResponse = exports.BytesResponse = exports.BooleanResponse = exports.Empty = exports.TRANSACTION_TYPE = exports.AMENDMENT_LOG_REF_FOR = exports.INVENTORY_ISSUED_PURPOSE = exports.INVENTORY_INTERACTION_CATEGORY = exports.INVENTORY_SORT_KEY = exports.INVENTORY_LIFECYCLE = exports.BOOL_FILTER = exports.LOGBOOK_OPERATION = exports.FORM_FIELD_ELEMENT = exports.FORM_TYPE = exports.STANDARD_LIFECYCLE_STATUS = exports.SORT_ORDER = void 0;
|
|
8
|
+
exports.AmendmentLogsList = exports.AmendmentLog = exports.InventoryInteractionsList = exports.InventoryInteraction = exports.InventoryPartitionRequest = exports.LogbookLogInventoryLC = exports.StandardFile = exports.CloneRequest = exports.ReorderItemsRequest = exports.LogbookLogComplete = void 0;
|
|
9
9
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
@@ -1133,6 +1133,39 @@ protobuf_1.proto3.util.setEnumType(AMENDMENT_LOG_REF_FOR, "Scailo.AMENDMENT_LOG_
|
|
|
1133
1133
|
{ no: 50, name: "AMENDMENT_LOG_REF_FOR_WORK_ORDER" },
|
|
1134
1134
|
{ no: 100, name: "AMENDMENT_LOG_REF_FOR_EQUATION_WORK_ORDER" },
|
|
1135
1135
|
]);
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
* Stores all the possible references of a transaction type
|
|
1139
|
+
*
|
|
1140
|
+
* @generated from enum Scailo.TRANSACTION_TYPE
|
|
1141
|
+
*/
|
|
1142
|
+
var TRANSACTION_TYPE;
|
|
1143
|
+
(function (TRANSACTION_TYPE) {
|
|
1144
|
+
/**
|
|
1145
|
+
* Only used for filter operations
|
|
1146
|
+
*
|
|
1147
|
+
* @generated from enum value: TRANSACTION_TYPE_ANY_UNSPECIFIED = 0;
|
|
1148
|
+
*/
|
|
1149
|
+
TRANSACTION_TYPE[TRANSACTION_TYPE["TRANSACTION_TYPE_ANY_UNSPECIFIED"] = 0] = "TRANSACTION_TYPE_ANY_UNSPECIFIED";
|
|
1150
|
+
/**
|
|
1151
|
+
* Denotes a credit
|
|
1152
|
+
*
|
|
1153
|
+
* @generated from enum value: TRANSACTION_TYPE_CREDIT = 1;
|
|
1154
|
+
*/
|
|
1155
|
+
TRANSACTION_TYPE[TRANSACTION_TYPE["TRANSACTION_TYPE_CREDIT"] = 1] = "TRANSACTION_TYPE_CREDIT";
|
|
1156
|
+
/**
|
|
1157
|
+
* Denotes a debit
|
|
1158
|
+
*
|
|
1159
|
+
* @generated from enum value: TRANSACTION_TYPE_DEBIT = 2;
|
|
1160
|
+
*/
|
|
1161
|
+
TRANSACTION_TYPE[TRANSACTION_TYPE["TRANSACTION_TYPE_DEBIT"] = 2] = "TRANSACTION_TYPE_DEBIT";
|
|
1162
|
+
})(TRANSACTION_TYPE || (exports.TRANSACTION_TYPE = TRANSACTION_TYPE = {}));
|
|
1163
|
+
// Retrieve enum metadata with: proto3.getEnumType(TRANSACTION_TYPE)
|
|
1164
|
+
protobuf_1.proto3.util.setEnumType(TRANSACTION_TYPE, "Scailo.TRANSACTION_TYPE", [
|
|
1165
|
+
{ no: 0, name: "TRANSACTION_TYPE_ANY_UNSPECIFIED" },
|
|
1166
|
+
{ no: 1, name: "TRANSACTION_TYPE_CREDIT" },
|
|
1167
|
+
{ no: 2, name: "TRANSACTION_TYPE_DEBIT" },
|
|
1168
|
+
]);
|
|
1136
1169
|
/**
|
|
1137
1170
|
*
|
|
1138
1171
|
* Describes an empty object
|
|
@@ -243,7 +243,7 @@ exports.InventoryService = {
|
|
|
243
243
|
kind: protobuf_1.MethodKind.Unary,
|
|
244
244
|
},
|
|
245
245
|
/**
|
|
246
|
-
* View consolidated inventory statistics
|
|
246
|
+
* View consolidated inventory statistics for family with the given Identifier
|
|
247
247
|
*
|
|
248
248
|
* @generated from rpc Scailo.InventoryService.ViewConsolidatedStatistics
|
|
249
249
|
*/
|
|
@@ -253,6 +253,17 @@ exports.InventoryService = {
|
|
|
253
253
|
O: inventory_scailo_pb_js_1.ConsolidatedInventoryStatistics,
|
|
254
254
|
kind: protobuf_1.MethodKind.Unary,
|
|
255
255
|
},
|
|
256
|
+
/**
|
|
257
|
+
* View consolidated inventory statistics for families with the given IdentifiersList
|
|
258
|
+
*
|
|
259
|
+
* @generated from rpc Scailo.InventoryService.ViewConsolidatedStatisticsForFamilies
|
|
260
|
+
*/
|
|
261
|
+
viewConsolidatedStatisticsForFamilies: {
|
|
262
|
+
name: "ViewConsolidatedStatisticsForFamilies",
|
|
263
|
+
I: base_scailo_pb_js_1.IdentifiersList,
|
|
264
|
+
O: inventory_scailo_pb_js_1.ConsolidatedInventoryStatisticsList,
|
|
265
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
266
|
+
},
|
|
256
267
|
/**
|
|
257
268
|
* View inventory placed in storage represented by the Identifier
|
|
258
269
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.InventoryDemand = exports.InventoryDemandMap = exports.InventoryDetailedDemand = exports.InventoryOrderedStatistics = exports.InventoryIndentedStatistics = exports.InventoryWorkInProgressStatistics = exports.AbridgedPurchaseReturnItem = exports.AbridgedGoodsReceiptItem = exports.AbridgedPurchaseOrderItem = exports.AbridgedPurchaseIndentItem = exports.AbridgedInventoryItem = exports.AbridgedProductionPlanItem = exports.ConsolidatedInventoryStatistics = exports.FilterReturnableInventoryForIdentifierUUID = exports.FilterReturnableInventoryReq = exports.SearchReturnableInventoryForIdentifierUUID = exports.SearchReturnableInventoryReq = exports.ReturnableInventorySearchReq = exports.InventoryServiceFamilyQuantityReq = exports.InventoryHashSearchReq = exports.IssuableInventorySearchReq = exports.InventoryCodeMap = exports.GenericInventoryList = exports.GenericInventory = exports.INVENTORY_NODE_ORIGIN_TYPE = exports.GENERIC_INVENTORY_REF_FROM = void 0;
|
|
7
|
+
exports.InventoryDemand = exports.InventoryDemandMap = exports.InventoryDetailedDemand = exports.InventoryOrderedStatistics = exports.InventoryIndentedStatistics = exports.InventoryWorkInProgressStatistics = exports.AbridgedPurchaseReturnItem = exports.AbridgedGoodsReceiptItem = exports.AbridgedPurchaseOrderItem = exports.AbridgedPurchaseIndentItem = exports.AbridgedInventoryItem = exports.AbridgedProductionPlanItem = exports.ConsolidatedInventoryStatisticsList = exports.ConsolidatedInventoryStatistics = exports.FilterReturnableInventoryForIdentifierUUID = exports.FilterReturnableInventoryReq = exports.SearchReturnableInventoryForIdentifierUUID = exports.SearchReturnableInventoryReq = exports.ReturnableInventorySearchReq = exports.InventoryServiceFamilyQuantityReq = exports.InventoryHashSearchReq = exports.IssuableInventorySearchReq = exports.InventoryCodeMap = exports.GenericInventoryList = exports.GenericInventory = exports.INVENTORY_NODE_ORIGIN_TYPE = exports.GENERIC_INVENTORY_REF_FROM = void 0;
|
|
8
8
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
9
9
|
const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
|
|
10
10
|
const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
|
|
@@ -1266,6 +1266,39 @@ ConsolidatedInventoryStatistics.fields = protobuf_1.proto3.util.newFieldList(()
|
|
|
1266
1266
|
{ no: 150, name: "store_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1267
1267
|
{ no: 200, name: "required_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1268
1268
|
]);
|
|
1269
|
+
/**
|
|
1270
|
+
* @generated from message Scailo.ConsolidatedInventoryStatisticsList
|
|
1271
|
+
*/
|
|
1272
|
+
class ConsolidatedInventoryStatisticsList extends protobuf_1.Message {
|
|
1273
|
+
constructor(data) {
|
|
1274
|
+
super();
|
|
1275
|
+
/**
|
|
1276
|
+
* The list of records
|
|
1277
|
+
*
|
|
1278
|
+
* @generated from field: repeated Scailo.ConsolidatedInventoryStatistics list = 1;
|
|
1279
|
+
*/
|
|
1280
|
+
this.list = [];
|
|
1281
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1282
|
+
}
|
|
1283
|
+
static fromBinary(bytes, options) {
|
|
1284
|
+
return new ConsolidatedInventoryStatisticsList().fromBinary(bytes, options);
|
|
1285
|
+
}
|
|
1286
|
+
static fromJson(jsonValue, options) {
|
|
1287
|
+
return new ConsolidatedInventoryStatisticsList().fromJson(jsonValue, options);
|
|
1288
|
+
}
|
|
1289
|
+
static fromJsonString(jsonString, options) {
|
|
1290
|
+
return new ConsolidatedInventoryStatisticsList().fromJsonString(jsonString, options);
|
|
1291
|
+
}
|
|
1292
|
+
static equals(a, b) {
|
|
1293
|
+
return protobuf_1.proto3.util.equals(ConsolidatedInventoryStatisticsList, a, b);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
exports.ConsolidatedInventoryStatisticsList = ConsolidatedInventoryStatisticsList;
|
|
1297
|
+
ConsolidatedInventoryStatisticsList.runtime = protobuf_1.proto3;
|
|
1298
|
+
ConsolidatedInventoryStatisticsList.typeName = "Scailo.ConsolidatedInventoryStatisticsList";
|
|
1299
|
+
ConsolidatedInventoryStatisticsList.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1300
|
+
{ no: 1, name: "list", kind: "message", T: ConsolidatedInventoryStatistics, repeated: true },
|
|
1301
|
+
]);
|
|
1269
1302
|
/**
|
|
1270
1303
|
*
|
|
1271
1304
|
* Describes the abridged version of each production plan item
|
|
@@ -174,7 +174,16 @@ exports.PurchasesPaymentsService = {
|
|
|
174
174
|
},
|
|
175
175
|
/**
|
|
176
176
|
* Send Email
|
|
177
|
-
*
|
|
177
|
+
*
|
|
178
|
+
* @generated from rpc Scailo.PurchasesPaymentsService.SendEmail
|
|
179
|
+
*/
|
|
180
|
+
sendEmail: {
|
|
181
|
+
name: "SendEmail",
|
|
182
|
+
I: base_scailo_pb_js_1.IdentifierWithEmailAttributes,
|
|
183
|
+
O: base_scailo_pb_js_1.IdentifierResponse,
|
|
184
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
178
187
|
* Create a magic link
|
|
179
188
|
*
|
|
180
189
|
* @generated from rpc Scailo.PurchasesPaymentsService.CreateMagicLink
|
|
@@ -284,6 +293,28 @@ exports.PurchasesPaymentsService = {
|
|
|
284
293
|
O: purchases_payments_scailo_pb_js_1.PurchasesPaymentsServicePaginationResponse,
|
|
285
294
|
kind: protobuf_1.MethodKind.Unary,
|
|
286
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* Checks if the record is downloadable (checks if the custom download function has been implemented)
|
|
298
|
+
*
|
|
299
|
+
* @generated from rpc Scailo.PurchasesPaymentsService.IsDownloadable
|
|
300
|
+
*/
|
|
301
|
+
isDownloadable: {
|
|
302
|
+
name: "IsDownloadable",
|
|
303
|
+
I: base_scailo_pb_js_1.IdentifierUUID,
|
|
304
|
+
O: base_scailo_pb_js_1.BooleanResponse,
|
|
305
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* Download purchase payment with the given IdentifierUUID (can be used to allow public downloads)
|
|
309
|
+
*
|
|
310
|
+
* @generated from rpc Scailo.PurchasesPaymentsService.DownloadByUUID
|
|
311
|
+
*/
|
|
312
|
+
downloadByUUID: {
|
|
313
|
+
name: "DownloadByUUID",
|
|
314
|
+
I: base_scailo_pb_js_1.IdentifierUUID,
|
|
315
|
+
O: base_scailo_pb_js_1.StandardFile,
|
|
316
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
317
|
+
},
|
|
287
318
|
/**
|
|
288
319
|
* View all that match the given search key
|
|
289
320
|
*
|
|
@@ -4,9 +4,49 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.PurchasesPaymentsServiceSearchAllReq = exports.PurchasesPaymentsServiceCountReq = exports.PurchasesPaymentsServiceFilterReq = exports.PurchasesPaymentsServicePaginationResponse = exports.PurchasesPaymentsServicePaginationReq = exports.PurchasesPaymentsList = exports.PurchasePayment = exports.PurchasePaymentAncillaryParameters = exports.PurchasesPaymentsServiceUpdateRequest = exports.PurchasesPaymentsServiceCreateRequest = exports.PURCHASE_PAYMENT_SORT_KEY = void 0;
|
|
7
|
+
exports.PurchasesPaymentsServiceSearchAllReq = exports.PurchasesPaymentsServiceCountReq = exports.PurchasesPaymentsServiceFilterReq = exports.PurchasesPaymentsServicePaginationResponse = exports.PurchasesPaymentsServicePaginationReq = exports.PurchasesPaymentsList = exports.PurchasePayment = exports.PurchasePaymentAncillaryParameters = exports.PurchasesPaymentsServiceUpdateRequest = exports.PurchasesPaymentsServiceCreateRequest = exports.PURCHASE_PAYMENT_SORT_KEY = exports.PURCHASE_PAYMENT_REF_FROM = void 0;
|
|
8
8
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
9
9
|
const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* Stores all the possible references from which a purchase payment can be added
|
|
13
|
+
*
|
|
14
|
+
* @generated from enum Scailo.PURCHASE_PAYMENT_REF_FROM
|
|
15
|
+
*/
|
|
16
|
+
var PURCHASE_PAYMENT_REF_FROM;
|
|
17
|
+
(function (PURCHASE_PAYMENT_REF_FROM) {
|
|
18
|
+
/**
|
|
19
|
+
* Used only in filters
|
|
20
|
+
*
|
|
21
|
+
* @generated from enum value: PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED = 0;
|
|
22
|
+
*/
|
|
23
|
+
PURCHASE_PAYMENT_REF_FROM[PURCHASE_PAYMENT_REF_FROM["PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED"] = 0] = "PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED";
|
|
24
|
+
/**
|
|
25
|
+
* Denotes that the purchase payment originated from a purchase order
|
|
26
|
+
*
|
|
27
|
+
* @generated from enum value: PURCHASE_PAYMENT_REF_FROM_PURCHASE_ORDER = 1;
|
|
28
|
+
*/
|
|
29
|
+
PURCHASE_PAYMENT_REF_FROM[PURCHASE_PAYMENT_REF_FROM["PURCHASE_PAYMENT_REF_FROM_PURCHASE_ORDER"] = 1] = "PURCHASE_PAYMENT_REF_FROM_PURCHASE_ORDER";
|
|
30
|
+
/**
|
|
31
|
+
* Denotes that the purchase payment originated from a vendor invoice
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: PURCHASE_PAYMENT_REF_FROM_VENDOR_INVOICE = 2;
|
|
34
|
+
*/
|
|
35
|
+
PURCHASE_PAYMENT_REF_FROM[PURCHASE_PAYMENT_REF_FROM["PURCHASE_PAYMENT_REF_FROM_VENDOR_INVOICE"] = 2] = "PURCHASE_PAYMENT_REF_FROM_VENDOR_INVOICE";
|
|
36
|
+
/**
|
|
37
|
+
* Denotes that the purchase payment originated from a debit note
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: PURCHASE_PAYMENT_REF_FROM_DEBIT_NOTE = 3;
|
|
40
|
+
*/
|
|
41
|
+
PURCHASE_PAYMENT_REF_FROM[PURCHASE_PAYMENT_REF_FROM["PURCHASE_PAYMENT_REF_FROM_DEBIT_NOTE"] = 3] = "PURCHASE_PAYMENT_REF_FROM_DEBIT_NOTE";
|
|
42
|
+
})(PURCHASE_PAYMENT_REF_FROM || (exports.PURCHASE_PAYMENT_REF_FROM = PURCHASE_PAYMENT_REF_FROM = {}));
|
|
43
|
+
// Retrieve enum metadata with: proto3.getEnumType(PURCHASE_PAYMENT_REF_FROM)
|
|
44
|
+
protobuf_1.proto3.util.setEnumType(PURCHASE_PAYMENT_REF_FROM, "Scailo.PURCHASE_PAYMENT_REF_FROM", [
|
|
45
|
+
{ no: 0, name: "PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED" },
|
|
46
|
+
{ no: 1, name: "PURCHASE_PAYMENT_REF_FROM_PURCHASE_ORDER" },
|
|
47
|
+
{ no: 2, name: "PURCHASE_PAYMENT_REF_FROM_VENDOR_INVOICE" },
|
|
48
|
+
{ no: 3, name: "PURCHASE_PAYMENT_REF_FROM_DEBIT_NOTE" },
|
|
49
|
+
]);
|
|
10
50
|
/**
|
|
11
51
|
*
|
|
12
52
|
* Describes the available sort keys
|
|
@@ -125,9 +165,9 @@ class PurchasesPaymentsServiceCreateRequest extends protobuf_1.Message {
|
|
|
125
165
|
/**
|
|
126
166
|
* The reference on which the purchase payment has been created
|
|
127
167
|
*
|
|
128
|
-
* @generated from field:
|
|
168
|
+
* @generated from field: Scailo.PURCHASE_PAYMENT_REF_FROM ref_from = 12;
|
|
129
169
|
*/
|
|
130
|
-
this.refFrom =
|
|
170
|
+
this.refFrom = PURCHASE_PAYMENT_REF_FROM.PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED;
|
|
131
171
|
/**
|
|
132
172
|
* The ID of the associated reference
|
|
133
173
|
*
|
|
@@ -149,9 +189,9 @@ class PurchasesPaymentsServiceCreateRequest extends protobuf_1.Message {
|
|
|
149
189
|
/**
|
|
150
190
|
* The type of the transaction
|
|
151
191
|
*
|
|
152
|
-
* @generated from field:
|
|
192
|
+
* @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 17;
|
|
153
193
|
*/
|
|
154
|
-
this.transactionType =
|
|
194
|
+
this.transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
|
|
155
195
|
/**
|
|
156
196
|
* The initial amount in cents, without any deductions
|
|
157
197
|
*
|
|
@@ -199,11 +239,11 @@ PurchasesPaymentsServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldLi
|
|
|
199
239
|
{ no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
200
240
|
{ no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
201
241
|
{ no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
202
|
-
{ no: 12, name: "ref_from", kind: "
|
|
242
|
+
{ no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_PAYMENT_REF_FROM) },
|
|
203
243
|
{ no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
204
244
|
{ no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
205
245
|
{ no: 16, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
206
|
-
{ no: 17, name: "transaction_type", kind: "
|
|
246
|
+
{ no: 17, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
|
|
207
247
|
{ no: 18, name: "amount_base", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
208
248
|
{ no: 19, name: "amount_net", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
209
249
|
{ no: 20, name: "payment_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
@@ -263,9 +303,9 @@ class PurchasesPaymentsServiceUpdateRequest extends protobuf_1.Message {
|
|
|
263
303
|
/**
|
|
264
304
|
* The type of the transaction
|
|
265
305
|
*
|
|
266
|
-
* @generated from field:
|
|
306
|
+
* @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 17;
|
|
267
307
|
*/
|
|
268
|
-
this.transactionType =
|
|
308
|
+
this.transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
|
|
269
309
|
/**
|
|
270
310
|
* The initial amount in cents, without any deductions
|
|
271
311
|
*
|
|
@@ -316,7 +356,7 @@ PurchasesPaymentsServiceUpdateRequest.fields = protobuf_1.proto3.util.newFieldLi
|
|
|
316
356
|
{ no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
317
357
|
{ no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
318
358
|
{ no: 16, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
319
|
-
{ no: 17, name: "transaction_type", kind: "
|
|
359
|
+
{ no: 17, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
|
|
320
360
|
{ no: 18, name: "amount_base", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
321
361
|
{ no: 19, name: "amount_net", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
322
362
|
{ no: 20, name: "payment_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
@@ -433,9 +473,9 @@ class PurchasePayment extends protobuf_1.Message {
|
|
|
433
473
|
/**
|
|
434
474
|
* The reference on which the purchase payment has been created
|
|
435
475
|
*
|
|
436
|
-
* @generated from field:
|
|
476
|
+
* @generated from field: Scailo.PURCHASE_PAYMENT_REF_FROM ref_from = 12;
|
|
437
477
|
*/
|
|
438
|
-
this.refFrom =
|
|
478
|
+
this.refFrom = PURCHASE_PAYMENT_REF_FROM.PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED;
|
|
439
479
|
/**
|
|
440
480
|
* The ID of the associated reference
|
|
441
481
|
*
|
|
@@ -463,9 +503,9 @@ class PurchasePayment extends protobuf_1.Message {
|
|
|
463
503
|
/**
|
|
464
504
|
* The type of the transaction
|
|
465
505
|
*
|
|
466
|
-
* @generated from field:
|
|
506
|
+
* @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 17;
|
|
467
507
|
*/
|
|
468
|
-
this.transactionType =
|
|
508
|
+
this.transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
|
|
469
509
|
/**
|
|
470
510
|
* The initial amount in cents, without any deductions
|
|
471
511
|
*
|
|
@@ -518,12 +558,12 @@ PurchasePayment.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
518
558
|
{ no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
519
559
|
{ no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
520
560
|
{ no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
521
|
-
{ no: 12, name: "ref_from", kind: "
|
|
561
|
+
{ no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_PAYMENT_REF_FROM) },
|
|
522
562
|
{ no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
523
563
|
{ no: 14, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
524
564
|
{ no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
525
565
|
{ no: 16, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
526
|
-
{ no: 17, name: "transaction_type", kind: "
|
|
566
|
+
{ no: 17, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
|
|
527
567
|
{ no: 18, name: "amount_base", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
528
568
|
{ no: 19, name: "amount_net", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
529
569
|
{ no: 20, name: "payment_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
@@ -819,9 +859,9 @@ class PurchasesPaymentsServiceFilterReq extends protobuf_1.Message {
|
|
|
819
859
|
/**
|
|
820
860
|
* The reference on which the purchase payment has been created
|
|
821
861
|
*
|
|
822
|
-
* @generated from field:
|
|
862
|
+
* @generated from field: Scailo.PURCHASE_PAYMENT_REF_FROM ref_from = 22;
|
|
823
863
|
*/
|
|
824
|
-
this.refFrom =
|
|
864
|
+
this.refFrom = PURCHASE_PAYMENT_REF_FROM.PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED;
|
|
825
865
|
/**
|
|
826
866
|
* The ID of the associated reference
|
|
827
867
|
*
|
|
@@ -849,9 +889,9 @@ class PurchasesPaymentsServiceFilterReq extends protobuf_1.Message {
|
|
|
849
889
|
/**
|
|
850
890
|
* The type of the transaction
|
|
851
891
|
*
|
|
852
|
-
* @generated from field:
|
|
892
|
+
* @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 27;
|
|
853
893
|
*/
|
|
854
|
-
this.transactionType =
|
|
894
|
+
this.transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
|
|
855
895
|
/**
|
|
856
896
|
* The start range of the payment timestamp
|
|
857
897
|
*
|
|
@@ -902,12 +942,12 @@ PurchasesPaymentsServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList((
|
|
|
902
942
|
{ no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
903
943
|
{ no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
904
944
|
{ no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
905
|
-
{ no: 22, name: "ref_from", kind: "
|
|
945
|
+
{ no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_PAYMENT_REF_FROM) },
|
|
906
946
|
{ no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
907
947
|
{ no: 24, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
908
948
|
{ no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
909
949
|
{ no: 26, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
910
|
-
{ no: 27, name: "transaction_type", kind: "
|
|
950
|
+
{ no: 27, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
|
|
911
951
|
{ no: 28, name: "payment_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
912
952
|
{ no: 29, name: "payment_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
913
953
|
]);
|
|
@@ -1013,9 +1053,9 @@ class PurchasesPaymentsServiceCountReq extends protobuf_1.Message {
|
|
|
1013
1053
|
/**
|
|
1014
1054
|
* The reference on which the purchase payment has been created
|
|
1015
1055
|
*
|
|
1016
|
-
* @generated from field:
|
|
1056
|
+
* @generated from field: Scailo.PURCHASE_PAYMENT_REF_FROM ref_from = 22;
|
|
1017
1057
|
*/
|
|
1018
|
-
this.refFrom =
|
|
1058
|
+
this.refFrom = PURCHASE_PAYMENT_REF_FROM.PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED;
|
|
1019
1059
|
/**
|
|
1020
1060
|
* The ID of the associated reference
|
|
1021
1061
|
*
|
|
@@ -1043,9 +1083,9 @@ class PurchasesPaymentsServiceCountReq extends protobuf_1.Message {
|
|
|
1043
1083
|
/**
|
|
1044
1084
|
* The type of the transaction
|
|
1045
1085
|
*
|
|
1046
|
-
* @generated from field:
|
|
1086
|
+
* @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 27;
|
|
1047
1087
|
*/
|
|
1048
|
-
this.transactionType =
|
|
1088
|
+
this.transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
|
|
1049
1089
|
/**
|
|
1050
1090
|
* The start range of the payment timestamp
|
|
1051
1091
|
*
|
|
@@ -1092,12 +1132,12 @@ PurchasesPaymentsServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(()
|
|
|
1092
1132
|
{ no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1093
1133
|
{ no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1094
1134
|
{ no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1095
|
-
{ no: 22, name: "ref_from", kind: "
|
|
1135
|
+
{ no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(PURCHASE_PAYMENT_REF_FROM) },
|
|
1096
1136
|
{ no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1097
1137
|
{ no: 24, name: "vendor_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1098
1138
|
{ no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1099
1139
|
{ no: 26, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1100
|
-
{ no: 27, name: "transaction_type", kind: "
|
|
1140
|
+
{ no: 27, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
|
|
1101
1141
|
{ no: 28, name: "payment_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1102
1142
|
{ no: 29, name: "payment_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1103
1143
|
]);
|
|
@@ -174,7 +174,16 @@ exports.SalesReceiptsService = {
|
|
|
174
174
|
},
|
|
175
175
|
/**
|
|
176
176
|
* Send Email
|
|
177
|
-
*
|
|
177
|
+
*
|
|
178
|
+
* @generated from rpc Scailo.SalesReceiptsService.SendEmail
|
|
179
|
+
*/
|
|
180
|
+
sendEmail: {
|
|
181
|
+
name: "SendEmail",
|
|
182
|
+
I: base_scailo_pb_js_1.IdentifierWithEmailAttributes,
|
|
183
|
+
O: base_scailo_pb_js_1.IdentifierResponse,
|
|
184
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
178
187
|
* Create a magic link
|
|
179
188
|
*
|
|
180
189
|
* @generated from rpc Scailo.SalesReceiptsService.CreateMagicLink
|
|
@@ -193,7 +202,7 @@ exports.SalesReceiptsService = {
|
|
|
193
202
|
viewByID: {
|
|
194
203
|
name: "ViewByID",
|
|
195
204
|
I: base_scailo_pb_js_1.Identifier,
|
|
196
|
-
O: sales_receipts_scailo_pb_js_1.
|
|
205
|
+
O: sales_receipts_scailo_pb_js_1.SalesReceipt,
|
|
197
206
|
kind: protobuf_1.MethodKind.Unary,
|
|
198
207
|
},
|
|
199
208
|
/**
|
|
@@ -204,7 +213,7 @@ exports.SalesReceiptsService = {
|
|
|
204
213
|
viewByUUID: {
|
|
205
214
|
name: "ViewByUUID",
|
|
206
215
|
I: base_scailo_pb_js_1.IdentifierUUID,
|
|
207
|
-
O: sales_receipts_scailo_pb_js_1.
|
|
216
|
+
O: sales_receipts_scailo_pb_js_1.SalesReceipt,
|
|
208
217
|
kind: protobuf_1.MethodKind.Unary,
|
|
209
218
|
},
|
|
210
219
|
/**
|
|
@@ -215,7 +224,7 @@ exports.SalesReceiptsService = {
|
|
|
215
224
|
viewEssentialByID: {
|
|
216
225
|
name: "ViewEssentialByID",
|
|
217
226
|
I: base_scailo_pb_js_1.Identifier,
|
|
218
|
-
O: sales_receipts_scailo_pb_js_1.
|
|
227
|
+
O: sales_receipts_scailo_pb_js_1.SalesReceipt,
|
|
219
228
|
kind: protobuf_1.MethodKind.Unary,
|
|
220
229
|
},
|
|
221
230
|
/**
|
|
@@ -226,7 +235,7 @@ exports.SalesReceiptsService = {
|
|
|
226
235
|
viewEssentialByUUID: {
|
|
227
236
|
name: "ViewEssentialByUUID",
|
|
228
237
|
I: base_scailo_pb_js_1.IdentifierUUID,
|
|
229
|
-
O: sales_receipts_scailo_pb_js_1.
|
|
238
|
+
O: sales_receipts_scailo_pb_js_1.SalesReceipt,
|
|
230
239
|
kind: protobuf_1.MethodKind.Unary,
|
|
231
240
|
},
|
|
232
241
|
/**
|
|
@@ -248,7 +257,7 @@ exports.SalesReceiptsService = {
|
|
|
248
257
|
viewAncillaryParametersByUUID: {
|
|
249
258
|
name: "ViewAncillaryParametersByUUID",
|
|
250
259
|
I: base_scailo_pb_js_1.IdentifierUUID,
|
|
251
|
-
O: sales_receipts_scailo_pb_js_1.
|
|
260
|
+
O: sales_receipts_scailo_pb_js_1.SalesReceiptAncillaryParameters,
|
|
252
261
|
kind: protobuf_1.MethodKind.Unary,
|
|
253
262
|
},
|
|
254
263
|
/**
|
|
@@ -284,6 +293,28 @@ exports.SalesReceiptsService = {
|
|
|
284
293
|
O: sales_receipts_scailo_pb_js_1.SalesReceiptsServicePaginationResponse,
|
|
285
294
|
kind: protobuf_1.MethodKind.Unary,
|
|
286
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* Checks if the record is downloadable (checks if the custom download function has been implemented)
|
|
298
|
+
*
|
|
299
|
+
* @generated from rpc Scailo.SalesReceiptsService.IsDownloadable
|
|
300
|
+
*/
|
|
301
|
+
isDownloadable: {
|
|
302
|
+
name: "IsDownloadable",
|
|
303
|
+
I: base_scailo_pb_js_1.IdentifierUUID,
|
|
304
|
+
O: base_scailo_pb_js_1.BooleanResponse,
|
|
305
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* Download sales receipt with the given IdentifierUUID (can be used to allow public downloads)
|
|
309
|
+
*
|
|
310
|
+
* @generated from rpc Scailo.SalesReceiptsService.DownloadByUUID
|
|
311
|
+
*/
|
|
312
|
+
downloadByUUID: {
|
|
313
|
+
name: "DownloadByUUID",
|
|
314
|
+
I: base_scailo_pb_js_1.IdentifierUUID,
|
|
315
|
+
O: base_scailo_pb_js_1.StandardFile,
|
|
316
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
317
|
+
},
|
|
287
318
|
/**
|
|
288
319
|
* View all that match the given search key
|
|
289
320
|
*
|