@peabody-soft/mbs-protos 1.3.0 → 1.4.0

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.
@@ -12,9 +12,8 @@ import "Message.proto";
12
12
  // own and are replaced by the server, which returns the new ones in the BusinessSyncInResponse.
13
13
  message BusinessSyncInRequest {
14
14
 
15
- // The business these entities belong to - its unique, lower case, url friendly id
16
- // (Constants.BUSINESS_ID_MIN_LENGTH to Constants.BUSINESS_ID_MAX_LENGTH).
17
- string businessId = 1;
15
+ // Client-side cursor for the customer's orders and shopping cart (Constants.MESSAGE_ENTITY_TYPE_ID).
16
+ int64 messageUpdateNumber = 1;
18
17
 
19
18
  // The shopping cart (a PartyPreferencesPayload) and orders (a SalesOrderPayload) of the customer -
20
19
  // entity type Constants.MESSAGE_ENTITY_TYPE_ID, the only entity type a customer may push.
@@ -4,6 +4,7 @@ option java_multiple_files = true;
4
4
  option java_package = "com.merabills.server.core.generated";
5
5
 
6
6
  import "AuthTokens.proto";
7
+ import "Message.proto";
7
8
 
8
9
  // The answer to a BusinessSyncInRequest: the update number the server assigned to the pushed
9
10
  // entities, one per entity type. Raise the matching cursor to this value so the next sync out does
@@ -15,7 +16,6 @@ message BusinessSyncInResponse {
15
16
  // what the client already holds still works - never a signal to drop the tokens it has.
16
17
  optional AuthTokens authTokens = 1;
17
18
 
18
- // Highest update number assigned to the messages of the request - entity type
19
- // Constants.MESSAGE_ENTITY_TYPE_ID, the only entity field this response carries.
20
- int64 messageUpdateNumber = 2;
19
+ // The orders of the customer, and their shopping cart
20
+ repeated Message messages = 2;
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peabody-soft/mbs-protos",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "The MeraBills shop wire protocol",
5
5
  "author": "Peabody Soft",
6
6
  "license": "AGPL-3.0-or-later",