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