@aldiokta/protocgen 1.1.63 → 1.1.64

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.
@@ -97,6 +97,28 @@ function deserialize_GetListGeneralLedgerAccountResponse(buffer_arg) {
97
97
  return prisca_v1_general_ledger_account_general_ledger_account_pb.GetListGeneralLedgerAccountResponse.deserializeBinary(new Uint8Array(buffer_arg));
98
98
  }
99
99
 
100
+ function serialize_SyncGlFromAccurateRequest(arg) {
101
+ if (!(arg instanceof prisca_v1_general_ledger_account_general_ledger_account_pb.SyncGlFromAccurateRequest)) {
102
+ throw new Error('Expected argument of type SyncGlFromAccurateRequest');
103
+ }
104
+ return Buffer.from(arg.serializeBinary());
105
+ }
106
+
107
+ function deserialize_SyncGlFromAccurateRequest(buffer_arg) {
108
+ return prisca_v1_general_ledger_account_general_ledger_account_pb.SyncGlFromAccurateRequest.deserializeBinary(new Uint8Array(buffer_arg));
109
+ }
110
+
111
+ function serialize_SyncGlFromAccurateResponse(arg) {
112
+ if (!(arg instanceof prisca_v1_general_ledger_account_general_ledger_account_pb.SyncGlFromAccurateResponse)) {
113
+ throw new Error('Expected argument of type SyncGlFromAccurateResponse');
114
+ }
115
+ return Buffer.from(arg.serializeBinary());
116
+ }
117
+
118
+ function deserialize_SyncGlFromAccurateResponse(buffer_arg) {
119
+ return prisca_v1_general_ledger_account_general_ledger_account_pb.SyncGlFromAccurateResponse.deserializeBinary(new Uint8Array(buffer_arg));
120
+ }
121
+
100
122
  function serialize_UpdateGeneralLedgerAccountRequest(arg) {
101
123
  if (!(arg instanceof prisca_v1_general_ledger_account_general_ledger_account_pb.UpdateGeneralLedgerAccountRequest)) {
102
124
  throw new Error('Expected argument of type UpdateGeneralLedgerAccountRequest');
@@ -212,3 +234,22 @@ var GeneralLedgerAccountServiceService = exports.GeneralLedgerAccountServiceServ
212
234
  };
213
235
 
214
236
  exports.GeneralLedgerAccountServiceClient = grpc.makeGenericClientConstructor(GeneralLedgerAccountServiceService, 'GeneralLedgerAccountService');
237
+ // GlAccurateSyncService orchestrates the pull-mode sync. It lives in
238
+ // prisca-v2-core-service (alongside the inbound webhook handler) because the
239
+ // orchestrator needs local access to webhook_builder. PR domain stays pure-CRUD
240
+ // and only exposes UpsertFromAccurate.
241
+ var GlAccurateSyncServiceService = exports.GlAccurateSyncServiceService = {
242
+ syncFromAccurate: {
243
+ path: '/GlAccurateSyncService/SyncFromAccurate',
244
+ requestStream: false,
245
+ responseStream: false,
246
+ requestType: prisca_v1_general_ledger_account_general_ledger_account_pb.SyncGlFromAccurateRequest,
247
+ responseType: prisca_v1_general_ledger_account_general_ledger_account_pb.SyncGlFromAccurateResponse,
248
+ requestSerialize: serialize_SyncGlFromAccurateRequest,
249
+ requestDeserialize: deserialize_SyncGlFromAccurateRequest,
250
+ responseSerialize: serialize_SyncGlFromAccurateResponse,
251
+ responseDeserialize: deserialize_SyncGlFromAccurateResponse,
252
+ },
253
+ };
254
+
255
+ exports.GlAccurateSyncServiceClient = grpc.makeGenericClientConstructor(GlAccurateSyncServiceService, 'GlAccurateSyncService');