@peabody-soft/mbs-model-ts 1.0.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.
Files changed (212) hide show
  1. package/LICENCE +661 -0
  2. package/dist/Address.d.ts +33 -0
  3. package/dist/Address.js +97 -0
  4. package/dist/Attachment.d.ts +16 -0
  5. package/dist/Attachment.js +49 -0
  6. package/dist/AttachmentBaseUrl.d.ts +11 -0
  7. package/dist/AttachmentBaseUrl.js +41 -0
  8. package/dist/AuthTokens.d.ts +13 -0
  9. package/dist/AuthTokens.js +30 -0
  10. package/dist/Business.d.ts +44 -0
  11. package/dist/Business.js +87 -0
  12. package/dist/BusinessIdentifier.d.ts +8 -0
  13. package/dist/BusinessIdentifier.js +14 -0
  14. package/dist/BusinessLink.d.ts +21 -0
  15. package/dist/BusinessLink.js +61 -0
  16. package/dist/BusinessProfile.d.ts +11 -0
  17. package/dist/BusinessProfile.js +27 -0
  18. package/dist/CartEditor.d.ts +59 -0
  19. package/dist/CartEditor.js +324 -0
  20. package/dist/Catalog.d.ts +28 -0
  21. package/dist/Catalog.js +115 -0
  22. package/dist/Constants.d.ts +10 -0
  23. package/dist/Constants.js +43 -0
  24. package/dist/ContainerNames.d.ts +2 -0
  25. package/dist/ContainerNames.js +21 -0
  26. package/dist/Database.d.ts +15 -0
  27. package/dist/Database.js +1 -0
  28. package/dist/Entity.d.ts +27 -0
  29. package/dist/Entity.js +69 -0
  30. package/dist/Enums.d.ts +16 -0
  31. package/dist/Enums.js +18 -0
  32. package/dist/Exceptions.d.ts +4 -0
  33. package/dist/Exceptions.js +8 -0
  34. package/dist/GeneralSettings.d.ts +46 -0
  35. package/dist/GeneralSettings.js +99 -0
  36. package/dist/HttpStatusCodes.d.ts +2 -0
  37. package/dist/HttpStatusCodes.js +34 -0
  38. package/dist/Ids.d.ts +17 -0
  39. package/dist/Ids.js +78 -0
  40. package/dist/Item.d.ts +12 -0
  41. package/dist/Item.js +30 -0
  42. package/dist/LatLong.d.ts +7 -0
  43. package/dist/LatLong.js +17 -0
  44. package/dist/LiveData.d.ts +30 -0
  45. package/dist/LiveData.js +76 -0
  46. package/dist/Measures.d.ts +20 -0
  47. package/dist/Measures.js +34 -0
  48. package/dist/Message.d.ts +16 -0
  49. package/dist/Message.js +32 -0
  50. package/dist/MockDatabase.d.ts +19 -0
  51. package/dist/MockDatabase.js +73 -0
  52. package/dist/Model.d.ts +63 -0
  53. package/dist/Model.js +629 -0
  54. package/dist/Order.d.ts +31 -0
  55. package/dist/Order.js +70 -0
  56. package/dist/Package.d.ts +25 -0
  57. package/dist/Package.js +52 -0
  58. package/dist/PackageIdentifier.d.ts +8 -0
  59. package/dist/PackageIdentifier.js +14 -0
  60. package/dist/PaymentMethodDetail.d.ts +8 -0
  61. package/dist/PaymentMethodDetail.js +17 -0
  62. package/dist/Photo.d.ts +11 -0
  63. package/dist/Photo.js +29 -0
  64. package/dist/Price.d.ts +17 -0
  65. package/dist/Price.js +52 -0
  66. package/dist/PriceList.d.ts +3 -0
  67. package/dist/PriceList.js +5 -0
  68. package/dist/Product.d.ts +33 -0
  69. package/dist/Product.js +84 -0
  70. package/dist/ProductCategory.d.ts +10 -0
  71. package/dist/ProductCategory.js +18 -0
  72. package/dist/Profile.d.ts +20 -0
  73. package/dist/Profile.js +55 -0
  74. package/dist/ProtoMap.d.ts +71 -0
  75. package/dist/ProtoMap.js +1126 -0
  76. package/dist/Routes.d.ts +7 -0
  77. package/dist/Routes.js +12 -0
  78. package/dist/Service.d.ts +16 -0
  79. package/dist/Service.js +1 -0
  80. package/dist/ServiceExceptions.d.ts +40 -0
  81. package/dist/ServiceExceptions.js +84 -0
  82. package/dist/ServiceProxy.d.ts +25 -0
  83. package/dist/ServiceProxy.js +117 -0
  84. package/dist/ShoppingList.d.ts +64 -0
  85. package/dist/ShoppingList.js +188 -0
  86. package/dist/SyncCache.d.ts +28 -0
  87. package/dist/SyncCache.js +137 -0
  88. package/dist/SyncKeys.d.ts +5 -0
  89. package/dist/SyncKeys.js +41 -0
  90. package/dist/SyncState.d.ts +8 -0
  91. package/dist/SyncState.js +30 -0
  92. package/dist/Tax.d.ts +10 -0
  93. package/dist/Tax.js +30 -0
  94. package/dist/UserProfile.d.ts +16 -0
  95. package/dist/UserProfile.js +40 -0
  96. package/dist/WorkingDays.d.ts +33 -0
  97. package/dist/WorkingDays.js +121 -0
  98. package/dist/generated/Address.d.ts +77 -0
  99. package/dist/generated/Address.js +110 -0
  100. package/dist/generated/AddressList.d.ts +39 -0
  101. package/dist/generated/AddressList.js +60 -0
  102. package/dist/generated/AddressType.d.ts +15 -0
  103. package/dist/generated/AddressType.js +20 -0
  104. package/dist/generated/Attachment.d.ts +66 -0
  105. package/dist/generated/Attachment.js +89 -0
  106. package/dist/generated/AttachmentType.d.ts +154 -0
  107. package/dist/generated/AttachmentType.js +159 -0
  108. package/dist/generated/AuthTokens.d.ts +56 -0
  109. package/dist/generated/AuthTokens.js +74 -0
  110. package/dist/generated/AuthenticationMethod.d.ts +24 -0
  111. package/dist/generated/AuthenticationMethod.js +29 -0
  112. package/dist/generated/Business.d.ts +54 -0
  113. package/dist/generated/Business.js +75 -0
  114. package/dist/generated/BusinessIdentifier.d.ts +36 -0
  115. package/dist/generated/BusinessIdentifier.js +60 -0
  116. package/dist/generated/BusinessIdentifierType.d.ts +49 -0
  117. package/dist/generated/BusinessIdentifierType.js +54 -0
  118. package/dist/generated/BusinessLink.d.ts +76 -0
  119. package/dist/generated/BusinessLink.js +99 -0
  120. package/dist/generated/BusinessSyncInRequest.d.ts +42 -0
  121. package/dist/generated/BusinessSyncInRequest.js +60 -0
  122. package/dist/generated/BusinessSyncInResponse.d.ts +42 -0
  123. package/dist/generated/BusinessSyncInResponse.js +60 -0
  124. package/dist/generated/BusinessSyncOutRequest.d.ts +82 -0
  125. package/dist/generated/BusinessSyncOutRequest.js +107 -0
  126. package/dist/generated/BusinessSyncOutResponse.d.ts +106 -0
  127. package/dist/generated/BusinessSyncOutResponse.js +139 -0
  128. package/dist/generated/Configuration.d.ts +48 -0
  129. package/dist/generated/Configuration.js +63 -0
  130. package/dist/generated/Constants.d.ts +474 -0
  131. package/dist/generated/Constants.js +479 -0
  132. package/dist/generated/CreateUserRequest.d.ts +37 -0
  133. package/dist/generated/CreateUserRequest.js +59 -0
  134. package/dist/generated/DimensionUnit.d.ts +28 -0
  135. package/dist/generated/DimensionUnit.js +33 -0
  136. package/dist/generated/Dimensions.d.ts +41 -0
  137. package/dist/generated/Dimensions.js +76 -0
  138. package/dist/generated/Entity.d.ts +62 -0
  139. package/dist/generated/Entity.js +83 -0
  140. package/dist/generated/FulfillmentMode.d.ts +32 -0
  141. package/dist/generated/FulfillmentMode.js +37 -0
  142. package/dist/generated/GeneralSettings.d.ts +141 -0
  143. package/dist/generated/GeneralSettings.js +186 -0
  144. package/dist/generated/Item.d.ts +54 -0
  145. package/dist/generated/Item.js +82 -0
  146. package/dist/generated/LatLong.d.ts +36 -0
  147. package/dist/generated/LatLong.js +59 -0
  148. package/dist/generated/Message.d.ts +80 -0
  149. package/dist/generated/Message.js +114 -0
  150. package/dist/generated/MessageType.d.ts +34 -0
  151. package/dist/generated/MessageType.js +39 -0
  152. package/dist/generated/OrderStatus.d.ts +50 -0
  153. package/dist/generated/OrderStatus.js +55 -0
  154. package/dist/generated/Package.d.ts +63 -0
  155. package/dist/generated/Package.js +92 -0
  156. package/dist/generated/PackageIdentifier.d.ts +36 -0
  157. package/dist/generated/PackageIdentifier.js +60 -0
  158. package/dist/generated/PackageIdentifierType.d.ts +49 -0
  159. package/dist/generated/PackageIdentifierType.js +54 -0
  160. package/dist/generated/PartyPreferencesPayload.d.ts +41 -0
  161. package/dist/generated/PartyPreferencesPayload.js +60 -0
  162. package/dist/generated/PaymentMethod.d.ts +20 -0
  163. package/dist/generated/PaymentMethod.js +25 -0
  164. package/dist/generated/PaymentMethodDetail.d.ts +37 -0
  165. package/dist/generated/PaymentMethodDetail.js +59 -0
  166. package/dist/generated/Price.d.ts +52 -0
  167. package/dist/generated/Price.js +75 -0
  168. package/dist/generated/PriceList.d.ts +34 -0
  169. package/dist/generated/PriceList.js +51 -0
  170. package/dist/generated/Product.d.ts +77 -0
  171. package/dist/generated/Product.js +106 -0
  172. package/dist/generated/ProductCategory.d.ts +32 -0
  173. package/dist/generated/ProductCategory.js +51 -0
  174. package/dist/generated/ProductType.d.ts +42 -0
  175. package/dist/generated/ProductType.js +47 -0
  176. package/dist/generated/ProfileSyncOutRequest.d.ts +51 -0
  177. package/dist/generated/ProfileSyncOutRequest.js +75 -0
  178. package/dist/generated/ProfileSyncOutResponse.d.ts +56 -0
  179. package/dist/generated/ProfileSyncOutResponse.js +77 -0
  180. package/dist/generated/ReservedPackage.d.ts +34 -0
  181. package/dist/generated/ReservedPackage.js +39 -0
  182. package/dist/generated/Role.d.ts +71 -0
  183. package/dist/generated/Role.js +76 -0
  184. package/dist/generated/SalesOrderPayload.d.ts +85 -0
  185. package/dist/generated/SalesOrderPayload.js +123 -0
  186. package/dist/generated/ShoppingList.d.ts +99 -0
  187. package/dist/generated/ShoppingList.js +132 -0
  188. package/dist/generated/ShoppingListItem.d.ts +102 -0
  189. package/dist/generated/ShoppingListItem.js +139 -0
  190. package/dist/generated/TaskStatus.d.ts +20 -0
  191. package/dist/generated/TaskStatus.js +25 -0
  192. package/dist/generated/Tax.d.ts +37 -0
  193. package/dist/generated/Tax.js +60 -0
  194. package/dist/generated/TaxType.d.ts +25 -0
  195. package/dist/generated/TaxType.js +30 -0
  196. package/dist/generated/UrlAndToken.d.ts +54 -0
  197. package/dist/generated/UrlAndToken.js +67 -0
  198. package/dist/generated/User.d.ts +63 -0
  199. package/dist/generated/User.js +89 -0
  200. package/dist/generated/Weight.d.ts +33 -0
  201. package/dist/generated/Weight.js +60 -0
  202. package/dist/generated/WeightUnit.d.ts +28 -0
  203. package/dist/generated/WeightUnit.js +33 -0
  204. package/dist/generated/WorkingDays.d.ts +42 -0
  205. package/dist/generated/WorkingDays.js +68 -0
  206. package/dist/generated/WorkingHours.d.ts +33 -0
  207. package/dist/generated/WorkingHours.js +52 -0
  208. package/dist/generated/WorkingHoursRange.d.ts +42 -0
  209. package/dist/generated/WorkingHoursRange.js +59 -0
  210. package/dist/index.d.ts +48 -0
  211. package/dist/index.js +60 -0
  212. package/package.json +55 -0
@@ -0,0 +1,479 @@
1
+ // @ts-nocheck
2
+ // @generated by protobuf-ts 2.11.1 with parameter long_type_bigint
3
+ // @generated from protobuf file "Constants.proto" (package "com.merabills.storefront", syntax proto3)
4
+ // tslint:disable
5
+ /**
6
+ * The limits, scaling factors and other constants this protocol's values obey, so a client can read
7
+ * them programmatically. Protobuf has no constants, so these are enum values named after the Java
8
+ * constant of the same meaning (allow_alias because several unrelated constants share a value); not
9
+ * the type of any field. Lengths are in characters and are maximums unless the name says otherwise;
10
+ * counts are maximums.
11
+ * Three kinds of Java constant don't fit a signed 32 bit enum value and are left out: Transaction.MAX_AMOUNT
12
+ * (17,592,186,044,415, the largest amount this protocol can carry), Entity.ID_MASK / PARTITION_ID_MASK
13
+ * (64 bit, derivable from the shifts below), and the Entity.NAME_* short codes (strings, not part of
14
+ * this protocol).
15
+ *
16
+ * @generated from protobuf enum com.merabills.storefront.Constants
17
+ */
18
+ export var Constants;
19
+ (function (Constants) {
20
+ /**
21
+ * @generated from protobuf enum value: UNSPECIFIED_CONSTANT = 0;
22
+ */
23
+ Constants[Constants["UNSPECIFIED_CONSTANT"] = 0] = "UNSPECIFIED_CONSTANT";
24
+ /**
25
+ * Scaling factors. An amount, a price or a discount is multiplied by AMOUNT_FACTOR, a quantity
26
+ * by QUANTITY_FACTOR, and a tax rate by TAX_RATE_FACTOR.
27
+ *
28
+ * @generated from protobuf enum value: AMOUNT_FACTOR = 1000;
29
+ */
30
+ Constants[Constants["AMOUNT_FACTOR"] = 1000] = "AMOUNT_FACTOR";
31
+ /**
32
+ * Scaling factors. An amount, a price or a discount is multiplied by AMOUNT_FACTOR, a quantity
33
+ * by QUANTITY_FACTOR, and a tax rate by TAX_RATE_FACTOR.
34
+ *
35
+ * @generated from protobuf enum value: AMOUNT_FACTOR = 1000;
36
+ */
37
+ Constants[Constants["QUANTITY_FACTOR"] = 1000] = "QUANTITY_FACTOR";
38
+ /**
39
+ * @generated from protobuf enum value: TAX_RATE_FACTOR = 10000;
40
+ */
41
+ Constants[Constants["TAX_RATE_FACTOR"] = 10000] = "TAX_RATE_FACTOR";
42
+ /**
43
+ * User.firstName, User.lastName
44
+ *
45
+ * @generated from protobuf enum value: USER_NAME_MAX_LENGTH = 32;
46
+ */
47
+ Constants[Constants["USER_NAME_MAX_LENGTH"] = 32] = "USER_NAME_MAX_LENGTH";
48
+ /**
49
+ * User.preferredLanguageCode
50
+ *
51
+ * @generated from protobuf enum value: USER_LANGUAGE_CODE_MAX_LENGTH = 8;
52
+ */
53
+ Constants[Constants["USER_LANGUAGE_CODE_MAX_LENGTH"] = 8] = "USER_LANGUAGE_CODE_MAX_LENGTH";
54
+ /**
55
+ * Business.businessId
56
+ *
57
+ * @generated from protobuf enum value: BUSINESS_ID_MIN_LENGTH = 4;
58
+ */
59
+ Constants[Constants["BUSINESS_ID_MIN_LENGTH"] = 4] = "BUSINESS_ID_MIN_LENGTH";
60
+ /**
61
+ * @generated from protobuf enum value: BUSINESS_ID_MAX_LENGTH = 64;
62
+ */
63
+ Constants[Constants["BUSINESS_ID_MAX_LENGTH"] = 64] = "BUSINESS_ID_MAX_LENGTH";
64
+ /**
65
+ * Business.businessId
66
+ *
67
+ * @generated from protobuf enum value: BUSINESS_ID_MIN_LENGTH = 4;
68
+ */
69
+ Constants[Constants["BUSINESS_DISPLAY_NAME_MIN_LENGTH"] = 4] = "BUSINESS_DISPLAY_NAME_MIN_LENGTH";
70
+ /**
71
+ * @generated from protobuf enum value: BUSINESS_ID_MAX_LENGTH = 64;
72
+ */
73
+ Constants[Constants["BUSINESS_DISPLAY_NAME_MAX_LENGTH"] = 64] = "BUSINESS_DISPLAY_NAME_MAX_LENGTH";
74
+ /**
75
+ * Item.name and Item.description, of a product, category, package, price or price list
76
+ *
77
+ * @generated from protobuf enum value: ITEM_NAME_MAX_LENGTH = 128;
78
+ */
79
+ Constants[Constants["ITEM_NAME_MAX_LENGTH"] = 128] = "ITEM_NAME_MAX_LENGTH";
80
+ /**
81
+ * @generated from protobuf enum value: ITEM_DESCRIPTION_MAX_LENGTH = 512;
82
+ */
83
+ Constants[Constants["ITEM_DESCRIPTION_MAX_LENGTH"] = 512] = "ITEM_DESCRIPTION_MAX_LENGTH";
84
+ /**
85
+ * User.firstName, User.lastName
86
+ *
87
+ * @generated from protobuf enum value: USER_NAME_MAX_LENGTH = 32;
88
+ */
89
+ Constants[Constants["PRODUCT_BRAND_MAX_LENGTH"] = 32] = "PRODUCT_BRAND_MAX_LENGTH";
90
+ /**
91
+ * User.firstName, User.lastName
92
+ *
93
+ * @generated from protobuf enum value: USER_NAME_MAX_LENGTH = 32;
94
+ */
95
+ Constants[Constants["PRODUCT_MANUFACTURER_MAX_LENGTH"] = 32] = "PRODUCT_MANUFACTURER_MAX_LENGTH";
96
+ /**
97
+ * Business.businessId
98
+ *
99
+ * @generated from protobuf enum value: BUSINESS_ID_MIN_LENGTH = 4;
100
+ */
101
+ Constants[Constants["MAX_TAXES"] = 4] = "MAX_TAXES";
102
+ /**
103
+ * Product.features
104
+ *
105
+ * @generated from protobuf enum value: PRODUCT_MAX_FEATURES = 5;
106
+ */
107
+ Constants[Constants["PRODUCT_MAX_FEATURES"] = 5] = "PRODUCT_MAX_FEATURES";
108
+ /**
109
+ * @generated from protobuf enum value: PRODUCT_FEATURE_MAX_LENGTH = 255;
110
+ */
111
+ Constants[Constants["PRODUCT_FEATURE_MAX_LENGTH"] = 255] = "PRODUCT_FEATURE_MAX_LENGTH";
112
+ /**
113
+ * User.preferredLanguageCode
114
+ *
115
+ * @generated from protobuf enum value: USER_LANGUAGE_CODE_MAX_LENGTH = 8;
116
+ */
117
+ Constants[Constants["MAX_IDENTIFIERS"] = 8] = "MAX_IDENTIFIERS";
118
+ /**
119
+ * PackageIdentifier.value and BusinessIdentifier.value
120
+ *
121
+ * @generated from protobuf enum value: IDENTIFIER_MAX_LENGTH = 24;
122
+ */
123
+ Constants[Constants["IDENTIFIER_MAX_LENGTH"] = 24] = "IDENTIFIER_MAX_LENGTH";
124
+ /**
125
+ * Attachment.fileHash - the exact size of an MD5 hash, not a maximum
126
+ *
127
+ * @generated from protobuf enum value: ATTACHMENT_FILE_HASH_SIZE_BYTES = 16;
128
+ */
129
+ Constants[Constants["ATTACHMENT_FILE_HASH_SIZE_BYTES"] = 16] = "ATTACHMENT_FILE_HASH_SIZE_BYTES";
130
+ /**
131
+ * Business.businessId
132
+ *
133
+ * @generated from protobuf enum value: BUSINESS_ID_MIN_LENGTH = 4;
134
+ */
135
+ Constants[Constants["ATTACHMENT_FILE_EXTENSION_MAX_LENGTH"] = 4] = "ATTACHMENT_FILE_EXTENSION_MAX_LENGTH";
136
+ /**
137
+ * Attachment.fileHash - the exact size of an MD5 hash, not a maximum
138
+ *
139
+ * @generated from protobuf enum value: ATTACHMENT_FILE_HASH_SIZE_BYTES = 16;
140
+ */
141
+ Constants[Constants["ATTACHMENT_FILE_NAME_MAX_LENGTH"] = 16] = "ATTACHMENT_FILE_NAME_MAX_LENGTH";
142
+ /**
143
+ * Message.senderName
144
+ *
145
+ * @generated from protobuf enum value: MESSAGE_SENDER_NAME_MAX_LENGTH = 65;
146
+ */
147
+ Constants[Constants["MESSAGE_SENDER_NAME_MAX_LENGTH"] = 65] = "MESSAGE_SENDER_NAME_MAX_LENGTH";
148
+ /**
149
+ * SalesOrderPayload.note
150
+ *
151
+ * @generated from protobuf enum value: SALES_ORDER_NOTE_MAX_LENGTH = 120;
152
+ */
153
+ Constants[Constants["SALES_ORDER_NOTE_MAX_LENGTH"] = 120] = "SALES_ORDER_NOTE_MAX_LENGTH";
154
+ /**
155
+ * ShoppingList.existingItems and ShoppingList.deletedItems, counted together
156
+ *
157
+ * @generated from protobuf enum value: SHOPPING_LIST_MAX_ITEMS = 200;
158
+ */
159
+ Constants[Constants["SHOPPING_LIST_MAX_ITEMS"] = 200] = "SHOPPING_LIST_MAX_ITEMS";
160
+ /**
161
+ * @generated from protobuf enum value: BUSINESS_ID_MAX_LENGTH = 64;
162
+ */
163
+ Constants[Constants["SHOPPING_LIST_ITEM_DESCRIPTION_MAX_LENGTH"] = 64] = "SHOPPING_LIST_ITEM_DESCRIPTION_MAX_LENGTH";
164
+ /**
165
+ * @generated from protobuf enum value: PRODUCT_FEATURE_MAX_LENGTH = 255;
166
+ */
167
+ Constants[Constants["SHOPPING_LIST_ITEM_MAX_ORDER"] = 255] = "SHOPPING_LIST_ITEM_MAX_ORDER";
168
+ /**
169
+ * User.firstName, User.lastName
170
+ *
171
+ * @generated from protobuf enum value: USER_NAME_MAX_LENGTH = 32;
172
+ */
173
+ Constants[Constants["MAX_ADDRESSES"] = 32] = "MAX_ADDRESSES";
174
+ /**
175
+ * Attachment.fileHash - the exact size of an MD5 hash, not a maximum
176
+ *
177
+ * @generated from protobuf enum value: ATTACHMENT_FILE_HASH_SIZE_BYTES = 16;
178
+ */
179
+ Constants[Constants["ADDRESS_UNIT_NUMBER_MAX_LENGTH"] = 16] = "ADDRESS_UNIT_NUMBER_MAX_LENGTH";
180
+ /**
181
+ * User.firstName, User.lastName
182
+ *
183
+ * @generated from protobuf enum value: USER_NAME_MAX_LENGTH = 32;
184
+ */
185
+ Constants[Constants["ADDRESS_COMMUNITY_MAX_LENGTH"] = 32] = "ADDRESS_COMMUNITY_MAX_LENGTH";
186
+ /**
187
+ * @generated from protobuf enum value: BUSINESS_ID_MAX_LENGTH = 64;
188
+ */
189
+ Constants[Constants["ADDRESS_LINE2_MAX_LENGTH"] = 64] = "ADDRESS_LINE2_MAX_LENGTH";
190
+ /**
191
+ * User.firstName, User.lastName
192
+ *
193
+ * @generated from protobuf enum value: USER_NAME_MAX_LENGTH = 32;
194
+ */
195
+ Constants[Constants["ADDRESS_CITY_MAX_LENGTH"] = 32] = "ADDRESS_CITY_MAX_LENGTH";
196
+ /**
197
+ * User.firstName, User.lastName
198
+ *
199
+ * @generated from protobuf enum value: USER_NAME_MAX_LENGTH = 32;
200
+ */
201
+ Constants[Constants["ADDRESS_STATE_MAX_LENGTH"] = 32] = "ADDRESS_STATE_MAX_LENGTH";
202
+ /**
203
+ * Attachment.fileHash - the exact size of an MD5 hash, not a maximum
204
+ *
205
+ * @generated from protobuf enum value: ATTACHMENT_FILE_HASH_SIZE_BYTES = 16;
206
+ */
207
+ Constants[Constants["ADDRESS_PIN_CODE_MAX_LENGTH"] = 16] = "ADDRESS_PIN_CODE_MAX_LENGTH";
208
+ /**
209
+ * User.preferredLanguageCode
210
+ *
211
+ * @generated from protobuf enum value: USER_LANGUAGE_CODE_MAX_LENGTH = 8;
212
+ */
213
+ Constants[Constants["MAX_PAYMENT_METHODS"] = 8] = "MAX_PAYMENT_METHODS";
214
+ /**
215
+ * @generated from protobuf enum value: BUSINESS_ID_MAX_LENGTH = 64;
216
+ */
217
+ Constants[Constants["STORE_TAGLINE_MAX_LENGTH"] = 64] = "STORE_TAGLINE_MAX_LENGTH";
218
+ /**
219
+ * @generated from protobuf enum value: UNSPECIFIED_CONSTANT = 0;
220
+ */
221
+ Constants[Constants["NO_RESTRICTIONS_DELIVERY_DISTANCE"] = 0] = "NO_RESTRICTIONS_DELIVERY_DISTANCE";
222
+ /**
223
+ * LatLong.latitude and LatLong.longitude
224
+ *
225
+ * @generated from protobuf enum value: MIN_LATITUDE = -90;
226
+ */
227
+ Constants[Constants["MIN_LATITUDE"] = -90] = "MIN_LATITUDE";
228
+ /**
229
+ * @generated from protobuf enum value: MAX_LATITUDE = 90;
230
+ */
231
+ Constants[Constants["MAX_LATITUDE"] = 90] = "MAX_LATITUDE";
232
+ /**
233
+ * @generated from protobuf enum value: MIN_LONGITUDE = -180;
234
+ */
235
+ Constants[Constants["MIN_LONGITUDE"] = -180] = "MIN_LONGITUDE";
236
+ /**
237
+ * @generated from protobuf enum value: MAX_LONGITUDE = 180;
238
+ */
239
+ Constants[Constants["MAX_LONGITUDE"] = 180] = "MAX_LONGITUDE";
240
+ /**
241
+ * Item.name and Item.description, of a product, category, package, price or price list
242
+ *
243
+ * @generated from protobuf enum value: ITEM_NAME_MAX_LENGTH = 128;
244
+ */
245
+ Constants[Constants["GOOGLE_BUSINESS_CATEGORY_ID_MAX_LENGTH"] = 128] = "GOOGLE_BUSINESS_CATEGORY_ID_MAX_LENGTH";
246
+ /**
247
+ * @generated from protobuf enum value: GOOGLE_BUSINESS_CATEGORY_NAME_MAX_LENGTH = 256;
248
+ */
249
+ Constants[Constants["GOOGLE_BUSINESS_CATEGORY_NAME_MAX_LENGTH"] = 256] = "GOOGLE_BUSINESS_CATEGORY_NAME_MAX_LENGTH";
250
+ /**
251
+ * @generated from protobuf enum value: BUSINESS_ID_MAX_LENGTH = 64;
252
+ */
253
+ Constants[Constants["ONLINE_STORE_THEME_ID_MAX_LENGTH"] = 64] = "ONLINE_STORE_THEME_ID_MAX_LENGTH";
254
+ /**
255
+ * PaymentMethodDetail.data
256
+ *
257
+ * @generated from protobuf enum value: PAYMENT_METHOD_DATA_MAX_LENGTH = 320;
258
+ */
259
+ Constants[Constants["PAYMENT_METHOD_DATA_MAX_LENGTH"] = 320] = "PAYMENT_METHOD_DATA_MAX_LENGTH";
260
+ /**
261
+ * WorkingDays.days and WorkingDays.workingHours
262
+ *
263
+ * @generated from protobuf enum value: DAYS_IN_WEEK = 7;
264
+ */
265
+ Constants[Constants["DAYS_IN_WEEK"] = 7] = "DAYS_IN_WEEK";
266
+ /**
267
+ * User.preferredLanguageCode
268
+ *
269
+ * @generated from protobuf enum value: USER_LANGUAGE_CODE_MAX_LENGTH = 8;
270
+ */
271
+ Constants[Constants["WORKING_HOURS_MAX_RANGES"] = 8] = "WORKING_HOURS_MAX_RANGES";
272
+ /**
273
+ * The bound on WorkingHoursRange.openMinute and closeMinute, and the value of closeMinute that
274
+ * means work stops at midnight (DateTimeHelper.MINUTES_PER_DAY)
275
+ *
276
+ * @generated from protobuf enum value: MINUTES_PER_DAY = 1440;
277
+ */
278
+ Constants[Constants["MINUTES_PER_DAY"] = 1440] = "MINUTES_PER_DAY";
279
+ /**
280
+ * Layout of an Entity.id: top byte is the entity type, next byte is the partition id -
281
+ * id = (type << ENTITY_TYPE_BIT_SHIFT) | n. Use 64 bit arithmetic (BigInt in TypeScript) for the shift.
282
+ *
283
+ * @generated from protobuf enum value: ENTITY_TYPE_BIT_SHIFT = 56;
284
+ */
285
+ Constants[Constants["ENTITY_TYPE_BIT_SHIFT"] = 56] = "ENTITY_TYPE_BIT_SHIFT";
286
+ /**
287
+ * @generated from protobuf enum value: PARTITION_ID_SHIFT = 48;
288
+ */
289
+ Constants[Constants["PARTITION_ID_SHIFT"] = 48] = "PARTITION_ID_SHIFT";
290
+ /**
291
+ * Entity type ids used by this protocol: (id >> ENTITY_TYPE_BIT_SHIFT) is one of these; stable,
292
+ * never changed or reused. USER, BUSINESS and BUSINESS_LINK are profile-database types (read by a
293
+ * ProfileSyncOutRequest); the rest are business-database types (read by a BusinessSyncOutRequest).
294
+ * BUSINESS is read by both, with separate cursors that must not be mixed.
295
+ *
296
+ * @generated from protobuf enum value: USER_ENTITY_TYPE_ID = 1;
297
+ */
298
+ Constants[Constants["USER_ENTITY_TYPE_ID"] = 1] = "USER_ENTITY_TYPE_ID";
299
+ /**
300
+ * @generated from protobuf enum value: BUSINESS_ENTITY_TYPE_ID = 2;
301
+ */
302
+ Constants[Constants["BUSINESS_ENTITY_TYPE_ID"] = 2] = "BUSINESS_ENTITY_TYPE_ID";
303
+ /**
304
+ * @generated from protobuf enum value: BUSINESS_LINK_ENTITY_TYPE_ID = 3;
305
+ */
306
+ Constants[Constants["BUSINESS_LINK_ENTITY_TYPE_ID"] = 3] = "BUSINESS_LINK_ENTITY_TYPE_ID";
307
+ /**
308
+ * @generated from protobuf enum value: ATTACHMENT_ENTITY_TYPE_ID = 12;
309
+ */
310
+ Constants[Constants["ATTACHMENT_ENTITY_TYPE_ID"] = 12] = "ATTACHMENT_ENTITY_TYPE_ID";
311
+ /**
312
+ * @generated from protobuf enum value: CONFIGURATION_ENTITY_TYPE_ID = 13;
313
+ */
314
+ Constants[Constants["CONFIGURATION_ENTITY_TYPE_ID"] = 13] = "CONFIGURATION_ENTITY_TYPE_ID";
315
+ /**
316
+ * @generated from protobuf enum value: MESSAGE_ENTITY_TYPE_ID = 14;
317
+ */
318
+ Constants[Constants["MESSAGE_ENTITY_TYPE_ID"] = 14] = "MESSAGE_ENTITY_TYPE_ID";
319
+ /**
320
+ * @generated from protobuf enum value: ITEM_ENTITY_TYPE_ID = 15;
321
+ */
322
+ Constants[Constants["ITEM_ENTITY_TYPE_ID"] = 15] = "ITEM_ENTITY_TYPE_ID";
323
+ /**
324
+ * @generated from protobuf enum value: BUSINESS_ID_MAX_LENGTH = 64;
325
+ */
326
+ Constants[Constants["PACKAGE_ENTITY_TYPE_ID"] = 64] = "PACKAGE_ENTITY_TYPE_ID";
327
+ /**
328
+ * Message.senderName
329
+ *
330
+ * @generated from protobuf enum value: MESSAGE_SENDER_NAME_MAX_LENGTH = 65;
331
+ */
332
+ Constants[Constants["PRODUCT_ENTITY_TYPE_ID"] = 65] = "PRODUCT_ENTITY_TYPE_ID";
333
+ /**
334
+ * @generated from protobuf enum value: PRODUCT_CATEGORY_ENTITY_TYPE_ID = 66;
335
+ */
336
+ Constants[Constants["PRODUCT_CATEGORY_ENTITY_TYPE_ID"] = 66] = "PRODUCT_CATEGORY_ENTITY_TYPE_ID";
337
+ /**
338
+ * @generated from protobuf enum value: PRICE_ENTITY_TYPE_ID = 67;
339
+ */
340
+ Constants[Constants["PRICE_ENTITY_TYPE_ID"] = 67] = "PRICE_ENTITY_TYPE_ID";
341
+ /**
342
+ * @generated from protobuf enum value: PRICE_LIST_ENTITY_TYPE_ID = 68;
343
+ */
344
+ Constants[Constants["PRICE_LIST_ENTITY_TYPE_ID"] = 68] = "PRICE_LIST_ENTITY_TYPE_ID";
345
+ /**
346
+ * @generated from protobuf enum value: BUSINESS_LINK_ENTITY_TYPE_ID = 3;
347
+ */
348
+ Constants[Constants["UPDATE_TYPE_MASK"] = 3] = "UPDATE_TYPE_MASK";
349
+ /**
350
+ * @generated from protobuf enum value: BUSINESS_LINK_ENTITY_TYPE_ID = 3;
351
+ */
352
+ Constants[Constants["UPDATE_TYPE_MAX_VALUE"] = 3] = "UPDATE_TYPE_MAX_VALUE";
353
+ /**
354
+ * Entity type ids used by this protocol: (id >> ENTITY_TYPE_BIT_SHIFT) is one of these; stable,
355
+ * never changed or reused. USER, BUSINESS and BUSINESS_LINK are profile-database types (read by a
356
+ * ProfileSyncOutRequest); the rest are business-database types (read by a BusinessSyncOutRequest).
357
+ * BUSINESS is read by both, with separate cursors that must not be mixed.
358
+ *
359
+ * @generated from protobuf enum value: USER_ENTITY_TYPE_ID = 1;
360
+ */
361
+ Constants[Constants["UPDATE_TYPE_CREATED"] = 1] = "UPDATE_TYPE_CREATED";
362
+ /**
363
+ * @generated from protobuf enum value: BUSINESS_ENTITY_TYPE_ID = 2;
364
+ */
365
+ Constants[Constants["UPDATE_TYPE_MODIFIED"] = 2] = "UPDATE_TYPE_MODIFIED";
366
+ /**
367
+ * @generated from protobuf enum value: BUSINESS_LINK_ENTITY_TYPE_ID = 3;
368
+ */
369
+ Constants[Constants["UPDATE_TYPE_DELETED"] = 3] = "UPDATE_TYPE_DELETED";
370
+ /**
371
+ * @generated from protobuf enum value: UNSPECIFIED_CONSTANT = 0;
372
+ */
373
+ Constants[Constants["ENTITY_ID_NULL"] = 0] = "ENTITY_ID_NULL";
374
+ /**
375
+ * Entity type ids used by this protocol: (id >> ENTITY_TYPE_BIT_SHIFT) is one of these; stable,
376
+ * never changed or reused. USER, BUSINESS and BUSINESS_LINK are profile-database types (read by a
377
+ * ProfileSyncOutRequest); the rest are business-database types (read by a BusinessSyncOutRequest).
378
+ * BUSINESS is read by both, with separate cursors that must not be mixed.
379
+ *
380
+ * @generated from protobuf enum value: USER_ENTITY_TYPE_ID = 1;
381
+ */
382
+ Constants[Constants["ENTITY_ID_UTILITIES"] = 1] = "ENTITY_ID_UTILITIES";
383
+ /**
384
+ * @generated from protobuf enum value: PRODUCT_FEATURE_MAX_LENGTH = 255;
385
+ */
386
+ Constants[Constants["ENTITY_ID_UNASSIGNED"] = 255] = "ENTITY_ID_UNASSIGNED";
387
+ /**
388
+ * @generated from protobuf enum value: UNSPECIFIED_CONSTANT = 0;
389
+ */
390
+ Constants[Constants["DEFAULT_SALE_PRICE_LIST"] = 0] = "DEFAULT_SALE_PRICE_LIST";
391
+ /**
392
+ * Entity type ids used by this protocol: (id >> ENTITY_TYPE_BIT_SHIFT) is one of these; stable,
393
+ * never changed or reused. USER, BUSINESS and BUSINESS_LINK are profile-database types (read by a
394
+ * ProfileSyncOutRequest); the rest are business-database types (read by a BusinessSyncOutRequest).
395
+ * BUSINESS is read by both, with separate cursors that must not be mixed.
396
+ *
397
+ * @generated from protobuf enum value: USER_ENTITY_TYPE_ID = 1;
398
+ */
399
+ Constants[Constants["DEFAULT_PURCHASE_PRICE_LIST"] = 1] = "DEFAULT_PURCHASE_PRICE_LIST";
400
+ /**
401
+ * @generated from protobuf enum value: BUSINESS_ID_MAX_LENGTH = 64;
402
+ */
403
+ Constants[Constants["MERABILLS_ONLINE_PRICE_LIST"] = 64] = "MERABILLS_ONLINE_PRICE_LIST";
404
+ /**
405
+ * Message.senderName
406
+ *
407
+ * @generated from protobuf enum value: MESSAGE_SENDER_NAME_MAX_LENGTH = 65;
408
+ */
409
+ Constants[Constants["AMAZON_SELLER_PRICE_LIST"] = 65] = "AMAZON_SELLER_PRICE_LIST";
410
+ /**
411
+ * @generated from protobuf enum value: PRODUCT_CATEGORY_ENTITY_TYPE_ID = 66;
412
+ */
413
+ Constants[Constants["FACEBOOK_MARKETPLACE_PRICE_LIST"] = 66] = "FACEBOOK_MARKETPLACE_PRICE_LIST";
414
+ /**
415
+ * @generated from protobuf enum value: PRICE_ENTITY_TYPE_ID = 67;
416
+ */
417
+ Constants[Constants["WHATSAPP_BUSINESS_PRICE_LIST"] = 67] = "WHATSAPP_BUSINESS_PRICE_LIST";
418
+ /**
419
+ * Entity type ids used by this protocol: (id >> ENTITY_TYPE_BIT_SHIFT) is one of these; stable,
420
+ * never changed or reused. USER, BUSINESS and BUSINESS_LINK are profile-database types (read by a
421
+ * ProfileSyncOutRequest); the rest are business-database types (read by a BusinessSyncOutRequest).
422
+ * BUSINESS is read by both, with separate cursors that must not be mixed.
423
+ *
424
+ * @generated from protobuf enum value: USER_ENTITY_TYPE_ID = 1;
425
+ */
426
+ Constants[Constants["DEFAULT_ENTITY_CREATED_AT"] = 1] = "DEFAULT_ENTITY_CREATED_AT";
427
+ /**
428
+ * Milliseconds by which a client clock is allowed to differ from the server clock. A time in this
429
+ * protocol can be up to this far ahead of the reading of the client clock.
430
+ *
431
+ * @generated from protobuf enum value: MAX_CLOCK_SKEW = 900000;
432
+ */
433
+ Constants[Constants["MAX_CLOCK_SKEW"] = 900000] = "MAX_CLOCK_SKEW";
434
+ /**
435
+ * How long before UrlAndToken.expiry the url and token of
436
+ * BusinessSyncOutResponse.attachmentBaseUrl must be treated as already expired, in milliseconds -
437
+ * so a client stops using them, and the server renews them, before they actually run out.
438
+ *
439
+ * @generated from protobuf enum value: ATTACHMENT_BASE_URL_EXPIRY_MARGIN = 300000;
440
+ */
441
+ Constants[Constants["ATTACHMENT_BASE_URL_EXPIRY_MARGIN"] = 300000] = "ATTACHMENT_BASE_URL_EXPIRY_MARGIN";
442
+ /**
443
+ * @generated from protobuf enum value: UNSPECIFIED_CONSTANT = 0;
444
+ */
445
+ Constants[Constants["MASTER_DB_ID"] = 0] = "MASTER_DB_ID";
446
+ /**
447
+ * Largest number of entities one sync out returns, across all entity types together
448
+ * (Database.SYNC_OUT_LIMIT). That many means sync out again with the updated cursors.
449
+ *
450
+ * @generated from protobuf enum value: SYNC_OUT_LIMIT = 5000;
451
+ */
452
+ Constants[Constants["SYNC_OUT_LIMIT"] = 5000] = "SYNC_OUT_LIMIT";
453
+ /**
454
+ * Entity.state and the Java attribute numbering of an entity. Neither the state nor the
455
+ * attribute numbers are part of this protocol; the constants are here for completeness.
456
+ *
457
+ * @generated from protobuf enum value: STATE_MAX_LENGTH = 131072;
458
+ */
459
+ Constants[Constants["STATE_MAX_LENGTH"] = 131072] = "STATE_MAX_LENGTH";
460
+ /**
461
+ * Product.features
462
+ *
463
+ * @generated from protobuf enum value: PRODUCT_MAX_FEATURES = 5;
464
+ */
465
+ Constants[Constants["ENTITY_ATTRIBUTE_COUNT"] = 5] = "ENTITY_ATTRIBUTE_COUNT";
466
+ /**
467
+ * Entity type ids used by this protocol: (id >> ENTITY_TYPE_BIT_SHIFT) is one of these; stable,
468
+ * never changed or reused. USER, BUSINESS and BUSINESS_LINK are profile-database types (read by a
469
+ * ProfileSyncOutRequest); the rest are business-database types (read by a BusinessSyncOutRequest).
470
+ * BUSINESS is read by both, with separate cursors that must not be mixed.
471
+ *
472
+ * @generated from protobuf enum value: USER_ENTITY_TYPE_ID = 1;
473
+ */
474
+ Constants[Constants["ATTRIBUTE_NUMBER_ID"] = 1] = "ATTRIBUTE_NUMBER_ID";
475
+ /**
476
+ * @generated from protobuf enum value: BUSINESS_LINK_ENTITY_TYPE_ID = 3;
477
+ */
478
+ Constants[Constants["ATTRIBUTE_NUMBER_UPDATE_INFO"] = 3] = "ATTRIBUTE_NUMBER_UPDATE_INFO";
479
+ })(Constants || (Constants = {}));
@@ -0,0 +1,37 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import { MessageType } from "@protobuf-ts/runtime";
7
+ import { User } from "./User";
8
+ /**
9
+ * Creates a new user, optionally joining it to a business as a customer in the same call.
10
+ *
11
+ * @generated from protobuf message com.merabills.storefront.CreateUserRequest
12
+ */
13
+ export interface CreateUserRequest {
14
+ /**
15
+ * The user to create.
16
+ *
17
+ * @generated from protobuf field: com.merabills.storefront.User user = 1
18
+ */
19
+ user?: User;
20
+ /**
21
+ * The business to join as a customer after creating the user. 0 means none.
22
+ *
23
+ * @generated from protobuf field: int64 joinBusinessId = 2
24
+ */
25
+ joinBusinessId: bigint;
26
+ }
27
+ declare class CreateUserRequest$Type extends MessageType<CreateUserRequest> {
28
+ constructor();
29
+ create(value?: PartialMessage<CreateUserRequest>): CreateUserRequest;
30
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateUserRequest): CreateUserRequest;
31
+ internalBinaryWrite(message: CreateUserRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
32
+ }
33
+ /**
34
+ * @generated MessageType for protobuf message com.merabills.storefront.CreateUserRequest
35
+ */
36
+ export declare const CreateUserRequest: CreateUserRequest$Type;
37
+ export {};
@@ -0,0 +1,59 @@
1
+ import { WireType } from "@protobuf-ts/runtime";
2
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
3
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
4
+ import { MessageType } from "@protobuf-ts/runtime";
5
+ import { User } from "./User";
6
+ // @generated message type with reflection information, may provide speed optimized methods
7
+ class CreateUserRequest$Type extends MessageType {
8
+ constructor() {
9
+ super("com.merabills.storefront.CreateUserRequest", [
10
+ { no: 1, name: "user", kind: "message", T: () => User },
11
+ { no: 2, name: "joinBusinessId", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
12
+ ]);
13
+ }
14
+ create(value) {
15
+ const message = globalThis.Object.create((this.messagePrototype));
16
+ message.joinBusinessId = 0n;
17
+ if (value !== undefined)
18
+ reflectionMergePartial(this, message, value);
19
+ return message;
20
+ }
21
+ internalBinaryRead(reader, length, options, target) {
22
+ let message = target ?? this.create(), end = reader.pos + length;
23
+ while (reader.pos < end) {
24
+ let [fieldNo, wireType] = reader.tag();
25
+ switch (fieldNo) {
26
+ case /* com.merabills.storefront.User user */ 1:
27
+ message.user = User.internalBinaryRead(reader, reader.uint32(), options, message.user);
28
+ break;
29
+ case /* int64 joinBusinessId */ 2:
30
+ message.joinBusinessId = reader.int64().toBigInt();
31
+ break;
32
+ default:
33
+ let u = options.readUnknownField;
34
+ if (u === "throw")
35
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
36
+ let d = reader.skip(wireType);
37
+ if (u !== false)
38
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
39
+ }
40
+ }
41
+ return message;
42
+ }
43
+ internalBinaryWrite(message, writer, options) {
44
+ /* com.merabills.storefront.User user = 1; */
45
+ if (message.user)
46
+ User.internalBinaryWrite(message.user, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
47
+ /* int64 joinBusinessId = 2; */
48
+ if (message.joinBusinessId !== 0n)
49
+ writer.tag(2, WireType.Varint).int64(message.joinBusinessId);
50
+ let u = options.writeUnknownFields;
51
+ if (u !== false)
52
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
53
+ return writer;
54
+ }
55
+ }
56
+ /**
57
+ * @generated MessageType for protobuf message com.merabills.storefront.CreateUserRequest
58
+ */
59
+ export const CreateUserRequest = new CreateUserRequest$Type();
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Unit in which the dimensions of a package are expressed.
3
+ * Values match the ids of the corresponding Java enum entries and must never be changed.
4
+ *
5
+ * @generated from protobuf enum com.merabills.storefront.DimensionUnit
6
+ */
7
+ export declare enum DimensionUnit {
8
+ /**
9
+ * @generated from protobuf enum value: CENTIMETERS = 0;
10
+ */
11
+ CENTIMETERS = 0,
12
+ /**
13
+ * @generated from protobuf enum value: MILLIMETERS = 1;
14
+ */
15
+ MILLIMETERS = 1,
16
+ /**
17
+ * @generated from protobuf enum value: METERS = 2;
18
+ */
19
+ METERS = 2,
20
+ /**
21
+ * @generated from protobuf enum value: INCHES = 3;
22
+ */
23
+ INCHES = 3,
24
+ /**
25
+ * @generated from protobuf enum value: FEET = 4;
26
+ */
27
+ FEET = 4
28
+ }
@@ -0,0 +1,33 @@
1
+ // @ts-nocheck
2
+ // @generated by protobuf-ts 2.11.1 with parameter long_type_bigint
3
+ // @generated from protobuf file "DimensionUnit.proto" (package "com.merabills.storefront", syntax proto3)
4
+ // tslint:disable
5
+ /**
6
+ * Unit in which the dimensions of a package are expressed.
7
+ * Values match the ids of the corresponding Java enum entries and must never be changed.
8
+ *
9
+ * @generated from protobuf enum com.merabills.storefront.DimensionUnit
10
+ */
11
+ export var DimensionUnit;
12
+ (function (DimensionUnit) {
13
+ /**
14
+ * @generated from protobuf enum value: CENTIMETERS = 0;
15
+ */
16
+ DimensionUnit[DimensionUnit["CENTIMETERS"] = 0] = "CENTIMETERS";
17
+ /**
18
+ * @generated from protobuf enum value: MILLIMETERS = 1;
19
+ */
20
+ DimensionUnit[DimensionUnit["MILLIMETERS"] = 1] = "MILLIMETERS";
21
+ /**
22
+ * @generated from protobuf enum value: METERS = 2;
23
+ */
24
+ DimensionUnit[DimensionUnit["METERS"] = 2] = "METERS";
25
+ /**
26
+ * @generated from protobuf enum value: INCHES = 3;
27
+ */
28
+ DimensionUnit[DimensionUnit["INCHES"] = 3] = "INCHES";
29
+ /**
30
+ * @generated from protobuf enum value: FEET = 4;
31
+ */
32
+ DimensionUnit[DimensionUnit["FEET"] = 4] = "FEET";
33
+ })(DimensionUnit || (DimensionUnit = {}));
@@ -0,0 +1,41 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import { MessageType } from "@protobuf-ts/runtime";
7
+ import { DimensionUnit } from "./DimensionUnit";
8
+ /**
9
+ * The dimensions of a package. All three values are greater than zero.
10
+ *
11
+ * @generated from protobuf message com.merabills.storefront.Dimensions
12
+ */
13
+ export interface Dimensions {
14
+ /**
15
+ * @generated from protobuf field: com.merabills.storefront.DimensionUnit unit = 1
16
+ */
17
+ unit: DimensionUnit;
18
+ /**
19
+ * @generated from protobuf field: float length = 2
20
+ */
21
+ length: number;
22
+ /**
23
+ * @generated from protobuf field: float width = 3
24
+ */
25
+ width: number;
26
+ /**
27
+ * @generated from protobuf field: float height = 4
28
+ */
29
+ height: number;
30
+ }
31
+ declare class Dimensions$Type extends MessageType<Dimensions> {
32
+ constructor();
33
+ create(value?: PartialMessage<Dimensions>): Dimensions;
34
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Dimensions): Dimensions;
35
+ internalBinaryWrite(message: Dimensions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
36
+ }
37
+ /**
38
+ * @generated MessageType for protobuf message com.merabills.storefront.Dimensions
39
+ */
40
+ export declare const Dimensions: Dimensions$Type;
41
+ export {};